fix(rng): fix esp_random failed beacuse do not enable RNG clock

This commit is contained in:
gaoxu
2026-08-05 14:43:24 +08:00
parent db9e5b4d31
commit 5a2658edb4
3 changed files with 7 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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

View File

@@ -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)