summaryrefslogtreecommitdiffstats
path: root/src/usr/lpc/lpcdd.C
diff options
context:
space:
mode:
authorBill Hoffa <wghoffa@us.ibm.com>2016-09-16 15:09:28 -0500
committerMatthew A. Ploetz <maploetz@us.ibm.com>2016-10-31 15:49:47 -0400
commitfde2240fafb48866ef3324f57ae7f4417625ad18 (patch)
tree418a4b243625c08b0bded4675e8a174d3ffcbd20 /src/usr/lpc/lpcdd.C
parent0cb19a22319130ec4ebeb64ee87a47328297486e (diff)
downloadtalos-hostboot-fde2240fafb48866ef3324f57ae7f4417625ad18.tar.gz
talos-hostboot-fde2240fafb48866ef3324f57ae7f4417625ad18.zip
Pnor DD Changes for AST2500
- Created Common sfc_ast2X000 class for common functions - Modified sfc_ast2400 class to use common class - Added sfc_ast2500 class Change-Id: I27c7674b58e006801ae03aabd60fdcfa21f49e9c RTC: 161664 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30919 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
Diffstat (limited to 'src/usr/lpc/lpcdd.C')
-rw-r--r--src/usr/lpc/lpcdd.C6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/usr/lpc/lpcdd.C b/src/usr/lpc/lpcdd.C
index 3b8a2cd5a..a8a23fde1 100644
--- a/src/usr/lpc/lpcdd.C
+++ b/src/usr/lpc/lpcdd.C
@@ -714,7 +714,8 @@ errlHndl_t LpcDD::_readLPC(LPC::TransType i_type,
l_err = checkAddr( i_type, i_addr, &l_addr );
if( l_err ) { break; }
-#if CONFIG_SFC_IS_AST2400 //TODO CQ:SW328950 to work around Simics AST2400 bug
+//TODO CQ:SW328950 to work around Simics AST2400 bug
+#if CONFIG_SFC_IS_AST2400 || CONFIG_SFC_IS_AST2500
if( io_buflen <= sizeof(uint32_t) )
{
memcpy( o_buffer, reinterpret_cast<void*>(l_addr), io_buflen );
@@ -790,7 +791,8 @@ errlHndl_t LpcDD::_writeLPC(LPC::TransType i_type,
l_err = checkAddr( i_type, i_addr, &l_addr );
if( l_err ) { break; }
-#if CONFIG_SFC_IS_AST2400 //TODO CQ:SW328950 to work around Simics AST2400 bug
+//TODO CQ:SW328950 to work around Simics AST2400 bug
+#if CONFIG_SFC_IS_AST2400 || CONFIG_SFC_IS_AST2500
memcpy(reinterpret_cast<void*>(l_addr), i_buffer, io_buflen);
#else
if( io_buflen == sizeof(uint8_t) )
OpenPOWER on IntegriCloud