diff mbox

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

Message ID CAGA24M+PazuB0w5VBYu0G2q2FMGxgtc5=n5Y8txEBz+zUUjHTA@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jun Nie Sept. 11, 2012, 2:33 a.m. UTC
enable pxa910 gpio wake up setting via feeding pm
    subsystem set_wake hook in plat info

    Signed-off-by: Jun Nie <njun@marvell.com>

 static struct resource pxa910_resource_rtc[] = {
diff mbox

Patch

diff --git a/arch/arm/mach-mmp/pxa910.c b/arch/arm/mach-mmp/pxa910.c
index 6da52e9..47cd767 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,
+       },
 };