[ARM] 4478/1: AT91: Convert AT91RM9200 to use atmel_spi driver
[safe/jmp/linux-2.6] / arch / arm / mach-omap1 / board-palmte.c
index 5c975eb..0158241 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Original version : Laurent Gonzalez
  *
- * Maintainters : http://palmtelinux.sf.net
+ * Maintainers : http://palmtelinux.sf.net
  *                palmtelinux-developpers@lists.sf.net
  *
  * This program is free software; you can redistribute it and/or modify
 
 static void __init omap_generic_init_irq(void)
 {
+       omap1_init_common_hw();
        omap_init_irq();
 }
 
+static struct platform_device palmte_lcd_device = {
+       .name           = "lcd_palmte",
+       .id             = -1,
+};
+
+static struct platform_device *devices[] __initdata = {
+       &palmte_lcd_device,
+};
+
 static struct omap_usb_config palmte_usb_config __initdata = {
        .register_dev   = 1,
        .hmc_mode       = 0,
@@ -54,7 +64,6 @@ static struct omap_mmc_config palmte_mmc_config __initdata = {
 };
 
 static struct omap_lcd_config palmte_lcd_config __initdata = {
-       .panel_name     = "palmte",
        .ctrl_name      = "internal",
 };
 
@@ -68,15 +77,16 @@ static void __init omap_generic_init(void)
 {
        omap_board_config = palmte_config;
        omap_board_config_size = ARRAY_SIZE(palmte_config);
+
+       platform_add_devices(devices, ARRAY_SIZE(devices));
 }
 
 static void __init omap_generic_map_io(void)
 {
-       omap_map_common_io();
+       omap1_map_common_io();
 }
 
 MACHINE_START(OMAP_PALMTE, "OMAP310 based Palm Tungsten E")
-       .phys_ram       = 0x10000000,
        .phys_io        = 0xfff00000,
        .io_pg_offst    = ((0xfef00000) >> 18) & 0xfffc,
        .boot_params    = 0x10000100,