aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2013-09-30 23:21:13 -0400
committerShawn Guo <shawn.guo@linaro.org>2013-10-20 21:35:56 -0400
commit823b2fe25a96715ceed9f689869e702c4dd3907a (patch)
tree2df53ca675f96dd291079b4bc074a9a6c3a3528a /arch/arm/mach-imx
parentbfcc7bcef55dd9db82758f3ac755714a59db9529 (diff)
ARM: mach-imx: mm-imx5: Retrieve tzic base address from dt
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>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/mm-imx5.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/mm-imx5.c b/arch/arm/mach-imx/mm-imx5.c
index eb3cce38c70d..2cafcf00000b 100644
--- a/arch/arm/mach-imx/mm-imx5.c
+++ b/arch/arm/mach-imx/mm-imx5.c
@@ -15,6 +15,7 @@
15#include <linux/init.h> 15#include <linux/init.h>
16#include <linux/clk.h> 16#include <linux/clk.h>
17#include <linux/pinctrl/machine.h> 17#include <linux/pinctrl/machine.h>
18#include <linux/of_address.h>
18 19
19#include <asm/mach/map.h> 20#include <asm/mach/map.h>
20 21
@@ -100,7 +101,14 @@ void __init mx51_init_irq(void)
100 101
101void __init mx53_init_irq(void) 102void __init mx53_init_irq(void)
102{ 103{
103 tzic_init_irq(MX53_IO_ADDRESS(MX53_TZIC_BASE_ADDR)); 104 struct device_node *np;
105 void __iomem *base;
106
107 np = of_find_compatible_node(NULL, NULL, "fsl,imx53-tzic");
108 base = of_iomap(np, 0);
109 WARN_ON(!base);
110
111 tzic_init_irq(base);
104} 112}
105 113
106static struct sdma_platform_data imx51_sdma_pdata __initdata = { 114static struct sdma_platform_data imx51_sdma_pdata __initdata = {