1. 16 Nov, 2009 32 commits
  2. 15 Nov, 2009 8 commits
    • David Brownell's avatar
      ARM11: use now-generic memory utils · 5d1a9033
      David Brownell authored
      
      
      Now the ARM11 cores can use the renamed arm_checksum_memory()
      and arm_blank_check_memory() routines ... do so.
      
      Sanity checked with "flash erase_check" of both NOR banks on an
      OMAP2420 ... the algorithm code dumped four lines of of "poll"
      status after each of almost 520 blocks (yes, *very* annoying) but
      gave plausible results after producing that spam.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      5d1a9033
    • David Brownell's avatar
      ARM11: fixup method table · 2280ddee
      David Brownell authored
      
      
      Three changes:  remove ARM11_HANDLER() in favor of normal structure
      initialization syntax; fix goofy indentation in that structure; and
      don't needlessly export arm11_register_commands(), it's only called
      through that method table.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      2280ddee
    • David Brownell's avatar
      ARM: memory utils aren't ARM7/ARM9 dependent · 269040bb
      David Brownell authored
      
      
      The arm7_9_checksum_memory() and arm7_9_blank_check_memory()
      routines are not actually specific to the ARM7 and ARM9 core
      generations ... they can work for any core which can run
      algorithms using basic ARM (not Thumb) instructions.
      
      Rename them; move the declarations to a more generic site;
      likewise move the code (and tidy it a bit in the process).
      
      NOTE:  the blank_check() method falsely returned a success
      status (0) on one error path, when the algorithm failed.
      Fixed this bug.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      269040bb
    • David Brownell's avatar
      target: make "examined" flag be per-target · 9ac7cdec
      David Brownell authored
      
      
      Previously this flag was stored in "target_type", so that for example
      if there were two ARM7TDMI targets in a scan chain, both would claim
      to have been examined although only the first one actually had its
      examine() method called.
      
      Move this state to where it should have been in the first place, and
      hide a method that didn't need exposure ... the flag is write-once.
      
      Provide some doxygen.  The examine() method is confusing, since it
      isn't separating one-time setup from the after-each-reset stuff.  And
      the ARM7/ARM9 version is, somewhat undesirably, not leaving the debug
      state alone after reset ... probably more of an issue for trace setup
      than for watchpoints and breakpoints.
      
      Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
      9ac7cdec
    • Zachary T Welch's avatar
      arm-jtag-ew,jlink: switch to COMMAND_HANDLER · f3013660
      Zachary T Welch authored
      These drivers were overlooked during the recent upgrade.  Convert them,
      moving their registration routines to eliminate their declarations.
      f3013660
    • Zachary T Welch's avatar
      rlink: fix overzealous sed · 67319688
      Zachary T Welch authored
      Fix an instance where my cleanup when awry.
      67319688
    • Zachary T Welch's avatar
      remove unused arm_jtag_buf_to_* helpers · a502676d
      Zachary T Welch authored
      Removes unused arm_jtag_buf_* helpers from arm_jtag.[ch].  These could
      reappear if patches are provided to conver the tree to use them, but
      this code should not be in the master tree until that series is ready.
      a502676d
    • Zachary T Welch's avatar
      remove unused buf_to_u32_handler · bc07ee82
      Zachary T Welch authored
      Purge an unused routine from the tree and remove a layering violation.
      If this code is needed, it should reappear somwhere in src/jtag/,
      where struct scan_field gets defined.
      bc07ee82