mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
camera-kernel: miami: support IIC Addr Switch method
-For ov32c4c,must write reg 0x1001=0x4 to switch iic addr to 0x20 before any iic operation. -add preInitSetting,it will be wroten into sensor before init. -add IICAddrSwitch,it will be wroten into sensor before probe. Change-Id: I0d0d3959371355843fc4e384042e4ad44a42243d Signed-off-by: chenlj26 <chenlj26@motorola.com> Reviewed-on: https://gerrit.mot.com/2218769 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Liu <liuwang2@lenovo.com> Reviewed-by: Shuo Wang <wangsh18@motorola.com> Reviewed-by: Long Cheng <chengl1@motorola.com> Reviewed-by: Zhichao Chen <chenzc2@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
2f54a39212
commit
a1daf6ff57
3 changed files with 96 additions and 2 deletions
|
|
@ -181,6 +181,13 @@ struct cam_cmd_probe {
|
|||
__u8 sub_device_cci_master;
|
||||
__u8 sub_device_cci_device;
|
||||
__u8 sub_device_i2c_freq_mode;
|
||||
__u8 i2c_addr_switch;
|
||||
__u32 second_i2c_address;
|
||||
__u8 i2c_switch_reg_addr_Type;
|
||||
__u8 i2c_switch_reg_data_Type;
|
||||
__u32 i2c_switch_reg_addr;
|
||||
__u32 i2c_switch_reg_data;
|
||||
__u32 i2c_switch_reg_delayMs;
|
||||
} __attribute__((packed));
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue