forked from espressif/esp-idf
fix(pmu): enable all func clock icg during retention
This should only increase a tiny amount of the power consumption in the retention process, but save debug time since some module register read/write relies not only APB but also func clock.
This commit is contained in:
@@ -291,18 +291,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_sleep2active_backup_en = 0, \
|
.hp_sleep2active_backup_en = 0, \
|
||||||
.hp_modem2active_backup_en = 0, \
|
.hp_modem2active_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = ( \
|
.backup_clk = 0xffffffff, \
|
||||||
BIT(PMU_ICG_FUNC_ENA_REGDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_GDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG1) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_HPBUS) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_MSPI) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_IOMUX) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SPI2) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_UART0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SYSTIMER) \
|
|
||||||
) \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PMU_HP_MODEM_RETENTION_CONFIG_DEFAULT() { \
|
#define PMU_HP_MODEM_RETENTION_CONFIG_DEFAULT() { \
|
||||||
@@ -314,17 +303,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_sleep2modem_backup_mode = PMU_HP_RETENTION_REGDMA_CONFIG(0, 1), \
|
.hp_sleep2modem_backup_mode = PMU_HP_RETENTION_REGDMA_CONFIG(0, 1), \
|
||||||
.hp_sleep2modem_backup_en = 0, \
|
.hp_sleep2modem_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = ( \
|
.backup_clk = 0xffffffff, \
|
||||||
BIT(PMU_ICG_FUNC_ENA_REGDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG1) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_HPBUS) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_MSPI) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_IOMUX) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SPI2) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_UART0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SYSTIMER) \
|
|
||||||
) \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PMU_HP_SLEEP_RETENTION_CONFIG_DEFAULT() { \
|
#define PMU_HP_SLEEP_RETENTION_CONFIG_DEFAULT() { \
|
||||||
@@ -341,17 +320,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_modem2sleep_backup_en = 0, \
|
.hp_modem2sleep_backup_en = 0, \
|
||||||
.hp_active2sleep_backup_en = 0, \
|
.hp_active2sleep_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = ( \
|
.backup_clk = 0xffffffff, \
|
||||||
BIT(PMU_ICG_FUNC_ENA_REGDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG1) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_HPBUS) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_MSPI) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_IOMUX) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SPI2) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_UART0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SYSTIMER) \
|
|
||||||
) \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const pmu_hp_system_retention_param_t * pmu_hp_system_retention_param_default(pmu_hp_mode_t mode)
|
const pmu_hp_system_retention_param_t * pmu_hp_system_retention_param_default(pmu_hp_mode_t mode)
|
||||||
|
@@ -87,7 +87,7 @@ const pmu_hp_system_analog_param_t* pmu_hp_system_analog_param_default(pmu_hp_mo
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
pmu_hp_backup_reg_t retention;
|
pmu_hp_backup_reg_t retention;
|
||||||
uint32_t backup_clk;
|
uint32_t backup_clk; // icg_func
|
||||||
} pmu_hp_system_retention_param_t;
|
} pmu_hp_system_retention_param_t;
|
||||||
|
|
||||||
const pmu_hp_system_retention_param_t* pmu_hp_system_retention_param_default(pmu_hp_mode_t mode);
|
const pmu_hp_system_retention_param_t* pmu_hp_system_retention_param_default(pmu_hp_mode_t mode);
|
||||||
|
@@ -291,18 +291,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_sleep2active_backup_en = 0, \
|
.hp_sleep2active_backup_en = 0, \
|
||||||
.hp_modem2active_backup_en = 0, \
|
.hp_modem2active_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = ( \
|
.backup_clk = 0xffffffff, \
|
||||||
BIT(PMU_ICG_FUNC_ENA_GDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_REGDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG1) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_HPBUS) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_MSPI) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_IOMUX) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SPI2) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_UART0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SYSTIMER) \
|
|
||||||
) \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PMU_HP_MODEM_RETENTION_CONFIG_DEFAULT() { \
|
#define PMU_HP_MODEM_RETENTION_CONFIG_DEFAULT() { \
|
||||||
@@ -314,17 +303,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_sleep2modem_backup_mode = PMU_HP_RETENTION_REGDMA_CONFIG(0, 1), \
|
.hp_sleep2modem_backup_mode = PMU_HP_RETENTION_REGDMA_CONFIG(0, 1), \
|
||||||
.hp_sleep2modem_backup_en = 0, \
|
.hp_sleep2modem_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = ( \
|
.backup_clk = 0xffffffff, \
|
||||||
BIT(PMU_ICG_FUNC_ENA_REGDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG1) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_HPBUS) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_MSPI) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_IOMUX) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SPI2) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_UART0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SYSTIMER) \
|
|
||||||
) \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PMU_HP_SLEEP_RETENTION_CONFIG_DEFAULT() { \
|
#define PMU_HP_SLEEP_RETENTION_CONFIG_DEFAULT() { \
|
||||||
@@ -341,18 +320,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_modem2sleep_backup_en = 0, \
|
.hp_modem2sleep_backup_en = 0, \
|
||||||
.hp_active2sleep_backup_en = 0, \
|
.hp_active2sleep_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = ( \
|
.backup_clk = 0xffffffff, \
|
||||||
BIT(PMU_ICG_FUNC_ENA_GDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_REGDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG1) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_HPBUS) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_MSPI) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_IOMUX) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SPI2) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_UART0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SYSTIMER) \
|
|
||||||
) \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const pmu_hp_system_retention_param_t * pmu_hp_system_retention_param_default(pmu_hp_mode_t mode)
|
const pmu_hp_system_retention_param_t * pmu_hp_system_retention_param_default(pmu_hp_mode_t mode)
|
||||||
|
@@ -92,7 +92,7 @@ const pmu_hp_system_analog_param_t* pmu_hp_system_analog_param_default(pmu_hp_mo
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
pmu_hp_backup_reg_t retention;
|
pmu_hp_backup_reg_t retention;
|
||||||
uint32_t backup_clk;
|
uint32_t backup_clk; // icg_func
|
||||||
} pmu_hp_system_retention_param_t;
|
} pmu_hp_system_retention_param_t;
|
||||||
|
|
||||||
const pmu_hp_system_retention_param_t* pmu_hp_system_retention_param_default(pmu_hp_mode_t mode);
|
const pmu_hp_system_retention_param_t* pmu_hp_system_retention_param_default(pmu_hp_mode_t mode);
|
||||||
|
@@ -290,18 +290,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_sleep2active_backup_en = 0, \
|
.hp_sleep2active_backup_en = 0, \
|
||||||
.hp_modem2active_backup_en = 0, \
|
.hp_modem2active_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = ( \
|
.backup_clk = 0xffffffff, \
|
||||||
BIT(PMU_ICG_FUNC_ENA_REGDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_GDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG1) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_HPBUS) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_MSPI) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_IOMUX) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SPI2) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_UART0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SYSTIMER) \
|
|
||||||
) \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PMU_HP_MODEM_RETENTION_CONFIG_DEFAULT() { \
|
#define PMU_HP_MODEM_RETENTION_CONFIG_DEFAULT() { \
|
||||||
@@ -313,17 +302,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_sleep2modem_backup_mode = PMU_HP_RETENTION_REGDMA_CONFIG(0, 1), \
|
.hp_sleep2modem_backup_mode = PMU_HP_RETENTION_REGDMA_CONFIG(0, 1), \
|
||||||
.hp_sleep2modem_backup_en = 0, \
|
.hp_sleep2modem_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = ( \
|
.backup_clk = 0xffffffff, \
|
||||||
BIT(PMU_ICG_FUNC_ENA_REGDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG1) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_HPBUS) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_MSPI) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_IOMUX) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SPI2) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_UART0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SYSTIMER) \
|
|
||||||
) \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PMU_HP_SLEEP_RETENTION_CONFIG_DEFAULT() { \
|
#define PMU_HP_SLEEP_RETENTION_CONFIG_DEFAULT() { \
|
||||||
@@ -340,17 +319,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_modem2sleep_backup_en = 0, \
|
.hp_modem2sleep_backup_en = 0, \
|
||||||
.hp_active2sleep_backup_en = 0, \
|
.hp_active2sleep_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = ( \
|
.backup_clk = 0xffffffff, \
|
||||||
BIT(PMU_ICG_FUNC_ENA_REGDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_TG1) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_HPBUS) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_MSPI) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_IOMUX) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SPI2) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_UART0) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SYSTIMER) \
|
|
||||||
) \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const pmu_hp_system_retention_param_t * pmu_hp_system_retention_param_default(pmu_hp_mode_t mode)
|
const pmu_hp_system_retention_param_t * pmu_hp_system_retention_param_default(pmu_hp_mode_t mode)
|
||||||
|
@@ -90,7 +90,7 @@ const pmu_hp_system_analog_param_t* pmu_hp_system_analog_param_default(pmu_hp_mo
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
pmu_hp_backup_reg_t retention;
|
pmu_hp_backup_reg_t retention;
|
||||||
uint32_t backup_clk;
|
uint32_t backup_clk; // icg_func
|
||||||
} pmu_hp_system_retention_param_t;
|
} pmu_hp_system_retention_param_t;
|
||||||
|
|
||||||
const pmu_hp_system_retention_param_t* pmu_hp_system_retention_param_default(pmu_hp_mode_t mode);
|
const pmu_hp_system_retention_param_t* pmu_hp_system_retention_param_default(pmu_hp_mode_t mode);
|
||||||
|
@@ -290,18 +290,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_sleep2active_backup_en = 0, \
|
.hp_sleep2active_backup_en = 0, \
|
||||||
.hp_modem2active_backup_en = 0, \
|
.hp_modem2active_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = ( \
|
.backup_clk = 0xffffffff, \
|
||||||
BIT(PMU_ICG_FUNC_ENA_GDMA) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_REGDMA) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_TG0) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_HPBUS) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_MSPI) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_IOMUX) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_SPI2) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_SEC) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_PWM) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_SYSTIMER) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_UART0)), \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PMU_HP_MODEM_RETENTION_CONFIG_DEFAULT() { \
|
#define PMU_HP_MODEM_RETENTION_CONFIG_DEFAULT() { \
|
||||||
@@ -313,16 +302,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_sleep2modem_backup_mode = PMU_HP_RETENTION_REGDMA_CONFIG(0, 1), \
|
.hp_sleep2modem_backup_mode = PMU_HP_RETENTION_REGDMA_CONFIG(0, 1), \
|
||||||
.hp_sleep2modem_backup_en = 0, \
|
.hp_sleep2modem_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = (BIT(PMU_ICG_FUNC_ENA_REGDMA) \
|
.backup_clk = 0xffffffff, \
|
||||||
| BIT(PMU_ICG_FUNC_ENA_TG0) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_HPBUS) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_MSPI) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_IOMUX) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_SPI2) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_SEC) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_PWM) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_SYSTIMER) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_UART0)), \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PMU_HP_SLEEP_RETENTION_CONFIG_DEFAULT() { \
|
#define PMU_HP_SLEEP_RETENTION_CONFIG_DEFAULT() { \
|
||||||
@@ -339,18 +319,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_modem2sleep_backup_en = 0, \
|
.hp_modem2sleep_backup_en = 0, \
|
||||||
.hp_active2sleep_backup_en = 0, \
|
.hp_active2sleep_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = ( \
|
.backup_clk = 0xffffffff, \
|
||||||
BIT(PMU_ICG_FUNC_ENA_GDMA) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_REGDMA) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_TG0) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_HPBUS) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_MSPI) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_IOMUX) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_SPI2) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_SEC) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_PWM) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_SYSTIMER) \
|
|
||||||
| BIT(PMU_ICG_FUNC_ENA_UART0)), \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const pmu_hp_system_retention_param_t * pmu_hp_system_retention_param_default(pmu_hp_mode_t mode)
|
const pmu_hp_system_retention_param_t * pmu_hp_system_retention_param_default(pmu_hp_mode_t mode)
|
||||||
|
@@ -85,7 +85,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
pmu_hp_backup_reg_t retention;
|
pmu_hp_backup_reg_t retention;
|
||||||
uint32_t backup_clk;
|
uint32_t backup_clk; // icg_func
|
||||||
} pmu_hp_system_retention_param_t;
|
} pmu_hp_system_retention_param_t;
|
||||||
|
|
||||||
const pmu_hp_system_retention_param_t * pmu_hp_system_retention_param_default(pmu_hp_mode_t mode);
|
const pmu_hp_system_retention_param_t * pmu_hp_system_retention_param_default(pmu_hp_mode_t mode);
|
||||||
@@ -407,7 +407,7 @@ typedef struct {
|
|||||||
|
|
||||||
typedef struct pmu_sleep_machine_constant {
|
typedef struct pmu_sleep_machine_constant {
|
||||||
struct {
|
struct {
|
||||||
uint16_t min_slp_time_us; /* Mininum sleep protection time (unit: microsecond) */
|
uint16_t min_slp_time_us; /* Minimum sleep protection time (unit: microsecond) */
|
||||||
uint8_t reserved0;
|
uint8_t reserved0;
|
||||||
uint16_t reserved1;
|
uint16_t reserved1;
|
||||||
uint16_t analog_wait_time_us; /* LP LDO power up wait time (unit: microsecond) */
|
uint16_t analog_wait_time_us; /* LP LDO power up wait time (unit: microsecond) */
|
||||||
@@ -418,7 +418,7 @@ typedef struct pmu_sleep_machine_constant {
|
|||||||
uint16_t power_up_wait_time_us; /* (unit: microsecond) */
|
uint16_t power_up_wait_time_us; /* (unit: microsecond) */
|
||||||
} lp;
|
} lp;
|
||||||
struct {
|
struct {
|
||||||
uint16_t min_slp_time_us; /* Mininum sleep protection time (unit: microsecond) */
|
uint16_t min_slp_time_us; /* Minimum sleep protection time (unit: microsecond) */
|
||||||
uint16_t analog_wait_time_us; /* HP LDO power up wait time (unit: microsecond) */
|
uint16_t analog_wait_time_us; /* HP LDO power up wait time (unit: microsecond) */
|
||||||
uint16_t power_supply_wait_time_us; /* (unit: microsecond) */
|
uint16_t power_supply_wait_time_us; /* (unit: microsecond) */
|
||||||
uint16_t power_up_wait_time_us; /* (unit: microsecond) */
|
uint16_t power_up_wait_time_us; /* (unit: microsecond) */
|
||||||
|
@@ -208,18 +208,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_sleep2active_backup_en = 0, \
|
.hp_sleep2active_backup_en = 0, \
|
||||||
.hp_modem2active_backup_en = 0, \
|
.hp_modem2active_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = ( \
|
.backup_clk = 0xffffffff, \
|
||||||
BIT(PMU_ICG_FUNC_ENA_L2MEM_MEM) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_L2MEM_SYS) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_REGDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_HP_CLKRST) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SYSREG_APB) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_ICM_CPU) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_ICM_APB) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_ICM_SYS) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_ICM_MEM) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_INTRMTX_APB) \
|
|
||||||
) \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PMU_HP_SLEEP_RETENTION_CONFIG_DEFAULT() { \
|
#define PMU_HP_SLEEP_RETENTION_CONFIG_DEFAULT() { \
|
||||||
@@ -236,18 +225,7 @@ const pmu_hp_system_analog_param_t * pmu_hp_system_analog_param_default(pmu_hp_m
|
|||||||
.hp_modem2sleep_backup_en = 0, \
|
.hp_modem2sleep_backup_en = 0, \
|
||||||
.hp_active2sleep_backup_en = 0, \
|
.hp_active2sleep_backup_en = 0, \
|
||||||
}, \
|
}, \
|
||||||
.backup_clk = ( \
|
.backup_clk = 0xffffffff, \
|
||||||
BIT(PMU_ICG_FUNC_ENA_L2MEM_MEM) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_L2MEM_SYS) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_REGDMA) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_HP_CLKRST) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_SYSREG_APB) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_ICM_CPU) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_ICM_APB) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_ICM_SYS) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_ICM_MEM) | \
|
|
||||||
BIT(PMU_ICG_FUNC_ENA_INTRMTX_APB) \
|
|
||||||
) \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const pmu_hp_system_retention_param_t * pmu_hp_system_retention_param_default(pmu_hp_mode_t mode)
|
const pmu_hp_system_retention_param_t * pmu_hp_system_retention_param_default(pmu_hp_mode_t mode)
|
||||||
|
@@ -86,7 +86,7 @@ const pmu_hp_system_analog_param_t* pmu_hp_system_analog_param_default(pmu_hp_mo
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
pmu_hp_backup_reg_t retention;
|
pmu_hp_backup_reg_t retention;
|
||||||
uint32_t backup_clk;
|
uint32_t backup_clk; // icg_func
|
||||||
} pmu_hp_system_retention_param_t;
|
} pmu_hp_system_retention_param_t;
|
||||||
|
|
||||||
const pmu_hp_system_retention_param_t* pmu_hp_system_retention_param_default(pmu_hp_mode_t mode);
|
const pmu_hp_system_retention_param_t* pmu_hp_system_retention_param_default(pmu_hp_mode_t mode);
|
||||||
|
Reference in New Issue
Block a user