summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor/pnorrp.C
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2014-06-10 14:46:04 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-06-30 20:21:52 -0500
commitc3027fb72ac0eddec05b79e0bf939191f148352f (patch)
tree3da39cefbd981a0330d849ce6db51ecdc057e84c /src/usr/pnor/pnorrp.C
parent6280a104a07a5d7d78efb971b822307b2f786fe1 (diff)
downloadblackbird-hostboot-c3027fb72ac0eddec05b79e0bf939191f148352f.tar.gz
blackbird-hostboot-c3027fb72ac0eddec05b79e0bf939191f148352f.zip
Add PNOR support for AST2400 BMC
Changes from Palmetto board bringup to enable PNOR reads. Change-Id: I13ad550eb7103a27af9ee4cb774dd504cae240a7 RTC: 106881 Origin: Google Shared Technology Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11544 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/pnor/pnorrp.C')
-rw-r--r--src/usr/pnor/pnorrp.C16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/usr/pnor/pnorrp.C b/src/usr/pnor/pnorrp.C
index 9ec472384..f0507aa83 100644
--- a/src/usr/pnor/pnorrp.C
+++ b/src/usr/pnor/pnorrp.C
@@ -5,7 +5,10 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 2011,2014 */
+/* Contributors Listed Below - COPYRIGHT 2011,2014 */
+/* [+] Google Inc. */
+/* [+] International Business Machines Corp. */
+/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
@@ -499,6 +502,10 @@ errlHndl_t PnorRP::readTOC()
{
INITSERVICE::doShutdown( PNOR::RC_PARTITION_TABLE_INVALID);
}
+ else
+ {
+ TOC_0_failed = true;
+ }
//Try TOC1
continue;
}
@@ -882,6 +889,13 @@ errlHndl_t PnorRP::writeToDevice( uint64_t i_offset,
do
{
+#ifdef CONFIG_SFC_IS_AST2400
+ //@todo RTC:106881 -- Add full write/erase support
+ TRACFCOMP(g_trac_pnor, "PnorRP::writeToDevice> Skipping all writes in BMC for now" );
+ break;
+#endif
+
+
TARGETING::Target* pnor_target = TARGETING::MASTER_PROCESSOR_CHIP_TARGET_SENTINEL;
// assume a single page to write
OpenPOWER on IntegriCloud