Skip to content

Commit

Permalink
Merge branch 'feat/support_esp32c2_eco4' into 'master'
Browse files Browse the repository at this point in the history
feat(wifi):support esp32c2 chip version 2.0 wifi

Closes WIFI-6637、IDF-10216、WIFI-6669

See merge request espressif/esp-idf!32511
  • Loading branch information
Wang Tao committed Sep 4, 2024
2 parents 8971215 + 82a9514 commit e43ded7
Show file tree
Hide file tree
Showing 8 changed files with 561 additions and 2 deletions.
3 changes: 3 additions & 0 deletions components/esp_hw_support/port/esp32c2/Kconfig.hw_support
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ choice ESP32C2_REV_MIN
bool "Rev v1.0 (ECO1)"
config ESP32C2_REV_MIN_1_1
bool "Rev v1.1 (ECO2)"
config ESP32C2_REV_MIN_200
bool "Rev v2.0 (ECO4)"
endchoice

config ESP32C2_REV_MIN_FULL
int
default 100 if ESP32C2_REV_MIN_1
default 101 if ESP32C2_REV_MIN_1_1
default 200 if ESP32C2_REV_MIN_200

config ESP_REV_MIN_FULL
int
Expand Down
5 changes: 5 additions & 0 deletions components/esp_rom/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ else() # Regular app build
# For ESP32S2, inclusion of ROM driver do not depend on CONFIG_SPI_FLASH_ROM_IMPL
rom_linker_script("spiflash_legacy")

elseif(target STREQUAL "esp32c2")
if(CONFIG_ESP32C2_REV_MIN_FULL GREATER_EQUAL 200)
rom_linker_script("eco4")
endif()

elseif(target STREQUAL "esp32c3")

if(CONFIG_ESP32C3_REV_MIN_FULL GREATER_EQUAL 3)
Expand Down
Loading

0 comments on commit e43ded7

Please sign in to comment.