diff options
Diffstat (limited to 'arch/arm/mach-pxa/pxa3xx.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa3xx.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index 0737c59b88ae..f107c71c7589 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <asm/mach/map.h> | 25 | #include <asm/mach/map.h> |
26 | #include <asm/suspend.h> | 26 | #include <asm/suspend.h> |
27 | #include <mach/hardware.h> | 27 | #include <mach/hardware.h> |
28 | #include <mach/gpio-pxa.h> | ||
29 | #include <mach/pxa3xx-regs.h> | 28 | #include <mach/pxa3xx-regs.h> |
30 | #include <mach/reset.h> | 29 | #include <mach/reset.h> |
31 | #include <mach/ohci.h> | 30 | #include <mach/ohci.h> |
@@ -56,6 +55,7 @@ static DEFINE_PXA3_CKEN(pxa3xx_pwm0, PWM0, 13000000, 0); | |||
56 | static DEFINE_PXA3_CKEN(pxa3xx_pwm1, PWM1, 13000000, 0); | 55 | static DEFINE_PXA3_CKEN(pxa3xx_pwm1, PWM1, 13000000, 0); |
57 | static DEFINE_PXA3_CKEN(pxa3xx_mmc1, MMC1, 19500000, 0); | 56 | static DEFINE_PXA3_CKEN(pxa3xx_mmc1, MMC1, 19500000, 0); |
58 | static DEFINE_PXA3_CKEN(pxa3xx_mmc2, MMC2, 19500000, 0); | 57 | static DEFINE_PXA3_CKEN(pxa3xx_mmc2, MMC2, 19500000, 0); |
58 | static DEFINE_PXA3_CKEN(pxa3xx_gpio, GPIO, 13000000, 0); | ||
59 | 59 | ||
60 | static DEFINE_CK(pxa3xx_lcd, LCD, &clk_pxa3xx_hsio_ops); | 60 | static DEFINE_CK(pxa3xx_lcd, LCD, &clk_pxa3xx_hsio_ops); |
61 | static DEFINE_CK(pxa3xx_smemc, SMC, &clk_pxa3xx_smemc_ops); | 61 | static DEFINE_CK(pxa3xx_smemc, SMC, &clk_pxa3xx_smemc_ops); |
@@ -67,6 +67,7 @@ static struct clk_lookup pxa3xx_clkregs[] = { | |||
67 | INIT_CLKREG(&clk_pxa3xx_pout, NULL, "CLK_POUT"), | 67 | INIT_CLKREG(&clk_pxa3xx_pout, NULL, "CLK_POUT"), |
68 | /* Power I2C clock is always on */ | 68 | /* Power I2C clock is always on */ |
69 | INIT_CLKREG(&clk_dummy, "pxa3xx-pwri2c.1", NULL), | 69 | INIT_CLKREG(&clk_dummy, "pxa3xx-pwri2c.1", NULL), |
70 | INIT_CLKREG(&clk_dummy, "sa1100-rtc", NULL), | ||
70 | INIT_CLKREG(&clk_pxa3xx_lcd, "pxa2xx-fb", NULL), | 71 | INIT_CLKREG(&clk_pxa3xx_lcd, "pxa2xx-fb", NULL), |
71 | INIT_CLKREG(&clk_pxa3xx_camera, NULL, "CAMCLK"), | 72 | INIT_CLKREG(&clk_pxa3xx_camera, NULL, "CAMCLK"), |
72 | INIT_CLKREG(&clk_pxa3xx_ac97, NULL, "AC97CLK"), | 73 | INIT_CLKREG(&clk_pxa3xx_ac97, NULL, "AC97CLK"), |
@@ -88,6 +89,7 @@ static struct clk_lookup pxa3xx_clkregs[] = { | |||
88 | INIT_CLKREG(&clk_pxa3xx_mmc1, "pxa2xx-mci.0", NULL), | 89 | INIT_CLKREG(&clk_pxa3xx_mmc1, "pxa2xx-mci.0", NULL), |
89 | INIT_CLKREG(&clk_pxa3xx_mmc2, "pxa2xx-mci.1", NULL), | 90 | INIT_CLKREG(&clk_pxa3xx_mmc2, "pxa2xx-mci.1", NULL), |
90 | INIT_CLKREG(&clk_pxa3xx_smemc, "pxa2xx-pcmcia", NULL), | 91 | INIT_CLKREG(&clk_pxa3xx_smemc, "pxa2xx-pcmcia", NULL), |
92 | INIT_CLKREG(&clk_pxa3xx_gpio, "pxa-gpio", NULL), | ||
91 | }; | 93 | }; |
92 | 94 | ||
93 | #ifdef CONFIG_PM | 95 | #ifdef CONFIG_PM |
@@ -365,7 +367,8 @@ static struct irq_chip pxa_ext_wakeup_chip = { | |||
365 | .irq_set_type = pxa_set_ext_wakeup_type, | 367 | .irq_set_type = pxa_set_ext_wakeup_type, |
366 | }; | 368 | }; |
367 | 369 | ||
368 | static void __init pxa_init_ext_wakeup_irq(set_wake_t fn) | 370 | static void __init pxa_init_ext_wakeup_irq(int (*fn)(struct irq_data *, |
371 | unsigned int)) | ||
369 | { | 372 | { |
370 | int irq; | 373 | int irq; |
371 | 374 | ||
@@ -388,7 +391,6 @@ void __init pxa3xx_init_irq(void) | |||
388 | 391 | ||
389 | pxa_init_irq(56, pxa3xx_set_wake); | 392 | pxa_init_irq(56, pxa3xx_set_wake); |
390 | pxa_init_ext_wakeup_irq(pxa3xx_set_wake); | 393 | pxa_init_ext_wakeup_irq(pxa3xx_set_wake); |
391 | pxa_init_gpio(IRQ_GPIO_2_x, 2, 127, NULL); | ||
392 | } | 394 | } |
393 | 395 | ||
394 | static struct map_desc pxa3xx_io_desc[] __initdata = { | 396 | static struct map_desc pxa3xx_io_desc[] __initdata = { |
@@ -417,6 +419,7 @@ void __init pxa3xx_set_i2c_power_info(struct i2c_pxa_platform_data *info) | |||
417 | } | 419 | } |
418 | 420 | ||
419 | static struct platform_device *devices[] __initdata = { | 421 | static struct platform_device *devices[] __initdata = { |
422 | &pxa_device_gpio, | ||
420 | &pxa27x_device_udc, | 423 | &pxa27x_device_udc, |
421 | &pxa_device_pmu, | 424 | &pxa_device_pmu, |
422 | &pxa_device_i2s, | 425 | &pxa_device_i2s, |