2022-06-12 16:42:27 -05:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2019-08-23 08:51:00 -05:00
|
|
|
adapter srst 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
|
2014-09-08 15:11:02 -05:00
|
|
|
target create $_TARGETNAME mips_m4k -endian $_ENDIAN
|