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>
__archive__
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

View File

@ -8,8 +8,9 @@ source [find target/at91rm9200.cfg]
$_TARGETNAME configure -event gdb-attach { reset init }
$_TARGETNAME configure -event reset-init { at91rm9200_dk_init }
#flash bank <driver> <base> <size> <chip_width> <bus_width>
flash_bank cfi 0x10000000 0x00200000 2 2 0
#flash bank <name> <driver> <base> <size> <chip_width> <bus_width> <target>
set _FLASHNAME $_CHIPNAME.flash
flash_bank $_FLASHNAME cfi 0x10000000 0x00200000 2 2 $_TARGETNAME
proc at91rm9200_dk_init { } {

View File

@ -8,7 +8,7 @@ source [find target/pxa270.cfg]
# Override this in the interface config for parallel dongles
reset_config trst_and_srst separate
# flash bank <driver> <base> <size> <chip_width> <bus_width>
# flash bank <name> <driver> <base> <size> <chip_width> <bus_width> <target>
# 29LV650 64Mbit Flash
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME cfi 0x00000000 0x800000 2 2 0
flash bank $_FLASHNAME cfi 0x00000000 0x800000 2 2 $_TARGETNAME

View File

@ -125,6 +125,6 @@ $_TARGETNAME configure -work-area-phys 0x00000000 -work-area-size 0x1000 -work-a
#####################
#M29DW323DB - not working
#flash bank cfi <base> <size> <chip width> <bus width> <target#>
#flash bank <name> cfi <base> <size> <chip width> <bus width> <target>
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME cfi 0x50000000 0x0400000 2 2 0
flash bank $_FLASHNAME cfi 0x50000000 0x0400000 2 2 $_TARGETNAME

View File

@ -31,7 +31,8 @@ if { [info exists J4_OPTION] } {
if { $CS2_MODE == "NOR" } {
# 16 Mbytes address space; 16 bit bus width
# (older boards used 32MB parts, with upper 16 MB unusable)
flash bank cfi 0x02000000 0x01000000 2 2 $_TARGETNAME
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME cfi 0x02000000 0x01000000 2 2 $_TARGETNAME
proc flashprobe {} { flash probe 0 }
} elseif { $CS2_MODE == "NAND" } {
# 64 Mbyte small page; 8 bit bus width

View File

@ -32,6 +32,6 @@ $_TARGETNAME configure -event reset-init {
#flash configuration
#flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
#flash bank <name> <driver> <base> <size> <chip_width> <bus_width> <target> [driver_options ...]
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME cfi 0x00000000 0x1000000 2 2 0
flash bank $_FLASHNAME cfi 0x00000000 0x1000000 2 2 $_TARGETNAME

View File

@ -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

View File

@ -2,7 +2,8 @@
source [find target/imx27.cfg]
# The Logic PD 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
#
# FIX ME, Add support to

View File

@ -114,6 +114,6 @@ arm7_9 dcc_downloads enable # Enable faster DCC downloads
# Flash configuration
#####################
#flash bank cfi <base> <size> <chip width> <bus width> <target#>
#flash bank <name> cfi <base> <size> <chip width> <bus width> <target>
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME cfi 0x20000000 0x2000000 2 2 0
flash bank $_FLASHNAME cfi 0x20000000 0x2000000 2 2 $_TARGETNAME

View File

@ -120,7 +120,7 @@ arm7_9 dcc_downloads enable # Enable faster DCC downloads
# Flash configuration
#####################
#flash bank cfi <base> <size> <chip width> <bus width> <target#>
#flash bank <name> cfi <base> <size> <chip width> <bus width> <target>
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME cfi 0x20000000 0x1000000 2 2 0
flash bank $_FLASHNAME cfi 0x20000000 0x1000000 2 2 $_TARGETNAME

View File

@ -90,8 +90,8 @@ $_TARGETNAME configure -event reset-init {
# Flash configuration
#####################
#flash bank cfi <base> <size> <chip width> <bus width> <target#>
#flash bank <name> cfi <base> <size> <chip width> <bus width> <target>
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME cfi 0x10000000 0x01000000 2 2 0
flash bank $_FLASHNAME cfi 0x10000000 0x01000000 2 2 $_TARGETNAME

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

View File

@ -54,7 +54,7 @@ $_TARGETNAME configure -event reset-deassert-post {at91sam_init}
# Flash configuration
#flash bank cfi <base> <size> <chip width> <bus width> <target#>
#flash bank <name> cfi <base> <size> <chip width> <bus width> <target>
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME cfi 0x10000000 0x01000000 2 2 $_TARGETNAME