summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/pnor/pnorrp.C9
-rw-r--r--src/usr/pnor/sfc_ibm.C13
2 files changed, 15 insertions, 7 deletions
diff --git a/src/usr/pnor/pnorrp.C b/src/usr/pnor/pnorrp.C
index f596401e9..e33a1b0c3 100644
--- a/src/usr/pnor/pnorrp.C
+++ b/src/usr/pnor/pnorrp.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2017 */
+/* Contributors Listed Below - COPYRIGHT 2011,2018 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
@@ -645,6 +645,9 @@ errlHndl_t PnorRP::findTOC(size_t & o_tocSize)
l_ffs_hdr = (ffs_hdr*)l_tmpTocBuffer;
l_foundTOC = ((l_ffs_hdr->magic == FFS_MAGIC) &&
(PNOR::pnor_ffs_checksum(l_ffs_hdr,FFS_HDR_SIZE) == 0));
+
+ printk("Addr [%lx], magic[%x] checksum[%d]\n",
+ l_toc,l_ffs_hdr->magic, PNOR::pnor_ffs_checksum(l_ffs_hdr,FFS_HDR_SIZE));
if (!l_foundTOC)
{
//If TOC not found at 0x0 or 0x2000000
@@ -663,6 +666,8 @@ errlHndl_t PnorRP::findTOC(size_t & o_tocSize)
l_foundTOC =
((l_ffs_hdr->magic == FFS_MAGIC) &&
(PNOR::pnor_ffs_checksum(l_ffs_hdr, FFS_HDR_SIZE) == 0));
+ printk("Addr [%lx], magic[%x] checksum[%d]\n",
+ l_toc,l_ffs_hdr->magic, PNOR::pnor_ffs_checksum(l_ffs_hdr,FFS_HDR_SIZE));
}
if (!l_foundTOC)
@@ -685,6 +690,8 @@ errlHndl_t PnorRP::findTOC(size_t & o_tocSize)
l_foundTOC =
((l_ffs_hdr->magic == FFS_MAGIC) &&
(PNOR::pnor_ffs_checksum(l_ffs_hdr, FFS_HDR_SIZE) == 0));
+ printk("Addr [%lx], magic[%x] checksum[%d]\n",
+ l_toc,l_ffs_hdr->magic, PNOR::pnor_ffs_checksum(l_ffs_hdr,FFS_HDR_SIZE));
}
//Setup for next time -- look for the other side
diff --git a/src/usr/pnor/sfc_ibm.C b/src/usr/pnor/sfc_ibm.C
index 24ea7eb9c..44d5ba517 100644
--- a/src/usr/pnor/sfc_ibm.C
+++ b/src/usr/pnor/sfc_ibm.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014,2017 */
+/* Contributors Listed Below - COPYRIGHT 2014,2018 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
@@ -584,11 +584,12 @@ errlHndl_t SfcIBM::hwInit( )
1 << SFC_REG_SPICLK_CLKHI_SHFT |
1 << SFC_REG_SPICLK_CLKLO_SHFT
},
- { PNOR::MICRON_NOR_ID, SFC_REG_CONF8,
- 6 << SFC_REG_CONF8_CSINACTIVEREAD_SHFT |
- 15 << SFC_REG_CONF8_DUMMY_SHFT |
- SPI_JEDEC_FAST_READ << SFC_REG_CONF8_READOP_SHFT
- },
+ //TODO RTC:187447 figure out why these break newer systems
+ //{ PNOR::MICRON_NOR_ID, SFC_REG_CONF8,
+ //6 << SFC_REG_CONF8_CSINACTIVEREAD_SHFT |
+ //15 << SFC_REG_CONF8_DUMMY_SHFT |
+ //SPI_JEDEC_FAST_READ << SFC_REG_CONF8_READOP_SHFT
+ //},
{ PNOR::MICRON_NOR_ID, SFC_REG_CONF4, SPI_JEDEC_SECTOR_ERASE },
{ PNOR::MICRON_NOR_ID, SFC_REG_CONF5, 4096 },
//*** End Micron
OpenPOWER on IntegriCloud