[mt6735]10.1寸 LCD 驱动添加

注意:10.1寸屏   min 3.0 V  typ 3.3 V  max 3.6 V   不亮 闪屏 原因可能是  主板供电只有2.8V

lk lcm 配置
alps\bootab le\bootloader\lk\dev\lcm  目录下
新加红色如下
alps\bootable\bootloader\lk\dev\lcm\mt65xx_lcm_list.c
.
.
.
.
extern LCM_DRIVER nt35510_dsi_cmd_lcm_drv;
extern LCM_DRIVER rm69032_dsi_cmd_lcm_drv;
extern LCM_DRIVER st7789h2_dbi_lcm_drv;

extern LCM_DRIVER ILI9881C_98_HSD_DSI_VDO_HD_lcm_drv;
extern LCM_DRIVER NT35521_HONGTAOGUANGDIAN_CM885_LG_DSI_2_VDO_HD_lcm_drv;
extern LCM_DRIVER HX8394F_HRGD_CHR050H66_00_LCM_QIMEI_HD_DSI_4_VDO_lcm_drv;
.
.
.
#if defined(ST7789H2_DBI)
    &st7789h2_dbi_lcm_drv,
#endif

#if defined(ILI9881C_98_HSD_DSI_VDO_HD)
    &ILI9881C_98_HSD_DSI_VDO_HD_lcm_drv,
#endif

#if defined(NT35521_HONGTAOGUANGDIAN_CM885_LG_DSI_2_VDO_HD)
    &NT35521_HONGTAOGUANGDIAN_CM885_LG_DSI_2_VDO_HD_lcm_drv,
#endif
.
.
.
修改红色如下
alps\bootable\bootloader\lk\project\.mk
LOCAL_DIR := $(GET_LOCAL_DIR)

TARGET := bd6735_65c_a_l1

MODULES += app/mt_boot \
           dev/lcm


MTK_EMMC_SUPPORT = yes
DEFINES += MTK_NEW_COMBO_EMMC_SUPPORT
MTK_KERNEL_POWER_OFF_CHARGING = yes
MTK_LCM_PHYSICAL_ROTATION = 0
#CUSTOM_LK_LCM="ILI9881C_98_HSD_DSI_VDO_HD"
CUSTOM_LK_LCM="NT35521_HONGTAOGUANGDIAN_CM885_LG_DSI_2_VDO_HD"
#hx8392a_dsi_cmd = yes

#FASTBOOT_USE_G_ORIGINAL_PROTOCOL = yes
MTK_SECURITY_SW_SUPPORT = yes
MTK_VERIFIED_BOOT_SUPPORT = yes
MTK_SEC_FASTBOOT_UNLOCK_SUPPORT = yes

DEBUG := 2
BOOT_LOGO := cmcc_lte_hd720

#DEFINES += WITH_DEBUG_DCC=1
DEFINES += WITH_DEBUG_UART=1
#DEFINES += WITH_DEBUG_FBCON=1
#DEFINES += MACH_FPGA=y
#DEFINES += SB_LK_BRINGUP=y
DEFINES += MTK_GPT_SCHEME_SUPPORT

lk lcm 配置
解压拷进
alps \kernel-3.10\drivers\misc\mediatek\lcm   目录下
新加红色如下
alps\kernel-3.10\drivers\misc\mediatek\lcm\mt65xx_lcm_list.c
.
.
.
.
extern LCM_DRIVER nt35510_dsi_cmd_lcm_drv;
extern LCM_DRIVER rm69032_dsi_cmd_lcm_drv;
extern LCM_DRIVER st7789h2_dbi_lcm_drv;

extern LCM_DRIVER ILI9881C_98_HSD_DSI_VDO_HD_lcm_drv;
extern LCM_DRIVER NT35521_HONGTAOGUANGDIAN_CM885_LG_DSI_2_VDO_HD_lcm_drv;
extern LCM_DRIVER HX8394F_HRGD_CHR050H66_00_LCM_QIMEI_HD_DSI_4_VDO_lcm_drv;
.
.
.
#if defined(ST7789H2_DBI)
    &st7789h2_dbi_lcm_drv,
#endif

#if defined(ILI9881C_98_HSD_DSI_VDO_HD)
    &ILI9881C_98_HSD_DSI_VDO_HD_lcm_drv,
#endif

#if defined(NT35521_HONGTAOGUANGDIAN_CM885_LG_DSI_2_VDO_HD)
    &NT35521_HONGTAOGUANGDIAN_CM885_LG_DSI_2_VDO_HD_lcm_drv,
#endif
.
.
.
修改红色如下
kernel-3.10\arch\arm64\configs \.mk
bd6735_65c_a_l1_debug_defconfig
bd6735_65c_a_l1_defconfig
.
.
.
CONFIG_CUSTOM_KERNEL_HEART_RATE_SENSOR=""
CONFIG_CUSTOM_KERNEL_TILT_DETECTOR_SENSOR=""
CONFIG_CUSTOM_KERNEL_WAKE_GESTURE_SENSOR=""
CONFIG_CUSTOM_KERNEL_GLANCE_GESTURE_SENSOR=""
CONFIG_CUSTOM_KERNEL_IMGSENSOR="ov8865_mipi_raw gc2355_mipi_raw"
CONFIG_CUSTOM_KERNEL_CAM_CAL_DRV=""
CONFIG_CUSTOM_KERNEL_LCM="NT35521_HONGTAOGUANGDIAN_CM885_LG_DSI_2_VDO_HD"

#CONFIG_CUSTOM_KERNEL_LCM="ILI9881C_98_HSD_DSI_VDO_HD"
#"HX8394F_HRGD_CHR050H66_00_LCM_QIMEI_HD_DSI_4_VDO"
.
.
.





NT35521_HONGTAOGUANGDIAN_CM885_LG_DSI_2_VDO_HD

你可能感兴趣的:(Multimedia)