From patchwork Wed Sep 17 03:07:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonghwa Lee X-Patchwork-Id: 4922471 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0B0E7BEEA5 for ; Wed, 17 Sep 2014 03:10:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4B80420103 for ; Wed, 17 Sep 2014 03:10:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6A031200FF for ; Wed, 17 Sep 2014 03:10:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XU5bL-0006Ze-Do; Wed, 17 Sep 2014 03:08:15 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XU5bI-0006Tn-2t for linux-arm-kernel@lists.infradead.org; Wed, 17 Sep 2014 03:08:13 +0000 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NC000CKYZD10NA0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 17 Sep 2014 12:07:49 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 25.38.02948.50BF8145; Wed, 17 Sep 2014 12:07:49 +0900 (KST) X-AuditID: cbfee68d-f79c46d000000b84-6f-5418fb05686e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E2.6D.04943.50BF8145; Wed, 17 Sep 2014 12:07:49 +0900 (KST) Received: from localhost.localdomain ([10.252.82.199]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NC000IE7ZCVKB80@mmp1.samsung.com>; Wed, 17 Sep 2014 12:07:49 +0900 (KST) From: Jonghwa Lee To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] arm: exynos: Allow rtc alarm and tick wakeup irq for exynos3250. Date: Wed, 17 Sep 2014 12:07:42 +0900 Message-id: <1410923262-4771-1-git-send-email-jonghwa3.lee@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHLMWRmVeSWpSXmKPExsWyRsSkRJf1t0SIweQn/BadZ58wW/QuuMpm senxNVaLy7vmsFnMOL+PyYHVY/OSeo++LasYPT5vkgtgjuKySUnNySxLLdK3S+DKuPByMkvB M86Kzzs7mBoY/7B3MXJySAiYSJzbNRnKFpO4cG89WxcjF4eQwFJGibO7frDCFbXPY4dILGKU uHC9lRXCaWOSOLVtNgtIFZuAjsT/fTfBRokIZEvM39sNZjMLOEpsXP8fzBYWiJJ4//IY2FQW AVWJDTOfMILYvALuEv+2vwWq4QDapiAxZ5INyHwJgftsEi1H/kDVC0h8m3yIBaJGVmLTAWaI 4yQlDq64wTKBUXABI8MqRtHUguSC4qT0IkO94sTc4tK8dL3k/NxNjMBgPP3vWe8OxtsHrA8x CnAwKvHwbrgsESLEmlhWXJl7iNEUaMNEZinR5HxgyOeVxBsamxlZmJqYGhuZW5opifMqSv0M FhJITyxJzU5NLUgtii8qzUktPsTIxMEp1cC4LTpdQ1P4jaTzmypVEQ6Wa3UPA9V8N0ru1Ijp Ksop2Tf3FzsvI9+Ryp/RC868X1l9551L7SHTvl2PXiusY+frqv8hmeOS9FE09meI5Mq17SE7 +0M2vxJzido/P/rg5Znz5s9+pi7cWr2HSz7q/BsfnXThuofLLGITutw3eRmLJlmp8SjtNlBi Kc5INNRiLipOBACVTUeTQQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsVy+t9jAV3W3xIhBo3POSw6zz5htuhdcJXN YtPja6wWl3fNYbOYcX4fkwOrx+Yl9R59W1YxenzeJBfAHNXAaJORmpiSWqSQmpecn5KZl26r 5B0c7xxvamZgqGtoaWGupJCXmJtqq+TiE6DrlpkDtFJJoSwxpxQoFJBYXKykb4dpQmiIm64F TGOErm9IEFyPkQEaSFjDmHHh5WSWgmecFZ93djA1MP5h72Lk5JAQMJE41z4PyhaTuHBvPVsX IxeHkMAiRokL11tZIZw2JolT22azgFSxCehI/N93E6xDRCBbYv7ebjCbWcBRYuP6/2C2sECU xPuXx1hBbBYBVYkNM58wgti8Au4S/7a/BarhANqmIDFnks0ERu4FjAyrGEVTC5ILipPScw31 ihNzi0vz0vWS83M3MYJD/ZnUDsaVDRaHGAU4GJV4eDdclggRYk0sK67MPcQowcGsJMIrcg8o xJuSWFmVWpQfX1Sak1p8iNEUaPlEZinR5HxgHOaVxBsam5gZWRqZG1oYGZsrifMeaLUOFBJI TyxJzU5NLUgtgulj4uCUamA8FMvoc9WeYZbb+hSj3f82yG9zP+Yi/efu1umLqowy5jo883xQ P2PzlxzjZNOnm71fL9BeFC8Zw/e0yzkxTlTsx9E1oi/EN5mp/Y2N3b3+kNe5yzF3z397ekb6 2t8rSXf7lgrpW7/l4oxq7vBaVLPTbaWn0PLLdesm3DPdeexrupPJ1mf/TZtslViKMxINtZiL ihMBe/nVrIsCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140916_200812_307149_85E79D17 X-CRM114-Status: GOOD ( 10.09 ) X-Spam-Score: -5.7 (-----) Cc: Jonghwa Lee , kgene.kim@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add rtc alarm and tick irq to wakeup sources in exynos3250. Signed-off-by: Jonghwa Lee Acked-by : Chanwoo choi --- arch/arm/mach-exynos/pm.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index fa7218a..d78dcf9 100644 --- a/arch/arm/mach-exynos/pm.c +++ b/arch/arm/mach-exynos/pm.c @@ -66,6 +66,12 @@ static struct sleep_save exynos_core_save[] = { static u32 exynos_irqwake_intmask = 0xffffffff; +static const struct exynos_wkup_irq exynos3250_wkup_irq[] = { + { 105, BIT(1) }, /* RTC alarm */ + { 106, BIT(2) }, /* RTC tick */ + { /* sentinel */ }, +}; + static const struct exynos_wkup_irq exynos4_wkup_irq[] = { { 76, BIT(1) }, /* RTC alarm */ { 77, BIT(2) }, /* RTC tick */ @@ -81,9 +87,10 @@ static const struct exynos_wkup_irq exynos5250_wkup_irq[] = { static int exynos_irq_set_wake(struct irq_data *data, unsigned int state) { const struct exynos_wkup_irq *wkup_irq; - if (soc_is_exynos5250()) wkup_irq = exynos5250_wkup_irq; + else if (soc_is_exynos3250()) + wkup_irq = exynos3250_wkup_irq; else wkup_irq = exynos4_wkup_irq;