summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/perv
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/perv')
-rw-r--r--src/import/chips/p9/procedures/hwp/perv/p9_getecid.C14
-rw-r--r--src/import/chips/p9/procedures/hwp/perv/p9_getecid.H4
2 files changed, 12 insertions, 6 deletions
diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_getecid.C b/src/import/chips/p9/procedures/hwp/perv/p9_getecid.C
index cc5d86eb4..04fd11d43 100644
--- a/src/import/chips/p9/procedures/hwp/perv/p9_getecid.C
+++ b/src/import/chips/p9/procedures/hwp/perv/p9_getecid.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2016 */
+/* Contributors Listed Below - COPYRIGHT 2016,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -61,9 +61,16 @@ static fapi2::ReturnCode setup_memory_work_around_attributes(
// All these attributes have 1 as their 'YES' enum value
uint8_t l_value = 1;
FAPI_TRY( FAPI_ATTR_SET(fapi2::ATTR_DO_MSS_WR_VREF, i_target, l_value) );
- FAPI_TRY( FAPI_ATTR_SET(fapi2::ATTR_DO_MSS_VCCD_OVERRIDE, i_target, l_value) );
FAPI_TRY( FAPI_ATTR_SET(fapi2::ATTR_DO_MSS_VREF_DAC, i_target, l_value) );
- FAPI_TRY( FAPI_ATTR_SET(fapi2::ATTR_DO_MSS_VREG_COARSE, i_target, l_value) );
+ }
+
+ // Workarounds for modules which are before 1.03 (memory part 2)
+ if (l_version < ddLevelMemoryPart2)
+ {
+ FAPI_DBG("seeing version < 1.03 (0x%x) setting attributes", l_version);
+
+ // All these attributes have 1 as their 'YES' enum value
+ uint8_t l_value = 1;
FAPI_TRY( FAPI_ATTR_SET(fapi2::ATTR_DO_MSS_TRAINING_BAD_BITS, i_target, l_value) );
}
@@ -117,4 +124,3 @@ fapi_try_exit:
return fapi2::current_err;
}
-
diff --git a/src/import/chips/p9/procedures/hwp/perv/p9_getecid.H b/src/import/chips/p9/procedures/hwp/perv/p9_getecid.H
index 0dd964723..0027876ef 100644
--- a/src/import/chips/p9/procedures/hwp/perv/p9_getecid.H
+++ b/src/import/chips/p9/procedures/hwp/perv/p9_getecid.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2016 */
+/* Contributors Listed Below - COPYRIGHT 2016,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -46,7 +46,7 @@ enum P9_GETECID_Private_Constants
{
fuseString_len = 176, // fuse string length
ddLevelMemoryPart1 = 0b110, // bit field in ecid buffer representing DD1.02
- ddLevelMemoryPart2 = 0b111, // bit field in ecid buffer representing DD1.02
+ ddLevelMemoryPart2 = 0b111, // bit field in ecid buffer representing DD1.03
};
typedef fapi2::ReturnCode (*p9_getecid_FP_t)(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&,
OpenPOWER on IntegriCloud