This is an automated email from the ASF dual-hosted git repository. simbit18 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 54b3edae0a8e3f4bc59c94bb3658fe5f4d606999 Author: Eren Terzioglu <[email protected]> AuthorDate: Wed Apr 1 15:31:40 2026 +0200 boards/risc-v/espressif: Add DFS board support Add DFS board support for risc-v based Espressif devices Signed-off-by: Eren Terzioglu <[email protected]> --- boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_bringup.c | 2 +- .../risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_bringup.c | 2 +- boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_bringup.c | 2 +- .../esp32p4-function-ev-board/src/esp32p4_bringup.c | 14 ++++++++++++++ 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_bringup.c b/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_bringup.c index fa2db59a6fd..65cb798ae34 100644 --- a/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_bringup.c +++ b/boards/risc-v/esp32c3/esp32c3-devkit/src/esp32c3_bringup.c @@ -461,7 +461,7 @@ int esp_bringup(void) } #endif /* CONFIG_ESPRESSIF_LEDC */ -#ifdef CONFIG_ESPRESSIF_AUTO_SLEEP +#ifdef CONFIG_PM /* Configure PM */ ret = esp_pmconfigure(); diff --git a/boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_bringup.c b/boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_bringup.c index 78c6668e2c6..6340b3cf730 100644 --- a/boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_bringup.c +++ b/boards/risc-v/esp32c6/esp32c6-devkitc/src/esp32c6_bringup.c @@ -509,7 +509,7 @@ int esp_bringup(void) } #endif -#ifdef CONFIG_ESPRESSIF_AUTO_SLEEP +#ifdef CONFIG_PM /* Configure PM */ ret = esp_pmconfigure(); diff --git a/boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_bringup.c b/boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_bringup.c index 8c4120eff80..b45476008b6 100644 --- a/boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_bringup.c +++ b/boards/risc-v/esp32h2/esp32h2-devkit/src/esp32h2_bringup.c @@ -451,7 +451,7 @@ int esp_bringup(void) } #endif -#ifdef CONFIG_ESPRESSIF_AUTO_SLEEP +#ifdef CONFIG_PM /* Configure PM */ ret = esp_pmconfigure(); diff --git a/boards/risc-v/esp32p4/esp32p4-function-ev-board/src/esp32p4_bringup.c b/boards/risc-v/esp32p4/esp32p4-function-ev-board/src/esp32p4_bringup.c index 5b6b1cf2265..ca25f2aee8f 100644 --- a/boards/risc-v/esp32p4/esp32p4-function-ev-board/src/esp32p4_bringup.c +++ b/boards/risc-v/esp32p4/esp32p4-function-ev-board/src/esp32p4_bringup.c @@ -109,6 +109,10 @@ # include "esp_board_adc.h" #endif +#ifdef CONFIG_PM +# include "espressif/esp_pm.h" +#endif + #ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL # include "espressif/esp_nxdiag.h" #endif @@ -423,6 +427,16 @@ int esp_bringup(void) } #endif +#ifdef CONFIG_PM + /* Configure PM */ + + ret = esp_pmconfigure(); + if (ret < 0) + { + syslog(LOG_ERR, "ERROR: esp_pmconfigure failed: %d\n", ret); + } +#endif + #ifdef CONFIG_SYSTEM_NXDIAG_ESPRESSIF_CHIP_WO_TOOL ret = esp_nxdiag_initialize(); if (ret < 0)
