]> 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)
commite73842f182cd9f38acd29f73f087825d95b295bc
tree67701afd66551074475a0b1a487cbcce67a3ecbb
parentc9ce153137b2ad3538011d8778403acc494b84c6
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