summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-10-01 00:21:14 -0300
committerShawn Guo <shawn.guo@linaro.org>2013-10-21 09:35:57 +0800
commit6fc6c93eb6d07cb622c2ec2e956875c00ef47df3 (patch)
tree074a877a07e6654236265948e56b6690e05486df
parent823b2fe25a96715ceed9f689869e702c4dd3907a (diff)
downloadop-kernel-dev-6fc6c93eb6d07cb622c2ec2e956875c00ef47df3.zip
op-kernel-dev-6fc6c93eb6d07cb622c2ec2e956875c00ef47df3.tar.gz
ARM: mach-imx: mm-imx5: Retrieve iomuxc base address from dt
As mx53 is a dt-only SoC, we should retrieve the iomuxc base address from the device tree, instead of using the old MX53_IO_ADDRESS method. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
-rw-r--r--arch/arm/mach-imx/mm-imx5.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mm-imx5.c b/arch/arm/mach-imx/mm-imx5.c
index 2cafcf0..d1d5260 100644
--- a/arch/arm/mach-imx/mm-imx5.c
+++ b/arch/arm/mach-imx/mm-imx5.c
@@ -89,8 +89,15 @@ void __init imx51_init_early(void)
void __init imx53_init_early(void)
{
+ struct device_node *np;
+ void __iomem *base;
+
mxc_set_cpu_type(MXC_CPU_MX53);
- mxc_iomux_v3_init(MX53_IO_ADDRESS(MX53_IOMUXC_BASE_ADDR));
+
+ np = of_find_compatible_node(NULL, NULL, "fsl,imx53-iomuxc");
+ base = of_iomap(np, 0);
+ WARN_ON(!base);
+ mxc_iomux_v3_init(base);
imx_src_init();
}
OpenPOWER on IntegriCloud