diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-05-25 11:36:19 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-08-07 06:10:54 -0400 |
commit | c5aa0ad0c557c63dcaf8c8d75a3dd4c5e90724b3 (patch) | |
tree | 9750fbbf8e9c57e9cd9a948d8740fc65df93a5e6 /arch | |
parent | 12308dfe3776ff5741fc675f2a352165e1628098 (diff) |
mxc: turn to soc specific init_irq functions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx1/generic.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-mx1/mx1ads.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-mx1/scb9328.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx2/generic.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-mx2/mx21ads.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx2/mx27ads.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx2/mx27lite.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx2/mx27pdk.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx2/pcm038.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/armadillo5x0.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/mm.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-mx3/mx31ads.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/mx31lilly.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/mx31lite.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/mx31moboard.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-mx3/mx31pdk.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/mx35pdk.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/pcm037.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/pcm043.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/qong.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/common.h | 7 | ||||
-rw-r--r-- | arch/arm/plat-mxc/irq.c | 4 |
22 files changed, 53 insertions, 21 deletions
diff --git a/arch/arm/mach-mx1/generic.c b/arch/arm/mach-mx1/generic.c index bbb6c7b87666..7f9fc1034c08 100644 --- a/arch/arm/mach-mx1/generic.c +++ b/arch/arm/mach-mx1/generic.c | |||
@@ -45,3 +45,9 @@ void __init mx1_map_io(void) | |||
45 | 45 | ||
46 | iotable_init(imx_io_desc, ARRAY_SIZE(imx_io_desc)); | 46 | iotable_init(imx_io_desc, ARRAY_SIZE(imx_io_desc)); |
47 | } | 47 | } |
48 | |||
49 | void __init mx1_init_irq(void) | ||
50 | { | ||
51 | mxc_init_irq(IO_ADDRESS(AVIC_BASE_ADDR)); | ||
52 | } | ||
53 | |||
diff --git a/arch/arm/mach-mx1/mx1ads.c b/arch/arm/mach-mx1/mx1ads.c index e5b0c0a83c3b..6af064d19b0f 100644 --- a/arch/arm/mach-mx1/mx1ads.c +++ b/arch/arm/mach-mx1/mx1ads.c | |||
@@ -151,7 +151,7 @@ MACHINE_START(MX1ADS, "Freescale MX1ADS") | |||
151 | .io_pg_offst = (IMX_IO_BASE >> 18) & 0xfffc, | 151 | .io_pg_offst = (IMX_IO_BASE >> 18) & 0xfffc, |
152 | .boot_params = PHYS_OFFSET + 0x100, | 152 | .boot_params = PHYS_OFFSET + 0x100, |
153 | .map_io = mx1_map_io, | 153 | .map_io = mx1_map_io, |
154 | .init_irq = mxc_init_irq, | 154 | .init_irq = mx1_init_irq, |
155 | .timer = &mx1ads_timer, | 155 | .timer = &mx1ads_timer, |
156 | .init_machine = mx1ads_init, | 156 | .init_machine = mx1ads_init, |
157 | MACHINE_END | 157 | MACHINE_END |
@@ -161,7 +161,7 @@ MACHINE_START(MXLADS, "Freescale MXLADS") | |||
161 | .io_pg_offst = (IMX_IO_BASE >> 18) & 0xfffc, | 161 | .io_pg_offst = (IMX_IO_BASE >> 18) & 0xfffc, |
162 | .boot_params = PHYS_OFFSET + 0x100, | 162 | .boot_params = PHYS_OFFSET + 0x100, |
163 | .map_io = mx1_map_io, | 163 | .map_io = mx1_map_io, |
164 | .init_irq = mxc_init_irq, | 164 | .init_irq = mx1_init_irq, |
165 | .timer = &mx1ads_timer, | 165 | .timer = &mx1ads_timer, |
166 | .init_machine = mx1ads_init, | 166 | .init_machine = mx1ads_init, |
167 | MACHINE_END | 167 | MACHINE_END |
diff --git a/arch/arm/mach-mx1/scb9328.c b/arch/arm/mach-mx1/scb9328.c index 20e0b5bcdffc..125d495e9c73 100644 --- a/arch/arm/mach-mx1/scb9328.c +++ b/arch/arm/mach-mx1/scb9328.c | |||
@@ -154,7 +154,7 @@ MACHINE_START(SCB9328, "Synertronixx scb9328") | |||
154 | .io_pg_offst = ((0xe0200000) >> 18) & 0xfffc, | 154 | .io_pg_offst = ((0xe0200000) >> 18) & 0xfffc, |
155 | .boot_params = 0x08000100, | 155 | .boot_params = 0x08000100, |
156 | .map_io = mx1_map_io, | 156 | .map_io = mx1_map_io, |
157 | .init_irq = mxc_init_irq, | 157 | .init_irq = mx1_init_irq, |
158 | .timer = &scb9328_timer, | 158 | .timer = &scb9328_timer, |
159 | .init_machine = scb9328_init, | 159 | .init_machine = scb9328_init, |
160 | MACHINE_END | 160 | MACHINE_END |
diff --git a/arch/arm/mach-mx2/generic.c b/arch/arm/mach-mx2/generic.c index bdc5a6e67be0..ae8f759134d1 100644 --- a/arch/arm/mach-mx2/generic.c +++ b/arch/arm/mach-mx2/generic.c | |||
@@ -85,3 +85,13 @@ void __init mx27_map_io(void) | |||
85 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); | 85 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); |
86 | } | 86 | } |
87 | 87 | ||
88 | void __init mx27_init_irq(void) | ||
89 | { | ||
90 | mxc_init_irq(IO_ADDRESS(AVIC_BASE_ADDR)); | ||
91 | } | ||
92 | |||
93 | void __init mx21_init_irq(void) | ||
94 | { | ||
95 | mx27_init_irq(); | ||
96 | } | ||
97 | |||
diff --git a/arch/arm/mach-mx2/mx21ads.c b/arch/arm/mach-mx2/mx21ads.c index a5ee461cb405..a525783ceea3 100644 --- a/arch/arm/mach-mx2/mx21ads.c +++ b/arch/arm/mach-mx2/mx21ads.c | |||
@@ -280,7 +280,7 @@ MACHINE_START(MX21ADS, "Freescale i.MX21ADS") | |||
280 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 280 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
281 | .boot_params = PHYS_OFFSET + 0x100, | 281 | .boot_params = PHYS_OFFSET + 0x100, |
282 | .map_io = mx21ads_map_io, | 282 | .map_io = mx21ads_map_io, |
283 | .init_irq = mxc_init_irq, | 283 | .init_irq = mx21_init_irq, |
284 | .init_machine = mx21ads_board_init, | 284 | .init_machine = mx21ads_board_init, |
285 | .timer = &mx21ads_timer, | 285 | .timer = &mx21ads_timer, |
286 | MACHINE_END | 286 | MACHINE_END |
diff --git a/arch/arm/mach-mx2/mx27ads.c b/arch/arm/mach-mx2/mx27ads.c index 02daddac6995..a9f69eb58b7c 100644 --- a/arch/arm/mach-mx2/mx27ads.c +++ b/arch/arm/mach-mx2/mx27ads.c | |||
@@ -330,7 +330,7 @@ MACHINE_START(MX27ADS, "Freescale i.MX27ADS") | |||
330 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 330 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
331 | .boot_params = PHYS_OFFSET + 0x100, | 331 | .boot_params = PHYS_OFFSET + 0x100, |
332 | .map_io = mx27ads_map_io, | 332 | .map_io = mx27ads_map_io, |
333 | .init_irq = mxc_init_irq, | 333 | .init_irq = mx27_init_irq, |
334 | .init_machine = mx27ads_board_init, | 334 | .init_machine = mx27ads_board_init, |
335 | .timer = &mx27ads_timer, | 335 | .timer = &mx27ads_timer, |
336 | MACHINE_END | 336 | MACHINE_END |
diff --git a/arch/arm/mach-mx2/mx27lite.c b/arch/arm/mach-mx2/mx27lite.c index 3ae11cb8c04b..82ea227ea0cf 100644 --- a/arch/arm/mach-mx2/mx27lite.c +++ b/arch/arm/mach-mx2/mx27lite.c | |||
@@ -89,7 +89,7 @@ MACHINE_START(IMX27LITE, "LogicPD i.MX27LITE") | |||
89 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 89 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
90 | .boot_params = PHYS_OFFSET + 0x100, | 90 | .boot_params = PHYS_OFFSET + 0x100, |
91 | .map_io = mx27_map_io, | 91 | .map_io = mx27_map_io, |
92 | .init_irq = mxc_init_irq, | 92 | .init_irq = mx27_init_irq, |
93 | .init_machine = mx27lite_init, | 93 | .init_machine = mx27lite_init, |
94 | .timer = &mx27lite_timer, | 94 | .timer = &mx27lite_timer, |
95 | MACHINE_END | 95 | MACHINE_END |
diff --git a/arch/arm/mach-mx2/mx27pdk.c b/arch/arm/mach-mx2/mx27pdk.c index 1d9238c7a6c3..6761d1b79e43 100644 --- a/arch/arm/mach-mx2/mx27pdk.c +++ b/arch/arm/mach-mx2/mx27pdk.c | |||
@@ -89,7 +89,7 @@ MACHINE_START(MX27_3DS, "Freescale MX27PDK") | |||
89 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 89 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
90 | .boot_params = PHYS_OFFSET + 0x100, | 90 | .boot_params = PHYS_OFFSET + 0x100, |
91 | .map_io = mx27_map_io, | 91 | .map_io = mx27_map_io, |
92 | .init_irq = mxc_init_irq, | 92 | .init_irq = mx27_init_irq, |
93 | .init_machine = mx27pdk_init, | 93 | .init_machine = mx27pdk_init, |
94 | .timer = &mx27pdk_timer, | 94 | .timer = &mx27pdk_timer, |
95 | MACHINE_END | 95 | MACHINE_END |
diff --git a/arch/arm/mach-mx2/pcm038.c b/arch/arm/mach-mx2/pcm038.c index a4628d004343..638d078304c7 100644 --- a/arch/arm/mach-mx2/pcm038.c +++ b/arch/arm/mach-mx2/pcm038.c | |||
@@ -241,7 +241,7 @@ MACHINE_START(PCM038, "phyCORE-i.MX27") | |||
241 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 241 | .io_pg_offst = ((AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
242 | .boot_params = PHYS_OFFSET + 0x100, | 242 | .boot_params = PHYS_OFFSET + 0x100, |
243 | .map_io = mx27_map_io, | 243 | .map_io = mx27_map_io, |
244 | .init_irq = mxc_init_irq, | 244 | .init_irq = mx27_init_irq, |
245 | .init_machine = pcm038_init, | 245 | .init_machine = pcm038_init, |
246 | .timer = &pcm038_timer, | 246 | .timer = &pcm038_timer, |
247 | MACHINE_END | 247 | MACHINE_END |
diff --git a/arch/arm/mach-mx3/armadillo5x0.c b/arch/arm/mach-mx3/armadillo5x0.c index ee331fd6b1bd..776c0ee1b3cd 100644 --- a/arch/arm/mach-mx3/armadillo5x0.c +++ b/arch/arm/mach-mx3/armadillo5x0.c | |||
@@ -352,7 +352,7 @@ MACHINE_START(ARMADILLO5X0, "Armadillo-500") | |||
352 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 352 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
353 | .boot_params = PHYS_OFFSET + 0x00000100, | 353 | .boot_params = PHYS_OFFSET + 0x00000100, |
354 | .map_io = mx31_map_io, | 354 | .map_io = mx31_map_io, |
355 | .init_irq = mxc_init_irq, | 355 | .init_irq = mx31_init_irq, |
356 | .timer = &armadillo5x0_timer, | 356 | .timer = &armadillo5x0_timer, |
357 | .init_machine = armadillo5x0_init, | 357 | .init_machine = armadillo5x0_init, |
358 | MACHINE_END | 358 | MACHINE_END |
diff --git a/arch/arm/mach-mx3/mm.c b/arch/arm/mach-mx3/mm.c index f0d5ae533b49..c327172159c0 100644 --- a/arch/arm/mach-mx3/mm.c +++ b/arch/arm/mach-mx3/mm.c | |||
@@ -88,6 +88,16 @@ void __init mx35_map_io(void) | |||
88 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); | 88 | iotable_init(mxc_io_desc, ARRAY_SIZE(mxc_io_desc)); |
89 | } | 89 | } |
90 | 90 | ||
91 | void __init mx31_init_irq(void) | ||
92 | { | ||
93 | mxc_init_irq(IO_ADDRESS(AVIC_BASE_ADDR)); | ||
94 | } | ||
95 | |||
96 | void __init mx35_init_irq(void) | ||
97 | { | ||
98 | mx31_init_irq(); | ||
99 | } | ||
100 | |||
91 | #ifdef CONFIG_CACHE_L2X0 | 101 | #ifdef CONFIG_CACHE_L2X0 |
92 | static int mxc_init_l2x0(void) | 102 | static int mxc_init_l2x0(void) |
93 | { | 103 | { |
diff --git a/arch/arm/mach-mx3/mx31ads.c b/arch/arm/mach-mx3/mx31ads.c index 30e2767a78ae..0497c152be18 100644 --- a/arch/arm/mach-mx3/mx31ads.c +++ b/arch/arm/mach-mx3/mx31ads.c | |||
@@ -517,7 +517,7 @@ static void __init mx31ads_map_io(void) | |||
517 | 517 | ||
518 | static void __init mx31ads_init_irq(void) | 518 | static void __init mx31ads_init_irq(void) |
519 | { | 519 | { |
520 | mxc_init_irq(); | 520 | mx31_init_irq(); |
521 | mx31ads_init_expio(); | 521 | mx31ads_init_expio(); |
522 | } | 522 | } |
523 | 523 | ||
diff --git a/arch/arm/mach-mx3/mx31lilly.c b/arch/arm/mach-mx3/mx31lilly.c index 6ab2f163cb95..423025150f6f 100644 --- a/arch/arm/mach-mx3/mx31lilly.c +++ b/arch/arm/mach-mx3/mx31lilly.c | |||
@@ -148,7 +148,7 @@ MACHINE_START(LILLY1131, "INCO startec LILLY-1131") | |||
148 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 148 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
149 | .boot_params = PHYS_OFFSET + 0x100, | 149 | .boot_params = PHYS_OFFSET + 0x100, |
150 | .map_io = mx31_map_io, | 150 | .map_io = mx31_map_io, |
151 | .init_irq = mxc_init_irq, | 151 | .init_irq = mx31_init_irq, |
152 | .init_machine = mx31lilly_board_init, | 152 | .init_machine = mx31lilly_board_init, |
153 | .timer = &mx31lilly_timer, | 153 | .timer = &mx31lilly_timer, |
154 | MACHINE_END | 154 | MACHINE_END |
diff --git a/arch/arm/mach-mx3/mx31lite.c b/arch/arm/mach-mx3/mx31lite.c index 86fe70fa3e13..b1c0afc40cf2 100644 --- a/arch/arm/mach-mx3/mx31lite.c +++ b/arch/arm/mach-mx3/mx31lite.c | |||
@@ -162,7 +162,7 @@ MACHINE_START(MX31LITE, "LogicPD MX31 LITEKIT") | |||
162 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 162 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
163 | .boot_params = PHYS_OFFSET + 0x100, | 163 | .boot_params = PHYS_OFFSET + 0x100, |
164 | .map_io = mx31lite_map_io, | 164 | .map_io = mx31lite_map_io, |
165 | .init_irq = mxc_init_irq, | 165 | .init_irq = mx31_init_irq, |
166 | .init_machine = mxc_board_init, | 166 | .init_machine = mxc_board_init, |
167 | .timer = &mx31lite_timer, | 167 | .timer = &mx31lite_timer, |
168 | MACHINE_END | 168 | MACHINE_END |
diff --git a/arch/arm/mach-mx3/mx31moboard.c b/arch/arm/mach-mx3/mx31moboard.c index a17f2e411609..b86b8a757c99 100644 --- a/arch/arm/mach-mx3/mx31moboard.c +++ b/arch/arm/mach-mx3/mx31moboard.c | |||
@@ -36,6 +36,7 @@ | |||
36 | #include <mach/iomux-mx3.h> | 36 | #include <mach/iomux-mx3.h> |
37 | #include <mach/i2c.h> | 37 | #include <mach/i2c.h> |
38 | #include <mach/mmc.h> | 38 | #include <mach/mmc.h> |
39 | #include <mach/mx31.h> | ||
39 | 40 | ||
40 | #include "devices.h" | 41 | #include "devices.h" |
41 | 42 | ||
@@ -197,7 +198,7 @@ MACHINE_START(MX31MOBOARD, "EPFL Mobots mx31moboard") | |||
197 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 198 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
198 | .boot_params = PHYS_OFFSET + 0x100, | 199 | .boot_params = PHYS_OFFSET + 0x100, |
199 | .map_io = mx31_map_io, | 200 | .map_io = mx31_map_io, |
200 | .init_irq = mxc_init_irq, | 201 | .init_irq = mx31_init_irq, |
201 | .init_machine = mxc_board_init, | 202 | .init_machine = mxc_board_init, |
202 | .timer = &mx31moboard_timer, | 203 | .timer = &mx31moboard_timer, |
203 | MACHINE_END | 204 | MACHINE_END |
diff --git a/arch/arm/mach-mx3/mx31pdk.c b/arch/arm/mach-mx3/mx31pdk.c index c19838d2e369..0f7a2f06bc2d 100644 --- a/arch/arm/mach-mx3/mx31pdk.c +++ b/arch/arm/mach-mx3/mx31pdk.c | |||
@@ -265,7 +265,7 @@ MACHINE_START(MX31_3DS, "Freescale MX31PDK (3DS)") | |||
265 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 265 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
266 | .boot_params = PHYS_OFFSET + 0x100, | 266 | .boot_params = PHYS_OFFSET + 0x100, |
267 | .map_io = mx31pdk_map_io, | 267 | .map_io = mx31pdk_map_io, |
268 | .init_irq = mxc_init_irq, | 268 | .init_irq = mx31_init_irq, |
269 | .init_machine = mxc_board_init, | 269 | .init_machine = mxc_board_init, |
270 | .timer = &mx31pdk_timer, | 270 | .timer = &mx31pdk_timer, |
271 | MACHINE_END | 271 | MACHINE_END |
diff --git a/arch/arm/mach-mx3/mx35pdk.c b/arch/arm/mach-mx3/mx35pdk.c index 6d15374414b9..6ff186e46ceb 100644 --- a/arch/arm/mach-mx3/mx35pdk.c +++ b/arch/arm/mach-mx3/mx35pdk.c | |||
@@ -98,7 +98,7 @@ MACHINE_START(MX35_3DS, "Freescale MX35PDK") | |||
98 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 98 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
99 | .boot_params = PHYS_OFFSET + 0x100, | 99 | .boot_params = PHYS_OFFSET + 0x100, |
100 | .map_io = mx35_map_io, | 100 | .map_io = mx35_map_io, |
101 | .init_irq = mxc_init_irq, | 101 | .init_irq = mx35_init_irq, |
102 | .init_machine = mxc_board_init, | 102 | .init_machine = mxc_board_init, |
103 | .timer = &mx35pdk_timer, | 103 | .timer = &mx35pdk_timer, |
104 | MACHINE_END | 104 | MACHINE_END |
diff --git a/arch/arm/mach-mx3/pcm037.c b/arch/arm/mach-mx3/pcm037.c index 840cfda341d0..d8472206de90 100644 --- a/arch/arm/mach-mx3/pcm037.c +++ b/arch/arm/mach-mx3/pcm037.c | |||
@@ -592,7 +592,7 @@ MACHINE_START(PCM037, "Phytec Phycore pcm037") | |||
592 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 592 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
593 | .boot_params = PHYS_OFFSET + 0x100, | 593 | .boot_params = PHYS_OFFSET + 0x100, |
594 | .map_io = mx31_map_io, | 594 | .map_io = mx31_map_io, |
595 | .init_irq = mxc_init_irq, | 595 | .init_irq = mx31_init_irq, |
596 | .init_machine = mxc_board_init, | 596 | .init_machine = mxc_board_init, |
597 | .timer = &pcm037_timer, | 597 | .timer = &pcm037_timer, |
598 | MACHINE_END | 598 | MACHINE_END |
diff --git a/arch/arm/mach-mx3/pcm043.c b/arch/arm/mach-mx3/pcm043.c index 8d27c324abf2..7c7d3cc07b89 100644 --- a/arch/arm/mach-mx3/pcm043.c +++ b/arch/arm/mach-mx3/pcm043.c | |||
@@ -245,7 +245,7 @@ MACHINE_START(PCM043, "Phytec Phycore pcm043") | |||
245 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 245 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
246 | .boot_params = PHYS_OFFSET + 0x100, | 246 | .boot_params = PHYS_OFFSET + 0x100, |
247 | .map_io = mx35_map_io, | 247 | .map_io = mx35_map_io, |
248 | .init_irq = mxc_init_irq, | 248 | .init_irq = mx35_init_irq, |
249 | .init_machine = mxc_board_init, | 249 | .init_machine = mxc_board_init, |
250 | .timer = &pcm043_timer, | 250 | .timer = &pcm043_timer, |
251 | MACHINE_END | 251 | MACHINE_END |
diff --git a/arch/arm/mach-mx3/qong.c b/arch/arm/mach-mx3/qong.c index 82b31c4ab11f..0bca4d914abc 100644 --- a/arch/arm/mach-mx3/qong.c +++ b/arch/arm/mach-mx3/qong.c | |||
@@ -280,7 +280,7 @@ MACHINE_START(QONG, "Dave/DENX QongEVB-LITE") | |||
280 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, | 280 | .io_pg_offst = ((AIPS1_BASE_ADDR_VIRT) >> 18) & 0xfffc, |
281 | .boot_params = PHYS_OFFSET + 0x100, | 281 | .boot_params = PHYS_OFFSET + 0x100, |
282 | .map_io = mx31_map_io, | 282 | .map_io = mx31_map_io, |
283 | .init_irq = mxc_init_irq, | 283 | .init_irq = mx31_init_irq, |
284 | .init_machine = mxc_board_init, | 284 | .init_machine = mxc_board_init, |
285 | .timer = &qong_timer, | 285 | .timer = &qong_timer, |
286 | MACHINE_END | 286 | MACHINE_END |
diff --git a/arch/arm/plat-mxc/include/mach/common.h b/arch/arm/plat-mxc/include/mach/common.h index 1dc31d6dd43f..cd8f215c1ad2 100644 --- a/arch/arm/plat-mxc/include/mach/common.h +++ b/arch/arm/plat-mxc/include/mach/common.h | |||
@@ -19,7 +19,12 @@ extern void mx21_map_io(void); | |||
19 | extern void mx27_map_io(void); | 19 | extern void mx27_map_io(void); |
20 | extern void mx31_map_io(void); | 20 | extern void mx31_map_io(void); |
21 | extern void mx35_map_io(void); | 21 | extern void mx35_map_io(void); |
22 | extern void mxc_init_irq(void); | 22 | extern void mxc_init_irq(void __iomem *); |
23 | extern void mx1_init_irq(void); | ||
24 | extern void mx21_init_irq(void); | ||
25 | extern void mx27_init_irq(void); | ||
26 | extern void mx31_init_irq(void); | ||
27 | extern void mx35_init_irq(void); | ||
23 | extern void mxc_timer_init(struct clk *timer_clk, void __iomem *, int); | 28 | extern void mxc_timer_init(struct clk *timer_clk, void __iomem *, int); |
24 | extern int mx1_clocks_init(unsigned long fref); | 29 | extern int mx1_clocks_init(unsigned long fref); |
25 | extern int mx21_clocks_init(unsigned long lref, unsigned long fref); | 30 | extern int mx21_clocks_init(unsigned long lref, unsigned long fref); |
diff --git a/arch/arm/plat-mxc/irq.c b/arch/arm/plat-mxc/irq.c index 8aee76304f8f..618a8b24ed12 100644 --- a/arch/arm/plat-mxc/irq.c +++ b/arch/arm/plat-mxc/irq.c | |||
@@ -113,11 +113,11 @@ static struct irq_chip mxc_avic_chip = { | |||
113 | * interrupts. It registers the interrupt enable and disable functions | 113 | * interrupts. It registers the interrupt enable and disable functions |
114 | * to the kernel for each interrupt source. | 114 | * to the kernel for each interrupt source. |
115 | */ | 115 | */ |
116 | void __init mxc_init_irq(void) | 116 | void __init mxc_init_irq(void __iomem *irqbase) |
117 | { | 117 | { |
118 | int i; | 118 | int i; |
119 | 119 | ||
120 | avic_base = IO_ADDRESS(AVIC_BASE_ADDR); | 120 | avic_base = irqbase; |
121 | 121 | ||
122 | /* put the AVIC into the reset value with | 122 | /* put the AVIC into the reset value with |
123 | * all interrupts disabled | 123 | * all interrupts disabled |