public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] board: gateowrks: venice: add GW7903 PMIC
@ 2022-05-20 15:55 Tim Harvey
  2022-05-20 18:13 ` Fabio Estevam
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Harvey @ 2022-05-20 15:55 UTC (permalink / raw)
  To: u-boot, Stefano Babic, Fabio Estevam, NXP i . MX U-Boot Team; +Cc: Tim Harvey

The GW7903 has a BD71847 PMIC on I2C1. Adjust the model compare strings
to add it.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 board/gateworks/venice/spl.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/board/gateworks/venice/spl.c b/board/gateworks/venice/spl.c
index 4c0feb4381c9..914a56a96f52 100644
--- a/board/gateworks/venice/spl.c
+++ b/board/gateworks/venice/spl.c
@@ -173,11 +173,12 @@ static int power_init_board(void)
 	}
 
 	else if ((!strncmp(model, "GW7901", 6)) ||
-		 (!strncmp(model, "GW7902", 6))) {
-		if (!strncmp(model, "GW7901", 6))
-			ret = uclass_get_device_by_seq(UCLASS_I2C, 1, &bus);
-		else
+		 (!strncmp(model, "GW7902", 6)) ||
+		 (!strncmp(model, "GW7903", 6))) {
+		if (!strncmp(model, "GW7902", 6))
 			ret = uclass_get_device_by_seq(UCLASS_I2C, 0, &bus);
+		else
+			ret = uclass_get_device_by_seq(UCLASS_I2C, 1, &bus);
 		if (ret) {
 			printf("PMIC    : failed I2C2 probe: %d\n", ret);
 			return ret;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] board: gateowrks: venice: add GW7903 PMIC
  2022-05-20 15:55 [PATCH] board: gateowrks: venice: add GW7903 PMIC Tim Harvey
@ 2022-05-20 18:13 ` Fabio Estevam
  0 siblings, 0 replies; 2+ messages in thread
From: Fabio Estevam @ 2022-05-20 18:13 UTC (permalink / raw)
  To: Tim Harvey; +Cc: U-Boot-Denx, Stefano Babic, NXP i . MX U-Boot Team

Hi Tim,

On Fri, May 20, 2022 at 12:55 PM Tim Harvey <tharvey@gateworks.com> wrote:
>
> The GW7903 has a BD71847 PMIC on I2C1. Adjust the model compare strings
> to add it.
>
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>

There is a typo in the Subject: s/gateowrks/gateworks

Reviewed-by: Fabio Estevam <festevam@denx.de>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-20 18:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-20 15:55 [PATCH] board: gateowrks: venice: add GW7903 PMIC Tim Harvey
2022-05-20 18:13 ` Fabio Estevam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox