From patchwork Tue Sep 11 02:33:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 1434831 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 70B67DF28C for ; Tue, 11 Sep 2012 02:37:08 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TBGIT-0006eO-9l; Tue, 11 Sep 2012 02:33:53 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TBGIN-0006e7-VE for linux-arm-kernel@lists.infradead.org; Tue, 11 Sep 2012 02:33:49 +0000 Received: by pbbrq8 with SMTP id rq8so139216pbb.36 for ; Mon, 10 Sep 2012 19:33:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0c646eUzXM5xcMabJbqhXb+ZTRSSX0fsMbjZ2rGEQf4=; b=tkj2G89bAsmFnWX1TQxrgB8FJrkgVfqzrJaXoVh2Go3uaKp95hNnFu8sHGooeX9ChP fbfF3c0iOBGgKtiSD3ZokR1h2CzcV3nkDDrysOKkmXgGc9fwVNCxktBuBDzbCzd9IA5y 23C2dJ8pXCNi+1wB9WnnxkOz8nC3uXI1yqwDkRpzQSIIVtyetm6Lx5pwKBUBFSnEjnzc 4jomG6A1/chtLwMtPJsPsPQNdexxh3horBXnU1d2BxooO/8z4/FOmcc0seEqq4NQy9yl O+RzTUB2ku1asUuUASz6OvXt4ULfddxhi3XRRb1IfEhiNj22WgsWI2EZvoYLJ2wYDThQ Z64A== MIME-Version: 1.0 Received: by 10.68.240.236 with SMTP id wd12mr9192446pbc.83.1347330824055; Mon, 10 Sep 2012 19:33:44 -0700 (PDT) Received: by 10.66.87.162 with HTTP; Mon, 10 Sep 2012 19:33:43 -0700 (PDT) Date: Tue, 11 Sep 2012 10:33:43 +0800 Message-ID: Subject: [PATCH 1/1] ARM: mmp: enable pxa910 gpio wake up setting From: Jun Nie To: Haojian Zhuang , mturquette@linaro.org, arnd@arndb.de, viresh.linux@gmail.com, s.hauer@pengutronix.de, chao.xie@marvell.com, linux-arm-kernel@lists.infradead.org X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (niej0001[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (niej0001[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org enable pxa910 gpio wake up setting via feeding pm subsystem set_wake hook in plat info Signed-off-by: Jun Nie static struct resource pxa910_resource_rtc[] = { 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 #include +#include #include #include #include @@ -23,6 +24,7 @@ #include #include #include +#include #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, + }, };