mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 10:40:47 +03:00
change(esp_security): select crypto clock source before enable on s31
This commit is contained in:
@@ -15,10 +15,10 @@ void esp_crypto_common_clk_enable(bool enable);
|
||||
|
||||
static inline void esp_crypto_clk_init(void)
|
||||
{
|
||||
// Set crypto clock (`clk_sec`) to use 240M PLL clock
|
||||
sec_ll_crypto_clk_src_sel(SOC_MOD_CLK_PLL_F240M);
|
||||
#if !CONFIG_ESP_CRYPTO_CLK_ON_DEMAND
|
||||
/* Keep crypto clocks always on for better crypto performance. */
|
||||
esp_crypto_common_clk_enable(true);
|
||||
#endif
|
||||
// Set crypto clock (`clk_sec`) to use 240M PLL clock
|
||||
sec_ll_crypto_clk_src_sel(SOC_MOD_CLK_PLL_F240M);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user