blob: da3edcc9ac7747d99958f5457124adfcdb5dac7c [file] [log] [blame]
eric miao2c8086a2007-09-11 19:13:17 -07001/*
2 * linux/arch/arm/mach-pxa/pxa3xx.c
3 *
4 * code specific to pxa3xx aka Monahans
5 *
6 * Copyright (C) 2006 Marvell International Ltd.
7 *
eric miaoe9bba8e2007-10-30 08:01:38 +01008 * 2007-09-02: eric miao <eric.miao@marvell.com>
eric miao2c8086a2007-09-11 19:13:17 -07009 * initial version
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
14 */
15
16#include <linux/module.h>
17#include <linux/kernel.h>
18#include <linux/init.h>
19#include <linux/pm.h>
20#include <linux/platform_device.h>
21#include <linux/irq.h>
Russell King7b5dea12008-01-07 22:18:30 +000022#include <linux/io.h>
eric miaoc01655042008-01-28 23:00:02 +000023#include <linux/sysdev.h>
eric miao2c8086a2007-09-11 19:13:17 -070024
Marek Vasut851982c2010-10-11 02:20:19 +020025#include <asm/mach/map.h>
Russell Kinga09e64f2008-08-05 16:14:15 +010026#include <mach/hardware.h>
Eric Miaoa58fbcd2009-01-06 17:37:37 +080027#include <mach/gpio.h>
Russell Kinga09e64f2008-08-05 16:14:15 +010028#include <mach/pxa3xx-regs.h>
Russell Kingafd2fc02008-08-07 11:05:25 +010029#include <mach/reset.h>
Russell Kinga09e64f2008-08-05 16:14:15 +010030#include <mach/ohci.h>
31#include <mach/pm.h>
32#include <mach/dma.h>
Mike Rapoportbf293ae2009-11-11 11:36:59 +020033#include <mach/regs-intc.h>
Marek Vasutad68bb92010-11-03 16:29:35 +010034#include <mach/smemc.h>
Eric Miaof0a83702009-04-13 15:03:11 +080035#include <plat/i2c.h>
eric miao2c8086a2007-09-11 19:13:17 -070036
37#include "generic.h"
38#include "devices.h"
39#include "clock.h"
40
Mike Rapoportbf293ae2009-11-11 11:36:59 +020041#define PECR_IE(n) ((1 << ((n) * 2)) << 28)
42#define PECR_IS(n) ((1 << ((n) * 2)) << 29)
43
Russell King8c3abc72008-11-08 20:25:21 +000044static DEFINE_PXA3_CKEN(pxa3xx_ffuart, FFUART, 14857000, 1);
45static DEFINE_PXA3_CKEN(pxa3xx_btuart, BTUART, 14857000, 1);
46static DEFINE_PXA3_CKEN(pxa3xx_stuart, STUART, 14857000, 1);
47static DEFINE_PXA3_CKEN(pxa3xx_i2c, I2C, 32842000, 0);
48static DEFINE_PXA3_CKEN(pxa3xx_udc, UDC, 48000000, 5);
49static DEFINE_PXA3_CKEN(pxa3xx_usbh, USBH, 48000000, 0);
Igor Grinberge68750a2009-11-04 14:14:39 +020050static DEFINE_PXA3_CKEN(pxa3xx_u2d, USB2, 48000000, 0);
Russell King8c3abc72008-11-08 20:25:21 +000051static DEFINE_PXA3_CKEN(pxa3xx_keypad, KEYPAD, 32768, 0);
52static DEFINE_PXA3_CKEN(pxa3xx_ssp1, SSP1, 13000000, 0);
53static DEFINE_PXA3_CKEN(pxa3xx_ssp2, SSP2, 13000000, 0);
54static DEFINE_PXA3_CKEN(pxa3xx_ssp3, SSP3, 13000000, 0);
55static DEFINE_PXA3_CKEN(pxa3xx_ssp4, SSP4, 13000000, 0);
56static DEFINE_PXA3_CKEN(pxa3xx_pwm0, PWM0, 13000000, 0);
57static DEFINE_PXA3_CKEN(pxa3xx_pwm1, PWM1, 13000000, 0);
58static DEFINE_PXA3_CKEN(pxa3xx_mmc1, MMC1, 19500000, 0);
59static DEFINE_PXA3_CKEN(pxa3xx_mmc2, MMC2, 19500000, 0);
60
Eric Miao2e8581e2010-11-22 09:41:39 +080061static DEFINE_CK(pxa3xx_lcd, LCD, &clk_pxa3xx_hsio_ops);
62static DEFINE_CK(pxa3xx_camera, CAMERA, &clk_pxa3xx_hsio_ops);
63static DEFINE_CK(pxa3xx_ac97, AC97, &clk_pxa3xx_ac97_ops);
Eric Miao40298132010-11-22 10:49:55 +080064static DEFINE_CLK(pxa3xx_pout, &clk_pxa3xx_pout_ops, 13000000, 70);
Eric Miao2e8581e2010-11-22 09:41:39 +080065
Russell King8c3abc72008-11-08 20:25:21 +000066static struct clk_lookup pxa3xx_clkregs[] = {
67 INIT_CLKREG(&clk_pxa3xx_pout, NULL, "CLK_POUT"),
Mike Rapoport9ba63c42008-08-17 06:23:05 +010068 /* Power I2C clock is always on */
Daniel Mack5c68b092009-06-22 21:01:58 +020069 INIT_CLKREG(&clk_dummy, "pxa3xx-pwri2c.1", NULL),
Russell King8c3abc72008-11-08 20:25:21 +000070 INIT_CLKREG(&clk_pxa3xx_lcd, "pxa2xx-fb", NULL),
71 INIT_CLKREG(&clk_pxa3xx_camera, NULL, "CAMCLK"),
72 INIT_CLKREG(&clk_pxa3xx_ac97, NULL, "AC97CLK"),
73 INIT_CLKREG(&clk_pxa3xx_ffuart, "pxa2xx-uart.0", NULL),
74 INIT_CLKREG(&clk_pxa3xx_btuart, "pxa2xx-uart.1", NULL),
75 INIT_CLKREG(&clk_pxa3xx_stuart, "pxa2xx-uart.2", NULL),
76 INIT_CLKREG(&clk_pxa3xx_stuart, "pxa2xx-ir", "UARTCLK"),
77 INIT_CLKREG(&clk_pxa3xx_i2c, "pxa2xx-i2c.0", NULL),
78 INIT_CLKREG(&clk_pxa3xx_udc, "pxa27x-udc", NULL),
79 INIT_CLKREG(&clk_pxa3xx_usbh, "pxa27x-ohci", NULL),
Igor Grinberg69f22be2010-07-27 15:06:58 +030080 INIT_CLKREG(&clk_pxa3xx_u2d, "pxa3xx-u2d", NULL),
Russell King8c3abc72008-11-08 20:25:21 +000081 INIT_CLKREG(&clk_pxa3xx_keypad, "pxa27x-keypad", NULL),
82 INIT_CLKREG(&clk_pxa3xx_ssp1, "pxa27x-ssp.0", NULL),
83 INIT_CLKREG(&clk_pxa3xx_ssp2, "pxa27x-ssp.1", NULL),
84 INIT_CLKREG(&clk_pxa3xx_ssp3, "pxa27x-ssp.2", NULL),
85 INIT_CLKREG(&clk_pxa3xx_ssp4, "pxa27x-ssp.3", NULL),
86 INIT_CLKREG(&clk_pxa3xx_pwm0, "pxa27x-pwm.0", NULL),
87 INIT_CLKREG(&clk_pxa3xx_pwm1, "pxa27x-pwm.1", NULL),
88 INIT_CLKREG(&clk_pxa3xx_mmc1, "pxa2xx-mci.0", NULL),
89 INIT_CLKREG(&clk_pxa3xx_mmc2, "pxa2xx-mci.1", NULL),
eric miao2c8086a2007-09-11 19:13:17 -070090};
91
Russell King7b5dea12008-01-07 22:18:30 +000092#ifdef CONFIG_PM
Russell King7b5dea12008-01-07 22:18:30 +000093
94#define ISRAM_START 0x5c000000
95#define ISRAM_SIZE SZ_256K
96
97static void __iomem *sram;
98static unsigned long wakeup_src;
99
Russell King7b5dea12008-01-07 22:18:30 +0000100/*
101 * Enter a standby mode (S0D1C2 or S0D2C2). Upon wakeup, the dynamic
102 * memory controller has to be reinitialised, so we place some code
103 * in the SRAM to perform this function.
104 *
105 * We disable FIQs across the standby - otherwise, we might receive a
106 * FIQ while the SDRAM is unavailable.
107 */
108static void pxa3xx_cpu_standby(unsigned int pwrmode)
109{
110 extern const char pm_enter_standby_start[], pm_enter_standby_end[];
111 void (*fn)(unsigned int) = (void __force *)(sram + 0x8000);
112
113 memcpy_toio(sram + 0x8000, pm_enter_standby_start,
114 pm_enter_standby_end - pm_enter_standby_start);
115
116 AD2D0SR = ~0;
117 AD2D1SR = ~0;
118 AD2D0ER = wakeup_src;
119 AD2D1ER = 0;
120 ASCR = ASCR;
121 ARSR = ARSR;
122
123 local_fiq_disable();
124 fn(pwrmode);
125 local_fiq_enable();
126
127 AD2D0ER = 0;
128 AD2D1ER = 0;
Russell King7b5dea12008-01-07 22:18:30 +0000129}
130
eric miaoc4d1fb62008-01-28 23:00:02 +0000131/*
132 * NOTE: currently, the OBM (OEM Boot Module) binary comes along with
133 * PXA3xx development kits assumes that the resuming process continues
134 * with the address stored within the first 4 bytes of SDRAM. The PSPR
135 * register is used privately by BootROM and OBM, and _must_ be set to
136 * 0x5c014000 for the moment.
137 */
138static void pxa3xx_cpu_pm_suspend(void)
139{
140 volatile unsigned long *p = (volatile void *)0xc0000000;
141 unsigned long saved_data = *p;
142
143 extern void pxa3xx_cpu_suspend(void);
144 extern void pxa3xx_cpu_resume(void);
145
146 /* resuming from D2 requires the HSIO2/BOOT/TPM clocks enabled */
147 CKENA |= (1 << CKEN_BOOT) | (1 << CKEN_TPM);
148 CKENB |= 1 << (CKEN_HSIO2 & 0x1f);
149
150 /* clear and setup wakeup source */
151 AD3SR = ~0;
152 AD3ER = wakeup_src;
153 ASCR = ASCR;
154 ARSR = ARSR;
155
156 PCFR |= (1u << 13); /* L1_DIS */
157 PCFR &= ~((1u << 12) | (1u << 1)); /* L0_EN | SL_ROD */
158
159 PSPR = 0x5c014000;
160
161 /* overwrite with the resume address */
162 *p = virt_to_phys(pxa3xx_cpu_resume);
163
164 pxa3xx_cpu_suspend();
165
166 *p = saved_data;
167
168 AD3ER = 0;
169}
170
Russell King7b5dea12008-01-07 22:18:30 +0000171static void pxa3xx_cpu_pm_enter(suspend_state_t state)
172{
173 /*
174 * Don't sleep if no wakeup sources are defined
175 */
Mark Brownb86a5da2008-04-09 11:32:21 +0100176 if (wakeup_src == 0) {
177 printk(KERN_ERR "Not suspending: no wakeup sources\n");
Russell King7b5dea12008-01-07 22:18:30 +0000178 return;
Mark Brownb86a5da2008-04-09 11:32:21 +0100179 }
Russell King7b5dea12008-01-07 22:18:30 +0000180
181 switch (state) {
182 case PM_SUSPEND_STANDBY:
183 pxa3xx_cpu_standby(PXA3xx_PM_S0D2C2);
184 break;
185
186 case PM_SUSPEND_MEM:
eric miaoc4d1fb62008-01-28 23:00:02 +0000187 pxa3xx_cpu_pm_suspend();
Russell King7b5dea12008-01-07 22:18:30 +0000188 break;
189 }
190}
191
192static int pxa3xx_cpu_pm_valid(suspend_state_t state)
193{
194 return state == PM_SUSPEND_MEM || state == PM_SUSPEND_STANDBY;
195}
196
197static struct pxa_cpu_pm_fns pxa3xx_cpu_pm_fns = {
Russell King7b5dea12008-01-07 22:18:30 +0000198 .valid = pxa3xx_cpu_pm_valid,
199 .enter = pxa3xx_cpu_pm_enter,
200};
201
202static void __init pxa3xx_init_pm(void)
203{
204 sram = ioremap(ISRAM_START, ISRAM_SIZE);
205 if (!sram) {
206 printk(KERN_ERR "Unable to map ISRAM: disabling standby/suspend\n");
207 return;
208 }
209
210 /*
211 * Since we copy wakeup code into the SRAM, we need to ensure
212 * that it is preserved over the low power modes. Note: bit 8
213 * is undocumented in the developer manual, but must be set.
214 */
215 AD1R |= ADXR_L2 | ADXR_R0;
216 AD2R |= ADXR_L2 | ADXR_R0;
217 AD3R |= ADXR_L2 | ADXR_R0;
218
219 /*
220 * Clear the resume enable registers.
221 */
222 AD1D0ER = 0;
223 AD2D0ER = 0;
224 AD2D1ER = 0;
225 AD3ER = 0;
226
227 pxa_cpu_pm_fns = &pxa3xx_cpu_pm_fns;
228}
229
230static int pxa3xx_set_wake(unsigned int irq, unsigned int on)
231{
232 unsigned long flags, mask = 0;
233
234 switch (irq) {
235 case IRQ_SSP3:
236 mask = ADXER_MFP_WSSP3;
237 break;
238 case IRQ_MSL:
239 mask = ADXER_WMSL0;
240 break;
241 case IRQ_USBH2:
242 case IRQ_USBH1:
243 mask = ADXER_WUSBH;
244 break;
245 case IRQ_KEYPAD:
246 mask = ADXER_WKP;
247 break;
248 case IRQ_AC97:
249 mask = ADXER_MFP_WAC97;
250 break;
251 case IRQ_USIM:
252 mask = ADXER_WUSIM0;
253 break;
254 case IRQ_SSP2:
255 mask = ADXER_MFP_WSSP2;
256 break;
257 case IRQ_I2C:
258 mask = ADXER_MFP_WI2C;
259 break;
260 case IRQ_STUART:
261 mask = ADXER_MFP_WUART3;
262 break;
263 case IRQ_BTUART:
264 mask = ADXER_MFP_WUART2;
265 break;
266 case IRQ_FFUART:
267 mask = ADXER_MFP_WUART1;
268 break;
269 case IRQ_MMC:
270 mask = ADXER_MFP_WMMC1;
271 break;
272 case IRQ_SSP:
273 mask = ADXER_MFP_WSSP1;
274 break;
275 case IRQ_RTCAlrm:
276 mask = ADXER_WRTC;
277 break;
278 case IRQ_SSP4:
279 mask = ADXER_MFP_WSSP4;
280 break;
281 case IRQ_TSI:
282 mask = ADXER_WTSI;
283 break;
284 case IRQ_USIM2:
285 mask = ADXER_WUSIM1;
286 break;
287 case IRQ_MMC2:
288 mask = ADXER_MFP_WMMC2;
289 break;
290 case IRQ_NAND:
291 mask = ADXER_MFP_WFLASH;
292 break;
293 case IRQ_USB2:
294 mask = ADXER_WUSB2;
295 break;
296 case IRQ_WAKEUP0:
297 mask = ADXER_WEXTWAKE0;
298 break;
299 case IRQ_WAKEUP1:
300 mask = ADXER_WEXTWAKE1;
301 break;
302 case IRQ_MMC3:
303 mask = ADXER_MFP_GEN12;
304 break;
Mark Browne1217702008-04-23 10:28:18 +0100305 default:
306 return -EINVAL;
Russell King7b5dea12008-01-07 22:18:30 +0000307 }
308
309 local_irq_save(flags);
310 if (on)
311 wakeup_src |= mask;
312 else
313 wakeup_src &= ~mask;
314 local_irq_restore(flags);
315
316 return 0;
317}
Russell King7b5dea12008-01-07 22:18:30 +0000318#else
319static inline void pxa3xx_init_pm(void) {}
eric miaob9e25ac2008-03-04 14:19:58 +0800320#define pxa3xx_set_wake NULL
Russell King7b5dea12008-01-07 22:18:30 +0000321#endif
322
Mike Rapoportbf293ae2009-11-11 11:36:59 +0200323static void pxa_ack_ext_wakeup(unsigned int irq)
324{
325 PECR |= PECR_IS(irq - IRQ_WAKEUP0);
326}
327
328static void pxa_mask_ext_wakeup(unsigned int irq)
329{
330 ICMR2 &= ~(1 << ((irq - PXA_IRQ(0)) & 0x1f));
331 PECR &= ~PECR_IE(irq - IRQ_WAKEUP0);
332}
333
334static void pxa_unmask_ext_wakeup(unsigned int irq)
335{
336 ICMR2 |= 1 << ((irq - PXA_IRQ(0)) & 0x1f);
337 PECR |= PECR_IE(irq - IRQ_WAKEUP0);
338}
339
Igor Grinberg12882092010-06-13 11:31:48 +0300340static int pxa_set_ext_wakeup_type(unsigned int irq, unsigned int flow_type)
341{
342 if (flow_type & IRQ_TYPE_EDGE_RISING)
343 PWER |= 1 << (irq - IRQ_WAKEUP0);
344
345 if (flow_type & IRQ_TYPE_EDGE_FALLING)
346 PWER |= 1 << (irq - IRQ_WAKEUP0 + 2);
347
348 return 0;
349}
350
Mike Rapoportbf293ae2009-11-11 11:36:59 +0200351static struct irq_chip pxa_ext_wakeup_chip = {
352 .name = "WAKEUP",
353 .ack = pxa_ack_ext_wakeup,
354 .mask = pxa_mask_ext_wakeup,
355 .unmask = pxa_unmask_ext_wakeup,
Igor Grinberg12882092010-06-13 11:31:48 +0300356 .set_type = pxa_set_ext_wakeup_type,
Mike Rapoportbf293ae2009-11-11 11:36:59 +0200357};
358
359static void __init pxa_init_ext_wakeup_irq(set_wake_t fn)
360{
361 int irq;
362
363 for (irq = IRQ_WAKEUP0; irq <= IRQ_WAKEUP1; irq++) {
364 set_irq_chip(irq, &pxa_ext_wakeup_chip);
365 set_irq_handler(irq, handle_edge_irq);
366 set_irq_flags(irq, IRQF_VALID);
367 }
368
369 pxa_ext_wakeup_chip.set_wake = fn;
370}
371
eric miao2c8086a2007-09-11 19:13:17 -0700372void __init pxa3xx_init_irq(void)
373{
374 /* enable CP6 access */
375 u32 value;
376 __asm__ __volatile__("mrc p15, 0, %0, c15, c1, 0\n": "=r"(value));
377 value |= (1 << 6);
378 __asm__ __volatile__("mcr p15, 0, %0, c15, c1, 0\n": :"r"(value));
379
eric miaob9e25ac2008-03-04 14:19:58 +0800380 pxa_init_irq(56, pxa3xx_set_wake);
Mike Rapoportbf293ae2009-11-11 11:36:59 +0200381 pxa_init_ext_wakeup_irq(pxa3xx_set_wake);
Eric Miaoa58fbcd2009-01-06 17:37:37 +0800382 pxa_init_gpio(IRQ_GPIO_2_x, 2, 127, NULL);
eric miao2c8086a2007-09-11 19:13:17 -0700383}
384
Marek Vasut851982c2010-10-11 02:20:19 +0200385static struct map_desc pxa3xx_io_desc[] __initdata = {
386 { /* Mem Ctl */
Marek Vasutad68bb92010-11-03 16:29:35 +0100387 .virtual = SMEMC_VIRT,
388 .pfn = __phys_to_pfn(PXA3XX_SMEMC_BASE),
Marek Vasut851982c2010-10-11 02:20:19 +0200389 .length = 0x00200000,
390 .type = MT_DEVICE
391 }
392};
393
394void __init pxa3xx_map_io(void)
395{
396 pxa_map_io();
397 iotable_init(ARRAY_AND_SIZE(pxa3xx_io_desc));
398 pxa3xx_get_clk_frequency_khz(1);
399}
400
eric miao2c8086a2007-09-11 19:13:17 -0700401/*
402 * device registration specific to PXA3xx.
403 */
404
Mike Rapoport9ba63c42008-08-17 06:23:05 +0100405void __init pxa3xx_set_i2c_power_info(struct i2c_pxa_platform_data *info)
406{
Eric Miao14758222008-11-28 15:24:12 +0800407 pxa_register_device(&pxa3xx_device_i2c_power, info);
Mike Rapoport9ba63c42008-08-17 06:23:05 +0100408}
409
eric miao2c8086a2007-09-11 19:13:17 -0700410static struct platform_device *devices[] __initdata = {
Robert Jarzmik94c35a62009-04-21 19:19:36 +0200411 &pxa27x_device_udc,
Eric Miao09a53582010-06-14 00:43:00 +0800412 &pxa_device_pmu,
eric miao2c8086a2007-09-11 19:13:17 -0700413 &pxa_device_i2s,
Liam Girdwoodf0fba2a2010-03-17 20:15:21 +0000414 &pxa_device_asoc_ssp1,
415 &pxa_device_asoc_ssp2,
416 &pxa_device_asoc_ssp3,
417 &pxa_device_asoc_ssp4,
418 &pxa_device_asoc_platform,
Robert Jarzmik72493142008-11-13 23:50:56 +0100419 &sa1100_device_rtc,
eric miao2c8086a2007-09-11 19:13:17 -0700420 &pxa_device_rtc,
eric miaod8e0db12007-12-10 17:54:36 +0800421 &pxa27x_device_ssp1,
422 &pxa27x_device_ssp2,
423 &pxa27x_device_ssp3,
424 &pxa3xx_device_ssp4,
eric miao75540c12008-04-13 21:44:04 +0100425 &pxa27x_device_pwm0,
426 &pxa27x_device_pwm1,
eric miao2c8086a2007-09-11 19:13:17 -0700427};
428
eric miaoc01655042008-01-28 23:00:02 +0000429static struct sys_device pxa3xx_sysdev[] = {
430 {
eric miaoc01655042008-01-28 23:00:02 +0000431 .cls = &pxa_irq_sysclass,
eric miao16dfdbf2008-01-28 23:00:02 +0000432 }, {
eric miao4be35e22008-02-04 10:07:09 +0800433 .cls = &pxa3xx_mfp_sysclass,
434 }, {
eric miao16dfdbf2008-01-28 23:00:02 +0000435 .cls = &pxa_gpio_sysclass,
Eric Miaoaae82242010-11-23 17:07:48 +0800436 }, {
437 .cls = &pxa3xx_clock_sysclass,
438 }
eric miaoc01655042008-01-28 23:00:02 +0000439};
440
eric miao2c8086a2007-09-11 19:13:17 -0700441static int __init pxa3xx_init(void)
442{
eric miaoc01655042008-01-28 23:00:02 +0000443 int i, ret = 0;
eric miao2c8086a2007-09-11 19:13:17 -0700444
445 if (cpu_is_pxa3xx()) {
Eric Miao04fef222008-07-29 14:26:00 +0800446
447 reset_status = ARSR;
448
Dmitry Krivoschekov86260f92008-02-08 15:02:03 +0100449 /*
450 * clear RDH bit every time after reset
451 *
452 * Note: the last 3 bits DxS are write-1-to-clear so carefully
453 * preserve them here in case they will be referenced later
454 */
455 ASCR &= ~(ASCR_RDH | ASCR_D1S | ASCR_D2S | ASCR_D3S);
456
Russell King0a0300d2010-01-12 12:28:00 +0000457 clkdev_add_table(pxa3xx_clkregs, ARRAY_SIZE(pxa3xx_clkregs));
eric miao2c8086a2007-09-11 19:13:17 -0700458
Eric Miaofef1f992009-01-02 16:26:33 +0800459 if ((ret = pxa_init_dma(IRQ_DMA, 32)))
eric miao2c8086a2007-09-11 19:13:17 -0700460 return ret;
461
Russell King7b5dea12008-01-07 22:18:30 +0000462 pxa3xx_init_pm();
463
eric miaoc01655042008-01-28 23:00:02 +0000464 for (i = 0; i < ARRAY_SIZE(pxa3xx_sysdev); i++) {
465 ret = sysdev_register(&pxa3xx_sysdev[i]);
466 if (ret)
467 pr_err("failed to register sysdev[%d]\n", i);
468 }
469
470 ret = platform_add_devices(devices, ARRAY_SIZE(devices));
eric miao2c8086a2007-09-11 19:13:17 -0700471 }
eric miaoc01655042008-01-28 23:00:02 +0000472
473 return ret;
eric miao2c8086a2007-09-11 19:13:17 -0700474}
475
Russell King1c104e02008-04-19 10:59:24 +0100476postcore_initcall(pxa3xx_init);