Skip to content

Commit

Permalink
jgr17042800 Updated Obus scom initfile
Browse files Browse the repository at this point in the history
Updated with rx_speed_select setting to match SW387041 PLL setting changes

Change-Id: Ibc8d88266360c03ac4519352935f3e572ecb4768
Original-Change-Id: I91557b0f427b441b9abec16a99a8de148e588c81
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39905
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/64763
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Tested-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
John Rell authored and dcrowell77 committed Aug 20, 2018
1 parent b30aa35 commit 293c126
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/import/chips/p9/procedures/hwp/initfiles/p9_obus_scom.C
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ constexpr uint64_t literal_0b0001 = 0b0001;
constexpr uint64_t literal_0b101 = 0b101;
constexpr uint64_t literal_0b100 = 0b100;
constexpr uint64_t literal_0b110 = 0b110;
constexpr uint64_t literal_0b01 = 0b01;
constexpr uint64_t literal_0b00 = 0b00;
constexpr uint64_t literal_0b00100 = 0b00100;
constexpr uint64_t literal_0b0010101 = 0b0010101;
constexpr uint64_t literal_0b0010110 = 0b0010110;
Expand All @@ -61,6 +63,8 @@ fapi2::ReturnCode p9_obus_scom(const fapi2::Target<fapi2::TARGET_TYPE_OBUS>& TGT
FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_IS_SIMULATION, TGT1, l_TGT1_ATTR_IS_SIMULATION));
uint64_t l_def_IS_HW = (l_TGT1_ATTR_IS_SIMULATION == literal_0);
uint64_t l_def_IS_SIM = (l_TGT1_ATTR_IS_SIMULATION == literal_1);
fapi2::ATTR_CHIP_EC_FEATURE_SW387041_Type l_TGT2_ATTR_CHIP_EC_FEATURE_SW387041;
FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_CHIP_EC_FEATURE_SW387041, TGT2, l_TGT2_ATTR_CHIP_EC_FEATURE_SW387041));
fapi2::buffer<uint64_t> l_scom_buffer;
{
FAPI_TRY(fapi2::getScom( TGT0, 0x8000000009010c3full, l_scom_buffer ));
Expand Down Expand Up @@ -3084,6 +3088,16 @@ fapi2::ReturnCode p9_obus_scom(const fapi2::Target<fapi2::TARGET_TYPE_OBUS>& TGT
FAPI_TRY(fapi2::getScom( TGT0, 0x8009880009010c3full, l_scom_buffer ));

l_scom_buffer.insert<48, 3, 61, uint64_t>(literal_0b110 );

if ((l_TGT2_ATTR_CHIP_EC_FEATURE_SW387041 != literal_0))
{
l_scom_buffer.insert<51, 2, 62, uint64_t>(literal_0b01 );
}
else if (( true ))
{
l_scom_buffer.insert<51, 2, 62, uint64_t>(literal_0b00 );
}

FAPI_TRY(fapi2::putScom(TGT0, 0x8009880009010c3full, l_scom_buffer));
}
{
Expand Down

0 comments on commit 293c126

Please sign in to comment.