mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
change(mbedtls/ecdsa): The ECDSA module of ESP32-H2 ECO5 does not use MPI module
This commit is contained in:
@@ -68,9 +68,11 @@ static void esp_ecdsa_acquire_hardware(void)
|
||||
/* We need to reset the MPI peripheral because ECDSA peripheral
|
||||
* of some targets use the MPI peripheral as well.
|
||||
*/
|
||||
MPI_RCC_ATOMIC() {
|
||||
mpi_ll_enable_bus_clock(true);
|
||||
mpi_ll_reset_register();
|
||||
if (ecdsa_ll_is_mpi_required()) {
|
||||
MPI_RCC_ATOMIC() {
|
||||
mpi_ll_enable_bus_clock(true);
|
||||
mpi_ll_reset_register();
|
||||
}
|
||||
}
|
||||
#endif /* SOC_ECDSA_USES_MPI */
|
||||
}
|
||||
@@ -87,8 +89,10 @@ static void esp_ecdsa_release_hardware(void)
|
||||
}
|
||||
|
||||
#ifdef SOC_ECDSA_USES_MPI
|
||||
MPI_RCC_ATOMIC() {
|
||||
mpi_ll_enable_bus_clock(false);
|
||||
if (ecdsa_ll_is_mpi_required()) {
|
||||
MPI_RCC_ATOMIC() {
|
||||
mpi_ll_enable_bus_clock(false);
|
||||
}
|
||||
}
|
||||
#endif /* SOC_ECDSA_USES_MPI */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user