Skip to content

Commit 8757e16

Browse files
andrea-adamihzhuang1
authored andcommitted
ARM: pxa: fix pxa25x gpio wakeup setting
* Since 3.3 gpio wakeup is broken on pxa25x (tested on corgi and poodle). * Use gpio_set_wake like done for pxa27x with commit id * b95ace5 Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
1 parent f4a75d2 commit 8757e16

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎arch/arm/mach-pxa/pxa25x.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ void __init pxa25x_map_io(void)
338338
pxa25x_get_clk_frequency_khz(1);
339339
}
340340

341+
static struct pxa_gpio_platform_data pxa25x_gpio_info __initdata = {
342+
.gpio_set_wake = gpio_set_wake,
343+
};
344+
341345
static struct platform_device *pxa25x_devices[] __initdata = {
342346
&pxa25x_device_udc,
343347
&pxa_device_pmu,
@@ -370,6 +374,7 @@ static int __init pxa25x_init(void)
370374
register_syscore_ops(&pxa2xx_mfp_syscore_ops);
371375
register_syscore_ops(&pxa2xx_clock_syscore_ops);
372376

377+
pxa_register_device(&pxa_device_gpio, &pxa25x_gpio_info);
373378
ret = platform_add_devices(pxa25x_devices,
374379
ARRAY_SIZE(pxa25x_devices));
375380
if (ret)

0 commit comments

Comments
 (0)