esp_efuse_table.c 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992
  1. // Copyright 2017-2018 Espressif Systems (Shanghai) PTE LTD
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at",
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License
  14. #include "sdkconfig.h"
  15. #include "esp_efuse.h"
  16. #include <assert.h>
  17. #include "esp_efuse_table.h"
  18. // md5_digest_table 6a29c09c943d9cb07bd874af57b5870e
  19. // This file was generated from the file esp_efuse_table.csv. DO NOT CHANGE THIS FILE MANUALLY.
  20. // If you want to change some fields, you need to change esp_efuse_table.csv file
  21. // then run `efuse_common_table` or `efuse_custom_table` command it will generate this file.
  22. // To show efuse_table run the command 'show_efuse_table'.
  23. static const esp_efuse_desc_t WR_DIS_RD_DIS[] = {
  24. {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,
  25. };
  26. static const esp_efuse_desc_t WR_DIS_DIS_RTC_RAM_BOOT[] = {
  27. {EFUSE_BLK0, 1, 1}, // Write protection for DIS_RTC_RAM_BOOT,
  28. };
  29. static const esp_efuse_desc_t WR_DIS_GROUP_1[] = {
  30. {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,
  31. };
  32. static const esp_efuse_desc_t WR_DIS_GROUP_2[] = {
  33. {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,
  34. };
  35. static const esp_efuse_desc_t WR_DIS_SPI_BOOT_CRYPT_CNT[] = {
  36. {EFUSE_BLK0, 4, 1}, // Write protection for SPI_BOOT_CRYPT_CNT,
  37. };
  38. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_KEY_REVOKE0[] = {
  39. {EFUSE_BLK0, 5, 1}, // Write protection for SECURE_BOOT_KEY_REVOKE0,
  40. };
  41. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_KEY_REVOKE1[] = {
  42. {EFUSE_BLK0, 6, 1}, // Write protection for SECURE_BOOT_KEY_REVOKE1,
  43. };
  44. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_KEY_REVOKE2[] = {
  45. {EFUSE_BLK0, 7, 1}, // Write protection for SECURE_BOOT_KEY_REVOKE2,
  46. };
  47. static const esp_efuse_desc_t WR_DIS_KEY0_PURPOSE[] = {
  48. {EFUSE_BLK0, 8, 1}, // Write protection for key_purpose. KEY0,
  49. };
  50. static const esp_efuse_desc_t WR_DIS_KEY1_PURPOSE[] = {
  51. {EFUSE_BLK0, 9, 1}, // Write protection for key_purpose. KEY1,
  52. };
  53. static const esp_efuse_desc_t WR_DIS_KEY2_PURPOSE[] = {
  54. {EFUSE_BLK0, 10, 1}, // Write protection for key_purpose. KEY2,
  55. };
  56. static const esp_efuse_desc_t WR_DIS_KEY3_PURPOSE[] = {
  57. {EFUSE_BLK0, 11, 1}, // Write protection for key_purpose. KEY3,
  58. };
  59. static const esp_efuse_desc_t WR_DIS_KEY4_PURPOSE[] = {
  60. {EFUSE_BLK0, 12, 1}, // Write protection for key_purpose. KEY4,
  61. };
  62. static const esp_efuse_desc_t WR_DIS_KEY5_PURPOSE[] = {
  63. {EFUSE_BLK0, 13, 1}, // Write protection for key_purpose. KEY5,
  64. };
  65. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_EN[] = {
  66. {EFUSE_BLK0, 15, 1}, // Write protection for SECURE_BOOT_EN,
  67. };
  68. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
  69. {EFUSE_BLK0, 16, 1}, // Write protection for SECURE_BOOT_AGGRESSIVE_REVOKE,
  70. };
  71. static const esp_efuse_desc_t WR_DIS_GROUP_3[] = {
  72. {EFUSE_BLK0, 18, 1}, // Write protection for FLASH_TPUW DIS_DOWNLOAD_MODE DIS_LEGACY_SPI_BOOT UART_PRINT_CHANNEL DIS_USB_DOWNLOAD_MODE ENABLE_SECURITY_DOWNLOAD UART_PRINT_CONTROL PIN_POWER_SELECTION FLASH_TYPE FORCE_SEND_RESUME SECURE_VERSION,
  73. };
  74. static const esp_efuse_desc_t WR_DIS_BLK1[] = {
  75. {EFUSE_BLK0, 20, 1}, // Write protection for EFUSE_BLK1. MAC_SPI_8M_SYS,
  76. };
  77. static const esp_efuse_desc_t WR_DIS_SYS_DATA_PART1[] = {
  78. {EFUSE_BLK0, 21, 1}, // Write protection for EFUSE_BLK2. SYS_DATA_PART1,
  79. };
  80. static const esp_efuse_desc_t WR_DIS_USER_DATA[] = {
  81. {EFUSE_BLK0, 22, 1}, // Write protection for EFUSE_BLK3. USER_DATA,
  82. };
  83. static const esp_efuse_desc_t WR_DIS_KEY0[] = {
  84. {EFUSE_BLK0, 23, 1}, // Write protection for EFUSE_BLK4. KEY0,
  85. };
  86. static const esp_efuse_desc_t WR_DIS_KEY1[] = {
  87. {EFUSE_BLK0, 24, 1}, // Write protection for EFUSE_BLK5. KEY1,
  88. };
  89. static const esp_efuse_desc_t WR_DIS_KEY2[] = {
  90. {EFUSE_BLK0, 25, 1}, // Write protection for EFUSE_BLK6. KEY2,
  91. };
  92. static const esp_efuse_desc_t WR_DIS_KEY3[] = {
  93. {EFUSE_BLK0, 26, 1}, // Write protection for EFUSE_BLK7. KEY3,
  94. };
  95. static const esp_efuse_desc_t WR_DIS_KEY4[] = {
  96. {EFUSE_BLK0, 27, 1}, // Write protection for EFUSE_BLK8. KEY4,
  97. };
  98. static const esp_efuse_desc_t WR_DIS_KEY5[] = {
  99. {EFUSE_BLK0, 28, 1}, // Write protection for EFUSE_BLK9. KEY5,
  100. };
  101. static const esp_efuse_desc_t WR_DIS_SYS_DATA_PART2[] = {
  102. {EFUSE_BLK0, 29, 1}, // Write protection for EFUSE_BLK10. SYS_DATA_PART2,
  103. };
  104. static const esp_efuse_desc_t WR_DIS_USB_EXCHG_PINS[] = {
  105. {EFUSE_BLK0, 30, 1}, // Write protection for USB_EXCHG_PINS,
  106. };
  107. static const esp_efuse_desc_t RD_DIS_KEY0[] = {
  108. {EFUSE_BLK0, 32, 1}, // Read protection for EFUSE_BLK4. KEY0,
  109. };
  110. static const esp_efuse_desc_t RD_DIS_KEY1[] = {
  111. {EFUSE_BLK0, 33, 1}, // Read protection for EFUSE_BLK5. KEY1,
  112. };
  113. static const esp_efuse_desc_t RD_DIS_KEY2[] = {
  114. {EFUSE_BLK0, 34, 1}, // Read protection for EFUSE_BLK6. KEY2,
  115. };
  116. static const esp_efuse_desc_t RD_DIS_KEY3[] = {
  117. {EFUSE_BLK0, 35, 1}, // Read protection for EFUSE_BLK7. KEY3,
  118. };
  119. static const esp_efuse_desc_t RD_DIS_KEY4[] = {
  120. {EFUSE_BLK0, 36, 1}, // Read protection for EFUSE_BLK8. KEY4,
  121. };
  122. static const esp_efuse_desc_t RD_DIS_KEY5[] = {
  123. {EFUSE_BLK0, 37, 1}, // Read protection for EFUSE_BLK9. KEY5,
  124. };
  125. static const esp_efuse_desc_t RD_DIS_SYS_DATA_PART2[] = {
  126. {EFUSE_BLK0, 38, 1}, // Read protection for EFUSE_BLK10. SYS_DATA_PART2,
  127. };
  128. static const esp_efuse_desc_t DIS_RTC_RAM_BOOT[] = {
  129. {EFUSE_BLK0, 39, 1}, // Disable boot from RTC RAM,
  130. };
  131. static const esp_efuse_desc_t DIS_ICACHE[] = {
  132. {EFUSE_BLK0, 40, 1}, // Disable Icache,
  133. };
  134. static const esp_efuse_desc_t DIS_DCACHE[] = {
  135. {EFUSE_BLK0, 41, 1}, // Disable Dcace,
  136. };
  137. static const esp_efuse_desc_t DIS_DOWNLOAD_ICACHE[] = {
  138. {EFUSE_BLK0, 42, 1}, // Disable Icache in download mode include boot_mode 0 1 2 3 6 7,
  139. };
  140. static const esp_efuse_desc_t DIS_DOWNLOAD_DCACHE[] = {
  141. {EFUSE_BLK0, 43, 1}, // Disable Dcache in download mode include boot_mode 0 1 2 3 6 7,
  142. };
  143. static const esp_efuse_desc_t DIS_FORCE_DOWNLOAD[] = {
  144. {EFUSE_BLK0, 44, 1}, // Disable force chip go to download mode function,
  145. };
  146. static const esp_efuse_desc_t DIS_USB[] = {
  147. {EFUSE_BLK0, 45, 1}, // Disable USB function,
  148. };
  149. static const esp_efuse_desc_t DIS_CAN[] = {
  150. {EFUSE_BLK0, 46, 1}, // Disable CAN function,
  151. };
  152. static const esp_efuse_desc_t DIS_APP_CPU[] = {
  153. {EFUSE_BLK0, 47, 1}, // Disables APP CPU,
  154. };
  155. static const esp_efuse_desc_t SOFT_DIS_JTAG[] = {
  156. {EFUSE_BLK0, 48, 3}, // Software disables JTAG by programming odd number of 1 bit(s). JTAG can be re-enabled via HMAC peripheral,
  157. };
  158. static const esp_efuse_desc_t HARD_DIS_JTAG[] = {
  159. {EFUSE_BLK0, 51, 1}, // Hardware disable jtag permanently disable jtag function,
  160. };
  161. static const esp_efuse_desc_t DIS_DOWNLOAD_MANUAL_ENCRYPT[] = {
  162. {EFUSE_BLK0, 52, 1}, // Disable flash encrypt function,
  163. };
  164. static const esp_efuse_desc_t USB_EXCHG_PINS[] = {
  165. {EFUSE_BLK0, 57, 1}, // Exchange D+ D- pins,
  166. };
  167. static const esp_efuse_desc_t USB_EXT_PHY_ENABLE[] = {
  168. {EFUSE_BLK0, 58, 1}, // Enable external PHY,
  169. };
  170. static const esp_efuse_desc_t BTLC_GPIO_ENABLE[] = {
  171. {EFUSE_BLK0, 59, 2}, // Enables BTLC GPIO,
  172. };
  173. static const esp_efuse_desc_t VDD_SPI_XPD[] = {
  174. {EFUSE_BLK0, 68, 1}, // VDD_SPI regulator power up,
  175. };
  176. static const esp_efuse_desc_t VDD_SPI_TIEH[] = {
  177. {EFUSE_BLK0, 69, 1}, // VDD_SPI regulator tie high to vdda,
  178. };
  179. static const esp_efuse_desc_t VDD_SPI_FORCE[] = {
  180. {EFUSE_BLK0, 70, 1}, // Force using eFuse configuration of VDD_SPI,
  181. };
  182. static const esp_efuse_desc_t WDT_DELAY_SEL[] = {
  183. {EFUSE_BLK0, 80, 2}, // Select RTC WDT time out threshold,
  184. };
  185. static const esp_efuse_desc_t SPI_BOOT_CRYPT_CNT[] = {
  186. {EFUSE_BLK0, 82, 3}, // SPI boot encrypt decrypt enable. odd number 1 enable. even number 1 disable,
  187. };
  188. static const esp_efuse_desc_t SECURE_BOOT_KEY_REVOKE0[] = {
  189. {EFUSE_BLK0, 85, 1}, // Enable revoke first secure boot key,
  190. };
  191. static const esp_efuse_desc_t SECURE_BOOT_KEY_REVOKE1[] = {
  192. {EFUSE_BLK0, 86, 1}, // Enable revoke second secure boot key,
  193. };
  194. static const esp_efuse_desc_t SECURE_BOOT_KEY_REVOKE2[] = {
  195. {EFUSE_BLK0, 87, 1}, // Enable revoke third secure boot key,
  196. };
  197. static const esp_efuse_desc_t KEY_PURPOSE_0[] = {
  198. {EFUSE_BLK0, 88, 4}, // Key0 purpose,
  199. };
  200. static const esp_efuse_desc_t KEY_PURPOSE_1[] = {
  201. {EFUSE_BLK0, 92, 4}, // Key1 purpose,
  202. };
  203. static const esp_efuse_desc_t KEY_PURPOSE_2[] = {
  204. {EFUSE_BLK0, 96, 4}, // Key2 purpose,
  205. };
  206. static const esp_efuse_desc_t KEY_PURPOSE_3[] = {
  207. {EFUSE_BLK0, 100, 4}, // Key3 purpose,
  208. };
  209. static const esp_efuse_desc_t KEY_PURPOSE_4[] = {
  210. {EFUSE_BLK0, 104, 4}, // Key4 purpose,
  211. };
  212. static const esp_efuse_desc_t KEY_PURPOSE_5[] = {
  213. {EFUSE_BLK0, 108, 4}, // Key5 purpose,
  214. };
  215. static const esp_efuse_desc_t SECURE_BOOT_EN[] = {
  216. {EFUSE_BLK0, 116, 1}, // Secure boot enable,
  217. };
  218. static const esp_efuse_desc_t SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
  219. {EFUSE_BLK0, 117, 1}, // Enable aggressive secure boot revoke,
  220. };
  221. static const esp_efuse_desc_t FLASH_TPUW[] = {
  222. {EFUSE_BLK0, 124, 4}, // Flash wait time after power up. (unit is ms). When value is 15. the time is 30 ms,
  223. };
  224. static const esp_efuse_desc_t DIS_DOWNLOAD_MODE[] = {
  225. {EFUSE_BLK0, 128, 1}, // Disble download mode include boot_mode[3:0] is 0 1 2 3 6 7,
  226. };
  227. static const esp_efuse_desc_t DIS_LEGACY_SPI_BOOT[] = {
  228. {EFUSE_BLK0, 129, 1}, // Disable_Legcy_SPI_boot mode include boot_mode[3:0] is 4,
  229. };
  230. static const esp_efuse_desc_t UART_PRINT_CHANNEL[] = {
  231. {EFUSE_BLK0, 130, 1}, // 0: UART0. 1: UART1,
  232. };
  233. static const esp_efuse_desc_t FLASH_ECC_MODE[] = {
  234. {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,
  235. };
  236. static const esp_efuse_desc_t DIS_USB_DOWNLOAD_MODE[] = {
  237. {EFUSE_BLK0, 132, 1}, // Disable download through USB,
  238. };
  239. static const esp_efuse_desc_t ENABLE_SECURITY_DOWNLOAD[] = {
  240. {EFUSE_BLK0, 133, 1}, // Enable security download mode,
  241. };
  242. static const esp_efuse_desc_t UART_PRINT_CONTROL[] = {
  243. {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.,
  244. };
  245. static const esp_efuse_desc_t PIN_POWER_SELECTION[] = {
  246. {EFUSE_BLK0, 136, 1}, // GPIO33-GPIO37 power supply selection in ROM code. 0:VDD3P3_CPU. 1:VDD_SPI.,
  247. };
  248. static const esp_efuse_desc_t FLASH_TYPE[] = {
  249. {EFUSE_BLK0, 137, 1}, // Connected Flash interface type. 0: 4 data line. 1: 8 data line,
  250. };
  251. static const esp_efuse_desc_t FLASH_PAGE_SIZE[] = {
  252. {EFUSE_BLK0, 138, 2}, // Sets the size of flash page,
  253. };
  254. static const esp_efuse_desc_t FLASH_ECC_EN[] = {
  255. {EFUSE_BLK0, 140, 1}, // Enables ECC in Flash boot mode,
  256. };
  257. static const esp_efuse_desc_t FORCE_SEND_RESUME[] = {
  258. {EFUSE_BLK0, 141, 1}, // Force ROM code to send a resume command during SPI boot,
  259. };
  260. static const esp_efuse_desc_t SECURE_VERSION[] = {
  261. {EFUSE_BLK0, 142, 16}, // Secure version for anti-rollback,
  262. };
  263. static const esp_efuse_desc_t MAC_FACTORY[] = {
  264. {EFUSE_BLK1, 40, 8}, // Factory MAC addr [0],
  265. {EFUSE_BLK1, 32, 8}, // Factory MAC addr [1],
  266. {EFUSE_BLK1, 24, 8}, // Factory MAC addr [2],
  267. {EFUSE_BLK1, 16, 8}, // Factory MAC addr [3],
  268. {EFUSE_BLK1, 8, 8}, // Factory MAC addr [4],
  269. {EFUSE_BLK1, 0, 8}, // Factory MAC addr [5],
  270. };
  271. static const esp_efuse_desc_t SPI_PAD_CONFIG_CLK[] = {
  272. {EFUSE_BLK1, 48, 6}, // SPI_PAD_configure CLK,
  273. };
  274. static const esp_efuse_desc_t SPI_PAD_CONFIG_Q_D1[] = {
  275. {EFUSE_BLK1, 54, 6}, // SPI_PAD_configure Q(D1),
  276. };
  277. static const esp_efuse_desc_t SPI_PAD_CONFIG_D_D0[] = {
  278. {EFUSE_BLK1, 60, 6}, // SPI_PAD_configure D(D0),
  279. };
  280. static const esp_efuse_desc_t SPI_PAD_CONFIG_CS[] = {
  281. {EFUSE_BLK1, 66, 6}, // SPI_PAD_configure CS,
  282. };
  283. static const esp_efuse_desc_t SPI_PAD_CONFIG_HD_D3[] = {
  284. {EFUSE_BLK1, 72, 6}, // SPI_PAD_configure HD(D3),
  285. };
  286. static const esp_efuse_desc_t SPI_PAD_CONFIG_WP_D2[] = {
  287. {EFUSE_BLK1, 78, 6}, // SPI_PAD_configure WP(D2),
  288. };
  289. static const esp_efuse_desc_t SPI_PAD_CONFIG_DQS[] = {
  290. {EFUSE_BLK1, 84, 6}, // SPI_PAD_configure DQS,
  291. };
  292. static const esp_efuse_desc_t SPI_PAD_CONFIG_D4[] = {
  293. {EFUSE_BLK1, 90, 6}, // SPI_PAD_configure D4,
  294. };
  295. static const esp_efuse_desc_t SPI_PAD_CONFIG_D5[] = {
  296. {EFUSE_BLK1, 96, 6}, // SPI_PAD_configure D5,
  297. };
  298. static const esp_efuse_desc_t SPI_PAD_CONFIG_D6[] = {
  299. {EFUSE_BLK1, 102, 6}, // SPI_PAD_configure D6,
  300. };
  301. static const esp_efuse_desc_t SPI_PAD_CONFIG_D7[] = {
  302. {EFUSE_BLK1, 108, 6}, // SPI_PAD_configure D7,
  303. };
  304. static const esp_efuse_desc_t WAFER_VERSION[] = {
  305. {EFUSE_BLK1, 114, 3}, // WAFER version 0:A,
  306. };
  307. static const esp_efuse_desc_t PKG_VERSION[] = {
  308. {EFUSE_BLK1, 117, 4}, // Package version 0:ESP32-S2 1:ESP32-S2FH16 2:ESP32-S2FH32,
  309. };
  310. static const esp_efuse_desc_t BLOCK1_VERSION[] = {
  311. {EFUSE_BLK1, 121, 3}, // BLOCK1 efuse version 0:No calibration 1:With calibration,
  312. };
  313. static const esp_efuse_desc_t SYS_DATA_PART0[] = {
  314. {EFUSE_BLK1, 126, 66}, // System configuration,
  315. };
  316. static const esp_efuse_desc_t OPTIONAL_UNIQUE_ID[] = {
  317. {EFUSE_BLK2, 0, 128}, // Optional unique 128-bit ID,
  318. };
  319. static const esp_efuse_desc_t BLOCK2_VERSION[] = {
  320. {EFUSE_BLK2, 132, 3}, // Version of BLOCK2,
  321. };
  322. static const esp_efuse_desc_t USER_DATA[] = {
  323. {EFUSE_BLK3, 0, 256}, // User data,
  324. };
  325. static const esp_efuse_desc_t KEY0[] = {
  326. {EFUSE_BLK4, 0, 256}, // Key0 or user data,
  327. };
  328. static const esp_efuse_desc_t KEY1[] = {
  329. {EFUSE_BLK5, 0, 256}, // Key1 or user data,
  330. };
  331. static const esp_efuse_desc_t KEY2[] = {
  332. {EFUSE_BLK6, 0, 256}, // Key2 or user data,
  333. };
  334. static const esp_efuse_desc_t KEY3[] = {
  335. {EFUSE_BLK7, 0, 256}, // Key3 or user data,
  336. };
  337. static const esp_efuse_desc_t KEY4[] = {
  338. {EFUSE_BLK8, 0, 256}, // Key4 or user data,
  339. };
  340. static const esp_efuse_desc_t KEY5[] = {
  341. {EFUSE_BLK9, 0, 256}, // Key5 or user data,
  342. };
  343. static const esp_efuse_desc_t SYS_DATA_PART2[] = {
  344. {EFUSE_BLK10, 0, 256}, // System configuration,
  345. };
  346. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_RD_DIS[] = {
  347. &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
  348. NULL
  349. };
  350. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_DIS_RTC_RAM_BOOT[] = {
  351. &WR_DIS_DIS_RTC_RAM_BOOT[0], // Write protection for DIS_RTC_RAM_BOOT
  352. NULL
  353. };
  354. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_GROUP_1[] = {
  355. &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
  356. NULL
  357. };
  358. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_GROUP_2[] = {
  359. &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
  360. NULL
  361. };
  362. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_BOOT_CRYPT_CNT[] = {
  363. &WR_DIS_SPI_BOOT_CRYPT_CNT[0], // Write protection for SPI_BOOT_CRYPT_CNT
  364. NULL
  365. };
  366. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_KEY_REVOKE0[] = {
  367. &WR_DIS_SECURE_BOOT_KEY_REVOKE0[0], // Write protection for SECURE_BOOT_KEY_REVOKE0
  368. NULL
  369. };
  370. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_KEY_REVOKE1[] = {
  371. &WR_DIS_SECURE_BOOT_KEY_REVOKE1[0], // Write protection for SECURE_BOOT_KEY_REVOKE1
  372. NULL
  373. };
  374. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_KEY_REVOKE2[] = {
  375. &WR_DIS_SECURE_BOOT_KEY_REVOKE2[0], // Write protection for SECURE_BOOT_KEY_REVOKE2
  376. NULL
  377. };
  378. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY0_PURPOSE[] = {
  379. &WR_DIS_KEY0_PURPOSE[0], // Write protection for key_purpose. KEY0
  380. NULL
  381. };
  382. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY1_PURPOSE[] = {
  383. &WR_DIS_KEY1_PURPOSE[0], // Write protection for key_purpose. KEY1
  384. NULL
  385. };
  386. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY2_PURPOSE[] = {
  387. &WR_DIS_KEY2_PURPOSE[0], // Write protection for key_purpose. KEY2
  388. NULL
  389. };
  390. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY3_PURPOSE[] = {
  391. &WR_DIS_KEY3_PURPOSE[0], // Write protection for key_purpose. KEY3
  392. NULL
  393. };
  394. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY4_PURPOSE[] = {
  395. &WR_DIS_KEY4_PURPOSE[0], // Write protection for key_purpose. KEY4
  396. NULL
  397. };
  398. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY5_PURPOSE[] = {
  399. &WR_DIS_KEY5_PURPOSE[0], // Write protection for key_purpose. KEY5
  400. NULL
  401. };
  402. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_EN[] = {
  403. &WR_DIS_SECURE_BOOT_EN[0], // Write protection for SECURE_BOOT_EN
  404. NULL
  405. };
  406. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
  407. &WR_DIS_SECURE_BOOT_AGGRESSIVE_REVOKE[0], // Write protection for SECURE_BOOT_AGGRESSIVE_REVOKE
  408. NULL
  409. };
  410. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_GROUP_3[] = {
  411. &WR_DIS_GROUP_3[0], // Write protection for FLASH_TPUW DIS_DOWNLOAD_MODE DIS_LEGACY_SPI_BOOT UART_PRINT_CHANNEL DIS_USB_DOWNLOAD_MODE ENABLE_SECURITY_DOWNLOAD UART_PRINT_CONTROL PIN_POWER_SELECTION FLASH_TYPE FORCE_SEND_RESUME SECURE_VERSION
  412. NULL
  413. };
  414. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLK1[] = {
  415. &WR_DIS_BLK1[0], // Write protection for EFUSE_BLK1. MAC_SPI_8M_SYS
  416. NULL
  417. };
  418. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SYS_DATA_PART1[] = {
  419. &WR_DIS_SYS_DATA_PART1[0], // Write protection for EFUSE_BLK2. SYS_DATA_PART1
  420. NULL
  421. };
  422. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_USER_DATA[] = {
  423. &WR_DIS_USER_DATA[0], // Write protection for EFUSE_BLK3. USER_DATA
  424. NULL
  425. };
  426. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY0[] = {
  427. &WR_DIS_KEY0[0], // Write protection for EFUSE_BLK4. KEY0
  428. NULL
  429. };
  430. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY1[] = {
  431. &WR_DIS_KEY1[0], // Write protection for EFUSE_BLK5. KEY1
  432. NULL
  433. };
  434. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY2[] = {
  435. &WR_DIS_KEY2[0], // Write protection for EFUSE_BLK6. KEY2
  436. NULL
  437. };
  438. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY3[] = {
  439. &WR_DIS_KEY3[0], // Write protection for EFUSE_BLK7. KEY3
  440. NULL
  441. };
  442. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY4[] = {
  443. &WR_DIS_KEY4[0], // Write protection for EFUSE_BLK8. KEY4
  444. NULL
  445. };
  446. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY5[] = {
  447. &WR_DIS_KEY5[0], // Write protection for EFUSE_BLK9. KEY5
  448. NULL
  449. };
  450. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SYS_DATA_PART2[] = {
  451. &WR_DIS_SYS_DATA_PART2[0], // Write protection for EFUSE_BLK10. SYS_DATA_PART2
  452. NULL
  453. };
  454. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_USB_EXCHG_PINS[] = {
  455. &WR_DIS_USB_EXCHG_PINS[0], // Write protection for USB_EXCHG_PINS
  456. NULL
  457. };
  458. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY0[] = {
  459. &RD_DIS_KEY0[0], // Read protection for EFUSE_BLK4. KEY0
  460. NULL
  461. };
  462. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY1[] = {
  463. &RD_DIS_KEY1[0], // Read protection for EFUSE_BLK5. KEY1
  464. NULL
  465. };
  466. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY2[] = {
  467. &RD_DIS_KEY2[0], // Read protection for EFUSE_BLK6. KEY2
  468. NULL
  469. };
  470. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY3[] = {
  471. &RD_DIS_KEY3[0], // Read protection for EFUSE_BLK7. KEY3
  472. NULL
  473. };
  474. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY4[] = {
  475. &RD_DIS_KEY4[0], // Read protection for EFUSE_BLK8. KEY4
  476. NULL
  477. };
  478. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY5[] = {
  479. &RD_DIS_KEY5[0], // Read protection for EFUSE_BLK9. KEY5
  480. NULL
  481. };
  482. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_SYS_DATA_PART2[] = {
  483. &RD_DIS_SYS_DATA_PART2[0], // Read protection for EFUSE_BLK10. SYS_DATA_PART2
  484. NULL
  485. };
  486. const esp_efuse_desc_t* ESP_EFUSE_DIS_RTC_RAM_BOOT[] = {
  487. &DIS_RTC_RAM_BOOT[0], // Disable boot from RTC RAM
  488. NULL
  489. };
  490. const esp_efuse_desc_t* ESP_EFUSE_DIS_ICACHE[] = {
  491. &DIS_ICACHE[0], // Disable Icache
  492. NULL
  493. };
  494. const esp_efuse_desc_t* ESP_EFUSE_DIS_DCACHE[] = {
  495. &DIS_DCACHE[0], // Disable Dcace
  496. NULL
  497. };
  498. const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_ICACHE[] = {
  499. &DIS_DOWNLOAD_ICACHE[0], // Disable Icache in download mode include boot_mode 0 1 2 3 6 7
  500. NULL
  501. };
  502. const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_DCACHE[] = {
  503. &DIS_DOWNLOAD_DCACHE[0], // Disable Dcache in download mode include boot_mode 0 1 2 3 6 7
  504. NULL
  505. };
  506. const esp_efuse_desc_t* ESP_EFUSE_DIS_FORCE_DOWNLOAD[] = {
  507. &DIS_FORCE_DOWNLOAD[0], // Disable force chip go to download mode function
  508. NULL
  509. };
  510. const esp_efuse_desc_t* ESP_EFUSE_DIS_USB[] = {
  511. &DIS_USB[0], // Disable USB function
  512. NULL
  513. };
  514. const esp_efuse_desc_t* ESP_EFUSE_DIS_CAN[] = {
  515. &DIS_CAN[0], // Disable CAN function
  516. NULL
  517. };
  518. const esp_efuse_desc_t* ESP_EFUSE_DIS_APP_CPU[] = {
  519. &DIS_APP_CPU[0], // Disables APP CPU
  520. NULL
  521. };
  522. const esp_efuse_desc_t* ESP_EFUSE_SOFT_DIS_JTAG[] = {
  523. &SOFT_DIS_JTAG[0], // Software disables JTAG by programming odd number of 1 bit(s). JTAG can be re-enabled via HMAC peripheral
  524. NULL
  525. };
  526. const esp_efuse_desc_t* ESP_EFUSE_HARD_DIS_JTAG[] = {
  527. &HARD_DIS_JTAG[0], // Hardware disable jtag permanently disable jtag function
  528. NULL
  529. };
  530. const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_MANUAL_ENCRYPT[] = {
  531. &DIS_DOWNLOAD_MANUAL_ENCRYPT[0], // Disable flash encrypt function
  532. NULL
  533. };
  534. const esp_efuse_desc_t* ESP_EFUSE_USB_EXCHG_PINS[] = {
  535. &USB_EXCHG_PINS[0], // Exchange D+ D- pins
  536. NULL
  537. };
  538. const esp_efuse_desc_t* ESP_EFUSE_USB_EXT_PHY_ENABLE[] = {
  539. &USB_EXT_PHY_ENABLE[0], // Enable external PHY
  540. NULL
  541. };
  542. const esp_efuse_desc_t* ESP_EFUSE_BTLC_GPIO_ENABLE[] = {
  543. &BTLC_GPIO_ENABLE[0], // Enables BTLC GPIO
  544. NULL
  545. };
  546. const esp_efuse_desc_t* ESP_EFUSE_VDD_SPI_XPD[] = {
  547. &VDD_SPI_XPD[0], // VDD_SPI regulator power up
  548. NULL
  549. };
  550. const esp_efuse_desc_t* ESP_EFUSE_VDD_SPI_TIEH[] = {
  551. &VDD_SPI_TIEH[0], // VDD_SPI regulator tie high to vdda
  552. NULL
  553. };
  554. const esp_efuse_desc_t* ESP_EFUSE_VDD_SPI_FORCE[] = {
  555. &VDD_SPI_FORCE[0], // Force using eFuse configuration of VDD_SPI
  556. NULL
  557. };
  558. const esp_efuse_desc_t* ESP_EFUSE_WDT_DELAY_SEL[] = {
  559. &WDT_DELAY_SEL[0], // Select RTC WDT time out threshold
  560. NULL
  561. };
  562. const esp_efuse_desc_t* ESP_EFUSE_SPI_BOOT_CRYPT_CNT[] = {
  563. &SPI_BOOT_CRYPT_CNT[0], // SPI boot encrypt decrypt enable. odd number 1 enable. even number 1 disable
  564. NULL
  565. };
  566. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_KEY_REVOKE0[] = {
  567. &SECURE_BOOT_KEY_REVOKE0[0], // Enable revoke first secure boot key
  568. NULL
  569. };
  570. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_KEY_REVOKE1[] = {
  571. &SECURE_BOOT_KEY_REVOKE1[0], // Enable revoke second secure boot key
  572. NULL
  573. };
  574. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_KEY_REVOKE2[] = {
  575. &SECURE_BOOT_KEY_REVOKE2[0], // Enable revoke third secure boot key
  576. NULL
  577. };
  578. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_0[] = {
  579. &KEY_PURPOSE_0[0], // Key0 purpose
  580. NULL
  581. };
  582. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_1[] = {
  583. &KEY_PURPOSE_1[0], // Key1 purpose
  584. NULL
  585. };
  586. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_2[] = {
  587. &KEY_PURPOSE_2[0], // Key2 purpose
  588. NULL
  589. };
  590. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_3[] = {
  591. &KEY_PURPOSE_3[0], // Key3 purpose
  592. NULL
  593. };
  594. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_4[] = {
  595. &KEY_PURPOSE_4[0], // Key4 purpose
  596. NULL
  597. };
  598. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_5[] = {
  599. &KEY_PURPOSE_5[0], // Key5 purpose
  600. NULL
  601. };
  602. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_EN[] = {
  603. &SECURE_BOOT_EN[0], // Secure boot enable
  604. NULL
  605. };
  606. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
  607. &SECURE_BOOT_AGGRESSIVE_REVOKE[0], // Enable aggressive secure boot revoke
  608. NULL
  609. };
  610. const esp_efuse_desc_t* ESP_EFUSE_FLASH_TPUW[] = {
  611. &FLASH_TPUW[0], // Flash wait time after power up. (unit is ms). When value is 15. the time is 30 ms
  612. NULL
  613. };
  614. const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_MODE[] = {
  615. &DIS_DOWNLOAD_MODE[0], // Disble download mode include boot_mode[3:0] is 0 1 2 3 6 7
  616. NULL
  617. };
  618. const esp_efuse_desc_t* ESP_EFUSE_DIS_LEGACY_SPI_BOOT[] = {
  619. &DIS_LEGACY_SPI_BOOT[0], // Disable_Legcy_SPI_boot mode include boot_mode[3:0] is 4
  620. NULL
  621. };
  622. const esp_efuse_desc_t* ESP_EFUSE_UART_PRINT_CHANNEL[] = {
  623. &UART_PRINT_CHANNEL[0], // 0: UART0. 1: UART1
  624. NULL
  625. };
  626. const esp_efuse_desc_t* ESP_EFUSE_FLASH_ECC_MODE[] = {
  627. &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
  628. NULL
  629. };
  630. const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_DOWNLOAD_MODE[] = {
  631. &DIS_USB_DOWNLOAD_MODE[0], // Disable download through USB
  632. NULL
  633. };
  634. const esp_efuse_desc_t* ESP_EFUSE_ENABLE_SECURITY_DOWNLOAD[] = {
  635. &ENABLE_SECURITY_DOWNLOAD[0], // Enable security download mode
  636. NULL
  637. };
  638. const esp_efuse_desc_t* ESP_EFUSE_UART_PRINT_CONTROL[] = {
  639. &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.
  640. NULL
  641. };
  642. const esp_efuse_desc_t* ESP_EFUSE_PIN_POWER_SELECTION[] = {
  643. &PIN_POWER_SELECTION[0], // GPIO33-GPIO37 power supply selection in ROM code. 0:VDD3P3_CPU. 1:VDD_SPI.
  644. NULL
  645. };
  646. const esp_efuse_desc_t* ESP_EFUSE_FLASH_TYPE[] = {
  647. &FLASH_TYPE[0], // Connected Flash interface type. 0: 4 data line. 1: 8 data line
  648. NULL
  649. };
  650. const esp_efuse_desc_t* ESP_EFUSE_FLASH_PAGE_SIZE[] = {
  651. &FLASH_PAGE_SIZE[0], // Sets the size of flash page
  652. NULL
  653. };
  654. const esp_efuse_desc_t* ESP_EFUSE_FLASH_ECC_EN[] = {
  655. &FLASH_ECC_EN[0], // Enables ECC in Flash boot mode
  656. NULL
  657. };
  658. const esp_efuse_desc_t* ESP_EFUSE_FORCE_SEND_RESUME[] = {
  659. &FORCE_SEND_RESUME[0], // Force ROM code to send a resume command during SPI boot
  660. NULL
  661. };
  662. const esp_efuse_desc_t* ESP_EFUSE_SECURE_VERSION[] = {
  663. &SECURE_VERSION[0], // Secure version for anti-rollback
  664. NULL
  665. };
  666. const esp_efuse_desc_t* ESP_EFUSE_MAC_FACTORY[] = {
  667. &MAC_FACTORY[0], // Factory MAC addr [0]
  668. &MAC_FACTORY[1], // Factory MAC addr [1]
  669. &MAC_FACTORY[2], // Factory MAC addr [2]
  670. &MAC_FACTORY[3], // Factory MAC addr [3]
  671. &MAC_FACTORY[4], // Factory MAC addr [4]
  672. &MAC_FACTORY[5], // Factory MAC addr [5]
  673. NULL
  674. };
  675. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_CLK[] = {
  676. &SPI_PAD_CONFIG_CLK[0], // SPI_PAD_configure CLK
  677. NULL
  678. };
  679. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_Q_D1[] = {
  680. &SPI_PAD_CONFIG_Q_D1[0], // SPI_PAD_configure Q(D1)
  681. NULL
  682. };
  683. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D_D0[] = {
  684. &SPI_PAD_CONFIG_D_D0[0], // SPI_PAD_configure D(D0)
  685. NULL
  686. };
  687. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_CS[] = {
  688. &SPI_PAD_CONFIG_CS[0], // SPI_PAD_configure CS
  689. NULL
  690. };
  691. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_HD_D3[] = {
  692. &SPI_PAD_CONFIG_HD_D3[0], // SPI_PAD_configure HD(D3)
  693. NULL
  694. };
  695. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_WP_D2[] = {
  696. &SPI_PAD_CONFIG_WP_D2[0], // SPI_PAD_configure WP(D2)
  697. NULL
  698. };
  699. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_DQS[] = {
  700. &SPI_PAD_CONFIG_DQS[0], // SPI_PAD_configure DQS
  701. NULL
  702. };
  703. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D4[] = {
  704. &SPI_PAD_CONFIG_D4[0], // SPI_PAD_configure D4
  705. NULL
  706. };
  707. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D5[] = {
  708. &SPI_PAD_CONFIG_D5[0], // SPI_PAD_configure D5
  709. NULL
  710. };
  711. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D6[] = {
  712. &SPI_PAD_CONFIG_D6[0], // SPI_PAD_configure D6
  713. NULL
  714. };
  715. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D7[] = {
  716. &SPI_PAD_CONFIG_D7[0], // SPI_PAD_configure D7
  717. NULL
  718. };
  719. const esp_efuse_desc_t* ESP_EFUSE_WAFER_VERSION[] = {
  720. &WAFER_VERSION[0], // WAFER version 0:A
  721. NULL
  722. };
  723. const esp_efuse_desc_t* ESP_EFUSE_PKG_VERSION[] = {
  724. &PKG_VERSION[0], // Package version 0:ESP32-S2 1:ESP32-S2FH16 2:ESP32-S2FH32
  725. NULL
  726. };
  727. const esp_efuse_desc_t* ESP_EFUSE_BLOCK1_VERSION[] = {
  728. &BLOCK1_VERSION[0], // BLOCK1 efuse version 0:No calibration 1:With calibration
  729. NULL
  730. };
  731. const esp_efuse_desc_t* ESP_EFUSE_SYS_DATA_PART0[] = {
  732. &SYS_DATA_PART0[0], // System configuration
  733. NULL
  734. };
  735. const esp_efuse_desc_t* ESP_EFUSE_OPTIONAL_UNIQUE_ID[] = {
  736. &OPTIONAL_UNIQUE_ID[0], // Optional unique 128-bit ID
  737. NULL
  738. };
  739. const esp_efuse_desc_t* ESP_EFUSE_BLOCK2_VERSION[] = {
  740. &BLOCK2_VERSION[0], // Version of BLOCK2
  741. NULL
  742. };
  743. const esp_efuse_desc_t* ESP_EFUSE_USER_DATA[] = {
  744. &USER_DATA[0], // User data
  745. NULL
  746. };
  747. const esp_efuse_desc_t* ESP_EFUSE_KEY0[] = {
  748. &KEY0[0], // Key0 or user data
  749. NULL
  750. };
  751. const esp_efuse_desc_t* ESP_EFUSE_KEY1[] = {
  752. &KEY1[0], // Key1 or user data
  753. NULL
  754. };
  755. const esp_efuse_desc_t* ESP_EFUSE_KEY2[] = {
  756. &KEY2[0], // Key2 or user data
  757. NULL
  758. };
  759. const esp_efuse_desc_t* ESP_EFUSE_KEY3[] = {
  760. &KEY3[0], // Key3 or user data
  761. NULL
  762. };
  763. const esp_efuse_desc_t* ESP_EFUSE_KEY4[] = {
  764. &KEY4[0], // Key4 or user data
  765. NULL
  766. };
  767. const esp_efuse_desc_t* ESP_EFUSE_KEY5[] = {
  768. &KEY5[0], // Key5 or user data
  769. NULL
  770. };
  771. const esp_efuse_desc_t* ESP_EFUSE_SYS_DATA_PART2[] = {
  772. &SYS_DATA_PART2[0], // System configuration
  773. NULL
  774. };