1 /* 2 * SPDX-FileCopyrightText: 2017-2023 Espressif Systems (Shanghai) CO LTD 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include "sdkconfig.h" 8 #include "esp_efuse.h" 9 #include <assert.h> 10 #include "esp_efuse_table.h" 11 12 // md5_digest_table 661eec06c4c442af5baa0c947029db74 13 // This file was generated from the file esp_efuse_table.csv. DO NOT CHANGE THIS FILE MANUALLY. 14 // If you want to change some fields, you need to change esp_efuse_table.csv file 15 // then run `efuse_common_table` or `efuse_custom_table` command it will generate this file. 16 // To show efuse_table run the command 'show_efuse_table'. 17 18 static const esp_efuse_desc_t WR_DIS[] = { 19 {EFUSE_BLK0, 0, 32}, // [] Disable programming of individual eFuses, 20 }; 21 22 static const esp_efuse_desc_t WR_DIS_RD_DIS[] = { 23 {EFUSE_BLK0, 0, 1}, // [] wr_dis of RD_DIS, 24 }; 25 26 static const esp_efuse_desc_t WR_DIS_DIS_ICACHE[] = { 27 {EFUSE_BLK0, 2, 1}, // [] wr_dis of DIS_ICACHE, 28 }; 29 30 static const esp_efuse_desc_t WR_DIS_DIS_USB_JTAG[] = { 31 {EFUSE_BLK0, 2, 1}, // [] wr_dis of DIS_USB_JTAG, 32 }; 33 34 static const esp_efuse_desc_t WR_DIS_DIS_DOWNLOAD_ICACHE[] = { 35 {EFUSE_BLK0, 2, 1}, // [] wr_dis of DIS_DOWNLOAD_ICACHE, 36 }; 37 38 static const esp_efuse_desc_t WR_DIS_DIS_USB_SERIAL_JTAG[] = { 39 {EFUSE_BLK0, 2, 1}, // [WR_DIS.DIS_USB_DEVICE] wr_dis of DIS_USB_SERIAL_JTAG, 40 }; 41 42 static const esp_efuse_desc_t WR_DIS_DIS_FORCE_DOWNLOAD[] = { 43 {EFUSE_BLK0, 2, 1}, // [] wr_dis of DIS_FORCE_DOWNLOAD, 44 }; 45 46 static const esp_efuse_desc_t WR_DIS_DIS_TWAI[] = { 47 {EFUSE_BLK0, 2, 1}, // [WR_DIS.DIS_CAN] wr_dis of DIS_TWAI, 48 }; 49 50 static const esp_efuse_desc_t WR_DIS_JTAG_SEL_ENABLE[] = { 51 {EFUSE_BLK0, 2, 1}, // [] wr_dis of JTAG_SEL_ENABLE, 52 }; 53 54 static const esp_efuse_desc_t WR_DIS_DIS_PAD_JTAG[] = { 55 {EFUSE_BLK0, 2, 1}, // [] wr_dis of DIS_PAD_JTAG, 56 }; 57 58 static const esp_efuse_desc_t WR_DIS_DIS_DOWNLOAD_MANUAL_ENCRYPT[] = { 59 {EFUSE_BLK0, 2, 1}, // [] wr_dis of DIS_DOWNLOAD_MANUAL_ENCRYPT, 60 }; 61 62 static const esp_efuse_desc_t WR_DIS_WDT_DELAY_SEL[] = { 63 {EFUSE_BLK0, 3, 1}, // [] wr_dis of WDT_DELAY_SEL, 64 }; 65 66 static const esp_efuse_desc_t WR_DIS_SPI_BOOT_CRYPT_CNT[] = { 67 {EFUSE_BLK0, 4, 1}, // [] wr_dis of SPI_BOOT_CRYPT_CNT, 68 }; 69 70 static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_KEY_REVOKE0[] = { 71 {EFUSE_BLK0, 5, 1}, // [] wr_dis of SECURE_BOOT_KEY_REVOKE0, 72 }; 73 74 static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_KEY_REVOKE1[] = { 75 {EFUSE_BLK0, 6, 1}, // [] wr_dis of SECURE_BOOT_KEY_REVOKE1, 76 }; 77 78 static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_KEY_REVOKE2[] = { 79 {EFUSE_BLK0, 7, 1}, // [] wr_dis of SECURE_BOOT_KEY_REVOKE2, 80 }; 81 82 static const esp_efuse_desc_t WR_DIS_KEY_PURPOSE_0[] = { 83 {EFUSE_BLK0, 8, 1}, // [WR_DIS.KEY0_PURPOSE] wr_dis of KEY_PURPOSE_0, 84 }; 85 86 static const esp_efuse_desc_t WR_DIS_KEY_PURPOSE_1[] = { 87 {EFUSE_BLK0, 9, 1}, // [WR_DIS.KEY1_PURPOSE] wr_dis of KEY_PURPOSE_1, 88 }; 89 90 static const esp_efuse_desc_t WR_DIS_KEY_PURPOSE_2[] = { 91 {EFUSE_BLK0, 10, 1}, // [WR_DIS.KEY2_PURPOSE] wr_dis of KEY_PURPOSE_2, 92 }; 93 94 static const esp_efuse_desc_t WR_DIS_KEY_PURPOSE_3[] = { 95 {EFUSE_BLK0, 11, 1}, // [WR_DIS.KEY3_PURPOSE] wr_dis of KEY_PURPOSE_3, 96 }; 97 98 static const esp_efuse_desc_t WR_DIS_KEY_PURPOSE_4[] = { 99 {EFUSE_BLK0, 12, 1}, // [WR_DIS.KEY4_PURPOSE] wr_dis of KEY_PURPOSE_4, 100 }; 101 102 static const esp_efuse_desc_t WR_DIS_KEY_PURPOSE_5[] = { 103 {EFUSE_BLK0, 13, 1}, // [WR_DIS.KEY5_PURPOSE] wr_dis of KEY_PURPOSE_5, 104 }; 105 106 static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_EN[] = { 107 {EFUSE_BLK0, 15, 1}, // [] wr_dis of SECURE_BOOT_EN, 108 }; 109 110 static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_AGGRESSIVE_REVOKE[] = { 111 {EFUSE_BLK0, 16, 1}, // [] wr_dis of SECURE_BOOT_AGGRESSIVE_REVOKE, 112 }; 113 114 static const esp_efuse_desc_t WR_DIS_FLASH_TPUW[] = { 115 {EFUSE_BLK0, 18, 1}, // [] wr_dis of FLASH_TPUW, 116 }; 117 118 static const esp_efuse_desc_t WR_DIS_DIS_DOWNLOAD_MODE[] = { 119 {EFUSE_BLK0, 18, 1}, // [] wr_dis of DIS_DOWNLOAD_MODE, 120 }; 121 122 static const esp_efuse_desc_t WR_DIS_DIS_DIRECT_BOOT[] = { 123 {EFUSE_BLK0, 18, 1}, // [WR_DIS.DIS_LEGACY_SPI_BOOT] wr_dis of DIS_DIRECT_BOOT, 124 }; 125 126 static const esp_efuse_desc_t WR_DIS_DIS_USB_SERIAL_JTAG_ROM_PRINT[] = { 127 {EFUSE_BLK0, 18, 1}, // [WR_DIS.UART_PRINT_CHANNEL] wr_dis of DIS_USB_SERIAL_JTAG_ROM_PRINT, 128 }; 129 130 static const esp_efuse_desc_t WR_DIS_DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE[] = { 131 {EFUSE_BLK0, 18, 1}, // [WR_DIS.DIS_USB_DOWNLOAD_MODE] wr_dis of DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE, 132 }; 133 134 static const esp_efuse_desc_t WR_DIS_ENABLE_SECURITY_DOWNLOAD[] = { 135 {EFUSE_BLK0, 18, 1}, // [] wr_dis of ENABLE_SECURITY_DOWNLOAD, 136 }; 137 138 static const esp_efuse_desc_t WR_DIS_UART_PRINT_CONTROL[] = { 139 {EFUSE_BLK0, 18, 1}, // [] wr_dis of UART_PRINT_CONTROL, 140 }; 141 142 static const esp_efuse_desc_t WR_DIS_FORCE_SEND_RESUME[] = { 143 {EFUSE_BLK0, 18, 1}, // [] wr_dis of FORCE_SEND_RESUME, 144 }; 145 146 static const esp_efuse_desc_t WR_DIS_SECURE_VERSION[] = { 147 {EFUSE_BLK0, 18, 1}, // [] wr_dis of SECURE_VERSION, 148 }; 149 150 static const esp_efuse_desc_t WR_DIS_ERR_RST_ENABLE[] = { 151 {EFUSE_BLK0, 19, 1}, // [] wr_dis of ERR_RST_ENABLE, 152 }; 153 154 static const esp_efuse_desc_t WR_DIS_DISABLE_WAFER_VERSION_MAJOR[] = { 155 {EFUSE_BLK0, 19, 1}, // [] wr_dis of DISABLE_WAFER_VERSION_MAJOR, 156 }; 157 158 static const esp_efuse_desc_t WR_DIS_DISABLE_BLK_VERSION_MAJOR[] = { 159 {EFUSE_BLK0, 19, 1}, // [] wr_dis of DISABLE_BLK_VERSION_MAJOR, 160 }; 161 162 static const esp_efuse_desc_t WR_DIS_BLK1[] = { 163 {EFUSE_BLK0, 20, 1}, // [] wr_dis of BLOCK1, 164 }; 165 166 static const esp_efuse_desc_t WR_DIS_MAC[] = { 167 {EFUSE_BLK0, 20, 1}, // [WR_DIS.MAC_FACTORY] wr_dis of MAC, 168 }; 169 170 static const esp_efuse_desc_t WR_DIS_SPI_PAD_CONFIG_CLK[] = { 171 {EFUSE_BLK0, 20, 1}, // [] wr_dis of SPI_PAD_CONFIG_CLK, 172 }; 173 174 static const esp_efuse_desc_t WR_DIS_SPI_PAD_CONFIG_Q[] = { 175 {EFUSE_BLK0, 20, 1}, // [] wr_dis of SPI_PAD_CONFIG_Q, 176 }; 177 178 static const esp_efuse_desc_t WR_DIS_SPI_PAD_CONFIG_D[] = { 179 {EFUSE_BLK0, 20, 1}, // [] wr_dis of SPI_PAD_CONFIG_D, 180 }; 181 182 static const esp_efuse_desc_t WR_DIS_SPI_PAD_CONFIG_CS[] = { 183 {EFUSE_BLK0, 20, 1}, // [] wr_dis of SPI_PAD_CONFIG_CS, 184 }; 185 186 static const esp_efuse_desc_t WR_DIS_SPI_PAD_CONFIG_HD[] = { 187 {EFUSE_BLK0, 20, 1}, // [] wr_dis of SPI_PAD_CONFIG_HD, 188 }; 189 190 static const esp_efuse_desc_t WR_DIS_SPI_PAD_CONFIG_WP[] = { 191 {EFUSE_BLK0, 20, 1}, // [] wr_dis of SPI_PAD_CONFIG_WP, 192 }; 193 194 static const esp_efuse_desc_t WR_DIS_SPI_PAD_CONFIG_DQS[] = { 195 {EFUSE_BLK0, 20, 1}, // [] wr_dis of SPI_PAD_CONFIG_DQS, 196 }; 197 198 static const esp_efuse_desc_t WR_DIS_SPI_PAD_CONFIG_D4[] = { 199 {EFUSE_BLK0, 20, 1}, // [] wr_dis of SPI_PAD_CONFIG_D4, 200 }; 201 202 static const esp_efuse_desc_t WR_DIS_SPI_PAD_CONFIG_D5[] = { 203 {EFUSE_BLK0, 20, 1}, // [] wr_dis of SPI_PAD_CONFIG_D5, 204 }; 205 206 static const esp_efuse_desc_t WR_DIS_SPI_PAD_CONFIG_D6[] = { 207 {EFUSE_BLK0, 20, 1}, // [] wr_dis of SPI_PAD_CONFIG_D6, 208 }; 209 210 static const esp_efuse_desc_t WR_DIS_SPI_PAD_CONFIG_D7[] = { 211 {EFUSE_BLK0, 20, 1}, // [] wr_dis of SPI_PAD_CONFIG_D7, 212 }; 213 214 static const esp_efuse_desc_t WR_DIS_WAFER_VERSION_MINOR_LO[] = { 215 {EFUSE_BLK0, 20, 1}, // [] wr_dis of WAFER_VERSION_MINOR_LO, 216 }; 217 218 static const esp_efuse_desc_t WR_DIS_PKG_VERSION[] = { 219 {EFUSE_BLK0, 20, 1}, // [] wr_dis of PKG_VERSION, 220 }; 221 222 static const esp_efuse_desc_t WR_DIS_BLK_VERSION_MINOR[] = { 223 {EFUSE_BLK0, 20, 1}, // [] wr_dis of BLK_VERSION_MINOR, 224 }; 225 226 static const esp_efuse_desc_t WR_DIS_K_RTC_LDO[] = { 227 {EFUSE_BLK0, 20, 1}, // [] wr_dis of K_RTC_LDO, 228 }; 229 230 static const esp_efuse_desc_t WR_DIS_K_DIG_LDO[] = { 231 {EFUSE_BLK0, 20, 1}, // [] wr_dis of K_DIG_LDO, 232 }; 233 234 static const esp_efuse_desc_t WR_DIS_V_RTC_DBIAS20[] = { 235 {EFUSE_BLK0, 20, 1}, // [] wr_dis of V_RTC_DBIAS20, 236 }; 237 238 static const esp_efuse_desc_t WR_DIS_V_DIG_DBIAS20[] = { 239 {EFUSE_BLK0, 20, 1}, // [] wr_dis of V_DIG_DBIAS20, 240 }; 241 242 static const esp_efuse_desc_t WR_DIS_DIG_DBIAS_HVT[] = { 243 {EFUSE_BLK0, 20, 1}, // [] wr_dis of DIG_DBIAS_HVT, 244 }; 245 246 static const esp_efuse_desc_t WR_DIS_THRES_HVT[] = { 247 {EFUSE_BLK0, 20, 1}, // [] wr_dis of THRES_HVT, 248 }; 249 250 static const esp_efuse_desc_t WR_DIS_WAFER_VERSION_MINOR_HI[] = { 251 {EFUSE_BLK0, 20, 1}, // [] wr_dis of WAFER_VERSION_MINOR_HI, 252 }; 253 254 static const esp_efuse_desc_t WR_DIS_WAFER_VERSION_MAJOR[] = { 255 {EFUSE_BLK0, 20, 1}, // [] wr_dis of WAFER_VERSION_MAJOR, 256 }; 257 258 static const esp_efuse_desc_t WR_DIS_SYS_DATA_PART1[] = { 259 {EFUSE_BLK0, 21, 1}, // [] wr_dis of BLOCK2, 260 }; 261 262 static const esp_efuse_desc_t WR_DIS_OPTIONAL_UNIQUE_ID[] = { 263 {EFUSE_BLK0, 21, 1}, // [] wr_dis of OPTIONAL_UNIQUE_ID, 264 }; 265 266 static const esp_efuse_desc_t WR_DIS_BLK_VERSION_MAJOR[] = { 267 {EFUSE_BLK0, 21, 1}, // [] wr_dis of BLK_VERSION_MAJOR, 268 }; 269 270 static const esp_efuse_desc_t WR_DIS_TEMP_CALIB[] = { 271 {EFUSE_BLK0, 21, 1}, // [] wr_dis of TEMP_CALIB, 272 }; 273 274 static const esp_efuse_desc_t WR_DIS_OCODE[] = { 275 {EFUSE_BLK0, 21, 1}, // [] wr_dis of OCODE, 276 }; 277 278 static const esp_efuse_desc_t WR_DIS_ADC1_INIT_CODE_ATTEN0[] = { 279 {EFUSE_BLK0, 21, 1}, // [] wr_dis of ADC1_INIT_CODE_ATTEN0, 280 }; 281 282 static const esp_efuse_desc_t WR_DIS_ADC1_INIT_CODE_ATTEN1[] = { 283 {EFUSE_BLK0, 21, 1}, // [] wr_dis of ADC1_INIT_CODE_ATTEN1, 284 }; 285 286 static const esp_efuse_desc_t WR_DIS_ADC1_INIT_CODE_ATTEN2[] = { 287 {EFUSE_BLK0, 21, 1}, // [] wr_dis of ADC1_INIT_CODE_ATTEN2, 288 }; 289 290 static const esp_efuse_desc_t WR_DIS_ADC1_INIT_CODE_ATTEN3[] = { 291 {EFUSE_BLK0, 21, 1}, // [] wr_dis of ADC1_INIT_CODE_ATTEN3, 292 }; 293 294 static const esp_efuse_desc_t WR_DIS_ADC1_CAL_VOL_ATTEN0[] = { 295 {EFUSE_BLK0, 21, 1}, // [] wr_dis of ADC1_CAL_VOL_ATTEN0, 296 }; 297 298 static const esp_efuse_desc_t WR_DIS_ADC1_CAL_VOL_ATTEN1[] = { 299 {EFUSE_BLK0, 21, 1}, // [] wr_dis of ADC1_CAL_VOL_ATTEN1, 300 }; 301 302 static const esp_efuse_desc_t WR_DIS_ADC1_CAL_VOL_ATTEN2[] = { 303 {EFUSE_BLK0, 21, 1}, // [] wr_dis of ADC1_CAL_VOL_ATTEN2, 304 }; 305 306 static const esp_efuse_desc_t WR_DIS_ADC1_CAL_VOL_ATTEN3[] = { 307 {EFUSE_BLK0, 21, 1}, // [] wr_dis of ADC1_CAL_VOL_ATTEN3, 308 }; 309 310 static const esp_efuse_desc_t WR_DIS_BLOCK_USR_DATA[] = { 311 {EFUSE_BLK0, 22, 1}, // [WR_DIS.USER_DATA] wr_dis of BLOCK_USR_DATA, 312 }; 313 314 static const esp_efuse_desc_t WR_DIS_CUSTOM_MAC[] = { 315 {EFUSE_BLK0, 22, 1}, // [WR_DIS.MAC_CUSTOM WR_DIS.USER_DATA_MAC_CUSTOM] wr_dis of CUSTOM_MAC, 316 }; 317 318 static const esp_efuse_desc_t WR_DIS_BLOCK_KEY0[] = { 319 {EFUSE_BLK0, 23, 1}, // [WR_DIS.KEY0] wr_dis of BLOCK_KEY0, 320 }; 321 322 static const esp_efuse_desc_t WR_DIS_BLOCK_KEY1[] = { 323 {EFUSE_BLK0, 24, 1}, // [WR_DIS.KEY1] wr_dis of BLOCK_KEY1, 324 }; 325 326 static const esp_efuse_desc_t WR_DIS_BLOCK_KEY2[] = { 327 {EFUSE_BLK0, 25, 1}, // [WR_DIS.KEY2] wr_dis of BLOCK_KEY2, 328 }; 329 330 static const esp_efuse_desc_t WR_DIS_BLOCK_KEY3[] = { 331 {EFUSE_BLK0, 26, 1}, // [WR_DIS.KEY3] wr_dis of BLOCK_KEY3, 332 }; 333 334 static const esp_efuse_desc_t WR_DIS_BLOCK_KEY4[] = { 335 {EFUSE_BLK0, 27, 1}, // [WR_DIS.KEY4] wr_dis of BLOCK_KEY4, 336 }; 337 338 static const esp_efuse_desc_t WR_DIS_BLOCK_KEY5[] = { 339 {EFUSE_BLK0, 28, 1}, // [WR_DIS.KEY5] wr_dis of BLOCK_KEY5, 340 }; 341 342 static const esp_efuse_desc_t WR_DIS_BLOCK_SYS_DATA2[] = { 343 {EFUSE_BLK0, 29, 1}, // [WR_DIS.SYS_DATA_PART2] wr_dis of BLOCK_SYS_DATA2, 344 }; 345 346 static const esp_efuse_desc_t WR_DIS_USB_EXCHG_PINS[] = { 347 {EFUSE_BLK0, 30, 1}, // [] wr_dis of USB_EXCHG_PINS, 348 }; 349 350 static const esp_efuse_desc_t WR_DIS_VDD_SPI_AS_GPIO[] = { 351 {EFUSE_BLK0, 30, 1}, // [] wr_dis of VDD_SPI_AS_GPIO, 352 }; 353 354 static const esp_efuse_desc_t WR_DIS_SOFT_DIS_JTAG[] = { 355 {EFUSE_BLK0, 31, 1}, // [] wr_dis of SOFT_DIS_JTAG, 356 }; 357 358 static const esp_efuse_desc_t RD_DIS[] = { 359 {EFUSE_BLK0, 32, 7}, // [] Disable reading from BlOCK4-10, 360 }; 361 362 static const esp_efuse_desc_t RD_DIS_BLOCK_KEY0[] = { 363 {EFUSE_BLK0, 32, 1}, // [RD_DIS.KEY0] rd_dis of BLOCK_KEY0, 364 }; 365 366 static const esp_efuse_desc_t RD_DIS_BLOCK_KEY1[] = { 367 {EFUSE_BLK0, 33, 1}, // [RD_DIS.KEY1] rd_dis of BLOCK_KEY1, 368 }; 369 370 static const esp_efuse_desc_t RD_DIS_BLOCK_KEY2[] = { 371 {EFUSE_BLK0, 34, 1}, // [RD_DIS.KEY2] rd_dis of BLOCK_KEY2, 372 }; 373 374 static const esp_efuse_desc_t RD_DIS_BLOCK_KEY3[] = { 375 {EFUSE_BLK0, 35, 1}, // [RD_DIS.KEY3] rd_dis of BLOCK_KEY3, 376 }; 377 378 static const esp_efuse_desc_t RD_DIS_BLOCK_KEY4[] = { 379 {EFUSE_BLK0, 36, 1}, // [RD_DIS.KEY4] rd_dis of BLOCK_KEY4, 380 }; 381 382 static const esp_efuse_desc_t RD_DIS_BLOCK_KEY5[] = { 383 {EFUSE_BLK0, 37, 1}, // [RD_DIS.KEY5] rd_dis of BLOCK_KEY5, 384 }; 385 386 static const esp_efuse_desc_t RD_DIS_BLOCK_SYS_DATA2[] = { 387 {EFUSE_BLK0, 38, 1}, // [RD_DIS.SYS_DATA_PART2] rd_dis of BLOCK_SYS_DATA2, 388 }; 389 390 static const esp_efuse_desc_t DIS_ICACHE[] = { 391 {EFUSE_BLK0, 40, 1}, // [] Set this bit to disable Icache, 392 }; 393 394 static const esp_efuse_desc_t DIS_USB_JTAG[] = { 395 {EFUSE_BLK0, 41, 1}, // [] Set this bit to disable function of usb switch to jtag in module of usb device, 396 }; 397 398 static const esp_efuse_desc_t DIS_DOWNLOAD_ICACHE[] = { 399 {EFUSE_BLK0, 42, 1}, // [] Set this bit to disable Icache in download mode (boot_mode[3:0] is 0; 1; 2; 3; 6; 7), 400 }; 401 402 static const esp_efuse_desc_t DIS_USB_SERIAL_JTAG[] = { 403 {EFUSE_BLK0, 43, 1}, // [DIS_USB_DEVICE] USB-Serial-JTAG {0: "Enable"; 1: "Disable"}, 404 }; 405 406 static const esp_efuse_desc_t DIS_FORCE_DOWNLOAD[] = { 407 {EFUSE_BLK0, 44, 1}, // [] Set this bit to disable the function that forces chip into download mode, 408 }; 409 410 static const esp_efuse_desc_t DIS_TWAI[] = { 411 {EFUSE_BLK0, 46, 1}, // [DIS_CAN] Set this bit to disable CAN function, 412 }; 413 414 static const esp_efuse_desc_t JTAG_SEL_ENABLE[] = { 415 {EFUSE_BLK0, 47, 1}, // [] Set this bit to enable selection between usb_to_jtag and pad_to_jtag through strapping gpio10 when both reg_dis_usb_jtag and reg_dis_pad_jtag are equal to 0, 416 }; 417 418 static const esp_efuse_desc_t SOFT_DIS_JTAG[] = { 419 {EFUSE_BLK0, 48, 3}, // [] Set these bits to disable JTAG in the soft way (odd number 1 means disable ). JTAG can be enabled in HMAC module, 420 }; 421 422 static const esp_efuse_desc_t DIS_PAD_JTAG[] = { 423 {EFUSE_BLK0, 51, 1}, // [] Set this bit to disable JTAG in the hard way. JTAG is disabled permanently, 424 }; 425 426 static const esp_efuse_desc_t DIS_DOWNLOAD_MANUAL_ENCRYPT[] = { 427 {EFUSE_BLK0, 52, 1}, // [] Set this bit to disable flash encryption when in download boot modes, 428 }; 429 430 static const esp_efuse_desc_t USB_EXCHG_PINS[] = { 431 {EFUSE_BLK0, 57, 1}, // [] Set this bit to exchange USB D+ and D- pins, 432 }; 433 434 static const esp_efuse_desc_t VDD_SPI_AS_GPIO[] = { 435 {EFUSE_BLK0, 58, 1}, // [] Set this bit to vdd spi pin function as gpio, 436 }; 437 438 static const esp_efuse_desc_t WDT_DELAY_SEL[] = { 439 {EFUSE_BLK0, 80, 2}, // [] RTC watchdog timeout threshold; in unit of slow clock cycle {0: "40000"; 1: "80000"; 2: "160000"; 3: "320000"}, 440 }; 441 442 static const esp_efuse_desc_t SPI_BOOT_CRYPT_CNT[] = { 443 {EFUSE_BLK0, 82, 3}, // [] Enables flash encryption when 1 or 3 bits are set and disables otherwise {0: "Disable"; 1: "Enable"; 3: "Disable"; 7: "Enable"}, 444 }; 445 446 static const esp_efuse_desc_t SECURE_BOOT_KEY_REVOKE0[] = { 447 {EFUSE_BLK0, 85, 1}, // [] Revoke 1st secure boot key, 448 }; 449 450 static const esp_efuse_desc_t SECURE_BOOT_KEY_REVOKE1[] = { 451 {EFUSE_BLK0, 86, 1}, // [] Revoke 2nd secure boot key, 452 }; 453 454 static const esp_efuse_desc_t SECURE_BOOT_KEY_REVOKE2[] = { 455 {EFUSE_BLK0, 87, 1}, // [] Revoke 3rd secure boot key, 456 }; 457 458 static const esp_efuse_desc_t KEY_PURPOSE_0[] = { 459 {EFUSE_BLK0, 88, 4}, // [KEY0_PURPOSE] Purpose of Key0, 460 }; 461 462 static const esp_efuse_desc_t KEY_PURPOSE_1[] = { 463 {EFUSE_BLK0, 92, 4}, // [KEY1_PURPOSE] Purpose of Key1, 464 }; 465 466 static const esp_efuse_desc_t KEY_PURPOSE_2[] = { 467 {EFUSE_BLK0, 96, 4}, // [KEY2_PURPOSE] Purpose of Key2, 468 }; 469 470 static const esp_efuse_desc_t KEY_PURPOSE_3[] = { 471 {EFUSE_BLK0, 100, 4}, // [KEY3_PURPOSE] Purpose of Key3, 472 }; 473 474 static const esp_efuse_desc_t KEY_PURPOSE_4[] = { 475 {EFUSE_BLK0, 104, 4}, // [KEY4_PURPOSE] Purpose of Key4, 476 }; 477 478 static const esp_efuse_desc_t KEY_PURPOSE_5[] = { 479 {EFUSE_BLK0, 108, 4}, // [KEY5_PURPOSE] Purpose of Key5, 480 }; 481 482 static const esp_efuse_desc_t SECURE_BOOT_EN[] = { 483 {EFUSE_BLK0, 116, 1}, // [] Set this bit to enable secure boot, 484 }; 485 486 static const esp_efuse_desc_t SECURE_BOOT_AGGRESSIVE_REVOKE[] = { 487 {EFUSE_BLK0, 117, 1}, // [] Set this bit to enable revoking aggressive secure boot, 488 }; 489 490 static const esp_efuse_desc_t FLASH_TPUW[] = { 491 {EFUSE_BLK0, 124, 4}, // [] Configures flash waiting time after power-up; in unit of ms. If the value is less than 15; the waiting time is the configurable value; Otherwise; the waiting time is twice the configurable value, 492 }; 493 494 static const esp_efuse_desc_t DIS_DOWNLOAD_MODE[] = { 495 {EFUSE_BLK0, 128, 1}, // [] Set this bit to disable download mode (boot_mode[3:0] = 0; 1; 2; 3; 6; 7), 496 }; 497 498 static const esp_efuse_desc_t DIS_DIRECT_BOOT[] = { 499 {EFUSE_BLK0, 129, 1}, // [DIS_LEGACY_SPI_BOOT] Disable direct boot mode, 500 }; 501 502 static const esp_efuse_desc_t DIS_USB_SERIAL_JTAG_ROM_PRINT[] = { 503 {EFUSE_BLK0, 130, 1}, // [UART_PRINT_CHANNEL] USB printing {0: "Enable"; 1: "Disable"}, 504 }; 505 506 static const esp_efuse_desc_t DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE[] = { 507 {EFUSE_BLK0, 132, 1}, // [DIS_USB_DOWNLOAD_MODE] Disable UART download mode through USB-Serial-JTAG, 508 }; 509 510 static const esp_efuse_desc_t ENABLE_SECURITY_DOWNLOAD[] = { 511 {EFUSE_BLK0, 133, 1}, // [] Set this bit to enable secure UART download mode, 512 }; 513 514 static const esp_efuse_desc_t UART_PRINT_CONTROL[] = { 515 {EFUSE_BLK0, 134, 2}, // [] Set the default UARTboot message output mode {0: "Enable"; 1: "Enable when GPIO8 is low at reset"; 2: "Enable when GPIO8 is high at reset"; 3: "Disable"}, 516 }; 517 518 static const esp_efuse_desc_t FORCE_SEND_RESUME[] = { 519 {EFUSE_BLK0, 141, 1}, // [] Set this bit to force ROM code to send a resume command during SPI boot, 520 }; 521 522 static const esp_efuse_desc_t SECURE_VERSION[] = { 523 {EFUSE_BLK0, 142, 16}, // [] Secure version (used by ESP-IDF anti-rollback feature), 524 }; 525 526 static const esp_efuse_desc_t ERR_RST_ENABLE[] = { 527 {EFUSE_BLK0, 159, 1}, // [] Use BLOCK0 to check error record registers {0: "without check"; 1: "with check"}, 528 }; 529 530 static const esp_efuse_desc_t DISABLE_WAFER_VERSION_MAJOR[] = { 531 {EFUSE_BLK0, 160, 1}, // [] Disables check of wafer version major, 532 }; 533 534 static const esp_efuse_desc_t DISABLE_BLK_VERSION_MAJOR[] = { 535 {EFUSE_BLK0, 161, 1}, // [] Disables check of blk version major, 536 }; 537 538 static const esp_efuse_desc_t MAC[] = { 539 {EFUSE_BLK1, 40, 8}, // [MAC_FACTORY] MAC address, 540 {EFUSE_BLK1, 32, 8}, // [MAC_FACTORY] MAC address, 541 {EFUSE_BLK1, 24, 8}, // [MAC_FACTORY] MAC address, 542 {EFUSE_BLK1, 16, 8}, // [MAC_FACTORY] MAC address, 543 {EFUSE_BLK1, 8, 8}, // [MAC_FACTORY] MAC address, 544 {EFUSE_BLK1, 0, 8}, // [MAC_FACTORY] MAC address, 545 }; 546 547 static const esp_efuse_desc_t SPI_PAD_CONFIG_CLK[] = { 548 {EFUSE_BLK1, 48, 6}, // [] SPI PAD CLK, 549 }; 550 551 static const esp_efuse_desc_t SPI_PAD_CONFIG_Q[] = { 552 {EFUSE_BLK1, 54, 6}, // [] SPI PAD Q(D1), 553 }; 554 555 static const esp_efuse_desc_t SPI_PAD_CONFIG_D[] = { 556 {EFUSE_BLK1, 60, 6}, // [] SPI PAD D(D0), 557 }; 558 559 static const esp_efuse_desc_t SPI_PAD_CONFIG_CS[] = { 560 {EFUSE_BLK1, 66, 6}, // [] SPI PAD CS, 561 }; 562 563 static const esp_efuse_desc_t SPI_PAD_CONFIG_HD[] = { 564 {EFUSE_BLK1, 72, 6}, // [] SPI PAD HD(D3), 565 }; 566 567 static const esp_efuse_desc_t SPI_PAD_CONFIG_WP[] = { 568 {EFUSE_BLK1, 78, 6}, // [] SPI PAD WP(D2), 569 }; 570 571 static const esp_efuse_desc_t SPI_PAD_CONFIG_DQS[] = { 572 {EFUSE_BLK1, 84, 6}, // [] SPI PAD DQS, 573 }; 574 575 static const esp_efuse_desc_t SPI_PAD_CONFIG_D4[] = { 576 {EFUSE_BLK1, 90, 6}, // [] SPI PAD D4, 577 }; 578 579 static const esp_efuse_desc_t SPI_PAD_CONFIG_D5[] = { 580 {EFUSE_BLK1, 96, 6}, // [] SPI PAD D5, 581 }; 582 583 static const esp_efuse_desc_t SPI_PAD_CONFIG_D6[] = { 584 {EFUSE_BLK1, 102, 6}, // [] SPI PAD D6, 585 }; 586 587 static const esp_efuse_desc_t SPI_PAD_CONFIG_D7[] = { 588 {EFUSE_BLK1, 108, 6}, // [] SPI PAD D7, 589 }; 590 591 static const esp_efuse_desc_t WAFER_VERSION_MINOR_LO[] = { 592 {EFUSE_BLK1, 114, 3}, // [] WAFER_VERSION_MINOR least significant bits, 593 }; 594 595 static const esp_efuse_desc_t PKG_VERSION[] = { 596 {EFUSE_BLK1, 117, 3}, // [] Package version, 597 }; 598 599 static const esp_efuse_desc_t BLK_VERSION_MINOR[] = { 600 {EFUSE_BLK1, 120, 3}, // [] BLK_VERSION_MINOR, 601 }; 602 603 static const esp_efuse_desc_t K_RTC_LDO[] = { 604 {EFUSE_BLK1, 135, 7}, // [] BLOCK1 K_RTC_LDO, 605 }; 606 607 static const esp_efuse_desc_t K_DIG_LDO[] = { 608 {EFUSE_BLK1, 142, 7}, // [] BLOCK1 K_DIG_LDO, 609 }; 610 611 static const esp_efuse_desc_t V_RTC_DBIAS20[] = { 612 {EFUSE_BLK1, 149, 8}, // [] BLOCK1 voltage of rtc dbias20, 613 }; 614 615 static const esp_efuse_desc_t V_DIG_DBIAS20[] = { 616 {EFUSE_BLK1, 157, 8}, // [] BLOCK1 voltage of digital dbias20, 617 }; 618 619 static const esp_efuse_desc_t DIG_DBIAS_HVT[] = { 620 {EFUSE_BLK1, 165, 5}, // [] BLOCK1 digital dbias when hvt, 621 }; 622 623 static const esp_efuse_desc_t THRES_HVT[] = { 624 {EFUSE_BLK1, 170, 10}, // [] BLOCK1 pvt threshold when hvt, 625 }; 626 627 static const esp_efuse_desc_t WAFER_VERSION_MINOR_HI[] = { 628 {EFUSE_BLK1, 183, 1}, // [] WAFER_VERSION_MINOR most significant bit, 629 }; 630 631 static const esp_efuse_desc_t WAFER_VERSION_MAJOR[] = { 632 {EFUSE_BLK1, 184, 2}, // [] WAFER_VERSION_MAJOR, 633 }; 634 635 static const esp_efuse_desc_t OPTIONAL_UNIQUE_ID[] = { 636 {EFUSE_BLK2, 0, 128}, // [] Optional unique 128-bit ID, 637 }; 638 639 static const esp_efuse_desc_t BLK_VERSION_MAJOR[] = { 640 {EFUSE_BLK2, 128, 2}, // [] BLK_VERSION_MAJOR of BLOCK2 {0: "No calibration"; 1: "With calibration"}, 641 }; 642 643 static const esp_efuse_desc_t TEMP_CALIB[] = { 644 {EFUSE_BLK2, 131, 9}, // [] Temperature calibration data, 645 }; 646 647 static const esp_efuse_desc_t OCODE[] = { 648 {EFUSE_BLK2, 140, 8}, // [] ADC OCode, 649 }; 650 651 static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN0[] = { 652 {EFUSE_BLK2, 148, 10}, // [] ADC1 init code at atten0, 653 }; 654 655 static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN1[] = { 656 {EFUSE_BLK2, 158, 10}, // [] ADC1 init code at atten1, 657 }; 658 659 static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN2[] = { 660 {EFUSE_BLK2, 168, 10}, // [] ADC1 init code at atten2, 661 }; 662 663 static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN3[] = { 664 {EFUSE_BLK2, 178, 10}, // [] ADC1 init code at atten3, 665 }; 666 667 static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN0[] = { 668 {EFUSE_BLK2, 188, 10}, // [] ADC1 calibration voltage at atten0, 669 }; 670 671 static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN1[] = { 672 {EFUSE_BLK2, 198, 10}, // [] ADC1 calibration voltage at atten1, 673 }; 674 675 static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN2[] = { 676 {EFUSE_BLK2, 208, 10}, // [] ADC1 calibration voltage at atten2, 677 }; 678 679 static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN3[] = { 680 {EFUSE_BLK2, 218, 10}, // [] ADC1 calibration voltage at atten3, 681 }; 682 683 static const esp_efuse_desc_t USER_DATA[] = { 684 {EFUSE_BLK3, 0, 256}, // [BLOCK_USR_DATA] User data, 685 }; 686 687 static const esp_efuse_desc_t USER_DATA_MAC_CUSTOM[] = { 688 {EFUSE_BLK3, 200, 48}, // [MAC_CUSTOM CUSTOM_MAC] Custom MAC address, 689 }; 690 691 static const esp_efuse_desc_t KEY0[] = { 692 {EFUSE_BLK4, 0, 256}, // [BLOCK_KEY0] Key0 or user data, 693 }; 694 695 static const esp_efuse_desc_t KEY1[] = { 696 {EFUSE_BLK5, 0, 256}, // [BLOCK_KEY1] Key1 or user data, 697 }; 698 699 static const esp_efuse_desc_t KEY2[] = { 700 {EFUSE_BLK6, 0, 256}, // [BLOCK_KEY2] Key2 or user data, 701 }; 702 703 static const esp_efuse_desc_t KEY3[] = { 704 {EFUSE_BLK7, 0, 256}, // [BLOCK_KEY3] Key3 or user data, 705 }; 706 707 static const esp_efuse_desc_t KEY4[] = { 708 {EFUSE_BLK8, 0, 256}, // [BLOCK_KEY4] Key4 or user data, 709 }; 710 711 static const esp_efuse_desc_t KEY5[] = { 712 {EFUSE_BLK9, 0, 256}, // [BLOCK_KEY5] Key5 or user data, 713 }; 714 715 static const esp_efuse_desc_t SYS_DATA_PART2[] = { 716 {EFUSE_BLK10, 0, 256}, // [BLOCK_SYS_DATA2] System data part 2 (reserved), 717 }; 718 719 720 721 722 723 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS[] = { 724 &WR_DIS[0], // [] Disable programming of individual eFuses 725 NULL 726 }; 727 728 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_RD_DIS[] = { 729 &WR_DIS_RD_DIS[0], // [] wr_dis of RD_DIS 730 NULL 731 }; 732 733 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIS_ICACHE[] = { 734 &WR_DIS_DIS_ICACHE[0], // [] wr_dis of DIS_ICACHE 735 NULL 736 }; 737 738 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIS_USB_JTAG[] = { 739 &WR_DIS_DIS_USB_JTAG[0], // [] wr_dis of DIS_USB_JTAG 740 NULL 741 }; 742 743 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIS_DOWNLOAD_ICACHE[] = { 744 &WR_DIS_DIS_DOWNLOAD_ICACHE[0], // [] wr_dis of DIS_DOWNLOAD_ICACHE 745 NULL 746 }; 747 748 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIS_USB_SERIAL_JTAG[] = { 749 &WR_DIS_DIS_USB_SERIAL_JTAG[0], // [WR_DIS.DIS_USB_DEVICE] wr_dis of DIS_USB_SERIAL_JTAG 750 NULL 751 }; 752 753 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIS_FORCE_DOWNLOAD[] = { 754 &WR_DIS_DIS_FORCE_DOWNLOAD[0], // [] wr_dis of DIS_FORCE_DOWNLOAD 755 NULL 756 }; 757 758 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIS_TWAI[] = { 759 &WR_DIS_DIS_TWAI[0], // [WR_DIS.DIS_CAN] wr_dis of DIS_TWAI 760 NULL 761 }; 762 763 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_JTAG_SEL_ENABLE[] = { 764 &WR_DIS_JTAG_SEL_ENABLE[0], // [] wr_dis of JTAG_SEL_ENABLE 765 NULL 766 }; 767 768 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIS_PAD_JTAG[] = { 769 &WR_DIS_DIS_PAD_JTAG[0], // [] wr_dis of DIS_PAD_JTAG 770 NULL 771 }; 772 773 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIS_DOWNLOAD_MANUAL_ENCRYPT[] = { 774 &WR_DIS_DIS_DOWNLOAD_MANUAL_ENCRYPT[0], // [] wr_dis of DIS_DOWNLOAD_MANUAL_ENCRYPT 775 NULL 776 }; 777 778 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_WDT_DELAY_SEL[] = { 779 &WR_DIS_WDT_DELAY_SEL[0], // [] wr_dis of WDT_DELAY_SEL 780 NULL 781 }; 782 783 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_BOOT_CRYPT_CNT[] = { 784 &WR_DIS_SPI_BOOT_CRYPT_CNT[0], // [] wr_dis of SPI_BOOT_CRYPT_CNT 785 NULL 786 }; 787 788 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_KEY_REVOKE0[] = { 789 &WR_DIS_SECURE_BOOT_KEY_REVOKE0[0], // [] wr_dis of SECURE_BOOT_KEY_REVOKE0 790 NULL 791 }; 792 793 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_KEY_REVOKE1[] = { 794 &WR_DIS_SECURE_BOOT_KEY_REVOKE1[0], // [] wr_dis of SECURE_BOOT_KEY_REVOKE1 795 NULL 796 }; 797 798 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_KEY_REVOKE2[] = { 799 &WR_DIS_SECURE_BOOT_KEY_REVOKE2[0], // [] wr_dis of SECURE_BOOT_KEY_REVOKE2 800 NULL 801 }; 802 803 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY_PURPOSE_0[] = { 804 &WR_DIS_KEY_PURPOSE_0[0], // [WR_DIS.KEY0_PURPOSE] wr_dis of KEY_PURPOSE_0 805 NULL 806 }; 807 808 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY_PURPOSE_1[] = { 809 &WR_DIS_KEY_PURPOSE_1[0], // [WR_DIS.KEY1_PURPOSE] wr_dis of KEY_PURPOSE_1 810 NULL 811 }; 812 813 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY_PURPOSE_2[] = { 814 &WR_DIS_KEY_PURPOSE_2[0], // [WR_DIS.KEY2_PURPOSE] wr_dis of KEY_PURPOSE_2 815 NULL 816 }; 817 818 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY_PURPOSE_3[] = { 819 &WR_DIS_KEY_PURPOSE_3[0], // [WR_DIS.KEY3_PURPOSE] wr_dis of KEY_PURPOSE_3 820 NULL 821 }; 822 823 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY_PURPOSE_4[] = { 824 &WR_DIS_KEY_PURPOSE_4[0], // [WR_DIS.KEY4_PURPOSE] wr_dis of KEY_PURPOSE_4 825 NULL 826 }; 827 828 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY_PURPOSE_5[] = { 829 &WR_DIS_KEY_PURPOSE_5[0], // [WR_DIS.KEY5_PURPOSE] wr_dis of KEY_PURPOSE_5 830 NULL 831 }; 832 833 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_EN[] = { 834 &WR_DIS_SECURE_BOOT_EN[0], // [] wr_dis of SECURE_BOOT_EN 835 NULL 836 }; 837 838 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_AGGRESSIVE_REVOKE[] = { 839 &WR_DIS_SECURE_BOOT_AGGRESSIVE_REVOKE[0], // [] wr_dis of SECURE_BOOT_AGGRESSIVE_REVOKE 840 NULL 841 }; 842 843 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_FLASH_TPUW[] = { 844 &WR_DIS_FLASH_TPUW[0], // [] wr_dis of FLASH_TPUW 845 NULL 846 }; 847 848 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIS_DOWNLOAD_MODE[] = { 849 &WR_DIS_DIS_DOWNLOAD_MODE[0], // [] wr_dis of DIS_DOWNLOAD_MODE 850 NULL 851 }; 852 853 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIS_DIRECT_BOOT[] = { 854 &WR_DIS_DIS_DIRECT_BOOT[0], // [WR_DIS.DIS_LEGACY_SPI_BOOT] wr_dis of DIS_DIRECT_BOOT 855 NULL 856 }; 857 858 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIS_USB_SERIAL_JTAG_ROM_PRINT[] = { 859 &WR_DIS_DIS_USB_SERIAL_JTAG_ROM_PRINT[0], // [WR_DIS.UART_PRINT_CHANNEL] wr_dis of DIS_USB_SERIAL_JTAG_ROM_PRINT 860 NULL 861 }; 862 863 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE[] = { 864 &WR_DIS_DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE[0], // [WR_DIS.DIS_USB_DOWNLOAD_MODE] wr_dis of DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE 865 NULL 866 }; 867 868 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_ENABLE_SECURITY_DOWNLOAD[] = { 869 &WR_DIS_ENABLE_SECURITY_DOWNLOAD[0], // [] wr_dis of ENABLE_SECURITY_DOWNLOAD 870 NULL 871 }; 872 873 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_UART_PRINT_CONTROL[] = { 874 &WR_DIS_UART_PRINT_CONTROL[0], // [] wr_dis of UART_PRINT_CONTROL 875 NULL 876 }; 877 878 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_FORCE_SEND_RESUME[] = { 879 &WR_DIS_FORCE_SEND_RESUME[0], // [] wr_dis of FORCE_SEND_RESUME 880 NULL 881 }; 882 883 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_VERSION[] = { 884 &WR_DIS_SECURE_VERSION[0], // [] wr_dis of SECURE_VERSION 885 NULL 886 }; 887 888 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_ERR_RST_ENABLE[] = { 889 &WR_DIS_ERR_RST_ENABLE[0], // [] wr_dis of ERR_RST_ENABLE 890 NULL 891 }; 892 893 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DISABLE_WAFER_VERSION_MAJOR[] = { 894 &WR_DIS_DISABLE_WAFER_VERSION_MAJOR[0], // [] wr_dis of DISABLE_WAFER_VERSION_MAJOR 895 NULL 896 }; 897 898 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DISABLE_BLK_VERSION_MAJOR[] = { 899 &WR_DIS_DISABLE_BLK_VERSION_MAJOR[0], // [] wr_dis of DISABLE_BLK_VERSION_MAJOR 900 NULL 901 }; 902 903 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLK1[] = { 904 &WR_DIS_BLK1[0], // [] wr_dis of BLOCK1 905 NULL 906 }; 907 908 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_MAC[] = { 909 &WR_DIS_MAC[0], // [WR_DIS.MAC_FACTORY] wr_dis of MAC 910 NULL 911 }; 912 913 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_PAD_CONFIG_CLK[] = { 914 &WR_DIS_SPI_PAD_CONFIG_CLK[0], // [] wr_dis of SPI_PAD_CONFIG_CLK 915 NULL 916 }; 917 918 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_PAD_CONFIG_Q[] = { 919 &WR_DIS_SPI_PAD_CONFIG_Q[0], // [] wr_dis of SPI_PAD_CONFIG_Q 920 NULL 921 }; 922 923 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_PAD_CONFIG_D[] = { 924 &WR_DIS_SPI_PAD_CONFIG_D[0], // [] wr_dis of SPI_PAD_CONFIG_D 925 NULL 926 }; 927 928 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_PAD_CONFIG_CS[] = { 929 &WR_DIS_SPI_PAD_CONFIG_CS[0], // [] wr_dis of SPI_PAD_CONFIG_CS 930 NULL 931 }; 932 933 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_PAD_CONFIG_HD[] = { 934 &WR_DIS_SPI_PAD_CONFIG_HD[0], // [] wr_dis of SPI_PAD_CONFIG_HD 935 NULL 936 }; 937 938 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_PAD_CONFIG_WP[] = { 939 &WR_DIS_SPI_PAD_CONFIG_WP[0], // [] wr_dis of SPI_PAD_CONFIG_WP 940 NULL 941 }; 942 943 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_PAD_CONFIG_DQS[] = { 944 &WR_DIS_SPI_PAD_CONFIG_DQS[0], // [] wr_dis of SPI_PAD_CONFIG_DQS 945 NULL 946 }; 947 948 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_PAD_CONFIG_D4[] = { 949 &WR_DIS_SPI_PAD_CONFIG_D4[0], // [] wr_dis of SPI_PAD_CONFIG_D4 950 NULL 951 }; 952 953 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_PAD_CONFIG_D5[] = { 954 &WR_DIS_SPI_PAD_CONFIG_D5[0], // [] wr_dis of SPI_PAD_CONFIG_D5 955 NULL 956 }; 957 958 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_PAD_CONFIG_D6[] = { 959 &WR_DIS_SPI_PAD_CONFIG_D6[0], // [] wr_dis of SPI_PAD_CONFIG_D6 960 NULL 961 }; 962 963 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_PAD_CONFIG_D7[] = { 964 &WR_DIS_SPI_PAD_CONFIG_D7[0], // [] wr_dis of SPI_PAD_CONFIG_D7 965 NULL 966 }; 967 968 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_WAFER_VERSION_MINOR_LO[] = { 969 &WR_DIS_WAFER_VERSION_MINOR_LO[0], // [] wr_dis of WAFER_VERSION_MINOR_LO 970 NULL 971 }; 972 973 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_PKG_VERSION[] = { 974 &WR_DIS_PKG_VERSION[0], // [] wr_dis of PKG_VERSION 975 NULL 976 }; 977 978 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLK_VERSION_MINOR[] = { 979 &WR_DIS_BLK_VERSION_MINOR[0], // [] wr_dis of BLK_VERSION_MINOR 980 NULL 981 }; 982 983 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_K_RTC_LDO[] = { 984 &WR_DIS_K_RTC_LDO[0], // [] wr_dis of K_RTC_LDO 985 NULL 986 }; 987 988 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_K_DIG_LDO[] = { 989 &WR_DIS_K_DIG_LDO[0], // [] wr_dis of K_DIG_LDO 990 NULL 991 }; 992 993 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_V_RTC_DBIAS20[] = { 994 &WR_DIS_V_RTC_DBIAS20[0], // [] wr_dis of V_RTC_DBIAS20 995 NULL 996 }; 997 998 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_V_DIG_DBIAS20[] = { 999 &WR_DIS_V_DIG_DBIAS20[0], // [] wr_dis of V_DIG_DBIAS20 1000 NULL 1001 }; 1002 1003 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIG_DBIAS_HVT[] = { 1004 &WR_DIS_DIG_DBIAS_HVT[0], // [] wr_dis of DIG_DBIAS_HVT 1005 NULL 1006 }; 1007 1008 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_THRES_HVT[] = { 1009 &WR_DIS_THRES_HVT[0], // [] wr_dis of THRES_HVT 1010 NULL 1011 }; 1012 1013 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_WAFER_VERSION_MINOR_HI[] = { 1014 &WR_DIS_WAFER_VERSION_MINOR_HI[0], // [] wr_dis of WAFER_VERSION_MINOR_HI 1015 NULL 1016 }; 1017 1018 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_WAFER_VERSION_MAJOR[] = { 1019 &WR_DIS_WAFER_VERSION_MAJOR[0], // [] wr_dis of WAFER_VERSION_MAJOR 1020 NULL 1021 }; 1022 1023 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SYS_DATA_PART1[] = { 1024 &WR_DIS_SYS_DATA_PART1[0], // [] wr_dis of BLOCK2 1025 NULL 1026 }; 1027 1028 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_OPTIONAL_UNIQUE_ID[] = { 1029 &WR_DIS_OPTIONAL_UNIQUE_ID[0], // [] wr_dis of OPTIONAL_UNIQUE_ID 1030 NULL 1031 }; 1032 1033 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLK_VERSION_MAJOR[] = { 1034 &WR_DIS_BLK_VERSION_MAJOR[0], // [] wr_dis of BLK_VERSION_MAJOR 1035 NULL 1036 }; 1037 1038 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_TEMP_CALIB[] = { 1039 &WR_DIS_TEMP_CALIB[0], // [] wr_dis of TEMP_CALIB 1040 NULL 1041 }; 1042 1043 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_OCODE[] = { 1044 &WR_DIS_OCODE[0], // [] wr_dis of OCODE 1045 NULL 1046 }; 1047 1048 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_ADC1_INIT_CODE_ATTEN0[] = { 1049 &WR_DIS_ADC1_INIT_CODE_ATTEN0[0], // [] wr_dis of ADC1_INIT_CODE_ATTEN0 1050 NULL 1051 }; 1052 1053 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_ADC1_INIT_CODE_ATTEN1[] = { 1054 &WR_DIS_ADC1_INIT_CODE_ATTEN1[0], // [] wr_dis of ADC1_INIT_CODE_ATTEN1 1055 NULL 1056 }; 1057 1058 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_ADC1_INIT_CODE_ATTEN2[] = { 1059 &WR_DIS_ADC1_INIT_CODE_ATTEN2[0], // [] wr_dis of ADC1_INIT_CODE_ATTEN2 1060 NULL 1061 }; 1062 1063 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_ADC1_INIT_CODE_ATTEN3[] = { 1064 &WR_DIS_ADC1_INIT_CODE_ATTEN3[0], // [] wr_dis of ADC1_INIT_CODE_ATTEN3 1065 NULL 1066 }; 1067 1068 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_ADC1_CAL_VOL_ATTEN0[] = { 1069 &WR_DIS_ADC1_CAL_VOL_ATTEN0[0], // [] wr_dis of ADC1_CAL_VOL_ATTEN0 1070 NULL 1071 }; 1072 1073 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_ADC1_CAL_VOL_ATTEN1[] = { 1074 &WR_DIS_ADC1_CAL_VOL_ATTEN1[0], // [] wr_dis of ADC1_CAL_VOL_ATTEN1 1075 NULL 1076 }; 1077 1078 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_ADC1_CAL_VOL_ATTEN2[] = { 1079 &WR_DIS_ADC1_CAL_VOL_ATTEN2[0], // [] wr_dis of ADC1_CAL_VOL_ATTEN2 1080 NULL 1081 }; 1082 1083 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_ADC1_CAL_VOL_ATTEN3[] = { 1084 &WR_DIS_ADC1_CAL_VOL_ATTEN3[0], // [] wr_dis of ADC1_CAL_VOL_ATTEN3 1085 NULL 1086 }; 1087 1088 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLOCK_USR_DATA[] = { 1089 &WR_DIS_BLOCK_USR_DATA[0], // [WR_DIS.USER_DATA] wr_dis of BLOCK_USR_DATA 1090 NULL 1091 }; 1092 1093 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_CUSTOM_MAC[] = { 1094 &WR_DIS_CUSTOM_MAC[0], // [WR_DIS.MAC_CUSTOM WR_DIS.USER_DATA_MAC_CUSTOM] wr_dis of CUSTOM_MAC 1095 NULL 1096 }; 1097 1098 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLOCK_KEY0[] = { 1099 &WR_DIS_BLOCK_KEY0[0], // [WR_DIS.KEY0] wr_dis of BLOCK_KEY0 1100 NULL 1101 }; 1102 1103 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLOCK_KEY1[] = { 1104 &WR_DIS_BLOCK_KEY1[0], // [WR_DIS.KEY1] wr_dis of BLOCK_KEY1 1105 NULL 1106 }; 1107 1108 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLOCK_KEY2[] = { 1109 &WR_DIS_BLOCK_KEY2[0], // [WR_DIS.KEY2] wr_dis of BLOCK_KEY2 1110 NULL 1111 }; 1112 1113 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLOCK_KEY3[] = { 1114 &WR_DIS_BLOCK_KEY3[0], // [WR_DIS.KEY3] wr_dis of BLOCK_KEY3 1115 NULL 1116 }; 1117 1118 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLOCK_KEY4[] = { 1119 &WR_DIS_BLOCK_KEY4[0], // [WR_DIS.KEY4] wr_dis of BLOCK_KEY4 1120 NULL 1121 }; 1122 1123 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLOCK_KEY5[] = { 1124 &WR_DIS_BLOCK_KEY5[0], // [WR_DIS.KEY5] wr_dis of BLOCK_KEY5 1125 NULL 1126 }; 1127 1128 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLOCK_SYS_DATA2[] = { 1129 &WR_DIS_BLOCK_SYS_DATA2[0], // [WR_DIS.SYS_DATA_PART2] wr_dis of BLOCK_SYS_DATA2 1130 NULL 1131 }; 1132 1133 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_USB_EXCHG_PINS[] = { 1134 &WR_DIS_USB_EXCHG_PINS[0], // [] wr_dis of USB_EXCHG_PINS 1135 NULL 1136 }; 1137 1138 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_VDD_SPI_AS_GPIO[] = { 1139 &WR_DIS_VDD_SPI_AS_GPIO[0], // [] wr_dis of VDD_SPI_AS_GPIO 1140 NULL 1141 }; 1142 1143 const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SOFT_DIS_JTAG[] = { 1144 &WR_DIS_SOFT_DIS_JTAG[0], // [] wr_dis of SOFT_DIS_JTAG 1145 NULL 1146 }; 1147 1148 const esp_efuse_desc_t* ESP_EFUSE_RD_DIS[] = { 1149 &RD_DIS[0], // [] Disable reading from BlOCK4-10 1150 NULL 1151 }; 1152 1153 const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_BLOCK_KEY0[] = { 1154 &RD_DIS_BLOCK_KEY0[0], // [RD_DIS.KEY0] rd_dis of BLOCK_KEY0 1155 NULL 1156 }; 1157 1158 const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_BLOCK_KEY1[] = { 1159 &RD_DIS_BLOCK_KEY1[0], // [RD_DIS.KEY1] rd_dis of BLOCK_KEY1 1160 NULL 1161 }; 1162 1163 const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_BLOCK_KEY2[] = { 1164 &RD_DIS_BLOCK_KEY2[0], // [RD_DIS.KEY2] rd_dis of BLOCK_KEY2 1165 NULL 1166 }; 1167 1168 const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_BLOCK_KEY3[] = { 1169 &RD_DIS_BLOCK_KEY3[0], // [RD_DIS.KEY3] rd_dis of BLOCK_KEY3 1170 NULL 1171 }; 1172 1173 const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_BLOCK_KEY4[] = { 1174 &RD_DIS_BLOCK_KEY4[0], // [RD_DIS.KEY4] rd_dis of BLOCK_KEY4 1175 NULL 1176 }; 1177 1178 const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_BLOCK_KEY5[] = { 1179 &RD_DIS_BLOCK_KEY5[0], // [RD_DIS.KEY5] rd_dis of BLOCK_KEY5 1180 NULL 1181 }; 1182 1183 const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_BLOCK_SYS_DATA2[] = { 1184 &RD_DIS_BLOCK_SYS_DATA2[0], // [RD_DIS.SYS_DATA_PART2] rd_dis of BLOCK_SYS_DATA2 1185 NULL 1186 }; 1187 1188 const esp_efuse_desc_t* ESP_EFUSE_DIS_ICACHE[] = { 1189 &DIS_ICACHE[0], // [] Set this bit to disable Icache 1190 NULL 1191 }; 1192 1193 const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_JTAG[] = { 1194 &DIS_USB_JTAG[0], // [] Set this bit to disable function of usb switch to jtag in module of usb device 1195 NULL 1196 }; 1197 1198 const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_ICACHE[] = { 1199 &DIS_DOWNLOAD_ICACHE[0], // [] Set this bit to disable Icache in download mode (boot_mode[3:0] is 0; 1; 2; 3; 6; 7) 1200 NULL 1201 }; 1202 1203 const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_SERIAL_JTAG[] = { 1204 &DIS_USB_SERIAL_JTAG[0], // [DIS_USB_DEVICE] USB-Serial-JTAG {0: "Enable"; 1: "Disable"} 1205 NULL 1206 }; 1207 1208 const esp_efuse_desc_t* ESP_EFUSE_DIS_FORCE_DOWNLOAD[] = { 1209 &DIS_FORCE_DOWNLOAD[0], // [] Set this bit to disable the function that forces chip into download mode 1210 NULL 1211 }; 1212 1213 const esp_efuse_desc_t* ESP_EFUSE_DIS_TWAI[] = { 1214 &DIS_TWAI[0], // [DIS_CAN] Set this bit to disable CAN function 1215 NULL 1216 }; 1217 1218 const esp_efuse_desc_t* ESP_EFUSE_JTAG_SEL_ENABLE[] = { 1219 &JTAG_SEL_ENABLE[0], // [] Set this bit to enable selection between usb_to_jtag and pad_to_jtag through strapping gpio10 when both reg_dis_usb_jtag and reg_dis_pad_jtag are equal to 0 1220 NULL 1221 }; 1222 1223 const esp_efuse_desc_t* ESP_EFUSE_SOFT_DIS_JTAG[] = { 1224 &SOFT_DIS_JTAG[0], // [] Set these bits to disable JTAG in the soft way (odd number 1 means disable ). JTAG can be enabled in HMAC module 1225 NULL 1226 }; 1227 1228 const esp_efuse_desc_t* ESP_EFUSE_DIS_PAD_JTAG[] = { 1229 &DIS_PAD_JTAG[0], // [] Set this bit to disable JTAG in the hard way. JTAG is disabled permanently 1230 NULL 1231 }; 1232 1233 const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_MANUAL_ENCRYPT[] = { 1234 &DIS_DOWNLOAD_MANUAL_ENCRYPT[0], // [] Set this bit to disable flash encryption when in download boot modes 1235 NULL 1236 }; 1237 1238 const esp_efuse_desc_t* ESP_EFUSE_USB_EXCHG_PINS[] = { 1239 &USB_EXCHG_PINS[0], // [] Set this bit to exchange USB D+ and D- pins 1240 NULL 1241 }; 1242 1243 const esp_efuse_desc_t* ESP_EFUSE_VDD_SPI_AS_GPIO[] = { 1244 &VDD_SPI_AS_GPIO[0], // [] Set this bit to vdd spi pin function as gpio 1245 NULL 1246 }; 1247 1248 const esp_efuse_desc_t* ESP_EFUSE_WDT_DELAY_SEL[] = { 1249 &WDT_DELAY_SEL[0], // [] RTC watchdog timeout threshold; in unit of slow clock cycle {0: "40000"; 1: "80000"; 2: "160000"; 3: "320000"} 1250 NULL 1251 }; 1252 1253 const esp_efuse_desc_t* ESP_EFUSE_SPI_BOOT_CRYPT_CNT[] = { 1254 &SPI_BOOT_CRYPT_CNT[0], // [] Enables flash encryption when 1 or 3 bits are set and disables otherwise {0: "Disable"; 1: "Enable"; 3: "Disable"; 7: "Enable"} 1255 NULL 1256 }; 1257 1258 const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_KEY_REVOKE0[] = { 1259 &SECURE_BOOT_KEY_REVOKE0[0], // [] Revoke 1st secure boot key 1260 NULL 1261 }; 1262 1263 const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_KEY_REVOKE1[] = { 1264 &SECURE_BOOT_KEY_REVOKE1[0], // [] Revoke 2nd secure boot key 1265 NULL 1266 }; 1267 1268 const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_KEY_REVOKE2[] = { 1269 &SECURE_BOOT_KEY_REVOKE2[0], // [] Revoke 3rd secure boot key 1270 NULL 1271 }; 1272 1273 const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_0[] = { 1274 &KEY_PURPOSE_0[0], // [KEY0_PURPOSE] Purpose of Key0 1275 NULL 1276 }; 1277 1278 const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_1[] = { 1279 &KEY_PURPOSE_1[0], // [KEY1_PURPOSE] Purpose of Key1 1280 NULL 1281 }; 1282 1283 const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_2[] = { 1284 &KEY_PURPOSE_2[0], // [KEY2_PURPOSE] Purpose of Key2 1285 NULL 1286 }; 1287 1288 const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_3[] = { 1289 &KEY_PURPOSE_3[0], // [KEY3_PURPOSE] Purpose of Key3 1290 NULL 1291 }; 1292 1293 const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_4[] = { 1294 &KEY_PURPOSE_4[0], // [KEY4_PURPOSE] Purpose of Key4 1295 NULL 1296 }; 1297 1298 const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_5[] = { 1299 &KEY_PURPOSE_5[0], // [KEY5_PURPOSE] Purpose of Key5 1300 NULL 1301 }; 1302 1303 const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_EN[] = { 1304 &SECURE_BOOT_EN[0], // [] Set this bit to enable secure boot 1305 NULL 1306 }; 1307 1308 const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_AGGRESSIVE_REVOKE[] = { 1309 &SECURE_BOOT_AGGRESSIVE_REVOKE[0], // [] Set this bit to enable revoking aggressive secure boot 1310 NULL 1311 }; 1312 1313 const esp_efuse_desc_t* ESP_EFUSE_FLASH_TPUW[] = { 1314 &FLASH_TPUW[0], // [] Configures flash waiting time after power-up; in unit of ms. If the value is less than 15; the waiting time is the configurable value; Otherwise; the waiting time is twice the configurable value 1315 NULL 1316 }; 1317 1318 const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_MODE[] = { 1319 &DIS_DOWNLOAD_MODE[0], // [] Set this bit to disable download mode (boot_mode[3:0] = 0; 1; 2; 3; 6; 7) 1320 NULL 1321 }; 1322 1323 const esp_efuse_desc_t* ESP_EFUSE_DIS_DIRECT_BOOT[] = { 1324 &DIS_DIRECT_BOOT[0], // [DIS_LEGACY_SPI_BOOT] Disable direct boot mode 1325 NULL 1326 }; 1327 1328 const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_SERIAL_JTAG_ROM_PRINT[] = { 1329 &DIS_USB_SERIAL_JTAG_ROM_PRINT[0], // [UART_PRINT_CHANNEL] USB printing {0: "Enable"; 1: "Disable"} 1330 NULL 1331 }; 1332 1333 const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE[] = { 1334 &DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE[0], // [DIS_USB_DOWNLOAD_MODE] Disable UART download mode through USB-Serial-JTAG 1335 NULL 1336 }; 1337 1338 const esp_efuse_desc_t* ESP_EFUSE_ENABLE_SECURITY_DOWNLOAD[] = { 1339 &ENABLE_SECURITY_DOWNLOAD[0], // [] Set this bit to enable secure UART download mode 1340 NULL 1341 }; 1342 1343 const esp_efuse_desc_t* ESP_EFUSE_UART_PRINT_CONTROL[] = { 1344 &UART_PRINT_CONTROL[0], // [] Set the default UARTboot message output mode {0: "Enable"; 1: "Enable when GPIO8 is low at reset"; 2: "Enable when GPIO8 is high at reset"; 3: "Disable"} 1345 NULL 1346 }; 1347 1348 const esp_efuse_desc_t* ESP_EFUSE_FORCE_SEND_RESUME[] = { 1349 &FORCE_SEND_RESUME[0], // [] Set this bit to force ROM code to send a resume command during SPI boot 1350 NULL 1351 }; 1352 1353 const esp_efuse_desc_t* ESP_EFUSE_SECURE_VERSION[] = { 1354 &SECURE_VERSION[0], // [] Secure version (used by ESP-IDF anti-rollback feature) 1355 NULL 1356 }; 1357 1358 const esp_efuse_desc_t* ESP_EFUSE_ERR_RST_ENABLE[] = { 1359 &ERR_RST_ENABLE[0], // [] Use BLOCK0 to check error record registers {0: "without check"; 1: "with check"} 1360 NULL 1361 }; 1362 1363 const esp_efuse_desc_t* ESP_EFUSE_DISABLE_WAFER_VERSION_MAJOR[] = { 1364 &DISABLE_WAFER_VERSION_MAJOR[0], // [] Disables check of wafer version major 1365 NULL 1366 }; 1367 1368 const esp_efuse_desc_t* ESP_EFUSE_DISABLE_BLK_VERSION_MAJOR[] = { 1369 &DISABLE_BLK_VERSION_MAJOR[0], // [] Disables check of blk version major 1370 NULL 1371 }; 1372 1373 const esp_efuse_desc_t* ESP_EFUSE_MAC[] = { 1374 &MAC[0], // [MAC_FACTORY] MAC address 1375 &MAC[1], // [MAC_FACTORY] MAC address 1376 &MAC[2], // [MAC_FACTORY] MAC address 1377 &MAC[3], // [MAC_FACTORY] MAC address 1378 &MAC[4], // [MAC_FACTORY] MAC address 1379 &MAC[5], // [MAC_FACTORY] MAC address 1380 NULL 1381 }; 1382 1383 const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_CLK[] = { 1384 &SPI_PAD_CONFIG_CLK[0], // [] SPI PAD CLK 1385 NULL 1386 }; 1387 1388 const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_Q[] = { 1389 &SPI_PAD_CONFIG_Q[0], // [] SPI PAD Q(D1) 1390 NULL 1391 }; 1392 1393 const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D[] = { 1394 &SPI_PAD_CONFIG_D[0], // [] SPI PAD D(D0) 1395 NULL 1396 }; 1397 1398 const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_CS[] = { 1399 &SPI_PAD_CONFIG_CS[0], // [] SPI PAD CS 1400 NULL 1401 }; 1402 1403 const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_HD[] = { 1404 &SPI_PAD_CONFIG_HD[0], // [] SPI PAD HD(D3) 1405 NULL 1406 }; 1407 1408 const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_WP[] = { 1409 &SPI_PAD_CONFIG_WP[0], // [] SPI PAD WP(D2) 1410 NULL 1411 }; 1412 1413 const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_DQS[] = { 1414 &SPI_PAD_CONFIG_DQS[0], // [] SPI PAD DQS 1415 NULL 1416 }; 1417 1418 const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D4[] = { 1419 &SPI_PAD_CONFIG_D4[0], // [] SPI PAD D4 1420 NULL 1421 }; 1422 1423 const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D5[] = { 1424 &SPI_PAD_CONFIG_D5[0], // [] SPI PAD D5 1425 NULL 1426 }; 1427 1428 const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D6[] = { 1429 &SPI_PAD_CONFIG_D6[0], // [] SPI PAD D6 1430 NULL 1431 }; 1432 1433 const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D7[] = { 1434 &SPI_PAD_CONFIG_D7[0], // [] SPI PAD D7 1435 NULL 1436 }; 1437 1438 const esp_efuse_desc_t* ESP_EFUSE_WAFER_VERSION_MINOR_LO[] = { 1439 &WAFER_VERSION_MINOR_LO[0], // [] WAFER_VERSION_MINOR least significant bits 1440 NULL 1441 }; 1442 1443 const esp_efuse_desc_t* ESP_EFUSE_PKG_VERSION[] = { 1444 &PKG_VERSION[0], // [] Package version 1445 NULL 1446 }; 1447 1448 const esp_efuse_desc_t* ESP_EFUSE_BLK_VERSION_MINOR[] = { 1449 &BLK_VERSION_MINOR[0], // [] BLK_VERSION_MINOR 1450 NULL 1451 }; 1452 1453 const esp_efuse_desc_t* ESP_EFUSE_K_RTC_LDO[] = { 1454 &K_RTC_LDO[0], // [] BLOCK1 K_RTC_LDO 1455 NULL 1456 }; 1457 1458 const esp_efuse_desc_t* ESP_EFUSE_K_DIG_LDO[] = { 1459 &K_DIG_LDO[0], // [] BLOCK1 K_DIG_LDO 1460 NULL 1461 }; 1462 1463 const esp_efuse_desc_t* ESP_EFUSE_V_RTC_DBIAS20[] = { 1464 &V_RTC_DBIAS20[0], // [] BLOCK1 voltage of rtc dbias20 1465 NULL 1466 }; 1467 1468 const esp_efuse_desc_t* ESP_EFUSE_V_DIG_DBIAS20[] = { 1469 &V_DIG_DBIAS20[0], // [] BLOCK1 voltage of digital dbias20 1470 NULL 1471 }; 1472 1473 const esp_efuse_desc_t* ESP_EFUSE_DIG_DBIAS_HVT[] = { 1474 &DIG_DBIAS_HVT[0], // [] BLOCK1 digital dbias when hvt 1475 NULL 1476 }; 1477 1478 const esp_efuse_desc_t* ESP_EFUSE_THRES_HVT[] = { 1479 &THRES_HVT[0], // [] BLOCK1 pvt threshold when hvt 1480 NULL 1481 }; 1482 1483 const esp_efuse_desc_t* ESP_EFUSE_WAFER_VERSION_MINOR_HI[] = { 1484 &WAFER_VERSION_MINOR_HI[0], // [] WAFER_VERSION_MINOR most significant bit 1485 NULL 1486 }; 1487 1488 const esp_efuse_desc_t* ESP_EFUSE_WAFER_VERSION_MAJOR[] = { 1489 &WAFER_VERSION_MAJOR[0], // [] WAFER_VERSION_MAJOR 1490 NULL 1491 }; 1492 1493 const esp_efuse_desc_t* ESP_EFUSE_OPTIONAL_UNIQUE_ID[] = { 1494 &OPTIONAL_UNIQUE_ID[0], // [] Optional unique 128-bit ID 1495 NULL 1496 }; 1497 1498 const esp_efuse_desc_t* ESP_EFUSE_BLK_VERSION_MAJOR[] = { 1499 &BLK_VERSION_MAJOR[0], // [] BLK_VERSION_MAJOR of BLOCK2 {0: "No calibration"; 1: "With calibration"} 1500 NULL 1501 }; 1502 1503 const esp_efuse_desc_t* ESP_EFUSE_TEMP_CALIB[] = { 1504 &TEMP_CALIB[0], // [] Temperature calibration data 1505 NULL 1506 }; 1507 1508 const esp_efuse_desc_t* ESP_EFUSE_OCODE[] = { 1509 &OCODE[0], // [] ADC OCode 1510 NULL 1511 }; 1512 1513 const esp_efuse_desc_t* ESP_EFUSE_ADC1_INIT_CODE_ATTEN0[] = { 1514 &ADC1_INIT_CODE_ATTEN0[0], // [] ADC1 init code at atten0 1515 NULL 1516 }; 1517 1518 const esp_efuse_desc_t* ESP_EFUSE_ADC1_INIT_CODE_ATTEN1[] = { 1519 &ADC1_INIT_CODE_ATTEN1[0], // [] ADC1 init code at atten1 1520 NULL 1521 }; 1522 1523 const esp_efuse_desc_t* ESP_EFUSE_ADC1_INIT_CODE_ATTEN2[] = { 1524 &ADC1_INIT_CODE_ATTEN2[0], // [] ADC1 init code at atten2 1525 NULL 1526 }; 1527 1528 const esp_efuse_desc_t* ESP_EFUSE_ADC1_INIT_CODE_ATTEN3[] = { 1529 &ADC1_INIT_CODE_ATTEN3[0], // [] ADC1 init code at atten3 1530 NULL 1531 }; 1532 1533 const esp_efuse_desc_t* ESP_EFUSE_ADC1_CAL_VOL_ATTEN0[] = { 1534 &ADC1_CAL_VOL_ATTEN0[0], // [] ADC1 calibration voltage at atten0 1535 NULL 1536 }; 1537 1538 const esp_efuse_desc_t* ESP_EFUSE_ADC1_CAL_VOL_ATTEN1[] = { 1539 &ADC1_CAL_VOL_ATTEN1[0], // [] ADC1 calibration voltage at atten1 1540 NULL 1541 }; 1542 1543 const esp_efuse_desc_t* ESP_EFUSE_ADC1_CAL_VOL_ATTEN2[] = { 1544 &ADC1_CAL_VOL_ATTEN2[0], // [] ADC1 calibration voltage at atten2 1545 NULL 1546 }; 1547 1548 const esp_efuse_desc_t* ESP_EFUSE_ADC1_CAL_VOL_ATTEN3[] = { 1549 &ADC1_CAL_VOL_ATTEN3[0], // [] ADC1 calibration voltage at atten3 1550 NULL 1551 }; 1552 1553 const esp_efuse_desc_t* ESP_EFUSE_USER_DATA[] = { 1554 &USER_DATA[0], // [BLOCK_USR_DATA] User data 1555 NULL 1556 }; 1557 1558 const esp_efuse_desc_t* ESP_EFUSE_USER_DATA_MAC_CUSTOM[] = { 1559 &USER_DATA_MAC_CUSTOM[0], // [MAC_CUSTOM CUSTOM_MAC] Custom MAC address 1560 NULL 1561 }; 1562 1563 const esp_efuse_desc_t* ESP_EFUSE_KEY0[] = { 1564 &KEY0[0], // [BLOCK_KEY0] Key0 or user data 1565 NULL 1566 }; 1567 1568 const esp_efuse_desc_t* ESP_EFUSE_KEY1[] = { 1569 &KEY1[0], // [BLOCK_KEY1] Key1 or user data 1570 NULL 1571 }; 1572 1573 const esp_efuse_desc_t* ESP_EFUSE_KEY2[] = { 1574 &KEY2[0], // [BLOCK_KEY2] Key2 or user data 1575 NULL 1576 }; 1577 1578 const esp_efuse_desc_t* ESP_EFUSE_KEY3[] = { 1579 &KEY3[0], // [BLOCK_KEY3] Key3 or user data 1580 NULL 1581 }; 1582 1583 const esp_efuse_desc_t* ESP_EFUSE_KEY4[] = { 1584 &KEY4[0], // [BLOCK_KEY4] Key4 or user data 1585 NULL 1586 }; 1587 1588 const esp_efuse_desc_t* ESP_EFUSE_KEY5[] = { 1589 &KEY5[0], // [BLOCK_KEY5] Key5 or user data 1590 NULL 1591 }; 1592 1593 const esp_efuse_desc_t* ESP_EFUSE_SYS_DATA_PART2[] = { 1594 &SYS_DATA_PART2[0], // [BLOCK_SYS_DATA2] System data part 2 (reserved) 1595 NULL 1596 }; 1597