From: Tim Harvey Date: Wed, 23 Apr 2014 04:53:57 +0000 (-0700) Subject: ventana: use non-generic pfuze100 init X-Git-Tag: v2014.07-rc2~9^2~3^2~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17449272a01f2c23b890090ef7ebf720ec9cea32;p=u-boot ventana: use non-generic pfuze100 init Signed-off-by: Tim Harvey --- diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c index 211374082b..7bc69bdd81 100644 --- a/board/gateworks/gw_ventana/gw_ventana.c +++ b/board/gateworks/gw_ventana/gw_ventana.c @@ -1076,10 +1076,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, ®); printf("PMIC: PFUZE100 ID=0x%02x\n", reg);