summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/lib/p9_common_poweronoff.H
diff options
context:
space:
mode:
authorYue Du <daviddu@us.ibm.com>2015-09-28 13:41:48 -0500
committerChristian R. Geddes <crgeddes@us.ibm.com>2017-02-10 18:39:33 -0500
commite8e8287ce9d90a4858646b14d9cb67a82340b8ea (patch)
tree3fd4d9ab67ec3356d2221a664919ac8da35ef882 /src/import/chips/p9/procedures/hwp/lib/p9_common_poweronoff.H
parent38567a555ba1164faf230573c2d508864de2ca82 (diff)
downloadtalos-hostboot-e8e8287ce9d90a4858646b14d9cb67a82340b8ea.tar.gz
talos-hostboot-e8e8287ce9d90a4858646b14d9cb67a82340b8ea.zip
PPE-HWP: [Level 2] Cache/Core chiplet_reset/init/scan0+startclocks
Change-Id: I342d04700955ff99ddc1b027a53850972b5445a0 Original-Change-Id: Idb0cddd12c06b5662757f02c5d28fe6dd1c9b03c Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20827 Tested-by: Jenkins Server Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36090 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/lib/p9_common_poweronoff.H')
-rw-r--r--src/import/chips/p9/procedures/hwp/lib/p9_common_poweronoff.H85
1 files changed, 85 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/lib/p9_common_poweronoff.H b/src/import/chips/p9/procedures/hwp/lib/p9_common_poweronoff.H
new file mode 100644
index 000000000..f5f1daa55
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/lib/p9_common_poweronoff.H
@@ -0,0 +1,85 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/import/chips/p9/procedures/hwp/lib/p9_common_poweronoff.H $ */
+/* */
+/* OpenPOWER HostBoot Project */
+/* */
+/* Contributors Listed Below - COPYRIGHT 2015,2017 */
+/* [+] 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_common_poweronoff.H
+/// @brief common procedure for power on/off
+///
+/// *HWP HWP Owner : David Du <daviddu@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 Consumed by : SBE:SGPE:CME
+/// *HWP Level : 2
+///
+
+#ifndef __P9_COMMON_POWERONOFF_H__
+#define __P9_COMMON_POWERONOFF_H__
+
+namespace p9power
+{
+enum powerOperation_t
+{
+ POWER_ON = 0x0,
+ POWER_OFF = 0xFF,
+ POWER_ON_VDD = 0x1,
+ POWER_OFF_VDD = 0xFE
+};
+}
+
+// Define only address offset to be compatible with both core and cache domain
+#define PPM_PFCS 0x000f0118
+#define PPM_PFCS_CLR 0x000f0119
+#define PPM_PFCS_OR 0x000f011a
+#define PPM_PFDLY 0x000f011b
+#define PPM_PFSNS 0x000f011c
+#define PPM_PFOFF 0x000f011d
+
+/// @typedef p9_common_poweronoff_FP_t
+/// function pointer typedef definition for HWP call support
+typedef fapi2::ReturnCode (*p9_common_poweronoff_FP_t) (
+ const fapi2::Target < fapi2::TARGET_TYPE_EQ |
+ fapi2::TARGET_TYPE_CORE > &,
+ const p9power::powerOperation_t i_operation);
+
+extern "C"
+{
+/// @brief common procedure for power on/off
+///
+/// @param [in] i_target TARGET_TYPE_EQ|TARGET_TYPE_CORE target
+/// @param [in] i_operation ENUM(ON,OFF)
+///
+/// @attr
+/// @attritem ATTR_PFET_TIMING - EX target, uint32
+///
+/// @retval FAPI_RC_SUCCESS
+ fapi2::ReturnCode
+ p9_common_poweronoff(
+ const fapi2::Target < fapi2::TARGET_TYPE_EQ |
+ fapi2::TARGET_TYPE_CORE > & i_target,
+ const p9power::powerOperation_t i_operation);
+
+} // extern C
+
+#endif // __P9_COMMON_POWERONOFF_H__
OpenPOWER on IntegriCloud