diff mbox

[U-Boot] imx: ventana: fix GW5903 VDD_ARM rail

Message ID 1490107813-15865-1-git-send-email-tharvey@gateworks.com
State Accepted
Commit d576d6f31c2145b1d2eeafe6326db690cc03f289
Delegated to: Stefano Babic
Headers show

Commit Message

Tim Harvey March 21, 2017, 2:50 p.m. UTC
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 board/gateworks/gw_ventana/common.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Stefano Babic March 26, 2017, 9:09 a.m. UTC | #1
On 21/03/2017 15:50, Tim Harvey wrote:
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
> ---
>  board/gateworks/gw_ventana/common.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/board/gateworks/gw_ventana/common.c b/board/gateworks/gw_ventana/common.c
> index ec04060..56a7b3e 100644
> --- a/board/gateworks/gw_ventana/common.c
> +++ b/board/gateworks/gw_ventana/common.c
> @@ -1325,6 +1325,12 @@ void setup_pmic(void)
>  			pmic_reg_write(p, LTC3676_DVB3A, 0x1f);
>  			break;
>  		case GW5903:
> +			/* mask PGOOD during SW1 transition */
> +			pmic_reg_write(p, LTC3676_DVB3B,
> +				       0x1f | LTC3676_PGOOD_MASK);
> +			/* set SW3 (VDD_ARM) */
> +			pmic_reg_write(p, LTC3676_DVB3A, 0x1f);
> +
>  			/* mask PGOOD during SW4 transition */
>  			pmic_reg_write(p, LTC3676_DVB4B,
>  				       0x1f | LTC3676_PGOOD_MASK);
> 

Applied to -master, thanks !

Best regards,
Stefano Babic
diff mbox

Patch

diff --git a/board/gateworks/gw_ventana/common.c b/board/gateworks/gw_ventana/common.c
index ec04060..56a7b3e 100644
--- a/board/gateworks/gw_ventana/common.c
+++ b/board/gateworks/gw_ventana/common.c
@@ -1325,6 +1325,12 @@  void setup_pmic(void)
 			pmic_reg_write(p, LTC3676_DVB3A, 0x1f);
 			break;
 		case GW5903:
+			/* mask PGOOD during SW1 transition */
+			pmic_reg_write(p, LTC3676_DVB3B,
+				       0x1f | LTC3676_PGOOD_MASK);
+			/* set SW3 (VDD_ARM) */
+			pmic_reg_write(p, LTC3676_DVB3A, 0x1f);
+
 			/* mask PGOOD during SW4 transition */
 			pmic_reg_write(p, LTC3676_DVB4B,
 				       0x1f | LTC3676_PGOOD_MASK);