summaryrefslogtreecommitdiff
path: root/tcl/board
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-18 02:19:35 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-19 13:39:41 -0800
commit3e1f5e7c64ea545f6e87b5fa1adb0c00358be505 (patch)
tree47233e5444f7dabf8f063fad02ec7626c6977f32 /tcl/board
parent664ba309d5dac2532c83fed441d14f93c7381d62 (diff)
downloadopenocd_libswd-3e1f5e7c64ea545f6e87b5fa1adb0c00358be505.tar.gz
openocd_libswd-3e1f5e7c64ea545f6e87b5fa1adb0c00358be505.tar.bz2
openocd_libswd-3e1f5e7c64ea545f6e87b5fa1adb0c00358be505.tar.xz
openocd_libswd-3e1f5e7c64ea545f6e87b5fa1adb0c00358be505.zip
update 'nand device' usage in scripts
Add $_FLASHNAME variable to update 'nand device' command syntax.
Diffstat (limited to 'tcl/board')
-rw-r--r--tcl/board/dm355evm.cfg6
-rw-r--r--tcl/board/openrd.cfg3
-rw-r--r--tcl/board/sheevaplug.cfg3
3 files changed, 8 insertions, 4 deletions
diff --git a/tcl/board/dm355evm.cfg b/tcl/board/dm355evm.cfg
index 8b126fa1..1f814b2b 100644
--- a/tcl/board/dm355evm.cfg
+++ b/tcl/board/dm355evm.cfg
@@ -191,8 +191,10 @@ proc dm355evm_init {} {
# you either (a) have 'new' DM355 chips, with boot ROMs that don't need to
# use "hwecc4_infix" for the UBL; or else (b) aren't updating anything that
# needs infix layout ... like an old UBL, old U-Boot, old MVL kernel, etc.
-nand device davinci $_TARGETNAME 0x02000000 hwecc4 0x01e10000
-nand device davinci $_TARGETNAME 0x02004000 hwecc4 0x01e10000
+set _FLASHNAME $_CHIPNAME.boot
+nand device $_FLASHNAME davinci $_TARGETNAME 0x02000000 hwecc4 0x01e10000
+set _FLASHNAME $_CHIPNAME.flash
+nand device $_FLASHNAME davinci $_TARGETNAME 0x02004000 hwecc4 0x01e10000
# FIXME
# - support writing UBL with its header (new layout only with new ROMs)
diff --git a/tcl/board/openrd.cfg b/tcl/board/openrd.cfg
index a77dcdbe..e8784d40 100644
--- a/tcl/board/openrd.cfg
+++ b/tcl/board/openrd.cfg
@@ -11,7 +11,8 @@ $_TARGETNAME configure \
arm7_9 dcc_downloads enable
# this assumes the hardware default peripherals location before u-Boot moves it
-nand device orion 0 0xd8000000
+set _FLASHNAME $_CHIPNAME.flash
+nand device $_FLASHNAME orion 0 0xd8000000
proc openrd_init { } {
diff --git a/tcl/board/sheevaplug.cfg b/tcl/board/sheevaplug.cfg
index 62b78ee1..afd621a7 100644
--- a/tcl/board/sheevaplug.cfg
+++ b/tcl/board/sheevaplug.cfg
@@ -11,7 +11,8 @@ $_TARGETNAME configure \
arm7_9 dcc_downloads enable
# this assumes the hardware default peripherals location before u-Boot moves it
-nand device orion 0 0xd8000000
+set _FLASHNAME $_CHIPNAME.flash
+nand device $_FLASHNAME orion 0 0xd8000000
proc sheevaplug_init { } {