From patchwork Tue Aug 26 05:25:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonghwa Lee X-Patchwork-Id: 4778221 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 78BA39F2E8 for ; Tue, 26 Aug 2014 05:28:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B5B9D20131 for ; Tue, 26 Aug 2014 05:28:03 +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 DD3AB20145 for ; Tue, 26 Aug 2014 05:28:02 +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 1XM9Gr-0003Or-NO; Tue, 26 Aug 2014 05:26:17 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XM9Gg-00023r-2v for linux-arm-kernel@lists.infradead.org; Tue, 26 Aug 2014 05:26:06 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NAW00L8HF2U2GE0@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 26 Aug 2014 14:25:42 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.115]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id E9.1C.04467.65A1CF35; Tue, 26 Aug 2014 14:25:42 +0900 (KST) X-AuditID: cbfee68f-f797f6d000001173-29-53fc1a5646e9 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 7D.79.04943.65A1CF35; Tue, 26 Aug 2014 14:25:42 +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 <0NAW007YIF2RTB80@mmp1.samsung.com>; Tue, 26 Aug 2014 14:25:42 +0900 (KST) From: Jonghwa Lee To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm: exynos: Allow rtc alarm and tick wakeup irq for exynos3250. Date: Tue, 26 Aug 2014 14:25:24 +0900 Message-id: <1409030724-21103-1-git-send-email-jonghwa3.lee@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMLMWRmVeSWpSXmKPExsWyRsSkWDdM6k+wwZ99uhbXvzxnteg8+4TZ YtPja6wWl3fNYbOYcX4fk8X6Ga9ZHNg8Ni+p9+jbsorR4/MmuQDmKC6blNSczLLUIn27BK6M Cy8nsxQ846z4vLODqYHxD3sXIyeHhICJxM/N+5khbDGJC/fWs3UxcnEICSxllLh7voUJpmjj /0tMEIlFjBLHe14yQjhtTBIdszrYQKrYBHQk/u+7CTZWRCBbYv7ebjCbWSBcYsvlu2A1wgLB Eiee3WAFsVkEVCV6jv5nBLF5BTwk1izZyNLFyAG0TUFiziQbkPkSAs/ZJDbc+8sOUS8g8W3y IagaWYlNB6CulpQ4uOIGywRGwQWMDKsYRVMLkguKk9KLjPWKE3OLS/PS9ZLzczcxAsPy9L9n /TsY7x6wPsQowMGoxMN7M/53sBBrYllxZe4hRlOgDROZpUST84HBn1cSb2hsZmRhamJqbGRu aaYkzrtQ6mewkEB6YklqdmpqQWpRfFFpTm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000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140825_222606_305176_9092F2C5 X-CRM114-Status: GOOD ( 10.20 ) X-Spam-Score: -5.0 (-----) Cc: cw00.choi@samsung.com, t.figa@samsung.com, Jonghwa Lee 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=-1.9 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;