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: 4778111 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 0FD269F2E8 for ; Tue, 26 Aug 2014 05:25:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 462E92012E for ; Tue, 26 Aug 2014 05:25:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6B86A20123 for ; Tue, 26 Aug 2014 05:25:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750895AbaHZFZp (ORCPT ); Tue, 26 Aug 2014 01:25:45 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:53062 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750731AbaHZFZo (ORCPT ); Tue, 26 Aug 2014 01:25:44 -0400 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>; 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 Cc: t.figa@samsung.com, cw00.choi@samsung.com, Jonghwa Lee 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 aaYkzrtQ6mewkEB6YklqdmpqQWpRfFFpTmrxIUYmDk6pBsZ5vGrFb+Z4rHv93en9ukV/GBML hTzt1lv++fiB8TTblN1pv/Z3OPw/yzift+jll+702DN+D0rcF15MWxj4wLnpw7/Q2HD3L2ut ltWZc6UsrzBP5y6doHNFgqni8dcPTtfm9i5/cySnvJ/JSMvB8d6UZZJ5NhF1BYzMvRtXbph9 f8ZXFf/SGclKLMUZiYZazEXFiQBJExBJRgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLLMWRmVeSWpSXmKPExsVy+t9jAd0wqT/BBp3nVSyuf3nOatF59gmz xabH11gtLu+aw2Yx4/w+Jov1M16zOLB5bF5S79G3ZRWjx+dNcgHMUQ2MNhmpiSmpRQqpecn5 KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJuam2Si4+AbpumTlAe5UUyhJzSoFCAYnFxUr6dpgm hIa46VrANEbo+oYEwfUYGaCBhDWMGRdeTmYpeMZZ8XlnB1MD4x/2LkZODgkBE4mN/y8xQdhi EhfurWfrYuTiEBJYxChxvOclI4TTxiTRMauDDaSKTUBH4v++m2DdIgLZEvP3doPZzALhElsu 3wWrERYIljjx7AYriM0ioCrRc/Q/I4jNK+AhsWbJRpYuRg6gbQoScybZTGDkXsDIsIpRNLUg uaA4KT3XUK84Mbe4NC9dLzk/dxMjOOifSe1gXNlgcYhRgINRiYf3RvzvYCHWxLLiytxDjBIc zEoivAwPgUK8KYmVValF+fFFpTmpxYcYTYGWT2SWEk3OB0ZkXkm8obGJmZGlkbmhhZGxuZI4 74FW60AhgfTEktTs1NSC1CKYPiYOTqkGRr167Ul7+MttZFyy7m7dxCNsscd939zKWuv6U/tO B59VPn2C8bh9UWjIhVXrzzim+cw4XDhrW+ezDcf25QpO/FSUuWzHWanTspHnCvMb2jdklMR2 Tlyjdcrmbs/7l7Ls+/StxFNTXlS8uCf0RKnnXjJ7hl9y7OPLyYqTf76xNti0b1JqhNL1TiWW 4oxEQy3mouJEANwFwzuQAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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;