From f8194dc833c0ceb726f2ff5082ad8759c8a47754 Mon Sep 17 00:00:00 2001 From: Soma BhanuTej Date: Mon, 16 Jan 2017 11:21:06 -0500 Subject: Synchronous stopclk procedure for Quad Change-Id: Id31daf8c02b74d979927540346a3cef5f88768be RTC: 175615 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34935 Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: YUE DU Reviewed-by: SRINIVAS V. POLISETTY Reviewed-by: Joachim Fenkes Reviewed-by: RAJA DAS Dev-Ready: Soma Bhanutej Reviewed-by: Jennifer A. Stofer --- import/chips/p9/common/include/p9_const_common.H | 35 +++++++++++----------- import/chips/p9/procedures/hwp/lib/p9_hcd_common.H | 2 ++ 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/import/chips/p9/common/include/p9_const_common.H b/import/chips/p9/common/include/p9_const_common.H index 899bf392..ea827a97 100644 --- a/import/chips/p9/common/include/p9_const_common.H +++ b/import/chips/p9/common/include/p9_const_common.H @@ -78,24 +78,25 @@ struct has_fixfld static const uint8_t value = 255; }; -const uint32_t N0_CHIPLET_ID = 2; -const uint32_t N1_CHIPLET_ID = 3; -const uint32_t N2_CHIPLET_ID = 4; -const uint32_t N3_CHIPLET_ID = 5; -const uint32_t XB_CHIPLET_ID = 6; -const uint32_t MC01_CHIPLET_ID = 7; -const uint32_t MC23_CHIPLET_ID = 8; -const uint32_t OB0_CHIPLET_ID = 9; -const uint32_t OB1_CHIPLET_ID = 10; -const uint32_t OB2_CHIPLET_ID = 11; -const uint32_t OB3_CHIPLET_ID = 12; -const uint32_t PCI0_CHIPLET_ID = 13; -const uint32_t PCI1_CHIPLET_ID = 14; -const uint32_t PCI2_CHIPLET_ID = 15; -const uint32_t EC0_CHIPLET_ID = 0x20; +const uint32_t PERV_CHIPLET_ID = 0x01; +const uint32_t N0_CHIPLET_ID = 0x02; +const uint32_t N1_CHIPLET_ID = 0x03; +const uint32_t N2_CHIPLET_ID = 0x04; +const uint32_t N3_CHIPLET_ID = 0x05; +const uint32_t XB_CHIPLET_ID = 0x06; +const uint32_t MC01_CHIPLET_ID = 0x07; +const uint32_t MC23_CHIPLET_ID = 0x08; +const uint32_t OB0_CHIPLET_ID = 0x09; +const uint32_t OB1_CHIPLET_ID = 0x0A; +const uint32_t OB2_CHIPLET_ID = 0x0B; +const uint32_t OB3_CHIPLET_ID = 0x0C; +const uint32_t PCI0_CHIPLET_ID = 0x0D; +const uint32_t PCI1_CHIPLET_ID = 0x0E; +const uint32_t PCI2_CHIPLET_ID = 0x0F; +const uint32_t EC0_CHIPLET_ID = 0x20; const uint32_t EC23_CHIPLET_ID = 0x37; -const uint32_t EQ0_CHIPLET_ID = 0x10; -const uint32_t EQ5_CHIPLET_ID = 0x15; +const uint32_t EQ0_CHIPLET_ID = 0x10; +const uint32_t EQ5_CHIPLET_ID = 0x15; #define FIXREG8(name, expr, unit, meth, newexpr) template<> struct has_fixup { static const uint8_t value = newexpr; }; #define FIXREG32(name, expr, unit, meth, newexpr) template<> struct has_fixup { static const uint32_t value = newexpr; }; #define FIXREG64(name, expr, unit, meth, newexpr) template<> struct has_fixup { static const uint64_t value = newexpr; }; diff --git a/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H b/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H index d4bd4224..e5b9f45d 100644 --- a/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H +++ b/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H @@ -170,6 +170,8 @@ enum P9_HCD_MULTICAST_CONSTANTS enum P9_HCD_CLK_CTRL_CONSTANTS { CLK_STOP_CMD = BIT64(0), + CLK_STOP_CMD_SLAVE = BIT64(0) | BIT64(2), + CLK_STOP_CMD_MASTER = BIT64(0) | BIT64(3), CLK_START_CMD = BIT64(1), CLK_REGION_PERV = BIT64(4), CLK_REGION_ANEP = BIT64(10), -- cgit v1.2.3