mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-22 04:07:44 +07:00
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>
This commit is contained in:
parent
149aa91cd6
commit
51ed73eb99
@ -201,6 +201,7 @@ static const struct chip_desc chips[last_ds_type] = {
|
|||||||
.century_reg = DS1307_REG_HOUR,
|
.century_reg = DS1307_REG_HOUR,
|
||||||
.century_enable_bit = DS1340_BIT_CENTURY_EN,
|
.century_enable_bit = DS1340_BIT_CENTURY_EN,
|
||||||
.century_bit = DS1340_BIT_CENTURY,
|
.century_bit = DS1340_BIT_CENTURY,
|
||||||
|
.do_trickle_setup = &do_trickle_setup_ds1339,
|
||||||
.trickle_charger_reg = 0x08,
|
.trickle_charger_reg = 0x08,
|
||||||
},
|
},
|
||||||
[ds_1341] = {
|
[ds_1341] = {
|
||||||
@ -1371,6 +1372,7 @@ static void ds1307_clks_register(struct ds1307 *ds1307)
|
|||||||
static const struct regmap_config regmap_config = {
|
static const struct regmap_config regmap_config = {
|
||||||
.reg_bits = 8,
|
.reg_bits = 8,
|
||||||
.val_bits = 8,
|
.val_bits = 8,
|
||||||
|
.max_register = 0x9,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int ds1307_probe(struct i2c_client *client,
|
static int ds1307_probe(struct i2c_client *client,
|
||||||
|
Loading…
Reference in New Issue
Block a user