Demagic PHY_MMD31, 0xa414 to PHY_MMD31, PHY_MMD31_GANLPAR

This commit is contained in:
René van Dorst
2026-01-26 22:45:44 +01:00
parent a6e452e638
commit 5962c3a8a6
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -38,6 +38,7 @@
*/ */
#define PHY_MMD31_FEDCR 0xa400 #define PHY_MMD31_FEDCR 0xa400
#define PHY_MMD31_GBCR 0xa412 #define PHY_MMD31_GBCR 0xa412
#define PHY_MMD31_GANLPAR 0xa414
+1 -1
View File
@@ -404,7 +404,7 @@ void phy_show(uint8_t port) __banked
print_string(" 100Base-Half"); print_string(" 100Base-Half");
if (v & 0x0100) if (v & 0x0100)
print_string(" 100Base-Full"); print_string(" 100Base-Full");
phy_read(port, PHY_MMD31, 0xa414); phy_read(port, PHY_MMD31, PHY_MMD31_GANLPAR);
v = SFR_DATA_U16; v = SFR_DATA_U16;
if (v & 0x0400) if (v & 0x0400)
print_string(" 1000Base-Half"); print_string(" 1000Base-Half");