mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 13:56:20 +00:00
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>
This commit is contained in:
parent
0db6a8110c
commit
ad0ff2f7b0
1 changed files with 5 additions and 4 deletions
|
@ -171,11 +171,12 @@ static int power_init_board(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ((!strncmp(model, "GW7901", 6)) ||
|
else if ((!strncmp(model, "GW7901", 6)) ||
|
||||||
(!strncmp(model, "GW7902", 6))) {
|
(!strncmp(model, "GW7902", 6)) ||
|
||||||
if (!strncmp(model, "GW7901", 6))
|
(!strncmp(model, "GW7903", 6))) {
|
||||||
ret = uclass_get_device_by_seq(UCLASS_I2C, 1, &bus);
|
if (!strncmp(model, "GW7902", 6))
|
||||||
else
|
|
||||||
ret = uclass_get_device_by_seq(UCLASS_I2C, 0, &bus);
|
ret = uclass_get_device_by_seq(UCLASS_I2C, 0, &bus);
|
||||||
|
else
|
||||||
|
ret = uclass_get_device_by_seq(UCLASS_I2C, 1, &bus);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
printf("PMIC : failed I2C2 probe: %d\n", ret);
|
printf("PMIC : failed I2C2 probe: %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Add table
Reference in a new issue