From e09bb72da50c9a9878565af23ee8d5465c11526d Mon Sep 17 00:00:00 2001 From: Tomas Vanek Date: Mon, 5 Feb 2024 11:51:24 +0100 Subject: [PATCH] target/cortex_m: add DSCSR_CDSKEY bit definition Needed e.g. for flash drivers handling secure mode. Signed-off-by: Tomas Vanek Change-Id: If6cb49609140d06a73bcf2e446b6a634d6326e80 Reviewed-on: https://review.openocd.org/c/openocd/+/8435 Tested-by: jenkins Reviewed-by: Antonio Borneo --- src/target/cortex_m.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/target/cortex_m.h b/src/target/cortex_m.h index 726fca2903..144f24560c 100644 --- a/src/target/cortex_m.h +++ b/src/target/cortex_m.h @@ -150,6 +150,7 @@ struct cortex_m_part_info { #define VC_CORERESET BIT(0) /* DCB_DSCSR bit and field definitions */ +#define DSCSR_CDSKEY BIT(17) #define DSCSR_CDS BIT(16) /* NVIC registers */