]> 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)
commitbe8f0f3bf4af2fa2635782af5781c1863a5eaba2
tree0d408fe43f43248477bb521fdd5b6856878199b0
parent38c9c1214f331efcfa42259b0ef1f6f6d691271b
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]