summaryrefslogtreecommitdiff
path: root/board/gateworks
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2022-08-11 21:57:04 +0300
committerStefano Babic <sbabic@denx.de>2022-10-24 12:34:33 +0300
commitad0ff2f7b0c50cae1cbbe7a1717d3c7626dbb249 (patch)
tree01b48e47d24d1033e2a244701eb753b49f667165 /board/gateworks
parent0db6a8110cd48f051e43f26ff99b320633986cba (diff)
downloadu-boot-ad0ff2f7b0c50cae1cbbe7a1717d3c7626dbb249.tar.xz
board: gateworks: venice: add GW7903 PMIC
The GW7903 has a BD71847 PMIC on I2C1. Adjust the model compare strings to add it. Signed-off-by: Tim Harvey <tharvey@gateworks.com> Reviewed-by: Fabio Estevam <festevam@denx.de> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'board/gateworks')
-rw-r--r--board/gateworks/venice/spl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/board/gateworks/venice/spl.c b/board/gateworks/venice/spl.c
index da36f227bc..98931c0475 100644
--- a/board/gateworks/venice/spl.c
+++ b/board/gateworks/venice/spl.c
@@ -171,11 +171,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;