refactor(emac): move sleep retention config into driver layer

Keep the EMAC regdma retention definitions in esp_eth so the backup
layout stays aligned with driver-owned sleep retention behavior.
This commit is contained in:
morris
2026-07-10 16:01:41 +08:00
parent d0b65797c3
commit 70ddc14d4f
7 changed files with 197 additions and 163 deletions
@@ -9,10 +9,6 @@
#include "soc/soc_caps.h"
#include "soc/gpio_sig_map.h"
#include "soc/gpio_num.h"
#if SOC_PAU_SUPPORTED
#include "soc/regdma.h"
#include "soc/retention_periph_defs.h"
#endif
#ifdef __cplusplus
extern "C" {
@@ -110,19 +106,6 @@ extern const emac_rgmii_iomux_info_t emac_rgmii_iomux_pins;
extern const emac_mii_iomux_info_t emac_mii_iomux_pins;
extern const emac_ref_clk_iomux_info_t emac_ref_clk_iomux_pins;
#if SOC_PAU_SUPPORTED && SOC_EMAC_SUPPORT_SLEEP_RETENTION
#define EMAC_REGDMA_LINK_EMAC_START_BEGIN (10)
#define EMAC_REGDMA_LINK_EMAC_START_CNT (3)
typedef struct {
const periph_retention_module_t module_id;
const regdma_entries_config_t *entry_array;
uint32_t array_size;
} emac_reg_retention_info_t;
extern const emac_reg_retention_info_t emac_reg_retention_info;
#endif // SOC_PAU_SUPPORTED && SOC_EMAC_SUPPORT_SLEEP_RETENTION
#endif // SOC_EMAC_SUPPORTED
#ifdef __cplusplus