2009-01-19 21:42:24 -06:00
|
|
|
#use combined on interfaces or targets that can't set TRST/SRST separately
|
2009-07-08 01:32:27 -05:00
|
|
|
#
|
|
|
|
# Hmmm.... should srst_pulls_trst be used here like i.MX27???
|
2009-01-19 21:42:24 -06:00
|
|
|
reset_config trst_and_srst
|
|
|
|
|
2009-09-21 13:48:22 -05:00
|
|
|
if { [info exists CHIPNAME] } {
|
2011-10-29 16:32:17 -05:00
|
|
|
set _CHIPNAME $CHIPNAME
|
2009-09-21 13:48:22 -05:00
|
|
|
} else {
|
2011-10-29 16:32:17 -05:00
|
|
|
set _CHIPNAME imx21
|
2009-01-19 21:42:24 -06:00
|
|
|
}
|
|
|
|
|
2009-09-21 13:48:22 -05:00
|
|
|
if { [info exists ENDIAN] } {
|
2011-10-29 16:32:17 -05:00
|
|
|
set _ENDIAN $ENDIAN
|
2009-09-21 13:48:22 -05:00
|
|
|
} else {
|
2011-10-29 16:32:17 -05:00
|
|
|
set _ENDIAN little
|
2009-01-19 21:42:24 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-09-21 13:48:22 -05:00
|
|
|
# Note above there is 1 tap
|
2009-01-19 21:42:24 -06:00
|
|
|
|
|
|
|
# The CPU tap
|
2011-10-29 16:32:17 -05:00
|
|
|
if { [info exists CPUTAPID] } {
|
2009-01-19 21:42:24 -06:00
|
|
|
set _CPUTAPID $CPUTAPID
|
|
|
|
} else {
|
|
|
|
set _CPUTAPID 0x0792611f
|
|
|
|
}
|
2011-10-29 16:32:17 -05:00
|
|
|
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
|
2009-01-19 21:42:24 -06:00
|
|
|
|
|
|
|
|
|
|
|
# Create the GDB Target.
|
2009-09-04 00:17:03 -05:00
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
2009-01-19 21:42:24 -06:00
|
|
|
target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
|
|
|
|
|
|
|
|
arm7_9 dcc_downloads enable
|