]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ARM: mach-shmobile: add shmobile_earlytimer_init()
authorMagnus Damm <damm@opensource.se>
Tue, 6 Mar 2012 08:36:14 +0000 (17:36 +0900)
committerRafael J. Wysocki <rjw@sisk.pl>
Mon, 12 Mar 2012 21:19:44 +0000 (22:19 +0100)
Add shmobile_earlytimer_init() that can be used to
enable the earlytimer probing from the SoC code.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
arch/arm/mach-shmobile/include/mach/common.h
arch/arm/mach-shmobile/timer.c

index f005ac0e4621c0f526e140293003f90e649d3d6c..e41b61a48439b24f736ede6abbe368ab19b3ae20 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __ARCH_MACH_COMMON_H
 #define __ARCH_MACH_COMMON_H
 
+extern void shmobile_earlytimer_init(void);
 extern struct sys_timer shmobile_timer;
 extern void shmobile_setup_console(void);
 extern void shmobile_secondary_vector(void);
index 895794b543cdcf7f1c567e8fc1635d6375c85134..e5106434355336402c95e5c24bc2321100d943a8 100644 (file)
@@ -36,11 +36,16 @@ static void __init shmobile_late_time_init(void)
        early_platform_driver_probe("earlytimer", 2, 0);
 }
 
-static void __init shmobile_timer_init(void)
+void __init shmobile_earlytimer_init(void)
 {
        late_time_init = shmobile_late_time_init;
 }
 
+static void __init shmobile_timer_init(void)
+{
+       shmobile_earlytimer_init();
+}
+
 struct sys_timer shmobile_timer = {
        .init           = shmobile_timer_init,
 };