diff options
| author | Corey Swenson <cswenson@us.ibm.com> | 2016-09-19 12:45:43 -0500 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-10-10 09:36:48 -0400 |
| commit | 35b427bbcea96814fc6e96b2e9c016019ba947d3 (patch) | |
| tree | baab7dd7ea9721305f53da33d14c265cc5ad59d9 /src/usr/fapi2/plat_utils.C | |
| parent | 11442de97e1791efce0642dd079838383986d2a3 (diff) | |
| download | talos-hostboot-35b427bbcea96814fc6e96b2e9c016019ba947d3.tar.gz talos-hostboot-35b427bbcea96814fc6e96b2e9c016019ba947d3.zip | |
Implement FAPI interface for special wakeup in HB
Change-Id: Ia86809403c0af9e0ff6ce77af60994fbae641749
RTC:150505
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29978
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
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 |

