Skip to contentSkip to conversation

omap3evm: Add keypad as wakeup source

PATCH In review Sanjeev Premi 2 participants 2 messages Nov 3, 2009 – Nov 12, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 omap3evm: Add keypad as wakeup source

Add keypad as wakeup source from 'suspend'
state.

---
 arch/arm/mach-omap2/board-omap3evm.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/board-omap3evm.c +12 -0
index 660ef8c..6a1a0cd 100644
@@ -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)
Signature · 1 line
1.6.2.2
maintainer
#1 lore raw
Quoted 2 lines · Sanjeev Premi

Add keypad as wakeup source from 'suspend'
state.

Let's put this one on hold too until the new mux framework is done.

Tony

Quoted 42 lines
---
 arch/arm/mach-omap2/board-omap3evm.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/board-omap3evm.c +12 -0
index 660ef8c..6a1a0cd 100644
@@ -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)
Signature · 6 lines
1.6.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html