mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
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>
This commit is contained in:
parent
625bbd38a6
commit
f3284e401e
@ -146,7 +146,7 @@ static struct pmic *pfuze_init(unsigned char i2cbus)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
pmic_reg_read(p, PFUZE100_DEVICEID, ®);
|
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 */
|
/* Set SW1AB stanby volage to 0.975V */
|
||||||
pmic_reg_read(p, PFUZE100_SW1ABSTBY, ®);
|
pmic_reg_read(p, PFUZE100_SW1ABSTBY, ®);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user