summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorStephen Cprek <smcprek@us.ibm.com>2017-08-28 11:39:53 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-09-08 15:55:03 -0400
commit513299a5b565b066816fe31b1ba224f8d195ca27 (patch)
treef54948083ef5a77eed53229160f2c842f4d4d46c /src/include
parent948bff49730d59eb2c84c545b5fcec157b08bfbb (diff)
downloadtalos-hostboot-513299a5b565b066816fe31b1ba224f8d195ca27.tar.gz
talos-hostboot-513299a5b565b066816fe31b1ba224f8d195ca27.zip
Re-enable OCC parition in pnor
Additional Changes - Created isEmpty check for pnor sections to handle lack of FSP support when loading Lids - Removed not needed PNOR partitions from FSP layout Change-Id: I326831a1b389ef25b6f5f557d332c74f3b5e77d8 RTC:178164 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45251 Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/pnor/pnorif.H12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/usr/pnor/pnorif.H b/src/include/usr/pnor/pnorif.H
index b6f616b92..5dd4a68e8 100644
--- a/src/include/usr/pnor/pnorif.H
+++ b/src/include/usr/pnor/pnorif.H
@@ -263,6 +263,18 @@ errlHndl_t readHeaderMagic(
size_t i_size,
void* o_pData);
+// @TODO CQ:SW400352 remove function
+/**
+ * @brief Determine if a PNOR section is empty by checking if first PAGE
+ * is all 0xFF's or 0x00's depending on ECC or not.
+ *
+ * @param[in] i_secId ID of requested section
+ *
+ * @return bool - True if the section is empty (all 0xFF's or 0x00's)
+ * False otherwise.
+ */
+bool isSectionEmpty(const PNOR::SectionId i_section);
+
} // PNOR
#endif
OpenPOWER on IntegriCloud