aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-vexpress/ct-ca9x4.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-01-11 08:07:52 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-02-19 06:11:10 -0500
commit493a451bb559476d2f7f189670be2172ca3010b4 (patch)
tree255ca4bf23ca31e33283f65fb477df22d0ce9211 /arch/arm/mach-vexpress/ct-ca9x4.c
parent631e55f966668d7a957342b38d7148643d919d73 (diff)
ARM: vexpress: use new init_early for clock tree and sched_clock init
Initialize the clock tree and our sched_clock() early. Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-vexpress/ct-ca9x4.c')
-rw-r--r--arch/arm/mach-vexpress/ct-ca9x4.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-vexpress/ct-ca9x4.c b/arch/arm/mach-vexpress/ct-ca9x4.c
index 27baed18a256..ff48ebc1a40b 100644
--- a/arch/arm/mach-vexpress/ct-ca9x4.c
+++ b/arch/arm/mach-vexpress/ct-ca9x4.c
@@ -180,6 +180,13 @@ static struct platform_device pmu_device = {
180 .resource = pmu_resources, 180 .resource = pmu_resources,
181}; 181};
182 182
183static void __init ct_ca9x4_init_early(void)
184{
185 clkdev_add_table(lookups, ARRAY_SIZE(lookups));
186
187 v2m_init_early();
188}
189
183static void __init ct_ca9x4_init(void) 190static void __init ct_ca9x4_init(void)
184{ 191{
185 int i; 192 int i;
@@ -194,8 +201,6 @@ static void __init ct_ca9x4_init(void)
194 l2x0_init(l2x0_base, 0x00400000, 0xfe0fffff); 201 l2x0_init(l2x0_base, 0x00400000, 0xfe0fffff);
195#endif 202#endif
196 203
197 clkdev_add_table(lookups, ARRAY_SIZE(lookups));
198
199 for (i = 0; i < ARRAY_SIZE(ct_ca9x4_amba_devs); i++) 204 for (i = 0; i < ARRAY_SIZE(ct_ca9x4_amba_devs); i++)
200 amba_device_register(ct_ca9x4_amba_devs[i], &iomem_resource); 205 amba_device_register(ct_ca9x4_amba_devs[i], &iomem_resource);
201 206
@@ -206,6 +211,7 @@ MACHINE_START(VEXPRESS, "ARM-Versatile Express CA9x4")
206 .boot_params = PHYS_OFFSET + 0x00000100, 211 .boot_params = PHYS_OFFSET + 0x00000100,
207 .map_io = ct_ca9x4_map_io, 212 .map_io = ct_ca9x4_map_io,
208 .init_irq = ct_ca9x4_init_irq, 213 .init_irq = ct_ca9x4_init_irq,
214 .init_early = ct_ca9x4_init_early,
209#if 0 215#if 0
210 .timer = &ct_ca9x4_timer, 216 .timer = &ct_ca9x4_timer,
211#else 217#else