]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f60e627d4c3eada02d5d9e4440ae9128d238294
tree4dcd807f550a84cc76d3cbef0d9ce7678f9028d0
parent31210d3dcf65f9ff3b47e4b3479f7588b3a4fc82
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