summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCHRISTINA L. GRAVES <clgraves@us.ibm.com>2015-12-04 13:46:39 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-09-02 17:20:30 -0400
commit8e618df5035b32f18497d5523b25aa1e15598789 (patch)
tree144c21154df63a5e6db26c473a6a9714de37fe12 /src
parent3622f6ac876b3ade218d45d44f0c1b4fa5bb6de3 (diff)
downloadtalos-hostboot-8e618df5035b32f18497d5523b25aa1e15598789.tar.gz
talos-hostboot-8e618df5035b32f18497d5523b25aa1e15598789.zip
Adding the L1s for p9_tod_init and p9_tod_setup
Change-Id: I6913fe7c0037368fc2546c5b4959ffc3fb268e66 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22502 Tested-by: Jenkins Server Reviewed-by: James N. Klazynski <jklazyns@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29191 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/import/chips/p9/procedures/hwp/nest/p9_tod_init.C64
-rw-r--r--src/import/chips/p9/procedures/hwp/nest/p9_tod_init.H83
-rw-r--r--src/import/chips/p9/procedures/hwp/nest/p9_tod_init.mk28
3 files changed, 175 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_tod_init.C b/src/import/chips/p9/procedures/hwp/nest/p9_tod_init.C
new file mode 100644
index 000000000..553367ef0
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/nest/p9_tod_init.C
@@ -0,0 +1,64 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/import/chips/p9/procedures/hwp/nest/p9_tod_init.C $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2015,2016 */
+/* [+] 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. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+//--------------------------------------------------------------------------
+//
+//
+/// @file p9_tod_init.C
+/// @brief Procedures to initialize the TOD to 'running' state
+///
+// *HWP HWP Owner Christina Graves clgraves@us.ibm.com
+// *HWP FW Owner: Thi Tran thi@us.ibm.com
+// *HWP Team: Nest
+// *HWP Level: 1
+// *HWP Consumed by: SBE
+//
+//--------------------------------------------------------------------------
+
+
+//--------------------------------------------------------------------------
+// Includes
+//--------------------------------------------------------------------------
+#include <p9_tod_init.H>
+
+extern "C" {
+
+//--------------------------------------------------------------------------
+// HWP entry point
+//--------------------------------------------------------------------------
+ fapi2::ReturnCode p9_tod_init(
+ const tod_topology_node* i_tod_node,
+ fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>* i_target)
+ {
+ // mark HWP entry
+ FAPI_DBG("Entering ...\n");
+
+
+ /*fapi_try_exit:*/
+ FAPI_DBG("Exiting...");
+ return fapi2::current_err;
+ }
+
+} // extern "C"
+
diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_tod_init.H b/src/import/chips/p9/procedures/hwp/nest/p9_tod_init.H
new file mode 100644
index 000000000..72ef0c8e3
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/nest/p9_tod_init.H
@@ -0,0 +1,83 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/import/chips/p9/procedures/hwp/nest/p9_tod_init.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2015,2016 */
+/* [+] 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. */
+/* You may obtain a copy of the License at */
+/* */
+/* http://www.apache.org/licenses/LICENSE-2.0 */
+/* */
+/* Unless required by applicable law or agreed to in writing, software */
+/* distributed under the License is distributed on an "AS IS" BASIS, */
+/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */
+/* implied. See the License for the specific language governing */
+/* permissions and limitations under the License. */
+/* */
+/* IBM_PROLOG_END_TAG */
+//-----------------------------------------------------------------------------------
+//
+/// @file p9_tod_init.H
+/// @brief Procedures to initialize the TOD to 'running' state
+///
+// *HWP HWP Owner: Christina Graves clgraves@us.ibm.com
+// *HWP FW Owner: Thi Tran thi@us.ibm.com
+// *HWP Team: Nest
+// *HWP Level: 1
+// *HWP Consumed by:
+// ----------------------------------------------------------------------------------
+//
+// *! ADDITIONAL COMMENTS :
+// *!
+// *!
+// *!
+//-----------------------------------------------------------------------------------
+
+#ifndef _P9_TOD_INIT_H_
+#define _P9_TOD_INIT_H_
+
+//-----------------------------------------------------------------------------------
+// Includes
+//-----------------------------------------------------------------------------------
+
+#include <fapi2.H>
+#include "p9_tod_utils.H"
+
+//-----------------------------------------------------------------------------------
+// Structure definitions
+//-----------------------------------------------------------------------------------
+
+//function pointer typedef definition for HWP call support
+typedef fapi2::ReturnCode
+(*p9_tod_init_FP_t) (const tod_topology_node*,
+ fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>* );
+
+//-----------------------------------------------------------------------------------
+// Constant definitions
+//-----------------------------------------------------------------------------------
+
+extern "C" {
+
+//-----------------------------------------------------------------------------------
+// Function prototype
+//-----------------------------------------------------------------------------------
+
+/// @brief Initialized the TOD to 'running' state
+/// @param[in] i_tod_node => Reference to TOD topology (FAPI targets are included in this)
+/// @param[in] i_failingTodProc => Pointer to the fapi target, the memory location addressed by this parameter will be populated with processor target which is not able ot receive proper signals from OSC. Caller needs to look at this parameter only when p9_tod_init fail and reason code indicated OSC failure. Defaulted to NULL.
+/// @return FAPI_RC_SUCCESS if TOD topology is successfully initialized else FAPI or ECMD error is sent through
+ fapi2::ReturnCode p9_tod_init(
+ const tod_topology_node* i_tod_node,
+ fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>* i_target = NULL);
+
+} //extern "C"
+
+#endif //_P9_TOD_INIT_H_
+
diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_tod_init.mk b/src/import/chips/p9/procedures/hwp/nest/p9_tod_init.mk
new file mode 100644
index 000000000..92761e66c
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/nest/p9_tod_init.mk
@@ -0,0 +1,28 @@
+# IBM_PROLOG_BEGIN_TAG
+# This is an automatically generated prolog.
+#
+# $Source: src/import/chips/p9/procedures/hwp/nest/p9_tod_init.mk $
+#
+# OpenPOWER HostBoot Project
+#
+# Contributors Listed Below - COPYRIGHT 2015,2016
+# [+] 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.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied. See the License for the specific language governing
+# permissions and limitations under the License.
+#
+# IBM_PROLOG_END_TAG
+PROCEDURE=p9_tod_init
+OBJS+=p9_tod_utils.o
+$(call BUILD_PROCEDURE)
+
OpenPOWER on IntegriCloud