tcl: add hi3798 target and Tocoding Poplar board config
[fw/openocd] / tcl / board / tocoding_poplar.cfg
diff --git a/tcl/board/tocoding_poplar.cfg b/tcl/board/tocoding_poplar.cfg
new file mode 100644 (file)
index 0000000..fd66156
--- /dev/null
@@ -0,0 +1,28 @@
+#
+# board configuration for Tocoding Poplar
+#
+
+# board does not feature anything but JTAG
+transport select jtag
+
+adapter_khz 10000
+
+# SRST-only reset configuration
+reset_config srst_only srst_push_pull
+
+source [find tcl/target/hi3798.cfg]
+
+# halt the cores when gdb attaches
+${_TARGETNAME}0 configure -event gdb-attach "halt"
+
+# make sure the default target is the boot core
+targets ${_TARGETNAME}0
+
+proc core_up { args } {
+       global _TARGETNAME
+
+       # examine remaining cores
+       foreach _core [set args] {
+               ${_TARGETNAME}$_core arp_examine
+       }
+}