一、驱动源码包结构
拿到的驱动源码包解压后得到hal和kernel两个目录文件,源码目录结构如下所示
13850-6592-driver-10-28.7z
|--hal
| |--camera_AE_PLineTable_ov13850mipiraw.h
| |--camera_calibration_cam_cal.cpp
| |--camera_flicker_para_ov13850mipiraw.cpp
| |--camera_info_ov13850mipiraw.h
| |--camera_isp_lsc_ov13850mipiraw.h
| |--camera_isp_pca_ov13850mipiraw.h
| |--camera_isp_regs_ov13850mipiraw.h
| |--camera_tsf_data_ov13850mipiraw.h
| |--camera_tsf_para_ov13850mipiraw.h
| |--camera_tuning_para_ov13850mipiraw.cpp
| |--config.ftbl.ov13850_mipi_raw.h
|--kernel
| |--ov13850mipiraw_Camera_Sensor_para.h
| |--ov13850mipiraw_CameraCustomized.h
| |--ov13850mipiraw_Sensor.c
| |--ov13850mipiraw_Sensor.h
二、ov13850驱动移植记录
1、kernelSensor:
- 在mediatek\custom\common\kernel\imgsensor\目录下增加ov13850_mipi_raw文件夹,把驱动源码kernel目录中所有文件copy进来。
- 修改mediatek\custom\common\kernel\imgsensor\inc\kd_img