]> git.sur5r.net Git - openocd/blob - src/target/target/hammer.cfg
Carlos Antunes <cmantunes@nowthor.com> fixes to get script to work.
[openocd] / src / target / target / hammer.cfg
1 # Target Configuration for the TinCanTools S3C2410 Based Hammer Module
2 # http://www.tincantools.com
3
4 #use combined on interfaces or targets that can't set TRST/SRST separately
5 reset_config trst_and_srst
6
7 #jtag scan chain
8 #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
9 jtag_device 4 0x1 0xf 0xe
10
11
12 target create target0 arm920t -endian little -chain-position 0 -variant arm920t
13 [new_target_name] configure -work-area-virt 0 -work-area-phys 0x30800000 -work-area-size 0x20000 -work-area-backup 0
14 [new_target_name] configure -event reset-init {
15         # Reset Script for the TinCanTools S3C2410 Based Hammer Module
16         # http://www.tincantools.com
17         #
18         # Setup primary clocks and initialize the SDRAM
19         mww 0x53000000 0x00000000
20         mww 0x4a000008 0xffffffff
21         mww 0x4a00000c 0x000007ff
22         mww 0x4c000000 0x00ffffff
23         mww 0x4c000014 0x00000003
24         mww 0x4c000004 0x000a1031
25         mww 0x48000000 0x11111122
26         mww 0x48000004 0x00000700
27         mww 0x48000008 0x00000700
28         mww 0x4800000c 0x00000700
29         mww 0x48000010 0x00000700
30         mww 0x48000014 0x00000700
31         mww 0x48000018 0x00000700
32         mww 0x4800001c 0x00018005
33         mww 0x48000020 0x00018005
34         mww 0x48000024 0x009c0459
35         mww 0x48000028 0x000000b2
36         mww 0x4800002c 0x00000030
37         mww 0x48000030 0x00000030
38         flash probe 0
39 }
40
41 # speed up memory downloads
42 arm7_9 fast_memory_access enable
43 arm7_9 dcc_downloads enable
44
45 #flash configuration
46 #flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
47 flash bank cfi 0x00000000 0x1000000 2 2 0