summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor/runtime/rt_pnor.C
diff options
context:
space:
mode:
authorElizabeth Liner <eliner@us.ibm.com>2017-02-20 15:14:46 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-03-08 18:07:17 -0500
commitc4599e71cc5de0030fa4e8bedb368bfede132c1f (patch)
tree7533822a9373b2570dd348e8380433a41780f663 /src/usr/pnor/runtime/rt_pnor.C
parent2e65c884bc76759a6010249036c57c02e1516a36 (diff)
downloadtalos-hostboot-c4599e71cc5de0030fa4e8bedb368bfede132c1f.tar.gz
talos-hostboot-c4599e71cc5de0030fa4e8bedb368bfede132c1f.zip
FIRDATA changes - adding getPnorInfo to runtime
Change-Id: I9b6bd547a203bde70016427b471296b452108f4d Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37515 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-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>
Diffstat (limited to 'src/usr/pnor/runtime/rt_pnor.C')
-rw-r--r--src/usr/pnor/runtime/rt_pnor.C23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/usr/pnor/runtime/rt_pnor.C b/src/usr/pnor/runtime/rt_pnor.C
index 5d3ec698a..dc5adb7f7 100644
--- a/src/usr/pnor/runtime/rt_pnor.C
+++ b/src/usr/pnor/runtime/rt_pnor.C
@@ -87,6 +87,26 @@ errlHndl_t PNOR::clearSection(PNOR::SectionId i_section)
return Singleton<RtPnor>::instance().clearSection(i_section);
}
+void PNOR::getPnorInfo( PnorInfo_t& o_pnorInfo )
+{
+ o_pnorInfo.mmioOffset = LPC_SFC_MMIO_OFFSET | LPC_FW_SPACE;
+
+ //Using sys target
+ TARGETING::Target* sys = NULL;
+ TARGETING::targetService().getTopLevelTarget( sys );
+ assert(sys != NULL);
+
+ o_pnorInfo.norWorkarounds = sys->getAttr<
+ TARGETING::ATTR_PNOR_FLASH_WORKAROUNDS>();
+
+#ifdef CONFIG_PNOR_IS_32MB
+ o_pnorInfo.flashSize = 32*MEGABYTE;
+#else
+ o_pnorInfo.flashSize = 64*MEGABYTE;
+#endif
+
+}
+
/****************Public Methods***************************/
/**
* STATIC
@@ -321,12 +341,12 @@ RtPnor::RtPnor()
{
errlCommit(l_err, PNOR_COMP_ID);
}
+
}
/*************************/
RtPnor::~RtPnor()
{
-
}
/*******************Private Methods*********************/
@@ -832,3 +852,4 @@ errlHndl_t RtPnor::clearSection(PNOR::SectionId i_section)
return l_errl;
}
+
OpenPOWER on IntegriCloud