Aggregate common register accesses into shared functions for
maintainability.
Signed-off-by: Sugaya Taichi <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Fix mlb_set_oneshot_state() to enable one-shot timer.
The function should stop and start a timer, but "start" statement was
dropped. Kick the register to start one-shot timer.
Fixes: b58f28f306 ("clocksource/drivers/timer-milbeaut: Introduce timer for Milbeaut SoCs")
Signed-off-by: Sugaya Taichi <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Add timer driver for Milbeaut SoCs series.
The timer has two 32-bit width down counters, one of which is configured
as a clockevent device and the other is configured as a clock source.
Signed-off-by: Sugaya Taichi <[email protected]>
Acked-by: Daniel Lezcano <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>