summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp
diff options
context:
space:
mode:
authorGreg Still <stillgs@us.ibm.com>2016-05-01 20:30:22 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-08-01 11:58:01 -0400
commit31f3e3f8be3f279f564a777414d8080666aeb3cf (patch)
treec02a8c6f46210d18a9a048abfe2a47164b7ef09f /src/import/chips/p9/procedures/hwp
parent47845536df2e76c019b1289fd72d443498b9c102 (diff)
downloadtalos-hostboot-31f3e3f8be3f279f564a777414d8080666aeb3cf.tar.gz
talos-hostboot-31f3e3f8be3f279f564a777414d8080666aeb3cf.zip
p9_quad_power_off.C Level 1
Change-Id: I297ca5f13a91a5f4d2b3220c3c8d715e80f01a7d RTC: 148918 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23918 Tested-by: Jenkins Server Reviewed-by: Sangeetha T S <sangeet2@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27585 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/import/chips/p9/procedures/hwp')
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C60
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.H72
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.mk20
3 files changed, 152 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C b/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C
new file mode 100644
index 000000000..76eb2f11d
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.C
@@ -0,0 +1,60 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: chips/p9/procedures/hwp/pm/p9_quad_power_off.C $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* EKB Project */
+/* */
+/* COPYRIGHT 2015,2016 */
+/* [+] 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_quad_power_off.C
+/// @brief Power off the EQ -- including the functional cores associatated
+/// with it.
+///
+// *HWP HWP Owner: Amit Kumar <akumar3@us.ibm.com>
+// *HWP HWP Backup Owner: Greg Still <stillgs@us.ibm.com>
+// *HWP FW Owner: Sangeetha T S <sangeet2@in.ibm.com>
+// *HWP Team: PM
+// *HWP Level: 1
+// *HWP Consumed by: FSP:HS
+///
+/// @verbatim
+/// High-level procedure flow:
+/// - for each good EC associated with the targeted EQ, power it off
+/// - power off the EQ
+/// @endverbatim
+///
+//------------------------------------------------------------------------------
+
+
+// ----------------------------------------------------------------------
+// Includes
+// ----------------------------------------------------------------------
+
+#include <p9_quad_power_off.H>
+
+// ----------------------------------------------------------------------
+// Procedure Function
+// ----------------------------------------------------------------------
+
+fapi2::ReturnCode
+p9_quad_power_off(
+ const fapi2::Target<fapi2::TARGET_TYPE_EQ>& i_eq_target)
+{
+ FAPI_INF("> p9_quad_power_off...");
+
+
+//fapi_try_exit:
+ FAPI_INF("< p9_quad_power_off...");
+ return fapi2::current_err;
+}
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.H b/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.H
new file mode 100644
index 000000000..3f22f391f
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.H
@@ -0,0 +1,72 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: chips/p9/procedures/hwp/pm/p9_quad_power_off.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* EKB Project */
+/* */
+/* COPYRIGHT 2015,2016 */
+/* [+] 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_block_wakeup_intr.H
+/// @brief Set/reset the BLOCK_REG_WKUP_SOURCES bit in the PPM
+/// associated with an EX chiplet
+///
+// *HWP HWP Owner: Amit Kumar <akumar3@us.ibm.com>
+// *HWP Backup HWP Owner: Greg Still <stillgs@us.ibm.com>
+// *HWP FW Owner: Sangeetha T S <sangeet2@in.ibm.com>
+// *HWP Team: PM
+// *HWP Level: 1
+// *HWP Consumed by: FSP:HS
+///
+///-----------------------------------------------------------------------------
+
+#ifndef _P9_QUADPOWEROFF_H_
+#define _P9_QUADPOWEROFF_H_
+
+//------------------------------------------------------------------------------
+// Includes
+//------------------------------------------------------------------------------
+
+#include <fapi2.H>
+#include <p9_quad_scom_addresses.H>
+#include <p9_quad_scom_addresses_fld.H>
+
+//------------------------------------------------------------------------------
+// Constant definitions
+//------------------------------------------------------------------------------
+
+// function pointer typedef definition for HWP call support
+typedef fapi2::ReturnCode (*p9_quad_power_off_FP_t) (
+ const fapi2::Target<fapi2::TARGET_TYPE_EQ>&);
+
+extern "C"
+{
+
+//------------------------------------------------------------------------------
+// Function prototype
+//------------------------------------------------------------------------------
+
+/// @brief Power off the EQ -- including the functional cores associatated
+/// with it.
+///
+/// @param[in] i_eq_target EQ target
+///
+/// @return FAPI2_RC_SUCCESS if success, else error code.
+
+ fapi2::ReturnCode
+ p9_quad_power_off(
+ const fapi2::Target<fapi2::TARGET_TYPE_CORE>& i_core_target);
+
+} // extern "C"
+
+#endif // _P9_QUADPOWEROFF_H_
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.mk b/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.mk
new file mode 100644
index 000000000..df09c95d9
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_quad_power_off.mk
@@ -0,0 +1,20 @@
+# IBM_PROLOG_BEGIN_TAG
+# This is an automatically generated prolog.
+#
+# $Source: chips/p9/procedures/hwp/pm/p9_quad_power_off.mk $
+#
+# IBM CONFIDENTIAL
+#
+# EKB Project
+#
+# COPYRIGHT 2015,2016
+# [+] 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_quad_power_off
+$(call BUILD_PROCEDURE)
OpenPOWER on IntegriCloud