1. 04 Jan, 2016 2 commits
  2. 29 Jun, 2015 1 commit
  3. 10 Jan, 2015 1 commit
    • Stefan Tauner's avatar
      Unify target OS and CPU architecture checks · b0eee9b8
      Stefan Tauner authored
      
      We do CPU architecture checks once for the makefile in arch.h and
      once for HW access abstraction in hwaccess.c. This patch unifies
      related files so that they can share the checks to improve
      maintainability and reduce the chance of inconsistencies.
      Furthermore, it refines some of the definitions, which
       - adds "support" for AARCH64 and PPC64,
       - adds big-endian handling on arm as well as LE handling on PPC64,
       - fixes compilation of internal.c on AARCH64 and PPC64.
      
      Additionally, this patch continues to unify all OS checks in
      flashrom by adding a new helper macro IS_WINDOWS.
      
      The old header file for architecture checking is renamed to platform.h
      to reflect its broader scope and all new macros are add in there.
      
      Corresponding to flashrom svn r1864.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      b0eee9b8
  4. 19 Jul, 2014 1 commit
  5. 02 May, 2014 1 commit
  6. 26 Apr, 2014 2 commits
  7. 27 Aug, 2013 1 commit
  8. 24 Aug, 2013 1 commit
  9. 25 Jul, 2013 1 commit
  10. 13 Jul, 2013 1 commit
  11. 01 Apr, 2013 4 commits
  12. 04 Jan, 2013 1 commit
  13. 01 Jan, 2013 1 commit
  14. 30 Nov, 2012 1 commit
  15. 27 Oct, 2012 2 commits
  16. 20 Oct, 2012 1 commit
  17. 07 Sep, 2012 1 commit
  18. 27 Aug, 2012 1 commit
  19. 13 Aug, 2012 1 commit
    • Stefan Tauner's avatar
      serprog: Add support for setting the SPI frequency · b98f6eb3
      Stefan Tauner authored
      
      Introduce a new opcode (0x14) that sends the requested frequency as a 32b
      long value in Hertz to the programmer and receives the frequency eventually
      chosen by the programmer. The user can specify this with the programmer
      parameter "spispeed" (named after the similar parameter for the buspirate)
      including an optional suffix of 'M' or 'k' for specifying megahertz or kilohertz
      respectively (lowercase suffixes are also accepted).
      
      Thanks to Idwer and Uwe (and maybe others) for their feedback especially
      regarding the unit of frequency to use.
      
      Corresponding to flashrom svn r1571.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      b98f6eb3
  20. 30 Jul, 2012 1 commit
  21. 15 Jun, 2012 1 commit
  22. 18 Dec, 2011 1 commit
  23. 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
  24. 23 Nov, 2011 1 commit
  25. 09 Nov, 2011 1 commit
  26. 22 Oct, 2011 1 commit
  27. 18 Sep, 2011 2 commits
  28. 15 Sep, 2011 1 commit
  29. 27 Jul, 2011 1 commit
  30. 07 Jul, 2011 1 commit
  31. 14 Jun, 2011 1 commit
    • David Hendricks's avatar
      Use shutdown callback mechanism to shutdown programmers · 8bb2021d
      David Hendricks authored
      
      This patch attempts to resolve some programmer shutdown ordering issues
      by having the programmer init functions register shutdown callbacks explicitly
      wherever it makes most sense. Before, assumptions were made that could lead to
      the internal programmer's state changing before the external programmer could be
      shut down properly. Now, each programmer cleans up after itself and (hopefully)
      performs each operation in the correct order.
      
      As a side-effect, this patch gives us a better usage model for reverse
      operations such as rpci_* and rmmio_*. In the long-run, this should make
      reversing the initialization process easier to understand, less tedious, and
      less error-prone.
      
      In short, this patch does the following:
      - Registers a shutdown callback during initialization for each programmer.
      - Kills the .shutdown function pointer from programmer_entry struct. Also,
        make most shutdown functions static.
      - Adds a few minor clean-ups and corrections (e.g. missing physunmap() calls).
      
      TODO: Remove forward declaration of serprog_shutdown() (added to simplify diff)
      
      Corresponding to flashrom svn r1338.
      Signed-off-by: default avatarDavid Hendricks <dhendrix@google.com>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      8bb2021d
  32. 24 Jan, 2011 1 commit
  33. 06 Oct, 2010 1 commit