1 # SPDX-License-Identifier: GPL-2.0-or-later
4 # Texas Instruments AR7 SOC - used in many adsl modems.
5 # http://www.linux-mips.org/wiki/AR7
8 if { [info exists CHIPNAME] } {
9 set _CHIPNAME $CHIPNAME
14 if { [info exists ENDIAN] } {
20 if { [info exists CPUTAPID] } {
21 set _CPUTAPID $CPUTAPID
23 set _CPUTAPID 0x0000100f
26 jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID
28 set _TARGETNAME $_CHIPNAME.cpu
29 target create $_TARGETNAME mips_m4k -endian $_ENDIAN -chain-position $_CHIPNAME.cpu
31 # use onboard 4k sram as working area
32 $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 0x00001000