diff options
author | Rahul Batra <rbatra@us.ibm.com> | 2017-05-18 08:52:53 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-06-15 17:07:24 -0400 |
commit | 9a286345e12624631dfbe7b5eb763b587f66b6e4 (patch) | |
tree | ce15b14186faea7f946e97842256292ed6fc6fe0 /src/import/chips/p9/procedures/hwp/lib/p9_pm_hcd_flags.h | |
parent | 24e1a2686614205b727072d20aaa81d24aa5f4ca (diff) | |
download | talos-hostboot-9a286345e12624631dfbe7b5eb763b587f66b6e4.tar.gz talos-hostboot-9a286345e12624631dfbe7b5eb763b587f66b6e4.zip |
PSTATE: CME refactoring and cleanup
Change-Id: I03cc2316da7b997c467ece0412a5212e38718318
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40823
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com>
Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41369
Tested-by: Jenkins OP Build CI <op-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/lib/p9_pm_hcd_flags.h')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/lib/p9_pm_hcd_flags.h | 93 |
1 files changed, 37 insertions, 56 deletions
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 index 44b50df67..29a3333d6 100644 --- 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 @@ -98,42 +98,6 @@ typedef union occ_flags } 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 pgpe_flags { uint16_t value; @@ -173,26 +137,6 @@ typedef union pgpe_flags } fields; } pgpe_flags_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 @@ -222,6 +166,7 @@ enum PM_GPE_OCCFLG_DEFS REQUESTED_ACTIVE_QUAD_UPDATE = 30, REQUEST_OCC_SAFE_STATE = 31 }; + // //Enum form of OCC SCRATCH2. // @@ -237,6 +182,42 @@ enum PM_GPE_OCC_SCRATCH2_DEFS L3_CONTAINED_MODE = 11 }; +// +//Enum form of CME_FLAGS +// +enum PM_CME_FLAGS_DEFS +{ + CME_FLAGS_STOP_READY = 0, + CME_FLAGS_PMCR_READY = 1, + CME_FLAGS_QMGR_READY = 2, + CME_FLAGS_QMGR_MASTER = 3, + CME_FLAGS_RCLK_OPERABLE = 4, + CME_FLAGS_IVRM_OPERABLE = 5, + CME_FLAGS_VDM_OPERABLE = 6, + CME_FLAGS_OCC_HB_SAFE_MODE = 7, + CME_FLAGS_BLOCK_WKUP_C0 = 8, + CME_FLAGS_BLOCK_WKUP_C1 = 9, + CME_FLAGS_PSTATES_ENABLED = 24, + CME_FLAGS_FREQ_UPDT_DISABLE = 25, + CME_FLAGS_EX_ID = 26, + CME_FLAGS_SIBLING_FUNCTIONAL = 27, + CME_FLAGS_STOP_ENTRY_FIRST_C0 = 28, + CME_FLAGS_STOP_ENTRY_FIRST_C1 = 29, + CME_FLAGS_CORE0_GOOD = 30, + CME_FLAGS_CORE1_GOOD = 31 +}; + +// +//Enum form of CME_SCRATCH_ +// +enum PM_CME_SCRATCH_DEFS +{ + CME_SCRATCH_LOCAL_PSTATE_IDX_START = 26, + CME_SCRATCH_LOCAL_PSTATE_IDX_LENGTH = 6 +}; + + + #ifndef __PPE_PLAT } //End p9hcd namespace #endif |