diff options
Diffstat (limited to 'src/usr/fapi2/plat_utils.C')
-rw-r--r-- | src/usr/fapi2/plat_utils.C | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/usr/fapi2/plat_utils.C b/src/usr/fapi2/plat_utils.C index 38df6a63d..bf8cc0c48 100644 --- a/src/usr/fapi2/plat_utils.C +++ b/src/usr/fapi2/plat_utils.C @@ -41,6 +41,10 @@ #include <errl/errlmanager.H> #include <hwpf_fapi2_reasoncodes.H> +#if __HOSTBOOT_RUNTIME + #include "handleSpecialWakeup.H" +#endif + //****************************************************************************** // Trace descriptors //****************************************************************************** @@ -1010,4 +1014,29 @@ bool platIsScanTraceEnabled() return 1; } +//****************************************************************************** +// platSpecialWakeup +//****************************************************************************** +fapi2::ReturnCode platSpecialWakeup(const Target<TARGET_TYPE_ALL>& i_target, + const bool i_enable) +{ + fapi2::ReturnCode fapi_rc = fapi2::FAPI2_RC_SUCCESS; + FAPI_INF("platSpecialWakeup"); + +#ifdef __HOSTBOOT_RUNTIME + TARGETING::Target* l_target = + reinterpret_cast<TARGETING::Target*>(i_target.get()); + + errlHndl_t err_SW = handleSpecialWakeup(l_target,i_enable); + if(err_SW) + { + fapi_rc.setPlatDataPtr(reinterpret_cast<void *>(err_SW)); + } +#endif + + // On Hostboot, processor cores cannot sleep so return success to the + // fapiSpecialWakeup enable/disable calls + return fapi_rc; +} + } //end namespace |