summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/pm/p9_setup_evid.H
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2016-06-24 09:52:01 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-06-28 12:32:44 -0400
commit2af3c06087ba4cac442fe3c771f949effee014c0 (patch)
treef06dfc187dde047bafce36b599d1ad0b958b3717 /src/import/chips/p9/procedures/hwp/pm/p9_setup_evid.H
parentd9924e34b630b7a57ab036dfb9f02808a5fec607 (diff)
downloadtalos-hostboot-2af3c06087ba4cac442fe3c771f949effee014c0.tar.gz
talos-hostboot-2af3c06087ba4cac442fe3c771f949effee014c0.zip
Add parameter to setup evid to define action for HWP
This hwp is called at 2 different points during the IPL and we do not want to reset default values if we have already done it once. Change-Id: Ia621802762b7fc79cedb1f8609477936e2c2cec6 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26254 Tested-by: Jenkins Server Tested-by: PPE CI Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Tested-by: Hostboot CI Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26267 Tested-by: FSP CI Jenkins
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/pm/p9_setup_evid.H')
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_setup_evid.H18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_setup_evid.H b/src/import/chips/p9/procedures/hwp/pm/p9_setup_evid.H
index 63e89d702..9bfa88c4f 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_setup_evid.H
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_setup_evid.H
@@ -36,15 +36,28 @@
extern "C"
{
+/// @typedef VoltageConfigActions_t
+/// enum of the two actions this hwp can perform
+/// it can either compute default voltage settings
+/// otherwise it can apply voltage setting to the system
+ typedef enum
+ {
+ COMPUTE_VOLTAGE_SETTINGS,
+ APPLY_VOLTAGE_SETTINGS
+ } VoltageConfigActions_t;
+
/// @typedef p9_setup_evid_FP_t
/// function pointer typedef definition for HWP call support
typedef fapi2::ReturnCode (*p9_setup_evid_FP_t) (
- const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&);
+ const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&,
+ const VoltageConfigActions_t);
/// @brief Read attributes containing part's boot voltages(VDD,VCS and VDN)
/// and set these voltage using the AVSBUS interface (VDD, VDN and VCS).
///
/// @param [in] i_target TARGET_TYPE_PROC_CHIP
+/// @param [in] i_action Describes whether you wish to COMPUTE voltage settings
+/// during the step or if you would like to APPLY them.
/// @attr
/// @attritem ATTR_VCS_BOOT_VOLTAGE - 1mV grandularity setting for VCS rail
/// @attritem ATTR_VDD_BOOT_VOLTAGE - 1mV grandularity setting for VDD rail
@@ -58,7 +71,8 @@ extern "C"
///
/// @retval FAPI_RC_SUCCESS
fapi2::ReturnCode
- p9_setup_evid(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target);
+ p9_setup_evid(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target,
+ const VoltageConfigActions_t i_action);
} // extern C
OpenPOWER on IntegriCloud