Skip to content

Commit

Permalink
main: check for dcpext0 too
Browse files Browse the repository at this point in the history
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 <jcalligeros99@gmail.com>
  • Loading branch information
chadmed committed Dec 18, 2024
1 parent 9d6fd02 commit a3e6362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a3e6362

Please sign in to comment.