mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(rng): fix esp_random failed beacuse do not enable RNG clock
This commit is contained in:
@@ -77,8 +77,8 @@ static inline void rng_ll_enable_noise_crc(bool enable)
|
||||
static inline void rng_ll_enable(void)
|
||||
{
|
||||
rng_ll_enable_bus_clock(true);
|
||||
rng_ll_reset();
|
||||
rng_ll_enable_clock(true);
|
||||
rng_ll_reset();
|
||||
rng_ll_enable_sample(true);
|
||||
rng_ll_enable_noise_crc(true);
|
||||
}
|
||||
@@ -90,8 +90,8 @@ static inline void rng_ll_enable(void)
|
||||
*/
|
||||
static inline void rng_ll_disable(void)
|
||||
{
|
||||
rng_ll_enable_sample(false);
|
||||
rng_ll_enable_noise_crc(false);
|
||||
rng_ll_enable_sample(false);
|
||||
rng_ll_enable_clock(false);
|
||||
rng_ll_enable_bus_clock(false);
|
||||
}
|
||||
|
||||
@@ -1363,6 +1363,10 @@ config SOC_MODEM_CLOCK_WIFI_BB_80X1_AS_APB
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_RNG_CLOCK_IS_INDEPENDENT
|
||||
bool
|
||||
default y
|
||||
|
||||
config SOC_CLK_RC_FAST_SUPPORT_CALIBRATION
|
||||
bool
|
||||
default y
|
||||
|
||||
@@ -509,6 +509,7 @@
|
||||
#define SOC_MODEM_APB_CLOCK_IS_INDEPENDENT (1)
|
||||
#define SOC_MODEM_CLOCK_SOC_PLL_SOURCE_CG_SUPPORTED (1)
|
||||
#define SOC_MODEM_CLOCK_WIFI_BB_80X1_AS_APB (1)
|
||||
#define SOC_RNG_CLOCK_IS_INDEPENDENT (1)
|
||||
|
||||
#define SOC_CLK_RC_FAST_SUPPORT_CALIBRATION (1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user