2008-04-23 08:10:27 -05:00
|
|
|
#Hilscher netX 500 CPU
|
2008-11-30 16:25:43 -06:00
|
|
|
|
2009-09-21 13:48:22 -05:00
|
|
|
if { [info exists CHIPNAME] } {
|
|
|
|
set _CHIPNAME $CHIPNAME
|
|
|
|
} else {
|
2008-11-30 16:25:43 -06:00
|
|
|
set _CHIPNAME netx500
|
|
|
|
}
|
|
|
|
|
2009-09-21 13:48:22 -05:00
|
|
|
if { [info exists ENDIAN] } {
|
|
|
|
set _ENDIAN $ENDIAN
|
|
|
|
} else {
|
2008-11-30 16:25:43 -06:00
|
|
|
set _ENDIAN little
|
|
|
|
}
|
|
|
|
|
|
|
|
if { [info exists CPUTAPID ] } {
|
|
|
|
set _CPUTAPID $CPUTAPID
|
|
|
|
} else {
|
2009-11-20 14:21:00 -06:00
|
|
|
set _CPUTAPID 0x07926021
|
2008-11-30 16:25:43 -06:00
|
|
|
}
|
|
|
|
|
2009-11-20 14:21:00 -06:00
|
|
|
# FIXME most reset config belongs in board code
|
2008-04-23 08:10:27 -05:00
|
|
|
reset_config trst_and_srst
|
|
|
|
jtag_nsrst_delay 100
|
|
|
|
jtag_ntrst_delay 100
|
2008-11-30 16:25:43 -06:00
|
|
|
|
2009-11-20 14:21:00 -06:00
|
|
|
# jtag scan chain
|
|
|
|
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
|
|
|
|
|
|
|
|
# that TAP is associated with a target
|
2009-09-04 00:17:03 -05:00
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
2009-11-20 14:21:00 -06:00
|
|
|
target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
|
2008-07-28 01:08:05 -05:00
|
|
|
|