in lk
step 1: 增加dtsi文件 kernel/include/dt-bindings/lcm/xxx.dtsi
step 2: 在项目的dts 文件中包含dtsi文件 #include <dt-bindings/lcm/xxx.dtsi>
step 3: 在bootable/bootloader/lk/project/<project>.mk 增加DEFINES += MTK_LCM_DEVICE_TREE_SUPPORT
CUSTOM_MTK_LCM="xxx"
step 4: 在bootable/bootloader/lk/dev/lcm/mt65xx_lcm_list.c 中增加 #if defined(XXX)
"xxx",
#endif
step 5: 在bootable/bootloader/lk/project/<project>.mk 若lcm resolution 不同修改BOOT_LOGO = cu_lte_qhd
in kernel
step 1: 同lk
step 2: 同lk
step 3: 打开CONFIG_MTK_LCM_DEVICE_TREE_SUPPORT in <project>_defconfig and <project>_debug_defconfig
step 4: 增加lcm config 在<project>_defconfig and <project>_debug_defconfig CONFIG_CUSTOM_KERNEL_LCM="xxx"
step 5: 在device/mediatek/<project>/ProjectConfig.mk 增加AUTO_ADD_GLOBAL_DEFINE_BY_NAME = MTK_LCM_DEVICE_TREE_SUPPORT 和 打开MTK_LCM_DEVICE_TREE_SUPPORT = y
step 6: 在kernel/drivers/misc/mediatek/lcm/mt65xx_lcm_list.c 中增加 #if defined(XXX)
"xxx",
#endif
step 7: 若lcm resolution 不同修改LCM_WIDTH 和 LCM_HEIGHT in device/mediatek/project/ProjectConfig.mk
step 8: 同样也在<project>_defconfig and <project>_debug_defconfig 修改CONFIG_LCM_HEIGHT="1280" and CONFIG_LCM_WIDTH="720" 按实际情况填写
04-17
323
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)