|
发表于 2015-5-12 17:16:35
只看该作者
5#
hardware/rk29/camera/SiliconImage/isi/drv/OV13850/source/OV13850_MIPI.c里面有两个地址:
50 #define OV13850_SLAVE_ADDR 0x20U /**< i2c slave address of the OV13850 camera sensor */
51 #define OV13850_SLAVE_ADDR2 0x6cU
在hardware/rk29/camera/CameraHal/CameraHal_board_xml_parse.cpp里面有自动检测的过程:
1181 if (pLoadInfo->mpI2cInfo->i2c_addr2 != 0) {
1182 i2cinfo.slave_addr = pLoadInfo->mpI2cInfo->i2c_addr2;
1183 err = ioctl(camsys_fd, CAMSYS_I2CWR, &i2cinfo);
1184 if (err>=0) {
1185 pLoadInfo->mpI2cInfo->i2c_addr = pLoadInfo->mpI2cInfo->i2c_addr2;
1186 }
1187 }
可以参考一下。 |
|