MTK驱动-----添加lcm液晶驱动

    xiaoxiao2023-07-22  159

    MTK添加5寸mipi屏

    1.kernel-4.4/arch/arm/configs/k39tv1_bsp_1g_debug_defconfig

    CONFIG_CUSTOM_KERNEL_LCM="st7703_hd720_dsi_vdo_tianzhengda"

    2.kernel-4.4/arch/arm/configs/k39tv1_bsp_1g_defconfig

    CONFIG_CUSTOM_KERNEL_LCM="st7703_hd720_dsi_vdo_tianzhengda"

    3.kernel-4.4/drivers/misc/mediatek/lcm/mt65xx_lcm_list.c

    #if defined(ST7703_HD720_DSI_VDO_TIANZHENGDA) &st7703_hd720_dsi_vdo_tianzhengda_lcm_drv, #endif #if defined(ST7703_HD720_DSI_VDO_TIANZHENGDA) “st7703_hd720_dsi_vdo_tianzhengda”, #endif

    4.kernel-4.4/drivers/misc/mediatek/lcm/mt65xx_lcm_list.h

    extern LCM_DRIVER st7703_hd720_dsi_vdo_tianzhengda_lcm_drv;

    5.在kernel-4.4/drivers/misc/mediatek/lcm目录下添加驱动文件

    6.vendor/mediatek/proprietary/bootable/bootloader/lk/dev/lcm/mt65xx_lcm_list.c

    extern LCM_DRIVER st7703_hd720_dsi_vdo_tianzhengda_lcm_drv; #if defined(ST7703_HD720_DSI_VDO_TIANZHENGDA) &st7703_hd720_dsi_vdo_tianzhengda_lcm_drv, #endif #if defined(ST7703_HD720_DSI_VDO_TIANZHENGDA) “st7703_hd720_dsi_vdo_tianzhengda”, #endif

    7.在vendor/mediatek/proprietary/bootable/bootloader/lk/dev/lcm添加驱动文件

    8.vendor/mediatek/proprietary/bootable/bootloader/lk/project/k39tv1_bsp_1g.mk

    CUSTOM_LK_LCM="st7703_hd720_dsi_vdo_tianzhengda"

    9.在device/mediateksample/k39tv1_bsp_1g/ProjectConfig.mk修改分辨率

    LCM_HEIGHT = 1280;

    LCM_WIDTH = 720;

    方向:MTK_LCM_PHYSICAL_ROTATION = 0

    logo样式:BOOT_LOGO = wsvga

    10.device/mediateksample/k39tv1_bsp_1g/system.prop

    添加屏幕像素:ro.sf.lcd_density=320

    最新回复(0)