Skip to content

Commit

Permalink
pmic_status_tool updates
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pardeik authored and crgeddes committed Nov 19, 2019
1 parent 7e66117 commit d0a45a3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/import/chips/ocmb/common/include/pmic_regs_fld.H
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down

0 comments on commit d0a45a3

Please sign in to comment.