summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Steffen <cwsteffen@us.ibm.com>2015-11-02 11:18:49 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-03-10 17:50:57 -0500
commit2dc8619a34e7c20d5663f6fade758e99ca9d76f6 (patch)
treee1896dab376ab2c8e356dc02348068f04243a3af
parent2e545b4367cb079b223d01426ebcb81e0a533773 (diff)
downloadtalos-hostboot-2dc8619a34e7c20d5663f6fade758e99ca9d76f6.tar.gz
talos-hostboot-2dc8619a34e7c20d5663f6fade758e99ca9d76f6.zip
p9_io_xbus_post_trainadv Level 1
Change-Id: I50fc82f6ffb90334b3f03f638a32b5d9b4b45b36 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21673 Tested-by: Jenkins Server Reviewed-by: Gary A. Peterson <garyp@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/21904 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
-rw-r--r--src/import/chips/p9/procedures/hwp/io/p9_io_xbus_post_trainadv.C72
-rw-r--r--src/import/chips/p9/procedures/hwp/io/p9_io_xbus_post_trainadv.H68
-rw-r--r--src/import/chips/p9/procedures/hwp/io/p9_io_xbus_post_trainadv.mk20
3 files changed, 160 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/io/p9_io_xbus_post_trainadv.C b/src/import/chips/p9/procedures/hwp/io/p9_io_xbus_post_trainadv.C
new file mode 100644
index 000000000..f55148c37
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/io/p9_io_xbus_post_trainadv.C
@@ -0,0 +1,72 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: chips/p9/procedures/ipl/hwp/p9_io_xbus_post_trainadv.C $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* EKB Project */
+/* */
+/* COPYRIGHT 2015 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* IBM_PROLOG_END_TAG */
+///
+/// @file p9_io_xbus_post_trainadv.H
+/// @brief Post-Training PHY Status Function.
+///
+///-----------------------------------------------------------------------------
+/// *HWP HWP Owner : Chris Steffen <cwsteffen@us.ibm.com>
+/// *HWP HWP Backup Owner : Gary Peterson <garyp@us.ibm.com>
+/// *HWP FW Owner : Jamie Knight <rjknight@us.ibm.com>
+/// *HWP Team : IO
+/// *HWP Level : 1
+/// *HWP Consumed by : FSP:HB
+///-----------------------------------------------------------------------------
+///
+/// @verbatim
+/// High-level procedure flow:
+///
+/// Post-Training PHY Status Function.
+///
+/// Procedure Prereq:
+/// - System clocks are running.
+/// - Scominit Procedure is completed.
+/// - IO DCCAL Procedure is completed.
+/// - IO Run Training Procedure is completed.
+/// @endverbatim
+///----------------------------------------------------------------------------
+
+
+// ----------------------------------------------------------------------------
+// Includes
+// ----------------------------------------------------------------------------
+
+#include "p9_io_xbus_post_trainadv.H"
+
+// ----------------------------------------------------------------------------
+// Procedure Function
+// ----------------------------------------------------------------------------
+
+/**
+ * @brief A simple HWP that runs after io_run_trainig.
+ * This function is called on every Xbus.
+ * @param[in] i_target Reference to Target
+ * @retval ReturnCode
+ */
+fapi2::ReturnCode
+p9_io_xbus_post_trainadv(const fapi2::Target < fapi2::TARGET_TYPE_XBUS >& i_target)
+{
+ fapi2::ReturnCode rc = 0;
+#if 0
+
+
+#endif
+ return rc;
+}
+
diff --git a/src/import/chips/p9/procedures/hwp/io/p9_io_xbus_post_trainadv.H b/src/import/chips/p9/procedures/hwp/io/p9_io_xbus_post_trainadv.H
new file mode 100644
index 000000000..b6f71e8a4
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/io/p9_io_xbus_post_trainadv.H
@@ -0,0 +1,68 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: chips/p9/procedures/ipl/hwp/p9_io_xbus_post_trainadv.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* EKB Project */
+/* */
+/* COPYRIGHT 2015 */
+/* [+] International Business Machines Corp. */
+/* */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* IBM_PROLOG_END_TAG */
+///
+/// @file p9_io_xbus_post_trainadv.H
+/// @brief Post-Training PHY Status Function.
+///
+///-----------------------------------------------------------------------------
+/// *HWP HWP Owner : Chris Steffen <cwsteffen@us.ibm.com>
+/// *HWP HWP Backup Owner : Gary Peterson <garyp@us.ibm.com>
+/// *HWP FW Owner : Jamie Knight <rjknight@us.ibm.com>
+/// *HWP Team : IO
+/// *HWP Level : 1
+/// *HWP Consumed by : FSP:HB
+///-----------------------------------------------------------------------------
+
+#ifndef _P9_IO_XBUS_POST_TRAINADV_H_
+#define _P9_IO_XBUS_POST_TRAINADV_H_
+
+// ----------------------------------------------------------------------------
+// Includes
+// ----------------------------------------------------------------------------
+#include <fapi2.H>
+
+//-----------------------------------------------------------------------------
+// Structure definitions
+//-----------------------------------------------------------------------------
+
+// function pointer typedef definition for HWP call support
+typedef fapi2::ReturnCode (*p9_io_xbus_post_trainadv_FP_t)
+(const fapi2::Target < fapi2::TARGET_TYPE_XBUS >&);
+
+// ----------------------------------------------------------------------------
+// Constant Definitions
+// ----------------------------------------------------------------------------
+
+// ----------------------------------------------------------------------------
+// Function Protoypes
+// ----------------------------------------------------------------------------
+extern "C" {
+
+ /**
+ * @brief A simple HWP that runs after io_run_trainig.
+ * This function is called on every Xbus.
+ * @param[in] iTarget Reference to Target
+ * @retval ReturnCode
+ */
+ fapi2::ReturnCode
+ p9_io_xbus_post_trainadv(const fapi2::Target< fapi2::TARGET_TYPE_XBUS >& i_target);
+
+} // extern "C"
+
+#endif // _P9_IO_XBUS_POST_TRAINADV_H_
diff --git a/src/import/chips/p9/procedures/hwp/io/p9_io_xbus_post_trainadv.mk b/src/import/chips/p9/procedures/hwp/io/p9_io_xbus_post_trainadv.mk
new file mode 100644
index 000000000..e05fd212e
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/io/p9_io_xbus_post_trainadv.mk
@@ -0,0 +1,20 @@
+# IBM_PROLOG_BEGIN_TAG
+# This is an automatically generated prolog.
+#
+# $Source: chips/p9/procedures/ipl/hwp/p9_io_xbus_post_trainadv.mk $
+#
+# IBM CONFIDENTIAL
+#
+# EKB Project
+#
+# COPYRIGHT 2015
+# [+] International Business Machines Corp.
+#
+#
+# The source code for this program is not published or otherwise
+# divested of its trade secrets, irrespective of what has been
+# deposited with the U.S. Copyright Office.
+#
+# IBM_PROLOG_END_TAG
+PROCEDURE=p9_io_xbus_post_trainadv
+$(call BUILD_PROCEDURE)
OpenPOWER on IntegriCloud