diff mbox

[2/2] omap3evm: Add keypad as wakeup source

Message ID 1257254961-22506-1-git-send-email-premi@ti.com (mailing list archive)
State Changes Requested, archived
Delegated to: Tony Lindgren
Headers show

Commit Message

Sanjeev Premi Nov. 3, 2009, 1:29 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c
index 660ef8c..6a1a0cd 100644
--- a/arch/arm/mach-omap2/board-omap3evm.c
+++ b/arch/arm/mach-omap2/board-omap3evm.c
@@ -343,6 +343,16 @@  static struct platform_device *omap3_evm_devices[] __initdata = {
 	&omap3evm_smc911x_device,
 };
 
+/*
+ * Set wakeup sources for the board
+ */
+static void __init omap3_evm_wakeup_sources(void)
+{
+	pr_info("omap3evm: Adding wakeup sources");
+
+	omap_cfg_reg(AF26_34XX_SYS_NIRQ);
+}
+
 static void __init omap3_evm_init(void)
 {
 	omap3_evm_i2c_init();
@@ -359,6 +369,8 @@  static void __init omap3_evm_init(void)
 #endif
 	usb_musb_init();
 	ads7846_dev_init();
+
+	omap3_evm_wakeup_sources();
 }
 
 static void __init omap3_evm_map_io(void)