diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-04-02 16:32:10 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-05-07 10:15:37 -0400 |
commit | cd4a05f9df859e7cd2efa96e035444a3decb427a (patch) | |
tree | a09a737f4e41da61216fae85a845d6902b7a144c /arch/arm/mach-mx1 | |
parent | 13e9f61235616966f9f6caefd533046c19d35c92 (diff) |
MXC: rename mxc_map_io to architecture specific versions
This allows us to have more mapping functions for more than one
i.MX architecture in the kernel. As this is the earliest board
specific hook we have, also use it to set the cpu type.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx1')
-rw-r--r-- | arch/arm/mach-mx1/generic.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-mx1/mx1ads.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx1/scb9328.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/arch/arm/mach-mx1/generic.c b/arch/arm/mach-mx1/generic.c index 0dec6f300ffc..9c3528dbbfec 100644 --- a/arch/arm/mach-mx1/generic.c +++ b/arch/arm/mach-mx1/generic.c | |||
@@ -37,7 +37,9 @@ static struct map_desc imx_io_desc[] __initdata = { | |||
37 | } | 37 | } |
38 | }; | 38 | }; |
39 | 39 | ||
40 | void __init mxc_map_io(void) | 40 | void __init mx1_map_io(void) |
41 | { | 41 | { |
42 | mxc_set_cpu_type(MXC_CPU_MX1); | ||
43 | |||
42 | iotable_init(imx_io_desc, ARRAY_SIZE(imx_io_desc)); | 44 | iotable_init(imx_io_desc, ARRAY_SIZE(imx_io_desc)); |
43 | } | 45 | } |
diff --git a/arch/arm/mach-mx1/mx1ads.c b/arch/arm/mach-mx1/mx1ads.c index e54057fb855b..7a648c183930 100644 --- a/arch/arm/mach-mx1/mx1ads.c +++ b/arch/arm/mach-mx1/mx1ads.c | |||
@@ -198,7 +198,7 @@ MACHINE_START(MXLADS, "Freescale MXLADS") | |||
198 | .phys_io = IMX_IO_PHYS, | 198 | .phys_io = IMX_IO_PHYS, |
199 | .io_pg_offst = (IMX_IO_BASE >> 18) & 0xfffc, | 199 | .io_pg_offst = (IMX_IO_BASE >> 18) & 0xfffc, |
200 | .boot_params = PHYS_OFFSET + 0x100, | 200 | .boot_params = PHYS_OFFSET + 0x100, |
201 | .map_io = mxc_map_io, | 201 | .map_io = mx1_map_io, |
202 | .init_irq = mxc_init_irq, | 202 | .init_irq = mxc_init_irq, |
203 | .timer = &mx1ads_timer, | 203 | .timer = &mx1ads_timer, |
204 | .init_machine = mx1ads_init, | 204 | .init_machine = mx1ads_init, |
diff --git a/arch/arm/mach-mx1/scb9328.c b/arch/arm/mach-mx1/scb9328.c index 0e71f3fa28bf..20e0b5bcdffc 100644 --- a/arch/arm/mach-mx1/scb9328.c +++ b/arch/arm/mach-mx1/scb9328.c | |||
@@ -153,7 +153,7 @@ MACHINE_START(SCB9328, "Synertronixx scb9328") | |||
153 | .phys_io = 0x00200000, | 153 | .phys_io = 0x00200000, |
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 = mxc_map_io, | 156 | .map_io = mx1_map_io, |
157 | .init_irq = mxc_init_irq, | 157 | .init_irq = mxc_init_irq, |
158 | .timer = &scb9328_timer, | 158 | .timer = &scb9328_timer, |
159 | .init_machine = scb9328_init, | 159 | .init_machine = scb9328_init, |