2021-11-06 05:23:21 -04:00
|
|
|
/*
|
2022-01-17 21:32:56 -05:00
|
|
|
* SPDX-FileCopyrightText: 2017-2022 Espressif Systems (Shanghai) CO LTD
|
2021-11-06 05:23:21 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "sdkconfig.h"
|
|
|
|
#include "esp_efuse.h"
|
|
|
|
#include <assert.h>
|
|
|
|
#include "esp_efuse_table.h"
|
|
|
|
|
2022-08-17 05:25:59 -04:00
|
|
|
// md5_digest_table 5bc3d3149d5d4c75461337fa415d6533
|
2021-11-06 05:23:21 -04:00
|
|
|
// This file was generated from the file esp_efuse_table.csv. DO NOT CHANGE THIS FILE MANUALLY.
|
|
|
|
// If you want to change some fields, you need to change esp_efuse_table.csv file
|
|
|
|
// then run `efuse_common_table` or `efuse_custom_table` command it will generate this file.
|
|
|
|
// To show efuse_table run the command 'show_efuse_table'.
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t WR_DIS[] = {
|
|
|
|
{EFUSE_BLK0, 0, 8}, // Write protection,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t WR_DIS_KEY0_RD_DIS[] = {
|
|
|
|
{EFUSE_BLK0, 0, 1}, // Write protection for KEY0_RD_DIS,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t WR_DIS_GROUP_1[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 1, 1}, // Write protection for WDT_DELAY DIS_PAD_JTAG DIS_DOWNLOAD_ICACHE,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t WR_DIS_GROUP_2[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 2, 1}, // Write protection for DOWNLOAD_DIS_MANUAL_ENCRYPT SPI_BOOT_CRYPT_CNT XTS_KEY_LENGTH_256 SECURE_BOOT_EN,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t WR_DIS_SPI_BOOT_CRYPT_CNT[] = {
|
|
|
|
{EFUSE_BLK0, 2, 1}, // Write protection for DOWNLOAD_DIS_MANUAL_ENCRYPT [SPI_BOOT_CRYPT_CNT] XTS_KEY_LENGTH_256 SECURE_BOOT_EN,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t WR_DIS_GROUP_3[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 3, 1}, // Write protection for UART_PRINT_CONTROL FORCE_SEND_RESUME DIS_DOWNLOAD_MODE DIS_DIRECT_BOOT ENABLE_SECURITY_DOWNLOAD FLASH_TPUW,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t WR_DIS_BLK0_RESERVED[] = {
|
|
|
|
{EFUSE_BLK0, 4, 1}, // Write protection for BLK0_RESERVED,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t WR_DIS_SYS_DATA_PART0[] = {
|
|
|
|
{EFUSE_BLK0, 5, 1}, // Write protection for EFUSE_BLK1. SYS_DATA_PART0,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t WR_DIS_SYS_DATA_PART1[] = {
|
|
|
|
{EFUSE_BLK0, 6, 1}, // Write protection for EFUSE_BLK2. SYS_DATA_PART2,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t WR_DIS_KEY0[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 7, 1}, // Write protection for EFUSE_BLK3. whole KEY0,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t RD_DIS[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 32, 2}, // Read protection,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t RD_DIS_KEY0[] = {
|
|
|
|
{EFUSE_BLK0, 32, 2}, // Read protection for EFUSE_BLK3. KEY0,
|
|
|
|
};
|
|
|
|
|
2021-12-02 12:48:47 -05:00
|
|
|
static const esp_efuse_desc_t RD_DIS_KEY0_LOW[] = {
|
|
|
|
{EFUSE_BLK0, 32, 1}, // Read protection for EFUSE_BLK3. KEY0 lower 128-bit key,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t RD_DIS_KEY0_HI[] = {
|
|
|
|
{EFUSE_BLK0, 33, 1}, // Read protection for EFUSE_BLK3. KEY0 higher 128-bit key,
|
|
|
|
};
|
|
|
|
|
2021-11-06 05:23:21 -04:00
|
|
|
static const esp_efuse_desc_t WDT_DELAY_SEL[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 34, 2}, // RTC WDT timeout threshold,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t DIS_PAD_JTAG[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 36, 1}, // Hardware Disable JTAG permanently,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
2021-12-02 12:48:47 -05:00
|
|
|
static const esp_efuse_desc_t DIS_DOWNLOAD_ICACHE[] = {
|
|
|
|
{EFUSE_BLK0, 37, 1}, // Disable ICache in Download mode,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t DIS_DOWNLOAD_MANUAL_ENCRYPT[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 38, 1}, // Disable flash encryption in Download boot mode,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
2021-12-02 12:48:47 -05:00
|
|
|
static const esp_efuse_desc_t SPI_BOOT_CRYPT_CNT[] = {
|
|
|
|
{EFUSE_BLK0, 39, 3}, // Enable SPI boot encrypt/decrypt. Odd number: enable; even number: disable,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t XTS_KEY_LENGTH_256[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 42, 1}, // Select XTS_AES key length. 1: 256-bit of whole block3; 0: Lower 128-bit of block3,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t UART_PRINT_CONTROL[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 43, 2}, // Set UART boot message output mode. 00: Force print; 01: Low-level print controlled by GPIO 8; 10: High-level print controlled by GPIO 8; 11: Print force disabled,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t FORCE_SEND_RESUME[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 45, 1}, // Force ROM code to send an SPI flash resume command during SPI boot,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t DIS_DOWNLOAD_MODE[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 46, 1}, // Disable all download boot modes,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t DIS_DIRECT_BOOT[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 47, 1}, // Disable direct_boot mode,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t ENABLE_SECURITY_DOWNLOAD[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 48, 1}, // Enable secure UART download mode,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t FLASH_TPUW[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 49, 4}, // Configure flash startup delay after SoC being powered up (the unit is ms/2). When the value is 15 delay will be 7.5 ms,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t SECURE_BOOT_EN[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK0, 53, 1}, // Enable secure boot,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
2021-12-02 12:48:47 -05:00
|
|
|
static const esp_efuse_desc_t SECURE_VERSION[] = {
|
|
|
|
{EFUSE_BLK0, 54, 4}, // Secure version for anti-rollback,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
2022-05-25 15:16:15 -04:00
|
|
|
static const esp_efuse_desc_t ENABLE_CUSTOM_MAC[] = {
|
|
|
|
{EFUSE_BLK0, 58, 1}, // True if MAC_CUSTOM is burned,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t DISABLE_WAFER_VERSION_MAJOR[] = {
|
|
|
|
{EFUSE_BLK0, 59, 1}, // Disables check of wafer version major,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t DISABLE_BLK_VERSION_MAJOR[] = {
|
|
|
|
{EFUSE_BLK0, 60, 1}, // Disables check of blk version major,
|
|
|
|
};
|
|
|
|
|
2021-12-02 12:48:47 -05:00
|
|
|
static const esp_efuse_desc_t USER_DATA[] = {
|
|
|
|
{EFUSE_BLK1, 0, 88}, // User data block,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
2021-12-02 12:48:47 -05:00
|
|
|
static const esp_efuse_desc_t USER_DATA_MAC_CUSTOM[] = {
|
|
|
|
{EFUSE_BLK1, 0, 48}, // Custom MAC addr,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t MAC_FACTORY[] = {
|
|
|
|
{EFUSE_BLK2, 40, 8}, // Factory MAC addr [0],
|
|
|
|
{EFUSE_BLK2, 32, 8}, // Factory MAC addr [1],
|
|
|
|
{EFUSE_BLK2, 24, 8}, // Factory MAC addr [2],
|
|
|
|
{EFUSE_BLK2, 16, 8}, // Factory MAC addr [3],
|
|
|
|
{EFUSE_BLK2, 8, 8}, // Factory MAC addr [4],
|
|
|
|
{EFUSE_BLK2, 0, 8}, // Factory MAC addr [5],
|
|
|
|
};
|
|
|
|
|
2022-05-25 15:16:15 -04:00
|
|
|
static const esp_efuse_desc_t WAFER_VERSION_MINOR[] = {
|
|
|
|
{EFUSE_BLK2, 48, 4}, // WAFER_VERSION_MINOR,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
2022-05-25 15:16:15 -04:00
|
|
|
static const esp_efuse_desc_t WAFER_VERSION_MAJOR[] = {
|
|
|
|
{EFUSE_BLK2, 52, 2}, // WAFER_VERSION_MAJOR,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
2022-05-25 15:16:15 -04:00
|
|
|
static const esp_efuse_desc_t PKG_VERSION[] = {
|
|
|
|
{EFUSE_BLK2, 54, 3}, // EFUSE_PKG_VERSION,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
2022-05-25 15:16:15 -04:00
|
|
|
static const esp_efuse_desc_t BLK_VERSION_MINOR[] = {
|
|
|
|
{EFUSE_BLK2, 57, 3}, // BLK_VERSION_MINOR,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
2022-05-25 15:16:15 -04:00
|
|
|
static const esp_efuse_desc_t BLK_VERSION_MAJOR[] = {
|
|
|
|
{EFUSE_BLK2, 60, 2}, // BLK_VERSION_MAJOR,
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t PVT_LOW[] = {
|
|
|
|
{EFUSE_BLK2, 91, 5}, // EFUSE_PVT_LOW,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t KEY0[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
{EFUSE_BLK3, 0, 256}, // [256bit FE key] or [128bit FE key and 128key SB key] or [user data],
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t KEY0_FE_256BIT[] = {
|
|
|
|
{EFUSE_BLK3, 0, 256}, // [256bit FE key],
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t KEY0_FE_128BIT[] = {
|
|
|
|
{EFUSE_BLK3, 0, 128}, // [128bit FE key],
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t KEY0_SB_128BIT[] = {
|
|
|
|
{EFUSE_BLK3, 128, 128}, // [128bit SB key],
|
2021-11-06 05:23:21 -04:00
|
|
|
};
|
|
|
|
|
2022-08-17 05:25:59 -04:00
|
|
|
static const esp_efuse_desc_t OCODE[] = {
|
|
|
|
{EFUSE_BLK2, 62, 7}, // OCode,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t DIG_DBIAS_HVT[] = {
|
|
|
|
{EFUSE_BLK2, 105, 5}, // BLOCK2 digital dbias when hvt,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t DIG_LDO_SLP_DBIAS2[] = {
|
|
|
|
{EFUSE_BLK2, 110, 7}, // BLOCK2 DIG_LDO_DBG0_DBIAS2,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t DIG_LDO_SLP_DBIAS26[] = {
|
|
|
|
{EFUSE_BLK2, 117, 8}, // BLOCK2 DIG_LDO_DBG0_DBIAS26,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t DIG_LDO_ACT_DBIAS26[] = {
|
|
|
|
{EFUSE_BLK2, 125, 6}, // BLOCK2 DIG_LDO_ACT_DBIAS26,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t DIG_LDO_ACT_STEPD10[] = {
|
|
|
|
{EFUSE_BLK2, 131, 4}, // BLOCK2 DIG_LDO_ACT_STEPD10,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t RTC_LDO_SLP_DBIAS13[] = {
|
|
|
|
{EFUSE_BLK2, 135, 7}, // BLOCK2 DIG_LDO_SLP_DBIAS13,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t RTC_LDO_SLP_DBIAS29[] = {
|
|
|
|
{EFUSE_BLK2, 142, 9}, // BLOCK2 DIG_LDO_SLP_DBIAS29,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t RTC_LDO_SLP_DBIAS31[] = {
|
|
|
|
{EFUSE_BLK2, 151, 6}, // BLOCK2 DIG_LDO_SLP_DBIAS31,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t RTC_LDO_ACT_DBIAS31[] = {
|
|
|
|
{EFUSE_BLK2, 157, 6}, // BLOCK2 DIG_LDO_ACT_DBIAS31,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const esp_efuse_desc_t RTC_LDO_ACT_DBIAS13[] = {
|
|
|
|
{EFUSE_BLK2, 163, 8}, // BLOCK2 DIG_LDO_ACT_DBIAS13,
|
|
|
|
};
|
|
|
|
|
2021-11-06 05:23:21 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_WR_DIS[] = {
|
|
|
|
&WR_DIS[0], // Write protection
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY0_RD_DIS[] = {
|
|
|
|
&WR_DIS_KEY0_RD_DIS[0], // Write protection for KEY0_RD_DIS
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_GROUP_1[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&WR_DIS_GROUP_1[0], // Write protection for WDT_DELAY DIS_PAD_JTAG DIS_DOWNLOAD_ICACHE
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_GROUP_2[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&WR_DIS_GROUP_2[0], // Write protection for DOWNLOAD_DIS_MANUAL_ENCRYPT SPI_BOOT_CRYPT_CNT XTS_KEY_LENGTH_256 SECURE_BOOT_EN
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_BOOT_CRYPT_CNT[] = {
|
|
|
|
&WR_DIS_SPI_BOOT_CRYPT_CNT[0], // Write protection for DOWNLOAD_DIS_MANUAL_ENCRYPT [SPI_BOOT_CRYPT_CNT] XTS_KEY_LENGTH_256 SECURE_BOOT_EN
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_GROUP_3[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&WR_DIS_GROUP_3[0], // Write protection for UART_PRINT_CONTROL FORCE_SEND_RESUME DIS_DOWNLOAD_MODE DIS_DIRECT_BOOT ENABLE_SECURITY_DOWNLOAD FLASH_TPUW
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLK0_RESERVED[] = {
|
|
|
|
&WR_DIS_BLK0_RESERVED[0], // Write protection for BLK0_RESERVED
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SYS_DATA_PART0[] = {
|
|
|
|
&WR_DIS_SYS_DATA_PART0[0], // Write protection for EFUSE_BLK1. SYS_DATA_PART0
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SYS_DATA_PART1[] = {
|
|
|
|
&WR_DIS_SYS_DATA_PART1[0], // Write protection for EFUSE_BLK2. SYS_DATA_PART2
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY0[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&WR_DIS_KEY0[0], // Write protection for EFUSE_BLK3. whole KEY0
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_RD_DIS[] = {
|
|
|
|
&RD_DIS[0], // Read protection
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY0[] = {
|
|
|
|
&RD_DIS_KEY0[0], // Read protection for EFUSE_BLK3. KEY0
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2021-12-02 12:48:47 -05:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY0_LOW[] = {
|
|
|
|
&RD_DIS_KEY0_LOW[0], // Read protection for EFUSE_BLK3. KEY0 lower 128-bit key
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY0_HI[] = {
|
|
|
|
&RD_DIS_KEY0_HI[0], // Read protection for EFUSE_BLK3. KEY0 higher 128-bit key
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2021-11-06 05:23:21 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_WDT_DELAY_SEL[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&WDT_DELAY_SEL[0], // RTC WDT timeout threshold
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_DIS_PAD_JTAG[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&DIS_PAD_JTAG[0], // Hardware Disable JTAG permanently
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2021-12-02 12:48:47 -05:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_ICACHE[] = {
|
|
|
|
&DIS_DOWNLOAD_ICACHE[0], // Disable ICache in Download mode
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_MANUAL_ENCRYPT[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&DIS_DOWNLOAD_MANUAL_ENCRYPT[0], // Disable flash encryption in Download boot mode
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2021-12-02 12:48:47 -05:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_SPI_BOOT_CRYPT_CNT[] = {
|
|
|
|
&SPI_BOOT_CRYPT_CNT[0], // Enable SPI boot encrypt/decrypt. Odd number: enable; even number: disable
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_XTS_KEY_LENGTH_256[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&XTS_KEY_LENGTH_256[0], // Select XTS_AES key length. 1: 256-bit of whole block3; 0: Lower 128-bit of block3
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_UART_PRINT_CONTROL[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&UART_PRINT_CONTROL[0], // Set UART boot message output mode. 00: Force print; 01: Low-level print controlled by GPIO 8; 10: High-level print controlled by GPIO 8; 11: Print force disabled
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_FORCE_SEND_RESUME[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&FORCE_SEND_RESUME[0], // Force ROM code to send an SPI flash resume command during SPI boot
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_MODE[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&DIS_DOWNLOAD_MODE[0], // Disable all download boot modes
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_DIS_DIRECT_BOOT[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&DIS_DIRECT_BOOT[0], // Disable direct_boot mode
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_ENABLE_SECURITY_DOWNLOAD[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&ENABLE_SECURITY_DOWNLOAD[0], // Enable secure UART download mode
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_FLASH_TPUW[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&FLASH_TPUW[0], // Configure flash startup delay after SoC being powered up (the unit is ms/2). When the value is 15 delay will be 7.5 ms
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_EN[] = {
|
2021-12-02 12:48:47 -05:00
|
|
|
&SECURE_BOOT_EN[0], // Enable secure boot
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2021-12-02 12:48:47 -05:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_SECURE_VERSION[] = {
|
|
|
|
&SECURE_VERSION[0], // Secure version for anti-rollback
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-05-25 15:16:15 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_ENABLE_CUSTOM_MAC[] = {
|
|
|
|
&ENABLE_CUSTOM_MAC[0], // True if MAC_CUSTOM is burned
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_DISABLE_WAFER_VERSION_MAJOR[] = {
|
|
|
|
&DISABLE_WAFER_VERSION_MAJOR[0], // Disables check of wafer version major
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_DISABLE_BLK_VERSION_MAJOR[] = {
|
|
|
|
&DISABLE_BLK_VERSION_MAJOR[0], // Disables check of blk version major
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2021-12-02 12:48:47 -05:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_USER_DATA[] = {
|
|
|
|
&USER_DATA[0], // User data block
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2021-12-02 12:48:47 -05:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_USER_DATA_MAC_CUSTOM[] = {
|
|
|
|
&USER_DATA_MAC_CUSTOM[0], // Custom MAC addr
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_MAC_FACTORY[] = {
|
|
|
|
&MAC_FACTORY[0], // Factory MAC addr [0]
|
|
|
|
&MAC_FACTORY[1], // Factory MAC addr [1]
|
|
|
|
&MAC_FACTORY[2], // Factory MAC addr [2]
|
|
|
|
&MAC_FACTORY[3], // Factory MAC addr [3]
|
|
|
|
&MAC_FACTORY[4], // Factory MAC addr [4]
|
|
|
|
&MAC_FACTORY[5], // Factory MAC addr [5]
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-05-25 15:16:15 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_WAFER_VERSION_MINOR[] = {
|
|
|
|
&WAFER_VERSION_MINOR[0], // WAFER_VERSION_MINOR
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-05-25 15:16:15 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_WAFER_VERSION_MAJOR[] = {
|
|
|
|
&WAFER_VERSION_MAJOR[0], // WAFER_VERSION_MAJOR
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-05-25 15:16:15 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_PKG_VERSION[] = {
|
|
|
|
&PKG_VERSION[0], // EFUSE_PKG_VERSION
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-05-25 15:16:15 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_BLK_VERSION_MINOR[] = {
|
|
|
|
&BLK_VERSION_MINOR[0], // BLK_VERSION_MINOR
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-05-25 15:16:15 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_BLK_VERSION_MAJOR[] = {
|
|
|
|
&BLK_VERSION_MAJOR[0], // BLK_VERSION_MAJOR
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-08-17 05:25:59 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_PVT_LOW[] = {
|
|
|
|
&PVT_LOW[0], // EFUSE_PVT_LOW
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-08-17 05:25:59 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_KEY0[] = {
|
|
|
|
&KEY0[0], // [256bit FE key] or [128bit FE key and 128key SB key] or [user data]
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-08-17 05:25:59 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_KEY0_FE_256BIT[] = {
|
|
|
|
&KEY0_FE_256BIT[0], // [256bit FE key]
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-08-17 05:25:59 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_KEY0_FE_128BIT[] = {
|
|
|
|
&KEY0_FE_128BIT[0], // [128bit FE key]
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-08-17 05:25:59 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_KEY0_SB_128BIT[] = {
|
|
|
|
&KEY0_SB_128BIT[0], // [128bit SB key]
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-08-17 05:25:59 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_OCODE[] = {
|
|
|
|
&OCODE[0], // OCode
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-08-17 05:25:59 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_DIG_DBIAS_HVT[] = {
|
|
|
|
&DIG_DBIAS_HVT[0], // BLOCK2 digital dbias when hvt
|
2021-12-02 12:48:47 -05:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-08-17 05:25:59 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_DIG_LDO_SLP_DBIAS2[] = {
|
|
|
|
&DIG_LDO_SLP_DBIAS2[0], // BLOCK2 DIG_LDO_DBG0_DBIAS2
|
2021-12-02 12:48:47 -05:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-08-17 05:25:59 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_DIG_LDO_SLP_DBIAS26[] = {
|
|
|
|
&DIG_LDO_SLP_DBIAS26[0], // BLOCK2 DIG_LDO_DBG0_DBIAS26
|
2021-12-02 12:48:47 -05:00
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2022-08-17 05:25:59 -04:00
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_DIG_LDO_ACT_DBIAS26[] = {
|
|
|
|
&DIG_LDO_ACT_DBIAS26[0], // BLOCK2 DIG_LDO_ACT_DBIAS26
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_DIG_LDO_ACT_STEPD10[] = {
|
|
|
|
&DIG_LDO_ACT_STEPD10[0], // BLOCK2 DIG_LDO_ACT_STEPD10
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_RTC_LDO_SLP_DBIAS13[] = {
|
|
|
|
&RTC_LDO_SLP_DBIAS13[0], // BLOCK2 DIG_LDO_SLP_DBIAS13
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_RTC_LDO_SLP_DBIAS29[] = {
|
|
|
|
&RTC_LDO_SLP_DBIAS29[0], // BLOCK2 DIG_LDO_SLP_DBIAS29
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_RTC_LDO_SLP_DBIAS31[] = {
|
|
|
|
&RTC_LDO_SLP_DBIAS31[0], // BLOCK2 DIG_LDO_SLP_DBIAS31
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_RTC_LDO_ACT_DBIAS31[] = {
|
|
|
|
&RTC_LDO_ACT_DBIAS31[0], // BLOCK2 DIG_LDO_ACT_DBIAS31
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
const esp_efuse_desc_t* ESP_EFUSE_RTC_LDO_ACT_DBIAS13[] = {
|
|
|
|
&RTC_LDO_ACT_DBIAS13[0], // BLOCK2 DIG_LDO_ACT_DBIAS13
|
2021-11-06 05:23:21 -04:00
|
|
|
NULL
|
|
|
|
};
|