Revert "[Feature]GSW add gpio 205 for phy"
This reverts commit 55334fa257c93c37e5d90c606d27a7f99ea673e4.
Change-Id: I16fbe195af471610581933837a00860c7f0f79b7
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 6a292ef..2e17427 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
@@ -342,7 +342,6 @@
{
//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);
@@ -366,7 +365,6 @@
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);
@@ -374,11 +372,10 @@
gpio_direction_output(NAD_WAKEUP_PHY1, 0);
mdelay(5);
gpio_direction_output(NAD_RESET_PHY1, 1);
- mdelay(1000);
+ mdelay(10);
gpio_direction_output(NAD_RESET_PHY1, 0);
mdelay(30);
gpio_direction_output(NAD_RESET_PHY1, 1);
- gpio_direction_output(205 + 268, 0);
mdelay(10);//at lest 4ms for reset phy
q2220_b0_config_init(phydev);
if_suspend = 0;
@@ -397,7 +394,6 @@
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);
@@ -405,11 +401,10 @@
gpio_direction_output(NAD_WAKEUP_PHY1, 0);
mdelay(5);
gpio_direction_output(NAD_RESET_PHY1, 1);
- mdelay(1000);
+ mdelay(10);
gpio_direction_output(NAD_RESET_PHY1, 0);
mdelay(30);
gpio_direction_output(NAD_RESET_PHY1, 1);
- gpio_direction_output(205 + 268, 0);
mdelay(10);//at lest 4ms for reset phy
q2220_b1_config_init(phydev);
if_suspend = 0;