pmic_efuse.h 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _PMIC_EFUSE_H_
  13. #define _PMIC_EFUSE_H_
  14. // Auto generated by dtools(see dtools.txt for its version).
  15. // Don't edit it manually!
  16. #define REG_PMIC_EFUSE_BASE (0x51108200)
  17. typedef volatile struct
  18. {
  19. uint32_t efuse_glb_ctrl; // 0x00000000
  20. uint32_t efuse_data_rd; // 0x00000004
  21. uint32_t efuse_data_wr; // 0x00000008
  22. uint32_t efuse_addr_index; // 0x0000000c
  23. uint32_t efuse_mode_ctrl; // 0x00000010
  24. uint32_t efuse_status; // 0x00000014
  25. uint32_t efuse_magic_number; // 0x00000018
  26. uint32_t efuse_margin_magic_number; // 0x0000001c
  27. uint32_t efuse_wr_timing_ctrl; // 0x00000020
  28. uint32_t efuse_rd_timing_ctrl; // 0x00000024
  29. uint32_t efuse_version; // 0x00000028
  30. uint32_t __44[5]; // 0x0000002c
  31. uint32_t efuse_por_blk00; // 0x00000040
  32. uint32_t efuse_por_blk01; // 0x00000044
  33. uint32_t efuse_por_blk02; // 0x00000048
  34. uint32_t efuse_por_blk03; // 0x0000004c
  35. uint32_t efuse_por_blk04; // 0x00000050
  36. uint32_t efuse_por_blk05; // 0x00000054
  37. uint32_t efuse_por_blk06; // 0x00000058
  38. uint32_t efuse_por_blk07; // 0x0000005c
  39. uint32_t efuse_por_blk08; // 0x00000060
  40. uint32_t efuse_por_blk09; // 0x00000064
  41. uint32_t efuse_por_blk10; // 0x00000068
  42. uint32_t efuse_por_blk11; // 0x0000006c
  43. uint32_t efuse_por_blk12; // 0x00000070
  44. uint32_t efuse_por_blk13; // 0x00000074
  45. uint32_t efuse_por_blk14; // 0x00000078
  46. uint32_t efuse_por_blk15; // 0x0000007c
  47. uint32_t efuse_por_blk16; // 0x00000080
  48. uint32_t efuse_por_blk17; // 0x00000084
  49. uint32_t efuse_por_blk18; // 0x00000088
  50. uint32_t efuse_por_blk19; // 0x0000008c
  51. uint32_t efuse_por_blk20; // 0x00000090
  52. uint32_t efuse_por_blk21; // 0x00000094
  53. uint32_t efuse_por_blk22; // 0x00000098
  54. uint32_t efuse_por_blk23; // 0x0000009c
  55. uint32_t efuse_por_blk24; // 0x000000a0
  56. uint32_t efuse_por_blk25; // 0x000000a4
  57. uint32_t efuse_por_blk26; // 0x000000a8
  58. uint32_t efuse_por_blk27; // 0x000000ac
  59. uint32_t efuse_por_blk28; // 0x000000b0
  60. uint32_t efuse_por_blk29; // 0x000000b4
  61. uint32_t efuse_por_blk30; // 0x000000b8
  62. uint32_t efuse_por_blk31; // 0x000000bc
  63. uint32_t efuse_por_blk32; // 0x000000c0
  64. uint32_t efuse_por_blk33; // 0x000000c4
  65. uint32_t efuse_por_blk34; // 0x000000c8
  66. uint32_t efuse_por_blk35; // 0x000000cc
  67. uint32_t efuse_por_blk36; // 0x000000d0
  68. uint32_t efuse_por_blk37; // 0x000000d4
  69. uint32_t efuse_por_blk38; // 0x000000d8
  70. uint32_t efuse_por_blk39; // 0x000000dc
  71. uint32_t efuse_por_blk40; // 0x000000e0
  72. uint32_t efuse_por_blk41; // 0x000000e4
  73. uint32_t efuse_por_blk42; // 0x000000e8
  74. uint32_t efuse_por_blk43; // 0x000000ec
  75. uint32_t efuse_por_blk44; // 0x000000f0
  76. uint32_t efuse_por_blk45; // 0x000000f4
  77. uint32_t efuse_por_blk46; // 0x000000f8
  78. uint32_t efuse_por_blk47; // 0x000000fc
  79. uint32_t efuse_por_blk48; // 0x00000100
  80. uint32_t efuse_por_blk49; // 0x00000104
  81. uint32_t efuse_por_blk50; // 0x00000108
  82. uint32_t efuse_por_blk51; // 0x0000010c
  83. uint32_t efuse_por_blk52; // 0x00000110
  84. uint32_t efuse_por_blk53; // 0x00000114
  85. uint32_t efuse_por_blk54; // 0x00000118
  86. uint32_t efuse_por_blk55; // 0x0000011c
  87. uint32_t efuse_por_blk56; // 0x00000120
  88. uint32_t efuse_por_blk57; // 0x00000124
  89. uint32_t efuse_por_blk58; // 0x00000128
  90. uint32_t efuse_por_blk59; // 0x0000012c
  91. uint32_t efuse_por_blk60; // 0x00000130
  92. uint32_t efuse_por_blk61; // 0x00000134
  93. uint32_t efuse_por_blk62; // 0x00000138
  94. uint32_t efuse_por_blk63; // 0x0000013c
  95. } HWP_PMIC_EFUSE_T;
  96. #define hwp_pmicEfuse ((HWP_PMIC_EFUSE_T *)REG_ACCESS_ADDRESS(REG_PMIC_EFUSE_BASE))
  97. // efuse_glb_ctrl
  98. typedef union {
  99. uint32_t v;
  100. struct
  101. {
  102. uint32_t efuse_pgm_en : 1; // [0]
  103. uint32_t efuse_type : 2; // [2:1]
  104. uint32_t efuse_clk_gate : 1; // [3]
  105. uint32_t __31_4 : 28; // [31:4]
  106. } b;
  107. } REG_PMIC_EFUSE_EFUSE_GLB_CTRL_T;
  108. // efuse_data_rd
  109. typedef union {
  110. uint32_t v;
  111. struct
  112. {
  113. uint32_t efuse_data_rd : 16; // [15:0], read only
  114. uint32_t __31_16 : 16; // [31:16]
  115. } b;
  116. } REG_PMIC_EFUSE_EFUSE_DATA_RD_T;
  117. // efuse_data_wr
  118. typedef union {
  119. uint32_t v;
  120. struct
  121. {
  122. uint32_t efuse_data_wr : 16; // [15:0]
  123. uint32_t __31_16 : 16; // [31:16]
  124. } b;
  125. } REG_PMIC_EFUSE_EFUSE_DATA_WR_T;
  126. // efuse_addr_index
  127. typedef union {
  128. uint32_t v;
  129. struct
  130. {
  131. uint32_t read_write_index : 6; // [5:0]
  132. uint32_t __31_6 : 26; // [31:6]
  133. } b;
  134. } REG_PMIC_EFUSE_EFUSE_ADDR_INDEX_T;
  135. // efuse_mode_ctrl
  136. typedef union {
  137. uint32_t v;
  138. struct
  139. {
  140. uint32_t efuse_pg_start : 1; // [0]
  141. uint32_t efuse_rd_start : 1; // [1]
  142. uint32_t efuse_normal_rd_flag_clr : 1; // [2]
  143. uint32_t __31_3 : 29; // [31:3]
  144. } b;
  145. } REG_PMIC_EFUSE_EFUSE_MODE_CTRL_T;
  146. // efuse_status
  147. typedef union {
  148. uint32_t v;
  149. struct
  150. {
  151. uint32_t pgm_busy : 1; // [0], read only
  152. uint32_t read_busy : 1; // [1], read only
  153. uint32_t standby_busy : 1; // [2], read only
  154. uint32_t efuse_global_prot : 1; // [3], read only
  155. uint32_t efuse_normal_rd_done : 1; // [4], read only
  156. uint32_t __31_5 : 27; // [31:5]
  157. } b;
  158. } REG_PMIC_EFUSE_EFUSE_STATUS_T;
  159. // efuse_magic_number
  160. typedef union {
  161. uint32_t v;
  162. struct
  163. {
  164. uint32_t efuse_magic_number : 16; // [15:0]
  165. uint32_t __31_16 : 16; // [31:16]
  166. } b;
  167. } REG_PMIC_EFUSE_EFUSE_MAGIC_NUMBER_T;
  168. // efuse_margin_magic_number
  169. typedef union {
  170. uint32_t v;
  171. struct
  172. {
  173. uint32_t efuse_margin_magic_number : 16; // [15:0]
  174. uint32_t __31_16 : 16; // [31:16]
  175. } b;
  176. } REG_PMIC_EFUSE_EFUSE_MARGIN_MAGIC_NUMBER_T;
  177. // efuse_wr_timing_ctrl
  178. typedef union {
  179. uint32_t v;
  180. struct
  181. {
  182. uint32_t efuse_wr_timing_ctrl : 16; // [15:0]
  183. uint32_t __31_16 : 16; // [31:16]
  184. } b;
  185. } REG_PMIC_EFUSE_EFUSE_WR_TIMING_CTRL_T;
  186. // efuse_rd_timing_ctrl
  187. typedef union {
  188. uint32_t v;
  189. struct
  190. {
  191. uint32_t efuse_rd_timing_ctrl : 16; // [15:0]
  192. uint32_t __31_16 : 16; // [31:16]
  193. } b;
  194. } REG_PMIC_EFUSE_EFUSE_RD_TIMING_CTRL_T;
  195. // efuse_version
  196. typedef union {
  197. uint32_t v;
  198. struct
  199. {
  200. uint32_t efuse_version : 16; // [15:0], read only
  201. uint32_t __31_16 : 16; // [31:16]
  202. } b;
  203. } REG_PMIC_EFUSE_EFUSE_VERSION_T;
  204. // efuse_por_blk00
  205. typedef union {
  206. uint32_t v;
  207. struct
  208. {
  209. uint32_t efuse_por_blk00 : 16; // [15:0], read only
  210. uint32_t __31_16 : 16; // [31:16]
  211. } b;
  212. } REG_PMIC_EFUSE_EFUSE_POR_BLK00_T;
  213. // efuse_por_blk01
  214. typedef union {
  215. uint32_t v;
  216. struct
  217. {
  218. uint32_t efuse_por_blk01 : 16; // [15:0], read only
  219. uint32_t __31_16 : 16; // [31:16]
  220. } b;
  221. } REG_PMIC_EFUSE_EFUSE_POR_BLK01_T;
  222. // efuse_por_blk02
  223. typedef union {
  224. uint32_t v;
  225. struct
  226. {
  227. uint32_t efuse_por_blk02 : 16; // [15:0], read only
  228. uint32_t __31_16 : 16; // [31:16]
  229. } b;
  230. } REG_PMIC_EFUSE_EFUSE_POR_BLK02_T;
  231. // efuse_por_blk03
  232. typedef union {
  233. uint32_t v;
  234. struct
  235. {
  236. uint32_t efuse_por_blk03 : 16; // [15:0], read only
  237. uint32_t __31_16 : 16; // [31:16]
  238. } b;
  239. } REG_PMIC_EFUSE_EFUSE_POR_BLK03_T;
  240. // efuse_por_blk04
  241. typedef union {
  242. uint32_t v;
  243. struct
  244. {
  245. uint32_t efuse_por_blk04 : 16; // [15:0], read only
  246. uint32_t __31_16 : 16; // [31:16]
  247. } b;
  248. } REG_PMIC_EFUSE_EFUSE_POR_BLK04_T;
  249. // efuse_por_blk05
  250. typedef union {
  251. uint32_t v;
  252. struct
  253. {
  254. uint32_t efuse_por_blk05 : 16; // [15:0], read only
  255. uint32_t __31_16 : 16; // [31:16]
  256. } b;
  257. } REG_PMIC_EFUSE_EFUSE_POR_BLK05_T;
  258. // efuse_por_blk06
  259. typedef union {
  260. uint32_t v;
  261. struct
  262. {
  263. uint32_t efuse_por_blk06 : 16; // [15:0], read only
  264. uint32_t __31_16 : 16; // [31:16]
  265. } b;
  266. } REG_PMIC_EFUSE_EFUSE_POR_BLK06_T;
  267. // efuse_por_blk07
  268. typedef union {
  269. uint32_t v;
  270. struct
  271. {
  272. uint32_t efuse_por_blk07 : 16; // [15:0], read only
  273. uint32_t __31_16 : 16; // [31:16]
  274. } b;
  275. } REG_PMIC_EFUSE_EFUSE_POR_BLK07_T;
  276. // efuse_por_blk08
  277. typedef union {
  278. uint32_t v;
  279. struct
  280. {
  281. uint32_t efuse_por_blk08 : 16; // [15:0], read only
  282. uint32_t __31_16 : 16; // [31:16]
  283. } b;
  284. } REG_PMIC_EFUSE_EFUSE_POR_BLK08_T;
  285. // efuse_por_blk09
  286. typedef union {
  287. uint32_t v;
  288. struct
  289. {
  290. uint32_t efuse_por_blk09 : 16; // [15:0], read only
  291. uint32_t __31_16 : 16; // [31:16]
  292. } b;
  293. } REG_PMIC_EFUSE_EFUSE_POR_BLK09_T;
  294. // efuse_por_blk10
  295. typedef union {
  296. uint32_t v;
  297. struct
  298. {
  299. uint32_t efuse_por_blk10 : 16; // [15:0], read only
  300. uint32_t __31_16 : 16; // [31:16]
  301. } b;
  302. } REG_PMIC_EFUSE_EFUSE_POR_BLK10_T;
  303. // efuse_por_blk11
  304. typedef union {
  305. uint32_t v;
  306. struct
  307. {
  308. uint32_t efuse_por_blk11 : 16; // [15:0], read only
  309. uint32_t __31_16 : 16; // [31:16]
  310. } b;
  311. } REG_PMIC_EFUSE_EFUSE_POR_BLK11_T;
  312. // efuse_por_blk12
  313. typedef union {
  314. uint32_t v;
  315. struct
  316. {
  317. uint32_t efuse_por_blk12 : 16; // [15:0], read only
  318. uint32_t __31_16 : 16; // [31:16]
  319. } b;
  320. } REG_PMIC_EFUSE_EFUSE_POR_BLK12_T;
  321. // efuse_por_blk13
  322. typedef union {
  323. uint32_t v;
  324. struct
  325. {
  326. uint32_t efuse_por_blk13 : 16; // [15:0], read only
  327. uint32_t __31_16 : 16; // [31:16]
  328. } b;
  329. } REG_PMIC_EFUSE_EFUSE_POR_BLK13_T;
  330. // efuse_por_blk14
  331. typedef union {
  332. uint32_t v;
  333. struct
  334. {
  335. uint32_t efuse_por_blk14 : 16; // [15:0], read only
  336. uint32_t __31_16 : 16; // [31:16]
  337. } b;
  338. } REG_PMIC_EFUSE_EFUSE_POR_BLK14_T;
  339. // efuse_por_blk15
  340. typedef union {
  341. uint32_t v;
  342. struct
  343. {
  344. uint32_t efuse_por_blk15 : 16; // [15:0], read only
  345. uint32_t __31_16 : 16; // [31:16]
  346. } b;
  347. } REG_PMIC_EFUSE_EFUSE_POR_BLK15_T;
  348. // efuse_por_blk16
  349. typedef union {
  350. uint32_t v;
  351. struct
  352. {
  353. uint32_t efuse_por_blk16 : 16; // [15:0], read only
  354. uint32_t __31_16 : 16; // [31:16]
  355. } b;
  356. } REG_PMIC_EFUSE_EFUSE_POR_BLK16_T;
  357. // efuse_por_blk17
  358. typedef union {
  359. uint32_t v;
  360. struct
  361. {
  362. uint32_t efuse_por_blk17 : 16; // [15:0], read only
  363. uint32_t __31_16 : 16; // [31:16]
  364. } b;
  365. } REG_PMIC_EFUSE_EFUSE_POR_BLK17_T;
  366. // efuse_por_blk18
  367. typedef union {
  368. uint32_t v;
  369. struct
  370. {
  371. uint32_t efuse_por_blk18 : 16; // [15:0], read only
  372. uint32_t __31_16 : 16; // [31:16]
  373. } b;
  374. } REG_PMIC_EFUSE_EFUSE_POR_BLK18_T;
  375. // efuse_por_blk19
  376. typedef union {
  377. uint32_t v;
  378. struct
  379. {
  380. uint32_t efuse_por_blk19 : 16; // [15:0], read only
  381. uint32_t __31_16 : 16; // [31:16]
  382. } b;
  383. } REG_PMIC_EFUSE_EFUSE_POR_BLK19_T;
  384. // efuse_por_blk20
  385. typedef union {
  386. uint32_t v;
  387. struct
  388. {
  389. uint32_t efuse_por_blk20 : 16; // [15:0], read only
  390. uint32_t __31_16 : 16; // [31:16]
  391. } b;
  392. } REG_PMIC_EFUSE_EFUSE_POR_BLK20_T;
  393. // efuse_por_blk21
  394. typedef union {
  395. uint32_t v;
  396. struct
  397. {
  398. uint32_t efuse_por_blk21 : 16; // [15:0], read only
  399. uint32_t __31_16 : 16; // [31:16]
  400. } b;
  401. } REG_PMIC_EFUSE_EFUSE_POR_BLK21_T;
  402. // efuse_por_blk22
  403. typedef union {
  404. uint32_t v;
  405. struct
  406. {
  407. uint32_t efuse_por_blk22 : 16; // [15:0], read only
  408. uint32_t __31_16 : 16; // [31:16]
  409. } b;
  410. } REG_PMIC_EFUSE_EFUSE_POR_BLK22_T;
  411. // efuse_por_blk23
  412. typedef union {
  413. uint32_t v;
  414. struct
  415. {
  416. uint32_t efuse_por_blk23 : 16; // [15:0], read only
  417. uint32_t __31_16 : 16; // [31:16]
  418. } b;
  419. } REG_PMIC_EFUSE_EFUSE_POR_BLK23_T;
  420. // efuse_por_blk24
  421. typedef union {
  422. uint32_t v;
  423. struct
  424. {
  425. uint32_t efuse_por_blk24 : 16; // [15:0], read only
  426. uint32_t __31_16 : 16; // [31:16]
  427. } b;
  428. } REG_PMIC_EFUSE_EFUSE_POR_BLK24_T;
  429. // efuse_por_blk25
  430. typedef union {
  431. uint32_t v;
  432. struct
  433. {
  434. uint32_t efuse_por_blk25 : 16; // [15:0], read only
  435. uint32_t __31_16 : 16; // [31:16]
  436. } b;
  437. } REG_PMIC_EFUSE_EFUSE_POR_BLK25_T;
  438. // efuse_por_blk26
  439. typedef union {
  440. uint32_t v;
  441. struct
  442. {
  443. uint32_t efuse_por_blk26 : 16; // [15:0], read only
  444. uint32_t __31_16 : 16; // [31:16]
  445. } b;
  446. } REG_PMIC_EFUSE_EFUSE_POR_BLK26_T;
  447. // efuse_por_blk27
  448. typedef union {
  449. uint32_t v;
  450. struct
  451. {
  452. uint32_t efuse_por_blk27 : 16; // [15:0], read only
  453. uint32_t __31_16 : 16; // [31:16]
  454. } b;
  455. } REG_PMIC_EFUSE_EFUSE_POR_BLK27_T;
  456. // efuse_por_blk28
  457. typedef union {
  458. uint32_t v;
  459. struct
  460. {
  461. uint32_t efuse_por_blk28 : 16; // [15:0], read only
  462. uint32_t __31_16 : 16; // [31:16]
  463. } b;
  464. } REG_PMIC_EFUSE_EFUSE_POR_BLK28_T;
  465. // efuse_por_blk29
  466. typedef union {
  467. uint32_t v;
  468. struct
  469. {
  470. uint32_t efuse_por_blk29 : 16; // [15:0], read only
  471. uint32_t __31_16 : 16; // [31:16]
  472. } b;
  473. } REG_PMIC_EFUSE_EFUSE_POR_BLK29_T;
  474. // efuse_por_blk30
  475. typedef union {
  476. uint32_t v;
  477. struct
  478. {
  479. uint32_t efuse_por_blk30 : 16; // [15:0], read only
  480. uint32_t __31_16 : 16; // [31:16]
  481. } b;
  482. } REG_PMIC_EFUSE_EFUSE_POR_BLK30_T;
  483. // efuse_por_blk31
  484. typedef union {
  485. uint32_t v;
  486. struct
  487. {
  488. uint32_t efuse_por_blk31 : 16; // [15:0], read only
  489. uint32_t __31_16 : 16; // [31:16]
  490. } b;
  491. } REG_PMIC_EFUSE_EFUSE_POR_BLK31_T;
  492. // efuse_por_blk32
  493. typedef union {
  494. uint32_t v;
  495. struct
  496. {
  497. uint32_t efuse_por_blk32 : 16; // [15:0], read only
  498. uint32_t __31_16 : 16; // [31:16]
  499. } b;
  500. } REG_PMIC_EFUSE_EFUSE_POR_BLK32_T;
  501. // efuse_por_blk33
  502. typedef union {
  503. uint32_t v;
  504. struct
  505. {
  506. uint32_t efuse_por_blk33 : 16; // [15:0], read only
  507. uint32_t __31_16 : 16; // [31:16]
  508. } b;
  509. } REG_PMIC_EFUSE_EFUSE_POR_BLK33_T;
  510. // efuse_por_blk34
  511. typedef union {
  512. uint32_t v;
  513. struct
  514. {
  515. uint32_t efuse_por_blk34 : 16; // [15:0], read only
  516. uint32_t __31_16 : 16; // [31:16]
  517. } b;
  518. } REG_PMIC_EFUSE_EFUSE_POR_BLK34_T;
  519. // efuse_por_blk35
  520. typedef union {
  521. uint32_t v;
  522. struct
  523. {
  524. uint32_t efuse_por_blk35 : 16; // [15:0], read only
  525. uint32_t __31_16 : 16; // [31:16]
  526. } b;
  527. } REG_PMIC_EFUSE_EFUSE_POR_BLK35_T;
  528. // efuse_por_blk36
  529. typedef union {
  530. uint32_t v;
  531. struct
  532. {
  533. uint32_t efuse_por_blk36 : 16; // [15:0], read only
  534. uint32_t __31_16 : 16; // [31:16]
  535. } b;
  536. } REG_PMIC_EFUSE_EFUSE_POR_BLK36_T;
  537. // efuse_por_blk37
  538. typedef union {
  539. uint32_t v;
  540. struct
  541. {
  542. uint32_t efuse_por_blk37 : 16; // [15:0], read only
  543. uint32_t __31_16 : 16; // [31:16]
  544. } b;
  545. } REG_PMIC_EFUSE_EFUSE_POR_BLK37_T;
  546. // efuse_por_blk38
  547. typedef union {
  548. uint32_t v;
  549. struct
  550. {
  551. uint32_t efuse_por_blk38 : 16; // [15:0], read only
  552. uint32_t __31_16 : 16; // [31:16]
  553. } b;
  554. } REG_PMIC_EFUSE_EFUSE_POR_BLK38_T;
  555. // efuse_por_blk39
  556. typedef union {
  557. uint32_t v;
  558. struct
  559. {
  560. uint32_t efuse_por_blk39 : 16; // [15:0], read only
  561. uint32_t __31_16 : 16; // [31:16]
  562. } b;
  563. } REG_PMIC_EFUSE_EFUSE_POR_BLK39_T;
  564. // efuse_por_blk40
  565. typedef union {
  566. uint32_t v;
  567. struct
  568. {
  569. uint32_t efuse_por_blk40 : 16; // [15:0], read only
  570. uint32_t __31_16 : 16; // [31:16]
  571. } b;
  572. } REG_PMIC_EFUSE_EFUSE_POR_BLK40_T;
  573. // efuse_por_blk41
  574. typedef union {
  575. uint32_t v;
  576. struct
  577. {
  578. uint32_t efuse_por_blk41 : 16; // [15:0], read only
  579. uint32_t __31_16 : 16; // [31:16]
  580. } b;
  581. } REG_PMIC_EFUSE_EFUSE_POR_BLK41_T;
  582. // efuse_por_blk42
  583. typedef union {
  584. uint32_t v;
  585. struct
  586. {
  587. uint32_t efuse_por_blk42 : 16; // [15:0], read only
  588. uint32_t __31_16 : 16; // [31:16]
  589. } b;
  590. } REG_PMIC_EFUSE_EFUSE_POR_BLK42_T;
  591. // efuse_por_blk43
  592. typedef union {
  593. uint32_t v;
  594. struct
  595. {
  596. uint32_t efuse_por_blk43 : 16; // [15:0], read only
  597. uint32_t __31_16 : 16; // [31:16]
  598. } b;
  599. } REG_PMIC_EFUSE_EFUSE_POR_BLK43_T;
  600. // efuse_por_blk44
  601. typedef union {
  602. uint32_t v;
  603. struct
  604. {
  605. uint32_t efuse_por_blk44 : 16; // [15:0], read only
  606. uint32_t __31_16 : 16; // [31:16]
  607. } b;
  608. } REG_PMIC_EFUSE_EFUSE_POR_BLK44_T;
  609. // efuse_por_blk45
  610. typedef union {
  611. uint32_t v;
  612. struct
  613. {
  614. uint32_t efuse_por_blk45 : 16; // [15:0], read only
  615. uint32_t __31_16 : 16; // [31:16]
  616. } b;
  617. } REG_PMIC_EFUSE_EFUSE_POR_BLK45_T;
  618. // efuse_por_blk46
  619. typedef union {
  620. uint32_t v;
  621. struct
  622. {
  623. uint32_t efuse_por_blk46 : 16; // [15:0], read only
  624. uint32_t __31_16 : 16; // [31:16]
  625. } b;
  626. } REG_PMIC_EFUSE_EFUSE_POR_BLK46_T;
  627. // efuse_por_blk47
  628. typedef union {
  629. uint32_t v;
  630. struct
  631. {
  632. uint32_t efuse_por_blk47 : 16; // [15:0], read only
  633. uint32_t __31_16 : 16; // [31:16]
  634. } b;
  635. } REG_PMIC_EFUSE_EFUSE_POR_BLK47_T;
  636. // efuse_por_blk48
  637. typedef union {
  638. uint32_t v;
  639. struct
  640. {
  641. uint32_t efuse_por_blk48 : 16; // [15:0], read only
  642. uint32_t __31_16 : 16; // [31:16]
  643. } b;
  644. } REG_PMIC_EFUSE_EFUSE_POR_BLK48_T;
  645. // efuse_por_blk49
  646. typedef union {
  647. uint32_t v;
  648. struct
  649. {
  650. uint32_t efuse_por_blk49 : 16; // [15:0], read only
  651. uint32_t __31_16 : 16; // [31:16]
  652. } b;
  653. } REG_PMIC_EFUSE_EFUSE_POR_BLK49_T;
  654. // efuse_por_blk50
  655. typedef union {
  656. uint32_t v;
  657. struct
  658. {
  659. uint32_t efuse_por_blk50 : 16; // [15:0], read only
  660. uint32_t __31_16 : 16; // [31:16]
  661. } b;
  662. } REG_PMIC_EFUSE_EFUSE_POR_BLK50_T;
  663. // efuse_por_blk51
  664. typedef union {
  665. uint32_t v;
  666. struct
  667. {
  668. uint32_t efuse_por_blk51 : 16; // [15:0], read only
  669. uint32_t __31_16 : 16; // [31:16]
  670. } b;
  671. } REG_PMIC_EFUSE_EFUSE_POR_BLK51_T;
  672. // efuse_por_blk52
  673. typedef union {
  674. uint32_t v;
  675. struct
  676. {
  677. uint32_t efuse_por_blk52 : 16; // [15:0], read only
  678. uint32_t __31_16 : 16; // [31:16]
  679. } b;
  680. } REG_PMIC_EFUSE_EFUSE_POR_BLK52_T;
  681. // efuse_por_blk53
  682. typedef union {
  683. uint32_t v;
  684. struct
  685. {
  686. uint32_t efuse_por_blk53 : 16; // [15:0], read only
  687. uint32_t __31_16 : 16; // [31:16]
  688. } b;
  689. } REG_PMIC_EFUSE_EFUSE_POR_BLK53_T;
  690. // efuse_por_blk54
  691. typedef union {
  692. uint32_t v;
  693. struct
  694. {
  695. uint32_t efuse_por_blk54 : 16; // [15:0], read only
  696. uint32_t __31_16 : 16; // [31:16]
  697. } b;
  698. } REG_PMIC_EFUSE_EFUSE_POR_BLK54_T;
  699. // efuse_por_blk55
  700. typedef union {
  701. uint32_t v;
  702. struct
  703. {
  704. uint32_t efuse_por_blk55 : 16; // [15:0], read only
  705. uint32_t __31_16 : 16; // [31:16]
  706. } b;
  707. } REG_PMIC_EFUSE_EFUSE_POR_BLK55_T;
  708. // efuse_por_blk56
  709. typedef union {
  710. uint32_t v;
  711. struct
  712. {
  713. uint32_t efuse_por_blk56 : 16; // [15:0], read only
  714. uint32_t __31_16 : 16; // [31:16]
  715. } b;
  716. } REG_PMIC_EFUSE_EFUSE_POR_BLK56_T;
  717. // efuse_por_blk57
  718. typedef union {
  719. uint32_t v;
  720. struct
  721. {
  722. uint32_t efuse_por_blk57 : 16; // [15:0], read only
  723. uint32_t __31_16 : 16; // [31:16]
  724. } b;
  725. } REG_PMIC_EFUSE_EFUSE_POR_BLK57_T;
  726. // efuse_por_blk58
  727. typedef union {
  728. uint32_t v;
  729. struct
  730. {
  731. uint32_t efuse_por_blk58 : 16; // [15:0], read only
  732. uint32_t __31_16 : 16; // [31:16]
  733. } b;
  734. } REG_PMIC_EFUSE_EFUSE_POR_BLK58_T;
  735. // efuse_por_blk59
  736. typedef union {
  737. uint32_t v;
  738. struct
  739. {
  740. uint32_t efuse_por_blk59 : 16; // [15:0], read only
  741. uint32_t __31_16 : 16; // [31:16]
  742. } b;
  743. } REG_PMIC_EFUSE_EFUSE_POR_BLK59_T;
  744. // efuse_por_blk60
  745. typedef union {
  746. uint32_t v;
  747. struct
  748. {
  749. uint32_t efuse_por_blk60 : 16; // [15:0], read only
  750. uint32_t __31_16 : 16; // [31:16]
  751. } b;
  752. } REG_PMIC_EFUSE_EFUSE_POR_BLK60_T;
  753. // efuse_por_blk61
  754. typedef union {
  755. uint32_t v;
  756. struct
  757. {
  758. uint32_t efuse_por_blk61 : 16; // [15:0], read only
  759. uint32_t __31_16 : 16; // [31:16]
  760. } b;
  761. } REG_PMIC_EFUSE_EFUSE_POR_BLK61_T;
  762. // efuse_por_blk62
  763. typedef union {
  764. uint32_t v;
  765. struct
  766. {
  767. uint32_t efuse_por_blk62 : 16; // [15:0], read only
  768. uint32_t __31_16 : 16; // [31:16]
  769. } b;
  770. } REG_PMIC_EFUSE_EFUSE_POR_BLK62_T;
  771. // efuse_por_blk63
  772. typedef union {
  773. uint32_t v;
  774. struct
  775. {
  776. uint32_t efuse_por_blk63 : 16; // [15:0], read only
  777. uint32_t __31_16 : 16; // [31:16]
  778. } b;
  779. } REG_PMIC_EFUSE_EFUSE_POR_BLK63_T;
  780. // efuse_glb_ctrl
  781. #define PMIC_EFUSE_EFUSE_PGM_EN (1 << 0)
  782. #define PMIC_EFUSE_EFUSE_TYPE(n) (((n)&0x3) << 1)
  783. #define PMIC_EFUSE_EFUSE_CLK_GATE (1 << 3)
  784. // efuse_data_rd
  785. #define PMIC_EFUSE_EFUSE_DATA_RD(n) (((n)&0xffff) << 0)
  786. // efuse_data_wr
  787. #define PMIC_EFUSE_EFUSE_DATA_WR(n) (((n)&0xffff) << 0)
  788. // efuse_addr_index
  789. #define PMIC_EFUSE_READ_WRITE_INDEX(n) (((n)&0x3f) << 0)
  790. // efuse_mode_ctrl
  791. #define PMIC_EFUSE_EFUSE_PG_START (1 << 0)
  792. #define PMIC_EFUSE_EFUSE_RD_START (1 << 1)
  793. #define PMIC_EFUSE_EFUSE_NORMAL_RD_FLAG_CLR (1 << 2)
  794. // efuse_status
  795. #define PMIC_EFUSE_PGM_BUSY (1 << 0)
  796. #define PMIC_EFUSE_READ_BUSY (1 << 1)
  797. #define PMIC_EFUSE_STANDBY_BUSY (1 << 2)
  798. #define PMIC_EFUSE_EFUSE_GLOBAL_PROT (1 << 3)
  799. #define PMIC_EFUSE_EFUSE_NORMAL_RD_DONE (1 << 4)
  800. // efuse_magic_number
  801. #define PMIC_EFUSE_EFUSE_MAGIC_NUMBER(n) (((n)&0xffff) << 0)
  802. // efuse_margin_magic_number
  803. #define PMIC_EFUSE_EFUSE_MARGIN_MAGIC_NUMBER(n) (((n)&0xffff) << 0)
  804. // efuse_wr_timing_ctrl
  805. #define PMIC_EFUSE_EFUSE_WR_TIMING_CTRL(n) (((n)&0xffff) << 0)
  806. // efuse_rd_timing_ctrl
  807. #define PMIC_EFUSE_EFUSE_RD_TIMING_CTRL(n) (((n)&0xffff) << 0)
  808. // efuse_version
  809. #define PMIC_EFUSE_EFUSE_VERSION(n) (((n)&0xffff) << 0)
  810. // efuse_por_blk00
  811. #define PMIC_EFUSE_EFUSE_POR_BLK00(n) (((n)&0xffff) << 0)
  812. // efuse_por_blk01
  813. #define PMIC_EFUSE_EFUSE_POR_BLK01(n) (((n)&0xffff) << 0)
  814. // efuse_por_blk02
  815. #define PMIC_EFUSE_EFUSE_POR_BLK02(n) (((n)&0xffff) << 0)
  816. // efuse_por_blk03
  817. #define PMIC_EFUSE_EFUSE_POR_BLK03(n) (((n)&0xffff) << 0)
  818. // efuse_por_blk04
  819. #define PMIC_EFUSE_EFUSE_POR_BLK04(n) (((n)&0xffff) << 0)
  820. // efuse_por_blk05
  821. #define PMIC_EFUSE_EFUSE_POR_BLK05(n) (((n)&0xffff) << 0)
  822. // efuse_por_blk06
  823. #define PMIC_EFUSE_EFUSE_POR_BLK06(n) (((n)&0xffff) << 0)
  824. // efuse_por_blk07
  825. #define PMIC_EFUSE_EFUSE_POR_BLK07(n) (((n)&0xffff) << 0)
  826. // efuse_por_blk08
  827. #define PMIC_EFUSE_EFUSE_POR_BLK08(n) (((n)&0xffff) << 0)
  828. // efuse_por_blk09
  829. #define PMIC_EFUSE_EFUSE_POR_BLK09(n) (((n)&0xffff) << 0)
  830. // efuse_por_blk10
  831. #define PMIC_EFUSE_EFUSE_POR_BLK10(n) (((n)&0xffff) << 0)
  832. // efuse_por_blk11
  833. #define PMIC_EFUSE_EFUSE_POR_BLK11(n) (((n)&0xffff) << 0)
  834. // efuse_por_blk12
  835. #define PMIC_EFUSE_EFUSE_POR_BLK12(n) (((n)&0xffff) << 0)
  836. // efuse_por_blk13
  837. #define PMIC_EFUSE_EFUSE_POR_BLK13(n) (((n)&0xffff) << 0)
  838. // efuse_por_blk14
  839. #define PMIC_EFUSE_EFUSE_POR_BLK14(n) (((n)&0xffff) << 0)
  840. // efuse_por_blk15
  841. #define PMIC_EFUSE_EFUSE_POR_BLK15(n) (((n)&0xffff) << 0)
  842. // efuse_por_blk16
  843. #define PMIC_EFUSE_EFUSE_POR_BLK16(n) (((n)&0xffff) << 0)
  844. // efuse_por_blk17
  845. #define PMIC_EFUSE_EFUSE_POR_BLK17(n) (((n)&0xffff) << 0)
  846. // efuse_por_blk18
  847. #define PMIC_EFUSE_EFUSE_POR_BLK18(n) (((n)&0xffff) << 0)
  848. // efuse_por_blk19
  849. #define PMIC_EFUSE_EFUSE_POR_BLK19(n) (((n)&0xffff) << 0)
  850. // efuse_por_blk20
  851. #define PMIC_EFUSE_EFUSE_POR_BLK20(n) (((n)&0xffff) << 0)
  852. // efuse_por_blk21
  853. #define PMIC_EFUSE_EFUSE_POR_BLK21(n) (((n)&0xffff) << 0)
  854. // efuse_por_blk22
  855. #define PMIC_EFUSE_EFUSE_POR_BLK22(n) (((n)&0xffff) << 0)
  856. // efuse_por_blk23
  857. #define PMIC_EFUSE_EFUSE_POR_BLK23(n) (((n)&0xffff) << 0)
  858. // efuse_por_blk24
  859. #define PMIC_EFUSE_EFUSE_POR_BLK24(n) (((n)&0xffff) << 0)
  860. // efuse_por_blk25
  861. #define PMIC_EFUSE_EFUSE_POR_BLK25(n) (((n)&0xffff) << 0)
  862. // efuse_por_blk26
  863. #define PMIC_EFUSE_EFUSE_POR_BLK26(n) (((n)&0xffff) << 0)
  864. // efuse_por_blk27
  865. #define PMIC_EFUSE_EFUSE_POR_BLK27(n) (((n)&0xffff) << 0)
  866. // efuse_por_blk28
  867. #define PMIC_EFUSE_EFUSE_POR_BLK28(n) (((n)&0xffff) << 0)
  868. // efuse_por_blk29
  869. #define PMIC_EFUSE_EFUSE_POR_BLK29(n) (((n)&0xffff) << 0)
  870. // efuse_por_blk30
  871. #define PMIC_EFUSE_EFUSE_POR_BLK30(n) (((n)&0xffff) << 0)
  872. // efuse_por_blk31
  873. #define PMIC_EFUSE_EFUSE_POR_BLK31(n) (((n)&0xffff) << 0)
  874. // efuse_por_blk32
  875. #define PMIC_EFUSE_EFUSE_POR_BLK32(n) (((n)&0xffff) << 0)
  876. // efuse_por_blk33
  877. #define PMIC_EFUSE_EFUSE_POR_BLK33(n) (((n)&0xffff) << 0)
  878. // efuse_por_blk34
  879. #define PMIC_EFUSE_EFUSE_POR_BLK34(n) (((n)&0xffff) << 0)
  880. // efuse_por_blk35
  881. #define PMIC_EFUSE_EFUSE_POR_BLK35(n) (((n)&0xffff) << 0)
  882. // efuse_por_blk36
  883. #define PMIC_EFUSE_EFUSE_POR_BLK36(n) (((n)&0xffff) << 0)
  884. // efuse_por_blk37
  885. #define PMIC_EFUSE_EFUSE_POR_BLK37(n) (((n)&0xffff) << 0)
  886. // efuse_por_blk38
  887. #define PMIC_EFUSE_EFUSE_POR_BLK38(n) (((n)&0xffff) << 0)
  888. // efuse_por_blk39
  889. #define PMIC_EFUSE_EFUSE_POR_BLK39(n) (((n)&0xffff) << 0)
  890. // efuse_por_blk40
  891. #define PMIC_EFUSE_EFUSE_POR_BLK40(n) (((n)&0xffff) << 0)
  892. // efuse_por_blk41
  893. #define PMIC_EFUSE_EFUSE_POR_BLK41(n) (((n)&0xffff) << 0)
  894. // efuse_por_blk42
  895. #define PMIC_EFUSE_EFUSE_POR_BLK42(n) (((n)&0xffff) << 0)
  896. // efuse_por_blk43
  897. #define PMIC_EFUSE_EFUSE_POR_BLK43(n) (((n)&0xffff) << 0)
  898. // efuse_por_blk44
  899. #define PMIC_EFUSE_EFUSE_POR_BLK44(n) (((n)&0xffff) << 0)
  900. // efuse_por_blk45
  901. #define PMIC_EFUSE_EFUSE_POR_BLK45(n) (((n)&0xffff) << 0)
  902. // efuse_por_blk46
  903. #define PMIC_EFUSE_EFUSE_POR_BLK46(n) (((n)&0xffff) << 0)
  904. // efuse_por_blk47
  905. #define PMIC_EFUSE_EFUSE_POR_BLK47(n) (((n)&0xffff) << 0)
  906. // efuse_por_blk48
  907. #define PMIC_EFUSE_EFUSE_POR_BLK48(n) (((n)&0xffff) << 0)
  908. // efuse_por_blk49
  909. #define PMIC_EFUSE_EFUSE_POR_BLK49(n) (((n)&0xffff) << 0)
  910. // efuse_por_blk50
  911. #define PMIC_EFUSE_EFUSE_POR_BLK50(n) (((n)&0xffff) << 0)
  912. // efuse_por_blk51
  913. #define PMIC_EFUSE_EFUSE_POR_BLK51(n) (((n)&0xffff) << 0)
  914. // efuse_por_blk52
  915. #define PMIC_EFUSE_EFUSE_POR_BLK52(n) (((n)&0xffff) << 0)
  916. // efuse_por_blk53
  917. #define PMIC_EFUSE_EFUSE_POR_BLK53(n) (((n)&0xffff) << 0)
  918. // efuse_por_blk54
  919. #define PMIC_EFUSE_EFUSE_POR_BLK54(n) (((n)&0xffff) << 0)
  920. // efuse_por_blk55
  921. #define PMIC_EFUSE_EFUSE_POR_BLK55(n) (((n)&0xffff) << 0)
  922. // efuse_por_blk56
  923. #define PMIC_EFUSE_EFUSE_POR_BLK56(n) (((n)&0xffff) << 0)
  924. // efuse_por_blk57
  925. #define PMIC_EFUSE_EFUSE_POR_BLK57(n) (((n)&0xffff) << 0)
  926. // efuse_por_blk58
  927. #define PMIC_EFUSE_EFUSE_POR_BLK58(n) (((n)&0xffff) << 0)
  928. // efuse_por_blk59
  929. #define PMIC_EFUSE_EFUSE_POR_BLK59(n) (((n)&0xffff) << 0)
  930. // efuse_por_blk60
  931. #define PMIC_EFUSE_EFUSE_POR_BLK60(n) (((n)&0xffff) << 0)
  932. // efuse_por_blk61
  933. #define PMIC_EFUSE_EFUSE_POR_BLK61(n) (((n)&0xffff) << 0)
  934. // efuse_por_blk62
  935. #define PMIC_EFUSE_EFUSE_POR_BLK62(n) (((n)&0xffff) << 0)
  936. // efuse_por_blk63
  937. #define PMIC_EFUSE_EFUSE_POR_BLK63(n) (((n)&0xffff) << 0)
  938. #endif // _PMIC_EFUSE_H_