diff options
author | Eric Miao <eric.miao@marvell.com> | 2008-07-11 00:45:39 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-07-13 07:05:21 -0400 |
commit | 5d31e43589589e63f5b96abc62372d2ef331c14a (patch) | |
tree | afa74e806f3109892188297fdda3a32132381b15 /arch/arm/mach-pxa | |
parent | 9d9f6d27333b97d590b5409017d105205f79a28e (diff) |
[ARM] pxa: add base support for PXA930 (aka Tavor-P)
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/mach-pxa/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-pxa/pxa930.c | 190 |
3 files changed, 194 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index 3e28521b9ebc..d64b40c8e422 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig | |||
@@ -16,6 +16,9 @@ config CPU_PXA310 | |||
16 | config CPU_PXA320 | 16 | config CPU_PXA320 |
17 | bool "PXA320 (codename Monahans-P)" | 17 | bool "PXA320 (codename Monahans-P)" |
18 | 18 | ||
19 | config CPU_PXA930 | ||
20 | bool "PXA930 (codename Tavor-P)" | ||
21 | |||
19 | endmenu | 22 | endmenu |
20 | 23 | ||
21 | endif | 24 | endif |
diff --git a/arch/arm/mach-pxa/Makefile b/arch/arm/mach-pxa/Makefile index 5220a5c3fe90..d04014e67c08 100644 --- a/arch/arm/mach-pxa/Makefile +++ b/arch/arm/mach-pxa/Makefile | |||
@@ -18,6 +18,7 @@ obj-$(CONFIG_PXA27x) += mfp-pxa2xx.o pxa2xx.o pxa27x.o | |||
18 | obj-$(CONFIG_PXA3xx) += mfp-pxa3xx.o pxa3xx.o smemc.o | 18 | obj-$(CONFIG_PXA3xx) += mfp-pxa3xx.o pxa3xx.o smemc.o |
19 | obj-$(CONFIG_CPU_PXA300) += pxa300.o | 19 | obj-$(CONFIG_CPU_PXA300) += pxa300.o |
20 | obj-$(CONFIG_CPU_PXA320) += pxa320.o | 20 | obj-$(CONFIG_CPU_PXA320) += pxa320.o |
21 | obj-$(CONFIG_CPU_PXA930) += pxa930.o | ||
21 | 22 | ||
22 | # Specific board support | 23 | # Specific board support |
23 | obj-$(CONFIG_ARCH_GUMSTIX) += gumstix.o | 24 | obj-$(CONFIG_ARCH_GUMSTIX) += gumstix.o |
diff --git a/arch/arm/mach-pxa/pxa930.c b/arch/arm/mach-pxa/pxa930.c new file mode 100644 index 000000000000..9503897d049c --- /dev/null +++ b/arch/arm/mach-pxa/pxa930.c | |||
@@ -0,0 +1,190 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/mach-pxa/pxa930.c | ||
3 | * | ||
4 | * Code specific to PXA930 | ||
5 | * | ||
6 | * Copyright (C) 2007-2008 Marvell Internation 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 | * published by the Free Software Foundation. | ||
11 | */ | ||
12 | |||
13 | #include <linux/module.h> | ||
14 | #include <linux/kernel.h> | ||
15 | #include <linux/platform_device.h> | ||
16 | #include <linux/irq.h> | ||
17 | #include <linux/dma-mapping.h> | ||
18 | |||
19 | #include <asm/hardware.h> | ||
20 | #include <asm/arch/mfp-pxa930.h> | ||
21 | |||
22 | static struct pxa3xx_mfp_addr_map pxa930_mfp_addr_map[] __initdata = { | ||
23 | |||
24 | MFP_ADDR(GPIO0, 0x02e0), | ||
25 | MFP_ADDR(GPIO1, 0x02dc), | ||
26 | MFP_ADDR(GPIO2, 0x02e8), | ||
27 | MFP_ADDR(GPIO3, 0x02d8), | ||
28 | MFP_ADDR(GPIO4, 0x02e4), | ||
29 | MFP_ADDR(GPIO5, 0x02ec), | ||
30 | MFP_ADDR(GPIO6, 0x02f8), | ||
31 | MFP_ADDR(GPIO7, 0x02fc), | ||
32 | MFP_ADDR(GPIO8, 0x0300), | ||
33 | MFP_ADDR(GPIO9, 0x02d4), | ||
34 | MFP_ADDR(GPIO10, 0x02f4), | ||
35 | MFP_ADDR(GPIO11, 0x02f0), | ||
36 | MFP_ADDR(GPIO12, 0x0304), | ||
37 | MFP_ADDR(GPIO13, 0x0310), | ||
38 | MFP_ADDR(GPIO14, 0x0308), | ||
39 | MFP_ADDR(GPIO15, 0x030c), | ||
40 | MFP_ADDR(GPIO16, 0x04e8), | ||
41 | MFP_ADDR(GPIO17, 0x04f4), | ||
42 | MFP_ADDR(GPIO18, 0x04f8), | ||
43 | MFP_ADDR(GPIO19, 0x04fc), | ||
44 | MFP_ADDR(GPIO20, 0x0518), | ||
45 | MFP_ADDR(GPIO21, 0x051c), | ||
46 | MFP_ADDR(GPIO22, 0x04ec), | ||
47 | MFP_ADDR(GPIO23, 0x0500), | ||
48 | MFP_ADDR(GPIO24, 0x04f0), | ||
49 | MFP_ADDR(GPIO25, 0x0504), | ||
50 | MFP_ADDR(GPIO26, 0x0510), | ||
51 | MFP_ADDR(GPIO27, 0x0514), | ||
52 | MFP_ADDR(GPIO28, 0x0520), | ||
53 | MFP_ADDR(GPIO29, 0x0600), | ||
54 | MFP_ADDR(GPIO30, 0x0618), | ||
55 | MFP_ADDR(GPIO31, 0x0610), | ||
56 | MFP_ADDR(GPIO32, 0x060c), | ||
57 | MFP_ADDR(GPIO33, 0x061c), | ||
58 | MFP_ADDR(GPIO34, 0x0620), | ||
59 | MFP_ADDR(GPIO35, 0x0628), | ||
60 | MFP_ADDR(GPIO36, 0x062c), | ||
61 | MFP_ADDR(GPIO37, 0x0630), | ||
62 | MFP_ADDR(GPIO38, 0x0634), | ||
63 | MFP_ADDR(GPIO39, 0x0638), | ||
64 | MFP_ADDR(GPIO40, 0x063c), | ||
65 | MFP_ADDR(GPIO41, 0x0614), | ||
66 | MFP_ADDR(GPIO42, 0x0624), | ||
67 | MFP_ADDR(GPIO43, 0x0608), | ||
68 | MFP_ADDR(GPIO44, 0x0604), | ||
69 | MFP_ADDR(GPIO45, 0x050c), | ||
70 | MFP_ADDR(GPIO46, 0x0508), | ||
71 | MFP_ADDR(GPIO47, 0x02bc), | ||
72 | MFP_ADDR(GPIO48, 0x02b4), | ||
73 | MFP_ADDR(GPIO49, 0x02b8), | ||
74 | MFP_ADDR(GPIO50, 0x02c8), | ||
75 | MFP_ADDR(GPIO51, 0x02c0), | ||
76 | MFP_ADDR(GPIO52, 0x02c4), | ||
77 | MFP_ADDR(GPIO53, 0x02d0), | ||
78 | MFP_ADDR(GPIO54, 0x02cc), | ||
79 | MFP_ADDR(GPIO55, 0x029c), | ||
80 | MFP_ADDR(GPIO56, 0x02a0), | ||
81 | MFP_ADDR(GPIO57, 0x0294), | ||
82 | MFP_ADDR(GPIO58, 0x0298), | ||
83 | MFP_ADDR(GPIO59, 0x02a4), | ||
84 | MFP_ADDR(GPIO60, 0x02a8), | ||
85 | MFP_ADDR(GPIO61, 0x02b0), | ||
86 | MFP_ADDR(GPIO62, 0x02ac), | ||
87 | MFP_ADDR(GPIO63, 0x0640), | ||
88 | MFP_ADDR(GPIO64, 0x065c), | ||
89 | MFP_ADDR(GPIO65, 0x0648), | ||
90 | MFP_ADDR(GPIO66, 0x0644), | ||
91 | MFP_ADDR(GPIO67, 0x0674), | ||
92 | MFP_ADDR(GPIO68, 0x0658), | ||
93 | MFP_ADDR(GPIO69, 0x0654), | ||
94 | MFP_ADDR(GPIO70, 0x0660), | ||
95 | MFP_ADDR(GPIO71, 0x0668), | ||
96 | MFP_ADDR(GPIO72, 0x0664), | ||
97 | MFP_ADDR(GPIO73, 0x0650), | ||
98 | MFP_ADDR(GPIO74, 0x066c), | ||
99 | MFP_ADDR(GPIO75, 0x064c), | ||
100 | MFP_ADDR(GPIO76, 0x0670), | ||
101 | MFP_ADDR(GPIO77, 0x0678), | ||
102 | MFP_ADDR(GPIO78, 0x067c), | ||
103 | MFP_ADDR(GPIO79, 0x0694), | ||
104 | MFP_ADDR(GPIO80, 0x069c), | ||
105 | MFP_ADDR(GPIO81, 0x06a0), | ||
106 | MFP_ADDR(GPIO82, 0x06a4), | ||
107 | MFP_ADDR(GPIO83, 0x0698), | ||
108 | MFP_ADDR(GPIO84, 0x06bc), | ||
109 | MFP_ADDR(GPIO85, 0x06b4), | ||
110 | MFP_ADDR(GPIO86, 0x06b0), | ||
111 | MFP_ADDR(GPIO87, 0x06c0), | ||
112 | MFP_ADDR(GPIO88, 0x06c4), | ||
113 | MFP_ADDR(GPIO89, 0x06ac), | ||
114 | MFP_ADDR(GPIO90, 0x0680), | ||
115 | MFP_ADDR(GPIO91, 0x0684), | ||
116 | MFP_ADDR(GPIO92, 0x0688), | ||
117 | MFP_ADDR(GPIO93, 0x0690), | ||
118 | MFP_ADDR(GPIO94, 0x068c), | ||
119 | MFP_ADDR(GPIO95, 0x06a8), | ||
120 | MFP_ADDR(GPIO96, 0x06b8), | ||
121 | MFP_ADDR(GPIO97, 0x0410), | ||
122 | MFP_ADDR(GPIO98, 0x0418), | ||
123 | MFP_ADDR(GPIO99, 0x041c), | ||
124 | MFP_ADDR(GPIO100, 0x0414), | ||
125 | MFP_ADDR(GPIO101, 0x0408), | ||
126 | MFP_ADDR(GPIO102, 0x0324), | ||
127 | MFP_ADDR(GPIO103, 0x040c), | ||
128 | MFP_ADDR(GPIO104, 0x0400), | ||
129 | MFP_ADDR(GPIO105, 0x0328), | ||
130 | MFP_ADDR(GPIO106, 0x0404), | ||
131 | |||
132 | MFP_ADDR(nXCVREN, 0x0204), | ||
133 | MFP_ADDR(DF_CLE_nOE, 0x020c), | ||
134 | MFP_ADDR(DF_nADV1_ALE, 0x0218), | ||
135 | MFP_ADDR(DF_SCLK_E, 0x0214), | ||
136 | MFP_ADDR(DF_SCLK_S, 0x0210), | ||
137 | MFP_ADDR(nBE0, 0x021c), | ||
138 | MFP_ADDR(nBE1, 0x0220), | ||
139 | MFP_ADDR(DF_nADV2_ALE, 0x0224), | ||
140 | MFP_ADDR(DF_INT_RnB, 0x0228), | ||
141 | MFP_ADDR(DF_nCS0, 0x022c), | ||
142 | MFP_ADDR(DF_nCS1, 0x0230), | ||
143 | MFP_ADDR(nLUA, 0x0254), | ||
144 | MFP_ADDR(nLLA, 0x0258), | ||
145 | MFP_ADDR(DF_nWE, 0x0234), | ||
146 | MFP_ADDR(DF_nRE_nOE, 0x0238), | ||
147 | MFP_ADDR(DF_ADDR0, 0x024c), | ||
148 | MFP_ADDR(DF_ADDR1, 0x0250), | ||
149 | MFP_ADDR(DF_ADDR2, 0x025c), | ||
150 | MFP_ADDR(DF_ADDR3, 0x0260), | ||
151 | MFP_ADDR(DF_IO0, 0x023c), | ||
152 | MFP_ADDR(DF_IO1, 0x0240), | ||
153 | MFP_ADDR(DF_IO2, 0x0244), | ||
154 | MFP_ADDR(DF_IO3, 0x0248), | ||
155 | MFP_ADDR(DF_IO4, 0x0264), | ||
156 | MFP_ADDR(DF_IO5, 0x0268), | ||
157 | MFP_ADDR(DF_IO6, 0x026c), | ||
158 | MFP_ADDR(DF_IO7, 0x0270), | ||
159 | MFP_ADDR(DF_IO8, 0x0274), | ||
160 | MFP_ADDR(DF_IO9, 0x0278), | ||
161 | MFP_ADDR(DF_IO10, 0x027c), | ||
162 | MFP_ADDR(DF_IO11, 0x0280), | ||
163 | MFP_ADDR(DF_IO12, 0x0284), | ||
164 | MFP_ADDR(DF_IO13, 0x0288), | ||
165 | MFP_ADDR(DF_IO14, 0x028c), | ||
166 | MFP_ADDR(DF_IO15, 0x0290), | ||
167 | |||
168 | MFP_ADDR(GSIM_UIO, 0x0314), | ||
169 | MFP_ADDR(GSIM_UCLK, 0x0318), | ||
170 | MFP_ADDR(GSIM_UDET, 0x031c), | ||
171 | MFP_ADDR(GSIM_nURST, 0x0320), | ||
172 | |||
173 | MFP_ADDR(PMIC_INT, 0x06c8), | ||
174 | |||
175 | MFP_ADDR(RDY, 0x0200), | ||
176 | |||
177 | MFP_ADDR_END, | ||
178 | }; | ||
179 | |||
180 | static int __init pxa930_init(void) | ||
181 | { | ||
182 | if (cpu_is_pxa930()) { | ||
183 | pxa3xx_init_mfp(); | ||
184 | pxa3xx_mfp_init_addr(pxa930_mfp_addr_map); | ||
185 | } | ||
186 | |||
187 | return 0; | ||
188 | } | ||
189 | |||
190 | core_initcall(pxa930_init); | ||