mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
kboot: dcpext: Enable dcpext* on t600x only with firmware 13.5
Only the HDMI port on 14 and 16 inch Macbook Pros needs dcpext and the dptxport endpoint implemention in the DCP driver supports only the 13.5 firmware. Postpone this for after the fedora release. Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
parent
c9ae791b79
commit
4ce65e1c08
1 changed files with 8 additions and 6 deletions
14
src/kboot.c
14
src/kboot.c
|
@ -1794,13 +1794,15 @@ static int dt_set_display(void)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
for (int n = 0; n < MAX_DCPEXT && ret == 0; n++) {
|
||||
char dcpext_alias[16];
|
||||
if (os_firmware.version >= V13_5) {
|
||||
for (int n = 0; n < MAX_DCPEXT && ret == 0; n++) {
|
||||
char dcpext_alias[16];
|
||||
|
||||
snprintf(dcpext_alias, sizeof(dcpext_alias), "dcpext%d", n);
|
||||
ret = dt_carveout_reserved_regions(dcpext_alias, NULL, NULL,
|
||||
dcpext_reserved_regions_t600x[n],
|
||||
ARRAY_SIZE(dcpext_reserved_regions_t600x[n]));
|
||||
snprintf(dcpext_alias, sizeof(dcpext_alias), "dcpext%d", n);
|
||||
ret = dt_carveout_reserved_regions(dcpext_alias, NULL, NULL,
|
||||
dcpext_reserved_regions_t600x[n],
|
||||
ARRAY_SIZE(dcpext_reserved_regions_t600x[n]));
|
||||
}
|
||||
}
|
||||
} else if (!fdt_node_check_compatible(dt, 0, "apple,t6020") ||
|
||||
!fdt_node_check_compatible(dt, 0, "apple,t6021")) {
|
||||
|
|
Loading…
Reference in a new issue