diff --git a/components/esp_hw_support/Kconfig b/components/esp_hw_support/Kconfig index dd4ade3c70..cbe7ad0bf4 100644 --- a/components/esp_hw_support/Kconfig +++ b/components/esp_hw_support/Kconfig @@ -280,6 +280,14 @@ menu "Hardware Settings" help Place analog i2c master control functions (e.g. regi2c_ctrl_read_reg, regi2c_ctrl_write_reg) into IRAM, so that these functions can be IRAM-safe and able to be called in the other IRAM interrupt context. + + config ESP_MODEM_CLOCK_ENABLE_CHECKING + bool "Enable modem clock configuration checking" + depends on SOC_MODEM_CLOCK_SUPPORTED + default n + help + If enabled, this option will perform additional checks on modem clock configuration + to ensure proper operation and detect potential configuration issues. endmenu rsource "./dma/Kconfig.dma" diff --git a/examples/bluetooth/nimble/power_save/sdkconfig.32m.esp32h2 b/examples/bluetooth/nimble/power_save/sdkconfig.32m.esp32h2 index 6c20e89307..e25ae2874d 100644 --- a/examples/bluetooth/nimble/power_save/sdkconfig.32m.esp32h2 +++ b/examples/bluetooth/nimble/power_save/sdkconfig.32m.esp32h2 @@ -12,6 +12,8 @@ CONFIG_PM_DFS_INIT_AUTO=y CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y # end of Power Management +CONFIG_ESP_MODEM_CLOCK_ENABLE_CHECKING=y + # # Sleep Config # diff --git a/examples/bluetooth/nimble/power_save/sdkconfig.40m.esp32c6 b/examples/bluetooth/nimble/power_save/sdkconfig.40m.esp32c6 index 138297069b..c72be382de 100644 --- a/examples/bluetooth/nimble/power_save/sdkconfig.40m.esp32c6 +++ b/examples/bluetooth/nimble/power_save/sdkconfig.40m.esp32c6 @@ -13,6 +13,7 @@ CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y # end of Power Management CONFIG_FREERTOS_USE_TICKLESS_IDLE=y +CONFIG_ESP_MODEM_CLOCK_ENABLE_CHECKING=y # # Sleep Config diff --git a/examples/bluetooth/nimble/power_save/sdkconfig.40m.esp32c61 b/examples/bluetooth/nimble/power_save/sdkconfig.40m.esp32c61 index ec2f3d1938..2d712debeb 100644 --- a/examples/bluetooth/nimble/power_save/sdkconfig.40m.esp32c61 +++ b/examples/bluetooth/nimble/power_save/sdkconfig.40m.esp32c61 @@ -13,6 +13,7 @@ CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y # end of Power Management CONFIG_FREERTOS_USE_TICKLESS_IDLE=y +CONFIG_ESP_MODEM_CLOCK_ENABLE_CHECKING=y # # Sleep Config diff --git a/examples/bluetooth/nimble/power_save/sdkconfig.48m.esp32c5 b/examples/bluetooth/nimble/power_save/sdkconfig.48m.esp32c5 index 3c0540b874..42fde25968 100644 --- a/examples/bluetooth/nimble/power_save/sdkconfig.48m.esp32c5 +++ b/examples/bluetooth/nimble/power_save/sdkconfig.48m.esp32c5 @@ -13,6 +13,7 @@ CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y # end of Power Management CONFIG_FREERTOS_USE_TICKLESS_IDLE=y +CONFIG_ESP_MODEM_CLOCK_ENABLE_CHECKING=y # # Sleep Config diff --git a/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c5 b/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c5 index 8b53211402..59c24a69a8 100644 --- a/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c5 +++ b/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c5 @@ -14,6 +14,7 @@ CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y # end of Power Management CONFIG_FREERTOS_USE_TICKLESS_IDLE=y +CONFIG_ESP_MODEM_CLOCK_ENABLE_CHECKING=y # # Sleep Config diff --git a/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c6 b/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c6 index 830f6c208e..56afbd9fae 100644 --- a/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c6 +++ b/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c6 @@ -14,6 +14,7 @@ CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y # end of Power Management CONFIG_FREERTOS_USE_TICKLESS_IDLE=y +CONFIG_ESP_MODEM_CLOCK_ENABLE_CHECKING=y # # Sleep Config diff --git a/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c61 b/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c61 index acac83cab3..6e60a0026c 100644 --- a/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c61 +++ b/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32c61 @@ -14,6 +14,7 @@ CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y # end of Power Management CONFIG_FREERTOS_USE_TICKLESS_IDLE=y +CONFIG_ESP_MODEM_CLOCK_ENABLE_CHECKING=y # # Sleep Config diff --git a/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32h2 b/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32h2 index cec286a888..dad63e9502 100644 --- a/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32h2 +++ b/examples/bluetooth/nimble/power_save/sdkconfig.defaults.esp32h2 @@ -13,6 +13,8 @@ CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y # end of Power Management +CONFIG_ESP_MODEM_CLOCK_ENABLE_CHECKING=y + # # Sleep Config # diff --git a/examples/openthread/ot_sleepy_device/light_sleep/sdkconfig.defaults b/examples/openthread/ot_sleepy_device/light_sleep/sdkconfig.defaults index 35aa0ae3fd..03acbcb41c 100644 --- a/examples/openthread/ot_sleepy_device/light_sleep/sdkconfig.defaults +++ b/examples/openthread/ot_sleepy_device/light_sleep/sdkconfig.defaults @@ -51,6 +51,7 @@ CONFIG_IEEE802154_SLEEP_ENABLE=y # Use 1000Hz freertos tick to lower sleep time threshold CONFIG_FREERTOS_HZ=1000 CONFIG_ESP_SLEEP_POWER_DOWN_FLASH=y +CONFIG_ESP_MODEM_CLOCK_ENABLE_CHECKING=y # end of light sleep # diff --git a/examples/wifi/itwt/sdkconfig.defaults.esp32c6 b/examples/wifi/itwt/sdkconfig.defaults.esp32c6 index 6654a978a9..27b081e674 100644 --- a/examples/wifi/itwt/sdkconfig.defaults.esp32c6 +++ b/examples/wifi/itwt/sdkconfig.defaults.esp32c6 @@ -25,5 +25,6 @@ CONFIG_LWIP_DHCP_COARSE_TIMER_SECS=10 CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP=y CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y CONFIG_ESP_SLEEP_POWER_DOWN_FLASH=y +CONFIG_ESP_MODEM_CLOCK_ENABLE_CHECKING=y CONFIG_ESP_PHY_MAC_BB_PD=y #CONFIG_ESP_WIFI_ENHANCED_LIGHT_SLEEP=y diff --git a/examples/wifi/power_save/sdkconfig.ci.pd_top b/examples/wifi/power_save/sdkconfig.ci.pd_top index 92f20b28e0..c758a33bcd 100644 --- a/examples/wifi/power_save/sdkconfig.ci.pd_top +++ b/examples/wifi/power_save/sdkconfig.ci.pd_top @@ -1,3 +1,4 @@ CONFIG_EXAMPLE_GET_AP_INFO_FROM_STDIN=y CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y CONFIG_ESP_PHY_MAC_BB_PD=y +CONFIG_ESP_MODEM_CLOCK_ENABLE_CHECKING=y