mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
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:
parent
c322899f4a
commit
be91dc097d
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue