2009-10-06 22:55:04 +00:00
|
|
|
######################################
|
|
|
|
# Target: Marvell Dragonite CPU core
|
|
|
|
######################################
|
|
|
|
|
|
|
|
if { [info exists CHIPNAME] } {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _CHIPNAME $CHIPNAME
|
2009-10-06 22:55:04 +00:00
|
|
|
} else {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _CHIPNAME dragonite
|
2009-10-06 22:55:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if { [info exists ENDIAN] } {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _ENDIAN $ENDIAN
|
2009-10-06 22:55:04 +00:00
|
|
|
} else {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _ENDIAN little
|
2009-10-06 22:55:04 +00:00
|
|
|
}
|
|
|
|
|
2011-10-29 21:32:17 +00:00
|
|
|
if { [info exists CPUTAPID] } {
|
2009-10-06 22:55:04 +00:00
|
|
|
set _CPUTAPID $CPUTAPID
|
|
|
|
} else {
|
|
|
|
set _CPUTAPID 0x121003d3
|
|
|
|
}
|
|
|
|
|
|
|
|
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
|
|
|
|
|
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
|
|
|
target create $_TARGETNAME dragonite -endian $_ENDIAN -chain-position $_TARGETNAME
|
|
|
|
|
|
|
|
reset_config trst_and_srst
|
2010-03-15 15:41:30 +00:00
|
|
|
adapter_nsrst_delay 200
|
2009-10-06 22:55:04 +00:00
|
|
|
jtag_ntrst_delay 200
|
|
|
|
|