target/adi_v5_swd: move setting of do_reconnect one level up
[openocd.git] / tcl / target / c100.cfg
blobc268ba3ba20b6d6d54a8171a8dd8224fbcbe7aa5
1 # SPDX-License-Identifier: GPL-2.0-or-later
3 # c100 config.
4 # This is ARM1136 dual core
5 # this script only configures one core (that is used to run Linux)
7 # assume no PLL lock, start slowly
8 adapter speed 100
10 if { [info exists CHIPNAME] } {
11    set _CHIPNAME $CHIPNAME
12 } else {
13    set _CHIPNAME c100
16 if { [info exists ENDIAN] } {
17    set _ENDIAN $ENDIAN
18 } else {
19    set _ENDIAN little
22 if { [info exists CPUTAPID] } {
23    set _CPUTAPID $CPUTAPID
24 } else {
25    set _CPUTAPID 0x27b3645b
28 if { [info exists DSPTAPID] } {
29    set _DSPTAPID $DSPTAPID
30 } else {
31    set _DSPTAPID 0x27b3645b
34 jtag newtap $_CHIPNAME dsp -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_DSPTAPID
37 # Per ARM: DDI0211J_arm1136_r1p5_trm.pdf - the ARM 1136 as a 5 bit IR register
38 jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
40 set _TARGETNAME $_CHIPNAME.cpu
41 target create $_TARGETNAME arm11 -endian $_ENDIAN -chain-position $_TARGETNAME
43 # C100's ARAM 64k SRAM
44 $_TARGETNAME configure -work-area-phys 0x0a000000 -work-area-size 0x10000 -work-area-backup 0