Skip to content

Commit 7932596

Browse files
marcanjannau
authored andcommitted
media: apple: WIP: t6000 hax
1 parent b8bc00d commit 7932596

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

drivers/media/platform/apple/isp/isp-cam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static int isp_ch_cache_sensor_info(struct apple_isp *isp, u32 ch)
207207
args, sizeof(*args), false);
208208

209209
err = isp_ch_get_sensor_id(isp, ch);
210-
if (err || (fmt->id != ISP_IMX248_1820_01)) {
210+
if (err || (fmt->id != ISP_IMX248_1820_01 && fmt->id != ISP_IMX558_1921_01)) {
211211
dev_err(isp->dev,
212212
"ch %d: unsupported sensor. Please file a bug report with hardware info & dmesg trace.\n",
213213
ch);

drivers/media/platform/apple/isp/isp-fw.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,12 @@ static int isp_firmware_boot_stage2(struct apple_isp *isp)
268268
args.shared_size = 0x10000000 - isp->fw.heap_top;
269269
args.extra_iova = isp->extra_surf->iova;
270270
args.extra_size = isp->extra_surf->size;
271-
args.unk4 = 0x1;
271+
args.unk4 = 0x3;
272+
//args.pad_40[1] = 0x3128000;
273+
//args.pad_40[3] = 0x48000;
274+
args.pad_40[5] = 0x90;
272275
args.unk5 = 0x40;
276+
//args.pad_7c[3] = 0x3b54000;
273277
args.unk7 = 0x1;
274278
args.unk_iova1 = args_iova + ISP_FIRMWARE_BOOTARGS_SIZE - 0xc;
275279
args.unk9 = 0x3;

0 commit comments

Comments
 (0)