mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-25 11:49:31 +01:00
16 lines
392 B
C
16 lines
392 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"
|
|
|
|
#pragma once
|
|
|
|
static inline 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);
|
|
}
|