mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user