[PATCH] ZOOM2: PM: Add T2 keypad as wakeup source for Zoom2

2009-11-18 Thread Reddy, Teerth
From: Lesly A M x0080...@ti.com

Zoom2: 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.

Signed-off-by: Lesly A M x0080...@ti.com
Signed-off-by: Teerth Reddy tee...@ti.com

---
 arch/arm/mach-omap2/board-zoom2.c |7 +++
 1 files changed, 7 insertions(+), 0 deletions(-)

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)
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] ZOOM2: PM: Add T2 keypad as wakeup source for Zoom2

2009-11-18 Thread Reddy, Teerth
From: Lesly A M x0080...@ti.com

Zoom2: 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.

Signed-off-by: Lesly A M x0080...@ti.com
Signed-off-by: Teerth Reddy tee...@ti.com

---
 arch/arm/mach-omap2/board-zoom2.c |7 +++
 1 files changed, 7 insertions(+), 0 deletions(-)

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)
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: [PATCH] ZOOM2: PM: Add T2 keypad as wakeup source for Zoom2

2009-11-18 Thread G, Manjunath Kondaiah

This patch should be generated for 
arch/arm/mach-omap2/board-zoom-peripherals.c, 
since it is common for zoom2 and zoom3 boards. Am I right?

-Manjunath

 -Original Message-
 From: linux-omap-ow...@vger.kernel.org 
 [mailto:linux-omap-ow...@vger.kernel.org] On Behalf Of Reddy, Teerth
 Sent: Wednesday, November 18, 2009 2:23 PM
 To: linux-omap@vger.kernel.org
 Cc: khil...@deeprootsystems.com
 Subject: [PATCH] ZOOM2: PM: Add T2 keypad as wakeup source for Zoom2
 
 From: Lesly A M x0080...@ti.com
 
 Zoom2: 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.
 
 Signed-off-by: Lesly A M x0080...@ti.com
 Signed-off-by: Teerth Reddy tee...@ti.com
 
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: [PATCH] ZOOM2: PM: Add T2 keypad as wakeup source for Zoom2

2009-11-18 Thread Reddy, Teerth
Will move the wakeup source to arch/arm/mach-omap2/board-zoom-peripherals.c and 
send the patch.

Regards
Teerth

-Original Message-
From: G, Manjunath Kondaiah 
Sent: Wednesday, November 18, 2009 2:26 PM
To: Reddy, Teerth; linux-omap@vger.kernel.org
Cc: khil...@deeprootsystems.com
Subject: RE: [PATCH] ZOOM2: PM: Add T2 keypad as wakeup source for Zoom2


This patch should be generated for 
arch/arm/mach-omap2/board-zoom-peripherals.c, 
since it is common for zoom2 and zoom3 boards. Am I right?

-Manjunath

 -Original Message-
 From: linux-omap-ow...@vger.kernel.org 
 [mailto:linux-omap-ow...@vger.kernel.org] On Behalf Of Reddy, Teerth
 Sent: Wednesday, November 18, 2009 2:23 PM
 To: linux-omap@vger.kernel.org
 Cc: khil...@deeprootsystems.com
 Subject: [PATCH] ZOOM2: PM: Add T2 keypad as wakeup source for Zoom2
 
 From: Lesly A M x0080...@ti.com
 
 Zoom2: 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.
 
 Signed-off-by: Lesly A M x0080...@ti.com
 Signed-off-by: Teerth Reddy tee...@ti.com
 
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] ZOOM2: PM: Add T2 keypad as wakeup source for Zoom2

2009-11-18 Thread Reddy, Teerth
From: Lesly A M x0080...@ti.com

Zoom2: 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.

Signed-off-by: Lesly A M x0080...@ti.com
Signed-off-by: Teerth Reddy tee...@ti.com
---
 arch/arm/mach-omap2/board-zoom-peripherals.c |7 +++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-zoom-peripherals.c 
b/arch/arm/mach-omap2/board-zoom-peripherals.c
index f14baa3..d5ed73f 100755
--- a/arch/arm/mach-omap2/board-zoom-peripherals.c
+++ b/arch/arm/mach-omap2/board-zoom-peripherals.c
@@ -21,6 +21,7 @@
 #include asm/mach/arch.h
 #include asm/mach/map.h
 
+#include plat/mux.h
 #include plat/common.h
 #include plat/usb.h
 
@@ -259,9 +260,15 @@ static int __init omap_i2c_init(void)
return 0;
 }
 
+static void enable_board_wakeup_source(void)
+{
+   omap_cfg_reg(AF26_34XX_SYS_NIRQ); /* T2 interrupt line */
+}
+
 void __init zoom_peripherals_init(void)
 {
omap_i2c_init();
omap_serial_init();
usb_musb_init();
+   enable_board_wakeup_source();
 }
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html