Demagic PHY_MMD31, 0xa434 to PHY_MMD31, PHY_MMD31_PHYSR

This commit is contained in:
René van Dorst
2026-01-26 22:48:04 +01:00
parent 5962c3a8a6
commit 6495310ba9
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -39,6 +39,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 #define PHY_MMD31_GANLPAR 0xa414
#define PHY_MMD31_PHYSR 0xa434
+1 -1
View File
@@ -295,7 +295,7 @@ void phy_show(uint8_t port) __banked
// The actual PHY speed is in a Realtek propriatary register // The actual PHY speed is in a Realtek propriatary register
print_string("\nLink speed: "); print_string("\nLink speed: ");
phy_read(port, PHY_MMD31, 0xA434); phy_read(port, PHY_MMD31, PHY_MMD31_PHYSR);
v = SFR_DATA_U16; v = SFR_DATA_U16;
switch(((v & 0x0600) >> 7) | ((v & 0x0030) >> 4)) { switch(((v & 0x0600) >> 7) | ((v & 0x0030) >> 4)) {
case 0: case 0: