2009-01-05 13:45:16 +00:00
|
|
|
# script for Sigma Designs SMP8634 (eventually even SMP8635)
|
|
|
|
|
|
|
|
if { [info exists CHIPNAME] } {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _CHIPNAME $CHIPNAME
|
2009-01-05 13:45:16 +00:00
|
|
|
} else {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _CHIPNAME smp8634
|
2009-01-05 13:45:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if { [info exists ENDIAN] } {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _ENDIAN $ENDIAN
|
2009-01-05 13:45:16 +00:00
|
|
|
} else {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _ENDIAN little
|
2009-01-05 13:45:16 +00:00
|
|
|
}
|
|
|
|
|
2011-10-29 21:32:17 +00:00
|
|
|
if { [info exists CPUTAPID] } {
|
2009-01-05 13:45:16 +00:00
|
|
|
set _CPUTAPID $CPUTAPID
|
|
|
|
} else {
|
|
|
|
set _CPUTAPID 0x08630001
|
|
|
|
}
|
|
|
|
|
2010-03-15 15:41:30 +00:00
|
|
|
adapter_nsrst_delay 100
|
2009-01-05 13:45:16 +00: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 21:32:17 +00:00
|
|
|
jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1
|
2009-01-05 13:45:16 +00:00
|
|
|
|
2009-09-04 05:17:03 +00:00
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
2009-01-05 13:45:16 +00:00
|
|
|
target create $_TARGETNAME mips_m4k -endian $_ENDIAN -variant
|