summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/initfiles/p9_mca_scom.C
diff options
context:
space:
mode:
authorShelton Leung <sleung@us.ibm.com>2017-05-11 16:08:59 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-05-22 23:56:16 -0400
commit490882657a26e4aa662ef2515c38e443ca3c506e (patch)
treeae9719e96267f58c86739e5918852594aafe996f /src/import/chips/p9/procedures/hwp/initfiles/p9_mca_scom.C
parente60e1d2e548b06d43165c60365d184bb3ffc3f34 (diff)
downloadtalos-hostboot-490882657a26e4aa662ef2515c38e443ca3c506e.tar.gz
talos-hostboot-490882657a26e4aa662ef2515c38e443ca3c506e.zip
additional dd2 nimbus inits
Change-Id: I00487a727859a8c3311dcdad1da80d02c94a62a7 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40416 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: Jenny Huynh <jhuynh@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40420 Reviewed-by: Hostboot Team <hostboot@us.ibm.com> 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/initfiles/p9_mca_scom.C')
-rw-r--r--src/import/chips/p9/procedures/hwp/initfiles/p9_mca_scom.C25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_mca_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_mca_scom.C
index 12a51f083..6edd8dd51 100644
--- a/src/import/chips/p9/procedures/hwp/initfiles/p9_mca_scom.C
+++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_mca_scom.C
@@ -51,6 +51,9 @@ constexpr uint64_t literal_0b0000000000000000000000000 = 0b000000000000000000000
constexpr uint64_t literal_0b1100111111111111111111111 = 0b1100111111111111111111111;
constexpr uint64_t literal_0x1 = 0x1;
constexpr uint64_t literal_6 = 6;
+constexpr uint64_t literal_38 = 38;
+constexpr uint64_t literal_51 = 51;
+constexpr uint64_t literal_64 = 64;
constexpr uint64_t literal_0x8 = 0x8;
constexpr uint64_t literal_17 = 17;
constexpr uint64_t literal_1867 = 1867;
@@ -363,6 +366,21 @@ fapi2::ReturnCode p9_mca_scom(const fapi2::Target<fapi2::TARGET_TYPE_MCA>& TGT0,
{
if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) )
{
+ FAPI_TRY(fapi2::getScom( TGT0, 0x5010827ull, l_scom_buffer ));
+
+ constexpr auto l_MC01_PORT0_ATCL_CL_CLSCOM_MCBUSYQ_ENABLE_BUSY_COUNTERS_ON = 0x1;
+ l_scom_buffer.insert<0, 1, 63, uint64_t>(l_MC01_PORT0_ATCL_CL_CLSCOM_MCBUSYQ_ENABLE_BUSY_COUNTERS_ON );
+ constexpr auto l_MC01_PORT0_ATCL_CL_CLSCOM_MCBUSYQ_BUSY_COUNTER_WINDOW_SELECT_1024_CYCLES = 0x1;
+ l_scom_buffer.insert<1, 3, 61, uint64_t>(l_MC01_PORT0_ATCL_CL_CLSCOM_MCBUSYQ_BUSY_COUNTER_WINDOW_SELECT_1024_CYCLES );
+ l_scom_buffer.insert<4, 10, 54, uint64_t>(literal_38 );
+ l_scom_buffer.insert<14, 10, 54, uint64_t>(literal_51 );
+ l_scom_buffer.insert<24, 10, 54, uint64_t>(literal_64 );
+ FAPI_TRY(fapi2::putScom(TGT0, 0x5010827ull, l_scom_buffer));
+ }
+ }
+ {
+ if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) )
+ {
FAPI_TRY(fapi2::getScom( TGT0, 0x501082bull, l_scom_buffer ));
l_scom_buffer.insert<45, 1, 63, uint64_t>(literal_0x8 );
@@ -508,6 +526,13 @@ fapi2::ReturnCode p9_mca_scom(const fapi2::Target<fapi2::TARGET_TYPE_MCA>& TGT0,
l_scom_buffer.insert<5, 1, 63, uint64_t>(l_TGT1_ATTR_MSS_REORDER_QUEUE_SETTING );
l_scom_buffer.insert<55, 4, 60, uint64_t>(literal_0b1000 );
+
+ if (((l_chip_id == 0x5) && (l_chip_ec == 0x20)) )
+ {
+ constexpr auto l_MCP_PORT0_SRQ_MBA_WRQ0Q_CFG_DISABLE_WR_PG_MODE_ON = 0x1;
+ l_scom_buffer.insert<6, 1, 63, uint64_t>(l_MCP_PORT0_SRQ_MBA_WRQ0Q_CFG_DISABLE_WR_PG_MODE_ON );
+ }
+
FAPI_TRY(fapi2::putScom(TGT0, 0x701090dull, l_scom_buffer));
}
{
OpenPOWER on IntegriCloud