[ARM] pxa: add base support for pxa910-based TTC_DKB
authorEric Miao <eric.miao@marvell.com>
Fri, 20 Mar 2009 05:33:49 +0000 (13:33 +0800)
committerEric Miao <eric.miao@marvell.com>
Mon, 23 Mar 2009 02:11:38 +0000 (10:11 +0800)
Signed-off-by: Bin Yang <bin.yang@marvell.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
arch/arm/mach-mmp/Kconfig
arch/arm/mach-mmp/Makefile
arch/arm/mach-mmp/ttc_dkb.c [new file with mode: 0644]

index e77db550907e987515fe2fc75bef82d8ca6fb199..c6a564fc4a7c1df0ee82ae98e57e43119510cc56 100644 (file)
@@ -23,6 +23,13 @@ config MACH_TAVOREVB
          Say 'Y' here if you want to support the Marvell PXA910-based
          TavorEVB Development Board.
 
+config MACH_TTC_DKB
+       bool "Marvell's PXA910 TavorEVB Development Board"
+       select CPU_PXA910
+       help
+         Say 'Y' here if you want to support the Marvell PXA910-based
+         TTC_DKB Development Board.
+
 endmenu
 
 config CPU_PXA168
index 542aafae5b117a64078050b0abec0ddce30f039a..6883e6584883e7248e9e21734b01a63d6fbe8552 100644 (file)
@@ -12,3 +12,4 @@ obj-$(CONFIG_CPU_PXA910)      += pxa910.o
 obj-$(CONFIG_MACH_ASPENITE)    += aspenite.o
 obj-$(CONFIG_MACH_ZYLONITE2)   += aspenite.o
 obj-$(CONFIG_MACH_TAVOREVB)    += tavorevb.o
+obj-$(CONFIG_MACH_TTC_DKB)     += ttc_dkb.o
diff --git a/arch/arm/mach-mmp/ttc_dkb.c b/arch/arm/mach-mmp/ttc_dkb.c
new file mode 100644 (file)
index 0000000..08cfef6
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ *  linux/arch/arm/mach-mmp/ttc_dkb.c
+ *
+ *  Support for the Marvell PXA910-based TTC_DKB Development Platform.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License version 2 as
+ *  publishhed by the Free Software Foundation.
+ */
+
+#include <linux/init.h>
+#include <linux/kernel.h>
+#include <linux/platform_device.h>
+
+#include <asm/mach-types.h>
+#include <asm/mach/arch.h>
+#include <mach/addr-map.h>
+#include <mach/mfp-pxa910.h>
+#include <mach/pxa910.h>
+
+#include "common.h"
+
+#define ARRAY_AND_SIZE(x)       (x), ARRAY_SIZE(x)
+
+static unsigned long ttc_dkb_pin_config[] __initdata = {
+       /* UART2 */
+       GPIO47_UART2_RXD,
+       GPIO48_UART2_TXD,
+};
+
+static void __init ttc_dkb_init(void)
+{
+       mfp_config(ARRAY_AND_SIZE(ttc_dkb_pin_config));
+
+       /* on-chip devices */
+       pxa910_add_uart(1);
+}
+
+MACHINE_START(TTC_DKB, "PXA910-based TTC_DKB Development Platform")
+       .phys_io        = APB_PHYS_BASE,
+       .boot_params    = 0x00000100,
+       .io_pg_offst    = (APB_VIRT_BASE >> 18) & 0xfffc,
+       .map_io         = pxa_map_io,
+       .init_irq       = pxa910_init_irq,
+       .timer          = &pxa910_timer,
+       .init_machine   = ttc_dkb_init,
+MACHINE_END