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.