iMX2* + ETB targets: hook up ETM and ETB
authorDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 14 Nov 2009 00:56:11 +0000 (16:56 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Sat, 14 Nov 2009 00:56:11 +0000 (16:56 -0800)
ARM9 cores with an ETB will have a matching ETM.
Hook them both up by default.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
tcl/target/imx25.cfg
tcl/target/imx27.cfg

index 6474a85940897c88bdff41b3ed04086753a2a8f7..ead66102f0f8d014ed4b605ae7ed4d9bc9aaafcb 100644 (file)
@@ -38,4 +38,9 @@ if { [info exists SDMATAPID ] } {
 jtag newtap $_CHIPNAME sdma -irlen 5 -expected-id $_SDMATAPID
 
 set _TARGETNAME $_CHIPNAME.cpu
-target create $_TARGETNAME arm926ejs -endian $_ENDIAN -chain-position $_TARGETNAME
+target create $_TARGETNAME arm926ejs -endian $_ENDIAN \
+               -chain-position $_TARGETNAME
+
+# trace setup
+etm config $_TARGETNAME 16 normal full etb
+etb config $_TARGETNAME $_CHIPNAME.etb
index 039e83c3a8f725d46546be77213f83c4c362c7d8..dabae6d70f8d621cc59dfb5d07e990f84eb7099a 100644 (file)
@@ -47,3 +47,7 @@ $_TARGETNAME configure -work-area-virt 0xffff4c00 -work-area-phys 0xffff4c00 \
 #
 
 arm7_9 dcc_downloads enable
+
+# trace setup
+etm config $_TARGETNAME 16 normal full etb
+etb config $_TARGETNAME $_CHIPNAME.etb