]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit8566f70c8a90f3914b06e934852596ba94aaa381
tree67701afd66551074475a0b1a487cbcce67a3ecbb
parent03a32da5ca63d418ab95063b06687e00a6df9855
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