summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor/sfc_ibm.C
Commit message (Collapse)AuthorAgeFilesLines
* Tweak IBM SFC flash settings for Micron chipsDean Sanner2018-02-071-6/+7
| | | | | | | | | | | | | | | -Micron flash chips were failing in FSP based systems Removed offending settings, but need to figure out why -Also added in some useful printk's for debug Change-Id: I46c1c7ce7d5f74d9302985ac821214ff25c6bfc1 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53344 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> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Set variables to nullptr after they are deletedChristian Geddes2017-09-251-1/+2
| | | | | | | | | | | | | | | | | | While updating some LPC logic a developer noticed a bug where an errlog handle wasnt getting set to nullptr after it was deleted this caused a confusing bug that took awhile to track. I noticed that this bug was all over our code so this commit fixes a lot of cases where variables get deleted but not set to nullptr Change-Id: I103b5c71b93686c3c89b04d1d565a24d4de74e6f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45890 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* pnor: fix support for SP/BMC-less SFC initRobert Lippert2016-06-141-19/+17
| | | | | | | | | | | also fixes up mismatched IDs for macronix flash parts Change-Id: I81b89e9a7239669e769864711797830b44351bfd Signed-off-by: Robert Lippert <rlippert@google.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25731 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* pnordd: disable large reload feature of SFCRobert Lippert2016-06-141-2/+6
| | | | | | | | | | | | | | | | | | The pblog seemed to hit a corner case in the SFCs caching when jumping between the end of a flash page and the beginning of the previous flash page resulting in corrupt data being returned repeatedly for one read. Disabling this provides the correct behavior in all cases but does result in a few additional seconds of boot time. (cherry picked from commit 154dea2a26cb8a5fec98293da4f1dc575c3cda32) Change-Id: Ic6f6b49436d4e4c232416b275b0a35acf39e84ab Signed-off-by: Robert Lippert <rlippert@google.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25252 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* pnor: fix writes across flash page boundariesRobert Lippert2016-06-141-2/+5
| | | | | | | | | | | | | Change-Id: Ia2fcd0b54b403d49e94c7000983f4f4339946bd0 Signed-off-by: Robert Lippert <rlippert@google.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25021 Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25732 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Move read of ibm_sfc erase block size after sfc initDean Sanner2015-12-111-9/+8
| | | | | | | | | Change-Id: I905a31d50d22d4433e8d14142aaae8c65fb086e1 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21963 Tested-by: Jenkins Server Reviewed-by: Christian Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix readFlash size calculation bugNick Bofferding2014-12-101-1/+1
| | | | | | | | | | | | | - Allows Micron extended chip ID to be read correctly - Fixed bytes to words calculation in IBM + AST readFlash routines Change-Id: I26feec40bf111d9bfbb1c791f2b113fcdd270a78 CQ: SW289339 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14835 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Split out SFC logic and add support for AST2400Dan Crowell2014-10-141-0/+1290
Refactored the PNOR device driver to pull all SFC-specific code into a new set of classes. Any time a new type of serial flash controller (SFC) is introduced, a new subclass should be created to support it. Also added the full support for the AST2400 BMC that is being used on Palmetto. Change-Id: I9cdbf9b48bbf94615a39804920e170a3142ec386 Origin: Google Shared Technology RTC: 97493 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13229 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
OpenPOWER on IntegriCloud