From 4084ab38a1f291f78f48f5ffac1df5fdb2b79660 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Wed, 4 Jan 2023 11:10:04 +0530 Subject: [PATCH] esp32c6/soc: Enable DS and HMAC capabilities for esp32c6 in soc_caps.h --- .../test_apps/esp_hw_support_unity_tests/main/test_ds.c | 2 +- components/soc/esp32c6/include/soc/Kconfig.soc_caps.in | 8 ++++++++ components/soc/esp32c6/include/soc/soc_caps.h | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/components/esp_hw_support/test_apps/esp_hw_support_unity_tests/main/test_ds.c b/components/esp_hw_support/test_apps/esp_hw_support_unity_tests/main/test_ds.c index d8d9e3574b..5ce8e53c53 100644 --- a/components/esp_hw_support/test_apps/esp_hw_support_unity_tests/main/test_ds.c +++ b/components/esp_hw_support/test_apps/esp_hw_support_unity_tests/main/test_ds.c @@ -37,7 +37,7 @@ #if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 #define DS_MAX_BITS (4096) -#elif CONFIG_IDF_TARGET_ESP32C3 +#else #define DS_MAX_BITS (ETS_DS_MAX_BITS) #endif diff --git a/components/soc/esp32c6/include/soc/Kconfig.soc_caps.in b/components/soc/esp32c6/include/soc/Kconfig.soc_caps.in index b001779a7c..e29c80be02 100644 --- a/components/soc/esp32c6/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32c6/include/soc/Kconfig.soc_caps.in @@ -115,6 +115,14 @@ config SOC_SHA_SUPPORTED bool default y +config SOC_HMAC_SUPPORTED + bool + default y + +config SOC_DIG_SIGN_SUPPORTED + bool + default y + config SOC_ECC_SUPPORTED bool default y diff --git a/components/soc/esp32c6/include/soc/soc_caps.h b/components/soc/esp32c6/include/soc/soc_caps.h index ec98b49af0..dc40251e6c 100644 --- a/components/soc/esp32c6/include/soc/soc_caps.h +++ b/components/soc/esp32c6/include/soc/soc_caps.h @@ -55,8 +55,8 @@ #define SOC_AES_SUPPORTED 1 // #define SOC_MPI_SUPPORTED 1 #define SOC_SHA_SUPPORTED 1 -// #define SOC_HMAC_SUPPORTED 1 // TODO: IDF-5355 -// #define SOC_DIG_SIGN_SUPPORTED 1 // TODO: IDF-5360 +#define SOC_HMAC_SUPPORTED 1 +#define SOC_DIG_SIGN_SUPPORTED 1 #define SOC_ECC_SUPPORTED 1 #define SOC_FLASH_ENC_SUPPORTED 1 #define SOC_SECURE_BOOT_SUPPORTED 1