]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: ds1307: add trickle charger support
authorWolfram Sang <w.sang@pengutronix.de>
Thu, 3 May 2012 05:44:35 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:52 +0000 (15:46 +1000)
commita0a988efd21fbd8e75d0e6d6c5d7adcf586834ac
treeb5c670ef7304dc9a0786d178f4e11151cf6b3247
parentd71df7b7f7f5f844d6e74d814b5d81919cc22cdd
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>
drivers/rtc/rtc-ds1307.c
include/linux/rtc/ds1307.h [new file with mode: 0644]