diff options
author | Keerthy | 2017-07-24 10:11:54 -0500 |
---|---|---|
committer | Jean-Jacques Hiblot | 2017-08-02 09:13:37 -0500 |
commit | 8784fb3ea2aca32696f8e4458cd4877b9b376070 (patch) | |
tree | 2754661552c34d58a4c7ac2c946e1b8367968fdf | |
parent | f8ae023508b1fdf43058fceb7fbf83f44e2d6a50 (diff) | |
download | u-boot-8784fb3ea2aca32696f8e4458cd4877b9b376070.tar.gz u-boot-8784fb3ea2aca32696f8e4458cd4877b9b376070.tar.xz u-boot-8784fb3ea2aca32696f8e4458cd4877b9b376070.zip |
power: regulator: palmas: Add smps12 dual regulator for tps65917
commit 75bceb22b3ed6882daa5933c3eb353364c7a7c83 upstream
Add smps12 dual regulator for tps65917
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
-rw-r--r-- | drivers/power/regulator/palmas_regulator.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/power/regulator/palmas_regulator.c b/drivers/power/regulator/palmas_regulator.c index cce7cd2fc2..b40bad2042 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) | |||
377 | uc_pdata->ctrl_reg = palmas_smps_ctrl[type][idx]; | 377 | uc_pdata->ctrl_reg = palmas_smps_ctrl[type][idx]; |
378 | uc_pdata->volt_reg = palmas_smps_volt[type][idx]; | 378 | uc_pdata->volt_reg = palmas_smps_volt[type][idx]; |
379 | break; | 379 | break; |
380 | 380 | case 12: | |
381 | idx = 0; | ||
382 | uc_pdata->ctrl_reg = palmas_smps_ctrl[type][idx]; | ||
383 | uc_pdata->volt_reg = palmas_smps_volt[type][idx]; | ||
384 | break; | ||
381 | default: | 385 | default: |
382 | printf("Wrong ID for regulator\n"); | 386 | printf("Wrong ID for regulator\n"); |
383 | } | 387 | } |