From patchwork Thu Jun 30 01:52:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MyungJoo Ham X-Patchwork-Id: 931452 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5U1rEbY020344 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 30 Jun 2011 01:53:34 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qc6R9-0008CP-Ux; Thu, 30 Jun 2011 01:53:01 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Qc6R9-0000I3-4k; Thu, 30 Jun 2011 01:52:59 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Qc6Qp-0000Eo-AY for linux-arm-kernel@lists.infradead.org; Thu, 30 Jun 2011 01:52:40 +0000 Received: from epcpsbgm2.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LNK00LUEYJGX5J0@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 30 Jun 2011 10:52:31 +0900 (KST) X-AuditID: cbfee61b-b7bfdae000006d51-07-4e0bd6df7355 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (MMPCPMTA) with SMTP id 6B.CA.27985.FD6DB0E4; Thu, 30 Jun 2011 10:52:31 +0900 (KST) Received: from TNRNDGASPAPP1.tn.corp.samsungelectronics.net ([165.213.149.150]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LNK007RDYJJFG@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 30 Jun 2011 10:52:31 +0900 (KST) Received: from localhost.localdomain ([165.213.219.116]) by TNRNDGASPAPP1.tn.corp.samsungelectronics.net with Microsoft SMTPSVC(6.0.3790.4675); Thu, 30 Jun 2011 10:52:45 +0900 Date: Thu, 30 Jun 2011 10:52:30 +0900 From: MyungJoo Ham Subject: [PATCH 2/2] ARM: EXYNOS4: Enable Internal RTC's Wakeup from Suspend-to-Ram In-reply-to: <1309398750-25859-1-git-send-email-myungjoo.ham@samsung.com> To: linux-arm-kernel@lists.infradead.org Message-id: <1309398750-25859-2-git-send-email-myungjoo.ham@samsung.com> X-Mailer: git-send-email 1.7.4.1 References: <1309398750-25859-1-git-send-email-myungjoo.ham@samsung.com> X-OriginalArrivalTime: 30 Jun 2011 01:52:45.0941 (UTC) FILETIME=[68606A50:01CC36C8] X-Brightmail-Tracker: AAAAAA== X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110629_215239_630117_271A6A7C X-CRM114-Status: GOOD ( 15.30 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [203.254.224.24 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain Cc: Kukjin Kim , Russell King , Mark Brown , myungjoo.ham@gmail.com, Kyungmin Park , linux-samsung-soc@vger.kernel.org, Ben Dooks X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 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 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 30 Jun 2011 01:53:34 +0000 (UTC) Allow Exynos4 to setup WAKEUP-MASK bits based on IRQ numbers. Currently, Exynos4's cpu.c supports RTC ALARM/TICK based IRQs only. Signed-off-by: MyungJoo Ham Signed-off-by: Kyungmin Park --- arch/arm/mach-exynos4/cpu.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos4/cpu.c b/arch/arm/mach-exynos4/cpu.c index 9babe44..fbb6f30 100644 --- a/arch/arm/mach-exynos4/cpu.c +++ b/arch/arm/mach-exynos4/cpu.c @@ -10,6 +10,7 @@ #include #include +#include #include #include @@ -23,6 +24,7 @@ #include #include #include +#include #include @@ -170,6 +172,8 @@ void __init exynos4_init_irq(void) * uses GIC instead of VIC. */ s5p_init_irq(NULL, 0); + + irq_get_chip(IRQ_RTC_ALARM)->irq_set_wake = s3c_irq_wake; } struct sysdev_class exynos4_sysclass = {