Skip to content

Commit

Permalink
kboot: dcpext: Enable dcpext* on t600x only with firmware 13.5
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jannau committed Nov 6, 2023
1 parent 012c89a commit e090641
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/kboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];

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]));
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]));
}
}
} else if (!fdt_node_check_compatible(dt, 0, "apple,t6020") ||
!fdt_node_check_compatible(dt, 0, "apple,t6021")) {
Expand Down

0 comments on commit e090641

Please sign in to comment.