mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-24 15:43:11 +00:00
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:
parent
3854c7668a
commit
87a1279b86
1 changed files with 1 additions and 7 deletions
|
@ -76,13 +76,7 @@ void get_notchless_fb(u64 *fb_base, u64 *fb_height)
|
||||||
u32 val;
|
u32 val;
|
||||||
|
|
||||||
if ((ADT_GETPROP(adt, node, "partially-occluded-display", &val) < 0 || !val) &&
|
if ((ADT_GETPROP(adt, node, "partially-occluded-display", &val) < 0 || !val) &&
|
||||||
chip_id != T8015) {
|
(chip_id != T8015 || (board_id != 0x6 && board_id != 0xe))) {
|
||||||
printf("FDT: No notch detected\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// iPhone X
|
|
||||||
if (chip_id != T8015 || (board_id != 0x6 && board_id != 0xe)) {
|
|
||||||
printf("FDT: No notch detected\n");
|
printf("FDT: No notch detected\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue