feat: enable RSA support for c5 mp version

This commit enables RSA peripheral support for ESP32-C5 MP version.
This commit is contained in:
nilesh.kale
2024-05-09 15:49:55 +05:30
parent 8508c85551
commit 92fdaea83a
4 changed files with 41 additions and 10 deletions

View File

@@ -9,22 +9,17 @@
#include <string.h>
#include <sys/param.h>
#include "soc/soc_caps.h"
// TODO: [ESP32C5] IDF-8620 remove the cap
#if SOC_MPI_SUPPORTED
#include "hal/assert.h"
#include "hal/mpi_types.h"
#include "soc/pcr_reg.h"
#include "soc/pcr_struct.h"
#include "soc/rsa_reg.h"
#include "soc/mpi_periph.h"
#endif // SOC_MPI_SUPPORTED
#ifdef __cplusplus
extern "C" {
#endif
// TODO: [ESP32C5] IDF-8620 remove the cap
#if SOC_MPI_SUPPORTED
/**
* @brief Enable the bus clock for MPI peripheral module
@@ -180,7 +175,6 @@ static inline void mpi_ll_set_search_position(size_t pos)
{
REG_WRITE(RSA_SEARCH_POS_REG, pos);
}
#endif // SOC_MPI_SUPPORTED
#ifdef __cplusplus
}