misc: atmel_tclib: get and use slow clock
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Sun, 16 Aug 2015 09:23:46 +0000 (11:23 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 6 Oct 2015 10:33:14 +0000 (12:33 +0200)
commit7d8d05d11473a169ab4d53bc7fc23d1fe3f1959f
treebee4e05c057bad03571e622f911fe391b684515b
parenteed9fb9df47898ea62d71be7dcc3b36d95819a7c
misc: atmel_tclib: get and use slow clock

Commit dca1a4b5ff6e ("clk: at91: keep slow clk enabled to prevent system
hang") added a workaround for the slow clock as it is not properly handled
by its users.

Get and use the slow clock as it is necessary for the timer counters.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
drivers/clocksource/tcb_clksrc.c
drivers/misc/atmel_tclib.c
drivers/pwm/pwm-atmel-tcb.c
include/linux/atmel_tc.h