From 8a0141317e11016a6ffceb80258aac7409d3cd4c Mon Sep 17 00:00:00 2001 From: James Calligeros Date: Wed, 18 Dec 2024 16:48:53 +1000 Subject: [PATCH] main: check for dcpext0 too Desktops do not have /arm-io/dcp. They have /arm-io/dcpext0. Only checking for the former means we were essentially unconditionally skipping display init on desktops. Check for both so that DCP is always initialised when required. Signed-off-by: James Calligeros --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 66a3120f4..668189d83 100644 --- a/src/main.c +++ b/src/main.c @@ -51,7 +51,8 @@ void get_device_info(void) printf(" Target: %s\n", target); is_mac = !!strstr(model, "Mac"); - has_dcp = adt_path_offset(adt, "/arm-io/dcp") > 0; + has_dcp = (adt_path_offset(adt, "/arm-io/dcp") > 0 || + adt_path_offset(adt, "/arm-io/dcpext0") > 0); int chosen = adt_path_offset(adt, "/chosen"); if (chosen > 0) {