1. 23 Aug, 2013 1 commit
  2. 13 Apr, 2013 1 commit
  3. 01 Apr, 2013 6 commits
  4. 30 Nov, 2012 1 commit
  5. 07 Sep, 2012 1 commit
  6. 01 Sep, 2012 1 commit
  7. 30 Jul, 2012 1 commit
  8. 30 Apr, 2012 1 commit
  9. 12 Jul, 2011 1 commit
  10. 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
  11. 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. missi...
      8bb2021d
  12. 08 Oct, 2010 1 commit
  13. 06 Oct, 2010 1 commit
  14. 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
  15. 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
  16. 13 Mar, 2010 1 commit
  17. 26 Jan, 2010 1 commit
  18. 09 Jan, 2010 1 commit
  19. 06 Jan, 2010 3 commits
  20. 23 Nov, 2009 1 commit