target/adi_v5_swd: move setting of do_reconnect one level up
[openocd.git] / tcl / target / vybrid_vf6xx.cfg
blob776c16bbf89b3e065b4e31786e45ec3165794d87
1 # SPDX-License-Identifier: GPL-2.0-or-later
4 # Freescale Vybrid VF610
7 if { [info exists CHIPNAME] } {
8         set _CHIPNAME $CHIPNAME
9 } else {
10         set _CHIPNAME vf610
13 if { [info exists A5_JTAG_TAPID] } {
14         set _A5_JTAG_TAPID $A5_JTAG_TAPID
15 } else {
16         set _A5_JTAG_TAPID 0x4BA00477
19 if { [info exists A5_SWD_TAPID] } {
20         set _A5_SWD_TAPID $A5_SWD_TAPID
21 } else {
22         set _A5_SWD_TAPID 0x3BA02477
25 if { [using_jtag] } {
26         set _A5_TAPID $_A5_JTAG_TAPID
27 } else {
28         set _A5_TAPID $_A5_SWD_TAPID
31 source [find target/swj-dp.tcl]
33 swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_A5_TAPID
34 dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
36 set _TARGETNAME $_CHIPNAME.cpu
37 target create ${_TARGETNAME}0 cortex_a -dap $_CHIPNAME.dap -dbgbase 0xc0088000
38 target create ${_TARGETNAME}1 cortex_m -dap $_CHIPNAME.dap -ap-num 3 -defer-examine
39 adapter speed 1000