From patchwork Fri Dec 6 09:48:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Kumar K X-Patchwork-Id: 3294251 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B4F61C0D4A for ; Fri, 6 Dec 2013 09:50:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9039020461 for ; Fri, 6 Dec 2013 09:50:08 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 EDD1F204EC for ; Fri, 6 Dec 2013 09:50:06 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vos2X-0000xV-SP; Fri, 06 Dec 2013 09:49:42 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vos2S-0000XL-AV; Fri, 06 Dec 2013 09:49:36 +0000 Received: from mail-pd0-x236.google.com ([2607:f8b0:400e:c02::236]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vos2K-0000Vv-R0 for linux-arm-kernel@lists.infradead.org; Fri, 06 Dec 2013 09:49:29 +0000 Received: by mail-pd0-f182.google.com with SMTP id v10so742949pde.27 for ; Fri, 06 Dec 2013 01:49:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=tGgwTKGjFjxUyBSTKwEf1txRqMpT7X0assMWqE/nHzI=; b=qeiR+jRa37xLY8569dMHnwxFV8yRyX+f4Gh4zLuwov08crVmpvi0YRuLuxerzvgBDO WMMbsD7psx1zXSsdkhMW8ewc706whHNZ/CDXp5cV7tfZrKOktv1kuluYXcE0PdIsMamm Os7uF6r7S+izGLiH6jZjr/bmzUBXhoNMsS+4VM8dGrCLLz+5U0KAOLja1+i+PpwAxeOm r8a6NUA1LPLZitsJ7BxFrsDza5F1SqrlJEvNB4x93W1gGumlmpwNPWbRaLvk+xSReMZo Jp3+QbfOspEXCrMu7X3P0vGMKc2Crg6lrkO1EK8nh67mc2YKjCqEHfGcRdTUV7/EAfq8 QwGg== X-Received: by 10.68.212.10 with SMTP id ng10mr3123390pbc.158.1386323347361; Fri, 06 Dec 2013 01:49:07 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id yg3sm175098479pab.16.2013.12.06.01.49.03 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Dec 2013 01:49:06 -0800 (PST) From: Arun Kumar K To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, cpufreq@vger.kernel.org Subject: [PATCH 1/3] ARM: EXYNOS: Add exynos5 CPU clock divider offsets Date: Fri, 6 Dec 2013 15:18:02 +0530 Message-Id: <1386323284-15646-2-git-send-email-arun.kk@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1386323284-15646-1-git-send-email-arun.kk@samsung.com> References: <1386323284-15646-1-git-send-email-arun.kk@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131206_044929_000942_210952C3 X-CRM114-Status: GOOD ( 10.13 ) X-Spam-Score: -1.9 (-) Cc: kgene.kim@samsung.com, mturquette@linaro.org, abrestic@chromium.org, viresh.kumar@linaro.org, arunkk.samsung@gmail.com, rjw@rjwysocki.net, tomasz.figa@gmail.com, arjun.kv@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 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=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY, UPPERCASE_50_75 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 Adds the CPU clock divider shifts and masks for Exynos5 SoC. These defines will be used in cpufreq driver. Signed-off-by: Arjun.K.V Signed-off-by: Arun Kumar K --- arch/arm/mach-exynos/include/mach/regs-clock.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/mach-exynos/include/mach/regs-clock.h b/arch/arm/mach-exynos/include/mach/regs-clock.h index d36ad76..d0186d3 100644 --- a/arch/arm/mach-exynos/include/mach/regs-clock.h +++ b/arch/arm/mach-exynos/include/mach/regs-clock.h @@ -347,6 +347,30 @@ #define EXYNOS5_EPLLCON0_LOCKED_SHIFT (29) +/* CLK_DIV_CPU0 */ +#define EXYNOS5_CLKDIV_CPU0_CORE_SHIFT 0 +#define EXYNOS5_CLKDIV_CPU0_CORE_MASK (0x7 << EXYNOS5_CLKDIV_CPU0_CORE_SHIFT) +#define EXYNOS5_CLKDIV_CPU0_CPUD_SHIFT 4 +#define EXYNOS5_CLKDIV_CPU0_CPUD_MASK (0x7 << EXYNOS5_CLKDIV_CPU0_CPUD_SHIFT) +#define EXYNOS5_CLKDIV_CPU0_ACP_SHIFT 8 +#define EXYNOS5_CLKDIV_CPU0_ACP_MASK (0x7 << EXYNOS5_CLKDIV_CPU0_ACP_SHIFT) +#define EXYNOS5_CLKDIV_CPU0_ATB_SHIFT 16 +#define EXYNOS5_CLKDIV_CPU0_ATB_MASK (0x7 << EXYNOS5_CLKDIV_CPU0_ATB_SHIFT) +#define EXYNOS5_CLKDIV_CPU0_PCLKDBG_SHIFT 20 +#define EXYNOS5_CLKDIV_CPU0_PCLKDBG_MASK (0x7 << EXYNOS5_CLKDIV_CPU0_PCLKDBG_SHIFT) +#define EXYNOS5_CLKDIV_CPU0_APLL_SHIFT 24 +#define EXYNOS5_CLKDIV_CPU0_APLL_MASK (0x7 << EXYNOS5_CLKDIV_CPU0_APLL_SHIFT) +#define EXYNOS5_CLKDIV_CPU0_CORE2_SHIFT 28 +#define EXYNOS5_CLKDIV_CPU0_CORE2_MASK (0x7 << EXYNOS5_CLKDIV_CPU0_CORE2_SHIFT) + +/* CLK_DIV_CPU1 */ +#define EXYNOS5_CLKDIV_CPU1_COPY_SHIFT 0 +#define EXYNOS5_CLKDIV_CPU1_COPY_MASK (0x7 << EXYNOS5_CLKDIV_CPU1_COPY_SHIFT) +#define EXYNOS5_CLKDIV_CPU1_HPM_SHIFT 4 +#define EXYNOS5_CLKDIV_CPU1_HPM_MASK (0x7 << EXYNOS5_CLKDIV_CPU1_HPM_SHIFT) +#define EXYNOS5_CLKSRC_CPU_MUXCORE_SHIFT 16 +#define EXYNOS5_CLKMUX_STATCPU_MUXCORE_MASK (0x7 << EXYNOS5_CLKSRC_CPU_MUXCORE_SHIFT) + #define PWR_CTRL1_CORE2_DOWN_RATIO (7 << 28) #define PWR_CTRL1_CORE1_DOWN_RATIO (7 << 16) #define PWR_CTRL1_DIV2_DOWN_EN (1 << 9)