]> git.sur5r.net Git - openocd/blob - tcl/target/atheros_ar9331.cfg
c5609bb1d35b2f62aa34caa565b69a4215d7cf71
[openocd] / tcl / target / atheros_ar9331.cfg
1 if { [info exists CHIPNAME] } {
2         set _CHIPNAME $_CHIPNAME
3 } else {
4         set _CHIPNAME ar9331
5 }
6
7 if { [info exists CPUTAPID] } {
8         set _CPUTAPID $CPUTAPID
9 } else {
10         set _CPUTAPID 0x00000001
11 }
12
13 jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID
14
15 set _TARGETNAME $_CHIPNAME.cpu
16 target create $_TARGETNAME mips_m4k -endian big -chain-position $_TARGETNAME