summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/devices-db5500.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-ux500/devices-db5500.c')
-rw-r--r--arch/arm/mach-ux500/devices-db5500.c8
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 75ecfd7a881..7e8410ea5cd 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], \
}, \