esp_efuse_table.c 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191
  1. /*
  2. * SPDX-FileCopyrightText: 2017-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #include "sdkconfig.h"
  7. #include "esp_efuse.h"
  8. #include <assert.h>
  9. #include "esp_efuse_table.h"
  10. // md5_digest_table 62fa98bed350ebc4951c5f8191c487de
  11. // This file was generated from the file esp_efuse_table.csv. DO NOT CHANGE THIS FILE MANUALLY.
  12. // If you want to change some fields, you need to change esp_efuse_table.csv file
  13. // then run `efuse_common_table` or `efuse_custom_table` command it will generate this file.
  14. // To show efuse_table run the command 'show_efuse_table'.
  15. static const esp_efuse_desc_t WR_DIS[] = {
  16. {EFUSE_BLK0, 0, 32}, // Write protection,
  17. };
  18. static const esp_efuse_desc_t WR_DIS_RD_DIS[] = {
  19. {EFUSE_BLK0, 0, 1}, // Write protection for RD_DIS_KEY0 RD_DIS_KEY1 RD_DIS_KEY2 RD_DIS_KEY3 RD_DIS_KEY4 RD_DIS_KEY5 RD_DIS_SYS_DATA_PART2,
  20. };
  21. static const esp_efuse_desc_t WR_DIS_GROUP_1[] = {
  22. {EFUSE_BLK0, 2, 1}, // Write protection for DIS_ICACHE DIS_DCACHE DIS_DOWNLOAD_ICACHE DIS_DOWNLOAD_DCACHE DIS_FORCE_DOWNLOAD DIS_USB DIS_CAN SOFT_DIS_JTAG HARD_DIS_JTAG DIS_DOWNLOAD_MANUAL_ENCRYPT,
  23. };
  24. static const esp_efuse_desc_t WR_DIS_GROUP_2[] = {
  25. {EFUSE_BLK0, 3, 1}, // Write protection for VDD_SPI_XPD VDD_SPI_TIEH VDD_SPI_FORCE VDD_SPI_INIT VDD_SPI_DCAP WDT_DELAY_SEL,
  26. };
  27. static const esp_efuse_desc_t WR_DIS_SPI_BOOT_CRYPT_CNT[] = {
  28. {EFUSE_BLK0, 4, 1}, // Write protection for SPI_BOOT_CRYPT_CNT,
  29. };
  30. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_KEY_REVOKE0[] = {
  31. {EFUSE_BLK0, 5, 1}, // Write protection for SECURE_BOOT_KEY_REVOKE0,
  32. };
  33. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_KEY_REVOKE1[] = {
  34. {EFUSE_BLK0, 6, 1}, // Write protection for SECURE_BOOT_KEY_REVOKE1,
  35. };
  36. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_KEY_REVOKE2[] = {
  37. {EFUSE_BLK0, 7, 1}, // Write protection for SECURE_BOOT_KEY_REVOKE2,
  38. };
  39. static const esp_efuse_desc_t WR_DIS_KEY0_PURPOSE[] = {
  40. {EFUSE_BLK0, 8, 1}, // Write protection for key_purpose. KEY0,
  41. };
  42. static const esp_efuse_desc_t WR_DIS_KEY1_PURPOSE[] = {
  43. {EFUSE_BLK0, 9, 1}, // Write protection for key_purpose. KEY1,
  44. };
  45. static const esp_efuse_desc_t WR_DIS_KEY2_PURPOSE[] = {
  46. {EFUSE_BLK0, 10, 1}, // Write protection for key_purpose. KEY2,
  47. };
  48. static const esp_efuse_desc_t WR_DIS_KEY3_PURPOSE[] = {
  49. {EFUSE_BLK0, 11, 1}, // Write protection for key_purpose. KEY3,
  50. };
  51. static const esp_efuse_desc_t WR_DIS_KEY4_PURPOSE[] = {
  52. {EFUSE_BLK0, 12, 1}, // Write protection for key_purpose. KEY4,
  53. };
  54. static const esp_efuse_desc_t WR_DIS_KEY5_PURPOSE[] = {
  55. {EFUSE_BLK0, 13, 1}, // Write protection for key_purpose. KEY5,
  56. };
  57. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_EN[] = {
  58. {EFUSE_BLK0, 15, 1}, // Write protection for SECURE_BOOT_EN,
  59. };
  60. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
  61. {EFUSE_BLK0, 16, 1}, // Write protection for SECURE_BOOT_AGGRESSIVE_REVOKE,
  62. };
  63. static const esp_efuse_desc_t WR_DIS_GROUP_3[] = {
  64. {EFUSE_BLK0, 18, 1}, // Write protection for FLASH_TPUW DIS_DOWNLOAD_MODE DIS_DIRECT_BOOT DIS_USB_SERIAL_JTAG_ROM_PRINT DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE ENABLE_SECURITY_DOWNLOAD UART_PRINT_CONTROL PIN_POWER_SELECTION FLASH_TYPE FORCE_SEND_RESUME SECURE_VERSION,
  65. };
  66. static const esp_efuse_desc_t WR_DIS_BLK1[] = {
  67. {EFUSE_BLK0, 20, 1}, // Write protection for EFUSE_BLK1. MAC_SPI_8M_SYS,
  68. };
  69. static const esp_efuse_desc_t WR_DIS_SYS_DATA_PART1[] = {
  70. {EFUSE_BLK0, 21, 1}, // Write protection for EFUSE_BLK2. SYS_DATA_PART1,
  71. };
  72. static const esp_efuse_desc_t WR_DIS_USER_DATA[] = {
  73. {EFUSE_BLK0, 22, 1}, // Write protection for EFUSE_BLK3. USER_DATA,
  74. };
  75. static const esp_efuse_desc_t WR_DIS_KEY0[] = {
  76. {EFUSE_BLK0, 23, 1}, // Write protection for EFUSE_BLK4. KEY0,
  77. };
  78. static const esp_efuse_desc_t WR_DIS_KEY1[] = {
  79. {EFUSE_BLK0, 24, 1}, // Write protection for EFUSE_BLK5. KEY1,
  80. };
  81. static const esp_efuse_desc_t WR_DIS_KEY2[] = {
  82. {EFUSE_BLK0, 25, 1}, // Write protection for EFUSE_BLK6. KEY2,
  83. };
  84. static const esp_efuse_desc_t WR_DIS_KEY3[] = {
  85. {EFUSE_BLK0, 26, 1}, // Write protection for EFUSE_BLK7. KEY3,
  86. };
  87. static const esp_efuse_desc_t WR_DIS_KEY4[] = {
  88. {EFUSE_BLK0, 27, 1}, // Write protection for EFUSE_BLK8. KEY4,
  89. };
  90. static const esp_efuse_desc_t WR_DIS_KEY5[] = {
  91. {EFUSE_BLK0, 28, 1}, // Write protection for EFUSE_BLK9. KEY5,
  92. };
  93. static const esp_efuse_desc_t WR_DIS_SYS_DATA_PART2[] = {
  94. {EFUSE_BLK0, 29, 1}, // Write protection for EFUSE_BLK10. SYS_DATA_PART2,
  95. };
  96. static const esp_efuse_desc_t WR_DIS_USB_EXCHG_PINS[] = {
  97. {EFUSE_BLK0, 30, 1}, // Write protection for USB_EXCHG_PINS,
  98. };
  99. static const esp_efuse_desc_t RD_DIS[] = {
  100. {EFUSE_BLK0, 32, 7}, // Read protection,
  101. };
  102. static const esp_efuse_desc_t RD_DIS_KEY0[] = {
  103. {EFUSE_BLK0, 32, 1}, // Read protection for EFUSE_BLK4. KEY0,
  104. };
  105. static const esp_efuse_desc_t RD_DIS_KEY1[] = {
  106. {EFUSE_BLK0, 33, 1}, // Read protection for EFUSE_BLK5. KEY1,
  107. };
  108. static const esp_efuse_desc_t RD_DIS_KEY2[] = {
  109. {EFUSE_BLK0, 34, 1}, // Read protection for EFUSE_BLK6. KEY2,
  110. };
  111. static const esp_efuse_desc_t RD_DIS_KEY3[] = {
  112. {EFUSE_BLK0, 35, 1}, // Read protection for EFUSE_BLK7. KEY3,
  113. };
  114. static const esp_efuse_desc_t RD_DIS_KEY4[] = {
  115. {EFUSE_BLK0, 36, 1}, // Read protection for EFUSE_BLK8. KEY4,
  116. };
  117. static const esp_efuse_desc_t RD_DIS_KEY5[] = {
  118. {EFUSE_BLK0, 37, 1}, // Read protection for EFUSE_BLK9. KEY5,
  119. };
  120. static const esp_efuse_desc_t RD_DIS_SYS_DATA_PART2[] = {
  121. {EFUSE_BLK0, 38, 1}, // Read protection for EFUSE_BLK10. SYS_DATA_PART2,
  122. };
  123. static const esp_efuse_desc_t DIS_ICACHE[] = {
  124. {EFUSE_BLK0, 40, 1}, // Disable Icache,
  125. };
  126. static const esp_efuse_desc_t DIS_DCACHE[] = {
  127. {EFUSE_BLK0, 41, 1}, // Disable Dcace,
  128. };
  129. static const esp_efuse_desc_t DIS_DOWNLOAD_ICACHE[] = {
  130. {EFUSE_BLK0, 42, 1}, // Disable Icache in download mode include boot_mode 0 1 2 3 6 7,
  131. };
  132. static const esp_efuse_desc_t DIS_DOWNLOAD_DCACHE[] = {
  133. {EFUSE_BLK0, 43, 1}, // Disable Dcache in download mode include boot_mode 0 1 2 3 6 7,
  134. };
  135. static const esp_efuse_desc_t DIS_FORCE_DOWNLOAD[] = {
  136. {EFUSE_BLK0, 44, 1}, // Disable force chip go to download mode function,
  137. };
  138. static const esp_efuse_desc_t DIS_USB[] = {
  139. {EFUSE_BLK0, 45, 1}, // Disable USB function,
  140. };
  141. static const esp_efuse_desc_t DIS_CAN[] = {
  142. {EFUSE_BLK0, 46, 1}, // Disable CAN function,
  143. };
  144. static const esp_efuse_desc_t DIS_APP_CPU[] = {
  145. {EFUSE_BLK0, 47, 1}, // Disables APP CPU,
  146. };
  147. static const esp_efuse_desc_t SOFT_DIS_JTAG[] = {
  148. {EFUSE_BLK0, 48, 3}, // Software disables JTAG by programming odd number of 1 bit(s). JTAG can be re-enabled via HMAC peripheral,
  149. };
  150. static const esp_efuse_desc_t HARD_DIS_JTAG[] = {
  151. {EFUSE_BLK0, 51, 1}, // Hardware disable jtag permanently disable jtag function,
  152. };
  153. static const esp_efuse_desc_t DIS_DOWNLOAD_MANUAL_ENCRYPT[] = {
  154. {EFUSE_BLK0, 52, 1}, // Disable flash encrypt function,
  155. };
  156. static const esp_efuse_desc_t USB_EXCHG_PINS[] = {
  157. {EFUSE_BLK0, 57, 1}, // Exchange D+ D- pins,
  158. };
  159. static const esp_efuse_desc_t USB_EXT_PHY_ENABLE[] = {
  160. {EFUSE_BLK0, 58, 1}, // Enable external PHY,
  161. };
  162. static const esp_efuse_desc_t BTLC_GPIO_ENABLE[] = {
  163. {EFUSE_BLK0, 59, 2}, // Enables BTLC GPIO,
  164. };
  165. static const esp_efuse_desc_t VDD_SPI_XPD[] = {
  166. {EFUSE_BLK0, 68, 1}, // VDD_SPI regulator power up,
  167. };
  168. static const esp_efuse_desc_t VDD_SPI_TIEH[] = {
  169. {EFUSE_BLK0, 69, 1}, // VDD_SPI regulator tie high to vdda,
  170. };
  171. static const esp_efuse_desc_t VDD_SPI_FORCE[] = {
  172. {EFUSE_BLK0, 70, 1}, // Force using eFuse configuration of VDD_SPI,
  173. };
  174. static const esp_efuse_desc_t WDT_DELAY_SEL[] = {
  175. {EFUSE_BLK0, 80, 2}, // Select RTC WDT time out threshold,
  176. };
  177. static const esp_efuse_desc_t SPI_BOOT_CRYPT_CNT[] = {
  178. {EFUSE_BLK0, 82, 3}, // SPI boot encrypt decrypt enable. odd number 1 enable. even number 1 disable,
  179. };
  180. static const esp_efuse_desc_t SECURE_BOOT_KEY_REVOKE0[] = {
  181. {EFUSE_BLK0, 85, 1}, // Enable revoke first secure boot key,
  182. };
  183. static const esp_efuse_desc_t SECURE_BOOT_KEY_REVOKE1[] = {
  184. {EFUSE_BLK0, 86, 1}, // Enable revoke second secure boot key,
  185. };
  186. static const esp_efuse_desc_t SECURE_BOOT_KEY_REVOKE2[] = {
  187. {EFUSE_BLK0, 87, 1}, // Enable revoke third secure boot key,
  188. };
  189. static const esp_efuse_desc_t KEY_PURPOSE_0[] = {
  190. {EFUSE_BLK0, 88, 4}, // Key0 purpose,
  191. };
  192. static const esp_efuse_desc_t KEY_PURPOSE_1[] = {
  193. {EFUSE_BLK0, 92, 4}, // Key1 purpose,
  194. };
  195. static const esp_efuse_desc_t KEY_PURPOSE_2[] = {
  196. {EFUSE_BLK0, 96, 4}, // Key2 purpose,
  197. };
  198. static const esp_efuse_desc_t KEY_PURPOSE_3[] = {
  199. {EFUSE_BLK0, 100, 4}, // Key3 purpose,
  200. };
  201. static const esp_efuse_desc_t KEY_PURPOSE_4[] = {
  202. {EFUSE_BLK0, 104, 4}, // Key4 purpose,
  203. };
  204. static const esp_efuse_desc_t KEY_PURPOSE_5[] = {
  205. {EFUSE_BLK0, 108, 4}, // Key5 purpose,
  206. };
  207. static const esp_efuse_desc_t SECURE_BOOT_EN[] = {
  208. {EFUSE_BLK0, 116, 1}, // Secure boot enable,
  209. };
  210. static const esp_efuse_desc_t SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
  211. {EFUSE_BLK0, 117, 1}, // Enable aggressive secure boot revoke,
  212. };
  213. static const esp_efuse_desc_t DIS_USB_JTAG[] = {
  214. {EFUSE_BLK0, 118, 1}, // Set to disable usb_serial_jtag-to-jtag function,
  215. };
  216. static const esp_efuse_desc_t DIS_USB_SERIAL_JTAG[] = {
  217. {EFUSE_BLK0, 119, 1}, // Set to disable usb_serial_jtag module,
  218. };
  219. static const esp_efuse_desc_t STRAP_JTAG_SEL[] = {
  220. {EFUSE_BLK0, 120, 1}, // Enable selection between usb_to_jtag or pad_to_jtag through gpio10,
  221. };
  222. static const esp_efuse_desc_t USB_PHY_SEL[] = {
  223. {EFUSE_BLK0, 121, 1}, // Select internal/external PHY for USB OTG and usb_serial_jtag,
  224. };
  225. static const esp_efuse_desc_t FLASH_TPUW[] = {
  226. {EFUSE_BLK0, 124, 4}, // Flash wait time after power up. (unit is ms). When value is 15. the time is 30 ms,
  227. };
  228. static const esp_efuse_desc_t DIS_DOWNLOAD_MODE[] = {
  229. {EFUSE_BLK0, 128, 1}, // Disble download mode include boot_mode[3:0] is 0 1 2 3 6 7,
  230. };
  231. static const esp_efuse_desc_t DIS_DIRECT_BOOT[] = {
  232. {EFUSE_BLK0, 129, 1}, // Disable direct boot mode,
  233. };
  234. static const esp_efuse_desc_t DIS_USB_SERIAL_JTAG_ROM_PRINT[] = {
  235. {EFUSE_BLK0, 130, 1}, // Disable usb serial jtag print during rom boot,
  236. };
  237. static const esp_efuse_desc_t FLASH_ECC_MODE[] = {
  238. {EFUSE_BLK0, 131, 1}, // Configures the ECC mode for SPI flash. 0:16-byte to 18-byte mode. 1:16-byte to 17-byte mode,
  239. };
  240. static const esp_efuse_desc_t DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE[] = {
  241. {EFUSE_BLK0, 132, 1}, // Set this bit to disable download through USB-Serial-JTAG,
  242. };
  243. static const esp_efuse_desc_t ENABLE_SECURITY_DOWNLOAD[] = {
  244. {EFUSE_BLK0, 133, 1}, // Enable security download mode,
  245. };
  246. static const esp_efuse_desc_t UART_PRINT_CONTROL[] = {
  247. {EFUSE_BLK0, 134, 2}, // b00:force print. b01:control by GPIO46 - low level print. b10:control by GPIO46 - high level print. b11:force disable print.,
  248. };
  249. static const esp_efuse_desc_t PIN_POWER_SELECTION[] = {
  250. {EFUSE_BLK0, 136, 1}, // GPIO33-GPIO37 power supply selection in ROM code. 0:VDD3P3_CPU. 1:VDD_SPI.,
  251. };
  252. static const esp_efuse_desc_t FLASH_TYPE[] = {
  253. {EFUSE_BLK0, 137, 1}, // Connected Flash interface type. 0: 4 data line. 1: 8 data line,
  254. };
  255. static const esp_efuse_desc_t FLASH_PAGE_SIZE[] = {
  256. {EFUSE_BLK0, 138, 2}, // Sets the size of flash page,
  257. };
  258. static const esp_efuse_desc_t FLASH_ECC_EN[] = {
  259. {EFUSE_BLK0, 140, 1}, // Enables ECC in Flash boot mode,
  260. };
  261. static const esp_efuse_desc_t FORCE_SEND_RESUME[] = {
  262. {EFUSE_BLK0, 141, 1}, // Force ROM code to send a resume command during SPI boot,
  263. };
  264. static const esp_efuse_desc_t SECURE_VERSION[] = {
  265. {EFUSE_BLK0, 142, 16}, // Secure version for anti-rollback,
  266. };
  267. static const esp_efuse_desc_t DIS_USB_OTG_DOWNLOAD_MODE[] = {
  268. {EFUSE_BLK0, 159, 1}, // Set this bit to disable download through USB-OTG,
  269. };
  270. static const esp_efuse_desc_t MAC_FACTORY[] = {
  271. {EFUSE_BLK1, 40, 8}, // Factory MAC addr [0],
  272. {EFUSE_BLK1, 32, 8}, // Factory MAC addr [1],
  273. {EFUSE_BLK1, 24, 8}, // Factory MAC addr [2],
  274. {EFUSE_BLK1, 16, 8}, // Factory MAC addr [3],
  275. {EFUSE_BLK1, 8, 8}, // Factory MAC addr [4],
  276. {EFUSE_BLK1, 0, 8}, // Factory MAC addr [5],
  277. };
  278. static const esp_efuse_desc_t SPI_PAD_CONFIG_CLK[] = {
  279. {EFUSE_BLK1, 48, 6}, // SPI_PAD_configure CLK,
  280. };
  281. static const esp_efuse_desc_t SPI_PAD_CONFIG_Q_D1[] = {
  282. {EFUSE_BLK1, 54, 6}, // SPI_PAD_configure Q(D1),
  283. };
  284. static const esp_efuse_desc_t SPI_PAD_CONFIG_D_D0[] = {
  285. {EFUSE_BLK1, 60, 6}, // SPI_PAD_configure D(D0),
  286. };
  287. static const esp_efuse_desc_t SPI_PAD_CONFIG_CS[] = {
  288. {EFUSE_BLK1, 66, 6}, // SPI_PAD_configure CS,
  289. };
  290. static const esp_efuse_desc_t SPI_PAD_CONFIG_HD_D3[] = {
  291. {EFUSE_BLK1, 72, 6}, // SPI_PAD_configure HD(D3),
  292. };
  293. static const esp_efuse_desc_t SPI_PAD_CONFIG_WP_D2[] = {
  294. {EFUSE_BLK1, 78, 6}, // SPI_PAD_configure WP(D2),
  295. };
  296. static const esp_efuse_desc_t SPI_PAD_CONFIG_DQS[] = {
  297. {EFUSE_BLK1, 84, 6}, // SPI_PAD_configure DQS,
  298. };
  299. static const esp_efuse_desc_t SPI_PAD_CONFIG_D4[] = {
  300. {EFUSE_BLK1, 90, 6}, // SPI_PAD_configure D4,
  301. };
  302. static const esp_efuse_desc_t SPI_PAD_CONFIG_D5[] = {
  303. {EFUSE_BLK1, 96, 6}, // SPI_PAD_configure D5,
  304. };
  305. static const esp_efuse_desc_t SPI_PAD_CONFIG_D6[] = {
  306. {EFUSE_BLK1, 102, 6}, // SPI_PAD_configure D6,
  307. };
  308. static const esp_efuse_desc_t SPI_PAD_CONFIG_D7[] = {
  309. {EFUSE_BLK1, 108, 6}, // SPI_PAD_configure D7,
  310. };
  311. static const esp_efuse_desc_t WAFER_VERSION[] = {
  312. {EFUSE_BLK1, 114, 3}, // WAFER version 0:A,
  313. };
  314. static const esp_efuse_desc_t PKG_VERSION[] = {
  315. {EFUSE_BLK1, 117, 3}, // Package version,
  316. };
  317. static const esp_efuse_desc_t BLK_VER_MINOR[] = {
  318. {EFUSE_BLK1, 120, 3}, // BLK_VERSION_MINOR,
  319. };
  320. static const esp_efuse_desc_t ADC2_CAL_VOL_ATTEN3[] = {
  321. {EFUSE_BLK1, 186, 6}, // ADC2 calibration voltage at atten3,
  322. };
  323. static const esp_efuse_desc_t OPTIONAL_UNIQUE_ID[] = {
  324. {EFUSE_BLK2, 0, 128}, // Optional unique 128-bit ID,
  325. };
  326. static const esp_efuse_desc_t BLK_VER_MAJOR[] = {
  327. {EFUSE_BLK2, 128, 2}, // BLK_VERSION_MAJOR,
  328. };
  329. static const esp_efuse_desc_t TEMP_CALIB[] = {
  330. {EFUSE_BLK2, 132, 9}, // Temperature calibration data,
  331. };
  332. static const esp_efuse_desc_t OCODE[] = {
  333. {EFUSE_BLK2, 141, 8}, // ADC OCode,
  334. };
  335. static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN0[] = {
  336. {EFUSE_BLK2, 149, 8}, // ADC1 init code at atten0,
  337. };
  338. static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN1[] = {
  339. {EFUSE_BLK2, 157, 6}, // ADC1 init code at atten1,
  340. };
  341. static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN2[] = {
  342. {EFUSE_BLK2, 163, 6}, // ADC1 init code at atten2,
  343. };
  344. static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN3[] = {
  345. {EFUSE_BLK2, 169, 6}, // ADC1 init code at atten3,
  346. };
  347. static const esp_efuse_desc_t ADC2_INIT_CODE_ATTEN0[] = {
  348. {EFUSE_BLK2, 175, 8}, // ADC2 init code at atten0,
  349. };
  350. static const esp_efuse_desc_t ADC2_INIT_CODE_ATTEN1[] = {
  351. {EFUSE_BLK2, 183, 6}, // ADC2 init code at atten1,
  352. };
  353. static const esp_efuse_desc_t ADC2_INIT_CODE_ATTEN2[] = {
  354. {EFUSE_BLK2, 189, 6}, // ADC2 init code at atten2,
  355. };
  356. static const esp_efuse_desc_t ADC2_INIT_CODE_ATTEN3[] = {
  357. {EFUSE_BLK2, 195, 6}, // ADC2 init code at atten3,
  358. };
  359. static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN0[] = {
  360. {EFUSE_BLK2, 201, 8}, // ADC1 calibration voltage at atten0,
  361. };
  362. static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN1[] = {
  363. {EFUSE_BLK2, 209, 8}, // ADC1 calibration voltage at atten1,
  364. };
  365. static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN2[] = {
  366. {EFUSE_BLK2, 217, 8}, // ADC1 calibration voltage at atten2,
  367. };
  368. static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN3[] = {
  369. {EFUSE_BLK2, 225, 8}, // ADC1 calibration voltage at atten3,
  370. };
  371. static const esp_efuse_desc_t ADC2_CAL_VOL_ATTEN0[] = {
  372. {EFUSE_BLK2, 233, 8}, // ADC2 calibration voltage at atten0,
  373. };
  374. static const esp_efuse_desc_t ADC2_CAL_VOL_ATTEN1[] = {
  375. {EFUSE_BLK2, 241, 7}, // ADC2 calibration voltage at atten1,
  376. };
  377. static const esp_efuse_desc_t ADC2_CAL_VOL_ATTEN2[] = {
  378. {EFUSE_BLK2, 248, 7}, // ADC2 calibration voltage at atten2,
  379. };
  380. static const esp_efuse_desc_t USER_DATA[] = {
  381. {EFUSE_BLK3, 0, 256}, // User data,
  382. };
  383. static const esp_efuse_desc_t USER_DATA_MAC_CUSTOM[] = {
  384. {EFUSE_BLK3, 200, 48}, // Custom MAC,
  385. };
  386. static const esp_efuse_desc_t KEY0[] = {
  387. {EFUSE_BLK4, 0, 256}, // Key0 or user data,
  388. };
  389. static const esp_efuse_desc_t KEY1[] = {
  390. {EFUSE_BLK5, 0, 256}, // Key1 or user data,
  391. };
  392. static const esp_efuse_desc_t KEY2[] = {
  393. {EFUSE_BLK6, 0, 256}, // Key2 or user data,
  394. };
  395. static const esp_efuse_desc_t KEY3[] = {
  396. {EFUSE_BLK7, 0, 256}, // Key3 or user data,
  397. };
  398. static const esp_efuse_desc_t KEY4[] = {
  399. {EFUSE_BLK8, 0, 256}, // Key4 or user data,
  400. };
  401. static const esp_efuse_desc_t KEY5[] = {
  402. {EFUSE_BLK9, 0, 256}, // Key5 or user data,
  403. };
  404. static const esp_efuse_desc_t SYS_DATA_PART2[] = {
  405. {EFUSE_BLK10, 0, 256}, // System configuration,
  406. };
  407. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS[] = {
  408. &WR_DIS[0], // Write protection
  409. NULL
  410. };
  411. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_RD_DIS[] = {
  412. &WR_DIS_RD_DIS[0], // Write protection for RD_DIS_KEY0 RD_DIS_KEY1 RD_DIS_KEY2 RD_DIS_KEY3 RD_DIS_KEY4 RD_DIS_KEY5 RD_DIS_SYS_DATA_PART2
  413. NULL
  414. };
  415. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_GROUP_1[] = {
  416. &WR_DIS_GROUP_1[0], // Write protection for DIS_ICACHE DIS_DCACHE DIS_DOWNLOAD_ICACHE DIS_DOWNLOAD_DCACHE DIS_FORCE_DOWNLOAD DIS_USB DIS_CAN SOFT_DIS_JTAG HARD_DIS_JTAG DIS_DOWNLOAD_MANUAL_ENCRYPT
  417. NULL
  418. };
  419. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_GROUP_2[] = {
  420. &WR_DIS_GROUP_2[0], // Write protection for VDD_SPI_XPD VDD_SPI_TIEH VDD_SPI_FORCE VDD_SPI_INIT VDD_SPI_DCAP WDT_DELAY_SEL
  421. NULL
  422. };
  423. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_BOOT_CRYPT_CNT[] = {
  424. &WR_DIS_SPI_BOOT_CRYPT_CNT[0], // Write protection for SPI_BOOT_CRYPT_CNT
  425. NULL
  426. };
  427. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_KEY_REVOKE0[] = {
  428. &WR_DIS_SECURE_BOOT_KEY_REVOKE0[0], // Write protection for SECURE_BOOT_KEY_REVOKE0
  429. NULL
  430. };
  431. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_KEY_REVOKE1[] = {
  432. &WR_DIS_SECURE_BOOT_KEY_REVOKE1[0], // Write protection for SECURE_BOOT_KEY_REVOKE1
  433. NULL
  434. };
  435. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_KEY_REVOKE2[] = {
  436. &WR_DIS_SECURE_BOOT_KEY_REVOKE2[0], // Write protection for SECURE_BOOT_KEY_REVOKE2
  437. NULL
  438. };
  439. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY0_PURPOSE[] = {
  440. &WR_DIS_KEY0_PURPOSE[0], // Write protection for key_purpose. KEY0
  441. NULL
  442. };
  443. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY1_PURPOSE[] = {
  444. &WR_DIS_KEY1_PURPOSE[0], // Write protection for key_purpose. KEY1
  445. NULL
  446. };
  447. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY2_PURPOSE[] = {
  448. &WR_DIS_KEY2_PURPOSE[0], // Write protection for key_purpose. KEY2
  449. NULL
  450. };
  451. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY3_PURPOSE[] = {
  452. &WR_DIS_KEY3_PURPOSE[0], // Write protection for key_purpose. KEY3
  453. NULL
  454. };
  455. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY4_PURPOSE[] = {
  456. &WR_DIS_KEY4_PURPOSE[0], // Write protection for key_purpose. KEY4
  457. NULL
  458. };
  459. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY5_PURPOSE[] = {
  460. &WR_DIS_KEY5_PURPOSE[0], // Write protection for key_purpose. KEY5
  461. NULL
  462. };
  463. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_EN[] = {
  464. &WR_DIS_SECURE_BOOT_EN[0], // Write protection for SECURE_BOOT_EN
  465. NULL
  466. };
  467. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
  468. &WR_DIS_SECURE_BOOT_AGGRESSIVE_REVOKE[0], // Write protection for SECURE_BOOT_AGGRESSIVE_REVOKE
  469. NULL
  470. };
  471. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_GROUP_3[] = {
  472. &WR_DIS_GROUP_3[0], // Write protection for FLASH_TPUW DIS_DOWNLOAD_MODE DIS_DIRECT_BOOT DIS_USB_SERIAL_JTAG_ROM_PRINT DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE ENABLE_SECURITY_DOWNLOAD UART_PRINT_CONTROL PIN_POWER_SELECTION FLASH_TYPE FORCE_SEND_RESUME SECURE_VERSION
  473. NULL
  474. };
  475. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLK1[] = {
  476. &WR_DIS_BLK1[0], // Write protection for EFUSE_BLK1. MAC_SPI_8M_SYS
  477. NULL
  478. };
  479. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SYS_DATA_PART1[] = {
  480. &WR_DIS_SYS_DATA_PART1[0], // Write protection for EFUSE_BLK2. SYS_DATA_PART1
  481. NULL
  482. };
  483. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_USER_DATA[] = {
  484. &WR_DIS_USER_DATA[0], // Write protection for EFUSE_BLK3. USER_DATA
  485. NULL
  486. };
  487. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY0[] = {
  488. &WR_DIS_KEY0[0], // Write protection for EFUSE_BLK4. KEY0
  489. NULL
  490. };
  491. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY1[] = {
  492. &WR_DIS_KEY1[0], // Write protection for EFUSE_BLK5. KEY1
  493. NULL
  494. };
  495. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY2[] = {
  496. &WR_DIS_KEY2[0], // Write protection for EFUSE_BLK6. KEY2
  497. NULL
  498. };
  499. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY3[] = {
  500. &WR_DIS_KEY3[0], // Write protection for EFUSE_BLK7. KEY3
  501. NULL
  502. };
  503. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY4[] = {
  504. &WR_DIS_KEY4[0], // Write protection for EFUSE_BLK8. KEY4
  505. NULL
  506. };
  507. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY5[] = {
  508. &WR_DIS_KEY5[0], // Write protection for EFUSE_BLK9. KEY5
  509. NULL
  510. };
  511. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SYS_DATA_PART2[] = {
  512. &WR_DIS_SYS_DATA_PART2[0], // Write protection for EFUSE_BLK10. SYS_DATA_PART2
  513. NULL
  514. };
  515. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_USB_EXCHG_PINS[] = {
  516. &WR_DIS_USB_EXCHG_PINS[0], // Write protection for USB_EXCHG_PINS
  517. NULL
  518. };
  519. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS[] = {
  520. &RD_DIS[0], // Read protection
  521. NULL
  522. };
  523. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY0[] = {
  524. &RD_DIS_KEY0[0], // Read protection for EFUSE_BLK4. KEY0
  525. NULL
  526. };
  527. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY1[] = {
  528. &RD_DIS_KEY1[0], // Read protection for EFUSE_BLK5. KEY1
  529. NULL
  530. };
  531. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY2[] = {
  532. &RD_DIS_KEY2[0], // Read protection for EFUSE_BLK6. KEY2
  533. NULL
  534. };
  535. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY3[] = {
  536. &RD_DIS_KEY3[0], // Read protection for EFUSE_BLK7. KEY3
  537. NULL
  538. };
  539. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY4[] = {
  540. &RD_DIS_KEY4[0], // Read protection for EFUSE_BLK8. KEY4
  541. NULL
  542. };
  543. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY5[] = {
  544. &RD_DIS_KEY5[0], // Read protection for EFUSE_BLK9. KEY5
  545. NULL
  546. };
  547. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_SYS_DATA_PART2[] = {
  548. &RD_DIS_SYS_DATA_PART2[0], // Read protection for EFUSE_BLK10. SYS_DATA_PART2
  549. NULL
  550. };
  551. const esp_efuse_desc_t* ESP_EFUSE_DIS_ICACHE[] = {
  552. &DIS_ICACHE[0], // Disable Icache
  553. NULL
  554. };
  555. const esp_efuse_desc_t* ESP_EFUSE_DIS_DCACHE[] = {
  556. &DIS_DCACHE[0], // Disable Dcace
  557. NULL
  558. };
  559. const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_ICACHE[] = {
  560. &DIS_DOWNLOAD_ICACHE[0], // Disable Icache in download mode include boot_mode 0 1 2 3 6 7
  561. NULL
  562. };
  563. const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_DCACHE[] = {
  564. &DIS_DOWNLOAD_DCACHE[0], // Disable Dcache in download mode include boot_mode 0 1 2 3 6 7
  565. NULL
  566. };
  567. const esp_efuse_desc_t* ESP_EFUSE_DIS_FORCE_DOWNLOAD[] = {
  568. &DIS_FORCE_DOWNLOAD[0], // Disable force chip go to download mode function
  569. NULL
  570. };
  571. const esp_efuse_desc_t* ESP_EFUSE_DIS_USB[] = {
  572. &DIS_USB[0], // Disable USB function
  573. NULL
  574. };
  575. const esp_efuse_desc_t* ESP_EFUSE_DIS_CAN[] = {
  576. &DIS_CAN[0], // Disable CAN function
  577. NULL
  578. };
  579. const esp_efuse_desc_t* ESP_EFUSE_DIS_APP_CPU[] = {
  580. &DIS_APP_CPU[0], // Disables APP CPU
  581. NULL
  582. };
  583. const esp_efuse_desc_t* ESP_EFUSE_SOFT_DIS_JTAG[] = {
  584. &SOFT_DIS_JTAG[0], // Software disables JTAG by programming odd number of 1 bit(s). JTAG can be re-enabled via HMAC peripheral
  585. NULL
  586. };
  587. const esp_efuse_desc_t* ESP_EFUSE_HARD_DIS_JTAG[] = {
  588. &HARD_DIS_JTAG[0], // Hardware disable jtag permanently disable jtag function
  589. NULL
  590. };
  591. const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_MANUAL_ENCRYPT[] = {
  592. &DIS_DOWNLOAD_MANUAL_ENCRYPT[0], // Disable flash encrypt function
  593. NULL
  594. };
  595. const esp_efuse_desc_t* ESP_EFUSE_USB_EXCHG_PINS[] = {
  596. &USB_EXCHG_PINS[0], // Exchange D+ D- pins
  597. NULL
  598. };
  599. const esp_efuse_desc_t* ESP_EFUSE_USB_EXT_PHY_ENABLE[] = {
  600. &USB_EXT_PHY_ENABLE[0], // Enable external PHY
  601. NULL
  602. };
  603. const esp_efuse_desc_t* ESP_EFUSE_BTLC_GPIO_ENABLE[] = {
  604. &BTLC_GPIO_ENABLE[0], // Enables BTLC GPIO
  605. NULL
  606. };
  607. const esp_efuse_desc_t* ESP_EFUSE_VDD_SPI_XPD[] = {
  608. &VDD_SPI_XPD[0], // VDD_SPI regulator power up
  609. NULL
  610. };
  611. const esp_efuse_desc_t* ESP_EFUSE_VDD_SPI_TIEH[] = {
  612. &VDD_SPI_TIEH[0], // VDD_SPI regulator tie high to vdda
  613. NULL
  614. };
  615. const esp_efuse_desc_t* ESP_EFUSE_VDD_SPI_FORCE[] = {
  616. &VDD_SPI_FORCE[0], // Force using eFuse configuration of VDD_SPI
  617. NULL
  618. };
  619. const esp_efuse_desc_t* ESP_EFUSE_WDT_DELAY_SEL[] = {
  620. &WDT_DELAY_SEL[0], // Select RTC WDT time out threshold
  621. NULL
  622. };
  623. const esp_efuse_desc_t* ESP_EFUSE_SPI_BOOT_CRYPT_CNT[] = {
  624. &SPI_BOOT_CRYPT_CNT[0], // SPI boot encrypt decrypt enable. odd number 1 enable. even number 1 disable
  625. NULL
  626. };
  627. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_KEY_REVOKE0[] = {
  628. &SECURE_BOOT_KEY_REVOKE0[0], // Enable revoke first secure boot key
  629. NULL
  630. };
  631. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_KEY_REVOKE1[] = {
  632. &SECURE_BOOT_KEY_REVOKE1[0], // Enable revoke second secure boot key
  633. NULL
  634. };
  635. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_KEY_REVOKE2[] = {
  636. &SECURE_BOOT_KEY_REVOKE2[0], // Enable revoke third secure boot key
  637. NULL
  638. };
  639. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_0[] = {
  640. &KEY_PURPOSE_0[0], // Key0 purpose
  641. NULL
  642. };
  643. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_1[] = {
  644. &KEY_PURPOSE_1[0], // Key1 purpose
  645. NULL
  646. };
  647. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_2[] = {
  648. &KEY_PURPOSE_2[0], // Key2 purpose
  649. NULL
  650. };
  651. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_3[] = {
  652. &KEY_PURPOSE_3[0], // Key3 purpose
  653. NULL
  654. };
  655. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_4[] = {
  656. &KEY_PURPOSE_4[0], // Key4 purpose
  657. NULL
  658. };
  659. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_5[] = {
  660. &KEY_PURPOSE_5[0], // Key5 purpose
  661. NULL
  662. };
  663. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_EN[] = {
  664. &SECURE_BOOT_EN[0], // Secure boot enable
  665. NULL
  666. };
  667. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
  668. &SECURE_BOOT_AGGRESSIVE_REVOKE[0], // Enable aggressive secure boot revoke
  669. NULL
  670. };
  671. const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_JTAG[] = {
  672. &DIS_USB_JTAG[0], // Set to disable usb_serial_jtag-to-jtag function
  673. NULL
  674. };
  675. const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_SERIAL_JTAG[] = {
  676. &DIS_USB_SERIAL_JTAG[0], // Set to disable usb_serial_jtag module
  677. NULL
  678. };
  679. const esp_efuse_desc_t* ESP_EFUSE_STRAP_JTAG_SEL[] = {
  680. &STRAP_JTAG_SEL[0], // Enable selection between usb_to_jtag or pad_to_jtag through gpio10
  681. NULL
  682. };
  683. const esp_efuse_desc_t* ESP_EFUSE_USB_PHY_SEL[] = {
  684. &USB_PHY_SEL[0], // Select internal/external PHY for USB OTG and usb_serial_jtag
  685. NULL
  686. };
  687. const esp_efuse_desc_t* ESP_EFUSE_FLASH_TPUW[] = {
  688. &FLASH_TPUW[0], // Flash wait time after power up. (unit is ms). When value is 15. the time is 30 ms
  689. NULL
  690. };
  691. const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_MODE[] = {
  692. &DIS_DOWNLOAD_MODE[0], // Disble download mode include boot_mode[3:0] is 0 1 2 3 6 7
  693. NULL
  694. };
  695. const esp_efuse_desc_t* ESP_EFUSE_DIS_DIRECT_BOOT[] = {
  696. &DIS_DIRECT_BOOT[0], // Disable direct boot mode
  697. NULL
  698. };
  699. const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_SERIAL_JTAG_ROM_PRINT[] = {
  700. &DIS_USB_SERIAL_JTAG_ROM_PRINT[0], // Disable usb serial jtag print during rom boot
  701. NULL
  702. };
  703. const esp_efuse_desc_t* ESP_EFUSE_FLASH_ECC_MODE[] = {
  704. &FLASH_ECC_MODE[0], // Configures the ECC mode for SPI flash. 0:16-byte to 18-byte mode. 1:16-byte to 17-byte mode
  705. NULL
  706. };
  707. const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE[] = {
  708. &DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE[0], // Set this bit to disable download through USB-Serial-JTAG
  709. NULL
  710. };
  711. const esp_efuse_desc_t* ESP_EFUSE_ENABLE_SECURITY_DOWNLOAD[] = {
  712. &ENABLE_SECURITY_DOWNLOAD[0], // Enable security download mode
  713. NULL
  714. };
  715. const esp_efuse_desc_t* ESP_EFUSE_UART_PRINT_CONTROL[] = {
  716. &UART_PRINT_CONTROL[0], // b00:force print. b01:control by GPIO46 - low level print. b10:control by GPIO46 - high level print. b11:force disable print.
  717. NULL
  718. };
  719. const esp_efuse_desc_t* ESP_EFUSE_PIN_POWER_SELECTION[] = {
  720. &PIN_POWER_SELECTION[0], // GPIO33-GPIO37 power supply selection in ROM code. 0:VDD3P3_CPU. 1:VDD_SPI.
  721. NULL
  722. };
  723. const esp_efuse_desc_t* ESP_EFUSE_FLASH_TYPE[] = {
  724. &FLASH_TYPE[0], // Connected Flash interface type. 0: 4 data line. 1: 8 data line
  725. NULL
  726. };
  727. const esp_efuse_desc_t* ESP_EFUSE_FLASH_PAGE_SIZE[] = {
  728. &FLASH_PAGE_SIZE[0], // Sets the size of flash page
  729. NULL
  730. };
  731. const esp_efuse_desc_t* ESP_EFUSE_FLASH_ECC_EN[] = {
  732. &FLASH_ECC_EN[0], // Enables ECC in Flash boot mode
  733. NULL
  734. };
  735. const esp_efuse_desc_t* ESP_EFUSE_FORCE_SEND_RESUME[] = {
  736. &FORCE_SEND_RESUME[0], // Force ROM code to send a resume command during SPI boot
  737. NULL
  738. };
  739. const esp_efuse_desc_t* ESP_EFUSE_SECURE_VERSION[] = {
  740. &SECURE_VERSION[0], // Secure version for anti-rollback
  741. NULL
  742. };
  743. const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_OTG_DOWNLOAD_MODE[] = {
  744. &DIS_USB_OTG_DOWNLOAD_MODE[0], // Set this bit to disable download through USB-OTG
  745. NULL
  746. };
  747. const esp_efuse_desc_t* ESP_EFUSE_MAC_FACTORY[] = {
  748. &MAC_FACTORY[0], // Factory MAC addr [0]
  749. &MAC_FACTORY[1], // Factory MAC addr [1]
  750. &MAC_FACTORY[2], // Factory MAC addr [2]
  751. &MAC_FACTORY[3], // Factory MAC addr [3]
  752. &MAC_FACTORY[4], // Factory MAC addr [4]
  753. &MAC_FACTORY[5], // Factory MAC addr [5]
  754. NULL
  755. };
  756. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_CLK[] = {
  757. &SPI_PAD_CONFIG_CLK[0], // SPI_PAD_configure CLK
  758. NULL
  759. };
  760. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_Q_D1[] = {
  761. &SPI_PAD_CONFIG_Q_D1[0], // SPI_PAD_configure Q(D1)
  762. NULL
  763. };
  764. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D_D0[] = {
  765. &SPI_PAD_CONFIG_D_D0[0], // SPI_PAD_configure D(D0)
  766. NULL
  767. };
  768. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_CS[] = {
  769. &SPI_PAD_CONFIG_CS[0], // SPI_PAD_configure CS
  770. NULL
  771. };
  772. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_HD_D3[] = {
  773. &SPI_PAD_CONFIG_HD_D3[0], // SPI_PAD_configure HD(D3)
  774. NULL
  775. };
  776. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_WP_D2[] = {
  777. &SPI_PAD_CONFIG_WP_D2[0], // SPI_PAD_configure WP(D2)
  778. NULL
  779. };
  780. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_DQS[] = {
  781. &SPI_PAD_CONFIG_DQS[0], // SPI_PAD_configure DQS
  782. NULL
  783. };
  784. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D4[] = {
  785. &SPI_PAD_CONFIG_D4[0], // SPI_PAD_configure D4
  786. NULL
  787. };
  788. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D5[] = {
  789. &SPI_PAD_CONFIG_D5[0], // SPI_PAD_configure D5
  790. NULL
  791. };
  792. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D6[] = {
  793. &SPI_PAD_CONFIG_D6[0], // SPI_PAD_configure D6
  794. NULL
  795. };
  796. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D7[] = {
  797. &SPI_PAD_CONFIG_D7[0], // SPI_PAD_configure D7
  798. NULL
  799. };
  800. const esp_efuse_desc_t* ESP_EFUSE_WAFER_VERSION[] = {
  801. &WAFER_VERSION[0], // WAFER version 0:A
  802. NULL
  803. };
  804. const esp_efuse_desc_t* ESP_EFUSE_PKG_VERSION[] = {
  805. &PKG_VERSION[0], // Package version
  806. NULL
  807. };
  808. const esp_efuse_desc_t* ESP_EFUSE_BLK_VER_MINOR[] = {
  809. &BLK_VER_MINOR[0], // BLK_VERSION_MINOR
  810. NULL
  811. };
  812. const esp_efuse_desc_t* ESP_EFUSE_ADC2_CAL_VOL_ATTEN3[] = {
  813. &ADC2_CAL_VOL_ATTEN3[0], // ADC2 calibration voltage at atten3
  814. NULL
  815. };
  816. const esp_efuse_desc_t* ESP_EFUSE_OPTIONAL_UNIQUE_ID[] = {
  817. &OPTIONAL_UNIQUE_ID[0], // Optional unique 128-bit ID
  818. NULL
  819. };
  820. const esp_efuse_desc_t* ESP_EFUSE_BLK_VER_MAJOR[] = {
  821. &BLK_VER_MAJOR[0], // BLK_VERSION_MAJOR
  822. NULL
  823. };
  824. const esp_efuse_desc_t* ESP_EFUSE_TEMP_CALIB[] = {
  825. &TEMP_CALIB[0], // Temperature calibration data
  826. NULL
  827. };
  828. const esp_efuse_desc_t* ESP_EFUSE_OCODE[] = {
  829. &OCODE[0], // ADC OCode
  830. NULL
  831. };
  832. const esp_efuse_desc_t* ESP_EFUSE_ADC1_INIT_CODE_ATTEN0[] = {
  833. &ADC1_INIT_CODE_ATTEN0[0], // ADC1 init code at atten0
  834. NULL
  835. };
  836. const esp_efuse_desc_t* ESP_EFUSE_ADC1_INIT_CODE_ATTEN1[] = {
  837. &ADC1_INIT_CODE_ATTEN1[0], // ADC1 init code at atten1
  838. NULL
  839. };
  840. const esp_efuse_desc_t* ESP_EFUSE_ADC1_INIT_CODE_ATTEN2[] = {
  841. &ADC1_INIT_CODE_ATTEN2[0], // ADC1 init code at atten2
  842. NULL
  843. };
  844. const esp_efuse_desc_t* ESP_EFUSE_ADC1_INIT_CODE_ATTEN3[] = {
  845. &ADC1_INIT_CODE_ATTEN3[0], // ADC1 init code at atten3
  846. NULL
  847. };
  848. const esp_efuse_desc_t* ESP_EFUSE_ADC2_INIT_CODE_ATTEN0[] = {
  849. &ADC2_INIT_CODE_ATTEN0[0], // ADC2 init code at atten0
  850. NULL
  851. };
  852. const esp_efuse_desc_t* ESP_EFUSE_ADC2_INIT_CODE_ATTEN1[] = {
  853. &ADC2_INIT_CODE_ATTEN1[0], // ADC2 init code at atten1
  854. NULL
  855. };
  856. const esp_efuse_desc_t* ESP_EFUSE_ADC2_INIT_CODE_ATTEN2[] = {
  857. &ADC2_INIT_CODE_ATTEN2[0], // ADC2 init code at atten2
  858. NULL
  859. };
  860. const esp_efuse_desc_t* ESP_EFUSE_ADC2_INIT_CODE_ATTEN3[] = {
  861. &ADC2_INIT_CODE_ATTEN3[0], // ADC2 init code at atten3
  862. NULL
  863. };
  864. const esp_efuse_desc_t* ESP_EFUSE_ADC1_CAL_VOL_ATTEN0[] = {
  865. &ADC1_CAL_VOL_ATTEN0[0], // ADC1 calibration voltage at atten0
  866. NULL
  867. };
  868. const esp_efuse_desc_t* ESP_EFUSE_ADC1_CAL_VOL_ATTEN1[] = {
  869. &ADC1_CAL_VOL_ATTEN1[0], // ADC1 calibration voltage at atten1
  870. NULL
  871. };
  872. const esp_efuse_desc_t* ESP_EFUSE_ADC1_CAL_VOL_ATTEN2[] = {
  873. &ADC1_CAL_VOL_ATTEN2[0], // ADC1 calibration voltage at atten2
  874. NULL
  875. };
  876. const esp_efuse_desc_t* ESP_EFUSE_ADC1_CAL_VOL_ATTEN3[] = {
  877. &ADC1_CAL_VOL_ATTEN3[0], // ADC1 calibration voltage at atten3
  878. NULL
  879. };
  880. const esp_efuse_desc_t* ESP_EFUSE_ADC2_CAL_VOL_ATTEN0[] = {
  881. &ADC2_CAL_VOL_ATTEN0[0], // ADC2 calibration voltage at atten0
  882. NULL
  883. };
  884. const esp_efuse_desc_t* ESP_EFUSE_ADC2_CAL_VOL_ATTEN1[] = {
  885. &ADC2_CAL_VOL_ATTEN1[0], // ADC2 calibration voltage at atten1
  886. NULL
  887. };
  888. const esp_efuse_desc_t* ESP_EFUSE_ADC2_CAL_VOL_ATTEN2[] = {
  889. &ADC2_CAL_VOL_ATTEN2[0], // ADC2 calibration voltage at atten2
  890. NULL
  891. };
  892. const esp_efuse_desc_t* ESP_EFUSE_USER_DATA[] = {
  893. &USER_DATA[0], // User data
  894. NULL
  895. };
  896. const esp_efuse_desc_t* ESP_EFUSE_USER_DATA_MAC_CUSTOM[] = {
  897. &USER_DATA_MAC_CUSTOM[0], // Custom MAC
  898. NULL
  899. };
  900. const esp_efuse_desc_t* ESP_EFUSE_KEY0[] = {
  901. &KEY0[0], // Key0 or user data
  902. NULL
  903. };
  904. const esp_efuse_desc_t* ESP_EFUSE_KEY1[] = {
  905. &KEY1[0], // Key1 or user data
  906. NULL
  907. };
  908. const esp_efuse_desc_t* ESP_EFUSE_KEY2[] = {
  909. &KEY2[0], // Key2 or user data
  910. NULL
  911. };
  912. const esp_efuse_desc_t* ESP_EFUSE_KEY3[] = {
  913. &KEY3[0], // Key3 or user data
  914. NULL
  915. };
  916. const esp_efuse_desc_t* ESP_EFUSE_KEY4[] = {
  917. &KEY4[0], // Key4 or user data
  918. NULL
  919. };
  920. const esp_efuse_desc_t* ESP_EFUSE_KEY5[] = {
  921. &KEY5[0], // Key5 or user data
  922. NULL
  923. };
  924. const esp_efuse_desc_t* ESP_EFUSE_SYS_DATA_PART2[] = {
  925. &SYS_DATA_PART2[0], // System configuration
  926. NULL
  927. };