summaryrefslogtreecommitdiffstats
path: root/src/import/chips
diff options
context:
space:
mode:
authorPrachi Gupta <pragupta@us.ibm.com>2016-04-25 16:06:43 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-05-04 14:18:41 -0400
commit12e3d200527c8efd2d410bb905e77af7be28f000 (patch)
tree259debe019f5ce438b28d110913e6ad399ce0dad /src/import/chips
parente75563aa59cfb60b9b8d6c50e5db6b6eb3cf13bd (diff)
downloadtalos-hostboot-12e3d200527c8efd2d410bb905e77af7be28f000.tar.gz
talos-hostboot-12e3d200527c8efd2d410bb905e77af7be28f000.zip
initCompiler: fix problems with multiple instances of same scom address
Change-Id: Ic5bcb120b3bafbd5d8dffbc5550812e12e5472c6 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23644 Tested-by: Jenkins Server Tested-by: Hostboot CI Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Reviewed-by: SHELTON LEUNG <sleung@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23645 Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips')
-rw-r--r--src/import/chips/p9/procedures/hwp/initfiles/p9_psi_scom.C30
1 files changed, 21 insertions, 9 deletions
diff --git a/src/import/chips/p9/procedures/hwp/initfiles/p9_psi_scom.C b/src/import/chips/p9/procedures/hwp/initfiles/p9_psi_scom.C
index 944c842b3..dfb1a866d 100644
--- a/src/import/chips/p9/procedures/hwp/initfiles/p9_psi_scom.C
+++ b/src/import/chips/p9/procedures/hwp/initfiles/p9_psi_scom.C
@@ -45,7 +45,10 @@ fapi2::ReturnCode p9_psi_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&
break;
}
- l_scom_buffer.insert<uint64_t> (literal_0b00111001000000101111111111111, 0, 29, 18 );
+ {
+ l_scom_buffer.insert<uint64_t> (literal_0b00111001000000101111111111111, 0, 29, 18 );
+ }
+
l_rc = fapi2::putScom(TGT0, 0x5012903ull, l_scom_buffer);
if (l_rc)
@@ -63,7 +66,10 @@ fapi2::ReturnCode p9_psi_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&
break;
}
- l_scom_buffer.insert<uint64_t> (literal_0b00000000000000000000000000000, 0, 29, 14 );
+ {
+ l_scom_buffer.insert<uint64_t> (literal_0b00000000000000000000000000000, 0, 29, 14 );
+ }
+
l_rc = fapi2::putScom(TGT0, 0x5012906ull, l_scom_buffer);
if (l_rc)
@@ -81,7 +87,10 @@ fapi2::ReturnCode p9_psi_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&
break;
}
- l_scom_buffer.insert<uint64_t> (literal_0b11000110001010010000000000000, 0, 29, 14 );
+ {
+ l_scom_buffer.insert<uint64_t> (literal_0b11000110001010010000000000000, 0, 29, 14 );
+ }
+
l_rc = fapi2::putScom(TGT0, 0x5012907ull, l_scom_buffer);
if (l_rc)
@@ -99,12 +108,15 @@ fapi2::ReturnCode p9_psi_scom(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>&
break;
}
- l_scom_buffer.insert<uint64_t> (literal_0x000, 16, 12, 27 );
- l_scom_buffer.insert<uint64_t> (literal_0x000, 32, 12, 43 );
- l_scom_buffer.insert<uint64_t> (literal_0x000, 48, 5, 59 );
- l_scom_buffer.insert<uint64_t> (literal_0b00000, 16, 12, 27 );
- l_scom_buffer.insert<uint64_t> (literal_0b00000, 32, 12, 43 );
- l_scom_buffer.insert<uint64_t> (literal_0b00000, 48, 5, 59 );
+ {
+ l_scom_buffer.insert<uint64_t> (literal_0x000, 16, 12, 27 );
+ l_scom_buffer.insert<uint64_t> (literal_0x000, 32, 12, 43 );
+ l_scom_buffer.insert<uint64_t> (literal_0x000, 48, 5, 59 );
+ l_scom_buffer.insert<uint64_t> (literal_0b00000, 16, 12, 27 );
+ l_scom_buffer.insert<uint64_t> (literal_0b00000, 32, 12, 43 );
+ l_scom_buffer.insert<uint64_t> (literal_0b00000, 48, 5, 59 );
+ }
+
l_rc = fapi2::putScom(TGT0, 0x501290full, l_scom_buffer);
if (l_rc)
OpenPOWER on IntegriCloud