]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ds1307: support m41t0 variant
authorStefan Agner <stefan@agner.ch>
Thu, 23 Mar 2017 23:54:57 +0000 (16:54 -0700)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 14 Apr 2017 10:08:53 +0000 (12:08 +0200)
commit60f1cad227dea64df85f3f8e39d0752f4c9d6616
tree67701afd66551074475a0b1a487cbcce67a3ecbb
parent66dbce2f65b16536f0ad2a6f361faf71304466cf
rtc: ds1307: support m41t0 variant

The m41t0 variant is very similar to the already supported m41t00
variant, with the notable exception of the oscillator fail bit.
The data sheet notes:

  If the oscillator fail (OF) bit is internally set to a '1,' this
  indicates that the oscillator has either stopped, or was stopped
  for some period of time and can be used to judge the validity of
  the clock and date data.

The bit will get cleared with a regular write of the system time,
so no changes are needed to clear it.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Documentation/devicetree/bindings/i2c/trivial-devices.txt
drivers/rtc/rtc-ds1307.c