summaryrefslogtreecommitdiffstats
path: root/src/import/chips/ocmb/common/include/pmic_regs_fld.H
diff options
context:
space:
mode:
authorMichael Pardeik <pardeik@us.ibm.com>2019-10-10 15:37:04 -0500
committerChristian R Geddes <crgeddes@us.ibm.com>2019-10-28 13:01:01 -0500
commit333d66b55815428a6fff9be13f5cfc5a7d420b15 (patch)
treea46b0f815df4fc5c771ab2d198947baa5323a2f0 /src/import/chips/ocmb/common/include/pmic_regs_fld.H
parent8b1553db49b8eb755c8e16c1d276c29f664614e3 (diff)
downloadtalos-hostboot-333d66b55815428a6fff9be13f5cfc5a7d420b15.tar.gz
talos-hostboot-333d66b55815428a6fff9be13f5cfc5a7d420b15.zip
pmic status tool updates
added checks for when items are applicable added in power reporting added in voltage reporting added in ADC data reporting added in temperature reporting Change-Id: I764d28c93bf097369d1e060a09178bb672b8002e Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/85181 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: STEPHEN GLANCY <sglancy@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/85186 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/chips/ocmb/common/include/pmic_regs_fld.H')
-rw-r--r--src/import/chips/ocmb/common/include/pmic_regs_fld.H37
1 files changed, 36 insertions, 1 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 16946f491..cd4ee9532 100644
--- a/src/import/chips/ocmb/common/include/pmic_regs_fld.H
+++ b/src/import/chips/ocmb/common/include/pmic_regs_fld.H
@@ -133,12 +133,47 @@ struct pmicFields<mss::pmic::product::JEDEC_COMPLIANT>
static constexpr uint8_t R0B_SWC_OUTPUT_UNDER_VOLTAGE_LOCKOUT_STATUS = 0x01;
static constexpr uint8_t R0B_SWD_OUTPUT_UNDER_VOLTAGE_LOCKOUT_STATUS = 0x00;
- // 0x14
+ // R14
static constexpr uint8_t R14_GLOBAL_CLEAR_STATUS = 0x00;
+ // R1A
+ static constexpr uint8_t R1A_OUTPUT_POWER_SELECT = 0x01;
+
+ // R1B
+ static constexpr uint8_t R1B_CURRENT_OR_POWER_METER_SELECT = 0x06;
+
+ // 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;
+ static constexpr uint8_t R2B_LDO_1P0_VOLT_SETTING_START = 0x05;
+ static constexpr uint8_t R2B_LDO_1P0_VOLT_SETTING_LENGTH = 0x02;
+
+ // R2F
+ static constexpr uint8_t R2F_SWA_REGULATOR_CONTROL = 0x06;
+ static constexpr uint8_t R2F_SWB_REGULATOR_CONTROL = 0x05;
+ static constexpr uint8_t R2F_SWC_REGULATOR_CONTROL = 0x04;
+ static constexpr uint8_t R2F_SWD_REGULATOR_CONTROL = 0x03;
+
+ // R4F
+ static constexpr uint8_t R4F_SWA_SWB_PHASE_MODE_SELECT = 0x00;
+
+ // R30 - bit positions flipped (0 is for bit7, 1 is for bit6, etc)
+ static constexpr uint8_t R30_ADC_ENABLE = 0x00;
+ static constexpr uint8_t R30_ADC_SELECT_START = 0x01;
+ static constexpr uint8_t R30_ADC_SELECT_LENGTH = 0x04;
+
+ // R31 - bit positions flipped (0 is for bit7, 1 is for bit6, etc)
+ static constexpr uint8_t R31_ADC_READ_SETTING_START = 0x00;
+ static constexpr uint8_t R31_ADC_READ_SETTING_LENGTH = 0x08;
+
+ // R33 - bit positions flipped (0 is for bit7, 1 is for bit6, etc)
+ static constexpr uint8_t R33_TEMPERATURE_SETTING_START = 0x00;
+ static constexpr uint8_t R33_TEMPERATURE_SETTING_LENGTH = 0x03;
+
static constexpr uint8_t DELAY_FLD_LENGTH = 3;
static constexpr uint8_t VOLTAGE_SETTING_START = 0;
static constexpr uint8_t VOLTAGE_SETTING_LENGTH = 7;
+
};
#endif
OpenPOWER on IntegriCloud