1 # SPDX-License-Identifier: GPL-2.0-or-later
3 if { [info exists CHIPNAME] } {
4 set _CHIPNAME $_CHIPNAME
9 if { [info exists CPUTAPID] } {
10 set _CPUTAPID $CPUTAPID
12 set _CPUTAPID 0x00000001
15 jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID
17 set _TARGETNAME $_CHIPNAME.cpu
18 target create $_TARGETNAME mips_m4k -endian big -chain-position $_TARGETNAME