]> git.sur5r.net Git - openocd/blob - tcl/board/ethernut3.cfg
arm720t: virt2phys callback added
[openocd] / tcl / board / ethernut3.cfg
1 #
2 # Ethernut 3 board configuration file
3 #
4 # http://www.ethernut.de/en/hardware/enut3/
5
6
7 # AT91R40008-66AU ARM7TDMI Microcontroller
8 # 256kB internal RAM
9 source [find target/at91r40008.cfg]
10
11
12 # AT49BV322A-70TU NOR Flash
13 # 2M x 16 mode at address 0x10000000
14 # Common flash interface supported
15 #
16 set _FLASHNAME $_CHIPNAME.flash
17 flash bank $_FLASHNAME cfi 0x10000000 0x400000 2 2 $_TARGETNAME
18
19
20 # Micrel MIC2775-29YM5 Supervisor
21 # Reset output will remain active for 280ms (maximum)
22 #
23 jtag_nsrst_delay 300
24 jtag_ntrst_delay 300
25
26
27 arm7_9 fast_memory_access enable
28 arm7_9 dcc_downloads enable
29 jtag_khz 16000
30
31
32 # Target events
33 #
34 $_TARGETNAME configure -event reset-init { board_init }
35
36 # Initialize board hardware
37 #
38 proc board_init { } {
39         board_remap
40         flash probe 0
41 }
42
43 # Memory remap
44 #
45 proc board_remap {{VERBOSE 0}} {
46         # CS0: NOR flash
47         #      16MB @ 0x10000000
48         #      16-bit data bus
49         #      4 wait states
50         #
51         mww 0xffe00000 0x1000212d
52
53         # CS1: Ethernet controller
54         #      1MB @ 0x20000000
55         #      16-bit data bus
56         #      2 wait states
57         #      Byte select access
58         #
59         mww 0xffe00004 0x20003025
60
61         # CS2: CPLD registers
62         #      1MB @ 0x21000000
63         #      8-bit data bus
64         #      2 wait states
65         #
66         mww 0xffe00008 0x21002026
67
68         # CS3: Expansion bus
69         #      1MB @ 0x22000000
70         #      8-bit data bus
71         #      8 wait states
72         #
73         mww 0xffe00010 0x22002e3e
74
75         # Remap command
76         #
77         mww 0xffe00020 0x00000001
78
79         if {$VERBOSE != 0} {
80                 puts "0x00000000 RAM"
81                 puts "0x10000000 Flash"
82                 puts "0x20000000 Ethernet"
83                 puts "0x21000000 CPLD"
84                 puts "0x22000000 Expansion"
85         }
86 }