1. 04 Jan, 2016 1 commit
  2. 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
  3. 27 May, 2014 1 commit
  4. 09 May, 2014 1 commit
  5. 19 Oct, 2013 1 commit
  6. 24 Aug, 2013 1 commit
  7. 23 Aug, 2013 1 commit
  8. 13 Apr, 2013 1 commit
  9. 01 Apr, 2013 6 commits
  10. 30 Nov, 2012 1 commit
  11. 07 Sep, 2012 1 commit
  12. 01 Sep, 2012 1 commit
  13. 30 Jul, 2012 1 commit
  14. 30 Apr, 2012 1 commit
  15. 12 Jul, 2011 1 commit
  16. 03 Jul, 2011 1 commit
    • Uwe Hermann's avatar
      Fix and improve Windows/MinGW/MSYS build · d5e85d67
      Uwe Hermann authored
      
       - Makefile: Use $(OS_ARCH) to add some MinGW-specific workarounds and
         settings, so that a simple "make" is sufficient on MinGW (instead of
         manual Makefile hacking).
      
       - Explicitly set CC=gcc in the Makefile, otherwise you get an error like
         "cc: command not found" on MinGW.
      
       - MinGW doesn't have ffs(), use gcc's __builtin_ffs() instead.
      
       - Add /usr/local/include and /usr/local/lib to CPPFLAGS/LDFLAGS, that's
         where libusb-win32 and libftdi stuff is usually placed on MinGW/MSYS.
      
       - Disable serprog (no sockets) and all PCI-based programmers (no libpci)
         for now. That leaves dummy, ft2232_spi, and buspirate_spi enabled on
         MinGW per default.
      
       - serial.c: Use correct type for 'tmp', both on Windows/MinGW (DWORD)
         and POSIX (ssize_t).
      
      Corresponding to flashrom svn r1363.
      Signed-off-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      d5e85d67
  17. 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
  18. 08 Oct, 2010 1 commit
  19. 06 Oct, 2010 1 commit
  20. 16 Sep, 2010 1 commit
    • Carl-Daniel Hailfinger's avatar
      Handle Bus Pirates already in bit banging mode correctly · d2f007f9
      Carl-Daniel Hailfinger authored
      
      Thanks to Johannes Sjölund for reporting that the Bus Pirate init could
      not deal with a Bus Pirate which is already in binary Bitbang mode.
      
      This is caused by a combination of the slowness of the Bus Pirate, the
      slowness of USB and a fast serial port flush routine which just flushes
      the buffer contents and does not wait until data arrival stops.
      
      Make the Bus Pirate init more robust by running the flush command 10
      times with 1.5 ms delay in between.
      
      This code development was sponsored by Mattias Mattsson. Thanks! Tested
      a few dozen times, should work reliably.
      
      Corresponding to flashrom svn r1178.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarMattias Mattsson <vitplister@gmail.com>
      d2f007f9
  21. 27 Jul, 2010 1 commit
    • Carl-Daniel Hailfinger's avatar
      Split off programmer.h from flash.h · 5b997c3e
      Carl-Daniel Hailfinger authored
      
      Programmer specific functions are of absolutely no interest to any file
      except those dealing with programmer specific actions (special SPI
      commands and the generic core).
      
      The new header structure is as follows (and yes, improvements are
      possible):
      flashchips.h  flash chip IDs
      chipdrivers.h  chip-specific read/write/... functions
      flash.h  common header for all stuff that doesn't fit elsewhere
      hwaccess.h hardware access functions
      programmer.h  programmer specific functions
      coreboot_tables.h  header from coreboot, internal programmer only
      spi.h SPI command definitions
      
      Corresponding to flashrom svn r1112.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      5b997c3e
  22. 13 Mar, 2010 1 commit
  23. 26 Jan, 2010 1 commit
  24. 09 Jan, 2010 1 commit
  25. 06 Jan, 2010 3 commits
  26. 23 Nov, 2009 1 commit