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 1212#define ISP_FIRMWARE_MDELAY 1
1313#define ISP_FIRMWARE_MAX_TRIES 1000
1414
15- #define ISP_FIRMWARE_BOOTARGS_SIZE 0x180
1615#define ISP_FIRMWARE_IPC_SIZE 0x1c000
1716#define ISP_FIRMWARE_DATA_SIZE 0x28000
1817
@@ -56,8 +55,7 @@ struct isp_firmware_bootargs {
5655 u32 pad_c0 [47 ];
5756 u32 unk9 ;
5857} __packed ;
59- static_assert (sizeof (struct isp_firmware_bootargs ) ==
60- ISP_FIRMWARE_BOOTARGS_SIZE );
58+ static_assert (sizeof (struct isp_firmware_bootargs ) == 0x180 );
6159
6260struct isp_chan_desc {
6361 char name [64 ];
@@ -273,7 +271,7 @@ static int isp_firmware_boot_stage2(struct apple_isp *isp)
273271 args .unk5 = 0x40 ;
274272 //args.pad_7c[3] = 0x3b54000;
275273 args .unk7 = 0x1 ;
276- args .unk_iova1 = args_iova + ISP_FIRMWARE_BOOTARGS_SIZE - 0xc ;
274+ args .unk_iova1 = args_iova + sizeof ( args ) - 0xc ;
277275 args .unk9 = 0x3 ;
278276 isp_iowrite (isp , args_iova , & args , sizeof (args ));
279277
You can’t perform that action at this time.
0 commit comments