展讯 camera移植
程序员文章站
2022-07-04 16:45:12
参考平台:sp9832e android 9.01.修改dts路径:kernel4.4/arch/arm/boot/dts/${project}.dts 修改:待补充2.修改BoardConfig.mk路径:device/sprd/sharkle/${project}/BoardConfig.mk...
参考平台: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
本文地址:https://blog.csdn.net/qq_33575901/article/details/108727600