tcl/target: add SPDX tag
[fw/openocd] / tcl / target / tnetc4401.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 # Texas Instruments (TI) TNETC4401, MIPS32 DOCSIS-tailored SoC (4Kc-based)
4 # Used in Knovative KC-100 and Motorola Surfboard SB5120 cable modems.
5 # Datasheet: https://brezn.muc.ccc.de/~mazzoo/DOCSIS/tnetc4401.pdf
6 transport select jtag
7 set _TARGETNAME tnetc4401
8 set _CPUTAPID 0x0000100f
9 jtag newtap $_TARGETNAME tap -irlen 5 -ircapture 0x01 -irmask 0x1f -expected-id $_CPUTAPID
10 target create $_TARGETNAME mips_m4k -chain-position $_TARGETNAME.tap -endian big
11
12 # May need to halt manually before calling reset init
13 $_TARGETNAME configure -event reset-init {
14         halt
15         echo "Attempting to disable watchdog..."
16         mwb phys 0xa8610b00 0 256
17         halt
18         wait_halt
19 }