Nicolas Pitre nico at cam.org add Feroceon target config file
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 1 Mar 2009 21:00:07 +0000 (21:00 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sun, 1 Mar 2009 21:00:07 +0000 (21:00 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1389 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/feroceon.c
src/target/target/feroceon.cfg [new file with mode: 0644]

index b0c4069e491c4375cbfd12e6d4a1f6eb0964a447..df0feb0d431328831479fc72bbdae4f2027b5c80 100644 (file)
@@ -22,7 +22,7 @@
  ***************************************************************************/
 
 /*
- * Marvell Feroceon (88F5182, 88F5281) support.
+ * Marvell Feroceon support, including Orion and Kirkwood SOCs.
  *
  * The Feroceon core mimics the ARM926 ICE interface with the following
  * differences:
diff --git a/src/target/target/feroceon.cfg b/src/target/target/feroceon.cfg
new file mode 100644 (file)
index 0000000..26f63f2
--- /dev/null
@@ -0,0 +1,30 @@
+######################################\r
+# Target:    Marvell Feroceon CPU core\r
+######################################\r
+\r
+if { [info exists CHIPNAME] } {        \r
+   set  _CHIPNAME $CHIPNAME    \r
+} else {        \r
+   set  _CHIPNAME feroceon\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
+   set _CPUTAPID 0x20a023d3\r
+}\r
+\r
+jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID\r
+set _TARGETNAME [format "%s.cpu" $_CHIPNAME]\r
+target create $_TARGETNAME feroceon -endian $_ENDIAN -chain-position $_TARGETNAME\r
+\r
+reset_config trst_and_srst\r
+jtag_nsrst_delay 200\r
+jtag_ntrst_delay 200\r
+\r