X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=arch%2Farm%2Fmach-omap1%2Fboard-h6300.c;h=6e73ef55bb4d3efa9a566453e0ff8fbb3b492179;hb=345ea42450cdaed99a13f1c312009613b2f7eedc;hp=bca54d26befb90e17dc3432bcf692c555eaafdfa;hpb=9535904a2435fe19cf346f809b0ed09162c4ff8e;p=linux-2.6-omap-h63xx.git diff --git a/arch/arm/mach-omap1/board-h6300.c b/arch/arm/mach-omap1/board-h6300.c index bca54d26bef..6e73ef55bb4 100644 --- a/arch/arm/mach-omap1/board-h6300.c +++ b/arch/arm/mach-omap1/board-h6300.c @@ -13,12 +13,10 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ - #include #include #include #include - #include #include @@ -27,10 +25,27 @@ #include #include - #include +#include #include +static struct platform_device h6300_lcd_device = { + .name = "lcd_h6300", + .id = -1, +}; + +static struct platform_device *h6300_devices[] __initdata = { + &h6300_lcd_device, +}; + +static struct omap_lcd_config h6300_lcd_config __initdata = { + .ctrl_name = "internal", +}; + +static struct omap_board_config_kernel h6300_config[] = { + { OMAP_TAG_LCD, &h6300_lcd_config }, +}; + static void __init h6300_init_irq(void) { omap1_init_common_hw(); @@ -40,6 +55,14 @@ static void __init h6300_init_irq(void) static void __init h6300_init(void) { + int ret; + + ret = platform_add_devices(h6300_devices, ARRAY_SIZE(h6300_devices)); + if (ret) { + printk(KERN_WARNING "Unable to add h6300 platform devices."); + } + omap_board_config = h6300_config; + omap_board_config_size = ARRAY_SIZE(h6300_config); omap_serial_init(); }