Register a panel to kernel

1. Select LCD panel by means of 'make menuconfig':    device drivers -> Graphic Support -> Support for LCD panels

        This step generates a defination looks like "CONFIG_LCD_PANELNAME=y" in .config file.


2. in kernel/arch/arm/mach-tcc893x/board-tcc8930st-panel.c, the kernel define platform device according to CONFIG_LCD_PANELNAME (.config). Such as:
        #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.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章