summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-08-03 14:55:27 +0530
committerSimone Willett <swillett@nvidia.com>2012-08-03 14:04:54 -0700
commit7462254a75095e2dc85a3c628c062d05eb266af0 (patch)
tree07ee7da8e83bdd66737852859050d88a51f4d3b2
parente926e7fd710e726bc5db4783f076decb8de0b9b6 (diff)
regulator: tps65090: support for LDO1 and LDO2
The LDO1 and LDO2 are always-on regulator from device. Add support for these rails. Change-Id: I9636029a1ba293b4a48f596a8e6a91112f2d2299 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/120889 Reviewed-by: Automatic_Commit_Validation_User
-rw-r--r--drivers/regulator/tps65090-regulator.c5
-rw-r--r--include/linux/regulator/tps65090-regulator.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/regulator/tps65090-regulator.c b/drivers/regulator/tps65090-regulator.c
index 4ec3401af6a5..f633897f051c 100644
--- a/drivers/regulator/tps65090-regulator.c
+++ b/drivers/regulator/tps65090-regulator.c
@@ -99,6 +99,9 @@ static struct regulator_ops tps65090_ops = {
.is_enabled = tps65090_reg_is_enabled,
};
+static struct regulator_ops tps65090_ldo_ops = {
+};
+
#define tps65090_REG(_id, _en_reg, _en_bit, _ops) \
{ \
.reg_en_reg = _en_reg, \
@@ -117,6 +120,8 @@ 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),
diff --git a/include/linux/regulator/tps65090-regulator.h b/include/linux/regulator/tps65090-regulator.h
index 2b7d0a18f836..d0f6623e6c35 100644
--- a/include/linux/regulator/tps65090-regulator.h
+++ b/include/linux/regulator/tps65090-regulator.h
@@ -27,6 +27,8 @@ enum {
TPS65090_REGULATOR_DCDC1,
TPS65090_REGULATOR_DCDC2,
TPS65090_REGULATOR_DCDC3,
+ TPS65090_REGULATOR_LDO1,
+ TPS65090_REGULATOR_LDO2,
TPS65090_REGULATOR_FET1,
TPS65090_REGULATOR_FET2,
TPS65090_REGULATOR_FET3,