summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf
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
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')
-rw-r--r--src/usr/hwpf/plat/fapiPlatUtil.C17
-rw-r--r--src/usr/hwpf/plat/runtime/makefile5
2 files changed, 19 insertions, 3 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());
diff --git a/src/usr/hwpf/plat/runtime/makefile b/src/usr/hwpf/plat/runtime/makefile
index 176d51d3c..76e324d85 100644
--- a/src/usr/hwpf/plat/runtime/makefile
+++ b/src/usr/hwpf/plat/runtime/makefile
@@ -5,7 +5,8 @@
#
# OpenPOWER HostBoot Project
#
-# COPYRIGHT International Business Machines Corp. 2011,2014
+# Contributors Listed Below - COPYRIGHT 2013,2015
+# [+] International Business Machines Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -26,7 +27,7 @@ MODULE = plat_rt
VPATH += ../
EXTRAINCDIR += ${ROOTPATH}/src/include/usr/hwpf/hwp/pll_accessors/
-
+EXTRAINCDIR += ${ROOTPATH}/src/usr/scom/runtime
# include common fapi OBJs
include ../plat.mk
OpenPOWER on IntegriCloud