Demagic PHY_MMD_AN, 33 to PHY_MMD_AN, PHY_ANEG_MGBASE_ADV

This commit is contained in:
René van Dorst
2026-01-26 22:42:54 +01:00
parent 7f4c276285
commit a6e452e638
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -23,6 +23,7 @@
#define PHY_ANEG_ADV 0x10 #define PHY_ANEG_ADV 0x10
#define PHY_ANEG_LP_ABILITY 0x13 #define PHY_ANEG_LP_ABILITY 0x13
#define PHY_ANEG_MGBASE_CTRL 0x20 #define PHY_ANEG_MGBASE_CTRL 0x20
#define PHY_ANEG_MGBASE_ADV 0x21
#define PHY_EEE_ADV 0x3c #define PHY_EEE_ADV 0x3c
#define PHY_EEE_LP_ABILITY 0x3d #define PHY_EEE_LP_ABILITY 0x3d
#define PHY_EEE_ADV2 0x3e #define PHY_EEE_ADV2 0x3e
+1 -1
View File
@@ -410,7 +410,7 @@ void phy_show(uint8_t port) __banked
print_string(" 1000Base-Half"); print_string(" 1000Base-Half");
if (v & 0x0800) if (v & 0x0800)
print_string(" 1000Base-Full"); 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; v = SFR_DATA_U16;
if (v & 0x0020) if (v & 0x0020)
print_string(" 2500Base-Full"); print_string(" 2500Base-Full");