1. 26 May, 2014 2 commits
  2. 09 May, 2014 1 commit
  3. 03 May, 2014 1 commit
  4. 02 May, 2014 1 commit
  5. 23 Sep, 2013 1 commit
  6. 15 Sep, 2013 1 commit
  7. 25 Jul, 2013 1 commit
  8. 17 Jul, 2013 1 commit
    • Stefan Tauner's avatar
      Uintptr_t-ify map_flash_region functions · 305e0b99
      Stefan Tauner authored
      
      Unsigned long is not the right type for manipulating pointer values.
      Since C99 there are suitable unsigned and signed types available, namely
      uintptr_t and intptr_t respectively.
      
      Use them in functions assigned to programmers' map_flash_region fields and
      their callers where applicable.
      
      This patch also changes the display width of all associated address values in
      physmap.c to 16/8 hex characters depending on the actual size by
      introducing a macro PRIxPTR_WIDTH and exploiting printf's * field width
      specifier.
      
      Corresponding to flashrom svn r1701.
      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>
      305e0b99
  9. 13 Jul, 2013 2 commits
  10. 23 Jun, 2013 1 commit
  11. 16 Jun, 2013 1 commit
  12. 01 Apr, 2013 1 commit
  13. 15 Mar, 2013 1 commit
  14. 03 Mar, 2013 1 commit
  15. 04 Jan, 2013 1 commit
  16. 30 Dec, 2012 1 commit
  17. 29 Dec, 2012 1 commit
    • 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
  18. 27 Oct, 2012 1 commit
    • Stefan Tauner's avatar
      Do not read the flash chip twice in verification mode · 78ffbeaa
      Stefan Tauner authored
      
      Kyösti Mälkki noticed that we unnecessarily read the flash chip twice when
      called with --verify. The first one is the mandatory read before everything
      (to be able to detect the seriousness of errors), but the second one is not
      necessary because we can just use the former for the comparison.
      
      This introduces a small output change: previously we printed ERASE or
      VERIFY depending on the callee. This special case has been dropped
      because it is unnecessary to print it (and wrong for the verification
      function to need to know why it is verifying exactly).
      If an erase fails we mention that fact explicitly already, similar for verify.
      
      Corresponding to flashrom svn r1619.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      78ffbeaa
  19. 23 Oct, 2012 1 commit
  20. 21 Sep, 2012 1 commit
  21. 25 Aug, 2012 1 commit
  22. 28 Jul, 2012 1 commit
    • Stefan Tauner's avatar
      Introduce enum test_state · 2c20b28f
      Stefan Tauner authored
      
      Previously boards in the wiki were tagged either as working or as known
      bad. But we added support to various boards via board enables that were
      then never tested because the owners have not reported back. This can
      now be tagged with NT and is shown appropriately.
      
      Also, the underlying data structure indicating state was converted from
      macros to an enum while preserving original integer values and is used
      for programmers and chipsets too.
      
      Corresponding to flashrom svn r1555.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      2c20b28f
  23. 20 Jul, 2012 1 commit
  24. 08 Jun, 2012 1 commit
  25. 06 Jun, 2012 1 commit
  26. 14 May, 2012 1 commit
  27. 17 Feb, 2012 1 commit
  28. 15 Feb, 2012 1 commit
  29. 25 Dec, 2011 1 commit
  30. 20 Dec, 2011 1 commit
    • Carl-Daniel Hailfinger's avatar
      Have all programmer init functions register bus masters/programmers · c40cff7b
      Carl-Daniel Hailfinger authored
      
      All programmer types (Parallel, SPI, Opaque) now register themselves
      into a generic programmer list and probing is now programmer-centric
      instead of chip-centric.
      Registering multiple SPI/... masters at the same time is now possible
      without any problems. Handling multiple flash chips is still unchanged,
      but now we have the infrastructure to deal with "dual BIOS" and "one
      flash behind southbridge and one flash behind EC" sanely.
      
      A nice side effect is that this patch kills quite a few global variables
      and improves the situation for libflashrom.
      
      Hint for developers:
      struct {spi,par,opaque}_programmer now have a void *data pointer to
      store any additional programmer-specific data, e.g. hardware
      configuration info.
      
      Note:
      flashrom -f -c FOO -r forced_read.bin
      does not work anymore. We have to find an architecturally clean way to
      solve this.
      
      Corresponding to flashrom svn r1475.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
      c40cff7b
  31. 18 Dec, 2011 1 commit
  32. 14 Dec, 2011 1 commit
    • Carl-Daniel Hailfinger's avatar
      Use struct flashctx instead of struct flashchip for flash chip access · 63fd9026
      Carl-Daniel Hailfinger authored
      
      Struct flashchip is used only for the flashchips array and for
      operations which do not access hardware, e.g. printing a list of
      supported flash chips.
      
      struct flashctx (flash context) contains all data available in
      struct flashchip, but it also contains runtime information like
      mapping addresses. struct flashctx is expected to grow additional
      members over time, a prime candidate being programmer info.
      struct flashctx contains all of struct flashchip with identical
      member layout, but struct flashctx has additional members at the end.
      
      The separation between struct flashchip/flashctx shrinks the memory
      requirement of the big flashchips array and allows future extension
      of flashctx without having to worry about bloat.
      
      Corresponding to flashrom svn r1473.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
      63fd9026
  33. 23 Nov, 2011 1 commit
  34. 04 Nov, 2011 1 commit
  35. 18 Sep, 2011 2 commits
  36. 03 Sep, 2011 1 commit
  37. 20 Aug, 2011 1 commit