summaryrefslogtreecommitdiffstats
path: root/utils/bcmregtool/main.cpp
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-02-16 13:18:55 -0700
committerEvan Lojewski <github@meklort.com>2019-02-16 13:18:55 -0700
commit16d0c32a8d4f4201833da3b247d608b6e921812a (patch)
tree168c6beeb8b3308819c115910bee1594f5808d06 /utils/bcmregtool/main.cpp
parent4bfa7b72c4cdc43ae555c7a68622ccff313a873a (diff)
downloadbcm5719-ortega-16d0c32a8d4f4201833da3b247d608b6e921812a.tar.gz
bcm5719-ortega-16d0c32a8d4f4201833da3b247d608b6e921812a.zip
Fix parsing of the power budget from nvm.
Diffstat (limited to 'utils/bcmregtool/main.cpp')
-rw-r--r--utils/bcmregtool/main.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/utils/bcmregtool/main.cpp b/utils/bcmregtool/main.cpp
index 80509cc..09c276d 100644
--- a/utils/bcmregtool/main.cpp
+++ b/utils/bcmregtool/main.cpp
@@ -254,14 +254,14 @@ int main(int argc, char const *argv[])
printf("\n");
- printf("Power Budget[0]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget0.bits.PowerBudgetValue);
- printf("Power Budget[1]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget1.bits.PowerBudgetValue);
- printf("Power Budget[2]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget2.bits.PowerBudgetValue);
- printf("Power Budget[3]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget3.bits.PowerBudgetValue);
- printf("Power Budget[4]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget4.bits.PowerBudgetValue);
- printf("Power Budget[5]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget5.bits.PowerBudgetValue);
- printf("Power Budget[6]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget6.bits.PowerBudgetValue);
- printf("Power Budget[7]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget7.bits.PowerBudgetValue);
+ printf("Power Budget[0]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget0.r32);
+ printf("Power Budget[1]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget1.r32);
+ printf("Power Budget[2]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget2.r32);
+ printf("Power Budget[3]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget3.r32);
+ printf("Power Budget[4]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget4.r32);
+ printf("Power Budget[5]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget5.r32);
+ printf("Power Budget[6]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget6.r32);
+ printf("Power Budget[7]: 0x%08X\n", (uint32_t)DEVICE.PciPowerBudget7.r32);
printf("\n");
OpenPOWER on IntegriCloud