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 | |
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>
-rw-r--r-- | arch/arm/mach-mxc91231/magx-zn5.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-mxc91231/mm.c | 7 | ||||
-rw-r--r-- | arch/arm/plat-mxc/include/mach/common.h | 1 |
3 files changed, 12 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) |
diff --git a/arch/arm/plat-mxc/include/mach/common.h b/arch/arm/plat-mxc/include/mach/common.h index 4746b9a984a4..a22ebe11a602 100644 --- a/arch/arm/plat-mxc/include/mach/common.h +++ b/arch/arm/plat-mxc/include/mach/common.h | |||
@@ -33,6 +33,7 @@ extern void imx35_init_early(void); | |||
33 | extern void imx50_init_early(void); | 33 | extern void imx50_init_early(void); |
34 | extern void imx51_init_early(void); | 34 | extern void imx51_init_early(void); |
35 | extern void imx53_init_early(void); | 35 | extern void imx53_init_early(void); |
36 | extern void mxc91231_init_early(void); | ||
36 | extern void mxc_init_irq(void __iomem *); | 37 | extern void mxc_init_irq(void __iomem *); |
37 | extern void tzic_init_irq(void __iomem *); | 38 | extern void tzic_init_irq(void __iomem *); |
38 | extern void mx1_init_irq(void); | 39 | extern void mx1_init_irq(void); |