summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp
diff options
context:
space:
mode:
authorRahul Batra <rbatra@us.ibm.com>2016-11-15 12:36:10 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-12-05 18:30:13 -0500
commite1d67d56f0dc236f836d0b4942e7c70a50bf4770 (patch)
tree5a3552e54e6730a712e323c6ddc6cacb6d6edb18 /src/import/chips/p9/procedures/hwp
parent7a9f170607ebb0414676146b922bc0dc0780556b (diff)
downloadtalos-hostboot-e1d67d56f0dc236f836d0b4942e7c70a50bf4770.tar.gz
talos-hostboot-e1d67d56f0dc236f836d0b4942e7c70a50bf4770.zip
OCC Flags/OCC Scratch Updates
Change-Id: I21020ebf7dfe39dd48e2d2727607dd35297831d7 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32695 Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: AMIT KUMAR <akumar3@us.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/32711 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/lib/p9_hcd_common.H6
-rw-r--r--src/import/chips/p9/procedures/hwp/lib/p9_pm_hcd_flags.h205
-rw-r--r--src/import/chips/p9/procedures/hwp/pm/p9_pm_stop_gpe_init.C1
3 files changed, 206 insertions, 6 deletions
diff --git a/src/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H b/src/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H
index 28c027f14..3fbe4d73f 100644
--- a/src/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H
+++ b/src/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H
@@ -229,12 +229,6 @@ enum P9_HCD_SCAN0_CONSTANTS
SCAN0_TYPE_ALL_BUT_GPTR_REPR_TIME = 0xDCF
};
-//OCC FLag defines
-enum PM_GPE_OCCFLG_DEFS
-{
- SGPE_ACTIVE = 8
-};
-
// XSR defines
enum XSR_DEFS
{
diff --git a/src/import/chips/p9/procedures/hwp/lib/p9_pm_hcd_flags.h b/src/import/chips/p9/procedures/hwp/lib/p9_pm_hcd_flags.h
new file mode 100644
index 000000000..f1760cc6c
--- /dev/null
+++ b/src/import/chips/p9/procedures/hwp/lib/p9_pm_hcd_flags.h
@@ -0,0 +1,205 @@
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/import/chips/p9/procedures/hwp/lib/p9_pm_hcd_flags.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_pm_hcode_flags.h
+/// @brief Hocde defined flag register structures
+///
+// *HWP HWP Owner: Amit Kumar <akumar3@us.ibm.com>
+// *HWP Backup HWP Owner: Greg Still <stillgs@us.ibm.com>
+// *HWP FW Owner: Bilicon Patil <bilpatil@in.ibm.com>
+// *HWP Team: PM
+// *HWP Level: 1
+// *HWP Consumed by: FSP:HS:HCD
+///
+///-----------------------------------------------------------------------------
+
+#ifndef _P9_PM_HCDFLAGS_H_
+#define _P9_PM_HCDFLAGS_H_
+
+//OCC FLag defines
+typedef union occ_flags
+{
+ uint32_t value;
+ struct
+ {
+#ifdef _BIG_ENDIAN
+ uint16_t high_order;
+ uint16_t low_order;
+#else
+ uint16_t low_order;
+ uint16_t high_order;
+#endif // _BIG_ENDIAN
+ } halfwords;
+ struct
+ {
+#ifdef _BIG_ENDIAN
+ uint32_t pgpe_StartNonStop : 1;
+ uint32_t pgpe_PStateProtocolActivate : 1;
+ uint32_t pgpe_PStateSafeMode : 1;
+ uint32_t pm_ComplexSuspend : 1;
+ uint32_t reserved1 : 4;
+ uint32_t sgpe_Active : 1;
+ uint32_t sgpe_IgnoreStopExits : 1;
+ uint32_t sgpe_IgnoreStopEntry : 1;
+ uint32_t sgpe_StopExitsIgnored : 1;
+ uint32_t sgpe_StopEntryIgnored : 1;
+ uint32_t reserved2 : 1;
+ uint32_t sgpe_24x7_Activate : 1;
+ uint32_t sgpe_24x7_Active : 1;
+ uint32_t pib_I2CMasterEngine1Lock : 2;
+ uint32_t pib_I2CMasterEngine2Lock : 2;
+ uint32_t pib_I2CMasterEngine3Lock : 2;
+ uint32_t undefined : 8;
+ uint32_t requested_ActiveQuadUpdate : 1;
+ uint32_t requested_OccSafeState : 1;
+#else
+ uint32_t requested_OccSafeState : 1;
+ uint32_t requested_ActiveQuadUpdate : 1;
+ uint32_t undefined : 8;
+ uint32_t pib_I2CMasterEngine3Lock : 2;
+ uint32_t pib_I2CMasterEngine2Lock : 2;
+ uint32_t pib_I2CMasterEngine1Lock : 2;
+ uint32_t sgpe_24x7_Active : 1;
+ uint32_t sgpe_24x7_Activate : 1;
+ uint32_t reserved2 : 1;
+ uint32_t sgpe_StopEntryIgnored : 1;
+ uint32_t sgpe_StopExitsIgnored : 1;
+ uint32_t sgpe_IgnoreStopEntry : 1;
+ uint32_t sgpe_IgnoreStopExits : 1;
+ uint32_t sgpe_Active : 1;
+ uint32_t reserved1 : 4;
+ uint32_t pm_ComplexSuspend : 1;
+ uint32_t pgpe_PStateSafeMode : 1;
+ uint32_t pgpe_PStateProtocolActivate : 1;
+ uint32_t pgpe_StartNonStop : 1;
+#endif // _BIG_ENDIAN
+ } fields;
+} occ_flags_t;
+
+
+
+//
+//OCC SCRATCH2 defines
+//
+typedef union occ_scratch2
+{
+ uint32_t value;
+ struct
+ {
+#ifdef _BIG_ENDIAN
+ uint32_t pgpe_active : 1;
+ uint32_t pgpe_pstate_protocol_active : 1;
+ uint32_t pgpe_safe_mode : 1;
+ uint32_t pm_complex_suspended : 1;
+ uint32_t reserved0 : 4;
+ uint32_t sgpe_debug_trap_enable : 1;
+ uint32_t cme_debug_trap_enable : 1;
+ uint32_t pgpe_debug_trap_enable : 1;
+ uint32_t l3_contained_mode : 1;
+ uint32_t reserved1 : 20;
+#else
+ uint32_t reserved1 : 20;
+ uint32_t l3_contained_mode : 1;
+ uint32_t pgpe_debug_trap_enable : 1;
+ uint32_t cme_debug_trap_enable : 1;
+ uint32_t sgpe_debug_trap_enable : 1;
+ uint32_t reserved0 : 4;
+ uint32_t pm_complex_suspended : 1;
+ uint32_t pgpe_safe_mode : 1;
+ uint32_t pgpe_pstate_protocol_active : 1;
+ uint32_t pgpe_active : 1;
+#endif
+ } fields;
+} occ_scratch2_t;
+
+typedef union cme_flags
+{
+ uint32_t value;
+ struct
+ {
+ uint32_t stop_ready : 1;
+ uint32_t PStatePMCRReady : 1;
+ uint32_t PStateQuadMgrReady : 1;
+ uint32_t PStateQuadMgrMaster : 1;
+ uint32_t ResonantClockOperable : 1;
+ uint32_t iVRMsOperable : 1;
+ uint32_t VDMsOperable : 1;
+ uint32_t OCCHBSafeModeEngaged : 1;
+ uint32_t reserved_8_27 : 20;
+ uint32_t STOPEntryFirst0 : 1;
+ uint32_t STOPEntryFirst1 : 1;
+ uint32_t Core0Good : 1;
+ uint32_t Core1Good : 1;
+ } fields;
+} cme_flags_t;
+
+#ifndef __PPE_PLAT
+namespace p9hcd
+{
+#endif
+
+//Enum form of OCC FLAGs.
+enum PM_GPE_OCCFLG_DEFS
+{
+ PGPE_START_NOT_STOP = 0,
+ PGPE_PSTATE_PROTOCOL_ACTIVATE = 1,
+ PGPE_SAFE_MODE = 2,
+ PM_COMPLEX_SUSPEND = 3,
+ SGPE_ACTIVE = 8,
+ SGPE_IGNORE_STOP_EXITS = 9,
+ SGPE_IGNORE_STOP_ENTRY = 10,
+ SGPE_STOP_EXITS_IGNORED = 11,
+ SGPE_STOP_ENTRIES_IGNORED = 12,
+ SGPE_24_7_ACTIVATE = 14,
+ SGPE_24_7_ACTIVE = 15,
+ PIB_I2C_MASTER_ENGINE_1_LOCK_BIT0 = 16, //BIT0 ored BIT1 gives the field
+ PIB_I2C_MASTER_ENGINE_1_LOCK_BIT1 = 17, //BIT0 ored BIT1 gives the field
+ PIB_I2C_MASTER_ENGINE_2_LOCK_BIT0 = 18, //BIT0 ored BIT1 gives the field
+ PIB_I2C_MASTER_ENGINE_2_LOCK_BIT1 = 19, //BIT0 ored BIT1 gives the field
+ PIB_I2C_MASTER_ENGINE_3_LOCK_BIT0 = 20, //BIT0 ored BIT1 gives the field
+ PIB_I2C_MASTER_ENGINE_3_LOCK_BIT1 = 21, //BIT0 ored BIT1 gives the field
+ REQUESTED_ACTIVE_QUAD_UPDATE = 30,
+ REQUEST_OCC_SAFE_STATE = 31
+};
+//
+//Enum form of OCC SCRATCH2.
+//
+enum PM_GPE_OCC_SCRATCH2_DEFS
+{
+ PGPE_ACTIVE = 0,
+ PGPE_PSTATE_PROTOCOL_ACTIVE = 1,
+ PGPE_SAFE_MODE_ACTIVE = 2,
+ PM_COMPLEX_SUSPENDED = 3,
+ SPGE_DEBUG_TRAP_ENABLE = 8,
+ CME_DEBUG_TRAP_ENABLE = 9,
+ PGPE_DEBUG_TRAP_ENABLE = 10,
+ L3_CONTAINED_MODE = 11
+};
+
+#ifndef __PPE_PLAT
+} //End p9hcd namespace
+#endif
+
+#endif // _P9_PM_HCDFLAGS_H_
diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_pm_stop_gpe_init.C b/src/import/chips/p9/procedures/hwp/pm/p9_pm_stop_gpe_init.C
index cd96c993e..5474f0b77 100644
--- a/src/import/chips/p9/procedures/hwp/pm/p9_pm_stop_gpe_init.C
+++ b/src/import/chips/p9/procedures/hwp/pm/p9_pm_stop_gpe_init.C
@@ -60,6 +60,7 @@
#include <p9_pm_stop_gpe_init.H>
#include <p9_pm_pba_init.H>
#include <p9_pm_pfet_init.H>
+#include <p9_pm_hcd_flags.h>
//#include <p9_ppe_state.H> @todo RTC 147996 to incorporate PPE state removing strings.
OpenPOWER on IntegriCloud