diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2015-08-16 11:23:46 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-10-06 12:33:14 +0200 |
commit | 7d8d05d11473a169ab4d53bc7fc23d1fe3f1959f (patch) | |
tree | bee4e05c057bad03571e622f911fe391b684515b /include/linux/atmel_tc.h | |
parent | eed9fb9df47898ea62d71be7dcc3b36d95819a7c (diff) | |
download | talos-obmc-linux-7d8d05d11473a169ab4d53bc7fc23d1fe3f1959f.tar.gz talos-obmc-linux-7d8d05d11473a169ab4d53bc7fc23d1fe3f1959f.zip |
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>
Diffstat (limited to 'include/linux/atmel_tc.h')
-rw-r--r-- | include/linux/atmel_tc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/atmel_tc.h b/include/linux/atmel_tc.h index b87c1c7c242a..468fdfa643f0 100644 --- a/include/linux/atmel_tc.h +++ b/include/linux/atmel_tc.h @@ -67,6 +67,7 @@ struct atmel_tc { const struct atmel_tcb_config *tcb_config; int irq[3]; struct clk *clk[3]; + struct clk *slow_clk; struct list_head node; bool allocated; }; |