diff mbox

[U-Boot,1/2] power: pmic: tps65218: Add DCDC3 configuration

Message ID 1496395831-29834-2-git-send-email-j-keerthy@ti.com
State Accepted
Commit e395b8848ac3a432faa70b4ba3bcbcbcc91ca555
Delegated to: Jaehoon Chung
Headers show

Commit Message

J, KEERTHY June 2, 2017, 9:30 a.m. UTC
Some boards like am437x-gp-evm require dcdc3 also to be configured
as it feeds on to ddr. Hence add the capability as well.

Signed-off-by: Keerthy <j-keerthy@ti.com>
---
 drivers/power/pmic/pmic_tps65218.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Tom Rini June 2, 2017, 8:55 p.m. UTC | #1
On Fri, Jun 02, 2017 at 03:00:30PM +0530, Keerthy wrote:

> Some boards like am437x-gp-evm require dcdc3 also to be configured
> as it feeds on to ddr. Hence add the capability as well.
> 
> Signed-off-by: Keerthy <j-keerthy@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
Lokesh Vutla June 6, 2017, 5:32 a.m. UTC | #2
On Friday 02 June 2017 03:00 PM, Keerthy wrote:
> Some boards like am437x-gp-evm require dcdc3 also to be configured
> as it feeds on to ddr. Hence add the capability as well.
> 
> Signed-off-by: Keerthy <j-keerthy@ti.com>

Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Thanks and regards,
Lokesh
Jaehoon Chung June 7, 2017, 4:14 a.m. UTC | #3
On 06/02/2017 06:30 PM, Keerthy wrote:
> Some boards like am437x-gp-evm require dcdc3 also to be configured
> as it feeds on to ddr. Hence add the capability as well.
> 
> Signed-off-by: Keerthy <j-keerthy@ti.com>

Applied to u-boot-mmc for pmic. Thanks!

Best Regards,
Jaehoon Chung

> ---
>  drivers/power/pmic/pmic_tps65218.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/power/pmic/pmic_tps65218.c b/drivers/power/pmic/pmic_tps65218.c
> index c5e768a..911f639 100644
> --- a/drivers/power/pmic/pmic_tps65218.c
> +++ b/drivers/power/pmic/pmic_tps65218.c
> @@ -96,7 +96,8 @@ int tps65218_reg_write(uchar prot_level, uchar dest_reg, uchar dest_val,
>  int tps65218_voltage_update(uchar dc_cntrl_reg, uchar volt_sel)
>  {
>  	if ((dc_cntrl_reg != TPS65218_DCDC1) &&
> -	    (dc_cntrl_reg != TPS65218_DCDC2))
> +	    (dc_cntrl_reg != TPS65218_DCDC2) &&
> +	    (dc_cntrl_reg != TPS65218_DCDC3))
>  		return 1;
>  
>  	/* set voltage level */
>
diff mbox

Patch

diff --git a/drivers/power/pmic/pmic_tps65218.c b/drivers/power/pmic/pmic_tps65218.c
index c5e768a..911f639 100644
--- a/drivers/power/pmic/pmic_tps65218.c
+++ b/drivers/power/pmic/pmic_tps65218.c
@@ -96,7 +96,8 @@  int tps65218_reg_write(uchar prot_level, uchar dest_reg, uchar dest_val,
 int tps65218_voltage_update(uchar dc_cntrl_reg, uchar volt_sel)
 {
 	if ((dc_cntrl_reg != TPS65218_DCDC1) &&
-	    (dc_cntrl_reg != TPS65218_DCDC2))
+	    (dc_cntrl_reg != TPS65218_DCDC2) &&
+	    (dc_cntrl_reg != TPS65218_DCDC3))
 		return 1;
 
 	/* set voltage level */