Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mesih Kilinc and committed by
Daniel Lezcano
0113ab80 67d06e6e

+4 -1
+4 -1
drivers/clocksource/timer-sun4i.c
··· 186 186 */ 187 187 if (of_machine_is_compatible("allwinner,sun4i-a10") || 188 188 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")) 190 191 sched_clock_register(sun4i_timer_sched_read, 32, 191 192 timer_of_rate(&to)); 192 193 ··· 218 217 return ret; 219 218 } 220 219 TIMER_OF_DECLARE(sun4i, "allwinner,sun4i-a10-timer", 220 + sun4i_timer_init); 221 + TIMER_OF_DECLARE(suniv, "allwinner,suniv-f1c100s-timer", 221 222 sun4i_timer_init);