aboutsummaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authorOleksij Rempel <linux@rempel-privat.de>2015-06-30 20:36:16 +0200
committerFreddie Chopin <freddie.chopin@gmail.com>2015-11-03 22:18:30 +0000
commitd651d7109f368f66eba481404e9d063ec1219a69 (patch)
tree119486af6329d1cdd68a1f018575a86227f5291b /tcl
parenta9f2761083b109e6fc81068b18f39cac033492e2 (diff)
tcl/target|board: add config Atheros ar2315
Add configs for Atheros ar2313 MIPS based WiSoC and board based on this chip: La Fonera FON2200 Change-Id: Ibfdbfc9c2beca6cf436c9ee5e493b08bfb55ac85 Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Reviewed-on: http://openocd.zylin.com/2839 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/board/la_fonera-fon2200.cfg3
-rw-r--r--tcl/target/atheros_ar2315.cfg16
2 files changed, 19 insertions, 0 deletions
diff --git a/tcl/board/la_fonera-fon2200.cfg b/tcl/board/la_fonera-fon2200.cfg
new file mode 100644
index 00000000..f46b0420
--- /dev/null
+++ b/tcl/board/la_fonera-fon2200.cfg
@@ -0,0 +1,3 @@
+source [find target/atheros_ar2315.cfg]
+
+reset_config trst_and_srst
diff --git a/tcl/target/atheros_ar2315.cfg b/tcl/target/atheros_ar2315.cfg
new file mode 100644
index 00000000..92ad3760
--- /dev/null
+++ b/tcl/target/atheros_ar2315.cfg
@@ -0,0 +1,16 @@
+if { [info exists CHIPNAME] } {
+ set _CHIPNAME $_CHIPNAME
+} else {
+ set _CHIPNAME ar2315
+}
+
+if { [info exists CPUTAPID] } {
+ set _CPUTAPID $CPUTAPID
+} else {
+ set _CPUTAPID 0x00000001
+}
+
+jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id $_CPUTAPID
+
+set _TARGETNAME $_CHIPNAME.cpu
+target create $_TARGETNAME mips_m4k -endian big -chain-position $_TARGETNAME