From f3feaeabb6063d8fca72e6a029fbaa5d84199d55 Mon Sep 17 00:00:00 2001 From: Chen Jichang Date: Mon, 23 Mar 2026 16:37:30 +0800 Subject: [PATCH] fix(lp_dma): add lp dma clk ctrl on s31 --- components/esp_hal_security/include/hal/apm_hal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/esp_hal_security/include/hal/apm_hal.h b/components/esp_hal_security/include/hal/apm_hal.h index 80c5026118..637009c334 100644 --- a/components/esp_hal_security/include/hal/apm_hal.h +++ b/components/esp_hal_security/include/hal/apm_hal.h @@ -369,7 +369,9 @@ void apm_hal_enable_ctrl_clk_gating(apm_ctrl_module_t ctrl_mod, bool enable); #elif SOC_IS(ESP32S31) #include "soc/hp_apm_reg.h" #include "soc/hp_mem_apm_reg.h" +#include "soc/lp_apm_reg.h" #define apm_hal_enable_ctrl_filter_all(en) \ + REG_WRITE(LP_APM_FUNC_CTRL_REG, en ? 0xFFFFFFFF : 0); \ REG_WRITE(HP_APM_FUNC_CTRL_REG, en ? 0xFFFFFFFF : 0); \ REG_WRITE(HP_MEM_APM_FUNC_CTRL_REG, en ? 0xFFFFFFFF : 0); #else