diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-05-04 07:14:06 +0200 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-05-05 15:47:12 +0200 |
commit | 289cecebf068e7f988dcbbc8786f6acc96803963 (patch) | |
tree | 7e2ad7faa6f02ee69be935423c81ad52ab3483b0 | |
parent | 2889471b5807449a69611ddbc4750d10c5514b86 (diff) | |
download | openocd_libswd-289cecebf068e7f988dcbbc8786f6acc96803963.tar.gz openocd_libswd-289cecebf068e7f988dcbbc8786f6acc96803963.tar.bz2 openocd_libswd-289cecebf068e7f988dcbbc8786f6acc96803963.tar.xz openocd_libswd-289cecebf068e7f988dcbbc8786f6acc96803963.zip |
beagleboard: add support for various icepick versions
The beagleboard icepick jtag tap id's vary.
-rw-r--r-- | tcl/target/amdm37x.cfg | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tcl/target/amdm37x.cfg b/tcl/target/amdm37x.cfg index ab186815..75593af2 100644 --- a/tcl/target/amdm37x.cfg +++ b/tcl/target/amdm37x.cfg @@ -1,6 +1,6 @@ # # Copyright (C) 2010 by Karl Kurbjun -# Copyright (C) 2009, 2010 by Øyvind Harboe +# Copyright (C) 2009-2011 by Øyvind Harboe # Copyright (C) 2009 by David Brownell # Copyright (C) 2009 by Magnus Lundin # @@ -29,11 +29,11 @@ if { [info exists CHIPTYPE] } { switch $CHIPTYPE { dm37x { # Primary TAP: ICEpick-C (JTAG route controller) and boundary scan - set _JRC_TAPID 0x0b89102f + set _JRC_TAPID "-expected-id 0x1b89102f -expected-id 0x0b89102f" } am35x { # Primary TAP: ICEpick-C (JTAG route controller) and boundary scan - set _JRC_TAPID 0x0b7ae02f + set _JRC_TAPID "-expected-id 0x0b7ae02f" } default { error "ERROR: CHIPTYPE was set, but it was not set to a valid value. Acceptable values are \"dm37x\" or \"am35x\"." @@ -113,8 +113,7 @@ jtag configure $_CHIPNAME.d2d -event tap-enable \ "icepick_c_tapenable $_CHIPNAME.jrc 0" # Primary TAP: ICEpick - it is closest to TDI so last in the chain -jtag newtap $_CHIPNAME jrc -irlen 6 -ircapture 0x1 -irmask 0x3f \ - -expected-id $_JRC_TAPID +eval "jtag newtap $_CHIPNAME jrc -irlen 6 -ircapture 0x1 -irmask 0x3f $_JRC_TAPID" ###### # End of Chain Description |