1 # AT91R40008 target configuration file
3 # TRST is tied to SRST on the AT91X40 family.
4 reset_config srst_only srst_pulls_trst
7 if {[info exists CHIPNAME]} {
8 set _CHIPNAME $CHIPNAME
10 set _CHIPNAME at91r40008
13 if { [info exists ENDIAN] } {
19 # Setup the JTAG scan chain.
20 if { [info exists CPUTAPID] } {
21 set _CPUTAPID $CPUTAPID
23 set _CPUTAPID 0x1f0f0f0f
25 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
27 set _TARGETNAME $_CHIPNAME.cpu
28 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi
29 $_TARGETNAME configure -work-area-phys 0x20000 -work-area-size 0x20000 -work-area-backup 0