board: gateworks: venice: add GW7903 PMIC
PATCH v3 1/1 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 <[email protected]>
Reviewed-by Fabio Estevam <[email protected]>
Reviewed-by Jaehoon Chung <[email protected]>
---
v3: add Jaehoon's Reviewed-By tag
v2: fixed typo in commit log and added Fabio's rb tag
--- board/gateworks/venice/spl.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
board/gateworks/venice/spl.c +5 -4
@@ -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;
Signature · 1 line
2.25.1
PATCH v3 1/1 board: gateworks: venice: add GW7903 PMIC
Quoted 5 lines
The GW7903 has a BD71847 PMIC on I2C1. Adjust the model compare strings to add it.
Signed-off-by Tim Harvey <[email protected]>Reviewed-by Fabio Estevam <[email protected]>Reviewed-by Jaehoon Chung <[email protected]>
Applied to u-boot-imx, master, 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: [email protected] =====================================================================