diff options
author | Santosh Puranik <santosh.puranik@in.ibm.com> | 2016-09-26 03:14:57 -0500 |
---|---|---|
committer | Santosh S. Puranik <santosh.puranik@in.ibm.com> | 2016-09-30 02:34:33 -0400 |
commit | d203132a331691e653aee54b339453b391b5e7a0 (patch) | |
tree | 7613274c63d11a0b113b3232089f0dfcd57366a9 /src/sbefw/sbescom.C | |
parent | 57475477182adeecc322a4a3852857bd5b997993 (diff) | |
download | talos-sbe-d203132a331691e653aee54b339453b391b5e7a0.tar.gz talos-sbe-d203132a331691e653aee54b339453b391b5e7a0.zip |
Removed PPE specific code for SCOMs
Change-Id: Ib15f7f204d5afdba8ce23eaa2b749383b81ae3bc
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30280
Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: PARVATHI RACHAKONDA <prachako@in.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30286
Reviewed-by: Hostboot Team <hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com>
Diffstat (limited to 'src/sbefw/sbescom.C')
-rw-r--r-- | src/sbefw/sbescom.C | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/sbefw/sbescom.C b/src/sbefw/sbescom.C index 81cfafde..b76f51a4 100644 --- a/src/sbefw/sbescom.C +++ b/src/sbefw/sbescom.C @@ -27,6 +27,7 @@ #include "sbe_sp_intf.H" #include "sbetrace.H" #include "plat_hw_access.H" +#include "plat_target.H" using namespace fapi2; /** @@ -80,15 +81,16 @@ uint32_t checkIndirectAndDoScom( const bool i_isRead, // If the indirect scom bit is 0, then doing a regular scom if( (i_addr & DIRECT_SCOM_ADDR_MASK) == 0) { + plat_target_handle_t l_hndl; SBE_INFO(SBE_FUNC "Performing Direct scom."); if( i_isRead ) { - o_pcbPibStatus = getscom_abs_wrap ( (uint32_t)i_addr, + o_pcbPibStatus = getscom_abs_wrap (&l_hndl, (uint32_t)i_addr, & io_data); } else { - o_pcbPibStatus = putscom_abs_wrap ( (uint32_t)i_addr, + o_pcbPibStatus = putscom_abs_wrap (&l_hndl, (uint32_t)i_addr, io_data); } break; @@ -129,6 +131,7 @@ uint32_t checkIndirectAndDoScom( const bool i_isRead, // bit 33-47 - bcast/chipletID/port // bit 48-63 - local addr uint64_t tempAddr = i_addr & 0x000000007FFFFFFF; + plat_target_handle_t l_hndl; // If we are doing a read. We need to do a write first.. if( i_isRead) @@ -145,7 +148,7 @@ uint32_t checkIndirectAndDoScom( const bool i_isRead, // perform write before the read with the new // IO_buffer with the imbedded indirect scom addr. - o_pcbPibStatus = putscom_abs_wrap ( tempAddr, tempBuffer); + o_pcbPibStatus = putscom_abs_wrap (&l_hndl, tempAddr, tempBuffer); if( ( o_pcbPibStatus ) || ( scomType == SBE_SCOM_TYPE_INDIRECT_2 )) { @@ -159,7 +162,7 @@ uint32_t checkIndirectAndDoScom( const bool i_isRead, { // Now perform the op requested using the passed in // IO_Buffer to pass the read data back to caller. - o_pcbPibStatus = getscom_abs_wrap ( tempAddr, &(scomout.data64)); + o_pcbPibStatus = getscom_abs_wrap (&l_hndl, tempAddr, &(scomout.data64)); if( o_pcbPibStatus ) break; // if bit 32 is on indicating a complete bit |