target/adi_v5_swd: move setting of do_reconnect one level up
[openocd.git] / tcl / target / netl_xlp3xx.cfg
blob2366503cb61e097f72cc894fb82bdde1147128d9
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 # Target: XLP 300-series processors by NetLogic Microsystems
5 # See http://www.broadcom.com/products/Processors/Enterprise/XLP300-Series
7 # Use xlp304.cfg, xlp308.cfg, xlp316.cfg for particular processor model.
10 transport select jtag
12 global XLP_NT
14 for {set i $XLP_NT} {$i > 0} {incr i -1} {
15         jtag newtap xlp cpu_$i -irlen 5 -disable
16         if {$i != 1} {
17                 jtag configure xlp.cpu_$i -event tap-enable {}
18         }
20 jtag newtap xlp jrc -irlen 16 -expected-id 0x00011449
22 jtag configure xlp.cpu_1 -event tap-enable {
23         global XLP_NT
24         irscan xlp.jrc 0xe0
25         drscan xlp.jrc 1 1
26         for {set i $XLP_NT} {$i > 1} {incr i -1} {
27                 jtag tapenable xlp.cpu_$i
28         }
31 proc chipreset {} {
32         irscan xlp.jrc 0xab
33         drscan xlp.jrc 1 1
34         drscan xlp.jrc 1 0
37 jtag configure xlp.jrc -event setup "jtag tapenable xlp.cpu_1"
39 target create xlp.cpu_1 mips_mips64 -endian big -chain-position xlp.cpu_1