Merge branch 'feature/dma2d_ppa_sleep_retention_support_v6.1' into 'release/v6.1'

feat(ppa): add sleep retention support for DMA2D and PPA (v6.1)

See merge request espressif/esp-idf!50342
This commit is contained in:
Jiang Jiang Jian
2026-07-16 10:48:27 +08:00
26 changed files with 692 additions and 157 deletions
@@ -111,7 +111,7 @@ extern const int dma2d_csc_param_rgb2yuv_bt709_table[3][4];
* @param group_id Group ID
* @param enable True to enable; false to disable
*/
static inline void dma2d_ll_enable_bus_clock(int group_id, bool enable)
static inline void _dma2d_ll_enable_bus_clock(int group_id, bool enable)
{
(void)group_id;
HP_SYS_CLKRST.soc_clk_ctrl1.reg_dma2d_sys_clk_en = enable;
@@ -121,7 +121,7 @@ static inline void dma2d_ll_enable_bus_clock(int group_id, bool enable)
/// the critical section needs to declare the __DECLARE_RCC_ATOMIC_ENV variable in advance
#define dma2d_ll_enable_bus_clock(...) do { \
(void)__DECLARE_RCC_ATOMIC_ENV; \
dma2d_ll_enable_bus_clock(__VA_ARGS__); \
_dma2d_ll_enable_bus_clock(__VA_ARGS__); \
} while(0)
/**
@@ -129,7 +129,7 @@ static inline void dma2d_ll_enable_bus_clock(int group_id, bool enable)
*
* @param group_id Group ID
*/
static inline void dma2d_ll_reset_register(int group_id)
static inline void _dma2d_ll_reset_register(int group_id)
{
(void)group_id;
HP_SYS_CLKRST.hp_rst_en0.reg_rst_en_dma2d = 1;
@@ -140,7 +140,7 @@ static inline void dma2d_ll_reset_register(int group_id)
/// the critical section needs to declare the __DECLARE_RCC_ATOMIC_ENV variable in advance
#define dma2d_ll_reset_register(...) do { \
(void)__DECLARE_RCC_ATOMIC_ENV; \
dma2d_ll_reset_register(__VA_ARGS__); \
_dma2d_ll_reset_register(__VA_ARGS__); \
} while(0)
/**
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2025 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/