Skip to content

Commit e69b4e1

Browse files
committed
ARM: OMAP2+: Add omap_init_time_of()
This allows us to move the SoCs to probe system timers one SoC at at time. As arch/arm/mach-omap2/timer.c will be eventually gone, let's just add omap_init_time_of() to board-generic.c directly. Cc: Grygorii Strashko <[email protected]> Cc: Keerthy <[email protected]> Cc: Lokesh Vutla <[email protected]> Cc: Rob Herring <[email protected]> Cc: Tero Kristo <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 4bba9bf commit e69b4e1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

arch/arm/mach-omap2/board-generic.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <linux/of_irq.h>
1313
#include <linux/of_platform.h>
1414
#include <linux/irqdomain.h>
15+
#include <linux/clocksource.h>
1516

1617
#include <asm/setup.h>
1718
#include <asm/mach/arch.h>
@@ -31,6 +32,13 @@ static void __init __maybe_unused omap_generic_init(void)
3132
omap_soc_device_init();
3233
}
3334

35+
/* Clocks are needed early, see drivers/clocksource for the rest */
36+
void __init __maybe_unused omap_init_time_of(void)
37+
{
38+
omap_clk_init();
39+
timer_probe();
40+
}
41+
3442
#ifdef CONFIG_SOC_OMAP2420
3543
static const char *const omap242x_boards_compat[] __initconst = {
3644
"ti,omap2420",

0 commit comments

Comments
 (0)