diff options
| author | Frank Hilgendorf <frank.hilgendorf@posteo.de> | 2025-01-27 21:18:39 +0000 |
|---|---|---|
| committer | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2026-01-06 16:29:01 +0000 |
| commit | be6ba97aaee762c2e5300834f1916ae5dfd5a0b9 (patch) | |
| tree | d29052381e6bd37eabbccb5a54284efd8e1e7131 | |
| parent | 75866d71e8d93fe1a1ff469b8a9c6c6c9908a6c8 (diff) | |
| -rw-r--r-- | stand/efi/loader/framebuffer.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/stand/efi/loader/framebuffer.c b/stand/efi/loader/framebuffer.c index dc0047de1116..632377613f58 100644 --- a/stand/efi/loader/framebuffer.c +++ b/stand/efi/loader/framebuffer.c @@ -392,6 +392,23 @@ efifb_from_uga(struct efi_fb *efifb) /* These are the missing bits. */ offset = 0x0; stride = 2048; + } else if (ev != NULL && !strcmp(ev, "MacBookPro3,1")) { + /* + * Valid for MacBookPro 17" with standard resolution. + * Other Models are: + * MacBookPro 15" with horiz=1440 + * MacBookPro 17" with horiz=1920 + */ + + /* These are the expected values we should have. */ + if (horiz == 1680) { + vert = 1050; + fbaddr = 0xc0000000; + /* These are the missing bits. */ + stride = 2048; + /* 24 scan lines down */ + offset = stride * 4 * 24; + } } } |
