summaryrefslogtreecommitdiff
path: root/tcl/board
diff options
context:
space:
mode:
authorMichael Schwingen <michael@schwingen.org>2010-12-19 16:17:46 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-12-19 22:16:31 +0100
commit23bf724e048df62181e744245af42d3694989749 (patch)
treeb655cc0568fa025d35f4c2da06580aa6968c6187 /tcl/board
parent6839618062f07a12bd969da8dc54546f96938b67 (diff)
downloadopenocd+libswd-23bf724e048df62181e744245af42d3694989749.tar.gz
openocd+libswd-23bf724e048df62181e744245af42d3694989749.tar.bz2
openocd+libswd-23bf724e048df62181e744245af42d3694989749.tar.xz
openocd+libswd-23bf724e048df62181e744245af42d3694989749.zip
update IXP42x target / XBA board config
Diffstat (limited to 'tcl/board')
-rw-r--r--tcl/board/actux3.cfg47
1 files changed, 47 insertions, 0 deletions
diff --git a/tcl/board/actux3.cfg b/tcl/board/actux3.cfg
new file mode 100644
index 00000000..922d4fcf
--- /dev/null
+++ b/tcl/board/actux3.cfg
@@ -0,0 +1,47 @@
+# board config file for AcTux3/XBA IXP42x board
+# Date: 2010-12-16
+# Author: Michael Schwingen <michael@schwingen.org>
+
+reset_config trst_and_srst separate
+
+adapter_nsrst_delay 100
+jtag_ntrst_delay 100
+
+source [find target/ixp42x.cfg]
+
+$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x10000 -work-area-backup 0
+
+$_TARGETNAME configure -event reset-init { init_actux3 }
+
+proc init_actux3 { } {
+ ##########################################################################
+ # setup expansion bus CS
+ ##########################################################################
+ mww 0xc4000000 0xbd113842 ;#CS0 : Flash, write enabled @0x50000000
+ mww 0xc4000004 0x94d10013 ;#CS1
+ mww 0xc4000008 0x95960003 ;#CS2
+ mww 0xc400000c 0x00000000 ;#CS3
+ mww 0xc4000010 0x80900003 ;#CS4
+ mww 0xc4000014 0x9d520003 ;#CS5
+ mww 0xc4000018 0x81860001 ;#CS6
+ mww 0xc400001c 0x80900003 ;#CS7
+
+ ixp42x_init_sdram $::IXP42x_SDRAM_16MB_4Mx16_1BANK 2100 3
+
+ #mww 0xc4000020 0xffffee ;# CFG0: remove expansion bus boot flash mirror at 0x00000000
+
+ ixp42x_set_bigendian
+
+ flash probe 0
+}
+
+proc flash_boot { {FILE "/tftpboot/actux3/u-boot.bin"} } {
+ echo "writing bootloader: $FILE"
+ flash write_image erase $FILE 0x50000000 bin
+}
+
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0x50000000 0x400000 2 2 $_TARGETNAME
+
+init
+reset init