Freddie Chopin <freddie_chopin@op.pl> move files about to where they belong
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 16 May 2009 14:57:02 +0000 (14:57 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 16 May 2009 14:57:02 +0000 (14:57 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1798 b42882b7-edfa-0310-969c-e2dbd0fdcd60

19 files changed:
src/target/board/crossbow_tech_imote2.cfg [new file with mode: 0644]
src/target/board/digi_connectcore_wi-9c.cfg [new file with mode: 0644]
src/target/board/hitex_stm32-performancestick.cfg [new file with mode: 0644]
src/target/board/hitex_str9-comstick.cfg [new file with mode: 0644]
src/target/board/hitex_str9_comstick.cfg [deleted file]
src/target/board/linksys_nslu2.cfg [new file with mode: 0644]
src/target/board/pxa255_sst.cfg [new file with mode: 0644]
src/target/board/str910-eval.cfg [new file with mode: 0644]
src/target/board/zy1000.cfg [new file with mode: 0644]
src/target/interface/hitex_str9-comstick.cfg [new file with mode: 0644]
src/target/interface/str9-comstick.cfg [deleted file]
src/target/target/imote2.cfg [deleted file]
src/target/target/nslu2.cfg [deleted file]
src/target/target/pxa255_sst.cfg [deleted file]
src/target/target/stm32stick.cfg [deleted file]
src/target/target/str910-eval.cfg [deleted file]
src/target/target/str9comstick.cfg [deleted file]
src/target/target/wi-9c.cfg [deleted file]
src/target/target/zy1000.cfg [deleted file]

diff --git a/src/target/board/crossbow_tech_imote2.cfg b/src/target/board/crossbow_tech_imote2.cfg
new file mode 100644 (file)
index 0000000..8cdd700
--- /dev/null
@@ -0,0 +1,46 @@
+# Crossbow Technology iMote2\r
+\r
+if { [info exists CHIPNAME] } {        \r
+   set  _CHIPNAME $CHIPNAME    \r
+} else {        \r
+   set  _CHIPNAME imote2\r
+}\r
+\r
+if { [info exists ENDIAN] } {  \r
+   set  _ENDIAN $ENDIAN    \r
+} else {        \r
+   set  _ENDIAN little\r
+}\r
+\r
+if { [info exists CPUTAPID ] } {\r
+   set _CPUTAPID $CPUTAPID\r
+} else {\r
+  # force an error till we get a good number\r
+   set _CPUTAPID 0xffffffff\r
+}\r
+\r
+# PXA271 and an Intel Strataflash of 32 Megabytes (p30)\r
+# \r
+# Marvell/Intel PXA270 Script\r
+# set jtag_nsrst_delay to the delay introduced by your reset circuit\r
+# the rest of the needed delays are built into the openocd program\r
+jtag_nsrst_delay 800 \r
+# set the jtag_ntrst_delay to the delay introduced by a reset circuit\r
+# the rest of the needed delays are built into the openocd program\r
+jtag_ntrst_delay 0\r
+#use combined on interfaces or targets that can't set TRST/SRST separately\r
+reset_config trst_and_srst separate\r
+#jtag scan chain\r
+\r
+jtag newtap $_CHIPNAME cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id $_CPUTAPID\r
+\r
+set _TARGETNAME [format "%s.cpu" $_CHIPNAME]\r
+target create $_TARGETNAME xscale -endian $_ENDIAN -chain-position $_TARGETNAME -variant pxa27x\r
+$_TARGETNAME configure -work-area-virt 0x0x5c000000 -work-area-phys 0x0x5c000000 -work-area-size 0x10000 -work-area-backup 1\r
+# maps to PXA internal RAM. If you are using a PXA255\r
+# you must initialize SDRAM or leave this option off\r
+\r
+\r
+#flash bank <driver> <base> <size> <chip_width> <bus_width>\r
+# works for P30 flash\r
+flash bank cfi 0x00000000 0x2000000 2 2 0\r
diff --git a/src/target/board/digi_connectcore_wi-9c.cfg b/src/target/board/digi_connectcore_wi-9c.cfg
new file mode 100644 (file)
index 0000000..6b0e2a6
--- /dev/null
@@ -0,0 +1,127 @@
+######################################\r
+# Target: DIGI ConnectCore Wi-9C\r
+######################################\r
+\r
+reset_config trst_and_srst\r
+\r
+if { [info exists CHIPNAME] } {        \r
+   set  _CHIPNAME $CHIPNAME    \r
+} else {        \r
+   set  _CHIPNAME ns9360\r
+}\r
+\r
+if { [info exists ENDIAN] } {  \r
+   set  _ENDIAN $ENDIAN    \r
+} else {        \r
+  # This config file was defaulting to big endian..\r
+   set  _ENDIAN big\r
+}\r
+\r
+\r
+# What's a good fallback frequency for this board if RCLK is\r
+# not available??\r
+jtag_rclk 1000\r
+\r
+\r
+if { [info exists CPUTAPID ] } {\r
+   set _CPUTAPID $CPUTAPID\r
+} else {\r
+   set _CPUTAPID 0xFFFFFFFF\r
+}\r
+\r
+set _TARGETNAME [format "%s.cpu" $_CHIPNAME]\r
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID\r
+\r
+jtag_nsrst_delay 200\r
+jtag_ntrst_delay 0\r
+\r
+\r
+######################\r
+# Target configuration\r
+######################\r
+\r
+target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs\r
+$_TARGETNAME configure -event reset-init {\r
+       mww 0x90600104 0x33313333\r
+       mww 0xA0700000 0x00000001  # Enable the memory controller.\r
+       mww 0xA0700024 0x00000006  # Set the refresh counter 6\r
+       mww 0xA0700028 0x00000001  # \r
+       mww 0xA0700030 0x00000001  # Set the precharge period\r
+       mww 0xA0700034 0x00000004  # Active to precharge command period is 16 clock cycles\r
+       mww 0xA070003C 0x00000001  # tAPR\r
+       mww 0xA0700040 0x00000005  # tDAL\r
+       mww 0xA0700044 0x00000001  # tWR\r
+       mww 0xA0700048 0x00000006  # tRC 32 clock cycles  \r
+       mww 0xA070004C 0x00000006  # tRFC 32 clock cycles\r
+       mww 0xA0700054 0x00000001  # tRRD\r
+       mww 0xA0700058 0x00000001  # tMRD\r
+       mww 0xA0700100 0x00004280  # Dynamic Config 0 (cs4) \r
+       mww 0xA0700120 0x00004280  # Dynamic Config 1 (cs5)\r
+       mww 0xA0700140 0x00004280  # Dynamic Config 2 (cs6)\r
+       mww 0xA0700160 0x00004280  # Dynamic Config 3 (cs7)\r
+       #\r
+       mww 0xA0700104 0x00000203  # CAS latency is 2 at 100 MHz\r
+       mww 0xA0700124 0x00000203  # CAS latency is 2 at 100 MHz\r
+       mww 0xA0700144 0x00000203  # CAS latency is 2 at 100 MHz\r
+       mww 0xA0700164 0x00000203  # CAS latency is 2 at 100 MHz\r
+       #\r
+       mww 0xA0700020 0x00000103  # issue SDRAM PALL command\r
+       #\r
+       mww 0xA0700024 0x00000001  # Set the refresh counter to be as small as possible\r
+       #\r
+       # Add some dummy writes to give the SDRAM time to settle, it needs two\r
+       # AHB clock cycles, here we poke in the debugger flag, this lets\r
+       # the software know that we are in the debugger\r
+       mww 0xA0900000 0x00000002\r
+       mww 0xA0900000 0x00000002\r
+       mww 0xA0900000 0x00000002\r
+       mww 0xA0900000 0x00000002\r
+       mww 0xA0900000 0x00000002\r
+       #\r
+       mdw 0xA0900000 \r
+       mdw 0xA0900000 \r
+       mdw 0xA0900000 \r
+       mdw 0xA0900000 \r
+       mdw 0xA0900000 \r
+       #\r
+       mww 0xA0700024 0x00000030 # Set the refresh counter to 30\r
+       mww 0xA0700020 0x00000083 # Issue SDRAM MODE command\r
+       #\r
+       # Next we perform a read of RAM.\r
+       # mw = move word.\r
+       mdw 0x00022000\r
+       # mw 0x00022000:P, r3  # 22000 for cas2 latency, 32000 for cas 3\r
+       #\r
+       mww 0xA0700020 0x00000003   # issue SDRAM NORMAL command\r
+       mww 0xA0700100 0x00084280   # Enable buffer access\r
+       mww 0xA0700120 0x00084280   # Enable buffer access\r
+       mww 0xA0700140 0x00084280   # Enable buffer access\r
+       mww 0xA0700160 0x00084280   # Enable buffer access\r
+\r
+       #Set byte lane state (static mem 1)"\r
+       mww 0xA0700220, 0x00000082\r
+       #Flash Start\r
+       mww 0xA09001F8, 0x50000000\r
+       #Flash Mask Reg\r
+       mww 0xA09001FC, 0xFF000001\r
+       mww 0xA0700028, 0x00000001\r
+\r
+       #  RAMAddr = 0x00020000\r
+       #  RAMSize = 0x00004000\r
+\r
+       # Set the processor mode\r
+       reg cpsr 0xd3\r
+}\r
+\r
+$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00000000 -work-area-size 0x1000 -work-area-backup 1\r
+\r
+#####################\r
+# Flash configuration\r
+#####################\r
+\r
+#M29DW323DB - not working\r
+#flash bank cfi <base> <size> <chip width> <bus width> <target#>\r
+flash bank cfi 0x50000000 0x0400000 2 2 0\r
+\r
+\r
+\r
diff --git a/src/target/board/hitex_stm32-performancestick.cfg b/src/target/board/hitex_stm32-performancestick.cfg
new file mode 100644 (file)
index 0000000..da0ceb6
--- /dev/null
@@ -0,0 +1,50 @@
+# Hitex stm32 performance stick\r
+\r
+if { [info exists CHIPNAME] } {        \r
+   set  _CHIPNAME $CHIPNAME    \r
+} else {        \r
+   set  _CHIPNAME stm32_hitex\r
+}\r
+\r
+if { [info exists ENDIAN] } {  \r
+   set  _ENDIAN $ENDIAN    \r
+} else {        \r
+   set  _ENDIAN little\r
+}\r
+\r
+# set jtag speed\r
+jtag_khz 500\r
+\r
+jtag_nsrst_delay 100\r
+jtag_ntrst_delay 100\r
+\r
+#use combined on interfaces or targets that can't set TRST/SRST separately\r
+reset_config trst_and_srst\r
+\r
+#jtag scan chain\r
+# The CPU\r
+if { [info exists CPUTAPID ] } {\r
+   set _CPUTAPID $CPUTAPID\r
+} else {\r
+  # See STM Document RM0008\r
+  # Section 26.6.3\r
+   set _CPUTAPID 0x3ba00477\r
+}\r
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID\r
+\r
+# The boundery scan register, leave the "expected-id" undefined.\r
+jtag newtap $_CHIPNAME bs  -irlen 5 -ircapture 0x1 -irmask 0x1 \r
+\r
+# configure str750 connected to jtag chain\r
+jtag newtap $_CHIPNAME unknown -irlen 4 -ircapture 0x1 -irmask 0x0f\r
+\r
+set _TARGETNAME [format "%s.cpu" $_CHIPNAME]\r
+target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME\r
+\r
+$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 16384 -work-area-backup 0\r
+\r
+#\r
+flash bank stm32x 0 0 0 0 0\r
+\r
+# For more information about the configuration files, take a look at:\r
+# openocd.texi\r
diff --git a/src/target/board/hitex_str9-comstick.cfg b/src/target/board/hitex_str9-comstick.cfg
new file mode 100644 (file)
index 0000000..0974f5a
--- /dev/null
@@ -0,0 +1,72 @@
+# Hitex STR9-comStick\r
+# http://www.hitex.com/index.php?id=383\r
+# This works for the STR9-comStick revisions STR912CS-A1 and STR912CS-A2.\r
+\r
+source [find interface/hitex_str9-comstick.cfg]\r
+\r
+# set jtag speed\r
+jtag_khz 3000\r
+\r
+jtag_nsrst_delay 100\r
+jtag_ntrst_delay 100\r
+#use combined on interfaces or targets that can't set TRST/SRST separately\r
+reset_config trst_and_srst\r
+#jtag scan chain\r
+#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)\r
+\r
+if { [info exists CHIPNAME] } {        \r
+   set  _CHIPNAME $CHIPNAME    \r
+} else {        \r
+   set  _CHIPNAME str912\r
+}\r
+\r
+if { [info exists ENDIAN] } {  \r
+   set  _ENDIAN $ENDIAN    \r
+} else {        \r
+   set  _ENDIAN little\r
+}\r
+\r
+if { [info exists FLASHTAPID ] } {\r
+   set _FLASHTAPID $FLASHTAPID\r
+} else {\r
+   set _FLASHTAPID 0x04570041\r
+}\r
+jtag newtap $_CHIPNAME flash -irlen 8 -ircapture 0x1 -irmask 0x1 -expected-id $_FLASHTAPID\r
+\r
+if { [info exists CPUTAPID ] } {\r
+   set _CPUTAPID $CPUTAPID\r
+} else {\r
+   set _CPUTAPID 0x25966041\r
+}\r
+jtag newtap $_CHIPNAME cpu   -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID\r
+\r
+if { [info exists BSTAPID ] } {\r
+   set _BSTAPID $BSTAPID\r
+} else {\r
+   # Found on STR9-comStick, revision STR912CS-A1\r
+   set _BSTAPID1 0x1457f041\r
+   # Found on STR9-comStick, revision STR912CS-A2\r
+   set _BSTAPID2 0x2457f041\r
+}\r
+jtag newtap $_CHIPNAME bs -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_BSTAPID1 -expected-id $_BSTAPID2\r
+\r
+set _TARGETNAME [format "%s.cpu" $_CHIPNAME]\r
+target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm966e\r
+\r
+$_TARGETNAME configure -event reset-init {\r
+       # We can increase speed now that we know the target is halted.\r
+       #jtag_rclk 3000\r
+       \r
+       # -- Enable 96K RAM\r
+       # PFQBC enabled / DTCM & AHB wait-states disabled\r
+       mww 0x5C002034 0x0191 \r
+\r
+       str9x flash_config 0 4 2 0 0x80000\r
+       flash protect 0 0 7 off\r
+}\r
+\r
+$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 0\r
+\r
+#flash bank <driver> <base> <size> <chip_width> <bus_width>\r
+flash bank str9x 0x00000000 0x00080000 0 0 0\r
+flash bank str9x 0x00080000 0x00008000 0 0 0\r
diff --git a/src/target/board/hitex_str9_comstick.cfg b/src/target/board/hitex_str9_comstick.cfg
deleted file mode 100644 (file)
index 1efb5f8..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#
-# Hitex STR9-comStick
-#
-# http://www.hitex.com/index.php?id=383
-#
-
-# This works for the STR9-comStick revisions STR912CS-A1 and STR912CS-A2.
-
-source [find interface/str9-comstick.cfg]
-source [find target/str9comstick.cfg]
-
diff --git a/src/target/board/linksys_nslu2.cfg b/src/target/board/linksys_nslu2.cfg
new file mode 100644 (file)
index 0000000..8c919d8
--- /dev/null
@@ -0,0 +1,8 @@
+# This is for the LinkSys (CISCO) NSLU2 board\r
+# It is an Intel XSCALE IXP420 CPU.\r
+\r
+source [find target/ixp42x.cfg]\r
+# The _TARGETNAME is set by the above.\r
+\r
+$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00020000 -work-area-size 0x10000 -work-area-backup 0\r
+\r
diff --git a/src/target/board/pxa255_sst.cfg b/src/target/board/pxa255_sst.cfg
new file mode 100644 (file)
index 0000000..199af4b
--- /dev/null
@@ -0,0 +1,15 @@
+# A PXA255 test board with SST 39LF400A flash\r
+#\r
+# At reset the memory map is as follows. Note that\r
+# the memory map changes later on as the application \r
+# starts...\r
+#\r
+# RAM at 0x4000000\r
+# Flash at 0x00000000\r
+#\r
+source [find target/pxa255.cfg]\r
+# Target name is set by above\r
+$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x4000000 -work-area-size 0x4000 -work-area-backup 0\r
+# flash bank <driver> <base> <size> <chip_width> <bus_width> <targetNum> [options]\r
+flash bank cfi 0x00000000 0x80000 2 2 0 jedec_probe\r
+\r
diff --git a/src/target/board/str910-eval.cfg b/src/target/board/str910-eval.cfg
new file mode 100644 (file)
index 0000000..7434131
--- /dev/null
@@ -0,0 +1,61 @@
+# str910-eval eval board\r
+# \r
+# Need reset scripts \r
+reset_config trst_and_srst\r
+\r
+if { [info exists CHIPNAME] } {        \r
+   set  _CHIPNAME $CHIPNAME    \r
+} else {        \r
+   set  _CHIPNAME str912\r
+}\r
+\r
+if { [info exists ENDIAN] } {  \r
+   set  _ENDIAN $ENDIAN    \r
+} else {        \r
+   set  _ENDIAN little\r
+}\r
+\r
+if { [info exists FLASHTAPID ] } {\r
+   set _FLASHTAPID $FLASHTAPID\r
+} else {\r
+   set _FLASHTAPID 0x04570041\r
+}\r
+jtag newtap $_CHIPNAME flash -irlen 8 -ircapture 0x1 -irmask 0x1 -expected-id $_FLASHTAPID\r
+\r
+\r
+if { [info exists CPUTAPID ] } {\r
+   set _CPUTAPID $CPUTAPID\r
+} else {\r
+   set _CPUTAPID 0x25966041\r
+}\r
+jtag newtap $_CHIPNAME cpu   -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID\r
+\r
+if { [info exists BSTAPID ] } {\r
+   set _BSTAPID $BSTAPID\r
+} else {\r
+   set _BSTAPID 0x1457f041\r
+}\r
+jtag newtap $_CHIPNAME bs    -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_BSTAPID\r
+\r
+set _TARGETNAME [format "%s.cpu" $_CHIPNAME]\r
+target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm966e\r
+$_TARGETNAME configure -work-area-phys 0x50000000 -work-area-virt 0x50000000 -work-area-size 16384 -work-area-backup 1\r
+\r
+$_TARGETNAME configure -event reset-init {\r
+       # We can increase speed now that we know the target is halted.\r
+       #jtag_rclk 3000\r
+       \r
+       # -- Enable 96K RAM\r
+       # PFQBC enabled / DTCM & AHB wait-states disabled\r
+       mww 0x5C002034 0x0191 \r
+\r
+       str9x flash_config 0 4 2 0 0x80000\r
+       flash protect 0 0 7 off\r
+}\r
+\r
+#flash bank str9x <base> <size> 0 0 <target#> <variant>\r
+flash bank str9x 0x00000000 0x00080000 0 0 0\r
+flash bank str9x 0x00080000 0x00008000 0 0 0\r
+\r
+# For more information about the configuration files, take a look at:\r
+# openocd.texi\r
diff --git a/src/target/board/zy1000.cfg b/src/target/board/zy1000.cfg
new file mode 100644 (file)
index 0000000..1d3eea2
--- /dev/null
@@ -0,0 +1,110 @@
+#Script for ZY1000\r
+\r
+#Atmel ties SRST & TRST together, at which point it makes\r
+#no sense to use TRST, but use TMS instead.\r
+#\r
+#The annoying thing with tying SRST & TRST together is that\r
+#there is no way to halt the CPU *before and during* the\r
+#SRST reset, which means that the CPU will run a number\r
+#of cycles before it can be halted(as much as milliseconds).\r
+reset_config srst_only srst_pulls_trst\r
+\r
+\r
+if { [info exists CHIPNAME] } {        \r
+   set  _CHIPNAME $CHIPNAME    \r
+} else {        \r
+   set  _CHIPNAME zy1000\r
+}\r
+\r
+if { [info exists ENDIAN] } {  \r
+   set  _ENDIAN $ENDIAN    \r
+} else {        \r
+   set  _ENDIAN little\r
+}\r
+\r
\r
+#jtag scan chain\r
+if { [info exists CPUTAPID ] } {\r
+   set _CPUTAPID $CPUTAPID\r
+} else {\r
+   set _CPUTAPID 0x1f0f0f0f\r
+}\r
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID\r
+\r
+set _TARGETNAME [format "%s.cpu" $_CHIPNAME]\r
+target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4\r
+\r
+# at CPU CLK <32kHz this must be disabled\r
+arm7_9 fast_memory_access enable\r
+arm7_9 dcc_downloads enable\r
+\r
+flash bank ecosflash 0x01000000 0x200000 2 2 0 ecos/at91eb40a.elf\r
+$_TARGETNAME configure -event reset-init { \r
+       # Set up chip selects & timings\r
+       mww 0xFFE00000 0x0100273D\r
+       mww 0xFFE00004 0x08002125\r
+       mww 0xFFEe0008 0x02002125\r
+       mww 0xFFE0000c 0x03002125\r
+       mww 0xFFE00010 0x40000000\r
+       mww 0xFFE00014 0x50000000\r
+       mww 0xFFE00018 0x60000000\r
+       mww 0xFFE0001c 0x70000000\r
+       mww 0xFFE00020 0x00000001\r
+       mww 0xFFE00024 0x00000000\r
+       \r
+       # remap  \r
+       mww 0xFFFFF124 0xFFFFFFFF  \r
+       mww 0xffff0010 0x100\r
+       mww 0xffff0034 0x100\r
+       \r
+       #disable 16x5x UART interrupts\r
+       mww 0x08020004 0\r
+}\r
+\r
+# required for usable performance. Used for lots of\r
+# other things than flash programming.\r
+$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00020000 -work-area-size 0x20000 -work-area-backup 0\r
+\r
+jtag_khz 16000\r
+\r
+\r
+proc production_info {} {\r
+       return "Serial number is official MAC number. Format XXXXXXXXXXXX"\r
+}\r
+\r
+# There is no return value from this procedure. If it is\r
+# successful it does not throw an exception\r
+#\r
+# Progress messages are output via puts \r
+proc production {firmwarefile serialnumber} {\r
+       if {[string length $serialnumber]!=12} {\r
+               puts "Invalid serial number"\r
+               return\r
+       }\r
+\r
+       puts "Power cycling target"\r
+       power off\r
+       sleep 3000\r
+       power on\r
+       sleep 1000\r
+       reset init\r
+       flash write_image erase $firmwarefile 0x1000000 bin\r
+       verify_image $firmwarefile 0x1000000 bin\r
+\r
+       # Big endian... weee!!!!\r
+       puts "Setting MAC number to $serialnumber"      \r
+       flash fillw [expr 0x1030000-0x8] "0x[string range $serialnumber 2 3][string range $serialnumber 0 1]0000" 1\r
+       flash fillw [expr 0x1030000-0x4] "0x[string range $serialnumber 10 11][string range $serialnumber 8 9][string range $serialnumber 6 7][string range $serialnumber 4 5]" 1\r
+       puts "Production successful"\r
+} \r
+\r
+\r
+proc production_test {} {\r
+       power on\r
+       sleep 1000\r
+       target_request debugmsgs enable\r
+       reset run\r
+       sleep 25000\r
+       target_request debugmsgs disable\r
+       return "See IP address above..."\r
+}\r
diff --git a/src/target/interface/hitex_str9-comstick.cfg b/src/target/interface/hitex_str9-comstick.cfg
new file mode 100644 (file)
index 0000000..0b98e8f
--- /dev/null
@@ -0,0 +1,11 @@
+#\r
+# Hitex STR9-comStick\r
+#\r
+# http://www.hitex.com/index.php?id=383\r
+#\r
+\r
+interface ft2232\r
+ft2232_device_desc "STR9-comStick A"\r
+ft2232_layout comstick\r
+ft2232_vid_pid 0x0640 0x002c\r
+\r
diff --git a/src/target/interface/str9-comstick.cfg b/src/target/interface/str9-comstick.cfg
deleted file mode 100644 (file)
index 32f19c6..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#
-# Hitex STR9-comStick
-#
-# http://www.hitex.com/index.php?id=383
-#
-
-interface ft2232
-ft2232_device_desc "STR9-comStick A"
-ft2232_layout comstick
-ft2232_vid_pid 0x0640 0x002c
-
diff --git a/src/target/target/imote2.cfg b/src/target/target/imote2.cfg
deleted file mode 100644 (file)
index 75425f7..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-# iMote2
-#
-if { [info exists CHIPNAME] } {        
-   set  _CHIPNAME $CHIPNAME    
-} else {        
-   set  _CHIPNAME imote2
-}
-
-if { [info exists ENDIAN] } {  
-   set  _ENDIAN $ENDIAN    
-} else {        
-   set  _ENDIAN little
-}
-
-if { [info exists CPUTAPID ] } {
-   set _CPUTAPID $CPUTAPID
-} else {
-  # force an error till we get a good number
-   set _CPUTAPID 0xffffffff
-}
-
-# PXA271 and an Intel Strataflash of 32 Megabytes (p30)
-# 
-# Marvell/Intel PXA270 Script
-# set jtag_nsrst_delay to the delay introduced by your reset circuit
-# the rest of the needed delays are built into the openocd program
-jtag_nsrst_delay 800 
-# set the jtag_ntrst_delay to the delay introduced by a reset circuit
-# the rest of the needed delays are built into the openocd program
-jtag_ntrst_delay 0
-#use combined on interfaces or targets that can't set TRST/SRST separately
-reset_config trst_and_srst separate
-#jtag scan chain
-
-jtag newtap $_CHIPNAME cpu -irlen 7 -ircapture 0x1 -irmask 0x7f -expected-id $_CPUTAPID
-
-set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
-target create $_TARGETNAME xscale -endian $_ENDIAN -chain-position $_TARGETNAME -variant pxa27x
-$_TARGETNAME configure -work-area-virt 0x0x5c000000 -work-area-phys 0x0x5c000000 -work-area-size 0x10000 -work-area-backup 1
-# maps to PXA internal RAM. If you are using a PXA255
-# you must initialize SDRAM or leave this option off
-
-
-#flash bank <driver> <base> <size> <chip_width> <bus_width>
-# works for P30 flash
-flash bank cfi 0x00000000 0x2000000 2 2 0
diff --git a/src/target/target/nslu2.cfg b/src/target/target/nslu2.cfg
deleted file mode 100644 (file)
index 5298410..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-# This is for the LinkSys (CISCO) NSLU2 board
-# It is an Intel XSCALE IXP420 CPU.
-
-source [find target/ixp42x.cfg]
-# The _TARGETNAME is set by the above.
-
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00020000 -work-area-size 0x10000 -work-area-backup 0
-
diff --git a/src/target/target/pxa255_sst.cfg b/src/target/target/pxa255_sst.cfg
deleted file mode 100644 (file)
index 37ff1a8..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-# A PXA255 test board with SST 39LF400A flash
-#
-# At reset the memory map is as follows. Note that
-# the memory map changes later on as the application 
-# starts...
-#
-# RAM at 0x4000000
-# Flash at 0x00000000
-#
-source [find target/pxa255.cfg]
-# Target name is set by above
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x4000000 -work-area-size 0x4000 -work-area-backup 0
-# flash bank <driver> <base> <size> <chip_width> <bus_width> <targetNum> [options]
-flash bank cfi 0x00000000 0x80000 2 2 0 jedec_probe
-
diff --git a/src/target/target/stm32stick.cfg b/src/target/target/stm32stick.cfg
deleted file mode 100644 (file)
index 5effbd9..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-# Hitex stm32 performance stick
-
-if { [info exists CHIPNAME] } {        
-   set  _CHIPNAME $CHIPNAME    
-} else {        
-   set  _CHIPNAME stm32_hitex
-}
-
-if { [info exists ENDIAN] } {  
-   set  _ENDIAN $ENDIAN    
-} else {        
-   set  _ENDIAN little
-}
-
-# set jtag speed
-jtag_khz 500
-
-jtag_nsrst_delay 100
-jtag_ntrst_delay 100
-
-#use combined on interfaces or targets that can't set TRST/SRST separately
-reset_config trst_and_srst
-
-#jtag scan chain
-# The CPU
-if { [info exists CPUTAPID ] } {
-   set _CPUTAPID $CPUTAPID
-} else {
-  # See STM Document RM0008
-  # Section 26.6.3
-   set _CPUTAPID 0x3ba00477
-}
-jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
-
-# The boundery scan register, leave the "expected-id" undefined.
-jtag newtap $_CHIPNAME bs  -irlen 5 -ircapture 0x1 -irmask 0x1 
-
-# configure str750 connected to jtag chain
-jtag newtap $_CHIPNAME unknown -irlen 4 -ircapture 0x1 -irmask 0x0f
-
-set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
-target create $_TARGETNAME cortex_m3 -endian $_ENDIAN -chain-position $_TARGETNAME
-
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 16384 -work-area-backup 0
-
-#
-flash bank stm32x 0 0 0 0 0
-
-# For more information about the configuration files, take a look at:
-# openocd.texi
diff --git a/src/target/target/str910-eval.cfg b/src/target/target/str910-eval.cfg
deleted file mode 100644 (file)
index 10a2100..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-# str910-eval eval board
-# 
-# Need reset scripts 
-reset_config trst_and_srst
-
-if { [info exists CHIPNAME] } {        
-   set  _CHIPNAME $CHIPNAME    
-} else {        
-   set  _CHIPNAME str912
-}
-
-if { [info exists ENDIAN] } {  
-   set  _ENDIAN $ENDIAN    
-} else {        
-   set  _ENDIAN little
-}
-
-if { [info exists FLASHTAPID ] } {
-   set _FLASHTAPID $FLASHTAPID
-} else {
-   set _FLASHTAPID 0x04570041
-}
-jtag newtap $_CHIPNAME flash -irlen 8 -ircapture 0x1 -irmask 0x1 -expected-id $_FLASHTAPID
-
-
-if { [info exists CPUTAPID ] } {
-   set _CPUTAPID $CPUTAPID
-} else {
-   set _CPUTAPID 0x25966041
-}
-jtag newtap $_CHIPNAME cpu   -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
-
-if { [info exists BSTAPID ] } {
-   set _BSTAPID $BSTAPID
-} else {
-   set _BSTAPID 0x1457f041
-}
-jtag newtap $_CHIPNAME bs    -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_BSTAPID
-
-set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
-target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm966e
-$_TARGETNAME configure -work-area-phys 0x50000000 -work-area-virt 0x50000000 -work-area-size 16384 -work-area-backup 1
-
-$_TARGETNAME configure -event reset-init {
-       # We can increase speed now that we know the target is halted.
-       #jtag_rclk 3000
-       
-       # -- Enable 96K RAM
-       # PFQBC enabled / DTCM & AHB wait-states disabled
-       mww 0x5C002034 0x0191 
-
-       str9x flash_config 0 4 2 0 0x80000
-       flash protect 0 0 7 off
-}
-
-#flash bank str9x <base> <size> 0 0 <target#> <variant>
-flash bank str9x 0x00000000 0x00080000 0 0 0
-flash bank str9x 0x00080000 0x00008000 0 0 0
-
-# For more information about the configuration files, take a look at:
-# openocd.texi
diff --git a/src/target/target/str9comstick.cfg b/src/target/target/str9comstick.cfg
deleted file mode 100644 (file)
index a621ffe..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-#Hitex STR9 Comstick
-
-# set jtag speed
-jtag_khz 3000
-
-jtag_nsrst_delay 100
-jtag_ntrst_delay 100
-#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)
-
-if { [info exists CHIPNAME] } {        
-   set  _CHIPNAME $CHIPNAME    
-} else {        
-   set  _CHIPNAME str912
-}
-
-if { [info exists ENDIAN] } {  
-   set  _ENDIAN $ENDIAN    
-} else {        
-   set  _ENDIAN little
-}
-
-if { [info exists FLASHTAPID ] } {
-   set _FLASHTAPID $FLASHTAPID
-} else {
-   set _FLASHTAPID 0x04570041
-}
-jtag newtap $_CHIPNAME flash -irlen 8 -ircapture 0x1 -irmask 0x1 -expected-id $_FLASHTAPID
-
-if { [info exists CPUTAPID ] } {
-   set _CPUTAPID $CPUTAPID
-} else {
-   set _CPUTAPID 0x25966041
-}
-jtag newtap $_CHIPNAME cpu   -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
-
-if { [info exists BSTAPID ] } {
-   set _BSTAPID $BSTAPID
-} else {
-   # Found on STR9-comStick, revision STR912CS-A1
-   set _BSTAPID1 0x1457f041
-   # Found on STR9-comStick, revision STR912CS-A2
-   set _BSTAPID2 0x2457f041
-}
-jtag newtap $_CHIPNAME bs -irlen 5 -ircapture 0x1 -irmask 0x1 -expected-id $_BSTAPID1 -expected-id $_BSTAPID2
-
-set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
-target create $_TARGETNAME arm966e -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm966e
-
-$_TARGETNAME configure -event reset-init {
-       # We can increase speed now that we know the target is halted.
-       #jtag_rclk 3000
-       
-       # -- Enable 96K RAM
-       # PFQBC enabled / DTCM & AHB wait-states disabled
-       mww 0x5C002034 0x0191 
-
-       str9x flash_config 0 4 2 0 0x80000
-       flash protect 0 0 7 off
-}
-
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x50000000 -work-area-size 16384 -work-area-backup 0
-
-#flash bank <driver> <base> <size> <chip_width> <bus_width>
-flash bank str9x 0x00000000 0x00080000 0 0 0
-flash bank str9x 0x00080000 0x00008000 0 0 0
diff --git a/src/target/target/wi-9c.cfg b/src/target/target/wi-9c.cfg
deleted file mode 100644 (file)
index 249f1a1..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-# FIXME: THIS IS A *BOARD* not a CHIP configuration.
-######################################
-# Target: DIGI ConnectCore Wi-9C
-######################################
-
-reset_config trst_and_srst
-
-if { [info exists CHIPNAME] } {        
-   set  _CHIPNAME $CHIPNAME    
-} else {        
-   set  _CHIPNAME ns9360
-}
-
-if { [info exists ENDIAN] } {  
-   set  _ENDIAN $ENDIAN    
-} else {        
-  # This config file was defaulting to big endian..
-   set  _ENDIAN big
-}
-
-
-# What's a good fallback frequency for this board if RCLK is
-# not available??
-jtag_rclk 1000
-
-
-if { [info exists CPUTAPID ] } {
-   set _CPUTAPID $CPUTAPID
-} else {
-   set _CPUTAPID 0xFFFFFFFF
-}
-
-set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
-jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
-
-jtag_nsrst_delay 200
-jtag_ntrst_delay 0
-
-
-######################
-# Target configuration
-######################
-
-target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm926ejs
-$_TARGETNAME configure -event reset-init {
-       mww 0x90600104 0x33313333
-       mww 0xA0700000 0x00000001  # Enable the memory controller.
-       mww 0xA0700024 0x00000006  # Set the refresh counter 6
-       mww 0xA0700028 0x00000001  # 
-       mww 0xA0700030 0x00000001  # Set the precharge period
-       mww 0xA0700034 0x00000004  # Active to precharge command period is 16 clock cycles
-       mww 0xA070003C 0x00000001  # tAPR
-       mww 0xA0700040 0x00000005  # tDAL
-       mww 0xA0700044 0x00000001  # tWR
-       mww 0xA0700048 0x00000006  # tRC 32 clock cycles  
-       mww 0xA070004C 0x00000006  # tRFC 32 clock cycles
-       mww 0xA0700054 0x00000001  # tRRD
-       mww 0xA0700058 0x00000001  # tMRD
-       mww 0xA0700100 0x00004280  # Dynamic Config 0 (cs4) 
-       mww 0xA0700120 0x00004280  # Dynamic Config 1 (cs5)
-       mww 0xA0700140 0x00004280  # Dynamic Config 2 (cs6)
-       mww 0xA0700160 0x00004280  # Dynamic Config 3 (cs7)
-       #
-       mww 0xA0700104 0x00000203  # CAS latency is 2 at 100 MHz
-       mww 0xA0700124 0x00000203  # CAS latency is 2 at 100 MHz
-       mww 0xA0700144 0x00000203  # CAS latency is 2 at 100 MHz
-       mww 0xA0700164 0x00000203  # CAS latency is 2 at 100 MHz
-       #
-       mww 0xA0700020 0x00000103  # issue SDRAM PALL command
-       #
-       mww 0xA0700024 0x00000001  # Set the refresh counter to be as small as possible
-       #
-       # Add some dummy writes to give the SDRAM time to settle, it needs two
-       # AHB clock cycles, here we poke in the debugger flag, this lets
-       # the software know that we are in the debugger
-       mww 0xA0900000 0x00000002
-       mww 0xA0900000 0x00000002
-       mww 0xA0900000 0x00000002
-       mww 0xA0900000 0x00000002
-       mww 0xA0900000 0x00000002
-       #
-       mdw 0xA0900000 
-       mdw 0xA0900000 
-       mdw 0xA0900000 
-       mdw 0xA0900000 
-       mdw 0xA0900000 
-       #
-       mww 0xA0700024 0x00000030 # Set the refresh counter to 30
-       mww 0xA0700020 0x00000083 # Issue SDRAM MODE command
-       #
-       # Next we perform a read of RAM.
-       # mw = move word.
-       mdw 0x00022000
-       # mw 0x00022000:P, r3  # 22000 for cas2 latency, 32000 for cas 3
-       #
-       mww 0xA0700020 0x00000003   # issue SDRAM NORMAL command
-       mww 0xA0700100 0x00084280   # Enable buffer access
-       mww 0xA0700120 0x00084280   # Enable buffer access
-       mww 0xA0700140 0x00084280   # Enable buffer access
-       mww 0xA0700160 0x00084280   # Enable buffer access
-
-       #Set byte lane state (static mem 1)"
-       mww 0xA0700220, 0x00000082
-       #Flash Start
-       mww 0xA09001F8, 0x50000000
-       #Flash Mask Reg
-       mww 0xA09001FC, 0xFF000001
-       mww 0xA0700028, 0x00000001
-
-       #  RAMAddr = 0x00020000
-       #  RAMSize = 0x00004000
-
-       # Set the processor mode
-       reg cpsr 0xd3
-}
-
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00000000 -work-area-size 0x1000 -work-area-backup 1
-
-#####################
-# Flash configuration
-#####################
-
-#M29DW323DB - not working
-#flash bank cfi <base> <size> <chip width> <bus width> <target#>
-flash bank cfi 0x50000000 0x0400000 2 2 0
-
-
-
diff --git a/src/target/target/zy1000.cfg b/src/target/target/zy1000.cfg
deleted file mode 100644 (file)
index d8bb465..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-#Script for ZY1000
-
-#Atmel ties SRST & TRST together, at which point it makes
-#no sense to use TRST, but use TMS instead.
-#
-#The annoying thing with tying SRST & TRST together is that
-#there is no way to halt the CPU *before and during* the
-#SRST reset, which means that the CPU will run a number
-#of cycles before it can be halted(as much as milliseconds).
-reset_config srst_only srst_pulls_trst
-
-
-if { [info exists CHIPNAME] } {        
-   set  _CHIPNAME $CHIPNAME    
-} else {        
-   set  _CHIPNAME zy1000
-}
-
-if { [info exists ENDIAN] } {  
-   set  _ENDIAN $ENDIAN    
-} else {        
-   set  _ENDIAN little
-}
-
-#jtag scan chain
-if { [info exists CPUTAPID ] } {
-   set _CPUTAPID $CPUTAPID
-} else {
-   set _CPUTAPID 0x1f0f0f0f
-}
-jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
-
-set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
-target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi-s_r4
-
-# at CPU CLK <32kHz this must be disabled
-arm7_9 fast_memory_access enable
-arm7_9 dcc_downloads enable
-
-flash bank ecosflash 0x01000000 0x200000 2 2 0 ecos/at91eb40a.elf
-$_TARGETNAME configure -event reset-init { 
-       # Set up chip selects & timings
-       mww 0xFFE00000 0x0100273D
-       mww 0xFFE00004 0x08002125
-       mww 0xFFEe0008 0x02002125
-       mww 0xFFE0000c 0x03002125
-       mww 0xFFE00010 0x40000000
-       mww 0xFFE00014 0x50000000
-       mww 0xFFE00018 0x60000000
-       mww 0xFFE0001c 0x70000000
-       mww 0xFFE00020 0x00000001
-       mww 0xFFE00024 0x00000000
-       
-       # remap  
-       mww 0xFFFFF124 0xFFFFFFFF  
-       mww 0xffff0010 0x100
-       mww 0xffff0034 0x100
-       
-       #disable 16x5x UART interrupts
-       mww 0x08020004 0
-}
-
-# required for usable performance. Used for lots of
-# other things than flash programming.
-$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00020000 -work-area-size 0x20000 -work-area-backup 0
-
-jtag_khz 16000
-
-
-proc production_info {} {
-       return "Serial number is official MAC number. Format XXXXXXXXXXXX"
-}
-
-# There is no return value from this procedure. If it is
-# successful it does not throw an exception
-#
-# Progress messages are output via puts 
-proc production {firmwarefile serialnumber} {
-       if {[string length $serialnumber]!=12} {
-               puts "Invalid serial number"
-               return
-       }
-
-       puts "Power cycling target"
-       power off
-       sleep 3000
-       power on
-       sleep 1000
-       reset init
-       flash write_image erase $firmwarefile 0x1000000 bin
-       verify_image $firmwarefile 0x1000000 bin
-
-       # Big endian... weee!!!!
-       puts "Setting MAC number to $serialnumber"      
-       flash fillw [expr 0x1030000-0x8] "0x[string range $serialnumber 2 3][string range $serialnumber 0 1]0000" 1
-       flash fillw [expr 0x1030000-0x4] "0x[string range $serialnumber 10 11][string range $serialnumber 8 9][string range $serialnumber 6 7][string range $serialnumber 4 5]" 1
-       puts "Production successful"
-} 
-
-
-proc production_test {} {
-       power on
-       sleep 1000
-       target_request debugmsgs enable
-       reset run
-       sleep 25000
-       target_request debugmsgs disable
-       return "See IP address above..."
-}