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:50:53 +05:30
parent 0e2511d3b4
commit 2bfecc9638
6 changed files with 55 additions and 17 deletions
+9 -5
View File
@@ -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 */