2022-06-12 16:42:27 -05:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2012-02-04 20:06:42 -06:00
|
|
|
# i.MX28 config file.
|
|
|
|
# based off of the imx21.cfg file.
|
|
|
|
|
|
|
|
reset_config trst_and_srst
|
|
|
|
|
|
|
|
#jtag nTRST and nSRST delay
|
2019-08-23 08:51:00 -05:00
|
|
|
adapter srst delay 100
|
2012-02-04 20:06:42 -06:00
|
|
|
jtag_ntrst_delay 100
|
|
|
|
|
|
|
|
if { [info exists CHIPNAME] } {
|
|
|
|
set _CHIPNAME $CHIPNAME
|
|
|
|
} else {
|
|
|
|
set _CHIPNAME imx28
|
|
|
|
}
|
|
|
|
|
|
|
|
if { [info exists ENDIAN] } {
|
|
|
|
set _ENDIAN $ENDIAN
|
|
|
|
} else {
|
|
|
|
set _ENDIAN little
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Note above there is 1 tap
|
|
|
|
|
|
|
|
# The CPU tap
|
2013-05-02 10:04:45 -05:00
|
|
|
if { [info exists CPUTAPID] } {
|
2012-02-04 20:06:42 -06:00
|
|
|
set _CPUTAPID $CPUTAPID
|
|
|
|
} else {
|
|
|
|
set _CPUTAPID 0x079264f3
|
|
|
|
}
|
|
|
|
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
|
|
|
|
|
|
|
|
|
|
|
|
# Create the GDB Target.
|
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
2014-09-08 15:11:02 -05:00
|
|
|
target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
|
2012-02-04 20:06:42 -06:00
|
|
|
|
|
|
|
arm7_9 dcc_downloads enable
|