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

Jun Nie niej0001 at gmail.com
Mon Sep 10 22:43:40 EDT 2012


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

Signed-off-by: Jun Nie <njun at marvell.com>
---
 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



More information about the linux-arm-kernel mailing list