1. 31 Aug, 2014 1 commit
  2. 19 Jul, 2014 1 commit
  3. 24 Aug, 2013 1 commit
  4. 13 Jul, 2013 1 commit
  5. 22 Feb, 2013 1 commit
  6. 04 Jan, 2013 2 commits
  7. 24 Sep, 2012 1 commit
  8. 21 Sep, 2012 1 commit
  9. 27 Aug, 2012 1 commit
  10. 20 Aug, 2012 1 commit
  11. 30 Jul, 2012 1 commit
  12. 21 Jul, 2012 1 commit
  13. 20 Jul, 2012 1 commit
  14. 06 May, 2012 1 commit
  15. 01 Mar, 2012 1 commit
  16. 04 Jan, 2012 1 commit
  17. 18 Dec, 2011 1 commit
  18. 09 Nov, 2011 1 commit
  19. 13 Sep, 2011 1 commit
  20. 03 Sep, 2011 1 commit
  21. 27 Jul, 2011 1 commit
  22. 26 Jul, 2011 1 commit
    • Stefan Tauner's avatar
      Be more refined regarding DMI chassis types · a34d7190
      Stefan Tauner authored
      
      We had broken laptops in the past that were not detected as such because
      their DMI chassis-type was either undefined/out-of-spec, or set to
      'other' or 'unknown'.
      
      this patch tries to mitigate this problem as follows:
      - if the DMI chassis-type clearly identifies the system as
        laptop/notebook/mobile platform then nothing changes: the user gets
        the laptop warning without a hint to the force switch.
      - if the DMI chassis-type is not specific enough, we warn the user
        similarly, but tell them the switch.
      
      to reduce the number of false positives i have added a few new
      chassis types that we have encountered in the last months to the list.
      
      Corresponding to flashrom svn r1390.
      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>
      a34d7190
  23. 13 Jul, 2011 1 commit
  24. 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
  25. 11 May, 2011 1 commit
    • Michael Karcher's avatar
      Kill central list of SPI programmers · b9dbe48b
      Michael Karcher authored
      
      Remove the array spi_programmer, replace it by dynamic registration
      instead. Also initially start with no busses supported, and switch to
      the default non-SPI only for the internal programmer.
      
      Also this patch changes the initialization for the buses_supported variable
      from "everything-except-SPI" to "nothing". All programmers have to set the
      bus type on their own, and this enables register_spi_programmer to just add
      the SPI both for on-board SPI interfaces (where the internal programmer
      already detected the other bus types), as well as for external programmers
      (where we have the default "none").
      
      Corresponding to flashrom svn r1299.
      Signed-off-by: default avatarMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      b9dbe48b
  26. 05 May, 2011 1 commit
    • Carl-Daniel Hailfinger's avatar
      Revamp board-specific quirk handling, allow for laptop support · 580d29a9
      Carl-Daniel Hailfinger authored
      
      Handle board-specific quirks in three phases:
      1. Before Super I/O probing (e.g. blacklisting of some Super I/O probes,
      or unhiding the Super I/O)
      2. Before the laptop enforcement decision (e.g. whitelisting a laptop
      for flashing)
      3. After chipset enabling (all current board enables)
      
      Implementation note: All entries in board_pciid_enables get an
      additional phase parameter. Alternative variants (3 tables instead of 1)
      also have their downsides, and I chose table bloat over table
      multiplication).
      
      With this patch, it should be possible to whitelist supported laptops
      with a matching entry (phase P2) in board_pciid_enables which points to
      a function setting laptop_ok=1. (In case DMI is broken, matching might
      be a little bit more difficult, but it is still doable.)
      
      Corresponding to flashrom svn r1294.
      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>
      580d29a9
  27. 27 Apr, 2011 1 commit
  28. 06 Oct, 2010 1 commit
  29. 29 Sep, 2010 1 commit
  30. 20 Sep, 2010 1 commit
  31. 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
  32. 10 Jul, 2010 1 commit
  33. 08 Jul, 2010 1 commit
  34. 06 Jul, 2010 1 commit
  35. 21 Jun, 2010 1 commit
  36. 04 Jun, 2010 1 commit
  37. 31 May, 2010 1 commit
  38. 26 May, 2010 1 commit
    • Carl-Daniel Hailfinger's avatar
      Handle the following architectures in generic flashrom code · cceafa2a
      Carl-Daniel Hailfinger authored
      
      - x86/x86_64 (little endian)
      - PowerPC (big endian)
      - MIPS (big+little endian)
      
      No changes to programmer specific code. This means any drivers with MMIO
      access will _not_ suddenly start working on big endian systems, but with
      this patch everything is in place to fix them.
      
      Compilation should work on all architectures listed above for all
      drivers except nic3com and nicrealtek which require PCI Port IO which is
      x86-only for now.
      
      To compile without nic3com and nicrealtek, run
      make distclean
      make CONFIG_NIC3COM=no CONFIG_NICREALTEK=no
      
      Thanks to Misha Manulis for testing early versions of this patch on
      PowerPC (big endian) with the satasii programmer.
      Thanks to Segher Boessenkool for design review and for helping out with
      compiler tricks and pointing out that we need eieio on PowerPC.
      Thanks to Vladimir Serbinenko for compile testing on MIPS (little
      endian) and PowerPC (big endian) and for runtime testing on MIPS (little
      endian).
      Thanks to David Daney for compile testing on MIPS (big endian).
      Thanks to Uwe Hermann for compile and runtime testing on x86_64.
      
      DO NOT RUN flashrom ON NON-X86 AFTER APPLYING THIS PATCH!
      This patch only provides the infrastructure, but does not convert any
      drivers, so flashrom will compile, but it won't do the right thing on
      non-x86 platforms.
      
      Corresponding to flashrom svn r1013.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarMisha Manulis <misha@manulis.com>
      Acked-by: default avatarVladimir 'phcoder/φ-coder' Serbinenko <phcoder@gmail.com>
      Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      Acked-by: default avatarSegher Boessenkool <segher@kernel.crashing.org>
      cceafa2a
  39. 28 Apr, 2010 1 commit
    • Carl-Daniel Hailfinger's avatar
      One of the problems is that --force had multiple meanings · 27023768
      Carl-Daniel Hailfinger authored
      
      - Force chip read by faking probe success.
      - Force chip access even if the chip is bigger than max decode size for
        the flash bus.
      - Force erase even if erase is known bad.
      - Force write even if write is known bad.
      - Force writing even if cbtable tells us that this is the wrong image
        for this board.
      
      This patch cleans up --force usage:
      - Remove any suggestions to use --force for probe/read from flashrom
        output.
      - Don't talk about "success" or "Found chip" if the chip is forced.
      - Add a new internal programmer parameter boardmismatch=force. This
        overrides any mismatch detection from cbtable/image comparisons.
      - Add a new internal programmer parameter laptop=force_I_want_a_brick.
      - Adjust the documentation for --force.
      - Clean up the man page a bit whereever it talks about --force or
        laptops.
      
      Additional changes in this patch:
      - Add warnings about laptops to the documentation.
      - Abort if a laptop is detected. Can be overridden with the programmer
      parameter mentioned above.
      - Add "Portable" to the list of DMI strings indicating laptops.
      - Check if a chip specified with -c is known to flashrom.
      - Programmer parameter reliability and consistency fixes.
      - More paranoid self-checks.
      - Improve documentation.
      
      Corresponding to flashrom svn r996.
      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>
      27023768