From a3e63622170e687fa5efe8f9e1f8513fb3d6ea39 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 66a3120f4..31c0b9b30 100644 --- a/src/main.c +++ b/src/main.c @@ -51,7 +51,7 @@ 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") || !!adt_path_offset(adt, "/arm-io/dcpext0"); int chosen = adt_path_offset(adt, "/chosen"); if (chosen > 0) {