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>
This commit is contained in:
Antonio Borneo
2010-03-26 15:17:46 +08:00
committed by Øyvind Harboe
parent ed81249129
commit 27b98c2fa5
12 changed files with 24 additions and 20 deletions
+2 -2
View File
@@ -7,9 +7,9 @@ source [find target/smp8634.cfg]
$_TARGETNAME configure -event reset-init { x300t_init }
# 1MB CFI capable flash
# flash bank <driver> <base> <size> <chip_width> <bus_width>
# flash bank <name> <driver> <base> <size> <chip_width> <bus_width> <target>
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME cfi 0xac000000 0x100000 2 2 0
flash bank $_FLASHNAME cfi 0xac000000 0x100000 2 2 $_TARGETNAME
proc x300t_init { } {
# Setup SDRAM config and flash mapping