summaryrefslogtreecommitdiff
path: root/src/target/arm_adi_v5.h
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2010-01-02 15:53:33 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2010-01-02 15:53:33 -0800
commit4ed5b45097cb2c13f9ef0682848c4682b5fd7240 (patch)
treeffb886b24a0df61f0dfe24768e276b653492a9ea /src/target/arm_adi_v5.h
parent858226aae27b262cb3cb8274c6c7459a0068cc8a (diff)
downloadopenocd+libswd-4ed5b45097cb2c13f9ef0682848c4682b5fd7240.tar.gz
openocd+libswd-4ed5b45097cb2c13f9ef0682848c4682b5fd7240.tar.bz2
openocd+libswd-4ed5b45097cb2c13f9ef0682848c4682b5fd7240.tar.xz
openocd+libswd-4ed5b45097cb2c13f9ef0682848c4682b5fd7240.zip
ARM: ADIv5 JTAG symbol cleanup
Rename DAP_IR_* as JTAG_DP_* since those symbols are specifically for JTAG-DP (or SWJ-DP in JTAG mode), and won't work with SWD. Define the JTAG ABORT and IDCODE instructions for completeness; add a comment about where to (someday) use ABORT. Fix messaging which assumes everything is an SWJ-DP; say "JTAG-DP" instead, it's at least more appropriate for all JTAG transports. Shrink the affected lines. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target/arm_adi_v5.h')
-rw-r--r--src/target/arm_adi_v5.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h
index bfa5105e..4e1b1aa6 100644
--- a/src/target/arm_adi_v5.h
+++ b/src/target/arm_adi_v5.h
@@ -32,8 +32,11 @@
#include "arm_jtag.h"
-#define DAP_IR_DPACC 0xA
-#define DAP_IR_APACC 0xB
+/* JTAG instructions/registers for JTAG-DP and SWJ-DP */
+#define JTAG_DP_ABORT 0x8
+#define JTAG_DP_DPACC 0xA
+#define JTAG_DP_APACC 0xB
+#define JTAG_DP_IDCODE 0xE
#define DPAP_WRITE 0
#define DPAP_READ 1