diff options
author | Andrea Greco <a.greco@4sigma.it> | 2018-04-20 11:34:02 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-05-03 22:46:25 +0200 |
commit | 51ed73eb998a1c79a2b0e9bed68f75a8a2c93b9b (patch) | |
tree | a8cff50230a71cbd631e01cb68ea7559bb159b31 /drivers/rtc/rtc-ds1307.c | |
parent | 149aa91cd6d526e7f6eec3490e82eb073c7881f9 (diff) | |
download | linux-51ed73eb998a1c79a2b0e9bed68f75a8a2c93b9b.tar.bz2 |
rtc: ds1340: Add support for trickle charger.
Add support Dallas DS1340 trickle charger function.
Signed-off-by: Andrea Greco <a.greco@4sigma.it>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-ds1307.c')
-rw-r--r-- | drivers/rtc/rtc-ds1307.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index a13e59edff53..e9ec4160d7f6 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -201,6 +201,7 @@ static const struct chip_desc chips[last_ds_type] = { .century_reg = DS1307_REG_HOUR, .century_enable_bit = DS1340_BIT_CENTURY_EN, .century_bit = DS1340_BIT_CENTURY, + .do_trickle_setup = &do_trickle_setup_ds1339, .trickle_charger_reg = 0x08, }, [ds_1341] = { @@ -1371,6 +1372,7 @@ static void ds1307_clks_register(struct ds1307 *ds1307) static const struct regmap_config regmap_config = { .reg_bits = 8, .val_bits = 8, + .max_register = 0x9, }; static int ds1307_probe(struct i2c_client *client, |