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 | |
| parent | 11442de97e1791efce0642dd079838383986d2a3 (diff) | |
| download | blackbird-hostboot-35b427bbcea96814fc6e96b2e9c016019ba947d3.tar.gz blackbird-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')
| -rw-r--r-- | src/include/usr/fapi2/plat_utils.H | 8 | ||||
| -rw-r--r-- | src/usr/fapi2/plat_utils.C | 29 | ||||
| -rwxr-xr-x | src/usr/fapi2/runtime/makefile | 2 |
3 files changed, 33 insertions, 6 deletions
diff --git a/src/include/usr/fapi2/plat_utils.H b/src/include/usr/fapi2/plat_utils.H index c58123cc0..c6e257b1e 100644 --- a/src/include/usr/fapi2/plat_utils.H +++ b/src/include/usr/fapi2/plat_utils.H @@ -82,12 +82,8 @@ errlHndl_t rcToErrl(ReturnCode & io_rc, /// @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; -} +ReturnCode platSpecialWakeup( const Target<TARGET_TYPE_ALL>& i_target, + bool i_enable ); } // End namespace fapi2 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 diff --git a/src/usr/fapi2/runtime/makefile b/src/usr/fapi2/runtime/makefile index 6d56a3cf4..520f216d9 100755 --- a/src/usr/fapi2/runtime/makefile +++ b/src/usr/fapi2/runtime/makefile @@ -33,6 +33,8 @@ ROOTPATH = ../../../.. MODULE = fapi2_rt +EXTRAINCDIR += ${ROOTPATH}/src/usr/scom/runtime + SUBDIRS += test.d include ../fapi2.mk |

