diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2011-06-16 16:45:16 +0530 |
---|---|---|
committer | said m bagheri <ebgheri@steludxu2848.(none)> | 2011-06-29 10:30:29 +0200 |
commit | a215f739258d08e3b1bd31b31847bd9d3b9ab612 (patch) | |
tree | 7be3f2772d6397fd34f5bd77accd1e36c2507e4b /arch | |
parent | 41b14b4e605ee1acbbf8eabb6eec67d4fe23f9e7 (diff) |
u5500: support GPIO interrupts via PRCMU
ST-Ericsson Linux next: -
ST-Ericsson ID: 332226
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: If2e6464eff5f0b3abb78afb98c90deb8c7b20bde
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/25284
Reviewed-by: QATEST
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-ux500/devices-db5500.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/devices-db5500.c b/arch/arm/mach-ux500/devices-db5500.c index 7c4c92cf919..e48217e6d6b 100644 --- a/arch/arm/mach-ux500/devices-db5500.c +++ b/arch/arm/mach-ux500/devices-db5500.c @@ -22,12 +22,16 @@ #include <mach/prcmu.h> +#include "pm/pm.h" + #define GPIO_DATA(_name, first, num) \ { \ .name = _name, \ .first_gpio = first, \ .first_irq = NOMADIK_GPIO_TO_IRQ(first), \ .num_gpio = num, \ + .get_secondary_status = ux500_pm_gpio_read_wake_up_status, \ + .set_ioforce = ux500_pm_prcmu_set_ioforce, \ } #define GPIO_RESOURCE(block) \ @@ -51,8 +55,8 @@ { \ .name = "gpio", \ .id = block, \ - .num_resources = 2, \ - .resource = &u5500_gpio_resources[block * 2], \ + .num_resources = 3, \ + .resource = &u5500_gpio_resources[block * 3], \ .dev = { \ .platform_data = &u5500_gpio_data[block], \ }, \ |