Skip to content

Commit

Permalink
isp: Declare 13.6.2 firmware as 13.5 compatible on t600x/t602x
Browse files Browse the repository at this point in the history
Tested on t6001-j314c.

Signed-off-by: Janne Grunau <[email protected]>
  • Loading branch information
jannau authored and marcan committed Nov 15, 2023
1 parent 630c627 commit 0a8aa3d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/isp.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ int isp_init(void)
heap_top = 0xe00000;
break;
case V13_5:
case V13_6_2:
heap_top = 0xf00000;
break;
default:
Expand All @@ -136,6 +137,7 @@ int isp_init(void)
case ISP_VER_T6020:
switch (os_firmware.version) {
case V13_5:
case V13_6_2:
heap_top = 0xf00000;
break;
default:
Expand Down
13 changes: 12 additions & 1 deletion src/kboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1930,7 +1930,18 @@ static int dt_set_isp_fwdata(void)
if (firmware_set_fdt(dt, fdt_node, "apple,firmware-version", &os_firmware) < 0)
bail("FDT: Could not set apple,firmware-version for %s\n", fdt_path);

if (firmware_set_fdt(dt, fdt_node, "apple,firmware-compat", &os_firmware) < 0)
const struct fw_version_info *compat;

switch (os_firmware.version) {
case V13_6_2:
compat = &fw_versions[V13_5];
break;
default:
compat = &os_firmware;
break;
}

if (firmware_set_fdt(dt, fdt_node, "apple,firmware-compat", compat) < 0)
bail("FDT: Could not set apple,firmware-compat for %s\n", fdt_path);

if (isp_get_heap(&phys, &iova, &size)) {
Expand Down

0 comments on commit 0a8aa3d

Please sign in to comment.