diff mbox

omap3: pm: Add T2 Keypad as a wakeup source

Message ID 1262857632-24364-1-git-send-email-x0080970@ti.com (mailing list archive)
State Accepted
Commit 586fdb82ddef6e96ed6c21e1e13d299b99227d19
Headers show

Commit Message

Lesly A M Jan. 7, 2010, 9:47 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c b/arch/arm/mach-omap2/board-zoom-peripherals.c
index 8dd277c..64d4db0 100755
--- a/arch/arm/mach-omap2/board-zoom-peripherals.c
+++ b/arch/arm/mach-omap2/board-zoom-peripherals.c
@@ -24,6 +24,7 @@ 
 #include <plat/common.h>
 #include <plat/usb.h>
 
+#include "mux.h"
 #include "mmc-twl4030.h"
 
 /* Zoom2 has Qwerty keyboard*/
@@ -263,9 +264,17 @@  static int __init omap_i2c_init(void)
 	return 0;
 }
 
+static void enable_board_wakeup_source(void)
+{
+	/* T2 interrupt line (keypad) */
+	omap_mux_init_signal("sys_nirq",
+		OMAP_WAKEUP_EN | OMAP_PIN_INPUT_PULLUP);
+}
+
 void __init zoom_peripherals_init(void)
 {
 	omap_i2c_init();
 	omap_serial_init();
 	usb_musb_init();
+	enable_board_wakeup_source();
 }