1. 23 May, 2015 1 commit
  2. 03 Apr, 2015 1 commit
  3. 01 Mar, 2015 2 commits
  4. 18 Feb, 2015 1 commit
    • Stefan Tauner's avatar
      Fix a number of problems in mstarddc_spi.c · adadca66
      Stefan Tauner authored
      
      Coverity has brought up the following problems:
      
      mstarddc_spi_send_command():
       - CID 1270702: bad comparison of malloced pointer 'cmd'.
       - CID 1270701: a NULL pointer dereference possible because of above.
      
      Simply checking the return value of malloc in a valid way fixes both problems.
      
      mstarddc_spi_init():
       - CID 1270699 and 1270700: Memory leak of i2c_device.
      
      This patch revamps the function in various ways to fix these issues and some
      other irritating bits.
      It reduces scopes of variables where possible, pushes the code towards our
      coding standards and introduces a label-based resource cleanup at the end.
      
      Corresponding to flashrom svn r1885.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarAlexandre Boeglin <alex@boeglin.org>
      adadca66
  5. 11 Feb, 2015 1 commit
  6. 10 Feb, 2015 1 commit
  7. 08 Feb, 2015 3 commits
    • Justin Chevrier's avatar
      Add support for the Microchip PICkit2 as an SPI programmer · 66e554bc
      Justin Chevrier authored
      This patch was inspired by the code in AVRDude (open source Atmel AVR
      programmer) to support the PICkit2 written by Doug Brown [1]. The
      Dediprog code in flashrom was used as the template for this code with
      some reference to the ft2232 code as well.
      
      [1] - https://github.com/steve-m/avrdude/blob/master/pickit2.c
      
      
      
      Corresponding to flashrom svn r1881.
      Signed-off-by: default avatarJustin Chevrier <jchevrier@gmail.com>
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      66e554bc
    • Stefan Tauner's avatar
      Refine version check of libpci function pci_get_dev · 56734503
      Stefan Tauner authored
      
      The way more elegant check for the header fails unfortunately on CentOS 4.9
      because PCI_LIB_VERSION is not defined at all although the domain parameter
      is present. This patch jumps through the hoops via an additional check in the
      Makefile to determine if the function accepts 5 parameters (new version) or
      not (old version).
      
      Corresponding to flashrom svn r1880.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      56734503
    • Stefan Tauner's avatar
      Add a bunch of new/tested stuff and various small changes 22 · 5c316f95
      Stefan Tauner authored
      
      Tested mainboards:
      OK:
       - AOpen UK79G-1394 (used in EZ18 barebones)
         Reported by Lawrence Gough
       - ASUS M4N78 SE
         Reported by Dima Veselov
       - ASUS P5LD2-VM
         Mark board enable as tested (reported by Dima Veselov)
       - GIGABYTE GA-970A-UD3P (rev. 2.0)
         Reported by trucmar on IRC
       - GIGABYTE GA-990FXA-UD3 (rev. 4.0)
         Reported by ROKO__ on IRC
       - GIGABYTE GA-H77-DS3H (rev. 1.1)
         Reported by Evgeniy Edigarev
       - GIGABYTE GA-P55-USB3 (rev. 2.0)
         Reported by Måns Thörnqvist
       - MSI MS-7817 (H81M-E33)
         Reported by Igor Kolker
      
      Chipsets:
       - Marked Intel Bay Trail (0x0f1c) as tested OK
         Reported by Antonio Ospite
       - Refine Intel IDs
          * Add IDs for Braswell
          * Add IDs for 9 Series PCHs (e.g. H97, Z97)
          * Rename Wellsburg devices slightly
      
      Flash chips:
       - Atmel AT25DF041A to PREW (+PREW)
         Reported by Tai-hwa Liang
       - Atmel AT26DF161 to PREW (+EW)
         Reported by Steve Shenton
       - Atmel AT45DB011D to PREW (+PREW)
         Reported by The Raven
       - Atmel AT45DB642D to PREW (+PREW)
         Reported by Mahesh Mokal
       - Eon EN25F32 to PREW (+PREW)
         Reported by Arman Khodabande
       - Eon EN25F40 to PREW (+REW)
         Reported by Jerrad Pierce
       - Eon EN25QH16 to PREW (+EW)
         Reported by Ben Johnson
       - GigaDevice GD25Q20(B) to PREW (+PREW)
         Reported by Gilles Aurejac
       - Macronix MX25U6435E/F to PR (+PR)
         Reported by Matt Taggart
       - PMC Pm25LV512(A) to PREW (+PREW)
         Reported by The Raven
       - SST SST39VF020 to PREW (+PREW)
         Reported by Urja Rannikko
       - Winbond W25Q40.V to PREW (+EW)
         Reported by Torben Nielsen
       - Add E variants of MX25Lx006 (MX25L2006E, MX25L4006E, MX25L8006E).
       - Add MX25L6465E variant.
       - There was never a MX25L12805 AFAICT.
       - Split MX25L12805 from models with the same ID but an additional 32 kB
         eraser: MX25L12835F/MX25L12845E/MX25L12865E.
       - Add a bunch of ST parallel NOR flash chip IDs.
      
      Miscellaneous:
       - Whitelist ThinkPad X200.
       - Constify master parameter of register_master().
       - Remove FEATURE_BYTEWRITES because it was never used at all.
       - Refine hwseq messages and make them less prominent.
       - Fix the yet unused PRIxCHIPADDR format string thingy.
       - Fix copy&paste error in spi_prettyprint_status_register_bp().
         Spotted by Pablo Cases.
       - Add an additional SMBus controller revision to identify another Yangtze
         model. Thanks to Dan Christensen for reporting this issue.
       - dediprog: add missing include for stdlib.h.
         This fixes (at least) building on FreeBSD and DragonflyBSD with gcc.
       - Remove references to struct pci_filter from programmer.h.
         It is only needed in internal.c where it has a complete type. Having
         it in programmer.h provokes a warning by some old versions of gcc.
       - Tiny other stuff.
      
      Corresponding to flashrom svn r1879.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      5c316f95
  8. 27 Jan, 2015 1 commit
  9. 26 Jan, 2015 2 commits
  10. 25 Jan, 2015 4 commits
  11. 24 Jan, 2015 2 commits
  12. 19 Jan, 2015 1 commit
  13. 10 Jan, 2015 7 commits
  14. 05 Jan, 2015 1 commit
  15. 20 Dec, 2014 2 commits
  16. 12 Dec, 2014 1 commit
    • Jernej Škrabec's avatar
      Add support for Spansion S25FL127S · e814a9b6
      Jernej Škrabec authored
      
      This flash chip can be configured (one time) to use 64 KiB or 256 KiB sectors.
      Additionally, in the 64 KiB mode it supports 16 4 KiB sub-sectors that can be
      (one time) programmed to be on the top or bottom of the device. The sub-sectors
      can be erased with the 0x20 opcode but because this opcode does not work
      with the remaining sectors and flashrom can not cope with that the 0x20
      opcode is not supported yet.
      
      This patch adds two definitions, one for the 64 KiB and 256 KiB configuration
      respectively. The device also shares the RDID with the various S25FL128
      devices so we have to increase the maximum number of successfully probed
      chips to 8.
      
      The 64 KiB mode was tested on real hardware.
      
      Corresponding to flashrom svn r1858.
      Signed-off-by: default avatarJernej Škrabec <jernej.skrabec@planet.si>
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      e814a9b6
  17. 07 Dec, 2014 1 commit
  18. 05 Dec, 2014 1 commit
  19. 30 Nov, 2014 1 commit
  20. 01 Nov, 2014 2 commits
  21. 19 Oct, 2014 2 commits
  22. 09 Sep, 2014 1 commit
  23. 05 Sep, 2014 1 commit