aboutsummaryrefslogtreecommitdiff
path: root/src/target/arm_adi_v5.h
diff options
context:
space:
mode:
authorMichel JAOUEN <michel.jaouen@stericsson.com>2013-03-18 16:45:40 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2013-04-11 16:06:31 +0000
commit50c93152123feec0f0a063ffb18cd7d91069c115 (patch)
tree3c3605c9ae4ead7aea05920f2bf0a53066b0ed96 /src/target/arm_adi_v5.h
parent74db7f9681c960c18c1ce2e3d317d931aaefe713 (diff)
arm_adi_v5: fix for csw nonsecure access.
Add command to fix CSW_SPROT in register AP_CSW. This solves dap apmem access in non secure access. Change-Id: I7cfcb6434d75f5cfd4a2630a059901cdeea010ce Signed-off-by: Michel JAOUEN <michel.jaouen@stericsson.com> Reviewed-on: http://openocd.zylin.com/1276 Tested-by: jenkins Reviewed-by: mike brown Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/arm_adi_v5.h')
-rw-r--r--src/target/arm_adi_v5.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/arm_adi_v5.h b/src/target/arm_adi_v5.h
index 301402ec..638fc4ea 100644
--- a/src/target/arm_adi_v5.h
+++ b/src/target/arm_adi_v5.h
@@ -116,6 +116,7 @@
/* 30:24 - implementation-defined! */
#define CSW_HPROT (1 << 25) /* ? */
#define CSW_MASTER_DEBUG (1 << 29) /* ? */
+#define CSW_SPROT (1 << 30)
#define CSW_DBGSWENABLE (1 << 31)
/**
@@ -141,6 +142,7 @@ struct adiv5_dap {
/* Control config */
uint32_t dp_ctrl_stat;
+ uint32_t apcsw[256];
uint32_t apsel;
/**