aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clk-imx51-imx53.c
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@freescale.com>2014-05-20 13:41:36 +0800
committerShawn Guo <shawn.guo@freescale.com>2014-07-18 16:10:08 +0800
commit4ef5e3870113c5caab22d4363d882b372f2c6b57 (patch)
tree31e4fa2be5b0626364b7ed968fd51120cadcba5b /arch/arm/mach-imx/clk-imx51-imx53.c
parentARM: imx5: use dynamic mapping for DPLL block (diff)
downloadlinux-dev-4ef5e3870113c5caab22d4363d882b372f2c6b57.tar.xz
linux-dev-4ef5e3870113c5caab22d4363d882b372f2c6b57.zip
ARM: imx5: reuse clock CCM mapping in pm code
The imx5 pm code needs to access CCM registers. Let's remove the use of CCM static mapping in pm code by reusing the dynamic mapping created in clock code. Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'arch/arm/mach-imx/clk-imx51-imx53.c')
-rw-r--r--arch/arm/mach-imx/clk-imx51-imx53.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/clk-imx51-imx53.c b/arch/arm/mach-imx/clk-imx51-imx53.c
index 4b691834d782..4e958653b1fc 100644
--- a/arch/arm/mach-imx/clk-imx51-imx53.c
+++ b/arch/arm/mach-imx/clk-imx51-imx53.c
@@ -133,6 +133,8 @@ static void __init mx5_clocks_common_init(void __iomem *ccm_base)
{
int i;
+ imx5_pm_set_ccm_base(ccm_base);
+
clk[IMX5_CLK_DUMMY] = imx_clk_fixed("dummy", 0);
clk[IMX5_CLK_CKIL] = imx_obtain_fixed_clock("ckil", 0);
clk[IMX5_CLK_OSC] = imx_obtain_fixed_clock("osc", 0);