Merge branch 'feature/efuse_adds_fields_v6.0' into 'release/v6.0'

feat(efuse): Adds efuse flash fields for esp32c2 (v6.0)

See merge request espressif/esp-idf!45339
This commit is contained in:
Marius Vikhammer
2026-03-20 10:07:17 +08:00
5 changed files with 115 additions and 16 deletions
@@ -1,5 +1,5 @@
/**
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -596,13 +596,34 @@ extern "C" {
* Register 7 of BLOCK2.
*/
#define EFUSE_RD_BLK2_DATA7_REG (DR_REG_EFUSE_BASE + 0x5c)
/** EFUSE_BLK2_RESERVED_DATA_1 : RO; bitpos: [31:0]; default: 0;
* Store the bit [21:52] of block2 reserved data.
/** EFUSE_RESERVED_2_224 : R; bitpos: [23:0]; default: 0;
* reserved
*/
#define EFUSE_BLK2_RESERVED_DATA_1 0xFFFFFFFFU
#define EFUSE_BLK2_RESERVED_DATA_1_M (EFUSE_BLK2_RESERVED_DATA_1_V << EFUSE_BLK2_RESERVED_DATA_1_S)
#define EFUSE_BLK2_RESERVED_DATA_1_V 0xFFFFFFFFU
#define EFUSE_BLK2_RESERVED_DATA_1_S 0
#define EFUSE_RESERVED_2_224 0x00FFFFFFU
#define EFUSE_RESERVED_2_224_M (EFUSE_RESERVED_2_224_V << EFUSE_RESERVED_2_224_S)
#define EFUSE_RESERVED_2_224_V 0x00FFFFFFU
#define EFUSE_RESERVED_2_224_S 0
/** EFUSE_FLASH_VENDOR : R; bitpos: [26:24]; default: 0;
* Flash vendor
*/
#define EFUSE_FLASH_VENDOR 0x00000007U
#define EFUSE_FLASH_VENDOR_M (EFUSE_FLASH_VENDOR_V << EFUSE_FLASH_VENDOR_S)
#define EFUSE_FLASH_VENDOR_V 0x00000007U
#define EFUSE_FLASH_VENDOR_S 24
/** EFUSE_FLASH_TEMP : R; bitpos: [28:27]; default: 0;
* Flash temperature rating
*/
#define EFUSE_FLASH_TEMP 0x00000003U
#define EFUSE_FLASH_TEMP_M (EFUSE_FLASH_TEMP_V << EFUSE_FLASH_TEMP_S)
#define EFUSE_FLASH_TEMP_V 0x00000003U
#define EFUSE_FLASH_TEMP_S 27
/** EFUSE_FLASH_CAP : R; bitpos: [31:29]; default: 0;
* Flash capacity
*/
#define EFUSE_FLASH_CAP 0x00000007U
#define EFUSE_FLASH_CAP_M (EFUSE_FLASH_CAP_V << EFUSE_FLASH_CAP_S)
#define EFUSE_FLASH_CAP_V 0x00000007U
#define EFUSE_FLASH_CAP_S 29
/** EFUSE_RD_BLK3_DATA0_REG register
* Register 0 of BLOCK3.
@@ -1,5 +1,5 @@
/**
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -493,10 +493,22 @@ typedef union {
*/
typedef union {
struct {
/** blk2_reserved_data_1 : RO; bitpos: [31:0]; default: 0;
* Store the bit [21:52] of block2 reserved data.
/** reserved_2_224 : R; bitpos: [23:0]; default: 0;
* reserved
*/
uint32_t blk2_reserved_data_1:32;
uint32_t reserved_2_224:24;
/** flash_vendor : R; bitpos: [26:24]; default: 0;
* Flash vendor
*/
uint32_t flash_vendor:3;
/** flash_temp : R; bitpos: [28:27]; default: 0;
* Flash temperature rating
*/
uint32_t flash_temp:2;
/** flash_cap : R; bitpos: [31:29]; default: 0;
* Flash capacity
*/
uint32_t flash_cap:3;
};
uint32_t val;
} efuse_rd_blk2_data7_reg_t;