summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/plat/fapiPlatUtil.C
diff options
context:
space:
mode:
authorElizabeth Liner <eliner@us.ibm.com>2015-02-06 13:39:37 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-02-24 11:37:53 -0600
commita626d52d904c4440530f0fc9adc8a7f72fdb9460 (patch)
tree90c00aab9de7265a5c6ef161219146e9d79fdae0 /src/usr/hwpf/plat/fapiPlatUtil.C
parent14c99ac3fa5dfd721d7fd214a7cd0f17deaa2c46 (diff)
downloadblackbird-hostboot-a626d52d904c4440530f0fc9adc8a7f72fdb9460.tar.gz
blackbird-hostboot-a626d52d904c4440530f0fc9adc8a7f72fdb9460.zip
Added support for core scoms special wakeup in HBRT
Change-Id: Iab301d045c389d30fa860fd9b148eed6b2df52e0 RTC:88347 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15732 Tested-by: Jenkins Server Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/plat/fapiPlatUtil.C')
-rw-r--r--src/usr/hwpf/plat/fapiPlatUtil.C17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/usr/hwpf/plat/fapiPlatUtil.C b/src/usr/hwpf/plat/fapiPlatUtil.C
index 5e08ece80..64df4d33a 100644
--- a/src/usr/hwpf/plat/fapiPlatUtil.C
+++ b/src/usr/hwpf/plat/fapiPlatUtil.C
@@ -39,12 +39,15 @@
#include <vfs/vfs.H>
#include <initservice/initsvcbreakpoint.H>
#include <errl/errlentry.H>
+#include <initservice/initserviceif.H>
+
#ifdef __HOSTBOOT_RUNTIME
#include <runtime/interface.h>
#include <targeting/common/targetservice.H>
#include <runtime/rt_targeting.H>
#include <hwpf/hwpf_reasoncodes.H>
+#include "handleSpecialWakeup.H"
#endif
//******************************************************************************
@@ -258,7 +261,19 @@ fapi::ReturnCode fapiSpecialWakeup(const fapi::Target & i_target,
fapi::ReturnCode fapi_rc = fapi::FAPI_RC_SUCCESS;
FAPI_INF("fapiSpecialWakeup");
#ifdef __HOSTBOOT_RUNTIME
- if(g_hostInterfaces && g_hostInterfaces->wakeup)
+ if(!INITSERVICE::spBaseServicesEnabled())
+ {
+ TARGETING::Target* l_EXtarget =
+ reinterpret_cast<TARGETING::Target*>(i_target.get());
+
+ errlHndl_t err_SW = handleSpecialWakeup(l_EXtarget,i_enable);
+ if(err_SW)
+ {
+ fapi_rc.setPlatError(reinterpret_cast<void *>(err_SW));
+ }
+
+ }
+ else if(g_hostInterfaces && g_hostInterfaces->wakeup)
{
TARGETING::Target* target =
reinterpret_cast<TARGETING::Target*>(i_target.get());
OpenPOWER on IntegriCloud