mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
Merge branch 'fix/fix_tg_retention_failure' into 'master'
fix(esp_driver_gptimer): do gptimer retention by timer unit rather than timer group Closes PM-233 and IDFCI-2427 See merge request espressif/esp-idf!35284
This commit is contained in:
@@ -25,8 +25,8 @@ typedef enum periph_retention_module {
|
||||
/* Timer Group by target */
|
||||
SLEEP_RETENTION_MODULE_TG0_WDT = 4,
|
||||
SLEEP_RETENTION_MODULE_TG1_WDT = 5,
|
||||
SLEEP_RETENTION_MODULE_TG0_TIMER = 6,
|
||||
SLEEP_RETENTION_MODULE_TG1_TIMER = 7,
|
||||
SLEEP_RETENTION_MODULE_TG0_TIMER0 = 6,
|
||||
SLEEP_RETENTION_MODULE_TG1_TIMER0 = 7,
|
||||
/* GDMA by channel */
|
||||
SLEEP_RETENTION_MODULE_GDMA_CH0 = 8,
|
||||
SLEEP_RETENTION_MODULE_GDMA_CH1 = 9,
|
||||
@@ -57,8 +57,8 @@ typedef enum periph_retention_module {
|
||||
: ((m) == SLEEP_RETENTION_MODULE_SYS_PERIPH) ? true \
|
||||
: ((m) == SLEEP_RETENTION_MODULE_TG0_WDT) ? true \
|
||||
: ((m) == SLEEP_RETENTION_MODULE_TG1_WDT) ? true \
|
||||
: ((m) == SLEEP_RETENTION_MODULE_TG0_TIMER) ? true \
|
||||
: ((m) == SLEEP_RETENTION_MODULE_TG1_TIMER) ? true \
|
||||
: ((m) == SLEEP_RETENTION_MODULE_TG0_TIMER0) ? true \
|
||||
: ((m) == SLEEP_RETENTION_MODULE_TG1_TIMER0) ? true \
|
||||
: ((m) == SLEEP_RETENTION_MODULE_GDMA_CH0) ? true \
|
||||
: ((m) == SLEEP_RETENTION_MODULE_GDMA_CH1) ? true \
|
||||
: ((m) == SLEEP_RETENTION_MODULE_I2C0) ? true \
|
||||
|
@@ -111,15 +111,19 @@ const regdma_entries_config_t tg1_timer_regdma_entries[] = {
|
||||
},
|
||||
};
|
||||
|
||||
const tg_timer_reg_retention_info_t tg_timer_reg_retention_info[SOC_TIMER_GROUPS] = {
|
||||
const tg_timer_reg_retention_info_t tg_timer_reg_retention_info[SOC_TIMER_GROUPS][SOC_TIMER_GROUP_TIMERS_PER_GROUP] = {
|
||||
[0] = {
|
||||
.module = SLEEP_RETENTION_MODULE_TG0_TIMER,
|
||||
.regdma_entry_array = tg0_timer_regdma_entries,
|
||||
.array_size = ARRAY_SIZE(tg0_timer_regdma_entries)
|
||||
[0] = {
|
||||
.module = SLEEP_RETENTION_MODULE_TG0_TIMER0,
|
||||
.regdma_entry_array = tg0_timer_regdma_entries,
|
||||
.array_size = ARRAY_SIZE(tg0_timer_regdma_entries)
|
||||
}
|
||||
},
|
||||
[1] = {
|
||||
.module = SLEEP_RETENTION_MODULE_TG1_TIMER,
|
||||
.regdma_entry_array = tg1_timer_regdma_entries,
|
||||
.array_size = ARRAY_SIZE(tg1_timer_regdma_entries)
|
||||
[0] = {
|
||||
.module = SLEEP_RETENTION_MODULE_TG1_TIMER0,
|
||||
.regdma_entry_array = tg1_timer_regdma_entries,
|
||||
.array_size = ARRAY_SIZE(tg1_timer_regdma_entries)
|
||||
}
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user