Move Cortex A8 debug access initialisation from omap3530.cfg to cortex_a8.c
[fw/openocd] / tcl / target / omap3530.cfg
index c9d48983e2a920d2a81ac7ff871a8a9cea7d073d..3c7dd9cfe17c46046235501facee1231e808412f 100644 (file)
@@ -47,24 +47,9 @@ proc omap3_dbginit { } {
 
      jtag tapenable omap3530.dap
      targets
-     # sleep 1000
-     # dap apsel 1
-     # sleep 1000
-     # dap apsel 1
-     # dap info 1
-
-     # 0xd401.0000 - ETM
-     # 0xd401.1000 - Cortex-A8
-     # 0xd401.9000 - TPIU (traceport)
-     # 0xd401.b000 - ETB
-     # 0xd401.d000 - DAPCTL
-
-     omap3.cpu mww 0x54011FB0 0xC5ACCE55
-
-     omap3.cpu mdw 0x54011314
-     omap3.cpu mdw 0x54011314
-     # omap3.cpu mdw 0x54011080
-
+     # General Cortex A8 debug initialisation
+     cortex_a8 dbginit
+     # Enable DBGU singal for OMAP353x
      omap3.cpu mww 0x5401d030 0x00002000
      poll on
 }