diff mbox

[U-Boot,2/4] ventana: use non-generic pfuze100 init

Message ID 1398228839-29780-3-git-send-email-tharvey@gateworks.com
State Accepted
Delegated to: Stefano Babic
Headers show

Commit Message

Tim Harvey April 23, 2014, 4:53 a.m. UTC
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 board/gateworks/gw_ventana/gw_ventana.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Stefano Babic May 9, 2014, 12:44 p.m. UTC | #1
On 23/04/2014 06:53, Tim Harvey wrote:
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
> ---
>  board/gateworks/gw_ventana/gw_ventana.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
> index c130e2c..48e90e0 100644
> --- a/board/gateworks/gw_ventana/gw_ventana.c
> +++ b/board/gateworks/gw_ventana/gw_ventana.c
> @@ -1077,10 +1077,11 @@ int misc_init_r(void)
>  	}
>  
>  	/* configure PFUZE100 PMIC (not used on all Ventana baseboards) */
> -	if ((board_type == GW54xx || board_type == GW54proto) &&
> -	    !pmic_init(I2C_PMIC)) {
> +	power_pfuze100_init(I2C_PMIC);
> +	if (board_type == GW54xx || board_type == GW54proto) {
>  		struct pmic *p = pmic_get("PFUZE100_PMIC");
>  		u32 reg;
> +
>  		if (p && !pmic_probe(p)) {
>  			pmic_reg_read(p, PFUZE100_DEVICEID, &reg);
>  			printf("PMIC:  PFUZE100 ID=0x%02x\n", reg);
> 

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic
diff mbox

Patch

diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index c130e2c..48e90e0 100644
--- a/board/gateworks/gw_ventana/gw_ventana.c
+++ b/board/gateworks/gw_ventana/gw_ventana.c
@@ -1077,10 +1077,11 @@  int misc_init_r(void)
 	}
 
 	/* configure PFUZE100 PMIC (not used on all Ventana baseboards) */
-	if ((board_type == GW54xx || board_type == GW54proto) &&
-	    !pmic_init(I2C_PMIC)) {
+	power_pfuze100_init(I2C_PMIC);
+	if (board_type == GW54xx || board_type == GW54proto) {
 		struct pmic *p = pmic_get("PFUZE100_PMIC");
 		u32 reg;
+
 		if (p && !pmic_probe(p)) {
 			pmic_reg_read(p, PFUZE100_DEVICEID, &reg);
 			printf("PMIC:  PFUZE100 ID=0x%02x\n", reg);