]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
power: regulator: palmas: Add smps12 dual regulator for tps65917
authorKeerthy <j-keerthy@ti.com>
Fri, 2 Jun 2017 05:21:51 +0000 (10:51 +0530)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 9 Jun 2017 11:25:16 +0000 (20:25 +0900)
Add smps12 dual regulator for tps65917

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/power/regulator/palmas_regulator.c

index 399f7a5f5513e1a0a7cb9a34c477d5fe5e687266..841c03a5048a945854a9fe0f07cfb27f0860e65d 100644 (file)
@@ -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");
                }