summaryrefslogtreecommitdiffstats
path: root/src/import
diff options
context:
space:
mode:
authorMichael Pardeik <pardeik@us.ibm.com>2019-11-12 14:45:00 -0600
committerChristian R Geddes <crgeddes@us.ibm.com>2019-11-19 09:25:23 -0600
commitd0a45a3eb9471346bdefacabe95f99656a27afee (patch)
tree1463da960b6c52da94aa07df5bc1ff48e0d7486c /src/import
parent7e66117da698293875508fae46de8a8bb5cd9a27 (diff)
downloadtalos-hostboot-d0a45a3eb9471346bdefacabe95f99656a27afee.tar.gz
talos-hostboot-d0a45a3eb9471346bdefacabe95f99656a27afee.zip
pmic_status_tool updates
Add support for current warning/limiter limits Add telemetry option for current/power/voltage/temperature values Change FAPI_INF to use mss::logf and mss::TRACE Change-Id: I6812b29f34727a5ecf0b13c34e7d449e280ad569 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/86896 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Louis Stermole <stermole@us.ibm.com> Reviewed-by: Mark Pizzutillo <mark.pizzutillo@ibm.com> Reviewed-by: Jennifer A Stofer <stofer@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/86911 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import')
-rw-r--r--src/import/chips/ocmb/common/include/pmic_regs_fld.H14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/import/chips/ocmb/common/include/pmic_regs_fld.H b/src/import/chips/ocmb/common/include/pmic_regs_fld.H
index cd4ee9532..b8f689e1f 100644
--- a/src/import/chips/ocmb/common/include/pmic_regs_fld.H
+++ b/src/import/chips/ocmb/common/include/pmic_regs_fld.H
@@ -142,6 +142,17 @@ struct pmicFields<mss::pmic::product::JEDEC_COMPLIANT>
// R1B
static constexpr uint8_t R1B_CURRENT_OR_POWER_METER_SELECT = 0x06;
+ // R1C/R1D/R1E/R1F - bit positions flipped (0 is for bit7, 1 is for bit6, etc)
+ static constexpr uint8_t HIGH_CURRENT_WARNING_START = 0x00;
+ static constexpr uint8_t HIGH_CURRENT_WARNING_LENGTH = 0x06;
+
+ // R20 - bit positions flipped (0 is for bit7, 1 is for bit6, etc)
+ static constexpr uint8_t R20_SWA_OUTPUT_CURRENT_LIMITER_WARNING_THRESHOLD_SETTING_START = 0x00;
+ static constexpr uint8_t R20_SWB_OUTPUT_CURRENT_LIMITER_WARNING_THRESHOLD_SETTING_START = 0x02;
+ static constexpr uint8_t R20_SWC_OUTPUT_CURRENT_LIMITER_WARNING_THRESHOLD_SETTING_START = 0x04;
+ static constexpr uint8_t R20_SWD_OUTPUT_CURRENT_LIMITER_WARNING_THRESHOLD_SETTING_START = 0x06;
+ static constexpr uint8_t R20_OUTPUT_CURRENT_LIMITER_WARNING_THRESHOLD_SETTING_LENGTH = 0x02;
+
// R2B - bit positions flipped (0 is for bit7, 1 is for bit6, etc)
static constexpr uint8_t R2B_LDO_1P8_VOLT_SETTING_START = 0x00;
static constexpr uint8_t R2B_LDO_1P8_VOLT_SETTING_LENGTH = 0x02;
@@ -154,6 +165,9 @@ struct pmicFields<mss::pmic::product::JEDEC_COMPLIANT>
static constexpr uint8_t R2F_SWC_REGULATOR_CONTROL = 0x04;
static constexpr uint8_t R2F_SWD_REGULATOR_CONTROL = 0x03;
+ // R3B
+ static constexpr uint8_t R3B_PMIC_CURRENT_CAPABILITY = 0x00;
+
// R4F
static constexpr uint8_t R4F_SWA_SWB_PHASE_MODE_SELECT = 0x00;
OpenPOWER on IntegriCloud