fix(hal): correct the power up sequence for MPI/ECC peripherals in ESP32-C5

This commit is contained in:
Mahavir Jain
2024-06-20 10:41:20 +08:00
committed by nilesh.kale
parent 82c3a08d77
commit adea6829b3
10 changed files with 50 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ static void esp_ecc_acquire_hardware(void)
ECC_RCC_ATOMIC() {
ecc_ll_enable_bus_clock(true);
ecc_ll_power_up();
ecc_ll_reset_register();
}
}
@@ -27,6 +28,7 @@ static void esp_ecc_release_hardware(void)
{
ECC_RCC_ATOMIC() {
ecc_ll_enable_bus_clock(false);
ecc_ll_power_down();
}
esp_crypto_ecc_lock_release();