regulator: rpm-smd: Add support for min dropout voltage

Add support for specifying the minimum dropout voltage between a
given rpm-smd-regulator device and its parent.

Change-Id: I0d3ee8e716dc6e646139ca0c7ecde10cc27d343d
Signed-off-by: Jishnu Prakash <jprakash@codeaurora.org>
This commit is contained in:
Jishnu Prakash 2020-07-24 19:16:26 +05:30
commit be91dc097d

View file

@ -1459,6 +1459,11 @@ static int rpm_vreg_device_probe(struct platform_device *pdev)
goto fail_free_reg;
}
rc = of_property_read_u32(node, "qcom,min-dropout-voltage",
&val);
if (!rc)
reg->rdesc.min_dropout_uV = val;
reg->set_active = !!(val & RPM_SET_CONFIG_ACTIVE);
reg->set_sleep = !!(val & RPM_SET_CONFIG_SLEEP);