2010-12-16 14:33:16 +00:00
|
|
|
################################################################################
|
|
|
|
# Author: Michael Trensch (MTrensch@googlemail.com)
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
#Hilscher netX 10 CPU
|
2008-11-30 22:25:43 +00:00
|
|
|
|
2009-09-21 18:48:22 +00:00
|
|
|
if { [info exists CHIPNAME] } {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _CHIPNAME $CHIPNAME
|
2009-09-21 18:48:22 +00:00
|
|
|
} else {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _CHIPNAME netx10
|
2008-11-30 22:25:43 +00:00
|
|
|
}
|
|
|
|
|
2009-09-21 18:48:22 +00:00
|
|
|
if { [info exists ENDIAN] } {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _ENDIAN $ENDIAN
|
2009-09-21 18:48:22 +00:00
|
|
|
} else {
|
2011-10-29 21:32:17 +00:00
|
|
|
set _ENDIAN little
|
2008-11-30 22:25:43 +00:00
|
|
|
}
|
|
|
|
|
2011-10-29 21:32:17 +00:00
|
|
|
if { [info exists CPUTAPID] } {
|
2008-11-30 22:25:43 +00:00
|
|
|
set _CPUTAPID $CPUTAPID
|
|
|
|
} else {
|
2010-12-16 14:33:16 +00:00
|
|
|
set _CPUTAPID 0x25966021
|
2008-11-30 22:25:43 +00:00
|
|
|
}
|
|
|
|
|
2009-11-20 20:21:00 +00: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 05:17:03 +00:00
|
|
|
set _TARGETNAME $_CHIPNAME.cpu
|
2010-12-16 14:33:16 +00:00
|
|
|
target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME
|
2008-07-28 06:08:05 +00:00
|
|
|
|