Skip to content

Commit

Permalink
kboot: Fix get_notchless_fb() on notched Macs
Browse files Browse the repository at this point in the history
Fixes: 5bb8f04 ("kboot: Add workarounds for ADT for A7-A11 SoCs.")
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
  • Loading branch information
asdfugil committed Nov 11, 2024
1 parent 3854c76 commit 150da7b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/kboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,7 @@ void get_notchless_fb(u64 *fb_base, u64 *fb_height)
u32 val;

if ((ADT_GETPROP(adt, node, "partially-occluded-display", &val) < 0 || !val) &&
chip_id != T8015) {
printf("FDT: No notch detected\n");
return;
}

// iPhone X
if (chip_id != T8015 || (board_id != 0x6 && board_id != 0xe)) {
(chip_id != T8015 || (board_id != 0x6 && board_id != 0xe))) {
printf("FDT: No notch detected\n");
return;
}
Expand Down

0 comments on commit 150da7b

Please sign in to comment.