summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2012-08-01 15:31:16 +0300
committerAndy Green <andy.green@linaro.org>2012-08-01 22:06:48 +0800
commita6d7b069d80f7cc66b852432cb29f7f86f63e68d (patch)
tree3eae8b0e31666817a80c29cece1258ee6ce4bc7a
parent547696c4e2902aaf023601455b7882a8d5544795 (diff)
ARM: OMAP4_Panda: Configure pins meant to wakeup the board from suspend
The User button i.e.'gpio_121' and 'sysn_irq1' are configured as wakeup pins. sysn_irq is from TWL6030 PMIC and must be wakeup capable if we need to detect events like USB plug-in while in suspend. Signed-off-by: Roger Quadros <rogerq@ti.com>
-rw-r--r--arch/arm/mach-omap2/board-omap4panda.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
index 8dab1d86daa..516e2dd0af3 100644
--- a/arch/arm/mach-omap2/board-omap4panda.c
+++ b/arch/arm/mach-omap2/board-omap4panda.c
@@ -635,6 +635,17 @@ static struct __initdata emif_custom_configs custom_configs = {
.lpmode = EMIF_LP_MODE_DISABLE
};
+static void __init enable_board_wakeups(void)
+{
+ /* user button on GPIO_121 */
+ omap_mux_init_signal("gpio_121",
+ OMAP_WAKEUP_EN | OMAP_PIN_INPUT_PULLUP);
+
+ /* sys_nirq1 for TWL6030 (USB, PMIC, etc) */
+ omap_mux_init_signal("sys_nirq1",
+ OMAP_WAKEUP_EN | OMAP_PIN_INPUT_PULLUP);
+}
+
static void __init omap4_panda_init(void)
{
int package = OMAP_PACKAGE_CBS;
@@ -690,6 +701,7 @@ static void __init omap4_panda_init(void)
pr_err("TPS62361 initialization failed: %d\n", ret);
}
omap_enable_smartreflex_on_init();
+ enable_board_wakeups();
}
static void __init omap4_panda_map_io(void)