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__
parent
ed81249129
commit
27b98c2fa5
|
@ -8,8 +8,9 @@ source [find target/at91rm9200.cfg]
|
||||||
$_TARGETNAME configure -event gdb-attach { reset init }
|
$_TARGETNAME configure -event gdb-attach { reset init }
|
||||||
$_TARGETNAME configure -event reset-init { at91rm9200_dk_init }
|
$_TARGETNAME configure -event reset-init { at91rm9200_dk_init }
|
||||||
|
|
||||||
#flash bank <driver> <base> <size> <chip_width> <bus_width>
|
#flash bank <name> <driver> <base> <size> <chip_width> <bus_width> <target>
|
||||||
flash_bank cfi 0x10000000 0x00200000 2 2 0
|
set _FLASHNAME $_CHIPNAME.flash
|
||||||
|
flash_bank $_FLASHNAME cfi 0x10000000 0x00200000 2 2 $_TARGETNAME
|
||||||
|
|
||||||
|
|
||||||
proc at91rm9200_dk_init { } {
|
proc at91rm9200_dk_init { } {
|
||||||
|
|
|
@ -8,7 +8,7 @@ source [find target/pxa270.cfg]
|
||||||
# Override this in the interface config for parallel dongles
|
# Override this in the interface config for parallel dongles
|
||||||
reset_config trst_and_srst separate
|
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
|
# 29LV650 64Mbit Flash
|
||||||
set _FLASHNAME $_CHIPNAME.flash
|
set _FLASHNAME $_CHIPNAME.flash
|
||||||
flash bank $_FLASHNAME cfi 0x00000000 0x800000 2 2 0
|
flash bank $_FLASHNAME cfi 0x00000000 0x800000 2 2 $_TARGETNAME
|
||||||
|
|
|
@ -125,6 +125,6 @@ $_TARGETNAME configure -work-area-phys 0x00000000 -work-area-size 0x1000 -work-a
|
||||||
#####################
|
#####################
|
||||||
|
|
||||||
#M29DW323DB - not working
|
#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
|
set _FLASHNAME $_CHIPNAME.flash
|
||||||
flash bank $_FLASHNAME cfi 0x50000000 0x0400000 2 2 0
|
flash bank $_FLASHNAME cfi 0x50000000 0x0400000 2 2 $_TARGETNAME
|
||||||
|
|
|
@ -31,7 +31,8 @@ if { [info exists J4_OPTION] } {
|
||||||
if { $CS2_MODE == "NOR" } {
|
if { $CS2_MODE == "NOR" } {
|
||||||
# 16 Mbytes address space; 16 bit bus width
|
# 16 Mbytes address space; 16 bit bus width
|
||||||
# (older boards used 32MB parts, with upper 16 MB unusable)
|
# (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 }
|
proc flashprobe {} { flash probe 0 }
|
||||||
} elseif { $CS2_MODE == "NAND" } {
|
} elseif { $CS2_MODE == "NAND" } {
|
||||||
# 64 Mbyte small page; 8 bit bus width
|
# 64 Mbyte small page; 8 bit bus width
|
||||||
|
|
|
@ -32,6 +32,6 @@ $_TARGETNAME configure -event reset-init {
|
||||||
|
|
||||||
|
|
||||||
#flash configuration
|
#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
|
set _FLASHNAME $_CHIPNAME.flash
|
||||||
flash bank $_FLASHNAME cfi 0x00000000 0x1000000 2 2 0
|
flash bank $_FLASHNAME cfi 0x00000000 0x1000000 2 2 $_TARGETNAME
|
||||||
|
|
|
@ -5,7 +5,8 @@ $_TARGETNAME configure -event gdb-attach { reset init }
|
||||||
$_TARGETNAME configure -event reset-init { imx27ads_init }
|
$_TARGETNAME configure -event reset-init { imx27ads_init }
|
||||||
|
|
||||||
# The IMX27 ADS board has a NOR flash on CS0
|
# 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 { } {
|
proc imx27ads_init { } {
|
||||||
# This setup puts RAM at 0xA0000000
|
# This setup puts RAM at 0xA0000000
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
source [find target/imx27.cfg]
|
source [find target/imx27.cfg]
|
||||||
|
|
||||||
# The Logic PD board has a NOR flash on CS0
|
# 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
|
# FIX ME, Add support to
|
||||||
|
|
|
@ -114,6 +114,6 @@ arm7_9 dcc_downloads enable # Enable faster DCC downloads
|
||||||
# Flash configuration
|
# 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
|
set _FLASHNAME $_CHIPNAME.flash
|
||||||
flash bank $_FLASHNAME cfi 0x20000000 0x2000000 2 2 0
|
flash bank $_FLASHNAME cfi 0x20000000 0x2000000 2 2 $_TARGETNAME
|
||||||
|
|
|
@ -120,7 +120,7 @@ arm7_9 dcc_downloads enable # Enable faster DCC downloads
|
||||||
# Flash configuration
|
# 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
|
set _FLASHNAME $_CHIPNAME.flash
|
||||||
flash bank $_FLASHNAME cfi 0x20000000 0x1000000 2 2 0
|
flash bank $_FLASHNAME cfi 0x20000000 0x1000000 2 2 $_TARGETNAME
|
||||||
|
|
||||||
|
|
|
@ -90,8 +90,8 @@ $_TARGETNAME configure -event reset-init {
|
||||||
# Flash configuration
|
# 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
|
set _FLASHNAME $_CHIPNAME.flash
|
||||||
flash bank $_FLASHNAME cfi 0x10000000 0x01000000 2 2 0
|
flash bank $_FLASHNAME cfi 0x10000000 0x01000000 2 2 $_TARGETNAME
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,9 @@ source [find target/smp8634.cfg]
|
||||||
$_TARGETNAME configure -event reset-init { x300t_init }
|
$_TARGETNAME configure -event reset-init { x300t_init }
|
||||||
|
|
||||||
# 1MB CFI capable flash
|
# 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
|
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 { } {
|
proc x300t_init { } {
|
||||||
# Setup SDRAM config and flash mapping
|
# Setup SDRAM config and flash mapping
|
||||||
|
|
|
@ -54,7 +54,7 @@ $_TARGETNAME configure -event reset-deassert-post {at91sam_init}
|
||||||
|
|
||||||
|
|
||||||
# Flash configuration
|
# 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
|
set _FLASHNAME $_CHIPNAME.flash
|
||||||
flash bank $_FLASHNAME cfi 0x10000000 0x01000000 2 2 $_TARGETNAME
|
flash bank $_FLASHNAME cfi 0x10000000 0x01000000 2 2 $_TARGETNAME
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue