rtc: armada38x: add support for trimming the RTC
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 29 Sep 2017 10:23:31 +0000 (11:23 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 25 Oct 2017 21:05:52 +0000 (23:05 +0200)
commitf94ffbc2c2a4128c4412bb483d0807722dfb682b
treec08988bffbc74cba5423149863fdf4d0b76f1793
parent8a25c8f66c46077bd5ae8ea5f6fd6fa08ea8231a
rtc: armada38x: add support for trimming the RTC

Add support for trimming the RTC using the offset mechanism.  This RTC
supports two modes: low update mode and high update mode.  Low update
mode has finer precision than high update mode, so we use the low mode
where possible.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-armada38x.c