DORMANTno replies

[PATCH v2 1/1] ARM: mmp: enable pxa910 gpio wake up

From: Jun Nie <hidden>
Date: 2012-09-11 02:43:40
Subsystem: arm port, mmp support, the rest · Maintainers: Russell King, Linus Torvalds

enable pxa910 gpio wake up setting via feeding pm
subsystem set_wake hook in plat info

Signed-off-by: Jun Nie <redacted>
---
 arch/arm/mach-mmp/pxa910.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-mmp/pxa910.c b/arch/arm/mach-mmp/pxa910.c
index 6da52e9..7fb6543 100644
--- a/arch/arm/mach-mmp/pxa910.c
+++ b/arch/arm/mach-mmp/pxa910.c
@@ -9,6 +9,7 @@
  */
 #include <linux/module.h>
 #include <linux/kernel.h>
+#include <linux/gpio-pxa.h>
 #include <linux/init.h>
 #include <linux/list.h>
 #include <linux/io.h>
@@ -23,6 +24,7 @@
 #include <mach/dma.h>
 #include <mach/mfp.h>
 #include <mach/devices.h>
+#include <mach/pm-pxa910.h>

 #include "common.h"
 #include "clock.h"
@@ -180,11 +182,18 @@ struct resource pxa910_resource_gpio[] = {
 	},
 };

+static struct pxa_gpio_platform_data pxa910_gpio_info __initdata = {
+	.gpio_set_wake = pxa910_set_wake,
+};
+
 struct platform_device pxa910_device_gpio = {
 	.name		= "pxa-gpio",
 	.id		= -1,
 	.num_resources	= ARRAY_SIZE(pxa910_resource_gpio),
 	.resource	= pxa910_resource_gpio,
+	.dev            = {
+		.platform_data  = &pxa910_gpio_info,
+	},
 };

 static struct resource pxa910_resource_rtc[] = {
-- 
1.7.0.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help