summaryrefslogtreecommitdiffstats
path: root/src/include/usr/fapi2
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2016-08-29 10:39:53 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-08-30 17:22:35 -0400
commit62dbcfa3953099213515d98b333fae3acdd85a77 (patch)
treee19a9b8a2e5391af7cb89fbe0af7e68f235b1131 /src/include/usr/fapi2
parentab651844afcc9b0ac6a1c74779da555b62342bf1 (diff)
downloadblackbird-hostboot-62dbcfa3953099213515d98b333fae3acdd85a77.tar.gz
blackbird-hostboot-62dbcfa3953099213515d98b333fae3acdd85a77.zip
Add minimal compile support for fapi2::specialWakeup
Put in empty implementation for platSpecialWakeup to allow HWPs to compile. Change-Id: I1c33c822f58f9692a47799cd3c602e7232170816 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28909 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/fapi2')
-rw-r--r--src/include/usr/fapi2/plat_utils.H32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/include/usr/fapi2/plat_utils.H b/src/include/usr/fapi2/plat_utils.H
index ce822faa6..c58123cc0 100644
--- a/src/include/usr/fapi2/plat_utils.H
+++ b/src/include/usr/fapi2/plat_utils.H
@@ -58,6 +58,38 @@ errlHndl_t rcToErrl(ReturnCode & io_rc,
ERRORLOG::errlSeverity_t i_sev =
ERRORLOG::ERRL_SEV_UNRECOVERABLE);
+
+///
+/// @brief Enable/Disable special wakeup on processor chip core(s)
+///
+/// Special Wakeup Enable must be done when a HWP is doing an operation that
+/// requires core(s) to be awake (e.g. modifying the Hcode image). For
+/// each Special Wakeup Enable call, there must be a subsequent Special Wakeup
+/// Disable call.
+///
+/// @param[in] i_target
+/// TARGET_TYPE_PROC_CHIP: Enables/Disables Special Wakeup on all
+/// cores (EX,EQ chiplets) of the specified chip target.
+/// TARGET_TYPE_CORE: Enables/Disables Special Wakeup on the
+/// specified core target (EX,EQ chiplets)
+/// TARGET_TYPE_EX: Enables/Disables Special Wakeup on the
+/// specified EX target.
+/// TARGET_TYPE_EQ: Enables/Disables Special Wakeup on the
+/// specified EQ target.
+///
+/// @param[in] i_enable true = enable. false = disable.
+///
+/// @return ReturnCode. FAPI2_RC_SUCCESS on success, else platform specified error.
+///
+///
+template<TargetType T>
+inline ReturnCode platSpecialWakeup( const Target<T>& i_target, bool i_enable)
+{
+ //@TODO-RTC:150505-Implement real support
+ return FAPI2_RC_SUCCESS;
+}
+
} // End namespace fapi2
+
#endif // PLAT_UTILS_H_
OpenPOWER on IntegriCloud