From e2ee5899f60b059591d1ffe74db6c40f4d97a5c8 Mon Sep 17 00:00:00 2001
From: Sihyung Woo <75494566+sihyung-maxim@users.noreply.github.com>
Date: Wed, 18 Dec 2024 13:33:09 -0600
Subject: [PATCH] fix(CMSIS): Remove AES Key Generation (unsupported) feature
from MAX32657 (#1303)
---
.../Maxim/MAX32657/Include/max32657.svd | 30 -------------------
.../Device/Maxim/MAX32657/Include/trng_regs.h | 15 ----------
.../Source/TRNG/trng_revc_me30.svd | 30 -------------------
3 files changed, 75 deletions(-)
diff --git a/Libraries/CMSIS/Device/Maxim/MAX32657/Include/max32657.svd b/Libraries/CMSIS/Device/Maxim/MAX32657/Include/max32657.svd
index 919cf24974..723e51b1eb 100644
--- a/Libraries/CMSIS/Device/Maxim/MAX32657/Include/max32657.svd
+++ b/Libraries/CMSIS/Device/Maxim/MAX32657/Include/max32657.svd
@@ -10317,24 +10317,6 @@
2
1
-
- AESKG_MEU
- Generate and transfer 256 bit MEU key to AES Key storage.
- 3
- 1
-
-
- AESKG_MEMPROT_XIP
- Generate and transfer 128 bit MEMPROT_XIP key to AES key storage.
- 4
- 1
-
-
- AESKG_MEMPROT_DIP
- Generate and transfer 128 bit MEMPROT_DIP key to AES key storage.
- 5
- 1
-
OD_ROMON
Start ring oscillator monitor on demand test.
@@ -10365,12 +10347,6 @@
10
1
-
- KEYWIPE
- To wipe the Battery Backed key.
- 15
- 1
-
GET_TERO_CNT
Get Tero Count.
@@ -10472,12 +10448,6 @@
3
1
-
- AES_KEYGEN
- AESKGD.
- 4
- 1
-
OD_ROMON
On demand ring oscillator test status.
diff --git a/Libraries/CMSIS/Device/Maxim/MAX32657/Include/trng_regs.h b/Libraries/CMSIS/Device/Maxim/MAX32657/Include/trng_regs.h
index f76ab2eaa7..5d5cad41b1 100644
--- a/Libraries/CMSIS/Device/Maxim/MAX32657/Include/trng_regs.h
+++ b/Libraries/CMSIS/Device/Maxim/MAX32657/Include/trng_regs.h
@@ -111,15 +111,6 @@ typedef struct {
#define MXC_F_TRNG_CTRL_HEALTH_IE_POS 2 /**< CTRL_HEALTH_IE Position */
#define MXC_F_TRNG_CTRL_HEALTH_IE ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_HEALTH_IE_POS)) /**< CTRL_HEALTH_IE Mask */
-#define MXC_F_TRNG_CTRL_AESKG_MEU_POS 3 /**< CTRL_AESKG_MEU Position */
-#define MXC_F_TRNG_CTRL_AESKG_MEU ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_AESKG_MEU_POS)) /**< CTRL_AESKG_MEU Mask */
-
-#define MXC_F_TRNG_CTRL_AESKG_MEMPROT_XIP_POS 4 /**< CTRL_AESKG_MEMPROT_XIP Position */
-#define MXC_F_TRNG_CTRL_AESKG_MEMPROT_XIP ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_AESKG_MEMPROT_XIP_POS)) /**< CTRL_AESKG_MEMPROT_XIP Mask */
-
-#define MXC_F_TRNG_CTRL_AESKG_MEMPROT_DIP_POS 5 /**< CTRL_AESKG_MEMPROT_DIP Position */
-#define MXC_F_TRNG_CTRL_AESKG_MEMPROT_DIP ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_AESKG_MEMPROT_DIP_POS)) /**< CTRL_AESKG_MEMPROT_DIP Mask */
-
#define MXC_F_TRNG_CTRL_OD_ROMON_POS 6 /**< CTRL_OD_ROMON Position */
#define MXC_F_TRNG_CTRL_OD_ROMON ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_OD_ROMON_POS)) /**< CTRL_OD_ROMON Mask */
@@ -135,9 +126,6 @@ typedef struct {
#define MXC_F_TRNG_CTRL_EBLS_POS 10 /**< CTRL_EBLS Position */
#define MXC_F_TRNG_CTRL_EBLS ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_EBLS_POS)) /**< CTRL_EBLS 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 */
-
#define MXC_F_TRNG_CTRL_GET_TERO_CNT_POS 16 /**< CTRL_GET_TERO_CNT Position */
#define MXC_F_TRNG_CTRL_GET_TERO_CNT ((uint32_t)(0x1UL << MXC_F_TRNG_CTRL_GET_TERO_CNT_POS)) /**< CTRL_GET_TERO_CNT Mask */
@@ -183,9 +171,6 @@ typedef struct {
#define MXC_F_TRNG_STATUS_SRCFAIL_POS 3 /**< STATUS_SRCFAIL Position */
#define MXC_F_TRNG_STATUS_SRCFAIL ((uint32_t)(0x1UL << MXC_F_TRNG_STATUS_SRCFAIL_POS)) /**< STATUS_SRCFAIL Mask */
-#define MXC_F_TRNG_STATUS_AES_KEYGEN_POS 4 /**< STATUS_AES_KEYGEN Position */
-#define MXC_F_TRNG_STATUS_AES_KEYGEN ((uint32_t)(0x1UL << MXC_F_TRNG_STATUS_AES_KEYGEN_POS)) /**< STATUS_AES_KEYGEN Mask */
-
#define MXC_F_TRNG_STATUS_OD_ROMON_POS 6 /**< STATUS_OD_ROMON Position */
#define MXC_F_TRNG_STATUS_OD_ROMON ((uint32_t)(0x1UL << MXC_F_TRNG_STATUS_OD_ROMON_POS)) /**< STATUS_OD_ROMON Mask */
diff --git a/Libraries/PeriphDrivers/Source/TRNG/trng_revc_me30.svd b/Libraries/PeriphDrivers/Source/TRNG/trng_revc_me30.svd
index e7184d78a6..f960306ce0 100644
--- a/Libraries/PeriphDrivers/Source/TRNG/trng_revc_me30.svd
+++ b/Libraries/PeriphDrivers/Source/TRNG/trng_revc_me30.svd
@@ -51,24 +51,6 @@
2
1
-
- AESKG_MEU
- Generate and transfer 256 bit MEU key to AES Key storage.
- 3
- 1
-
-
- AESKG_MEMPROT_XIP
- Generate and transfer 128 bit MEMPROT_XIP key to AES key storage.
- 4
- 1
-
-
- AESKG_MEMPROT_DIP
- Generate and transfer 128 bit MEMPROT_DIP key to AES key storage.
- 5
- 1
-
OD_ROMON
Start ring oscillator monitor on demand test.
@@ -99,12 +81,6 @@
10
1
-
- KEYWIPE
- To wipe the Battery Backed key.
- 15
- 1
-
GET_TERO_CNT
Get Tero Count.
@@ -206,12 +182,6 @@
3
1
-
- AES_KEYGEN
- AESKGD.
- 4
- 1
-
OD_ROMON
On demand ring oscillator test status.