mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-21 14:23:01 +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;
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue