tcl/target: add SPDX tag
[fw/openocd] / tcl / target / smp8634.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # script for Sigma Designs SMP8634 (eventually even SMP8635)
4
5 if { [info exists CHIPNAME] } {
6    set _CHIPNAME $CHIPNAME
7 } else {
8    set _CHIPNAME smp8634
9 }
10
11 if { [info exists ENDIAN] } {
12    set _ENDIAN $ENDIAN
13 } else {
14    set _ENDIAN little
15 }
16
17 if { [info exists CPUTAPID] } {
18    set _CPUTAPID $CPUTAPID
19 } else {
20    set _CPUTAPID 0x08630001
21 }
22
23 adapter srst delay 100
24 jtag_ntrst_delay 100
25
26 reset_config trst_and_srst separate
27
28 # jtag scan chain
29 # format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
30 jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1
31
32 set _TARGETNAME $_CHIPNAME.cpu
33 target create $_TARGETNAME mips_m4k -endian $_ENDIAN