summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor/pnor_common.C
diff options
context:
space:
mode:
authorMarty Gloff <mgloff@us.ibm.com>2015-07-20 10:17:22 -0500
committerPatrick Williams <iawillia@us.ibm.com>2015-12-11 14:01:19 -0600
commit3187da27c464de6422ecb1bc12a085fc5b31f610 (patch)
tree6f428e9c8fa95fa1fb7255b8fe87fc15d1c58438 /src/usr/pnor/pnor_common.C
parent47aef30b4dd8cc9f6d8e05cbe8a7be0c0b7cd24b (diff)
downloadtalos-hostboot-3187da27c464de6422ecb1bc12a085fc5b31f610.tar.gz
talos-hostboot-3187da27c464de6422ecb1bc12a085fc5b31f610.zip
P9 - FakePNOR scripts for Nimbus simics
Tools/scripts to support a fake pnor configuration in Simics. Change-Id: Idf060cbfb589f3ccabde96d56bbe84b6cc9902a9 RTC:127337 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/19176 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Christian Geddes <crgeddes@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/pnor/pnor_common.C')
-rw-r--r--src/usr/pnor/pnor_common.C5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/usr/pnor/pnor_common.C b/src/usr/pnor/pnor_common.C
index eeb2ed3fa..47eb670e8 100644
--- a/src/usr/pnor/pnor_common.C
+++ b/src/usr/pnor/pnor_common.C
@@ -33,6 +33,7 @@
#include <initservice/initserviceif.H>
#include <util/align.H>
#include <errl/errlmanager.H>
+#include <config.h> // @FIXME RTC 132398
// Trace definition
trace_desc_t* g_trac_pnor = NULL;
@@ -119,6 +120,7 @@ errlHndl_t PNOR::mmioToPhysicalOffset(uint64_t& o_hbbAddress)
errlHndl_t l_err = NULL;
do
{
+#ifndef CONFIG_SFC_IS_FAKE // @FIXME RTC 132398
uint64_t l_hbbMMIO = 0;
size_t l_size = sizeof(uint64_t);
TARGETING::Target* l_masterProc =
@@ -138,6 +140,9 @@ errlHndl_t PNOR::mmioToPhysicalOffset(uint64_t& o_hbbAddress)
l_hbbMMIO = (l_hbbMMIO >> 32) & PNOR::LPC_TOP_OF_FLASH_OFFSET;
o_hbbAddress = ((9*l_hbbMMIO) - (9*PNOR::LPC_SFC_MMIO_OFFSET)
- PNOR::PNOR_SIZE) /8;
+#else // @FIXME RTC 132398
+ o_hbbAddress = 1; // @FIXME RTC 132398
+#endif // @FIXME RTC 132398
} while (0);
return l_err;
}
OpenPOWER on IntegriCloud