diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2015-04-25 16:02:53 +0800 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2015-06-03 14:44:30 +0800 |
commit | 5ab96a8df094b87673b67e4dce70e31248d663a3 (patch) | |
tree | 6ff8f7724480bb173d24e4d7965bc9165fdf31d0 /arch/arm/mach-imx/clk-imx31.c | |
parent | 6c529c499fecfe65da6429917bd9cb319040c69e (diff) | |
download | talos-op-linux-5ab96a8df094b87673b67e4dce70e31248d663a3.tar.gz talos-op-linux-5ab96a8df094b87673b67e4dce70e31248d663a3.zip |
ARM: imx: use dynamic mapping for CCM
Replace the static mapping of CCM block in clock drivers with dynamic
mapping.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/mach-imx/clk-imx31.c')
-rw-r--r-- | arch/arm/mach-imx/clk-imx31.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/clk-imx31.c b/arch/arm/mach-imx/clk-imx31.c index 8a103a2c8b68..2aaccadb9e13 100644 --- a/arch/arm/mach-imx/clk-imx31.c +++ b/arch/arm/mach-imx/clk-imx31.c @@ -50,9 +50,12 @@ static struct clk_onecell_data clk_data; int __init mx31_clocks_init(unsigned long fref) { - void __iomem *base = MX31_IO_ADDRESS(MX31_CCM_BASE_ADDR); + void __iomem *base; struct device_node *np; + base = ioremap(MX31_CCM_BASE_ADDR, SZ_4K); + BUG_ON(!base); + clk[dummy] = imx_clk_fixed("dummy", 0); clk[ckih] = imx_clk_fixed("ckih", fref); clk[ckil] = imx_clk_fixed("ckil", 32768); |