e95f633db1b7cb14f8af1ec250106bdc93517abf
[fw/openocd] / tcl / target / smp8634.cfg
1 # script for Sigma Designs SMP8634 (eventually even SMP8635)
2
3 if { [info exists CHIPNAME] } {
4    set _CHIPNAME $CHIPNAME
5 } else {
6    set _CHIPNAME smp8634
7 }
8
9 if { [info exists ENDIAN] } {
10    set _ENDIAN $ENDIAN
11 } else {
12    set _ENDIAN little
13 }
14
15 if { [info exists CPUTAPID] } {
16    set _CPUTAPID $CPUTAPID
17 } else {
18    set _CPUTAPID 0x08630001
19 }
20
21 adapter srst delay 100
22 jtag_ntrst_delay 100
23
24 reset_config trst_and_srst separate
25
26 # jtag scan chain
27 # format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
28 jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1
29
30 set _TARGETNAME $_CHIPNAME.cpu
31 target create $_TARGETNAME mips_m4k -endian $_ENDIAN