regulator: tps65090: support for LDO1 and LDO2
Laxman Dewangan [Fri, 3 Aug 2012 09:25:27 +0000 (14:25 +0530)]
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

drivers/regulator/tps65090-regulator.c
include/linux/regulator/tps65090-regulator.h

index 4ec3401..f633897 100644 (file)
@@ -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),
index 2b7d0a1..d0f6623 100644 (file)
@@ -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,