Message ID | 1496380911-15621-1-git-send-email-j-keerthy@ti.com |
---|---|
State | Accepted |
Commit | 75bceb22b3ed6882daa5933c3eb353364c7a7c83 |
Delegated to: | Jaehoon Chung |
Headers | show |
On 1 June 2017 at 23:21, Keerthy <j-keerthy@ti.com> wrote: > Add smps12 dual regulator for tps65917 > > Signed-off-by: Keerthy <j-keerthy@ti.com> > --- > drivers/power/regulator/palmas_regulator.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > Reviewed-by: Simon Glass <sjg@chromium.org>
Hi On 06/02/2017 02:21 PM, Keerthy wrote: > Add smps12 dual regulator for tps65917 > > Signed-off-by: Keerthy <j-keerthy@ti.com> Applied to u-boot-mmc for pmic. Thanks! Best Regards, Jaehoon Chung > --- > drivers/power/regulator/palmas_regulator.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/power/regulator/palmas_regulator.c b/drivers/power/regulator/palmas_regulator.c > index 399f7a5..841c03a 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"); > } >
diff --git a/drivers/power/regulator/palmas_regulator.c b/drivers/power/regulator/palmas_regulator.c index 399f7a5..841c03a 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"); }
Add smps12 dual regulator for tps65917 Signed-off-by: Keerthy <j-keerthy@ti.com> --- drivers/power/regulator/palmas_regulator.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)