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>
This commit is contained in:
Michel JAOUEN
2013-03-18 16:45:40 +01:00
committed by Spencer Oliver
parent 74db7f9681
commit 50c9315212
3 changed files with 50 additions and 1 deletions

View File

@@ -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;
/**