diff mbox

ZOOM2: PM: Add T2 keypad as wakeup source for Zoom2

Message ID 5A47E75E594F054BAF48C5E4FC4B92AB030A9CA99F@dbde02.ent.ti.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Reddy, Teerth Nov. 18, 2009, 8:46 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/board-zoom2.c b/arch/arm/mach-omap2/board-zoom2.c
index 10b50f1..367215c 100644
--- a/arch/arm/mach-omap2/board-zoom2.c
+++ b/arch/arm/mach-omap2/board-zoom2.c
@@ -18,6 +18,7 @@ 
 #include <asm/mach-types.h>
 #include <asm/mach/arch.h>
 
+#include <plat/mux.h>
 #include <plat/common.h>
 #include <plat/board.h>
 
@@ -66,10 +67,16 @@  static struct twl4030_platform_data zoom2_twldata = {
 extern int __init omap_zoom2_debugboard_init(void);
 extern void __init zoom_peripherals_init(void);
 
+static void enable_board_wakeup_source(void)
+{
+	omap_cfg_reg(AF26_34XX_SYS_NIRQ); /* T2 interrupt line */
+}
+
 static void __init omap_zoom2_init(void)
 {
 	zoom_peripherals_init();
 	omap_zoom2_debugboard_init();
+	enable_board_wakeup_source();
 }
 
 static void __init omap_zoom2_map_io(void)