target/adi_v5_swd: move setting of do_reconnect one level up
[openocd.git] / tcl / target / at91sam9.cfg
blobbc90d378fa5df327321d426d73e6167788fd56e4
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 ######################################
4 # Target:    Atmel AT91SAM9
5 ######################################
7 if { [info exists AT91_CHIPNAME] } {
8         set _CHIPNAME $AT91_CHIPNAME
9 } else {
10         error "you must specify a chip name"
13 if { [info exists ENDIAN] } {
14         set _ENDIAN $ENDIAN
15 } else {
16         set _ENDIAN little
19 if { [info exists CPUTAPID] } {
20         set _CPUTAPID $CPUTAPID
21 } else {
22         set _CPUTAPID 0x0792603f
25 reset_config trst_and_srst separate trst_push_pull srst_open_drain
27 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
29 adapter srst delay 300
30 jtag_ntrst_delay 200
32 adapter speed 3
34 ######################
35 # Target configuration
36 ######################
38 set _TARGETNAME $_CHIPNAME.cpu
39 target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME