2009-01-05 07:45:16 -06:00
|
|
|
# script for Sigma Designs SMP8634 (eventually even SMP8635)
|
|
|
|
|
|
|
|
if { [info exists CHIPNAME] } {
|
2011-10-29 16:32:17 -05:00
|
|
|
set _CHIPNAME $CHIPNAME
|
2009-01-05 07:45:16 -06:00
|
|
|
} else {
|
2011-10-29 16:32:17 -05:00
|
|
|
set _CHIPNAME smp8634
|
2009-01-05 07:45:16 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
if { [info exists ENDIAN] } {
|
2011-10-29 16:32:17 -05:00
|
|
|
set _ENDIAN $ENDIAN
|
2009-01-05 07:45:16 -06:00
|
|
|
} else {
|
2011-10-29 16:32:17 -05:00
|
|
|
set _ENDIAN little
|
2009-01-05 07:45:16 -06:00
|
|
|
}
|
|
|
|
|
2011-10-29 16:32:17 -05:00
|
|
|
if { [info exists CPUTAPID] } {
|
2009-01-05 07:45:16 -06:00
|
|
|
set _CPUTAPID $CPUTAPID
|
|
|
|
} else {
|
|
|
|
set _CPUTAPID 0x08630001
|
|
|
|
}
|
|
|
|
|
2010-03-15 10:41:30 -05:00
|
|
|
adapter_nsrst_delay 100
|
2009-01-05 07:45:16 -06:00
|
|
|
jtag_ntrst_delay 100
|
|
|
|
|
|
|
|
reset_config trst_and_srst separate
|
|
|
|
|
|
|
|
# jtag scan chain
|
|
|
|
# format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
|
2011-10-29 16:32:17 -05:00
|
|
|
jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1
|
2009-01-05 07:45:16 -06:00
|
|
|
|
2009-09-04 00:17:03 -05:00
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
2009-01-05 07:45:16 -06:00
|
|
|
target create $_TARGETNAME mips_m4k -endian $_ENDIAN -variant
|