mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-06 05:06:13 +02:00
video: renesas-r69328: fix reset gpio direction
The reset GPIO signal operates with a low-active logic. The driver needs to be adjusted to correctly handle this. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
This commit is contained in:
parent
1403310bb1
commit
4ecc5d5a39
@ -189,17 +189,17 @@ static int renesas_r69328_hw_init(struct udevice *dev)
|
||||
}
|
||||
mdelay(5);
|
||||
|
||||
ret = dm_gpio_set_value(&priv->reset_gpio, 0);
|
||||
ret = dm_gpio_set_value(&priv->reset_gpio, 1);
|
||||
if (ret) {
|
||||
log_debug("%s: error changing reset-gpios (%d)\n",
|
||||
log_debug("%s: error entering reset (%d)\n",
|
||||
__func__, ret);
|
||||
return ret;
|
||||
}
|
||||
mdelay(5);
|
||||
|
||||
ret = dm_gpio_set_value(&priv->reset_gpio, 1);
|
||||
ret = dm_gpio_set_value(&priv->reset_gpio, 0);
|
||||
if (ret) {
|
||||
log_debug("%s: error changing reset-gpios (%d)\n",
|
||||
log_debug("%s: error exiting reset (%d)\n",
|
||||
__func__, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user