1. 09 May, 2009 2 commits
  2. 08 May, 2009 2 commits
  3. 06 May, 2009 1 commit
  4. 01 May, 2009 2 commits
  5. 28 Apr, 2009 1 commit
  6. 24 Apr, 2009 1 commit
  7. 23 Apr, 2009 1 commit
  8. 21 Apr, 2009 1 commit
  9. 06 Mar, 2009 1 commit
  10. 05 Mar, 2009 1 commit
    • Carl-Daniel Hailfinger's avatar
      Use helper functions to access flash chips · 61a8bd27
      Carl-Daniel Hailfinger authored
      
      Right now we perform direct pointer manipulation without any abstraction
      to read from and write to memory mapped flash chips. That makes it
      impossible to drive any flasher which does not mmap the whole chip.
      
      Using helper functions readb() and writeb() allows a driver for external
      flash programmers like Paraflasher to replace readb and writeb with
      calls to its own chip access routines.
      
      This patch has the additional advantage of removing lots of unnecessary
      casts to volatile uint8_t * and now-superfluous parentheses which caused
      poor readability.
      
      I used the semantic patcher Coccinelle to create this patch. The
      semantic patch follows:
      @@
      expression a;
      typedef uint8_t;
      volatile uint8_t *b;
      @@
      - *(b) = (a);
      + writeb(a, b);
      @@
      volatile uint8_t *b;
      @@
      - *(b)
      + readb(b)
      @@
      type T;
      T b;
      @@
      (
       readb
      |
       writeb
      )
       (...,
      - (T)
      - (b)
      + b
       )
      
      In contrast to a sed script, the semantic patch performs type checking
      before converting anything.
      
      Tested-by: Joe Julian
      
      Corresponding to flashrom svn r418 and coreboot v2 svn r3971.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarFENG Yu Ning <fengyuning1984@gmail.com>
      61a8bd27
  11. 26 Jan, 2009 8 commits
  12. 23 Jan, 2009 1 commit
  13. 07 Jan, 2009 1 commit
  14. 15 Dec, 2008 1 commit
    • FENG yu ning's avatar
      Various ichspi.c refinements · f041e9b5
      FENG yu ning authored
      
      * add a generic preop-opcode-pair table.
      
      * rename ich_check_opcodes to ich_init_opcodes.
      
      * let ich_init_opcodes do not need to access flashchip structure:
        . move the definition of struct preop_opcode_pair to a better place
        . remove preop_opcode_pairs from 'struct flashchip'
        . modify ich_init_opcodes and generate_opcodes so that they do not access the flashchip structure
      
      * call ich_init_opcodes during chipset enable. Now OPCODES generation mechanism works.
      
      * fix a coding style mistake.
      
      Corresponding to flashrom svn r367 and coreboot v2 svn r3814.
      Signed-off-by: default avatarFENG yu ning <fengyuning1984@gmail.com>
      Acked-by: default avatarPeter Stuge <peter@stuge.se>
      f041e9b5
  15. 10 Dec, 2008 1 commit
  16. 08 Dec, 2008 1 commit
  17. 04 Dec, 2008 1 commit
  18. 03 Dec, 2008 1 commit
  19. 28 Nov, 2008 3 commits
  20. 18 Nov, 2008 1 commit
    • Carl-Daniel Hailfinger's avatar
      Check for failed SPI command execution · 598ec58e
      Carl-Daniel Hailfinger authored
      
      Although SPI itself does not have a mechanism to signal command failure,
      the SPI host may be unable to send a given command over the wire due
      to security or hardware limitations. The current code ignores these
      mechanisms completely and simply assumes almost every command succeeds.
      Complain if SPI command execution fails.
      
      Since locked down Intel chipsets (like the one we had problems with
      earlier) only allow a small subset of commands, find the common subset
      of commands between the chipset and the ROM in the chip erase case. That
      is accomplished by the new spi_chip_erase_60_c7() which can be used for
      chips supporting both 0x60 and 0xc7 chip erase commands.
      
      Both parts of the patch address problems seen in the real world. The
      increased verbosity for the error case will help us diagnose and address
      problems better.
      
      Corresponding to flashrom svn r345 and coreboot v2 svn r3757.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Otherwise: Acked-by: Stefan Reinauer <stepan@coresystems.de>
      598ec58e
  21. 15 Nov, 2008 1 commit
    • Carl-Daniel Hailfinger's avatar
      The AT25 and AT26 series SPI chips from Atmel are plain EEPROMs · d54ef6e7
      Carl-Daniel Hailfinger authored
      
      The AT45 series SPI chips are DataFlash EEPROMs which means they have
      odd (non-power-of-two) sector sizes, but some of the DataFlash chips can
      be configured or ordered with power-of-two sector sizes.
      
      Add probe support for the following Atmel SPI chips:
      AT25DF021
      AT25DF041A
      AT25DF081
      AT25DF161
      AT25DF321A
      AT25DF641
      AT25F512B
      AT25FS010
      AT25FS040
      AT26DF041
      AT26DF081A
      AT26DF161
      AT26DF161A
      AT26DF321
      AT26F004
      AT45CS1282
      AT45DB011D
      AT45DB021D
      AT45DB041D
      AT45DB081D
      AT45DB161D
      AT45DB321C
      AT45DB321D
      AT45DB642D
      
      Add an explanation why the following chips can't be probed:
      AT45BR3214B
      AT45D011
      AT45D021A
      AT45D041A
      AT45D081A
      AT45D161
      AT45DB011
      AT45DB011B
      AT45DB021A
      AT45DB021B
      AT45DB041A
      AT45DB081A
      AT45DB161
      AT45DB161B
      AT45DB321
      AT45DB321B
      AT45DB642
      
      Add the ID, but no probing function for this chip:
      AT25F512A
      
      Corresponding to flashrom svn r342 and coreboot v2 svn r3754.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Tested-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
      Tested-by: default avatarAndriy Gapon <avg@icyb.net.ua>
      Acked-by: default avatarMyles Watson <mylesgw@gmail.com>
      d54ef6e7
  22. 04 Nov, 2008 1 commit
  23. 03 Nov, 2008 1 commit
  24. 02 Nov, 2008 1 commit
  25. 29 Oct, 2008 1 commit
  26. 18 Oct, 2008 1 commit
  27. 07 Oct, 2008 1 commit
  28. 26 Sep, 2008 1 commit