1. 26 Jan, 2009 3 commits
  2. 23 Jan, 2009 1 commit
  3. 07 Jan, 2009 1 commit
  4. 15 Dec, 2008 1 commit
    • FENG yu ning's avatar
      Various ichspi.c refinements · f041e9b5
      FENG yu ning authored
      
      * add a generic preop-opcode-pair table.
      
      * rename ich_check_opcodes to ich_init_opcodes.
      
      * let ich_init_opcodes do not need to access flashchip structure:
        . move the definition of struct preop_opcode_pair to a better place
        . remove preop_opcode_pairs from 'struct flashchip'
        . modify ich_init_opcodes and generate_opcodes so that they do not access the flashchip structure
      
      * call ich_init_opcodes during chipset enable. Now OPCODES generation mechanism works.
      
      * fix a coding style mistake.
      
      Corresponding to flashrom svn r367 and coreboot v2 svn r3814.
      Signed-off-by: default avatarFENG yu ning <fengyuning1984@gmail.com>
      Acked-by: default avatarPeter Stuge <peter@stuge.se>
      f041e9b5
  5. 10 Dec, 2008 1 commit
  6. 08 Dec, 2008 1 commit
  7. 04 Dec, 2008 1 commit
  8. 03 Dec, 2008 1 commit
  9. 28 Nov, 2008 3 commits
  10. 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-b...
      598ec58e
  11. 15 Nov, 2008 1 commit
    • Carl-Daniel Hailfinger's avatar
      The AT25 and AT26 series SPI chips from Atmel are plain EEPROMs · d54ef6e7
      Carl-Daniel Hailfinger authored
      
      The AT45 series SPI chips are DataFlash EEPROMs which means they have
      odd (non-power-of-two) sector sizes, but some of the DataFlash chips can
      be configured or ordered with power-of-two sector sizes.
      
      Add probe support for the following Atmel SPI chips:
      AT25DF021
      AT25DF041A
      AT25DF081
      AT25DF161
      AT25DF321A
      AT25DF641
      AT25F512B
      AT25FS010
      AT25FS040
      AT26DF041
      AT26DF081A
      AT26DF161
      AT26DF161A
      AT26DF321
      AT26F004
      AT45CS1282
      AT45DB011D
      AT45DB021D
      AT45DB041D
      AT45DB081D
      AT45DB161D
      AT45DB321C
      AT45DB321D
      AT45DB642D
      
      Add an explanation why the following chips can't be probed:
      AT45BR3214B
      AT45D011
      AT45D021A
      AT45D041A
      AT45D081A
      AT45D161
      AT45DB011
      AT45DB011B
      AT45DB021A
      AT45DB021B
      AT45DB041A
      AT45DB081A
      AT45DB161
      AT45DB161B
      AT45DB321
      AT45DB321B
      AT45DB642
      
      Add the ID, but no probing function for this chip:
      AT25F512A
      
      Corresponding to flashrom svn r342 and coreboot v2 svn r3754.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Tested-by: J...
      d54ef6e7
  12. 04 Nov, 2008 1 commit
  13. 03 Nov, 2008 1 commit
  14. 02 Nov, 2008 1 commit
  15. 29 Oct, 2008 1 commit
  16. 18 Oct, 2008 1 commit
  17. 07 Oct, 2008 1 commit
  18. 26 Sep, 2008 1 commit
  19. 21 Jul, 2008 1 commit
    • Peter Stuge's avatar
      Winbond W39V040C and MSI K8T Neo2-F · cce2682d
      Peter Stuge authored
      
      W39V040C does standard JEDEC commands except chip erase so add a small driver.
      probe_w39v040c() prints the block lock pin status when a chip is found.
      
      The Neo2 board enable matches on 8237-internal IDE and onboard NIC PCI IDs.
      
      Many thanks to Daniel McLellan for testing all of this on hardware!
      Build tested by Uwe.
      
      Corresponding to flashrom svn r304 and coreboot v2 svn r3431.
      Signed-off-by: default avatarPeter Stuge <peter@stuge.se>
      Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      cce2682d
  20. 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
  21. 06 Jul, 2008 2 commits
  22. 30 Jun, 2008 3 commits
  23. 27 Jun, 2008 1 commit
  24. 22 Jun, 2008 1 commit
    • Peter Stuge's avatar
      Remove dead M-Systems Disk on Chip code · db52c58e
      Peter Stuge authored
      
      DOC support has been disabled by default for many years. The write function
      does nothing but print text. It has a call to write_page_md2802() commented
      out, but that function does not exist. This is dead code with ugly #ifdefs.
      
      Updates README to reflect that there was a time when there was code, but it
      didn't work. Removes M-Systems #defines and also includes svn rm msys_doc.*
      
      Corresponding to flashrom svn r269 and coreboot v2 svn r3382.
      Signed-off-by: default avatarPeter Stuge <peter@stuge.se>
      Acked-by: default avatarStefan Reinauer <stepan@coresystems.de>
      db52c58e
  25. 18 Jun, 2008 2 commits
    • Jens Kuehnel's avatar
      Add support for AMIC Technology A49LF040A and do not probe W29EE011 anymore · b9f61744
      Jens Kuehnel authored
      
      Jens sent the first patch that added A49LF040A to flash.h and flashchips.c
      using _jedec and _49lf040 functions.
      
      An issue was found with probe_w29ee011() for the Winbond W29EE011, which
      caused the A49LF040A to no longer respond to any commands.
      
      Ward made a patch to disable probing by default for the W29EE011 following
      some discussion. Using -c W29EE011 will make flashrom probe for the chip.
      
      Peter did some more datasheet diving and found that the Pm49FL00x functions
      suited this chip quite well because of the block locking registers in
      A49LF040A, and finally tested PROBE READ ERASE WRITE to work on ALIX.3c3.
      
      Ward confirmed that this works on alix.2c3 too.
      
      Corresponding to flashrom svn r260 and coreboot v2 svn r3368.
      Signed-off-by: default avatarJens Kuehnel <coreboot@jens.kuehnel.org>
      Signed-off-by: default avatarWard Vandewege <ward@gnu.org>
      Signed-off-by: default avatarPeter Stuge <peter@stuge.se>
      Acked-by: default avatarWard Vandewege <ward@gnu.org>
      b9f61744
    • Peter Stuge's avatar
      Force read unknown flash chips · 7ffbc6f9
      Peter Stuge authored
      
      When flash chip detection fails, it is still useful and possible to read the
      flash chip contents. If no flash chip is found in normal probes and the
      -f -r -c CHIPNAME options are given, a successful probe for the specified
      chip is forced, and then flashrom reads the flash chip using either the read
      function for the specified chip, or if there is none, a simple memcpy().
      
      The patch also moves the global variable int force in flashrom.c into main()
      and passes it as a parameter to layout.c:show_id(), which was the only other
      function that used the variable. This is needed to avoid confusion with the
      new parameter int force which is added to flashrom.c:probe_flash() and used
      to force probe success for the chip named in char *chip_to_probe.
      
      Corresponding to flashrom svn r259 and coreboot v2 svn r3367.
      Signed-off-by: default avatarPeter Stuge <peter@stuge.se>
      Acked-by: default avatarWard Vandewege <ward@gnu.org>
      7ffbc6f9
  26. 11 Jun, 2008 1 commit
  27. 27 May, 2008 1 commit
  28. 22 May, 2008 2 commits
  29. 17 May, 2008 1 commit
  30. 16 May, 2008 1 commit
  31. 15 May, 2008 1 commit