summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorKeerthy <j-keerthy@ti.com>2017-06-02 10:51:51 +0530
committerJaehoon Chung <jh80.chung@samsung.com>2017-06-09 20:25:16 +0900
commit75bceb22b3ed6882daa5933c3eb353364c7a7c83 (patch)
tree5bccb4a73427a9110f13bb10c6e471e005f33629 /drivers/power
parent0f53118511c540a136f63cfc003ef6bd0df2404d (diff)
downloadu-boot-75bceb22b3ed6882daa5933c3eb353364c7a7c83.tar.gz
u-boot-75bceb22b3ed6882daa5933c3eb353364c7a7c83.tar.xz
u-boot-75bceb22b3ed6882daa5933c3eb353364c7a7c83.zip
power: regulator: palmas: Add smps12 dual regulator for tps65917
Add smps12 dual regulator for tps65917 Signed-off-by: Keerthy <j-keerthy@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/regulator/palmas_regulator.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/power/regulator/palmas_regulator.c b/drivers/power/regulator/palmas_regulator.c
index 399f7a5f55..841c03a504 100644
--- a/drivers/power/regulator/palmas_regulator.c
+++ b/drivers/power/regulator/palmas_regulator.c
@@ -377,7 +377,11 @@ static int palmas_smps_probe(struct udevice *dev)
uc_pdata->ctrl_reg = palmas_smps_ctrl[type][idx];
uc_pdata->volt_reg = palmas_smps_volt[type][idx];
break;
-
+ case 12:
+ idx = 0;
+ uc_pdata->ctrl_reg = palmas_smps_ctrl[type][idx];
+ uc_pdata->volt_reg = palmas_smps_volt[type][idx];
+ break;
default:
printf("Wrong ID for regulator\n");
}