sys_ctrl.h 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241
  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 _SYS_CTRL_H_
  13. #define _SYS_CTRL_H_
  14. // Auto generated by dtools(see dtools.txt for its version).
  15. // Don't edit it manually!
  16. #define REG_SYS_CTRL_SET_OFFSET (1024)
  17. #define REG_SYS_CTRL_CLR_OFFSET (2048)
  18. #define REG_SYS_CTRL_BASE (0x51500000)
  19. typedef volatile struct
  20. {
  21. uint32_t aon_soft_rst_ctrl0; // 0x00000000
  22. uint32_t clken_lte; // 0x00000004
  23. uint32_t clken_lte_intf; // 0x00000008
  24. uint32_t rstctrl_lte; // 0x0000000c
  25. uint32_t lte_autogate_mode; // 0x00000010
  26. uint32_t lte_autogate_en; // 0x00000014
  27. uint32_t lte_autogate_delay_num; // 0x00000018
  28. uint32_t aon_lpc_ctrl; // 0x0000001c
  29. uint32_t aon_clock_en0; // 0x00000020
  30. uint32_t aon_clock_en1; // 0x00000024
  31. uint32_t aon_clock_auto_sel0; // 0x00000028
  32. uint32_t aon_clock_auto_sel1; // 0x0000002c
  33. uint32_t aon_clock_auto_sel2; // 0x00000030
  34. uint32_t aon_clock_auto_sel3; // 0x00000034
  35. uint32_t aon_clock_force_en0; // 0x00000038
  36. uint32_t aon_clock_force_en1; // 0x0000003c
  37. uint32_t aon_clock_force_en2; // 0x00000040
  38. uint32_t aon_clock_force_en3; // 0x00000044
  39. uint32_t aon_soft_rst_ctrl1; // 0x00000048
  40. uint32_t mipi_csi_cfg_reg; // 0x0000004c
  41. uint32_t cfg_clk_uart2; // 0x00000050
  42. uint32_t cfg_clk_uart3; // 0x00000054
  43. uint32_t cfg_clk_debug_host; // 0x00000058
  44. uint32_t __92[1]; // 0x0000005c
  45. uint32_t rc_calib_ctrl; // 0x00000060
  46. uint32_t rc_calib_th_val; // 0x00000064
  47. uint32_t rc_calib_out_val; // 0x00000068
  48. uint32_t emmc_slice_phy_ctrl; // 0x0000006c
  49. uint32_t dma_req_ctrl; // 0x00000070
  50. uint32_t apt_trigger_sel; // 0x00000074
  51. uint32_t ahb2ahb_ab_funcdma_ctrl; // 0x00000078
  52. uint32_t ahb2ahb_ab_funcdma_sts; // 0x0000007c
  53. uint32_t ahb2ahb_ab_dap_ctrl; // 0x00000080
  54. uint32_t ahb2ahb_ab_dap_sts; // 0x00000084
  55. uint32_t ahb2axi_pub_ctrl; // 0x00000088
  56. uint32_t ahb2axi_pub_sts; // 0x0000008c
  57. uint32_t axi2axi_pub_sts_0; // 0x00000090
  58. uint32_t axi2axi_pub_sts_1; // 0x00000094
  59. uint32_t ahb2ahb_ab_aon2lps_ctrl; // 0x00000098
  60. uint32_t ahb2ahb_ab_aon2lps_sts; // 0x0000009c
  61. uint32_t ahb2ahb_ab_lps2aon_ctrl; // 0x000000a0
  62. uint32_t ahb2ahb_ab_lps2aon_sts; // 0x000000a4
  63. uint32_t sysctrl_reg0; // 0x000000a8
  64. uint32_t plls_sts; // 0x000000ac
  65. uint32_t cfg_aon_anti_hang; // 0x000000b0
  66. uint32_t cfg_aon_qos; // 0x000000b4
  67. uint32_t aon_ahb_mtx_slice_autogate_en; // 0x000000b8
  68. uint32_t dap_djtag_en_cfg; // 0x000000bc
  69. uint32_t lte_ahb2ahb_sync_cfg; // 0x000000c0
  70. uint32_t cfg_aon_io_core_ie_0; // 0x000000c4
  71. uint32_t cfg_aon_io_core_ie_1; // 0x000000c8
  72. uint32_t cfg_aon_io_core_ie_2; // 0x000000cc
  73. uint32_t cfg_aon_io_core_ie_3; // 0x000000d0
  74. uint32_t __212[203]; // 0x000000d4
  75. uint32_t aon_soft_rst_ctrl0_set; // 0x00000400
  76. uint32_t clken_lte_set; // 0x00000404
  77. uint32_t clken_lte_intf_set; // 0x00000408
  78. uint32_t rstctrl_lte_set; // 0x0000040c
  79. uint32_t __1040[1]; // 0x00000410
  80. uint32_t lte_autogate_en_set; // 0x00000414
  81. uint32_t __1048[1]; // 0x00000418
  82. uint32_t aon_lpc_ctrl_set; // 0x0000041c
  83. uint32_t aon_clock_en0_set; // 0x00000420
  84. uint32_t aon_clock_en1_set; // 0x00000424
  85. uint32_t aon_clock_auto_sel0_set; // 0x00000428
  86. uint32_t aon_clock_auto_sel1_set; // 0x0000042c
  87. uint32_t aon_clock_auto_sel2_set; // 0x00000430
  88. uint32_t aon_clock_auto_sel3_set; // 0x00000434
  89. uint32_t aon_clock_force_en0_set; // 0x00000438
  90. uint32_t aon_clock_force_en1_set; // 0x0000043c
  91. uint32_t aon_clock_force_en2_set; // 0x00000440
  92. uint32_t aon_clock_force_en3_set; // 0x00000444
  93. uint32_t aon_soft_rst_ctrl1_set; // 0x00000448
  94. uint32_t mipi_csi_cfg_reg_set; // 0x0000044c
  95. uint32_t cfg_clk_uart2_set; // 0x00000450
  96. uint32_t cfg_clk_uart3_set; // 0x00000454
  97. uint32_t cfg_clk_debug_host_set; // 0x00000458
  98. uint32_t __1116[1]; // 0x0000045c
  99. uint32_t rc_calib_ctrl_set; // 0x00000460
  100. uint32_t __1124[2]; // 0x00000464
  101. uint32_t emmc_slice_phy_ctrl_set; // 0x0000046c
  102. uint32_t dma_req_ctrl_set; // 0x00000470
  103. uint32_t apt_trigger_sel_set; // 0x00000474
  104. uint32_t ahb2ahb_ab_funcdma_ctrl_set; // 0x00000478
  105. uint32_t __1148[1]; // 0x0000047c
  106. uint32_t ahb2ahb_ab_dap_ctrl_set; // 0x00000480
  107. uint32_t __1156[1]; // 0x00000484
  108. uint32_t ahb2axi_pub_ctrl_set; // 0x00000488
  109. uint32_t __1164[3]; // 0x0000048c
  110. uint32_t ahb2ahb_ab_aon2lps_ctrl_set; // 0x00000498
  111. uint32_t __1180[1]; // 0x0000049c
  112. uint32_t ahb2ahb_ab_lps2aon_ctrl_set; // 0x000004a0
  113. uint32_t __1188[1]; // 0x000004a4
  114. uint32_t sysctrl_reg0_set; // 0x000004a8
  115. uint32_t __1196[1]; // 0x000004ac
  116. uint32_t cfg_aon_anti_hang_set; // 0x000004b0
  117. uint32_t __1204[1]; // 0x000004b4
  118. uint32_t aon_ahb_mtx_slice_autogate_en_set; // 0x000004b8
  119. uint32_t dap_djtag_en_cfg_set; // 0x000004bc
  120. uint32_t lte_ahb2ahb_sync_cfg_set; // 0x000004c0
  121. uint32_t cfg_aon_io_core_ie_0_set; // 0x000004c4
  122. uint32_t cfg_aon_io_core_ie_1_set; // 0x000004c8
  123. uint32_t cfg_aon_io_core_ie_2_set; // 0x000004cc
  124. uint32_t cfg_aon_io_core_ie_3_set; // 0x000004d0
  125. uint32_t __1236[203]; // 0x000004d4
  126. uint32_t aon_soft_rst_ctrl0_clr; // 0x00000800
  127. uint32_t clken_lte_clr; // 0x00000804
  128. uint32_t clken_lte_intf_clr; // 0x00000808
  129. uint32_t rstctrl_lte_clr; // 0x0000080c
  130. uint32_t __2064[1]; // 0x00000810
  131. uint32_t lte_autogate_en_clr; // 0x00000814
  132. uint32_t __2072[1]; // 0x00000818
  133. uint32_t aon_lpc_ctrl_clr; // 0x0000081c
  134. uint32_t aon_clock_en0_clr; // 0x00000820
  135. uint32_t aon_clock_en1_clr; // 0x00000824
  136. uint32_t aon_clock_auto_sel0_clr; // 0x00000828
  137. uint32_t aon_clock_auto_sel1_clr; // 0x0000082c
  138. uint32_t aon_clock_auto_sel2_clr; // 0x00000830
  139. uint32_t aon_clock_auto_sel3_clr; // 0x00000834
  140. uint32_t aon_clock_force_en0_clr; // 0x00000838
  141. uint32_t aon_clock_force_en1_clr; // 0x0000083c
  142. uint32_t aon_clock_force_en2_clr; // 0x00000840
  143. uint32_t aon_clock_force_en3_clr; // 0x00000844
  144. uint32_t aon_soft_rst_ctrl1_clr; // 0x00000848
  145. uint32_t mipi_csi_cfg_reg_clr; // 0x0000084c
  146. uint32_t cfg_clk_uart2_clr; // 0x00000850
  147. uint32_t cfg_clk_uart3_clr; // 0x00000854
  148. uint32_t cfg_clk_debug_host_clr; // 0x00000858
  149. uint32_t __2140[1]; // 0x0000085c
  150. uint32_t rc_calib_ctrl_clr; // 0x00000860
  151. uint32_t __2148[2]; // 0x00000864
  152. uint32_t emmc_slice_phy_ctrl_clr; // 0x0000086c
  153. uint32_t dma_req_ctrl_clr; // 0x00000870
  154. uint32_t apt_trigger_sel_clr; // 0x00000874
  155. uint32_t ahb2ahb_ab_funcdma_ctrl_clr; // 0x00000878
  156. uint32_t __2172[1]; // 0x0000087c
  157. uint32_t ahb2ahb_ab_dap_ctrl_clr; // 0x00000880
  158. uint32_t __2180[1]; // 0x00000884
  159. uint32_t ahb2axi_pub_ctrl_clr; // 0x00000888
  160. uint32_t __2188[3]; // 0x0000088c
  161. uint32_t ahb2ahb_ab_aon2lps_ctrl_clr; // 0x00000898
  162. uint32_t __2204[1]; // 0x0000089c
  163. uint32_t ahb2ahb_ab_lps2aon_ctrl_clr; // 0x000008a0
  164. uint32_t __2212[1]; // 0x000008a4
  165. uint32_t sysctrl_reg0_clr; // 0x000008a8
  166. uint32_t __2220[1]; // 0x000008ac
  167. uint32_t cfg_aon_anti_hang_clr; // 0x000008b0
  168. uint32_t __2228[1]; // 0x000008b4
  169. uint32_t aon_ahb_mtx_slice_autogate_en_clr; // 0x000008b8
  170. uint32_t dap_djtag_en_cfg_clr; // 0x000008bc
  171. uint32_t lte_ahb2ahb_sync_cfg_clr; // 0x000008c0
  172. uint32_t cfg_aon_io_core_ie_0_clr; // 0x000008c4
  173. uint32_t cfg_aon_io_core_ie_1_clr; // 0x000008c8
  174. uint32_t cfg_aon_io_core_ie_2_clr; // 0x000008cc
  175. uint32_t cfg_aon_io_core_ie_3_clr; // 0x000008d0
  176. } HWP_SYS_CTRL_T;
  177. #define hwp_sysCtrl ((HWP_SYS_CTRL_T *)REG_ACCESS_ADDRESS(REG_SYS_CTRL_BASE))
  178. // aon_soft_rst_ctrl0
  179. typedef union {
  180. uint32_t v;
  181. struct
  182. {
  183. uint32_t ahbmux_soft_rst : 1; // [0]
  184. uint32_t ahb2axi_soft_rst : 1; // [1]
  185. uint32_t async_bridge_soft_rst : 1; // [2]
  186. uint32_t dap_soft_rst : 1; // [3]
  187. uint32_t djtag_ctrl_soft_rst : 1; // [4]
  188. uint32_t efuse_soft_rst : 1; // [5]
  189. uint32_t lps_ifc_soft_rst : 1; // [6]
  190. uint32_t aon2lps_soft_rst : 1; // [7]
  191. uint32_t lps2aon_soft_rst : 1; // [8]
  192. uint32_t adimst_soft_rst : 1; // [9]
  193. uint32_t spinlock_soft_rst : 1; // [10]
  194. uint32_t aon_ifc_soft_rst : 1; // [11]
  195. uint32_t dbg_host_soft_rst : 1; // [12]
  196. uint32_t aif_soft_rst : 1; // [13]
  197. uint32_t uart2_soft_rst : 1; // [14]
  198. uint32_t uart3_soft_rst : 1; // [15]
  199. uint32_t idle_timer_soft_rst : 1; // [16]
  200. uint32_t aud_2ad_soft_rst : 1; // [17]
  201. uint32_t gpio2_soft_rst : 1; // [18]
  202. uint32_t gpt2_soft_rst : 1; // [19]
  203. uint32_t i2c3_soft_rst : 1; // [20]
  204. uint32_t mon_ctrl_soft_rst : 1; // [21]
  205. uint32_t sysmail_soft_rst : 1; // [22]
  206. uint32_t spi2_soft_rst : 1; // [23]
  207. uint32_t iomux_soft_rst : 1; // [24]
  208. uint32_t aon_imem_soft_rst : 1; // [25]
  209. uint32_t ana_wrap1_soft_rst : 1; // [26]
  210. uint32_t ana_wrap2_soft_rst : 1; // [27]
  211. uint32_t usbphy_soft_rst : 1; // [28]
  212. uint32_t scc_soft_rst : 1; // [29]
  213. uint32_t __31_30 : 2; // [31:30]
  214. } b;
  215. } REG_SYS_CTRL_AON_SOFT_RST_CTRL0_T;
  216. // clken_lte
  217. typedef union {
  218. uint32_t v;
  219. struct
  220. {
  221. uint32_t txrx_func_en : 1; // [0]
  222. uint32_t coeff_func_en : 1; // [1]
  223. uint32_t ldtc_func_en : 1; // [2]
  224. uint32_t ldtc1_func_en : 1; // [3]
  225. uint32_t measpwr_func_en : 1; // [4]
  226. uint32_t iddet_func_en : 1; // [5]
  227. uint32_t otdoa_func_en : 1; // [6]
  228. uint32_t uldft_func_en : 1; // [7]
  229. uint32_t pusch_func_en : 1; // [8]
  230. uint32_t csirs_func_en : 1; // [9]
  231. uint32_t dlfft_func_en : 1; // [10]
  232. uint32_t rfad_func_en : 1; // [11]
  233. uint32_t rxcapt_func_en : 1; // [12]
  234. uint32_t hsdl_func_en : 1; // [13]
  235. uint32_t dbgio_func_en : 1; // [14]
  236. uint32_t __31_15 : 17; // [31:15]
  237. } b;
  238. } REG_SYS_CTRL_CLKEN_LTE_T;
  239. // clken_lte_intf
  240. typedef union {
  241. uint32_t v;
  242. struct
  243. {
  244. uint32_t txrx_intf_en : 1; // [0]
  245. uint32_t coeff_intf_en : 1; // [1]
  246. uint32_t ldtc_intf_en : 1; // [2]
  247. uint32_t ldtc1_intf_en : 1; // [3]
  248. uint32_t measpwr_intf_en : 1; // [4]
  249. uint32_t iddet_intf_en : 1; // [5]
  250. uint32_t otdoa_intf_en : 1; // [6]
  251. uint32_t uldft_intf_en : 1; // [7]
  252. uint32_t pusch_intf_en : 1; // [8]
  253. uint32_t csirs_intf_en : 1; // [9]
  254. uint32_t dlfft_intf_en : 1; // [10]
  255. uint32_t rfad_intf_en : 1; // [11]
  256. uint32_t rxcapt_intf_en : 1; // [12]
  257. uint32_t hsdl_intf_en : 1; // [13]
  258. uint32_t dbgio_intf_en : 1; // [14]
  259. uint32_t __31_15 : 17; // [31:15]
  260. } b;
  261. } REG_SYS_CTRL_CLKEN_LTE_INTF_T;
  262. // rstctrl_lte
  263. typedef union {
  264. uint32_t v;
  265. struct
  266. {
  267. uint32_t txrx_tx_soft_rst : 1; // [0]
  268. uint32_t txrx_rx_soft_rst : 1; // [1]
  269. uint32_t coeff_soft_rst : 1; // [2]
  270. uint32_t ldtc_soft_rst : 1; // [3]
  271. uint32_t ldtc1_soft_rst : 1; // [4]
  272. uint32_t measpwr_soft_rst : 1; // [5]
  273. uint32_t iddet_soft_rst : 1; // [6]
  274. uint32_t otdoa_soft_rst : 1; // [7]
  275. uint32_t uldft_soft_rst : 1; // [8]
  276. uint32_t pusch_soft_rst : 1; // [9]
  277. uint32_t csirs_soft_rst : 1; // [10]
  278. uint32_t dlfft_soft_rst : 1; // [11]
  279. uint32_t rfad_soft_rst : 1; // [12]
  280. uint32_t rxcapt_soft_rst : 1; // [13]
  281. uint32_t hsdl_soft_rst : 1; // [14]
  282. uint32_t dbgio_soft_rst : 1; // [15]
  283. uint32_t __31_16 : 16; // [31:16]
  284. } b;
  285. } REG_SYS_CTRL_RSTCTRL_LTE_T;
  286. // lte_autogate_mode
  287. typedef union {
  288. uint32_t v;
  289. struct
  290. {
  291. uint32_t lte_autogate_mode : 1; // [0]
  292. uint32_t __31_1 : 31; // [31:1]
  293. } b;
  294. } REG_SYS_CTRL_LTE_AUTOGATE_MODE_T;
  295. // lte_autogate_en
  296. typedef union {
  297. uint32_t v;
  298. struct
  299. {
  300. uint32_t txrx_func_autogate_en : 1; // [0]
  301. uint32_t coeff_func_autogate_en : 1; // [1]
  302. uint32_t ldtc_func_autogate_en : 1; // [2]
  303. uint32_t ldtc1_func_autogate_en : 1; // [3]
  304. uint32_t measpwr_func_autogate_en : 1; // [4]
  305. uint32_t iddet_func_autogate_en : 1; // [5]
  306. uint32_t otdoa_func_autogate_en : 1; // [6]
  307. uint32_t uldft_func_autogate_en : 1; // [7]
  308. uint32_t pusch_func_autogate_en : 1; // [8]
  309. uint32_t csirs_func_autogate_en : 1; // [9]
  310. uint32_t dlfft_func_autogate_en : 1; // [10]
  311. uint32_t txrx_intf_autogate_en : 1; // [11]
  312. uint32_t coeff_intf_autogate_en : 1; // [12]
  313. uint32_t ldtc_intf_autogate_en : 1; // [13]
  314. uint32_t ldtc1_intf_autogate_en : 1; // [14]
  315. uint32_t measpwr_intf_autogate_en : 1; // [15]
  316. uint32_t iddet_intf_autogate_en : 1; // [16]
  317. uint32_t otdoa_intf_autogate_en : 1; // [17]
  318. uint32_t uldft_intf_autogate_en : 1; // [18]
  319. uint32_t pusch_intf_autogate_en : 1; // [19]
  320. uint32_t csirs_intf_autogate_en : 1; // [20]
  321. uint32_t dlfft_intf_autogate_en : 1; // [21]
  322. uint32_t __23_22 : 2; // [23:22]
  323. uint32_t downlink_func_autogate_en : 1; // [24]
  324. uint32_t uplink_func_autogate_en : 1; // [25]
  325. uint32_t downlink_intf_autogate_en : 1; // [26]
  326. uint32_t uplink_intf_autogate_en : 1; // [27]
  327. uint32_t __31_28 : 4; // [31:28]
  328. } b;
  329. } REG_SYS_CTRL_LTE_AUTOGATE_EN_T;
  330. // lte_autogate_delay_num
  331. typedef union {
  332. uint32_t v;
  333. struct
  334. {
  335. uint32_t lte_autogate_delay_number : 8; // [7:0]
  336. uint32_t __31_8 : 24; // [31:8]
  337. } b;
  338. } REG_SYS_CTRL_LTE_AUTOGATE_DELAY_NUM_T;
  339. // aon_lpc_ctrl
  340. typedef union {
  341. uint32_t v;
  342. struct
  343. {
  344. uint32_t lpc_en : 1; // [0]
  345. uint32_t lpc_frc_en : 1; // [1]
  346. uint32_t __7_2 : 6; // [7:2]
  347. uint32_t lpc_pu_num : 8; // [15:8]
  348. uint32_t lpc_pd_num : 16; // [31:16]
  349. } b;
  350. } REG_SYS_CTRL_AON_LPC_CTRL_T;
  351. // aon_clock_en0
  352. typedef union {
  353. uint32_t v;
  354. struct
  355. {
  356. uint32_t aon_ahb_matrix_en : 1; // [0]
  357. uint32_t aon_ahbmux_en : 1; // [1]
  358. uint32_t aon2lps_en : 1; // [2]
  359. uint32_t lps2aon_en : 1; // [3]
  360. uint32_t aon_imem_en : 1; // [4]
  361. uint32_t spinlock_en : 1; // [5]
  362. uint32_t efuse_ctrl_en : 1; // [6]
  363. uint32_t adimst_en : 1; // [7]
  364. uint32_t aon2pub_en : 1; // [8]
  365. uint32_t aonifc_en : 1; // [9]
  366. uint32_t lpsifc_en : 1; // [10]
  367. uint32_t gpt2_en : 1; // [11]
  368. uint32_t aud2ad_en : 1; // [12]
  369. uint32_t spi2_en : 1; // [13]
  370. uint32_t gpio2_en : 1; // [14]
  371. uint32_t mon_ctrl_en : 1; // [15]
  372. uint32_t aif_en : 1; // [16]
  373. uint32_t idle_timer_en : 1; // [17]
  374. uint32_t uart2_en : 1; // [18]
  375. uint32_t uart3_en : 1; // [19]
  376. uint32_t dbg_host_en : 1; // [20]
  377. uint32_t funcdma_en : 1; // [21]
  378. uint32_t dap_en : 1; // [22]
  379. uint32_t gnss_32k_en : 1; // [23]
  380. uint32_t usb_32k_en : 1; // [24]
  381. uint32_t sdio_1x_ap_en : 1; // [25]
  382. uint32_t sdio_1x_lte_en : 1; // [26]
  383. uint32_t sdio_aon_en : 1; // [27]
  384. uint32_t djtag_cfg_en : 1; // [28]
  385. uint32_t codec_mclock_en : 1; // [29]
  386. uint32_t clock_out_dbg_en : 1; // [30]
  387. uint32_t tsx_cal_en : 1; // [31]
  388. } b;
  389. } REG_SYS_CTRL_AON_CLOCK_EN0_T;
  390. // aon_clock_en1
  391. typedef union {
  392. uint32_t v;
  393. struct
  394. {
  395. uint32_t djtag_tck_en : 1; // [0]
  396. uint32_t usb_ref_en : 1; // [1]
  397. uint32_t psram_en : 1; // [2]
  398. uint32_t aon_ahb_ap_en : 1; // [3]
  399. uint32_t aon_ahb_cp_en : 1; // [4]
  400. uint32_t aon_ahb_pub_en : 1; // [5]
  401. uint32_t aon_ahb_rf_en : 1; // [6]
  402. uint32_t calib_rc_en : 1; // [7]
  403. uint32_t fw_aon_en : 1; // [8]
  404. uint32_t scc_en : 1; // [9]
  405. uint32_t usb_ahb_usb_en : 1; // [10]
  406. uint32_t usb_ahb_ap_en : 1; // [11]
  407. uint32_t __31_12 : 20; // [31:12]
  408. } b;
  409. } REG_SYS_CTRL_AON_CLOCK_EN1_T;
  410. // aon_soft_rst_ctrl1
  411. typedef union {
  412. uint32_t v;
  413. struct
  414. {
  415. uint32_t aon_djtag_soft_rst : 1; // [0]
  416. uint32_t ap_djtag_soft_rst : 1; // [1]
  417. uint32_t cp_djtag_soft_rst : 1; // [2]
  418. uint32_t rf_djtag_soft_rst : 1; // [3]
  419. uint32_t gnss_djtag_soft_rst : 1; // [4]
  420. uint32_t pub_djtag_soft_rst : 1; // [5]
  421. uint32_t lte_djtag_soft_rst : 1; // [6]
  422. uint32_t usb_djtag_soft_rst : 1; // [7]
  423. uint32_t emmc_phy_soft_rst : 1; // [8]
  424. uint32_t rc_calib_soft_rst : 1; // [9]
  425. uint32_t __31_10 : 22; // [31:10]
  426. } b;
  427. } REG_SYS_CTRL_AON_SOFT_RST_CTRL1_T;
  428. // mipi_csi_cfg_reg
  429. typedef union {
  430. uint32_t v;
  431. struct
  432. {
  433. uint32_t csi_lvds_mode_sel : 1; // [0]
  434. uint32_t lvds_rx_terminal_enable : 1; // [1]
  435. uint32_t __31_2 : 30; // [31:2]
  436. } b;
  437. } REG_SYS_CTRL_MIPI_CSI_CFG_REG_T;
  438. // cfg_clk_uart2
  439. typedef union {
  440. uint32_t v;
  441. struct
  442. {
  443. uint32_t cfg_clk_uart2_num : 10; // [9:0]
  444. uint32_t __15_10 : 6; // [15:10]
  445. uint32_t cfg_clk_uart2_demod : 14; // [29:16]
  446. uint32_t __30_30 : 1; // [30]
  447. uint32_t cfg_clk_uart2_update : 1; // [31]
  448. } b;
  449. } REG_SYS_CTRL_CFG_CLK_UART2_T;
  450. // cfg_clk_uart3
  451. typedef union {
  452. uint32_t v;
  453. struct
  454. {
  455. uint32_t cfg_clk_uart3_num : 10; // [9:0]
  456. uint32_t __15_10 : 6; // [15:10]
  457. uint32_t cfg_clk_uart3_demod : 14; // [29:16]
  458. uint32_t __30_30 : 1; // [30]
  459. uint32_t cfg_clk_uart3_update : 1; // [31]
  460. } b;
  461. } REG_SYS_CTRL_CFG_CLK_UART3_T;
  462. // cfg_clk_debug_host
  463. typedef union {
  464. uint32_t v;
  465. struct
  466. {
  467. uint32_t cfg_clk_debug_host_num : 10; // [9:0]
  468. uint32_t __15_10 : 6; // [15:10]
  469. uint32_t cfg_clk_debug_host_demod : 14; // [29:16]
  470. uint32_t __30_30 : 1; // [30]
  471. uint32_t cfg_clk_debug_host_update : 1; // [31]
  472. } b;
  473. } REG_SYS_CTRL_CFG_CLK_DEBUG_HOST_T;
  474. // rc_calib_ctrl
  475. typedef union {
  476. uint32_t v;
  477. struct
  478. {
  479. uint32_t rc_calib_en : 1; // [0]
  480. uint32_t rc_calib_int_en : 1; // [1]
  481. uint32_t rc_calib_int_clr : 1; // [2]
  482. uint32_t __31_3 : 29; // [31:3]
  483. } b;
  484. } REG_SYS_CTRL_RC_CALIB_CTRL_T;
  485. // emmc_slice_phy_ctrl
  486. typedef union {
  487. uint32_t v;
  488. struct
  489. {
  490. uint32_t emmc_module_sel : 1; // [0]
  491. uint32_t emmc_lte_slice_en : 1; // [1]
  492. uint32_t __31_2 : 30; // [31:2]
  493. } b;
  494. } REG_SYS_CTRL_EMMC_SLICE_PHY_CTRL_T;
  495. // dma_req_ctrl
  496. typedef union {
  497. uint32_t v;
  498. struct
  499. {
  500. uint32_t busmon_dma_sel : 1; // [0]
  501. uint32_t spi2_dma_sel : 1; // [1]
  502. uint32_t __31_2 : 30; // [31:2]
  503. } b;
  504. } REG_SYS_CTRL_DMA_REQ_CTRL_T;
  505. // apt_trigger_sel
  506. typedef union {
  507. uint32_t v;
  508. struct
  509. {
  510. uint32_t apt_trig_sel : 1; // [0]
  511. uint32_t __31_1 : 31; // [31:1]
  512. } b;
  513. } REG_SYS_CTRL_APT_TRIGGER_SEL_T;
  514. // ahb2ahb_ab_funcdma_ctrl
  515. typedef union {
  516. uint32_t v;
  517. struct
  518. {
  519. uint32_t funcdma_bridge_incr_r_byte : 2; // [1:0]
  520. uint32_t funcdma_bridge_incr_r_half : 2; // [3:2]
  521. uint32_t funcdma_bridge_incr_r_word : 2; // [5:4]
  522. uint32_t funcdma_bridge_pause_req : 1; // [6]
  523. uint32_t funcdma_bridge_sleep_req : 1; // [7]
  524. uint32_t funcdma_bridge_timeout_en : 1; // [8]
  525. uint32_t funcdma_bridge_mode : 1; // [9]
  526. uint32_t funcdma_bridge_bypass : 1; // [10]
  527. uint32_t funcdma_bridge_en : 1; // [11]
  528. uint32_t funcdma_bridge_s_valid : 1; // [12]
  529. uint32_t funcdma_bridge_s_endian_sel : 1; // [13]
  530. uint32_t funcdma_bridge_m_endian_sel : 1; // [14]
  531. uint32_t __31_15 : 17; // [31:15]
  532. } b;
  533. } REG_SYS_CTRL_AHB2AHB_AB_FUNCDMA_CTRL_T;
  534. // ahb2ahb_ab_funcdma_sts
  535. typedef union {
  536. uint32_t v;
  537. struct
  538. {
  539. uint32_t funcdma_bridge_sts_m_st : 2; // [1:0], read only
  540. uint32_t funcdma_bridge_pause_ready : 1; // [2], read only
  541. uint32_t funcdma_bridge_sleep_ready : 1; // [3], read only
  542. uint32_t funcdma_bridge_sts_m_idle : 1; // [4], read only
  543. uint32_t funcdma_bridge_sts_m_rfifo_empty : 1; // [5], read only
  544. uint32_t funcdma_bridge_sts_m_rfifo_full : 1; // [6], read only
  545. uint32_t funcdma_bridge_sts_m_cmdfifo_empty : 1; // [7], read only
  546. uint32_t funcdma_bridge_sts_m_cmdfifo_full : 1; // [8], read only
  547. uint32_t funcdma_bridge_sts_s_idle : 1; // [9], read only
  548. uint32_t funcdma_bridge_sts_s_rfifo_empty : 1; // [10], read only
  549. uint32_t funcdma_bridge_sts_s_rfifo_full : 1; // [11], read only
  550. uint32_t funcdma_bridge_sts_s_cmdfifo_empty : 1; // [12], read only
  551. uint32_t funcdma_bridge_sts_s_cmdfifo_full : 1; // [13], read only
  552. uint32_t __31_14 : 18; // [31:14]
  553. } b;
  554. } REG_SYS_CTRL_AHB2AHB_AB_FUNCDMA_STS_T;
  555. // ahb2ahb_ab_dap_ctrl
  556. typedef union {
  557. uint32_t v;
  558. struct
  559. {
  560. uint32_t dap_bridge_incr_r_byte : 2; // [1:0]
  561. uint32_t dap_bridge_incr_r_half : 2; // [3:2]
  562. uint32_t dap_bridge_incr_r_word : 2; // [5:4]
  563. uint32_t dap_bridge_pause_req : 1; // [6]
  564. uint32_t dap_bridge_sleep_req : 1; // [7]
  565. uint32_t dap_bridge_timeout_en : 1; // [8]
  566. uint32_t dap_bridge_mode : 1; // [9]
  567. uint32_t dap_bridge_bypass : 1; // [10]
  568. uint32_t dap_bridge_en : 1; // [11]
  569. uint32_t dap_bridge_s_valid : 1; // [12]
  570. uint32_t dap_bridge_s_endian_sel : 1; // [13]
  571. uint32_t dap_bridge_m_endian_sel : 1; // [14]
  572. uint32_t __31_15 : 17; // [31:15]
  573. } b;
  574. } REG_SYS_CTRL_AHB2AHB_AB_DAP_CTRL_T;
  575. // ahb2ahb_ab_dap_sts
  576. typedef union {
  577. uint32_t v;
  578. struct
  579. {
  580. uint32_t dap_bridge_sts_m_st : 2; // [1:0], read only
  581. uint32_t dap_bridge_pause_ready : 1; // [2], read only
  582. uint32_t dap_bridge_sleep_ready : 1; // [3], read only
  583. uint32_t dap_bridge_sts_m_idle : 1; // [4], read only
  584. uint32_t dap_bridge_sts_m_rfifo_empty : 1; // [5], read only
  585. uint32_t dap_bridge_sts_m_rfifo_full : 1; // [6], read only
  586. uint32_t dap_bridge_sts_m_cmdfifo_empty : 1; // [7], read only
  587. uint32_t dap_bridge_sts_m_cmdfifo_full : 1; // [8], read only
  588. uint32_t dap_bridge_sts_s_idle : 1; // [9], read only
  589. uint32_t dap_bridge_sts_s_rfifo_empty : 1; // [10], read only
  590. uint32_t dap_bridge_sts_s_rfifo_full : 1; // [11], read only
  591. uint32_t dap_bridge_sts_s_cmdfifo_empty : 1; // [12], read only
  592. uint32_t dap_bridge_sts_s_cmdfifo_full : 1; // [13], read only
  593. uint32_t __31_14 : 18; // [31:14]
  594. } b;
  595. } REG_SYS_CTRL_AHB2AHB_AB_DAP_STS_T;
  596. // ahb2axi_pub_ctrl
  597. typedef union {
  598. uint32_t v;
  599. struct
  600. {
  601. uint32_t ahb2axi_pub_mclk_next_on : 1; // [0]
  602. uint32_t ahb2axi_pub_sclk_next_on : 1; // [1]
  603. uint32_t ahb2axi_pub_clk_auto_gate_en : 1; // [2]
  604. uint32_t ahb2axi_pub_slv_disable_req : 1; // [3]
  605. uint32_t ahb2axi_pub_nonbuf_early_reqp_en : 1; // [4]
  606. uint32_t ahb2axi_pub_trans_fencing_req : 1; // [5]
  607. uint32_t __31_6 : 26; // [31:6]
  608. } b;
  609. } REG_SYS_CTRL_AHB2AXI_PUB_CTRL_T;
  610. // ahb2axi_pub_sts
  611. typedef union {
  612. uint32_t v;
  613. struct
  614. {
  615. uint32_t ahb2axi_pub_slv_disable_ack : 1; // [0], read only
  616. uint32_t ahb2axi_pub_bus_busy : 1; // [1], read only
  617. uint32_t ahb2axi_pub_trans_fencing_ack : 1; // [2], read only
  618. uint32_t ahb2axi_pub_mclk_req : 1; // [3], read only
  619. uint32_t __31_4 : 28; // [31:4]
  620. } b;
  621. } REG_SYS_CTRL_AHB2AXI_PUB_STS_T;
  622. // axi2axi_pub_sts_0
  623. typedef union {
  624. uint32_t v;
  625. struct
  626. {
  627. uint32_t axi2axi_pub_axi_detector_overflow : 1; // [0], read only
  628. uint32_t axi2axi_pub_pwr_handshk_clk_req : 1; // [1], read only
  629. uint32_t axi2axi_pub_bridge_trans_idle : 1; // [2], read only
  630. uint32_t __31_3 : 29; // [31:3]
  631. } b;
  632. } REG_SYS_CTRL_AXI2AXI_PUB_STS_0_T;
  633. // ahb2ahb_ab_aon2lps_ctrl
  634. typedef union {
  635. uint32_t v;
  636. struct
  637. {
  638. uint32_t ahb2ahb_ab_aon2lps_slv_disable_req : 1; // [0]
  639. uint32_t ahb2ahb_ab_aon2lps_nonbuf_early_resp_en : 1; // [1]
  640. uint32_t ahb2ahb_ab_aon2lps_sync_mode : 1; // [2]
  641. uint32_t ahb2ahb_ab_aon2lps_fifo_clr : 1; // [3]
  642. uint32_t ahb2ahb_ab_aon2lps_mclk_auto_gate_en : 1; // [4]
  643. uint32_t ahb2ahb_ab_aon2lps_sclk_auto_gate_en : 1; // [5]
  644. uint32_t ahb2ahb_ab_aon2lps_trans_fencing_req : 1; // [6]
  645. uint32_t __31_7 : 25; // [31:7]
  646. } b;
  647. } REG_SYS_CTRL_AHB2AHB_AB_AON2LPS_CTRL_T;
  648. // ahb2ahb_ab_aon2lps_sts
  649. typedef union {
  650. uint32_t v;
  651. struct
  652. {
  653. uint32_t ahb2ahb_ab_aon2lps_slv_disable_ack : 1; // [0], read only
  654. uint32_t ahb2ahb_ab_aon2lps_m_bus_busy : 1; // [1], read only
  655. uint32_t ahb2ahb_ab_aon2lps_mclk_req : 1; // [2], read only
  656. uint32_t ahb2ahb_ab_aon2lps_sclk_req : 1; // [3], read only
  657. uint32_t ahb2ahb_ab_aon2lps_s_bus_busy : 1; // [4], read only
  658. uint32_t ahb2ahb_ab_aon2lps_trans_fencing_ack : 1; // [5], read only
  659. uint32_t __31_6 : 26; // [31:6]
  660. } b;
  661. } REG_SYS_CTRL_AHB2AHB_AB_AON2LPS_STS_T;
  662. // ahb2ahb_ab_lps2aon_ctrl
  663. typedef union {
  664. uint32_t v;
  665. struct
  666. {
  667. uint32_t ahb2ahb_ab_lps2aon_slv_disable_req : 1; // [0]
  668. uint32_t ahb2ahb_ab_lps2aon_nonbuf_early_resp_en : 1; // [1]
  669. uint32_t ahb2ahb_ab_lps2aon_sync_mode : 1; // [2]
  670. uint32_t ahb2ahb_ab_lps2aon_fifo_clr : 1; // [3]
  671. uint32_t ahb2ahb_ab_lps2aon_mclk_auto_gate_en : 1; // [4]
  672. uint32_t ahb2ahb_ab_lps2aon_sclk_auto_gate_en : 1; // [5]
  673. uint32_t ahb2ahb_ab_lps2aon_trans_fencing_req : 1; // [6]
  674. uint32_t __31_7 : 25; // [31:7]
  675. } b;
  676. } REG_SYS_CTRL_AHB2AHB_AB_LPS2AON_CTRL_T;
  677. // ahb2ahb_ab_lps2aon_sts
  678. typedef union {
  679. uint32_t v;
  680. struct
  681. {
  682. uint32_t ahb2ahb_ab_lps2aon_slv_disable_ack : 1; // [0], read only
  683. uint32_t ahb2ahb_ab_lps2aon_m_bus_busy : 1; // [1], read only
  684. uint32_t ahb2ahb_ab_lps2aon_mclk_req : 1; // [2], read only
  685. uint32_t ahb2ahb_ab_lps2aon_sclk_req : 1; // [3], read only
  686. uint32_t ahb2ahb_ab_lps2aon_s_bus_busy : 1; // [4], read only
  687. uint32_t ahb2ahb_ab_lps2aon_trans_fencing_ack : 1; // [5], read only
  688. uint32_t __31_6 : 26; // [31:6]
  689. } b;
  690. } REG_SYS_CTRL_AHB2AHB_AB_LPS2AON_STS_T;
  691. // sysctrl_reg0
  692. typedef union {
  693. uint32_t v;
  694. struct
  695. {
  696. uint32_t spiflash2_nand_sel : 1; // [0]
  697. uint32_t ptest_func_atspeed_sel : 1; // [1]
  698. uint32_t exit_suspend_wait_xtal26m : 1; // [2]
  699. uint32_t usb20_vbus_valid_sw : 1; // [3]
  700. uint32_t usb20_vbus_valid_sel : 1; // [4]
  701. uint32_t usb20_iddig : 1; // [5]
  702. uint32_t usb20_con_testmode : 1; // [6]
  703. uint32_t usb20_utmi_width_sel : 1; // [7]
  704. uint32_t aud_sclk_o_pn_sel : 1; // [8]
  705. uint32_t apll_ref_en : 1; // [9]
  706. uint32_t mpll_ref_en : 1; // [10]
  707. uint32_t iis_pll_ref_en : 1; // [11]
  708. uint32_t pmic_26m_en : 1; // [12]
  709. uint32_t rf_idle_enable : 1; // [13]
  710. uint32_t __31_14 : 18; // [31:14]
  711. } b;
  712. } REG_SYS_CTRL_SYSCTRL_REG0_T;
  713. // plls_sts
  714. typedef union {
  715. uint32_t v;
  716. struct
  717. {
  718. uint32_t apll_state : 3; // [2:0], read only
  719. uint32_t __3_3 : 1; // [3]
  720. uint32_t mpll_state : 3; // [6:4], read only
  721. uint32_t __7_7 : 1; // [7]
  722. uint32_t iispll_state : 3; // [10:8], read only
  723. uint32_t __31_11 : 21; // [31:11]
  724. } b;
  725. } REG_SYS_CTRL_PLLS_STS_T;
  726. // cfg_aon_anti_hang
  727. typedef union {
  728. uint32_t v;
  729. struct
  730. {
  731. uint32_t aon_ahbmux_err_resp_en : 1; // [0]
  732. uint32_t aon_apbmux_err_resp_en : 1; // [1]
  733. uint32_t aonifc_err_resp_en : 1; // [2]
  734. uint32_t lpsifc_err_resp_en : 1; // [3]
  735. uint32_t aon2pub_slv_disable_req_force : 1; // [4]
  736. uint32_t aon2pub_slv_disable_req_sel : 1; // [5]
  737. uint32_t lte_err_resp_en : 1; // [6]
  738. uint32_t aon2ap_err_resp_en : 1; // [7]
  739. uint32_t aon2cp_err_resp_en : 1; // [8]
  740. uint32_t aon2rf_err_resp_en : 1; // [9]
  741. uint32_t aon2ap_slv_disable_req_force : 1; // [10]
  742. uint32_t aon2ap_slv_disable_req_sel : 1; // [11]
  743. uint32_t aon2cp_slv_disable_req_force : 1; // [12]
  744. uint32_t aon2cp_slv_disable_req_sel : 1; // [13]
  745. uint32_t aon2rf_slv_disable_req_force : 1; // [14]
  746. uint32_t aon2rf_slv_disable_req_sel : 1; // [15]
  747. uint32_t __31_16 : 16; // [31:16]
  748. } b;
  749. } REG_SYS_CTRL_CFG_AON_ANTI_HANG_T;
  750. // cfg_aon_qos
  751. typedef union {
  752. uint32_t v;
  753. struct
  754. {
  755. uint32_t awqos_aon : 4; // [3:0]
  756. uint32_t arqos_aon : 4; // [7:4]
  757. uint32_t __31_8 : 24; // [31:8]
  758. } b;
  759. } REG_SYS_CTRL_CFG_AON_QOS_T;
  760. // aon_ahb_mtx_slice_autogate_en
  761. typedef union {
  762. uint32_t v;
  763. struct
  764. {
  765. uint32_t aon_ahb_mtx_slice_s0_auto_gate_en : 1; // [0]
  766. uint32_t aon_ahb_mtx_slice_s1_auto_gate_en : 1; // [1]
  767. uint32_t aon_ahb_mtx_slice_s2_auto_gate_en : 1; // [2]
  768. uint32_t aon_ahb_mtx_slice_s3_auto_gate_en : 1; // [3]
  769. uint32_t aon_ahb_mtx_slice_s4_auto_gate_en : 1; // [4]
  770. uint32_t aon_ahb_mtx_slice_s5_auto_gate_en : 1; // [5]
  771. uint32_t aon_ahb_mtx_slice_m0_auto_gate_en : 1; // [6]
  772. uint32_t aon_ahb_mtx_slice_m1_auto_gate_en : 1; // [7]
  773. uint32_t aon_ahb_mtx_slice_m2_auto_gate_en : 1; // [8]
  774. uint32_t aon_ahb_mtx_slice_m3_auto_gate_en : 1; // [9]
  775. uint32_t aon_ahb_mtx_slice_m4_auto_gate_en : 1; // [10]
  776. uint32_t aon_ahb_mtx_slice_m5_auto_gate_en : 1; // [11]
  777. uint32_t __31_12 : 20; // [31:12]
  778. } b;
  779. } REG_SYS_CTRL_AON_AHB_MTX_SLICE_AUTOGATE_EN_T;
  780. // dap_djtag_en_cfg
  781. typedef union {
  782. uint32_t v;
  783. struct
  784. {
  785. uint32_t dap_djtag_en : 1; // [0]
  786. uint32_t __31_1 : 31; // [31:1]
  787. } b;
  788. } REG_SYS_CTRL_DAP_DJTAG_EN_CFG_T;
  789. // lte_ahb2ahb_sync_cfg
  790. typedef union {
  791. uint32_t v;
  792. struct
  793. {
  794. uint32_t dma2phy_wr_early_resp_en : 1; // [0]
  795. uint32_t dma2phy_auto_gating_en : 1; // [1]
  796. uint32_t cpu2phy_wr_early_resp_en : 1; // [2]
  797. uint32_t cpu2phy_auto_gating_en : 1; // [3]
  798. uint32_t __31_4 : 28; // [31:4]
  799. } b;
  800. } REG_SYS_CTRL_LTE_AHB2AHB_SYNC_CFG_T;
  801. // aon_soft_rst_ctrl0
  802. #define SYS_CTRL_AHBMUX_SOFT_RST (1 << 0)
  803. #define SYS_CTRL_AHB2AXI_SOFT_RST (1 << 1)
  804. #define SYS_CTRL_ASYNC_BRIDGE_SOFT_RST (1 << 2)
  805. #define SYS_CTRL_DAP_SOFT_RST (1 << 3)
  806. #define SYS_CTRL_DJTAG_CTRL_SOFT_RST (1 << 4)
  807. #define SYS_CTRL_EFUSE_SOFT_RST (1 << 5)
  808. #define SYS_CTRL_LPS_IFC_SOFT_RST (1 << 6)
  809. #define SYS_CTRL_AON2LPS_SOFT_RST (1 << 7)
  810. #define SYS_CTRL_LPS2AON_SOFT_RST (1 << 8)
  811. #define SYS_CTRL_ADIMST_SOFT_RST (1 << 9)
  812. #define SYS_CTRL_SPINLOCK_SOFT_RST (1 << 10)
  813. #define SYS_CTRL_AON_IFC_SOFT_RST (1 << 11)
  814. #define SYS_CTRL_DBG_HOST_SOFT_RST (1 << 12)
  815. #define SYS_CTRL_AIF_SOFT_RST (1 << 13)
  816. #define SYS_CTRL_UART2_SOFT_RST (1 << 14)
  817. #define SYS_CTRL_UART3_SOFT_RST (1 << 15)
  818. #define SYS_CTRL_IDLE_TIMER_SOFT_RST (1 << 16)
  819. #define SYS_CTRL_AUD_2AD_SOFT_RST (1 << 17)
  820. #define SYS_CTRL_GPIO2_SOFT_RST (1 << 18)
  821. #define SYS_CTRL_GPT2_SOFT_RST (1 << 19)
  822. #define SYS_CTRL_I2C3_SOFT_RST (1 << 20)
  823. #define SYS_CTRL_MON_CTRL_SOFT_RST (1 << 21)
  824. #define SYS_CTRL_SYSMAIL_SOFT_RST (1 << 22)
  825. #define SYS_CTRL_SPI2_SOFT_RST (1 << 23)
  826. #define SYS_CTRL_IOMUX_SOFT_RST (1 << 24)
  827. #define SYS_CTRL_AON_IMEM_SOFT_RST (1 << 25)
  828. #define SYS_CTRL_ANA_WRAP1_SOFT_RST (1 << 26)
  829. #define SYS_CTRL_ANA_WRAP2_SOFT_RST (1 << 27)
  830. #define SYS_CTRL_USBPHY_SOFT_RST (1 << 28)
  831. #define SYS_CTRL_SCC_SOFT_RST (1 << 29)
  832. // clken_lte
  833. #define SYS_CTRL_TXRX_FUNC_EN (1 << 0)
  834. #define SYS_CTRL_COEFF_FUNC_EN (1 << 1)
  835. #define SYS_CTRL_LDTC_FUNC_EN (1 << 2)
  836. #define SYS_CTRL_LDTC1_FUNC_EN (1 << 3)
  837. #define SYS_CTRL_MEASPWR_FUNC_EN (1 << 4)
  838. #define SYS_CTRL_IDDET_FUNC_EN (1 << 5)
  839. #define SYS_CTRL_OTDOA_FUNC_EN (1 << 6)
  840. #define SYS_CTRL_ULDFT_FUNC_EN (1 << 7)
  841. #define SYS_CTRL_PUSCH_FUNC_EN (1 << 8)
  842. #define SYS_CTRL_CSIRS_FUNC_EN (1 << 9)
  843. #define SYS_CTRL_DLFFT_FUNC_EN (1 << 10)
  844. #define SYS_CTRL_RFAD_FUNC_EN (1 << 11)
  845. #define SYS_CTRL_RXCAPT_FUNC_EN (1 << 12)
  846. #define SYS_CTRL_HSDL_FUNC_EN (1 << 13)
  847. #define SYS_CTRL_DBGIO_FUNC_EN (1 << 14)
  848. // clken_lte_intf
  849. #define SYS_CTRL_TXRX_INTF_EN (1 << 0)
  850. #define SYS_CTRL_COEFF_INTF_EN (1 << 1)
  851. #define SYS_CTRL_LDTC_INTF_EN (1 << 2)
  852. #define SYS_CTRL_LDTC1_INTF_EN (1 << 3)
  853. #define SYS_CTRL_MEASPWR_INTF_EN (1 << 4)
  854. #define SYS_CTRL_IDDET_INTF_EN (1 << 5)
  855. #define SYS_CTRL_OTDOA_INTF_EN (1 << 6)
  856. #define SYS_CTRL_ULDFT_INTF_EN (1 << 7)
  857. #define SYS_CTRL_PUSCH_INTF_EN (1 << 8)
  858. #define SYS_CTRL_CSIRS_INTF_EN (1 << 9)
  859. #define SYS_CTRL_DLFFT_INTF_EN (1 << 10)
  860. #define SYS_CTRL_RFAD_INTF_EN (1 << 11)
  861. #define SYS_CTRL_RXCAPT_INTF_EN (1 << 12)
  862. #define SYS_CTRL_HSDL_INTF_EN (1 << 13)
  863. #define SYS_CTRL_DBGIO_INTF_EN (1 << 14)
  864. // rstctrl_lte
  865. #define SYS_CTRL_TXRX_TX_SOFT_RST (1 << 0)
  866. #define SYS_CTRL_TXRX_RX_SOFT_RST (1 << 1)
  867. #define SYS_CTRL_COEFF_SOFT_RST (1 << 2)
  868. #define SYS_CTRL_LDTC_SOFT_RST (1 << 3)
  869. #define SYS_CTRL_LDTC1_SOFT_RST (1 << 4)
  870. #define SYS_CTRL_MEASPWR_SOFT_RST (1 << 5)
  871. #define SYS_CTRL_IDDET_SOFT_RST (1 << 6)
  872. #define SYS_CTRL_OTDOA_SOFT_RST (1 << 7)
  873. #define SYS_CTRL_ULDFT_SOFT_RST (1 << 8)
  874. #define SYS_CTRL_PUSCH_SOFT_RST (1 << 9)
  875. #define SYS_CTRL_CSIRS_SOFT_RST (1 << 10)
  876. #define SYS_CTRL_DLFFT_SOFT_RST (1 << 11)
  877. #define SYS_CTRL_RFAD_SOFT_RST (1 << 12)
  878. #define SYS_CTRL_RXCAPT_SOFT_RST (1 << 13)
  879. #define SYS_CTRL_HSDL_SOFT_RST (1 << 14)
  880. #define SYS_CTRL_DBGIO_SOFT_RST (1 << 15)
  881. // lte_autogate_mode
  882. #define SYS_CTRL_LTE_AUTOGATE_MODE (1 << 0)
  883. // lte_autogate_en
  884. #define SYS_CTRL_TXRX_FUNC_AUTOGATE_EN (1 << 0)
  885. #define SYS_CTRL_COEFF_FUNC_AUTOGATE_EN (1 << 1)
  886. #define SYS_CTRL_LDTC_FUNC_AUTOGATE_EN (1 << 2)
  887. #define SYS_CTRL_LDTC1_FUNC_AUTOGATE_EN (1 << 3)
  888. #define SYS_CTRL_MEASPWR_FUNC_AUTOGATE_EN (1 << 4)
  889. #define SYS_CTRL_IDDET_FUNC_AUTOGATE_EN (1 << 5)
  890. #define SYS_CTRL_OTDOA_FUNC_AUTOGATE_EN (1 << 6)
  891. #define SYS_CTRL_ULDFT_FUNC_AUTOGATE_EN (1 << 7)
  892. #define SYS_CTRL_PUSCH_FUNC_AUTOGATE_EN (1 << 8)
  893. #define SYS_CTRL_CSIRS_FUNC_AUTOGATE_EN (1 << 9)
  894. #define SYS_CTRL_DLFFT_FUNC_AUTOGATE_EN (1 << 10)
  895. #define SYS_CTRL_TXRX_INTF_AUTOGATE_EN (1 << 11)
  896. #define SYS_CTRL_COEFF_INTF_AUTOGATE_EN (1 << 12)
  897. #define SYS_CTRL_LDTC_INTF_AUTOGATE_EN (1 << 13)
  898. #define SYS_CTRL_LDTC1_INTF_AUTOGATE_EN (1 << 14)
  899. #define SYS_CTRL_MEASPWR_INTF_AUTOGATE_EN (1 << 15)
  900. #define SYS_CTRL_IDDET_INTF_AUTOGATE_EN (1 << 16)
  901. #define SYS_CTRL_OTDOA_INTF_AUTOGATE_EN (1 << 17)
  902. #define SYS_CTRL_ULDFT_INTF_AUTOGATE_EN (1 << 18)
  903. #define SYS_CTRL_PUSCH_INTF_AUTOGATE_EN (1 << 19)
  904. #define SYS_CTRL_CSIRS_INTF_AUTOGATE_EN (1 << 20)
  905. #define SYS_CTRL_DLFFT_INTF_AUTOGATE_EN (1 << 21)
  906. #define SYS_CTRL_DOWNLINK_FUNC_AUTOGATE_EN (1 << 24)
  907. #define SYS_CTRL_UPLINK_FUNC_AUTOGATE_EN (1 << 25)
  908. #define SYS_CTRL_DOWNLINK_INTF_AUTOGATE_EN (1 << 26)
  909. #define SYS_CTRL_UPLINK_INTF_AUTOGATE_EN (1 << 27)
  910. // lte_autogate_delay_num
  911. #define SYS_CTRL_LTE_AUTOGATE_DELAY_NUMBER(n) (((n)&0xff) << 0)
  912. // aon_lpc_ctrl
  913. #define SYS_CTRL_LPC_EN (1 << 0)
  914. #define SYS_CTRL_LPC_FRC_EN (1 << 1)
  915. #define SYS_CTRL_LPC_PU_NUM(n) (((n)&0xff) << 8)
  916. #define SYS_CTRL_LPC_PD_NUM(n) (((n)&0xffff) << 16)
  917. // aon_clock_en0
  918. #define SYS_CTRL_AON_AHB_MATRIX_EN (1 << 0)
  919. #define SYS_CTRL_AON_AHBMUX_EN (1 << 1)
  920. #define SYS_CTRL_AON2LPS_EN (1 << 2)
  921. #define SYS_CTRL_LPS2AON_EN (1 << 3)
  922. #define SYS_CTRL_AON_IMEM_EN (1 << 4)
  923. #define SYS_CTRL_SPINLOCK_EN (1 << 5)
  924. #define SYS_CTRL_EFUSE_CTRL_EN (1 << 6)
  925. #define SYS_CTRL_ADIMST_EN (1 << 7)
  926. #define SYS_CTRL_AON2PUB_EN (1 << 8)
  927. #define SYS_CTRL_AONIFC_EN (1 << 9)
  928. #define SYS_CTRL_LPSIFC_EN (1 << 10)
  929. #define SYS_CTRL_GPT2_EN (1 << 11)
  930. #define SYS_CTRL_AUD2AD_EN (1 << 12)
  931. #define SYS_CTRL_SPI2_EN (1 << 13)
  932. #define SYS_CTRL_GPIO2_EN (1 << 14)
  933. #define SYS_CTRL_MON_CTRL_EN (1 << 15)
  934. #define SYS_CTRL_AIF_EN (1 << 16)
  935. #define SYS_CTRL_IDLE_TIMER_EN (1 << 17)
  936. #define SYS_CTRL_UART2_EN (1 << 18)
  937. #define SYS_CTRL_UART3_EN (1 << 19)
  938. #define SYS_CTRL_DBG_HOST_EN (1 << 20)
  939. #define SYS_CTRL_FUNCDMA_EN (1 << 21)
  940. #define SYS_CTRL_DAP_EN (1 << 22)
  941. #define SYS_CTRL_GNSS_32K_EN (1 << 23)
  942. #define SYS_CTRL_USB_32K_EN (1 << 24)
  943. #define SYS_CTRL_SDIO_1X_AP_EN (1 << 25)
  944. #define SYS_CTRL_SDIO_1X_LTE_EN (1 << 26)
  945. #define SYS_CTRL_SDIO_AON_EN (1 << 27)
  946. #define SYS_CTRL_DJTAG_CFG_EN (1 << 28)
  947. #define SYS_CTRL_CODEC_MCLOCK_EN (1 << 29)
  948. #define SYS_CTRL_CLOCK_OUT_DBG_EN (1 << 30)
  949. #define SYS_CTRL_TSX_CAL_EN (1 << 31)
  950. // aon_clock_en1
  951. #define SYS_CTRL_DJTAG_TCK_EN (1 << 0)
  952. #define SYS_CTRL_USB_REF_EN (1 << 1)
  953. #define SYS_CTRL_PSRAM_EN (1 << 2)
  954. #define SYS_CTRL_AON_AHB_AP_EN (1 << 3)
  955. #define SYS_CTRL_AON_AHB_CP_EN (1 << 4)
  956. #define SYS_CTRL_AON_AHB_PUB_EN (1 << 5)
  957. #define SYS_CTRL_AON_AHB_RF_EN (1 << 6)
  958. #define SYS_CTRL_CALIB_RC_EN (1 << 7)
  959. #define SYS_CTRL_FW_AON_EN (1 << 8)
  960. #define SYS_CTRL_SCC_EN (1 << 9)
  961. #define SYS_CTRL_USB_AHB_USB_EN (1 << 10)
  962. #define SYS_CTRL_USB_AHB_AP_EN (1 << 11)
  963. // aon_soft_rst_ctrl1
  964. #define SYS_CTRL_AON_DJTAG_SOFT_RST (1 << 0)
  965. #define SYS_CTRL_AP_DJTAG_SOFT_RST (1 << 1)
  966. #define SYS_CTRL_CP_DJTAG_SOFT_RST (1 << 2)
  967. #define SYS_CTRL_RF_DJTAG_SOFT_RST (1 << 3)
  968. #define SYS_CTRL_GNSS_DJTAG_SOFT_RST (1 << 4)
  969. #define SYS_CTRL_PUB_DJTAG_SOFT_RST (1 << 5)
  970. #define SYS_CTRL_LTE_DJTAG_SOFT_RST (1 << 6)
  971. #define SYS_CTRL_USB_DJTAG_SOFT_RST (1 << 7)
  972. #define SYS_CTRL_EMMC_PHY_SOFT_RST (1 << 8)
  973. #define SYS_CTRL_RC_CALIB_SOFT_RST (1 << 9)
  974. // mipi_csi_cfg_reg
  975. #define SYS_CTRL_CSI_LVDS_MODE_SEL (1 << 0)
  976. #define SYS_CTRL_LVDS_RX_TERMINAL_ENABLE (1 << 1)
  977. // cfg_clk_uart2
  978. #define SYS_CTRL_CFG_CLK_UART2_NUM(n) (((n)&0x3ff) << 0)
  979. #define SYS_CTRL_CFG_CLK_UART2_DEMOD(n) (((n)&0x3fff) << 16)
  980. #define SYS_CTRL_CFG_CLK_UART2_UPDATE (1 << 31)
  981. // cfg_clk_uart3
  982. #define SYS_CTRL_CFG_CLK_UART3_NUM(n) (((n)&0x3ff) << 0)
  983. #define SYS_CTRL_CFG_CLK_UART3_DEMOD(n) (((n)&0x3fff) << 16)
  984. #define SYS_CTRL_CFG_CLK_UART3_UPDATE (1 << 31)
  985. // cfg_clk_debug_host
  986. #define SYS_CTRL_CFG_CLK_DEBUG_HOST_NUM(n) (((n)&0x3ff) << 0)
  987. #define SYS_CTRL_CFG_CLK_DEBUG_HOST_DEMOD(n) (((n)&0x3fff) << 16)
  988. #define SYS_CTRL_CFG_CLK_DEBUG_HOST_UPDATE (1 << 31)
  989. // rc_calib_ctrl
  990. #define SYS_CTRL_RC_CALIB_EN (1 << 0)
  991. #define SYS_CTRL_RC_CALIB_INT_EN (1 << 1)
  992. #define SYS_CTRL_RC_CALIB_INT_CLR (1 << 2)
  993. // emmc_slice_phy_ctrl
  994. #define SYS_CTRL_EMMC_MODULE_SEL (1 << 0)
  995. #define SYS_CTRL_EMMC_LTE_SLICE_EN (1 << 1)
  996. // dma_req_ctrl
  997. #define SYS_CTRL_BUSMON_DMA_SEL (1 << 0)
  998. #define SYS_CTRL_SPI2_DMA_SEL (1 << 1)
  999. // apt_trigger_sel
  1000. #define SYS_CTRL_APT_TRIG_SEL (1 << 0)
  1001. // ahb2ahb_ab_funcdma_ctrl
  1002. #define SYS_CTRL_FUNCDMA_BRIDGE_INCR_R_BYTE(n) (((n)&0x3) << 0)
  1003. #define SYS_CTRL_FUNCDMA_BRIDGE_INCR_R_HALF(n) (((n)&0x3) << 2)
  1004. #define SYS_CTRL_FUNCDMA_BRIDGE_INCR_R_WORD(n) (((n)&0x3) << 4)
  1005. #define SYS_CTRL_FUNCDMA_BRIDGE_PAUSE_REQ (1 << 6)
  1006. #define SYS_CTRL_FUNCDMA_BRIDGE_SLEEP_REQ (1 << 7)
  1007. #define SYS_CTRL_FUNCDMA_BRIDGE_TIMEOUT_EN (1 << 8)
  1008. #define SYS_CTRL_FUNCDMA_BRIDGE_MODE (1 << 9)
  1009. #define SYS_CTRL_FUNCDMA_BRIDGE_BYPASS (1 << 10)
  1010. #define SYS_CTRL_FUNCDMA_BRIDGE_EN (1 << 11)
  1011. #define SYS_CTRL_FUNCDMA_BRIDGE_S_VALID (1 << 12)
  1012. #define SYS_CTRL_FUNCDMA_BRIDGE_S_ENDIAN_SEL (1 << 13)
  1013. #define SYS_CTRL_FUNCDMA_BRIDGE_M_ENDIAN_SEL (1 << 14)
  1014. // ahb2ahb_ab_funcdma_sts
  1015. #define SYS_CTRL_FUNCDMA_BRIDGE_STS_M_ST(n) (((n)&0x3) << 0)
  1016. #define SYS_CTRL_FUNCDMA_BRIDGE_PAUSE_READY (1 << 2)
  1017. #define SYS_CTRL_FUNCDMA_BRIDGE_SLEEP_READY (1 << 3)
  1018. #define SYS_CTRL_FUNCDMA_BRIDGE_STS_M_IDLE (1 << 4)
  1019. #define SYS_CTRL_FUNCDMA_BRIDGE_STS_M_RFIFO_EMPTY (1 << 5)
  1020. #define SYS_CTRL_FUNCDMA_BRIDGE_STS_M_RFIFO_FULL (1 << 6)
  1021. #define SYS_CTRL_FUNCDMA_BRIDGE_STS_M_CMDFIFO_EMPTY (1 << 7)
  1022. #define SYS_CTRL_FUNCDMA_BRIDGE_STS_M_CMDFIFO_FULL (1 << 8)
  1023. #define SYS_CTRL_FUNCDMA_BRIDGE_STS_S_IDLE (1 << 9)
  1024. #define SYS_CTRL_FUNCDMA_BRIDGE_STS_S_RFIFO_EMPTY (1 << 10)
  1025. #define SYS_CTRL_FUNCDMA_BRIDGE_STS_S_RFIFO_FULL (1 << 11)
  1026. #define SYS_CTRL_FUNCDMA_BRIDGE_STS_S_CMDFIFO_EMPTY (1 << 12)
  1027. #define SYS_CTRL_FUNCDMA_BRIDGE_STS_S_CMDFIFO_FULL (1 << 13)
  1028. // ahb2ahb_ab_dap_ctrl
  1029. #define SYS_CTRL_DAP_BRIDGE_INCR_R_BYTE(n) (((n)&0x3) << 0)
  1030. #define SYS_CTRL_DAP_BRIDGE_INCR_R_HALF(n) (((n)&0x3) << 2)
  1031. #define SYS_CTRL_DAP_BRIDGE_INCR_R_WORD(n) (((n)&0x3) << 4)
  1032. #define SYS_CTRL_DAP_BRIDGE_PAUSE_REQ (1 << 6)
  1033. #define SYS_CTRL_DAP_BRIDGE_SLEEP_REQ (1 << 7)
  1034. #define SYS_CTRL_DAP_BRIDGE_TIMEOUT_EN (1 << 8)
  1035. #define SYS_CTRL_DAP_BRIDGE_MODE (1 << 9)
  1036. #define SYS_CTRL_DAP_BRIDGE_BYPASS (1 << 10)
  1037. #define SYS_CTRL_DAP_BRIDGE_EN (1 << 11)
  1038. #define SYS_CTRL_DAP_BRIDGE_S_VALID (1 << 12)
  1039. #define SYS_CTRL_DAP_BRIDGE_S_ENDIAN_SEL (1 << 13)
  1040. #define SYS_CTRL_DAP_BRIDGE_M_ENDIAN_SEL (1 << 14)
  1041. // ahb2ahb_ab_dap_sts
  1042. #define SYS_CTRL_DAP_BRIDGE_STS_M_ST(n) (((n)&0x3) << 0)
  1043. #define SYS_CTRL_DAP_BRIDGE_PAUSE_READY (1 << 2)
  1044. #define SYS_CTRL_DAP_BRIDGE_SLEEP_READY (1 << 3)
  1045. #define SYS_CTRL_DAP_BRIDGE_STS_M_IDLE (1 << 4)
  1046. #define SYS_CTRL_DAP_BRIDGE_STS_M_RFIFO_EMPTY (1 << 5)
  1047. #define SYS_CTRL_DAP_BRIDGE_STS_M_RFIFO_FULL (1 << 6)
  1048. #define SYS_CTRL_DAP_BRIDGE_STS_M_CMDFIFO_EMPTY (1 << 7)
  1049. #define SYS_CTRL_DAP_BRIDGE_STS_M_CMDFIFO_FULL (1 << 8)
  1050. #define SYS_CTRL_DAP_BRIDGE_STS_S_IDLE (1 << 9)
  1051. #define SYS_CTRL_DAP_BRIDGE_STS_S_RFIFO_EMPTY (1 << 10)
  1052. #define SYS_CTRL_DAP_BRIDGE_STS_S_RFIFO_FULL (1 << 11)
  1053. #define SYS_CTRL_DAP_BRIDGE_STS_S_CMDFIFO_EMPTY (1 << 12)
  1054. #define SYS_CTRL_DAP_BRIDGE_STS_S_CMDFIFO_FULL (1 << 13)
  1055. // ahb2axi_pub_ctrl
  1056. #define SYS_CTRL_AHB2AXI_PUB_MCLK_NEXT_ON (1 << 0)
  1057. #define SYS_CTRL_AHB2AXI_PUB_SCLK_NEXT_ON (1 << 1)
  1058. #define SYS_CTRL_AHB2AXI_PUB_CLK_AUTO_GATE_EN (1 << 2)
  1059. #define SYS_CTRL_AHB2AXI_PUB_SLV_DISABLE_REQ (1 << 3)
  1060. #define SYS_CTRL_AHB2AXI_PUB_NONBUF_EARLY_REQP_EN (1 << 4)
  1061. #define SYS_CTRL_AHB2AXI_PUB_TRANS_FENCING_REQ (1 << 5)
  1062. // ahb2axi_pub_sts
  1063. #define SYS_CTRL_AHB2AXI_PUB_SLV_DISABLE_ACK (1 << 0)
  1064. #define SYS_CTRL_AHB2AXI_PUB_BUS_BUSY (1 << 1)
  1065. #define SYS_CTRL_AHB2AXI_PUB_TRANS_FENCING_ACK (1 << 2)
  1066. #define SYS_CTRL_AHB2AXI_PUB_MCLK_REQ (1 << 3)
  1067. // axi2axi_pub_sts_0
  1068. #define SYS_CTRL_AXI2AXI_PUB_AXI_DETECTOR_OVERFLOW (1 << 0)
  1069. #define SYS_CTRL_AXI2AXI_PUB_PWR_HANDSHK_CLK_REQ (1 << 1)
  1070. #define SYS_CTRL_AXI2AXI_PUB_BRIDGE_TRANS_IDLE (1 << 2)
  1071. // ahb2ahb_ab_aon2lps_ctrl
  1072. #define SYS_CTRL_AHB2AHB_AB_AON2LPS_SLV_DISABLE_REQ (1 << 0)
  1073. #define SYS_CTRL_AHB2AHB_AB_AON2LPS_NONBUF_EARLY_RESP_EN (1 << 1)
  1074. #define SYS_CTRL_AHB2AHB_AB_AON2LPS_SYNC_MODE (1 << 2)
  1075. #define SYS_CTRL_AHB2AHB_AB_AON2LPS_FIFO_CLR (1 << 3)
  1076. #define SYS_CTRL_AHB2AHB_AB_AON2LPS_MCLK_AUTO_GATE_EN (1 << 4)
  1077. #define SYS_CTRL_AHB2AHB_AB_AON2LPS_SCLK_AUTO_GATE_EN (1 << 5)
  1078. #define SYS_CTRL_AHB2AHB_AB_AON2LPS_TRANS_FENCING_REQ (1 << 6)
  1079. // ahb2ahb_ab_aon2lps_sts
  1080. #define SYS_CTRL_AHB2AHB_AB_AON2LPS_SLV_DISABLE_ACK (1 << 0)
  1081. #define SYS_CTRL_AHB2AHB_AB_AON2LPS_M_BUS_BUSY (1 << 1)
  1082. #define SYS_CTRL_AHB2AHB_AB_AON2LPS_MCLK_REQ (1 << 2)
  1083. #define SYS_CTRL_AHB2AHB_AB_AON2LPS_SCLK_REQ (1 << 3)
  1084. #define SYS_CTRL_AHB2AHB_AB_AON2LPS_S_BUS_BUSY (1 << 4)
  1085. #define SYS_CTRL_AHB2AHB_AB_AON2LPS_TRANS_FENCING_ACK (1 << 5)
  1086. // ahb2ahb_ab_lps2aon_ctrl
  1087. #define SYS_CTRL_AHB2AHB_AB_LPS2AON_SLV_DISABLE_REQ (1 << 0)
  1088. #define SYS_CTRL_AHB2AHB_AB_LPS2AON_NONBUF_EARLY_RESP_EN (1 << 1)
  1089. #define SYS_CTRL_AHB2AHB_AB_LPS2AON_SYNC_MODE (1 << 2)
  1090. #define SYS_CTRL_AHB2AHB_AB_LPS2AON_FIFO_CLR (1 << 3)
  1091. #define SYS_CTRL_AHB2AHB_AB_LPS2AON_MCLK_AUTO_GATE_EN (1 << 4)
  1092. #define SYS_CTRL_AHB2AHB_AB_LPS2AON_SCLK_AUTO_GATE_EN (1 << 5)
  1093. #define SYS_CTRL_AHB2AHB_AB_LPS2AON_TRANS_FENCING_REQ (1 << 6)
  1094. // ahb2ahb_ab_lps2aon_sts
  1095. #define SYS_CTRL_AHB2AHB_AB_LPS2AON_SLV_DISABLE_ACK (1 << 0)
  1096. #define SYS_CTRL_AHB2AHB_AB_LPS2AON_M_BUS_BUSY (1 << 1)
  1097. #define SYS_CTRL_AHB2AHB_AB_LPS2AON_MCLK_REQ (1 << 2)
  1098. #define SYS_CTRL_AHB2AHB_AB_LPS2AON_SCLK_REQ (1 << 3)
  1099. #define SYS_CTRL_AHB2AHB_AB_LPS2AON_S_BUS_BUSY (1 << 4)
  1100. #define SYS_CTRL_AHB2AHB_AB_LPS2AON_TRANS_FENCING_ACK (1 << 5)
  1101. // sysctrl_reg0
  1102. #define SYS_CTRL_SPIFLASH2_NAND_SEL (1 << 0)
  1103. #define SYS_CTRL_PTEST_FUNC_ATSPEED_SEL (1 << 1)
  1104. #define SYS_CTRL_EXIT_SUSPEND_WAIT_XTAL26M (1 << 2)
  1105. #define SYS_CTRL_USB20_VBUS_VALID_SW (1 << 3)
  1106. #define SYS_CTRL_USB20_VBUS_VALID_SEL (1 << 4)
  1107. #define SYS_CTRL_USB20_IDDIG (1 << 5)
  1108. #define SYS_CTRL_USB20_CON_TESTMODE (1 << 6)
  1109. #define SYS_CTRL_USB20_UTMI_WIDTH_SEL (1 << 7)
  1110. #define SYS_CTRL_AUD_SCLK_O_PN_SEL (1 << 8)
  1111. #define SYS_CTRL_APLL_REF_EN (1 << 9)
  1112. #define SYS_CTRL_MPLL_REF_EN (1 << 10)
  1113. #define SYS_CTRL_IIS_PLL_REF_EN (1 << 11)
  1114. #define SYS_CTRL_PMIC_26M_EN (1 << 12)
  1115. #define SYS_CTRL_RF_IDLE_ENABLE (1 << 13)
  1116. // plls_sts
  1117. #define SYS_CTRL_APLL_STATE(n) (((n)&0x7) << 0)
  1118. #define SYS_CTRL_MPLL_STATE(n) (((n)&0x7) << 4)
  1119. #define SYS_CTRL_IISPLL_STATE(n) (((n)&0x7) << 8)
  1120. // cfg_aon_anti_hang
  1121. #define SYS_CTRL_AON_AHBMUX_ERR_RESP_EN (1 << 0)
  1122. #define SYS_CTRL_AON_APBMUX_ERR_RESP_EN (1 << 1)
  1123. #define SYS_CTRL_AONIFC_ERR_RESP_EN (1 << 2)
  1124. #define SYS_CTRL_LPSIFC_ERR_RESP_EN (1 << 3)
  1125. #define SYS_CTRL_AON2PUB_SLV_DISABLE_REQ_FORCE (1 << 4)
  1126. #define SYS_CTRL_AON2PUB_SLV_DISABLE_REQ_SEL (1 << 5)
  1127. #define SYS_CTRL_LTE_ERR_RESP_EN (1 << 6)
  1128. #define SYS_CTRL_AON2AP_ERR_RESP_EN (1 << 7)
  1129. #define SYS_CTRL_AON2CP_ERR_RESP_EN (1 << 8)
  1130. #define SYS_CTRL_AON2RF_ERR_RESP_EN (1 << 9)
  1131. #define SYS_CTRL_AON2AP_SLV_DISABLE_REQ_FORCE (1 << 10)
  1132. #define SYS_CTRL_AON2AP_SLV_DISABLE_REQ_SEL (1 << 11)
  1133. #define SYS_CTRL_AON2CP_SLV_DISABLE_REQ_FORCE (1 << 12)
  1134. #define SYS_CTRL_AON2CP_SLV_DISABLE_REQ_SEL (1 << 13)
  1135. #define SYS_CTRL_AON2RF_SLV_DISABLE_REQ_FORCE (1 << 14)
  1136. #define SYS_CTRL_AON2RF_SLV_DISABLE_REQ_SEL (1 << 15)
  1137. // cfg_aon_qos
  1138. #define SYS_CTRL_AWQOS_AON(n) (((n)&0xf) << 0)
  1139. #define SYS_CTRL_ARQOS_AON(n) (((n)&0xf) << 4)
  1140. // aon_ahb_mtx_slice_autogate_en
  1141. #define SYS_CTRL_AON_AHB_MTX_SLICE_S0_AUTO_GATE_EN (1 << 0)
  1142. #define SYS_CTRL_AON_AHB_MTX_SLICE_S1_AUTO_GATE_EN (1 << 1)
  1143. #define SYS_CTRL_AON_AHB_MTX_SLICE_S2_AUTO_GATE_EN (1 << 2)
  1144. #define SYS_CTRL_AON_AHB_MTX_SLICE_S3_AUTO_GATE_EN (1 << 3)
  1145. #define SYS_CTRL_AON_AHB_MTX_SLICE_S4_AUTO_GATE_EN (1 << 4)
  1146. #define SYS_CTRL_AON_AHB_MTX_SLICE_S5_AUTO_GATE_EN (1 << 5)
  1147. #define SYS_CTRL_AON_AHB_MTX_SLICE_M0_AUTO_GATE_EN (1 << 6)
  1148. #define SYS_CTRL_AON_AHB_MTX_SLICE_M1_AUTO_GATE_EN (1 << 7)
  1149. #define SYS_CTRL_AON_AHB_MTX_SLICE_M2_AUTO_GATE_EN (1 << 8)
  1150. #define SYS_CTRL_AON_AHB_MTX_SLICE_M3_AUTO_GATE_EN (1 << 9)
  1151. #define SYS_CTRL_AON_AHB_MTX_SLICE_M4_AUTO_GATE_EN (1 << 10)
  1152. #define SYS_CTRL_AON_AHB_MTX_SLICE_M5_AUTO_GATE_EN (1 << 11)
  1153. // dap_djtag_en_cfg
  1154. #define SYS_CTRL_DAP_DJTAG_EN (1 << 0)
  1155. // lte_ahb2ahb_sync_cfg
  1156. #define SYS_CTRL_DMA2PHY_WR_EARLY_RESP_EN (1 << 0)
  1157. #define SYS_CTRL_DMA2PHY_AUTO_GATING_EN (1 << 1)
  1158. #define SYS_CTRL_CPU2PHY_WR_EARLY_RESP_EN (1 << 2)
  1159. #define SYS_CTRL_CPU2PHY_AUTO_GATING_EN (1 << 3)
  1160. #endif // _SYS_CTRL_H_