From 675df208827475b32b1708634a0a04188193563f 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 2f1a7cc9f..d39b7f9cf 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) {