mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
Merge branch 'feature/set_correct_soc_caps' into 'master'
feat(soc): Update efuse related soc_caps for c61 and c5 (MP/beta3) See merge request espressif/esp-idf!30708
This commit is contained in:
@@ -47,7 +47,7 @@ IRAM_ATTR bool efuse_hal_flash_encryption_enabled(void)
|
||||
return enabled;
|
||||
}
|
||||
|
||||
#if SOC_ECDSA_SUPPORTED
|
||||
#if SOC_EFUSE_ECDSA_KEY
|
||||
void efuse_hal_set_ecdsa_key(int efuse_blk)
|
||||
{
|
||||
efuse_ll_set_ecdsa_key_blk(efuse_blk);
|
||||
|
||||
@@ -84,6 +84,16 @@ __attribute__((always_inline)) static inline uint32_t efuse_ll_get_chip_ver_pkg(
|
||||
return (uint32_t)0;
|
||||
}
|
||||
|
||||
__attribute__((always_inline)) static inline uint32_t efuse_ll_get_ecdsa_key_blk(void)
|
||||
{
|
||||
return EFUSE0.conf.cfg_ecdsa_blk;
|
||||
}
|
||||
|
||||
__attribute__((always_inline)) static inline void efuse_ll_set_ecdsa_key_blk(int efuse_blk)
|
||||
{
|
||||
EFUSE0.conf.cfg_ecdsa_blk = efuse_blk;
|
||||
}
|
||||
|
||||
/******************* eFuse control functions *************************/
|
||||
|
||||
__attribute__((always_inline)) static inline bool efuse_ll_get_read_cmd(void)
|
||||
@@ -137,6 +147,11 @@ __attribute__((always_inline)) static inline void efuse_ll_set_pwr_off_num(uint1
|
||||
EFUSE0.wr_tim_conf2.pwr_off_num = value;
|
||||
}
|
||||
|
||||
__attribute__((always_inline)) static inline void efuse_ll_rs_bypass_update(void)
|
||||
{
|
||||
EFUSE0.wr_tim_conf0_rs_bypass.update = 1;
|
||||
}
|
||||
|
||||
/******************* eFuse control functions *************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -61,7 +61,7 @@ uint32_t efuse_hal_get_major_chip_version(void);
|
||||
*/
|
||||
uint32_t efuse_hal_get_minor_chip_version(void);
|
||||
|
||||
#if SOC_ECDSA_SUPPORTED
|
||||
#if SOC_EFUSE_ECDSA_KEY
|
||||
/**
|
||||
* @brief Set the efuse block that should be used as ECDSA private key
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user