diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-09-30 23:21:14 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2013-10-20 21:35:57 -0400 |
commit | 6fc6c93eb6d07cb622c2ec2e956875c00ef47df3 (patch) | |
tree | 074a877a07e6654236265948e56b6690e05486df | |
parent | 823b2fe25a96715ceed9f689869e702c4dd3907a (diff) |
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.c | 9 |
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 2cafcf00000b..d1d52600f458 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) | |||
89 | 89 | ||
90 | void __init imx53_init_early(void) | 90 | void __init imx53_init_early(void) |
91 | { | 91 | { |
92 | struct device_node *np; | ||
93 | void __iomem *base; | ||
94 | |||
92 | mxc_set_cpu_type(MXC_CPU_MX53); | 95 | mxc_set_cpu_type(MXC_CPU_MX53); |
93 | mxc_iomux_v3_init(MX53_IO_ADDRESS(MX53_IOMUXC_BASE_ADDR)); | 96 | |
97 | np = of_find_compatible_node(NULL, NULL, "fsl,imx53-iomuxc"); | ||
98 | base = of_iomap(np, 0); | ||
99 | WARN_ON(!base); | ||
100 | mxc_iomux_v3_init(base); | ||
94 | imx_src_init(); | 101 | imx_src_init(); |
95 | } | 102 | } |
96 | 103 | ||