***************************************************************************/
/*
- * 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:
--- /dev/null
+######################################\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