regulator: Add soft start support
Some regulators support a "soft start" feature where the voltage ramps up slowly when the regulator is enabled. Add an op (set_soft_start) and a DT property + constraint to support this. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -84,6 +84,9 @@ static void of_get_regulation_constraints(struct device_node *np,
|
||||
if (!ret)
|
||||
constraints->enable_time = pval;
|
||||
|
||||
constraints->soft_start = of_property_read_bool(np,
|
||||
"regulator-soft-start");
|
||||
|
||||
if (!of_property_read_u32(np, "regulator-initial-mode", &pval)) {
|
||||
if (desc && desc->of_map_mode) {
|
||||
ret = desc->of_map_mode(pval);
|
||||
|
Reference in New Issue
Block a user