[Feature]GSW add gpio 205 for phy
Change-Id: Ie7e43f9fdd70b070ea044b5467f9a507f6c60ce6
diff --git a/src/kernel/linux/v4.19/drivers/net/phy/marvell-88q.c b/src/kernel/linux/v4.19/drivers/net/phy/marvell-88q.c
index 9010740..ab00fb0 100755
--- a/src/kernel/linux/v4.19/drivers/net/phy/marvell-88q.c
+++ b/src/kernel/linux/v4.19/drivers/net/phy/marvell-88q.c
@@ -232,6 +232,7 @@
{
//xf.li 2022/11/9 modify for API-647
printk("phy sleep start\n");
+ gpio_direction_output(205 + 268, 0);
gpio_direction_output(NAD_WAKEUP_PHY1, 0);
mdelay(1);//ensure do not wake up
//phy_write(phydev, MII_ADDR_C45 | 0x038022, 0x1);
@@ -255,13 +256,15 @@
if(if_suspend == 1)
{
printk("phy awake start\n");
+ gpio_direction_output(205 + 268, 1);
gpio_direction_output(PHY_POWER_SUPPLY, 1);
mdelay(1);
gpio_direction_output(NAD_WAKEUP_PHY1, 1);
- udelay(1100);
+ mdelay(1000);
gpio_direction_output(NAD_WAKEUP_PHY1, 0);
mdelay(1);
gpio_direction_output(NAD_RESET_PHY1, 1);
+ gpio_direction_output(205 + 268, 0);
mdelay(10);//at lest 4ms for reset phy
q2110_config_init(phydev);
if_suspend = 0;