From edde9c78928cc37b6b9b8e8dd2b5dc56abef4d07 Mon Sep 17 00:00:00 2001 From: KonstantinKondrashov Date: Thu, 17 Mar 2022 17:26:17 +0800 Subject: [PATCH] esp32c3: Adds ECO4 revision --- components/bootloader/Kconfig.projbuild | 2 +- components/esp32c3/Kconfig | 3 +++ components/esp_rom/CMakeLists.txt | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/bootloader/Kconfig.projbuild b/components/bootloader/Kconfig.projbuild index e6f0e99a7a..085ddba2f9 100644 --- a/components/bootloader/Kconfig.projbuild +++ b/components/bootloader/Kconfig.projbuild @@ -480,7 +480,7 @@ menu "Security features" config SECURE_BOOT bool "Enable hardware Secure Boot in bootloader (READ DOCS FIRST)" default n - depends on IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || ESP32C3_REV_MIN_3 + depends on IDF_TARGET_ESP32 || IDF_TARGET_ESP32S2 || ESP32C3_REV_MIN >= 3 select ESPTOOLPY_NO_STUB if !IDF_TARGET_ESP32 && !IDF_TARGET_ESP32S2 help Build a bootloader which enables Secure Boot on first boot. diff --git a/components/esp32c3/Kconfig b/components/esp32c3/Kconfig index 296427721a..72e7bfa5c9 100644 --- a/components/esp32c3/Kconfig +++ b/components/esp32c3/Kconfig @@ -39,6 +39,8 @@ menu "ESP32C3-Specific" bool "Rev 2" config ESP32C3_REV_MIN_3 bool "Rev 3" + config ESP32C3_REV_MIN_4 + bool "Rev 4" endchoice config ESP32C3_REV_MIN @@ -47,6 +49,7 @@ menu "ESP32C3-Specific" default 1 if ESP32C3_REV_MIN_1 default 2 if ESP32C3_REV_MIN_2 default 3 if ESP32C3_REV_MIN_3 + default 4 if ESP32C3_REV_MIN_4 choice ESP32C3_UNIVERSAL_MAC_ADDRESSES bool "Number of universally administered (by IEEE) MAC address" diff --git a/components/esp_rom/CMakeLists.txt b/components/esp_rom/CMakeLists.txt index aee8e2449c..0f6c38afc2 100644 --- a/components/esp_rom/CMakeLists.txt +++ b/components/esp_rom/CMakeLists.txt @@ -120,7 +120,7 @@ else() # Regular app build rom_linker_script("newlib-time") endif() - if(CONFIG_ESP32C3_REV_MIN_3) + if(CONFIG_ESP32C3_REV_MIN_3 OR CONFIG_ESP32C3_REV_MIN_4) rom_linker_script("eco3") endif() endif()