Skip to content

Commit

Permalink
ARM: mach-imx: mm-imx5: Retrieve iomuxc base address from dt
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Estevam authored and Shawn Guo committed Oct 21, 2013
1 parent 823b2fe commit 6fc6c93
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion arch/arm/mach-imx/mm-imx5.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 6fc6c93

Please sign in to comment.