| .. | .. |
|---|
| 649 | 649 | checksum += otp_ptr->pdaf_data.dccmap_checksum; |
|---|
| 650 | 650 | base_addr += 1; |
|---|
| 651 | 651 | |
|---|
| 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 | + |
|---|
| 652 | 657 | memset(pdaf_buf, 0, RK_PDAF_RESERVED_SIZE); |
|---|
| 653 | 658 | ret |= read_reg_otp_buf(client, base_addr, |
|---|
| 654 | 659 | RK_PDAF_RESERVED_SIZE, pdaf_buf); |
|---|
| .. | .. |
|---|
| 931 | 936 | seq_printf(p, "flag=%d;\n", dev->otp->pdaf_data.flag); |
|---|
| 932 | 937 | seq_printf(p, "gainmap_width=%d;\n", gainmap_w); |
|---|
| 933 | 938 | seq_printf(p, "gainmap_height=%d;\n", gainmap_h); |
|---|
| 934 | | - |
|---|
| 939 | + seq_printf(p, "pd_offset=%d\n", dev->otp->pdaf_data.pd_offset); |
|---|
| 935 | 940 | seq_printf(p, "gainmap_table=\n"); |
|---|
| 936 | 941 | for (i = 0; i < gainmap_h; i++) { |
|---|
| 937 | 942 | for (j = 0; j < gainmap_w; j++) { |
|---|