Skip to contentSkip to conversation

omap3: pm: Add T2 Keypad as a wakeup source

PATCH New Lesly A M 2 participants 2 messages Jan 7, 2010 – Jan 11, 2010

Subsystems (3)
lore
Share & tools
lore

Lesly A M

author
#0 lore raw

PATCH 1/1 omap3: pm: Add T2 Keypad as a wakeup source

Changes for setting the padconf value for sys_nirq line which is connected to T2 INTR1. This will fix the T2 keypad wakeup.

---
 arch/arm/mach-omap2/board-zoom-peripherals.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/board-zoom-peripherals.c +9 -0
index 8dd277c..64d4db0 100755
@@ -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();
 }
Signature · 1 line
1.6.0.4
maintainer
#1 lore raw

PATCH 1/1 omap3: pm: Add T2 Keypad as a wakeup source

This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Branch in linux-omap: for-next

Initial commit ID (Likely to change): 586fdb82ddef6e96ed6c21e1e13d299b99227d19

PatchWorks
http://patchwork.kernel.org/patch/71563/

Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=586fdb82ddef6e96ed6c21e1e13d299b99227d19