Commit 5957e444 authored by Laxman Dewangan's avatar Laxman Dewangan Committed by Mark Brown

regulator: palmas: configure enable time for LDOs

As per datasheet (Referred TPS65913), the on-time for LDO is
500micro second. If LDO6 is in vibrator mode then the on-time
is 2000us.

Set the enable_time on regulator descriptor accordingly.
Signed-off-by: default avatarLaxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 32b6d3f6
...@@ -1127,6 +1127,7 @@ static int palmas_regulators_probe(struct platform_device *pdev) ...@@ -1127,6 +1127,7 @@ static int palmas_regulators_probe(struct platform_device *pdev)
pmic->desc[id].min_uV = 900000; pmic->desc[id].min_uV = 900000;
pmic->desc[id].uV_step = 50000; pmic->desc[id].uV_step = 50000;
pmic->desc[id].linear_min_sel = 1; pmic->desc[id].linear_min_sel = 1;
pmic->desc[id].enable_time = 500;
pmic->desc[id].vsel_reg = pmic->desc[id].vsel_reg =
PALMAS_BASE_TO_REG(PALMAS_LDO_BASE, PALMAS_BASE_TO_REG(PALMAS_LDO_BASE,
palmas_regs_info[id].vsel_addr); palmas_regs_info[id].vsel_addr);
...@@ -1145,6 +1146,11 @@ static int palmas_regulators_probe(struct platform_device *pdev) ...@@ -1145,6 +1146,11 @@ static int palmas_regulators_probe(struct platform_device *pdev)
pmic->desc[id].min_uV = 450000; pmic->desc[id].min_uV = 450000;
pmic->desc[id].uV_step = 25000; pmic->desc[id].uV_step = 25000;
} }
/* LOD6 in vibrator mode will have enable time 2000us */
if (pdata && pdata->ldo6_vibrator &&
(id == PALMAS_REG_LDO6))
pmic->desc[id].enable_time = 2000;
} else { } else {
pmic->desc[id].n_voltages = 1; pmic->desc[id].n_voltages = 1;
if (reg_init && reg_init->roof_floor) if (reg_init && reg_init->roof_floor)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment