summaryrefslogtreecommitdiff
path: root/tcl/board/imx27ads.cfg
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2010-03-26 15:17:46 +0800
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-03-26 08:42:58 +0100
commit27b98c2fa548a46bbd2e3f5417160bbfb6eb89a1 (patch)
tree8c16c74c71a967d5694fd4e1b0033b16f11e8671 /tcl/board/imx27ads.cfg
parented81249129d4b43159843712efa408660cf4c03d (diff)
downloadopenocd+libswd-27b98c2fa548a46bbd2e3f5417160bbfb6eb89a1.tar.gz
openocd+libswd-27b98c2fa548a46bbd2e3f5417160bbfb6eb89a1.tar.bz2
openocd+libswd-27b98c2fa548a46bbd2e3f5417160bbfb6eb89a1.tar.xz
openocd+libswd-27b98c2fa548a46bbd2e3f5417160bbfb6eb89a1.zip
TCL scripts: update to current "flash bank" syntax
While "flash bank" syntax has been changed long ago, several tcl script are still not fully update. Fix following cases related with "cfi" driver: - syntax error: the mandatory <name> parameter is missing - warning: the <target> parameter is a number, instead of the target name - the comment line above the command does not report actual syntax Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'tcl/board/imx27ads.cfg')
-rw-r--r--tcl/board/imx27ads.cfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcl/board/imx27ads.cfg b/tcl/board/imx27ads.cfg
index 664b4705..927647a9 100644
--- a/tcl/board/imx27ads.cfg
+++ b/tcl/board/imx27ads.cfg
@@ -5,7 +5,8 @@ $_TARGETNAME configure -event gdb-attach { reset init }
$_TARGETNAME configure -event reset-init { imx27ads_init }
# The IMX27 ADS board has a NOR flash on CS0
-flash_bank cfi 0xc0000000 0x00200000 2 2 0
+set _FLASHNAME $_CHIPNAME.flash
+flash_bank $_FLASHNAME cfi 0xc0000000 0x00200000 2 2 $_TARGETNAME
proc imx27ads_init { } {
# This setup puts RAM at 0xA0000000