Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e74984e4 authored by Tony Lindgren's avatar Tony Lindgren
Browse files

omap: Set separate timer init functions to avoid cpu_is_omap tests



This is needed for the following patches so we can initialize the
rest of the hardware timers later on.

As with the init_irq calls, there's no need to do cpu_is_omap calls
during the timer init as we only care about the major omap generation.
This means that we can initialize the sys_timer with the .timer
entries alone.

Note that for now we just set stubs for the various sys_timer entries
that will get populated in a later patch. The following patches will
also remove the omap_dm_timer_init calls and change the init for the
rest of the hardware timers to happen with an arch_initcall.

Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Reviewed-by: default avatarKevin Hilman <khilman@ti.com>
parent 741e3a89
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -391,7 +391,7 @@ MACHINE_START(AMS_DELTA, "Amstrad E3 (Delta)")
	.reserve	= omap_reserve,
	.init_irq	= ams_delta_init_irq,
	.init_machine	= ams_delta_init,
	.timer		= &omap_timer,
	.timer		= &omap1_timer,
MACHINE_END

EXPORT_SYMBOL(ams_delta_latch1_write);
+1 −1
Original line number Diff line number Diff line
@@ -394,5 +394,5 @@ MACHINE_START(OMAP_FSAMPLE, "OMAP730 F-Sample")
	.reserve	= omap_reserve,
	.init_irq	= omap_fsample_init_irq,
	.init_machine	= omap_fsample_init,
	.timer		= &omap_timer,
	.timer		= &omap1_timer,
MACHINE_END
+1 −1
Original line number Diff line number Diff line
@@ -99,5 +99,5 @@ MACHINE_START(OMAP_GENERIC, "Generic OMAP1510/1610/1710")
	.reserve	= omap_reserve,
	.init_irq	= omap_generic_init_irq,
	.init_machine	= omap_generic_init,
	.timer		= &omap_timer,
	.timer		= &omap1_timer,
MACHINE_END
+1 −1
Original line number Diff line number Diff line
@@ -466,5 +466,5 @@ MACHINE_START(OMAP_H2, "TI-H2")
	.reserve	= omap_reserve,
	.init_irq	= h2_init_irq,
	.init_machine	= h2_init,
	.timer		= &omap_timer,
	.timer		= &omap1_timer,
MACHINE_END
+1 −1
Original line number Diff line number Diff line
@@ -454,5 +454,5 @@ MACHINE_START(OMAP_H3, "TI OMAP1710 H3 board")
	.reserve	= omap_reserve,
	.init_irq	= h3_init_irq,
	.init_machine	= h3_init,
	.timer		= &omap_timer,
	.timer		= &omap1_timer,
MACHINE_END
Loading