aboutsummaryrefslogtreecommitdiff
path: root/tcl/board/lemaker_hikey.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/board/lemaker_hikey.cfg')
-rw-r--r--tcl/board/lemaker_hikey.cfg26
1 files changed, 26 insertions, 0 deletions
diff --git a/tcl/board/lemaker_hikey.cfg b/tcl/board/lemaker_hikey.cfg
new file mode 100644
index 0000000..d724440
--- /dev/null
+++ b/tcl/board/lemaker_hikey.cfg
@@ -0,0 +1,26 @@
+#
+# board configuration for LeMaker Hikey
+#
+
+# board does not feature anything but JTAG
+transport select jtag
+
+# SRST-only reset configuration
+reset_config srst_only srst_push_pull
+
+source [find target/hi6220.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
+ }
+}