From 62dbcfa3953099213515d98b333fae3acdd85a77 Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Mon, 29 Aug 2016 10:39:53 -0500 Subject: 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 Tested-by: FSP CI Jenkins Reviewed-by: Corey V. Swenson Reviewed-by: Daniel M. Crowell --- src/include/usr/fapi2/plat_utils.H | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'src/include/usr/fapi2') 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 +inline ReturnCode platSpecialWakeup( const Target& i_target, bool i_enable) +{ + //@TODO-RTC:150505-Implement real support + return FAPI2_RC_SUCCESS; +} + } // End namespace fapi2 + #endif // PLAT_UTILS_H_ -- cgit v1.2.3