From patchwork Fri Apr 11 10:40:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 28265 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9112120822 for ; Fri, 11 Apr 2014 10:40:28 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id if11sf15590657vcb.0 for ; Fri, 11 Apr 2014 03:40:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=NeCTtvI87bOj+zUSFkJHvzApeMtB/UCCgisJtJLMWTc=; b=D5m0lnZ83uKJK8X5eKWEjhMmXxYwG56gaEyqeEpbJI0MktTH6/bBSSIalLdIJqQEHn jjHPnmVPWUY68EiQPWqASjgE1wgOLtmReqpVbmJKIEIlv973Jb5uNr48mnSMW8qnF30B 6m3q8Kj4HZiweWBxjyGcNLAmHlpz8tAB+uVDAvf55q3+T/N0ei5GN79lDJGL1NBUHd9H gcwNpdObfyAROxwfQVCR5IoV4MgfMWaronkHDeFlH3TZgqc75MP57AL6DFiYZZWfgx7g +uNihro8TaXZzHYj0ZPQ4t54SFuoYAuU5RabCQgUoJHmerFMiNj5liWFjxM7nSOYvQO5 ciaA== X-Gm-Message-State: ALoCoQkKYLE7QX8+cohBs6kGVvc5bRWz8+DJJPePonw8cS9JbfYJdiDVP0+HUZjX1KbsceuMxUZm X-Received: by 10.236.141.203 with SMTP id g51mr9815291yhj.24.1397212828066; Fri, 11 Apr 2014 03:40:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.133 with SMTP id v5ls1461539qgv.23.gmail; Fri, 11 Apr 2014 03:40:27 -0700 (PDT) X-Received: by 10.58.154.10 with SMTP id vk10mr19575439veb.18.1397212827948; Fri, 11 Apr 2014 03:40:27 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id ie18si1225565vec.175.2014.04.11.03.40.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Apr 2014 03:40:27 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db11so4515267veb.21 for ; Fri, 11 Apr 2014 03:40:27 -0700 (PDT) X-Received: by 10.220.163.3 with SMTP id y3mr3310338vcx.7.1397212827871; Fri, 11 Apr 2014 03:40:27 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp46128vcb; Fri, 11 Apr 2014 03:40:27 -0700 (PDT) X-Received: by 10.66.226.145 with SMTP id rs17mr26509450pac.144.1397212827137; Fri, 11 Apr 2014 03:40:27 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xy8si3963775pab.160.2014.04.11.03.40.26; Fri, 11 Apr 2014 03:40:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756612AbaDKKkY (ORCPT + 8 others); Fri, 11 Apr 2014 06:40:24 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:61159 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757225AbaDKKkV (ORCPT ); Fri, 11 Apr 2014 06:40:21 -0400 Received: by mail-wi0-f172.google.com with SMTP id hi2so762601wib.17 for ; Fri, 11 Apr 2014 03:40:20 -0700 (PDT) X-Received: by 10.180.187.225 with SMTP id fv1mr2931815wic.14.1397212820095; Fri, 11 Apr 2014 03:40:20 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-377-242.w86-199.abo.wanadoo.fr. [86.199.232.242]) by mx.google.com with ESMTPSA id eq8sm3683033wib.16.2014.04.11.03.40.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Apr 2014 03:40:19 -0700 (PDT) From: Daniel Lezcano To: kgene.kim@samsung.com Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, t.figa@samsung.com, linaro-kernel@lists.linaro.org, rjw@rjwysocki.net Subject: [PATCH V5 17/20] ARM: exynos: cpuidle: Move S5P_CHECK_SLEEP into pm.c Date: Fri, 11 Apr 2014 12:40:12 +0200 Message-Id: <1397212815-16068-18-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397212815-16068-1-git-send-email-daniel.lezcano@linaro.org> References: <1397212815-16068-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This macro is only used there. Signed-off-by: Daniel Lezcano --- arch/arm/mach-exynos/pm.c | 3 ++- arch/arm/mach-exynos/regs-pmu.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index 6d9ef69..b380d48 100644 --- a/arch/arm/mach-exynos/pm.c +++ b/arch/arm/mach-exynos/pm.c @@ -108,7 +108,8 @@ static int exynos_irq_set_wake(struct irq_data *data, unsigned int state) S5P_INFORM6 : (samsung_rev() == EXYNOS4210_REV_1_0 ? \ (S5P_VA_SYSRAM + 0x20) : S5P_INFORM1)) -#define S5P_CHECK_AFTR 0xFCBA0D10 +#define S5P_CHECK_AFTR 0xFCBA0D10 +#define S5P_CHECK_SLEEP 0x00000BAD /* Ext-GIC nIRQ/nFIQ is the only wakeup source in AFTR */ static void exynos_set_wakeupmask(long mask) diff --git a/arch/arm/mach-exynos/regs-pmu.h b/arch/arm/mach-exynos/regs-pmu.h index 4f6a256..6c1d2db 100644 --- a/arch/arm/mach-exynos/regs-pmu.h +++ b/arch/arm/mach-exynos/regs-pmu.h @@ -119,8 +119,6 @@ #define S5P_CORE_LOCAL_PWR_EN 0x3 #define S5P_INT_LOCAL_PWR_EN 0x7 -#define S5P_CHECK_SLEEP 0x00000BAD - /* Only for EXYNOS4210 */ #define S5P_CMU_CLKSTOP_LCD1_LOWPWR S5P_PMUREG(0x1154) #define S5P_CMU_RESET_LCD1_LOWPWR S5P_PMUREG(0x1174)