summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2019-12-19 14:59:41 -0300
committerStefano Babic <sbabic@denx.de>2019-12-27 12:13:11 +0100
commit7ab832e409258ec3ff6b024815baa02eac71a0e6 (patch)
tree1936c59d9cbce726d7c2539ade326b4c0902202e
parentbfeaea7d84f0c9d426a36968feadf17e3e344547 (diff)
downloadu-boot-7ab832e409258ec3ff6b024815baa02eac71a0e6.tar.gz
u-boot-7ab832e409258ec3ff6b024815baa02eac71a0e6.tar.bz2
u-boot-7ab832e409258ec3ff6b024815baa02eac71a0e6.zip
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-g643366bcd5 (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: Fabio Estevam <festevam@gmail.com> Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
-rw-r--r--board/freescale/common/pfuze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/common/pfuze.c b/board/freescale/common/pfuze.c
index 03ebe4e7b5..6dca22960b 100644
--- a/board/freescale/common/pfuze.c
+++ b/board/freescale/common/pfuze.c
@@ -136,7 +136,7 @@ struct udevice *pfuze_common_init(void)
int ret;
unsigned int reg, dev_id, rev_id;
- ret = pmic_get("pfuze100", &dev);
+ ret = pmic_get("pfuze100@8", &dev);
if (ret == -ENODEV)
return NULL;