change(esp_security): Move crypto clk configuration into the security component

This commit is contained in:
harshal.patil
2024-07-08 14:31:32 +05:30
committed by Mahavir Jain
parent 239734e3d5
commit b729a0a732
9 changed files with 65 additions and 11 deletions

View File

@@ -0,0 +1,13 @@
/*
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "soc/soc.h"
#include "soc/pcr_reg.h"
__attribute__((weak)) void esp_crypto_clk_init(void)
{
// Set crypto clock (`clk_sec`) to use 480M SPLL clock
REG_SET_FIELD(PCR_SEC_CONF_REG, PCR_SEC_CLK_SEL, 0x2);
}