From d61f974a3ddb02d88f720612f56bd37b88b0d213 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Mon, 6 Mar 2023 16:36:17 +0530 Subject: [PATCH] esp32h2: enable secure boot feature related capabilities --- components/soc/esp32h2/include/soc/Kconfig.soc_caps.in | 8 ++++++++ components/soc/esp32h2/include/soc/soc_caps.h | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in b/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in index 9d000796e2..b70c4df2d1 100644 --- a/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32h2/include/soc/Kconfig.soc_caps.in @@ -55,6 +55,10 @@ config SOC_TEMP_SENSOR_SUPPORTED bool default y +config SOC_SUPPORTS_SECURE_DL_MODE + bool + default y + config SOC_EFUSE_KEY_PURPOSE_FIELD bool default y @@ -127,6 +131,10 @@ config SOC_FLASH_ENC_SUPPORTED bool default y +config SOC_SECURE_BOOT_SUPPORTED + bool + default y + config SOC_BOD_SUPPORTED bool default y diff --git a/components/soc/esp32h2/include/soc/soc_caps.h b/components/soc/esp32h2/include/soc/soc_caps.h index dafa2810c5..68c5b6f32b 100644 --- a/components/soc/esp32h2/include/soc/soc_caps.h +++ b/components/soc/esp32h2/include/soc/soc_caps.h @@ -39,7 +39,7 @@ #define SOC_IEEE802154_BLE_ONLY 1 #define SOC_USB_SERIAL_JTAG_SUPPORTED 1 #define SOC_TEMP_SENSOR_SUPPORTED 1 -// #define SOC_SUPPORTS_SECURE_DL_MODE 1 // TODO: IDF-6281 +#define SOC_SUPPORTS_SECURE_DL_MODE 1 //#define SOC_RISCV_COPROC_SUPPORTED 1 // TODO: IDF-6272 #define SOC_EFUSE_KEY_PURPOSE_FIELD 1 #define SOC_RTC_FAST_MEM_SUPPORTED 1 @@ -60,7 +60,7 @@ #define SOC_HMAC_SUPPORTED 1 #define SOC_DIG_SIGN_SUPPORTED 1 #define SOC_FLASH_ENC_SUPPORTED 1 -// #define SOC_SECURE_BOOT_SUPPORTED 1 // TODO: IDF-6281 +#define SOC_SECURE_BOOT_SUPPORTED 1 #define SOC_BOD_SUPPORTED 1 #define SOC_APM_SUPPORTED 1 #define SOC_PMU_SUPPORTED 1 @@ -397,7 +397,6 @@ #define SOC_EFUSE_DIS_DIRECT_BOOT 1 #define SOC_EFUSE_SOFT_DIS_JTAG 1 -// TODO: IDF-6281 (Copy from esp32c6, need check) /*-------------------------- Secure Boot CAPS----------------------------*/ #define SOC_SECURE_BOOT_V2_RSA 1 #define SOC_SECURE_BOOT_V2_ECC 1