From patchwork Tue Dec 17 11:53:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kgene@kernel.org X-Patchwork-Id: 3360871 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 7438B9F344 for ; Tue, 17 Dec 2013 11:53:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B1384203AB for ; Tue, 17 Dec 2013 11:53:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF4E2203A8 for ; Tue, 17 Dec 2013 11:53:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751390Ab3LQLxF (ORCPT ); Tue, 17 Dec 2013 06:53:05 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:11041 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751369Ab3LQLxD (ORCPT ); Tue, 17 Dec 2013 06:53:03 -0500 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MXY00K6990EG040@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Tue, 17 Dec 2013 20:53:02 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 8A.22.10132.E1B30B25; Tue, 17 Dec 2013 20:53:02 +0900 (KST) X-AuditID: cbfee68d-b7ff46d000002794-a7-52b03b1e131a Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id ED.98.22838.E1B30B25; Tue, 17 Dec 2013 20:53:02 +0900 (KST) Received: from DOKGENEKIM03 ([12.23.120.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 <0MXY005FR90DOM50@mmp1.samsung.com>; Tue, 17 Dec 2013 20:53:01 +0900 (KST) From: kgene@kernel.org To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 09/11] ARM: EXYNOS: local definitions for cpuidle.c into mach-exynos dir Date: Tue, 17 Dec 2013 20:53:01 +0900 Message-id: <116701cefb1e$89821f40$9c865dc0$@kernel.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac77HobmaEqfz5qJQoq3L/5WgDvpCw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprPIsWRmVeSWpSXmKPExsVy+t8zY1056w1BBpfa9Cw2Pb7GajHj/D4m ByaPzUvqPT5vkgtgiuKySUnNySxLLdK3S+DKWHl5F2vBJfGKa9t3MjYwPhbuYuTkkBAwkeg5 dYQFwhaTuHBvPVsXIxeHkMAyRoljDzYxwRQt2bqCGSKxiFFixuYeVpCEkMBfRonO81ZdjBwc bEDdU59Ig4SFBbQkFm5pYgEJiwh4Syy/pggRjpJYfX43WCeLgKrEi9tHmUFsXgELiQV9R1gh bEGJH5Pvgd3DDDRm/c7jTBC2vMTmNW+ZIc5RkNhx9jUjiC0ioCdxeftKZogaEYl9L94xgpwp ITCZXWLy9ydMEMsEJL5NPgR2j4SArMSmA1BzJCUOrrjBMoFRbBaS1bOQrJ6FZPUsJCsWMLKs YhRNLUguKE5KLzLUK07MLS7NS9dLzs/dxAiJnN4djLcPWB9iTAZaP5FZSjQ5Hxh5eSXxhsZm RhamJqbGRuaWZqQJK4nzJj1MChISSE8sSc1OTS1ILYovKs1JLT7EyMT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nNRcSIAnLNidA8DAAA= 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=-7.4 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 From: Kukjin Kim This moves definitions for cpuidle into mach-exynos/cpuidle.c, because we don't need to keep them in the . Signed-off-by: Kukjin Kim --- arch/arm/mach-exynos/cpuidle.c | 23 ++++++++++++++++++++++- arch/arm/mach-exynos/include/mach/regs-clock.h | 21 --------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index 6ba13ea..da65b03 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -22,11 +22,13 @@ #include #include #include -#include #include #include +#include +#include + #include "common.h" #include "regs-pmu.h" @@ -39,6 +41,25 @@ #define S5P_CHECK_AFTR 0xFCBA0D10 +#define EXYNOS5_PWR_CTRL1 (S5P_VA_CMU + 0x01020) +#define EXYNOS5_PWR_CTRL2 (S5P_VA_CMU + 0x01024) + +#define PWR_CTRL1_CORE2_DOWN_RATIO (7 << 28) +#define PWR_CTRL1_CORE1_DOWN_RATIO (7 << 16) +#define PWR_CTRL1_DIV2_DOWN_EN (1 << 9) +#define PWR_CTRL1_DIV1_DOWN_EN (1 << 8) +#define PWR_CTRL1_USE_CORE1_WFE (1 << 5) +#define PWR_CTRL1_USE_CORE0_WFE (1 << 4) +#define PWR_CTRL1_USE_CORE1_WFI (1 << 1) +#define PWR_CTRL1_USE_CORE0_WFI (1 << 0) + +#define PWR_CTRL2_DIV2_UP_EN (1 << 25) +#define PWR_CTRL2_DIV1_UP_EN (1 << 24) +#define PWR_CTRL2_DUR_STANDBY2_VAL (1 << 16) +#define PWR_CTRL2_DUR_STANDBY1_VAL (1 << 8) +#define PWR_CTRL2_CORE2_UP_RATIO (1 << 4) +#define PWR_CTRL2_CORE1_UP_RATIO (1 << 0) + static int exynos4_enter_lowpower(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index); diff --git a/arch/arm/mach-exynos/include/mach/regs-clock.h b/arch/arm/mach-exynos/include/mach/regs-clock.h index 22afe63..cc121a5 100644 --- a/arch/arm/mach-exynos/include/mach/regs-clock.h +++ b/arch/arm/mach-exynos/include/mach/regs-clock.h @@ -16,25 +16,4 @@ #include #include -#define EXYNOS_CLKREG(x) (S5P_VA_CMU + (x)) - -#define EXYNOS5_PWR_CTRL1 EXYNOS_CLKREG(0x01020) -#define EXYNOS5_PWR_CTRL2 EXYNOS_CLKREG(0x01024) - -#define PWR_CTRL1_CORE2_DOWN_RATIO (7 << 28) -#define PWR_CTRL1_CORE1_DOWN_RATIO (7 << 16) -#define PWR_CTRL1_DIV2_DOWN_EN (1 << 9) -#define PWR_CTRL1_DIV1_DOWN_EN (1 << 8) -#define PWR_CTRL1_USE_CORE1_WFE (1 << 5) -#define PWR_CTRL1_USE_CORE0_WFE (1 << 4) -#define PWR_CTRL1_USE_CORE1_WFI (1 << 1) -#define PWR_CTRL1_USE_CORE0_WFI (1 << 0) - -#define PWR_CTRL2_DIV2_UP_EN (1 << 25) -#define PWR_CTRL2_DIV1_UP_EN (1 << 24) -#define PWR_CTRL2_DUR_STANDBY2_VAL (1 << 16) -#define PWR_CTRL2_DUR_STANDBY1_VAL (1 << 8) -#define PWR_CTRL2_CORE2_UP_RATIO (1 << 4) -#define PWR_CTRL2_CORE1_UP_RATIO (1 << 0) - #endif /* __ASM_ARCH_REGS_CLOCK_H */