1. 23 Dec, 2010 1 commit
  2. 29 Sep, 2010 2 commits
  3. 21 Sep, 2010 1 commit
  4. 15 Jun, 2010 1 commit
  5. 14 Jun, 2010 1 commit
  6. 11 Jun, 2010 1 commit
  7. 09 Jun, 2010 1 commit
  8. 26 May, 2010 1 commit
  9. 16 May, 2010 3 commits
  10. 13 May, 2010 2 commits
  11. 05 May, 2010 3 commits
  12. 10 Apr, 2010 1 commit
  13. 26 Mar, 2010 1 commit
  14. 16 Mar, 2010 1 commit
    • Bradey Honsinger's avatar
      image loading: fix problem with offsets > 0x80000000 · f85ad1e5
      Bradey Honsinger authored
      
      
      Fixes bug that prevented users from specifying a base address of
      0x80000000 or higher in image commands (flash write_image, etm image,
      xscale trace_image).
      
      image.base_address is an offset from the start address contained in
      the image file (if there is one), or from 0 (for binary files). As a
      signed 32-bit int, it couldn't be greater than 0x7fffffff, which is a
      problem when trying to write a binary file to flash above that
      address. Changing it to a 64-bit long long keeps it as a signed
      offset, but allows it to cover the entire 32-bit address space.
      
      Signed-off-by: default avatarØyvind Harboe <oyvind.harboe@zylin.com>
      f85ad1e5
  15. 29 Jan, 2010 1 commit
  16. 14 Jan, 2010 1 commit
    • David Brownell's avatar
      NOR: add optional "flash erase_address" sector padding · 73566405
      David Brownell authored
      
      
      Add a NOR flash mechanism where erase_address ranges can be padded
      out to sector boundaries, triggering a diagnostic:
      
        > flash erase_address 0x0001f980 16
        address range 0x0001f980 .. 0x0001f98f is not sector-aligned
        Command handler execution failed
        in procedure 'flash' called at file "command.c", line 647
        called at file "command.c", line 361
        >
      
        > flash erase_address pad 0x0001f980 16
        Adding extra erase range, 0x0001f800 to 0x0001f97f
        Adding extra erase range, 0x0001f990 to 0x0001fbff
        erased address 0x0001f980 (length 16) in 0.095975s (0.163 kb/s)
        >
      
      This addresses what would otherwise be something of a functional
      regression.  An earlier version of the interface had a dangerous
      problem:  it would silently erase data outside the range it was
      told to erase.  Fixing that bug turned up some folk who relied on
      that unsafe behavior.  (The classic problem with interface bugs!)
      Now they can get that behavior again.  If they really need it,
      just specify "pad".
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      73566405
  17. 11 Jan, 2010 1 commit
  18. 09 Jan, 2010 1 commit
    • David Brownell's avatar
      src/flash/nor: usage/help/doc updates · 1c5c57ec
      David Brownell authored
      
      
      Make "usage" messages use the same EBNF as the User's Guide;
      no angle brackets.  Improve and correct various helptexts.
      
      Don't use "&function"; a function's name is its address.
      Remove a couple instances of pointless whitespace; shrink a
      few overlong lines; fix some bad indents.
      
      Add TODO list entry re full support for NAND/NOR bank names.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      1c5c57ec
  19. 28 Dec, 2009 1 commit
  20. 26 Dec, 2009 1 commit
    • David Brownell's avatar
      NOR: messaging fix · df58812b
      David Brownell authored
      Fix syntax error:  default to "wrote N bytes"; writing a
      single byte is an unusual case, not the normal one.
      df58812b
  21. 18 Dec, 2009 1 commit
  22. 16 Dec, 2009 1 commit
  23. 12 Dec, 2009 1 commit
  24. 07 Dec, 2009 2 commits
    • Zachary T Welch's avatar
      add 'flash list', rewrite 'flash banks' · 30a6e683
      Zachary T Welch authored
      Rename the existing 'flash banks' implementation as 'flash list', and
      replace the broken 'flash_banks' TCL wrapper with a new command handler.
      
      Adds documentation for the new 'flash list' command in the user guide.
      30a6e683
    • Zachary T Welch's avatar
      fix NOR flash regression · 56c5f636
      Zachary T Welch authored
      When factoring the bank setup command into flash_bank_add(), I forgot
      to include a call to the new helper.
      56c5f636
  25. 05 Dec, 2009 1 commit
    • Zachary T Welch's avatar
      move more nor flash implementation details · 04ee41de
      Zachary T Welch authored
      Splits the exec mode commands out of flash.c into the flash/nor/ files.
      The routines used by these high-level commands are moved into nor/core.c,
      with their internal declarations placed in nor/imp.h.
      
      Fixes distribution of <flash/nor/core.h> header.
      04ee41de
  26. 04 Dec, 2009 2 commits
    • Zachary T Welch's avatar
      add flash/nor/core.[ch] · c65d94f7
      Zachary T Welch authored
      The newly moved flash TCL routines access the internals of the module
      too much.  Fix the layering issues by adding new core NOR flash APIs:
      
      <flash/nor/core.h>:
        - flash_driver_find_by_name() - self-descriptive
      
      <flash/nor/imp.h>:
        - flash_bank_add()            - encapsulates adding banks to bank list
        - flash_bank_list()           - encapsulates retreiving bank list
      
      This allows the externs in flash/nor/imp.h to be removed, and
      these mechanisms may now be re-used by other flash module code.
      c65d94f7
    • Zachary T Welch's avatar
      add flash/nor/{tcl.c,imp.h} from flash/flash.c · 3cb0b560
      Zachary T Welch authored
      Moves the top-level 'flash' command handlers into flash/nor/tcl.c,
      with flash/nor/imp.h providing an internal implementation header
      to share non-public API components.
      3cb0b560