Skip to content

Commit

Permalink
ARM: mach-imx: mm-imx5: Retrieve tzic 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 tzic 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 bfcc7bc commit 823b2fe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion arch/arm/mach-imx/mm-imx5.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/init.h>
#include <linux/clk.h>
#include <linux/pinctrl/machine.h>
#include <linux/of_address.h>

#include <asm/mach/map.h>

Expand Down Expand Up @@ -100,7 +101,14 @@ void __init mx51_init_irq(void)

void __init mx53_init_irq(void)
{
tzic_init_irq(MX53_IO_ADDRESS(MX53_TZIC_BASE_ADDR));
struct device_node *np;
void __iomem *base;

np = of_find_compatible_node(NULL, NULL, "fsl,imx53-tzic");
base = of_iomap(np, 0);
WARN_ON(!base);

tzic_init_irq(base);
}

static struct sdma_platform_data imx51_sdma_pdata __initdata = {
Expand Down

0 comments on commit 823b2fe

Please sign in to comment.