mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-10 06:31:24 +00:00
fix(hal): correct the power up sequence for MPI/ECC peripherals in ESP32-C5
This commit is contained in:
@@ -49,11 +49,15 @@ static inline size_t mpi_ll_calculate_hardware_words(size_t words)
|
||||
|
||||
static inline void mpi_ll_clear_power_control_bit(void)
|
||||
{
|
||||
/* Power up the MPI peripheral */
|
||||
REG_CLR_BIT(PCR_RSA_PD_CTRL_REG, PCR_RSA_MEM_PD);
|
||||
REG_CLR_BIT(PCR_RSA_PD_CTRL_REG, PCR_RSA_MEM_FORCE_PD);
|
||||
}
|
||||
|
||||
static inline void mpi_ll_set_power_control_bit(void)
|
||||
{
|
||||
/* Power down the MPI peripheral */
|
||||
REG_CLR_BIT(PCR_RSA_PD_CTRL_REG, PCR_RSA_MEM_FORCE_PU);
|
||||
REG_SET_BIT(PCR_RSA_PD_CTRL_REG, PCR_RSA_MEM_PD);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user