diff options
Diffstat (limited to 'arch/arm/mach-pxa/hx4700.c')
-rw-r--r-- | arch/arm/mach-pxa/hx4700.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/hx4700.c b/arch/arm/mach-pxa/hx4700.c index b83b95a29503..6bd692d271c1 100644 --- a/arch/arm/mach-pxa/hx4700.c +++ b/arch/arm/mach-pxa/hx4700.c | |||
@@ -102,6 +102,10 @@ static unsigned long hx4700_pin_config[] __initdata = { | |||
102 | GPIO44_BTUART_CTS, | 102 | GPIO44_BTUART_CTS, |
103 | GPIO45_BTUART_RTS_LPM_LOW, | 103 | GPIO45_BTUART_RTS_LPM_LOW, |
104 | 104 | ||
105 | /* STUART (IRDA) */ | ||
106 | GPIO46_STUART_RXD, | ||
107 | GPIO47_STUART_TXD, | ||
108 | |||
105 | /* PWM 1 (Backlight) */ | 109 | /* PWM 1 (Backlight) */ |
106 | GPIO17_PWM1_OUT, | 110 | GPIO17_PWM1_OUT, |
107 | 111 | ||
@@ -125,7 +129,7 @@ static unsigned long hx4700_pin_config[] __initdata = { | |||
125 | GPIO88_GPIO, | 129 | GPIO88_GPIO, |
126 | 130 | ||
127 | /* HX4700 specific input GPIOs */ | 131 | /* HX4700 specific input GPIOs */ |
128 | GPIO12_GPIO, /* ASIC3_IRQ */ | 132 | GPIO12_GPIO | WAKEUP_ON_EDGE_RISE, /* ASIC3_IRQ */ |
129 | GPIO13_GPIO, /* W3220_IRQ */ | 133 | GPIO13_GPIO, /* W3220_IRQ */ |
130 | GPIO14_GPIO, /* nWLAN_IRQ */ | 134 | GPIO14_GPIO, /* nWLAN_IRQ */ |
131 | 135 | ||
@@ -227,7 +231,6 @@ static u16 asic3_gpio_config[] = { | |||
227 | ASIC3_GPIOC0_LED0, /* red */ | 231 | ASIC3_GPIOC0_LED0, /* red */ |
228 | ASIC3_GPIOC1_LED1, /* green */ | 232 | ASIC3_GPIOC1_LED1, /* green */ |
229 | ASIC3_GPIOC2_LED2, /* blue */ | 233 | ASIC3_GPIOC2_LED2, /* blue */ |
230 | ASIC3_GPIOC4_CF_nCD, | ||
231 | ASIC3_GPIOC5_nCIOW, | 234 | ASIC3_GPIOC5_nCIOW, |
232 | ASIC3_GPIOC6_nCIOR, | 235 | ASIC3_GPIOC6_nCIOR, |
233 | ASIC3_GPIOC7_nPCE_1, | 236 | ASIC3_GPIOC7_nPCE_1, |
@@ -241,6 +244,7 @@ static u16 asic3_gpio_config[] = { | |||
241 | ASIC3_GPIOC15_nPIOR, | 244 | ASIC3_GPIOC15_nPIOR, |
242 | 245 | ||
243 | /* GPIOD: input GPIOs, CF */ | 246 | /* GPIOD: input GPIOs, CF */ |
247 | ASIC3_GPIOD4_CF_nCD, | ||
244 | ASIC3_GPIOD11_nCIOIS16, | 248 | ASIC3_GPIOD11_nCIOIS16, |
245 | ASIC3_GPIOD12_nCWAIT, | 249 | ASIC3_GPIOD12_nCWAIT, |
246 | ASIC3_GPIOD15_nPIOW, | 250 | ASIC3_GPIOD15_nPIOW, |
@@ -291,6 +295,7 @@ static struct asic3_platform_data asic3_platform_data = { | |||
291 | .gpio_config_num = ARRAY_SIZE(asic3_gpio_config), | 295 | .gpio_config_num = ARRAY_SIZE(asic3_gpio_config), |
292 | .irq_base = IRQ_BOARD_START, | 296 | .irq_base = IRQ_BOARD_START, |
293 | .gpio_base = HX4700_ASIC3_GPIO_BASE, | 297 | .gpio_base = HX4700_ASIC3_GPIO_BASE, |
298 | .clock_rate = 4000000, | ||
294 | .leds = asic3_leds, | 299 | .leds = asic3_leds, |
295 | }; | 300 | }; |
296 | 301 | ||
@@ -859,6 +864,7 @@ static void __init hx4700_init(void) | |||
859 | int ret; | 864 | int ret; |
860 | 865 | ||
861 | pxa2xx_mfp_config(ARRAY_AND_SIZE(hx4700_pin_config)); | 866 | pxa2xx_mfp_config(ARRAY_AND_SIZE(hx4700_pin_config)); |
867 | gpio_set_wake(GPIO12_HX4700_ASIC3_IRQ, 1); | ||
862 | ret = gpio_request_array(ARRAY_AND_SIZE(global_gpios)); | 868 | ret = gpio_request_array(ARRAY_AND_SIZE(global_gpios)); |
863 | if (ret) | 869 | if (ret) |
864 | pr_err ("hx4700: Failed to request GPIOs.\n"); | 870 | pr_err ("hx4700: Failed to request GPIOs.\n"); |