]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: at91sam9: use clk API instead of relying on AT91_SLOW_CLOCK
authorBoris BREZILLON <boris.brezillon@free-electrons.com>
Tue, 23 Sep 2014 14:41:07 +0000 (16:41 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 13 Nov 2014 15:08:01 +0000 (16:08 +0100)
commit2a2931f0a7d205b9d2651a439b22262e54a7fd3b
tree3087c457ca561f407dd86baa915f19b56643d134
parent371df4d403b58b3d7e103c632d91fb3a9fc96ca6
rtc: at91sam9: use clk API instead of relying on AT91_SLOW_CLOCK

The RTT block is using the slow clock which is accessible through the clk
API.
Use the clk API to retrieve, enable and get the slow clk rate instead of
the AT91_SLOW_CLOCK macro (which hardcodes the slow clk rate).
Doing this allows us to reference the clk thus preventing the CCF from
disabling it during the "disable unused" phase.

Signed-off-by: Boris BREZILLON <boris.brezillon@free-electrons.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Johan Hovold <johan@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
drivers/rtc/rtc-at91sam9.c