target: Remove "-variant" argument
[openocd.git] / tcl / target / at91r40008.cfg
blob912bd0ea2f8810790d8ff3928c7412b31aa61ff6
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
9 } else {
10    set _CHIPNAME at91r40008
13 if { [info exists ENDIAN] } {
14    set _ENDIAN $ENDIAN
15 } else {
16    set _ENDIAN little
19 # Setup the JTAG scan chain.
20 if { [info exists CPUTAPID] } {
21    set _CPUTAPID $CPUTAPID
22 } else {
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
29 $_TARGETNAME configure -work-area-phys 0x20000 -work-area-size 0x20000 -work-area-backup 0