@@ -1123,6 +1123,18 @@ static __devinit int tps65910_probe(struct platform_device *pdev)
pmic->desc[i].ops = &tps65911_ops;
}
+ /* Enable register caching */
+ tps65910_enable_reg_cache(tps65910, pmic->get_ctrl_reg(i));
+ /* VDD1/VDD2/VDDCTRL-TPS65911 have SR and OP register */
+ if ((i == TPS65910_REG_VDD1) || (i == TPS65910_REG_VDD2) ||
+ ((tps65910_chip_id(tps65910) == TPS65911) &&
+ (i == TPS65911_REG_VDDCTRL))) {
+ tps65910_enable_reg_cache(tps65910,
+ pmic->get_ctrl_reg(i) + 1);
+ tps65910_enable_reg_cache(tps65910,
+ pmic->get_ctrl_reg(i) + 2);
+ }
+
err = tps65910_set_ext_sleep_config(pmic, i,
pmic_plat_data->regulator_ext_sleep_control[i]);
/*
Enabling the caching of the registers which is used for voltage controls. By doing this, the modify_bits operation is faster as it does not involve the i2c register read from device, just read from cache. This results faster set voltage operation. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> --- drivers/regulator/tps65910-regulator.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-)