1. Select LCD panel by means of 'make menuconfig': device drivers -> Graphic Support -> Support for LCD panels
#ifdef CONFIG_LCD_AT070TN93
static struct platform_device at07070tn93_lcd = {
.name = "at07070tn93_lcd",
.dev = {
.platform_data = &lcd_pdata,
},
};
#endif
Then register it to the platform bus.
This step generates a defination looks like "CONFIG_LCD_PANELNAME=y" in .config file.
#ifdef CONFIG_LCD_AT070TN93
static struct platform_device at07070tn93_lcd = {
.name = "at07070tn93_lcd",
.dev = {
.platform_data = &lcd_pdata,
},
};
#endif
Then register it to the platform bus.
本文档介绍了如何在内核配置中生成'CONFIG_LCD_PANELNAME=y',这用于注册LCD面板。

1925

被折叠的 条评论
为什么被折叠?



