Browse Source

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>
tags/v0.5.0-rc1
Antonio Borneo 14 years ago
committed by Øyvind Harboe
parent
commit
27b98c2fa5
12 changed files with 24 additions and 20 deletions
  1. +3
    -2
      tcl/board/at91rm9200-dk.cfg
  2. +2
    -2
      tcl/board/balloon3-cpu.cfg
  3. +2
    -2
      tcl/board/digi_connectcore_wi-9c.cfg
  4. +2
    -1
      tcl/board/dm6446evm.cfg
  5. +2
    -2
      tcl/board/hammer.cfg
  6. +2
    -1
      tcl/board/imx27ads.cfg
  7. +2
    -1
      tcl/board/logicpd_imx27.cfg
  8. +2
    -2
      tcl/board/topas910.cfg
  9. +2
    -2
      tcl/board/topasa900.cfg
  10. +2
    -2
      tcl/board/unknown_at91sam9260.cfg
  11. +2
    -2
      tcl/board/x300t.cfg
  12. +1
    -1
      tcl/target/at91sam9260_ext_RAM_ext_flash.cfg

+ 3
- 2
tcl/board/at91rm9200-dk.cfg 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 { } {


+ 2
- 2
tcl/board/balloon3-cpu.cfg 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

+ 2
- 2
tcl/board/digi_connectcore_wi-9c.cfg 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

+ 2
- 1
tcl/board/dm6446evm.cfg 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


+ 2
- 2
tcl/board/hammer.cfg 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

+ 2
- 1
tcl/board/imx27ads.cfg 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


+ 2
- 1
tcl/board/logicpd_imx27.cfg 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


+ 2
- 2
tcl/board/topas910.cfg 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

+ 2
- 2
tcl/board/topasa900.cfg 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


+ 2
- 2
tcl/board/unknown_at91sam9260.cfg 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



+ 2
- 2
tcl/board/x300t.cfg 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


+ 1
- 1
tcl/target/at91sam9260_ext_RAM_ext_flash.cfg 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



Loading…
Cancel
Save