1. 06 May, 2012 1 commit
  2. 05 May, 2012 2 commits
  3. 02 May, 2012 3 commits
    • Stefan Tauner's avatar
      spi25.c: Refactor spi_write_status_register helpers · 96c2dfc1
      Stefan Tauner authored
      
      In r1115 "Write protection handling for Atmel AT25*" the old
      spi_write_status_register function was duplicated to send WREN and
      EWSR commands respectively controlled by a new common wrapper function
      spi_write_status_register without a reason. Both functions' resulting
      code is equal apart from the opcode used. The code itself does also
      differ in the macros used, but their value (apart from the opcode) is
      equal. This patch adds a new parameter for the opcode to the helper
      function which allows removal of the other one. This relies on the fact
      that EWSR and WREN have the same INSIZE and OUTSIZE though. If that is
      really seen as an issue, the sizes could be made parameters too.
      
      This patch also changes the wrapper so that it no longer sets the
      feature bits of the struct flash(ctx) argument. This may result in
      changed output, because it no longer implicitly disables the debug
      message in following executions. Since almost all chips had their
      feature bits fixed in the previous commit, this is a minor problem.
      
      Also, spi_write_status_enable has been dead code since r658 or so.
      Remove it.
      
      Corresponding to flashrom svn r1528.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      96c2dfc1
    • Steven Zakulec's avatar
      Tag all EWSR chips correctly · 3603a28a
      Steven Zakulec authored
      
      All SPI chips without a WRSR feature bit set were evaluated except the
      Sanyo LF25FW203A for which no datasheet is available.
      
      The following list includes all SPI-capable chips that still have no
      WRSR feature bit set:
       - AT26DF041
       - AT45CS1282
       - AT45DB011D
       - AT45DB021D
       - AT45DB041D
       - AT45DB081D
       - AT45DB161D
       - AT45DB321C
       - AT45DB321D
       - AT45DB642D
      
      All of them have no write function set and can be therefore ignored
      for now.
      
      Apart from those the generic chips are also not tagged. The opaque
      flash interface should not be affected. The SFDP dummy chip is
      changed to explicitly set EWSR if it can't deduce it dynamically.
      The vendor detecting generic chips can't write anyway.
      
      Corresponding to flashrom svn r1527.
      Signed-off-by: default avatarSteven Zakulec <spzakulec@gmail.com>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      3603a28a
    • Stefan Tauner's avatar
      Add board enable for ASUS P5BV-R · 027e0189
      Stefan Tauner authored
      
      These are used in ASUS RS120-E5/PA2 servers.
      
      GPIO pin discovered, patch prepared and
      Tested-by: Geoffrey McRae
      
      Corresponding to flashrom svn r1526.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      027e0189
  4. 30 Apr, 2012 1 commit
  5. 27 Apr, 2012 1 commit
  6. 15 Apr, 2012 2 commits
  7. 14 Apr, 2012 4 commits
  8. 13 Mar, 2012 1 commit
  9. 10 Mar, 2012 1 commit
  10. 08 Mar, 2012 1 commit
  11. 06 Mar, 2012 1 commit
  12. 03 Mar, 2012 1 commit
  13. 01 Mar, 2012 1 commit
  14. 27 Feb, 2012 1 commit
  15. 25 Feb, 2012 2 commits
  16. 24 Feb, 2012 1 commit
  17. 22 Feb, 2012 1 commit
    • Stefan Tauner's avatar
      Fix SFDP probing · 75adf32a
      Stefan Tauner authored
      
      Sfdp_add_uniform_eraser checks for existing erasers. Due to a bug it
      looked for eraser slots that have no erase functions set instead of
      those that have one set.
      
      Postpone adding an erase function for the special 4k block erase
      opcode until we know the flash chip size and add an additional check
      to sfdp_add_uniform_eraser.
      
      Fix the output of the parameter table contents.
      
      This patch fixes the index used to retrieve the eraser types, which
      was off one double word.
      
      Refine some messages and add a few further debugging prints.
      
      Corresponding to flashrom svn r1505.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      75adf32a
  18. 18 Feb, 2012 1 commit
  19. 17 Feb, 2012 3 commits
  20. 16 Feb, 2012 6 commits
  21. 15 Feb, 2012 1 commit
  22. 13 Feb, 2012 1 commit
  23. 12 Feb, 2012 1 commit
  24. 08 Feb, 2012 1 commit
    • Carl-Daniel Hailfinger's avatar
      SPI command black-/ignorelisting for the flash chip emulator in the dummy programmer · 1b83be5c
      Carl-Daniel Hailfinger authored
      
      Usage:
      flashrom -p dummy:spi_blacklist=commandlist
      flashrom -p dummy:spi_ignorelist=commandlist
      
      If commandlist is 0302, flashrom will refuse (blacklist) or ignore
      (ignorelist) command 0x03 (READ) and command 0x02 (WRITE). The
      commandlist can be up to 512 bytes (256 commands) long.
      Specifying flash chip emulation is a good idea to get useful results.
      
      Very useful for testing corner cases if you don't own a locked down
      Intel chipset and want to simulate such a thing.
      
      Example usage:
      dd if=/dev/zeros bs=1024k count=4 of=dummy_simulator.rom
      dd if=/dev/urandom bs=1024k count=4 of=randomimage.rom
      flashrom -p dummy:emulate=SST25VF032B,image=dummy_simulator.rom,\
      spi_blacklist=20,spi_ignorelist=52 -w randomimage.rom -V
      
      Corresponding to flashrom svn r1490.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarDavid Hendricks <dhendrix@google.com>
      1b83be5c
  25. 07 Feb, 2012 1 commit