1. 09 Nov, 2011 1 commit
  2. 08 Nov, 2011 2 commits
  3. 06 Nov, 2011 1 commit
    • Stefan Tauner's avatar
      ichspi: use a variable to distinguish ich generations instead of spi_programmer->type · a8d838d9
      Stefan Tauner authored
      
      The type member is enough most of the time to derive the wanted
      information, but
       - not always (e.g. ich_set_bbar),
       - only available after registration, which we want to delay till the
         end of init, and
       - we really want to distinguish between chipset version-grained
         attributes which are not reflected by the registered programmer.
      
      Hence this patch introduces a new static variable which is set up
      early by the init functions and allows us to get rid of all "switch
      (spi_programmer->type)" in ichspi.c. We reuse the enum introduced
      for descriptor mode for the type of the new variable.
      
      Previously magic numbers were passed by chipset_enable wrappers. Now
      they use the enumeration items too. To get this working the enum
      definition had to be moved to programmer.h.
      
      Another noteworthy detail: previously we have checked for a valid
      programmer/ich generation all over the place. I have removed those
      checks and added one single check in the init method. Calling any
      function of a programmer without executing the init method first, is
      undefined behavior.
      
      Corresponding to flashrom svn r1460.
      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>
      a8d838d9
  4. 04 Nov, 2011 1 commit
  5. 02 Nov, 2011 1 commit
  6. 22 Oct, 2011 2 commits
  7. 21 Oct, 2011 2 commits
  8. 20 Oct, 2011 2 commits
  9. 14 Oct, 2011 1 commit
  10. 18 Sep, 2011 3 commits
  11. 17 Sep, 2011 4 commits
  12. 15 Sep, 2011 2 commits
    • Stefan Tauner's avatar
      ichspi: add ICH/PCH flash descriptor decoding via FDOC/FDOD · 1e14639f
      Stefan Tauner authored
      Based on the work of Matthias 'mazzoo' Wenzel this patch adds pretty
      printing of those ICH/PCH flash descriptor sections that are
      cached/mapped by the chipset (and which are therefore reachable via
      FDOC/FDOD registers).
      
      this includes the following:
      - content section:
          describes the image and some generic properties (number of
          sections, offset of sections, PCH/ICH and MCH/PROC strap
          offsets and lengths)
      - component section:
          identify the different SPI flash chips and their capabilities.
      - region section
          similarly to a partition table this describes the different regions.
          the content of FLREG* is derived from this section.
      - master section
          defines SPI master (host, ME, GbE) access rights of the
          individual regions. the content of PR* is derived from this section.
      
      this is only a part of the data included in the descriptor. other
      information can be retrieved from a complete binary dump of the
      descriptor region only.
      
      th...
      1e14639f
    • Urja Rannikko's avatar
      serprog: add SPI support · c93f5f12
      Urja Rannikko authored
      
      Adds a new opcode (0x13) that just relays SPI bytes and wires it up to be
      usable within serprog.c. Checks for mandatory opcodes are moved around and
      changed a bit, but non-SPI programmers should not be harmed by this patch.
      
      Corresponding to flashrom svn r1442.
      Signed-off-by: default avatarUrja Rannikko <urjaman@gmail.com>
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      c93f5f12
  13. 14 Sep, 2011 1 commit
  14. 13 Sep, 2011 2 commits
  15. 12 Sep, 2011 2 commits
  16. 11 Sep, 2011 1 commit
  17. 09 Sep, 2011 1 commit
  18. 08 Sep, 2011 2 commits
  19. 07 Sep, 2011 3 commits
  20. 06 Sep, 2011 2 commits
  21. 03 Sep, 2011 3 commits
  22. 31 Aug, 2011 1 commit