summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-06-27 06:19:37 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-06-27 06:19:37 +0000
commita61fe67b78f6436703a51242e03d5c115ea27cf9 (patch)
tree2e28bbdcf8844700d99d42435d756990b41f574b /src
parent0778b69f827c1ad20c8e56cb9d5429b6b8c2ec0d (diff)
downloadopenocd_libswd-a61fe67b78f6436703a51242e03d5c115ea27cf9.tar.gz
openocd_libswd-a61fe67b78f6436703a51242e03d5c115ea27cf9.tar.bz2
openocd_libswd-a61fe67b78f6436703a51242e03d5c115ea27cf9.tar.xz
openocd_libswd-a61fe67b78f6436703a51242e03d5c115ea27cf9.zip
David Anders more target lib scripts contributed by
git-svn-id: svn://svn.berlios.de/openocd/trunk@731 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/target/Makefile.am3
-rw-r--r--src/target/event/hammer_reset.script24
-rw-r--r--src/target/interface/flyswatter.cfg9
-rw-r--r--src/target/target/hammer.cfg28
4 files changed, 63 insertions, 1 deletions
diff --git a/src/target/Makefile.am b/src/target/Makefile.am
index 966ec37c..9a8de56c 100644
--- a/src/target/Makefile.am
+++ b/src/target/Makefile.am
@@ -33,5 +33,6 @@ nobase_dist_pkglib_DATA = xscale/debug_handler.bin event/at91eb40a_reset.script
interface/calao-usb-a9260-c01.cfg interface/calao-usb-a9260-c02.cfg \
interface/calao-usb-a9260.cfg target/at91sam9260minimal.cfg event/lpc2148_reset.script \
interface/chameleon.cfg interface/at91rm9200.cfg interface/jlink.cfg interface/arm-usb-ocd.cfg \
- interface/signalyzer.cfg event/eir-sam7se512_reset.script target/eir-sam7se512.cfg
+ interface/signalyzer.cfg event/eir-sam7se512_reset.script target/eir-sam7se512.cfg \
+ event/hammer_reset.script interface/flyswatter.cfg target/hammer.cfg
diff --git a/src/target/event/hammer_reset.script b/src/target/event/hammer_reset.script
new file mode 100644
index 00000000..ae73074a
--- /dev/null
+++ b/src/target/event/hammer_reset.script
@@ -0,0 +1,24 @@
+# Reset Script for the TinCanTools S3C2410 Based Hammer Module
+# http://www.tincantools.com
+#
+# Setup primary clocks and initialize the SDRAM
+mww 0x53000000 0x00000000
+mww 0x4a000008 0xffffffff
+mww 0x4a00000c 0x000007ff
+mww 0x4c000000 0x00ffffff
+mww 0x4c000014 0x00000003
+mww 0x4c000004 0x000a1031
+mww 0x48000000 0x11111122
+mww 0x48000004 0x00000700
+mww 0x48000008 0x00000700
+mww 0x4800000c 0x00000700
+mww 0x48000010 0x00000700
+mww 0x48000014 0x00000700
+mww 0x48000018 0x00000700
+mww 0x4800001c 0x00018005
+mww 0x48000020 0x00018005
+mww 0x48000024 0x009c0459
+mww 0x48000028 0x000000b2
+mww 0x4800002c 0x00000030
+mww 0x48000030 0x00000030
+flash probe 0
diff --git a/src/target/interface/flyswatter.cfg b/src/target/interface/flyswatter.cfg
new file mode 100644
index 00000000..83f5a64b
--- /dev/null
+++ b/src/target/interface/flyswatter.cfg
@@ -0,0 +1,9 @@
+# Interface Configuration for the TinCanTools FT2232 Based Flyswatter
+# http://www.tincantools.com
+
+#interface
+interface ft2232
+ft2232_device_desc "Flyswatter"
+ft2232_layout "flyswatter"
+ft2232_vid_pid 0x0403 0x6010
+jtag_speed 1
diff --git a/src/target/target/hammer.cfg b/src/target/target/hammer.cfg
new file mode 100644
index 00000000..2738e5bb
--- /dev/null
+++ b/src/target/target/hammer.cfg
@@ -0,0 +1,28 @@
+# Target Configuration for the TinCanTools S3C2410 Based Hammer Module
+# http://www.tincantools.com
+
+#use combined on interfaces or targets that can't set TRST/SRST separately
+reset_config trst_and_srst
+
+#jtag scan chain
+#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
+jtag_device 4 0x1 0xf 0xe
+
+
+#target configuration
+daemon_startup reset
+#target <type> <endianess> <reset mode>
+target arm920t little run_and_init 0 arm920t
+
+# speed up memory downloads
+arm7 fast_memory_access enable
+arm7_9 dcc_downloads enable
+
+target_script 0 reset event/hammer_reset.script
+
+working_area 0 0x30800000 0x20000 nobackup
+run_and_halt_time 0 1000
+
+#flash configuration
+#flash bank <driver> <base> <size> <chip_width> <bus_width> [driver_options ...]
+flash bank cfi 0x00000000 0x1000000 2 2 0