Skip to content

Commit 182fddd

Browse files
hoshinolinamarcan
authored andcommitted
kboot: Fix ISP remap on t8103/t8112
Signed-off-by: Asahi Lina <[email protected]>
1 parent 0e47152 commit 182fddd

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/isp.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ int isp_get_heap(u64 *phys, u64 *iova, u64 *size)
3434
return 0;
3535
}
3636

37+
bool isp_uses_remap(void)
38+
{
39+
switch (chip_id) {
40+
case 0x6020 ... 0x6fff:
41+
return true;
42+
default:
43+
return false;
44+
}
45+
}
46+
3747
int isp_init(void)
3848
{
3949
int err = 0;

src/isp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77

88
int isp_init(void);
99
int isp_get_heap(u64 *phys, u64 *iova, u64 *size);
10+
bool isp_uses_remap(void);
1011

1112
#endif

src/kboot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2223,7 +2223,7 @@ int kboot_prepare_dt(void *fdt)
22232223
return -1;
22242224
if (dt_set_sio_fwdata())
22252225
return -1;
2226-
if (dt_reserve_asc_firmware("/arm-io/isp", "/arm-io/isp0", "isp", chip_id > 0x6020))
2226+
if (dt_reserve_asc_firmware("/arm-io/isp", "/arm-io/isp0", "isp", isp_uses_remap()))
22272227
return -1;
22282228
if (dt_set_isp_fwdata())
22292229
return -1;

0 commit comments

Comments
 (0)