summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYue Du <daviddu@us.ibm.com>2016-06-24 23:58:31 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-02-27 11:36:48 -0500
commit48a316361efa79e57e7e0871827f8365515822bd (patch)
treeb89f1f8a69606a63defaac7af32cff15e50c4a09 /src
parentf04d1d5e551f2f2120716a53692bb6aac4482c94 (diff)
downloadtalos-hostboot-48a316361efa79e57e7e0871827f8365515822bd.tar.gz
talos-hostboot-48a316361efa79e57e7e0871827f8365515822bd.zip
CORE/CACHE: add Level1 cache/l2/core stopclocks procedures
Change-Id: Ia7cc6279daebbbbde16da123f3a6a661c810437c Original-Change-Id: Id407ffa51ea9a7fb9a0056a7faaf1e33e4433e50 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26276 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Soma Bhanutej <soma.bhanu@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/37036 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H35
1 files changed, 25 insertions, 10 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 a70958b7d..0f4f54a4e 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
@@ -139,41 +139,56 @@ enum P9_HCD_DELAY_CONSTANTS
CLK_PERIOD_CORE2REF = 40
};
-// FAPI2 Target Constants
-enum P9_HCD_TARGET_CONSTANTS
+// Chip Position Constants
+enum P9_HCD_CHIP_POS_CONSTANTS
{
PERV_TO_EQ_POS_OFFSET = 0x10,
PERV_TO_CORE_POS_OFFSET = 0x20
};
-// Multicast Group Constants
-enum P9_HCD_MULTICAST_GROUP_CONSTANTS
+// EX Constants
+enum P9_HCD_EX_CTRL_CONSTANTS
{
- MULTICAST_GROUP_4 = 4, // QUAD
- MULTICAST_GROUP_5 = 5, // EX0
- MULTICAST_GROUP_6 = 6, // EX1
+ ODD_EX = 1,
+ EVEN_EX = 2,
+ BOTH_EX = 3,
QCSR_MASK_EX0 = (BIT64(0) | BIT64(2) | BIT64(4) |
BIT64(6) | BIT64(8) | BIT64(10)),
QCSR_MASK_EX1 = (BIT64(1) | BIT64(3) | BIT64(5) |
BIT64(7) | BIT64(9) | BIT64(11))
};
+// Multicast Constants
+enum P9_HCD_MULTICAST_CONSTANTS
+{
+ MULTICAST_GROUP_4 = 4, // QUAD
+ MULTICAST_GROUP_5 = 5, // EX0
+ MULTICAST_GROUP_6 = 6 // EX1
+};
+
// Clock Control Constants
-enum P9_HCD_COMMON_CLK_CTRL_CONSTANTS
+enum P9_HCD_CLK_CTRL_CONSTANTS
{
CLK_STOP_CMD = BIT64(0),
CLK_START_CMD = BIT64(1),
CLK_REGION_ANEP = BIT64(10),
CLK_REGION_DPLL = BIT64(14),
- CLK_REGION_ALL_BUT_EX_ANEP_DPLL = BITS64(4, 2) | BIT64(11),
+ CLK_REGION_REFR = BITS64(12, 2),
+ CLK_REGION_L3_REFR = BITS64(6, 2) | BITS64(12, 2),
CLK_REGION_EX0_L2_L3_REFR = BIT64(6) | BIT64(8) | BIT64(12),
CLK_REGION_EX1_L2_L3_REFR = BIT64(7) | BIT64(9) | BIT64(13),
+ CLK_REGION_ALL_BUT_L3_REFR = BITS64(4, 2) | BITS64(8, 4) | BIT64(14),
+ CLK_REGION_ALL_BUT_L3_REFR_DPLL = BITS64(4, 2) | BITS64(8, 4),
+ CLK_REGION_ALL_BUT_EX = BITS64(4, 2) | BITS64(10, 2) | BIT64(14),
+ CLK_REGION_ALL_BUT_EX_DPLL = BITS64(4, 2) | BITS64(10, 2),
+ CLK_REGION_ALL_BUT_EX_ANEP_DPLL = BITS64(4, 2) | BIT64(11),
CLK_REGION_ALL_BUT_PLL = BITS64(4, 10),
+ CLK_REGION_ALL = BITS64(4, 11),
CLK_THOLD_ALL = BITS64(48, 3)
};
// Scan Flush Constants
-enum P9_HCD_COMMON_SCAN0_CONSTANTS
+enum P9_HCD_SCAN0_CONSTANTS
{
SCAN0_REGION_ALL = 0x7FF,
SCAN0_REGION_ALL_BUT_PLL = 0x7FE,
OpenPOWER on IntegriCloud