summaryrefslogtreecommitdiff
path: root/tcl/board/omap2420_h4.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/omap2420_h4.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/omap2420_h4.cfg')
-rw-r--r--tcl/board/omap2420_h4.cfg6
1 files changed, 4 insertions, 2 deletions
diff --git a/tcl/board/omap2420_h4.cfg b/tcl/board/omap2420_h4.cfg
index c2190b5c..12efa053 100644
--- a/tcl/board/omap2420_h4.cfg
+++ b/tcl/board/omap2420_h4.cfg
@@ -8,5 +8,7 @@ reset_config trst_and_srst separate
# Board configs can vary a *LOT* ... parts, jumpers, etc.
# This GP board boots from cs0 using NOR (2x32M), and also
# has 64M NAND on cs6.
-flash bank cfi 0x04000000 0x02000000 2 2 $_TARGETNAME
-flash bank cfi 0x06000000 0x02000000 2 2 $_TARGETNAME
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x04000000 0x02000000 2 2 $_TARGETNAME
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x06000000 0x02000000 2 2 $_TARGETNAME