From bb5e6af04e6ae74ebec6d6d0da2ac22d8a50d589 Mon Sep 17 00:00:00 2001
From: Sihyung Woo <75494566+sihyung-maxim@users.noreply.github.com>
Date: Thu, 10 Aug 2023 15:05:39 -0500
Subject: [PATCH] fix(CMSIS): Regenerate trng_regs.h using correct SVD file for
MAX32670 (#692)
---
.../CMSIS/Device/Maxim/MAX32670/Include/max32670.svd | 8 +-------
Libraries/CMSIS/Device/Maxim/MAX32670/Include/trng_regs.h | 7 ++-----
2 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/Libraries/CMSIS/Device/Maxim/MAX32670/Include/max32670.svd b/Libraries/CMSIS/Device/Maxim/MAX32670/Include/max32670.svd
index fd6d6ce4009..288b5472651 100644
--- a/Libraries/CMSIS/Device/Maxim/MAX32670/Include/max32670.svd
+++ b/Libraries/CMSIS/Device/Maxim/MAX32670/Include/max32670.svd
@@ -8775,17 +8775,11 @@
1
- AESKG_USR
+ KEYGEN
AES Key Generate. When enabled, the key for securing NVSRAM is generated and transferred to the secure key register automatically without user visibility or intervention. This bit is cleared by hardware once the key has been transferred to the secure key register.
3
1
-
- AESKG_SYS
- AESKG_SYS.
- 4
- 1
-
KEYWIPE
To wipe the Battery Backed key.
diff --git a/Libraries/CMSIS/Device/Maxim/MAX32670/Include/trng_regs.h b/Libraries/CMSIS/Device/Maxim/MAX32670/Include/trng_regs.h
index 57219250be2..87c18ec4bb9 100644
--- a/Libraries/CMSIS/Device/Maxim/MAX32670/Include/trng_regs.h
+++ b/Libraries/CMSIS/Device/Maxim/MAX32670/Include/trng_regs.h
@@ -119,11 +119,8 @@ typedef struct {
#define MXC_F_TRNG_CTRL_HEALTH_EN_POS 2 /**< CTRL_HEALTH_EN Position */
#define MXC_F_TRNG_CTRL_HEALTH_EN ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_HEALTH_EN_POS)) /**< CTRL_HEALTH_EN Mask */
-#define MXC_F_TRNG_CTRL_AESKG_USR_POS 3 /**< CTRL_AESKG_USR Position */
-#define MXC_F_TRNG_CTRL_AESKG_USR ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_AESKG_USR_POS)) /**< CTRL_AESKG_USR Mask */
-
-#define MXC_F_TRNG_CTRL_AESKG_SYS_POS 4 /**< CTRL_AESKG_SYS Position */
-#define MXC_F_TRNG_CTRL_AESKG_SYS ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_AESKG_SYS_POS)) /**< CTRL_AESKG_SYS Mask */
+#define MXC_F_TRNG_CTRL_KEYGEN_POS 3 /**< CTRL_KEYGEN Position */
+#define MXC_F_TRNG_CTRL_KEYGEN ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_KEYGEN_POS)) /**< CTRL_KEYGEN Mask */
#define MXC_F_TRNG_CTRL_KEYWIPE_POS 15 /**< CTRL_KEYWIPE Position */
#define MXC_F_TRNG_CTRL_KEYWIPE ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_KEYWIPE_POS)) /**< CTRL_KEYWIPE Mask */