展讯 camera移植

参考平台:sp9832e android 9.0

1.修改dts

路径:

kernel4.4/arch/arm/boot/dts/${project}.dts 

修改:待补充

2.修改BoardConfig.mk

路径:

device/sprd/sharkle/${project}/BoardConfig.mk

修改:

#select camera 2M,3M,5M,8M,13M,16M,21M
CAMERA_SUPPORT_SIZE := 2M
FRONT_CAMERA_SUPPORT_SIZE := 2M
#BACK_EXT_CAMERA_SUPPORT_SIZE := 5M
TARGET_BOARD_NO_FRONT_SENSOR := true
TARGET_BOARD_SENSOR2_SUPPORT := false
TARGET_BOARD_SENSOR3_SUPPORT := false
#camera sensor type
CAMERA_SENSOR_TYPE_BACK := "gc8034"
#CAMERA_SENSOR_TYPE_FRONT := "gc2385f,bf2206f"
3.添加camera ic驱动

路径:

vendor/sprd/modules/libcamera/sensor/sensor_drv/classic/Galaxycore
4.配置camera ic

路径:

vendor/sprd/modules/libcamera/sensor/sensor_cfg.c

修改:

#ifdef GC8034
extern SENSOR_INFO_T g_gc8034_mipi_raw_info;
#endif

const SENSOR_MATCH_T back_sensor_infor_tab[] = {
// gc area
#ifdef GC8034
    {MODULE_SUNNY, "gc8034", &g_gc8034_mipi_raw_info, {&dw9714p_drv_entry, 0}, {NULL, 0, 0, 0}},
#endif
©️2020 CSDN 皮肤主题: 精致技术 设计师:CSDN官方博客 返回首页