kboot: Fix get_notchless_fb() on notched Macs

Fixes: 5bb8f04bdf ("kboot: Add workarounds for ADT for A7-A11 SoCs.")
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
This commit is contained in:
Nick Chan 2024-11-11 16:49:46 +08:00 committed by Hector Martin
parent 3854c7668a
commit 87a1279b86

View file

@ -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;
}