2015-01-30 06:05:31 -06:00
|
|
|
if { [info exists CHIPNAME] } {
|
|
|
|
set _CHIPNAME $_CHIPNAME
|
|
|
|
} else {
|
|
|
|
set _CHIPNAME ar9331
|
|
|
|
}
|
|
|
|
|
|
|
|
if { [info exists CPUTAPID] } {
|
|
|
|
set _CPUTAPID $CPUTAPID
|
|
|
|
} else {
|
|
|
|
set _CPUTAPID 0x00000001
|
|
|
|
}
|
|
|
|
|
|
|
|
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID
|
|
|
|
|
2015-05-21 11:12:39 -05:00
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
|
|
|
target create $_TARGETNAME mips_m4k -endian big -chain-position $_TARGETNAME
|