change(mbedtls/ecdsa): The ECDSA module of ESP32-H2 ECO5 does not use MPI module

This commit is contained in:
harshal.patil
2025-08-13 20:38:12 +05:30
parent becda540cd
commit 93473a0558
5 changed files with 44 additions and 13 deletions
+9 -5
View File
@@ -70,9 +70,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 */
}
@@ -89,8 +91,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 */