ARM: 5751/1: ep93xx/micro9: Add Micro9-Slim
authorHubert Feurstein <hubert.feurstein@contec.at>
Wed, 7 Oct 2009 07:41:01 +0000 (08:41 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 7 Oct 2009 12:15:15 +0000 (13:15 +0100)
Add Contec Micro9-Slim support

Cc: Ryan Mallon <ryan@bluewatersys.com>
Requires: 5750/1
Signed-off-by: Hubert Feurstein <hubert.feurstein@contec.at>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ep93xx/Kconfig
arch/arm/mach-ep93xx/micro9.c

index 4ad0380ff806019d503ed2e9e2d21facc5f06b31..9167c3d2a5edaf02ef6b74df0a00cab5572341ba 100644 (file)
@@ -153,6 +153,14 @@ config MACH_MICRO9L
          Say 'Y' here if you want your kernel to support the
          Contec Micro9-Lite board.
 
+config MACH_MICRO9S
+       bool "Support Contec Micro9-Slim"
+       depends on EP93XX_SDCE3_ASYNC_PHYS_OFFSET
+       select MACH_MICRO9
+       help
+         Say 'Y' here if you want your kernel to support the
+         Contec Micro9-Slim board.
+
 config MACH_TS72XX
        bool "Support Technologic Systems TS-72xx SBC"
        depends on EP93XX_SDCE3_SYNC_PHYS_OFFSET
index 49fbee5adde2051831ea654d764ea47f738c158d..d83b80478b091781086bd94ad087d3d606995260 100644 (file)
@@ -28,6 +28,7 @@
  * Micro9-High has up to 64MB of 32-bit flash on CS1
  * Micro9-Mid has up to 64MB of either 32-bit or 16-bit flash on CS1
  * Micro9-Lite uses a seperate MTD map driver for flash support
+ * Micro9-Slim has up to 64MB of either 32-bit or 16-bit flash on CS1
  *************************************************************************/
 static struct physmap_flash_data micro9_flash_data;
 
@@ -70,7 +71,7 @@ static void __init micro9_register_flash(void)
 {
        if (machine_is_micro9())
                __micro9_register_flash(4);
-       else if (machine_is_micro9m())
+       else if (machine_is_micro9m() || machine_is_micro9s())
                __micro9_register_flash(micro9_detect_bootwidth());
 }
 
@@ -129,3 +130,16 @@ MACHINE_START(MICRO9L, "Contec Micro9-Lite")
        .init_machine   = micro9_init_machine,
 MACHINE_END
 #endif
+
+#ifdef CONFIG_MACH_MICRO9S
+MACHINE_START(MICRO9S, "Contec Micro9-Slim")
+       /* Maintainer: Hubert Feurstein <hubert.feurstein@contec.at> */
+       .phys_io        = EP93XX_APB_PHYS_BASE,
+       .io_pg_offst    = ((EP93XX_APB_VIRT_BASE) >> 18) & 0xfffc,
+       .boot_params    = EP93XX_SDCE3_PHYS_BASE_ASYNC + 0x100,
+       .map_io         = ep93xx_map_io,
+       .init_irq       = ep93xx_init_irq,
+       .timer          = &ep93xx_timer,
+       .init_machine   = micro9_init_machine,
+MACHINE_END
+#endif