mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Reduce PHY reset time to 20ms
This commit is contained in:
+1
-1
@@ -236,7 +236,7 @@ void phy_reset(uint8_t port) __banked
|
|||||||
|
|
||||||
// Disable PHY
|
// Disable PHY
|
||||||
phy_write(port, PHY_MMD_CTRL, 0xa610, v | 0x0800);
|
phy_write(port, PHY_MMD_CTRL, 0xa610, v | 0x0800);
|
||||||
delay(5);
|
delay(2);
|
||||||
// Re-enable PHY
|
// Re-enable PHY
|
||||||
phy_write(port, PHY_MMD_CTRL, 0xa610, v & 0xf7ff);
|
phy_write(port, PHY_MMD_CTRL, 0xa610, v & 0xf7ff);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user