Skip to content

Commit 8c67e3e

Browse files
nileshkale123mahavirj
authored andcommitted
fix: update efuse register files for esp32c5 eco2
1 parent 7141b95 commit 8c67e3e

File tree

6 files changed

+1636
-10650
lines changed

6 files changed

+1636
-10650
lines changed

components/efuse/esp32c5/esp_efuse_utility.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extern uint32_t virt_blocks[EFUSE_BLK_MAX][COUNT_EFUSE_REG_PER_BLOCK];
2020

2121
/*Range addresses to read blocks*/
2222
const esp_efuse_range_addr_t range_read_addr_blocks[] = {
23-
{EFUSE_RD_WR_DIS0_REG, EFUSE_RD_REPEAT_DATA4_REG}, // range address of EFUSE_BLK0 REPEAT
23+
{EFUSE_RD_WR_DIS_REG, EFUSE_RD_REPEAT_DATA4_REG}, // range address of EFUSE_BLK0 REPEAT
2424
{EFUSE_RD_MAC_SYS0_REG, EFUSE_RD_MAC_SYS5_REG}, // range address of EFUSE_BLK1 MAC_SPI_8M
2525
{EFUSE_RD_SYS_PART1_DATA0_REG, EFUSE_RD_SYS_PART1_DATA7_REG}, // range address of EFUSE_BLK2 SYS_DATA
2626
{EFUSE_RD_USR_DATA0_REG, EFUSE_RD_USR_DATA7_REG}, // range address of EFUSE_BLK3 USR_DATA

components/hal/esp32c5/include/hal/efuse_ll.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -38,7 +38,7 @@ __attribute__((always_inline)) static inline uint32_t efuse_ll_get_flash_crypt_c
3838

3939
__attribute__((always_inline)) static inline uint32_t efuse_ll_get_wdt_delay_sel(void)
4040
{
41-
return EFUSE.rd_repeat_data1.wdt_delay_sel;
41+
return EFUSE.rd_repeat_data0.wdt_delay_sel;
4242
}
4343

4444
__attribute__((always_inline)) static inline uint32_t efuse_ll_get_mac0(void)
@@ -100,7 +100,8 @@ __attribute__((always_inline)) static inline void efuse_ll_set_ecdsa_key_blk(int
100100

101101
__attribute__((always_inline)) static inline uint32_t efuse_ll_get_ocode(void)
102102
{
103-
return EFUSE.rd_sys_part1_data4.ocode;
103+
// TODO: IDF-13007
104+
return 0;
104105
}
105106

106107
/******************* eFuse control functions *************************/

0 commit comments

Comments
 (0)