1. 15 Jun, 2009 1 commit
  2. 05 Jun, 2009 2 commits
  3. 16 May, 2009 2 commits
  4. 06 Mar, 2009 1 commit
  5. 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
  6. 25 Jan, 2009 1 commit
  7. 24 Apr, 2008 1 commit
    • Claus Gindhart's avatar
      82802ab: touch only blocks that need updating · ef300238
      Claus Gindhart authored
      
      Flash pages, which where excluded from updating using the exclude or the
      layout option, as well as areas, whose flash contents already contain
      the desired data, will be skipped. These ensures absolute data security
      of critical areas (BIOS boot block), e.g. against a sudden power off or
      a CPU hangup during flashing. As a nice side effect, it speeds up the
      flash process, if the BIOS to be flashed is very similar to the version
      in flash.
      
      Corresponding to flashrom svn r217 and coreboot v2 svn r3260.
      Signed-off-by: default avatarClaus Gindhart <claus.gindhart@kontron.com>
      Acked-by: default avatarStefan Reinauer <stepan@coresystems.de>
      ef300238
  8. 14 Mar, 2008 1 commit
  9. 13 Mar, 2008 1 commit
  10. 17 Oct, 2007 1 commit
  11. 09 Sep, 2007 1 commit
  12. 29 Aug, 2007 1 commit
  13. 23 Aug, 2007 4 commits
  14. 24 May, 2007 3 commits
  15. 23 May, 2007 2 commits
  16. 09 May, 2007 1 commit
  17. 06 Apr, 2007 1 commit
  18. 06 Feb, 2007 1 commit
  19. 23 Aug, 2006 1 commit
  20. 14 Mar, 2006 1 commit
  21. 23 Feb, 2006 1 commit
  22. 26 Nov, 2005 1 commit
  23. 27 Mar, 2004 1 commit
  24. 20 Mar, 2004 1 commit
  25. 18 Mar, 2004 1 commit
  26. 12 Sep, 2003 1 commit
  27. 28 Feb, 2003 1 commit
  28. 29 Jan, 2002 2 commits