Skip to contentSkip to conversation

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

PATCH New Fabio Estevam 3 participants 9 messages Dec 20, 2019 – Jan 4, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 mx7dsabresd: Fix the pmic_get() parameter in the DM case

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

---
 board/freescale/mx7dsabresd/mx7dsabresd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/freescale/mx7dsabresd/mx7dsabresd.c +1 -1
index f1120d67e3..05cf8c8c7c 100644
@@ -326,7 +326,7 @@ int power_init_board(void)
 	struct udevice *dev;
 	int ret, dev_id, rev_id;
 
-	ret = pmic_get("pfuze3000", &dev);
+	ret = pmic_get("pfuze3000 at 08", &dev);
 	if (ret == -ENODEV)
 		return 0;
 	if (ret != 0)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/3 mx6sllevk: Fix the pmic_get() parameter in the DM case

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

---
 board/freescale/mx6sllevk/mx6sllevk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/freescale/mx6sllevk/mx6sllevk.c +1 -1
index 227d178e07..0a36b46e9e 100644
@@ -57,7 +57,7 @@ int power_init_board(void)
 	u32 switch_num = 6;
 	u32 offset = PFUZE100_SW1CMODE;
 
-	ret = pmic_get("pfuze100", &dev);
+	ret = pmic_get("pfuze100 at 08", &dev);
 	if (ret == -ENODEV)
 		return 0;
 
Signature · 1 line
2.17.1
#4 lore raw

PATCH 3/3 mx6slevk: Fix the pmic_get() parameter in the DM case

In reply to Fabio Estevam

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

---
 board/freescale/mx6slevk/mx6slevk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/freescale/mx6slevk/mx6slevk.c +1 -1
index 33ae91c307..453f281418 100644
@@ -145,7 +145,7 @@ int power_init_board(void)
 	u32 switch_num = 6;
 	u32 offset = PFUZE100_SW1CMODE;
 
-	ret = pmic_get("pfuze100", &dev);
+	ret = pmic_get("pfuze100 at 08", &dev);
 	if (ret == -ENODEV)
 		return 0;
 
Signature · 1 line
2.17.1
#7 lore raw

PATCH 1/3 mx7dsabresd: Fix the pmic_get() parameter in the DM case

In reply to Fabio Estevam
Quoted 8 lines

Subject: [PATCH 1/3] mx7dsabresd: Fix the pmic_get() parameter in the DM case

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

Quoted 20 lines
---
 board/freescale/mx7dsabresd/mx7dsabresd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/freescale/mx7dsabresd/mx7dsabresd.c +1 -2
index f1120d67e3..05cf8c8c7c 100644
@@ -326,7 +326,7 @@ int power_init_board(void)
 	struct udevice *dev;
 	int ret, dev_id, rev_id;
 
-	ret = pmic_get("pfuze3000", &dev);
+	ret = pmic_get("pfuze3000 at 08", &dev);
 	if (ret == -ENODEV)
 		return 0;
 	if (ret != 0)
--

2.17.1

#2 lore raw

PATCH 2/3 mx6sllevk: Fix the pmic_get() parameter in the DM case

In reply to Fabio Estevam
Quoted 7 lines

Subject: [PATCH 2/3] mx6sllevk: Fix the pmic_get() parameter in the DM case

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

Quoted 20 lines
---
 board/freescale/mx6sllevk/mx6sllevk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/freescale/mx6sllevk/mx6sllevk.c +1 -2
index 227d178e07..0a36b46e9e 100644
@@ -57,7 +57,7 @@ int power_init_board(void)
 	u32 switch_num = 6;
 	u32 offset = PFUZE100_SW1CMODE;
 
-	ret = pmic_get("pfuze100", &dev);
+	ret = pmic_get("pfuze100 at 08", &dev);
 	if (ret == -ENODEV)
 		return 0;
 
--

2.17.1

#5 lore raw

PATCH 3/3 mx6slevk: Fix the pmic_get() parameter in the DM case

In reply to Fabio Estevam
Quoted 7 lines

Subject: [PATCH 3/3] mx6slevk: Fix the pmic_get() parameter in the DM case

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

Quoted 20 lines
---
 board/freescale/mx6slevk/mx6slevk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/freescale/mx6slevk/mx6slevk.c +1 -2
index 33ae91c307..453f281418 100644
@@ -145,7 +145,7 @@ int power_init_board(void)
 	u32 switch_num = 6;
 	u32 offset = PFUZE100_SW1CMODE;
 
-	ret = pmic_get("pfuze100", &dev);
+	ret = pmic_get("pfuze100 at 08", &dev);
 	if (ret == -ENODEV)
 		return 0;
 
--

2.17.1

#3 lore raw

PATCH 2/3 mx6sllevk: Fix the pmic_get() parameter in the DM case

In reply to Fabio Estevam
Quoted 6 lines

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

Applied to u-boot-imx, -next, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#6 lore raw

PATCH 3/3 mx6slevk: Fix the pmic_get() parameter in the DM case

In reply to Fabio Estevam
Quoted 6 lines

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

Applied to u-boot-imx, -next, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#8 lore raw

PATCH 1/3 mx7dsabresd: Fix the pmic_get() parameter in the DM case

In reply to Fabio Estevam
Quoted 6 lines

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

Applied to u-boot-imx, -next, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================