diff options
| author | Evan Lojewski <github@meklort.com> | 2019-02-16 19:59:01 -0700 |
|---|---|---|
| committer | Evan Lojewski <github@meklort.com> | 2019-02-16 19:59:01 -0700 |
| commit | 1d6fd33f16032140ab2c1a106d84cbe227decf89 (patch) | |
| tree | 8334e151a98a9363467a2dab96f7382b7d3837d3 /utils/bcmregtool/main.cpp | |
| parent | 313a92850de3f5eabda1a8c0fe753a667fcfc8dc (diff) | |
| download | bcm5719-ortega-1d6fd33f16032140ab2c1a106d84cbe227decf89.tar.gz bcm5719-ortega-1d6fd33f16032140ab2c1a106d84cbe227decf89.zip | |
Fix MII register addresses and impliment accessing paged blocks.
Diffstat (limited to 'utils/bcmregtool/main.cpp')
| -rw-r--r-- | utils/bcmregtool/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/bcmregtool/main.cpp b/utils/bcmregtool/main.cpp index 2de4c32..79d54f4 100644 --- a/utils/bcmregtool/main.cpp +++ b/utils/bcmregtool/main.cpp @@ -245,6 +245,10 @@ int main(int argc, char const *argv[]) 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)); + MII_selectBlock(0, 0x8010); + printf("0x1A (0x8010): 0x%04X\n", MII_readRegister(0, (mii_reg_t)0x1A)); + MII_selectBlock(0, 0); + exit(0); } |

