mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Demagic PHY_MMD_AN, 33 to PHY_MMD_AN, PHY_ANEG_MGBASE_ADV
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#define PHY_ANEG_ADV 0x10
|
||||
#define PHY_ANEG_LP_ABILITY 0x13
|
||||
#define PHY_ANEG_MGBASE_CTRL 0x20
|
||||
#define PHY_ANEG_MGBASE_ADV 0x21
|
||||
#define PHY_EEE_ADV 0x3c
|
||||
#define PHY_EEE_LP_ABILITY 0x3d
|
||||
#define PHY_EEE_ADV2 0x3e
|
||||
|
||||
+1
-1
@@ -410,7 +410,7 @@ void phy_show(uint8_t port) __banked
|
||||
print_string(" 1000Base-Half");
|
||||
if (v & 0x0800)
|
||||
print_string(" 1000Base-Full");
|
||||
phy_read(port, PHY_MMD_AN, 33);
|
||||
phy_read(port, PHY_MMD_AN, PHY_ANEG_MGBASE_ADV);
|
||||
v = SFR_DATA_U16;
|
||||
if (v & 0x0020)
|
||||
print_string(" 2500Base-Full");
|
||||
|
||||
Reference in New Issue
Block a user