summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-08-03 16:50:37 +0530
committerSimone Willett <swillett@nvidia.com>2012-08-03 14:05:27 -0700
commitb3b161fa7c26b3902ec4a024ed174ac7f74d5108 (patch)
tree77b936655966fb231931d524b07cb768fffe054e /drivers/regulator
parentaa083068c640601716c64a067667f30613c81e24 (diff)
regulator: tps65090: support for input supply
Fill the desc.supply_name for each rail with corresponding input pinname as per datasheet. Change-Id: I6dda1a95255549cce1773e271d6529d0f4d10392 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/120891 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/tps65090-regulator.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/drivers/regulator/tps65090-regulator.c b/drivers/regulator/tps65090-regulator.c
index 0571e0f057c4..aca2f56aa172 100644
--- a/drivers/regulator/tps65090-regulator.c
+++ b/drivers/regulator/tps65090-regulator.c
@@ -137,13 +137,14 @@ static struct regulator_ops tps65090_ops = {
static struct regulator_ops tps65090_ldo_ops = {
};
-#define tps65090_REG(_id, _en_reg, _en_bit, _ops) \
+#define tps65090_REG(_id, _sname, _en_reg, _en_bit, _ops) \
{ \
.reg_en_reg = _en_reg, \
.en_bit = _en_bit, \
.id = TPS65090_REGULATOR_##_id, \
.desc = { \
.name = tps65090_rails(_id), \
+ .supply_name = _sname, \
.id = TPS65090_REGULATOR_##_id, \
.ops = &_ops, \
.type = REGULATOR_VOLTAGE, \
@@ -152,18 +153,18 @@ static struct regulator_ops tps65090_ldo_ops = {
}
static struct tps65090_regulator_info TPS65090_regulator_info[] = {
- tps65090_REG(DCDC1, 12, 0, tps65090_ops),
- tps65090_REG(DCDC2, 13, 0, tps65090_ops),
- tps65090_REG(DCDC3, 14, 0, tps65090_ops),
- tps65090_REG(LDO1, 0, 0, tps65090_ldo_ops),
- tps65090_REG(LDO2, 0, 0, tps65090_ldo_ops),
- tps65090_REG(FET1, 15, 0, tps65090_ops),
- tps65090_REG(FET2, 16, 0, tps65090_ops),
- tps65090_REG(FET3, 17, 0, tps65090_ops),
- tps65090_REG(FET4, 18, 0, tps65090_ops),
- tps65090_REG(FET5, 19, 0, tps65090_ops),
- tps65090_REG(FET6, 20, 0, tps65090_ops),
- tps65090_REG(FET7, 21, 0, tps65090_ops),
+ tps65090_REG(DCDC1, "VSYS1", 12, 0, tps65090_ops),
+ tps65090_REG(DCDC2, "VSYS2", 13, 0, tps65090_ops),
+ tps65090_REG(DCDC3, "VSYS3", 14, 0, tps65090_ops),
+ tps65090_REG(LDO1, "VSYS_L1", 0, 0, tps65090_ldo_ops),
+ tps65090_REG(LDO2, "VSYS_L2", 0, 0, tps65090_ldo_ops),
+ tps65090_REG(FET1, "INFET1", 15, 0, tps65090_ops),
+ tps65090_REG(FET2, "INFET2", 16, 0, tps65090_ops),
+ tps65090_REG(FET3, "INFET3", 17, 0, tps65090_ops),
+ tps65090_REG(FET4, "INFET4", 18, 0, tps65090_ops),
+ tps65090_REG(FET5, "INFET5", 19, 0, tps65090_ops),
+ tps65090_REG(FET6, "INFET6", 20, 0, tps65090_ops),
+ tps65090_REG(FET7, "INFET7", 21, 0, tps65090_ops),
};
static inline struct tps65090_regulator_info *find_regulator_info(int id)