Linux 2.6.31.6
[linux/fpc-iii.git] / arch / arm / mach-mmp / ttc_dkb.c
blob08cfef6c92a22b758d9b0fa85defb583057a5297
1 /*
2 * linux/arch/arm/mach-mmp/ttc_dkb.c
4 * Support for the Marvell PXA910-based TTC_DKB Development Platform.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * publishhed by the Free Software Foundation.
9 */
11 #include <linux/init.h>
12 #include <linux/kernel.h>
13 #include <linux/platform_device.h>
15 #include <asm/mach-types.h>
16 #include <asm/mach/arch.h>
17 #include <mach/addr-map.h>
18 #include <mach/mfp-pxa910.h>
19 #include <mach/pxa910.h>
21 #include "common.h"
23 #define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x)
25 static unsigned long ttc_dkb_pin_config[] __initdata = {
26 /* UART2 */
27 GPIO47_UART2_RXD,
28 GPIO48_UART2_TXD,
31 static void __init ttc_dkb_init(void)
33 mfp_config(ARRAY_AND_SIZE(ttc_dkb_pin_config));
35 /* on-chip devices */
36 pxa910_add_uart(1);
39 MACHINE_START(TTC_DKB, "PXA910-based TTC_DKB Development Platform")
40 .phys_io = APB_PHYS_BASE,
41 .boot_params = 0x00000100,
42 .io_pg_offst = (APB_VIRT_BASE >> 18) & 0xfffc,
43 .map_io = pxa_map_io,
44 .init_irq = pxa910_init_irq,
45 .timer = &pxa910_timer,
46 .init_machine = ttc_dkb_init,
47 MACHINE_END