projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tcl/target: add SPDX tag
[fw/openocd]
/
tcl
/
target
/
epc9301.cfg
diff --git
a/tcl/target/epc9301.cfg
b/tcl/target/epc9301.cfg
index 2b4155fbc61366944d575531a9432eb1049727a6..41021d522edc8ec794ea3b945a24410c286c0279 100644
(file)
--- a/
tcl/target/epc9301.cfg
+++ b/
tcl/target/epc9301.cfg
@@
-1,31
+1,34
@@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
# Cirrus Logic EP9301 processor on an Olimex CS-E9301 board.
if { [info exists CHIPNAME] } {
# Cirrus Logic EP9301 processor on an Olimex CS-E9301 board.
if { [info exists CHIPNAME] } {
- set
_CHIPNAME $CHIPNAME
+ set _CHIPNAME $CHIPNAME
} else {
} else {
- set
_CHIPNAME ep9301
+ set _CHIPNAME ep9301
}
if { [info exists ENDIAN] } {
}
if { [info exists ENDIAN] } {
- set
_ENDIAN $ENDIAN
+ set _ENDIAN $ENDIAN
} else {
} else {
- set
_ENDIAN little
+ set _ENDIAN little
}
}
-if { [info exists CPUTAPID
] } {
+if { [info exists CPUTAPID] } {
set _CPUTAPID $CPUTAPID
} else {
set _CPUTAPID $CPUTAPID
} else {
- # force an error till we get a good number
+ # Force an error until we get a good number.
set _CPUTAPID 0xffffffff
}
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
set _CPUTAPID 0xffffffff
}
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
-
jtag_nsrst_
delay 100
+
adapter srst
delay 100
jtag_ntrst_delay 100
set _TARGETNAME $_CHIPNAME.cpu
jtag_ntrst_delay 100
set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -work-area-
virt 0 -work-area-
phys 0x80014000 -work-area-size 0x1000 -work-area-backup 1
+target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -work-area-phys 0x80014000 -work-area-size 0x1000 -work-area-backup 1
#flash configuration
#flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
#flash configuration
#flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
-flash bank cfi 0x60000000 0x1000000 2 2 $_TARGETNAME
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x60000000 0x1000000 2 2 $_TARGETNAME