展讯 lcd移植
程序员文章站
2022-04-02 22:19:34
参考平台:sp9832e android 9.0一、uboot移植1.添加驱动文件路径:u-boot15/drivers/video/sprdfb/lcd/lcd_rm67162_454x454_mipi_boe.c2.添加编译规则路径:u-boot15/drivers/video/sprdfb/lcd/Makefile修改:obj-$(CONFIG_LCD_RM67162_454X454_MIPI_BOE) += lcd_rm67162_454x454_mipi_boe.o3.引...
参考平台:sp9832e android 9.0
一、uboot移植
1.添加驱动文件
路径:
u-boot15/drivers/video/sprdfb/lcd/lcd_rm67162_454x454_mipi_boe.c
2.添加编译规则
路径:
u-boot15/drivers/video/sprdfb/lcd/Makefile
修改:
obj-$(CONFIG_LCD_RM67162_454X454_MIPI_BOE) += lcd_rm67162_454x454_mipi_boe.o
3.引用lcd接口
路径:
u-boot15/drivers/video/sprdfb/sprdfb_panel.c
修改:
extern struct panel_spec lcd_st7797_400x400_mipi_spec;
static struct panel_cfg panel_cfg[] = {
.
.
.
#ifdef CONFIG_LCD_ST7797_400X400_MIPI
{
.lcd_id = 0x7797,
.panel = &lcd_st7797_400x400_mipi_spec,
},
#endif
4.配置编译选项
路径:
u-boot15/include/configs/${project}.h
修改:
#define CONFIG_LCD_ST7797_400X400_MIPI
二、kernel配置
1.添加dtsi文件
路径:
kernel4.4/arch/arm/boot/dts/lcd/lcd_st7797_400x400_mipi.dtsi
2.引用dtsi文件
路径:
kernel4.4/arch/arm/boot/dts/${project}.dts
修改:
#include lcd/lcd_st7797_400x400_mipi.dtsi
panel-drivers = <
&lcd_st7797_mipi
本文地址:https://blog.csdn.net/qq_33575901/article/details/108735179