Commit 08ad42fb authored by Magnus Damm's avatar Magnus Damm Committed by Rafael J. Wysocki

ARM: mach-shmobile: add shmobile_earlytimer_init()

Add shmobile_earlytimer_init() that can be used to
enable the earlytimer probing from the SoC code.
Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
parent e3b0161b
#ifndef __ARCH_MACH_COMMON_H #ifndef __ARCH_MACH_COMMON_H
#define __ARCH_MACH_COMMON_H #define __ARCH_MACH_COMMON_H
extern void shmobile_earlytimer_init(void);
extern struct sys_timer shmobile_timer; extern struct sys_timer shmobile_timer;
extern void shmobile_setup_console(void); extern void shmobile_setup_console(void);
extern void shmobile_secondary_vector(void); extern void shmobile_secondary_vector(void);
......
...@@ -36,11 +36,16 @@ static void __init shmobile_late_time_init(void) ...@@ -36,11 +36,16 @@ static void __init shmobile_late_time_init(void)
early_platform_driver_probe("earlytimer", 2, 0); 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; late_time_init = shmobile_late_time_init;
} }
static void __init shmobile_timer_init(void)
{
shmobile_earlytimer_init();
}
struct sys_timer shmobile_timer = { struct sys_timer shmobile_timer = {
.init = shmobile_timer_init, .init = shmobile_timer_init,
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment