]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ds1307: add trickle charger support
authorWolfram Sang <w.sang@pengutronix.de>
Tue, 29 May 2012 22:07:38 +0000 (15:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:33 +0000 (16:22 -0700)
commit4b136fed3844f66940c3c1881857aae3590ed21d
tree0d408fe43f43248477bb521fdd5b6856878199b0
parentd12be5626741d74585a80a802d4228e7cbfba78d
rtc: ds1307: add trickle charger support

Some DS13XX devices have "trickle chargers".  Its configuration register
is at different locations, the setup is the same, though.  Since the
configuration is board specific, introduce a platform_data to this driver.
Tested with a DS1339 on a custom board.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Alessandro Zummo <alessandro.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-ds1307.c
include/linux/rtc/ds1307.h [new file with mode: 0644]