Skip to content
Snippets Groups Projects
  1. Apr 24, 2018
  2. Oct 19, 2017
  3. Aug 03, 2014
  4. Jul 13, 2013
  5. Aug 25, 2012
  6. Dec 18, 2011
  7. Dec 14, 2011
    • Carl-Daniel Hailfinger's avatar
      Use struct flashctx instead of struct flashchip for flash chip access · 63fd9026
      Carl-Daniel Hailfinger authored
      
      Struct flashchip is used only for the flashchips array and for
      operations which do not access hardware, e.g. printing a list of
      supported flash chips.
      
      struct flashctx (flash context) contains all data available in
      struct flashchip, but it also contains runtime information like
      mapping addresses. struct flashctx is expected to grow additional
      members over time, a prime candidate being programmer info.
      struct flashctx contains all of struct flashchip with identical
      member layout, but struct flashctx has additional members at the end.
      
      The separation between struct flashchip/flashctx shrinks the memory
      requirement of the big flashchips array and allows future extension
      of flashctx without having to worry about bloat.
      
      Corresponding to flashrom svn r1473.
      
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
      63fd9026
  8. Nov 23, 2011
  9. Jun 26, 2011
  10. Jun 19, 2011
  11. Oct 13, 2010
  12. Oct 10, 2010
    • Carl-Daniel Hailfinger's avatar
      Simplify calls to inner write functions · 184b95f4
      Carl-Daniel Hailfinger authored
      
      No behavioural changes, just equivalence transformations.
      
      Corresponding to flashrom svn r1209.
      
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      184b95f4
    • Carl-Daniel Hailfinger's avatar
      Unify chip write functions · b30a5ed4
      Carl-Daniel Hailfinger authored
      
      The currently used write functions (wrappers) all use helpers which
      perform the actual write (inner functions).
      
      The signature of the write wrappers is: int write_chip(struct flashchip
      *flash, uint8_t * buf);
      
      The signature of the inner write functions varied a lot. This patch
      changes them to: int write_part(struct flashchip *flash, uint8_t *src,
      int start, int len);
      
      Did you know that flashrom has only 8 inner write functions for all
      flash chips? write_page_write_jedec_common write_sector_jedec_common
      write_sector_28sf040 spi_chip_write_256_new spi_chip_write_1_new
      spi_aai_write_new write_page_82802ab write_page_m29f400bt
      
      Export all inner write functions.
      
      Change the function signature of wait_82802ab to eliminate single-use
      variables.
      
      Remove an error message in write_page_m29f400bt which was printed for
      every byte written regardless of success.
      
      Add sharplhf00l04.c to the list of flash chip drivers in the Makefile.
      While the functions in there are unused, I suspect we will need them
      later, and by hooking the file up we ensure that compilation won't
      break.
      
      Corresponding to flashrom svn r1208.
      
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
      b30a5ed4
  13. Oct 08, 2010
  14. Jul 03, 2010
  15. May 30, 2010
  16. Mar 24, 2010
  17. Mar 23, 2010
  18. Feb 26, 2010
  19. Feb 19, 2010
  20. Jan 20, 2010
    • Sean Nelson's avatar
      Convert various SST chips to use block_erasers · 51c83fb2
      Sean Nelson authored
      
      Convert the following chips to block_erasers: SST28SF040A SST29EE010
      SST29LE010 SST29EE020A SST29LE020 SST39SF010A SST39SF020A SST39SF040
      SST39VF512 SST39VF010 SST39VF020 SST39VF040 SST39VF080 SST49LF002A/B
      SST49LF003A/B SST49LF004C SST49LF008A SST49LF008C SST49LF016C SST49LF020
      SST49LF020A SST49LF040 SST49LF040B SST49LF080A SST49LF160C .
      
      Extend sst28sf040 to include chip and sector functions for block_eraser.
      Extend sst49lfxxxc to include chip, sector, block erasers functions for
      block_erasers. Extend sst_fwhub to include chip and sector functions for
      block_erasers. Add copyrights to changed files. Killed erase_sst_fwhub.
      Killed erase_49lfxxxc. NULL A/A mux mode full chip erasers. Ignore block
      locks in erase/write. Change comments from "PP mode" to "A/A mux mode"
      
      Corresponding to flashrom svn r877.
      
      Signed-off-by: default avatarSean Nelson <audiohacked@gmail.com>
      Acked-by: default avatarMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
      51c83fb2
  21. Sep 02, 2009
  22. Aug 09, 2009
  23. Jul 20, 2009
  24. Jun 15, 2009
  25. Jun 05, 2009
  26. May 16, 2009
  27. Mar 06, 2009
  28. Mar 05, 2009
    • 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
  29. Jan 25, 2009
  30. Oct 17, 2007
  31. Sep 09, 2007
  32. Aug 29, 2007
  33. Aug 23, 2007
  34. May 24, 2007
Loading