1. 09 May, 2009 2 commits
  2. 06 May, 2009 1 commit
  3. 15 Apr, 2009 1 commit
  4. 26 Jan, 2009 3 commits
  5. 25 Jan, 2009 1 commit
  6. 28 Nov, 2008 2 commits
  7. 27 Nov, 2008 1 commit
    • Carl-Daniel Hailfinger's avatar
      Try RES even if RDID fails · 92a54ca0
      Carl-Daniel Hailfinger authored
      
      The existing check in probe_spi_res() was right for SPI controllers
      which support all commands, but may not exist. For controllers which
      support only a subset of commands, it will fail in unexpected ways. Even
      if a command is supported by the controller, it may be unavailable if
      the controller is locked down.
      
      The new logic checks if RDID could be issued and its return values
      made sense (not 0xff 0xff 0xff). In that case, RES probing is not
      performed. Otherwise, we try RES. There is one drawback: If RDID
      returned unexpected values, we don't issue a RES probe. However, in that
      case we should try to match RDID anyway.
      
      Corresponding to flashrom svn r348 and coreboot v2 svn r3774.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarFENG yu ning <fengyuning1984@gmail.com>
      92a54ca0
  8. 18 Nov, 2008 1 commit
    • Carl-Daniel Hailfinger's avatar
      Check for failed SPI command execution · 598ec58e
      Carl-Daniel Hailfinger authored
      
      Although SPI itself does not have a mechanism to signal command failure,
      the SPI host may be unable to send a given command over the wire due
      to security or hardware limitations. The current code ignores these
      mechanisms completely and simply assumes almost every command succeeds.
      Complain if SPI command execution fails.
      
      Since locked down Intel chipsets (like the one we had problems with
      earlier) only allow a small subset of commands, find the common subset
      of commands between the chipset and the ROM in the chip erase case. That
      is accomplished by the new spi_chip_erase_60_c7() which can be used for
      chips supporting both 0x60 and 0xc7 chip erase commands.
      
      Both parts of the patch address problems seen in the real world. The
      increased verbosity for the error case will help us diagnose and address
      problems better.
      
      Corresponding to flashrom svn r345 and coreboot v2 svn r3757.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Otherwise: Acked-by: Stefan Reinauer <stepan@coresystems.de>
      598ec58e
  9. 03 Nov, 2008 1 commit
  10. 29 Oct, 2008 1 commit
  11. 18 Oct, 2008 1 commit
  12. 07 Jul, 2008 1 commit
    • Peter Stuge's avatar
      Trivial SPI cleanups · f83221b6
      Peter Stuge authored
      
      While writing a new SPI driver I fixed some things in the SPI code:
      All calls to spi_command() had unneccessary #define duplications, and in some
      cases the read count define could theoretically become harmful because NULL was
      passed for the read buffer. Avoid a crash, should someone change the #defines.
      
      I also noticed that the only caller of spi_page_program() was the it87 driver,
      and spi_page_program() could only call back into the it87 driver. Removed the
      function for easier-to-follow code and made it8716f_spi_page_program() static.
      The ichspi driver's static page functions are already static.
      
      Corresponding to flashrom svn r302 and coreboot v2 svn r3418.
      Signed-off-by: default avatarPeter Stuge <peter@stuge.se>
      Acked-by: default avatarPeter Stuge <peter@stuge.se>
      f83221b6
  13. 30 Jun, 2008 3 commits
  14. 27 Jun, 2008 1 commit
  15. 24 Jun, 2008 1 commit
    • Peter Stuge's avatar
      Slight restructure of SPI probe_ functions · da4e5f36
      Peter Stuge authored
      
      Preparation for a probe optimization patch. This patch does not change any
      functionality. spi_probe_rdid was tested to still work on my M57SLI rev 2.
      
      The idea is to have error checks return error immediately when something
      fails, rather than having code inside an if block where the condition
      tests for success.
      
      This means: Less indentation, more clear what the code is checking.
      
      Corresponding to flashrom svn r272 and coreboot v2 svn r3386.
      Signed-off-by: default avatarPeter Stuge <peter@stuge.se>
      Acked-by: default avatarWard Vandewege <ward@gnu.org>
      da4e5f36
  16. 16 May, 2008 1 commit
  17. 15 May, 2008 2 commits
  18. 14 May, 2008 1 commit
  19. 13 May, 2008 3 commits
  20. 10 May, 2008 2 commits
  21. 06 Feb, 2008 1 commit
  22. 22 Jan, 2008 1 commit
  23. 21 Jan, 2008 1 commit
  24. 19 Jan, 2008 1 commit
  25. 04 Jan, 2008 1 commit
  26. 29 Dec, 2007 1 commit
  27. 17 Dec, 2007 1 commit
  28. 16 Dec, 2007 1 commit
  29. 22 Oct, 2007 1 commit
  30. 18 Oct, 2007 1 commit