1 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Found on the 'TinCanTools' Hammer board.
5 if { [info exists CHIPNAME] } {
6 set _CHIPNAME $CHIPNAME
11 if { [info exists ENDIAN] } {
14 # This config file was defaulting to big endian..
18 if { [info exists CPUTAPID] } {
19 set _CPUTAPID $CPUTAPID
21 # Force an error until we get a good number.
22 set _CPUTAPID 0xffffffff
25 #use combined on interfaces or targets that cannot set TRST/SRST separately
26 reset_config trst_and_srst
29 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
31 set _TARGETNAME $_CHIPNAME.cpu
32 target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME
34 $_TARGETNAME configure -work-area-phys 0x30800000 -work-area-size 0x20000 -work-area-backup 0
36 # speed up memory downloads
37 arm7_9 fast_memory_access enable
38 arm7_9 dcc_downloads enable