aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Mamonov <pmamonov@gmail.com>2019-06-26 18:43:16 +0300
committerAntonio Borneo <borneo.antonio@gmail.com>2023-09-23 14:41:12 +0000
commit4b1ea8511a7da9d7201df40302e3341c6e97ffdd (patch)
treef94a0f7a4e2307401906d3ac5888296ab7f58c09
parenteeee3f41daf2b4668a0c6f75bc621146caa84b77 (diff)
downloadriscv-openocd-4b1ea8511a7da9d7201df40302e3341c6e97ffdd.zip
riscv-openocd-4b1ea8511a7da9d7201df40302e3341c6e97ffdd.tar.gz
riscv-openocd-4b1ea8511a7da9d7201df40302e3341c6e97ffdd.tar.bz2
tcl/target: add support for Cavium Octeon II CN61xx
Change-Id: Ia14854bc64f5a31b6591be69be4edee9cd1310c3 Signed-off-by: Peter Mamonov <pmamonov@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/5249 Reviewed-by: Oleksij Rempel <linux@rempel-privat.de> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
-rw-r--r--tcl/target/cavium_cn61xx.cfg15
1 files changed, 15 insertions, 0 deletions
diff --git a/tcl/target/cavium_cn61xx.cfg b/tcl/target/cavium_cn61xx.cfg
new file mode 100644
index 0000000..60b56a5
--- /dev/null
+++ b/tcl/target/cavium_cn61xx.cfg
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+#
+# Cavium Octeon II CN61xx (PrID 0x000D9301)
+
+jtag newtap cpu tap0 -irlen 5
+jtag newtap cpu tap1 -irlen 5
+
+target create cpu.core0 mips_mips64 -chain-position cpu.tap0 -endian big -rtos hwthread -coreid 0
+target create cpu.core1 mips_mips64 -chain-position cpu.tap1 -endian big -rtos hwthread -coreid 1
+target smp cpu.core0 cpu.core1
+
+cpu.core0 configure -work-area-phys 0xffffffffa2000000 -work-area-size 0x20000
+cpu.core1 configure -work-area-phys 0xffffffffa2000000 -work-area-size 0x20000
+
+targets cpu.core0