summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-02-26 22:13:33 -0700
committerEvan Lojewski <github@meklort.com>2019-02-26 22:13:33 -0700
commit8ee6488725190697fabde802947d887e417e4661 (patch)
tree6adb6ac465a62ee016508756085b4bca07496d19 /libs
parente5a53938bb925fabfabc44e8911d611c5ee45458 (diff)
downloadbcm5719-ortega-8ee6488725190697fabde802947d887e417e4661.tar.gz
bcm5719-ortega-8ee6488725190697fabde802947d887e417e4661.zip
Remove multiplication from MII reigster, should not have been there.
Diffstat (limited to 'libs')
-rw-r--r--libs/MII/mii.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/MII/mii.c b/libs/MII/mii.c
index 9123242..90fac9c 100644
--- a/libs/MII/mii.c
+++ b/libs/MII/mii.c
@@ -107,7 +107,7 @@ void MII_writeRegister(uint8_t phy, mii_reg_t reg, uint16_t data)
regcontents.bits.Command = DEVICE_MII_COMMUNICATION_COMMAND_WRITE;
regcontents.bits.Start_DIV_Busy = 1;
regcontents.bits.PHYAddress = phy;
- regcontents.bits.RegisterAddress = caster.addr * 16;
+ regcontents.bits.RegisterAddress = caster.addr;
regcontents.bits.TransactionData = data;
// Ensure there are no active transactions
OpenPOWER on IntegriCloud