hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/media/i2c/otp_eeprom.c
....@@ -649,6 +649,11 @@
649649 checksum += otp_ptr->pdaf_data.dccmap_checksum;
650650 base_addr += 1;
651651
652
+ ret |= read_reg_otp(client, base_addr,
653
+ 2, &otp_ptr->pdaf_data.pd_offset);
654
+ checksum += otp_ptr->pdaf_data.pd_offset;
655
+ base_addr += 2;
656
+
652657 memset(pdaf_buf, 0, RK_PDAF_RESERVED_SIZE);
653658 ret |= read_reg_otp_buf(client, base_addr,
654659 RK_PDAF_RESERVED_SIZE, pdaf_buf);
....@@ -931,7 +936,7 @@
931936 seq_printf(p, "flag=%d;\n", dev->otp->pdaf_data.flag);
932937 seq_printf(p, "gainmap_width=%d;\n", gainmap_w);
933938 seq_printf(p, "gainmap_height=%d;\n", gainmap_h);
934
-
939
+ seq_printf(p, "pd_offset=%d\n", dev->otp->pdaf_data.pd_offset);
935940 seq_printf(p, "gainmap_table=\n");
936941 for (i = 0; i < gainmap_h; i++) {
937942 for (j = 0; j < gainmap_w; j++) {