From: Marek Vasut Date: Wed, 15 Jan 2020 10:27:31 +0000 (+0100) Subject: ARM: imx: vining2000: Properly discern PFUZE100 and PFUZE200 X-Git-Tag: v2020.04-rc1~12^2~21 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f3284e401e95e7e8f285d5596236c183aef8abd0;p=oweals%2Fu-boot.git 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 Cc: Fabio Estevam Cc: Silvio Fricke Cc: Stefano Babic --- 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, ®);