ov8856_mipi_raw ov9762_mipi_raw ov9762s_mipi_raw为例
1
device/mediateksample/k37tv1_bsp/ProjectConfig.mk
CUSTOM_HAL_IMGSENSOR = ov8856_mipi_raw ov9762_mipi_raw ov9762s_mipi_raw
CUSTOM_HAL_MAIN_IMGSENSOR = ov8856_mipi_raw ov9762_mipi_raw
CUSTOM_HAL_SUB_IMGSENSOR = ov9762s_mipi_raw
CUSTOM_KERNEL_IMGSENSOR = ov8856_mipi_raw ov9762_mipi_raw ov9762s_mipi_raw
CUSTOM_KERNEL_MAIN_IMGSENSOR = ov8856_mipi_raw ov9762_mipi_raw
CUSTOM_KERNEL_SUB_IMGSENSOR = ov9762s_mipi_raw
2
kernel-3.18/arch/arm/configs/k37tv1_bsp_debug_defconfig
kernel-3.18/arch/arm/configs/k37tv1_bsp_defconfig
CONFIG_CUSTOM_KERNEL_IMGSENSOR="ov8856_mipi_raw ov9762_mipi_raw ov9762s_mipi_raw"
3
vendor/mediatek/proprietary/custom/mt6735/hal/D1/imgsensor_src/sensorlist.cpp
#if defined(OV8856_MIPI_RAW)
RAW_INFO(OV8856_SENSOR_ID, SENSOR_DRVNAME_OV8856_MIPI_RAW,NULL),
#endif
#if defined(OV9762_MIPI_RAW)
RAW_INFO(OV9762MIPI_SENSOR_ID,SENSOR_DRVNAME_OV9762_MIPI_RAW,NULL),
#endif
#if defined(OV9762S_MIPI_RAW)
RAW_INFO(OV9762SMIPI_SENSOR_ID,SENSOR_DRVNAME_OV9762S_MIPI_RAW,NULL),
#endif
4 添加HAL层代码
vendor/mediatek/proprietary/custom/mt6735/hal/D1/imgsensor/ov8856_mipi_raw
vendor/mediatek/proprietary/custom/mt6735/hal/D1/imgsensor/ov9762_mipi_raw
vendor/mediatek/proprietary/custom/mt6735/hal/D1/imgsensor/ov9762s_mipi_raw
vendor/mediatek/proprietary/custom/mt6735/hal/D1/sendepfeature/ov8856_mipi_raw
vendor/mediatek/proprietary/custom/mt6735/hal/D1/sendepfeature/ov9762_mipi_raw
vendor/mediatek/proprietary/custom/mt6735/hal/D1/sendepfeature/ov9762s_mipi_raw
vendor/mediatek/proprietary/custom/mt6735/hal/D1/pd_buf_mgr/ov8856_mipi_raw
vendor/mediatek/proprietary/custom/mt6735/hal/D1/pd_buf_mgr/ov9762_mipi_raw
vendor/mediatek/proprietary/custom/mt6735/hal/D1/pd_buf_mgr/ov9762s_mipi_raw
5
vendor/mediatek/proprietary/hardware/mtkcam/legacy/platform/mt6735/hal/sensor/imgsensor_drv.cpp
for (i = 0; i < MAX_NUM_OF_SUPPORT_SENSOR; i++) {
...
if (SensorEnum == DUAL_CAMERA_MAIN_SENSOR &&
m_pstSensorInitFunc[i].SensorId == OV9762SMIPI_SENSOR_ID)
break;
if (SensorEnum == DUAL_CAMERA_SUB_SENSOR &&
m_pstSensorInitFunc[i].SensorId == OV9762MIPI_SENSOR_ID ||
m_pstSensorInitFunc[i].SensorId == OV8856_SENSOR_ID)
break;
...
}
6
kernel-3.18/drivers/misc/mediatek/imgsensor/src/mt6735/kd_sensorlist.h
UINT32 OV8856_MIPI_RAW_SensorInit(PSENSOR_FUNCTION_STRUCT *pfFunc);
UINT32 OV9762MIPI_RAW_SensorInit(PSENSOR_FUNCTION_STRUCT *pfFunc);
UINT32 OV9762SMIPI_RAW_SensorInit(PSENSOR_FUNCTION_STRUCT *pfFunc);
#if defined(OV8856_MIPI_RAW)
{OV8856_SENSOR_ID, SENSOR_DRVNAME_OV8856_MIPI_RAW,OV8856_MIPI_RAW_SensorInit},
#endif
#if defined(OV9762_MIPI_RAW)
{OV9762MIPI_SENSOR_ID,SENSOR_DRVNAME_OV9762_MIPI_RAW,OV9762MIPI_RAW_SensorInit},
#endif
#if defined(OV9762S_MIPI_RAW)
{OV9762SMIPI_SENSOR_ID,SENSOR_DRVNAME_OV9762S_MIPI_RAW,OV9762SMIPI_RAW_SensorInit},
#endif
7 添加驱动层代码
kernel-3.18/drivers/misc/mediatek/imgsensor/src/mt6735/ov8856_mipi_raw
kernel-3.18/drivers/misc/mediatek/imgsensor/src/mt6735/ov9762_mipi_raw
kernel-3.18/drivers/misc/mediatek/imgsensor/src/mt6735/ov9762s_mipi_raw
Mtk6735 camera代码同步
最新推荐文章于 2021-11-22 18:06:07 发布