diff options
author | Samuel Ortiz <sameo@openedhand.com> | 2007-09-25 10:27:46 +0000 |
---|---|---|
committer | Samuel Ortiz <sameo@openedhand.com> | 2007-09-25 10:27:46 +0000 |
commit | 6c85a2a0dc13fe2aa19df73c78ef1d805be35e64 (patch) | |
tree | 8d0e66bddeb00ea03103cf73265247e20ed7f4b8 | |
parent | b4c4ff16989f00e9c014b2fff8e755024b3cb221 (diff) | |
download | poky-6c85a2a0dc13fe2aa19df73c78ef1d805be35e64.tar.gz |
linux-rp: minimal zylonite kernel
We don't have a NAND driver yet, but we boot all the way up to
userspace.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2782 311d38ba-8fff-0310-9ca6-ca027cbcb966
7 files changed, 7506 insertions, 2 deletions
diff --git a/meta/conf/machine/zylonite.conf b/meta/conf/machine/zylonite.conf index f42c8c10ba..644675e849 100644 --- a/meta/conf/machine/zylonite.conf +++ b/meta/conf/machine/zylonite.conf | |||
@@ -17,7 +17,7 @@ IMAGE_FSTYPES ?= "tar.bz2 jffs2" | |||
17 | 17 | ||
18 | SERIAL_CONSOLE = "38400 ttyS0" | 18 | SERIAL_CONSOLE = "38400 ttyS0" |
19 | 19 | ||
20 | PREFERRED_PROVIDER_virtual/kernel = "linux-zylonite" | 20 | PREFERRED_PROVIDER_virtual/kernel = "linux-rp" |
21 | PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive" | 21 | PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive" |
22 | XSERVER = "xserver-kdrive-fbdev" | 22 | XSERVER = "xserver-kdrive-fbdev" |
23 | 23 | ||
diff --git a/meta/packages/linux/linux-rp-2.6.22+2.6.23-rc4/arm_pxa_20070923.patch b/meta/packages/linux/linux-rp-2.6.22+2.6.23-rc4/arm_pxa_20070923.patch new file mode 100644 index 0000000000..1fba1a3b03 --- /dev/null +++ b/meta/packages/linux/linux-rp-2.6.22+2.6.23-rc4/arm_pxa_20070923.patch | |||
@@ -0,0 +1,5975 @@ | |||
1 | # Base git commit: da8f153e51290e7438ba7da66234a864e5d3e1c1 | ||
2 | # (Revert "x86_64: Quicklist support for x86_64") | ||
3 | # | ||
4 | # Author: eric miao (Wed Sep 12 03:13:17 BST 2007) | ||
5 | # Committer: Russell King (Sun Sep 23 14:18:19 BST 2007) | ||
6 | # | ||
7 | # [ARM] pxa: PXA3xx base support | ||
8 | # | ||
9 | # Signed-off-by: eric miao | ||
10 | # Signed-off-by: Russell King | ||
11 | # | ||
12 | # arch/arm/Kconfig | 6 | ||
13 | # arch/arm/boot/compressed/head-xscale.S | 4 | ||
14 | # arch/arm/mach-pxa/Kconfig | 30 + | ||
15 | # arch/arm/mach-pxa/Makefile | 9 | ||
16 | # arch/arm/mach-pxa/clock.c | 79 ++-- | ||
17 | # arch/arm/mach-pxa/clock.h | 43 ++ | ||
18 | # arch/arm/mach-pxa/devices.h | 3 | ||
19 | # arch/arm/mach-pxa/generic.c | 146 ++++--- | ||
20 | # arch/arm/mach-pxa/generic.h | 26 + | ||
21 | # arch/arm/mach-pxa/irq.c | 80 ---- | ||
22 | # arch/arm/mach-pxa/mfp.c | 235 ++++++++++++ | ||
23 | # arch/arm/mach-pxa/pxa25x.c | 90 ++++ | ||
24 | # arch/arm/mach-pxa/pxa27x.c | 127 ++++++ | ||
25 | # arch/arm/mach-pxa/pxa300.c | 93 +++++ | ||
26 | # arch/arm/mach-pxa/pxa320.c | 88 ++++ | ||
27 | # arch/arm/mach-pxa/pxa3xx.c | 216 +++++++++++ | ||
28 | # arch/arm/mach-pxa/time.c | 53 ++ | ||
29 | # arch/arm/mach-pxa/zylonite.c | 184 +++++++++ | ||
30 | # arch/arm/mach-pxa/zylonite_pxa300.c | 188 ++++++++++ | ||
31 | # arch/arm/mach-pxa/zylonite_pxa320.c | 173 +++++++++ | ||
32 | # arch/arm/mm/Kconfig | 4 | ||
33 | # drivers/i2c/busses/i2c-pxa.c | 45 +- | ||
34 | # drivers/input/keyboard/pxa27x_keyboard.c | 25 + | ||
35 | # drivers/mmc/host/pxamci.c | 43 +- | ||
36 | # drivers/mmc/host/pxamci.h | 14 | ||
37 | # drivers/mtd/maps/lubbock-flash.c | 9 | ||
38 | # drivers/mtd/maps/mainstone-flash.c | 5 | ||
39 | # drivers/net/irda/pxaficp_ir.c | 51 ++ | ||
40 | # drivers/net/smc91x.c | 62 --- | ||
41 | # drivers/net/smc91x.h | 71 +++ | ||
42 | # drivers/serial/pxa.c | 163 ++++---- | ||
43 | # drivers/serial/serial_core.c | 18 | ||
44 | # drivers/usb/gadget/pxa2xx_udc.c | 68 ++- | ||
45 | # drivers/usb/gadget/pxa2xx_udc.h | 1 | ||
46 | # drivers/video/pxafb.c | 36 + | ||
47 | # drivers/video/pxafb.h | 1 | ||
48 | # include/asm-arm/arch-pxa/hardware.h | 72 +++ | ||
49 | # include/asm-arm/arch-pxa/irqs.h | 6 | ||
50 | # include/asm-arm/arch-pxa/mfp-pxa300.h | 574 ++++++++++++++++++++++++++++++ | ||
51 | # include/asm-arm/arch-pxa/mfp-pxa320.h | 446 ++++++++++++++++++++++++ | ||
52 | # include/asm-arm/arch-pxa/mfp.h | 576 +++++++++++++++++++++++++++++++ | ||
53 | # include/asm-arm/arch-pxa/pxa-regs.h | 2 | ||
54 | # include/asm-arm/arch-pxa/pxa3xx-regs.h | 75 ++++ | ||
55 | # include/asm-arm/arch-pxa/timex.h | 2 | ||
56 | # include/asm-arm/arch-pxa/zylonite.h | 35 + | ||
57 | # 45 files changed, 3825 insertions(+), 452 deletions(-) | ||
58 | # create mode 100644 arch/arm/mach-pxa/mfp.c | ||
59 | # create mode 100644 arch/arm/mach-pxa/pxa300.c | ||
60 | # create mode 100644 arch/arm/mach-pxa/pxa320.c | ||
61 | # create mode 100644 arch/arm/mach-pxa/pxa3xx.c | ||
62 | # create mode 100644 arch/arm/mach-pxa/zylonite.c | ||
63 | # create mode 100644 arch/arm/mach-pxa/zylonite_pxa300.c | ||
64 | # create mode 100644 arch/arm/mach-pxa/zylonite_pxa320.c | ||
65 | # create mode 100644 include/asm-arm/arch-pxa/mfp-pxa300.h | ||
66 | # create mode 100644 include/asm-arm/arch-pxa/mfp-pxa320.h | ||
67 | # create mode 100644 include/asm-arm/arch-pxa/mfp.h | ||
68 | # create mode 100644 include/asm-arm/arch-pxa/pxa3xx-regs.h | ||
69 | # create mode 100644 include/asm-arm/arch-pxa/zylonite.h | ||
70 | # | ||
71 | # Author: Russell King (Sat Sep 1 21:27:18 BST 2007) | ||
72 | # Committer: Russell King (Sun Sep 23 14:18:17 BST 2007) | ||
73 | # | ||
74 | # [NET] smc91x: fix PXA DMA support code | ||
75 | # | ||
76 | # The PXA DMA support code for smc91x doesn't pass a struct device to | ||
77 | # the dma_*map_single() functions, which leads to an oops in the dma | ||
78 | # bounce code. We have a struct device which was used to probe the | ||
79 | # SMC chip. Use it. | ||
80 | # | ||
81 | # (This patch is slightly larger because it requires struct smc_local | ||
82 | # to move into the header file.) | ||
83 | # | ||
84 | # Signed-off-by: Russell King | ||
85 | # | ||
86 | # | ||
87 | # Author: Russell King (Sat Sep 1 21:25:09 BST 2007) | ||
88 | # Committer: Russell King (Sun Sep 23 14:18:12 BST 2007) | ||
89 | # | ||
90 | # [SERIAL] Fix console initialisation ordering | ||
91 | # | ||
92 | # Ensure pm callback is called upon initialisation to place port in | ||
93 | # correct power saving state. Ensure console is initialised prior | ||
94 | # to deciding whether to power down the port. | ||
95 | # | ||
96 | # Signed-off-by: Russell King | ||
97 | # | ||
98 | # | ||
99 | # Author: Russell King (Wed Sep 19 09:21:51 BST 2007) | ||
100 | # Committer: Russell King (Sun Sep 23 14:18:07 BST 2007) | ||
101 | # | ||
102 | # [ARM] pxa: tidy up arch/arm/mach-pxa/Makefile | ||
103 | # | ||
104 | # Signed-off-by: Russell King | ||
105 | # | ||
106 | # | ||
107 | # Author: Russell King (Sat Sep 1 21:28:55 BST 2007) | ||
108 | # Committer: Russell King (Sun Sep 23 14:18:03 BST 2007) | ||
109 | # | ||
110 | # [ARM] lubbock, mainstone: only initialise if running on that platform | ||
111 | # | ||
112 | # Signed-off-by: Russell King | ||
113 | # | ||
114 | # | ||
115 | # Author: eric miao (Wed Aug 29 10:22:17 BST 2007) | ||
116 | # Committer: Russell King (Sun Sep 23 14:18:01 BST 2007) | ||
117 | # | ||
118 | # [ARM] 4560/1: pxa: move processor specific set_wake logic out of irq.c | ||
119 | # | ||
120 | # a function pxa_init_irq_set_wake() was introduced, so that | ||
121 | # processor specific code could install their own version | ||
122 | # | ||
123 | # code setting PFER and PRER registers within pxa_gpio_irq_type | ||
124 | # are removed, and the edge configuration is postponed to the | ||
125 | # (*set_wake) and copies the GRER and GFER register, which will | ||
126 | # always be set up correctly by pxa_gpio_irq_type() | ||
127 | # | ||
128 | # Signed-off-by: eric miao | ||
129 | # Signed-off-by: Russell King | ||
130 | # | ||
131 | # | ||
132 | # Author: eric miao (Wed Aug 29 10:18:47 BST 2007) | ||
133 | # Committer: Russell King (Sun Sep 23 14:17:59 BST 2007) | ||
134 | # | ||
135 | # [ARM] 4559/1: pxa: make PXA_LAST_GPIO a run-time variable | ||
136 | # | ||
137 | # This definition produces processor specific code in generic function | ||
138 | # pxa_gpio_mode(), thus creating inconsistencies for support of pxa25x | ||
139 | # and pxa27x in a single zImage. | ||
140 | # | ||
141 | # As David Brownell suggests, make it a run-time variable and initialize | ||
142 | # at run-time according to the number of GPIOs on the processor. For now | ||
143 | # the initialization happens in pxa_init_irq_gpio(), since there is | ||
144 | # already a parameter for that, besides, this is and MUST be earlier | ||
145 | # than any subsequent calls to pxa_gpio_mode(). | ||
146 | # | ||
147 | # Signed-off-by: eric miao | ||
148 | # Signed-off-by: Russell King | ||
149 | # | ||
150 | # | ||
151 | # Author: eric miao (Wed Aug 29 10:15:41 BST 2007) | ||
152 | # Committer: Russell King (Sun Sep 23 14:17:57 BST 2007) | ||
153 | # | ||
154 | # [ARM] 4558/1: pxa: remove MACH_TYPE_LUBBOCK assignment and leave it to boot loader | ||
155 | # | ||
156 | # since both u-boot and blob support passing MACH_TYPE_LUBBOCK to the | ||
157 | # kernel, it should be quite safe to remove this | ||
158 | # | ||
159 | # Signed-off-by: eric miao | ||
160 | # Acked-by: Nicolas Pitre | ||
161 | # Signed-off-by: Russell King | ||
162 | # | ||
163 | # | ||
164 | # Author: eric miao (Wed Sep 12 03:13:17 BST 2007) | ||
165 | # Committer: Russell King (Sun Sep 23 14:17:55 BST 2007) | ||
166 | # | ||
167 | # [ARM] pxa: add PXA3 cpu_is_xxx() macros | ||
168 | # | ||
169 | # Extracted from patch by Eric Miao, this adds the cpu_is_xxx() macros | ||
170 | # for identifying PXA3 SoCs. | ||
171 | # | ||
172 | # Signed-off-by: eric miao | ||
173 | # Signed-off-by: Russell King | ||
174 | # | ||
175 | # | ||
176 | # Author: Russell King (Wed Sep 19 09:38:32 BST 2007) | ||
177 | # Committer: Russell King (Sun Sep 23 14:17:51 BST 2007) | ||
178 | # | ||
179 | # [ARM] pxa: Make CPU_XSCALE depend on PXA25x or PXA27x | ||
180 | # | ||
181 | # PXA3 SoCs are supported by the Xscale3 CPU code rather than the | ||
182 | # Xscale CPU code. | ||
183 | # | ||
184 | # Signed-off-by: Russell King | ||
185 | # | ||
186 | # | ||
187 | # Author: Russell King (Wed Sep 19 09:33:55 BST 2007) | ||
188 | # Committer: Russell King (Sun Sep 23 14:17:48 BST 2007) | ||
189 | # | ||
190 | # [ARM] pxa: mark pxa_set_cken deprecated | ||
191 | # | ||
192 | # Allow the generic clock support code to fiddle with the CKEN register | ||
193 | # and mark pxa_set_cken() deprecated. | ||
194 | # | ||
195 | # Signed-off-by: Russell King | ||
196 | # | ||
197 | # | ||
198 | # Author: Russell King (Mon Aug 20 10:34:37 BST 2007) | ||
199 | # Committer: Russell King (Sun Sep 23 14:17:43 BST 2007) | ||
200 | # | ||
201 | # [ARM] pxa: remove get_lcdclk_frequency_10khz() | ||
202 | # | ||
203 | # get_lcdclk_frequency_10khz() is now redundant, remove it. Hide | ||
204 | # pxa27x_get_lcdclk_frequency_10khz() from public view. | ||
205 | # | ||
206 | # Signed-off-by: Russell King | ||
207 | # | ||
208 | # | ||
209 | # Author: Russell King (Sun Sep 2 17:09:23 BST 2007) | ||
210 | # Committer: Russell King (Sun Sep 23 14:17:39 BST 2007) | ||
211 | # | ||
212 | # [ARM] pxa: update pxa irda driver to use clk support | ||
213 | # | ||
214 | # Signed-off-by: Russell King | ||
215 | # | ||
216 | # | ||
217 | # Author: Russell King (Sun Sep 2 17:08:42 BST 2007) | ||
218 | # Committer: Russell King (Sun Sep 23 14:17:36 BST 2007) | ||
219 | # | ||
220 | # [ARM] pxa: Make STUART and FICP clocks available | ||
221 | # | ||
222 | # Signed-off-by: Russell King | ||
223 | # | ||
224 | # | ||
225 | # Author: Russell King (Mon Aug 20 10:33:35 BST 2007) | ||
226 | # Committer: Russell King (Sun Sep 23 14:17:34 BST 2007) | ||
227 | # | ||
228 | # [ARM] pxa: update PXA UDC driver to use clk support | ||
229 | # | ||
230 | # Note: this produces a WARN() dump. | ||
231 | # | ||
232 | # Signed-off-by: Russell King | ||
233 | # | ||
234 | # | ||
235 | # Author: Russell King (Mon Aug 20 10:28:15 BST 2007) | ||
236 | # Committer: Russell King (Sun Sep 23 14:17:31 BST 2007) | ||
237 | # | ||
238 | # [ARM] pxa: update pxa serial driver to use clk support | ||
239 | # | ||
240 | # Signed-off-by: Russell King | ||
241 | # | ||
242 | # | ||
243 | # Author: Russell King (Mon Aug 20 10:20:03 BST 2007) | ||
244 | # Committer: Russell King (Sun Sep 23 14:17:27 BST 2007) | ||
245 | # | ||
246 | # [ARM] pxa: update PXA MMC interface driver to use clk support | ||
247 | # | ||
248 | # Signed-off-by: Russell King | ||
249 | # | ||
250 | # | ||
251 | # Author: Russell King (Mon Aug 20 10:19:39 BST 2007) | ||
252 | # Committer: Russell King (Sun Sep 23 14:17:23 BST 2007) | ||
253 | # | ||
254 | # [ARM] pxa: update pxa27x keypad driver to use clk support | ||
255 | # | ||
256 | # Signed-off-by: Russell King | ||
257 | # | ||
258 | # | ||
259 | # Author: Russell King (Mon Aug 20 10:19:10 BST 2007) | ||
260 | # Committer: Russell King (Sun Sep 23 14:17:19 BST 2007) | ||
261 | # | ||
262 | # [ARM] pxa: update pxa i2c driver to use clk support | ||
263 | # | ||
264 | # Signed-off-by: Russell King | ||
265 | # | ||
266 | # | ||
267 | # Author: Russell King (Mon Aug 20 10:18:42 BST 2007) | ||
268 | # Committer: Russell King (Sun Sep 23 14:16:50 BST 2007) | ||
269 | # | ||
270 | # [ARM] pxa: update pxafb to use clk support | ||
271 | # | ||
272 | # Signed-off-by: Russell King | ||
273 | # | ||
274 | # | ||
275 | # Author: Russell King (Mon Aug 20 10:18:02 BST 2007) | ||
276 | # Committer: Russell King (Sat Sep 22 20:48:09 BST 2007) | ||
277 | # | ||
278 | # [ARM] pxa: introduce clk support for PXA SoC clocks | ||
279 | # | ||
280 | # Signed-off-by: Russell King | ||
281 | # | ||
282 | # create mode 100644 arch/arm/mach-pxa/clock.h | ||
283 | # | ||
284 | # Author: Russell King (Mon Aug 20 10:09:18 BST 2007) | ||
285 | # Committer: Russell King (Sat Sep 22 20:48:09 BST 2007) | ||
286 | # | ||
287 | # [ARM] pxa: make pxa27x devices globally visible | ||
288 | # | ||
289 | # Signed-off-by: Russell King | ||
290 | # | ||
291 | # | ||
292 | # Author: Russell King (Mon Aug 20 10:07:44 BST 2007) | ||
293 | # Committer: Russell King (Sat Sep 22 20:48:08 BST 2007) | ||
294 | # | ||
295 | # [ARM] pxa: fix naming of memory/lcd/core clock functions | ||
296 | # | ||
297 | # Rename pxa25x and pxa27x memory/lcd/core clock functions, and | ||
298 | # select the correct version at run time. | ||
299 | # | ||
300 | # Signed-off-by: Russell King | ||
301 | # | ||
302 | # | ||
303 | # Author: Russell King (Mon Aug 20 09:47:41 BST 2007) | ||
304 | # Committer: Russell King (Sat Sep 22 20:48:08 BST 2007) | ||
305 | # | ||
306 | # [ARM] pxa: convert PXA serial drivers to use platform resources | ||
307 | # | ||
308 | # Signed-off-by: Russell King | ||
309 | # | ||
310 | # | ||
311 | # Author: Russell King (Sat Sep 1 21:12:50 BST 2007) | ||
312 | # Committer: Russell King (Sat Sep 22 20:48:07 BST 2007) | ||
313 | # | ||
314 | # [ARM] pxa: make pxa timer initialisation select clock rate at runtime | ||
315 | # | ||
316 | # Rather than using the compile-time constant CLOCK_TICK_RATE, select | ||
317 | # the clock tick rate at run time. We organise the selection so that | ||
318 | # PXA3 automatically falls out with the right tick rate. | ||
319 | # | ||
320 | # Signed-off-by: Russell King | ||
321 | # | ||
322 | # | ||
323 | # Author: Nicolas Pitre (Fri Aug 17 16:55:22 BST 2007) | ||
324 | # Committer: Russell King (Sat Sep 22 20:48:05 BST 2007) | ||
325 | # | ||
326 | # [ARM] 4550/1: sched_clock on PXA should cope with run time clock rate selection | ||
327 | # | ||
328 | # The previous implementation was relying on compile time optimizations | ||
329 | # based on a constant clock rate. However, support for different PXA | ||
330 | # flavors in the same kernel binary requires that the clock be selected at | ||
331 | # run time, so here it is. | ||
332 | # | ||
333 | # Let's move this code to a more appropriate location while at it. | ||
334 | # | ||
335 | # Signed-off-by: Nicolas Pitre | ||
336 | # Signed-off-by: Russell King | ||
337 | # | ||
338 | # | ||
339 | Index: linux-2.6.22/arch/arm/Kconfig | ||
340 | =================================================================== | ||
341 | --- linux-2.6.22.orig/arch/arm/Kconfig 2007-09-24 20:57:20.000000000 +0200 | ||
342 | +++ linux-2.6.22/arch/arm/Kconfig 2007-09-24 20:57:20.000000000 +0200 | ||
343 | @@ -336,14 +336,14 @@ | ||
344 | This enables support for Philips PNX4008 mobile platform. | ||
345 | |||
346 | config ARCH_PXA | ||
347 | - bool "PXA2xx-based" | ||
348 | + bool "PXA2xx/PXA3xx-based" | ||
349 | depends on MMU | ||
350 | select ARCH_MTD_XIP | ||
351 | select GENERIC_GPIO | ||
352 | select GENERIC_TIME | ||
353 | select GENERIC_CLOCKEVENTS | ||
354 | help | ||
355 | - Support for Intel's PXA2XX processor line. | ||
356 | + Support for Intel/Marvell's PXA2xx/PXA3xx processor line. | ||
357 | |||
358 | config ARCH_RPC | ||
359 | bool "RiscPC" | ||
360 | @@ -486,7 +486,7 @@ | ||
361 | config IWMMXT | ||
362 | bool "Enable iWMMXt support" | ||
363 | depends on CPU_XSCALE || CPU_XSC3 | ||
364 | - default y if PXA27x | ||
365 | + default y if PXA27x || PXA3xx | ||
366 | help | ||
367 | Enable support for iWMMXt context switching at run time if | ||
368 | running on a CPU that supports it. | ||
369 | Index: linux-2.6.22/arch/arm/boot/compressed/head-xscale.S | ||
370 | =================================================================== | ||
371 | --- linux-2.6.22.orig/arch/arm/boot/compressed/head-xscale.S 2007-09-24 20:56:50.000000000 +0200 | ||
372 | +++ linux-2.6.22/arch/arm/boot/compressed/head-xscale.S 2007-09-24 21:03:05.000000000 +0200 | ||
373 | @@ -33,10 +33,6 @@ | ||
374 | bic r0, r0, #0x1000 @ clear Icache | ||
375 | mcr p15, 0, r0, c1, c0, 0 | ||
376 | |||
377 | -#ifdef CONFIG_ARCH_LUBBOCK | ||
378 | - mov r7, #MACH_TYPE_LUBBOCK | ||
379 | -#endif | ||
380 | - | ||
381 | #ifdef CONFIG_ARCH_COTULLA_IDP | ||
382 | mov r7, #MACH_TYPE_COTULLA_IDP | ||
383 | #endif | ||
384 | Index: linux-2.6.22/arch/arm/mach-pxa/Kconfig | ||
385 | =================================================================== | ||
386 | --- linux-2.6.22.orig/arch/arm/mach-pxa/Kconfig 2007-09-24 20:57:20.000000000 +0200 | ||
387 | +++ linux-2.6.22/arch/arm/mach-pxa/Kconfig 2007-09-24 20:57:20.000000000 +0200 | ||
388 | @@ -1,6 +1,24 @@ | ||
389 | if ARCH_PXA | ||
390 | |||
391 | -menu "Intel PXA2xx Implementations" | ||
392 | +menu "Intel PXA2xx/PXA3xx Implementations" | ||
393 | + | ||
394 | +if PXA3xx | ||
395 | + | ||
396 | +menu "Supported PXA3xx Processor Variants" | ||
397 | + | ||
398 | +config CPU_PXA300 | ||
399 | + bool "PXA300 (codename Monahans-L)" | ||
400 | + | ||
401 | +config CPU_PXA310 | ||
402 | + bool "PXA310 (codename Monahans-LV)" | ||
403 | + select CPU_PXA300 | ||
404 | + | ||
405 | +config CPU_PXA320 | ||
406 | + bool "PXA320 (codename Monahans-P)" | ||
407 | + | ||
408 | +endmenu | ||
409 | + | ||
410 | +endif | ||
411 | |||
412 | choice | ||
413 | prompt "Select target board" | ||
414 | @@ -41,6 +59,11 @@ | ||
415 | bool "CompuLab EM-x270 platform" | ||
416 | select PXA27x | ||
417 | |||
418 | + | ||
419 | +config MACH_ZYLONITE | ||
420 | + bool "PXA3xx Development Platform" | ||
421 | + select PXA3xx | ||
422 | + | ||
423 | config MACH_HX2750 | ||
424 | bool "HP iPAQ hx2750" | ||
425 | select PXA27x | ||
426 | @@ -228,6 +251,11 @@ | ||
427 | help | ||
428 | Select code specific to PXA27x variants | ||
429 | |||
430 | +config PXA3xx | ||
431 | + bool | ||
432 | + help | ||
433 | + Select code specific to PXA3xx variants | ||
434 | + | ||
435 | config PXA_SHARP_C7xx | ||
436 | bool | ||
437 | select PXA_SSP | ||
438 | Index: linux-2.6.22/arch/arm/mach-pxa/Makefile | ||
439 | =================================================================== | ||
440 | --- linux-2.6.22.orig/arch/arm/mach-pxa/Makefile 2007-09-24 20:57:20.000000000 +0200 | ||
441 | +++ linux-2.6.22/arch/arm/mach-pxa/Makefile 2007-09-24 21:03:57.000000000 +0200 | ||
442 | @@ -6,6 +6,9 @@ | ||
443 | obj-y += clock.o generic.o irq.o dma.o time.o | ||
444 | obj-$(CONFIG_PXA25x) += pxa25x.o | ||
445 | obj-$(CONFIG_PXA27x) += pxa27x.o | ||
446 | +obj-$(CONFIG_PXA3xx) += pxa3xx.o mfp.o | ||
447 | +obj-$(CONFIG_CPU_PXA300) += pxa300.o | ||
448 | +obj-$(CONFIG_CPU_PXA320) += pxa320.o | ||
449 | |||
450 | # Specific board support | ||
451 | obj-$(CONFIG_ARCH_LUBBOCK) += lubbock.o | ||
452 | @@ -19,6 +22,12 @@ | ||
453 | obj-$(CONFIG_MACH_POODLE) += poodle.o corgi_ssp.o sharpsl_pm.o poodle_pm.o | ||
454 | obj-$(CONFIG_MACH_TOSA) += tosa.o | ||
455 | obj-$(CONFIG_MACH_EM_X270) += em-x270.o | ||
456 | +ifeq ($(CONFIG_MACH_ZYLONITE),y) | ||
457 | + obj-y += zylonite.o | ||
458 | + obj-$(CONFIG_CPU_PXA300) += zylonite_pxa300.o | ||
459 | + obj-$(CONFIG_CPU_PXA320) += zylonite_pxa320.o | ||
460 | +endif | ||
461 | + | ||
462 | obj-$(CONFIG_MACH_HX2750) += hx2750.o hx2750_test.o | ||
463 | obj-$(CONFIG_MACH_HTCUNIVERSAL) += htcuniversal/ | ||
464 | |||
465 | Index: linux-2.6.22/arch/arm/mach-pxa/clock.c | ||
466 | =================================================================== | ||
467 | --- linux-2.6.22.orig/arch/arm/mach-pxa/clock.c 2007-09-24 20:56:51.000000000 +0200 | ||
468 | +++ linux-2.6.22/arch/arm/mach-pxa/clock.c 2007-09-24 20:57:20.000000000 +0200 | ||
469 | @@ -9,19 +9,15 @@ | ||
470 | #include <linux/string.h> | ||
471 | #include <linux/clk.h> | ||
472 | #include <linux/spinlock.h> | ||
473 | +#include <linux/platform_device.h> | ||
474 | +#include <linux/delay.h> | ||
475 | |||
476 | #include <asm/arch/pxa-regs.h> | ||
477 | #include <asm/hardware.h> | ||
478 | |||
479 | -struct clk { | ||
480 | - struct list_head node; | ||
481 | - unsigned long rate; | ||
482 | - struct module *owner; | ||
483 | - const char *name; | ||
484 | - unsigned int enabled; | ||
485 | - void (*enable)(void); | ||
486 | - void (*disable)(void); | ||
487 | -}; | ||
488 | +#include "devices.h" | ||
489 | +#include "generic.h" | ||
490 | +#include "clock.h" | ||
491 | |||
492 | static LIST_HEAD(clocks); | ||
493 | static DEFINE_MUTEX(clocks_mutex); | ||
494 | @@ -33,7 +29,8 @@ | ||
495 | |||
496 | mutex_lock(&clocks_mutex); | ||
497 | list_for_each_entry(p, &clocks, node) { | ||
498 | - if (strcmp(id, p->name) == 0 && try_module_get(p->owner)) { | ||
499 | + if (strcmp(id, p->name) == 0 && | ||
500 | + (p->dev == NULL || p->dev == dev)) { | ||
501 | clk = p; | ||
502 | break; | ||
503 | } | ||
504 | @@ -46,7 +43,6 @@ | ||
505 | |||
506 | void clk_put(struct clk *clk) | ||
507 | { | ||
508 | - module_put(clk->owner); | ||
509 | } | ||
510 | EXPORT_SYMBOL(clk_put); | ||
511 | |||
512 | @@ -56,8 +52,12 @@ | ||
513 | |||
514 | spin_lock_irqsave(&clocks_lock, flags); | ||
515 | if (clk->enabled++ == 0) | ||
516 | - clk->enable(); | ||
517 | + clk->ops->enable(clk); | ||
518 | spin_unlock_irqrestore(&clocks_lock, flags); | ||
519 | + | ||
520 | + if (clk->delay) | ||
521 | + udelay(clk->delay); | ||
522 | + | ||
523 | return 0; | ||
524 | } | ||
525 | EXPORT_SYMBOL(clk_enable); | ||
526 | @@ -70,54 +70,75 @@ | ||
527 | |||
528 | spin_lock_irqsave(&clocks_lock, flags); | ||
529 | if (--clk->enabled == 0) | ||
530 | - clk->disable(); | ||
531 | + clk->ops->disable(clk); | ||
532 | spin_unlock_irqrestore(&clocks_lock, flags); | ||
533 | } | ||
534 | EXPORT_SYMBOL(clk_disable); | ||
535 | |||
536 | unsigned long clk_get_rate(struct clk *clk) | ||
537 | { | ||
538 | - return clk->rate; | ||
539 | + unsigned long rate; | ||
540 | + | ||
541 | + rate = clk->rate; | ||
542 | + if (clk->ops->getrate) | ||
543 | + rate = clk->ops->getrate(clk); | ||
544 | + | ||
545 | + return rate; | ||
546 | } | ||
547 | EXPORT_SYMBOL(clk_get_rate); | ||
548 | |||
549 | |||
550 | -static void clk_gpio27_enable(void) | ||
551 | +static void clk_gpio27_enable(struct clk *clk) | ||
552 | { | ||
553 | pxa_gpio_mode(GPIO11_3_6MHz_MD); | ||
554 | } | ||
555 | |||
556 | -static void clk_gpio27_disable(void) | ||
557 | +static void clk_gpio27_disable(struct clk *clk) | ||
558 | { | ||
559 | } | ||
560 | |||
561 | -static struct clk clk_gpio27 = { | ||
562 | - .name = "GPIO27_CLK", | ||
563 | - .rate = 3686400, | ||
564 | +static const struct clkops clk_gpio27_ops = { | ||
565 | .enable = clk_gpio27_enable, | ||
566 | .disable = clk_gpio27_disable, | ||
567 | }; | ||
568 | |||
569 | -int clk_register(struct clk *clk) | ||
570 | + | ||
571 | +void clk_cken_enable(struct clk *clk) | ||
572 | { | ||
573 | - mutex_lock(&clocks_mutex); | ||
574 | - list_add(&clk->node, &clocks); | ||
575 | - mutex_unlock(&clocks_mutex); | ||
576 | - return 0; | ||
577 | + CKEN |= 1 << clk->cken; | ||
578 | } | ||
579 | -EXPORT_SYMBOL(clk_register); | ||
580 | |||
581 | -void clk_unregister(struct clk *clk) | ||
582 | +void clk_cken_disable(struct clk *clk) | ||
583 | { | ||
584 | + CKEN &= ~(1 << clk->cken); | ||
585 | +} | ||
586 | + | ||
587 | +const struct clkops clk_cken_ops = { | ||
588 | + .enable = clk_cken_enable, | ||
589 | + .disable = clk_cken_disable, | ||
590 | +}; | ||
591 | + | ||
592 | +static struct clk common_clks[] = { | ||
593 | + { | ||
594 | + .name = "GPIO27_CLK", | ||
595 | + .ops = &clk_gpio27_ops, | ||
596 | + .rate = 3686400, | ||
597 | + }, | ||
598 | +}; | ||
599 | + | ||
600 | +void clks_register(struct clk *clks, size_t num) | ||
601 | +{ | ||
602 | + int i; | ||
603 | + | ||
604 | mutex_lock(&clocks_mutex); | ||
605 | - list_del(&clk->node); | ||
606 | + for (i = 0; i < num; i++) | ||
607 | + list_add(&clks[i].node, &clocks); | ||
608 | mutex_unlock(&clocks_mutex); | ||
609 | } | ||
610 | -EXPORT_SYMBOL(clk_unregister); | ||
611 | |||
612 | static int __init clk_init(void) | ||
613 | { | ||
614 | - clk_register(&clk_gpio27); | ||
615 | + clks_register(common_clks, ARRAY_SIZE(common_clks)); | ||
616 | return 0; | ||
617 | } | ||
618 | arch_initcall(clk_init); | ||
619 | Index: linux-2.6.22/arch/arm/mach-pxa/clock.h | ||
620 | =================================================================== | ||
621 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
622 | +++ linux-2.6.22/arch/arm/mach-pxa/clock.h 2007-09-24 20:57:20.000000000 +0200 | ||
623 | @@ -0,0 +1,43 @@ | ||
624 | +struct clk; | ||
625 | + | ||
626 | +struct clkops { | ||
627 | + void (*enable)(struct clk *); | ||
628 | + void (*disable)(struct clk *); | ||
629 | + unsigned long (*getrate)(struct clk *); | ||
630 | +}; | ||
631 | + | ||
632 | +struct clk { | ||
633 | + struct list_head node; | ||
634 | + const char *name; | ||
635 | + struct device *dev; | ||
636 | + const struct clkops *ops; | ||
637 | + unsigned long rate; | ||
638 | + unsigned int cken; | ||
639 | + unsigned int delay; | ||
640 | + unsigned int enabled; | ||
641 | +}; | ||
642 | + | ||
643 | +#define INIT_CKEN(_name, _cken, _rate, _delay, _dev) \ | ||
644 | + { \ | ||
645 | + .name = _name, \ | ||
646 | + .dev = _dev, \ | ||
647 | + .ops = &clk_cken_ops, \ | ||
648 | + .rate = _rate, \ | ||
649 | + .cken = CKEN_##_cken, \ | ||
650 | + .delay = _delay, \ | ||
651 | + } | ||
652 | + | ||
653 | +#define INIT_CK(_name, _cken, _ops, _dev) \ | ||
654 | + { \ | ||
655 | + .name = _name, \ | ||
656 | + .dev = _dev, \ | ||
657 | + .ops = _ops, \ | ||
658 | + .cken = CKEN_##_cken, \ | ||
659 | + } | ||
660 | + | ||
661 | +extern const struct clkops clk_cken_ops; | ||
662 | + | ||
663 | +void clk_cken_enable(struct clk *clk); | ||
664 | +void clk_cken_disable(struct clk *clk); | ||
665 | + | ||
666 | +void clks_register(struct clk *clks, size_t num); | ||
667 | Index: linux-2.6.22/arch/arm/mach-pxa/devices.h | ||
668 | =================================================================== | ||
669 | --- linux-2.6.22.orig/arch/arm/mach-pxa/devices.h 2007-09-24 20:56:51.000000000 +0200 | ||
670 | +++ linux-2.6.22/arch/arm/mach-pxa/devices.h 2007-09-24 20:57:20.000000000 +0200 | ||
671 | @@ -9,3 +9,6 @@ | ||
672 | extern struct platform_device pxa_device_i2s; | ||
673 | extern struct platform_device pxa_device_ficp; | ||
674 | extern struct platform_device pxa_device_rtc; | ||
675 | + | ||
676 | +extern struct platform_device pxa27x_device_i2c_power; | ||
677 | +extern struct platform_device pxa27x_device_ohci; | ||
678 | Index: linux-2.6.22/arch/arm/mach-pxa/generic.c | ||
679 | =================================================================== | ||
680 | --- linux-2.6.22.orig/arch/arm/mach-pxa/generic.c 2007-09-24 20:57:20.000000000 +0200 | ||
681 | +++ linux-2.6.22/arch/arm/mach-pxa/generic.c 2007-09-24 20:57:20.000000000 +0200 | ||
682 | @@ -25,10 +25,6 @@ | ||
683 | #include <linux/pm.h> | ||
684 | #include <linux/string.h> | ||
685 | |||
686 | -#include <linux/sched.h> | ||
687 | -#include <asm/cnt32_to_63.h> | ||
688 | -#include <asm/div64.h> | ||
689 | - | ||
690 | #include <asm/hardware.h> | ||
691 | #include <asm/irq.h> | ||
692 | #include <asm/system.h> | ||
693 | @@ -48,66 +44,39 @@ | ||
694 | #include "generic.h" | ||
695 | |||
696 | /* | ||
697 | - * This is the PXA2xx sched_clock implementation. This has a resolution | ||
698 | - * of at least 308ns and a maximum value that depends on the value of | ||
699 | - * CLOCK_TICK_RATE. | ||
700 | - * | ||
701 | - * The return value is guaranteed to be monotonic in that range as | ||
702 | - * long as there is always less than 582 seconds between successive | ||
703 | - * calls to this function. | ||
704 | + * Get the clock frequency as reflected by CCCR and the turbo flag. | ||
705 | + * We assume these values have been applied via a fcs. | ||
706 | + * If info is not 0 we also display the current settings. | ||
707 | */ | ||
708 | -unsigned long long sched_clock(void) | ||
709 | +unsigned int get_clk_frequency_khz(int info) | ||
710 | { | ||
711 | - unsigned long long v = cnt32_to_63(OSCR); | ||
712 | - /* Note: top bit ov v needs cleared unless multiplier is even. */ | ||
713 | - | ||
714 | -#if CLOCK_TICK_RATE == 3686400 | ||
715 | - /* 1E9 / 3686400 => 78125 / 288, max value = 32025597s (370 days). */ | ||
716 | - /* The <<1 is used to get rid of tick.hi top bit */ | ||
717 | - v *= 78125<<1; | ||
718 | - do_div(v, 288<<1); | ||
719 | -#elif CLOCK_TICK_RATE == 3250000 | ||
720 | - /* 1E9 / 3250000 => 4000 / 13, max value = 709490156s (8211 days) */ | ||
721 | - v *= 4000; | ||
722 | - do_div(v, 13); | ||
723 | -#elif CLOCK_TICK_RATE == 3249600 | ||
724 | - /* 1E9 / 3249600 => 625000 / 2031, max value = 4541295s (52 days) */ | ||
725 | - v *= 625000; | ||
726 | - do_div(v, 2031); | ||
727 | -#else | ||
728 | -#warning "consider fixing sched_clock for your value of CLOCK_TICK_RATE" | ||
729 | - /* | ||
730 | - * 96-bit math to perform tick * NSEC_PER_SEC / CLOCK_TICK_RATE for | ||
731 | - * any value of CLOCK_TICK_RATE. Max value is in the 80 thousand | ||
732 | - * years range and truncation to unsigned long long limits it to | ||
733 | - * sched_clock's max range of ~584 years. This is nice but with | ||
734 | - * higher computation cost. | ||
735 | - */ | ||
736 | - { | ||
737 | - union { | ||
738 | - unsigned long long val; | ||
739 | - struct { unsigned long lo, hi; }; | ||
740 | - } x; | ||
741 | - unsigned long long y; | ||
742 | - | ||
743 | - x.val = v; | ||
744 | - x.hi &= 0x7fffffff; | ||
745 | - y = (unsigned long long)x.lo * NSEC_PER_SEC; | ||
746 | - x.lo = y; | ||
747 | - y = (y >> 32) + (unsigned long long)x.hi * NSEC_PER_SEC; | ||
748 | - x.hi = do_div(y, CLOCK_TICK_RATE); | ||
749 | - do_div(x.val, CLOCK_TICK_RATE); | ||
750 | - x.hi += y; | ||
751 | - v = x.val; | ||
752 | - } | ||
753 | -#endif | ||
754 | + if (cpu_is_pxa21x() || cpu_is_pxa25x()) | ||
755 | + return pxa25x_get_clk_frequency_khz(info); | ||
756 | + else if (cpu_is_pxa27x()) | ||
757 | + return pxa27x_get_clk_frequency_khz(info); | ||
758 | + else | ||
759 | + return pxa3xx_get_clk_frequency_khz(info); | ||
760 | +} | ||
761 | +EXPORT_SYMBOL(get_clk_frequency_khz); | ||
762 | |||
763 | - return v; | ||
764 | +/* | ||
765 | + * Return the current memory clock frequency in units of 10kHz | ||
766 | + */ | ||
767 | +unsigned int get_memclk_frequency_10khz(void) | ||
768 | +{ | ||
769 | + if (cpu_is_pxa21x() || cpu_is_pxa25x()) | ||
770 | + return pxa25x_get_memclk_frequency_10khz(); | ||
771 | + else if (cpu_is_pxa27x()) | ||
772 | + return pxa27x_get_memclk_frequency_10khz(); | ||
773 | + else | ||
774 | + return pxa3xx_get_memclk_frequency_10khz(); | ||
775 | } | ||
776 | +EXPORT_SYMBOL(get_memclk_frequency_10khz); | ||
777 | |||
778 | /* | ||
779 | * Handy function to set GPIO alternate functions | ||
780 | */ | ||
781 | +int pxa_last_gpio; | ||
782 | |||
783 | int pxa_gpio_mode(int gpio_mode) | ||
784 | { | ||
785 | @@ -116,7 +85,7 @@ | ||
786 | int fn = (gpio_mode & GPIO_MD_MASK_FN) >> 8; | ||
787 | int gafr; | ||
788 | |||
789 | - if (gpio > PXA_LAST_GPIO) | ||
790 | + if (gpio > pxa_last_gpio) | ||
791 | return -EINVAL; | ||
792 | |||
793 | local_irq_save(flags); | ||
794 | @@ -160,7 +129,7 @@ | ||
795 | /* | ||
796 | * Routine to safely enable or disable a clock in the CKEN | ||
797 | */ | ||
798 | -void pxa_set_cken(int clock, int enable) | ||
799 | +void __pxa_set_cken(int clock, int enable) | ||
800 | { | ||
801 | unsigned long flags; | ||
802 | local_irq_save(flags); | ||
803 | @@ -173,7 +142,7 @@ | ||
804 | local_irq_restore(flags); | ||
805 | } | ||
806 | |||
807 | -EXPORT_SYMBOL(pxa_set_cken); | ||
808 | +EXPORT_SYMBOL(__pxa_set_cken); | ||
809 | |||
810 | /* | ||
811 | * Intel PXA2xx internal register mapping. | ||
812 | @@ -330,21 +299,80 @@ | ||
813 | pxa_device_fb.dev.parent = parent_dev; | ||
814 | } | ||
815 | |||
816 | +static struct resource pxa_resource_ffuart[] = { | ||
817 | + { | ||
818 | + .start = __PREG(FFUART), | ||
819 | + .end = __PREG(FFUART) + 35, | ||
820 | + .flags = IORESOURCE_MEM, | ||
821 | + }, { | ||
822 | + .start = IRQ_FFUART, | ||
823 | + .end = IRQ_FFUART, | ||
824 | + .flags = IORESOURCE_IRQ, | ||
825 | + } | ||
826 | +}; | ||
827 | + | ||
828 | struct platform_device pxa_device_ffuart= { | ||
829 | .name = "pxa2xx-uart", | ||
830 | .id = 0, | ||
831 | + .resource = pxa_resource_ffuart, | ||
832 | + .num_resources = ARRAY_SIZE(pxa_resource_ffuart), | ||
833 | +}; | ||
834 | + | ||
835 | +static struct resource pxa_resource_btuart[] = { | ||
836 | + { | ||
837 | + .start = __PREG(BTUART), | ||
838 | + .end = __PREG(BTUART) + 35, | ||
839 | + .flags = IORESOURCE_MEM, | ||
840 | + }, { | ||
841 | + .start = IRQ_BTUART, | ||
842 | + .end = IRQ_BTUART, | ||
843 | + .flags = IORESOURCE_IRQ, | ||
844 | + } | ||
845 | }; | ||
846 | + | ||
847 | struct platform_device pxa_device_btuart = { | ||
848 | .name = "pxa2xx-uart", | ||
849 | .id = 1, | ||
850 | + .resource = pxa_resource_btuart, | ||
851 | + .num_resources = ARRAY_SIZE(pxa_resource_btuart), | ||
852 | }; | ||
853 | + | ||
854 | +static struct resource pxa_resource_stuart[] = { | ||
855 | + { | ||
856 | + .start = __PREG(STUART), | ||
857 | + .end = __PREG(STUART) + 35, | ||
858 | + .flags = IORESOURCE_MEM, | ||
859 | + }, { | ||
860 | + .start = IRQ_STUART, | ||
861 | + .end = IRQ_STUART, | ||
862 | + .flags = IORESOURCE_IRQ, | ||
863 | + } | ||
864 | +}; | ||
865 | + | ||
866 | struct platform_device pxa_device_stuart = { | ||
867 | .name = "pxa2xx-uart", | ||
868 | .id = 2, | ||
869 | + .resource = pxa_resource_stuart, | ||
870 | + .num_resources = ARRAY_SIZE(pxa_resource_stuart), | ||
871 | +}; | ||
872 | + | ||
873 | +static struct resource pxa_resource_hwuart[] = { | ||
874 | + { | ||
875 | + .start = __PREG(HWUART), | ||
876 | + .end = __PREG(HWUART) + 47, | ||
877 | + .flags = IORESOURCE_MEM, | ||
878 | + }, { | ||
879 | + .start = IRQ_HWUART, | ||
880 | + .end = IRQ_HWUART, | ||
881 | + .flags = IORESOURCE_IRQ, | ||
882 | + } | ||
883 | }; | ||
884 | + | ||
885 | struct platform_device pxa_device_hwuart = { | ||
886 | .name = "pxa2xx-uart", | ||
887 | .id = 3, | ||
888 | + .resource = pxa_resource_hwuart, | ||
889 | + .num_resources = ARRAY_SIZE(pxa_resource_hwuart), | ||
890 | }; | ||
891 | |||
892 | void __init pxa_set_ffuart_info(struct platform_pxa_serial_funcs *info) | ||
893 | Index: linux-2.6.22/arch/arm/mach-pxa/generic.h | ||
894 | =================================================================== | ||
895 | --- linux-2.6.22.orig/arch/arm/mach-pxa/generic.h 2007-09-24 20:56:51.000000000 +0200 | ||
896 | +++ linux-2.6.22/arch/arm/mach-pxa/generic.h 2007-09-24 20:57:20.000000000 +0200 | ||
897 | @@ -15,14 +15,40 @@ | ||
898 | extern void __init pxa_init_irq_low(void); | ||
899 | extern void __init pxa_init_irq_high(void); | ||
900 | extern void __init pxa_init_irq_gpio(int gpio_nr); | ||
901 | +extern void __init pxa_init_irq_set_wake(int (*set_wake)(unsigned int, unsigned int)); | ||
902 | extern void __init pxa25x_init_irq(void); | ||
903 | extern void __init pxa27x_init_irq(void); | ||
904 | +extern void __init pxa3xx_init_irq(void); | ||
905 | extern void __init pxa_map_io(void); | ||
906 | |||
907 | extern unsigned int get_clk_frequency_khz(int info); | ||
908 | +extern int pxa_last_gpio; | ||
909 | |||
910 | #define SET_BANK(__nr,__start,__size) \ | ||
911 | mi->bank[__nr].start = (__start), \ | ||
912 | mi->bank[__nr].size = (__size), \ | ||
913 | mi->bank[__nr].node = (((unsigned)(__start) - PHYS_OFFSET) >> 27) | ||
914 | |||
915 | +#ifdef CONFIG_PXA25x | ||
916 | +extern unsigned pxa25x_get_clk_frequency_khz(int); | ||
917 | +extern unsigned pxa25x_get_memclk_frequency_10khz(void); | ||
918 | +#else | ||
919 | +#define pxa25x_get_clk_frequency_khz(x) (0) | ||
920 | +#define pxa25x_get_memclk_frequency_10khz() (0) | ||
921 | +#endif | ||
922 | + | ||
923 | +#ifdef CONFIG_PXA27x | ||
924 | +extern unsigned pxa27x_get_clk_frequency_khz(int); | ||
925 | +extern unsigned pxa27x_get_memclk_frequency_10khz(void); | ||
926 | +#else | ||
927 | +#define pxa27x_get_clk_frequency_khz(x) (0) | ||
928 | +#define pxa27x_get_memclk_frequency_10khz() (0) | ||
929 | +#endif | ||
930 | + | ||
931 | +#ifdef CONFIG_PXA3xx | ||
932 | +extern unsigned pxa3xx_get_clk_frequency_khz(int); | ||
933 | +extern unsigned pxa3xx_get_memclk_frequency_10khz(void); | ||
934 | +#else | ||
935 | +#define pxa3xx_get_clk_frequency_khz(x) (0) | ||
936 | +#define pxa3xx_get_memclk_frequency_10khz() (0) | ||
937 | +#endif | ||
938 | Index: linux-2.6.22/arch/arm/mach-pxa/irq.c | ||
939 | =================================================================== | ||
940 | --- linux-2.6.22.orig/arch/arm/mach-pxa/irq.c 2007-09-24 20:56:51.000000000 +0200 | ||
941 | +++ linux-2.6.22/arch/arm/mach-pxa/irq.c 2007-09-24 20:57:20.000000000 +0200 | ||
942 | @@ -38,33 +38,11 @@ | ||
943 | ICMR |= (1 << irq); | ||
944 | } | ||
945 | |||
946 | -static int pxa_set_wake(unsigned int irq, unsigned int on) | ||
947 | -{ | ||
948 | - u32 mask; | ||
949 | - | ||
950 | - switch (irq) { | ||
951 | - case IRQ_RTCAlrm: | ||
952 | - mask = PWER_RTC; | ||
953 | - break; | ||
954 | -#ifdef CONFIG_PXA27x | ||
955 | - /* REVISIT can handle USBH1, USBH2, USB, MSL, USIM, ... */ | ||
956 | -#endif | ||
957 | - default: | ||
958 | - return -EINVAL; | ||
959 | - } | ||
960 | - if (on) | ||
961 | - PWER |= mask; | ||
962 | - else | ||
963 | - PWER &= ~mask; | ||
964 | - return 0; | ||
965 | -} | ||
966 | - | ||
967 | static struct irq_chip pxa_internal_chip_low = { | ||
968 | .name = "SC", | ||
969 | .ack = pxa_mask_low_irq, | ||
970 | .mask = pxa_mask_low_irq, | ||
971 | .unmask = pxa_unmask_low_irq, | ||
972 | - .set_wake = pxa_set_wake, | ||
973 | }; | ||
974 | |||
975 | void __init pxa_init_irq_low(void) | ||
976 | @@ -87,7 +65,7 @@ | ||
977 | } | ||
978 | } | ||
979 | |||
980 | -#ifdef CONFIG_PXA27x | ||
981 | +#if defined(CONFIG_PXA27x) || defined(CONFIG_PXA3xx) | ||
982 | |||
983 | /* | ||
984 | * This is for the second set of internal IRQs as found on the PXA27x. | ||
985 | @@ -125,26 +103,6 @@ | ||
986 | } | ||
987 | #endif | ||
988 | |||
989 | -/* Note that if an input/irq line ever gets changed to an output during | ||
990 | - * suspend, the relevant PWER, PRER, and PFER bits should be cleared. | ||
991 | - */ | ||
992 | -#ifdef CONFIG_PXA27x | ||
993 | - | ||
994 | -/* PXA27x: Various gpios can issue wakeup events. This logic only | ||
995 | - * handles the simple cases, not the WEMUX2 and WEMUX3 options | ||
996 | - */ | ||
997 | -#define PXA27x_GPIO_NOWAKE_MASK \ | ||
998 | - ((1 << 8) | (1 << 7) | (1 << 6) | (1 << 5) | (1 << 2)) | ||
999 | -#define WAKEMASK(gpio) \ | ||
1000 | - (((gpio) <= 15) \ | ||
1001 | - ? ((1 << (gpio)) & ~PXA27x_GPIO_NOWAKE_MASK) \ | ||
1002 | - : ((gpio == 35) ? (1 << 24) : 0)) | ||
1003 | -#else | ||
1004 | - | ||
1005 | -/* pxa 210, 250, 255, 26x: gpios 0..15 can issue wakeups */ | ||
1006 | -#define WAKEMASK(gpio) (((gpio) <= 15) ? (1 << (gpio)) : 0) | ||
1007 | -#endif | ||
1008 | - | ||
1009 | /* | ||
1010 | * PXA GPIO edge detection for IRQs: | ||
1011 | * IRQs are generated on Falling-Edge, Rising-Edge, or both. | ||
1012 | @@ -158,11 +116,9 @@ | ||
1013 | static int pxa_gpio_irq_type(unsigned int irq, unsigned int type) | ||
1014 | { | ||
1015 | int gpio, idx; | ||
1016 | - u32 mask; | ||
1017 | |||
1018 | gpio = IRQ_TO_GPIO(irq); | ||
1019 | idx = gpio >> 5; | ||
1020 | - mask = WAKEMASK(gpio); | ||
1021 | |||
1022 | if (type == IRQT_PROBE) { | ||
1023 | /* Don't mess with enabled GPIOs using preconfigured edges or | ||
1024 | @@ -182,19 +138,15 @@ | ||
1025 | if (type & __IRQT_RISEDGE) { | ||
1026 | /* printk("rising "); */ | ||
1027 | __set_bit (gpio, GPIO_IRQ_rising_edge); | ||
1028 | - PRER |= mask; | ||
1029 | } else { | ||
1030 | __clear_bit (gpio, GPIO_IRQ_rising_edge); | ||
1031 | - PRER &= ~mask; | ||
1032 | } | ||
1033 | |||
1034 | if (type & __IRQT_FALEDGE) { | ||
1035 | /* printk("falling "); */ | ||
1036 | __set_bit (gpio, GPIO_IRQ_falling_edge); | ||
1037 | - PFER |= mask; | ||
1038 | } else { | ||
1039 | __clear_bit (gpio, GPIO_IRQ_falling_edge); | ||
1040 | - PFER &= ~mask; | ||
1041 | } | ||
1042 | |||
1043 | /* printk("edges\n"); */ | ||
1044 | @@ -213,29 +165,12 @@ | ||
1045 | GEDR0 = (1 << (irq - IRQ_GPIO0)); | ||
1046 | } | ||
1047 | |||
1048 | -static int pxa_set_gpio_wake(unsigned int irq, unsigned int on) | ||
1049 | -{ | ||
1050 | - int gpio = IRQ_TO_GPIO(irq); | ||
1051 | - u32 mask = WAKEMASK(gpio); | ||
1052 | - | ||
1053 | - if (!mask) | ||
1054 | - return -EINVAL; | ||
1055 | - | ||
1056 | - if (on) | ||
1057 | - PWER |= mask; | ||
1058 | - else | ||
1059 | - PWER &= ~mask; | ||
1060 | - return 0; | ||
1061 | -} | ||
1062 | - | ||
1063 | - | ||
1064 | static struct irq_chip pxa_low_gpio_chip = { | ||
1065 | .name = "GPIO-l", | ||
1066 | .ack = pxa_ack_low_gpio, | ||
1067 | .mask = pxa_mask_low_irq, | ||
1068 | .unmask = pxa_unmask_low_irq, | ||
1069 | .set_type = pxa_gpio_irq_type, | ||
1070 | - .set_wake = pxa_set_gpio_wake, | ||
1071 | }; | ||
1072 | |||
1073 | /* | ||
1074 | @@ -342,13 +277,14 @@ | ||
1075 | .mask = pxa_mask_muxed_gpio, | ||
1076 | .unmask = pxa_unmask_muxed_gpio, | ||
1077 | .set_type = pxa_gpio_irq_type, | ||
1078 | - .set_wake = pxa_set_gpio_wake, | ||
1079 | }; | ||
1080 | |||
1081 | void __init pxa_init_irq_gpio(int gpio_nr) | ||
1082 | { | ||
1083 | int irq, i; | ||
1084 | |||
1085 | + pxa_last_gpio = gpio_nr - 1; | ||
1086 | + | ||
1087 | /* clear all GPIO edge detects */ | ||
1088 | for (i = 0; i < gpio_nr; i += 32) { | ||
1089 | GFER(i) = 0; | ||
1090 | @@ -375,3 +311,13 @@ | ||
1091 | set_irq_chip(IRQ_GPIO_2_x, &pxa_internal_chip_low); | ||
1092 | set_irq_chained_handler(IRQ_GPIO_2_x, pxa_gpio_demux_handler); | ||
1093 | } | ||
1094 | + | ||
1095 | +void __init pxa_init_irq_set_wake(int (*set_wake)(unsigned int, unsigned int)) | ||
1096 | +{ | ||
1097 | + pxa_internal_chip_low.set_wake = set_wake; | ||
1098 | +#ifdef CONFIG_PXA27x | ||
1099 | + pxa_internal_chip_high.set_wake = set_wake; | ||
1100 | +#endif | ||
1101 | + pxa_low_gpio_chip.set_wake = set_wake; | ||
1102 | + pxa_muxed_gpio_chip.set_wake = set_wake; | ||
1103 | +} | ||
1104 | Index: linux-2.6.22/arch/arm/mach-pxa/mfp.c | ||
1105 | =================================================================== | ||
1106 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
1107 | +++ linux-2.6.22/arch/arm/mach-pxa/mfp.c 2007-09-24 20:57:20.000000000 +0200 | ||
1108 | @@ -0,0 +1,235 @@ | ||
1109 | +/* | ||
1110 | + * linux/arch/arm/mach-pxa/mfp.c | ||
1111 | + * | ||
1112 | + * PXA3xx Multi-Function Pin Support | ||
1113 | + * | ||
1114 | + * Copyright (C) 2007 Marvell Internation Ltd. | ||
1115 | + * | ||
1116 | + * 2007-08-21: eric miao <eric.y.miao@gmail.com> | ||
1117 | + * initial version | ||
1118 | + * | ||
1119 | + * This program is free software; you can redistribute it and/or modify | ||
1120 | + * it under the terms of the GNU General Public License version 2 as | ||
1121 | + * published by the Free Software Foundation. | ||
1122 | + */ | ||
1123 | + | ||
1124 | +#include <linux/module.h> | ||
1125 | +#include <linux/kernel.h> | ||
1126 | +#include <linux/init.h> | ||
1127 | +#include <linux/io.h> | ||
1128 | + | ||
1129 | +#include <asm/hardware.h> | ||
1130 | +#include <asm/arch/mfp.h> | ||
1131 | + | ||
1132 | +/* mfp_spin_lock is used to ensure that MFP register configuration | ||
1133 | + * (most likely a read-modify-write operation) is atomic, and that | ||
1134 | + * mfp_table[] is consistent | ||
1135 | + */ | ||
1136 | +static DEFINE_SPINLOCK(mfp_spin_lock); | ||
1137 | + | ||
1138 | +static void __iomem *mfpr_mmio_base = (void __iomem *)&__REG(MFPR_BASE); | ||
1139 | +static struct pxa3xx_mfp_pin mfp_table[MFP_PIN_MAX]; | ||
1140 | + | ||
1141 | +#define mfpr_readl(off) \ | ||
1142 | + __raw_readl(mfpr_mmio_base + (off)) | ||
1143 | + | ||
1144 | +#define mfpr_writel(off, val) \ | ||
1145 | + __raw_writel(val, mfpr_mmio_base + (off)) | ||
1146 | + | ||
1147 | +/* | ||
1148 | + * perform a read-back of any MFPR register to make sure the | ||
1149 | + * previous writings are finished | ||
1150 | + */ | ||
1151 | +#define mfpr_sync() (void)__raw_readl(mfpr_mmio_base + 0) | ||
1152 | + | ||
1153 | +static inline void __mfp_config(int pin, unsigned long val) | ||
1154 | +{ | ||
1155 | + unsigned long off = mfp_table[pin].mfpr_off; | ||
1156 | + | ||
1157 | + mfp_table[pin].mfpr_val = val; | ||
1158 | + mfpr_writel(off, val); | ||
1159 | +} | ||
1160 | + | ||
1161 | +void pxa3xx_mfp_config(mfp_cfg_t *mfp_cfgs, int num) | ||
1162 | +{ | ||
1163 | + int i, pin; | ||
1164 | + unsigned long val, flags; | ||
1165 | + mfp_cfg_t *mfp_cfg = mfp_cfgs; | ||
1166 | + | ||
1167 | + spin_lock_irqsave(&mfp_spin_lock, flags); | ||
1168 | + | ||
1169 | + for (i = 0; i < num; i++, mfp_cfg++) { | ||
1170 | + pin = MFP_CFG_PIN(*mfp_cfg); | ||
1171 | + val = MFP_CFG_VAL(*mfp_cfg); | ||
1172 | + | ||
1173 | + BUG_ON(pin >= MFP_PIN_MAX); | ||
1174 | + | ||
1175 | + __mfp_config(pin, val); | ||
1176 | + } | ||
1177 | + | ||
1178 | + mfpr_sync(); | ||
1179 | + spin_unlock_irqrestore(&mfp_spin_lock, flags); | ||
1180 | +} | ||
1181 | + | ||
1182 | +unsigned long pxa3xx_mfp_read(int mfp) | ||
1183 | +{ | ||
1184 | + unsigned long val, flags; | ||
1185 | + | ||
1186 | + BUG_ON(mfp >= MFP_PIN_MAX); | ||
1187 | + | ||
1188 | + spin_lock_irqsave(&mfp_spin_lock, flags); | ||
1189 | + val = mfpr_readl(mfp_table[mfp].mfpr_off); | ||
1190 | + spin_unlock_irqrestore(&mfp_spin_lock, flags); | ||
1191 | + | ||
1192 | + return val; | ||
1193 | +} | ||
1194 | + | ||
1195 | +void pxa3xx_mfp_write(int mfp, unsigned long val) | ||
1196 | +{ | ||
1197 | + unsigned long flags; | ||
1198 | + | ||
1199 | + BUG_ON(mfp >= MFP_PIN_MAX); | ||
1200 | + | ||
1201 | + spin_lock_irqsave(&mfp_spin_lock, flags); | ||
1202 | + mfpr_writel(mfp_table[mfp].mfpr_off, val); | ||
1203 | + mfpr_sync(); | ||
1204 | + spin_unlock_irqrestore(&mfp_spin_lock, flags); | ||
1205 | +} | ||
1206 | + | ||
1207 | +void pxa3xx_mfp_set_afds(int mfp, int af, int ds) | ||
1208 | +{ | ||
1209 | + uint32_t mfpr_off, mfpr_val; | ||
1210 | + unsigned long flags; | ||
1211 | + | ||
1212 | + BUG_ON(mfp >= MFP_PIN_MAX); | ||
1213 | + | ||
1214 | + spin_lock_irqsave(&mfp_spin_lock, flags); | ||
1215 | + mfpr_off = mfp_table[mfp].mfpr_off; | ||
1216 | + | ||
1217 | + mfpr_val = mfpr_readl(mfpr_off); | ||
1218 | + mfpr_val &= ~(MFPR_AF_MASK | MFPR_DRV_MASK); | ||
1219 | + mfpr_val |= (((af & 0x7) << MFPR_ALT_OFFSET) | | ||
1220 | + ((ds & 0x7) << MFPR_DRV_OFFSET)); | ||
1221 | + | ||
1222 | + mfpr_writel(mfpr_off, mfpr_val); | ||
1223 | + mfpr_sync(); | ||
1224 | + | ||
1225 | + spin_unlock_irqrestore(&mfp_spin_lock, flags); | ||
1226 | +} | ||
1227 | + | ||
1228 | +void pxa3xx_mfp_set_rdh(int mfp, int rdh) | ||
1229 | +{ | ||
1230 | + uint32_t mfpr_off, mfpr_val; | ||
1231 | + unsigned long flags; | ||
1232 | + | ||
1233 | + BUG_ON(mfp >= MFP_PIN_MAX); | ||
1234 | + | ||
1235 | + spin_lock_irqsave(&mfp_spin_lock, flags); | ||
1236 | + | ||
1237 | + mfpr_off = mfp_table[mfp].mfpr_off; | ||
1238 | + | ||
1239 | + mfpr_val = mfpr_readl(mfpr_off); | ||
1240 | + mfpr_val &= ~MFPR_RDH_MASK; | ||
1241 | + | ||
1242 | + if (likely(rdh)) | ||
1243 | + mfpr_val |= (1u << MFPR_SS_OFFSET); | ||
1244 | + | ||
1245 | + mfpr_writel(mfpr_off, mfpr_val); | ||
1246 | + mfpr_sync(); | ||
1247 | + | ||
1248 | + spin_unlock_irqrestore(&mfp_spin_lock, flags); | ||
1249 | +} | ||
1250 | + | ||
1251 | +void pxa3xx_mfp_set_lpm(int mfp, int lpm) | ||
1252 | +{ | ||
1253 | + uint32_t mfpr_off, mfpr_val; | ||
1254 | + unsigned long flags; | ||
1255 | + | ||
1256 | + BUG_ON(mfp >= MFP_PIN_MAX); | ||
1257 | + | ||
1258 | + spin_lock_irqsave(&mfp_spin_lock, flags); | ||
1259 | + | ||
1260 | + mfpr_off = mfp_table[mfp].mfpr_off; | ||
1261 | + mfpr_val = mfpr_readl(mfpr_off); | ||
1262 | + mfpr_val &= ~MFPR_LPM_MASK; | ||
1263 | + | ||
1264 | + if (lpm & 0x1) mfpr_val |= 1u << MFPR_SON_OFFSET; | ||
1265 | + if (lpm & 0x2) mfpr_val |= 1u << MFPR_SD_OFFSET; | ||
1266 | + if (lpm & 0x4) mfpr_val |= 1u << MFPR_PU_OFFSET; | ||
1267 | + if (lpm & 0x8) mfpr_val |= 1u << MFPR_PD_OFFSET; | ||
1268 | + if (lpm &0x10) mfpr_val |= 1u << MFPR_PS_OFFSET; | ||
1269 | + | ||
1270 | + mfpr_writel(mfpr_off, mfpr_val); | ||
1271 | + mfpr_sync(); | ||
1272 | + | ||
1273 | + spin_unlock_irqrestore(&mfp_spin_lock, flags); | ||
1274 | +} | ||
1275 | + | ||
1276 | +void pxa3xx_mfp_set_pull(int mfp, int pull) | ||
1277 | +{ | ||
1278 | + uint32_t mfpr_off, mfpr_val; | ||
1279 | + unsigned long flags; | ||
1280 | + | ||
1281 | + BUG_ON(mfp >= MFP_PIN_MAX); | ||
1282 | + | ||
1283 | + spin_lock_irqsave(&mfp_spin_lock, flags); | ||
1284 | + | ||
1285 | + mfpr_off = mfp_table[mfp].mfpr_off; | ||
1286 | + mfpr_val = mfpr_readl(mfpr_off); | ||
1287 | + mfpr_val &= ~MFPR_PULL_MASK; | ||
1288 | + mfpr_val |= ((pull & 0x7u) << MFPR_PD_OFFSET); | ||
1289 | + | ||
1290 | + mfpr_writel(mfpr_off, mfpr_val); | ||
1291 | + mfpr_sync(); | ||
1292 | + | ||
1293 | + spin_unlock_irqrestore(&mfp_spin_lock, flags); | ||
1294 | +} | ||
1295 | + | ||
1296 | +void pxa3xx_mfp_set_edge(int mfp, int edge) | ||
1297 | +{ | ||
1298 | + uint32_t mfpr_off, mfpr_val; | ||
1299 | + unsigned long flags; | ||
1300 | + | ||
1301 | + BUG_ON(mfp >= MFP_PIN_MAX); | ||
1302 | + | ||
1303 | + spin_lock_irqsave(&mfp_spin_lock, flags); | ||
1304 | + | ||
1305 | + mfpr_off = mfp_table[mfp].mfpr_off; | ||
1306 | + mfpr_val = mfpr_readl(mfpr_off); | ||
1307 | + | ||
1308 | + mfpr_val &= ~MFPR_EDGE_MASK; | ||
1309 | + mfpr_val |= (edge & 0x3u) << MFPR_ERE_OFFSET; | ||
1310 | + mfpr_val |= (!edge & 0x1) << MFPR_EC_OFFSET; | ||
1311 | + | ||
1312 | + mfpr_writel(mfpr_off, mfpr_val); | ||
1313 | + mfpr_sync(); | ||
1314 | + | ||
1315 | + spin_unlock_irqrestore(&mfp_spin_lock, flags); | ||
1316 | +} | ||
1317 | + | ||
1318 | +void __init pxa3xx_mfp_init_addr(struct pxa3xx_mfp_addr_map *map) | ||
1319 | +{ | ||
1320 | + struct pxa3xx_mfp_addr_map *p; | ||
1321 | + unsigned long offset, flags; | ||
1322 | + int i; | ||
1323 | + | ||
1324 | + spin_lock_irqsave(&mfp_spin_lock, flags); | ||
1325 | + | ||
1326 | + for (p = map; p->start != MFP_PIN_INVALID; p++) { | ||
1327 | + offset = p->offset; | ||
1328 | + i = p->start; | ||
1329 | + | ||
1330 | + do { | ||
1331 | + mfp_table[i].mfpr_off = offset; | ||
1332 | + mfp_table[i].mfpr_val = 0; | ||
1333 | + offset += 4; i++; | ||
1334 | + } while ((i <= p->end) && (p->end != -1)); | ||
1335 | + } | ||
1336 | + | ||
1337 | + spin_unlock_irqrestore(&mfp_spin_lock, flags); | ||
1338 | +} | ||
1339 | + | ||
1340 | +void __init pxa3xx_init_mfp(void) | ||
1341 | +{ | ||
1342 | + memset(mfp_table, 0, sizeof(mfp_table)); | ||
1343 | +} | ||
1344 | Index: linux-2.6.22/arch/arm/mach-pxa/pxa25x.c | ||
1345 | =================================================================== | ||
1346 | --- linux-2.6.22.orig/arch/arm/mach-pxa/pxa25x.c 2007-09-24 20:57:15.000000000 +0200 | ||
1347 | +++ linux-2.6.22/arch/arm/mach-pxa/pxa25x.c 2007-09-24 20:57:20.000000000 +0200 | ||
1348 | @@ -30,6 +30,7 @@ | ||
1349 | |||
1350 | #include "generic.h" | ||
1351 | #include "devices.h" | ||
1352 | +#include "clock.h" | ||
1353 | |||
1354 | /* | ||
1355 | * Various clock factors driven by the CCCR register. | ||
1356 | @@ -53,7 +54,7 @@ | ||
1357 | * We assume these values have been applied via a fcs. | ||
1358 | * If info is not 0 we also display the current settings. | ||
1359 | */ | ||
1360 | -unsigned int get_clk_frequency_khz(int info) | ||
1361 | +unsigned int pxa25x_get_clk_frequency_khz(int info) | ||
1362 | { | ||
1363 | unsigned long cccr, turbo; | ||
1364 | unsigned int l, L, m, M, n2, N; | ||
1365 | @@ -86,27 +87,48 @@ | ||
1366 | return (turbo & 1) ? (N/1000) : (M/1000); | ||
1367 | } | ||
1368 | |||
1369 | -EXPORT_SYMBOL(get_clk_frequency_khz); | ||
1370 | - | ||
1371 | /* | ||
1372 | * Return the current memory clock frequency in units of 10kHz | ||
1373 | */ | ||
1374 | -unsigned int get_memclk_frequency_10khz(void) | ||
1375 | +unsigned int pxa25x_get_memclk_frequency_10khz(void) | ||
1376 | { | ||
1377 | return L_clk_mult[(CCCR >> 0) & 0x1f] * BASE_CLK / 10000; | ||
1378 | } | ||
1379 | |||
1380 | -EXPORT_SYMBOL(get_memclk_frequency_10khz); | ||
1381 | - | ||
1382 | -/* | ||
1383 | - * Return the current LCD clock frequency in units of 10kHz | ||
1384 | - */ | ||
1385 | -unsigned int get_lcdclk_frequency_10khz(void) | ||
1386 | +static unsigned long clk_pxa25x_lcd_getrate(struct clk *clk) | ||
1387 | { | ||
1388 | - return get_memclk_frequency_10khz(); | ||
1389 | + return pxa25x_get_memclk_frequency_10khz() * 10000; | ||
1390 | } | ||
1391 | |||
1392 | -EXPORT_SYMBOL(get_lcdclk_frequency_10khz); | ||
1393 | +static const struct clkops clk_pxa25x_lcd_ops = { | ||
1394 | + .enable = clk_cken_enable, | ||
1395 | + .disable = clk_cken_disable, | ||
1396 | + .getrate = clk_pxa25x_lcd_getrate, | ||
1397 | +}; | ||
1398 | + | ||
1399 | +/* | ||
1400 | + * 3.6864MHz -> OST, GPIO, SSP, PWM, PLLs (95.842MHz, 147.456MHz) | ||
1401 | + * 95.842MHz -> MMC 19.169MHz, I2C 31.949MHz, FICP 47.923MHz, USB 47.923MHz | ||
1402 | + * 147.456MHz -> UART 14.7456MHz, AC97 12.288MHz, I2S 5.672MHz (allegedly) | ||
1403 | + */ | ||
1404 | +static struct clk pxa25x_clks[] = { | ||
1405 | + INIT_CK("LCDCLK", LCD, &clk_pxa25x_lcd_ops, &pxa_device_fb.dev), | ||
1406 | + INIT_CKEN("UARTCLK", FFUART, 14745600, 1, &pxa_device_ffuart.dev), | ||
1407 | + INIT_CKEN("UARTCLK", BTUART, 14745600, 1, &pxa_device_btuart.dev), | ||
1408 | + INIT_CKEN("UARTCLK", BTUART, 14745600, 1, &pxa_device_btuart.dev), | ||
1409 | + INIT_CKEN("UARTCLK", STUART, 14745600, 1, NULL), | ||
1410 | + INIT_CKEN("UDCCLK", USB, 47923000, 5, &pxa_device_udc.dev), | ||
1411 | + INIT_CKEN("MMCCLK", MMC, 19169000, 0, &pxa_device_mci.dev), | ||
1412 | + INIT_CKEN("I2CCLK", I2C, 31949000, 0, &pxa_device_i2c.dev), | ||
1413 | + /* | ||
1414 | + INIT_CKEN("PWMCLK", PWM0, 3686400, 0, NULL), | ||
1415 | + INIT_CKEN("PWMCLK", PWM0, 3686400, 0, NULL), | ||
1416 | + INIT_CKEN("SSPCLK", SSP, 3686400, 0, NULL), | ||
1417 | + INIT_CKEN("I2SCLK", I2S, 14745600, 0, NULL), | ||
1418 | + INIT_CKEN("NSSPCLK", NSSP, 3686400, 0, NULL), | ||
1419 | + */ | ||
1420 | + INIT_CKEN("FICPCLK", FICP, 47923000, 0, NULL), | ||
1421 | +}; | ||
1422 | |||
1423 | #ifdef CONFIG_PM | ||
1424 | |||
1425 | @@ -207,10 +229,52 @@ | ||
1426 | } | ||
1427 | #endif | ||
1428 | |||
1429 | +/* PXA25x: supports wakeup from GPIO0..GPIO15 and RTC alarm | ||
1430 | + */ | ||
1431 | + | ||
1432 | +static int pxa25x_set_wake(unsigned int irq, unsigned int on) | ||
1433 | +{ | ||
1434 | + int gpio = IRQ_TO_GPIO(irq); | ||
1435 | + uint32_t gpio_bit, mask = 0; | ||
1436 | + | ||
1437 | + if (gpio >= 0 && gpio <= 15) { | ||
1438 | + gpio_bit = GPIO_bit(gpio); | ||
1439 | + mask = gpio_bit; | ||
1440 | + if (on) { | ||
1441 | + if (GRER(gpio) | gpio_bit) | ||
1442 | + PRER |= gpio_bit; | ||
1443 | + else | ||
1444 | + PRER &= ~gpio_bit; | ||
1445 | + | ||
1446 | + if (GFER(gpio) | gpio_bit) | ||
1447 | + PFER |= gpio_bit; | ||
1448 | + else | ||
1449 | + PFER &= ~gpio_bit; | ||
1450 | + } | ||
1451 | + goto set_pwer; | ||
1452 | + } | ||
1453 | + | ||
1454 | + if (irq == IRQ_RTCAlrm) { | ||
1455 | + mask = PWER_RTC; | ||
1456 | + goto set_pwer; | ||
1457 | + } | ||
1458 | + | ||
1459 | + return -EINVAL; | ||
1460 | + | ||
1461 | +set_pwer: | ||
1462 | + if (on) | ||
1463 | + PWER |= mask; | ||
1464 | + else | ||
1465 | + PWER &=~mask; | ||
1466 | + | ||
1467 | + return 0; | ||
1468 | +} | ||
1469 | + | ||
1470 | void __init pxa25x_init_irq(void) | ||
1471 | { | ||
1472 | pxa_init_irq_low(); | ||
1473 | pxa_init_irq_gpio(85); | ||
1474 | + pxa_init_irq_set_wake(pxa25x_set_wake); | ||
1475 | } | ||
1476 | |||
1477 | static struct platform_device *pxa25x_devices[] __initdata = { | ||
1478 | @@ -231,6 +295,8 @@ | ||
1479 | int ret = 0; | ||
1480 | |||
1481 | if (cpu_is_pxa21x() || cpu_is_pxa25x()) { | ||
1482 | + clks_register(pxa25x_clks, ARRAY_SIZE(pxa25x_clks)); | ||
1483 | + | ||
1484 | if ((ret = pxa_init_dma(16))) | ||
1485 | return ret; | ||
1486 | #ifdef CONFIG_PM | ||
1487 | Index: linux-2.6.22/arch/arm/mach-pxa/pxa27x.c | ||
1488 | =================================================================== | ||
1489 | --- linux-2.6.22.orig/arch/arm/mach-pxa/pxa27x.c 2007-09-24 20:57:15.000000000 +0200 | ||
1490 | +++ linux-2.6.22/arch/arm/mach-pxa/pxa27x.c 2007-09-24 20:57:20.000000000 +0200 | ||
1491 | @@ -27,6 +27,7 @@ | ||
1492 | |||
1493 | #include "generic.h" | ||
1494 | #include "devices.h" | ||
1495 | +#include "clock.h" | ||
1496 | |||
1497 | /* Crystal clock: 13MHz */ | ||
1498 | #define BASE_CLK 13000000 | ||
1499 | @@ -36,7 +37,7 @@ | ||
1500 | * We assume these values have been applied via a fcs. | ||
1501 | * If info is not 0 we also display the current settings. | ||
1502 | */ | ||
1503 | -unsigned int get_clk_frequency_khz( int info) | ||
1504 | +unsigned int pxa27x_get_clk_frequency_khz(int info) | ||
1505 | { | ||
1506 | unsigned long ccsr, clkcfg; | ||
1507 | unsigned int l, L, m, M, n2, N, S; | ||
1508 | @@ -79,7 +80,7 @@ | ||
1509 | * Return the current mem clock frequency in units of 10kHz as | ||
1510 | * reflected by CCCR[A], B, and L | ||
1511 | */ | ||
1512 | -unsigned int get_memclk_frequency_10khz(void) | ||
1513 | +unsigned int pxa27x_get_memclk_frequency_10khz(void) | ||
1514 | { | ||
1515 | unsigned long ccsr, clkcfg; | ||
1516 | unsigned int l, L, m, M; | ||
1517 | @@ -104,7 +105,7 @@ | ||
1518 | /* | ||
1519 | * Return the current LCD clock frequency in units of 10kHz as | ||
1520 | */ | ||
1521 | -unsigned int get_lcdclk_frequency_10khz(void) | ||
1522 | +static unsigned int pxa27x_get_lcdclk_frequency_10khz(void) | ||
1523 | { | ||
1524 | unsigned long ccsr; | ||
1525 | unsigned int l, L, k, K; | ||
1526 | @@ -120,9 +121,47 @@ | ||
1527 | return (K / 10000); | ||
1528 | } | ||
1529 | |||
1530 | -EXPORT_SYMBOL(get_clk_frequency_khz); | ||
1531 | -EXPORT_SYMBOL(get_memclk_frequency_10khz); | ||
1532 | -EXPORT_SYMBOL(get_lcdclk_frequency_10khz); | ||
1533 | +static unsigned long clk_pxa27x_lcd_getrate(struct clk *clk) | ||
1534 | +{ | ||
1535 | + return pxa27x_get_lcdclk_frequency_10khz() * 10000; | ||
1536 | +} | ||
1537 | + | ||
1538 | +static const struct clkops clk_pxa27x_lcd_ops = { | ||
1539 | + .enable = clk_cken_enable, | ||
1540 | + .disable = clk_cken_disable, | ||
1541 | + .getrate = clk_pxa27x_lcd_getrate, | ||
1542 | +}; | ||
1543 | + | ||
1544 | +static struct clk pxa27x_clks[] = { | ||
1545 | + INIT_CK("LCDCLK", LCD, &clk_pxa27x_lcd_ops, &pxa_device_fb.dev), | ||
1546 | + INIT_CK("CAMCLK", CAMERA, &clk_pxa27x_lcd_ops, NULL), | ||
1547 | + | ||
1548 | + INIT_CKEN("UARTCLK", FFUART, 14857000, 1, &pxa_device_ffuart.dev), | ||
1549 | + INIT_CKEN("UARTCLK", BTUART, 14857000, 1, &pxa_device_btuart.dev), | ||
1550 | + INIT_CKEN("UARTCLK", STUART, 14857000, 1, NULL), | ||
1551 | + | ||
1552 | + INIT_CKEN("I2SCLK", I2S, 14682000, 0, &pxa_device_i2s.dev), | ||
1553 | + INIT_CKEN("I2CCLK", I2C, 32842000, 0, &pxa_device_i2c.dev), | ||
1554 | + INIT_CKEN("UDCCLK", USB, 48000000, 5, &pxa_device_udc.dev), | ||
1555 | + INIT_CKEN("MMCCLK", MMC, 19500000, 0, &pxa_device_mci.dev), | ||
1556 | + INIT_CKEN("FICPCLK", FICP, 48000000, 0, &pxa_device_ficp.dev), | ||
1557 | + | ||
1558 | + INIT_CKEN("USBCLK", USB, 48000000, 0, &pxa27x_device_ohci.dev), | ||
1559 | + INIT_CKEN("I2CCLK", PWRI2C, 13000000, 0, &pxa27x_device_i2c_power.dev), | ||
1560 | + INIT_CKEN("KBDCLK", KEYPAD, 32768, 0, NULL), | ||
1561 | + | ||
1562 | + /* | ||
1563 | + INIT_CKEN("PWMCLK", PWM0, 13000000, 0, NULL), | ||
1564 | + INIT_CKEN("SSPCLK", SSP1, 13000000, 0, NULL), | ||
1565 | + INIT_CKEN("SSPCLK", SSP2, 13000000, 0, NULL), | ||
1566 | + INIT_CKEN("SSPCLK", SSP3, 13000000, 0, NULL), | ||
1567 | + INIT_CKEN("MSLCLK", MSL, 48000000, 0, NULL), | ||
1568 | + INIT_CKEN("USIMCLK", USIM, 48000000, 0, NULL), | ||
1569 | + INIT_CKEN("MSTKCLK", MEMSTK, 19500000, 0, NULL), | ||
1570 | + INIT_CKEN("IMCLK", IM, 0, 0, NULL), | ||
1571 | + INIT_CKEN("MEMCLK", MEMC, 0, 0, NULL), | ||
1572 | + */ | ||
1573 | +}; | ||
1574 | |||
1575 | #ifdef CONFIG_PM | ||
1576 | |||
1577 | @@ -269,6 +308,69 @@ | ||
1578 | } | ||
1579 | #endif | ||
1580 | |||
1581 | +/* PXA27x: Various gpios can issue wakeup events. This logic only | ||
1582 | + * handles the simple cases, not the WEMUX2 and WEMUX3 options | ||
1583 | + */ | ||
1584 | +#define PXA27x_GPIO_NOWAKE_MASK \ | ||
1585 | + ((1 << 8) | (1 << 7) | (1 << 6) | (1 << 5) | (1 << 2)) | ||
1586 | +#define WAKEMASK(gpio) \ | ||
1587 | + (((gpio) <= 15) \ | ||
1588 | + ? ((1 << (gpio)) & ~PXA27x_GPIO_NOWAKE_MASK) \ | ||
1589 | + : ((gpio == 35) ? (1 << 24) : 0)) | ||
1590 | + | ||
1591 | +static int pxa27x_set_wake(unsigned int irq, unsigned int on) | ||
1592 | +{ | ||
1593 | + int gpio = IRQ_TO_GPIO(irq); | ||
1594 | + uint32_t mask; | ||
1595 | + | ||
1596 | + if ((gpio >= 0 && gpio <= 15) || (gpio == 35)) { | ||
1597 | + if (WAKEMASK(gpio) == 0) | ||
1598 | + return -EINVAL; | ||
1599 | + | ||
1600 | + mask = WAKEMASK(gpio); | ||
1601 | + | ||
1602 | + if (on) { | ||
1603 | + if (GRER(gpio) | GPIO_bit(gpio)) | ||
1604 | + PRER |= mask; | ||
1605 | + else | ||
1606 | + PRER &= ~mask; | ||
1607 | + | ||
1608 | + if (GFER(gpio) | GPIO_bit(gpio)) | ||
1609 | + PFER |= mask; | ||
1610 | + else | ||
1611 | + PFER &= ~mask; | ||
1612 | + } | ||
1613 | + goto set_pwer; | ||
1614 | + } | ||
1615 | + | ||
1616 | + switch (irq) { | ||
1617 | + case IRQ_RTCAlrm: | ||
1618 | + mask = PWER_RTC; | ||
1619 | + break; | ||
1620 | + case IRQ_USB: | ||
1621 | + mask = 1u << 26; | ||
1622 | + break; | ||
1623 | + default: | ||
1624 | + return -EINVAL; | ||
1625 | + } | ||
1626 | + | ||
1627 | +set_pwer: | ||
1628 | + if (on) | ||
1629 | + PWER |= mask; | ||
1630 | + else | ||
1631 | + PWER &=~mask; | ||
1632 | + | ||
1633 | + return 0; | ||
1634 | +} | ||
1635 | + | ||
1636 | +void __init pxa27x_init_irq(void) | ||
1637 | +{ | ||
1638 | + pxa_init_irq_low(); | ||
1639 | + pxa_init_irq_high(); | ||
1640 | + pxa_init_irq_gpio(128); | ||
1641 | + pxa_init_irq_set_wake(pxa27x_set_wake); | ||
1642 | +} | ||
1643 | + | ||
1644 | /* | ||
1645 | * device registration specific to PXA27x. | ||
1646 | */ | ||
1647 | @@ -288,7 +390,7 @@ | ||
1648 | }, | ||
1649 | }; | ||
1650 | |||
1651 | -static struct platform_device pxa27x_device_ohci = { | ||
1652 | +struct platform_device pxa27x_device_ohci = { | ||
1653 | .name = "pxa27x-ohci", | ||
1654 | .id = -1, | ||
1655 | .dev = { | ||
1656 | @@ -316,7 +418,7 @@ | ||
1657 | }, | ||
1658 | }; | ||
1659 | |||
1660 | -static struct platform_device pxa27x_device_i2c_power = { | ||
1661 | +struct platform_device pxa27x_device_i2c_power = { | ||
1662 | .name = "pxa2xx-i2c", | ||
1663 | .id = 1, | ||
1664 | .resource = i2c_power_resources, | ||
1665 | @@ -338,17 +440,12 @@ | ||
1666 | &pxa27x_device_ohci, | ||
1667 | }; | ||
1668 | |||
1669 | -void __init pxa27x_init_irq(void) | ||
1670 | -{ | ||
1671 | - pxa_init_irq_low(); | ||
1672 | - pxa_init_irq_high(); | ||
1673 | - pxa_init_irq_gpio(128); | ||
1674 | -} | ||
1675 | - | ||
1676 | static int __init pxa27x_init(void) | ||
1677 | { | ||
1678 | int ret = 0; | ||
1679 | if (cpu_is_pxa27x()) { | ||
1680 | + clks_register(pxa27x_clks, ARRAY_SIZE(pxa27x_clks)); | ||
1681 | + | ||
1682 | if ((ret = pxa_init_dma(32))) | ||
1683 | return ret; | ||
1684 | #ifdef CONFIG_PM | ||
1685 | Index: linux-2.6.22/arch/arm/mach-pxa/pxa300.c | ||
1686 | =================================================================== | ||
1687 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
1688 | +++ linux-2.6.22/arch/arm/mach-pxa/pxa300.c 2007-09-24 20:57:20.000000000 +0200 | ||
1689 | @@ -0,0 +1,93 @@ | ||
1690 | +/* | ||
1691 | + * linux/arch/arm/mach-pxa/pxa300.c | ||
1692 | + * | ||
1693 | + * Code specific to PXA300/PXA310 | ||
1694 | + * | ||
1695 | + * Copyright (C) 2007 Marvell Internation Ltd. | ||
1696 | + * | ||
1697 | + * 2007-08-21: eric miao <eric.y.miao@gmail.com> | ||
1698 | + * initial version | ||
1699 | + * | ||
1700 | + * This program is free software; you can redistribute it and/or modify | ||
1701 | + * it under the terms of the GNU General Public License version 2 as | ||
1702 | + * published by the Free Software Foundation. | ||
1703 | + */ | ||
1704 | + | ||
1705 | +#include <linux/module.h> | ||
1706 | +#include <linux/kernel.h> | ||
1707 | + | ||
1708 | +#include <asm/hardware.h> | ||
1709 | +#include <asm/arch/mfp-pxa300.h> | ||
1710 | + | ||
1711 | +static struct pxa3xx_mfp_addr_map pxa300_mfp_addr_map[] __initdata = { | ||
1712 | + | ||
1713 | + MFP_ADDR_X(GPIO0, GPIO2, 0x00b4), | ||
1714 | + MFP_ADDR_X(GPIO3, GPIO26, 0x027c), | ||
1715 | + MFP_ADDR_X(GPIO27, GPIO127, 0x0400), | ||
1716 | + MFP_ADDR_X(GPIO0_2, GPIO6_2, 0x02ec), | ||
1717 | + | ||
1718 | + MFP_ADDR(nBE0, 0x0204), | ||
1719 | + MFP_ADDR(nBE1, 0x0208), | ||
1720 | + | ||
1721 | + MFP_ADDR(nLUA, 0x0244), | ||
1722 | + MFP_ADDR(nLLA, 0x0254), | ||
1723 | + | ||
1724 | + MFP_ADDR(DF_CLE_nOE, 0x0240), | ||
1725 | + MFP_ADDR(DF_nRE_nOE, 0x0200), | ||
1726 | + MFP_ADDR(DF_ALE_nWE, 0x020C), | ||
1727 | + MFP_ADDR(DF_INT_RnB, 0x00C8), | ||
1728 | + MFP_ADDR(DF_nCS0, 0x0248), | ||
1729 | + MFP_ADDR(DF_nCS1, 0x0278), | ||
1730 | + MFP_ADDR(DF_nWE, 0x00CC), | ||
1731 | + | ||
1732 | + MFP_ADDR(DF_ADDR0, 0x0210), | ||
1733 | + MFP_ADDR(DF_ADDR1, 0x0214), | ||
1734 | + MFP_ADDR(DF_ADDR2, 0x0218), | ||
1735 | + MFP_ADDR(DF_ADDR3, 0x021C), | ||
1736 | + | ||
1737 | + MFP_ADDR(DF_IO0, 0x0220), | ||
1738 | + MFP_ADDR(DF_IO1, 0x0228), | ||
1739 | + MFP_ADDR(DF_IO2, 0x0230), | ||
1740 | + MFP_ADDR(DF_IO3, 0x0238), | ||
1741 | + MFP_ADDR(DF_IO4, 0x0258), | ||
1742 | + MFP_ADDR(DF_IO5, 0x0260), | ||
1743 | + MFP_ADDR(DF_IO6, 0x0268), | ||
1744 | + MFP_ADDR(DF_IO7, 0x0270), | ||
1745 | + MFP_ADDR(DF_IO8, 0x0224), | ||
1746 | + MFP_ADDR(DF_IO9, 0x022C), | ||
1747 | + MFP_ADDR(DF_IO10, 0x0234), | ||
1748 | + MFP_ADDR(DF_IO11, 0x023C), | ||
1749 | + MFP_ADDR(DF_IO12, 0x025C), | ||
1750 | + MFP_ADDR(DF_IO13, 0x0264), | ||
1751 | + MFP_ADDR(DF_IO14, 0x026C), | ||
1752 | + MFP_ADDR(DF_IO15, 0x0274), | ||
1753 | + | ||
1754 | + MFP_ADDR_END, | ||
1755 | +}; | ||
1756 | + | ||
1757 | +/* override pxa300 MFP register addresses */ | ||
1758 | +static struct pxa3xx_mfp_addr_map pxa310_mfp_addr_map[] __initdata = { | ||
1759 | + MFP_ADDR_X(GPIO30, GPIO98, 0x0418), | ||
1760 | + MFP_ADDR_X(GPIO7_2, GPIO12_2, 0x052C), | ||
1761 | + | ||
1762 | + MFP_ADDR(ULPI_STP, 0x040C), | ||
1763 | + MFP_ADDR(ULPI_NXT, 0x0410), | ||
1764 | + MFP_ADDR(ULPI_DIR, 0x0414), | ||
1765 | + | ||
1766 | + MFP_ADDR_END, | ||
1767 | +}; | ||
1768 | + | ||
1769 | +static int __init pxa300_init(void) | ||
1770 | +{ | ||
1771 | + if (cpu_is_pxa300() || cpu_is_pxa310()) { | ||
1772 | + pxa3xx_init_mfp(); | ||
1773 | + pxa3xx_mfp_init_addr(pxa300_mfp_addr_map); | ||
1774 | + } | ||
1775 | + | ||
1776 | + if (cpu_is_pxa310()) | ||
1777 | + pxa3xx_mfp_init_addr(pxa310_mfp_addr_map); | ||
1778 | + | ||
1779 | + return 0; | ||
1780 | +} | ||
1781 | + | ||
1782 | +core_initcall(pxa300_init); | ||
1783 | Index: linux-2.6.22/arch/arm/mach-pxa/pxa320.c | ||
1784 | =================================================================== | ||
1785 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
1786 | +++ linux-2.6.22/arch/arm/mach-pxa/pxa320.c 2007-09-24 20:57:20.000000000 +0200 | ||
1787 | @@ -0,0 +1,88 @@ | ||
1788 | +/* | ||
1789 | + * linux/arch/arm/mach-pxa/pxa320.c | ||
1790 | + * | ||
1791 | + * Code specific to PXA320 | ||
1792 | + * | ||
1793 | + * Copyright (C) 2007 Marvell Internation Ltd. | ||
1794 | + * | ||
1795 | + * 2007-08-21: eric miao <eric.y.miao@gmail.com> | ||
1796 | + * initial version | ||
1797 | + * | ||
1798 | + * This program is free software; you can redistribute it and/or modify | ||
1799 | + * it under the terms of the GNU General Public License version 2 as | ||
1800 | + * published by the Free Software Foundation. | ||
1801 | + */ | ||
1802 | + | ||
1803 | +#include <linux/module.h> | ||
1804 | +#include <linux/kernel.h> | ||
1805 | + | ||
1806 | +#include <asm/hardware.h> | ||
1807 | +#include <asm/arch/mfp.h> | ||
1808 | +#include <asm/arch/mfp-pxa320.h> | ||
1809 | + | ||
1810 | +static struct pxa3xx_mfp_addr_map pxa320_mfp_addr_map[] __initdata = { | ||
1811 | + | ||
1812 | + MFP_ADDR_X(GPIO0, GPIO4, 0x0124), | ||
1813 | + MFP_ADDR_X(GPIO5, GPIO26, 0x028C), | ||
1814 | + MFP_ADDR_X(GPIO27, GPIO62, 0x0400), | ||
1815 | + MFP_ADDR_X(GPIO63, GPIO73, 0x04B4), | ||
1816 | + MFP_ADDR_X(GPIO74, GPIO98, 0x04F0), | ||
1817 | + MFP_ADDR_X(GPIO99, GPIO127, 0x0600), | ||
1818 | + MFP_ADDR_X(GPIO0_2, GPIO5_2, 0x0674), | ||
1819 | + MFP_ADDR_X(GPIO6_2, GPIO13_2, 0x0494), | ||
1820 | + MFP_ADDR_X(GPIO14_2, GPIO17_2, 0x04E0), | ||
1821 | + | ||
1822 | + MFP_ADDR(nXCVREN, 0x0138), | ||
1823 | + MFP_ADDR(DF_CLE_nOE, 0x0204), | ||
1824 | + MFP_ADDR(DF_nADV1_ALE, 0x0208), | ||
1825 | + MFP_ADDR(DF_SCLK_S, 0x020C), | ||
1826 | + MFP_ADDR(DF_SCLK_E, 0x0210), | ||
1827 | + MFP_ADDR(nBE0, 0x0214), | ||
1828 | + MFP_ADDR(nBE1, 0x0218), | ||
1829 | + MFP_ADDR(DF_nADV2_ALE, 0x021C), | ||
1830 | + MFP_ADDR(DF_INT_RnB, 0x0220), | ||
1831 | + MFP_ADDR(DF_nCS0, 0x0224), | ||
1832 | + MFP_ADDR(DF_nCS1, 0x0228), | ||
1833 | + MFP_ADDR(DF_nWE, 0x022C), | ||
1834 | + MFP_ADDR(DF_nRE_nOE, 0x0230), | ||
1835 | + MFP_ADDR(nLUA, 0x0234), | ||
1836 | + MFP_ADDR(nLLA, 0x0238), | ||
1837 | + MFP_ADDR(DF_ADDR0, 0x023C), | ||
1838 | + MFP_ADDR(DF_ADDR1, 0x0240), | ||
1839 | + MFP_ADDR(DF_ADDR2, 0x0244), | ||
1840 | + MFP_ADDR(DF_ADDR3, 0x0248), | ||
1841 | + MFP_ADDR(DF_IO0, 0x024C), | ||
1842 | + MFP_ADDR(DF_IO8, 0x0250), | ||
1843 | + MFP_ADDR(DF_IO1, 0x0254), | ||
1844 | + MFP_ADDR(DF_IO9, 0x0258), | ||
1845 | + MFP_ADDR(DF_IO2, 0x025C), | ||
1846 | + MFP_ADDR(DF_IO10, 0x0260), | ||
1847 | + MFP_ADDR(DF_IO3, 0x0264), | ||
1848 | + MFP_ADDR(DF_IO11, 0x0268), | ||
1849 | + MFP_ADDR(DF_IO4, 0x026C), | ||
1850 | + MFP_ADDR(DF_IO12, 0x0270), | ||
1851 | + MFP_ADDR(DF_IO5, 0x0274), | ||
1852 | + MFP_ADDR(DF_IO13, 0x0278), | ||
1853 | + MFP_ADDR(DF_IO6, 0x027C), | ||
1854 | + MFP_ADDR(DF_IO14, 0x0280), | ||
1855 | + MFP_ADDR(DF_IO7, 0x0284), | ||
1856 | + MFP_ADDR(DF_IO15, 0x0288), | ||
1857 | + | ||
1858 | + MFP_ADDR_END, | ||
1859 | +}; | ||
1860 | + | ||
1861 | +static void __init pxa320_init_mfp(void) | ||
1862 | +{ | ||
1863 | + pxa3xx_init_mfp(); | ||
1864 | + pxa3xx_mfp_init_addr(pxa320_mfp_addr_map); | ||
1865 | +} | ||
1866 | + | ||
1867 | +static int __init pxa320_init(void) | ||
1868 | +{ | ||
1869 | + if (cpu_is_pxa320()) | ||
1870 | + pxa320_init_mfp(); | ||
1871 | + | ||
1872 | + return 0; | ||
1873 | +} | ||
1874 | + | ||
1875 | +core_initcall(pxa320_init); | ||
1876 | Index: linux-2.6.22/arch/arm/mach-pxa/pxa3xx.c | ||
1877 | =================================================================== | ||
1878 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
1879 | +++ linux-2.6.22/arch/arm/mach-pxa/pxa3xx.c 2007-09-24 20:57:20.000000000 +0200 | ||
1880 | @@ -0,0 +1,216 @@ | ||
1881 | +/* | ||
1882 | + * linux/arch/arm/mach-pxa/pxa3xx.c | ||
1883 | + * | ||
1884 | + * code specific to pxa3xx aka Monahans | ||
1885 | + * | ||
1886 | + * Copyright (C) 2006 Marvell International Ltd. | ||
1887 | + * | ||
1888 | + * 2007-09-02: eric miao <eric.y.miao@gmail.com> | ||
1889 | + * initial version | ||
1890 | + * | ||
1891 | + * This program is free software; you can redistribute it and/or modify | ||
1892 | + * it under the terms of the GNU General Public License version 2 as | ||
1893 | + * published by the Free Software Foundation. | ||
1894 | + */ | ||
1895 | + | ||
1896 | +#include <linux/module.h> | ||
1897 | +#include <linux/kernel.h> | ||
1898 | +#include <linux/init.h> | ||
1899 | +#include <linux/pm.h> | ||
1900 | +#include <linux/platform_device.h> | ||
1901 | +#include <linux/irq.h> | ||
1902 | + | ||
1903 | +#include <asm/hardware.h> | ||
1904 | +#include <asm/arch/pxa3xx-regs.h> | ||
1905 | +#include <asm/arch/ohci.h> | ||
1906 | +#include <asm/arch/pm.h> | ||
1907 | +#include <asm/arch/dma.h> | ||
1908 | +#include <asm/arch/ssp.h> | ||
1909 | + | ||
1910 | +#include "generic.h" | ||
1911 | +#include "devices.h" | ||
1912 | +#include "clock.h" | ||
1913 | + | ||
1914 | +/* Crystal clock: 13MHz */ | ||
1915 | +#define BASE_CLK 13000000 | ||
1916 | + | ||
1917 | +/* Ring Oscillator Clock: 60MHz */ | ||
1918 | +#define RO_CLK 60000000 | ||
1919 | + | ||
1920 | +#define ACCR_D0CS (1 << 26) | ||
1921 | + | ||
1922 | +/* crystal frequency to static memory controller multiplier (SMCFS) */ | ||
1923 | +static unsigned char smcfs_mult[8] = { 6, 0, 8, 0, 0, 16, }; | ||
1924 | + | ||
1925 | +/* crystal frequency to HSIO bus frequency multiplier (HSS) */ | ||
1926 | +static unsigned char hss_mult[4] = { 8, 12, 16, 0 }; | ||
1927 | + | ||
1928 | +/* | ||
1929 | + * Get the clock frequency as reflected by CCSR and the turbo flag. | ||
1930 | + * We assume these values have been applied via a fcs. | ||
1931 | + * If info is not 0 we also display the current settings. | ||
1932 | + */ | ||
1933 | +unsigned int pxa3xx_get_clk_frequency_khz(int info) | ||
1934 | +{ | ||
1935 | + unsigned long acsr, xclkcfg; | ||
1936 | + unsigned int t, xl, xn, hss, ro, XL, XN, CLK, HSS; | ||
1937 | + | ||
1938 | + /* Read XCLKCFG register turbo bit */ | ||
1939 | + __asm__ __volatile__("mrc\tp14, 0, %0, c6, c0, 0" : "=r"(xclkcfg)); | ||
1940 | + t = xclkcfg & 0x1; | ||
1941 | + | ||
1942 | + acsr = ACSR; | ||
1943 | + | ||
1944 | + xl = acsr & 0x1f; | ||
1945 | + xn = (acsr >> 8) & 0x7; | ||
1946 | + hss = (acsr >> 14) & 0x3; | ||
1947 | + | ||
1948 | + XL = xl * BASE_CLK; | ||
1949 | + XN = xn * XL; | ||
1950 | + | ||
1951 | + ro = acsr & ACCR_D0CS; | ||
1952 | + | ||
1953 | + CLK = (ro) ? RO_CLK : ((t) ? XN : XL); | ||
1954 | + HSS = (ro) ? RO_CLK : hss_mult[hss] * BASE_CLK; | ||
1955 | + | ||
1956 | + if (info) { | ||
1957 | + pr_info("RO Mode clock: %d.%02dMHz (%sactive)\n", | ||
1958 | + RO_CLK / 1000000, (RO_CLK % 1000000) / 10000, | ||
1959 | + (ro) ? "" : "in"); | ||
1960 | + pr_info("Run Mode clock: %d.%02dMHz (*%d)\n", | ||
1961 | + XL / 1000000, (XL % 1000000) / 10000, xl); | ||
1962 | + pr_info("Turbo Mode clock: %d.%02dMHz (*%d, %sactive)\n", | ||
1963 | + XN / 1000000, (XN % 1000000) / 10000, xn, | ||
1964 | + (t) ? "" : "in"); | ||
1965 | + pr_info("HSIO bus clock: %d.%02dMHz\n", | ||
1966 | + HSS / 1000000, (HSS % 1000000) / 10000); | ||
1967 | + } | ||
1968 | + | ||
1969 | + return CLK; | ||
1970 | +} | ||
1971 | + | ||
1972 | +/* | ||
1973 | + * Return the current static memory controller clock frequency | ||
1974 | + * in units of 10kHz | ||
1975 | + */ | ||
1976 | +unsigned int pxa3xx_get_memclk_frequency_10khz(void) | ||
1977 | +{ | ||
1978 | + unsigned long acsr; | ||
1979 | + unsigned int smcfs, clk = 0; | ||
1980 | + | ||
1981 | + acsr = ACSR; | ||
1982 | + | ||
1983 | + smcfs = (acsr >> 23) & 0x7; | ||
1984 | + clk = (acsr & ACCR_D0CS) ? RO_CLK : smcfs_mult[smcfs] * BASE_CLK; | ||
1985 | + | ||
1986 | + return (clk / 10000); | ||
1987 | +} | ||
1988 | + | ||
1989 | +/* | ||
1990 | + * Return the current HSIO bus clock frequency | ||
1991 | + */ | ||
1992 | +static unsigned long clk_pxa3xx_hsio_getrate(struct clk *clk) | ||
1993 | +{ | ||
1994 | + unsigned long acsr; | ||
1995 | + unsigned int hss, hsio_clk; | ||
1996 | + | ||
1997 | + acsr = ACSR; | ||
1998 | + | ||
1999 | + hss = (acsr >> 14) & 0x3; | ||
2000 | + hsio_clk = (acsr & ACCR_D0CS) ? RO_CLK : hss_mult[hss] * BASE_CLK; | ||
2001 | + | ||
2002 | + return hsio_clk; | ||
2003 | +} | ||
2004 | + | ||
2005 | +static void clk_pxa3xx_cken_enable(struct clk *clk) | ||
2006 | +{ | ||
2007 | + unsigned long mask = 1ul << (clk->cken & 0x1f); | ||
2008 | + | ||
2009 | + local_irq_disable(); | ||
2010 | + | ||
2011 | + if (clk->cken < 32) | ||
2012 | + CKENA |= mask; | ||
2013 | + else | ||
2014 | + CKENB |= mask; | ||
2015 | + | ||
2016 | + local_irq_enable(); | ||
2017 | +} | ||
2018 | + | ||
2019 | +static void clk_pxa3xx_cken_disable(struct clk *clk) | ||
2020 | +{ | ||
2021 | + unsigned long mask = 1ul << (clk->cken & 0x1f); | ||
2022 | + | ||
2023 | + local_irq_disable(); | ||
2024 | + | ||
2025 | + if (clk->cken < 32) | ||
2026 | + CKENA &= ~mask; | ||
2027 | + else | ||
2028 | + CKENB &= ~mask; | ||
2029 | + | ||
2030 | + local_irq_enable(); | ||
2031 | +} | ||
2032 | + | ||
2033 | +static const struct clkops clk_pxa3xx_hsio_ops = { | ||
2034 | + .enable = clk_pxa3xx_cken_enable, | ||
2035 | + .disable = clk_pxa3xx_cken_disable, | ||
2036 | + .getrate = clk_pxa3xx_hsio_getrate, | ||
2037 | +}; | ||
2038 | + | ||
2039 | +static struct clk pxa3xx_clks[] = { | ||
2040 | + INIT_CK("LCDCLK", LCD, &clk_pxa3xx_hsio_ops, &pxa_device_fb.dev), | ||
2041 | + INIT_CK("CAMCLK", CAMERA, &clk_pxa3xx_hsio_ops, NULL), | ||
2042 | + | ||
2043 | + INIT_CKEN("UARTCLK", FFUART, 14857000, 1, &pxa_device_ffuart.dev), | ||
2044 | + INIT_CKEN("UARTCLK", BTUART, 14857000, 1, &pxa_device_btuart.dev), | ||
2045 | + INIT_CKEN("UARTCLK", STUART, 14857000, 1, NULL), | ||
2046 | + | ||
2047 | + INIT_CKEN("I2CCLK", I2C, 32842000, 0, &pxa_device_i2c.dev), | ||
2048 | + INIT_CKEN("UDCCLK", UDC, 48000000, 5, &pxa_device_udc.dev), | ||
2049 | +}; | ||
2050 | + | ||
2051 | +void __init pxa3xx_init_irq(void) | ||
2052 | +{ | ||
2053 | + /* enable CP6 access */ | ||
2054 | + u32 value; | ||
2055 | + __asm__ __volatile__("mrc p15, 0, %0, c15, c1, 0\n": "=r"(value)); | ||
2056 | + value |= (1 << 6); | ||
2057 | + __asm__ __volatile__("mcr p15, 0, %0, c15, c1, 0\n": :"r"(value)); | ||
2058 | + | ||
2059 | + pxa_init_irq_low(); | ||
2060 | + pxa_init_irq_high(); | ||
2061 | + pxa_init_irq_gpio(128); | ||
2062 | +} | ||
2063 | + | ||
2064 | +/* | ||
2065 | + * device registration specific to PXA3xx. | ||
2066 | + */ | ||
2067 | + | ||
2068 | +static struct platform_device *devices[] __initdata = { | ||
2069 | + &pxa_device_mci, | ||
2070 | + &pxa_device_udc, | ||
2071 | + &pxa_device_fb, | ||
2072 | + &pxa_device_ffuart, | ||
2073 | + &pxa_device_btuart, | ||
2074 | + &pxa_device_stuart, | ||
2075 | + &pxa_device_i2c, | ||
2076 | + &pxa_device_i2s, | ||
2077 | + &pxa_device_ficp, | ||
2078 | + &pxa_device_rtc, | ||
2079 | +}; | ||
2080 | + | ||
2081 | +static int __init pxa3xx_init(void) | ||
2082 | +{ | ||
2083 | + int ret = 0; | ||
2084 | + | ||
2085 | + if (cpu_is_pxa3xx()) { | ||
2086 | + clks_register(pxa3xx_clks, ARRAY_SIZE(pxa3xx_clks)); | ||
2087 | + | ||
2088 | + if ((ret = pxa_init_dma(32))) | ||
2089 | + return ret; | ||
2090 | + | ||
2091 | + return platform_add_devices(devices, ARRAY_SIZE(devices)); | ||
2092 | + } | ||
2093 | + return 0; | ||
2094 | +} | ||
2095 | + | ||
2096 | +subsys_initcall(pxa3xx_init); | ||
2097 | Index: linux-2.6.22/arch/arm/mach-pxa/time.c | ||
2098 | =================================================================== | ||
2099 | --- linux-2.6.22.orig/arch/arm/mach-pxa/time.c 2007-09-24 20:56:51.000000000 +0200 | ||
2100 | +++ linux-2.6.22/arch/arm/mach-pxa/time.c 2007-09-24 20:57:20.000000000 +0200 | ||
2101 | @@ -16,10 +16,48 @@ | ||
2102 | #include <linux/init.h> | ||
2103 | #include <linux/interrupt.h> | ||
2104 | #include <linux/clockchips.h> | ||
2105 | +#include <linux/sched.h> | ||
2106 | |||
2107 | +#include <asm/div64.h> | ||
2108 | +#include <asm/cnt32_to_63.h> | ||
2109 | #include <asm/mach/irq.h> | ||
2110 | #include <asm/mach/time.h> | ||
2111 | #include <asm/arch/pxa-regs.h> | ||
2112 | +#include <asm/mach-types.h> | ||
2113 | + | ||
2114 | +/* | ||
2115 | + * This is PXA's sched_clock implementation. This has a resolution | ||
2116 | + * of at least 308 ns and a maximum value of 208 days. | ||
2117 | + * | ||
2118 | + * The return value is guaranteed to be monotonic in that range as | ||
2119 | + * long as there is always less than 582 seconds between successive | ||
2120 | + * calls to sched_clock() which should always be the case in practice. | ||
2121 | + */ | ||
2122 | + | ||
2123 | +#define OSCR2NS_SCALE_FACTOR 10 | ||
2124 | + | ||
2125 | +static unsigned long oscr2ns_scale; | ||
2126 | + | ||
2127 | +static void __init set_oscr2ns_scale(unsigned long oscr_rate) | ||
2128 | +{ | ||
2129 | + unsigned long long v = 1000000000ULL << OSCR2NS_SCALE_FACTOR; | ||
2130 | + do_div(v, oscr_rate); | ||
2131 | + oscr2ns_scale = v; | ||
2132 | + /* | ||
2133 | + * We want an even value to automatically clear the top bit | ||
2134 | + * returned by cnt32_to_63() without an additional run time | ||
2135 | + * instruction. So if the LSB is 1 then round it up. | ||
2136 | + */ | ||
2137 | + if (oscr2ns_scale & 1) | ||
2138 | + oscr2ns_scale++; | ||
2139 | +} | ||
2140 | + | ||
2141 | +unsigned long long sched_clock(void) | ||
2142 | +{ | ||
2143 | + unsigned long long v = cnt32_to_63(OSCR); | ||
2144 | + return (v * oscr2ns_scale) >> OSCR2NS_SCALE_FACTOR; | ||
2145 | +} | ||
2146 | + | ||
2147 | |||
2148 | static irqreturn_t | ||
2149 | pxa_ost0_interrupt(int irq, void *dev_id) | ||
2150 | @@ -149,18 +187,29 @@ | ||
2151 | |||
2152 | static void __init pxa_timer_init(void) | ||
2153 | { | ||
2154 | + unsigned long clock_tick_rate; | ||
2155 | + | ||
2156 | OIER = 0; | ||
2157 | OSSR = OSSR_M0 | OSSR_M1 | OSSR_M2 | OSSR_M3; | ||
2158 | |||
2159 | + if (cpu_is_pxa21x() || cpu_is_pxa25x()) | ||
2160 | + clock_tick_rate = 3686400; | ||
2161 | + else if (machine_is_mainstone()) | ||
2162 | + clock_tick_rate = 3249600; | ||
2163 | + else | ||
2164 | + clock_tick_rate = 3250000; | ||
2165 | + | ||
2166 | + set_oscr2ns_scale(clock_tick_rate); | ||
2167 | + | ||
2168 | ckevt_pxa_osmr0.mult = | ||
2169 | - div_sc(CLOCK_TICK_RATE, NSEC_PER_SEC, ckevt_pxa_osmr0.shift); | ||
2170 | + div_sc(clock_tick_rate, NSEC_PER_SEC, ckevt_pxa_osmr0.shift); | ||
2171 | ckevt_pxa_osmr0.max_delta_ns = | ||
2172 | clockevent_delta2ns(0x7fffffff, &ckevt_pxa_osmr0); | ||
2173 | ckevt_pxa_osmr0.min_delta_ns = | ||
2174 | clockevent_delta2ns(MIN_OSCR_DELTA, &ckevt_pxa_osmr0) + 1; | ||
2175 | |||
2176 | cksrc_pxa_oscr0.mult = | ||
2177 | - clocksource_hz2mult(CLOCK_TICK_RATE, cksrc_pxa_oscr0.shift); | ||
2178 | + clocksource_hz2mult(clock_tick_rate, cksrc_pxa_oscr0.shift); | ||
2179 | |||
2180 | setup_irq(IRQ_OST0, &pxa_ost0_irq); | ||
2181 | |||
2182 | Index: linux-2.6.22/arch/arm/mach-pxa/zylonite.c | ||
2183 | =================================================================== | ||
2184 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
2185 | +++ linux-2.6.22/arch/arm/mach-pxa/zylonite.c 2007-09-24 20:57:20.000000000 +0200 | ||
2186 | @@ -0,0 +1,184 @@ | ||
2187 | +/* | ||
2188 | + * linux/arch/arm/mach-pxa/zylonite.c | ||
2189 | + * | ||
2190 | + * Support for the PXA3xx Development Platform (aka Zylonite) | ||
2191 | + * | ||
2192 | + * Copyright (C) 2006 Marvell International Ltd. | ||
2193 | + * | ||
2194 | + * 2007-09-04: eric miao <eric.y.miao@gmail.com> | ||
2195 | + * rewrite to align with latest kernel | ||
2196 | + * | ||
2197 | + * This program is free software; you can redistribute it and/or modify | ||
2198 | + * it under the terms of the GNU General Public License version 2 as | ||
2199 | + * published by the Free Software Foundation. | ||
2200 | + */ | ||
2201 | + | ||
2202 | +#include <linux/module.h> | ||
2203 | +#include <linux/kernel.h> | ||
2204 | +#include <linux/interrupt.h> | ||
2205 | +#include <linux/init.h> | ||
2206 | +#include <linux/platform_device.h> | ||
2207 | + | ||
2208 | +#include <asm/mach-types.h> | ||
2209 | +#include <asm/mach/arch.h> | ||
2210 | +#include <asm/hardware.h> | ||
2211 | +#include <asm/arch/gpio.h> | ||
2212 | +#include <asm/arch/pxafb.h> | ||
2213 | +#include <asm/arch/zylonite.h> | ||
2214 | + | ||
2215 | +#include "generic.h" | ||
2216 | + | ||
2217 | +int gpio_backlight; | ||
2218 | +int gpio_eth_irq; | ||
2219 | + | ||
2220 | +int lcd_id; | ||
2221 | +int lcd_orientation; | ||
2222 | + | ||
2223 | +static struct resource smc91x_resources[] = { | ||
2224 | + [0] = { | ||
2225 | + .start = ZYLONITE_ETH_PHYS + 0x300, | ||
2226 | + .end = ZYLONITE_ETH_PHYS + 0xfffff, | ||
2227 | + .flags = IORESOURCE_MEM, | ||
2228 | + }, | ||
2229 | + [1] = { | ||
2230 | + .start = -1, /* for run-time assignment */ | ||
2231 | + .end = -1, | ||
2232 | + .flags = IORESOURCE_IRQ, | ||
2233 | + } | ||
2234 | +}; | ||
2235 | + | ||
2236 | +static struct platform_device smc91x_device = { | ||
2237 | + .name = "smc91x", | ||
2238 | + .id = 0, | ||
2239 | + .num_resources = ARRAY_SIZE(smc91x_resources), | ||
2240 | + .resource = smc91x_resources, | ||
2241 | +}; | ||
2242 | + | ||
2243 | +#if defined(CONFIG_FB_PXA) || (CONFIG_FB_PXA_MODULES) | ||
2244 | +static void zylonite_backlight_power(int on) | ||
2245 | +{ | ||
2246 | + gpio_set_value(gpio_backlight, on); | ||
2247 | +} | ||
2248 | + | ||
2249 | +static struct pxafb_mode_info toshiba_ltm035a776c_mode = { | ||
2250 | + .pixclock = 110000, | ||
2251 | + .xres = 240, | ||
2252 | + .yres = 320, | ||
2253 | + .bpp = 16, | ||
2254 | + .hsync_len = 4, | ||
2255 | + .left_margin = 6, | ||
2256 | + .right_margin = 4, | ||
2257 | + .vsync_len = 2, | ||
2258 | + .upper_margin = 2, | ||
2259 | + .lower_margin = 3, | ||
2260 | + .sync = FB_SYNC_VERT_HIGH_ACT, | ||
2261 | +}; | ||
2262 | + | ||
2263 | +static struct pxafb_mode_info toshiba_ltm04c380k_mode = { | ||
2264 | + .pixclock = 50000, | ||
2265 | + .xres = 640, | ||
2266 | + .yres = 480, | ||
2267 | + .bpp = 16, | ||
2268 | + .hsync_len = 1, | ||
2269 | + .left_margin = 0x9f, | ||
2270 | + .right_margin = 1, | ||
2271 | + .vsync_len = 44, | ||
2272 | + .upper_margin = 0, | ||
2273 | + .lower_margin = 0, | ||
2274 | + .sync = FB_SYNC_HOR_HIGH_ACT|FB_SYNC_VERT_HIGH_ACT, | ||
2275 | +}; | ||
2276 | + | ||
2277 | +static struct pxafb_mach_info zylonite_toshiba_lcd_info = { | ||
2278 | + .num_modes = 1, | ||
2279 | + .lccr0 = LCCR0_Act, | ||
2280 | + .lccr3 = LCCR3_PCP, | ||
2281 | + .pxafb_backlight_power = zylonite_backlight_power, | ||
2282 | +}; | ||
2283 | + | ||
2284 | +static struct pxafb_mode_info sharp_ls037_modes[] = { | ||
2285 | + [0] = { | ||
2286 | + .pixclock = 158000, | ||
2287 | + .xres = 240, | ||
2288 | + .yres = 320, | ||
2289 | + .bpp = 16, | ||
2290 | + .hsync_len = 4, | ||
2291 | + .left_margin = 39, | ||
2292 | + .right_margin = 39, | ||
2293 | + .vsync_len = 1, | ||
2294 | + .upper_margin = 2, | ||
2295 | + .lower_margin = 3, | ||
2296 | + .sync = 0, | ||
2297 | + }, | ||
2298 | + [1] = { | ||
2299 | + .pixclock = 39700, | ||
2300 | + .xres = 480, | ||
2301 | + .yres = 640, | ||
2302 | + .bpp = 16, | ||
2303 | + .hsync_len = 8, | ||
2304 | + .left_margin = 81, | ||
2305 | + .right_margin = 81, | ||
2306 | + .vsync_len = 1, | ||
2307 | + .upper_margin = 2, | ||
2308 | + .lower_margin = 7, | ||
2309 | + .sync = 0, | ||
2310 | + }, | ||
2311 | +}; | ||
2312 | + | ||
2313 | +static struct pxafb_mach_info zylonite_sharp_lcd_info = { | ||
2314 | + .modes = sharp_ls037_modes, | ||
2315 | + .num_modes = 2, | ||
2316 | + .lccr0 = LCCR0_Act, | ||
2317 | + .lccr3 = LCCR3_PCP | LCCR3_HSP | LCCR3_VSP, | ||
2318 | + .pxafb_backlight_power = zylonite_backlight_power, | ||
2319 | +}; | ||
2320 | + | ||
2321 | +static void __init zylonite_init_lcd(void) | ||
2322 | +{ | ||
2323 | + /* backlight GPIO: output, default on */ | ||
2324 | + gpio_direction_output(gpio_backlight, 1); | ||
2325 | + | ||
2326 | + if (lcd_id & 0x20) { | ||
2327 | + set_pxa_fb_info(&zylonite_sharp_lcd_info); | ||
2328 | + return; | ||
2329 | + } | ||
2330 | + | ||
2331 | + /* legacy LCD panels, it would be handy here if LCD panel type can | ||
2332 | + * be decided at run-time | ||
2333 | + */ | ||
2334 | + if (1) | ||
2335 | + zylonite_toshiba_lcd_info.modes = &toshiba_ltm035a776c_mode; | ||
2336 | + else | ||
2337 | + zylonite_toshiba_lcd_info.modes = &toshiba_ltm04c380k_mode; | ||
2338 | + | ||
2339 | + set_pxa_fb_info(&zylonite_toshiba_lcd_info); | ||
2340 | +} | ||
2341 | +#else | ||
2342 | +static inline void zylonite_init_lcd(void) {} | ||
2343 | +#endif | ||
2344 | + | ||
2345 | +static void __init zylonite_init(void) | ||
2346 | +{ | ||
2347 | + /* board-processor specific initialization */ | ||
2348 | + zylonite_pxa300_init(); | ||
2349 | + zylonite_pxa320_init(); | ||
2350 | + | ||
2351 | + /* | ||
2352 | + * Note: We depend that the bootloader set | ||
2353 | + * the correct value to MSC register for SMC91x. | ||
2354 | + */ | ||
2355 | + smc91x_resources[1].start = gpio_to_irq(gpio_eth_irq); | ||
2356 | + smc91x_resources[1].end = gpio_to_irq(gpio_eth_irq); | ||
2357 | + platform_device_register(&smc91x_device); | ||
2358 | + | ||
2359 | + zylonite_init_lcd(); | ||
2360 | +} | ||
2361 | + | ||
2362 | +MACHINE_START(ZYLONITE, "PXA3xx Platform Development Kit (aka Zylonite)") | ||
2363 | + .phys_io = 0x40000000, | ||
2364 | + .boot_params = 0xa0000100, | ||
2365 | + .io_pg_offst = (io_p2v(0x40000000) >> 18) & 0xfffc, | ||
2366 | + .map_io = pxa_map_io, | ||
2367 | + .init_irq = pxa3xx_init_irq, | ||
2368 | + .timer = &pxa_timer, | ||
2369 | + .init_machine = zylonite_init, | ||
2370 | +MACHINE_END | ||
2371 | Index: linux-2.6.22/arch/arm/mach-pxa/zylonite_pxa300.c | ||
2372 | =================================================================== | ||
2373 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
2374 | +++ linux-2.6.22/arch/arm/mach-pxa/zylonite_pxa300.c 2007-09-24 20:57:20.000000000 +0200 | ||
2375 | @@ -0,0 +1,188 @@ | ||
2376 | +/* | ||
2377 | + * linux/arch/arm/mach-pxa/zylonite_pxa300.c | ||
2378 | + * | ||
2379 | + * PXA300/PXA310 specific support code for the | ||
2380 | + * PXA3xx Development Platform (aka Zylonite) | ||
2381 | + * | ||
2382 | + * Copyright (C) 2007 Marvell Internation Ltd. | ||
2383 | + * 2007-08-21: eric miao <eric.y.miao@gmail.com> | ||
2384 | + * initial version | ||
2385 | + * | ||
2386 | + * This program is free software; you can redistribute it and/or modify | ||
2387 | + * it under the terms of the GNU General Public License version 2 as | ||
2388 | + * published by the Free Software Foundation. | ||
2389 | + */ | ||
2390 | + | ||
2391 | +#include <linux/module.h> | ||
2392 | +#include <linux/kernel.h> | ||
2393 | +#include <linux/init.h> | ||
2394 | + | ||
2395 | +#include <asm/gpio.h> | ||
2396 | +#include <asm/arch/mfp-pxa300.h> | ||
2397 | +#include <asm/arch/zylonite.h> | ||
2398 | + | ||
2399 | +#define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x) | ||
2400 | + | ||
2401 | +/* PXA300/PXA310 common configurations */ | ||
2402 | +static mfp_cfg_t common_mfp_cfg[] __initdata = { | ||
2403 | + /* LCD */ | ||
2404 | + GPIO54_LCD_LDD_0, | ||
2405 | + GPIO55_LCD_LDD_1, | ||
2406 | + GPIO56_LCD_LDD_2, | ||
2407 | + GPIO57_LCD_LDD_3, | ||
2408 | + GPIO58_LCD_LDD_4, | ||
2409 | + GPIO59_LCD_LDD_5, | ||
2410 | + GPIO60_LCD_LDD_6, | ||
2411 | + GPIO61_LCD_LDD_7, | ||
2412 | + GPIO62_LCD_LDD_8, | ||
2413 | + GPIO63_LCD_LDD_9, | ||
2414 | + GPIO64_LCD_LDD_10, | ||
2415 | + GPIO65_LCD_LDD_11, | ||
2416 | + GPIO66_LCD_LDD_12, | ||
2417 | + GPIO67_LCD_LDD_13, | ||
2418 | + GPIO68_LCD_LDD_14, | ||
2419 | + GPIO69_LCD_LDD_15, | ||
2420 | + GPIO70_LCD_LDD_16, | ||
2421 | + GPIO71_LCD_LDD_17, | ||
2422 | + GPIO72_LCD_FCLK, | ||
2423 | + GPIO73_LCD_LCLK, | ||
2424 | + GPIO74_LCD_PCLK, | ||
2425 | + GPIO75_LCD_BIAS, | ||
2426 | + GPIO76_LCD_VSYNC, | ||
2427 | + GPIO127_LCD_CS_N, | ||
2428 | + | ||
2429 | + /* BTUART */ | ||
2430 | + GPIO111_UART2_RTS, | ||
2431 | + GPIO112_UART2_RXD, | ||
2432 | + GPIO113_UART2_TXD, | ||
2433 | + GPIO114_UART2_CTS, | ||
2434 | + | ||
2435 | + /* STUART */ | ||
2436 | + GPIO109_UART3_TXD, | ||
2437 | + GPIO110_UART3_RXD, | ||
2438 | + | ||
2439 | + /* AC97 */ | ||
2440 | + GPIO23_AC97_nACRESET, | ||
2441 | + GPIO24_AC97_SYSCLK, | ||
2442 | + GPIO29_AC97_BITCLK, | ||
2443 | + GPIO25_AC97_SDATA_IN_0, | ||
2444 | + GPIO27_AC97_SDATA_OUT, | ||
2445 | + GPIO28_AC97_SYNC, | ||
2446 | + | ||
2447 | + /* Keypad */ | ||
2448 | + GPIO107_KP_DKIN_0, | ||
2449 | + GPIO108_KP_DKIN_1, | ||
2450 | + GPIO115_KP_MKIN_0, | ||
2451 | + GPIO116_KP_MKIN_1, | ||
2452 | + GPIO117_KP_MKIN_2, | ||
2453 | + GPIO118_KP_MKIN_3, | ||
2454 | + GPIO119_KP_MKIN_4, | ||
2455 | + GPIO120_KP_MKIN_5, | ||
2456 | + GPIO2_2_KP_MKIN_6, | ||
2457 | + GPIO3_2_KP_MKIN_7, | ||
2458 | + GPIO121_KP_MKOUT_0, | ||
2459 | + GPIO122_KP_MKOUT_1, | ||
2460 | + GPIO123_KP_MKOUT_2, | ||
2461 | + GPIO124_KP_MKOUT_3, | ||
2462 | + GPIO125_KP_MKOUT_4, | ||
2463 | + GPIO4_2_KP_MKOUT_5, | ||
2464 | + GPIO5_2_KP_MKOUT_6, | ||
2465 | + GPIO6_2_KP_MKOUT_7, | ||
2466 | +}; | ||
2467 | + | ||
2468 | +static mfp_cfg_t pxa300_mfp_cfg[] __initdata = { | ||
2469 | + /* FFUART */ | ||
2470 | + GPIO30_UART1_RXD, | ||
2471 | + GPIO31_UART1_TXD, | ||
2472 | + GPIO32_UART1_CTS, | ||
2473 | + GPIO37_UART1_RTS, | ||
2474 | + GPIO33_UART1_DCD, | ||
2475 | + GPIO34_UART1_DSR, | ||
2476 | + GPIO35_UART1_RI, | ||
2477 | + GPIO36_UART1_DTR, | ||
2478 | + | ||
2479 | + /* Ethernet */ | ||
2480 | + GPIO2_nCS3, | ||
2481 | + GPIO99_GPIO, | ||
2482 | +}; | ||
2483 | + | ||
2484 | +static mfp_cfg_t pxa310_mfp_cfg[] __initdata = { | ||
2485 | + /* FFUART */ | ||
2486 | + GPIO99_UART1_RXD, | ||
2487 | + GPIO100_UART1_TXD, | ||
2488 | + GPIO101_UART1_CTS, | ||
2489 | + GPIO106_UART1_RTS, | ||
2490 | + | ||
2491 | + /* Ethernet */ | ||
2492 | + GPIO2_nCS3, | ||
2493 | + GPIO102_GPIO, | ||
2494 | +}; | ||
2495 | + | ||
2496 | +#define NUM_LCD_DETECT_PINS 7 | ||
2497 | + | ||
2498 | +static int lcd_detect_pins[] __initdata = { | ||
2499 | + MFP_PIN_GPIO71, /* LCD_LDD_17 - ORIENT */ | ||
2500 | + MFP_PIN_GPIO70, /* LCD_LDD_16 - LCDID[5] */ | ||
2501 | + MFP_PIN_GPIO75, /* LCD_BIAS - LCDID[4] */ | ||
2502 | + MFP_PIN_GPIO73, /* LCD_LCLK - LCDID[3] */ | ||
2503 | + MFP_PIN_GPIO72, /* LCD_FCLK - LCDID[2] */ | ||
2504 | + MFP_PIN_GPIO127,/* LCD_CS_N - LCDID[1] */ | ||
2505 | + MFP_PIN_GPIO76, /* LCD_VSYNC - LCDID[0] */ | ||
2506 | +}; | ||
2507 | + | ||
2508 | +static void __init zylonite_detect_lcd_panel(void) | ||
2509 | +{ | ||
2510 | + unsigned long mfpr_save[NUM_LCD_DETECT_PINS]; | ||
2511 | + int i, gpio, id = 0; | ||
2512 | + | ||
2513 | + /* save the original MFP settings of these pins and configure | ||
2514 | + * them as GPIO Input, DS01X, Pull Neither, Edge Clear | ||
2515 | + */ | ||
2516 | + for (i = 0; i < NUM_LCD_DETECT_PINS; i++) { | ||
2517 | + mfpr_save[i] = pxa3xx_mfp_read(lcd_detect_pins[i]); | ||
2518 | + pxa3xx_mfp_write(lcd_detect_pins[i], 0x8440); | ||
2519 | + } | ||
2520 | + | ||
2521 | + for (i = 0; i < NUM_LCD_DETECT_PINS; i++) { | ||
2522 | + id = id << 1; | ||
2523 | + gpio = mfp_to_gpio(lcd_detect_pins[i]); | ||
2524 | + gpio_direction_input(gpio); | ||
2525 | + | ||
2526 | + if (gpio_get_value(gpio)) | ||
2527 | + id = id | 0x1; | ||
2528 | + } | ||
2529 | + | ||
2530 | + /* lcd id, flush out bit 1 */ | ||
2531 | + lcd_id = id & 0x3d; | ||
2532 | + | ||
2533 | + /* lcd orientation, portrait or landscape */ | ||
2534 | + lcd_orientation = (id >> 6) & 0x1; | ||
2535 | + | ||
2536 | + /* restore the original MFP settings */ | ||
2537 | + for (i = 0; i < NUM_LCD_DETECT_PINS; i++) | ||
2538 | + pxa3xx_mfp_write(lcd_detect_pins[i], mfpr_save[i]); | ||
2539 | +} | ||
2540 | + | ||
2541 | +void __init zylonite_pxa300_init(void) | ||
2542 | +{ | ||
2543 | + if (cpu_is_pxa300() || cpu_is_pxa310()) { | ||
2544 | + /* initialize MFP */ | ||
2545 | + pxa3xx_mfp_config(ARRAY_AND_SIZE(common_mfp_cfg)); | ||
2546 | + | ||
2547 | + /* detect LCD panel */ | ||
2548 | + zylonite_detect_lcd_panel(); | ||
2549 | + | ||
2550 | + /* GPIO pin assignment */ | ||
2551 | + gpio_backlight = mfp_to_gpio(MFP_PIN_GPIO20); | ||
2552 | + } | ||
2553 | + | ||
2554 | + if (cpu_is_pxa300()) { | ||
2555 | + pxa3xx_mfp_config(ARRAY_AND_SIZE(pxa300_mfp_cfg)); | ||
2556 | + gpio_eth_irq = mfp_to_gpio(MFP_PIN_GPIO99); | ||
2557 | + } | ||
2558 | + | ||
2559 | + if (cpu_is_pxa310()) { | ||
2560 | + pxa3xx_mfp_config(ARRAY_AND_SIZE(pxa310_mfp_cfg)); | ||
2561 | + gpio_eth_irq = mfp_to_gpio(MFP_PIN_GPIO102); | ||
2562 | + } | ||
2563 | +} | ||
2564 | Index: linux-2.6.22/arch/arm/mach-pxa/zylonite_pxa320.c | ||
2565 | =================================================================== | ||
2566 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
2567 | +++ linux-2.6.22/arch/arm/mach-pxa/zylonite_pxa320.c 2007-09-24 20:57:20.000000000 +0200 | ||
2568 | @@ -0,0 +1,173 @@ | ||
2569 | +/* | ||
2570 | + * linux/arch/arm/mach-pxa/zylonite_pxa320.c | ||
2571 | + * | ||
2572 | + * PXA320 specific support code for the | ||
2573 | + * PXA3xx Development Platform (aka Zylonite) | ||
2574 | + * | ||
2575 | + * Copyright (C) 2007 Marvell Internation Ltd. | ||
2576 | + * 2007-08-21: eric miao <eric.y.miao@gmail.com> | ||
2577 | + * initial version | ||
2578 | + * | ||
2579 | + * This program is free software; you can redistribute it and/or modify | ||
2580 | + * it under the terms of the GNU General Public License version 2 as | ||
2581 | + * published by the Free Software Foundation. | ||
2582 | + */ | ||
2583 | + | ||
2584 | +#include <linux/module.h> | ||
2585 | +#include <linux/kernel.h> | ||
2586 | +#include <linux/init.h> | ||
2587 | + | ||
2588 | +#include <asm/arch/gpio.h> | ||
2589 | +#include <asm/arch/mfp-pxa320.h> | ||
2590 | +#include <asm/arch/zylonite.h> | ||
2591 | + | ||
2592 | +#define ARRAY_AND_SIZE(x) (x), ARRAY_SIZE(x) | ||
2593 | + | ||
2594 | +static mfp_cfg_t mfp_cfg[] __initdata = { | ||
2595 | + /* LCD */ | ||
2596 | + GPIO6_2_LCD_LDD_0, | ||
2597 | + GPIO7_2_LCD_LDD_1, | ||
2598 | + GPIO8_2_LCD_LDD_2, | ||
2599 | + GPIO9_2_LCD_LDD_3, | ||
2600 | + GPIO10_2_LCD_LDD_4, | ||
2601 | + GPIO11_2_LCD_LDD_5, | ||
2602 | + GPIO12_2_LCD_LDD_6, | ||
2603 | + GPIO13_2_LCD_LDD_7, | ||
2604 | + GPIO63_LCD_LDD_8, | ||
2605 | + GPIO64_LCD_LDD_9, | ||
2606 | + GPIO65_LCD_LDD_10, | ||
2607 | + GPIO66_LCD_LDD_11, | ||
2608 | + GPIO67_LCD_LDD_12, | ||
2609 | + GPIO68_LCD_LDD_13, | ||
2610 | + GPIO69_LCD_LDD_14, | ||
2611 | + GPIO70_LCD_LDD_15, | ||
2612 | + GPIO71_LCD_LDD_16, | ||
2613 | + GPIO72_LCD_LDD_17, | ||
2614 | + GPIO73_LCD_CS_N, | ||
2615 | + GPIO74_LCD_VSYNC, | ||
2616 | + GPIO14_2_LCD_FCLK, | ||
2617 | + GPIO15_2_LCD_LCLK, | ||
2618 | + GPIO16_2_LCD_PCLK, | ||
2619 | + GPIO17_2_LCD_BIAS, | ||
2620 | + | ||
2621 | + /* FFUART */ | ||
2622 | + GPIO41_UART1_RXD, | ||
2623 | + GPIO42_UART1_TXD, | ||
2624 | + GPIO43_UART1_CTS, | ||
2625 | + GPIO44_UART1_DCD, | ||
2626 | + GPIO45_UART1_DSR, | ||
2627 | + GPIO46_UART1_RI, | ||
2628 | + GPIO47_UART1_DTR, | ||
2629 | + GPIO48_UART1_RTS, | ||
2630 | + | ||
2631 | + /* AC97 */ | ||
2632 | + GPIO34_AC97_SYSCLK, | ||
2633 | + GPIO35_AC97_SDATA_IN_0, | ||
2634 | + GPIO37_AC97_SDATA_OUT, | ||
2635 | + GPIO38_AC97_SYNC, | ||
2636 | + GPIO39_AC97_BITCLK, | ||
2637 | + GPIO40_AC97_nACRESET, | ||
2638 | + | ||
2639 | + /* I2C */ | ||
2640 | + GPIO32_I2C_SCL, | ||
2641 | + GPIO33_I2C_SDA, | ||
2642 | + | ||
2643 | + /* Keypad */ | ||
2644 | + GPIO105_KP_DKIN_0, | ||
2645 | + GPIO106_KP_DKIN_1, | ||
2646 | + GPIO113_KP_MKIN_0, | ||
2647 | + GPIO114_KP_MKIN_1, | ||
2648 | + GPIO115_KP_MKIN_2, | ||
2649 | + GPIO116_KP_MKIN_3, | ||
2650 | + GPIO117_KP_MKIN_4, | ||
2651 | + GPIO118_KP_MKIN_5, | ||
2652 | + GPIO119_KP_MKIN_6, | ||
2653 | + GPIO120_KP_MKIN_7, | ||
2654 | + GPIO121_KP_MKOUT_0, | ||
2655 | + GPIO122_KP_MKOUT_1, | ||
2656 | + GPIO123_KP_MKOUT_2, | ||
2657 | + GPIO124_KP_MKOUT_3, | ||
2658 | + GPIO125_KP_MKOUT_4, | ||
2659 | + GPIO126_KP_MKOUT_5, | ||
2660 | + GPIO127_KP_MKOUT_6, | ||
2661 | + GPIO5_2_KP_MKOUT_7, | ||
2662 | + | ||
2663 | + /* Ethernet */ | ||
2664 | + GPIO4_nCS3, | ||
2665 | + GPIO90_GPIO, | ||
2666 | +}; | ||
2667 | + | ||
2668 | +#define NUM_LCD_DETECT_PINS 7 | ||
2669 | + | ||
2670 | +static int lcd_detect_pins[] __initdata = { | ||
2671 | + MFP_PIN_GPIO72, /* LCD_LDD_17 - ORIENT */ | ||
2672 | + MFP_PIN_GPIO71, /* LCD_LDD_16 - LCDID[5] */ | ||
2673 | + MFP_PIN_GPIO17_2, /* LCD_BIAS - LCDID[4] */ | ||
2674 | + MFP_PIN_GPIO15_2, /* LCD_LCLK - LCDID[3] */ | ||
2675 | + MFP_PIN_GPIO14_2, /* LCD_FCLK - LCDID[2] */ | ||
2676 | + MFP_PIN_GPIO73, /* LCD_CS_N - LCDID[1] */ | ||
2677 | + MFP_PIN_GPIO74, /* LCD_VSYNC - LCDID[0] */ | ||
2678 | + /* | ||
2679 | + * set the MFP_PIN_GPIO 14/15/17 to alternate function other than | ||
2680 | + * GPIO to avoid input level confliction with 14_2, 15_2, 17_2 | ||
2681 | + */ | ||
2682 | + MFP_PIN_GPIO14, | ||
2683 | + MFP_PIN_GPIO15, | ||
2684 | + MFP_PIN_GPIO17, | ||
2685 | +}; | ||
2686 | + | ||
2687 | +static int lcd_detect_mfpr[] __initdata = { | ||
2688 | + /* AF0, DS 1X, Pull Neither, Edge Clear */ | ||
2689 | + 0x8440, 0x8440, 0x8440, 0x8440, 0x8440, 0x8440, 0x8440, | ||
2690 | + 0xc442, /* Backlight, Pull-Up, AF2 */ | ||
2691 | + 0x8445, /* AF5 */ | ||
2692 | + 0x8445, /* AF5 */ | ||
2693 | +}; | ||
2694 | + | ||
2695 | +static void __init zylonite_detect_lcd_panel(void) | ||
2696 | +{ | ||
2697 | + unsigned long mfpr_save[ARRAY_SIZE(lcd_detect_pins)]; | ||
2698 | + int i, gpio, id = 0; | ||
2699 | + | ||
2700 | + /* save the original MFP settings of these pins and configure them | ||
2701 | + * as GPIO Input, DS01X, Pull Neither, Edge Clear | ||
2702 | + */ | ||
2703 | + for (i = 0; i < ARRAY_SIZE(lcd_detect_pins); i++) { | ||
2704 | + mfpr_save[i] = pxa3xx_mfp_read(lcd_detect_pins[i]); | ||
2705 | + pxa3xx_mfp_write(lcd_detect_pins[i], lcd_detect_mfpr[i]); | ||
2706 | + } | ||
2707 | + | ||
2708 | + for (i = 0; i < NUM_LCD_DETECT_PINS; i++) { | ||
2709 | + id = id << 1; | ||
2710 | + gpio = mfp_to_gpio(lcd_detect_pins[i]); | ||
2711 | + gpio_direction_input(gpio); | ||
2712 | + | ||
2713 | + if (gpio_get_value(gpio)) | ||
2714 | + id = id | 0x1; | ||
2715 | + } | ||
2716 | + | ||
2717 | + /* lcd id, flush out bit 1 */ | ||
2718 | + lcd_id = id & 0x3d; | ||
2719 | + | ||
2720 | + /* lcd orientation, portrait or landscape */ | ||
2721 | + lcd_orientation = (id >> 6) & 0x1; | ||
2722 | + | ||
2723 | + /* restore the original MFP settings */ | ||
2724 | + for (i = 0; i < ARRAY_SIZE(lcd_detect_pins); i++) | ||
2725 | + pxa3xx_mfp_write(lcd_detect_pins[i], mfpr_save[i]); | ||
2726 | +} | ||
2727 | + | ||
2728 | +void __init zylonite_pxa320_init(void) | ||
2729 | +{ | ||
2730 | + if (cpu_is_pxa320()) { | ||
2731 | + /* initialize MFP */ | ||
2732 | + pxa3xx_mfp_config(ARRAY_AND_SIZE(mfp_cfg)); | ||
2733 | + | ||
2734 | + /* detect LCD panel */ | ||
2735 | + zylonite_detect_lcd_panel(); | ||
2736 | + | ||
2737 | + /* GPIO pin assignment */ | ||
2738 | + gpio_backlight = mfp_to_gpio(MFP_PIN_GPIO14); | ||
2739 | + gpio_eth_irq = mfp_to_gpio(MFP_PIN_GPIO9); | ||
2740 | + } | ||
2741 | +} | ||
2742 | Index: linux-2.6.22/arch/arm/mm/Kconfig | ||
2743 | =================================================================== | ||
2744 | --- linux-2.6.22.orig/arch/arm/mm/Kconfig 2007-09-24 20:56:51.000000000 +0200 | ||
2745 | +++ linux-2.6.22/arch/arm/mm/Kconfig 2007-09-24 20:57:20.000000000 +0200 | ||
2746 | @@ -322,7 +322,7 @@ | ||
2747 | # XScale | ||
2748 | config CPU_XSCALE | ||
2749 | bool | ||
2750 | - depends on ARCH_IOP32X || ARCH_IOP33X || ARCH_PXA || ARCH_IXP4XX || ARCH_IXP2000 | ||
2751 | + depends on ARCH_IOP32X || ARCH_IOP33X || PXA25x || PXA27x || ARCH_IXP4XX || ARCH_IXP2000 | ||
2752 | default y | ||
2753 | select CPU_32v5 | ||
2754 | select CPU_ABRT_EV5T | ||
2755 | @@ -333,7 +333,7 @@ | ||
2756 | # XScale Core Version 3 | ||
2757 | config CPU_XSC3 | ||
2758 | bool | ||
2759 | - depends on ARCH_IXP23XX || ARCH_IOP13XX | ||
2760 | + depends on ARCH_IXP23XX || ARCH_IOP13XX || PXA3xx | ||
2761 | default y | ||
2762 | select CPU_32v5 | ||
2763 | select CPU_ABRT_EV5T | ||
2764 | Index: linux-2.6.22/drivers/i2c/busses/i2c-pxa.c | ||
2765 | =================================================================== | ||
2766 | --- linux-2.6.22.orig/drivers/i2c/busses/i2c-pxa.c 2007-09-24 20:56:56.000000000 +0200 | ||
2767 | +++ linux-2.6.22/drivers/i2c/busses/i2c-pxa.c 2007-09-24 20:57:20.000000000 +0200 | ||
2768 | @@ -31,6 +31,8 @@ | ||
2769 | #include <linux/interrupt.h> | ||
2770 | #include <linux/i2c-pxa.h> | ||
2771 | #include <linux/platform_device.h> | ||
2772 | +#include <linux/err.h> | ||
2773 | +#include <linux/clk.h> | ||
2774 | |||
2775 | #include <asm/hardware.h> | ||
2776 | #include <asm/irq.h> | ||
2777 | @@ -48,6 +50,7 @@ | ||
2778 | unsigned int slave_addr; | ||
2779 | |||
2780 | struct i2c_adapter adap; | ||
2781 | + struct clk *clk; | ||
2782 | #ifdef CONFIG_I2C_PXA_SLAVE | ||
2783 | struct i2c_slave_client *slave; | ||
2784 | #endif | ||
2785 | @@ -869,6 +872,12 @@ | ||
2786 | |||
2787 | sprintf(i2c->adap.name, "pxa_i2c-i2c.%u", dev->id); | ||
2788 | |||
2789 | + i2c->clk = clk_get(&dev->dev, "I2CCLK"); | ||
2790 | + if (IS_ERR(i2c->clk)) { | ||
2791 | + ret = PTR_ERR(i2c->clk); | ||
2792 | + goto eclk; | ||
2793 | + } | ||
2794 | + | ||
2795 | i2c->reg_base = ioremap(res->start, res_len(res)); | ||
2796 | if (!i2c->reg_base) { | ||
2797 | ret = -EIO; | ||
2798 | @@ -889,22 +898,19 @@ | ||
2799 | } | ||
2800 | #endif | ||
2801 | |||
2802 | + clk_enable(i2c->clk); | ||
2803 | +#ifdef CONFIG_PXA27x | ||
2804 | switch (dev->id) { | ||
2805 | case 0: | ||
2806 | -#ifdef CONFIG_PXA27x | ||
2807 | pxa_gpio_mode(GPIO117_I2CSCL_MD); | ||
2808 | pxa_gpio_mode(GPIO118_I2CSDA_MD); | ||
2809 | -#endif | ||
2810 | - pxa_set_cken(CKEN_I2C, 1); | ||
2811 | break; | ||
2812 | -#ifdef CONFIG_PXA27x | ||
2813 | case 1: | ||
2814 | local_irq_disable(); | ||
2815 | PCFR |= PCFR_PI2CEN; | ||
2816 | local_irq_enable(); | ||
2817 | - pxa_set_cken(CKEN_PWRI2C, 1); | ||
2818 | -#endif | ||
2819 | } | ||
2820 | +#endif | ||
2821 | |||
2822 | ret = request_irq(irq, i2c_pxa_handler, IRQF_DISABLED, | ||
2823 | i2c->adap.name, i2c); | ||
2824 | @@ -948,19 +954,18 @@ | ||
2825 | eadapt: | ||
2826 | free_irq(irq, i2c); | ||
2827 | ereqirq: | ||
2828 | - switch (dev->id) { | ||
2829 | - case 0: | ||
2830 | - pxa_set_cken(CKEN_I2C, 0); | ||
2831 | - break; | ||
2832 | + clk_disable(i2c->clk); | ||
2833 | + | ||
2834 | #ifdef CONFIG_PXA27x | ||
2835 | - case 1: | ||
2836 | - pxa_set_cken(CKEN_PWRI2C, 0); | ||
2837 | + if (dev->id == 1) { | ||
2838 | local_irq_disable(); | ||
2839 | PCFR &= ~PCFR_PI2CEN; | ||
2840 | local_irq_enable(); | ||
2841 | -#endif | ||
2842 | } | ||
2843 | +#endif | ||
2844 | eremap: | ||
2845 | + clk_put(i2c->clk); | ||
2846 | +eclk: | ||
2847 | kfree(i2c); | ||
2848 | emalloc: | ||
2849 | release_mem_region(res->start, res_len(res)); | ||
2850 | @@ -975,18 +980,18 @@ | ||
2851 | |||
2852 | i2c_del_adapter(&i2c->adap); | ||
2853 | free_irq(i2c->irq, i2c); | ||
2854 | - switch (dev->id) { | ||
2855 | - case 0: | ||
2856 | - pxa_set_cken(CKEN_I2C, 0); | ||
2857 | - break; | ||
2858 | + | ||
2859 | + clk_disable(i2c->clk); | ||
2860 | + clk_put(i2c->clk); | ||
2861 | + | ||
2862 | #ifdef CONFIG_PXA27x | ||
2863 | - case 1: | ||
2864 | - pxa_set_cken(CKEN_PWRI2C, 0); | ||
2865 | + if (dev->id == 1) { | ||
2866 | local_irq_disable(); | ||
2867 | PCFR &= ~PCFR_PI2CEN; | ||
2868 | local_irq_enable(); | ||
2869 | -#endif | ||
2870 | } | ||
2871 | +#endif | ||
2872 | + | ||
2873 | release_mem_region(i2c->iobase, i2c->iosize); | ||
2874 | kfree(i2c); | ||
2875 | |||
2876 | Index: linux-2.6.22/drivers/input/keyboard/pxa27x_keyboard.c | ||
2877 | =================================================================== | ||
2878 | --- linux-2.6.22.orig/drivers/input/keyboard/pxa27x_keyboard.c 2007-09-24 20:56:56.000000000 +0200 | ||
2879 | +++ linux-2.6.22/drivers/input/keyboard/pxa27x_keyboard.c 2007-09-24 20:57:20.000000000 +0200 | ||
2880 | @@ -23,6 +23,8 @@ | ||
2881 | #include <linux/input.h> | ||
2882 | #include <linux/device.h> | ||
2883 | #include <linux/platform_device.h> | ||
2884 | +#include <linux/clk.h> | ||
2885 | +#include <linux/err.h> | ||
2886 | |||
2887 | #include <asm/mach-types.h> | ||
2888 | #include <asm/mach/arch.h> | ||
2889 | @@ -40,6 +42,8 @@ | ||
2890 | col/2 == 2 ? KPASMKP2 : KPASMKP3) | ||
2891 | #define KPASMKPx_MKC(row, col) (1 << (row + 16 * (col % 2))) | ||
2892 | |||
2893 | +static struct clk *pxakbd_clk; | ||
2894 | + | ||
2895 | static irqreturn_t pxakbd_irq_handler(int irq, void *dev_id) | ||
2896 | { | ||
2897 | struct platform_device *pdev = dev_id; | ||
2898 | @@ -104,7 +108,7 @@ | ||
2899 | KPREC = 0x7F; | ||
2900 | |||
2901 | /* Enable unit clock */ | ||
2902 | - pxa_set_cken(CKEN_KEYPAD, 1); | ||
2903 | + clk_enable(pxakbd_clk); | ||
2904 | |||
2905 | return 0; | ||
2906 | } | ||
2907 | @@ -112,7 +116,7 @@ | ||
2908 | static void pxakbd_close(struct input_dev *dev) | ||
2909 | { | ||
2910 | /* Disable clock unit */ | ||
2911 | - pxa_set_cken(CKEN_KEYPAD, 0); | ||
2912 | + clk_disable(pxakbd_clk); | ||
2913 | } | ||
2914 | |||
2915 | #ifdef CONFIG_PM | ||
2916 | @@ -140,7 +144,8 @@ | ||
2917 | KPREC = pdata->reg_kprec; | ||
2918 | |||
2919 | /* Enable unit clock */ | ||
2920 | - pxa_set_cken(CKEN_KEYPAD, 1); | ||
2921 | + clk_disable(pxakbd_clk); | ||
2922 | + clk_enable(pxakbd_clk); | ||
2923 | } | ||
2924 | |||
2925 | mutex_unlock(&input_dev->mutex); | ||
2926 | @@ -158,11 +163,18 @@ | ||
2927 | struct input_dev *input_dev; | ||
2928 | int i, row, col, error; | ||
2929 | |||
2930 | + pxakbd_clk = clk_get(&pdev->dev, "KBDCLK"); | ||
2931 | + if (IS_ERR(pxakbd_clk)) { | ||
2932 | + error = PTR_ERR(pxakbd_clk); | ||
2933 | + goto err_clk; | ||
2934 | + } | ||
2935 | + | ||
2936 | /* Create and register the input driver. */ | ||
2937 | input_dev = input_allocate_device(); | ||
2938 | if (!input_dev) { | ||
2939 | printk(KERN_ERR "Cannot request keypad device\n"); | ||
2940 | - return -ENOMEM; | ||
2941 | + error = -ENOMEM; | ||
2942 | + goto err_alloc; | ||
2943 | } | ||
2944 | |||
2945 | input_dev->name = DRIVER_NAME; | ||
2946 | @@ -185,7 +197,6 @@ | ||
2947 | DRIVER_NAME, pdev); | ||
2948 | if (error) { | ||
2949 | printk(KERN_ERR "Cannot request keypad IRQ\n"); | ||
2950 | - pxa_set_cken(CKEN_KEYPAD, 0); | ||
2951 | goto err_free_dev; | ||
2952 | } | ||
2953 | |||
2954 | @@ -217,6 +228,9 @@ | ||
2955 | free_irq(IRQ_KEYPAD, pdev); | ||
2956 | err_free_dev: | ||
2957 | input_free_device(input_dev); | ||
2958 | + err_alloc: | ||
2959 | + clk_put(pxakbd_clk); | ||
2960 | + err_clk: | ||
2961 | return error; | ||
2962 | } | ||
2963 | |||
2964 | @@ -226,6 +240,7 @@ | ||
2965 | |||
2966 | input_unregister_device(input_dev); | ||
2967 | free_irq(IRQ_KEYPAD, pdev); | ||
2968 | + clk_put(pxakbd_clk); | ||
2969 | platform_set_drvdata(pdev, NULL); | ||
2970 | |||
2971 | return 0; | ||
2972 | Index: linux-2.6.22/drivers/mmc/host/pxamci.c | ||
2973 | =================================================================== | ||
2974 | --- linux-2.6.22.orig/drivers/mmc/host/pxamci.c 2007-09-24 20:56:58.000000000 +0200 | ||
2975 | +++ linux-2.6.22/drivers/mmc/host/pxamci.c 2007-09-24 20:57:20.000000000 +0200 | ||
2976 | @@ -23,6 +23,8 @@ | ||
2977 | #include <linux/delay.h> | ||
2978 | #include <linux/interrupt.h> | ||
2979 | #include <linux/dma-mapping.h> | ||
2980 | +#include <linux/clk.h> | ||
2981 | +#include <linux/err.h> | ||
2982 | #include <linux/mmc/host.h> | ||
2983 | |||
2984 | #include <asm/dma.h> | ||
2985 | @@ -44,6 +46,8 @@ | ||
2986 | spinlock_t lock; | ||
2987 | struct resource *res; | ||
2988 | void __iomem *base; | ||
2989 | + struct clk *clk; | ||
2990 | + unsigned long clkrate; | ||
2991 | int irq; | ||
2992 | int dma; | ||
2993 | unsigned int clkrt; | ||
2994 | @@ -119,7 +123,7 @@ | ||
2995 | writel(nob, host->base + MMC_NOB); | ||
2996 | writel(data->blksz, host->base + MMC_BLKLEN); | ||
2997 | |||
2998 | - clks = (unsigned long long)data->timeout_ns * CLOCKRATE; | ||
2999 | + clks = (unsigned long long)data->timeout_ns * host->clkrate; | ||
3000 | do_div(clks, 1000000000UL); | ||
3001 | timeout = (unsigned int)clks + (data->timeout_clks << host->clkrt); | ||
3002 | writel((timeout + 255) / 256, host->base + MMC_RDTO); | ||
3003 | @@ -358,18 +362,25 @@ | ||
3004 | struct pxamci_host *host = mmc_priv(mmc); | ||
3005 | |||
3006 | if (ios->clock) { | ||
3007 | - unsigned int clk = CLOCKRATE / ios->clock; | ||
3008 | - if (CLOCKRATE / clk > ios->clock) | ||
3009 | + unsigned long rate = host->clkrate; | ||
3010 | + unsigned int clk = rate / ios->clock; | ||
3011 | + | ||
3012 | + /* | ||
3013 | + * clk might result in a lower divisor than we | ||
3014 | + * desire. check for that condition and adjust | ||
3015 | + * as appropriate. | ||
3016 | + */ | ||
3017 | + if (rate / clk > ios->clock) | ||
3018 | clk <<= 1; | ||
3019 | host->clkrt = fls(clk) - 1; | ||
3020 | - pxa_set_cken(CKEN_MMC, 1); | ||
3021 | + clk_enable(host->clk); | ||
3022 | |||
3023 | /* | ||
3024 | * we write clkrt on the next command | ||
3025 | */ | ||
3026 | } else { | ||
3027 | pxamci_stop_clock(host); | ||
3028 | - pxa_set_cken(CKEN_MMC, 0); | ||
3029 | + clk_disable(host->clk); | ||
3030 | } | ||
3031 | |||
3032 | if (host->power_mode != ios->power_mode) { | ||
3033 | @@ -429,8 +440,6 @@ | ||
3034 | } | ||
3035 | |||
3036 | mmc->ops = &pxamci_ops; | ||
3037 | - mmc->f_min = CLOCKRATE_MIN; | ||
3038 | - mmc->f_max = CLOCKRATE_MAX; | ||
3039 | |||
3040 | /* | ||
3041 | * We can do SG-DMA, but we don't because we never know how much | ||
3042 | @@ -457,6 +466,22 @@ | ||
3043 | host->mmc = mmc; | ||
3044 | host->dma = -1; | ||
3045 | host->pdata = pdev->dev.platform_data; | ||
3046 | + | ||
3047 | + host->clk = clk_get(&pdev->dev, "MMCCLK"); | ||
3048 | + if (IS_ERR(host->clk)) { | ||
3049 | + ret = PTR_ERR(host->clk); | ||
3050 | + host->clk = NULL; | ||
3051 | + goto out; | ||
3052 | + } | ||
3053 | + | ||
3054 | + host->clkrate = clk_get_rate(host->clk); | ||
3055 | + | ||
3056 | + /* | ||
3057 | + * Calculate minimum clock rate, rounding up. | ||
3058 | + */ | ||
3059 | + mmc->f_min = (host->clkrate + 63) / 64; | ||
3060 | + mmc->f_max = host->clkrate; | ||
3061 | + | ||
3062 | mmc->ocr_avail = host->pdata ? | ||
3063 | host->pdata->ocr_mask : | ||
3064 | MMC_VDD_32_33|MMC_VDD_33_34; | ||
3065 | @@ -515,6 +540,8 @@ | ||
3066 | iounmap(host->base); | ||
3067 | if (host->sg_cpu) | ||
3068 | dma_free_coherent(&pdev->dev, PAGE_SIZE, host->sg_cpu, host->sg_dma); | ||
3069 | + if (host->clk) | ||
3070 | + clk_put(host->clk); | ||
3071 | } | ||
3072 | if (mmc) | ||
3073 | mmc_free_host(mmc); | ||
3074 | @@ -549,6 +576,8 @@ | ||
3075 | iounmap(host->base); | ||
3076 | dma_free_coherent(&pdev->dev, PAGE_SIZE, host->sg_cpu, host->sg_dma); | ||
3077 | |||
3078 | + clk_put(host->clk); | ||
3079 | + | ||
3080 | release_resource(host->res); | ||
3081 | |||
3082 | mmc_free_host(mmc); | ||
3083 | Index: linux-2.6.22/drivers/mmc/host/pxamci.h | ||
3084 | =================================================================== | ||
3085 | --- linux-2.6.22.orig/drivers/mmc/host/pxamci.h 2007-09-24 20:56:58.000000000 +0200 | ||
3086 | +++ linux-2.6.22/drivers/mmc/host/pxamci.h 2007-09-24 20:57:20.000000000 +0200 | ||
3087 | @@ -86,17 +86,3 @@ | ||
3088 | #define MMC_RXFIFO 0x0040 /* 8 bit */ | ||
3089 | |||
3090 | #define MMC_TXFIFO 0x0044 /* 8 bit */ | ||
3091 | - | ||
3092 | -/* | ||
3093 | - * The base MMC clock rate | ||
3094 | - */ | ||
3095 | -#ifdef CONFIG_PXA27x | ||
3096 | -#define CLOCKRATE_MIN 304688 | ||
3097 | -#define CLOCKRATE_MAX 19500000 | ||
3098 | -#else | ||
3099 | -#define CLOCKRATE_MIN 312500 | ||
3100 | -#define CLOCKRATE_MAX 20000000 | ||
3101 | -#endif | ||
3102 | - | ||
3103 | -#define CLOCKRATE CLOCKRATE_MAX | ||
3104 | - | ||
3105 | Index: linux-2.6.22/drivers/mtd/maps/lubbock-flash.c | ||
3106 | =================================================================== | ||
3107 | --- linux-2.6.22.orig/drivers/mtd/maps/lubbock-flash.c 2007-07-09 01:32:17.000000000 +0200 | ||
3108 | +++ linux-2.6.22/drivers/mtd/maps/lubbock-flash.c 2007-09-24 20:57:20.000000000 +0200 | ||
3109 | @@ -24,10 +24,10 @@ | ||
3110 | |||
3111 | #include <asm/io.h> | ||
3112 | #include <asm/hardware.h> | ||
3113 | +#include <asm/mach-types.h> | ||
3114 | #include <asm/arch/pxa-regs.h> | ||
3115 | #include <asm/arch/lubbock.h> | ||
3116 | |||
3117 | - | ||
3118 | #define ROM_ADDR 0x00000000 | ||
3119 | #define FLASH_ADDR 0x04000000 | ||
3120 | |||
3121 | @@ -73,9 +73,14 @@ | ||
3122 | |||
3123 | static int __init init_lubbock(void) | ||
3124 | { | ||
3125 | - int flashboot = (LUB_CONF_SWITCHES & 1); | ||
3126 | + int flashboot; | ||
3127 | int ret = 0, i; | ||
3128 | |||
3129 | + if (!machine_is_lubbock()) | ||
3130 | + return -ENODEV; | ||
3131 | + | ||
3132 | + flashboot = (LUB_CONF_SWITCHES & 1); | ||
3133 | + | ||
3134 | lubbock_maps[0].bankwidth = lubbock_maps[1].bankwidth = | ||
3135 | (BOOT_DEF & 1) ? 2 : 4; | ||
3136 | |||
3137 | Index: linux-2.6.22/drivers/mtd/maps/mainstone-flash.c | ||
3138 | =================================================================== | ||
3139 | --- linux-2.6.22.orig/drivers/mtd/maps/mainstone-flash.c 2007-07-09 01:32:17.000000000 +0200 | ||
3140 | +++ linux-2.6.22/drivers/mtd/maps/mainstone-flash.c 2007-09-24 20:57:20.000000000 +0200 | ||
3141 | @@ -24,10 +24,10 @@ | ||
3142 | |||
3143 | #include <asm/io.h> | ||
3144 | #include <asm/hardware.h> | ||
3145 | +#include <asm/mach-types.h> | ||
3146 | #include <asm/arch/pxa-regs.h> | ||
3147 | #include <asm/arch/mainstone.h> | ||
3148 | |||
3149 | - | ||
3150 | #define ROM_ADDR 0x00000000 | ||
3151 | #define FLASH_ADDR 0x04000000 | ||
3152 | |||
3153 | @@ -77,6 +77,9 @@ | ||
3154 | int SW7 = 0; /* FIXME: get from SCR (Mst doc section 3.2.1.1) */ | ||
3155 | int ret = 0, i; | ||
3156 | |||
3157 | + if (!machine_is_mainstone()) | ||
3158 | + return -ENODEV; | ||
3159 | + | ||
3160 | mainstone_maps[0].bankwidth = (BOOT_DEF & 1) ? 2 : 4; | ||
3161 | mainstone_maps[1].bankwidth = 4; | ||
3162 | |||
3163 | Index: linux-2.6.22/drivers/net/irda/pxaficp_ir.c | ||
3164 | =================================================================== | ||
3165 | --- linux-2.6.22.orig/drivers/net/irda/pxaficp_ir.c 2007-07-09 01:32:17.000000000 +0200 | ||
3166 | +++ linux-2.6.22/drivers/net/irda/pxaficp_ir.c 2007-09-24 20:57:20.000000000 +0200 | ||
3167 | @@ -23,6 +23,7 @@ | ||
3168 | #include <linux/dma-mapping.h> | ||
3169 | #include <linux/platform_device.h> | ||
3170 | #include <linux/pm.h> | ||
3171 | +#include <linux/clk.h> | ||
3172 | |||
3173 | #include <net/irda/irda.h> | ||
3174 | #include <net/irda/irmod.h> | ||
3175 | @@ -87,8 +88,30 @@ | ||
3176 | |||
3177 | struct device *dev; | ||
3178 | struct pxaficp_platform_data *pdata; | ||
3179 | + struct clk *fir_clk; | ||
3180 | + struct clk *sir_clk; | ||
3181 | + struct clk *cur_clk; | ||
3182 | }; | ||
3183 | |||
3184 | +static inline void pxa_irda_disable_clk(struct pxa_irda *si) | ||
3185 | +{ | ||
3186 | + if (si->cur_clk) | ||
3187 | + clk_disable(si->cur_clk); | ||
3188 | + si->cur_clk = NULL; | ||
3189 | +} | ||
3190 | + | ||
3191 | +static inline void pxa_irda_enable_firclk(struct pxa_irda *si) | ||
3192 | +{ | ||
3193 | + si->cur_clk = si->fir_clk; | ||
3194 | + clk_enable(si->fir_clk); | ||
3195 | +} | ||
3196 | + | ||
3197 | +static inline void pxa_irda_enable_sirclk(struct pxa_irda *si) | ||
3198 | +{ | ||
3199 | + si->cur_clk = si->sir_clk; | ||
3200 | + clk_enable(si->sir_clk); | ||
3201 | +} | ||
3202 | + | ||
3203 | |||
3204 | #define IS_FIR(si) ((si)->speed >= 4000000) | ||
3205 | #define IRDA_FRAME_SIZE_LIMIT 2047 | ||
3206 | @@ -134,7 +157,7 @@ | ||
3207 | DCSR(si->rxdma) &= ~DCSR_RUN; | ||
3208 | /* disable FICP */ | ||
3209 | ICCR0 = 0; | ||
3210 | - pxa_set_cken(CKEN_FICP, 0); | ||
3211 | + pxa_irda_disable_clk(si); | ||
3212 | |||
3213 | /* set board transceiver to SIR mode */ | ||
3214 | si->pdata->transceiver_mode(si->dev, IR_SIRMODE); | ||
3215 | @@ -144,7 +167,7 @@ | ||
3216 | pxa_gpio_mode(GPIO47_STTXD_MD); | ||
3217 | |||
3218 | /* enable the STUART clock */ | ||
3219 | - pxa_set_cken(CKEN_STUART, 1); | ||
3220 | + pxa_irda_enable_sirclk(si); | ||
3221 | } | ||
3222 | |||
3223 | /* disable STUART first */ | ||
3224 | @@ -169,7 +192,7 @@ | ||
3225 | /* disable STUART */ | ||
3226 | STIER = 0; | ||
3227 | STISR = 0; | ||
3228 | - pxa_set_cken(CKEN_STUART, 0); | ||
3229 | + pxa_irda_disable_clk(si); | ||
3230 | |||
3231 | /* disable FICP first */ | ||
3232 | ICCR0 = 0; | ||
3233 | @@ -182,7 +205,7 @@ | ||
3234 | pxa_gpio_mode(GPIO47_ICPTXD_MD); | ||
3235 | |||
3236 | /* enable the FICP clock */ | ||
3237 | - pxa_set_cken(CKEN_FICP, 1); | ||
3238 | + pxa_irda_enable_firclk(si); | ||
3239 | |||
3240 | si->speed = speed; | ||
3241 | pxa_irda_fir_dma_rx_start(si); | ||
3242 | @@ -592,16 +615,15 @@ | ||
3243 | STIER = 0; | ||
3244 | /* disable STUART SIR mode */ | ||
3245 | STISR = 0; | ||
3246 | - /* disable the STUART clock */ | ||
3247 | - pxa_set_cken(CKEN_STUART, 0); | ||
3248 | |||
3249 | /* disable DMA */ | ||
3250 | DCSR(si->txdma) &= ~DCSR_RUN; | ||
3251 | DCSR(si->rxdma) &= ~DCSR_RUN; | ||
3252 | /* disable FICP */ | ||
3253 | ICCR0 = 0; | ||
3254 | - /* disable the FICP clock */ | ||
3255 | - pxa_set_cken(CKEN_FICP, 0); | ||
3256 | + | ||
3257 | + /* disable the STUART or FICP clocks */ | ||
3258 | + pxa_irda_disable_clk(si); | ||
3259 | |||
3260 | DRCMR17 = 0; | ||
3261 | DRCMR18 = 0; | ||
3262 | @@ -792,6 +814,13 @@ | ||
3263 | si->dev = &pdev->dev; | ||
3264 | si->pdata = pdev->dev.platform_data; | ||
3265 | |||
3266 | + si->sir_clk = clk_get(&pdev->dev, "UARTCLK"); | ||
3267 | + si->fir_clk = clk_get(&pdev->dev, "FICPCLK"); | ||
3268 | + if (IS_ERR(si->sir_clk) || IS_ERR(si->fir_clk)) { | ||
3269 | + err = PTR_ERR(IS_ERR(si->sir_clk) ? si->sir_clk : si->fir_clk); | ||
3270 | + goto err_mem_4; | ||
3271 | + } | ||
3272 | + | ||
3273 | /* | ||
3274 | * Initialise the SIR buffers | ||
3275 | */ | ||
3276 | @@ -831,6 +860,10 @@ | ||
3277 | err_mem_5: | ||
3278 | kfree(si->rx_buff.head); | ||
3279 | err_mem_4: | ||
3280 | + if (si->sir_clk && !IS_ERR(si->sir_clk)) | ||
3281 | + clk_put(si->sir_clk); | ||
3282 | + if (si->fir_clk && !IS_ERR(si->fir_clk)) | ||
3283 | + clk_put(si->fir_clk); | ||
3284 | free_netdev(dev); | ||
3285 | err_mem_3: | ||
3286 | release_mem_region(__PREG(FICP), 0x1c); | ||
3287 | @@ -850,6 +883,8 @@ | ||
3288 | unregister_netdev(dev); | ||
3289 | kfree(si->tx_buff.head); | ||
3290 | kfree(si->rx_buff.head); | ||
3291 | + clk_put(si->fir_clk); | ||
3292 | + clk_put(si->sir_clk); | ||
3293 | free_netdev(dev); | ||
3294 | } | ||
3295 | |||
3296 | Index: linux-2.6.22/drivers/net/smc91x.c | ||
3297 | =================================================================== | ||
3298 | --- linux-2.6.22.orig/drivers/net/smc91x.c 2007-07-09 01:32:17.000000000 +0200 | ||
3299 | +++ linux-2.6.22/drivers/net/smc91x.c 2007-09-24 20:57:20.000000000 +0200 | ||
3300 | @@ -173,56 +173,6 @@ | ||
3301 | */ | ||
3302 | #define MII_DELAY 1 | ||
3303 | |||
3304 | -/* store this information for the driver.. */ | ||
3305 | -struct smc_local { | ||
3306 | - /* | ||
3307 | - * If I have to wait until memory is available to send a | ||
3308 | - * packet, I will store the skbuff here, until I get the | ||
3309 | - * desired memory. Then, I'll send it out and free it. | ||
3310 | - */ | ||
3311 | - struct sk_buff *pending_tx_skb; | ||
3312 | - struct tasklet_struct tx_task; | ||
3313 | - | ||
3314 | - /* | ||
3315 | - * these are things that the kernel wants me to keep, so users | ||
3316 | - * can find out semi-useless statistics of how well the card is | ||
3317 | - * performing | ||
3318 | - */ | ||
3319 | - struct net_device_stats stats; | ||
3320 | - | ||
3321 | - /* version/revision of the SMC91x chip */ | ||
3322 | - int version; | ||
3323 | - | ||
3324 | - /* Contains the current active transmission mode */ | ||
3325 | - int tcr_cur_mode; | ||
3326 | - | ||
3327 | - /* Contains the current active receive mode */ | ||
3328 | - int rcr_cur_mode; | ||
3329 | - | ||
3330 | - /* Contains the current active receive/phy mode */ | ||
3331 | - int rpc_cur_mode; | ||
3332 | - int ctl_rfduplx; | ||
3333 | - int ctl_rspeed; | ||
3334 | - | ||
3335 | - u32 msg_enable; | ||
3336 | - u32 phy_type; | ||
3337 | - struct mii_if_info mii; | ||
3338 | - | ||
3339 | - /* work queue */ | ||
3340 | - struct work_struct phy_configure; | ||
3341 | - struct net_device *dev; | ||
3342 | - int work_pending; | ||
3343 | - | ||
3344 | - spinlock_t lock; | ||
3345 | - | ||
3346 | -#ifdef SMC_USE_PXA_DMA | ||
3347 | - /* DMA needs the physical address of the chip */ | ||
3348 | - u_long physaddr; | ||
3349 | -#endif | ||
3350 | - void __iomem *base; | ||
3351 | - void __iomem *datacs; | ||
3352 | -}; | ||
3353 | - | ||
3354 | #if SMC_DEBUG > 0 | ||
3355 | #define DBG(n, args...) \ | ||
3356 | do { \ | ||
3357 | @@ -2238,17 +2188,19 @@ | ||
3358 | goto out_release_attrib; | ||
3359 | } | ||
3360 | |||
3361 | - platform_set_drvdata(pdev, ndev); | ||
3362 | - ret = smc_probe(ndev, addr); | ||
3363 | - if (ret != 0) | ||
3364 | - goto out_iounmap; | ||
3365 | #ifdef SMC_USE_PXA_DMA | ||
3366 | - else { | ||
3367 | + { | ||
3368 | struct smc_local *lp = netdev_priv(ndev); | ||
3369 | + lp->device = &pdev->dev; | ||
3370 | lp->physaddr = res->start; | ||
3371 | } | ||
3372 | #endif | ||
3373 | |||
3374 | + platform_set_drvdata(pdev, ndev); | ||
3375 | + ret = smc_probe(ndev, addr); | ||
3376 | + if (ret != 0) | ||
3377 | + goto out_iounmap; | ||
3378 | + | ||
3379 | smc_request_datacs(pdev, ndev); | ||
3380 | |||
3381 | return 0; | ||
3382 | Index: linux-2.6.22/drivers/net/smc91x.h | ||
3383 | =================================================================== | ||
3384 | --- linux-2.6.22.orig/drivers/net/smc91x.h 2007-09-24 20:57:01.000000000 +0200 | ||
3385 | +++ linux-2.6.22/drivers/net/smc91x.h 2007-09-24 20:57:20.000000000 +0200 | ||
3386 | @@ -461,6 +461,59 @@ | ||
3387 | |||
3388 | #endif | ||
3389 | |||
3390 | + | ||
3391 | +/* store this information for the driver.. */ | ||
3392 | +struct smc_local { | ||
3393 | + /* | ||
3394 | + * If I have to wait until memory is available to send a | ||
3395 | + * packet, I will store the skbuff here, until I get the | ||
3396 | + * desired memory. Then, I'll send it out and free it. | ||
3397 | + */ | ||
3398 | + struct sk_buff *pending_tx_skb; | ||
3399 | + struct tasklet_struct tx_task; | ||
3400 | + | ||
3401 | + /* | ||
3402 | + * these are things that the kernel wants me to keep, so users | ||
3403 | + * can find out semi-useless statistics of how well the card is | ||
3404 | + * performing | ||
3405 | + */ | ||
3406 | + struct net_device_stats stats; | ||
3407 | + | ||
3408 | + /* version/revision of the SMC91x chip */ | ||
3409 | + int version; | ||
3410 | + | ||
3411 | + /* Contains the current active transmission mode */ | ||
3412 | + int tcr_cur_mode; | ||
3413 | + | ||
3414 | + /* Contains the current active receive mode */ | ||
3415 | + int rcr_cur_mode; | ||
3416 | + | ||
3417 | + /* Contains the current active receive/phy mode */ | ||
3418 | + int rpc_cur_mode; | ||
3419 | + int ctl_rfduplx; | ||
3420 | + int ctl_rspeed; | ||
3421 | + | ||
3422 | + u32 msg_enable; | ||
3423 | + u32 phy_type; | ||
3424 | + struct mii_if_info mii; | ||
3425 | + | ||
3426 | + /* work queue */ | ||
3427 | + struct work_struct phy_configure; | ||
3428 | + struct net_device *dev; | ||
3429 | + int work_pending; | ||
3430 | + | ||
3431 | + spinlock_t lock; | ||
3432 | + | ||
3433 | +#ifdef SMC_USE_PXA_DMA | ||
3434 | + /* DMA needs the physical address of the chip */ | ||
3435 | + u_long physaddr; | ||
3436 | + struct device *device; | ||
3437 | +#endif | ||
3438 | + void __iomem *base; | ||
3439 | + void __iomem *datacs; | ||
3440 | +}; | ||
3441 | + | ||
3442 | + | ||
3443 | #ifdef SMC_USE_PXA_DMA | ||
3444 | /* | ||
3445 | * Let's use the DMA engine on the XScale PXA2xx for RX packets. This is | ||
3446 | @@ -475,11 +528,12 @@ | ||
3447 | #ifdef SMC_insl | ||
3448 | #undef SMC_insl | ||
3449 | #define SMC_insl(a, r, p, l) \ | ||
3450 | - smc_pxa_dma_insl(a, lp->physaddr, r, dev->dma, p, l) | ||
3451 | + smc_pxa_dma_insl(a, lp, r, dev->dma, p, l) | ||
3452 | static inline void | ||
3453 | -smc_pxa_dma_insl(void __iomem *ioaddr, u_long physaddr, int reg, int dma, | ||
3454 | +smc_pxa_dma_insl(void __iomem *ioaddr, struct smc_local *lp, int reg, int dma, | ||
3455 | u_char *buf, int len) | ||
3456 | { | ||
3457 | + u_long physaddr = lp->physaddr; | ||
3458 | dma_addr_t dmabuf; | ||
3459 | |||
3460 | /* fallback if no DMA available */ | ||
3461 | @@ -496,7 +550,7 @@ | ||
3462 | } | ||
3463 | |||
3464 | len *= 4; | ||
3465 | - dmabuf = dma_map_single(NULL, buf, len, DMA_FROM_DEVICE); | ||
3466 | + dmabuf = dma_map_single(lp->device, buf, len, DMA_FROM_DEVICE); | ||
3467 | DCSR(dma) = DCSR_NODESC; | ||
3468 | DTADR(dma) = dmabuf; | ||
3469 | DSADR(dma) = physaddr + reg; | ||
3470 | @@ -506,18 +560,19 @@ | ||
3471 | while (!(DCSR(dma) & DCSR_STOPSTATE)) | ||
3472 | cpu_relax(); | ||
3473 | DCSR(dma) = 0; | ||
3474 | - dma_unmap_single(NULL, dmabuf, len, DMA_FROM_DEVICE); | ||
3475 | + dma_unmap_single(lp->device, dmabuf, len, DMA_FROM_DEVICE); | ||
3476 | } | ||
3477 | #endif | ||
3478 | |||
3479 | #ifdef SMC_insw | ||
3480 | #undef SMC_insw | ||
3481 | #define SMC_insw(a, r, p, l) \ | ||
3482 | - smc_pxa_dma_insw(a, lp->physaddr, r, dev->dma, p, l) | ||
3483 | + smc_pxa_dma_insw(a, lp, r, dev->dma, p, l) | ||
3484 | static inline void | ||
3485 | -smc_pxa_dma_insw(void __iomem *ioaddr, u_long physaddr, int reg, int dma, | ||
3486 | +smc_pxa_dma_insw(void __iomem *ioaddr, struct smc_local *lp, int reg, int dma, | ||
3487 | u_char *buf, int len) | ||
3488 | { | ||
3489 | + u_long physaddr = lp->physaddr; | ||
3490 | dma_addr_t dmabuf; | ||
3491 | |||
3492 | /* fallback if no DMA available */ | ||
3493 | @@ -534,7 +589,7 @@ | ||
3494 | } | ||
3495 | |||
3496 | len *= 2; | ||
3497 | - dmabuf = dma_map_single(NULL, buf, len, DMA_FROM_DEVICE); | ||
3498 | + dmabuf = dma_map_single(lp->device, buf, len, DMA_FROM_DEVICE); | ||
3499 | DCSR(dma) = DCSR_NODESC; | ||
3500 | DTADR(dma) = dmabuf; | ||
3501 | DSADR(dma) = physaddr + reg; | ||
3502 | @@ -544,7 +599,7 @@ | ||
3503 | while (!(DCSR(dma) & DCSR_STOPSTATE)) | ||
3504 | cpu_relax(); | ||
3505 | DCSR(dma) = 0; | ||
3506 | - dma_unmap_single(NULL, dmabuf, len, DMA_FROM_DEVICE); | ||
3507 | + dma_unmap_single(lp->device, dmabuf, len, DMA_FROM_DEVICE); | ||
3508 | } | ||
3509 | #endif | ||
3510 | |||
3511 | Index: linux-2.6.22/drivers/serial/pxa.c | ||
3512 | =================================================================== | ||
3513 | --- linux-2.6.22.orig/drivers/serial/pxa.c 2007-09-24 20:57:20.000000000 +0200 | ||
3514 | +++ linux-2.6.22/drivers/serial/pxa.c 2007-09-24 20:57:20.000000000 +0200 | ||
3515 | @@ -42,6 +42,7 @@ | ||
3516 | #include <linux/tty.h> | ||
3517 | #include <linux/tty_flip.h> | ||
3518 | #include <linux/serial_core.h> | ||
3519 | +#include <linux/clk.h> | ||
3520 | |||
3521 | #include <asm/io.h> | ||
3522 | #include <asm/hardware.h> | ||
3523 | @@ -56,7 +57,7 @@ | ||
3524 | unsigned char lcr; | ||
3525 | unsigned char mcr; | ||
3526 | unsigned int lsr_break_flag; | ||
3527 | - unsigned int cken; | ||
3528 | + struct clk *clk; | ||
3529 | char *name; | ||
3530 | }; | ||
3531 | |||
3532 | @@ -363,6 +364,8 @@ | ||
3533 | else | ||
3534 | up->mcr = 0; | ||
3535 | |||
3536 | + up->port.uartclk = clk_get_rate(up->clk); | ||
3537 | + | ||
3538 | /* | ||
3539 | * Allocate the IRQ | ||
3540 | */ | ||
3541 | @@ -568,9 +571,11 @@ | ||
3542 | unsigned int oldstate) | ||
3543 | { | ||
3544 | struct uart_pxa_port *up = (struct uart_pxa_port *)port; | ||
3545 | - pxa_set_cken(up->cken, !state); | ||
3546 | + | ||
3547 | if (!state) | ||
3548 | - udelay(1); | ||
3549 | + clk_enable(up->clk); | ||
3550 | + else | ||
3551 | + clk_disable(up->clk); | ||
3552 | } | ||
3553 | |||
3554 | static void serial_pxa_release_port(struct uart_port *port) | ||
3555 | @@ -604,7 +609,7 @@ | ||
3556 | |||
3557 | #ifdef CONFIG_SERIAL_PXA_CONSOLE | ||
3558 | |||
3559 | -static struct uart_pxa_port serial_pxa_ports[]; | ||
3560 | +static struct uart_pxa_port *serial_pxa_ports[4]; | ||
3561 | static struct uart_driver serial_pxa_reg; | ||
3562 | |||
3563 | #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE) | ||
3564 | @@ -654,9 +659,11 @@ | ||
3565 | static void | ||
3566 | serial_pxa_console_write(struct console *co, const char *s, unsigned int count) | ||
3567 | { | ||
3568 | - struct uart_pxa_port *up = &serial_pxa_ports[co->index]; | ||
3569 | + struct uart_pxa_port *up = serial_pxa_ports[co->index]; | ||
3570 | unsigned int ier; | ||
3571 | |||
3572 | + clk_enable(up->clk); | ||
3573 | + | ||
3574 | /* | ||
3575 | * First save the IER then disable the interrupts | ||
3576 | */ | ||
3577 | @@ -671,6 +678,8 @@ | ||
3578 | */ | ||
3579 | wait_for_xmitr(up); | ||
3580 | serial_out(up, UART_IER, ier); | ||
3581 | + | ||
3582 | + clk_disable(up->clk); | ||
3583 | } | ||
3584 | |||
3585 | static int __init | ||
3586 | @@ -684,7 +693,9 @@ | ||
3587 | |||
3588 | if (co->index == -1 || co->index >= serial_pxa_reg.nr) | ||
3589 | co->index = 0; | ||
3590 | - up = &serial_pxa_ports[co->index]; | ||
3591 | + up = serial_pxa_ports[co->index]; | ||
3592 | + if (!up) | ||
3593 | + return -ENODEV; | ||
3594 | |||
3595 | if (options) | ||
3596 | uart_parse_options(options, &baud, &parity, &bits, &flow); | ||
3597 | @@ -702,15 +713,6 @@ | ||
3598 | .data = &serial_pxa_reg, | ||
3599 | }; | ||
3600 | |||
3601 | -static int __init | ||
3602 | -serial_pxa_console_init(void) | ||
3603 | -{ | ||
3604 | - register_console(&serial_pxa_console); | ||
3605 | - return 0; | ||
3606 | -} | ||
3607 | - | ||
3608 | -console_initcall(serial_pxa_console_init); | ||
3609 | - | ||
3610 | #define PXA_CONSOLE &serial_pxa_console | ||
3611 | #else | ||
3612 | #define PXA_CONSOLE NULL | ||
3613 | @@ -736,73 +738,13 @@ | ||
3614 | .verify_port = serial_pxa_verify_port, | ||
3615 | }; | ||
3616 | |||
3617 | -static struct uart_pxa_port serial_pxa_ports[] = { | ||
3618 | - { /* FFUART */ | ||
3619 | - .name = "FFUART", | ||
3620 | - .cken = CKEN_FFUART, | ||
3621 | - .port = { | ||
3622 | - .type = PORT_PXA, | ||
3623 | - .iotype = UPIO_MEM, | ||
3624 | - .membase = (void *)&FFUART, | ||
3625 | - .mapbase = __PREG(FFUART), | ||
3626 | - .irq = IRQ_FFUART, | ||
3627 | - .uartclk = 921600 * 16, | ||
3628 | - .fifosize = 64, | ||
3629 | - .ops = &serial_pxa_pops, | ||
3630 | - .line = 0, | ||
3631 | - }, | ||
3632 | - }, { /* BTUART */ | ||
3633 | - .name = "BTUART", | ||
3634 | - .cken = CKEN_BTUART, | ||
3635 | - .port = { | ||
3636 | - .type = PORT_PXA, | ||
3637 | - .iotype = UPIO_MEM, | ||
3638 | - .membase = (void *)&BTUART, | ||
3639 | - .mapbase = __PREG(BTUART), | ||
3640 | - .irq = IRQ_BTUART, | ||
3641 | - .uartclk = 921600 * 16, | ||
3642 | - .fifosize = 64, | ||
3643 | - .ops = &serial_pxa_pops, | ||
3644 | - .line = 1, | ||
3645 | - }, | ||
3646 | - }, { /* STUART */ | ||
3647 | - .name = "STUART", | ||
3648 | - .cken = CKEN_STUART, | ||
3649 | - .port = { | ||
3650 | - .type = PORT_PXA, | ||
3651 | - .iotype = UPIO_MEM, | ||
3652 | - .membase = (void *)&STUART, | ||
3653 | - .mapbase = __PREG(STUART), | ||
3654 | - .irq = IRQ_STUART, | ||
3655 | - .uartclk = 921600 * 16, | ||
3656 | - .fifosize = 64, | ||
3657 | - .ops = &serial_pxa_pops, | ||
3658 | - .line = 2, | ||
3659 | - }, | ||
3660 | - }, { /* HWUART */ | ||
3661 | - .name = "HWUART", | ||
3662 | - .cken = CKEN_HWUART, | ||
3663 | - .port = { | ||
3664 | - .type = PORT_PXA, | ||
3665 | - .iotype = UPIO_MEM, | ||
3666 | - .membase = (void *)&HWUART, | ||
3667 | - .mapbase = __PREG(HWUART), | ||
3668 | - .irq = IRQ_HWUART, | ||
3669 | - .uartclk = 921600 * 16, | ||
3670 | - .fifosize = 64, | ||
3671 | - .ops = &serial_pxa_pops, | ||
3672 | - .line = 3, | ||
3673 | - }, | ||
3674 | - } | ||
3675 | -}; | ||
3676 | - | ||
3677 | static struct uart_driver serial_pxa_reg = { | ||
3678 | .owner = THIS_MODULE, | ||
3679 | .driver_name = "PXA serial", | ||
3680 | .dev_name = "ttyS", | ||
3681 | .major = TTY_MAJOR, | ||
3682 | .minor = 64, | ||
3683 | - .nr = ARRAY_SIZE(serial_pxa_ports), | ||
3684 | + .nr = 4, | ||
3685 | .cons = PXA_CONSOLE, | ||
3686 | }; | ||
3687 | |||
3688 | @@ -828,10 +770,68 @@ | ||
3689 | |||
3690 | static int serial_pxa_probe(struct platform_device *dev) | ||
3691 | { | ||
3692 | - serial_pxa_ports[dev->id].port.dev = &dev->dev; | ||
3693 | - uart_add_one_port(&serial_pxa_reg, &serial_pxa_ports[dev->id].port); | ||
3694 | - platform_set_drvdata(dev, &serial_pxa_ports[dev->id]); | ||
3695 | + struct uart_pxa_port *sport; | ||
3696 | + struct resource *mmres, *irqres; | ||
3697 | + int ret; | ||
3698 | + | ||
3699 | + mmres = platform_get_resource(dev, IORESOURCE_MEM, 0); | ||
3700 | + irqres = platform_get_resource(dev, IORESOURCE_IRQ, 0); | ||
3701 | + if (!mmres || !irqres) | ||
3702 | + return -ENODEV; | ||
3703 | + | ||
3704 | + sport = kzalloc(sizeof(struct uart_pxa_port), GFP_KERNEL); | ||
3705 | + if (!sport) | ||
3706 | + return -ENOMEM; | ||
3707 | + | ||
3708 | + sport->clk = clk_get(&dev->dev, "UARTCLK"); | ||
3709 | + if (IS_ERR(sport->clk)) { | ||
3710 | + ret = PTR_ERR(sport->clk); | ||
3711 | + goto err_free; | ||
3712 | + } | ||
3713 | + | ||
3714 | + sport->port.type = PORT_PXA; | ||
3715 | + sport->port.iotype = UPIO_MEM; | ||
3716 | + sport->port.mapbase = mmres->start; | ||
3717 | + sport->port.irq = irqres->start; | ||
3718 | + sport->port.fifosize = 64; | ||
3719 | + sport->port.ops = &serial_pxa_pops; | ||
3720 | + sport->port.line = dev->id; | ||
3721 | + sport->port.dev = &dev->dev; | ||
3722 | + sport->port.flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF; | ||
3723 | + sport->port.uartclk = clk_get_rate(sport->clk); | ||
3724 | + | ||
3725 | + /* | ||
3726 | + * Is it worth keeping this? | ||
3727 | + */ | ||
3728 | + if (mmres->start == __PREG(FFUART)) | ||
3729 | + sport->name = "FFUART"; | ||
3730 | + else if (mmres->start == __PREG(BTUART)) | ||
3731 | + sport->name = "BTUART"; | ||
3732 | + else if (mmres->start == __PREG(STUART)) | ||
3733 | + sport->name = "STUART"; | ||
3734 | + else if (mmres->start == __PREG(HWUART)) | ||
3735 | + sport->name = "HWUART"; | ||
3736 | + else | ||
3737 | + sport->name = "???"; | ||
3738 | + | ||
3739 | + sport->port.membase = ioremap(mmres->start, mmres->end - mmres->start + 1); | ||
3740 | + if (!sport->port.membase) { | ||
3741 | + ret = -ENOMEM; | ||
3742 | + goto err_clk; | ||
3743 | + } | ||
3744 | + | ||
3745 | + serial_pxa_ports[dev->id] = sport; | ||
3746 | + | ||
3747 | + uart_add_one_port(&serial_pxa_reg, &sport->port); | ||
3748 | + platform_set_drvdata(dev, sport); | ||
3749 | + | ||
3750 | return 0; | ||
3751 | + | ||
3752 | + err_clk: | ||
3753 | + clk_put(sport->clk); | ||
3754 | + err_free: | ||
3755 | + kfree(sport); | ||
3756 | + return ret; | ||
3757 | } | ||
3758 | |||
3759 | static int serial_pxa_remove(struct platform_device *dev) | ||
3760 | @@ -840,8 +840,9 @@ | ||
3761 | |||
3762 | platform_set_drvdata(dev, NULL); | ||
3763 | |||
3764 | - if (sport) | ||
3765 | - uart_remove_one_port(&serial_pxa_reg, &sport->port); | ||
3766 | + uart_remove_one_port(&serial_pxa_reg, &sport->port); | ||
3767 | + clk_put(sport->clk); | ||
3768 | + kfree(sport); | ||
3769 | |||
3770 | return 0; | ||
3771 | } | ||
3772 | Index: linux-2.6.22/drivers/serial/serial_core.c | ||
3773 | =================================================================== | ||
3774 | --- linux-2.6.22.orig/drivers/serial/serial_core.c 2007-09-24 20:57:19.000000000 +0200 | ||
3775 | +++ linux-2.6.22/drivers/serial/serial_core.c 2007-09-24 20:57:20.000000000 +0200 | ||
3776 | @@ -2128,6 +2128,14 @@ | ||
3777 | spin_unlock_irqrestore(&port->lock, flags); | ||
3778 | |||
3779 | /* | ||
3780 | + * If this driver supports console, and it hasn't been | ||
3781 | + * successfully registered yet, try to re-register it. | ||
3782 | + * It may be that the port was not available. | ||
3783 | + */ | ||
3784 | + if (port->cons && !(port->cons->flags & CON_ENABLED)) | ||
3785 | + register_console(port->cons); | ||
3786 | + | ||
3787 | + /* | ||
3788 | * Power down all ports by default, except the | ||
3789 | * console if we have one. | ||
3790 | */ | ||
3791 | @@ -2288,6 +2296,7 @@ | ||
3792 | } | ||
3793 | |||
3794 | state->port = port; | ||
3795 | + state->pm_state = -1; | ||
3796 | |||
3797 | port->cons = drv->cons; | ||
3798 | port->info = state->info; | ||
3799 | @@ -2310,15 +2319,6 @@ | ||
3800 | tty_register_device(drv->tty_driver, port->line, port->dev); | ||
3801 | |||
3802 | /* | ||
3803 | - * If this driver supports console, and it hasn't been | ||
3804 | - * successfully registered yet, try to re-register it. | ||
3805 | - * It may be that the port was not available. | ||
3806 | - */ | ||
3807 | - if (port->type != PORT_UNKNOWN && | ||
3808 | - port->cons && !(port->cons->flags & CON_ENABLED)) | ||
3809 | - register_console(port->cons); | ||
3810 | - | ||
3811 | - /* | ||
3812 | * Ensure UPF_DEAD is not set. | ||
3813 | */ | ||
3814 | port->flags &= ~UPF_DEAD; | ||
3815 | Index: linux-2.6.22/drivers/usb/gadget/pxa2xx_udc.c | ||
3816 | =================================================================== | ||
3817 | --- linux-2.6.22.orig/drivers/usb/gadget/pxa2xx_udc.c 2007-09-24 20:57:04.000000000 +0200 | ||
3818 | +++ linux-2.6.22/drivers/usb/gadget/pxa2xx_udc.c 2007-09-24 20:57:20.000000000 +0200 | ||
3819 | @@ -43,6 +43,8 @@ | ||
3820 | #include <linux/platform_device.h> | ||
3821 | #include <linux/dma-mapping.h> | ||
3822 | #include <linux/irq.h> | ||
3823 | +#include <linux/clk.h> | ||
3824 | +#include <linux/err.h> | ||
3825 | |||
3826 | #include <asm/byteorder.h> | ||
3827 | #include <asm/dma.h> | ||
3828 | @@ -1157,7 +1159,7 @@ | ||
3829 | |||
3830 | #ifdef CONFIG_ARCH_PXA | ||
3831 | /* Disable clock for USB device */ | ||
3832 | - pxa_set_cken(CKEN_USB, 0); | ||
3833 | + clk_disable(dev->clk); | ||
3834 | #endif | ||
3835 | |||
3836 | ep0_idle (dev); | ||
3837 | @@ -1202,8 +1204,7 @@ | ||
3838 | |||
3839 | #ifdef CONFIG_ARCH_PXA | ||
3840 | /* Enable clock for USB device */ | ||
3841 | - pxa_set_cken(CKEN_USB, 1); | ||
3842 | - udelay(5); | ||
3843 | + clk_enable(dev->clk); | ||
3844 | #endif | ||
3845 | |||
3846 | /* try to clear these bits before we enable the udc */ | ||
3847 | @@ -2137,6 +2138,14 @@ | ||
3848 | if (irq < 0) | ||
3849 | return -ENODEV; | ||
3850 | |||
3851 | +#ifdef CONFIG_ARCH_PXA | ||
3852 | + dev->clk = clk_get(&pdev->dev, "UDCCLK"); | ||
3853 | + if (IS_ERR(dev->clk)) { | ||
3854 | + retval = PTR_ERR(dev->clk); | ||
3855 | + goto err_clk; | ||
3856 | + } | ||
3857 | +#endif | ||
3858 | + | ||
3859 | pr_debug("%s: IRQ %d%s%s\n", driver_name, irq, | ||
3860 | dev->has_cfr ? "" : " (!cfr)", | ||
3861 | SIZE_STR "(pio)" | ||
3862 | @@ -2152,11 +2161,10 @@ | ||
3863 | dev_dbg(&pdev->dev, | ||
3864 | "can't get vbus gpio %d, err: %d\n", | ||
3865 | dev->mach->gpio_vbus, retval); | ||
3866 | - return -EBUSY; | ||
3867 | + goto err_gpio_vbus; | ||
3868 | } | ||
3869 | gpio_direction_input(dev->mach->gpio_vbus); | ||
3870 | vbus_irq = gpio_to_irq(dev->mach->gpio_vbus); | ||
3871 | - set_irq_type(vbus_irq, IRQT_BOTHEDGE); | ||
3872 | } else | ||
3873 | vbus_irq = 0; | ||
3874 | |||
3875 | @@ -2166,9 +2174,7 @@ | ||
3876 | dev_dbg(&pdev->dev, | ||
3877 | "can't get pullup gpio %d, err: %d\n", | ||
3878 | dev->mach->gpio_pullup, retval); | ||
3879 | - if (dev->mach->gpio_vbus) | ||
3880 | - gpio_free(dev->mach->gpio_vbus); | ||
3881 | - return -EBUSY; | ||
3882 | + goto err_gpio_pullup; | ||
3883 | } | ||
3884 | gpio_direction_output(dev->mach->gpio_pullup, 0); | ||
3885 | } | ||
3886 | @@ -2195,11 +2201,7 @@ | ||
3887 | if (retval != 0) { | ||
3888 | printk(KERN_ERR "%s: can't get irq %d, err %d\n", | ||
3889 | driver_name, irq, retval); | ||
3890 | - if (dev->mach->gpio_pullup) | ||
3891 | - gpio_free(dev->mach->gpio_pullup); | ||
3892 | - if (dev->mach->gpio_vbus) | ||
3893 | - gpio_free(dev->mach->gpio_vbus); | ||
3894 | - return -EBUSY; | ||
3895 | + goto err_irq1; | ||
3896 | } | ||
3897 | dev->got_irq = 1; | ||
3898 | |||
3899 | @@ -2213,12 +2215,7 @@ | ||
3900 | printk(KERN_ERR "%s: can't get irq %i, err %d\n", | ||
3901 | driver_name, LUBBOCK_USB_DISC_IRQ, retval); | ||
3902 | lubbock_fail0: | ||
3903 | - free_irq(irq, dev); | ||
3904 | - if (dev->mach->gpio_pullup) | ||
3905 | - gpio_free(dev->mach->gpio_pullup); | ||
3906 | - if (dev->mach->gpio_vbus) | ||
3907 | - gpio_free(dev->mach->gpio_vbus); | ||
3908 | - return -EBUSY; | ||
3909 | + goto err_irq_lub; | ||
3910 | } | ||
3911 | retval = request_irq(LUBBOCK_USB_IRQ, | ||
3912 | lubbock_vbus_irq, | ||
3913 | @@ -2234,22 +2231,37 @@ | ||
3914 | #endif | ||
3915 | if (vbus_irq) { | ||
3916 | retval = request_irq(vbus_irq, udc_vbus_irq, | ||
3917 | - IRQF_DISABLED | IRQF_SAMPLE_RANDOM, | ||
3918 | + IRQF_DISABLED | IRQF_SAMPLE_RANDOM | | ||
3919 | + IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, | ||
3920 | driver_name, dev); | ||
3921 | if (retval != 0) { | ||
3922 | printk(KERN_ERR "%s: can't get irq %i, err %d\n", | ||
3923 | driver_name, vbus_irq, retval); | ||
3924 | - free_irq(irq, dev); | ||
3925 | - if (dev->mach->gpio_pullup) | ||
3926 | - gpio_free(dev->mach->gpio_pullup); | ||
3927 | - if (dev->mach->gpio_vbus) | ||
3928 | - gpio_free(dev->mach->gpio_vbus); | ||
3929 | - return -EBUSY; | ||
3930 | + goto err_vbus_irq; | ||
3931 | } | ||
3932 | } | ||
3933 | create_proc_files(); | ||
3934 | |||
3935 | return 0; | ||
3936 | + | ||
3937 | + err_vbus_irq: | ||
3938 | +#ifdef CONFIG_ARCH_LUBBOCK | ||
3939 | + free_irq(LUBBOCK_USB_DISC_IRQ, dev); | ||
3940 | + err_irq_lub: | ||
3941 | +#endif | ||
3942 | + free_irq(irq, dev); | ||
3943 | + err_irq1: | ||
3944 | + if (dev->mach->gpio_pullup) | ||
3945 | + gpio_free(dev->mach->gpio_pullup); | ||
3946 | + err_gpio_pullup: | ||
3947 | + if (dev->mach->gpio_vbus) | ||
3948 | + gpio_free(dev->mach->gpio_vbus); | ||
3949 | + err_gpio_vbus: | ||
3950 | +#ifdef CONFIG_ARCH_PXA | ||
3951 | + clk_put(dev->clk); | ||
3952 | + err_clk: | ||
3953 | +#endif | ||
3954 | + return retval; | ||
3955 | } | ||
3956 | |||
3957 | static void pxa2xx_udc_shutdown(struct platform_device *_dev) | ||
3958 | @@ -2284,6 +2296,10 @@ | ||
3959 | if (dev->mach->gpio_pullup) | ||
3960 | gpio_free(dev->mach->gpio_pullup); | ||
3961 | |||
3962 | +#ifdef CONFIG_ARCH_PXA | ||
3963 | + clk_put(dev->clk); | ||
3964 | +#endif | ||
3965 | + | ||
3966 | platform_set_drvdata(pdev, NULL); | ||
3967 | the_controller = NULL; | ||
3968 | return 0; | ||
3969 | Index: linux-2.6.22/drivers/usb/gadget/pxa2xx_udc.h | ||
3970 | =================================================================== | ||
3971 | --- linux-2.6.22.orig/drivers/usb/gadget/pxa2xx_udc.h 2007-09-24 20:57:17.000000000 +0200 | ||
3972 | +++ linux-2.6.22/drivers/usb/gadget/pxa2xx_udc.h 2007-09-24 20:57:20.000000000 +0200 | ||
3973 | @@ -125,6 +125,7 @@ | ||
3974 | struct timer_list timer; | ||
3975 | |||
3976 | struct device *dev; | ||
3977 | + struct clk *clk; | ||
3978 | struct pxa2xx_udc_mach_info *mach; | ||
3979 | u64 dma_mask; | ||
3980 | struct pxa2xx_ep ep [PXA_UDC_NUM_ENDPOINTS]; | ||
3981 | Index: linux-2.6.22/drivers/video/pxafb.c | ||
3982 | =================================================================== | ||
3983 | --- linux-2.6.22.orig/drivers/video/pxafb.c 2007-09-24 20:57:18.000000000 +0200 | ||
3984 | +++ linux-2.6.22/drivers/video/pxafb.c 2007-09-24 20:57:20.000000000 +0200 | ||
3985 | @@ -37,6 +37,8 @@ | ||
3986 | #include <linux/cpufreq.h> | ||
3987 | #include <linux/platform_device.h> | ||
3988 | #include <linux/dma-mapping.h> | ||
3989 | +#include <linux/clk.h> | ||
3990 | +#include <linux/err.h> | ||
3991 | |||
3992 | #include <asm/hardware.h> | ||
3993 | #include <asm/io.h> | ||
3994 | @@ -574,15 +576,15 @@ | ||
3995 | * | ||
3996 | * Factoring the 10^4 and 10^-12 out gives 10^-8 == 1 / 100000000 as used below. | ||
3997 | */ | ||
3998 | -static inline unsigned int get_pcd(unsigned int pixclock) | ||
3999 | +static inline unsigned int get_pcd(struct pxafb_info *fbi, unsigned int pixclock) | ||
4000 | { | ||
4001 | unsigned long long pcd; | ||
4002 | |||
4003 | /* FIXME: Need to take into account Double Pixel Clock mode | ||
4004 | - * (DPC) bit? or perhaps set it based on the various clock | ||
4005 | - * speeds */ | ||
4006 | - | ||
4007 | - pcd = (unsigned long long)get_lcdclk_frequency_10khz() * pixclock; | ||
4008 | + * (DPC) bit? or perhaps set it based on the various clock | ||
4009 | + * speeds */ | ||
4010 | + pcd = (unsigned long long)(clk_get_rate(fbi->clk) / 10000); | ||
4011 | + pcd *= pixclock; | ||
4012 | do_div(pcd, 100000000 * 2); | ||
4013 | /* no need for this, since we should subtract 1 anyway. they cancel */ | ||
4014 | /* pcd += 1; */ /* make up for integer math truncations */ | ||
4015 | @@ -591,19 +593,21 @@ | ||
4016 | |||
4017 | /* | ||
4018 | * Some touchscreens need hsync information from the video driver to | ||
4019 | - * function correctly. We export it here. | ||
4020 | + * function correctly. We export it here. Note that 'hsync_time' and | ||
4021 | + * the value returned from pxafb_get_hsync_time() is the *reciprocal* | ||
4022 | + * of the hsync period in seconds. | ||
4023 | */ | ||
4024 | static inline void set_hsync_time(struct pxafb_info *fbi, unsigned int pcd) | ||
4025 | { | ||
4026 | - unsigned long long htime; | ||
4027 | + unsigned long htime; | ||
4028 | |||
4029 | if ((pcd == 0) || (fbi->fb.var.hsync_len == 0)) { | ||
4030 | fbi->hsync_time=0; | ||
4031 | return; | ||
4032 | } | ||
4033 | |||
4034 | - htime = (unsigned long long)get_lcdclk_frequency_10khz() * 10000; | ||
4035 | - do_div(htime, pcd * fbi->fb.var.hsync_len); | ||
4036 | + htime = clk_get_rate(fbi->clk) / (pcd * fbi->fb.var.hsync_len); | ||
4037 | + | ||
4038 | fbi->hsync_time = htime; | ||
4039 | } | ||
4040 | |||
4041 | @@ -628,7 +632,7 @@ | ||
4042 | { | ||
4043 | struct pxafb_lcd_reg new_regs; | ||
4044 | u_long flags; | ||
4045 | - u_int lines_per_panel, pcd = get_pcd(var->pixclock); | ||
4046 | + u_int lines_per_panel, pcd = get_pcd(fbi, var->pixclock); | ||
4047 | |||
4048 | pr_debug("pxafb: Configuring PXA LCD\n"); | ||
4049 | |||
4050 | @@ -908,7 +912,7 @@ | ||
4051 | pr_debug("reg_lccr3 0x%08x\n", (unsigned int) fbi->reg_lccr3); | ||
4052 | |||
4053 | /* enable LCD controller clock */ | ||
4054 | - pxa_set_cken(CKEN_LCD, 1); | ||
4055 | + clk_enable(fbi->clk); | ||
4056 | |||
4057 | down(&fcs_lcd_sem); | ||
4058 | /* Sequence from 11.7.10 */ | ||
4059 | @@ -950,7 +954,7 @@ | ||
4060 | up(&fcs_lcd_sem); | ||
4061 | |||
4062 | /* disable LCD controller clock */ | ||
4063 | - pxa_set_cken(CKEN_LCD, 0); | ||
4064 | + clk_disable(fbi->clk); | ||
4065 | } | ||
4066 | |||
4067 | /* | ||
4068 | @@ -1161,7 +1165,7 @@ | ||
4069 | if ((clkinfo->old == 13000)) | ||
4070 | break; | ||
4071 | |||
4072 | - pcd = get_pcd(fbi->fb.var.pixclock); | ||
4073 | + pcd = get_pcd(fbi, fbi->fb.var.pixclock); | ||
4074 | lccr3 = fbi->reg_lccr3; | ||
4075 | set_hsync_time(fbi, pcd); | ||
4076 | fbi->reg_lccr3 = (fbi->reg_lccr3 & ~0xff) | LCCR3_PixClkDiv(pcd); | ||
4077 | @@ -1293,6 +1297,12 @@ | ||
4078 | memset(fbi, 0, sizeof(struct pxafb_info)); | ||
4079 | fbi->dev = dev; | ||
4080 | |||
4081 | + fbi->clk = clk_get(dev, "LCDCLK"); | ||
4082 | + if (IS_ERR(fbi->clk)) { | ||
4083 | + kfree(fbi); | ||
4084 | + return NULL; | ||
4085 | + } | ||
4086 | + | ||
4087 | strcpy(fbi->fb.fix.id, PXA_NAME); | ||
4088 | |||
4089 | fbi->fb.fix.type = FB_TYPE_PACKED_PIXELS; | ||
4090 | Index: linux-2.6.22/drivers/video/pxafb.h | ||
4091 | =================================================================== | ||
4092 | --- linux-2.6.22.orig/drivers/video/pxafb.h 2007-09-24 20:57:18.000000000 +0200 | ||
4093 | +++ linux-2.6.22/drivers/video/pxafb.h 2007-09-24 20:57:20.000000000 +0200 | ||
4094 | @@ -94,6 +94,7 @@ | ||
4095 | struct pxafb_info { | ||
4096 | struct fb_info fb; | ||
4097 | struct device *dev; | ||
4098 | + struct clk *clk; | ||
4099 | |||
4100 | /* | ||
4101 | * These are the addresses we mapped | ||
4102 | Index: linux-2.6.22/include/asm-arm/arch-pxa/hardware.h | ||
4103 | =================================================================== | ||
4104 | --- linux-2.6.22.orig/include/asm-arm/arch-pxa/hardware.h 2007-09-24 20:57:09.000000000 +0200 | ||
4105 | +++ linux-2.6.22/include/asm-arm/arch-pxa/hardware.h 2007-09-24 20:57:20.000000000 +0200 | ||
4106 | @@ -80,6 +80,24 @@ | ||
4107 | _id == 0x411; \ | ||
4108 | }) | ||
4109 | |||
4110 | +#define __cpu_is_pxa300(id) \ | ||
4111 | + ({ \ | ||
4112 | + unsigned int _id = (id) >> 4 & 0xfff; \ | ||
4113 | + _id == 0x688; \ | ||
4114 | + }) | ||
4115 | + | ||
4116 | +#define __cpu_is_pxa310(id) \ | ||
4117 | + ({ \ | ||
4118 | + unsigned int _id = (id) >> 4 & 0xfff; \ | ||
4119 | + _id == 0x689; \ | ||
4120 | + }) | ||
4121 | + | ||
4122 | +#define __cpu_is_pxa320(id) \ | ||
4123 | + ({ \ | ||
4124 | + unsigned int _id = (id) >> 4 & 0xfff; \ | ||
4125 | + _id == 0x603 || _id == 0x682; \ | ||
4126 | + }) | ||
4127 | + | ||
4128 | #define cpu_is_pxa21x() \ | ||
4129 | ({ \ | ||
4130 | unsigned int id = read_cpuid(CPUID_ID); \ | ||
4131 | @@ -98,6 +116,53 @@ | ||
4132 | __cpu_is_pxa27x(id); \ | ||
4133 | }) | ||
4134 | |||
4135 | +#define cpu_is_pxa300() \ | ||
4136 | + ({ \ | ||
4137 | + unsigned int id = read_cpuid(CPUID_ID); \ | ||
4138 | + __cpu_is_pxa300(id); \ | ||
4139 | + }) | ||
4140 | + | ||
4141 | +#define cpu_is_pxa310() \ | ||
4142 | + ({ \ | ||
4143 | + unsigned int id = read_cpuid(CPUID_ID); \ | ||
4144 | + __cpu_is_pxa310(id); \ | ||
4145 | + }) | ||
4146 | + | ||
4147 | +#define cpu_is_pxa320() \ | ||
4148 | + ({ \ | ||
4149 | + unsigned int id = read_cpuid(CPUID_ID); \ | ||
4150 | + __cpu_is_pxa320(id); \ | ||
4151 | + }) | ||
4152 | + | ||
4153 | +/* | ||
4154 | + * CPUID Core Generation Bit | ||
4155 | + * <= 0x2 for pxa21x/pxa25x/pxa26x/pxa27x | ||
4156 | + * == 0x3 for pxa300/pxa310/pxa320 | ||
4157 | + */ | ||
4158 | +#define __cpu_is_pxa2xx(id) \ | ||
4159 | + ({ \ | ||
4160 | + unsigned int _id = (id) >> 13 & 0x7; \ | ||
4161 | + _id <= 0x2; \ | ||
4162 | + }) | ||
4163 | + | ||
4164 | +#define __cpu_is_pxa3xx(id) \ | ||
4165 | + ({ \ | ||
4166 | + unsigned int _id = (id) >> 13 & 0x7; \ | ||
4167 | + _id == 0x3; \ | ||
4168 | + }) | ||
4169 | + | ||
4170 | +#define cpu_is_pxa2xx() \ | ||
4171 | + ({ \ | ||
4172 | + unsigned int id = read_cpuid(CPUID_ID); \ | ||
4173 | + __cpu_is_pxa2xx(id); \ | ||
4174 | + }) | ||
4175 | + | ||
4176 | +#define cpu_is_pxa3xx() \ | ||
4177 | + ({ \ | ||
4178 | + unsigned int id = read_cpuid(CPUID_ID); \ | ||
4179 | + __cpu_is_pxa3xx(id); \ | ||
4180 | + }) | ||
4181 | + | ||
4182 | /* | ||
4183 | * Handy routine to set GPIO alternate functions | ||
4184 | */ | ||
4185 | @@ -116,13 +181,16 @@ | ||
4186 | /* | ||
4187 | * Routine to enable or disable CKEN | ||
4188 | */ | ||
4189 | -extern void pxa_set_cken(int clock, int enable); | ||
4190 | +static inline void __deprecated pxa_set_cken(int clock, int enable) | ||
4191 | +{ | ||
4192 | + extern void __pxa_set_cken(int clock, int enable); | ||
4193 | + __pxa_set_cken(clock, enable); | ||
4194 | +} | ||
4195 | |||
4196 | /* | ||
4197 | * return current memory and LCD clock frequency in units of 10kHz | ||
4198 | */ | ||
4199 | extern unsigned int get_memclk_frequency_10khz(void); | ||
4200 | -extern unsigned int get_lcdclk_frequency_10khz(void); | ||
4201 | |||
4202 | #endif | ||
4203 | |||
4204 | Index: linux-2.6.22/include/asm-arm/arch-pxa/irqs.h | ||
4205 | =================================================================== | ||
4206 | --- linux-2.6.22.orig/include/asm-arm/arch-pxa/irqs.h 2007-09-24 20:57:20.000000000 +0200 | ||
4207 | +++ linux-2.6.22/include/asm-arm/arch-pxa/irqs.h 2007-09-24 20:57:20.000000000 +0200 | ||
4208 | @@ -66,12 +66,6 @@ | ||
4209 | #define IRQ_TO_GPIO_2_x(i) ((i) - PXA_GPIO_IRQ_BASE) | ||
4210 | #define IRQ_TO_GPIO(i) (((i) < IRQ_GPIO(2)) ? ((i) - IRQ_GPIO0) : IRQ_TO_GPIO_2_x(i)) | ||
4211 | |||
4212 | -#if defined(CONFIG_PXA25x) | ||
4213 | -#define PXA_LAST_GPIO 84 | ||
4214 | -#elif defined(CONFIG_PXA27x) | ||
4215 | -#define PXA_LAST_GPIO 127 | ||
4216 | -#endif | ||
4217 | - | ||
4218 | /* | ||
4219 | * The next 16 interrupts are for board specific purposes. Since | ||
4220 | * the kernel can only run on one machine at a time, we can re-use | ||
4221 | Index: linux-2.6.22/include/asm-arm/arch-pxa/mfp-pxa300.h | ||
4222 | =================================================================== | ||
4223 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
4224 | +++ linux-2.6.22/include/asm-arm/arch-pxa/mfp-pxa300.h 2007-09-24 20:57:20.000000000 +0200 | ||
4225 | @@ -0,0 +1,574 @@ | ||
4226 | +/* | ||
4227 | + * linux/include/asm-arm/arch-pxa/mfp-pxa300.h | ||
4228 | + * | ||
4229 | + * PXA300/PXA310 specific MFP configuration definitions | ||
4230 | + * | ||
4231 | + * Copyright (C) 2007 Marvell International Ltd. | ||
4232 | + * 2007-08-21: eric miao <eric.y.miao@gmail.com> | ||
4233 | + * initial version | ||
4234 | + * | ||
4235 | + * This program is free software; you can redistribute it and/or modify | ||
4236 | + * it under the terms of the GNU General Public License version 2 as | ||
4237 | + * published by the Free Software Foundation. | ||
4238 | + */ | ||
4239 | + | ||
4240 | +#ifndef __ASM_ARCH_MFP_PXA300_H | ||
4241 | +#define __ASM_ARCH_MFP_PXA300_H | ||
4242 | + | ||
4243 | +#include <asm/arch/mfp.h> | ||
4244 | + | ||
4245 | +/* GPIO */ | ||
4246 | +#define GPIO46_GPIO MFP_CFG(GPIO46, AF1) | ||
4247 | +#define GPIO49_GPIO MFP_CFG(GPIO49, AF3) | ||
4248 | +#define GPIO50_GPIO MFP_CFG(GPIO50, AF2) | ||
4249 | +#define GPIO51_GPIO MFP_CFG(GPIO51, AF3) | ||
4250 | +#define GPIO52_GPIO MFP_CFG(GPIO52, AF3) | ||
4251 | +#define GPIO56_GPIO MFP_CFG(GPIO56, AF0) | ||
4252 | +#define GPIO58_GPIO MFP_CFG(GPIO58, AF0) | ||
4253 | +#define GPIO59_GPIO MFP_CFG(GPIO59, AF0) | ||
4254 | +#define GPIO60_GPIO MFP_CFG(GPIO60, AF0) | ||
4255 | +#define GPIO61_GPIO MFP_CFG(GPIO61, AF0) | ||
4256 | +#define GPIO62_GPIO MFP_CFG(GPIO62, AF0) | ||
4257 | + | ||
4258 | +#ifdef CONFIG_CPU_PXA310 | ||
4259 | +#define GPIO7_2_GPIO MFP_CFG(GPIO7_2, AF0) | ||
4260 | +#define GPIO8_2_GPIO MFP_CFG(GPIO8_2, AF0) | ||
4261 | +#define GPIO9_2_GPIO MFP_CFG(GPIO9_2, AF0) | ||
4262 | +#define GPIO10_2_GPIO MFP_CFG(GPIO10_2, AF0) | ||
4263 | +#define GPIO11_2_GPIO MFP_CFG(GPIO11_2, AF0) | ||
4264 | +#define GPIO12_2_GPIO MFP_CFG(GPIO12_2, AF0) | ||
4265 | +#endif | ||
4266 | + | ||
4267 | +/* Chip Select */ | ||
4268 | +#define GPIO2_nCS3 MFP_CFG(GPIO2, AF1) | ||
4269 | + | ||
4270 | +/* AC97 */ | ||
4271 | +#define GPIO23_AC97_nACRESET MFP_CFG(GPIO23, AF1) | ||
4272 | +#define GPIO24_AC97_SYSCLK MFP_CFG(GPIO24, AF1) | ||
4273 | +#define GPIO29_AC97_BITCLK MFP_CFG(GPIO29, AF1) | ||
4274 | +#define GPIO25_AC97_SDATA_IN_0 MFP_CFG(GPIO25, AF1) | ||
4275 | +#define GPIO26_AC97_SDATA_IN_1 MFP_CFG(GPIO26, AF1) | ||
4276 | +#define GPIO17_AC97_SDATA_IN_2 MFP_CFG(GPIO17, AF3) | ||
4277 | +#define GPIO21_AC97_SDATA_IN_2 MFP_CFG(GPIO21, AF2) | ||
4278 | +#define GPIO18_AC97_SDATA_IN_3 MFP_CFG(GPIO18, AF3) | ||
4279 | +#define GPIO22_AC97_SDATA_IN_3 MFP_CFG(GPIO22, AF2) | ||
4280 | +#define GPIO27_AC97_SDATA_OUT MFP_CFG(GPIO27, AF1) | ||
4281 | +#define GPIO28_AC97_SYNC MFP_CFG(GPIO28, AF1) | ||
4282 | + | ||
4283 | +/* I2C */ | ||
4284 | +#define GPIO21_I2C_SCL MFP_CFG_LPM(GPIO21, AF1, PULL_HIGH) | ||
4285 | +#define GPIO22_I2C_SDA MFP_CFG_LPM(GPIO22, AF1, PULL_HIGH) | ||
4286 | + | ||
4287 | +/* QCI */ | ||
4288 | +#define GPIO39_CI_DD_0 MFP_CFG_DRV(GPIO39, AF1, DS04X) | ||
4289 | +#define GPIO40_CI_DD_1 MFP_CFG_DRV(GPIO40, AF1, DS04X) | ||
4290 | +#define GPIO41_CI_DD_2 MFP_CFG_DRV(GPIO41, AF1, DS04X) | ||
4291 | +#define GPIO42_CI_DD_3 MFP_CFG_DRV(GPIO42, AF1, DS04X) | ||
4292 | +#define GPIO43_CI_DD_4 MFP_CFG_DRV(GPIO43, AF1, DS04X) | ||
4293 | +#define GPIO44_CI_DD_5 MFP_CFG_DRV(GPIO44, AF1, DS04X) | ||
4294 | +#define GPIO45_CI_DD_6 MFP_CFG_DRV(GPIO45, AF1, DS04X) | ||
4295 | +#define GPIO46_CI_DD_7 MFP_CFG_DRV(GPIO46, AF0, DS04X) | ||
4296 | +#define GPIO47_CI_DD_8 MFP_CFG_DRV(GPIO47, AF1, DS04X) | ||
4297 | +#define GPIO48_CI_DD_9 MFP_CFG_DRV(GPIO48, AF1, DS04X) | ||
4298 | +#define GPIO52_CI_HSYNC MFP_CFG_DRV(GPIO52, AF0, DS04X) | ||
4299 | +#define GPIO51_CI_VSYNC MFP_CFG_DRV(GPIO51, AF0, DS04X) | ||
4300 | +#define GPIO49_CI_MCLK MFP_CFG_DRV(GPIO49, AF0, DS04X) | ||
4301 | +#define GPIO50_CI_PCLK MFP_CFG_DRV(GPIO50, AF0, DS04X) | ||
4302 | + | ||
4303 | +/* KEYPAD */ | ||
4304 | +#define GPIO3_KP_DKIN_6 MFP_CFG_LPM(GPIO3, AF2, FLOAT) | ||
4305 | +#define GPIO4_KP_DKIN_7 MFP_CFG_LPM(GPIO4, AF2, FLOAT) | ||
4306 | +#define GPIO16_KP_DKIN_6 MFP_CFG_LPM(GPIO16, AF6, FLOAT) | ||
4307 | +#define GPIO83_KP_DKIN_2 MFP_CFG_LPM(GPIO83, AF5, FLOAT) | ||
4308 | +#define GPIO84_KP_DKIN_1 MFP_CFG_LPM(GPIO84, AF5, FLOAT) | ||
4309 | +#define GPIO85_KP_DKIN_0 MFP_CFG_LPM(GPIO85, AF3, FLOAT) | ||
4310 | +#define GPIO86_KP_DKIN_1 MFP_CFG_LPM(GPIO86, AF3, FLOAT) | ||
4311 | +#define GPIO87_KP_DKIN_2 MFP_CFG_LPM(GPIO87, AF3, FLOAT) | ||
4312 | +#define GPIO88_KP_DKIN_3 MFP_CFG_LPM(GPIO88, AF3, FLOAT) | ||
4313 | +#define GPIO89_KP_DKIN_3 MFP_CFG_LPM(GPIO89, AF3, FLOAT) | ||
4314 | +#define GPIO107_KP_DKIN_0 MFP_CFG_LPM(GPIO107, AF2, FLOAT) | ||
4315 | +#define GPIO108_KP_DKIN_1 MFP_CFG_LPM(GPIO108, AF2, FLOAT) | ||
4316 | +#define GPIO109_KP_DKIN_2 MFP_CFG_LPM(GPIO109, AF2, FLOAT) | ||
4317 | +#define GPIO110_KP_DKIN_3 MFP_CFG_LPM(GPIO110, AF2, FLOAT) | ||
4318 | +#define GPIO111_KP_DKIN_4 MFP_CFG_LPM(GPIO111, AF2, FLOAT) | ||
4319 | +#define GPIO112_KP_DKIN_5 MFP_CFG_LPM(GPIO112, AF2, FLOAT) | ||
4320 | +#define GPIO113_KP_DKIN_6 MFP_CFG_LPM(GPIO113, AF2, FLOAT) | ||
4321 | +#define GPIO114_KP_DKIN_7 MFP_CFG_LPM(GPIO114, AF2, FLOAT) | ||
4322 | +#define GPIO115_KP_DKIN_0 MFP_CFG_LPM(GPIO115, AF2, FLOAT) | ||
4323 | +#define GPIO116_KP_DKIN_1 MFP_CFG_LPM(GPIO116, AF2, FLOAT) | ||
4324 | +#define GPIO117_KP_DKIN_2 MFP_CFG_LPM(GPIO117, AF2, FLOAT) | ||
4325 | +#define GPIO118_KP_DKIN_3 MFP_CFG_LPM(GPIO118, AF2, FLOAT) | ||
4326 | +#define GPIO119_KP_DKIN_4 MFP_CFG_LPM(GPIO119, AF2, FLOAT) | ||
4327 | +#define GPIO120_KP_DKIN_5 MFP_CFG_LPM(GPIO120, AF2, FLOAT) | ||
4328 | +#define GPIO121_KP_DKIN_6 MFP_CFG_LPM(GPIO121, AF2, FLOAT) | ||
4329 | +#define GPIO122_KP_DKIN_5 MFP_CFG_LPM(GPIO122, AF2, FLOAT) | ||
4330 | +#define GPIO123_KP_DKIN_4 MFP_CFG_LPM(GPIO123, AF2, FLOAT) | ||
4331 | +#define GPIO124_KP_DKIN_3 MFP_CFG_LPM(GPIO124, AF2, FLOAT) | ||
4332 | +#define GPIO127_KP_DKIN_0 MFP_CFG_LPM(GPIO127, AF5, FLOAT) | ||
4333 | +#define GPIO0_2_KP_DKIN_0 MFP_CFG_LPM(GPIO0_2, AF2, FLOAT) | ||
4334 | +#define GPIO1_2_KP_DKIN_1 MFP_CFG_LPM(GPIO1_2, AF2, FLOAT) | ||
4335 | +#define GPIO2_2_KP_DKIN_6 MFP_CFG_LPM(GPIO2_2, AF2, FLOAT) | ||
4336 | +#define GPIO3_2_KP_DKIN_7 MFP_CFG_LPM(GPIO3_2, AF2, FLOAT) | ||
4337 | +#define GPIO4_2_KP_DKIN_1 MFP_CFG_LPM(GPIO4_2, AF2, FLOAT) | ||
4338 | +#define GPIO5_2_KP_DKIN_0 MFP_CFG_LPM(GPIO5_2, AF2, FLOAT) | ||
4339 | + | ||
4340 | +#define GPIO5_KP_MKIN_0 MFP_CFG_LPM(GPIO5, AF2, FLOAT) | ||
4341 | +#define GPIO6_KP_MKIN_1 MFP_CFG_LPM(GPIO6, AF2, FLOAT) | ||
4342 | +#define GPIO9_KP_MKIN_6 MFP_CFG_LPM(GPIO9, AF3, FLOAT) | ||
4343 | +#define GPIO10_KP_MKIN_7 MFP_CFG_LPM(GPIO10, AF3, FLOAT) | ||
4344 | +#define GPIO70_KP_MKIN_6 MFP_CFG_LPM(GPIO70, AF3, FLOAT) | ||
4345 | +#define GPIO71_KP_MKIN_7 MFP_CFG_LPM(GPIO71, AF3, FLOAT) | ||
4346 | +#define GPIO100_KP_MKIN_6 MFP_CFG_LPM(GPIO100, AF7, FLOAT) | ||
4347 | +#define GPIO101_KP_MKIN_7 MFP_CFG_LPM(GPIO101, AF7, FLOAT) | ||
4348 | +#define GPIO112_KP_MKIN_6 MFP_CFG_LPM(GPIO112, AF4, FLOAT) | ||
4349 | +#define GPIO113_KP_MKIN_7 MFP_CFG_LPM(GPIO113, AF4, FLOAT) | ||
4350 | +#define GPIO115_KP_MKIN_0 MFP_CFG_LPM(GPIO115, AF1, FLOAT) | ||
4351 | +#define GPIO116_KP_MKIN_1 MFP_CFG_LPM(GPIO116, AF1, FLOAT) | ||
4352 | +#define GPIO117_KP_MKIN_2 MFP_CFG_LPM(GPIO117, AF1, FLOAT) | ||
4353 | +#define GPIO118_KP_MKIN_3 MFP_CFG_LPM(GPIO118, AF1, FLOAT) | ||
4354 | +#define GPIO119_KP_MKIN_4 MFP_CFG_LPM(GPIO119, AF1, FLOAT) | ||
4355 | +#define GPIO120_KP_MKIN_5 MFP_CFG_LPM(GPIO120, AF1, FLOAT) | ||
4356 | +#define GPIO125_KP_MKIN_2 MFP_CFG_LPM(GPIO125, AF2, FLOAT) | ||
4357 | +#define GPIO2_2_KP_MKIN_6 MFP_CFG_LPM(GPIO2_2, AF1, FLOAT) | ||
4358 | +#define GPIO3_2_KP_MKIN_7 MFP_CFG_LPM(GPIO3_2, AF1, FLOAT) | ||
4359 | + | ||
4360 | +#define GPIO7_KP_MKOUT_5 MFP_CFG_LPM(GPIO7, AF1, DRIVE_HIGH) | ||
4361 | +#define GPIO11_KP_MKOUT_5 MFP_CFG_LPM(GPIO11, AF3, DRIVE_HIGH) | ||
4362 | +#define GPIO12_KP_MKOUT_6 MFP_CFG_LPM(GPIO12, AF3, DRIVE_HIGH) | ||
4363 | +#define GPIO13_KP_MKOUT_7 MFP_CFG_LPM(GPIO13, AF3, DRIVE_HIGH) | ||
4364 | +#define GPIO19_KP_MKOUT_4 MFP_CFG_LPM(GPIO19, AF3, DRIVE_HIGH) | ||
4365 | +#define GPIO20_KP_MKOUT_5 MFP_CFG_LPM(GPIO20, AF3, DRIVE_HIGH) | ||
4366 | +#define GPIO38_KP_MKOUT_5 MFP_CFG_LPM(GPIO38, AF5, DRIVE_HIGH) | ||
4367 | +#define GPIO53_KP_MKOUT_6 MFP_CFG_LPM(GPIO53, AF5, DRIVE_HIGH) | ||
4368 | +#define GPIO78_KP_MKOUT_7 MFP_CFG_LPM(GPIO78, AF5, DRIVE_HIGH) | ||
4369 | +#define GPIO85_KP_MKOUT_0 MFP_CFG_LPM(GPIO85, AF2, DRIVE_HIGH) | ||
4370 | +#define GPIO86_KP_MKOUT_1 MFP_CFG_LPM(GPIO86, AF2, DRIVE_HIGH) | ||
4371 | +#define GPIO87_KP_MKOUT_2 MFP_CFG_LPM(GPIO87, AF2, DRIVE_HIGH) | ||
4372 | +#define GPIO88_KP_MKOUT_3 MFP_CFG_LPM(GPIO88, AF2, DRIVE_HIGH) | ||
4373 | +#define GPIO104_KP_MKOUT_6 MFP_CFG_LPM(GPIO104, AF5, DRIVE_HIGH) | ||
4374 | +#define GPIO105_KP_MKOUT_7 MFP_CFG_LPM(GPIO105, AF5, DRIVE_HIGH) | ||
4375 | +#define GPIO121_KP_MKOUT_0 MFP_CFG_LPM(GPIO121, AF1, DRIVE_HIGH) | ||
4376 | +#define GPIO122_KP_MKOUT_1 MFP_CFG_LPM(GPIO122, AF1, DRIVE_HIGH) | ||
4377 | +#define GPIO123_KP_MKOUT_2 MFP_CFG_LPM(GPIO123, AF1, DRIVE_HIGH) | ||
4378 | +#define GPIO124_KP_MKOUT_3 MFP_CFG_LPM(GPIO124, AF1, DRIVE_HIGH) | ||
4379 | +#define GPIO125_KP_MKOUT_4 MFP_CFG_LPM(GPIO125, AF1, DRIVE_HIGH) | ||
4380 | +#define GPIO126_KP_MKOUT_7 MFP_CFG_LPM(GPIO126, AF4, DRIVE_HIGH) | ||
4381 | +#define GPIO5_2_KP_MKOUT_6 MFP_CFG_LPM(GPIO5_2, AF1, DRIVE_HIGH) | ||
4382 | +#define GPIO4_2_KP_MKOUT_5 MFP_CFG_LPM(GPIO4_2, AF1, DRIVE_HIGH) | ||
4383 | +#define GPIO6_2_KP_MKOUT_7 MFP_CFG_LPM(GPIO6_2, AF1, DRIVE_HIGH) | ||
4384 | + | ||
4385 | +/* LCD */ | ||
4386 | +#define GPIO54_LCD_LDD_0 MFP_CFG_DRV(GPIO54, AF1, DS01X) | ||
4387 | +#define GPIO55_LCD_LDD_1 MFP_CFG_DRV(GPIO55, AF1, DS01X) | ||
4388 | +#define GPIO56_LCD_LDD_2 MFP_CFG_DRV(GPIO56, AF1, DS01X) | ||
4389 | +#define GPIO57_LCD_LDD_3 MFP_CFG_DRV(GPIO57, AF1, DS01X) | ||
4390 | +#define GPIO58_LCD_LDD_4 MFP_CFG_DRV(GPIO58, AF1, DS01X) | ||
4391 | +#define GPIO59_LCD_LDD_5 MFP_CFG_DRV(GPIO59, AF1, DS01X) | ||
4392 | +#define GPIO60_LCD_LDD_6 MFP_CFG_DRV(GPIO60, AF1, DS01X) | ||
4393 | +#define GPIO61_LCD_LDD_7 MFP_CFG_DRV(GPIO61, AF1, DS01X) | ||
4394 | +#define GPIO62_LCD_LDD_8 MFP_CFG_DRV(GPIO62, AF1, DS01X) | ||
4395 | +#define GPIO63_LCD_LDD_9 MFP_CFG_DRV(GPIO63, AF1, DS01X) | ||
4396 | +#define GPIO64_LCD_LDD_10 MFP_CFG_DRV(GPIO64, AF1, DS01X) | ||
4397 | +#define GPIO65_LCD_LDD_11 MFP_CFG_DRV(GPIO65, AF1, DS01X) | ||
4398 | +#define GPIO66_LCD_LDD_12 MFP_CFG_DRV(GPIO66, AF1, DS01X) | ||
4399 | +#define GPIO67_LCD_LDD_13 MFP_CFG_DRV(GPIO67, AF1, DS01X) | ||
4400 | +#define GPIO68_LCD_LDD_14 MFP_CFG_DRV(GPIO68, AF1, DS01X) | ||
4401 | +#define GPIO69_LCD_LDD_15 MFP_CFG_DRV(GPIO69, AF1, DS01X) | ||
4402 | +#define GPIO70_LCD_LDD_16 MFP_CFG_DRV(GPIO70, AF1, DS01X) | ||
4403 | +#define GPIO71_LCD_LDD_17 MFP_CFG_DRV(GPIO71, AF1, DS01X) | ||
4404 | +#define GPIO62_LCD_CS_N MFP_CFG_DRV(GPIO62, AF2, DS01X) | ||
4405 | +#define GPIO72_LCD_FCLK MFP_CFG_DRV(GPIO72, AF1, DS01X) | ||
4406 | +#define GPIO73_LCD_LCLK MFP_CFG_DRV(GPIO73, AF1, DS01X) | ||
4407 | +#define GPIO74_LCD_PCLK MFP_CFG_DRV(GPIO74, AF1, DS01X) | ||
4408 | +#define GPIO75_LCD_BIAS MFP_CFG_DRV(GPIO75, AF1, DS01X) | ||
4409 | +#define GPIO76_LCD_VSYNC MFP_CFG_DRV(GPIO76, AF2, DS01X) | ||
4410 | + | ||
4411 | +#define GPIO15_LCD_CS_N MFP_CFG_DRV(GPIO15, AF2, DS01X) | ||
4412 | +#define GPIO127_LCD_CS_N MFP_CFG_DRV(GPIO127, AF1, DS01X) | ||
4413 | +#define GPIO63_LCD_VSYNC MFP_CFG_DRV(GPIO63, AF2, DS01X) | ||
4414 | + | ||
4415 | +/* Mini-LCD */ | ||
4416 | +#define GPIO72_MLCD_FCLK MFP_CFG_DRV(GPIO72, AF7, DS08X) | ||
4417 | +#define GPIO73_MLCD_LCLK MFP_CFG_DRV(GPIO73, AF7, DS08X) | ||
4418 | +#define GPIO54_MLCD_LDD_0 MFP_CFG_DRV(GPIO54, AF7, DS08X) | ||
4419 | +#define GPIO55_MLCD_LDD_1 MFP_CFG_DRV(GPIO55, AF7, DS08X) | ||
4420 | +#define GPIO56_MLCD_LDD_2 MFP_CFG_DRV(GPIO56, AF7, DS08X) | ||
4421 | +#define GPIO57_MLCD_LDD_3 MFP_CFG_DRV(GPIO57, AF7, DS08X) | ||
4422 | +#define GPIO58_MLCD_LDD_4 MFP_CFG_DRV(GPIO58, AF7, DS08X) | ||
4423 | +#define GPIO59_MLCD_LDD_5 MFP_CFG_DRV(GPIO59, AF7, DS08X) | ||
4424 | +#define GPIO60_MLCD_LDD_6 MFP_CFG_DRV(GPIO60, AF7, DS08X) | ||
4425 | +#define GPIO61_MLCD_LDD_7 MFP_CFG_DRV(GPIO61, AF7, DS08X) | ||
4426 | +#define GPIO62_MLCD_LDD_8 MFP_CFG_DRV(GPIO62, AF7, DS08X) | ||
4427 | +#define GPIO63_MLCD_LDD_9 MFP_CFG_DRV(GPIO63, AF7, DS08X) | ||
4428 | +#define GPIO64_MLCD_LDD_10 MFP_CFG_DRV(GPIO64, AF7, DS08X) | ||
4429 | +#define GPIO65_MLCD_LDD_11 MFP_CFG_DRV(GPIO65, AF7, DS08X) | ||
4430 | +#define GPIO66_MLCD_LDD_12 MFP_CFG_DRV(GPIO66, AF7, DS08X) | ||
4431 | +#define GPIO67_MLCD_LDD_13 MFP_CFG_DRV(GPIO67, AF7, DS08X) | ||
4432 | +#define GPIO68_MLCD_LDD_14 MFP_CFG_DRV(GPIO68, AF7, DS08X) | ||
4433 | +#define GPIO69_MLCD_LDD_15 MFP_CFG_DRV(GPIO69, AF7, DS08X) | ||
4434 | +#define GPIO74_MLCD_PCLK MFP_CFG_DRV(GPIO74, AF7, DS08X) | ||
4435 | +#define GPIO75_MLCD_BIAS MFP_CFG_DRV(GPIO75, AF2, DS08X) | ||
4436 | + | ||
4437 | +/* MMC1 */ | ||
4438 | +#define GPIO7_MMC1_CLK MFP_CFG_LPM(GPIO7, AF4, DRIVE_HIGH) | ||
4439 | +#define GPIO8_MMC1_CMD MFP_CFG_LPM(GPIO8, AF4, DRIVE_HIGH) | ||
4440 | +#define GPIO14_MMC1_CMD MFP_CFG_LPM(GPIO14, AF5, DRIVE_HIGH) | ||
4441 | +#define GPIO15_MMC1_CMD MFP_CFG_LPM(GPIO15, AF5, DRIVE_HIGH) | ||
4442 | +#define GPIO3_MMC1_DAT0 MFP_CFG_LPM(GPIO3, AF4, DRIVE_HIGH) | ||
4443 | +#define GPIO4_MMC1_DAT1 MFP_CFG_LPM(GPIO4, AF4, DRIVE_HIGH) | ||
4444 | +#define GPIO5_MMC1_DAT2 MFP_CFG_LPM(GPIO5, AF4, DRIVE_HIGH) | ||
4445 | +#define GPIO6_MMC1_DAT3 MFP_CFG_LPM(GPIO6, AF4, DRIVE_HIGH) | ||
4446 | + | ||
4447 | +/* MMC2 */ | ||
4448 | +#define GPIO9_MMC2_DAT0 MFP_CFG_LPM(GPIO9, AF4, PULL_HIGH) | ||
4449 | +#define GPIO10_MMC2_DAT1 MFP_CFG_LPM(GPIO10, AF4, PULL_HIGH) | ||
4450 | +#define GPIO11_MMC2_DAT2 MFP_CFG_LPM(GPIO11, AF4, PULL_HIGH) | ||
4451 | +#define GPIO12_MMC2_DAT3 MFP_CFG_LPM(GPIO12, AF4, PULL_HIGH) | ||
4452 | +#define GPIO13_MMC2_CLK MFP_CFG_LPM(GPIO13, AF4, PULL_HIGH) | ||
4453 | +#define GPIO14_MMC2_CMD MFP_CFG_LPM(GPIO14, AF4, PULL_HIGH) | ||
4454 | +#define GPIO77_MMC2_DAT0 MFP_CFG_LPM(GPIO77, AF4, PULL_HIGH) | ||
4455 | +#define GPIO78_MMC2_DAT1 MFP_CFG_LPM(GPIO78, AF4, PULL_HIGH) | ||
4456 | +#define GPIO79_MMC2_DAT2 MFP_CFG_LPM(GPIO79, AF4, PULL_HIGH) | ||
4457 | +#define GPIO80_MMC2_DAT3 MFP_CFG_LPM(GPIO80, AF4, PULL_HIGH) | ||
4458 | +#define GPIO81_MMC2_CLK MFP_CFG_LPM(GPIO81, AF4, PULL_HIGH) | ||
4459 | +#define GPIO82_MMC2_CMD MFP_CFG_LPM(GPIO82, AF4, PULL_HIGH) | ||
4460 | + | ||
4461 | +/* SSP1 */ | ||
4462 | +#define GPIO89_SSP1_EXTCLK MFP_CFG(GPIO89, AF1) | ||
4463 | +#define GPIO90_SSP1_SYSCLK MFP_CFG(GPIO90, AF1) | ||
4464 | +#define GPIO15_SSP1_SCLK MFP_CFG(GPIO15, AF6) | ||
4465 | +#define GPIO16_SSP1_FRM MFP_CFG(GPIO16, AF2) | ||
4466 | +#define GPIO33_SSP1_SCLK MFP_CFG(GPIO33, AF5) | ||
4467 | +#define GPIO34_SSP1_FRM MFP_CFG(GPIO34, AF5) | ||
4468 | +#define GPIO85_SSP1_SCLK MFP_CFG(GPIO85, AF1) | ||
4469 | +#define GPIO86_SSP1_FRM MFP_CFG(GPIO86, AF1) | ||
4470 | +#define GPIO18_SSP1_TXD MFP_CFG(GPIO18, AF7) | ||
4471 | +#define GPIO18_SSP1_RXD MFP_CFG(GPIO18, AF2) | ||
4472 | +#define GPIO20_SSP1_TXD MFP_CFG(GPIO20, AF2) | ||
4473 | +#define GPIO20_SSP1_RXD MFP_CFG(GPIO20, AF7) | ||
4474 | +#define GPIO35_SSP1_TXD MFP_CFG(GPIO35, AF5) | ||
4475 | +#define GPIO35_SSP1_RXD MFP_CFG(GPIO35, AF4) | ||
4476 | +#define GPIO36_SSP1_TXD MFP_CFG(GPIO36, AF5) | ||
4477 | +#define GPIO36_SSP1_RXD MFP_CFG(GPIO36, AF6) | ||
4478 | +#define GPIO87_SSP1_TXD MFP_CFG(GPIO87, AF1) | ||
4479 | +#define GPIO87_SSP1_RXD MFP_CFG(GPIO87, AF6) | ||
4480 | +#define GPIO88_SSP1_TXD MFP_CFG(GPIO88, AF6) | ||
4481 | +#define GPIO88_SSP1_RXD MFP_CFG(GPIO88, AF1) | ||
4482 | + | ||
4483 | +/* SSP2 */ | ||
4484 | +#define GPIO29_SSP2_EXTCLK MFP_CFG(GPIO29, AF2) | ||
4485 | +#define GPIO23_SSP2_SCLK MFP_CFG(GPIO23, AF2) | ||
4486 | +#define GPIO17_SSP2_FRM MFP_CFG(GPIO17, AF2) | ||
4487 | +#define GPIO25_SSP2_SCLK MFP_CFG(GPIO25, AF2) | ||
4488 | +#define GPIO26_SSP2_FRM MFP_CFG(GPIO26, AF2) | ||
4489 | +#define GPIO33_SSP2_SCLK MFP_CFG(GPIO33, AF6) | ||
4490 | +#define GPIO34_SSP2_FRM MFP_CFG(GPIO34, AF6) | ||
4491 | +#define GPIO64_SSP2_SCLK MFP_CFG(GPIO64, AF2) | ||
4492 | +#define GPIO65_SSP2_FRM MFP_CFG(GPIO65, AF2) | ||
4493 | +#define GPIO19_SSP2_TXD MFP_CFG(GPIO19, AF2) | ||
4494 | +#define GPIO19_SSP2_RXD MFP_CFG(GPIO19, AF7) | ||
4495 | +#define GPIO24_SSP2_TXD MFP_CFG(GPIO24, AF5) | ||
4496 | +#define GPIO24_SSP2_RXD MFP_CFG(GPIO24, AF4) | ||
4497 | +#define GPIO27_SSP2_TXD MFP_CFG(GPIO27, AF2) | ||
4498 | +#define GPIO27_SSP2_RXD MFP_CFG(GPIO27, AF5) | ||
4499 | +#define GPIO28_SSP2_TXD MFP_CFG(GPIO28, AF5) | ||
4500 | +#define GPIO28_SSP2_RXD MFP_CFG(GPIO28, AF2) | ||
4501 | +#define GPIO35_SSP2_TXD MFP_CFG(GPIO35, AF7) | ||
4502 | +#define GPIO35_SSP2_RXD MFP_CFG(GPIO35, AF6) | ||
4503 | +#define GPIO66_SSP2_TXD MFP_CFG(GPIO66, AF4) | ||
4504 | +#define GPIO66_SSP2_RXD MFP_CFG(GPIO66, AF2) | ||
4505 | +#define GPIO67_SSP2_TXD MFP_CFG(GPIO67, AF2) | ||
4506 | +#define GPIO67_SSP2_RXD MFP_CFG(GPIO67, AF4) | ||
4507 | +#define GPIO36_SSP2_TXD MFP_CFG(GPIO36, AF7) | ||
4508 | + | ||
4509 | +/* SSP3 */ | ||
4510 | +#define GPIO69_SSP3_FRM MFP_CFG_X(GPIO69, AF2, DS08X, DRIVE_LOW) | ||
4511 | +#define GPIO68_SSP3_SCLK MFP_CFG_X(GPIO68, AF2, DS08X, FLOAT) | ||
4512 | +#define GPIO92_SSP3_FRM MFP_CFG_X(GPIO92, AF1, DS08X, DRIVE_LOW) | ||
4513 | +#define GPIO91_SSP3_SCLK MFP_CFG_X(GPIO91, AF1, DS08X, FLOAT) | ||
4514 | +#define GPIO70_SSP3_TXD MFP_CFG_X(GPIO70, AF2, DS08X, DRIVE_LOW) | ||
4515 | +#define GPIO70_SSP3_RXD MFP_CFG_X(GPIO70, AF5, DS08X, FLOAT) | ||
4516 | +#define GPIO71_SSP3_TXD MFP_CFG_X(GPIO71, AF5, DS08X, DRIVE_LOW) | ||
4517 | +#define GPIO71_SSP3_RXD MFP_CFG_X(GPIO71, AF2, DS08X, FLOAT) | ||
4518 | +#define GPIO93_SSP3_TXD MFP_CFG_X(GPIO93, AF1, DS08X, DRIVE_LOW) | ||
4519 | +#define GPIO93_SSP3_RXD MFP_CFG_X(GPIO93, AF5, DS08X, FLOAT) | ||
4520 | +#define GPIO94_SSP3_TXD MFP_CFG_X(GPIO94, AF5, DS08X, DRIVE_LOW) | ||
4521 | +#define GPIO94_SSP3_RXD MFP_CFG_X(GPIO94, AF1, DS08X, FLOAT) | ||
4522 | + | ||
4523 | +/* SSP4 */ | ||
4524 | +#define GPIO95_SSP4_SCLK MFP_CFG_LPM(GPIO95, AF1, PULL_HIGH) | ||
4525 | +#define GPIO96_SSP4_FRM MFP_CFG_LPM(GPIO96, AF1, PULL_HIGH) | ||
4526 | +#define GPIO97_SSP4_TXD MFP_CFG_LPM(GPIO97, AF1, PULL_HIGH) | ||
4527 | +#define GPIO97_SSP4_RXD MFP_CFG_LPM(GPIO97, AF5, PULL_HIGH) | ||
4528 | +#define GPIO98_SSP4_TXD MFP_CFG_LPM(GPIO98, AF5, PULL_HIGH) | ||
4529 | +#define GPIO98_SSP4_RXD MFP_CFG_LPM(GPIO98, AF1, PULL_HIGH) | ||
4530 | + | ||
4531 | +/* UART1 */ | ||
4532 | +#define GPIO32_UART1_CTS MFP_CFG_LPM(GPIO32, AF2, FLOAT) | ||
4533 | +#define GPIO37_UART1_CTS MFP_CFG_LPM(GPIO37, AF4, FLOAT) | ||
4534 | +#define GPIO79_UART1_CTS MFP_CFG_LPM(GPIO79, AF1, FLOAT) | ||
4535 | +#define GPIO84_UART1_CTS MFP_CFG_LPM(GPIO84, AF3, FLOAT) | ||
4536 | +#define GPIO101_UART1_CTS MFP_CFG_LPM(GPIO101, AF1, FLOAT) | ||
4537 | +#define GPIO106_UART1_CTS MFP_CFG_LPM(GPIO106, AF6, FLOAT) | ||
4538 | + | ||
4539 | +#define GPIO32_UART1_RTS MFP_CFG_LPM(GPIO32, AF4, FLOAT) | ||
4540 | +#define GPIO37_UART1_RTS MFP_CFG_LPM(GPIO37, AF2, FLOAT) | ||
4541 | +#define GPIO79_UART1_RTS MFP_CFG_LPM(GPIO79, AF3, FLOAT) | ||
4542 | +#define GPIO84_UART1_RTS MFP_CFG_LPM(GPIO84, AF1, FLOAT) | ||
4543 | +#define GPIO101_UART1_RTS MFP_CFG_LPM(GPIO101, AF6, FLOAT) | ||
4544 | +#define GPIO106_UART1_RTS MFP_CFG_LPM(GPIO106, AF1, FLOAT) | ||
4545 | + | ||
4546 | +#define GPIO34_UART1_DSR MFP_CFG_LPM(GPIO34, AF2, FLOAT) | ||
4547 | +#define GPIO36_UART1_DSR MFP_CFG_LPM(GPIO36, AF4, FLOAT) | ||
4548 | +#define GPIO81_UART1_DSR MFP_CFG_LPM(GPIO81, AF1, FLOAT) | ||
4549 | +#define GPIO83_UART1_DSR MFP_CFG_LPM(GPIO83, AF3, FLOAT) | ||
4550 | +#define GPIO103_UART1_DSR MFP_CFG_LPM(GPIO103, AF1, FLOAT) | ||
4551 | +#define GPIO105_UART1_DSR MFP_CFG_LPM(GPIO105, AF6, FLOAT) | ||
4552 | + | ||
4553 | +#define GPIO34_UART1_DTR MFP_CFG_LPM(GPIO34, AF4, FLOAT) | ||
4554 | +#define GPIO36_UART1_DTR MFP_CFG_LPM(GPIO36, AF2, FLOAT) | ||
4555 | +#define GPIO81_UART1_DTR MFP_CFG_LPM(GPIO81, AF3, FLOAT) | ||
4556 | +#define GPIO83_UART1_DTR MFP_CFG_LPM(GPIO83, AF1, FLOAT) | ||
4557 | +#define GPIO103_UART1_DTR MFP_CFG_LPM(GPIO103, AF6, FLOAT) | ||
4558 | +#define GPIO105_UART1_DTR MFP_CFG_LPM(GPIO105, AF1, FLOAT) | ||
4559 | + | ||
4560 | +#define GPIO35_UART1_RI MFP_CFG_LPM(GPIO35, AF2, FLOAT) | ||
4561 | +#define GPIO82_UART1_RI MFP_CFG_LPM(GPIO82, AF1, FLOAT) | ||
4562 | +#define GPIO104_UART1_RI MFP_CFG_LPM(GPIO104, AF1, FLOAT) | ||
4563 | + | ||
4564 | +#define GPIO33_UART1_DCD MFP_CFG_LPM(GPIO33, AF2, FLOAT) | ||
4565 | +#define GPIO80_UART1_DCD MFP_CFG_LPM(GPIO80, AF1, FLOAT) | ||
4566 | +#define GPIO102_UART1_DCD MFP_CFG_LPM(GPIO102, AF1, FLOAT) | ||
4567 | + | ||
4568 | +#define GPIO30_UART1_RXD MFP_CFG_LPM(GPIO30, AF2, FLOAT) | ||
4569 | +#define GPIO31_UART1_RXD MFP_CFG_LPM(GPIO31, AF4, FLOAT) | ||
4570 | +#define GPIO77_UART1_RXD MFP_CFG_LPM(GPIO77, AF1, FLOAT) | ||
4571 | +#define GPIO78_UART1_RXD MFP_CFG_LPM(GPIO78, AF3, FLOAT) | ||
4572 | +#define GPIO99_UART1_RXD MFP_CFG_LPM(GPIO99, AF1, FLOAT) | ||
4573 | +#define GPIO100_UART1_RXD MFP_CFG_LPM(GPIO100, AF6, FLOAT) | ||
4574 | +#define GPIO102_UART1_RXD MFP_CFG_LPM(GPIO102, AF6, FLOAT) | ||
4575 | +#define GPIO104_UART1_RXD MFP_CFG_LPM(GPIO104, AF4, FLOAT) | ||
4576 | + | ||
4577 | +#define GPIO30_UART1_TXD MFP_CFG_LPM(GPIO30, AF4, FLOAT) | ||
4578 | +#define GPIO31_UART1_TXD MFP_CFG_LPM(GPIO31, AF2, FLOAT) | ||
4579 | +#define GPIO77_UART1_TXD MFP_CFG_LPM(GPIO77, AF3, FLOAT) | ||
4580 | +#define GPIO78_UART1_TXD MFP_CFG_LPM(GPIO78, AF1, FLOAT) | ||
4581 | +#define GPIO99_UART1_TXD MFP_CFG_LPM(GPIO99, AF6, FLOAT) | ||
4582 | +#define GPIO100_UART1_TXD MFP_CFG_LPM(GPIO100, AF1, FLOAT) | ||
4583 | +#define GPIO102_UART1_TXD MFP_CFG_LPM(GPIO102, AF4, FLOAT) | ||
4584 | + | ||
4585 | +/* UART2 */ | ||
4586 | +#define GPIO15_UART2_CTS MFP_CFG_LPM(GPIO15, AF3, FLOAT) | ||
4587 | +#define GPIO16_UART2_CTS MFP_CFG_LPM(GPIO16, AF5, FLOAT) | ||
4588 | +#define GPIO111_UART2_CTS MFP_CFG_LPM(GPIO111, AF3, FLOAT) | ||
4589 | +#define GPIO114_UART2_CTS MFP_CFG_LPM(GPIO114, AF1, FLOAT) | ||
4590 | + | ||
4591 | +#define GPIO15_UART2_RTS MFP_CFG_LPM(GPIO15, AF4, FLOAT) | ||
4592 | +#define GPIO16_UART2_RTS MFP_CFG_LPM(GPIO16, AF4, FLOAT) | ||
4593 | +#define GPIO114_UART2_RTS MFP_CFG_LPM(GPIO114, AF3, FLOAT) | ||
4594 | +#define GPIO111_UART2_RTS MFP_CFG_LPM(GPIO111, AF1, FLOAT) | ||
4595 | + | ||
4596 | +#define GPIO18_UART2_RXD MFP_CFG_LPM(GPIO18, AF5, FLOAT) | ||
4597 | +#define GPIO19_UART2_RXD MFP_CFG_LPM(GPIO19, AF4, FLOAT) | ||
4598 | +#define GPIO112_UART2_RXD MFP_CFG_LPM(GPIO112, AF1, FLOAT) | ||
4599 | +#define GPIO113_UART2_RXD MFP_CFG_LPM(GPIO113, AF3, FLOAT) | ||
4600 | + | ||
4601 | +#define GPIO18_UART2_TXD MFP_CFG_LPM(GPIO18, AF4, FLOAT) | ||
4602 | +#define GPIO19_UART2_TXD MFP_CFG_LPM(GPIO19, AF5, FLOAT) | ||
4603 | +#define GPIO112_UART2_TXD MFP_CFG_LPM(GPIO112, AF3, FLOAT) | ||
4604 | +#define GPIO113_UART2_TXD MFP_CFG_LPM(GPIO113, AF1, FLOAT) | ||
4605 | + | ||
4606 | +/* UART3 */ | ||
4607 | +#define GPIO91_UART3_CTS MFP_CFG_LPM(GPIO91, AF2, FLOAT) | ||
4608 | +#define GPIO92_UART3_CTS MFP_CFG_LPM(GPIO92, AF4, FLOAT) | ||
4609 | +#define GPIO107_UART3_CTS MFP_CFG_LPM(GPIO107, AF1, FLOAT) | ||
4610 | +#define GPIO108_UART3_CTS MFP_CFG_LPM(GPIO108, AF3, FLOAT) | ||
4611 | + | ||
4612 | +#define GPIO91_UART3_RTS MFP_CFG_LPM(GPIO91, AF4, FLOAT) | ||
4613 | +#define GPIO92_UART3_RTS MFP_CFG_LPM(GPIO92, AF2, FLOAT) | ||
4614 | +#define GPIO107_UART3_RTS MFP_CFG_LPM(GPIO107, AF3, FLOAT) | ||
4615 | +#define GPIO108_UART3_RTS MFP_CFG_LPM(GPIO108, AF1, FLOAT) | ||
4616 | + | ||
4617 | +#define GPIO7_UART3_RXD MFP_CFG_LPM(GPIO7, AF2, FLOAT) | ||
4618 | +#define GPIO8_UART3_RXD MFP_CFG_LPM(GPIO8, AF6, FLOAT) | ||
4619 | +#define GPIO93_UART3_RXD MFP_CFG_LPM(GPIO93, AF4, FLOAT) | ||
4620 | +#define GPIO94_UART3_RXD MFP_CFG_LPM(GPIO94, AF2, FLOAT) | ||
4621 | +#define GPIO109_UART3_RXD MFP_CFG_LPM(GPIO109, AF3, FLOAT) | ||
4622 | +#define GPIO110_UART3_RXD MFP_CFG_LPM(GPIO110, AF1, FLOAT) | ||
4623 | + | ||
4624 | +#define GPIO7_UART3_TXD MFP_CFG_LPM(GPIO7, AF6, FLOAT) | ||
4625 | +#define GPIO8_UART3_TXD MFP_CFG_LPM(GPIO8, AF2, FLOAT) | ||
4626 | +#define GPIO93_UART3_TXD MFP_CFG_LPM(GPIO93, AF2, FLOAT) | ||
4627 | +#define GPIO94_UART3_TXD MFP_CFG_LPM(GPIO94, AF4, FLOAT) | ||
4628 | +#define GPIO109_UART3_TXD MFP_CFG_LPM(GPIO109, AF1, FLOAT) | ||
4629 | +#define GPIO110_UART3_TXD MFP_CFG_LPM(GPIO110, AF3, FLOAT) | ||
4630 | + | ||
4631 | +/* USB Host */ | ||
4632 | +#define GPIO0_2_USBH_PEN MFP_CFG(GPIO0_2, AF1) | ||
4633 | +#define GPIO1_2_USBH_PWR MFP_CFG(GPIO1_2, AF1) | ||
4634 | + | ||
4635 | +/* USB P3 */ | ||
4636 | +#define GPIO77_USB_P3_1 MFP_CFG(GPIO77, AF2) | ||
4637 | +#define GPIO78_USB_P3_2 MFP_CFG(GPIO78, AF2) | ||
4638 | +#define GPIO79_USB_P3_3 MFP_CFG(GPIO79, AF2) | ||
4639 | +#define GPIO80_USB_P3_4 MFP_CFG(GPIO80, AF2) | ||
4640 | +#define GPIO81_USB_P3_5 MFP_CFG(GPIO81, AF2) | ||
4641 | +#define GPIO82_USB_P3_6 MFP_CFG(GPIO82, AF2) | ||
4642 | + | ||
4643 | +/* PWM */ | ||
4644 | +#define GPIO17_PWM0_OUT MFP_CFG(GPIO17, AF1) | ||
4645 | +#define GPIO18_PWM1_OUT MFP_CFG(GPIO18, AF1) | ||
4646 | +#define GPIO19_PWM2_OUT MFP_CFG(GPIO19, AF1) | ||
4647 | +#define GPIO20_PWM3_OUT MFP_CFG(GPIO20, AF1) | ||
4648 | + | ||
4649 | +/* CIR */ | ||
4650 | +#define GPIO8_CIR_OUT MFP_CFG(GPIO8, AF5) | ||
4651 | +#define GPIO16_CIR_OUT MFP_CFG(GPIO16, AF3) | ||
4652 | + | ||
4653 | +#define GPIO20_OW_DQ_IN MFP_CFG(GPIO20, AF5) | ||
4654 | +#define GPIO126_OW_DQ MFP_CFG(GPIO126, AF2) | ||
4655 | + | ||
4656 | +#define GPIO0_DF_RDY MFP_CFG(GPIO0, AF1) | ||
4657 | +#define GPIO7_CLK_BYPASS_XSC MFP_CFG(GPIO7, AF7) | ||
4658 | +#define GPIO17_EXT_SYNC_MVT_0 MFP_CFG(GPIO17, AF6) | ||
4659 | +#define GPIO18_EXT_SYNC_MVT_1 MFP_CFG(GPIO18, AF6) | ||
4660 | +#define GPIO19_OST_CHOUT_MVT_0 MFP_CFG(GPIO19, AF6) | ||
4661 | +#define GPIO20_OST_CHOUT_MVT_1 MFP_CFG(GPIO20, AF6) | ||
4662 | +#define GPIO49_48M_CLK MFP_CFG(GPIO49, AF2) | ||
4663 | +#define GPIO126_EXT_CLK MFP_CFG(GPIO126, AF3) | ||
4664 | +#define GPIO127_CLK_BYPASS_GB MFP_CFG(GPIO127, AF7) | ||
4665 | +#define GPIO71_EXT_MATCH_MVT MFP_CFG(GPIO71, AF6) | ||
4666 | + | ||
4667 | +#define GPIO3_uIO_IN MFP_CFG(GPIO3, AF1) | ||
4668 | + | ||
4669 | +#define GPIO4_uSIM_CARD_STATE MFP_CFG(GPIO4, AF1) | ||
4670 | +#define GPIO5_uSIM_uCLK MFP_CFG(GPIO5, AF1) | ||
4671 | +#define GPIO6_uSIM_uRST MFP_CFG(GPIO6, AF1) | ||
4672 | +#define GPIO16_uSIM_UVS_0 MFP_CFG(GPIO16, AF1) | ||
4673 | + | ||
4674 | +#define GPIO9_SCIO MFP_CFG(GPIO9, AF1) | ||
4675 | +#define GPIO20_RTC_MVT MFP_CFG(GPIO20, AF4) | ||
4676 | +#define GPIO126_RTC_MVT MFP_CFG(GPIO126, AF1) | ||
4677 | + | ||
4678 | +/* | ||
4679 | + * PXA300 specific MFP configurations | ||
4680 | + */ | ||
4681 | +#ifdef CONFIG_CPU_PXA300 | ||
4682 | +#define GPIO99_USB_P2_2 MFP_CFG(GPIO99, AF2) | ||
4683 | +#define GPIO99_USB_P2_5 MFP_CFG(GPIO99, AF3) | ||
4684 | +#define GPIO99_USB_P2_6 MFP_CFG(GPIO99, AF4) | ||
4685 | +#define GPIO100_USB_P2_2 MFP_CFG(GPIO100, AF4) | ||
4686 | +#define GPIO100_USB_P2_5 MFP_CFG(GPIO100, AF5) | ||
4687 | +#define GPIO101_USB_P2_1 MFP_CFG(GPIO101, AF2) | ||
4688 | +#define GPIO102_USB_P2_4 MFP_CFG(GPIO102, AF2) | ||
4689 | +#define GPIO104_USB_P2_3 MFP_CFG(GPIO104, AF2) | ||
4690 | +#define GPIO105_USB_P2_5 MFP_CFG(GPIO105, AF2) | ||
4691 | +#define GPIO100_USB_P2_6 MFP_CFG(GPIO100, AF2) | ||
4692 | +#define GPIO106_USB_P2_7 MFP_CFG(GPIO106, AF2) | ||
4693 | +#define GPIO103_USB_P2_8 MFP_CFG(GPIO103, AF2) | ||
4694 | + | ||
4695 | +/* U2D UTMI */ | ||
4696 | +#define GPIO38_UTM_CLK MFP_CFG(GPIO38, AF1) | ||
4697 | +#define GPIO26_U2D_RXERROR MFP_CFG(GPIO26, AF3) | ||
4698 | +#define GPIO50_U2D_RXERROR MFP_CFG(GPIO50, AF1) | ||
4699 | +#define GPIO89_U2D_RXERROR MFP_CFG(GPIO89, AF5) | ||
4700 | +#define GPIO24_UTM_RXVALID MFP_CFG(GPIO24, AF3) | ||
4701 | +#define GPIO48_UTM_RXVALID MFP_CFG(GPIO48, AF2) | ||
4702 | +#define GPIO87_UTM_RXVALID MFP_CFG(GPIO87, AF5) | ||
4703 | +#define GPIO25_UTM_RXACTIVE MFP_CFG(GPIO25, AF3) | ||
4704 | +#define GPIO47_UTM_RXACTIVE MFP_CFG(GPIO47, AF2) | ||
4705 | +#define GPIO49_UTM_RXACTIVE MFP_CFG(GPIO49, AF1) | ||
4706 | +#define GPIO88_UTM_RXACTIVE MFP_CFG(GPIO88, AF5) | ||
4707 | +#define GPIO53_UTM_TXREADY MFP_CFG(GPIO53, AF1) | ||
4708 | +#define GPIO67_UTM_LINESTATE_0 MFP_CFG(GPIO67, AF3) | ||
4709 | +#define GPIO92_UTM_LINESTATE_0 MFP_CFG(GPIO92, AF3) | ||
4710 | +#define GPIO104_UTM_LINESTATE_0 MFP_CFG(GPIO104, AF3) | ||
4711 | +#define GPIO109_UTM_LINESTATE_0 MFP_CFG(GPIO109, AF4) | ||
4712 | +#define GPIO68_UTM_LINESTATE_1 MFP_CFG(GPIO68, AF3) | ||
4713 | +#define GPIO93_UTM_LINESTATE_1 MFP_CFG(GPIO93, AF3) | ||
4714 | +#define GPIO105_UTM_LINESTATE_1 MFP_CFG(GPIO105, AF3) | ||
4715 | +#define GPIO27_U2D_OPMODE_0 MFP_CFG(GPIO27, AF4) | ||
4716 | +#define GPIO51_U2D_OPMODE_0 MFP_CFG(GPIO51, AF2) | ||
4717 | +#define GPIO90_U2D_OPMODE_0 MFP_CFG(GPIO90, AF7) | ||
4718 | +#define GPIO28_U2D_OPMODE_1 MFP_CFG(GPIO28, AF4) | ||
4719 | +#define GPIO52_U2D_OPMODE_1 MFP_CFG(GPIO52, AF2) | ||
4720 | +#define GPIO106_U2D_OPMODE_1 MFP_CFG(GPIO106, AF3) | ||
4721 | +#define GPIO110_U2D_OPMODE_1 MFP_CFG(GPIO110, AF5) | ||
4722 | +#define GPIO76_U2D_RESET MFP_CFG(GPIO76, AF1) | ||
4723 | +#define GPIO95_U2D_RESET MFP_CFG(GPIO95, AF2) | ||
4724 | +#define GPIO100_U2D_RESET MFP_CFG(GPIO100, AF3) | ||
4725 | +#define GPIO66_U2D_SUSPEND MFP_CFG(GPIO66, AF3) | ||
4726 | +#define GPIO98_U2D_SUSPEND MFP_CFG(GPIO98, AF2) | ||
4727 | +#define GPIO103_U2D_SUSPEND MFP_CFG(GPIO103, AF3) | ||
4728 | +#define GPIO65_U2D_TERM_SEL MFP_CFG(GPIO65, AF5) | ||
4729 | +#define GPIO97_U2D_TERM_SEL MFP_CFG(GPIO97, AF3) | ||
4730 | +#define GPIO102_U2D_TERM_SEL MFP_CFG(GPIO102, AF5) | ||
4731 | +#define GPIO29_U2D_TXVALID MFP_CFG(GPIO29, AF3) | ||
4732 | +#define GPIO52_U2D_TXVALID MFP_CFG(GPIO52, AF4) | ||
4733 | +#define GPIO69_U2D_TXVALID MFP_CFG(GPIO69, AF3) | ||
4734 | +#define GPIO85_U2D_TXVALID MFP_CFG(GPIO85, AF7) | ||
4735 | +#define GPIO64_U2D_XCVR_SEL MFP_CFG(GPIO64, AF5) | ||
4736 | +#define GPIO96_U2D_XCVR_SEL MFP_CFG(GPIO96, AF3) | ||
4737 | +#define GPIO101_U2D_XCVR_SEL MFP_CFG(GPIO101, AF5) | ||
4738 | +#define GPIO30_UTM_PHYDATA_0 MFP_CFG(GPIO30, AF3) | ||
4739 | +#define GPIO31_UTM_PHYDATA_1 MFP_CFG(GPIO31, AF3) | ||
4740 | +#define GPIO32_UTM_PHYDATA_2 MFP_CFG(GPIO32, AF3) | ||
4741 | +#define GPIO33_UTM_PHYDATA_3 MFP_CFG(GPIO33, AF3) | ||
4742 | +#define GPIO34_UTM_PHYDATA_4 MFP_CFG(GPIO34, AF3) | ||
4743 | +#define GPIO35_UTM_PHYDATA_5 MFP_CFG(GPIO35, AF3) | ||
4744 | +#define GPIO36_UTM_PHYDATA_6 MFP_CFG(GPIO36, AF3) | ||
4745 | +#define GPIO37_UTM_PHYDATA_7 MFP_CFG(GPIO37, AF3) | ||
4746 | +#define GPIO39_UTM_PHYDATA_0 MFP_CFG(GPIO39, AF3) | ||
4747 | +#define GPIO40_UTM_PHYDATA_1 MFP_CFG(GPIO40, AF3) | ||
4748 | +#define GPIO41_UTM_PHYDATA_2 MFP_CFG(GPIO41, AF3) | ||
4749 | +#define GPIO42_UTM_PHYDATA_3 MFP_CFG(GPIO42, AF3) | ||
4750 | +#define GPIO43_UTM_PHYDATA_4 MFP_CFG(GPIO43, AF3) | ||
4751 | +#define GPIO44_UTM_PHYDATA_5 MFP_CFG(GPIO44, AF3) | ||
4752 | +#define GPIO45_UTM_PHYDATA_6 MFP_CFG(GPIO45, AF3) | ||
4753 | +#define GPIO46_UTM_PHYDATA_7 MFP_CFG(GPIO46, AF3) | ||
4754 | +#endif /* CONFIG_CPU_PXA300 */ | ||
4755 | + | ||
4756 | +/* | ||
4757 | + * PXA310 specific MFP configurations | ||
4758 | + */ | ||
4759 | +#ifdef CONFIG_CPU_PXA310 | ||
4760 | +/* USB P2 */ | ||
4761 | +#define GPIO36_USB_P2_1 MFP_CFG(GPIO36, AF1) | ||
4762 | +#define GPIO30_USB_P2_2 MFP_CFG(GPIO30, AF1) | ||
4763 | +#define GPIO35_USB_P2_3 MFP_CFG(GPIO35, AF1) | ||
4764 | +#define GPIO32_USB_P2_4 MFP_CFG(GPIO32, AF1) | ||
4765 | +#define GPIO34_USB_P2_5 MFP_CFG(GPIO34, AF1) | ||
4766 | +#define GPIO31_USB_P2_6 MFP_CFG(GPIO31, AF1) | ||
4767 | + | ||
4768 | +/* MMC1 */ | ||
4769 | +#define GPIO24_MMC1_CMD MFP_CFG(GPIO24, AF3) | ||
4770 | +#define GPIO29_MMC1_DAT0 MFP_CFG(GPIO29, AF3) | ||
4771 | + | ||
4772 | +/* MMC3 */ | ||
4773 | +#define GPIO103_MMC3_CLK MFP_CFG(GPIO103, AF2) | ||
4774 | +#define GPIO105_MMC3_CMD MFP_CFG(GPIO105, AF2) | ||
4775 | +#define GPIO11_2_MMC3_CLK MFP_CFG(GPIO11_2, AF1) | ||
4776 | +#define GPIO12_2_MMC3_CMD MFP_CFG(GPIO12_2, AF1) | ||
4777 | +#define GPIO7_2_MMC3_DAT0 MFP_CFG(GPIO7_2, AF1) | ||
4778 | +#define GPIO8_2_MMC3_DAT1 MFP_CFG(GPIO8_2, AF1) | ||
4779 | +#define GPIO9_2_MMC3_DAT2 MFP_CFG(GPIO9_2, AF1) | ||
4780 | +#define GPIO10_2_MMC3_DAT3 MFP_CFG(GPIO10_2, AF1) | ||
4781 | + | ||
4782 | +/* ULPI */ | ||
4783 | +#define GPIO38_ULPI_CLK MFP_CFG(GPIO38, AF1) | ||
4784 | +#define GPIO30_ULPI_DATA_OUT_0 MFP_CFG(GPIO30, AF3) | ||
4785 | +#define GPIO31_ULPI_DATA_OUT_1 MFP_CFG(GPIO31, AF3) | ||
4786 | +#define GPIO32_ULPI_DATA_OUT_2 MFP_CFG(GPIO32, AF3) | ||
4787 | +#define GPIO33_ULPI_DATA_OUT_3 MFP_CFG(GPIO33, AF3) | ||
4788 | +#define GPIO34_ULPI_DATA_OUT_4 MFP_CFG(GPIO34, AF3) | ||
4789 | +#define GPIO35_ULPI_DATA_OUT_5 MFP_CFG(GPIO35, AF3) | ||
4790 | +#define GPIO36_ULPI_DATA_OUT_6 MFP_CFG(GPIO36, AF3) | ||
4791 | +#define GPIO37_ULPI_DATA_OUT_7 MFP_CFG(GPIO37, AF3) | ||
4792 | +#define GPIO33_ULPI_OTG_INTR MFP_CFG(GPIO33, AF1) | ||
4793 | + | ||
4794 | +#define ULPI_DIR MFP_CFG_DRV(ULPI_DIR, MFP_AF0, MFP_DS01X) | ||
4795 | +#define ULPI_NXT MFP_CFG_DRV(ULPI_NXT, MFP_AF0, MFP_DS01X) | ||
4796 | +#define ULPI_STP MFP_CFG_DRV(ULPI_STP, MFP_AF0, MFP_DS01X) | ||
4797 | +#endif /* CONFIG_CPU_PXA310 */ | ||
4798 | + | ||
4799 | +#endif /* __ASM_ARCH_MFP_PXA300_H */ | ||
4800 | Index: linux-2.6.22/include/asm-arm/arch-pxa/mfp-pxa320.h | ||
4801 | =================================================================== | ||
4802 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
4803 | +++ linux-2.6.22/include/asm-arm/arch-pxa/mfp-pxa320.h 2007-09-24 20:57:20.000000000 +0200 | ||
4804 | @@ -0,0 +1,446 @@ | ||
4805 | +/* | ||
4806 | + * linux/include/asm-arm/arch-pxa/mfp-pxa320.h | ||
4807 | + * | ||
4808 | + * PXA320 specific MFP configuration definitions | ||
4809 | + * | ||
4810 | + * Copyright (C) 2007 Marvell International Ltd. | ||
4811 | + * 2007-08-21: eric miao <eric.y.miao@gmail.com> | ||
4812 | + * initial version | ||
4813 | + * | ||
4814 | + * This program is free software; you can redistribute it and/or modify | ||
4815 | + * it under the terms of the GNU General Public License version 2 as | ||
4816 | + * published by the Free Software Foundation. | ||
4817 | + */ | ||
4818 | + | ||
4819 | +#ifndef __ASM_ARCH_MFP_PXA320_H | ||
4820 | +#define __ASM_ARCH_MFP_PXA320_H | ||
4821 | + | ||
4822 | +#include <asm/arch/mfp.h> | ||
4823 | + | ||
4824 | +/* GPIO */ | ||
4825 | +#define GPIO46_GPIO MFP_CFG(GPIO6, AF0) | ||
4826 | +#define GPIO49_GPIO MFP_CFG(GPIO49, AF0) | ||
4827 | +#define GPIO50_GPIO MFP_CFG(GPIO50, AF0) | ||
4828 | +#define GPIO51_GPIO MFP_CFG(GPIO51, AF0) | ||
4829 | +#define GPIO52_GPIO MFP_CFG(GPIO52, AF0) | ||
4830 | + | ||
4831 | +#define GPIO7_2_GPIO MFP_CFG(GPIO7_2, AF0) | ||
4832 | +#define GPIO8_2_GPIO MFP_CFG(GPIO8_2, AF0) | ||
4833 | +#define GPIO9_2_GPIO MFP_CFG(GPIO9_2, AF0) | ||
4834 | +#define GPIO10_2_GPIO MFP_CFG(GPIO10_2, AF0) | ||
4835 | +#define GPIO11_2_GPIO MFP_CFG(GPIO11_2, AF0) | ||
4836 | +#define GPIO12_2_GPIO MFP_CFG(GPIO12_2, AF0) | ||
4837 | +#define GPIO13_2_GPIO MFP_CFG(GPIO13_2, AF0) | ||
4838 | +#define GPIO14_2_GPIO MFP_CFG(GPIO14_2, AF0) | ||
4839 | +#define GPIO15_2_GPIO MFP_CFG(GPIO15_2, AF0) | ||
4840 | +#define GPIO16_2_GPIO MFP_CFG(GPIO16_2, AF0) | ||
4841 | +#define GPIO17_2_GPIO MFP_CFG(GPIO17_2, AF0) | ||
4842 | + | ||
4843 | +/* Chip Select */ | ||
4844 | +#define GPIO4_nCS3 MFP_CFG(GPIO4, AF1) | ||
4845 | + | ||
4846 | +/* AC97 */ | ||
4847 | +#define GPIO34_AC97_SYSCLK MFP_CFG(GPIO34, AF1) | ||
4848 | +#define GPIO39_AC97_BITCLK MFP_CFG(GPIO39, AF1) | ||
4849 | +#define GPIO40_AC97_nACRESET MFP_CFG(GPIO40, AF1) | ||
4850 | +#define GPIO35_AC97_SDATA_IN_0 MFP_CFG(GPIO35, AF1) | ||
4851 | +#define GPIO36_AC97_SDATA_IN_1 MFP_CFG(GPIO36, AF1) | ||
4852 | +#define GPIO32_AC97_SDATA_IN_2 MFP_CFG(GPIO32, AF2) | ||
4853 | +#define GPIO33_AC97_SDATA_IN_3 MFP_CFG(GPIO33, AF2) | ||
4854 | +#define GPIO11_AC97_SDATA_IN_2 MFP_CFG(GPIO11, AF3) | ||
4855 | +#define GPIO12_AC97_SDATA_IN_3 MFP_CFG(GPIO12, AF3) | ||
4856 | +#define GPIO37_AC97_SDATA_OUT MFP_CFG(GPIO37, AF1) | ||
4857 | +#define GPIO38_AC97_SYNC MFP_CFG(GPIO38, AF1) | ||
4858 | + | ||
4859 | +/* I2C */ | ||
4860 | +#define GPIO32_I2C_SCL MFP_CFG_LPM(GPIO32, AF1, PULL_HIGH) | ||
4861 | +#define GPIO33_I2C_SDA MFP_CFG_LPM(GPIO33, AF1, PULL_HIGH) | ||
4862 | + | ||
4863 | +/* QCI */ | ||
4864 | +#define GPIO49_CI_DD_0 MFP_CFG_DRV(GPIO49, AF1, DS04X) | ||
4865 | +#define GPIO50_CI_DD_1 MFP_CFG_DRV(GPIO50, AF1, DS04X) | ||
4866 | +#define GPIO51_CI_DD_2 MFP_CFG_DRV(GPIO51, AF1, DS04X) | ||
4867 | +#define GPIO52_CI_DD_3 MFP_CFG_DRV(GPIO52, AF1, DS04X) | ||
4868 | +#define GPIO53_CI_DD_4 MFP_CFG_DRV(GPIO53, AF1, DS04X) | ||
4869 | +#define GPIO54_CI_DD_5 MFP_CFG_DRV(GPIO54, AF1, DS04X) | ||
4870 | +#define GPIO55_CI_DD_6 MFP_CFG_DRV(GPIO55, AF1, DS04X) | ||
4871 | +#define GPIO56_CI_DD_7 MFP_CFG_DRV(GPIO56, AF0, DS04X) | ||
4872 | +#define GPIO57_CI_DD_8 MFP_CFG_DRV(GPIO57, AF1, DS04X) | ||
4873 | +#define GPIO58_CI_DD_9 MFP_CFG_DRV(GPIO58, AF1, DS04X) | ||
4874 | +#define GPIO59_CI_MCLK MFP_CFG_DRV(GPIO59, AF0, DS04X) | ||
4875 | +#define GPIO60_CI_PCLK MFP_CFG_DRV(GPIO60, AF0, DS04X) | ||
4876 | +#define GPIO61_CI_HSYNC MFP_CFG_DRV(GPIO61, AF0, DS04X) | ||
4877 | +#define GPIO62_CI_VSYNC MFP_CFG_DRV(GPIO62, AF0, DS04X) | ||
4878 | + | ||
4879 | +#define GPIO31_CIR_OUT MFP_CFG(GPIO31, AF5) | ||
4880 | + | ||
4881 | +#define GPIO0_2_CLK_EXT MFP_CFG(GPIO0_2, AF3) | ||
4882 | +#define GPIO0_DRQ MFP_CFG(GPIO0, AF2) | ||
4883 | +#define GPIO11_EXT_SYNC0 MFP_CFG(GPIO11, AF5) | ||
4884 | +#define GPIO12_EXT_SYNC1 MFP_CFG(GPIO12, AF6) | ||
4885 | +#define GPIO0_2_HZ_CLK MFP_CFG(GPIO0_2, AF1) | ||
4886 | +#define GPIO14_HZ_CLK MFP_CFG(GPIO14, AF4) | ||
4887 | +#define GPIO30_ICP_RXD MFP_CFG(GPIO30, AF1) | ||
4888 | +#define GPIO31_ICP_TXD MFP_CFG(GPIO31, AF1) | ||
4889 | + | ||
4890 | +#define GPIO83_KP_DKIN_0 MFP_CFG_LPM(GPIO83, AF3, FLOAT) | ||
4891 | +#define GPIO84_KP_DKIN_1 MFP_CFG_LPM(GPIO84, AF3, FLOAT) | ||
4892 | +#define GPIO85_KP_DKIN_2 MFP_CFG_LPM(GPIO85, AF3, FLOAT) | ||
4893 | +#define GPIO86_KP_DKIN_3 MFP_CFG_LPM(GPIO86, AF3, FLOAT) | ||
4894 | + | ||
4895 | +#define GPIO105_KP_DKIN_0 MFP_CFG_LPM(GPIO105, AF2, FLOAT) | ||
4896 | +#define GPIO106_KP_DKIN_1 MFP_CFG_LPM(GPIO106, AF2, FLOAT) | ||
4897 | +#define GPIO107_KP_DKIN_2 MFP_CFG_LPM(GPIO107, AF2, FLOAT) | ||
4898 | +#define GPIO108_KP_DKIN_3 MFP_CFG_LPM(GPIO108, AF2, FLOAT) | ||
4899 | +#define GPIO109_KP_DKIN_4 MFP_CFG_LPM(GPIO109, AF2, FLOAT) | ||
4900 | +#define GPIO110_KP_DKIN_5 MFP_CFG_LPM(GPIO110, AF2, FLOAT) | ||
4901 | +#define GPIO111_KP_DKIN_6 MFP_CFG_LPM(GPIO111, AF2, FLOAT) | ||
4902 | +#define GPIO112_KP_DKIN_7 MFP_CFG_LPM(GPIO112, AF2, FLOAT) | ||
4903 | + | ||
4904 | +#define GPIO113_KP_DKIN_0 MFP_CFG_LPM(GPIO113, AF2, FLOAT) | ||
4905 | +#define GPIO114_KP_DKIN_1 MFP_CFG_LPM(GPIO114, AF2, FLOAT) | ||
4906 | +#define GPIO115_KP_DKIN_2 MFP_CFG_LPM(GPIO115, AF2, FLOAT) | ||
4907 | +#define GPIO116_KP_DKIN_3 MFP_CFG_LPM(GPIO116, AF2, FLOAT) | ||
4908 | +#define GPIO117_KP_DKIN_4 MFP_CFG_LPM(GPIO117, AF2, FLOAT) | ||
4909 | +#define GPIO118_KP_DKIN_5 MFP_CFG_LPM(GPIO118, AF2, FLOAT) | ||
4910 | +#define GPIO119_KP_DKIN_6 MFP_CFG_LPM(GPIO119, AF2, FLOAT) | ||
4911 | +#define GPIO120_KP_DKIN_7 MFP_CFG_LPM(GPIO120, AF2, FLOAT) | ||
4912 | + | ||
4913 | +#define GPIO127_KP_DKIN_0 MFP_CFG_LPM(GPIO127, AF2, FLOAT) | ||
4914 | +#define GPIO126_KP_DKIN_1 MFP_CFG_LPM(GPIO126, AF2, FLOAT) | ||
4915 | + | ||
4916 | +#define GPIO2_2_KP_DKIN_0 MFP_CFG_LPM(GPIO2_2, AF2, FLOAT) | ||
4917 | +#define GPIO3_2_KP_DKIN_1 MFP_CFG_LPM(GPIO3_2, AF2, FLOAT) | ||
4918 | +#define GPIO125_KP_DKIN_2 MFP_CFG_LPM(GPIO125, AF2, FLOAT) | ||
4919 | +#define GPIO124_KP_DKIN_3 MFP_CFG_LPM(GPIO124, AF2, FLOAT) | ||
4920 | +#define GPIO123_KP_DKIN_4 MFP_CFG_LPM(GPIO123, AF2, FLOAT) | ||
4921 | +#define GPIO122_KP_DKIN_5 MFP_CFG_LPM(GPIO122, AF2, FLOAT) | ||
4922 | +#define GPIO121_KP_DKIN_6 MFP_CFG_LPM(GPIO121, AF2, FLOAT) | ||
4923 | +#define GPIO4_2_KP_DKIN_7 MFP_CFG_LPM(GPIO4_2, AF2, FLOAT) | ||
4924 | + | ||
4925 | +#define GPIO113_KP_MKIN_0 MFP_CFG_LPM(GPIO113, AF1, FLOAT) | ||
4926 | +#define GPIO114_KP_MKIN_1 MFP_CFG_LPM(GPIO114, AF1, FLOAT) | ||
4927 | +#define GPIO115_KP_MKIN_2 MFP_CFG_LPM(GPIO115, AF1, FLOAT) | ||
4928 | +#define GPIO116_KP_MKIN_3 MFP_CFG_LPM(GPIO116, AF1, FLOAT) | ||
4929 | +#define GPIO117_KP_MKIN_4 MFP_CFG_LPM(GPIO117, AF1, FLOAT) | ||
4930 | +#define GPIO118_KP_MKIN_5 MFP_CFG_LPM(GPIO118, AF1, FLOAT) | ||
4931 | +#define GPIO119_KP_MKIN_6 MFP_CFG_LPM(GPIO119, AF1, FLOAT) | ||
4932 | +#define GPIO120_KP_MKIN_7 MFP_CFG_LPM(GPIO120, AF1, FLOAT) | ||
4933 | + | ||
4934 | +#define GPIO83_KP_MKOUT_0 MFP_CFG_LPM(GPIO83, AF2, DRIVE_HIGH) | ||
4935 | +#define GPIO84_KP_MKOUT_1 MFP_CFG_LPM(GPIO84, AF2, DRIVE_HIGH) | ||
4936 | +#define GPIO85_KP_MKOUT_2 MFP_CFG_LPM(GPIO85, AF2, DRIVE_HIGH) | ||
4937 | +#define GPIO86_KP_MKOUT_3 MFP_CFG_LPM(GPIO86, AF2, DRIVE_HIGH) | ||
4938 | +#define GPIO13_KP_MKOUT_4 MFP_CFG_LPM(GPIO13, AF3, DRIVE_HIGH) | ||
4939 | +#define GPIO14_KP_MKOUT_5 MFP_CFG_LPM(GPIO14, AF3, DRIVE_HIGH) | ||
4940 | + | ||
4941 | +#define GPIO121_KP_MKOUT_0 MFP_CFG_LPM(GPIO121, AF1, DRIVE_HIGH) | ||
4942 | +#define GPIO122_KP_MKOUT_1 MFP_CFG_LPM(GPIO122, AF1, DRIVE_HIGH) | ||
4943 | +#define GPIO123_KP_MKOUT_2 MFP_CFG_LPM(GPIO123, AF1, DRIVE_HIGH) | ||
4944 | +#define GPIO124_KP_MKOUT_3 MFP_CFG_LPM(GPIO124, AF1, DRIVE_HIGH) | ||
4945 | +#define GPIO125_KP_MKOUT_4 MFP_CFG_LPM(GPIO125, AF1, DRIVE_HIGH) | ||
4946 | +#define GPIO126_KP_MKOUT_5 MFP_CFG_LPM(GPIO126, AF1, DRIVE_HIGH) | ||
4947 | +#define GPIO127_KP_MKOUT_6 MFP_CFG_LPM(GPIO127, AF1, DRIVE_HIGH) | ||
4948 | +#define GPIO5_2_KP_MKOUT_7 MFP_CFG_LPM(GPIO5_2, AF1, DRIVE_HIGH) | ||
4949 | + | ||
4950 | +/* LCD */ | ||
4951 | +#define GPIO6_2_LCD_LDD_0 MFP_CFG_DRV(GPIO6_2, AF1, DS01X) | ||
4952 | +#define GPIO7_2_LCD_LDD_1 MFP_CFG_DRV(GPIO7_2, AF1, DS01X) | ||
4953 | +#define GPIO8_2_LCD_LDD_2 MFP_CFG_DRV(GPIO8_2, AF1, DS01X) | ||
4954 | +#define GPIO9_2_LCD_LDD_3 MFP_CFG_DRV(GPIO9_2, AF1, DS01X) | ||
4955 | +#define GPIO10_2_LCD_LDD_4 MFP_CFG_DRV(GPIO10_2, AF1, DS01X) | ||
4956 | +#define GPIO11_2_LCD_LDD_5 MFP_CFG_DRV(GPIO11_2, AF1, DS01X) | ||
4957 | +#define GPIO12_2_LCD_LDD_6 MFP_CFG_DRV(GPIO12_2, AF1, DS01X) | ||
4958 | +#define GPIO13_2_LCD_LDD_7 MFP_CFG_DRV(GPIO13_2, AF1, DS01X) | ||
4959 | +#define GPIO63_LCD_LDD_8 MFP_CFG_DRV(GPIO63, AF1, DS01X) | ||
4960 | +#define GPIO64_LCD_LDD_9 MFP_CFG_DRV(GPIO64, AF1, DS01X) | ||
4961 | +#define GPIO65_LCD_LDD_10 MFP_CFG_DRV(GPIO65, AF1, DS01X) | ||
4962 | +#define GPIO66_LCD_LDD_11 MFP_CFG_DRV(GPIO66, AF1, DS01X) | ||
4963 | +#define GPIO67_LCD_LDD_12 MFP_CFG_DRV(GPIO67, AF1, DS01X) | ||
4964 | +#define GPIO68_LCD_LDD_13 MFP_CFG_DRV(GPIO68, AF1, DS01X) | ||
4965 | +#define GPIO69_LCD_LDD_14 MFP_CFG_DRV(GPIO69, AF1, DS01X) | ||
4966 | +#define GPIO70_LCD_LDD_15 MFP_CFG_DRV(GPIO70, AF1, DS01X) | ||
4967 | +#define GPIO71_LCD_LDD_16 MFP_CFG_DRV(GPIO71, AF1, DS01X) | ||
4968 | +#define GPIO72_LCD_LDD_17 MFP_CFG_DRV(GPIO72, AF1, DS01X) | ||
4969 | +#define GPIO73_LCD_CS_N MFP_CFG_DRV(GPIO73, AF2, DS01X) | ||
4970 | +#define GPIO74_LCD_VSYNC MFP_CFG_DRV(GPIO74, AF2, DS01X) | ||
4971 | +#define GPIO14_2_LCD_FCLK MFP_CFG_DRV(GPIO14_2, AF1, DS01X) | ||
4972 | +#define GPIO15_2_LCD_LCLK MFP_CFG_DRV(GPIO15_2, AF1, DS01X) | ||
4973 | +#define GPIO16_2_LCD_PCLK MFP_CFG_DRV(GPIO16_2, AF1, DS01X) | ||
4974 | +#define GPIO17_2_LCD_BIAS MFP_CFG_DRV(GPIO17_2, AF1, DS01X) | ||
4975 | +#define GPIO64_LCD_VSYNC MFP_CFG_DRV(GPIO64, AF2, DS01X) | ||
4976 | +#define GPIO63_LCD_CS_N MFP_CFG_DRV(GPIO63, AF2, DS01X) | ||
4977 | + | ||
4978 | +#define GPIO6_2_MLCD_DD_0 MFP_CFG_DRV(GPIO6_2, AF7, DS08X) | ||
4979 | +#define GPIO7_2_MLCD_DD_1 MFP_CFG_DRV(GPIO7_2, AF7, DS08X) | ||
4980 | +#define GPIO8_2_MLCD_DD_2 MFP_CFG_DRV(GPIO8_2, AF7, DS08X) | ||
4981 | +#define GPIO9_2_MLCD_DD_3 MFP_CFG_DRV(GPIO9_2, AF7, DS08X) | ||
4982 | +#define GPIO10_2_MLCD_DD_4 MFP_CFG_DRV(GPIO10_2, AF7, DS08X) | ||
4983 | +#define GPIO11_2_MLCD_DD_5 MFP_CFG_DRV(GPIO11_2, AF7, DS08X) | ||
4984 | +#define GPIO12_2_MLCD_DD_6 MFP_CFG_DRV(GPIO12_2, AF7, DS08X) | ||
4985 | +#define GPIO13_2_MLCD_DD_7 MFP_CFG_DRV(GPIO13_2, AF7, DS08X) | ||
4986 | +#define GPIO63_MLCD_DD_8 MFP_CFG_DRV(GPIO63, AF7, DS08X) | ||
4987 | +#define GPIO64_MLCD_DD_9 MFP_CFG_DRV(GPIO64, AF7, DS08X) | ||
4988 | +#define GPIO65_MLCD_DD_10 MFP_CFG_DRV(GPIO65, AF7, DS08X) | ||
4989 | +#define GPIO66_MLCD_DD_11 MFP_CFG_DRV(GPIO66, AF7, DS08X) | ||
4990 | +#define GPIO67_MLCD_DD_12 MFP_CFG_DRV(GPIO67, AF7, DS08X) | ||
4991 | +#define GPIO68_MLCD_DD_13 MFP_CFG_DRV(GPIO68, AF7, DS08X) | ||
4992 | +#define GPIO69_MLCD_DD_14 MFP_CFG_DRV(GPIO69, AF7, DS08X) | ||
4993 | +#define GPIO70_MLCD_DD_15 MFP_CFG_DRV(GPIO70, AF7, DS08X) | ||
4994 | +#define GPIO71_MLCD_DD_16 MFP_CFG_DRV(GPIO71, AF7, DS08X) | ||
4995 | +#define GPIO72_MLCD_DD_17 MFP_CFG_DRV(GPIO72, AF7, DS08X) | ||
4996 | +#define GPIO73_MLCD_CS MFP_CFG_DRV(GPIO73, AF7, DS08X) | ||
4997 | +#define GPIO74_MLCD_VSYNC MFP_CFG_DRV(GPIO74, AF7, DS08X) | ||
4998 | +#define GPIO14_2_MLCD_FCLK MFP_CFG_DRV(GPIO14_2, AF7, DS08X) | ||
4999 | +#define GPIO15_2_MLCD_LCLK MFP_CFG_DRV(GPIO15_2, AF7, DS08X) | ||
5000 | +#define GPIO16_2_MLCD_PCLK MFP_CFG_DRV(GPIO16_2, AF7, DS08X) | ||
5001 | +#define GPIO17_2_MLCD_BIAS MFP_CFG_DRV(GPIO17_2, AF7, DS08X) | ||
5002 | + | ||
5003 | +/* MMC1 */ | ||
5004 | +#define GPIO9_MMC1_CMD MFP_CFG_LPM(GPIO9, AF4, DRIVE_HIGH) | ||
5005 | +#define GPIO22_MMC1_CLK MFP_CFG_LPM(GPIO22, AF4, DRIVE_HIGH) | ||
5006 | +#define GPIO23_MMC1_CMD MFP_CFG_LPM(GPIO23, AF4, DRIVE_HIGH) | ||
5007 | +#define GPIO30_MMC1_CLK MFP_CFG_LPM(GPIO30, AF4, DRIVE_HIGH) | ||
5008 | +#define GPIO31_MMC1_CMD MFP_CFG_LPM(GPIO31, AF4, DRIVE_HIGH) | ||
5009 | +#define GPIO5_MMC1_DAT0 MFP_CFG_LPM(GPIO5, AF4, DRIVE_HIGH) | ||
5010 | +#define GPIO6_MMC1_DAT1 MFP_CFG_LPM(GPIO6, AF4, DRIVE_HIGH) | ||
5011 | +#define GPIO7_MMC1_DAT2 MFP_CFG_LPM(GPIO7, AF4, DRIVE_HIGH) | ||
5012 | +#define GPIO8_MMC1_DAT3 MFP_CFG_LPM(GPIO8, AF4, DRIVE_HIGH) | ||
5013 | +#define GPIO18_MMC1_DAT0 MFP_CFG_LPM(GPIO18, AF4, DRIVE_HIGH) | ||
5014 | +#define GPIO19_MMC1_DAT1 MFP_CFG_LPM(GPIO19, AF4, DRIVE_HIGH) | ||
5015 | +#define GPIO20_MMC1_DAT2 MFP_CFG_LPM(GPIO20, AF4, DRIVE_HIGH) | ||
5016 | +#define GPIO21_MMC1_DAT3 MFP_CFG_LPM(GPIO21, AF4, DRIVE_HIGH) | ||
5017 | + | ||
5018 | +#define GPIO28_MMC2_CLK MFP_CFG_LPM(GPIO28, AF4, PULL_HIGH) | ||
5019 | +#define GPIO29_MMC2_CMD MFP_CFG_LPM(GPIO29, AF4, PULL_HIGH) | ||
5020 | +#define GPIO30_MMC2_CLK MFP_CFG_LPM(GPIO30, AF3, PULL_HIGH) | ||
5021 | +#define GPIO31_MMC2_CMD MFP_CFG_LPM(GPIO31, AF3, PULL_HIGH) | ||
5022 | +#define GPIO79_MMC2_CLK MFP_CFG_LPM(GPIO79, AF4, PULL_HIGH) | ||
5023 | +#define GPIO80_MMC2_CMD MFP_CFG_LPM(GPIO80, AF4, PULL_HIGH) | ||
5024 | + | ||
5025 | +#define GPIO5_MMC2_DAT0 MFP_CFG_LPM(GPIO5, AF2, PULL_HIGH) | ||
5026 | +#define GPIO6_MMC2_DAT1 MFP_CFG_LPM(GPIO6, AF2, PULL_HIGH) | ||
5027 | +#define GPIO7_MMC2_DAT2 MFP_CFG_LPM(GPIO7, AF2, PULL_HIGH) | ||
5028 | +#define GPIO8_MMC2_DAT3 MFP_CFG_LPM(GPIO8, AF2, PULL_HIGH) | ||
5029 | +#define GPIO24_MMC2_DAT0 MFP_CFG_LPM(GPIO24, AF4, PULL_HIGH) | ||
5030 | +#define GPIO75_MMC2_DAT0 MFP_CFG_LPM(GPIO75, AF4, PULL_HIGH) | ||
5031 | +#define GPIO25_MMC2_DAT1 MFP_CFG_LPM(GPIO25, AF4, PULL_HIGH) | ||
5032 | +#define GPIO76_MMC2_DAT1 MFP_CFG_LPM(GPIO76, AF4, PULL_HIGH) | ||
5033 | +#define GPIO26_MMC2_DAT2 MFP_CFG_LPM(GPIO26, AF4, PULL_HIGH) | ||
5034 | +#define GPIO77_MMC2_DAT2 MFP_CFG_LPM(GPIO77, AF4, PULL_HIGH) | ||
5035 | +#define GPIO27_MMC2_DAT3 MFP_CFG_LPM(GPIO27, AF4, PULL_HIGH) | ||
5036 | +#define GPIO78_MMC2_DAT3 MFP_CFG_LPM(GPIO78, AF4, PULL_HIGH) | ||
5037 | + | ||
5038 | +/* 1-Wire */ | ||
5039 | +#define GPIO14_ONE_WIRE MFP_CFG_LPM(GPIO14, AF5, FLOAT) | ||
5040 | +#define GPIO0_2_ONE_WIRE MFP_CFG_LPM(GPIO0_2, AF2, FLOAT) | ||
5041 | + | ||
5042 | +/* SSP1 */ | ||
5043 | +#define GPIO87_SSP1_EXTCLK MFP_CFG(GPIO87, AF1) | ||
5044 | +#define GPIO88_SSP1_SYSCLK MFP_CFG(GPIO88, AF1) | ||
5045 | +#define GPIO83_SSP1_SCLK MFP_CFG(GPIO83, AF1) | ||
5046 | +#define GPIO84_SSP1_SFRM MFP_CFG(GPIO84, AF1) | ||
5047 | +#define GPIO85_SSP1_RXD MFP_CFG(GPIO85, AF6) | ||
5048 | +#define GPIO85_SSP1_TXD MFP_CFG(GPIO85, AF1) | ||
5049 | +#define GPIO86_SSP1_RXD MFP_CFG(GPIO86, AF1) | ||
5050 | +#define GPIO86_SSP1_TXD MFP_CFG(GPIO86, AF6) | ||
5051 | + | ||
5052 | +/* SSP2 */ | ||
5053 | +#define GPIO39_SSP2_EXTCLK MFP_CFG(GPIO39, AF2) | ||
5054 | +#define GPIO40_SSP2_SYSCLK MFP_CFG(GPIO40, AF2) | ||
5055 | +#define GPIO12_SSP2_SCLK MFP_CFG(GPIO12, AF2) | ||
5056 | +#define GPIO35_SSP2_SCLK MFP_CFG(GPIO35, AF2) | ||
5057 | +#define GPIO36_SSP2_SFRM MFP_CFG(GPIO36, AF2) | ||
5058 | +#define GPIO37_SSP2_RXD MFP_CFG(GPIO37, AF5) | ||
5059 | +#define GPIO37_SSP2_TXD MFP_CFG(GPIO37, AF2) | ||
5060 | +#define GPIO38_SSP2_RXD MFP_CFG(GPIO38, AF2) | ||
5061 | +#define GPIO38_SSP2_TXD MFP_CFG(GPIO38, AF5) | ||
5062 | + | ||
5063 | +#define GPIO69_SSP3_SCLK MFP_CFG(GPIO69, AF2, DS08X, FLOAT) | ||
5064 | +#define GPIO70_SSP3_FRM MFP_CFG(GPIO70, AF2, DS08X, DRIVE_LOW) | ||
5065 | +#define GPIO89_SSP3_SCLK MFP_CFG(GPIO89, AF1, DS08X, FLOAT) | ||
5066 | +#define GPIO90_SSP3_FRM MFP_CFG(GPIO90, AF1, DS08X, DRIVE_LOW) | ||
5067 | +#define GPIO71_SSP3_RXD MFP_CFG_X(GPIO71, AF5, DS08X, FLOAT) | ||
5068 | +#define GPIO71_SSP3_TXD MFP_CFG_X(GPIO71, AF2, DS08X, DRIVE_LOW) | ||
5069 | +#define GPIO72_SSP3_RXD MFP_CFG_X(GPIO72, AF2, DS08X, FLOAT) | ||
5070 | +#define GPIO72_SSP3_TXD MFP_CFG_X(GPIO72, AF5, DS08X, DRIVE_LOW) | ||
5071 | +#define GPIO91_SSP3_RXD MFP_CFG_X(GPIO91, AF5, DS08X, FLOAT) | ||
5072 | +#define GPIO91_SSP3_TXD MFP_CFG_X(GPIO91, AF1, DS08X, DRIVE_LOW) | ||
5073 | +#define GPIO92_SSP3_RXD MFP_CFG_X(GPIO92, AF1, DS08X, FLOAT) | ||
5074 | +#define GPIO92_SSP3_TXD MFP_CFG_X(GPIO92, AF5, DS08X, DRIVE_LOW) | ||
5075 | + | ||
5076 | +#define GPIO93_SSP4_SCLK MFP_CFG_LPM(GPIO93, AF1, PULL_HIGH) | ||
5077 | +#define GPIO94_SSP4_FRM MFP_CFG_LPM(GPIO94, AF1, PULL_HIGH) | ||
5078 | +#define GPIO94_SSP4_RXD MFP_CFG_LPM(GPIO94, AF5, PULL_HIGH) | ||
5079 | +#define GPIO95_SSP4_RXD MFP_CFG_LPM(GPIO95, AF5, PULL_HIGH) | ||
5080 | +#define GPIO95_SSP4_TXD MFP_CFG_LPM(GPIO95, AF1, PULL_HIGH) | ||
5081 | +#define GPIO96_SSP4_RXD MFP_CFG_LPM(GPIO96, AF1, PULL_HIGH) | ||
5082 | +#define GPIO96_SSP4_TXD MFP_CFG_LPM(GPIO96, AF5, PULL_HIGH) | ||
5083 | + | ||
5084 | +/* UART1 */ | ||
5085 | +#define GPIO41_UART1_RXD MFP_CFG_LPM(GPIO41, AF2, FLOAT) | ||
5086 | +#define GPIO41_UART1_TXD MFP_CFG_LPM(GPIO41, AF4, FLOAT) | ||
5087 | +#define GPIO42_UART1_RXD MFP_CFG_LPM(GPIO42, AF4, FLOAT) | ||
5088 | +#define GPIO42_UART1_TXD MFP_CFG_LPM(GPIO42, AF2, FLOAT) | ||
5089 | +#define GPIO97_UART1_RXD MFP_CFG_LPM(GPIO97, AF1, FLOAT) | ||
5090 | +#define GPIO97_UART1_TXD MFP_CFG_LPM(GPIO97, AF6, FLOAT) | ||
5091 | +#define GPIO98_UART1_RXD MFP_CFG_LPM(GPIO98, AF6, FLOAT) | ||
5092 | +#define GPIO98_UART1_TXD MFP_CFG_LPM(GPIO98, AF1, FLOAT) | ||
5093 | +#define GPIO43_UART1_CTS MFP_CFG_LPM(GPIO43, AF2, FLOAT) | ||
5094 | +#define GPIO43_UART1_RTS MFP_CFG_LPM(GPIO43, AF4, FLOAT) | ||
5095 | +#define GPIO48_UART1_CTS MFP_CFG_LPM(GPIO48, AF4, FLOAT) | ||
5096 | +#define GPIO48_UART1_RTS MFP_CFG_LPM(GPIO48, AF2, FLOAT) | ||
5097 | +#define GPIO99_UART1_CTS MFP_CFG_LPM(GPIO99, AF1, FLOAT) | ||
5098 | +#define GPIO99_UART1_RTS MFP_CFG_LPM(GPIO99, AF6, FLOAT) | ||
5099 | +#define GPIO104_UART1_CTS MFP_CFG_LPM(GPIO104, AF6, FLOAT) | ||
5100 | +#define GPIO104_UART1_RTS MFP_CFG_LPM(GPIO104, AF1, FLOAT) | ||
5101 | +#define GPIO45_UART1_DTR MFP_CFG_LPM(GPIO45, AF4, FLOAT) | ||
5102 | +#define GPIO45_UART1_DSR MFP_CFG_LPM(GPIO45, AF2, FLOAT) | ||
5103 | +#define GPIO47_UART1_DTR MFP_CFG_LPM(GPIO47, AF2, FLOAT) | ||
5104 | +#define GPIO47_UART1_DSR MFP_CFG_LPM(GPIO47, AF4, FLOAT) | ||
5105 | +#define GPIO101_UART1_DTR MFP_CFG_LPM(GPIO101, AF6, FLOAT) | ||
5106 | +#define GPIO101_UART1_DSR MFP_CFG_LPM(GPIO101, AF1, FLOAT) | ||
5107 | +#define GPIO103_UART1_DTR MFP_CFG_LPM(GPIO103, AF1, FLOAT) | ||
5108 | +#define GPIO103_UART1_DSR MFP_CFG_LPM(GPIO103, AF6, FLOAT) | ||
5109 | +#define GPIO44_UART1_DCD MFP_CFG_LPM(GPIO44, AF2, FLOAT) | ||
5110 | +#define GPIO100_UART1_DCD MFP_CFG_LPM(GPIO100, AF1, FLOAT) | ||
5111 | +#define GPIO46_UART1_RI MFP_CFG_LPM(GPIO46, AF2, FLOAT) | ||
5112 | +#define GPIO102_UART1_RI MFP_CFG_LPM(GPIO102, AF1, FLOAT) | ||
5113 | + | ||
5114 | +/* UART2 */ | ||
5115 | +#define GPIO109_UART2_CTS MFP_CFG_LPM(GPIO109, AF3, FLOAT) | ||
5116 | +#define GPIO109_UART2_RTS MFP_CFG_LPM(GPIO109, AF1, FLOAT) | ||
5117 | +#define GPIO112_UART2_CTS MFP_CFG_LPM(GPIO112, AF1, FLOAT) | ||
5118 | +#define GPIO112_UART2_RTS MFP_CFG_LPM(GPIO112, AF3, FLOAT) | ||
5119 | +#define GPIO110_UART2_RXD MFP_CFG_LPM(GPIO110, AF1, FLOAT) | ||
5120 | +#define GPIO110_UART2_TXD MFP_CFG_LPM(GPIO110, AF3, FLOAT) | ||
5121 | +#define GPIO111_UART2_RXD MFP_CFG_LPM(GPIO111, AF3, FLOAT) | ||
5122 | +#define GPIO111_UART2_TXD MFP_CFG_LPM(GPIO111, AF1, FLOAT) | ||
5123 | + | ||
5124 | +/* UART3 */ | ||
5125 | +#define GPIO89_UART3_CTS MFP_CFG_LPM(GPIO89, AF2, FLOAT) | ||
5126 | +#define GPIO89_UART3_RTS MFP_CFG_LPM(GPIO89, AF4, FLOAT) | ||
5127 | +#define GPIO90_UART3_CTS MFP_CFG_LPM(GPIO90, AF4, FLOAT) | ||
5128 | +#define GPIO90_UART3_RTS MFP_CFG_LPM(GPIO90, AF2, FLOAT) | ||
5129 | +#define GPIO105_UART3_CTS MFP_CFG_LPM(GPIO105, AF1, FLOAT) | ||
5130 | +#define GPIO105_UART3_RTS MFP_CFG_LPM(GPIO105, AF3, FLOAT) | ||
5131 | +#define GPIO106_UART3_CTS MFP_CFG_LPM(GPIO106, AF3, FLOAT) | ||
5132 | +#define GPIO106_UART3_RTS MFP_CFG_LPM(GPIO106, AF1, FLOAT) | ||
5133 | +#define GPIO30_UART3_RXD MFP_CFG_LPM(GPIO30, AF2, FLOAT) | ||
5134 | +#define GPIO30_UART3_TXD MFP_CFG_LPM(GPIO30, AF6, FLOAT) | ||
5135 | +#define GPIO31_UART3_RXD MFP_CFG_LPM(GPIO31, AF6, FLOAT) | ||
5136 | +#define GPIO31_UART3_TXD MFP_CFG_LPM(GPIO31, AF2, FLOAT) | ||
5137 | +#define GPIO91_UART3_RXD MFP_CFG_LPM(GPIO91, AF4, FLOAT) | ||
5138 | +#define GPIO91_UART3_TXD MFP_CFG_LPM(GPIO91, AF2, FLOAT) | ||
5139 | +#define GPIO92_UART3_RXD MFP_CFG_LPM(GPIO92, AF2, FLOAT) | ||
5140 | +#define GPIO92_UART3_TXD MFP_CFG_LPM(GPIO92, AF4, FLOAT) | ||
5141 | +#define GPIO107_UART3_RXD MFP_CFG_LPM(GPIO107, AF3, FLOAT) | ||
5142 | +#define GPIO107_UART3_TXD MFP_CFG_LPM(GPIO107, AF1, FLOAT) | ||
5143 | +#define GPIO108_UART3_RXD MFP_CFG_LPM(GPIO108, AF1, FLOAT) | ||
5144 | +#define GPIO108_UART3_TXD MFP_CFG_LPM(GPIO108, AF3, FLOAT) | ||
5145 | + | ||
5146 | + | ||
5147 | +/* USB 2.0 UTMI */ | ||
5148 | +#define GPIO10_UTM_CLK MFP_CFG(GPIO10, AF1) | ||
5149 | +#define GPIO36_U2D_RXERROR MFP_CFG(GPIO36, AF3) | ||
5150 | +#define GPIO60_U2D_RXERROR MFP_CFG(GPIO60, AF1) | ||
5151 | +#define GPIO87_U2D_RXERROR MFP_CFG(GPIO87, AF5) | ||
5152 | +#define GPIO34_UTM_RXVALID MFP_CFG(GPIO34, AF3) | ||
5153 | +#define GPIO58_UTM_RXVALID MFP_CFG(GPIO58, AF2) | ||
5154 | +#define GPIO85_UTM_RXVALID MFP_CFG(GPIO85, AF5) | ||
5155 | +#define GPIO35_UTM_RXACTIVE MFP_CFG(GPIO35, AF3) | ||
5156 | +#define GPIO59_UTM_RXACTIVE MFP_CFG(GPIO59, AF1) | ||
5157 | +#define GPIO86_UTM_RXACTIVE MFP_CFG(GPIO86, AF5) | ||
5158 | +#define GPIO73_UTM_TXREADY MFP_CFG(GPIO73, AF1) | ||
5159 | +#define GPIO68_UTM_LINESTATE_0 MFP_CFG(GPIO68, AF3) | ||
5160 | +#define GPIO90_UTM_LINESTATE_0 MFP_CFG(GPIO90, AF3) | ||
5161 | +#define GPIO102_UTM_LINESTATE_0 MFP_CFG(GPIO102, AF3) | ||
5162 | +#define GPIO107_UTM_LINESTATE_0 MFP_CFG(GPIO107, AF4) | ||
5163 | +#define GPIO69_UTM_LINESTATE_1 MFP_CFG(GPIO69, AF3) | ||
5164 | +#define GPIO91_UTM_LINESTATE_1 MFP_CFG(GPIO91, AF3) | ||
5165 | +#define GPIO103_UTM_LINESTATE_1 MFP_CFG(GPIO103, AF3) | ||
5166 | + | ||
5167 | +#define GPIO41_U2D_PHYDATA_0 MFP_CFG(GPIO41, AF3) | ||
5168 | +#define GPIO42_U2D_PHYDATA_1 MFP_CFG(GPIO42, AF3) | ||
5169 | +#define GPIO43_U2D_PHYDATA_2 MFP_CFG(GPIO43, AF3) | ||
5170 | +#define GPIO44_U2D_PHYDATA_3 MFP_CFG(GPIO44, AF3) | ||
5171 | +#define GPIO45_U2D_PHYDATA_4 MFP_CFG(GPIO45, AF3) | ||
5172 | +#define GPIO46_U2D_PHYDATA_5 MFP_CFG(GPIO46, AF3) | ||
5173 | +#define GPIO47_U2D_PHYDATA_6 MFP_CFG(GPIO47, AF3) | ||
5174 | +#define GPIO48_U2D_PHYDATA_7 MFP_CFG(GPIO48, AF3) | ||
5175 | + | ||
5176 | +#define GPIO49_U2D_PHYDATA_0 MFP_CFG(GPIO49, AF3) | ||
5177 | +#define GPIO50_U2D_PHYDATA_1 MFP_CFG(GPIO50, AF3) | ||
5178 | +#define GPIO51_U2D_PHYDATA_2 MFP_CFG(GPIO51, AF3) | ||
5179 | +#define GPIO52_U2D_PHYDATA_3 MFP_CFG(GPIO52, AF3) | ||
5180 | +#define GPIO53_U2D_PHYDATA_4 MFP_CFG(GPIO53, AF3) | ||
5181 | +#define GPIO54_U2D_PHYDATA_5 MFP_CFG(GPIO54, AF3) | ||
5182 | +#define GPIO55_U2D_PHYDATA_6 MFP_CFG(GPIO55, AF3) | ||
5183 | +#define GPIO56_U2D_PHYDATA_7 MFP_CFG(GPIO56, AF3) | ||
5184 | + | ||
5185 | +#define GPIO37_U2D_OPMODE0 MFP_CFG(GPIO37, AF4) | ||
5186 | +#define GPIO61_U2D_OPMODE0 MFP_CFG(GPIO61, AF2) | ||
5187 | +#define GPIO88_U2D_OPMODE0 MFP_CFG(GPIO88, AF7) | ||
5188 | + | ||
5189 | +#define GPIO38_U2D_OPMODE1 MFP_CFG(GPIO38, AF4) | ||
5190 | +#define GPIO62_U2D_OPMODE1 MFP_CFG(GPIO62, AF2) | ||
5191 | +#define GPIO104_U2D_OPMODE1 MFP_CFG(GPIO104, AF4) | ||
5192 | +#define GPIO108_U2D_OPMODE1 MFP_CFG(GPIO108, AF5) | ||
5193 | + | ||
5194 | +#define GPIO74_U2D_RESET MFP_CFG(GPIO74, AF1) | ||
5195 | +#define GPIO93_U2D_RESET MFP_CFG(GPIO93, AF2) | ||
5196 | +#define GPIO98_U2D_RESET MFP_CFG(GPIO98, AF3) | ||
5197 | + | ||
5198 | +#define GPIO67_U2D_SUSPEND MFP_CFG(GPIO67, AF3) | ||
5199 | +#define GPIO96_U2D_SUSPEND MFP_CFG(GPIO96, AF2) | ||
5200 | +#define GPIO101_U2D_SUSPEND MFP_CFG(GPIO101, AF3) | ||
5201 | + | ||
5202 | +#define GPIO66_U2D_TERM_SEL MFP_CFG(GPIO66, AF5) | ||
5203 | +#define GPIO95_U2D_TERM_SEL MFP_CFG(GPIO95, AF3) | ||
5204 | +#define GPIO97_U2D_TERM_SEL MFP_CFG(GPIO97, AF7) | ||
5205 | +#define GPIO100_U2D_TERM_SEL MFP_CFG(GPIO100, AF5) | ||
5206 | + | ||
5207 | +#define GPIO39_U2D_TXVALID MFP_CFG(GPIO39, AF4) | ||
5208 | +#define GPIO70_U2D_TXVALID MFP_CFG(GPIO70, AF5) | ||
5209 | +#define GPIO83_U2D_TXVALID MFP_CFG(GPIO83, AF7) | ||
5210 | + | ||
5211 | +#define GPIO65_U2D_XCVR_SEL MFP_CFG(GPIO65, AF5) | ||
5212 | +#define GPIO94_U2D_XCVR_SEL MFP_CFG(GPIO94, AF3) | ||
5213 | +#define GPIO99_U2D_XCVR_SEL MFP_CFG(GPIO99, AF5) | ||
5214 | + | ||
5215 | +/* USB Host 1.1 */ | ||
5216 | +#define GPIO2_2_USBH_PEN MFP_CFG(GPIO2_2, AF1) | ||
5217 | +#define GPIO3_2_USBH_PWR MFP_CFG(GPIO3_2, AF1) | ||
5218 | + | ||
5219 | +/* USB P2 */ | ||
5220 | +#define GPIO97_USB_P2_2 MFP_CFG(GPIO97, AF2) | ||
5221 | +#define GPIO97_USB_P2_6 MFP_CFG(GPIO97, AF4) | ||
5222 | +#define GPIO98_USB_P2_2 MFP_CFG(GPIO98, AF4) | ||
5223 | +#define GPIO98_USB_P2_6 MFP_CFG(GPIO98, AF2) | ||
5224 | +#define GPIO99_USB_P2_1 MFP_CFG(GPIO99, AF2) | ||
5225 | +#define GPIO100_USB_P2_4 MFP_CFG(GPIO100, AF2) | ||
5226 | +#define GPIO101_USB_P2_8 MFP_CFG(GPIO101, AF2) | ||
5227 | +#define GPIO102_USB_P2_3 MFP_CFG(GPIO102, AF2) | ||
5228 | +#define GPIO103_USB_P2_5 MFP_CFG(GPIO103, AF2) | ||
5229 | +#define GPIO104_USB_P2_7 MFP_CFG(GPIO104, AF2) | ||
5230 | + | ||
5231 | +/* USB P3 */ | ||
5232 | +#define GPIO75_USB_P3_1 MFP_CFG(GPIO75, AF2) | ||
5233 | +#define GPIO76_USB_P3_2 MFP_CFG(GPIO76, AF2) | ||
5234 | +#define GPIO77_USB_P3_3 MFP_CFG(GPIO77, AF2) | ||
5235 | +#define GPIO78_USB_P3_4 MFP_CFG(GPIO78, AF2) | ||
5236 | +#define GPIO79_USB_P3_5 MFP_CFG(GPIO79, AF2) | ||
5237 | +#define GPIO80_USB_P3_6 MFP_CFG(GPIO80, AF2) | ||
5238 | + | ||
5239 | +#define GPIO13_CHOUT0 MFP_CFG(GPIO13, AF6) | ||
5240 | +#define GPIO14_CHOUT1 MFP_CFG(GPIO14, AF6) | ||
5241 | + | ||
5242 | +#define GPIO2_RDY MFP_CFG(GPIO2, AF1) | ||
5243 | +#define GPIO5_NPIOR MFP_CFG(GPIO5, AF3) | ||
5244 | + | ||
5245 | +#define GPIO11_PWM0_OUT MFP_CFG(GPIO11, AF1) | ||
5246 | +#define GPIO12_PWM1_OUT MFP_CFG(GPIO12, AF1) | ||
5247 | +#define GPIO13_PWM2_OUT MFP_CFG(GPIO13, AF1) | ||
5248 | +#define GPIO14_PWM3_OUT MFP_CFG(GPIO14, AF1) | ||
5249 | + | ||
5250 | +#endif /* __ASM_ARCH_MFP_PXA320_H */ | ||
5251 | Index: linux-2.6.22/include/asm-arm/arch-pxa/mfp.h | ||
5252 | =================================================================== | ||
5253 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
5254 | +++ linux-2.6.22/include/asm-arm/arch-pxa/mfp.h 2007-09-24 20:57:20.000000000 +0200 | ||
5255 | @@ -0,0 +1,576 @@ | ||
5256 | +/* | ||
5257 | + * linux/include/asm-arm/arch-pxa/mfp.h | ||
5258 | + * | ||
5259 | + * Multi-Function Pin Definitions | ||
5260 | + * | ||
5261 | + * Copyright (C) 2007 Marvell International Ltd. | ||
5262 | + * | ||
5263 | + * 2007-8-21: eric miao <eric.y.miao@gmail.com> | ||
5264 | + * initial version | ||
5265 | + * | ||
5266 | + * This program is free software; you can redistribute it and/or modify | ||
5267 | + * it under the terms of the GNU General Public License version 2 as | ||
5268 | + * published by the Free Software Foundation. | ||
5269 | + */ | ||
5270 | + | ||
5271 | +#ifndef __ASM_ARCH_MFP_H | ||
5272 | +#define __ASM_ARCH_MFP_H | ||
5273 | + | ||
5274 | +#define MFPR_BASE (0x40e10000) | ||
5275 | +#define MFPR_SIZE (PAGE_SIZE) | ||
5276 | + | ||
5277 | +#define mfp_to_gpio(m) ((m) % 128) | ||
5278 | + | ||
5279 | +/* list of all the configurable MFP pins */ | ||
5280 | +enum { | ||
5281 | + MFP_PIN_INVALID = -1, | ||
5282 | + | ||
5283 | + MFP_PIN_GPIO0 = 0, | ||
5284 | + MFP_PIN_GPIO1, | ||
5285 | + MFP_PIN_GPIO2, | ||
5286 | + MFP_PIN_GPIO3, | ||
5287 | + MFP_PIN_GPIO4, | ||
5288 | + MFP_PIN_GPIO5, | ||
5289 | + MFP_PIN_GPIO6, | ||
5290 | + MFP_PIN_GPIO7, | ||
5291 | + MFP_PIN_GPIO8, | ||
5292 | + MFP_PIN_GPIO9, | ||
5293 | + MFP_PIN_GPIO10, | ||
5294 | + MFP_PIN_GPIO11, | ||
5295 | + MFP_PIN_GPIO12, | ||
5296 | + MFP_PIN_GPIO13, | ||
5297 | + MFP_PIN_GPIO14, | ||
5298 | + MFP_PIN_GPIO15, | ||
5299 | + MFP_PIN_GPIO16, | ||
5300 | + MFP_PIN_GPIO17, | ||
5301 | + MFP_PIN_GPIO18, | ||
5302 | + MFP_PIN_GPIO19, | ||
5303 | + MFP_PIN_GPIO20, | ||
5304 | + MFP_PIN_GPIO21, | ||
5305 | + MFP_PIN_GPIO22, | ||
5306 | + MFP_PIN_GPIO23, | ||
5307 | + MFP_PIN_GPIO24, | ||
5308 | + MFP_PIN_GPIO25, | ||
5309 | + MFP_PIN_GPIO26, | ||
5310 | + MFP_PIN_GPIO27, | ||
5311 | + MFP_PIN_GPIO28, | ||
5312 | + MFP_PIN_GPIO29, | ||
5313 | + MFP_PIN_GPIO30, | ||
5314 | + MFP_PIN_GPIO31, | ||
5315 | + MFP_PIN_GPIO32, | ||
5316 | + MFP_PIN_GPIO33, | ||
5317 | + MFP_PIN_GPIO34, | ||
5318 | + MFP_PIN_GPIO35, | ||
5319 | + MFP_PIN_GPIO36, | ||
5320 | + MFP_PIN_GPIO37, | ||
5321 | + MFP_PIN_GPIO38, | ||
5322 | + MFP_PIN_GPIO39, | ||
5323 | + MFP_PIN_GPIO40, | ||
5324 | + MFP_PIN_GPIO41, | ||
5325 | + MFP_PIN_GPIO42, | ||
5326 | + MFP_PIN_GPIO43, | ||
5327 | + MFP_PIN_GPIO44, | ||
5328 | + MFP_PIN_GPIO45, | ||
5329 | + MFP_PIN_GPIO46, | ||
5330 | + MFP_PIN_GPIO47, | ||
5331 | + MFP_PIN_GPIO48, | ||
5332 | + MFP_PIN_GPIO49, | ||
5333 | + MFP_PIN_GPIO50, | ||
5334 | + MFP_PIN_GPIO51, | ||
5335 | + MFP_PIN_GPIO52, | ||
5336 | + MFP_PIN_GPIO53, | ||
5337 | + MFP_PIN_GPIO54, | ||
5338 | + MFP_PIN_GPIO55, | ||
5339 | + MFP_PIN_GPIO56, | ||
5340 | + MFP_PIN_GPIO57, | ||
5341 | + MFP_PIN_GPIO58, | ||
5342 | + MFP_PIN_GPIO59, | ||
5343 | + MFP_PIN_GPIO60, | ||
5344 | + MFP_PIN_GPIO61, | ||
5345 | + MFP_PIN_GPIO62, | ||
5346 | + MFP_PIN_GPIO63, | ||
5347 | + MFP_PIN_GPIO64, | ||
5348 | + MFP_PIN_GPIO65, | ||
5349 | + MFP_PIN_GPIO66, | ||
5350 | + MFP_PIN_GPIO67, | ||
5351 | + MFP_PIN_GPIO68, | ||
5352 | + MFP_PIN_GPIO69, | ||
5353 | + MFP_PIN_GPIO70, | ||
5354 | + MFP_PIN_GPIO71, | ||
5355 | + MFP_PIN_GPIO72, | ||
5356 | + MFP_PIN_GPIO73, | ||
5357 | + MFP_PIN_GPIO74, | ||
5358 | + MFP_PIN_GPIO75, | ||
5359 | + MFP_PIN_GPIO76, | ||
5360 | + MFP_PIN_GPIO77, | ||
5361 | + MFP_PIN_GPIO78, | ||
5362 | + MFP_PIN_GPIO79, | ||
5363 | + MFP_PIN_GPIO80, | ||
5364 | + MFP_PIN_GPIO81, | ||
5365 | + MFP_PIN_GPIO82, | ||
5366 | + MFP_PIN_GPIO83, | ||
5367 | + MFP_PIN_GPIO84, | ||
5368 | + MFP_PIN_GPIO85, | ||
5369 | + MFP_PIN_GPIO86, | ||
5370 | + MFP_PIN_GPIO87, | ||
5371 | + MFP_PIN_GPIO88, | ||
5372 | + MFP_PIN_GPIO89, | ||
5373 | + MFP_PIN_GPIO90, | ||
5374 | + MFP_PIN_GPIO91, | ||
5375 | + MFP_PIN_GPIO92, | ||
5376 | + MFP_PIN_GPIO93, | ||
5377 | + MFP_PIN_GPIO94, | ||
5378 | + MFP_PIN_GPIO95, | ||
5379 | + MFP_PIN_GPIO96, | ||
5380 | + MFP_PIN_GPIO97, | ||
5381 | + MFP_PIN_GPIO98, | ||
5382 | + MFP_PIN_GPIO99, | ||
5383 | + MFP_PIN_GPIO100, | ||
5384 | + MFP_PIN_GPIO101, | ||
5385 | + MFP_PIN_GPIO102, | ||
5386 | + MFP_PIN_GPIO103, | ||
5387 | + MFP_PIN_GPIO104, | ||
5388 | + MFP_PIN_GPIO105, | ||
5389 | + MFP_PIN_GPIO106, | ||
5390 | + MFP_PIN_GPIO107, | ||
5391 | + MFP_PIN_GPIO108, | ||
5392 | + MFP_PIN_GPIO109, | ||
5393 | + MFP_PIN_GPIO110, | ||
5394 | + MFP_PIN_GPIO111, | ||
5395 | + MFP_PIN_GPIO112, | ||
5396 | + MFP_PIN_GPIO113, | ||
5397 | + MFP_PIN_GPIO114, | ||
5398 | + MFP_PIN_GPIO115, | ||
5399 | + MFP_PIN_GPIO116, | ||
5400 | + MFP_PIN_GPIO117, | ||
5401 | + MFP_PIN_GPIO118, | ||
5402 | + MFP_PIN_GPIO119, | ||
5403 | + MFP_PIN_GPIO120, | ||
5404 | + MFP_PIN_GPIO121, | ||
5405 | + MFP_PIN_GPIO122, | ||
5406 | + MFP_PIN_GPIO123, | ||
5407 | + MFP_PIN_GPIO124, | ||
5408 | + MFP_PIN_GPIO125, | ||
5409 | + MFP_PIN_GPIO126, | ||
5410 | + MFP_PIN_GPIO127, | ||
5411 | + MFP_PIN_GPIO0_2, | ||
5412 | + MFP_PIN_GPIO1_2, | ||
5413 | + MFP_PIN_GPIO2_2, | ||
5414 | + MFP_PIN_GPIO3_2, | ||
5415 | + MFP_PIN_GPIO4_2, | ||
5416 | + MFP_PIN_GPIO5_2, | ||
5417 | + MFP_PIN_GPIO6_2, | ||
5418 | + MFP_PIN_GPIO7_2, | ||
5419 | + MFP_PIN_GPIO8_2, | ||
5420 | + MFP_PIN_GPIO9_2, | ||
5421 | + MFP_PIN_GPIO10_2, | ||
5422 | + MFP_PIN_GPIO11_2, | ||
5423 | + MFP_PIN_GPIO12_2, | ||
5424 | + MFP_PIN_GPIO13_2, | ||
5425 | + MFP_PIN_GPIO14_2, | ||
5426 | + MFP_PIN_GPIO15_2, | ||
5427 | + MFP_PIN_GPIO16_2, | ||
5428 | + MFP_PIN_GPIO17_2, | ||
5429 | + | ||
5430 | + MFP_PIN_ULPI_STP, | ||
5431 | + MFP_PIN_ULPI_NXT, | ||
5432 | + MFP_PIN_ULPI_DIR, | ||
5433 | + | ||
5434 | + MFP_PIN_nXCVREN, | ||
5435 | + MFP_PIN_DF_CLE_nOE, | ||
5436 | + MFP_PIN_DF_nADV1_ALE, | ||
5437 | + MFP_PIN_DF_SCLK_E, | ||
5438 | + MFP_PIN_DF_SCLK_S, | ||
5439 | + MFP_PIN_nBE0, | ||
5440 | + MFP_PIN_nBE1, | ||
5441 | + MFP_PIN_DF_nADV2_ALE, | ||
5442 | + MFP_PIN_DF_INT_RnB, | ||
5443 | + MFP_PIN_DF_nCS0, | ||
5444 | + MFP_PIN_DF_nCS1, | ||
5445 | + MFP_PIN_nLUA, | ||
5446 | + MFP_PIN_nLLA, | ||
5447 | + MFP_PIN_DF_nWE, | ||
5448 | + MFP_PIN_DF_ALE_nWE, | ||
5449 | + MFP_PIN_DF_nRE_nOE, | ||
5450 | + MFP_PIN_DF_ADDR0, | ||
5451 | + MFP_PIN_DF_ADDR1, | ||
5452 | + MFP_PIN_DF_ADDR2, | ||
5453 | + MFP_PIN_DF_ADDR3, | ||
5454 | + MFP_PIN_DF_IO0, | ||
5455 | + MFP_PIN_DF_IO1, | ||
5456 | + MFP_PIN_DF_IO2, | ||
5457 | + MFP_PIN_DF_IO3, | ||
5458 | + MFP_PIN_DF_IO4, | ||
5459 | + MFP_PIN_DF_IO5, | ||
5460 | + MFP_PIN_DF_IO6, | ||
5461 | + MFP_PIN_DF_IO7, | ||
5462 | + MFP_PIN_DF_IO8, | ||
5463 | + MFP_PIN_DF_IO9, | ||
5464 | + MFP_PIN_DF_IO10, | ||
5465 | + MFP_PIN_DF_IO11, | ||
5466 | + MFP_PIN_DF_IO12, | ||
5467 | + MFP_PIN_DF_IO13, | ||
5468 | + MFP_PIN_DF_IO14, | ||
5469 | + MFP_PIN_DF_IO15, | ||
5470 | + | ||
5471 | + MFP_PIN_MAX, | ||
5472 | +}; | ||
5473 | + | ||
5474 | +/* | ||
5475 | + * Table that determines the low power modes outputs, with actual settings | ||
5476 | + * used in parentheses for don't-care values. Except for the float output, | ||
5477 | + * the configured driven and pulled levels match, so if there is a need for | ||
5478 | + * non-LPM pulled output, the same configuration could probably be used. | ||
5479 | + * | ||
5480 | + * Output value sleep_oe_n sleep_data pullup_en pulldown_en pull_sel | ||
5481 | + * (bit 7) (bit 8) (bit 14d) (bit 13d) | ||
5482 | + * | ||
5483 | + * Drive 0 0 0 0 X (1) 0 | ||
5484 | + * Drive 1 0 1 X (1) 0 0 | ||
5485 | + * Pull hi (1) 1 X(1) 1 0 0 | ||
5486 | + * Pull lo (0) 1 X(0) 0 1 0 | ||
5487 | + * Z (float) 1 X(0) 0 0 0 | ||
5488 | + */ | ||
5489 | +#define MFP_LPM_DRIVE_LOW 0x8 | ||
5490 | +#define MFP_LPM_DRIVE_HIGH 0x6 | ||
5491 | +#define MFP_LPM_PULL_HIGH 0x7 | ||
5492 | +#define MFP_LPM_PULL_LOW 0x9 | ||
5493 | +#define MFP_LPM_FLOAT 0x1 | ||
5494 | +#define MFP_LPM_PULL_NEITHER 0x0 | ||
5495 | + | ||
5496 | +/* | ||
5497 | + * The pullup and pulldown state of the MFP pin is by default determined by | ||
5498 | + * selected alternate function. In case some buggy devices need to override | ||
5499 | + * this default behavior, pxa3xx_mfp_set_pull() can be invoked with one of | ||
5500 | + * the following definition as the parameter. | ||
5501 | + * | ||
5502 | + * Definition pull_sel pullup_en pulldown_en | ||
5503 | + * MFP_PULL_HIGH 1 1 0 | ||
5504 | + * MFP_PULL_LOW 1 0 1 | ||
5505 | + * MFP_PULL_BOTH 1 1 1 | ||
5506 | + * MFP_PULL_NONE 1 0 0 | ||
5507 | + * MFP_PULL_DEFAULT 0 X X | ||
5508 | + * | ||
5509 | + * NOTE: pxa3xx_mfp_set_pull() will modify the PULLUP_EN and PULLDOWN_EN | ||
5510 | + * bits, which will cause potential conflicts with the low power mode | ||
5511 | + * setting, device drivers should take care of this | ||
5512 | + */ | ||
5513 | +#define MFP_PULL_BOTH (0x7u) | ||
5514 | +#define MFP_PULL_HIGH (0x6u) | ||
5515 | +#define MFP_PULL_LOW (0x5u) | ||
5516 | +#define MFP_PULL_NONE (0x4u) | ||
5517 | +#define MFP_PULL_DEFAULT (0x0u) | ||
5518 | + | ||
5519 | +#define MFP_AF0 (0) | ||
5520 | +#define MFP_AF1 (1) | ||
5521 | +#define MFP_AF2 (2) | ||
5522 | +#define MFP_AF3 (3) | ||
5523 | +#define MFP_AF4 (4) | ||
5524 | +#define MFP_AF5 (5) | ||
5525 | +#define MFP_AF6 (6) | ||
5526 | +#define MFP_AF7 (7) | ||
5527 | + | ||
5528 | +#define MFP_DS01X (0) | ||
5529 | +#define MFP_DS02X (1) | ||
5530 | +#define MFP_DS03X (2) | ||
5531 | +#define MFP_DS04X (3) | ||
5532 | +#define MFP_DS06X (4) | ||
5533 | +#define MFP_DS08X (5) | ||
5534 | +#define MFP_DS10X (6) | ||
5535 | +#define MFP_DS12X (7) | ||
5536 | + | ||
5537 | +#define MFP_EDGE_BOTH 0x3 | ||
5538 | +#define MFP_EDGE_RISE 0x2 | ||
5539 | +#define MFP_EDGE_FALL 0x1 | ||
5540 | +#define MFP_EDGE_NONE 0x0 | ||
5541 | + | ||
5542 | +#define MFPR_AF_MASK 0x0007 | ||
5543 | +#define MFPR_DRV_MASK 0x1c00 | ||
5544 | +#define MFPR_RDH_MASK 0x0200 | ||
5545 | +#define MFPR_LPM_MASK 0xe180 | ||
5546 | +#define MFPR_PULL_MASK 0xe000 | ||
5547 | +#define MFPR_EDGE_MASK 0x0070 | ||
5548 | + | ||
5549 | +#define MFPR_ALT_OFFSET 0 | ||
5550 | +#define MFPR_ERE_OFFSET 4 | ||
5551 | +#define MFPR_EFE_OFFSET 5 | ||
5552 | +#define MFPR_EC_OFFSET 6 | ||
5553 | +#define MFPR_SON_OFFSET 7 | ||
5554 | +#define MFPR_SD_OFFSET 8 | ||
5555 | +#define MFPR_SS_OFFSET 9 | ||
5556 | +#define MFPR_DRV_OFFSET 10 | ||
5557 | +#define MFPR_PD_OFFSET 13 | ||
5558 | +#define MFPR_PU_OFFSET 14 | ||
5559 | +#define MFPR_PS_OFFSET 15 | ||
5560 | + | ||
5561 | +#define MFPR(af, drv, rdh, lpm, edge) \ | ||
5562 | + (((af) & 0x7) | (((drv) & 0x7) << 10) |\ | ||
5563 | + (((rdh) & 0x1) << 9) |\ | ||
5564 | + (((lpm) & 0x3) << 7) |\ | ||
5565 | + (((lpm) & 0x4) << 12)|\ | ||
5566 | + (((lpm) & 0x8) << 10)|\ | ||
5567 | + ((!(edge)) << 6) |\ | ||
5568 | + (((edge) & 0x1) << 5) |\ | ||
5569 | + (((edge) & 0x2) << 3)) | ||
5570 | + | ||
5571 | +/* | ||
5572 | + * a possible MFP configuration is represented by a 32-bit integer | ||
5573 | + * bit 0..15 - MFPR value (16-bit) | ||
5574 | + * bit 16..31 - mfp pin index (used to obtain the MFPR offset) | ||
5575 | + * | ||
5576 | + * to facilitate the definition, the following macros are provided | ||
5577 | + * | ||
5578 | + * MFPR_DEFAULT - default MFPR value, with | ||
5579 | + * alternate function = 0, | ||
5580 | + * drive strength = fast 1mA (MFP_DS01X) | ||
5581 | + * low power mode = default | ||
5582 | + * release dalay hold = false (RDH bit) | ||
5583 | + * edge detection = none | ||
5584 | + * | ||
5585 | + * MFP_CFG - default MFPR value with alternate function | ||
5586 | + * MFP_CFG_DRV - default MFPR value with alternate function and | ||
5587 | + * pin drive strength | ||
5588 | + * MFP_CFG_LPM - default MFPR value with alternate function and | ||
5589 | + * low power mode | ||
5590 | + * MFP_CFG_X - default MFPR value with alternate function, | ||
5591 | + * pin drive strength and low power mode | ||
5592 | + * | ||
5593 | + * use | ||
5594 | + * | ||
5595 | + * MFP_CFG_PIN - to get the MFP pin index | ||
5596 | + * MFP_CFG_VAL - to get the corresponding MFPR value | ||
5597 | + */ | ||
5598 | + | ||
5599 | +typedef uint32_t mfp_cfg_t; | ||
5600 | + | ||
5601 | +#define MFP_CFG_PIN(mfp_cfg) (((mfp_cfg) >> 16) & 0xffff) | ||
5602 | +#define MFP_CFG_VAL(mfp_cfg) ((mfp_cfg) & 0xffff) | ||
5603 | + | ||
5604 | +#define MFPR_DEFAULT (0x0000) | ||
5605 | + | ||
5606 | +#define MFP_CFG(pin, af) \ | ||
5607 | + ((MFP_PIN_##pin << 16) | MFPR_DEFAULT | (MFP_##af)) | ||
5608 | + | ||
5609 | +#define MFP_CFG_DRV(pin, af, drv) \ | ||
5610 | + ((MFP_PIN_##pin << 16) | MFPR_DEFAULT |\ | ||
5611 | + ((MFP_##drv) << 10) | (MFP_##af)) | ||
5612 | + | ||
5613 | +#define MFP_CFG_LPM(pin, af, lpm) \ | ||
5614 | + ((MFP_PIN_##pin << 16) | MFPR_DEFAULT | (MFP_##af) |\ | ||
5615 | + (((MFP_LPM_##lpm) & 0x3) << 7) |\ | ||
5616 | + (((MFP_LPM_##lpm) & 0x4) << 12) |\ | ||
5617 | + (((MFP_LPM_##lpm) & 0x8) << 10)) | ||
5618 | + | ||
5619 | +#define MFP_CFG_X(pin, af, drv, lpm) \ | ||
5620 | + ((MFP_PIN_##pin << 16) | MFPR_DEFAULT |\ | ||
5621 | + ((MFP_##drv) << 10) | (MFP_##af) |\ | ||
5622 | + (((MFP_LPM_##lpm) & 0x3) << 7) |\ | ||
5623 | + (((MFP_LPM_##lpm) & 0x4) << 12) |\ | ||
5624 | + (((MFP_LPM_##lpm) & 0x8) << 10)) | ||
5625 | + | ||
5626 | +/* common MFP configurations - processor specific ones defined | ||
5627 | + * in mfp-pxa3xx.h | ||
5628 | + */ | ||
5629 | +#define GPIO0_GPIO MFP_CFG(GPIO0, AF0) | ||
5630 | +#define GPIO1_GPIO MFP_CFG(GPIO1, AF0) | ||
5631 | +#define GPIO2_GPIO MFP_CFG(GPIO2, AF0) | ||
5632 | +#define GPIO3_GPIO MFP_CFG(GPIO3, AF0) | ||
5633 | +#define GPIO4_GPIO MFP_CFG(GPIO4, AF0) | ||
5634 | +#define GPIO5_GPIO MFP_CFG(GPIO5, AF0) | ||
5635 | +#define GPIO6_GPIO MFP_CFG(GPIO6, AF0) | ||
5636 | +#define GPIO7_GPIO MFP_CFG(GPIO7, AF0) | ||
5637 | +#define GPIO8_GPIO MFP_CFG(GPIO8, AF0) | ||
5638 | +#define GPIO9_GPIO MFP_CFG(GPIO9, AF0) | ||
5639 | +#define GPIO10_GPIO MFP_CFG(GPIO10, AF0) | ||
5640 | +#define GPIO11_GPIO MFP_CFG(GPIO11, AF0) | ||
5641 | +#define GPIO12_GPIO MFP_CFG(GPIO12, AF0) | ||
5642 | +#define GPIO13_GPIO MFP_CFG(GPIO13, AF0) | ||
5643 | +#define GPIO14_GPIO MFP_CFG(GPIO14, AF0) | ||
5644 | +#define GPIO15_GPIO MFP_CFG(GPIO15, AF0) | ||
5645 | +#define GPIO16_GPIO MFP_CFG(GPIO16, AF0) | ||
5646 | +#define GPIO17_GPIO MFP_CFG(GPIO17, AF0) | ||
5647 | +#define GPIO18_GPIO MFP_CFG(GPIO18, AF0) | ||
5648 | +#define GPIO19_GPIO MFP_CFG(GPIO19, AF0) | ||
5649 | +#define GPIO20_GPIO MFP_CFG(GPIO20, AF0) | ||
5650 | +#define GPIO21_GPIO MFP_CFG(GPIO21, AF0) | ||
5651 | +#define GPIO22_GPIO MFP_CFG(GPIO22, AF0) | ||
5652 | +#define GPIO23_GPIO MFP_CFG(GPIO23, AF0) | ||
5653 | +#define GPIO24_GPIO MFP_CFG(GPIO24, AF0) | ||
5654 | +#define GPIO25_GPIO MFP_CFG(GPIO25, AF0) | ||
5655 | +#define GPIO26_GPIO MFP_CFG(GPIO26, AF0) | ||
5656 | +#define GPIO27_GPIO MFP_CFG(GPIO27, AF0) | ||
5657 | +#define GPIO28_GPIO MFP_CFG(GPIO28, AF0) | ||
5658 | +#define GPIO29_GPIO MFP_CFG(GPIO29, AF0) | ||
5659 | +#define GPIO30_GPIO MFP_CFG(GPIO30, AF0) | ||
5660 | +#define GPIO31_GPIO MFP_CFG(GPIO31, AF0) | ||
5661 | +#define GPIO32_GPIO MFP_CFG(GPIO32, AF0) | ||
5662 | +#define GPIO33_GPIO MFP_CFG(GPIO33, AF0) | ||
5663 | +#define GPIO34_GPIO MFP_CFG(GPIO34, AF0) | ||
5664 | +#define GPIO35_GPIO MFP_CFG(GPIO35, AF0) | ||
5665 | +#define GPIO36_GPIO MFP_CFG(GPIO36, AF0) | ||
5666 | +#define GPIO37_GPIO MFP_CFG(GPIO37, AF0) | ||
5667 | +#define GPIO38_GPIO MFP_CFG(GPIO38, AF0) | ||
5668 | +#define GPIO39_GPIO MFP_CFG(GPIO39, AF0) | ||
5669 | +#define GPIO40_GPIO MFP_CFG(GPIO40, AF0) | ||
5670 | +#define GPIO41_GPIO MFP_CFG(GPIO41, AF0) | ||
5671 | +#define GPIO42_GPIO MFP_CFG(GPIO42, AF0) | ||
5672 | +#define GPIO43_GPIO MFP_CFG(GPIO43, AF0) | ||
5673 | +#define GPIO44_GPIO MFP_CFG(GPIO44, AF0) | ||
5674 | +#define GPIO45_GPIO MFP_CFG(GPIO45, AF0) | ||
5675 | + | ||
5676 | +#define GPIO47_GPIO MFP_CFG(GPIO47, AF0) | ||
5677 | +#define GPIO48_GPIO MFP_CFG(GPIO48, AF0) | ||
5678 | + | ||
5679 | +#define GPIO53_GPIO MFP_CFG(GPIO53, AF0) | ||
5680 | +#define GPIO54_GPIO MFP_CFG(GPIO54, AF0) | ||
5681 | +#define GPIO55_GPIO MFP_CFG(GPIO55, AF0) | ||
5682 | + | ||
5683 | +#define GPIO57_GPIO MFP_CFG(GPIO57, AF0) | ||
5684 | + | ||
5685 | +#define GPIO63_GPIO MFP_CFG(GPIO63, AF0) | ||
5686 | +#define GPIO64_GPIO MFP_CFG(GPIO64, AF0) | ||
5687 | +#define GPIO65_GPIO MFP_CFG(GPIO65, AF0) | ||
5688 | +#define GPIO66_GPIO MFP_CFG(GPIO66, AF0) | ||
5689 | +#define GPIO67_GPIO MFP_CFG(GPIO67, AF0) | ||
5690 | +#define GPIO68_GPIO MFP_CFG(GPIO68, AF0) | ||
5691 | +#define GPIO69_GPIO MFP_CFG(GPIO69, AF0) | ||
5692 | +#define GPIO70_GPIO MFP_CFG(GPIO70, AF0) | ||
5693 | +#define GPIO71_GPIO MFP_CFG(GPIO71, AF0) | ||
5694 | +#define GPIO72_GPIO MFP_CFG(GPIO72, AF0) | ||
5695 | +#define GPIO73_GPIO MFP_CFG(GPIO73, AF0) | ||
5696 | +#define GPIO74_GPIO MFP_CFG(GPIO74, AF0) | ||
5697 | +#define GPIO75_GPIO MFP_CFG(GPIO75, AF0) | ||
5698 | +#define GPIO76_GPIO MFP_CFG(GPIO76, AF0) | ||
5699 | +#define GPIO77_GPIO MFP_CFG(GPIO77, AF0) | ||
5700 | +#define GPIO78_GPIO MFP_CFG(GPIO78, AF0) | ||
5701 | +#define GPIO79_GPIO MFP_CFG(GPIO79, AF0) | ||
5702 | +#define GPIO80_GPIO MFP_CFG(GPIO80, AF0) | ||
5703 | +#define GPIO81_GPIO MFP_CFG(GPIO81, AF0) | ||
5704 | +#define GPIO82_GPIO MFP_CFG(GPIO82, AF0) | ||
5705 | +#define GPIO83_GPIO MFP_CFG(GPIO83, AF0) | ||
5706 | +#define GPIO84_GPIO MFP_CFG(GPIO84, AF0) | ||
5707 | +#define GPIO85_GPIO MFP_CFG(GPIO85, AF0) | ||
5708 | +#define GPIO86_GPIO MFP_CFG(GPIO86, AF0) | ||
5709 | +#define GPIO87_GPIO MFP_CFG(GPIO87, AF0) | ||
5710 | +#define GPIO88_GPIO MFP_CFG(GPIO88, AF0) | ||
5711 | +#define GPIO89_GPIO MFP_CFG(GPIO89, AF0) | ||
5712 | +#define GPIO90_GPIO MFP_CFG(GPIO90, AF0) | ||
5713 | +#define GPIO91_GPIO MFP_CFG(GPIO91, AF0) | ||
5714 | +#define GPIO92_GPIO MFP_CFG(GPIO92, AF0) | ||
5715 | +#define GPIO93_GPIO MFP_CFG(GPIO93, AF0) | ||
5716 | +#define GPIO94_GPIO MFP_CFG(GPIO94, AF0) | ||
5717 | +#define GPIO95_GPIO MFP_CFG(GPIO95, AF0) | ||
5718 | +#define GPIO96_GPIO MFP_CFG(GPIO96, AF0) | ||
5719 | +#define GPIO97_GPIO MFP_CFG(GPIO97, AF0) | ||
5720 | +#define GPIO98_GPIO MFP_CFG(GPIO98, AF0) | ||
5721 | +#define GPIO99_GPIO MFP_CFG(GPIO99, AF0) | ||
5722 | +#define GPIO100_GPIO MFP_CFG(GPIO100, AF0) | ||
5723 | +#define GPIO101_GPIO MFP_CFG(GPIO101, AF0) | ||
5724 | +#define GPIO102_GPIO MFP_CFG(GPIO102, AF0) | ||
5725 | +#define GPIO103_GPIO MFP_CFG(GPIO103, AF0) | ||
5726 | +#define GPIO104_GPIO MFP_CFG(GPIO104, AF0) | ||
5727 | +#define GPIO105_GPIO MFP_CFG(GPIO105, AF0) | ||
5728 | +#define GPIO106_GPIO MFP_CFG(GPIO106, AF0) | ||
5729 | +#define GPIO107_GPIO MFP_CFG(GPIO107, AF0) | ||
5730 | +#define GPIO108_GPIO MFP_CFG(GPIO108, AF0) | ||
5731 | +#define GPIO109_GPIO MFP_CFG(GPIO109, AF0) | ||
5732 | +#define GPIO110_GPIO MFP_CFG(GPIO110, AF0) | ||
5733 | +#define GPIO111_GPIO MFP_CFG(GPIO111, AF0) | ||
5734 | +#define GPIO112_GPIO MFP_CFG(GPIO112, AF0) | ||
5735 | +#define GPIO113_GPIO MFP_CFG(GPIO113, AF0) | ||
5736 | +#define GPIO114_GPIO MFP_CFG(GPIO114, AF0) | ||
5737 | +#define GPIO115_GPIO MFP_CFG(GPIO115, AF0) | ||
5738 | +#define GPIO116_GPIO MFP_CFG(GPIO116, AF0) | ||
5739 | +#define GPIO117_GPIO MFP_CFG(GPIO117, AF0) | ||
5740 | +#define GPIO118_GPIO MFP_CFG(GPIO118, AF0) | ||
5741 | +#define GPIO119_GPIO MFP_CFG(GPIO119, AF0) | ||
5742 | +#define GPIO120_GPIO MFP_CFG(GPIO120, AF0) | ||
5743 | +#define GPIO121_GPIO MFP_CFG(GPIO121, AF0) | ||
5744 | +#define GPIO122_GPIO MFP_CFG(GPIO122, AF0) | ||
5745 | +#define GPIO123_GPIO MFP_CFG(GPIO123, AF0) | ||
5746 | +#define GPIO124_GPIO MFP_CFG(GPIO124, AF0) | ||
5747 | +#define GPIO125_GPIO MFP_CFG(GPIO125, AF0) | ||
5748 | +#define GPIO126_GPIO MFP_CFG(GPIO126, AF0) | ||
5749 | +#define GPIO127_GPIO MFP_CFG(GPIO127, AF0) | ||
5750 | + | ||
5751 | +#define GPIO0_2_GPIO MFP_CFG(GPIO0_2, AF0) | ||
5752 | +#define GPIO1_2_GPIO MFP_CFG(GPIO1_2, AF0) | ||
5753 | +#define GPIO2_2_GPIO MFP_CFG(GPIO2_2, AF0) | ||
5754 | +#define GPIO3_2_GPIO MFP_CFG(GPIO3_2, AF0) | ||
5755 | +#define GPIO4_2_GPIO MFP_CFG(GPIO4_2, AF0) | ||
5756 | +#define GPIO5_2_GPIO MFP_CFG(GPIO5_2, AF0) | ||
5757 | +#define GPIO6_2_GPIO MFP_CFG(GPIO6_2, AF0) | ||
5758 | + | ||
5759 | +/* | ||
5760 | + * each MFP pin will have a MFPR register, since the offset of the | ||
5761 | + * register varies between processors, the processor specific code | ||
5762 | + * should initialize the pin offsets by pxa3xx_mfp_init_addr() | ||
5763 | + * | ||
5764 | + * pxa3xx_mfp_init_addr - accepts a table of "pxa3xx_mfp_addr_map" | ||
5765 | + * structure, which represents a range of MFP pins from "start" to | ||
5766 | + * "end", with the offset begining at "offset", to define a single | ||
5767 | + * pin, let "end" = -1 | ||
5768 | + * | ||
5769 | + * use | ||
5770 | + * | ||
5771 | + * MFP_ADDR_X() to define a range of pins | ||
5772 | + * MFP_ADDR() to define a single pin | ||
5773 | + * MFP_ADDR_END to signal the end of pin offset definitions | ||
5774 | + */ | ||
5775 | +struct pxa3xx_mfp_addr_map { | ||
5776 | + unsigned int start; | ||
5777 | + unsigned int end; | ||
5778 | + unsigned long offset; | ||
5779 | +}; | ||
5780 | + | ||
5781 | +#define MFP_ADDR_X(start, end, offset) \ | ||
5782 | + { MFP_PIN_##start, MFP_PIN_##end, offset } | ||
5783 | + | ||
5784 | +#define MFP_ADDR(pin, offset) \ | ||
5785 | + { MFP_PIN_##pin, -1, offset } | ||
5786 | + | ||
5787 | +#define MFP_ADDR_END { MFP_PIN_INVALID, 0 } | ||
5788 | + | ||
5789 | +struct pxa3xx_mfp_pin { | ||
5790 | + unsigned long mfpr_off; /* MFPRxx register offset */ | ||
5791 | + unsigned long mfpr_val; /* MFPRxx register value */ | ||
5792 | +}; | ||
5793 | + | ||
5794 | +/* | ||
5795 | + * pxa3xx_mfp_read()/pxa3xx_mfp_write() - for direct read/write access | ||
5796 | + * to the MFPR register | ||
5797 | + */ | ||
5798 | +unsigned long pxa3xx_mfp_read(int mfp); | ||
5799 | +void pxa3xx_mfp_write(int mfp, unsigned long mfpr_val); | ||
5800 | + | ||
5801 | +/* | ||
5802 | + * pxa3xx_mfp_set_afds - set MFP alternate function and drive strength | ||
5803 | + * pxa3xx_mfp_set_rdh - set MFP release delay hold on/off | ||
5804 | + * pxa3xx_mfp_set_lpm - set MFP low power mode state | ||
5805 | + * pxa3xx_mfp_set_edge - set MFP edge detection in low power mode | ||
5806 | + * | ||
5807 | + * use these functions to override/change the default configuration | ||
5808 | + * done by pxa3xx_mfp_set_config(s) | ||
5809 | + */ | ||
5810 | +void pxa3xx_mfp_set_afds(int mfp, int af, int ds); | ||
5811 | +void pxa3xx_mfp_set_rdh(int mfp, int rdh); | ||
5812 | +void pxa3xx_mfp_set_lpm(int mfp, int lpm); | ||
5813 | +void pxa3xx_mfp_set_edge(int mfp, int edge); | ||
5814 | + | ||
5815 | +/* | ||
5816 | + * pxa3xx_mfp_config - configure the MFPR registers | ||
5817 | + * | ||
5818 | + * used by board specific initialization code | ||
5819 | + */ | ||
5820 | +void pxa3xx_mfp_config(mfp_cfg_t *mfp_cfgs, int num); | ||
5821 | + | ||
5822 | +/* | ||
5823 | + * pxa3xx_mfp_init_addr() - initialize the mapping between mfp pin | ||
5824 | + * index and MFPR register offset | ||
5825 | + * | ||
5826 | + * used by processor specific code | ||
5827 | + */ | ||
5828 | +void __init pxa3xx_mfp_init_addr(struct pxa3xx_mfp_addr_map *); | ||
5829 | +void __init pxa3xx_init_mfp(void); | ||
5830 | + | ||
5831 | +#endif /* __ASM_ARCH_MFP_H */ | ||
5832 | Index: linux-2.6.22/include/asm-arm/arch-pxa/pxa-regs.h | ||
5833 | =================================================================== | ||
5834 | --- linux-2.6.22.orig/include/asm-arm/arch-pxa/pxa-regs.h 2007-09-24 20:57:20.000000000 +0200 | ||
5835 | +++ linux-2.6.22/include/asm-arm/arch-pxa/pxa-regs.h 2007-09-24 20:57:20.000000000 +0200 | ||
5836 | @@ -1184,7 +1184,7 @@ | ||
5837 | |||
5838 | #define GPIO_bit(x) (1 << ((x) & 0x1f)) | ||
5839 | |||
5840 | -#ifdef CONFIG_PXA27x | ||
5841 | +#if defined(CONFIG_PXA27x) || defined(CONFIG_PXA3xx) | ||
5842 | |||
5843 | /* Interrupt Controller */ | ||
5844 | |||
5845 | Index: linux-2.6.22/include/asm-arm/arch-pxa/pxa3xx-regs.h | ||
5846 | =================================================================== | ||
5847 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
5848 | +++ linux-2.6.22/include/asm-arm/arch-pxa/pxa3xx-regs.h 2007-09-24 20:57:20.000000000 +0200 | ||
5849 | @@ -0,0 +1,75 @@ | ||
5850 | +/* | ||
5851 | + * linux/include/asm-arm/arch-pxa/pxa3xx-regs.h | ||
5852 | + * | ||
5853 | + * PXA3xx specific register definitions | ||
5854 | + * | ||
5855 | + * Copyright (C) 2007 Marvell International Ltd. | ||
5856 | + * | ||
5857 | + * This program is free software; you can redistribute it and/or modify | ||
5858 | + * it under the terms of the GNU General Public License version 2 as | ||
5859 | + * published by the Free Software Foundation. | ||
5860 | + */ | ||
5861 | + | ||
5862 | +#ifndef __ASM_ARCH_PXA3XX_REGS_H | ||
5863 | +#define __ASM_ARCH_PXA3XX_REGS_H | ||
5864 | + | ||
5865 | +/* | ||
5866 | + * Application Subsystem Clock | ||
5867 | + */ | ||
5868 | +#define ACCR __REG(0x41340000) /* Application Subsystem Clock Configuration Register */ | ||
5869 | +#define ACSR __REG(0x41340004) /* Application Subsystem Clock Status Register */ | ||
5870 | +#define AICSR __REG(0x41340008) /* Application Subsystem Interrupt Control/Status Register */ | ||
5871 | +#define CKENA __REG(0x4134000C) /* A Clock Enable Register */ | ||
5872 | +#define CKENB __REG(0x41340010) /* B Clock Enable Register */ | ||
5873 | +#define AC97_DIV __REG(0x41340014) /* AC97 clock divisor value register */ | ||
5874 | + | ||
5875 | +/* | ||
5876 | + * Clock Enable Bit | ||
5877 | + */ | ||
5878 | +#define CKEN_LCD 1 /* < LCD Clock Enable */ | ||
5879 | +#define CKEN_USBH 2 /* < USB host clock enable */ | ||
5880 | +#define CKEN_CAMERA 3 /* < Camera interface clock enable */ | ||
5881 | +#define CKEN_NAND 4 /* < NAND Flash Controller Clock Enable */ | ||
5882 | +#define CKEN_USB2 6 /* < USB 2.0 client clock enable. */ | ||
5883 | +#define CKEN_DMC 8 /* < Dynamic Memory Controller clock enable */ | ||
5884 | +#define CKEN_SMC 9 /* < Static Memory Controller clock enable */ | ||
5885 | +#define CKEN_ISC 10 /* < Internal SRAM Controller clock enable */ | ||
5886 | +#define CKEN_BOOT 11 /* < Boot rom clock enable */ | ||
5887 | +#define CKEN_MMC1 12 /* < MMC1 Clock enable */ | ||
5888 | +#define CKEN_MMC2 13 /* < MMC2 clock enable */ | ||
5889 | +#define CKEN_KEYPAD 14 /* < Keypand Controller Clock Enable */ | ||
5890 | +#define CKEN_CIR 15 /* < Consumer IR Clock Enable */ | ||
5891 | +#define CKEN_USIM0 17 /* < USIM[0] Clock Enable */ | ||
5892 | +#define CKEN_USIM1 18 /* < USIM[1] Clock Enable */ | ||
5893 | +#define CKEN_TPM 19 /* < TPM clock enable */ | ||
5894 | +#define CKEN_UDC 20 /* < UDC clock enable */ | ||
5895 | +#define CKEN_BTUART 21 /* < BTUART clock enable */ | ||
5896 | +#define CKEN_FFUART 22 /* < FFUART clock enable */ | ||
5897 | +#define CKEN_STUART 23 /* < STUART clock enable */ | ||
5898 | +#define CKEN_AC97 24 /* < AC97 clock enable */ | ||
5899 | +#define CKEN_TOUCH 25 /* < Touch screen Interface Clock Enable */ | ||
5900 | +#define CKEN_SSP1 26 /* < SSP1 clock enable */ | ||
5901 | +#define CKEN_SSP2 27 /* < SSP2 clock enable */ | ||
5902 | +#define CKEN_SSP3 28 /* < SSP3 clock enable */ | ||
5903 | +#define CKEN_SSP4 29 /* < SSP4 clock enable */ | ||
5904 | +#define CKEN_MSL0 30 /* < MSL0 clock enable */ | ||
5905 | +#define CKEN_PWM0 32 /* < PWM[0] clock enable */ | ||
5906 | +#define CKEN_PWM1 33 /* < PWM[1] clock enable */ | ||
5907 | +#define CKEN_I2C 36 /* < I2C clock enable */ | ||
5908 | +#define CKEN_INTC 38 /* < Interrupt controller clock enable */ | ||
5909 | +#define CKEN_GPIO 39 /* < GPIO clock enable */ | ||
5910 | +#define CKEN_1WIRE 40 /* < 1-wire clock enable */ | ||
5911 | +#define CKEN_HSIO2 41 /* < HSIO2 clock enable */ | ||
5912 | +#define CKEN_MINI_IM 48 /* < Mini-IM */ | ||
5913 | +#define CKEN_MINI_LCD 49 /* < Mini LCD */ | ||
5914 | + | ||
5915 | +#if defined(CONFIG_CPU_PXA310) | ||
5916 | +#define CKEN_MMC3 5 /* < MMC3 Clock Enable */ | ||
5917 | +#define CKEN_MVED 43 /* < MVED clock enable */ | ||
5918 | +#endif | ||
5919 | + | ||
5920 | +/* Note: GCU clock enable bit differs on PXA300/PXA310 and PXA320 */ | ||
5921 | +#define PXA300_CKEN_GRAPHICS 42 /* Graphics controller clock enable */ | ||
5922 | +#define PXA320_CKEN_GRAPHICS 7 /* Graphics controller clock enable */ | ||
5923 | + | ||
5924 | +#endif /* __ASM_ARCH_PXA3XX_REGS_H */ | ||
5925 | Index: linux-2.6.22/include/asm-arm/arch-pxa/timex.h | ||
5926 | =================================================================== | ||
5927 | --- linux-2.6.22.orig/include/asm-arm/arch-pxa/timex.h 2007-07-09 01:32:17.000000000 +0200 | ||
5928 | +++ linux-2.6.22/include/asm-arm/arch-pxa/timex.h 2007-09-24 20:57:20.000000000 +0200 | ||
5929 | @@ -21,4 +21,6 @@ | ||
5930 | #else | ||
5931 | #define CLOCK_TICK_RATE 3250000 | ||
5932 | #endif | ||
5933 | +#else | ||
5934 | +#define CLOCK_TICK_RATE 3250000 | ||
5935 | #endif | ||
5936 | Index: linux-2.6.22/include/asm-arm/arch-pxa/zylonite.h | ||
5937 | =================================================================== | ||
5938 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
5939 | +++ linux-2.6.22/include/asm-arm/arch-pxa/zylonite.h 2007-09-24 20:57:20.000000000 +0200 | ||
5940 | @@ -0,0 +1,35 @@ | ||
5941 | +#ifndef __ASM_ARCH_ZYLONITE_H | ||
5942 | +#define __ASM_ARCH_ZYLONITE_H | ||
5943 | + | ||
5944 | +#define ZYLONITE_ETH_PHYS 0x14000000 | ||
5945 | + | ||
5946 | +/* the following variables are processor specific and initialized | ||
5947 | + * by the corresponding zylonite_pxa3xx_init() | ||
5948 | + */ | ||
5949 | +extern int gpio_backlight; | ||
5950 | +extern int gpio_eth_irq; | ||
5951 | + | ||
5952 | +extern int lcd_id; | ||
5953 | +extern int lcd_orientation; | ||
5954 | + | ||
5955 | +#ifdef CONFIG_CPU_PXA300 | ||
5956 | +extern void zylonite_pxa300_init(void); | ||
5957 | +#else | ||
5958 | +static inline void zylonite_pxa300_init(void) | ||
5959 | +{ | ||
5960 | + if (cpu_is_pxa300() || cpu_is_pxa310()) | ||
5961 | + panic("%s: PXA300/PXA310 not supported\n", __FUNCTION__); | ||
5962 | +} | ||
5963 | +#endif | ||
5964 | + | ||
5965 | +#ifdef CONFIG_CPU_PXA320 | ||
5966 | +extern void zylonite_pxa320_init(void); | ||
5967 | +#else | ||
5968 | +static inline void zylonite_pxa320_init(void) | ||
5969 | +{ | ||
5970 | + if (cpu_is_pxa320()) | ||
5971 | + panic("%s: PXA320 not supported\n", __FUNCTION__); | ||
5972 | +} | ||
5973 | +#endif | ||
5974 | + | ||
5975 | +#endif /* __ASM_ARCH_ZYLONITE_H */ | ||
diff --git a/meta/packages/linux/linux-rp-2.6.22+2.6.23-rc4/defconfig-zylonite b/meta/packages/linux/linux-rp-2.6.22+2.6.23-rc4/defconfig-zylonite new file mode 100644 index 0000000000..f10c01a3b6 --- /dev/null +++ b/meta/packages/linux/linux-rp-2.6.22+2.6.23-rc4/defconfig-zylonite | |||
@@ -0,0 +1,1457 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # Linux kernel version: 2.6.23-rc4 | ||
4 | # Tue Sep 25 12:39:31 2007 | ||
5 | # | ||
6 | CONFIG_ARM=y | ||
7 | CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
8 | CONFIG_GENERIC_GPIO=y | ||
9 | CONFIG_GENERIC_TIME=y | ||
10 | CONFIG_GENERIC_CLOCKEVENTS=y | ||
11 | CONFIG_MMU=y | ||
12 | # CONFIG_NO_IOPORT is not set | ||
13 | CONFIG_GENERIC_HARDIRQS=y | ||
14 | CONFIG_STACKTRACE_SUPPORT=y | ||
15 | CONFIG_LOCKDEP_SUPPORT=y | ||
16 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y | ||
17 | CONFIG_HARDIRQS_SW_RESEND=y | ||
18 | CONFIG_GENERIC_IRQ_PROBE=y | ||
19 | CONFIG_RWSEM_GENERIC_SPINLOCK=y | ||
20 | # CONFIG_ARCH_HAS_ILOG2_U32 is not set | ||
21 | # CONFIG_ARCH_HAS_ILOG2_U64 is not set | ||
22 | CONFIG_GENERIC_HWEIGHT=y | ||
23 | CONFIG_GENERIC_CALIBRATE_DELAY=y | ||
24 | CONFIG_ZONE_DMA=y | ||
25 | CONFIG_ARCH_MTD_XIP=y | ||
26 | CONFIG_VECTORS_BASE=0xffff0000 | ||
27 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" | ||
28 | |||
29 | # | ||
30 | # General setup | ||
31 | # | ||
32 | CONFIG_EXPERIMENTAL=y | ||
33 | CONFIG_BROKEN_ON_SMP=y | ||
34 | CONFIG_INIT_ENV_ARG_LIMIT=32 | ||
35 | CONFIG_LOCALVERSION="" | ||
36 | CONFIG_LOCALVERSION_AUTO=y | ||
37 | CONFIG_SWAP=y | ||
38 | CONFIG_SYSVIPC=y | ||
39 | CONFIG_SYSVIPC_SYSCTL=y | ||
40 | # CONFIG_POSIX_MQUEUE is not set | ||
41 | # CONFIG_BSD_PROCESS_ACCT is not set | ||
42 | # CONFIG_TASKSTATS is not set | ||
43 | # CONFIG_USER_NS is not set | ||
44 | # CONFIG_AUDIT is not set | ||
45 | # CONFIG_IKCONFIG is not set | ||
46 | CONFIG_LOG_BUF_SHIFT=14 | ||
47 | CONFIG_SYSFS_DEPRECATED=y | ||
48 | # CONFIG_RELAY is not set | ||
49 | CONFIG_BLK_DEV_INITRD=y | ||
50 | CONFIG_INITRAMFS_SOURCE="" | ||
51 | CONFIG_CC_OPTIMIZE_FOR_SIZE=y | ||
52 | CONFIG_SYSCTL=y | ||
53 | # CONFIG_EMBEDDED is not set | ||
54 | CONFIG_UID16=y | ||
55 | CONFIG_SYSCTL_SYSCALL=y | ||
56 | CONFIG_KALLSYMS=y | ||
57 | # CONFIG_KALLSYMS_ALL is not set | ||
58 | # CONFIG_KALLSYMS_EXTRA_PASS is not set | ||
59 | CONFIG_HOTPLUG=y | ||
60 | CONFIG_PRINTK=y | ||
61 | CONFIG_BUG=y | ||
62 | CONFIG_ELF_CORE=y | ||
63 | CONFIG_BASE_FULL=y | ||
64 | CONFIG_FUTEX=y | ||
65 | CONFIG_ANON_INODES=y | ||
66 | CONFIG_EPOLL=y | ||
67 | CONFIG_SIGNALFD=y | ||
68 | CONFIG_TIMERFD=y | ||
69 | CONFIG_EVENTFD=y | ||
70 | CONFIG_SHMEM=y | ||
71 | CONFIG_VM_EVENT_COUNTERS=y | ||
72 | CONFIG_SLAB=y | ||
73 | # CONFIG_SLUB is not set | ||
74 | # CONFIG_SLOB is not set | ||
75 | CONFIG_RT_MUTEXES=y | ||
76 | # CONFIG_TINY_SHMEM is not set | ||
77 | CONFIG_BASE_SMALL=0 | ||
78 | CONFIG_MODULES=y | ||
79 | CONFIG_MODULE_UNLOAD=y | ||
80 | CONFIG_MODULE_FORCE_UNLOAD=y | ||
81 | # CONFIG_MODVERSIONS is not set | ||
82 | # CONFIG_MODULE_SRCVERSION_ALL is not set | ||
83 | # CONFIG_KMOD is not set | ||
84 | CONFIG_BLOCK=y | ||
85 | # CONFIG_LBD is not set | ||
86 | # CONFIG_BLK_DEV_IO_TRACE is not set | ||
87 | # CONFIG_LSF is not set | ||
88 | # CONFIG_BLK_DEV_BSG is not set | ||
89 | |||
90 | # | ||
91 | # IO Schedulers | ||
92 | # | ||
93 | CONFIG_IOSCHED_NOOP=y | ||
94 | CONFIG_IOSCHED_AS=y | ||
95 | CONFIG_IOSCHED_DEADLINE=y | ||
96 | CONFIG_IOSCHED_CFQ=y | ||
97 | # CONFIG_DEFAULT_AS is not set | ||
98 | # CONFIG_DEFAULT_DEADLINE is not set | ||
99 | CONFIG_DEFAULT_CFQ=y | ||
100 | # CONFIG_DEFAULT_NOOP is not set | ||
101 | CONFIG_DEFAULT_IOSCHED="cfq" | ||
102 | |||
103 | # | ||
104 | # System Type | ||
105 | # | ||
106 | # CONFIG_ARCH_AAEC2000 is not set | ||
107 | # CONFIG_ARCH_INTEGRATOR is not set | ||
108 | # CONFIG_ARCH_REALVIEW is not set | ||
109 | # CONFIG_ARCH_VERSATILE is not set | ||
110 | # CONFIG_ARCH_AT91 is not set | ||
111 | # CONFIG_ARCH_CLPS7500 is not set | ||
112 | # CONFIG_ARCH_CLPS711X is not set | ||
113 | # CONFIG_ARCH_CO285 is not set | ||
114 | # CONFIG_ARCH_EBSA110 is not set | ||
115 | # CONFIG_ARCH_EP93XX is not set | ||
116 | # CONFIG_ARCH_FOOTBRIDGE is not set | ||
117 | # CONFIG_ARCH_NETX is not set | ||
118 | # CONFIG_ARCH_H720X is not set | ||
119 | # CONFIG_ARCH_IMX is not set | ||
120 | # CONFIG_ARCH_IOP13XX is not set | ||
121 | # CONFIG_ARCH_IOP32X is not set | ||
122 | # CONFIG_ARCH_IOP33X is not set | ||
123 | # CONFIG_ARCH_IXP23XX is not set | ||
124 | # CONFIG_ARCH_IXP2000 is not set | ||
125 | # CONFIG_ARCH_IXP4XX is not set | ||
126 | # CONFIG_ARCH_L7200 is not set | ||
127 | # CONFIG_ARCH_KS8695 is not set | ||
128 | # CONFIG_ARCH_NS9XXX is not set | ||
129 | # CONFIG_ARCH_MXC is not set | ||
130 | # CONFIG_ARCH_PNX4008 is not set | ||
131 | CONFIG_ARCH_PXA=y | ||
132 | # CONFIG_ARCH_RPC is not set | ||
133 | # CONFIG_ARCH_SA1100 is not set | ||
134 | # CONFIG_ARCH_S3C2410 is not set | ||
135 | # CONFIG_ARCH_SHARK is not set | ||
136 | # CONFIG_ARCH_LH7A40X is not set | ||
137 | # CONFIG_ARCH_DAVINCI is not set | ||
138 | # CONFIG_ARCH_OMAP is not set | ||
139 | |||
140 | # | ||
141 | # Intel PXA2xx/PXA3xx Implementations | ||
142 | # | ||
143 | |||
144 | # | ||
145 | # Supported PXA3xx Processor Variants | ||
146 | # | ||
147 | CONFIG_CPU_PXA300=y | ||
148 | CONFIG_CPU_PXA310=y | ||
149 | CONFIG_CPU_PXA320=y | ||
150 | # CONFIG_ARCH_LUBBOCK is not set | ||
151 | # CONFIG_MACH_LOGICPD_PXA270 is not set | ||
152 | # CONFIG_MACH_MAINSTONE is not set | ||
153 | # CONFIG_ARCH_PXA_IDP is not set | ||
154 | # CONFIG_PXA_SHARPSL is not set | ||
155 | # CONFIG_MACH_TRIZEPS4 is not set | ||
156 | # CONFIG_MACH_EM_X270 is not set | ||
157 | CONFIG_MACH_ZYLONITE=y | ||
158 | # CONFIG_MACH_HX2750 is not set | ||
159 | # CONFIG_MACH_HTCUNIVERSAL is not set | ||
160 | CONFIG_PXA3xx=y | ||
161 | |||
162 | # | ||
163 | # Boot options | ||
164 | # | ||
165 | |||
166 | # | ||
167 | # Power management | ||
168 | # | ||
169 | |||
170 | # | ||
171 | # Processor Type | ||
172 | # | ||
173 | CONFIG_CPU_32=y | ||
174 | CONFIG_CPU_XSC3=y | ||
175 | CONFIG_CPU_32v5=y | ||
176 | CONFIG_CPU_ABRT_EV5T=y | ||
177 | CONFIG_CPU_CACHE_VIVT=y | ||
178 | CONFIG_CPU_TLB_V4WBI=y | ||
179 | CONFIG_CPU_CP15=y | ||
180 | CONFIG_CPU_CP15_MMU=y | ||
181 | CONFIG_IO_36=y | ||
182 | |||
183 | # | ||
184 | # Processor Features | ||
185 | # | ||
186 | # CONFIG_ARM_THUMB is not set | ||
187 | # CONFIG_CPU_DCACHE_DISABLE is not set | ||
188 | # CONFIG_CPU_BPREDICT_DISABLE is not set | ||
189 | # CONFIG_OUTER_CACHE is not set | ||
190 | CONFIG_IWMMXT=y | ||
191 | |||
192 | # | ||
193 | # Bus support | ||
194 | # | ||
195 | # CONFIG_PCI_SYSCALL is not set | ||
196 | # CONFIG_ARCH_SUPPORTS_MSI is not set | ||
197 | |||
198 | # | ||
199 | # PCCARD (PCMCIA/CardBus) support | ||
200 | # | ||
201 | # CONFIG_PCCARD is not set | ||
202 | |||
203 | # | ||
204 | # Kernel Features | ||
205 | # | ||
206 | # CONFIG_TICK_ONESHOT is not set | ||
207 | # CONFIG_NO_HZ is not set | ||
208 | # CONFIG_HIGH_RES_TIMERS is not set | ||
209 | # CONFIG_PREEMPT is not set | ||
210 | CONFIG_HZ=100 | ||
211 | CONFIG_AEABI=y | ||
212 | CONFIG_OABI_COMPAT=y | ||
213 | # CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set | ||
214 | CONFIG_SELECT_MEMORY_MODEL=y | ||
215 | CONFIG_FLATMEM_MANUAL=y | ||
216 | # CONFIG_DISCONTIGMEM_MANUAL is not set | ||
217 | # CONFIG_SPARSEMEM_MANUAL is not set | ||
218 | CONFIG_FLATMEM=y | ||
219 | CONFIG_FLAT_NODE_MEM_MAP=y | ||
220 | # CONFIG_SPARSEMEM_STATIC is not set | ||
221 | CONFIG_SPLIT_PTLOCK_CPUS=4096 | ||
222 | CONFIG_RESOURCES_64BIT=y | ||
223 | CONFIG_ZONE_DMA_FLAG=1 | ||
224 | CONFIG_BOUNCE=y | ||
225 | CONFIG_VIRT_TO_BUS=y | ||
226 | CONFIG_ALIGNMENT_TRAP=y | ||
227 | |||
228 | # | ||
229 | # Boot options | ||
230 | # | ||
231 | CONFIG_ZBOOT_ROM_TEXT=0x0 | ||
232 | CONFIG_ZBOOT_ROM_BSS=0x0 | ||
233 | CONFIG_CMDLINE="console=ttyS0,38400 root=/dev/mtdblock2 rootfstype=jffs2 mem=64M" | ||
234 | # CONFIG_XIP_KERNEL is not set | ||
235 | # CONFIG_KEXEC is not set | ||
236 | |||
237 | # | ||
238 | # CPU Frequency scaling | ||
239 | # | ||
240 | # CONFIG_CPU_FREQ is not set | ||
241 | |||
242 | # | ||
243 | # Floating point emulation | ||
244 | # | ||
245 | |||
246 | # | ||
247 | # At least one emulation must be selected | ||
248 | # | ||
249 | CONFIG_FPE_NWFPE=y | ||
250 | # CONFIG_FPE_NWFPE_XP is not set | ||
251 | # CONFIG_FPE_FASTFPE is not set | ||
252 | |||
253 | # | ||
254 | # Userspace binary formats | ||
255 | # | ||
256 | CONFIG_BINFMT_ELF=y | ||
257 | # CONFIG_BINFMT_AOUT is not set | ||
258 | # CONFIG_BINFMT_MISC is not set | ||
259 | |||
260 | # | ||
261 | # Power management options | ||
262 | # | ||
263 | # CONFIG_PM is not set | ||
264 | |||
265 | # | ||
266 | # Networking | ||
267 | # | ||
268 | CONFIG_NET=y | ||
269 | |||
270 | # | ||
271 | # Networking options | ||
272 | # | ||
273 | # CONFIG_PACKET is not set | ||
274 | CONFIG_UNIX=y | ||
275 | CONFIG_XFRM=y | ||
276 | # CONFIG_XFRM_USER is not set | ||
277 | # CONFIG_XFRM_SUB_POLICY is not set | ||
278 | # CONFIG_XFRM_MIGRATE is not set | ||
279 | # CONFIG_NET_KEY is not set | ||
280 | CONFIG_INET=y | ||
281 | # CONFIG_IP_MULTICAST is not set | ||
282 | # CONFIG_IP_ADVANCED_ROUTER is not set | ||
283 | CONFIG_IP_FIB_HASH=y | ||
284 | CONFIG_IP_PNP=y | ||
285 | # CONFIG_IP_PNP_DHCP is not set | ||
286 | # CONFIG_IP_PNP_BOOTP is not set | ||
287 | # CONFIG_IP_PNP_RARP is not set | ||
288 | # CONFIG_NET_IPIP is not set | ||
289 | # CONFIG_NET_IPGRE is not set | ||
290 | # CONFIG_ARPD is not set | ||
291 | # CONFIG_SYN_COOKIES is not set | ||
292 | # CONFIG_INET_AH is not set | ||
293 | # CONFIG_INET_ESP is not set | ||
294 | # CONFIG_INET_IPCOMP is not set | ||
295 | # CONFIG_INET_XFRM_TUNNEL is not set | ||
296 | # CONFIG_INET_TUNNEL is not set | ||
297 | CONFIG_INET_XFRM_MODE_TRANSPORT=y | ||
298 | CONFIG_INET_XFRM_MODE_TUNNEL=y | ||
299 | CONFIG_INET_XFRM_MODE_BEET=y | ||
300 | CONFIG_INET_DIAG=y | ||
301 | CONFIG_INET_TCP_DIAG=y | ||
302 | # CONFIG_TCP_CONG_ADVANCED is not set | ||
303 | CONFIG_TCP_CONG_CUBIC=y | ||
304 | CONFIG_DEFAULT_TCP_CONG="cubic" | ||
305 | # CONFIG_TCP_MD5SIG is not set | ||
306 | # CONFIG_IPV6 is not set | ||
307 | # CONFIG_INET6_XFRM_TUNNEL is not set | ||
308 | # CONFIG_INET6_TUNNEL is not set | ||
309 | # CONFIG_NETWORK_SECMARK is not set | ||
310 | # CONFIG_NETFILTER is not set | ||
311 | # CONFIG_IP_DCCP is not set | ||
312 | # CONFIG_IP_SCTP is not set | ||
313 | # CONFIG_TIPC is not set | ||
314 | # CONFIG_ATM is not set | ||
315 | # CONFIG_BRIDGE is not set | ||
316 | # CONFIG_VLAN_8021Q is not set | ||
317 | # CONFIG_DECNET is not set | ||
318 | # CONFIG_LLC2 is not set | ||
319 | # CONFIG_IPX is not set | ||
320 | # CONFIG_ATALK is not set | ||
321 | # CONFIG_X25 is not set | ||
322 | # CONFIG_LAPB is not set | ||
323 | # CONFIG_ECONET is not set | ||
324 | # CONFIG_WAN_ROUTER is not set | ||
325 | |||
326 | # | ||
327 | # QoS and/or fair queueing | ||
328 | # | ||
329 | # CONFIG_NET_SCHED is not set | ||
330 | |||
331 | # | ||
332 | # Network testing | ||
333 | # | ||
334 | # CONFIG_NET_PKTGEN is not set | ||
335 | # CONFIG_HAMRADIO is not set | ||
336 | CONFIG_IRDA=y | ||
337 | |||
338 | # | ||
339 | # IrDA protocols | ||
340 | # | ||
341 | # CONFIG_IRLAN is not set | ||
342 | # CONFIG_IRCOMM is not set | ||
343 | # CONFIG_IRDA_ULTRA is not set | ||
344 | |||
345 | # | ||
346 | # IrDA options | ||
347 | # | ||
348 | # CONFIG_IRDA_CACHE_LAST_LSAP is not set | ||
349 | # CONFIG_IRDA_FAST_RR is not set | ||
350 | # CONFIG_IRDA_DEBUG is not set | ||
351 | |||
352 | # | ||
353 | # Infrared-port device drivers | ||
354 | # | ||
355 | |||
356 | # | ||
357 | # SIR device drivers | ||
358 | # | ||
359 | # CONFIG_IRTTY_SIR is not set | ||
360 | |||
361 | # | ||
362 | # Dongle support | ||
363 | # | ||
364 | # CONFIG_KINGSUN_DONGLE is not set | ||
365 | |||
366 | # | ||
367 | # Old SIR device drivers | ||
368 | # | ||
369 | # CONFIG_IRPORT_SIR is not set | ||
370 | |||
371 | # | ||
372 | # Old Serial dongle support | ||
373 | # | ||
374 | |||
375 | # | ||
376 | # FIR device drivers | ||
377 | # | ||
378 | # CONFIG_USB_IRDA is not set | ||
379 | # CONFIG_SIGMATEL_FIR is not set | ||
380 | # CONFIG_PXA_FICP is not set | ||
381 | # CONFIG_MCS_FIR is not set | ||
382 | # CONFIG_BT is not set | ||
383 | # CONFIG_AF_RXRPC is not set | ||
384 | |||
385 | # | ||
386 | # Wireless | ||
387 | # | ||
388 | # CONFIG_CFG80211 is not set | ||
389 | # CONFIG_WIRELESS_EXT is not set | ||
390 | # CONFIG_MAC80211 is not set | ||
391 | # CONFIG_IEEE80211 is not set | ||
392 | # CONFIG_RFKILL is not set | ||
393 | # CONFIG_NET_9P is not set | ||
394 | |||
395 | # | ||
396 | # Device Drivers | ||
397 | # | ||
398 | |||
399 | # | ||
400 | # Generic Driver Options | ||
401 | # | ||
402 | # CONFIG_STANDALONE is not set | ||
403 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set | ||
404 | CONFIG_FW_LOADER=y | ||
405 | # CONFIG_DEBUG_DRIVER is not set | ||
406 | # CONFIG_DEBUG_DEVRES is not set | ||
407 | # CONFIG_SYS_HYPERVISOR is not set | ||
408 | # CONFIG_CONNECTOR is not set | ||
409 | CONFIG_MTD=y | ||
410 | # CONFIG_MTD_DEBUG is not set | ||
411 | # CONFIG_MTD_CONCAT is not set | ||
412 | CONFIG_MTD_PARTITIONS=y | ||
413 | # CONFIG_MTD_REDBOOT_PARTS is not set | ||
414 | CONFIG_MTD_CMDLINE_PARTS=y | ||
415 | # CONFIG_MTD_AFS_PARTS is not set | ||
416 | |||
417 | # | ||
418 | # User Modules And Translation Layers | ||
419 | # | ||
420 | CONFIG_MTD_CHAR=y | ||
421 | CONFIG_MTD_BLKDEVS=y | ||
422 | CONFIG_MTD_BLOCK=y | ||
423 | # CONFIG_FTL is not set | ||
424 | # CONFIG_NFTL is not set | ||
425 | # CONFIG_INFTL is not set | ||
426 | # CONFIG_RFD_FTL is not set | ||
427 | # CONFIG_SSFDC is not set | ||
428 | |||
429 | # | ||
430 | # RAM/ROM/Flash chip drivers | ||
431 | # | ||
432 | CONFIG_MTD_CFI=y | ||
433 | # CONFIG_MTD_JEDECPROBE is not set | ||
434 | CONFIG_MTD_GEN_PROBE=y | ||
435 | CONFIG_MTD_CFI_ADV_OPTIONS=y | ||
436 | CONFIG_MTD_CFI_NOSWAP=y | ||
437 | # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set | ||
438 | # CONFIG_MTD_CFI_LE_BYTE_SWAP is not set | ||
439 | CONFIG_MTD_CFI_GEOMETRY=y | ||
440 | CONFIG_MTD_MAP_BANK_WIDTH_1=y | ||
441 | CONFIG_MTD_MAP_BANK_WIDTH_2=y | ||
442 | CONFIG_MTD_MAP_BANK_WIDTH_4=y | ||
443 | # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set | ||
444 | # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set | ||
445 | # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set | ||
446 | CONFIG_MTD_CFI_I1=y | ||
447 | CONFIG_MTD_CFI_I2=y | ||
448 | # CONFIG_MTD_CFI_I4 is not set | ||
449 | # CONFIG_MTD_CFI_I8 is not set | ||
450 | # CONFIG_MTD_OTP is not set | ||
451 | CONFIG_MTD_CFI_INTELEXT=y | ||
452 | # CONFIG_MTD_CFI_AMDSTD is not set | ||
453 | # CONFIG_MTD_CFI_STAA is not set | ||
454 | CONFIG_MTD_CFI_UTIL=y | ||
455 | # CONFIG_MTD_RAM is not set | ||
456 | CONFIG_MTD_ROM=y | ||
457 | # CONFIG_MTD_ABSENT is not set | ||
458 | # CONFIG_MTD_XIP is not set | ||
459 | |||
460 | # | ||
461 | # Mapping drivers for chip access | ||
462 | # | ||
463 | # CONFIG_MTD_COMPLEX_MAPPINGS is not set | ||
464 | # CONFIG_MTD_PHYSMAP is not set | ||
465 | # CONFIG_MTD_ARM_INTEGRATOR is not set | ||
466 | # CONFIG_MTD_SHARP_SL is not set | ||
467 | # CONFIG_MTD_PLATRAM is not set | ||
468 | |||
469 | # | ||
470 | # Self-contained MTD device drivers | ||
471 | # | ||
472 | # CONFIG_MTD_SLRAM is not set | ||
473 | # CONFIG_MTD_PHRAM is not set | ||
474 | # CONFIG_MTD_MTDRAM is not set | ||
475 | # CONFIG_MTD_BLOCK2MTD is not set | ||
476 | |||
477 | # | ||
478 | # Disk-On-Chip Device Drivers | ||
479 | # | ||
480 | # CONFIG_MTD_DOC2000 is not set | ||
481 | # CONFIG_MTD_DOC2001 is not set | ||
482 | # CONFIG_MTD_DOC2001PLUS is not set | ||
483 | CONFIG_MTD_NAND=y | ||
484 | # CONFIG_MTD_NAND_VERIFY_WRITE is not set | ||
485 | # CONFIG_MTD_NAND_ECC_SMC is not set | ||
486 | # CONFIG_MTD_NAND_MUSEUM_IDS is not set | ||
487 | # CONFIG_MTD_NAND_H1900 is not set | ||
488 | CONFIG_MTD_NAND_IDS=y | ||
489 | # CONFIG_MTD_NAND_DISKONCHIP is not set | ||
490 | # CONFIG_MTD_NAND_SHARPSL is not set | ||
491 | # CONFIG_MTD_NAND_NANDSIM is not set | ||
492 | # CONFIG_MTD_NAND_PLATFORM is not set | ||
493 | # CONFIG_MTD_ONENAND is not set | ||
494 | |||
495 | # | ||
496 | # UBI - Unsorted block images | ||
497 | # | ||
498 | # CONFIG_MTD_UBI is not set | ||
499 | # CONFIG_PARPORT is not set | ||
500 | CONFIG_BLK_DEV=y | ||
501 | # CONFIG_BLK_DEV_COW_COMMON is not set | ||
502 | CONFIG_BLK_DEV_LOOP=y | ||
503 | # CONFIG_BLK_DEV_CRYPTOLOOP is not set | ||
504 | # CONFIG_BLK_DEV_NBD is not set | ||
505 | # CONFIG_BLK_DEV_UB is not set | ||
506 | CONFIG_BLK_DEV_RAM=y | ||
507 | CONFIG_BLK_DEV_RAM_COUNT=16 | ||
508 | CONFIG_BLK_DEV_RAM_SIZE=4096 | ||
509 | CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024 | ||
510 | # CONFIG_CDROM_PKTCDVD is not set | ||
511 | # CONFIG_ATA_OVER_ETH is not set | ||
512 | CONFIG_IDE=y | ||
513 | CONFIG_BLK_DEV_IDE=y | ||
514 | |||
515 | # | ||
516 | # Please see Documentation/ide.txt for help/info on IDE drives | ||
517 | # | ||
518 | # CONFIG_BLK_DEV_IDE_SATA is not set | ||
519 | CONFIG_BLK_DEV_IDEDISK=y | ||
520 | # CONFIG_IDEDISK_MULTI_MODE is not set | ||
521 | # CONFIG_BLK_DEV_IDECD is not set | ||
522 | # CONFIG_BLK_DEV_IDETAPE is not set | ||
523 | # CONFIG_BLK_DEV_IDEFLOPPY is not set | ||
524 | # CONFIG_BLK_DEV_IDESCSI is not set | ||
525 | # CONFIG_IDE_TASK_IOCTL is not set | ||
526 | CONFIG_IDE_PROC_FS=y | ||
527 | |||
528 | # | ||
529 | # IDE chipset support/bugfixes | ||
530 | # | ||
531 | # CONFIG_IDE_GENERIC is not set | ||
532 | # CONFIG_IDEPCI_PCIBUS_ORDER is not set | ||
533 | # CONFIG_IDE_ARM is not set | ||
534 | # CONFIG_BLK_DEV_IDEDMA is not set | ||
535 | # CONFIG_BLK_DEV_HD is not set | ||
536 | |||
537 | # | ||
538 | # SCSI device support | ||
539 | # | ||
540 | # CONFIG_RAID_ATTRS is not set | ||
541 | CONFIG_SCSI=y | ||
542 | CONFIG_SCSI_DMA=y | ||
543 | # CONFIG_SCSI_TGT is not set | ||
544 | # CONFIG_SCSI_NETLINK is not set | ||
545 | CONFIG_SCSI_PROC_FS=y | ||
546 | |||
547 | # | ||
548 | # SCSI support type (disk, tape, CD-ROM) | ||
549 | # | ||
550 | CONFIG_BLK_DEV_SD=y | ||
551 | # CONFIG_CHR_DEV_ST is not set | ||
552 | # CONFIG_CHR_DEV_OSST is not set | ||
553 | # CONFIG_BLK_DEV_SR is not set | ||
554 | # CONFIG_CHR_DEV_SG is not set | ||
555 | # CONFIG_CHR_DEV_SCH is not set | ||
556 | |||
557 | # | ||
558 | # Some SCSI devices (e.g. CD jukebox) support multiple LUNs | ||
559 | # | ||
560 | # CONFIG_SCSI_MULTI_LUN is not set | ||
561 | # CONFIG_SCSI_CONSTANTS is not set | ||
562 | # CONFIG_SCSI_LOGGING is not set | ||
563 | # CONFIG_SCSI_SCAN_ASYNC is not set | ||
564 | CONFIG_SCSI_WAIT_SCAN=m | ||
565 | |||
566 | # | ||
567 | # SCSI Transports | ||
568 | # | ||
569 | # CONFIG_SCSI_SPI_ATTRS is not set | ||
570 | # CONFIG_SCSI_FC_ATTRS is not set | ||
571 | # CONFIG_SCSI_ISCSI_ATTRS is not set | ||
572 | # CONFIG_SCSI_SAS_LIBSAS is not set | ||
573 | CONFIG_SCSI_LOWLEVEL=y | ||
574 | # CONFIG_ISCSI_TCP is not set | ||
575 | # CONFIG_SCSI_DEBUG is not set | ||
576 | # CONFIG_ATA is not set | ||
577 | # CONFIG_MD is not set | ||
578 | CONFIG_NETDEVICES=y | ||
579 | # CONFIG_NETDEVICES_MULTIQUEUE is not set | ||
580 | # CONFIG_DUMMY is not set | ||
581 | # CONFIG_BONDING is not set | ||
582 | # CONFIG_MACVLAN is not set | ||
583 | # CONFIG_EQUALIZER is not set | ||
584 | # CONFIG_TUN is not set | ||
585 | # CONFIG_PHYLIB is not set | ||
586 | CONFIG_NET_ETHERNET=y | ||
587 | CONFIG_MII=y | ||
588 | # CONFIG_AX88796 is not set | ||
589 | CONFIG_SMC91X=y | ||
590 | # CONFIG_DM9000 is not set | ||
591 | # CONFIG_SMC911X is not set | ||
592 | CONFIG_NETDEV_1000=y | ||
593 | CONFIG_NETDEV_10000=y | ||
594 | |||
595 | # | ||
596 | # Wireless LAN | ||
597 | # | ||
598 | # CONFIG_WLAN_PRE80211 is not set | ||
599 | # CONFIG_WLAN_80211 is not set | ||
600 | |||
601 | # | ||
602 | # USB Network Adapters | ||
603 | # | ||
604 | # CONFIG_USB_CATC is not set | ||
605 | # CONFIG_USB_KAWETH is not set | ||
606 | # CONFIG_USB_PEGASUS is not set | ||
607 | # CONFIG_USB_RTL8150 is not set | ||
608 | # CONFIG_USB_USBNET_MII is not set | ||
609 | CONFIG_USB_USBNET=y | ||
610 | # CONFIG_USB_NET_AX8817X is not set | ||
611 | CONFIG_USB_NET_CDCETHER=y | ||
612 | # CONFIG_USB_NET_DM9601 is not set | ||
613 | # CONFIG_USB_NET_GL620A is not set | ||
614 | # CONFIG_USB_NET_NET1080 is not set | ||
615 | # CONFIG_USB_NET_PLUSB is not set | ||
616 | # CONFIG_USB_NET_MCS7830 is not set | ||
617 | # CONFIG_USB_NET_RNDIS_HOST is not set | ||
618 | CONFIG_USB_NET_CDC_SUBSET=y | ||
619 | # CONFIG_USB_ALI_M5632 is not set | ||
620 | # CONFIG_USB_AN2720 is not set | ||
621 | # CONFIG_USB_BELKIN is not set | ||
622 | CONFIG_USB_ARMLINUX=y | ||
623 | # CONFIG_USB_EPSON2888 is not set | ||
624 | # CONFIG_USB_KC2190 is not set | ||
625 | # CONFIG_USB_NET_ZAURUS is not set | ||
626 | # CONFIG_WAN is not set | ||
627 | # CONFIG_PPP is not set | ||
628 | # CONFIG_SLIP is not set | ||
629 | # CONFIG_SHAPER is not set | ||
630 | # CONFIG_NETCONSOLE is not set | ||
631 | # CONFIG_NETPOLL is not set | ||
632 | # CONFIG_NET_POLL_CONTROLLER is not set | ||
633 | # CONFIG_ISDN is not set | ||
634 | |||
635 | # | ||
636 | # Input device support | ||
637 | # | ||
638 | CONFIG_INPUT=y | ||
639 | # CONFIG_INPUT_FF_MEMLESS is not set | ||
640 | # CONFIG_INPUT_POLLDEV is not set | ||
641 | |||
642 | # | ||
643 | # Userland interfaces | ||
644 | # | ||
645 | CONFIG_INPUT_MOUSEDEV=y | ||
646 | # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | ||
647 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||
648 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||
649 | # CONFIG_INPUT_JOYDEV is not set | ||
650 | CONFIG_INPUT_TSDEV=y | ||
651 | CONFIG_INPUT_TSDEV_SCREEN_X=240 | ||
652 | CONFIG_INPUT_TSDEV_SCREEN_Y=320 | ||
653 | CONFIG_INPUT_EVDEV=y | ||
654 | # CONFIG_INPUT_EVBUG is not set | ||
655 | # CONFIG_INPUT_POWER is not set | ||
656 | |||
657 | # | ||
658 | # Input Device Drivers | ||
659 | # | ||
660 | CONFIG_INPUT_KEYBOARD=y | ||
661 | CONFIG_KEYBOARD_ATKBD=y | ||
662 | # CONFIG_KEYBOARD_SUNKBD is not set | ||
663 | # CONFIG_KEYBOARD_LKKBD is not set | ||
664 | # CONFIG_KEYBOARD_XTKBD is not set | ||
665 | # CONFIG_KEYBOARD_NEWTON is not set | ||
666 | # CONFIG_KEYBOARD_STOWAWAY is not set | ||
667 | # CONFIG_KEYBOARD_GPIO is not set | ||
668 | # CONFIG_INPUT_MOUSE is not set | ||
669 | # CONFIG_INPUT_JOYSTICK is not set | ||
670 | # CONFIG_INPUT_TABLET is not set | ||
671 | CONFIG_INPUT_TOUCHSCREEN=y | ||
672 | # CONFIG_TOUCHSCREEN_FUJITSU is not set | ||
673 | # CONFIG_TOUCHSCREEN_GUNZE is not set | ||
674 | # CONFIG_TOUCHSCREEN_ELO is not set | ||
675 | # CONFIG_TOUCHSCREEN_MTOUCH is not set | ||
676 | # CONFIG_TOUCHSCREEN_MK712 is not set | ||
677 | # CONFIG_TOUCHSCREEN_PENMOUNT is not set | ||
678 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set | ||
679 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set | ||
680 | # CONFIG_TOUCHSCREEN_UCB1400 is not set | ||
681 | # CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set | ||
682 | # CONFIG_INPUT_MISC is not set | ||
683 | |||
684 | # | ||
685 | # Hardware I/O ports | ||
686 | # | ||
687 | CONFIG_SERIO=y | ||
688 | # CONFIG_SERIO_SERPORT is not set | ||
689 | CONFIG_SERIO_LIBPS2=y | ||
690 | # CONFIG_SERIO_RAW is not set | ||
691 | # CONFIG_GAMEPORT is not set | ||
692 | |||
693 | # | ||
694 | # Character devices | ||
695 | # | ||
696 | CONFIG_VT=y | ||
697 | CONFIG_VT_CONSOLE=y | ||
698 | CONFIG_HW_CONSOLE=y | ||
699 | # CONFIG_VT_HW_CONSOLE_BINDING is not set | ||
700 | # CONFIG_SERIAL_NONSTANDARD is not set | ||
701 | |||
702 | # | ||
703 | # Serial drivers | ||
704 | # | ||
705 | # CONFIG_SERIAL_8250 is not set | ||
706 | |||
707 | # | ||
708 | # Non-8250 serial port support | ||
709 | # | ||
710 | CONFIG_SERIAL_PXA=y | ||
711 | CONFIG_SERIAL_PXA_CONSOLE=y | ||
712 | CONFIG_SERIAL_CORE=y | ||
713 | CONFIG_SERIAL_CORE_CONSOLE=y | ||
714 | CONFIG_UNIX98_PTYS=y | ||
715 | # CONFIG_LEGACY_PTYS is not set | ||
716 | # CONFIG_IPMI_HANDLER is not set | ||
717 | # CONFIG_WATCHDOG is not set | ||
718 | # CONFIG_HW_RANDOM is not set | ||
719 | # CONFIG_NVRAM is not set | ||
720 | # CONFIG_R3964 is not set | ||
721 | # CONFIG_RAW_DRIVER is not set | ||
722 | # CONFIG_TCG_TPM is not set | ||
723 | CONFIG_I2C=y | ||
724 | CONFIG_I2C_BOARDINFO=y | ||
725 | CONFIG_I2C_CHARDEV=y | ||
726 | |||
727 | # | ||
728 | # I2C Algorithms | ||
729 | # | ||
730 | # CONFIG_I2C_ALGOBIT is not set | ||
731 | # CONFIG_I2C_ALGOPCF is not set | ||
732 | # CONFIG_I2C_ALGOPCA is not set | ||
733 | |||
734 | # | ||
735 | # I2C Hardware Bus support | ||
736 | # | ||
737 | # CONFIG_I2C_GPIO is not set | ||
738 | CONFIG_I2C_PXA=y | ||
739 | # CONFIG_I2C_PXA_SLAVE is not set | ||
740 | # CONFIG_I2C_OCORES is not set | ||
741 | # CONFIG_I2C_PARPORT_LIGHT is not set | ||
742 | # CONFIG_I2C_SIMTEC is not set | ||
743 | # CONFIG_I2C_TAOS_EVM is not set | ||
744 | # CONFIG_I2C_STUB is not set | ||
745 | # CONFIG_I2C_TINY_USB is not set | ||
746 | |||
747 | # | ||
748 | # Miscellaneous I2C Chip support | ||
749 | # | ||
750 | # CONFIG_SENSORS_DS1337 is not set | ||
751 | # CONFIG_SENSORS_DS1374 is not set | ||
752 | # CONFIG_DS1682 is not set | ||
753 | # CONFIG_SENSORS_EEPROM is not set | ||
754 | # CONFIG_SENSORS_PCF8574 is not set | ||
755 | # CONFIG_SENSORS_PCA9539 is not set | ||
756 | # CONFIG_SENSORS_PCF8591 is not set | ||
757 | # CONFIG_SENSORS_MAX6875 is not set | ||
758 | # CONFIG_SENSORS_TSL2550 is not set | ||
759 | # CONFIG_I2C_DEBUG_CORE is not set | ||
760 | # CONFIG_I2C_DEBUG_ALGO is not set | ||
761 | # CONFIG_I2C_DEBUG_BUS is not set | ||
762 | # CONFIG_I2C_DEBUG_CHIP is not set | ||
763 | |||
764 | # | ||
765 | # SPI support | ||
766 | # | ||
767 | # CONFIG_SPI is not set | ||
768 | # CONFIG_SPI_MASTER is not set | ||
769 | CONFIG_W1=y | ||
770 | |||
771 | # | ||
772 | # 1-wire Bus Masters | ||
773 | # | ||
774 | # CONFIG_W1_MASTER_DS2490 is not set | ||
775 | # CONFIG_W1_MASTER_DS2482 is not set | ||
776 | # CONFIG_W1_MASTER_DS1WM is not set | ||
777 | |||
778 | # | ||
779 | # 1-wire Slaves | ||
780 | # | ||
781 | # CONFIG_W1_SLAVE_THERM is not set | ||
782 | # CONFIG_W1_SLAVE_SMEM is not set | ||
783 | # CONFIG_W1_SLAVE_DS2433 is not set | ||
784 | # CONFIG_W1_SLAVE_DS2760 is not set | ||
785 | # CONFIG_POWER_SUPPLY is not set | ||
786 | # CONFIG_HWMON is not set | ||
787 | CONFIG_MISC_DEVICES=y | ||
788 | # CONFIG_EEPROM_93CX6 is not set | ||
789 | |||
790 | # | ||
791 | # Multifunction device drivers | ||
792 | # | ||
793 | # CONFIG_MFD_SM501 is not set | ||
794 | # CONFIG_HTC_ASIC3 is not set | ||
795 | # CONFIG_HTC_ASIC3_DS1WM is not set | ||
796 | |||
797 | # | ||
798 | # Multi-Function Devices | ||
799 | # | ||
800 | # CONFIG_NEW_LEDS is not set | ||
801 | |||
802 | # | ||
803 | # Multimedia devices | ||
804 | # | ||
805 | CONFIG_VIDEO_DEV=y | ||
806 | CONFIG_VIDEO_V4L1=y | ||
807 | CONFIG_VIDEO_V4L1_COMPAT=y | ||
808 | CONFIG_VIDEO_V4L2=y | ||
809 | CONFIG_VIDEO_CAPTURE_DRIVERS=y | ||
810 | # CONFIG_VIDEO_ADV_DEBUG is not set | ||
811 | CONFIG_VIDEO_HELPER_CHIPS_AUTO=y | ||
812 | # CONFIG_VIDEO_CPIA is not set | ||
813 | # CONFIG_VIDEO_CPIA2 is not set | ||
814 | # CONFIG_VIDEO_SAA5246A is not set | ||
815 | # CONFIG_VIDEO_SAA5249 is not set | ||
816 | # CONFIG_TUNER_3036 is not set | ||
817 | # CONFIG_TUNER_TEA5761 is not set | ||
818 | CONFIG_V4L_USB_DRIVERS=y | ||
819 | # CONFIG_VIDEO_PVRUSB2 is not set | ||
820 | # CONFIG_VIDEO_EM28XX is not set | ||
821 | # CONFIG_VIDEO_USBVISION is not set | ||
822 | # CONFIG_USB_VICAM is not set | ||
823 | # CONFIG_USB_IBMCAM is not set | ||
824 | # CONFIG_USB_KONICAWC is not set | ||
825 | # CONFIG_USB_QUICKCAM_MESSENGER is not set | ||
826 | # CONFIG_USB_ET61X251 is not set | ||
827 | # CONFIG_VIDEO_OVCAMCHIP is not set | ||
828 | # CONFIG_USB_W9968CF is not set | ||
829 | # CONFIG_USB_OV511 is not set | ||
830 | # CONFIG_USB_SE401 is not set | ||
831 | # CONFIG_USB_SN9C102 is not set | ||
832 | # CONFIG_USB_STV680 is not set | ||
833 | # CONFIG_USB_ZC0301 is not set | ||
834 | # CONFIG_USB_PWC is not set | ||
835 | # CONFIG_USB_ZR364XX is not set | ||
836 | CONFIG_RADIO_ADAPTERS=y | ||
837 | # CONFIG_USB_DSBR is not set | ||
838 | # CONFIG_DVB_CORE is not set | ||
839 | CONFIG_DAB=y | ||
840 | # CONFIG_USB_DABUSB is not set | ||
841 | |||
842 | # | ||
843 | # Graphics support | ||
844 | # | ||
845 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set | ||
846 | |||
847 | # | ||
848 | # Display device support | ||
849 | # | ||
850 | # CONFIG_DISPLAY_SUPPORT is not set | ||
851 | # CONFIG_VGASTATE is not set | ||
852 | CONFIG_VIDEO_OUTPUT_CONTROL=y | ||
853 | CONFIG_FB=y | ||
854 | # CONFIG_FIRMWARE_EDID is not set | ||
855 | # CONFIG_FB_DDC is not set | ||
856 | CONFIG_FB_CFB_FILLRECT=y | ||
857 | CONFIG_FB_CFB_COPYAREA=y | ||
858 | CONFIG_FB_CFB_IMAGEBLIT=y | ||
859 | # CONFIG_FB_SYS_FILLRECT is not set | ||
860 | # CONFIG_FB_SYS_COPYAREA is not set | ||
861 | # CONFIG_FB_SYS_IMAGEBLIT is not set | ||
862 | # CONFIG_FB_SYS_FOPS is not set | ||
863 | CONFIG_FB_DEFERRED_IO=y | ||
864 | # CONFIG_FB_SVGALIB is not set | ||
865 | # CONFIG_FB_MACMODES is not set | ||
866 | # CONFIG_FB_BACKLIGHT is not set | ||
867 | CONFIG_FB_MODE_HELPERS=y | ||
868 | # CONFIG_FB_TILEBLITTING is not set | ||
869 | |||
870 | # | ||
871 | # Frame buffer hardware drivers | ||
872 | # | ||
873 | # CONFIG_FB_S1D13XXX is not set | ||
874 | CONFIG_FB_PXA=y | ||
875 | # CONFIG_FB_PXA_LCD_QVGA is not set | ||
876 | CONFIG_FB_PXA_LCD_VGA=y | ||
877 | # CONFIG_FB_PXA_OVERLAY is not set | ||
878 | # CONFIG_FB_PXA_PARAMETERS is not set | ||
879 | # CONFIG_FB_MBX is not set | ||
880 | # CONFIG_FB_VIRTUAL is not set | ||
881 | |||
882 | # | ||
883 | # Console display driver support | ||
884 | # | ||
885 | # CONFIG_VGA_CONSOLE is not set | ||
886 | CONFIG_DUMMY_CONSOLE=y | ||
887 | CONFIG_FRAMEBUFFER_CONSOLE=y | ||
888 | # CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set | ||
889 | # CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set | ||
890 | CONFIG_FONTS=y | ||
891 | # CONFIG_FONT_8x8 is not set | ||
892 | CONFIG_FONT_8x16=y | ||
893 | # CONFIG_FONT_6x11 is not set | ||
894 | # CONFIG_FONT_7x14 is not set | ||
895 | # CONFIG_FONT_PEARL_8x8 is not set | ||
896 | # CONFIG_FONT_ACORN_8x8 is not set | ||
897 | # CONFIG_FONT_MINI_4x6 is not set | ||
898 | # CONFIG_FONT_SUN8x16 is not set | ||
899 | # CONFIG_FONT_SUN12x22 is not set | ||
900 | # CONFIG_FONT_10x18 is not set | ||
901 | CONFIG_LOGO=y | ||
902 | CONFIG_LOGO_LINUX_MONO=y | ||
903 | CONFIG_LOGO_LINUX_VGA16=y | ||
904 | CONFIG_LOGO_LINUX_CLUT224=y | ||
905 | CONFIG_LOGO_OHAND_CLUT224=y | ||
906 | # CONFIG_LOGO_OZ240_CLUT224 is not set | ||
907 | # CONFIG_LOGO_OZ480_CLUT224 is not set | ||
908 | # CONFIG_LOGO_OZ640_CLUT224 is not set | ||
909 | |||
910 | # | ||
911 | # Sound | ||
912 | # | ||
913 | CONFIG_SOUND=y | ||
914 | |||
915 | # | ||
916 | # Advanced Linux Sound Architecture | ||
917 | # | ||
918 | CONFIG_SND=y | ||
919 | CONFIG_SND_TIMER=y | ||
920 | CONFIG_SND_PCM=y | ||
921 | # CONFIG_SND_SEQUENCER is not set | ||
922 | CONFIG_SND_OSSEMUL=y | ||
923 | CONFIG_SND_MIXER_OSS=y | ||
924 | CONFIG_SND_PCM_OSS=y | ||
925 | CONFIG_SND_PCM_OSS_PLUGINS=y | ||
926 | # CONFIG_SND_DYNAMIC_MINORS is not set | ||
927 | CONFIG_SND_SUPPORT_OLD_API=y | ||
928 | CONFIG_SND_VERBOSE_PROCFS=y | ||
929 | # CONFIG_SND_VERBOSE_PRINTK is not set | ||
930 | # CONFIG_SND_DEBUG is not set | ||
931 | |||
932 | # | ||
933 | # Generic devices | ||
934 | # | ||
935 | # CONFIG_SND_DUMMY is not set | ||
936 | # CONFIG_SND_MTPAV is not set | ||
937 | # CONFIG_SND_SERIAL_U16550 is not set | ||
938 | # CONFIG_SND_MPU401 is not set | ||
939 | |||
940 | # | ||
941 | # ALSA ARM devices | ||
942 | # | ||
943 | # CONFIG_SND_PXA2XX_AC97 is not set | ||
944 | |||
945 | # | ||
946 | # USB devices | ||
947 | # | ||
948 | # CONFIG_SND_USB_AUDIO is not set | ||
949 | # CONFIG_SND_USB_CAIAQ is not set | ||
950 | |||
951 | # | ||
952 | # System on Chip audio support | ||
953 | # | ||
954 | # CONFIG_SND_SOC is not set | ||
955 | |||
956 | # | ||
957 | # SoC Audio support for SuperH | ||
958 | # | ||
959 | |||
960 | # | ||
961 | # Open Sound System | ||
962 | # | ||
963 | # CONFIG_SOUND_PRIME is not set | ||
964 | CONFIG_HID_SUPPORT=y | ||
965 | CONFIG_HID=y | ||
966 | # CONFIG_HID_DEBUG is not set | ||
967 | |||
968 | # | ||
969 | # USB Input Devices | ||
970 | # | ||
971 | CONFIG_USB_HID=y | ||
972 | # CONFIG_USB_HIDINPUT_POWERBOOK is not set | ||
973 | # CONFIG_HID_FF is not set | ||
974 | # CONFIG_USB_HIDDEV is not set | ||
975 | CONFIG_USB_SUPPORT=y | ||
976 | CONFIG_USB_ARCH_HAS_HCD=y | ||
977 | # CONFIG_USB_ARCH_HAS_OHCI is not set | ||
978 | # CONFIG_USB_ARCH_HAS_EHCI is not set | ||
979 | CONFIG_USB=y | ||
980 | # CONFIG_USB_DEBUG is not set | ||
981 | |||
982 | # | ||
983 | # Miscellaneous USB options | ||
984 | # | ||
985 | # CONFIG_USB_DEVICEFS is not set | ||
986 | CONFIG_USB_DEVICE_CLASS=y | ||
987 | # CONFIG_USB_DYNAMIC_MINORS is not set | ||
988 | # CONFIG_USB_OTG is not set | ||
989 | |||
990 | # | ||
991 | # USB Host Controller Drivers | ||
992 | # | ||
993 | # CONFIG_USB_ISP116X_HCD is not set | ||
994 | # CONFIG_USB_SL811_HCD is not set | ||
995 | # CONFIG_USB_R8A66597_HCD is not set | ||
996 | |||
997 | # | ||
998 | # USB Device Class drivers | ||
999 | # | ||
1000 | CONFIG_USB_ACM=y | ||
1001 | # CONFIG_USB_PRINTER is not set | ||
1002 | |||
1003 | # | ||
1004 | # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' | ||
1005 | # | ||
1006 | |||
1007 | # | ||
1008 | # may also be needed; see USB_STORAGE Help for more information | ||
1009 | # | ||
1010 | CONFIG_USB_STORAGE=y | ||
1011 | # CONFIG_USB_STORAGE_DEBUG is not set | ||
1012 | # CONFIG_USB_STORAGE_DATAFAB is not set | ||
1013 | # CONFIG_USB_STORAGE_FREECOM is not set | ||
1014 | # CONFIG_USB_STORAGE_ISD200 is not set | ||
1015 | # CONFIG_USB_STORAGE_DPCM is not set | ||
1016 | # CONFIG_USB_STORAGE_USBAT is not set | ||
1017 | # CONFIG_USB_STORAGE_SDDR09 is not set | ||
1018 | # CONFIG_USB_STORAGE_SDDR55 is not set | ||
1019 | # CONFIG_USB_STORAGE_JUMPSHOT is not set | ||
1020 | # CONFIG_USB_STORAGE_ALAUDA is not set | ||
1021 | # CONFIG_USB_STORAGE_ONETOUCH is not set | ||
1022 | # CONFIG_USB_STORAGE_KARMA is not set | ||
1023 | # CONFIG_USB_LIBUSUAL is not set | ||
1024 | |||
1025 | # | ||
1026 | # USB Imaging devices | ||
1027 | # | ||
1028 | # CONFIG_USB_MDC800 is not set | ||
1029 | # CONFIG_USB_MICROTEK is not set | ||
1030 | CONFIG_USB_MON=y | ||
1031 | |||
1032 | # | ||
1033 | # USB port drivers | ||
1034 | # | ||
1035 | |||
1036 | # | ||
1037 | # USB Serial Converter support | ||
1038 | # | ||
1039 | # CONFIG_USB_SERIAL is not set | ||
1040 | |||
1041 | # | ||
1042 | # USB Miscellaneous drivers | ||
1043 | # | ||
1044 | # CONFIG_USB_EMI62 is not set | ||
1045 | # CONFIG_USB_EMI26 is not set | ||
1046 | # CONFIG_USB_ADUTUX is not set | ||
1047 | # CONFIG_USB_AUERSWALD is not set | ||
1048 | # CONFIG_USB_RIO500 is not set | ||
1049 | # CONFIG_USB_LEGOTOWER is not set | ||
1050 | # CONFIG_USB_LCD is not set | ||
1051 | # CONFIG_USB_BERRY_CHARGE is not set | ||
1052 | # CONFIG_USB_LED is not set | ||
1053 | # CONFIG_USB_CYPRESS_CY7C63 is not set | ||
1054 | # CONFIG_USB_CYTHERM is not set | ||
1055 | # CONFIG_USB_PHIDGET is not set | ||
1056 | # CONFIG_USB_IDMOUSE is not set | ||
1057 | # CONFIG_USB_FTDI_ELAN is not set | ||
1058 | # CONFIG_USB_APPLEDISPLAY is not set | ||
1059 | # CONFIG_USB_LD is not set | ||
1060 | # CONFIG_USB_TRANCEVIBRATOR is not set | ||
1061 | # CONFIG_USB_IOWARRIOR is not set | ||
1062 | |||
1063 | # | ||
1064 | # USB DSL modem support | ||
1065 | # | ||
1066 | |||
1067 | # | ||
1068 | # USB Gadget Support | ||
1069 | # | ||
1070 | CONFIG_USB_GADGET=y | ||
1071 | # CONFIG_USB_GADGET_DEBUG is not set | ||
1072 | # CONFIG_USB_GADGET_DEBUG_FILES is not set | ||
1073 | CONFIG_USB_GADGET_SELECTED=y | ||
1074 | # CONFIG_USB_GADGET_AMD5536UDC is not set | ||
1075 | # CONFIG_USB_GADGET_FSL_USB2 is not set | ||
1076 | # CONFIG_USB_GADGET_NET2280 is not set | ||
1077 | # CONFIG_USB_GADGET_PXA2XX is not set | ||
1078 | CONFIG_USB_GADGET_M66592=y | ||
1079 | CONFIG_USB_M66592=y | ||
1080 | # CONFIG_USB_GADGET_PXA27X is not set | ||
1081 | # CONFIG_USB_GADGET_GOKU is not set | ||
1082 | # CONFIG_USB_GADGET_LH7A40X is not set | ||
1083 | # CONFIG_USB_GADGET_OMAP is not set | ||
1084 | # CONFIG_USB_GADGET_S3C2410 is not set | ||
1085 | # CONFIG_USB_GADGET_AT91 is not set | ||
1086 | # CONFIG_USB_GADGET_DUMMY_HCD is not set | ||
1087 | CONFIG_USB_GADGET_DUALSPEED=y | ||
1088 | # CONFIG_USB_ZERO is not set | ||
1089 | # CONFIG_USB_ETH is not set | ||
1090 | # CONFIG_USB_GADGETFS is not set | ||
1091 | CONFIG_USB_FILE_STORAGE=y | ||
1092 | # CONFIG_USB_FILE_STORAGE_TEST is not set | ||
1093 | # CONFIG_USB_G_SERIAL is not set | ||
1094 | # CONFIG_USB_MIDI_GADGET is not set | ||
1095 | CONFIG_MMC=y | ||
1096 | # CONFIG_MMC_DEBUG is not set | ||
1097 | # CONFIG_MMC_UNSAFE_RESUME is not set | ||
1098 | |||
1099 | # | ||
1100 | # MMC/SD Card Drivers | ||
1101 | # | ||
1102 | CONFIG_MMC_BLOCK=y | ||
1103 | CONFIG_MMC_BLOCK_BOUNCE=y | ||
1104 | |||
1105 | # | ||
1106 | # MMC/SD Host Controller Drivers | ||
1107 | # | ||
1108 | CONFIG_MMC_PXA=y | ||
1109 | CONFIG_RTC_LIB=y | ||
1110 | CONFIG_RTC_CLASS=y | ||
1111 | CONFIG_RTC_HCTOSYS=y | ||
1112 | CONFIG_RTC_HCTOSYS_DEVICE="rtc0" | ||
1113 | # CONFIG_RTC_DEBUG is not set | ||
1114 | |||
1115 | # | ||
1116 | # RTC interfaces | ||
1117 | # | ||
1118 | CONFIG_RTC_INTF_SYSFS=y | ||
1119 | CONFIG_RTC_INTF_PROC=y | ||
1120 | CONFIG_RTC_INTF_DEV=y | ||
1121 | # CONFIG_RTC_INTF_DEV_UIE_EMUL is not set | ||
1122 | # CONFIG_RTC_DRV_TEST is not set | ||
1123 | |||
1124 | # | ||
1125 | # I2C RTC drivers | ||
1126 | # | ||
1127 | # CONFIG_RTC_DRV_DS1307 is not set | ||
1128 | # CONFIG_RTC_DRV_DS1672 is not set | ||
1129 | # CONFIG_RTC_DRV_MAX6900 is not set | ||
1130 | # CONFIG_RTC_DRV_RS5C372 is not set | ||
1131 | # CONFIG_RTC_DRV_ISL1208 is not set | ||
1132 | # CONFIG_RTC_DRV_X1205 is not set | ||
1133 | # CONFIG_RTC_DRV_PCF8563 is not set | ||
1134 | # CONFIG_RTC_DRV_PCF8583 is not set | ||
1135 | # CONFIG_RTC_DRV_M41T80 is not set | ||
1136 | |||
1137 | # | ||
1138 | # SPI RTC drivers | ||
1139 | # | ||
1140 | |||
1141 | # | ||
1142 | # Platform RTC drivers | ||
1143 | # | ||
1144 | # CONFIG_RTC_DRV_CMOS is not set | ||
1145 | # CONFIG_RTC_DRV_DS1553 is not set | ||
1146 | # CONFIG_RTC_DRV_STK17TA8 is not set | ||
1147 | # CONFIG_RTC_DRV_DS1742 is not set | ||
1148 | # CONFIG_RTC_DRV_M48T86 is not set | ||
1149 | # CONFIG_RTC_DRV_M48T59 is not set | ||
1150 | # CONFIG_RTC_DRV_V3020 is not set | ||
1151 | |||
1152 | # | ||
1153 | # on-CPU RTC drivers | ||
1154 | # | ||
1155 | CONFIG_RTC_DRV_SA1100=y | ||
1156 | |||
1157 | # | ||
1158 | # DMA Engine support | ||
1159 | # | ||
1160 | # CONFIG_DMA_ENGINE is not set | ||
1161 | |||
1162 | # | ||
1163 | # DMA Clients | ||
1164 | # | ||
1165 | |||
1166 | # | ||
1167 | # DMA Devices | ||
1168 | # | ||
1169 | |||
1170 | # | ||
1171 | # File systems | ||
1172 | # | ||
1173 | CONFIG_EXT2_FS=y | ||
1174 | # CONFIG_EXT2_FS_XATTR is not set | ||
1175 | # CONFIG_EXT2_FS_XIP is not set | ||
1176 | # CONFIG_EXT3_FS is not set | ||
1177 | # CONFIG_EXT4DEV_FS is not set | ||
1178 | # CONFIG_REISERFS_FS is not set | ||
1179 | # CONFIG_JFS_FS is not set | ||
1180 | # CONFIG_FS_POSIX_ACL is not set | ||
1181 | # CONFIG_XFS_FS is not set | ||
1182 | # CONFIG_GFS2_FS is not set | ||
1183 | # CONFIG_OCFS2_FS is not set | ||
1184 | # CONFIG_MINIX_FS is not set | ||
1185 | # CONFIG_ROMFS_FS is not set | ||
1186 | CONFIG_INOTIFY=y | ||
1187 | CONFIG_INOTIFY_USER=y | ||
1188 | # CONFIG_QUOTA is not set | ||
1189 | CONFIG_DNOTIFY=y | ||
1190 | # CONFIG_AUTOFS_FS is not set | ||
1191 | # CONFIG_AUTOFS4_FS is not set | ||
1192 | # CONFIG_FUSE_FS is not set | ||
1193 | |||
1194 | # | ||
1195 | # CD-ROM/DVD Filesystems | ||
1196 | # | ||
1197 | # CONFIG_ISO9660_FS is not set | ||
1198 | # CONFIG_UDF_FS is not set | ||
1199 | |||
1200 | # | ||
1201 | # DOS/FAT/NT Filesystems | ||
1202 | # | ||
1203 | CONFIG_FAT_FS=y | ||
1204 | CONFIG_MSDOS_FS=y | ||
1205 | CONFIG_VFAT_FS=y | ||
1206 | CONFIG_FAT_DEFAULT_CODEPAGE=437 | ||
1207 | CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1" | ||
1208 | # CONFIG_NTFS_FS is not set | ||
1209 | |||
1210 | # | ||
1211 | # Pseudo filesystems | ||
1212 | # | ||
1213 | CONFIG_PROC_FS=y | ||
1214 | CONFIG_PROC_SYSCTL=y | ||
1215 | CONFIG_SYSFS=y | ||
1216 | CONFIG_TMPFS=y | ||
1217 | # CONFIG_TMPFS_POSIX_ACL is not set | ||
1218 | # CONFIG_HUGETLB_PAGE is not set | ||
1219 | CONFIG_RAMFS=y | ||
1220 | # CONFIG_CONFIGFS_FS is not set | ||
1221 | |||
1222 | # | ||
1223 | # Miscellaneous filesystems | ||
1224 | # | ||
1225 | # CONFIG_ADFS_FS is not set | ||
1226 | # CONFIG_AFFS_FS is not set | ||
1227 | # CONFIG_HFS_FS is not set | ||
1228 | # CONFIG_HFSPLUS_FS is not set | ||
1229 | # CONFIG_BEFS_FS is not set | ||
1230 | # CONFIG_BFS_FS is not set | ||
1231 | # CONFIG_EFS_FS is not set | ||
1232 | CONFIG_JFFS2_FS=y | ||
1233 | CONFIG_JFFS2_FS_DEBUG=0 | ||
1234 | CONFIG_JFFS2_FS_WRITEBUFFER=y | ||
1235 | # CONFIG_JFFS2_SUMMARY is not set | ||
1236 | # CONFIG_JFFS2_FS_XATTR is not set | ||
1237 | # CONFIG_JFFS2_SYSFS is not set | ||
1238 | CONFIG_JFFS2_COMPRESSION_OPTIONS=y | ||
1239 | CONFIG_JFFS2_ZLIB=y | ||
1240 | CONFIG_JFFS2_LZO=y | ||
1241 | CONFIG_JFFS2_RTIME=y | ||
1242 | # CONFIG_JFFS2_RUBIN is not set | ||
1243 | # CONFIG_JFFS2_CMODE_NONE is not set | ||
1244 | CONFIG_JFFS2_CMODE_PRIORITY=y | ||
1245 | # CONFIG_JFFS2_CMODE_SIZE is not set | ||
1246 | # CONFIG_JFFS2_CMODE_FAVOURLZO is not set | ||
1247 | # CONFIG_CRAMFS is not set | ||
1248 | # CONFIG_SQUASHFS is not set | ||
1249 | # CONFIG_VXFS_FS is not set | ||
1250 | # CONFIG_HPFS_FS is not set | ||
1251 | # CONFIG_QNX4FS_FS is not set | ||
1252 | # CONFIG_SYSV_FS is not set | ||
1253 | # CONFIG_UFS_FS is not set | ||
1254 | |||
1255 | # | ||
1256 | # Network File Systems | ||
1257 | # | ||
1258 | CONFIG_NFS_FS=y | ||
1259 | CONFIG_NFS_V3=y | ||
1260 | # CONFIG_NFS_V3_ACL is not set | ||
1261 | CONFIG_NFS_V4=y | ||
1262 | # CONFIG_NFS_DIRECTIO is not set | ||
1263 | # CONFIG_NFSD is not set | ||
1264 | # CONFIG_ROOT_NFS is not set | ||
1265 | CONFIG_LOCKD=y | ||
1266 | CONFIG_LOCKD_V4=y | ||
1267 | CONFIG_NFS_COMMON=y | ||
1268 | CONFIG_SUNRPC=y | ||
1269 | CONFIG_SUNRPC_GSS=y | ||
1270 | # CONFIG_SUNRPC_BIND34 is not set | ||
1271 | CONFIG_RPCSEC_GSS_KRB5=y | ||
1272 | # CONFIG_RPCSEC_GSS_SPKM3 is not set | ||
1273 | # CONFIG_SMB_FS is not set | ||
1274 | # CONFIG_CIFS is not set | ||
1275 | # CONFIG_NCP_FS is not set | ||
1276 | # CONFIG_CODA_FS is not set | ||
1277 | # CONFIG_AFS_FS is not set | ||
1278 | |||
1279 | # | ||
1280 | # Partition Types | ||
1281 | # | ||
1282 | CONFIG_PARTITION_ADVANCED=y | ||
1283 | # CONFIG_ACORN_PARTITION is not set | ||
1284 | # CONFIG_OSF_PARTITION is not set | ||
1285 | # CONFIG_AMIGA_PARTITION is not set | ||
1286 | # CONFIG_ATARI_PARTITION is not set | ||
1287 | # CONFIG_MAC_PARTITION is not set | ||
1288 | CONFIG_MSDOS_PARTITION=y | ||
1289 | # CONFIG_BSD_DISKLABEL is not set | ||
1290 | # CONFIG_MINIX_SUBPARTITION is not set | ||
1291 | # CONFIG_SOLARIS_X86_PARTITION is not set | ||
1292 | # CONFIG_UNIXWARE_DISKLABEL is not set | ||
1293 | # CONFIG_LDM_PARTITION is not set | ||
1294 | # CONFIG_SGI_PARTITION is not set | ||
1295 | # CONFIG_ULTRIX_PARTITION is not set | ||
1296 | # CONFIG_SUN_PARTITION is not set | ||
1297 | # CONFIG_KARMA_PARTITION is not set | ||
1298 | # CONFIG_EFI_PARTITION is not set | ||
1299 | # CONFIG_SYSV68_PARTITION is not set | ||
1300 | |||
1301 | # | ||
1302 | # Native Language Support | ||
1303 | # | ||
1304 | CONFIG_NLS=y | ||
1305 | CONFIG_NLS_DEFAULT="iso8859-1" | ||
1306 | CONFIG_NLS_CODEPAGE_437=y | ||
1307 | # CONFIG_NLS_CODEPAGE_737 is not set | ||
1308 | # CONFIG_NLS_CODEPAGE_775 is not set | ||
1309 | # CONFIG_NLS_CODEPAGE_850 is not set | ||
1310 | # CONFIG_NLS_CODEPAGE_852 is not set | ||
1311 | # CONFIG_NLS_CODEPAGE_855 is not set | ||
1312 | # CONFIG_NLS_CODEPAGE_857 is not set | ||
1313 | # CONFIG_NLS_CODEPAGE_860 is not set | ||
1314 | # CONFIG_NLS_CODEPAGE_861 is not set | ||
1315 | # CONFIG_NLS_CODEPAGE_862 is not set | ||
1316 | # CONFIG_NLS_CODEPAGE_863 is not set | ||
1317 | # CONFIG_NLS_CODEPAGE_864 is not set | ||
1318 | # CONFIG_NLS_CODEPAGE_865 is not set | ||
1319 | # CONFIG_NLS_CODEPAGE_866 is not set | ||
1320 | # CONFIG_NLS_CODEPAGE_869 is not set | ||
1321 | # CONFIG_NLS_CODEPAGE_936 is not set | ||
1322 | # CONFIG_NLS_CODEPAGE_950 is not set | ||
1323 | # CONFIG_NLS_CODEPAGE_932 is not set | ||
1324 | # CONFIG_NLS_CODEPAGE_949 is not set | ||
1325 | # CONFIG_NLS_CODEPAGE_874 is not set | ||
1326 | # CONFIG_NLS_ISO8859_8 is not set | ||
1327 | # CONFIG_NLS_CODEPAGE_1250 is not set | ||
1328 | # CONFIG_NLS_CODEPAGE_1251 is not set | ||
1329 | # CONFIG_NLS_ASCII is not set | ||
1330 | CONFIG_NLS_ISO8859_1=y | ||
1331 | # CONFIG_NLS_ISO8859_2 is not set | ||
1332 | # CONFIG_NLS_ISO8859_3 is not set | ||
1333 | # CONFIG_NLS_ISO8859_4 is not set | ||
1334 | # CONFIG_NLS_ISO8859_5 is not set | ||
1335 | # CONFIG_NLS_ISO8859_6 is not set | ||
1336 | # CONFIG_NLS_ISO8859_7 is not set | ||
1337 | # CONFIG_NLS_ISO8859_9 is not set | ||
1338 | # CONFIG_NLS_ISO8859_13 is not set | ||
1339 | # CONFIG_NLS_ISO8859_14 is not set | ||
1340 | # CONFIG_NLS_ISO8859_15 is not set | ||
1341 | # CONFIG_NLS_KOI8_R is not set | ||
1342 | # CONFIG_NLS_KOI8_U is not set | ||
1343 | # CONFIG_NLS_UTF8 is not set | ||
1344 | |||
1345 | # | ||
1346 | # Distributed Lock Manager | ||
1347 | # | ||
1348 | # CONFIG_DLM is not set | ||
1349 | |||
1350 | # | ||
1351 | # Profiling support | ||
1352 | # | ||
1353 | CONFIG_PROFILING=y | ||
1354 | # CONFIG_OPROFILE is not set | ||
1355 | |||
1356 | # | ||
1357 | # Kernel hacking | ||
1358 | # | ||
1359 | # CONFIG_PRINTK_TIME is not set | ||
1360 | CONFIG_ENABLE_MUST_CHECK=y | ||
1361 | CONFIG_MAGIC_SYSRQ=y | ||
1362 | # CONFIG_UNUSED_SYMBOLS is not set | ||
1363 | CONFIG_DEBUG_FS=y | ||
1364 | # CONFIG_HEADERS_CHECK is not set | ||
1365 | CONFIG_DEBUG_KERNEL=y | ||
1366 | # CONFIG_DEBUG_SHIRQ is not set | ||
1367 | CONFIG_DETECT_SOFTLOCKUP=y | ||
1368 | CONFIG_SCHED_DEBUG=y | ||
1369 | # CONFIG_SCHEDSTATS is not set | ||
1370 | # CONFIG_TIMER_STATS is not set | ||
1371 | # CONFIG_DEBUG_SLAB is not set | ||
1372 | # CONFIG_DEBUG_RT_MUTEXES is not set | ||
1373 | # CONFIG_RT_MUTEX_TESTER is not set | ||
1374 | # CONFIG_DEBUG_SPINLOCK is not set | ||
1375 | # CONFIG_DEBUG_MUTEXES is not set | ||
1376 | # CONFIG_DEBUG_LOCK_ALLOC is not set | ||
1377 | # CONFIG_PROVE_LOCKING is not set | ||
1378 | # CONFIG_LOCK_STAT is not set | ||
1379 | # CONFIG_DEBUG_SPINLOCK_SLEEP is not set | ||
1380 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set | ||
1381 | # CONFIG_DEBUG_KOBJECT is not set | ||
1382 | CONFIG_DEBUG_BUGVERBOSE=y | ||
1383 | CONFIG_DEBUG_INFO=y | ||
1384 | # CONFIG_DEBUG_VM is not set | ||
1385 | # CONFIG_DEBUG_LIST is not set | ||
1386 | CONFIG_FRAME_POINTER=y | ||
1387 | CONFIG_FORCED_INLINING=y | ||
1388 | # CONFIG_RCU_TORTURE_TEST is not set | ||
1389 | # CONFIG_FAULT_INJECTION is not set | ||
1390 | CONFIG_DEBUG_USER=y | ||
1391 | CONFIG_DEBUG_ERRORS=y | ||
1392 | CONFIG_DEBUG_LL=y | ||
1393 | # CONFIG_DEBUG_ICEDCC is not set | ||
1394 | |||
1395 | # | ||
1396 | # Security options | ||
1397 | # | ||
1398 | # CONFIG_KEYS is not set | ||
1399 | # CONFIG_SECURITY is not set | ||
1400 | CONFIG_CRYPTO=y | ||
1401 | CONFIG_CRYPTO_ALGAPI=y | ||
1402 | CONFIG_CRYPTO_BLKCIPHER=y | ||
1403 | CONFIG_CRYPTO_MANAGER=y | ||
1404 | # CONFIG_CRYPTO_HMAC is not set | ||
1405 | # CONFIG_CRYPTO_XCBC is not set | ||
1406 | # CONFIG_CRYPTO_NULL is not set | ||
1407 | # CONFIG_CRYPTO_MD4 is not set | ||
1408 | CONFIG_CRYPTO_MD5=y | ||
1409 | # CONFIG_CRYPTO_SHA1 is not set | ||
1410 | # CONFIG_CRYPTO_SHA256 is not set | ||
1411 | # CONFIG_CRYPTO_SHA512 is not set | ||
1412 | # CONFIG_CRYPTO_WP512 is not set | ||
1413 | # CONFIG_CRYPTO_TGR192 is not set | ||
1414 | # CONFIG_CRYPTO_GF128MUL is not set | ||
1415 | CONFIG_CRYPTO_ECB=y | ||
1416 | CONFIG_CRYPTO_CBC=y | ||
1417 | CONFIG_CRYPTO_PCBC=y | ||
1418 | # CONFIG_CRYPTO_LRW is not set | ||
1419 | # CONFIG_CRYPTO_CRYPTD is not set | ||
1420 | CONFIG_CRYPTO_DES=y | ||
1421 | # CONFIG_CRYPTO_FCRYPT is not set | ||
1422 | # CONFIG_CRYPTO_BLOWFISH is not set | ||
1423 | # CONFIG_CRYPTO_TWOFISH is not set | ||
1424 | # CONFIG_CRYPTO_SERPENT is not set | ||
1425 | # CONFIG_CRYPTO_AES is not set | ||
1426 | # CONFIG_CRYPTO_CAST5 is not set | ||
1427 | # CONFIG_CRYPTO_CAST6 is not set | ||
1428 | # CONFIG_CRYPTO_TEA is not set | ||
1429 | # CONFIG_CRYPTO_ARC4 is not set | ||
1430 | # CONFIG_CRYPTO_KHAZAD is not set | ||
1431 | # CONFIG_CRYPTO_ANUBIS is not set | ||
1432 | # CONFIG_CRYPTO_DEFLATE is not set | ||
1433 | # CONFIG_CRYPTO_LZO is not set | ||
1434 | # CONFIG_CRYPTO_MICHAEL_MIC is not set | ||
1435 | # CONFIG_CRYPTO_CRC32C is not set | ||
1436 | # CONFIG_CRYPTO_CAMELLIA is not set | ||
1437 | # CONFIG_CRYPTO_TEST is not set | ||
1438 | CONFIG_CRYPTO_HW=y | ||
1439 | |||
1440 | # | ||
1441 | # Library routines | ||
1442 | # | ||
1443 | CONFIG_BITREVERSE=y | ||
1444 | CONFIG_CRC_CCITT=y | ||
1445 | # CONFIG_CRC16 is not set | ||
1446 | # CONFIG_CRC_ITU_T is not set | ||
1447 | CONFIG_CRC32=y | ||
1448 | # CONFIG_CRC7 is not set | ||
1449 | # CONFIG_LIBCRC32C is not set | ||
1450 | CONFIG_ZLIB_INFLATE=y | ||
1451 | CONFIG_ZLIB_DEFLATE=y | ||
1452 | CONFIG_LZO_COMPRESS=y | ||
1453 | CONFIG_LZO_DECOMPRESS=y | ||
1454 | CONFIG_PLIST=y | ||
1455 | CONFIG_HAS_IOMEM=y | ||
1456 | CONFIG_HAS_IOPORT=y | ||
1457 | CONFIG_HAS_DMA=y | ||
diff --git a/meta/packages/linux/linux-rp-2.6.22+2.6.23-rc4/irq-gpio-offby1.patch b/meta/packages/linux/linux-rp-2.6.22+2.6.23-rc4/irq-gpio-offby1.patch new file mode 100644 index 0000000000..fcf5bb3ae0 --- /dev/null +++ b/meta/packages/linux/linux-rp-2.6.22+2.6.23-rc4/irq-gpio-offby1.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | --- | ||
2 | arch/arm/mach-pxa/irq.c | 2 +- | ||
3 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
4 | |||
5 | Index: linux-2.6.22/arch/arm/mach-pxa/irq.c | ||
6 | =================================================================== | ||
7 | --- linux-2.6.22.orig/arch/arm/mach-pxa/irq.c 2007-09-25 01:42:57.000000000 +0200 | ||
8 | +++ linux-2.6.22/arch/arm/mach-pxa/irq.c 2007-09-25 01:43:03.000000000 +0200 | ||
9 | @@ -301,7 +301,7 @@ | ||
10 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | ||
11 | } | ||
12 | |||
13 | - for (irq = IRQ_GPIO(2); irq <= IRQ_GPIO(gpio_nr); irq++) { | ||
14 | + for (irq = IRQ_GPIO(2); irq < IRQ_GPIO(gpio_nr); irq++) { | ||
15 | set_irq_chip(irq, &pxa_muxed_gpio_chip); | ||
16 | set_irq_handler(irq, handle_edge_irq); | ||
17 | set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); | ||
diff --git a/meta/packages/linux/linux-rp-2.6.22+2.6.23-rc4/zylonite-boot.patch b/meta/packages/linux/linux-rp-2.6.22+2.6.23-rc4/zylonite-boot.patch new file mode 100644 index 0000000000..f41928eca5 --- /dev/null +++ b/meta/packages/linux/linux-rp-2.6.22+2.6.23-rc4/zylonite-boot.patch | |||
@@ -0,0 +1,45 @@ | |||
1 | From 04c42f566c68b757fdadf54e0e0f9dfe9f3f9b06 Mon Sep 17 00:00:00 2001 | ||
2 | From: eric miao <eric.miao@marvell.com> | ||
3 | Date: Tue, 19 Jun 2007 16:42:53 +0800 | ||
4 | Subject: [PATCH] [PATCH] make zylonite boot | ||
5 | |||
6 | 1. reuse head-xscale.S for XSC3 | ||
7 | |||
8 | 2. add a workaround for machine ID assignment, which should be done | ||
9 | by boot loader | ||
10 | --- | ||
11 | arch/arm/boot/compressed/Makefile | 4 ++++ | ||
12 | arch/arm/boot/compressed/head-xscale.S | 5 +++++ | ||
13 | 2 files changed, 9 insertions(+) | ||
14 | |||
15 | Index: linux-2.6-pxa3/arch/arm/boot/compressed/Makefile | ||
16 | =================================================================== | ||
17 | --- linux-2.6-pxa3.orig/arch/arm/boot/compressed/Makefile 2007-09-24 11:25:57.000000000 +0200 | ||
18 | +++ linux-2.6-pxa3/arch/arm/boot/compressed/Makefile 2007-09-24 12:26:53.000000000 +0200 | ||
19 | @@ -40,6 +40,10 @@ | ||
20 | OBJS += head-xscale.o | ||
21 | endif | ||
22 | |||
23 | +ifeq ($(CONFIG_CPU_XSC3),y) | ||
24 | +OBJS += head-xscale.o | ||
25 | +endif | ||
26 | + | ||
27 | ifeq ($(CONFIG_PXA_SHARPSL),y) | ||
28 | OBJS += head-sharpsl.o | ||
29 | endif | ||
30 | Index: linux-2.6-pxa3/arch/arm/boot/compressed/head-xscale.S | ||
31 | =================================================================== | ||
32 | --- linux-2.6-pxa3.orig/arch/arm/boot/compressed/head-xscale.S 2007-09-24 11:42:27.000000000 +0200 | ||
33 | +++ linux-2.6-pxa3/arch/arm/boot/compressed/head-xscale.S 2007-09-24 12:26:02.000000000 +0200 | ||
34 | @@ -33,6 +33,11 @@ | ||
35 | bic r0, r0, #0x1000 @ clear Icache | ||
36 | mcr p15, 0, r0, c1, c0, 0 | ||
37 | |||
38 | +#ifdef CONFIG_MACH_ZYLONITE | ||
39 | + mov r7, #(MACH_TYPE_ZYLONITE & 0xff) | ||
40 | + orr r7, r7, #(MACH_TYPE_ZYLONITE & 0xff00) | ||
41 | +#endif | ||
42 | + | ||
43 | #ifdef CONFIG_ARCH_COTULLA_IDP | ||
44 | mov r7, #MACH_TYPE_COTULLA_IDP | ||
45 | #endif | ||
diff --git a/meta/packages/linux/linux-rp.inc b/meta/packages/linux/linux-rp.inc index aa40ee3041..ee9bbfe7f6 100644 --- a/meta/packages/linux/linux-rp.inc +++ b/meta/packages/linux/linux-rp.inc | |||
@@ -15,7 +15,7 @@ TKSRC = "http://www.informatik.hu-berlin.de/~tkunze/zaurus/patches" | |||
15 | 15 | ||
16 | EXTRA_OEMAKE = "OPENZAURUS_RELEASE=-${DISTRO_VERSION}" | 16 | EXTRA_OEMAKE = "OPENZAURUS_RELEASE=-${DISTRO_VERSION}" |
17 | COMPATIBLE_HOST = "(arm|i.86).*-linux" | 17 | COMPATIBLE_HOST = "(arm|i.86).*-linux" |
18 | COMPATIBLE_MACHINE = '(collie|poodle|c7x0|akita|spitz|tosa|hx2000|qemuarm|qemux86|bootcdx86|htcuniversal)' | 18 | COMPATIBLE_MACHINE = '(collie|poodle|c7x0|akita|spitz|tosa|hx2000|qemuarm|qemux86|bootcdx86|htcuniversal|zylonite)' |
19 | 19 | ||
20 | KERNEL_CUSTOM_NAME ?= "" | 20 | KERNEL_CUSTOM_NAME ?= "" |
21 | KERNEL_DEPLOY_NAME ?= "${KERNEL_IMAGETYPE}-${PV}-${KERNEL_CUSTOM_NAME}${MACHINE}-${DATETIME}.bin" | 21 | KERNEL_DEPLOY_NAME ?= "${KERNEL_IMAGETYPE}-${PV}-${KERNEL_CUSTOM_NAME}${MACHINE}-${DATETIME}.bin" |
@@ -25,6 +25,7 @@ KERNEL_DEFCONFIG ?= "defconfig-${MACHINE}" | |||
25 | CMDLINE_CON = "console=ttyS0,115200n8 console=tty1 noinitrd" | 25 | CMDLINE_CON = "console=ttyS0,115200n8 console=tty1 noinitrd" |
26 | CMDLINE_CON_collie = "console=ttySA0,115200n8 console=tty1 noinitrd" | 26 | CMDLINE_CON_collie = "console=ttySA0,115200n8 console=tty1 noinitrd" |
27 | CMDLINE_CON_qemuarm = "console=ttyAMA0,115200n8 console=tty1 noinitrd" | 27 | CMDLINE_CON_qemuarm = "console=ttyAMA0,115200n8 console=tty1 noinitrd" |
28 | CMDLINE_CON_zylonite = "console=ttyS0,38400" | ||
28 | CMDLINE_ROOT ?= "root=/dev/mtdblock2 rootfstype=jffs2" | 29 | CMDLINE_ROOT ?= "root=/dev/mtdblock2 rootfstype=jffs2" |
29 | CMDLINE_ROOT_spitz ?= "root=/dev/hda1 rootfstype=ext3 rootdelay=1 rw" | 30 | CMDLINE_ROOT_spitz ?= "root=/dev/hda1 rootfstype=ext3 rootdelay=1 rw" |
30 | #CMDLINE_ROOT_spitz = "root=/dev/mmcblk0p2 rootfstype=ext2 rootdelay=3 rw" | 31 | #CMDLINE_ROOT_spitz = "root=/dev/mmcblk0p2 rootfstype=ext2 rootdelay=3 rw" |
@@ -38,6 +39,7 @@ export mem = '${@bb.data.getVar("COLLIE_MEMORY_SIZE",d,1) or "32"}' | |||
38 | export rd = '${@bb.data.getVar("COLLIE_RAMDISK_SIZE",d,1) or "32"}' | 39 | export rd = '${@bb.data.getVar("COLLIE_RAMDISK_SIZE",d,1) or "32"}' |
39 | 40 | ||
40 | CMDLINE_MEM_collie = "mem=${mem}M" | 41 | CMDLINE_MEM_collie = "mem=${mem}M" |
42 | CMDLINE_MEM_zylonite = "mem=64M" | ||
41 | CMDLINE_ROTATE_spitz = "fbcon=rotate:1" | 43 | CMDLINE_ROTATE_spitz = "fbcon=rotate:1" |
42 | CMDLINE_ROTATE_akita = "fbcon=rotate:1" | 44 | CMDLINE_ROTATE_akita = "fbcon=rotate:1" |
43 | CMDLINE_ROTATE_collie = "fbcon=rotate:1" | 45 | CMDLINE_ROTATE_collie = "fbcon=rotate:1" |
diff --git a/meta/packages/linux/linux-rp_2.6.22+2.6.23-rc4.bb b/meta/packages/linux/linux-rp_2.6.22+2.6.23-rc4.bb index 7f92a2886f..118c2ef72e 100644 --- a/meta/packages/linux/linux-rp_2.6.22+2.6.23-rc4.bb +++ b/meta/packages/linux/linux-rp_2.6.22+2.6.23-rc4.bb | |||
@@ -4,6 +4,7 @@ PR = "r3" | |||
4 | 4 | ||
5 | DEFAULT_PREFERENCE = "-1" | 5 | DEFAULT_PREFERENCE = "-1" |
6 | DEFAULT_PREFERENCE_htcuniversal = "1" | 6 | DEFAULT_PREFERENCE_htcuniversal = "1" |
7 | DEFAULT_PREFERENCE_zylonite = "1" | ||
7 | 8 | ||
8 | # Handy URLs | 9 | # Handy URLs |
9 | # git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git;protocol=git;tag=ef7d1b244fa6c94fb76d5f787b8629df64ea4046 | 10 | # git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git;protocol=git;tag=ef7d1b244fa6c94fb76d5f787b8629df64ea4046 |
@@ -62,6 +63,7 @@ SRC_URI = "http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.tar.bz2 \ | |||
62 | file://defconfig-qemux86 \ | 63 | file://defconfig-qemux86 \ |
63 | file://defconfig-bootcdx86 \ | 64 | file://defconfig-bootcdx86 \ |
64 | file://defconfig-htcuniversal \ | 65 | file://defconfig-htcuniversal \ |
66 | file://defconfig-zylonite \ | ||
65 | file://defconfig-tosa " | 67 | file://defconfig-tosa " |
66 | 68 | ||
67 | # FIXMEs before made default | 69 | # FIXMEs before made default |
@@ -115,4 +117,10 @@ SRC_URI_append_tosa = "\ | |||
115 | 117 | ||
116 | SRC_URI_append_htcuniversal ="file://htcuni-acx.patch;patch=1;status=external" | 118 | SRC_URI_append_htcuniversal ="file://htcuni-acx.patch;patch=1;status=external" |
117 | 119 | ||
120 | SRC_URI_append_zylonite ="\ | ||
121 | file://arm_pxa_20070923.patch;patch=1 \ | ||
122 | file://irq-gpio-offby1.patch;patch=1 \ | ||
123 | file://zylonite-boot.patch;patch=1 \ | ||
124 | " | ||
125 | |||
118 | S = "${WORKDIR}/linux-2.6.22" | 126 | S = "${WORKDIR}/linux-2.6.22" |