提交 7ab832e4 编写于 作者: F Fabio Estevam 提交者: Stefano Babic

pfuze: Fix the pmic_get() parameter in the DM case

Currently the following hang is observed when booting a imx6sx-sdb
board:

U-Boot 2020.01-rc5-00004-g643366bc (Dec 19 2019 - 14:56:23 -0300)

CPU:   Freescale i.MX6SX rev1.0 996 MHz (running at 792 MHz)
CPU:   Extended Commercial temperature grade (-20C to 105C) at 32C
Reset cause: POR
Model: Freescale i.MX6 SoloX SDB RevB Board
Board: MX6SX SABRE SDB revA
DRAM:  1 GiB
initcall sequence bffd8514 failed at call 87804cc0 (err=-19)
### ERROR ### Please RESET the board ###

When pmic_get() is used with DM the first parameter must be
the complete node name plus the unit address.

Fix the pmic_get() parameter to fix the boot regression.

Tested on a imx6sx-sdb and imx6q-sabresd boards.
Signed-off-by: NFabio Estevam <festevam@gmail.com>
Reviewed-by: NIgor Opaniuk <igor.opaniuk@toradex.com>
上级 bfeaea7d
...@@ -136,7 +136,7 @@ struct udevice *pfuze_common_init(void) ...@@ -136,7 +136,7 @@ struct udevice *pfuze_common_init(void)
int ret; int ret;
unsigned int reg, dev_id, rev_id; unsigned int reg, dev_id, rev_id;
ret = pmic_get("pfuze100", &dev); ret = pmic_get("pfuze100@8", &dev);
if (ret == -ENODEV) if (ret == -ENODEV)
return NULL; return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册