File tree Expand file tree Collapse file tree
drivers/media/platform/apple/isp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313#define ISP_FIRMWARE_MDELAY 1
1414#define ISP_FIRMWARE_MAX_TRIES 1000
1515
16- #define ISP_FIRMWARE_BOOTARGS_SIZE 0x180
1716#define ISP_FIRMWARE_IPC_SIZE 0x1c000
1817#define ISP_FIRMWARE_DATA_SIZE 0x28000
1918
@@ -57,8 +56,7 @@ struct isp_firmware_bootargs {
5756 u32 pad_c0 [47 ];
5857 u32 unk9 ;
5958} __packed ;
60- static_assert (sizeof (struct isp_firmware_bootargs ) ==
61- ISP_FIRMWARE_BOOTARGS_SIZE );
59+ static_assert (sizeof (struct isp_firmware_bootargs ) == 0x180 );
6260
6361struct isp_chan_desc {
6462 char name [64 ];
@@ -274,7 +272,7 @@ static int isp_firmware_boot_stage2(struct apple_isp *isp)
274272 args .unk5 = 0x40 ;
275273 //args.pad_7c[3] = 0x3b54000;
276274 args .unk7 = 0x1 ;
277- args .unk_iova1 = args_iova + ISP_FIRMWARE_BOOTARGS_SIZE - 0xc ;
275+ args .unk_iova1 = args_iova + sizeof ( args ) - 0xc ;
278276 args .unk9 = 0x3 ;
279277 isp_iowrite (isp , args_iova , & args , sizeof (args ));
280278
You can’t perform that action at this time.
0 commit comments