From 9acff299c65596e3ff3158a2dda5b97931c4a547 Mon Sep 17 00:00:00 2001 From: Devon Baughen Date: Wed, 12 Jun 2019 10:01:55 -0500 Subject: add omi attrs for omi dl config0 Change-Id: If906dba9415e641f4347dde76dd474e230c24bec Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/78816 Tested-by: FSP CI Jenkins Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: STEPHEN GLANCY Reviewed-by: Louis Stermole Reviewed-by: Jennifer A Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/78850 Reviewed-by: Jenkins Server Reviewed-by: Daniel M. Crowell Tested-by: Daniel M. Crowell --- src/import/chips/p9a/procedures/hwp/memory/lib/mc/omi.H | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/import/chips/p9a/procedures/hwp/memory/lib') diff --git a/src/import/chips/p9a/procedures/hwp/memory/lib/mc/omi.H b/src/import/chips/p9a/procedures/hwp/memory/lib/mc/omi.H index 7bb473659..f7a9f08b3 100644 --- a/src/import/chips/p9a/procedures/hwp/memory/lib/mc/omi.H +++ b/src/import/chips/p9a/procedures/hwp/memory/lib/mc/omi.H @@ -48,6 +48,7 @@ #include #include #include +#include namespace mss { @@ -476,6 +477,8 @@ fapi2::ReturnCode setup_mc_config0_helper(const fapi2::Target& i_target) { // The value is 0x8200040000152824 fapi2::buffer l_val; + uint8_t l_dl_tx_ln_rev_en = 1; + uint8_t l_dl_x4_backoff_en = 1; // CFG_DL0_ENABLE: dl0 enabled l_val.template writeBit(1); @@ -544,7 +547,9 @@ fapi2::ReturnCode setup_mc_config0_helper(const fapi2::Target& i_target) l_val.template writeBit(0); // CFG_DL0_TX_LN_REV_ENA: When set will allow dl0 to perform tx lane reversals. - l_val.template writeBit(0); + FAPI_TRY(mss::attr::get_omi_dl_ln_rev_enable(i_target, l_dl_tx_ln_rev_en), + "Error from FAPI_ATTR_GET (ATTR_OMI_DL_LN_REV_ENABLE)"); + l_val.template writeBit(l_dl_tx_ln_rev_en); // CFG_DL0_128_130_ENCODING_ENABLED: dl0 128/130 encoding enabled l_val.template writeBit(0); @@ -562,7 +567,9 @@ fapi2::ReturnCode setup_mc_config0_helper(const fapi2::Target& i_target) l_val.template writeBit(0); // CFG_DL0_HALF_WIDTH_BACKOFF_ENABLE: dl0 x4 backoff enabled - l_val.template writeBit(1); + FAPI_TRY(mss::attr::get_omi_dl_x4_backoff_enable(i_target, l_dl_x4_backoff_en), + "Error from FAPI_ATTR_GET (ATTR_OMI_DL_X4_BACKOFF_ENABLE)"); + l_val.template writeBit(l_dl_x4_backoff_en); l_val.template insertFromRight(LINK_WIDTHS_X8); -- cgit v1.2.1