summaryrefslogtreecommitdiff
path: root/tcl/board/lubbock.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/lubbock.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/lubbock.cfg')
-rw-r--r--tcl/board/lubbock.cfg6
1 files changed, 4 insertions, 2 deletions
diff --git a/tcl/board/lubbock.cfg b/tcl/board/lubbock.cfg
index 63cc2a41..32af386e 100644
--- a/tcl/board/lubbock.cfg
+++ b/tcl/board/lubbock.cfg
@@ -12,8 +12,10 @@ jtag_ntrst_delay 250
# CS0, CS1 -- two banks of CFI flash, 32 MBytes each
# each bank is 32-bits wide, two 16-bit chips in parallel
-flash bank cfi 0x00000000 0x02000000 2 4 $_TARGETNAME
-flash bank cfi 0x04000000 0x02000000 2 4 $_TARGETNAME
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x00000000 0x02000000 2 4 $_TARGETNAME
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x04000000 0x02000000 2 4 $_TARGETNAME
# CS2 low -- FPGA registers
# CS2 high -- 1 MByte SRAM at 0x0a00.0000 ... last 64K for scratch