]> git.karo-electronics.de Git - karo-tx-linux.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)
commiteb86c3064b3c53837fdfea17df1483d825919894
tree0d408fe43f43248477bb521fdd5b6856878199b0
parentf8ae97019ff79559416dc2ae9c14af92c2054cba
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]