mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 21:06:01 +01:00
net: mvpp2: fix polarity of PHY reset signal
The dm_gpio_set_value() call sets the logical level of the GPIO signal. That is, it takes the GPIO_ACTIVE_{LOW,HIGH} property into account. The driver needs to assert the reset, and then deassert it. Not the other way around. Cc: Stefan Chulski <stefanc@marvell.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
1ddcf5edbb
commit
fa14027d5c
@ -4792,9 +4792,9 @@ static int phy_info_parse(struct udevice *dev, struct mvpp2_port *port)
|
|||||||
static void mvpp2_gpio_init(struct mvpp2_port *port)
|
static void mvpp2_gpio_init(struct mvpp2_port *port)
|
||||||
{
|
{
|
||||||
if (dm_gpio_is_valid(&port->phy_reset_gpio)) {
|
if (dm_gpio_is_valid(&port->phy_reset_gpio)) {
|
||||||
dm_gpio_set_value(&port->phy_reset_gpio, 0);
|
|
||||||
udelay(1000);
|
|
||||||
dm_gpio_set_value(&port->phy_reset_gpio, 1);
|
dm_gpio_set_value(&port->phy_reset_gpio, 1);
|
||||||
|
udelay(1000);
|
||||||
|
dm_gpio_set_value(&port->phy_reset_gpio, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dm_gpio_is_valid(&port->phy_tx_disable_gpio))
|
if (dm_gpio_is_valid(&port->phy_tx_disable_gpio))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user