diff options
author | Marek Vasut <marex@denx.de> | 2020-01-15 11:27:31 +0100 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2020-01-20 15:37:23 +0100 |
commit | f3284e401e95e7e8f285d5596236c183aef8abd0 (patch) | |
tree | 43b4d42b52b9c58a7fc0fb0868d5c8b99f8174a0 /board | |
parent | 625bbd38a6cc4aa7a3e445c46bbd8a0eef0ceaba (diff) |
ARM: imx: vining2000: Properly discern PFUZE100 and PFUZE200
The PFUZE100 and PFUZE200 PMICs can be discerned by bit 0 in DeviceID
register. Print the correct identification of the PMICs.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Silvio Fricke <silvio.fricke@softing.com>
Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/softing/vining_2000/vining_2000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/softing/vining_2000/vining_2000.c b/board/softing/vining_2000/vining_2000.c index 6dc3fc8b50..c74c06eaee 100644 --- a/board/softing/vining_2000/vining_2000.c +++ b/board/softing/vining_2000/vining_2000.c @@ -146,7 +146,7 @@ static struct pmic *pfuze_init(unsigned char i2cbus) return NULL; pmic_reg_read(p, PFUZE100_DEVICEID, ®); - printf("PMIC: PFUZE100 ID=0x%02x\n", reg); + printf("PMIC: PFUZE%i00 ID=0x%02x\n", (reg & 1) ? 2 : 1, reg); /* Set SW1AB stanby volage to 0.975V */ pmic_reg_read(p, PFUZE100_SW1ABSTBY, ®); |