esp_efuse_table.c 33 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118
  1. // Copyright 2017-2020 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 61baa79d296df996c838bc2adc1837e5
  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_GROUP_1[] = {
  27. {EFUSE_BLK0, 2, 1}, // Write protection for DIS_ICACHE DIS_DOWNLOAD_ICACHE DIS_FORCE_DOWNLOAD DIS_USB DIS_CAN SOFT_DIS_JTAG DIS_DOWNLOAD_MANUAL_ENCRYPT,
  28. };
  29. static const esp_efuse_desc_t WR_DIS_GROUP_2[] = {
  30. {EFUSE_BLK0, 3, 1}, // Write protection for WDT_DELAY_SEL,
  31. };
  32. static const esp_efuse_desc_t WR_DIS_SPI_BOOT_CRYPT_CNT[] = {
  33. {EFUSE_BLK0, 4, 1}, // Write protection for SPI_BOOT_CRYPT_CNT,
  34. };
  35. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_KEY_REVOKE0[] = {
  36. {EFUSE_BLK0, 5, 1}, // Write protection for SECURE_BOOT_KEY_REVOKE0,
  37. };
  38. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_KEY_REVOKE1[] = {
  39. {EFUSE_BLK0, 6, 1}, // Write protection for SECURE_BOOT_KEY_REVOKE1,
  40. };
  41. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_KEY_REVOKE2[] = {
  42. {EFUSE_BLK0, 7, 1}, // Write protection for SECURE_BOOT_KEY_REVOKE2,
  43. };
  44. static const esp_efuse_desc_t WR_DIS_KEY0_PURPOSE[] = {
  45. {EFUSE_BLK0, 8, 1}, // Write protection for key_purpose. KEY0,
  46. };
  47. static const esp_efuse_desc_t WR_DIS_KEY1_PURPOSE[] = {
  48. {EFUSE_BLK0, 9, 1}, // Write protection for key_purpose. KEY1,
  49. };
  50. static const esp_efuse_desc_t WR_DIS_KEY2_PURPOSE[] = {
  51. {EFUSE_BLK0, 10, 1}, // Write protection for key_purpose. KEY2,
  52. };
  53. static const esp_efuse_desc_t WR_DIS_KEY3_PURPOSE[] = {
  54. {EFUSE_BLK0, 11, 1}, // Write protection for key_purpose. KEY3,
  55. };
  56. static const esp_efuse_desc_t WR_DIS_KEY4_PURPOSE[] = {
  57. {EFUSE_BLK0, 12, 1}, // Write protection for key_purpose. KEY4,
  58. };
  59. static const esp_efuse_desc_t WR_DIS_KEY5_PURPOSE[] = {
  60. {EFUSE_BLK0, 13, 1}, // Write protection for key_purpose. KEY5,
  61. };
  62. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_EN[] = {
  63. {EFUSE_BLK0, 15, 1}, // Write protection for SECURE_BOOT_EN,
  64. };
  65. static const esp_efuse_desc_t WR_DIS_SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
  66. {EFUSE_BLK0, 16, 1}, // Write protection for SECURE_BOOT_AGGRESSIVE_REVOKE,
  67. };
  68. static const esp_efuse_desc_t WR_DIS_GROUP_3[] = {
  69. {EFUSE_BLK0, 18, 1}, // Write protection for FLASH_TPUW DIS_DOWNLOAD_MODE DIS_LEGACY_SPI_BOOT UART_PRINT_CHANNEL DIS_TINY_BASIC DIS_USB_DOWNLOAD_MODE ENABLE_SECURITY_DOWNLOAD UART_PRINT_CONTROL PIN_POWER_SELECTION FLASH_TYPE FORCE_SEND_RESUME SECURE_VERSION,
  70. };
  71. static const esp_efuse_desc_t WR_DIS_BLK1[] = {
  72. {EFUSE_BLK0, 20, 1}, // Write protection for EFUSE_BLK1. MAC_SPI_8M_SYS,
  73. };
  74. static const esp_efuse_desc_t WR_DIS_SYS_DATA_PART1[] = {
  75. {EFUSE_BLK0, 21, 1}, // Write protection for EFUSE_BLK2. SYS_DATA_PART1,
  76. };
  77. static const esp_efuse_desc_t WR_DIS_USER_DATA[] = {
  78. {EFUSE_BLK0, 22, 1}, // Write protection for EFUSE_BLK3. USER_DATA,
  79. };
  80. static const esp_efuse_desc_t WR_DIS_KEY0[] = {
  81. {EFUSE_BLK0, 23, 1}, // Write protection for EFUSE_BLK4. KEY0,
  82. };
  83. static const esp_efuse_desc_t WR_DIS_KEY1[] = {
  84. {EFUSE_BLK0, 24, 1}, // Write protection for EFUSE_BLK5. KEY1,
  85. };
  86. static const esp_efuse_desc_t WR_DIS_KEY2[] = {
  87. {EFUSE_BLK0, 25, 1}, // Write protection for EFUSE_BLK6. KEY2,
  88. };
  89. static const esp_efuse_desc_t WR_DIS_KEY3[] = {
  90. {EFUSE_BLK0, 26, 1}, // Write protection for EFUSE_BLK7. KEY3,
  91. };
  92. static const esp_efuse_desc_t WR_DIS_KEY4[] = {
  93. {EFUSE_BLK0, 27, 1}, // Write protection for EFUSE_BLK8. KEY4,
  94. };
  95. static const esp_efuse_desc_t WR_DIS_KEY5[] = {
  96. {EFUSE_BLK0, 28, 1}, // Write protection for EFUSE_BLK9. KEY5,
  97. };
  98. static const esp_efuse_desc_t WR_DIS_SYS_DATA_PART2[] = {
  99. {EFUSE_BLK0, 29, 1}, // Write protection for EFUSE_BLK10. SYS_DATA_PART2,
  100. };
  101. static const esp_efuse_desc_t RD_DIS_KEY0[] = {
  102. {EFUSE_BLK0, 32, 1}, // Read protection for EFUSE_BLK4. KEY0,
  103. };
  104. static const esp_efuse_desc_t RD_DIS_KEY1[] = {
  105. {EFUSE_BLK0, 33, 1}, // Read protection for EFUSE_BLK5. KEY1,
  106. };
  107. static const esp_efuse_desc_t RD_DIS_KEY2[] = {
  108. {EFUSE_BLK0, 34, 1}, // Read protection for EFUSE_BLK6. KEY2,
  109. };
  110. static const esp_efuse_desc_t RD_DIS_KEY3[] = {
  111. {EFUSE_BLK0, 35, 1}, // Read protection for EFUSE_BLK7. KEY3,
  112. };
  113. static const esp_efuse_desc_t RD_DIS_KEY4[] = {
  114. {EFUSE_BLK0, 36, 1}, // Read protection for EFUSE_BLK8. KEY4,
  115. };
  116. static const esp_efuse_desc_t RD_DIS_KEY5[] = {
  117. {EFUSE_BLK0, 37, 1}, // Read protection for EFUSE_BLK9. KEY5,
  118. };
  119. static const esp_efuse_desc_t RD_DIS_SYS_DATA_PART2[] = {
  120. {EFUSE_BLK0, 38, 1}, // Read protection for EFUSE_BLK10. SYS_DATA_PART2,
  121. };
  122. static const esp_efuse_desc_t DIS_RTC_RAM_BOOT[] = {
  123. {EFUSE_BLK0, 39, 1}, // Disable boot from RTC RAM,
  124. };
  125. static const esp_efuse_desc_t DIS_ICACHE[] = {
  126. {EFUSE_BLK0, 40, 1}, // Disable Icache,
  127. };
  128. static const esp_efuse_desc_t DIS_USB_JTAG[] = {
  129. {EFUSE_BLK0, 41, 1}, // Disable USB JTAG,
  130. };
  131. static const esp_efuse_desc_t DIS_DOWNLOAD_ICACHE[] = {
  132. {EFUSE_BLK0, 42, 1}, // Disable Icache in download mode,
  133. };
  134. static const esp_efuse_desc_t DIS_USB_DEVICE[] = {
  135. {EFUSE_BLK0, 43, 1}, // Disable USB_DEVICE,
  136. };
  137. static const esp_efuse_desc_t DIS_FORCE_DOWNLOAD[] = {
  138. {EFUSE_BLK0, 44, 1}, // Disable force chip go to download mode function,
  139. };
  140. static const esp_efuse_desc_t DIS_USB[] = {
  141. {EFUSE_BLK0, 45, 1}, // Disable USB function,
  142. };
  143. static const esp_efuse_desc_t DIS_CAN[] = {
  144. {EFUSE_BLK0, 46, 1}, // Disable CAN function,
  145. };
  146. static const esp_efuse_desc_t JTAG_SEL_ENABLE[] = {
  147. {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.,
  148. };
  149. static const esp_efuse_desc_t SOFT_DIS_JTAG[] = {
  150. {EFUSE_BLK0, 48, 2}, // Set these bits to disable JTAG in the soft way (odd number 1 means disable). JTAG can be enabled in HMAC module.,
  151. };
  152. static const esp_efuse_desc_t DIS_PAD_JTAG[] = {
  153. {EFUSE_BLK0, 51, 1}, // Disable JTAG in the hard way. JTAG is disabled permanently.,
  154. };
  155. static const esp_efuse_desc_t DIS_DOWNLOAD_MANUAL_ENCRYPT[] = {
  156. {EFUSE_BLK0, 52, 1}, // Disable flash encryption when in download boot modes.,
  157. };
  158. static const esp_efuse_desc_t USB_DREFH[] = {
  159. {EFUSE_BLK0, 53, 2}, // Controls single-end input threshold vrefh 1.76 V to 2 V with step of 80 mV stored in eFuse.,
  160. };
  161. static const esp_efuse_desc_t USB_DREFL[] = {
  162. {EFUSE_BLK0, 55, 2}, // Controls single-end input threshold vrefl 0.8 V to 1.04 V with step of 80 mV stored in eFuse.,
  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 VDD_SPI_AS_GPIO[] = {
  168. {EFUSE_BLK0, 58, 1}, // Set this bit to vdd spi pin function as gpio,
  169. };
  170. static const esp_efuse_desc_t BTLC_GPIO_ENABLE[] = {
  171. {EFUSE_BLK0, 59, 2}, // Enable btlc gpio,
  172. };
  173. static const esp_efuse_desc_t POWERGLITCH_EN[] = {
  174. {EFUSE_BLK0, 61, 1}, // Set this bit to enable power glitch function,
  175. };
  176. static const esp_efuse_desc_t POWER_GLITCH_DSENSE[] = {
  177. {EFUSE_BLK0, 62, 2}, // Sample delay configuration of power glitch,
  178. };
  179. static const esp_efuse_desc_t WDT_DELAY_SEL[] = {
  180. {EFUSE_BLK0, 80, 2}, // Select RTC WDT time out threshold,
  181. };
  182. static const esp_efuse_desc_t SPI_BOOT_CRYPT_CNT[] = {
  183. {EFUSE_BLK0, 82, 3}, // SPI boot encrypt decrypt enable. odd number 1 enable. even number 1 disable,
  184. };
  185. static const esp_efuse_desc_t SECURE_BOOT_KEY_REVOKE0[] = {
  186. {EFUSE_BLK0, 85, 1}, // Enable revoke first secure boot key,
  187. };
  188. static const esp_efuse_desc_t SECURE_BOOT_KEY_REVOKE1[] = {
  189. {EFUSE_BLK0, 86, 1}, // Enable revoke second secure boot key,
  190. };
  191. static const esp_efuse_desc_t SECURE_BOOT_KEY_REVOKE2[] = {
  192. {EFUSE_BLK0, 87, 1}, // Enable revoke third secure boot key,
  193. };
  194. static const esp_efuse_desc_t KEY_PURPOSE_0[] = {
  195. {EFUSE_BLK0, 88, 4}, // Key0 purpose,
  196. };
  197. static const esp_efuse_desc_t KEY_PURPOSE_1[] = {
  198. {EFUSE_BLK0, 92, 4}, // Key1 purpose,
  199. };
  200. static const esp_efuse_desc_t KEY_PURPOSE_2[] = {
  201. {EFUSE_BLK0, 96, 4}, // Key2 purpose,
  202. };
  203. static const esp_efuse_desc_t KEY_PURPOSE_3[] = {
  204. {EFUSE_BLK0, 100, 4}, // Key3 purpose,
  205. };
  206. static const esp_efuse_desc_t KEY_PURPOSE_4[] = {
  207. {EFUSE_BLK0, 104, 4}, // Key4 purpose,
  208. };
  209. static const esp_efuse_desc_t KEY_PURPOSE_5[] = {
  210. {EFUSE_BLK0, 108, 4}, // Key5 purpose,
  211. };
  212. static const esp_efuse_desc_t SECURE_BOOT_EN[] = {
  213. {EFUSE_BLK0, 116, 1}, // Secure boot enable,
  214. };
  215. static const esp_efuse_desc_t SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
  216. {EFUSE_BLK0, 117, 1}, // Enable aggressive secure boot revoke,
  217. };
  218. static const esp_efuse_desc_t FLASH_TPUW[] = {
  219. {EFUSE_BLK0, 124, 4}, // Flash wait time after power up. (unit is ms). When value is 15. the time is 30 ms,
  220. };
  221. static const esp_efuse_desc_t DIS_DOWNLOAD_MODE[] = {
  222. {EFUSE_BLK0, 128, 1}, // Disble download mode include boot_mode[3:0] is 0 1 2 3 6 7,
  223. };
  224. static const esp_efuse_desc_t DIS_LEGACY_SPI_BOOT[] = {
  225. {EFUSE_BLK0, 129, 1}, // Disable_Legcy_SPI_boot mode include boot_mode[3:0] is 4,
  226. };
  227. static const esp_efuse_desc_t UART_PRINT_CHANNEL[] = {
  228. {EFUSE_BLK0, 130, 1}, // 0: UART0. 1: UART1,
  229. };
  230. static const esp_efuse_desc_t FLASH_ECC_MODE[] = {
  231. {EFUSE_BLK0, 131, 1}, // Set this bit to set flsah ecc mode. 0:flash ecc 16to18 byte mode. 1:flash ecc 16to17 byte mode,
  232. };
  233. static const esp_efuse_desc_t DIS_USB_DOWNLOAD_MODE[] = {
  234. {EFUSE_BLK0, 132, 1}, // Disable download through USB,
  235. };
  236. static const esp_efuse_desc_t ENABLE_SECURITY_DOWNLOAD[] = {
  237. {EFUSE_BLK0, 133, 1}, // Enable security download mode,
  238. };
  239. static const esp_efuse_desc_t UART_PRINT_CONTROL[] = {
  240. {EFUSE_BLK0, 134, 2}, // b00:force print. b01:control by GPIO8 - low level print. b10:control by GPIO8 - high level print. b11:force disable print.,
  241. };
  242. static const esp_efuse_desc_t PIN_POWER_SELECTION[] = {
  243. {EFUSE_BLK0, 136, 1}, // GPIO33-GPIO37 power supply selection in ROM code. 0:VDD3P3_CPU. 1:VDD_SPI.,
  244. };
  245. static const esp_efuse_desc_t FLASH_TYPE[] = {
  246. {EFUSE_BLK0, 137, 1}, // Connected Flash interface type. 0: 4 data line. 1: 8 data line,
  247. };
  248. static const esp_efuse_desc_t FLASH_PAGE_SIZE[] = {
  249. {EFUSE_BLK0, 138, 2}, // Flash page size,
  250. };
  251. static const esp_efuse_desc_t FLASH_ECC_EN[] = {
  252. {EFUSE_BLK0, 140, 1}, // Enable ECC for flash boot,
  253. };
  254. static const esp_efuse_desc_t FORCE_SEND_RESUME[] = {
  255. {EFUSE_BLK0, 141, 1}, // Force ROM code to send a resume command during SPI boot,
  256. };
  257. static const esp_efuse_desc_t SECURE_VERSION[] = {
  258. {EFUSE_BLK0, 142, 16}, // Secure version for anti-rollback,
  259. };
  260. static const esp_efuse_desc_t MAC_FACTORY[] = {
  261. {EFUSE_BLK1, 40, 8}, // Factory MAC addr [0],
  262. {EFUSE_BLK1, 32, 8}, // Factory MAC addr [1],
  263. {EFUSE_BLK1, 24, 8}, // Factory MAC addr [2],
  264. {EFUSE_BLK1, 16, 8}, // Factory MAC addr [3],
  265. {EFUSE_BLK1, 8, 8}, // Factory MAC addr [4],
  266. {EFUSE_BLK1, 0, 8}, // Factory MAC addr [5],
  267. };
  268. static const esp_efuse_desc_t SPI_PAD_CONFIG_CLK[] = {
  269. {EFUSE_BLK1, 48, 6}, // SPI_PAD_configure CLK,
  270. };
  271. static const esp_efuse_desc_t SPI_PAD_CONFIG_Q_D1[] = {
  272. {EFUSE_BLK1, 54, 6}, // SPI_PAD_configure Q(D1),
  273. };
  274. static const esp_efuse_desc_t SPI_PAD_CONFIG_D_D0[] = {
  275. {EFUSE_BLK1, 60, 6}, // SPI_PAD_configure D(D0),
  276. };
  277. static const esp_efuse_desc_t SPI_PAD_CONFIG_CS[] = {
  278. {EFUSE_BLK1, 66, 6}, // SPI_PAD_configure CS,
  279. };
  280. static const esp_efuse_desc_t SPI_PAD_CONFIG_HD_D3[] = {
  281. {EFUSE_BLK1, 72, 6}, // SPI_PAD_configure HD(D3),
  282. };
  283. static const esp_efuse_desc_t SPI_PAD_CONFIG_WP_D2[] = {
  284. {EFUSE_BLK1, 78, 6}, // SPI_PAD_configure WP(D2),
  285. };
  286. static const esp_efuse_desc_t SPI_PAD_CONFIG_DQS[] = {
  287. {EFUSE_BLK1, 84, 6}, // SPI_PAD_configure DQS,
  288. };
  289. static const esp_efuse_desc_t SPI_PAD_CONFIG_D4[] = {
  290. {EFUSE_BLK1, 90, 6}, // SPI_PAD_configure D4,
  291. };
  292. static const esp_efuse_desc_t SPI_PAD_CONFIG_D5[] = {
  293. {EFUSE_BLK1, 96, 6}, // SPI_PAD_configure D5,
  294. };
  295. static const esp_efuse_desc_t SPI_PAD_CONFIG_D6[] = {
  296. {EFUSE_BLK1, 102, 6}, // SPI_PAD_configure D6,
  297. };
  298. static const esp_efuse_desc_t SPI_PAD_CONFIG_D7[] = {
  299. {EFUSE_BLK1, 108, 6}, // SPI_PAD_configure D7,
  300. };
  301. static const esp_efuse_desc_t WAFER_VERSION[] = {
  302. {EFUSE_BLK1, 114, 3}, // WAFER version,
  303. };
  304. static const esp_efuse_desc_t PKG_VERSION[] = {
  305. {EFUSE_BLK1, 117, 3}, // Package version 0:ESP32C3,
  306. };
  307. static const esp_efuse_desc_t BLOCK1_VERSION[] = {
  308. {EFUSE_BLK1, 120, 3}, // BLOCK1 efuse version,
  309. };
  310. static const esp_efuse_desc_t OPTIONAL_UNIQUE_ID[] = {
  311. {EFUSE_BLK2, 0, 128}, // Optional unique 128-bit ID,
  312. };
  313. static const esp_efuse_desc_t BLOCK2_VERSION[] = {
  314. {EFUSE_BLK2, 128, 3}, // Version of BLOCK2,
  315. };
  316. static const esp_efuse_desc_t TEMP_CALIB[] = {
  317. {EFUSE_BLK2, 131, 9}, // Temperature calibration data,
  318. };
  319. static const esp_efuse_desc_t OCODE[] = {
  320. {EFUSE_BLK2, 140, 8}, // ADC OCode,
  321. };
  322. static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN0[] = {
  323. {EFUSE_BLK2, 148, 10}, // ADC1 init code at atten0,
  324. };
  325. static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN1[] = {
  326. {EFUSE_BLK2, 158, 10}, // ADC1 init code at atten1,
  327. };
  328. static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN2[] = {
  329. {EFUSE_BLK2, 168, 10}, // ADC1 init code at atten2,
  330. };
  331. static const esp_efuse_desc_t ADC1_INIT_CODE_ATTEN3[] = {
  332. {EFUSE_BLK2, 178, 10}, // ADC1 init code at atten3,
  333. };
  334. static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN0[] = {
  335. {EFUSE_BLK2, 188, 10}, // ADC1 calibration voltage at atten0,
  336. };
  337. static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN1[] = {
  338. {EFUSE_BLK2, 198, 10}, // ADC1 calibration voltage at atten1,
  339. };
  340. static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN2[] = {
  341. {EFUSE_BLK2, 208, 10}, // ADC1 calibration voltage at atten2,
  342. };
  343. static const esp_efuse_desc_t ADC1_CAL_VOL_ATTEN3[] = {
  344. {EFUSE_BLK2, 218, 10}, // ADC1 calibration voltage at atten3,
  345. };
  346. static const esp_efuse_desc_t USER_DATA[] = {
  347. {EFUSE_BLK3, 0, 256}, // User data,
  348. };
  349. static const esp_efuse_desc_t KEY0[] = {
  350. {EFUSE_BLK4, 0, 256}, // Key0 or user data,
  351. };
  352. static const esp_efuse_desc_t KEY1[] = {
  353. {EFUSE_BLK5, 0, 256}, // Key1 or user data,
  354. };
  355. static const esp_efuse_desc_t KEY2[] = {
  356. {EFUSE_BLK6, 0, 256}, // Key2 or user data,
  357. };
  358. static const esp_efuse_desc_t KEY3[] = {
  359. {EFUSE_BLK7, 0, 256}, // Key3 or user data,
  360. };
  361. static const esp_efuse_desc_t KEY4[] = {
  362. {EFUSE_BLK8, 0, 256}, // Key4 or user data,
  363. };
  364. static const esp_efuse_desc_t KEY5[] = {
  365. {EFUSE_BLK9, 0, 256}, // Key5 or user data,
  366. };
  367. static const esp_efuse_desc_t SYS_DATA_PART2[] = {
  368. {EFUSE_BLK10, 0, 256}, // System configuration,
  369. };
  370. static const esp_efuse_desc_t K_RTC_LDO[] = {
  371. {EFUSE_BLK1, 135, 7}, // BLOCK1 K_RTC_LDO,
  372. };
  373. static const esp_efuse_desc_t K_DIG_LDO[] = {
  374. {EFUSE_BLK1, 142, 7}, // BLOCK1 K_DIG_LDO,
  375. };
  376. static const esp_efuse_desc_t V_RTC_DBIAS20[] = {
  377. {EFUSE_BLK1, 149, 8}, // BLOCK1 voltage of rtc dbias20,
  378. };
  379. static const esp_efuse_desc_t V_DIG_DBIAS20[] = {
  380. {EFUSE_BLK1, 157, 8}, // BLOCK1 voltage of digital dbias20,
  381. };
  382. static const esp_efuse_desc_t DIG_DBIAS_HVT[] = {
  383. {EFUSE_BLK1, 165, 5}, // BLOCK1 digital dbias when hvt,
  384. };
  385. static const esp_efuse_desc_t THRES_HVT[] = {
  386. {EFUSE_BLK1, 170, 10}, // BLOCK1 pvt threshold when hvt,
  387. };
  388. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_RD_DIS[] = {
  389. &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
  390. NULL
  391. };
  392. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_GROUP_1[] = {
  393. &WR_DIS_GROUP_1[0], // Write protection for DIS_ICACHE DIS_DOWNLOAD_ICACHE DIS_FORCE_DOWNLOAD DIS_USB DIS_CAN SOFT_DIS_JTAG DIS_DOWNLOAD_MANUAL_ENCRYPT
  394. NULL
  395. };
  396. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_GROUP_2[] = {
  397. &WR_DIS_GROUP_2[0], // Write protection for WDT_DELAY_SEL
  398. NULL
  399. };
  400. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SPI_BOOT_CRYPT_CNT[] = {
  401. &WR_DIS_SPI_BOOT_CRYPT_CNT[0], // Write protection for SPI_BOOT_CRYPT_CNT
  402. NULL
  403. };
  404. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_KEY_REVOKE0[] = {
  405. &WR_DIS_SECURE_BOOT_KEY_REVOKE0[0], // Write protection for SECURE_BOOT_KEY_REVOKE0
  406. NULL
  407. };
  408. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_KEY_REVOKE1[] = {
  409. &WR_DIS_SECURE_BOOT_KEY_REVOKE1[0], // Write protection for SECURE_BOOT_KEY_REVOKE1
  410. NULL
  411. };
  412. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_KEY_REVOKE2[] = {
  413. &WR_DIS_SECURE_BOOT_KEY_REVOKE2[0], // Write protection for SECURE_BOOT_KEY_REVOKE2
  414. NULL
  415. };
  416. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY0_PURPOSE[] = {
  417. &WR_DIS_KEY0_PURPOSE[0], // Write protection for key_purpose. KEY0
  418. NULL
  419. };
  420. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY1_PURPOSE[] = {
  421. &WR_DIS_KEY1_PURPOSE[0], // Write protection for key_purpose. KEY1
  422. NULL
  423. };
  424. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY2_PURPOSE[] = {
  425. &WR_DIS_KEY2_PURPOSE[0], // Write protection for key_purpose. KEY2
  426. NULL
  427. };
  428. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY3_PURPOSE[] = {
  429. &WR_DIS_KEY3_PURPOSE[0], // Write protection for key_purpose. KEY3
  430. NULL
  431. };
  432. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY4_PURPOSE[] = {
  433. &WR_DIS_KEY4_PURPOSE[0], // Write protection for key_purpose. KEY4
  434. NULL
  435. };
  436. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY5_PURPOSE[] = {
  437. &WR_DIS_KEY5_PURPOSE[0], // Write protection for key_purpose. KEY5
  438. NULL
  439. };
  440. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_EN[] = {
  441. &WR_DIS_SECURE_BOOT_EN[0], // Write protection for SECURE_BOOT_EN
  442. NULL
  443. };
  444. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
  445. &WR_DIS_SECURE_BOOT_AGGRESSIVE_REVOKE[0], // Write protection for SECURE_BOOT_AGGRESSIVE_REVOKE
  446. NULL
  447. };
  448. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_GROUP_3[] = {
  449. &WR_DIS_GROUP_3[0], // Write protection for FLASH_TPUW DIS_DOWNLOAD_MODE DIS_LEGACY_SPI_BOOT UART_PRINT_CHANNEL DIS_TINY_BASIC DIS_USB_DOWNLOAD_MODE ENABLE_SECURITY_DOWNLOAD UART_PRINT_CONTROL PIN_POWER_SELECTION FLASH_TYPE FORCE_SEND_RESUME SECURE_VERSION
  450. NULL
  451. };
  452. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_BLK1[] = {
  453. &WR_DIS_BLK1[0], // Write protection for EFUSE_BLK1. MAC_SPI_8M_SYS
  454. NULL
  455. };
  456. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SYS_DATA_PART1[] = {
  457. &WR_DIS_SYS_DATA_PART1[0], // Write protection for EFUSE_BLK2. SYS_DATA_PART1
  458. NULL
  459. };
  460. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_USER_DATA[] = {
  461. &WR_DIS_USER_DATA[0], // Write protection for EFUSE_BLK3. USER_DATA
  462. NULL
  463. };
  464. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY0[] = {
  465. &WR_DIS_KEY0[0], // Write protection for EFUSE_BLK4. KEY0
  466. NULL
  467. };
  468. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY1[] = {
  469. &WR_DIS_KEY1[0], // Write protection for EFUSE_BLK5. KEY1
  470. NULL
  471. };
  472. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY2[] = {
  473. &WR_DIS_KEY2[0], // Write protection for EFUSE_BLK6. KEY2
  474. NULL
  475. };
  476. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY3[] = {
  477. &WR_DIS_KEY3[0], // Write protection for EFUSE_BLK7. KEY3
  478. NULL
  479. };
  480. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY4[] = {
  481. &WR_DIS_KEY4[0], // Write protection for EFUSE_BLK8. KEY4
  482. NULL
  483. };
  484. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_KEY5[] = {
  485. &WR_DIS_KEY5[0], // Write protection for EFUSE_BLK9. KEY5
  486. NULL
  487. };
  488. const esp_efuse_desc_t* ESP_EFUSE_WR_DIS_SYS_DATA_PART2[] = {
  489. &WR_DIS_SYS_DATA_PART2[0], // Write protection for EFUSE_BLK10. SYS_DATA_PART2
  490. NULL
  491. };
  492. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY0[] = {
  493. &RD_DIS_KEY0[0], // Read protection for EFUSE_BLK4. KEY0
  494. NULL
  495. };
  496. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY1[] = {
  497. &RD_DIS_KEY1[0], // Read protection for EFUSE_BLK5. KEY1
  498. NULL
  499. };
  500. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY2[] = {
  501. &RD_DIS_KEY2[0], // Read protection for EFUSE_BLK6. KEY2
  502. NULL
  503. };
  504. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY3[] = {
  505. &RD_DIS_KEY3[0], // Read protection for EFUSE_BLK7. KEY3
  506. NULL
  507. };
  508. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY4[] = {
  509. &RD_DIS_KEY4[0], // Read protection for EFUSE_BLK8. KEY4
  510. NULL
  511. };
  512. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_KEY5[] = {
  513. &RD_DIS_KEY5[0], // Read protection for EFUSE_BLK9. KEY5
  514. NULL
  515. };
  516. const esp_efuse_desc_t* ESP_EFUSE_RD_DIS_SYS_DATA_PART2[] = {
  517. &RD_DIS_SYS_DATA_PART2[0], // Read protection for EFUSE_BLK10. SYS_DATA_PART2
  518. NULL
  519. };
  520. const esp_efuse_desc_t* ESP_EFUSE_DIS_RTC_RAM_BOOT[] = {
  521. &DIS_RTC_RAM_BOOT[0], // Disable boot from RTC RAM
  522. NULL
  523. };
  524. const esp_efuse_desc_t* ESP_EFUSE_DIS_ICACHE[] = {
  525. &DIS_ICACHE[0], // Disable Icache
  526. NULL
  527. };
  528. const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_JTAG[] = {
  529. &DIS_USB_JTAG[0], // Disable USB JTAG
  530. NULL
  531. };
  532. const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_ICACHE[] = {
  533. &DIS_DOWNLOAD_ICACHE[0], // Disable Icache in download mode
  534. NULL
  535. };
  536. const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_DEVICE[] = {
  537. &DIS_USB_DEVICE[0], // Disable USB_DEVICE
  538. NULL
  539. };
  540. const esp_efuse_desc_t* ESP_EFUSE_DIS_FORCE_DOWNLOAD[] = {
  541. &DIS_FORCE_DOWNLOAD[0], // Disable force chip go to download mode function
  542. NULL
  543. };
  544. const esp_efuse_desc_t* ESP_EFUSE_DIS_USB[] = {
  545. &DIS_USB[0], // Disable USB function
  546. NULL
  547. };
  548. const esp_efuse_desc_t* ESP_EFUSE_DIS_CAN[] = {
  549. &DIS_CAN[0], // Disable CAN function
  550. NULL
  551. };
  552. const esp_efuse_desc_t* ESP_EFUSE_JTAG_SEL_ENABLE[] = {
  553. &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.
  554. NULL
  555. };
  556. const esp_efuse_desc_t* ESP_EFUSE_SOFT_DIS_JTAG[] = {
  557. &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.
  558. NULL
  559. };
  560. const esp_efuse_desc_t* ESP_EFUSE_DIS_PAD_JTAG[] = {
  561. &DIS_PAD_JTAG[0], // Disable JTAG in the hard way. JTAG is disabled permanently.
  562. NULL
  563. };
  564. const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_MANUAL_ENCRYPT[] = {
  565. &DIS_DOWNLOAD_MANUAL_ENCRYPT[0], // Disable flash encryption when in download boot modes.
  566. NULL
  567. };
  568. const esp_efuse_desc_t* ESP_EFUSE_USB_DREFH[] = {
  569. &USB_DREFH[0], // Controls single-end input threshold vrefh 1.76 V to 2 V with step of 80 mV stored in eFuse.
  570. NULL
  571. };
  572. const esp_efuse_desc_t* ESP_EFUSE_USB_DREFL[] = {
  573. &USB_DREFL[0], // Controls single-end input threshold vrefl 0.8 V to 1.04 V with step of 80 mV stored in eFuse.
  574. NULL
  575. };
  576. const esp_efuse_desc_t* ESP_EFUSE_USB_EXCHG_PINS[] = {
  577. &USB_EXCHG_PINS[0], // Exchange D+ D- pins
  578. NULL
  579. };
  580. const esp_efuse_desc_t* ESP_EFUSE_VDD_SPI_AS_GPIO[] = {
  581. &VDD_SPI_AS_GPIO[0], // Set this bit to vdd spi pin function as gpio
  582. NULL
  583. };
  584. const esp_efuse_desc_t* ESP_EFUSE_BTLC_GPIO_ENABLE[] = {
  585. &BTLC_GPIO_ENABLE[0], // Enable btlc gpio
  586. NULL
  587. };
  588. const esp_efuse_desc_t* ESP_EFUSE_POWERGLITCH_EN[] = {
  589. &POWERGLITCH_EN[0], // Set this bit to enable power glitch function
  590. NULL
  591. };
  592. const esp_efuse_desc_t* ESP_EFUSE_POWER_GLITCH_DSENSE[] = {
  593. &POWER_GLITCH_DSENSE[0], // Sample delay configuration of power glitch
  594. NULL
  595. };
  596. const esp_efuse_desc_t* ESP_EFUSE_WDT_DELAY_SEL[] = {
  597. &WDT_DELAY_SEL[0], // Select RTC WDT time out threshold
  598. NULL
  599. };
  600. const esp_efuse_desc_t* ESP_EFUSE_SPI_BOOT_CRYPT_CNT[] = {
  601. &SPI_BOOT_CRYPT_CNT[0], // SPI boot encrypt decrypt enable. odd number 1 enable. even number 1 disable
  602. NULL
  603. };
  604. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_KEY_REVOKE0[] = {
  605. &SECURE_BOOT_KEY_REVOKE0[0], // Enable revoke first secure boot key
  606. NULL
  607. };
  608. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_KEY_REVOKE1[] = {
  609. &SECURE_BOOT_KEY_REVOKE1[0], // Enable revoke second secure boot key
  610. NULL
  611. };
  612. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_KEY_REVOKE2[] = {
  613. &SECURE_BOOT_KEY_REVOKE2[0], // Enable revoke third secure boot key
  614. NULL
  615. };
  616. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_0[] = {
  617. &KEY_PURPOSE_0[0], // Key0 purpose
  618. NULL
  619. };
  620. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_1[] = {
  621. &KEY_PURPOSE_1[0], // Key1 purpose
  622. NULL
  623. };
  624. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_2[] = {
  625. &KEY_PURPOSE_2[0], // Key2 purpose
  626. NULL
  627. };
  628. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_3[] = {
  629. &KEY_PURPOSE_3[0], // Key3 purpose
  630. NULL
  631. };
  632. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_4[] = {
  633. &KEY_PURPOSE_4[0], // Key4 purpose
  634. NULL
  635. };
  636. const esp_efuse_desc_t* ESP_EFUSE_KEY_PURPOSE_5[] = {
  637. &KEY_PURPOSE_5[0], // Key5 purpose
  638. NULL
  639. };
  640. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_EN[] = {
  641. &SECURE_BOOT_EN[0], // Secure boot enable
  642. NULL
  643. };
  644. const esp_efuse_desc_t* ESP_EFUSE_SECURE_BOOT_AGGRESSIVE_REVOKE[] = {
  645. &SECURE_BOOT_AGGRESSIVE_REVOKE[0], // Enable aggressive secure boot revoke
  646. NULL
  647. };
  648. const esp_efuse_desc_t* ESP_EFUSE_FLASH_TPUW[] = {
  649. &FLASH_TPUW[0], // Flash wait time after power up. (unit is ms). When value is 15. the time is 30 ms
  650. NULL
  651. };
  652. const esp_efuse_desc_t* ESP_EFUSE_DIS_DOWNLOAD_MODE[] = {
  653. &DIS_DOWNLOAD_MODE[0], // Disble download mode include boot_mode[3:0] is 0 1 2 3 6 7
  654. NULL
  655. };
  656. const esp_efuse_desc_t* ESP_EFUSE_DIS_LEGACY_SPI_BOOT[] = {
  657. &DIS_LEGACY_SPI_BOOT[0], // Disable_Legcy_SPI_boot mode include boot_mode[3:0] is 4
  658. NULL
  659. };
  660. const esp_efuse_desc_t* ESP_EFUSE_UART_PRINT_CHANNEL[] = {
  661. &UART_PRINT_CHANNEL[0], // 0: UART0. 1: UART1
  662. NULL
  663. };
  664. const esp_efuse_desc_t* ESP_EFUSE_FLASH_ECC_MODE[] = {
  665. &FLASH_ECC_MODE[0], // Set this bit to set flsah ecc mode. 0:flash ecc 16to18 byte mode. 1:flash ecc 16to17 byte mode
  666. NULL
  667. };
  668. const esp_efuse_desc_t* ESP_EFUSE_DIS_USB_DOWNLOAD_MODE[] = {
  669. &DIS_USB_DOWNLOAD_MODE[0], // Disable download through USB
  670. NULL
  671. };
  672. const esp_efuse_desc_t* ESP_EFUSE_ENABLE_SECURITY_DOWNLOAD[] = {
  673. &ENABLE_SECURITY_DOWNLOAD[0], // Enable security download mode
  674. NULL
  675. };
  676. const esp_efuse_desc_t* ESP_EFUSE_UART_PRINT_CONTROL[] = {
  677. &UART_PRINT_CONTROL[0], // b00:force print. b01:control by GPIO8 - low level print. b10:control by GPIO8 - high level print. b11:force disable print.
  678. NULL
  679. };
  680. const esp_efuse_desc_t* ESP_EFUSE_PIN_POWER_SELECTION[] = {
  681. &PIN_POWER_SELECTION[0], // GPIO33-GPIO37 power supply selection in ROM code. 0:VDD3P3_CPU. 1:VDD_SPI.
  682. NULL
  683. };
  684. const esp_efuse_desc_t* ESP_EFUSE_FLASH_TYPE[] = {
  685. &FLASH_TYPE[0], // Connected Flash interface type. 0: 4 data line. 1: 8 data line
  686. NULL
  687. };
  688. const esp_efuse_desc_t* ESP_EFUSE_FLASH_PAGE_SIZE[] = {
  689. &FLASH_PAGE_SIZE[0], // Flash page size
  690. NULL
  691. };
  692. const esp_efuse_desc_t* ESP_EFUSE_FLASH_ECC_EN[] = {
  693. &FLASH_ECC_EN[0], // Enable ECC for flash boot
  694. NULL
  695. };
  696. const esp_efuse_desc_t* ESP_EFUSE_FORCE_SEND_RESUME[] = {
  697. &FORCE_SEND_RESUME[0], // Force ROM code to send a resume command during SPI boot
  698. NULL
  699. };
  700. const esp_efuse_desc_t* ESP_EFUSE_SECURE_VERSION[] = {
  701. &SECURE_VERSION[0], // Secure version for anti-rollback
  702. NULL
  703. };
  704. const esp_efuse_desc_t* ESP_EFUSE_MAC_FACTORY[] = {
  705. &MAC_FACTORY[0], // Factory MAC addr [0]
  706. &MAC_FACTORY[1], // Factory MAC addr [1]
  707. &MAC_FACTORY[2], // Factory MAC addr [2]
  708. &MAC_FACTORY[3], // Factory MAC addr [3]
  709. &MAC_FACTORY[4], // Factory MAC addr [4]
  710. &MAC_FACTORY[5], // Factory MAC addr [5]
  711. NULL
  712. };
  713. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_CLK[] = {
  714. &SPI_PAD_CONFIG_CLK[0], // SPI_PAD_configure CLK
  715. NULL
  716. };
  717. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_Q_D1[] = {
  718. &SPI_PAD_CONFIG_Q_D1[0], // SPI_PAD_configure Q(D1)
  719. NULL
  720. };
  721. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D_D0[] = {
  722. &SPI_PAD_CONFIG_D_D0[0], // SPI_PAD_configure D(D0)
  723. NULL
  724. };
  725. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_CS[] = {
  726. &SPI_PAD_CONFIG_CS[0], // SPI_PAD_configure CS
  727. NULL
  728. };
  729. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_HD_D3[] = {
  730. &SPI_PAD_CONFIG_HD_D3[0], // SPI_PAD_configure HD(D3)
  731. NULL
  732. };
  733. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_WP_D2[] = {
  734. &SPI_PAD_CONFIG_WP_D2[0], // SPI_PAD_configure WP(D2)
  735. NULL
  736. };
  737. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_DQS[] = {
  738. &SPI_PAD_CONFIG_DQS[0], // SPI_PAD_configure DQS
  739. NULL
  740. };
  741. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D4[] = {
  742. &SPI_PAD_CONFIG_D4[0], // SPI_PAD_configure D4
  743. NULL
  744. };
  745. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D5[] = {
  746. &SPI_PAD_CONFIG_D5[0], // SPI_PAD_configure D5
  747. NULL
  748. };
  749. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D6[] = {
  750. &SPI_PAD_CONFIG_D6[0], // SPI_PAD_configure D6
  751. NULL
  752. };
  753. const esp_efuse_desc_t* ESP_EFUSE_SPI_PAD_CONFIG_D7[] = {
  754. &SPI_PAD_CONFIG_D7[0], // SPI_PAD_configure D7
  755. NULL
  756. };
  757. const esp_efuse_desc_t* ESP_EFUSE_WAFER_VERSION[] = {
  758. &WAFER_VERSION[0], // WAFER version
  759. NULL
  760. };
  761. const esp_efuse_desc_t* ESP_EFUSE_PKG_VERSION[] = {
  762. &PKG_VERSION[0], // Package version 0:ESP32C3
  763. NULL
  764. };
  765. const esp_efuse_desc_t* ESP_EFUSE_BLOCK1_VERSION[] = {
  766. &BLOCK1_VERSION[0], // BLOCK1 efuse version
  767. NULL
  768. };
  769. const esp_efuse_desc_t* ESP_EFUSE_OPTIONAL_UNIQUE_ID[] = {
  770. &OPTIONAL_UNIQUE_ID[0], // Optional unique 128-bit ID
  771. NULL
  772. };
  773. const esp_efuse_desc_t* ESP_EFUSE_BLOCK2_VERSION[] = {
  774. &BLOCK2_VERSION[0], // Version of BLOCK2
  775. NULL
  776. };
  777. const esp_efuse_desc_t* ESP_EFUSE_TEMP_CALIB[] = {
  778. &TEMP_CALIB[0], // Temperature calibration data
  779. NULL
  780. };
  781. const esp_efuse_desc_t* ESP_EFUSE_OCODE[] = {
  782. &OCODE[0], // ADC OCode
  783. NULL
  784. };
  785. const esp_efuse_desc_t* ESP_EFUSE_ADC1_INIT_CODE_ATTEN0[] = {
  786. &ADC1_INIT_CODE_ATTEN0[0], // ADC1 init code at atten0
  787. NULL
  788. };
  789. const esp_efuse_desc_t* ESP_EFUSE_ADC1_INIT_CODE_ATTEN1[] = {
  790. &ADC1_INIT_CODE_ATTEN1[0], // ADC1 init code at atten1
  791. NULL
  792. };
  793. const esp_efuse_desc_t* ESP_EFUSE_ADC1_INIT_CODE_ATTEN2[] = {
  794. &ADC1_INIT_CODE_ATTEN2[0], // ADC1 init code at atten2
  795. NULL
  796. };
  797. const esp_efuse_desc_t* ESP_EFUSE_ADC1_INIT_CODE_ATTEN3[] = {
  798. &ADC1_INIT_CODE_ATTEN3[0], // ADC1 init code at atten3
  799. NULL
  800. };
  801. const esp_efuse_desc_t* ESP_EFUSE_ADC1_CAL_VOL_ATTEN0[] = {
  802. &ADC1_CAL_VOL_ATTEN0[0], // ADC1 calibration voltage at atten0
  803. NULL
  804. };
  805. const esp_efuse_desc_t* ESP_EFUSE_ADC1_CAL_VOL_ATTEN1[] = {
  806. &ADC1_CAL_VOL_ATTEN1[0], // ADC1 calibration voltage at atten1
  807. NULL
  808. };
  809. const esp_efuse_desc_t* ESP_EFUSE_ADC1_CAL_VOL_ATTEN2[] = {
  810. &ADC1_CAL_VOL_ATTEN2[0], // ADC1 calibration voltage at atten2
  811. NULL
  812. };
  813. const esp_efuse_desc_t* ESP_EFUSE_ADC1_CAL_VOL_ATTEN3[] = {
  814. &ADC1_CAL_VOL_ATTEN3[0], // ADC1 calibration voltage at atten3
  815. NULL
  816. };
  817. const esp_efuse_desc_t* ESP_EFUSE_USER_DATA[] = {
  818. &USER_DATA[0], // User data
  819. NULL
  820. };
  821. const esp_efuse_desc_t* ESP_EFUSE_KEY0[] = {
  822. &KEY0[0], // Key0 or user data
  823. NULL
  824. };
  825. const esp_efuse_desc_t* ESP_EFUSE_KEY1[] = {
  826. &KEY1[0], // Key1 or user data
  827. NULL
  828. };
  829. const esp_efuse_desc_t* ESP_EFUSE_KEY2[] = {
  830. &KEY2[0], // Key2 or user data
  831. NULL
  832. };
  833. const esp_efuse_desc_t* ESP_EFUSE_KEY3[] = {
  834. &KEY3[0], // Key3 or user data
  835. NULL
  836. };
  837. const esp_efuse_desc_t* ESP_EFUSE_KEY4[] = {
  838. &KEY4[0], // Key4 or user data
  839. NULL
  840. };
  841. const esp_efuse_desc_t* ESP_EFUSE_KEY5[] = {
  842. &KEY5[0], // Key5 or user data
  843. NULL
  844. };
  845. const esp_efuse_desc_t* ESP_EFUSE_SYS_DATA_PART2[] = {
  846. &SYS_DATA_PART2[0], // System configuration
  847. NULL
  848. };
  849. const esp_efuse_desc_t* ESP_EFUSE_K_RTC_LDO[] = {
  850. &K_RTC_LDO[0], // BLOCK1 K_RTC_LDO
  851. NULL
  852. };
  853. const esp_efuse_desc_t* ESP_EFUSE_K_DIG_LDO[] = {
  854. &K_DIG_LDO[0], // BLOCK1 K_DIG_LDO
  855. NULL
  856. };
  857. const esp_efuse_desc_t* ESP_EFUSE_V_RTC_DBIAS20[] = {
  858. &V_RTC_DBIAS20[0], // BLOCK1 voltage of rtc dbias20
  859. NULL
  860. };
  861. const esp_efuse_desc_t* ESP_EFUSE_V_DIG_DBIAS20[] = {
  862. &V_DIG_DBIAS20[0], // BLOCK1 voltage of digital dbias20
  863. NULL
  864. };
  865. const esp_efuse_desc_t* ESP_EFUSE_DIG_DBIAS_HVT[] = {
  866. &DIG_DBIAS_HVT[0], // BLOCK1 digital dbias when hvt
  867. NULL
  868. };
  869. const esp_efuse_desc_t* ESP_EFUSE_THRES_HVT[] = {
  870. &THRES_HVT[0], // BLOCK1 pvt threshold when hvt
  871. NULL
  872. };