mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-13 01:08:50 +00:00
regulator: tps65218: Add fixed_uV fields for dcdc5 and dcdc6
Add fixed_uV fields for dcdc5 and dcdc6. Signed-off-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
6a5e06d9f4
commit
7753d2d41f
@ -30,7 +30,7 @@
|
|||||||
enum tps65218_regulators { DCDC1, DCDC2, DCDC3, DCDC4, DCDC5, DCDC6, LDO1 };
|
enum tps65218_regulators { DCDC1, DCDC2, DCDC3, DCDC4, DCDC5, DCDC6, LDO1 };
|
||||||
|
|
||||||
#define TPS65218_REGULATOR(_name, _id, _ops, _n, _vr, _vm, _er, _em, \
|
#define TPS65218_REGULATOR(_name, _id, _ops, _n, _vr, _vm, _er, _em, \
|
||||||
_lr, _nlr, _delay) \
|
_lr, _nlr, _delay, _fuv) \
|
||||||
{ \
|
{ \
|
||||||
.name = _name, \
|
.name = _name, \
|
||||||
.id = _id, \
|
.id = _id, \
|
||||||
@ -46,6 +46,7 @@ enum tps65218_regulators { DCDC1, DCDC2, DCDC3, DCDC4, DCDC5, DCDC6, LDO1 };
|
|||||||
.linear_ranges = _lr, \
|
.linear_ranges = _lr, \
|
||||||
.n_linear_ranges = _nlr, \
|
.n_linear_ranges = _nlr, \
|
||||||
.ramp_delay = _delay, \
|
.ramp_delay = _delay, \
|
||||||
|
.fixed_uV = _fuv \
|
||||||
} \
|
} \
|
||||||
|
|
||||||
#define TPS65218_INFO(_id, _nm, _min, _max) \
|
#define TPS65218_INFO(_id, _nm, _min, _max) \
|
||||||
@ -186,32 +187,32 @@ static const struct regulator_desc regulators[] = {
|
|||||||
TPS65218_REG_CONTROL_DCDC1,
|
TPS65218_REG_CONTROL_DCDC1,
|
||||||
TPS65218_CONTROL_DCDC1_MASK,
|
TPS65218_CONTROL_DCDC1_MASK,
|
||||||
TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC1_EN,
|
TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC1_EN,
|
||||||
dcdc1_dcdc2_ranges, 2, 4000),
|
dcdc1_dcdc2_ranges, 2, 4000, 0),
|
||||||
TPS65218_REGULATOR("DCDC2", TPS65218_DCDC_2, tps65218_dcdc12_ops, 64,
|
TPS65218_REGULATOR("DCDC2", TPS65218_DCDC_2, tps65218_dcdc12_ops, 64,
|
||||||
TPS65218_REG_CONTROL_DCDC2,
|
TPS65218_REG_CONTROL_DCDC2,
|
||||||
TPS65218_CONTROL_DCDC2_MASK,
|
TPS65218_CONTROL_DCDC2_MASK,
|
||||||
TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC2_EN,
|
TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC2_EN,
|
||||||
dcdc1_dcdc2_ranges, 2, 4000),
|
dcdc1_dcdc2_ranges, 2, 4000, 0),
|
||||||
TPS65218_REGULATOR("DCDC3", TPS65218_DCDC_3, tps65218_ldo1_dcdc34_ops,
|
TPS65218_REGULATOR("DCDC3", TPS65218_DCDC_3, tps65218_ldo1_dcdc34_ops,
|
||||||
64, TPS65218_REG_CONTROL_DCDC3,
|
64, TPS65218_REG_CONTROL_DCDC3,
|
||||||
TPS65218_CONTROL_DCDC3_MASK, TPS65218_REG_ENABLE1,
|
TPS65218_CONTROL_DCDC3_MASK, TPS65218_REG_ENABLE1,
|
||||||
TPS65218_ENABLE1_DC3_EN, ldo1_dcdc3_ranges, 2, 0),
|
TPS65218_ENABLE1_DC3_EN, ldo1_dcdc3_ranges, 2, 0, 0),
|
||||||
TPS65218_REGULATOR("DCDC4", TPS65218_DCDC_4, tps65218_ldo1_dcdc34_ops,
|
TPS65218_REGULATOR("DCDC4", TPS65218_DCDC_4, tps65218_ldo1_dcdc34_ops,
|
||||||
53, TPS65218_REG_CONTROL_DCDC4,
|
53, TPS65218_REG_CONTROL_DCDC4,
|
||||||
TPS65218_CONTROL_DCDC4_MASK,
|
TPS65218_CONTROL_DCDC4_MASK,
|
||||||
TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC4_EN,
|
TPS65218_REG_ENABLE1, TPS65218_ENABLE1_DC4_EN,
|
||||||
dcdc4_ranges, 2, 0),
|
dcdc4_ranges, 2, 0, 0),
|
||||||
TPS65218_REGULATOR("DCDC5", TPS65218_DCDC_5, tps65218_dcdc56_pmic_ops,
|
TPS65218_REGULATOR("DCDC5", TPS65218_DCDC_5, tps65218_dcdc56_pmic_ops,
|
||||||
1, -1, -1, TPS65218_REG_ENABLE1,
|
1, -1, -1, TPS65218_REG_ENABLE1,
|
||||||
TPS65218_ENABLE1_DC5_EN, NULL, 0, 0),
|
TPS65218_ENABLE1_DC5_EN, NULL, 0, 0, 1000000),
|
||||||
TPS65218_REGULATOR("DCDC6", TPS65218_DCDC_6, tps65218_dcdc56_pmic_ops,
|
TPS65218_REGULATOR("DCDC6", TPS65218_DCDC_6, tps65218_dcdc56_pmic_ops,
|
||||||
1, -1, -1, TPS65218_REG_ENABLE1,
|
1, -1, -1, TPS65218_REG_ENABLE1,
|
||||||
TPS65218_ENABLE1_DC6_EN, NULL, 0, 0),
|
TPS65218_ENABLE1_DC6_EN, NULL, 0, 0, 1800000),
|
||||||
TPS65218_REGULATOR("LDO1", TPS65218_LDO_1, tps65218_ldo1_dcdc34_ops, 64,
|
TPS65218_REGULATOR("LDO1", TPS65218_LDO_1, tps65218_ldo1_dcdc34_ops, 64,
|
||||||
TPS65218_REG_CONTROL_LDO1,
|
TPS65218_REG_CONTROL_LDO1,
|
||||||
TPS65218_CONTROL_LDO1_MASK, TPS65218_REG_ENABLE2,
|
TPS65218_CONTROL_LDO1_MASK, TPS65218_REG_ENABLE2,
|
||||||
TPS65218_ENABLE2_LDO1_EN, ldo1_dcdc3_ranges,
|
TPS65218_ENABLE2_LDO1_EN, ldo1_dcdc3_ranges,
|
||||||
2, 0),
|
2, 0, 0),
|
||||||
};
|
};
|
||||||
|
|
||||||
static int tps65218_regulator_probe(struct platform_device *pdev)
|
static int tps65218_regulator_probe(struct platform_device *pdev)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user