diff options
Diffstat (limited to 'arch/arm/mach-mmp/jasper.c')
-rw-r--r-- | arch/arm/mach-mmp/jasper.c | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/jasper.c b/arch/arm/mach-mmp/jasper.c new file mode 100644 index 000000000000..cfd4d66ef800 --- /dev/null +++ b/arch/arm/mach-mmp/jasper.c | |||
@@ -0,0 +1,80 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-mmp/jasper.c | ||
3 | * | ||
4 | * Support for the Marvell Jasper Development Platform. | ||
5 | * | ||
6 | * Copyright (C) 2009-2010 Marvell International Ltd. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify | ||
9 | * it under the terms of the GNU General Public License version 2 as | ||
10 | * publishhed by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/init.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/platform_device.h> | ||
16 | #include <linux/io.h> | ||
17 | #include <linux/gpio.h> | ||
18 | |||
19 | #include <asm/mach-types.h> | ||
20 | #include <asm/mach/arch.h> | ||
21 | #include <mach/addr-map.h> | ||
22 | #include <mach/mfp-mmp2.h> | ||
23 | #include <mach/mmp2.h> | ||
24 | |||
25 | #include "common.h" | ||
26 | |||
27 | static unsigned long jasper_pin_config[] __initdata = { | ||
28 | /* UART1 */ | ||
29 | GPIO29_UART1_RXD, | ||
30 | GPIO30_UART1_TXD, | ||
31 | |||
32 | /* UART3 */ | ||
33 | GPIO51_UART3_RXD, | ||
34 | GPIO52_UART3_TXD, | ||
35 | |||
36 | /* DFI */ | ||
37 | GPIO168_DFI_D0, | ||
38 | GPIO167_DFI_D1, | ||
39 | GPIO166_DFI_D2, | ||
40 | GPIO165_DFI_D3, | ||
41 | GPIO107_DFI_D4, | ||
42 | GPIO106_DFI_D5, | ||
43 | GPIO105_DFI_D6, | ||
44 | GPIO104_DFI_D7, | ||
45 | GPIO111_DFI_D8, | ||
46 | GPIO164_DFI_D9, | ||
47 | GPIO163_DFI_D10, | ||
48 | GPIO162_DFI_D11, | ||
49 | GPIO161_DFI_D12, | ||
50 | GPIO110_DFI_D13, | ||
51 | GPIO109_DFI_D14, | ||
52 | GPIO108_DFI_D15, | ||
53 | GPIO143_ND_nCS0, | ||
54 | GPIO144_ND_nCS1, | ||
55 | GPIO147_ND_nWE, | ||
56 | GPIO148_ND_nRE, | ||
57 | GPIO150_ND_ALE, | ||
58 | GPIO149_ND_CLE, | ||
59 | GPIO112_ND_RDY0, | ||
60 | GPIO160_ND_RDY1, | ||
61 | }; | ||
62 | |||
63 | static void __init jasper_init(void) | ||
64 | { | ||
65 | mfp_config(ARRAY_AND_SIZE(jasper_pin_config)); | ||
66 | |||
67 | /* on-chip devices */ | ||
68 | mmp2_add_uart(1); | ||
69 | mmp2_add_uart(3); | ||
70 | } | ||
71 | |||
72 | MACHINE_START(MARVELL_JASPER, "Jasper Development Platform") | ||
73 | .phys_io = APB_PHYS_BASE, | ||
74 | .boot_params = 0x00000100, | ||
75 | .io_pg_offst = (APB_VIRT_BASE >> 18) & 0xfffc, | ||
76 | .map_io = pxa_map_io, | ||
77 | .init_irq = mmp2_init_irq, | ||
78 | .timer = &mmp2_timer, | ||
79 | .init_machine = jasper_init, | ||
80 | MACHINE_END | ||