summaryrefslogtreecommitdiff
path: root/tcl/board/x300t.cfg
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-18 02:15:52 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-19 13:39:41 -0800
commit2dfa5e9c844a5a3f8aaca146c874f13570b8f667 (patch)
tree30178e8d65d17c173619a3a8b9921b8d4f911210 /tcl/board/x300t.cfg
parentfd654c8a3e3dbd5ab97eb6b3834ee462dd509a66 (diff)
downloadopenocd+libswd-2dfa5e9c844a5a3f8aaca146c874f13570b8f667.tar.gz
openocd+libswd-2dfa5e9c844a5a3f8aaca146c874f13570b8f667.tar.bz2
openocd+libswd-2dfa5e9c844a5a3f8aaca146c874f13570b8f667.tar.xz
openocd+libswd-2dfa5e9c844a5a3f8aaca146c874f13570b8f667.zip
update 'flash bank' usage in scripts
Sets $_FLASHNAME to "$_CHIPNAME.flash" and passes it as the first argument to 'flash bank'.
Diffstat (limited to 'tcl/board/x300t.cfg')
-rw-r--r--tcl/board/x300t.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcl/board/x300t.cfg b/tcl/board/x300t.cfg
index 3b094930..d9141809 100644
--- a/tcl/board/x300t.cfg
+++ b/tcl/board/x300t.cfg
@@ -8,7 +8,8 @@ $_TARGETNAME configure -event reset-init { x300t_init }
# 1MB CFI capable flash
# flash bank <driver> <base> <size> <chip_width> <bus_width>
-flash bank cfi 0xac000000 0x100000 2 2 0
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0xac000000 0x100000 2 2 0
proc x300t_init { } {
# Setup SDRAM config and flash mapping