diff options
| author | Evan Lojewski <github@meklort.com> | 2019-02-16 15:30:15 -0700 |
|---|---|---|
| committer | Evan Lojewski <github@meklort.com> | 2019-02-16 15:30:15 -0700 |
| commit | 313a92850de3f5eabda1a8c0fe753a667fcfc8dc (patch) | |
| tree | f5c29ac6bed70583eba75e82c2109bd7682ca2a0 /utils/bcmregtool/main.cpp | |
| parent | 95e5c2a2518646f92456e5301d32f23db732be5a (diff) | |
| download | bcm5719-ortega-313a92850de3f5eabda1a8c0fe753a667fcfc8dc.tar.gz bcm5719-ortega-313a92850de3f5eabda1a8c0fe753a667fcfc8dc.zip | |
Print some additional MII registers.
Diffstat (limited to 'utils/bcmregtool/main.cpp')
| -rw-r--r-- | utils/bcmregtool/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/bcmregtool/main.cpp b/utils/bcmregtool/main.cpp index cc8b834..2de4c32 100644 --- a/utils/bcmregtool/main.cpp +++ b/utils/bcmregtool/main.cpp @@ -239,8 +239,11 @@ int main(int argc, char const *argv[]) if(options.get("mii")) { uint8_t phy = MII_getPhy(); - printf("MII Phy: %d\n", phy); - printf("MII Control: 0x%04X\n", MII_readRegister(phy, REG_MII_CONTROL)); + printf("MII Phy: %d\n", phy); + printf("MII Control: 0x%04X\n", MII_readRegister(phy, REG_MII_CONTROL)); + printf("MII Status: 0x%04X\n", MII_readRegister(phy, REG_MII_STATUS)); + printf("MII PHY ID[high]: 0x%04X\n", MII_readRegister(phy, REG_MII_PHY_ID_HIGH)); + printf("MII PHY ID[low]: 0x%04X\n", MII_readRegister(phy, REG_MII_PHY_ID_LOW)); exit(0); } |

