rtc: ds1307: add frequency_test_enable attribute on m41txx
authorGiulio Benetti <giulio.benetti@micronovasrl.com>
Wed, 25 Jul 2018 17:26:05 +0000 (19:26 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 28 Sep 2018 12:20:58 +0000 (14:20 +0200)
commitb41c23e152f2852ff7a299676af4f642bbe94abf
tree4dcd807f550a84cc76d3cbef0d9ce7678f9028d0
parent79230ff64167586b2a556470c7934083afea930e
rtc: ds1307: add frequency_test_enable  attribute on m41txx

On m41txx you can enable open-drain OUT pin to check if offset is ok.
Enabling OUT pin with frequency_test_enable attribute, OUT pin will tick
512 times faster than 1s tick base.

Enable or Disable FT bit on CONTROL register if freq_test is 1 or 0.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1307.c