]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
regulator: qcom-rpmh: Fix PMIC5 BoB min voltage
authorKiran Gunda <kgunda@codeaurora.org>
Fri, 4 Oct 2019 10:16:55 +0000 (15:46 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 4 Oct 2019 17:44:37 +0000 (18:44 +0100)
Correct the PMIC5 BoB min voltage from 0.3V to 3V. Also correct
the voltage selector accordingly.

Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Link: https://lore.kernel.org/r/1570184215-5355-1-git-send-email-kgunda@codeaurora.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom-rpmh-regulator.c

index db6c085da65ecf742daeca83824072ab70a3834b..0246b6f99fb50c4232449def2c005b615e31138d 100644 (file)
@@ -735,8 +735,8 @@ static const struct rpmh_vreg_hw_data pmic5_hfsmps515 = {
 static const struct rpmh_vreg_hw_data pmic5_bob = {
        .regulator_type = VRM,
        .ops = &rpmh_regulator_vrm_bypass_ops,
-       .voltage_range = REGULATOR_LINEAR_RANGE(300000, 0, 135, 32000),
-       .n_voltages = 136,
+       .voltage_range = REGULATOR_LINEAR_RANGE(3000000, 0, 31, 32000),
+       .n_voltages = 32,
        .pmic_mode_map = pmic_mode_map_pmic5_bob,
        .of_map_mode = rpmh_regulator_pmic4_bob_of_map_mode,
 };