Skip to content

Commit 0113ab8

Browse files
MesihKDaniel Lezcano
authored andcommitted
clocksource/drivers/sun4i: Add a compatible for suniv
The suniv (new F-series) chip has a timer with less functionality than the A10 timer, e.g. it has only 3 channels. Add a new compatible for it. As we didn't use the extra channels on A10 either now, the code needn't to be changed. The suniv chip is based on ARM926EJ-S CPU, thus it has no architecture timer. Register sun4i_timer as sched_clock on it. Signed-off-by: Mesih Kilinc <mesihkilinc@gmail.com> Acked-by: Maxime Ripard <maxime.ripard@bootlin.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 67d06e6 commit 0113ab8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎drivers/clocksource/timer-sun4i.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ static int __init sun4i_timer_init(struct device_node *node)
186186
*/
187187
if (of_machine_is_compatible("allwinner,sun4i-a10") ||
188188
of_machine_is_compatible("allwinner,sun5i-a13") ||
189-
of_machine_is_compatible("allwinner,sun5i-a10s"))
189+
of_machine_is_compatible("allwinner,sun5i-a10s") ||
190+
of_machine_is_compatible("allwinner,suniv-f1c100s"))
190191
sched_clock_register(sun4i_timer_sched_read, 32,
191192
timer_of_rate(&to));
192193

@@ -218,3 +219,5 @@ static int __init sun4i_timer_init(struct device_node *node)
218219
}
219220
TIMER_OF_DECLARE(sun4i, "allwinner,sun4i-a10-timer",
220221
sun4i_timer_init);
222+
TIMER_OF_DECLARE(suniv, "allwinner,suniv-f1c100s-timer",
223+
sun4i_timer_init);

0 commit comments

Comments
 (0)