mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-26 04:09:29 +01:00
14 lines
386 B
C
14 lines
386 B
C
|
|
/*
|
||
|
|
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
|
*/
|
||
|
|
#include "soc/soc.h"
|
||
|
|
#include "soc/hp_sys_clkrst_reg.h"
|
||
|
|
|
||
|
|
__attribute__((weak)) void esp_crypto_clk_init(void)
|
||
|
|
{
|
||
|
|
// Set crypto clock (`clk_sec`) to use 240M PLL clock
|
||
|
|
REG_SET_FIELD(HP_SYS_CLKRST_PERI_CLK_CTRL25_REG, HP_SYS_CLKRST_REG_CRYPTO_CLK_SRC_SEL, 0x2);
|
||
|
|
}
|