4517bcbd35
code polishing to be consistent with other scripts Change-Id: Ib52a92f48df9d2bdf543792b856e33aa04dbebe3 Signed-off-by: Radek Dostal <radek.dostal@streamunlimited.com> Reviewed-on: http://openocd.zylin.com/2779 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
17 lines
356 B
INI
17 lines
356 B
INI
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
|
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
|
target create $_TARGETNAME mips_m4k -endian big -chain-position $_TARGETNAME
|