From patchwork Tue Nov 6 06:12:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhilash Kesavan X-Patchwork-Id: 1703061 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 7E1973FCDE for ; Tue, 6 Nov 2012 06:09:29 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TVcK4-0000XB-BT; Tue, 06 Nov 2012 06:07:40 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TVcK0-0000Uy-DY for linux-arm-kernel@lists.infradead.org; Tue, 06 Nov 2012 06:07:37 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MD10022WYCL4CH0@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 06 Nov 2012 15:07:35 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.124]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 6C.54.12699.729A8905; Tue, 06 Nov 2012 15:07:35 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-18-5098a927c78b Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 4C.54.12699.729A8905; Tue, 06 Nov 2012 15:07:35 +0900 (KST) Received: from localhost.localdomain ([107.108.73.92]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MD100IY4YA4QW80@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 06 Nov 2012 15:07:35 +0900 (KST) From: Abhilash Kesavan To: linux-arm-kernel@lists.infradead.org, kgene.kim@samsung.com Subject: [PATCH 2/5] ARM: EXYNOS5: Add support for rtc wakeup Date: Tue, 06 Nov 2012 11:42:33 +0530 Message-id: <1352182356-28989-3-git-send-email-a.kesavan@samsung.com> X-Mailer: git-send-email 1.6.6.1 In-reply-to: <1352182356-28989-1-git-send-email-a.kesavan@samsung.com> References: <1352182356-28989-1-git-send-email-a.kesavan@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrALMWRmVeSWpSXmKPExsWyRsSkRld95YwAg7YfwhabHl9jdWD02Lyk PoAxissmJTUnsyy1SN8ugSvjbf9X9oIFPBXztvazNjBu4epi5OSQEDCRWP2xhRXCFpO4cG89 WxcjF4eQwFJGiXPHTzPCFN181sIEkVjEKLGg/SwrhLOeSeLqphnsIFVsAnoSC/59ZQaxRQTs JVacOAlmCwvYSlx/s5YNxGYRUJWY13EDbB2vgKtE196nUBsUJE5/WAs2h1PATWLlz34mEFsI qObElZWMEL0CEt8mH2LpYuQAqpeV2HSAGeQGCYEjbBLnuzcyQcyRlDi44gbLBEahBYwMqxhF UwuSC4qT0nON9IoTc4tL89L1kvNzNzECg+30v2fSOxhXNVgcYhTgYFTi4RUUmxEgxJpYVlyZ e4hRgoNZSYSX4870ACHelMTKqtSi/Pii0pzU4kOMPkCXTGSWEk3OB0ZCXkm8obGJuamxqaWR kZmpKQ5hJXHeZo+UACGB9MSS1OzU1ILUIphxTBycUg2MK/NKhYJkv9UI3Z1VcmzV7ryLG5NU TDdOzT7e6rc6apt1oGVmH+u9N7mWS7zV17/98yJN0VrtZaaC/9kl5jwTji/njHpsvNzr3KzJ EZxXc6+d7XKuUoy7xyr7aE+LR8izKxdtHdMeBkzYPLV2xR/F7pDZh6cJtx9ZtqXDbtXRVVlq t/UN1m/brcRSnJFoqMVcVJwIAIUz2UJjAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPLMWRmVeSWpSXmKPExsVy+t9jAV31lTMCDNZ+5rLY9PgaqwOjx+Yl 9QGMUQ2MNhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJuam2Si4+AbpumTlA U5UUyhJzSoFCAYnFxUr6dpgmhIa46VrANEbo+oYEwfUYGaCBhDWMGW/7v7IXLOCpmLe1n7WB cQtXFyMnh4SAicTNZy1MELaYxIV769m6GLk4hAQWMUosaD/LCuGsZ5K4umkGO0gVm4CexIJ/ X5lBbBEBe4kVJ06C2cICthLX36xlA7FZBFQl5nXcYAWxeQVcJbr2PmWE2KAgcfrDWrA5nAJu Eit/9oNtFgKqOXFlJeMERp4FjAyrGEVTC5ILipPSc430ihNzi0vz0vWS83M3MYJD+Zn0DsZV DRaHGAU4GJV4eAXFZgQIsSaWFVfmHmKU4GBWEuHluDM9QIg3JbGyKrUoP76oNCe1+BCjD9BV E5mlRJPzgXGWVxJvaGxibmpsamliYWJmiUNYSZy32SMlQEggPbEkNTs1tSC1CGYcEwenVAOj Y+Se7wke1/9EPVvHduRBSaX0rcj5KVtvN+9PZ1pxzv/myozrzBd3KvbtPO9goVFcfYs/2rvH 9iljaaHJ2gtMk7Y8Cn+RskxLNvSR0OZDkn33N7AKbL7DVvJSNrqz5ZoyLwPb5UUqAt+yH/6w NOLMnrlhYUbe96C7Uv+zDjb58WaLen13f62sxFKckWioxVxUnAgAUIsJwZICAAA= X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121106_010736_843804_5DEFB966 X-CRM114-Status: GOOD ( 10.62 ) X-Spam-Score: -7.6 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.33 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Inderpal Singh Set the gic arch extension callback to support rtc wakeup. Signed-off-by: Abhilash Kesavan Signed-off-by: Inderpal Singh --- arch/arm/mach-exynos/common.c | 2 ++ arch/arm/plat-samsung/include/plat/pm.h | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 4e577f6..300c40f 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c @@ -631,6 +631,8 @@ void __init exynos5_init_irq(void) * uses GIC instead of VIC. */ s5p_init_irq(NULL, 0); + + gic_arch_extn.irq_set_wake = s3c_irq_wake; } struct bus_type exynos_subsys = { diff --git a/arch/arm/plat-samsung/include/plat/pm.h b/arch/arm/plat-samsung/include/plat/pm.h index 61fc537..887a0c9 100644 --- a/arch/arm/plat-samsung/include/plat/pm.h +++ b/arch/arm/plat-samsung/include/plat/pm.h @@ -107,10 +107,12 @@ extern void s3c_pm_do_restore(struct sleep_save *ptr, int count); extern void s3c_pm_do_restore_core(struct sleep_save *ptr, int count); #ifdef CONFIG_PM +extern int s3c_irq_wake(struct irq_data *data, unsigned int state); extern int s3c_irqext_wake(struct irq_data *data, unsigned int state); extern int s3c24xx_irq_suspend(void); extern void s3c24xx_irq_resume(void); #else +#define s3c_irq_wake NULL #define s3c_irqext_wake NULL #define s3c24xx_irq_suspend NULL #define s3c24xx_irq_resume NULL