0de4cb4cac8c9dd47eec7b6fe8f500fc5c188ad2
[fw/openocd] / tcl / board / actux3.cfg
1 # board config file for AcTux3/XBA IXP42x board
2 # Date:   2010-12-16
3 # Author: Michael Schwingen <michael@schwingen.org>
4
5 reset_config trst_and_srst separate
6
7 adapter srst delay 100
8 jtag_ntrst_delay 100
9
10 source [find target/ixp42x.cfg]
11
12 $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x10000 -work-area-backup 0
13
14 $_TARGETNAME configure -event reset-init { init_actux3 }
15
16 proc init_actux3 { } {
17     ##########################################################################
18     # setup expansion bus CS
19     ##########################################################################
20     mww 0xc4000000  0xbd113842  ;#CS0  : Flash, write enabled @0x50000000
21     mww 0xc4000004  0x94d10013  ;#CS1
22     mww 0xc4000008  0x95960003  ;#CS2
23     mww 0xc400000c  0x00000000  ;#CS3
24     mww 0xc4000010  0x80900003  ;#CS4
25     mww 0xc4000014  0x9d520003  ;#CS5
26     mww 0xc4000018  0x81860001  ;#CS6
27     mww 0xc400001c  0x80900003  ;#CS7
28
29     ixp42x_init_sdram $::IXP42x_SDRAM_16MB_4Mx16_1BANK 2100 3
30
31     #mww 0xc4000020  0xffffee ;# CFG0: remove expansion bus boot flash mirror at 0x00000000
32
33     ixp42x_set_bigendian
34
35     flash probe 0
36 }
37
38 proc flash_boot { {FILE "/tftpboot/actux3/u-boot.bin"} } {
39     echo "writing bootloader: $FILE"
40     flash write_image erase $FILE 0x50000000 bin
41 }
42
43 set _FLASHNAME $_CHIPNAME.flash
44 flash bank $_FLASHNAME cfi 0x50000000 0x400000 2 2 $_TARGETNAME
45
46 init
47 reset init
48
49 # setup to debug u-boot in flash
50 proc uboot_debug {} {
51     gdb_breakpoint_override hard
52     xscale vector_catch 0xFF
53
54     xscale vector_table low  1 0xe59ff018
55     xscale vector_table low  2 0xe59ff018
56     xscale vector_table low  3 0xe59ff018
57     xscale vector_table low  4 0xe59ff018
58     xscale vector_table low  5 0xe59ff018
59     xscale vector_table low  6 0xe59ff018
60     xscale vector_table low  7 0xe59ff018
61
62     xscale vector_table high 1 0xe59ff018
63     xscale vector_table high 2 0xe59ff018
64     xscale vector_table high 3 0xe59ff018
65     xscale vector_table high 4 0xe59ff018
66     xscale vector_table high 5 0xe59ff018
67     xscale vector_table high 6 0xe59ff018
68     xscale vector_table high 7 0xe59ff018
69 }