summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2014-04-22 21:53:57 -0700
committerStefano Babic <sbabic@denx.de>2014-05-09 14:38:23 +0200
commit17449272a01f2c23b890090ef7ebf720ec9cea32 (patch)
treea33ed1d8e061ced0d89f9ad0b3dfabfe842bd34d
parent93a6d92cfa990240314c2299fb7a3a3a39811c07 (diff)
downloadu-boot-imx-17449272a01f2c23b890090ef7ebf720ec9cea32.zip
u-boot-imx-17449272a01f2c23b890090ef7ebf720ec9cea32.tar.gz
u-boot-imx-17449272a01f2c23b890090ef7ebf720ec9cea32.tar.bz2
ventana: use non-generic pfuze100 init
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
-rw-r--r--board/gateworks/gw_ventana/gw_ventana.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index 2113740..7bc69bd 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, &reg);
printf("PMIC: PFUZE100 ID=0x%02x\n", reg);