diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2011-02-07 10:35:22 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-02-10 08:23:50 -0500 |
commit | 23b120cdfae4f5c29da69de750d545bad719ead4 (patch) | |
tree | fb2f8b5b7335ca117679fbb64601c9c3e8147d12 /arch/arm/mach-mxc91231 | |
parent | ab130421269aec9bf83d8ef5b7ceda80e2619599 (diff) |
ARM: mxc91231: use .init_early to initialize cpu type
This used to be done in .map_io which is supposed to only setup the memory
mapping.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxc91231')
-rw-r--r-- | arch/arm/mach-mxc91231/magx-zn5.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-mxc91231/mm.c | 7 |
2 files changed, 11 insertions, 7 deletions
diff --git a/arch/arm/mach-mxc91231/magx-zn5.c b/arch/arm/mach-mxc91231/magx-zn5.c index 395d83be8c98..f31a45e5a0b8 100644 --- a/arch/arm/mach-mxc91231/magx-zn5.c +++ b/arch/arm/mach-mxc91231/magx-zn5.c | |||
@@ -53,9 +53,10 @@ struct sys_timer zn5_timer = { | |||
53 | }; | 53 | }; |
54 | 54 | ||
55 | MACHINE_START(MAGX_ZN5, "Motorola Zn5") | 55 | MACHINE_START(MAGX_ZN5, "Motorola Zn5") |
56 | .boot_params = MXC91231_PHYS_OFFSET + 0x100, | 56 | .boot_params = MXC91231_PHYS_OFFSET + 0x100, |
57 | .map_io = mxc91231_map_io, | 57 | .map_io = mxc91231_map_io, |
58 | .init_irq = mxc91231_init_irq, | 58 | .init_early = mxc91231_init_early, |
59 | .timer = &zn5_timer, | 59 | .init_irq = mxc91231_init_irq, |
60 | .init_machine = zn5_init, | 60 | .timer = &zn5_timer, |
61 | .init_machine = zn5_init, | ||
61 | MACHINE_END | 62 | MACHINE_END |
diff --git a/arch/arm/mach-mxc91231/mm.c b/arch/arm/mach-mxc91231/mm.c index 7652c301da88..a77f6daf6a26 100644 --- a/arch/arm/mach-mxc91231/mm.c +++ b/arch/arm/mach-mxc91231/mm.c | |||
@@ -45,11 +45,14 @@ static struct map_desc mxc91231_io_desc[] __initdata = { | |||
45 | */ | 45 | */ |
46 | void __init mxc91231_map_io(void) | 46 | void __init mxc91231_map_io(void) |
47 | { | 47 | { |
48 | mxc_set_cpu_type(MXC_CPU_MXC91231); | ||
49 | |||
50 | iotable_init(mxc91231_io_desc, ARRAY_SIZE(mxc91231_io_desc)); | 48 | iotable_init(mxc91231_io_desc, ARRAY_SIZE(mxc91231_io_desc)); |
51 | } | 49 | } |
52 | 50 | ||
51 | void __init mxc91231_init_early(void) | ||
52 | { | ||
53 | mxc_set_cpu_type(MXC_CPU_MXC91231); | ||
54 | } | ||
55 | |||
53 | int mxc91231_register_gpios(void); | 56 | int mxc91231_register_gpios(void); |
54 | 57 | ||
55 | void __init mxc91231_init_irq(void) | 58 | void __init mxc91231_init_irq(void) |