From 9783bddde1a2a6a0e4dce5c78c43588fbc8c34b8 Mon Sep 17 00:00:00 2001 From: liuning Date: Tue, 2 Apr 2024 20:19:14 +0800 Subject: [PATCH] feat(coex): support esp32c5 beta3 coexist --- components/esp_coex/lib | 2 +- components/esp_coex/test_md5/test_md5.sh | 4 ++-- components/soc/esp32c5/beta3/include/soc/Kconfig.soc_caps.in | 4 ++++ components/soc/esp32c5/beta3/include/soc/soc_caps.h | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/components/esp_coex/lib b/components/esp_coex/lib index 2717868407..87eecbdf13 160000 --- a/components/esp_coex/lib +++ b/components/esp_coex/lib @@ -1 +1 @@ -Subproject commit 2717868407a01878a49d19794538b6da120597ae +Subproject commit 87eecbdf1392d5b4304c4c8e7a26056fa5df294f diff --git a/components/esp_coex/test_md5/test_md5.sh b/components/esp_coex/test_md5/test_md5.sh index 65a32ebb49..560c7e832f 100755 --- a/components/esp_coex/test_md5/test_md5.sh +++ b/components/esp_coex/test_md5/test_md5.sh @@ -22,7 +22,7 @@ case $IDF_TARGET in esp32s3) PREFIX=xtensa-esp32s3-elf- ;; - esp32c2|esp32c3|esp32c6|esp32h2) + esp32c2|esp32c3|esp32c6|esp32h2|esp32c5) PREFIX=riscv32-esp-elf- ;; *) @@ -61,7 +61,7 @@ echo "Checking libraries for target ${IDF_TARGET}..." check_md5 ${IDF_PATH}/components/esp_coex/include/private/esp_coexist_adapter.h g_coex_adapter_funcs_md5 case $IDF_TARGET in - esp32c6|esp32h2) + esp32c6|esp32h2|esp32c5) check_md5 ${IDF_PATH}/components/esp_coex/include/esp_coex_i154.h g_coex_i154_funcs_md5 ;; esac diff --git a/components/soc/esp32c5/beta3/include/soc/Kconfig.soc_caps.in b/components/soc/esp32c5/beta3/include/soc/Kconfig.soc_caps.in index 77d9cdac0f..52f965656a 100644 --- a/components/soc/esp32c5/beta3/include/soc/Kconfig.soc_caps.in +++ b/components/soc/esp32c5/beta3/include/soc/Kconfig.soc_caps.in @@ -607,6 +607,10 @@ config SOC_UART_SUPPORT_FSM_TX_WAIT_SEND bool default y +config SOC_COEX_HW_PTI + bool + default y + config SOC_WIFI_LIGHT_SLEEP_CLK_WIDTH int default 12 diff --git a/components/soc/esp32c5/beta3/include/soc/soc_caps.h b/components/soc/esp32c5/beta3/include/soc/soc_caps.h index 0c5d998426..54b70d0df7 100644 --- a/components/soc/esp32c5/beta3/include/soc/soc_caps.h +++ b/components/soc/esp32c5/beta3/include/soc/soc_caps.h @@ -495,7 +495,7 @@ #define SOC_UART_SUPPORT_FSM_TX_WAIT_SEND (1) /*-------------------------- COEXISTENCE HARDWARE PTI CAPS -------------------------------*/ -// #define SOC_COEX_HW_PTI (1) +#define SOC_COEX_HW_PTI (1) /*-------------------------- EXTERNAL COEXISTENCE CAPS -------------------------------------*/ // #define SOC_EXTERNAL_COEX_ADVANCE (1) /*!< HARDWARE ADVANCED EXTERNAL COEXISTENCE CAPS */