这里是以mt6739+kernel4.4平台添加gc5025,fm50af为例
1.device/mediatek/common/kernel-headers/kd_imgsensor.h添加摄像头ID与名称
#define GC5025_SENSOR_ID 0x5025
#define SENSOR_DRVNAME_GC5025_MIPI_RAW "gc5025_mipi_raw"
2.在项目配置文件device/mediateksample/k39tv1_bsp_1g/ProjectConfig.mk修改camera信息
CUSTOM_HAL_FLASHLIGHT = constant_flashlight
CUSTOM_HAL_IMGSENSOR = gc5025_mipi_raw
CUSTOM_HAL_LENS = fm50af dummy_lens
CUSTOM_HAL_MAIN_BACKUP_LENS =
CUSTOM_HAL_MAIN_IMGSENSOR = gc5025_mipi_raw
CUSTOM_HAL_MAIN_LENS = fm50af
副摄像头为空:
CUSTOM_HAL_SUB_BACKUP_LENS =
CUSTOM_HAL_SUB_IMGSENSOR =
CUSTOM_HAL_SUB_LENS =
CUSTOM_KERNEL_IMGSENSOR = gc5025_mipi_raw
CUSTOM_KERNEL_LENS = fm50af dummy_lens
CUSTOM_KERNEL_MAIN_BACKUP_LENS =
CUSTOM_KERNEL_MAIN_IMGSENSOR = gc5025_mipi_raw
CUSTOM_KERNEL_MAIN_LENS = fm50af
副摄像头为空:
CUSTOM_KERNEL_SUB_BACKUP_LENS =