1. 29 Dec, 2012 2 commits
    • Stefan Tauner's avatar
      Add a generic SPI block unprotect function · 9530a022
      Stefan Tauner authored
      
      This does not only remove a huge pile of duplicate code, it does
      also fix a bug in spi_disable_blockprotect_at25df(), which is also
      a good example why duplicated code is a bad idea.
      
      Corresponding to flashrom svn r1635.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      9530a022
    • Stefan Tauner's avatar
      Improve SPI status register pretty printing · 6ee37e28
      Stefan Tauner authored
      
       - Move all functions related to SPI status registers to a new file
         spi25_statusreg.c. This includes the generic as well as the
         SST-specific functions from spi25.c and the chip-specific functions
         from a25.c and at25.c.
       - introduce helper functions
          * spi_prettyprint_status_register_hex()
          * spi_prettyprint_status_register_bpl()
          * spi_prettyprint_status_register_plain()
         Use the latter on every compatible flash chip that has no better printlock
         function set and get rid of the implicit pretty printing in the SPI probing
         functions.
       - remove
          * spi_prettyprint_status_register_common()
          * spi_prettyprint_status_register_amic_a25lq032() because it can be fully
            substituted with spi_prettyprint_status_register_amic_a25l032().
          * spi_prettyprint_status_register() (old switch, no longer needed)
       - promote and export
          * spi_prettyprint_status_register_amic_a25l05p() as spi_prettyprint_status_register_default_bp1().
          * spi_prettyprint_status_register_amic_a25l40p() as spi_prettyprint_status_register_default_bp2().
          * spi_prettyprint_status_register_st_m25p() as spi_prettyprint_status_register_default_bp3().
       - add #define TEST_BAD_REW and use it for a number of Atmel chips which
         had only TEST_BAD_READ set even though they dont have erasers or a write
         function set.
      
      Corresponding to flashrom svn r1634.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      6ee37e28
  2. 27 Dec, 2012 3 commits
  3. 26 Dec, 2012 2 commits
  4. 24 Dec, 2012 1 commit
  5. 30 Nov, 2012 2 commits
  6. 29 Nov, 2012 1 commit
  7. 24 Nov, 2012 1 commit
  8. 20 Nov, 2012 1 commit
  9. 05 Nov, 2012 1 commit
  10. 01 Nov, 2012 1 commit
  11. 28 Oct, 2012 1 commit
  12. 27 Oct, 2012 4 commits
  13. 26 Oct, 2012 1 commit
  14. 23 Oct, 2012 1 commit
  15. 20 Oct, 2012 1 commit
  16. 04 Oct, 2012 1 commit
  17. 01 Oct, 2012 1 commit
  18. 26 Sep, 2012 3 commits
  19. 25 Sep, 2012 2 commits
  20. 24 Sep, 2012 1 commit
  21. 23 Sep, 2012 1 commit
  22. 22 Sep, 2012 2 commits
  23. 21 Sep, 2012 2 commits
  24. 17 Sep, 2012 2 commits
  25. 15 Sep, 2012 1 commit
  26. 07 Sep, 2012 1 commit