1. 14 Dec, 2009 3 commits
  2. 13 Dec, 2009 1 commit
    • Carl-Daniel Hailfinger's avatar
      Internal (onboard) programming was the only feature which could not be disabled · 66ef4e5f
      Carl-Daniel Hailfinger authored
      
      Make various pieces of code conditional on support for internal
      programming. Code shared between PCI device programmers and onboard
      programming is now conditional as well.
      
      It is now possible to build only with dummy support:
      make CONFIG_INTERNAL=no CONFIG_NIC3COM=no CONFIG_SATASII=no
      CONFIG_DRKAISER=no CONFIG_SERPROG=no CONFIG_FT2232SPI=no
      
      This allows building for a specific use case only, and it also
      facilitates porting to a new architecture because it is possible to
      focus on highlevel code only.
      
      Note: Either internal or dummy programmer needs to be compiled in due to
      the current behaviour of always picking a default programmer if -p is
      not specified. Picking an arbitrary external programmer as default  
      wouldn't make sense.
      
      Build and runtime tested in all 1024 possible build combinations. The
      only failures are by design as mentioned above.
      
      Corresponding to flashrom svn r797.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarSean Nelson <audiohacked@gmail.com>
      66ef4e5f
  3. 09 Dec, 2009 3 commits
    • Luc Verhaegen's avatar
      Boards: Tighten up ID match list · a7e30503
      Luc Verhaegen authored
      
      Tighten up board id match table in preparation of upcoming matching
      changes.
      
      Some boards are deliberately broken so that we will receive reports
      or can remove support later (for instance, for agami aruma, which,
      probably is no longer available in the wild).
      
      * Acorp 6A815EPD: make autodetectable.
      * Agami Aruma: remove bogus subsystem ids. Due to lacking secondary
        main id, this match will break soon.
      * GIGABYTE GA-2761GXDK: Add secondary main id. Subsystem ids are not
        possible as they are all copies of the main ids. Will still require
        -m.
      * GIGABYTE GA-M57SLI-S4: add full set of subsystem ids. Will keep
        match name for coreboot name matching.
      * GIGABYTE GA-M61P-S3: Add secondary main id. Remove name match.
        Probably has good subsystem ids, but no info was found. So
        deliberately broken match.
      * GIGABYTE GA-MA790FX-DQ6: pointless name match.
      * IBM x3455: add full ids, remove name match.
      * Kontron 986LCD-M: remove full id match as it is bogus. Kontron is
        an embedded vendor and does not bother with subsystem ids, so
        make this board name match only.
      * MSI MS-6590 (KT4 Ultra): remove name match.
      * MSI MS-7135 (K8N Neo3): add full id set, keep name match for
        coreboot.
      * VIA EPIA-N/NL: remove name match.
      * VIA PC3500G: remove name match.
      
      Corresponding to flashrom svn r796.
      Signed-off-by: default avatarLuc Verhaegen <libv@skynet.be>
      Acked-by: default avatarSean Nelson <audiohacked@gmail.com>
      a7e30503
    • David Bartley's avatar
      Boards: Add Asus M2V-MX · f58d364f
      David Bartley authored
      
      Expands via vt823x gpio support to also accept gpio5.
      
      Corresponding to flashrom svn r795.
      Signed-off-by: default avatarDavid Bartley <dtbartle@csclub.uwaterloo.ca>
      Acked-by: default avatarLuc Verhaegen <libv@skynet.be>
      f58d364f
    • Luc Verhaegen's avatar
      Chipset: remove sis630 chipset enable for sis540 · 9892ca6b
      Luc Verhaegen authored
      
      SiS630 chipset enable is equal to sis540 plus superio "poking".
      
      Superio poking equals IT8705F flash write enable, which is currently
      dealt with on a board by board basis in board_enable.c. Not all
      630 and newer based boards come with it8705/sis950 superios.
      
      Corresponding to flashrom svn r794.
      Signed-off-by: default avatarLuc Verhaegen <libv@skynet.be>
      Acked-by: default avatarSean Nelson <audiohacked@gmail.com>
      9892ca6b
  4. 08 Dec, 2009 1 commit
  5. 03 Dec, 2009 1 commit
  6. 01 Dec, 2009 1 commit
  7. 29 Nov, 2009 1 commit
  8. 28 Nov, 2009 4 commits
  9. 27 Nov, 2009 1 commit
    • Michael Karcher's avatar
      Use common jedec functionality where appropriate · 1c296ca8
      Michael Karcher authored
      
      The deleted function in en29f002a.c is reintroduced as
      write_by_byte_jedec in jedec.c as it contains no chip-specific
      instructions. It is not yet used in other chip drivers, as key addresses
      (0x2AAA/0x5555) are often specified with less bits. After crosschecking
      datasheets, most of the fixmes can probably be resolved as indicated in
      them, causing significant code reduction.
      
      The common JEDEC code for bytewise programming does not program 0xFF
      at all. The chips that had a dedicated bytewise flash function which
      has been changed to write_jedec_1 thus changed flashing behaviour
      and the "write" test flag has been removed. This applies to: AMD
      Am29F002BB/Am29F002NBB AMD Am29F002BT/Am29F002NBT (TEST_OK_PREW before)
      AMIC A29002B AMIC A29002T (TEST_OK_PREW before) EON EN29F002(A)(N)B EON
      EN29F002(A)(N)T (TEST_OK_PREW before) Macronix MX29F001B (TEST_OK_PREW
      before) Macronix MX29F001T (TEST_OK_PREW before) Macronix MX29F002B
      Macronix MX29F002T (TEST_OK_PREW before) Macronix MX29LV040
      
      Similar analysis should be performed for the read id stuff.
      
      Corresponding to flashrom svn r785.
      Signed-off-by: default avatarMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
      Acked-by: default avatarSean Nelson <audiohacked@gmail.com>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      1c296ca8
  10. 26 Nov, 2009 3 commits
    • Carl-Daniel Hailfinger's avatar
      Add support for Intel 3400 series / 5 series chipset · 797a8346
      Carl-Daniel Hailfinger authored
      Found in Intel document 322170 (Intel 5 Series Chipset and Intel 3400
      Series Chipset Specification Update).
      According to http://pciids.sourceforge.net/
      
       we probably should match all
      IDs from 0x3b00-0x3b1f, but so far I didn't find an Intel doc saying the
      same.
      If anybody has contacts at Intel and can check, I'd be happy to add the
      rest of the IDs.
      
      Corresponding to flashrom svn r784.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarSean Nelson <audiohacked@gmail.com>
      797a8346
    • Michael Karcher's avatar
      Refine support for the JEDEC Software Data Protection · 972cec28
      Michael Karcher authored
      
      This patch removes the extremely dangerous unprotect_jedec function
      which is not used at all within flashrom code, and renames the
      misleadingly named protect_jedec function to start_program_jedec.
      
      Calls to protect_jedec after flashing are removed, because a) on LPC
      chips, the command sent by protoct_jedec is not even in the datasheet
      and b) on parallel chips, the block write command issued before already
      contained the software protection sequence, so software protection is
      definitely enabled.
      
      This patch also removes two clones of protect_jedec
      
      Background: JEDEC Software Data Protection started as an optional
      feature, which was disabled on the first single-voltage-flash chips.
      The software data protection is the need to prefix a write with a magic
      "write enable" command, while without write protection every write
      access into the chip's address space modifies flash content. This magic
      write enable command also tells the flash chip that the programmer
      obviously support sending write-enable commands and turns off the "any
      write modifies flash content" mode. There also exist a two-command (6
      writes) sequence that disables Software Data Protection completey, which
      should only ever be used to prepare updating with a device that can't
      handle software data protection.
      
      Corresponding to flashrom svn r783.
      Signed-off-by: default avatarMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
      Acked-by: default avatarSean Nelson <audiohacked@gmail.com>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      972cec28
    • Zheng Bao's avatar
      Add entries of W25x32 and W25x64 · 1db2b759
      Zheng Bao authored
      
      The model_ids are already in the header.
      
      W25x32 has been successfully probed. W25x64 is not available, the entry
      is based on the datasheet.
      
      Corresponding to flashrom svn r782.
      Signed-off-by: default avatarZheng Bao <zheng.bao@amd.com>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      1db2b759
  11. 25 Nov, 2009 5 commits
  12. 24 Nov, 2009 5 commits
  13. 23 Nov, 2009 2 commits
  14. 22 Nov, 2009 1 commit
    • Carl-Daniel Hailfinger's avatar
      ft2232_spi: add some error handling · a2441cef
      Carl-Daniel Hailfinger authored
      
      Pretty much everybody who used the FT2232 SPI driver had problems with
      incorrect reads from time to time. One reason was that the hardware is
      pretty timing sensitive even for reads.
      
      The other reason was that the code silently ignored errors. This patch
      doesn't add any error recovery, but it will emit error messages if
      FT2232 communication goes wrong. That allows us to track down errors
      without investing hours in driver debugging.
      
      Thanks to Jeremy Buseman <naviathan@gmail.com> for testing. He found out
      that certain libftdi/libusb/kernel/hardware combinations drop some bytes
      without returning any error codes.
      
      Corresponding to flashrom svn r769.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarPaul Fox <pgf@laptop.org>
      a2441cef
  15. 21 Nov, 2009 1 commit
  16. 20 Nov, 2009 1 commit
  17. 17 Nov, 2009 1 commit
  18. 16 Nov, 2009 4 commits
  19. 15 Nov, 2009 1 commit