isp: Declare 13.6.2 firmware as 13.5 compatible on t600x/t602x

Tested on t6001-j314c.

Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
Janne Grunau 2023-11-15 00:03:23 +01:00 committed by Hector Martin
parent 630c62785a
commit 0a8aa3da87
2 changed files with 14 additions and 1 deletions

View file

@ -126,6 +126,7 @@ int isp_init(void)
heap_top = 0xe00000;
break;
case V13_5:
case V13_6_2:
heap_top = 0xf00000;
break;
default:
@ -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:

View file

@ -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)) {