summaryrefslogtreecommitdiffstats
path: root/src/usr/fapi2
diff options
context:
space:
mode:
authorCorey Swenson <cswenson@us.ibm.com>2016-09-19 12:45:43 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-10-10 09:36:48 -0400
commit35b427bbcea96814fc6e96b2e9c016019ba947d3 (patch)
treebaab7dd7ea9721305f53da33d14c265cc5ad59d9 /src/usr/fapi2
parent11442de97e1791efce0642dd079838383986d2a3 (diff)
downloadtalos-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')
-rw-r--r--src/usr/fapi2/plat_utils.C29
-rwxr-xr-xsrc/usr/fapi2/runtime/makefile2
2 files changed, 31 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
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
OpenPOWER on IntegriCloud