mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 01:34:12 +00:00
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:
parent
630c62785a
commit
0a8aa3da87
2 changed files with 14 additions and 1 deletions
|
@ -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:
|
||||
|
|
13
src/kboot.c
13
src/kboot.c
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue