regulator: Fix for v3.19
One fix here, a fix for the voltage mapping on one of the s2mps11 regulators which broke systems using it including apparently the Gear 2 smartwatches. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJUoX7vAAoJECTWi3JdVIfQtcEH/junzpSCOwIrI8NG9/ZF0xt5 rLB1SlDxtiSPv6eFA+KXYYmO8VNjZ1g+NN1PoeSNgAK08YzG9IUHIqI1L1iDe2qG 2vpPY++Rg5eWPY79Sa9oy/+2zmFmUh3t+Shv7p3WC1Q8GES4bD6dm/QVxykh16nW nDGYZN981THIHS9xPKsmvCbHMp6PknDZkqO9Umzflt7cYgzgFP8xTaTlb4vkwTza 3ZjGnEMIe1ldkLGFEJmdsSMro07hKzVYk8e3auOK+gAMpO+QjpY8WxuarmpQBPLx GddKhfkox5HNUxm9jRp0jivgi8YXD4a1lXzwXpxSihax1Q/Q/v00yoJ6selRQXg= =/mpj -----END PGP SIGNATURE----- Merge tag 'regulator-v3.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator Pull one regulator fix from Mark Brown: "One fix here, a fix for the voltage mapping on one of the s2mps11 regulators which broke systems using it including apparently the Gear 2 smartwatches" * tag 'regulator-v3.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: regulator: s2mps11: Fix dw_mmc failure on Gear 2
This commit is contained in:
commit
034496f40d
|
@ -570,7 +570,7 @@ static struct regulator_ops s2mps14_reg_ops = {
|
|||
.enable_mask = S2MPS14_ENABLE_MASK \
|
||||
}
|
||||
|
||||
#define regulator_desc_s2mps14_buck(num, min, step) { \
|
||||
#define regulator_desc_s2mps14_buck(num, min, step, min_sel) { \
|
||||
.name = "BUCK"#num, \
|
||||
.id = S2MPS14_BUCK##num, \
|
||||
.ops = &s2mps14_reg_ops, \
|
||||
|
@ -579,7 +579,7 @@ static struct regulator_ops s2mps14_reg_ops = {
|
|||
.min_uV = min, \
|
||||
.uV_step = step, \
|
||||
.n_voltages = S2MPS14_BUCK_N_VOLTAGES, \
|
||||
.linear_min_sel = S2MPS14_BUCK1235_START_SEL, \
|
||||
.linear_min_sel = min_sel, \
|
||||
.ramp_delay = S2MPS14_BUCK_RAMP_DELAY, \
|
||||
.vsel_reg = S2MPS14_REG_B1CTRL2 + (num - 1) * 2, \
|
||||
.vsel_mask = S2MPS14_BUCK_VSEL_MASK, \
|
||||
|
@ -613,11 +613,16 @@ static const struct regulator_desc s2mps14_regulators[] = {
|
|||
regulator_desc_s2mps14_ldo(23, MIN_800_MV, STEP_25_MV),
|
||||
regulator_desc_s2mps14_ldo(24, MIN_1800_MV, STEP_25_MV),
|
||||
regulator_desc_s2mps14_ldo(25, MIN_1800_MV, STEP_25_MV),
|
||||
regulator_desc_s2mps14_buck(1, MIN_600_MV, STEP_6_25_MV),
|
||||
regulator_desc_s2mps14_buck(2, MIN_600_MV, STEP_6_25_MV),
|
||||
regulator_desc_s2mps14_buck(3, MIN_600_MV, STEP_6_25_MV),
|
||||
regulator_desc_s2mps14_buck(4, MIN_1400_MV, STEP_12_5_MV),
|
||||
regulator_desc_s2mps14_buck(5, MIN_600_MV, STEP_6_25_MV),
|
||||
regulator_desc_s2mps14_buck(1, MIN_600_MV, STEP_6_25_MV,
|
||||
S2MPS14_BUCK1235_START_SEL),
|
||||
regulator_desc_s2mps14_buck(2, MIN_600_MV, STEP_6_25_MV,
|
||||
S2MPS14_BUCK1235_START_SEL),
|
||||
regulator_desc_s2mps14_buck(3, MIN_600_MV, STEP_6_25_MV,
|
||||
S2MPS14_BUCK1235_START_SEL),
|
||||
regulator_desc_s2mps14_buck(4, MIN_1400_MV, STEP_12_5_MV,
|
||||
S2MPS14_BUCK4_START_SEL),
|
||||
regulator_desc_s2mps14_buck(5, MIN_600_MV, STEP_6_25_MV,
|
||||
S2MPS14_BUCK1235_START_SEL),
|
||||
};
|
||||
|
||||
static int s2mps14_pmic_enable_ext_control(struct s2mps11_info *s2mps11,
|
||||
|
|
Loading…
Reference in New Issue