diff options
author | Mark Pizzutillo <Mark.Pizzutillo@ibm.com> | 2019-04-29 16:15:40 -0400 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-05-08 14:53:07 -0500 |
commit | dc855079f5226e4890a3ccc323e11b7614e6479a (patch) | |
tree | 5f8df750d8ddcf2d5362ba8e22b2433cf69bc6ea /src/import/chips/ocmb/common/procedures/hwp/pmic/lib/utils | |
parent | 8b15178b06799698b5cd18348096563256241e61 (diff) | |
download | talos-hostboot-dc855079f5226e4890a3ccc323e11b7614e6479a.tar.gz talos-hostboot-dc855079f5226e4890a3ccc323e11b7614e6479a.zip |
Add L1 PMIC procedures
Change-Id: Ic577d07244580941c62e4405b79c69443f20a69e
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/76745
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Reviewed-by: Louis Stermole <stermole@us.ibm.com>
Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/76869
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: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/ocmb/common/procedures/hwp/pmic/lib/utils')
-rw-r--r-- | src/import/chips/ocmb/common/procedures/hwp/pmic/lib/utils/pmic_bias_utils.H | 49 | ||||
-rw-r--r-- | src/import/chips/ocmb/common/procedures/hwp/pmic/lib/utils/pmic_enable_utils.H | 34 |
2 files changed, 83 insertions, 0 deletions
diff --git a/src/import/chips/ocmb/common/procedures/hwp/pmic/lib/utils/pmic_bias_utils.H b/src/import/chips/ocmb/common/procedures/hwp/pmic/lib/utils/pmic_bias_utils.H index 08bd4add1..58757e249 100644 --- a/src/import/chips/ocmb/common/procedures/hwp/pmic/lib/utils/pmic_bias_utils.H +++ b/src/import/chips/ocmb/common/procedures/hwp/pmic/lib/utils/pmic_bias_utils.H @@ -22,3 +22,52 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ + +/// +/// @file pmic_bias_utils.H +/// @brief Procedure definition to bias PMIC +/// +// *HWP HWP Owner: Mark Pizzutillo <mark.pizzutillo@ibm.com> +// *HWP HWP Backup: Louis Stermole <stermole@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#ifndef __PMIC_BIAS_UTILS_H__ +#define __PMIC_BIAS_UTILS_H__ + +#include <fapi2.H> + +namespace mss +{ +namespace pmic +{ + +/// +/// @brief Rail settings that the bias procedure can modify +/// +enum setting +{ + // We order these by rail in groups of 4 so they match with the rail enums, + // so the rail can be derived from just a % 4 when we have more settings to change + SWA_VOLT = 0, + SWB_VOLT = 1, + SWC_VOLT = 2, + SWD_VOLT = 3, + NO_SETTING = 4, +}; + +/// +/// @brief Different methods of biasing +/// +enum unit +{ + NO_UNIT = 0, // default value that we can use for error checking + VALUE = 1, + PERCENT = 2, +}; + +}// pmic +}// mss + +#endif diff --git a/src/import/chips/ocmb/common/procedures/hwp/pmic/lib/utils/pmic_enable_utils.H b/src/import/chips/ocmb/common/procedures/hwp/pmic/lib/utils/pmic_enable_utils.H index d5348bda1..d673a0073 100644 --- a/src/import/chips/ocmb/common/procedures/hwp/pmic/lib/utils/pmic_enable_utils.H +++ b/src/import/chips/ocmb/common/procedures/hwp/pmic/lib/utils/pmic_enable_utils.H @@ -22,3 +22,37 @@ /* permissions and limitations under the License. */ /* */ /* IBM_PROLOG_END_TAG */ + +/// +/// @file pmic_enable_utils.H +/// @brief Utility functions for PMIC enable operation +/// +// *HWP HWP Owner: Mark Pizzutillo <mark.pizzutillo@ibm.com> +// *HWP HWP Backup: Louis Stermole <stermole@us.ibm.com> +// *HWP Team: Memory +// *HWP Level: 1 +// *HWP Consumed by: FSP:HB + +#ifndef __PMIC_ENABLE_UTILS_H__ +#define __PMIC_ENABLE_UTILS_H__ + +#include <fapi2.H> + +namespace mss +{ +namespace pmic +{ + +/// +/// @brief Different enable operations +/// +enum enable_mode +{ + SPD = 0, // Use values from the SPD (default). Overwrite the vendor region with SPD settings + MANUAL = 1, // Use voltage settings currently in the vendor region. (Changed via pmic_update, or factory defaults) +}; + +}// pmic +}// mss + +#endif |