aboutsummaryrefslogtreecommitdiff
path: root/tcl/target
diff options
context:
space:
mode:
authorLeonard Crestez <leonard.crestez@nxp.com>2019-04-03 19:07:56 +0300
committerMatthias Welwarsky <matthias@welwarsky.de>2019-04-24 14:11:46 +0100
commitc63c73c743f8948905c1ae1a25404e598153eaf2 (patch)
treedfc1d823103d109f13318688652bf08de5ba5184 /tcl/target
parent23836fc5be5cc57f04267bee10c451e667c95143 (diff)
target/imx8m: Cleanup defaults
* Add mem_ap for direct access to axi bus (without halting cpu) * Mark m4 core with -defer-examine because it's not used by default * Make a53.0 default target since it's the boot core Change-Id: Id031533c5d4af346eb08a9ac2532fa1bca602913 Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com> Reviewed-on: http://openocd.zylin.com/5036 Tested-by: jenkins Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Diffstat (limited to 'tcl/target')
-rw-r--r--tcl/target/imx8m.cfg10
1 files changed, 8 insertions, 2 deletions
diff --git a/tcl/target/imx8m.cfg b/tcl/target/imx8m.cfg
index 5d7acbed..e3b7d24e 100644
--- a/tcl/target/imx8m.cfg
+++ b/tcl/target/imx8m.cfg
@@ -52,7 +52,13 @@ for { set _core 0 } { $_core < $_cores } { incr _core } {
}
eval $_smp_command
-targets $_TARGETNAME.0
# declare the auxiliary Cortex-M4 core on AP #4
-target create ${_CHIPNAME}.m4 cortex_m -dap ${_CHIPNAME}.dap -ap-num 4
+target create ${_CHIPNAME}.m4 cortex_m -dap ${_CHIPNAME}.dap -ap-num 4 \
+ -defer-examine
+
+# AHB-AP for direct access to soc bus
+target create ${_CHIPNAME}.ahb mem_ap -dap ${_CHIPNAME}.dap -ap-num 0
+
+# default target is A53 core 0
+targets $_TARGETNAME.0