arm_adi_v5: Split CSW bits into AHB/APB/AXI

The implementation-defined bits have different semantics for each bus
and different recommended defaults.

Change-Id: I562fe24643bb1f3abc696339e382a75ccf2f2873
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-on: http://openocd.zylin.com/5124
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
Leonard Crestez
2019-04-16 22:12:18 +03:00
committed by Tomas Vanek
parent 51ef02a5d1
commit 2288394b45
3 changed files with 27 additions and 8 deletions

View File

@@ -1745,7 +1745,7 @@ COMMAND_HANDLER(dap_apcsw_command)
return ERROR_OK;
case 1:
if (strcmp(CMD_ARGV[0], "default") == 0)
csw_val = CSW_DEFAULT;
csw_val = CSW_AHB_DEFAULT;
else
COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], csw_val);