rf_sysctrl.h 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775
  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 _RF_SYSCTRL_H_
  13. #define _RF_SYSCTRL_H_
  14. // Auto generated by dtools(see dtools.txt for its version).
  15. // Don't edit it manually!
  16. #define REG_RF_SYSCTRL_SET_OFFSET (1024)
  17. #define REG_RF_SYSCTRL_CLR_OFFSET (2048)
  18. #define REG_RF_SYSCTRL_BASE (0x50035000)
  19. typedef volatile struct
  20. {
  21. uint32_t sysctrl1; // 0x00000000
  22. uint32_t sysctrl2; // 0x00000004
  23. uint32_t sysctrl3; // 0x00000008
  24. uint32_t sysctrl4; // 0x0000000c
  25. uint32_t sysctrl5; // 0x00000010
  26. uint32_t sysctrl6; // 0x00000014
  27. uint32_t sysctrl7; // 0x00000018
  28. uint32_t sysctrl8; // 0x0000001c
  29. uint32_t sysctrl9; // 0x00000020
  30. uint32_t sysctrl10; // 0x00000024
  31. uint32_t sysctrl11; // 0x00000028
  32. uint32_t sysctrl12; // 0x0000002c
  33. uint32_t sysctrl13; // 0x00000030
  34. uint32_t sysctrl14; // 0x00000034
  35. uint32_t sysctrl15; // 0x00000038
  36. uint32_t sysctrl16; // 0x0000003c
  37. uint32_t sysctrl17; // 0x00000040
  38. uint32_t sysctrl18; // 0x00000044
  39. uint32_t sysctrl19; // 0x00000048
  40. uint32_t sysctrl20; // 0x0000004c
  41. uint32_t sysctrl21; // 0x00000050
  42. uint32_t sysctrl22; // 0x00000054
  43. uint32_t sysctrl23; // 0x00000058
  44. uint32_t sysctrl24; // 0x0000005c
  45. uint32_t sysctrl25; // 0x00000060
  46. uint32_t sysstat1; // 0x00000064
  47. uint32_t sysstat2; // 0x00000068
  48. uint32_t sysctrl26; // 0x0000006c
  49. uint32_t sysctrl27; // 0x00000070
  50. uint32_t sysctrl28; // 0x00000074
  51. uint32_t sysctrl29; // 0x00000078
  52. uint32_t sysctrl30; // 0x0000007c
  53. uint32_t sysctrl31; // 0x00000080
  54. uint32_t sysctrl32; // 0x00000084
  55. uint32_t sysctrl33; // 0x00000088
  56. uint32_t sysctrl34; // 0x0000008c
  57. uint32_t sysctrl35; // 0x00000090
  58. uint32_t sysctrl36; // 0x00000094
  59. uint32_t sysctrl37; // 0x00000098
  60. uint32_t sysctrl38; // 0x0000009c
  61. uint32_t sysctrl39; // 0x000000a0
  62. uint32_t sysctrl40; // 0x000000a4
  63. uint32_t sysctrl41; // 0x000000a8
  64. uint32_t sysstat3; // 0x000000ac
  65. uint32_t sysctrl42; // 0x000000b0
  66. uint32_t sysctrl43; // 0x000000b4
  67. uint32_t sysctrl44; // 0x000000b8
  68. uint32_t sysctrl45; // 0x000000bc
  69. uint32_t sysstat4; // 0x000000c0
  70. uint32_t sysstat5; // 0x000000c4
  71. uint32_t sysctrl46; // 0x000000c8
  72. uint32_t sysctrl47; // 0x000000cc
  73. uint32_t sysctrl48; // 0x000000d0
  74. uint32_t sysctrl49; // 0x000000d4
  75. uint32_t sysctrl50; // 0x000000d8
  76. uint32_t sysctrl51; // 0x000000dc
  77. uint32_t sysctrl52; // 0x000000e0
  78. uint32_t sysctrl53; // 0x000000e4
  79. uint32_t sysctrl54; // 0x000000e8
  80. uint32_t sysctrl55; // 0x000000ec
  81. uint32_t sysctrl56; // 0x000000f0
  82. uint32_t sysctrl57; // 0x000000f4
  83. uint32_t sysctrl58; // 0x000000f8
  84. uint32_t sysctrl59; // 0x000000fc
  85. uint32_t sysctrl60; // 0x00000100
  86. uint32_t sysctrl61; // 0x00000104
  87. uint32_t sysctrl62; // 0x00000108
  88. uint32_t sysctrl63; // 0x0000010c
  89. uint32_t sysctrl64; // 0x00000110
  90. uint32_t sysctrl65; // 0x00000114
  91. uint32_t sysctrl66; // 0x00000118
  92. uint32_t sysctrl67; // 0x0000011c
  93. uint32_t sysctrl68; // 0x00000120
  94. uint32_t sysctrl69; // 0x00000124
  95. uint32_t sysctrl70; // 0x00000128
  96. uint32_t sysctrl71; // 0x0000012c
  97. uint32_t sysctrl72; // 0x00000130
  98. uint32_t sysctrl73; // 0x00000134
  99. uint32_t sysctrl74; // 0x00000138
  100. uint32_t sysctrl75; // 0x0000013c
  101. uint32_t sysctrl76; // 0x00000140
  102. uint32_t sysctrl77; // 0x00000144
  103. uint32_t sysctrl78; // 0x00000148
  104. uint32_t sysctrl79; // 0x0000014c
  105. uint32_t sysctrl80; // 0x00000150
  106. uint32_t sysctrl81; // 0x00000154
  107. uint32_t sysctrl82; // 0x00000158
  108. uint32_t __348[169]; // 0x0000015c
  109. uint32_t sysctrl1_set; // 0x00000400
  110. uint32_t sysctrl2_set; // 0x00000404
  111. uint32_t sysctrl3_set; // 0x00000408
  112. uint32_t sysctrl4_set; // 0x0000040c
  113. uint32_t sysctrl5_set; // 0x00000410
  114. uint32_t sysctrl6_set; // 0x00000414
  115. uint32_t sysctrl7_set; // 0x00000418
  116. uint32_t sysctrl8_set; // 0x0000041c
  117. uint32_t sysctrl9_set; // 0x00000420
  118. uint32_t sysctrl10_set; // 0x00000424
  119. uint32_t sysctrl11_set; // 0x00000428
  120. uint32_t sysctrl12_set; // 0x0000042c
  121. uint32_t sysctrl13_set; // 0x00000430
  122. uint32_t sysctrl14_set; // 0x00000434
  123. uint32_t sysctrl15_set; // 0x00000438
  124. uint32_t sysctrl16_set; // 0x0000043c
  125. uint32_t sysctrl17_set; // 0x00000440
  126. uint32_t sysctrl18_set; // 0x00000444
  127. uint32_t sysctrl19_set; // 0x00000448
  128. uint32_t sysctrl20_set; // 0x0000044c
  129. uint32_t sysctrl21_set; // 0x00000450
  130. uint32_t sysctrl22_set; // 0x00000454
  131. uint32_t sysctrl23_set; // 0x00000458
  132. uint32_t sysctrl24_set; // 0x0000045c
  133. uint32_t sysctrl25_set; // 0x00000460
  134. uint32_t __1124[19]; // 0x00000464
  135. uint32_t sysctrl42_set; // 0x000004b0
  136. uint32_t sysctrl43_set; // 0x000004b4
  137. uint32_t __1208[4]; // 0x000004b8
  138. uint32_t sysctrl46_set; // 0x000004c8
  139. uint32_t sysctrl47_set; // 0x000004cc
  140. uint32_t sysctrl48_set; // 0x000004d0
  141. uint32_t sysctrl49_set; // 0x000004d4
  142. uint32_t sysctrl50_set; // 0x000004d8
  143. uint32_t __1244[201]; // 0x000004dc
  144. uint32_t sysctrl1_clr; // 0x00000800
  145. uint32_t sysctrl2_clr; // 0x00000804
  146. uint32_t sysctrl3_clr; // 0x00000808
  147. uint32_t sysctrl4_clr; // 0x0000080c
  148. uint32_t sysctrl5_clr; // 0x00000810
  149. uint32_t sysctrl6_clr; // 0x00000814
  150. uint32_t sysctrl7_clr; // 0x00000818
  151. uint32_t sysctrl8_clr; // 0x0000081c
  152. uint32_t sysctrl9_clr; // 0x00000820
  153. uint32_t sysctrl10_clr; // 0x00000824
  154. uint32_t sysctrl11_clr; // 0x00000828
  155. uint32_t sysctrl12_clr; // 0x0000082c
  156. uint32_t sysctrl13_clr; // 0x00000830
  157. uint32_t sysctrl14_clr; // 0x00000834
  158. uint32_t sysctrl15_clr; // 0x00000838
  159. uint32_t sysctrl16_clr; // 0x0000083c
  160. uint32_t sysctrl17_clr; // 0x00000840
  161. uint32_t sysctrl18_clr; // 0x00000844
  162. uint32_t sysctrl19_clr; // 0x00000848
  163. uint32_t sysctrl20_clr; // 0x0000084c
  164. uint32_t sysctrl21_clr; // 0x00000850
  165. uint32_t sysctrl22_clr; // 0x00000854
  166. uint32_t sysctrl23_clr; // 0x00000858
  167. uint32_t sysctrl24_clr; // 0x0000085c
  168. uint32_t sysctrl25_clr; // 0x00000860
  169. uint32_t __2148[19]; // 0x00000864
  170. uint32_t sysctrl42_clr; // 0x000008b0
  171. uint32_t sysctrl43_clr; // 0x000008b4
  172. uint32_t __2232[4]; // 0x000008b8
  173. uint32_t sysctrl46_clr; // 0x000008c8
  174. uint32_t sysctrl47_clr; // 0x000008cc
  175. uint32_t sysctrl48_clr; // 0x000008d0
  176. uint32_t sysctrl49_clr; // 0x000008d4
  177. uint32_t sysctrl50_clr; // 0x000008d8
  178. } HWP_RF_SYSCTRL_T;
  179. #define hwp_rfSysctrl ((HWP_RF_SYSCTRL_T *)REG_ACCESS_ADDRESS(REG_RF_SYSCTRL_BASE))
  180. // sysctrl1
  181. typedef union {
  182. uint32_t v;
  183. struct
  184. {
  185. uint32_t rg_sys_ctrl_pu_bbpll1 : 1; // [0]
  186. uint32_t rg_sys_ctrl_pu_bbpll2 : 1; // [1]
  187. uint32_t rg_sys_ctrl_pu_bbpll2_dr : 1; // [2]
  188. uint32_t __31_3 : 29; // [31:3]
  189. } b;
  190. } REG_RF_SYSCTRL_SYSCTRL1_T;
  191. // sysctrl2
  192. typedef union {
  193. uint32_t v;
  194. struct
  195. {
  196. uint32_t rg_enable_clk26m_osc_thm : 1; // [0]
  197. uint32_t rg_enable_clk26m_tsx_thm : 1; // [1]
  198. uint32_t rg_enable_clk26m_aux1 : 1; // [2]
  199. uint32_t __31_3 : 29; // [31:3]
  200. } b;
  201. } REG_RF_SYSCTRL_SYSCTRL2_T;
  202. // sysctrl3
  203. typedef union {
  204. uint32_t v;
  205. struct
  206. {
  207. uint32_t rg_gnss_iq_sel_0 : 1; // [0]
  208. uint32_t rg_wifi_iq_sel_0 : 1; // [1]
  209. uint32_t rg_lte_iq_sel_0 : 1; // [2]
  210. uint32_t rfdig_latch_gnss : 1; // [3]
  211. uint32_t cgm_gnss_bb_pp_wcn_clk_en : 1; // [4]
  212. uint32_t cgm_gnss_bb_pp_wcn_clk_sel : 1; // [5]
  213. uint32_t cgm_gnss_adc_wcn_clk_en : 1; // [6]
  214. uint32_t cgm_gnss_adc_wcn_clk_sel : 1; // [7]
  215. uint32_t gnss_int_mask_bit : 1; // [8]
  216. uint32_t gnss_coexist_ext : 1; // [9]
  217. uint32_t rg_bitmap_lte_rx_on : 1; // [10]
  218. uint32_t __31_11 : 21; // [31:11]
  219. } b;
  220. } REG_RF_SYSCTRL_SYSCTRL3_T;
  221. // sysctrl4
  222. typedef union {
  223. uint32_t v;
  224. struct
  225. {
  226. uint32_t rg_rf2aon_nonbuf_early_resp_en : 1; // [0]
  227. uint32_t rg_rf2aon_mclk_auto_gate_en : 1; // [1]
  228. uint32_t rg_rf2aon_sclk_auto_gate_en : 1; // [2]
  229. uint32_t rg_aon2rf_nonbuf_early_resp_en : 1; // [3]
  230. uint32_t rg_aon2rf_mclk_auto_gate_en : 1; // [4]
  231. uint32_t rg_aon2rf_sclk_auto_gate_en : 1; // [5]
  232. uint32_t rg_ram_clk_auto_cg : 2; // [7:6]
  233. uint32_t __31_8 : 24; // [31:8]
  234. } b;
  235. } REG_RF_SYSCTRL_SYSCTRL4_T;
  236. // sysctrl5
  237. typedef union {
  238. uint32_t v;
  239. struct
  240. {
  241. uint32_t rg_lte_dac_clk_en : 1; // [0]
  242. uint32_t rg_lte_dac_clkedge_sel : 1; // [1]
  243. uint32_t rg_rtc_clkedge_sel : 1; // [2]
  244. uint32_t rg_adc_clkedge_sel : 1; // [3]
  245. uint32_t rg_dfe_dump_sel_bit : 3; // [6:4]
  246. uint32_t rg_hresp_err_mask : 1; // [7]
  247. uint32_t rg_rf_test_pad_en : 1; // [8]
  248. uint32_t rg_tsx_adc_clkedge_sel : 1; // [9]
  249. uint32_t rg_osc_adc_clkedge_sel : 1; // [10]
  250. uint32_t rg_adda_test_sel_txdlpf_afc : 1; // [11]
  251. uint32_t rg_adda_test_sel_rxdlpf_afc : 1; // [12]
  252. uint32_t rg_pwd_adc_clkedge_sel : 1; // [13]
  253. uint32_t __31_14 : 18; // [31:14]
  254. } b;
  255. } REG_RF_SYSCTRL_SYSCTRL5_T;
  256. // sysctrl6
  257. typedef union {
  258. uint32_t v;
  259. struct
  260. {
  261. uint32_t rg_dfe_cgu_soft_rst : 1; // [0]
  262. uint32_t rg_dfe_rxdp_soft_rst : 1; // [1]
  263. uint32_t rg_dfe_txdp_soft_rst : 1; // [2]
  264. uint32_t rg_dfe_pwd_soft_rst : 1; // [3]
  265. uint32_t rg_dfe_thm_tsx_soft_rst : 1; // [4]
  266. uint32_t rg_dfe_thm_osc_soft_rst : 1; // [5]
  267. uint32_t rg_txdlpf_soft_rst : 1; // [6]
  268. uint32_t rg_rxdlpf_soft_rst : 1; // [7]
  269. uint32_t __31_8 : 24; // [31:8]
  270. } b;
  271. } REG_RF_SYSCTRL_SYSCTRL6_T;
  272. // sysctrl7
  273. typedef union {
  274. uint32_t v;
  275. struct
  276. {
  277. uint32_t rg_usid_change_en : 1; // [0]
  278. uint32_t rg_mipi_clk_half_en : 1; // [1]
  279. uint32_t ptest_func_atspeed_sel : 1; // [2]
  280. uint32_t __31_3 : 29; // [31:3]
  281. } b;
  282. } REG_RF_SYSCTRL_SYSCTRL7_T;
  283. // sysctrl8
  284. typedef union {
  285. uint32_t v;
  286. struct
  287. {
  288. uint32_t rg_cgm_ahb_sel : 2; // [1:0]
  289. uint32_t rg_ahb_freq_auto_sel : 1; // [2]
  290. uint32_t rg_cgm_ahb_en : 1; // [3]
  291. uint32_t rg_cgm_26m_interface_en : 1; // [4]
  292. uint32_t rg_cgm_dfe_245m76_en : 1; // [5]
  293. uint32_t rg_rf2aon_auto_gate_en : 1; // [6]
  294. uint32_t rg_aon2rf_auto_gate_en : 1; // [7]
  295. uint32_t __9_8 : 2; // [9:8]
  296. uint32_t rg_wcn_bbpll_80m_auto_gate_en : 1; // [10]
  297. uint32_t rg_bbpll_245m_auto_gate_en : 1; // [11]
  298. uint32_t rg_bbpll_122m_auto_gate_en : 1; // [12]
  299. uint32_t rg_thm_tsx_26m_auto_gate_en : 1; // [13]
  300. uint32_t rg_thm_osc_26m_auto_gate_en : 1; // [14]
  301. uint32_t __31_15 : 17; // [31:15]
  302. } b;
  303. } REG_RF_SYSCTRL_SYSCTRL8_T;
  304. // sysctrl9
  305. typedef union {
  306. uint32_t v;
  307. struct
  308. {
  309. uint32_t rg_rtc_clk_en : 1; // [0]
  310. uint32_t rg_rffe_clk_en : 1; // [1]
  311. uint32_t rg_26m_interface_intf_en : 1; // [2]
  312. uint32_t rg_26m_interface_rxpll_cal_en : 1; // [3]
  313. uint32_t rg_26m_interface_txpll_cal_en : 1; // [4]
  314. uint32_t rg_26m_interface_bbpll1_en : 1; // [5]
  315. uint32_t rg_26m_interface_bbpll2_en : 1; // [6]
  316. uint32_t rg_26m_interface_peak_det_en : 1; // [7]
  317. uint32_t rg_pwd_dfe_pwd_en : 1; // [8]
  318. uint32_t rg_cgm_lte_adc_en : 1; // [9]
  319. uint32_t rg_cgm_thm_osc_en : 1; // [10]
  320. uint32_t rg_cgm_thm_osc_pad_en : 1; // [11]
  321. uint32_t rg_cgm_thm_tsx_dfe_en : 1; // [12]
  322. uint32_t rg_cgm_thm_tsx_pad_en : 1; // [13]
  323. uint32_t rg_cgm_thm_tsx_bist_en : 1; // [14]
  324. uint32_t __31_15 : 17; // [31:15]
  325. } b;
  326. } REG_RF_SYSCTRL_SYSCTRL9_T;
  327. // sysctrl10
  328. typedef union {
  329. uint32_t v;
  330. struct
  331. {
  332. uint32_t rg_ahb_bus_en : 1; // [0]
  333. uint32_t rg_ahb_dfe_en : 1; // [1]
  334. uint32_t rg_ahb_intf_en : 1; // [2]
  335. uint32_t rg_ahb_ram_en : 1; // [3]
  336. uint32_t rg_ahb_spi2ahb_en : 1; // [4]
  337. uint32_t rg_ahb_rxdlpf_en : 1; // [5]
  338. uint32_t rg_ahb_txdlpf_en : 1; // [6]
  339. uint32_t rg_rf2aon_en : 1; // [7]
  340. uint32_t rg_aon2rf_en : 1; // [8]
  341. uint32_t rg_ahb_pulp_en : 1; // [9]
  342. uint32_t rg_ahb_timer0_en : 1; // [10]
  343. uint32_t rg_ahb_wdg_en : 1; // [11]
  344. uint32_t rg_cgm_rf_bitmap_en : 1; // [12]
  345. uint32_t __31_13 : 19; // [31:13]
  346. } b;
  347. } REG_RF_SYSCTRL_SYSCTRL10_T;
  348. // sysctrl11
  349. typedef union {
  350. uint32_t v;
  351. struct
  352. {
  353. uint32_t rg_cgm_wpll_sdm_en : 1; // [0]
  354. uint32_t rg_cgm_lpll_sdm_en : 1; // [1]
  355. uint32_t rg_txpll_sdm_txsdm_en : 1; // [2]
  356. uint32_t rg_rxpll_sdm_rxsdm_en : 1; // [3]
  357. uint32_t rg_tx_gro_out1_txdlpf_en : 1; // [4]
  358. uint32_t rg_tx_gro_out2_txdlpf_en : 1; // [5]
  359. uint32_t rg_rx_gro_out1_rxdlpf_en : 1; // [6]
  360. uint32_t rg_rx_gro_out2_rxdlpf_en : 1; // [7]
  361. uint32_t __31_8 : 24; // [31:8]
  362. } b;
  363. } REG_RF_SYSCTRL_SYSCTRL11_T;
  364. // sysctrl12
  365. typedef union {
  366. uint32_t v;
  367. struct
  368. {
  369. uint32_t gnss_pll_397m_soft_cnt_done : 1; // [0]
  370. uint32_t gnss_pll_198m_soft_cnt_done : 1; // [1]
  371. uint32_t wcn_bbpll_80m_soft_cnt_done : 1; // [2]
  372. uint32_t bbpll_245m_soft_cnt_done : 1; // [3]
  373. uint32_t bbpll_122m_soft_cnt_done : 1; // [4]
  374. uint32_t adc_122m_soft_cnt_done : 1; // [5]
  375. uint32_t thm_tsx_26m_soft_cnt_done : 1; // [6]
  376. uint32_t thm_osc_26m_soft_cnt_done : 1; // [7]
  377. uint32_t gnss_pll_397m_cnt_done_bypass : 1; // [8]
  378. uint32_t gnss_pll_198m_cnt_done_bypass : 1; // [9]
  379. uint32_t wcn_bbpll_80m_cnt_done_bypass : 1; // [10]
  380. uint32_t bbpll_245m_cnt_done_bypass : 1; // [11]
  381. uint32_t bbpll_122m_cnt_done_bypass : 1; // [12]
  382. uint32_t adc_122m_cnt_done_bypass : 1; // [13]
  383. uint32_t thm_tsx_26m_cnt_done_bypass : 1; // [14]
  384. uint32_t thm_osc_26m_cnt_done_bypass : 1; // [15]
  385. uint32_t __31_16 : 16; // [31:16]
  386. } b;
  387. } REG_RF_SYSCTRL_SYSCTRL12_T;
  388. // sysctrl13
  389. typedef union {
  390. uint32_t v;
  391. struct
  392. {
  393. uint32_t gnss_pll_397m_wait_auto_gate_sel : 1; // [0]
  394. uint32_t gnss_pll_198m_wait_auto_gate_sel : 1; // [1]
  395. uint32_t wcn_bbpll_80m_wait_auto_gate_sel : 1; // [2]
  396. uint32_t bbpll_245m_wait_auto_gate_sel : 1; // [3]
  397. uint32_t bbpll_122m_wait_auto_gate_sel : 1; // [4]
  398. uint32_t adc_122m_wait_auto_gate_sel : 1; // [5]
  399. uint32_t thm_tsx_26m_wait_auto_gate_sel : 1; // [6]
  400. uint32_t thm_osc_26m_wait_auto_gate_sel : 1; // [7]
  401. uint32_t gnss_pll_397m_wait_force_en : 1; // [8]
  402. uint32_t gnss_pll_198m_wait_force_en : 1; // [9]
  403. uint32_t wcn_bbpll_80m_wait_force_en : 1; // [10]
  404. uint32_t bbpll_245m_wait_force_en : 1; // [11]
  405. uint32_t bbpll_122m_wait_force_en : 1; // [12]
  406. uint32_t adc_122m_wait_force_en : 1; // [13]
  407. uint32_t thm_tsx_26m_wait_force_en : 1; // [14]
  408. uint32_t thm_osc_26m_wait_force_en : 1; // [15]
  409. uint32_t __31_16 : 16; // [31:16]
  410. } b;
  411. } REG_RF_SYSCTRL_SYSCTRL13_T;
  412. // sysctrl14
  413. typedef union {
  414. uint32_t v;
  415. struct
  416. {
  417. uint32_t gnss_div_pll_397m_158m8_force_en : 1; // [0]
  418. uint32_t gnss_div_pll_397m_132m3_force_en : 1; // [1]
  419. uint32_t gnss_div_pll_397m_56m7_force_en : 1; // [2]
  420. uint32_t gnss_div_pll_397m_33m1_force_en : 1; // [3]
  421. uint32_t gnss_div_pll_397m_158m8_auto_gate_sel : 1; // [4]
  422. uint32_t gnss_div_pll_397m_132m3_auto_gate_sel : 1; // [5]
  423. uint32_t gnss_div_pll_397m_56m7_auto_gate_sel : 1; // [6]
  424. uint32_t gnss_div_pll_397m_33m1_auto_gate_sel : 1; // [7]
  425. uint32_t __31_8 : 24; // [31:8]
  426. } b;
  427. } REG_RF_SYSCTRL_SYSCTRL14_T;
  428. // sysctrl15
  429. typedef union {
  430. uint32_t v;
  431. struct
  432. {
  433. uint32_t cgm_gnss_pll_397m_ap_auto_gate_sel : 1; // [0]
  434. uint32_t cgm_gnss_pll_198_5m_ap_auto_gate_sel : 1; // [1]
  435. uint32_t cgm_gnss_pll_133m_ap_auto_gate_sel : 1; // [2]
  436. uint32_t cgm_gnss_pll_57m_ap_auto_gate_sel : 1; // [3]
  437. uint32_t cgm_gnss_pll_397m_cp_auto_gate_sel : 1; // [4]
  438. uint32_t cgm_gnss_pll_198_5m_cp_auto_gate_sel : 1; // [5]
  439. uint32_t cgm_wcn_bbpll_80m_cp_auto_gate_sel : 1; // [6]
  440. uint32_t cgm_adc_iq_cp_auto_gate_sel : 1; // [7]
  441. uint32_t cgm_thm_tsx_26m_cp_auto_gate_sel : 1; // [8]
  442. uint32_t cgm_thm_osc_26m_cp_auto_gate_sel : 1; // [9]
  443. uint32_t cgm_bbpll_245_76m_lte_auto_gate_sel : 1; // [10]
  444. uint32_t cgm_bbpll_122_88m_lte_auto_gate_sel : 1; // [11]
  445. uint32_t cgm_gnss_pll_397m_pub_auto_gate_sel : 1; // [12]
  446. uint32_t __31_13 : 19; // [31:13]
  447. } b;
  448. } REG_RF_SYSCTRL_SYSCTRL15_T;
  449. // sysctrl16
  450. typedef union {
  451. uint32_t v;
  452. struct
  453. {
  454. uint32_t cgm_bbpll_245_76m_rf_auto_gate_sel : 1; // [0]
  455. uint32_t cgm_bbpll_122_88m_rf_auto_gate_sel : 1; // [1]
  456. uint32_t cgm_wcn_bbpll_80m_rf_auto_gate_sel : 1; // [2]
  457. uint32_t cgm_gnss_pll_133m_rf_auto_gate_sel : 1; // [3]
  458. uint32_t cgm_adc_iq_rf_auto_gate_sel : 1; // [4]
  459. uint32_t cgm_thm_tsx_26m_rf_auto_gate_sel : 1; // [5]
  460. uint32_t cgm_thm_osc_26m_rf_auto_gate_sel : 1; // [6]
  461. uint32_t cgm_gnss_pll_397m_aon_auto_gate_sel : 1; // [7]
  462. uint32_t cgm_gnss_pll_198_5m_aon_auto_gate_sel : 1; // [8]
  463. uint32_t cgm_gnss_pll_133m_aon_auto_gate_sel : 1; // [9]
  464. uint32_t cgm_gnss_pll_33m_aon_auto_gate_sel : 1; // [10]
  465. uint32_t cgm_gnss_pll_133m_gnss_auto_gate_sel : 1; // [11]
  466. uint32_t cgm_gnss_pll_158m_gnss_auto_gate_sel : 1; // [12]
  467. uint32_t cgm_wcn_bbpll_80m_gnss_auto_gate_sel : 1; // [13]
  468. uint32_t cgm_adc_iq_gnss_auto_gate_sel : 1; // [14]
  469. uint32_t __31_15 : 17; // [31:15]
  470. } b;
  471. } REG_RF_SYSCTRL_SYSCTRL16_T;
  472. // sysctrl17
  473. typedef union {
  474. uint32_t v;
  475. struct
  476. {
  477. uint32_t cgm_gnss_pll_397m_ap_force_en : 1; // [0]
  478. uint32_t cgm_gnss_pll_198_5m_ap_force_en : 1; // [1]
  479. uint32_t cgm_gnss_pll_133m_ap_force_en : 1; // [2]
  480. uint32_t cgm_gnss_pll_57m_ap_force_en : 1; // [3]
  481. uint32_t cgm_gnss_pll_397m_cp_force_en : 1; // [4]
  482. uint32_t cgm_gnss_pll_198_5m_cp_force_en : 1; // [5]
  483. uint32_t cgm_wcn_bbpll_80m_cp_force_en : 1; // [6]
  484. uint32_t cgm_adc_iq_cp_force_en : 1; // [7]
  485. uint32_t cgm_thm_tsx_26m_cp_force_en : 1; // [8]
  486. uint32_t cgm_thm_osc_26m_cp_force_en : 1; // [9]
  487. uint32_t cgm_bbpll_245_76m_lte_force_en : 1; // [10]
  488. uint32_t cgm_bbpll_122_88m_lte_force_en : 1; // [11]
  489. uint32_t cgm_gnss_pll_397m_pub_force_en : 1; // [12]
  490. uint32_t __31_13 : 19; // [31:13]
  491. } b;
  492. } REG_RF_SYSCTRL_SYSCTRL17_T;
  493. // sysctrl18
  494. typedef union {
  495. uint32_t v;
  496. struct
  497. {
  498. uint32_t cgm_bbpll_245_76m_rf_force_en : 1; // [0]
  499. uint32_t cgm_bbpll_122_88m_rf_force_en : 1; // [1]
  500. uint32_t cgm_wcn_bbpll_80m_rf_force_en : 1; // [2]
  501. uint32_t cgm_gnss_pll_133m_rf_force_en : 1; // [3]
  502. uint32_t cgm_adc_iq_rf_force_en : 1; // [4]
  503. uint32_t cgm_thm_tsx_26m_rf_force_en : 1; // [5]
  504. uint32_t cgm_thm_osc_26m_rf_force_en : 1; // [6]
  505. uint32_t cgm_gnss_pll_397m_aon_force_en : 1; // [7]
  506. uint32_t cgm_gnss_pll_198_5m_aon_force_en : 1; // [8]
  507. uint32_t cgm_gnss_pll_133m_aon_force_en : 1; // [9]
  508. uint32_t cgm_gnss_pll_33m_aon_force_en : 1; // [10]
  509. uint32_t cgm_gnss_pll_133m_gnss_force_en : 1; // [11]
  510. uint32_t cgm_gnss_pll_158m_gnss_force_en : 1; // [12]
  511. uint32_t cgm_wcn_bbpll_80m_gnss_force_en : 1; // [13]
  512. uint32_t cgm_adc_iq_gnss_force_en : 1; // [14]
  513. uint32_t __31_15 : 17; // [31:15]
  514. } b;
  515. } REG_RF_SYSCTRL_SYSCTRL18_T;
  516. // sysctrl19
  517. typedef union {
  518. uint32_t v;
  519. struct
  520. {
  521. uint32_t rg_aon2rf_soft_rst : 1; // [0]
  522. uint32_t rg_rf2aon_soft_rst : 1; // [1]
  523. uint32_t rg_rf_bitmap_soft_rst : 1; // [2]
  524. uint32_t rg_tsen_bist_soft_rst : 1; // [3]
  525. uint32_t __31_4 : 28; // [31:4]
  526. } b;
  527. } REG_RF_SYSCTRL_SYSCTRL19_T;
  528. // sysctrl20
  529. typedef union {
  530. uint32_t v;
  531. struct
  532. {
  533. uint32_t rg_riscv_soft_rst : 1; // [0]
  534. uint32_t rg_dbg_soft_rst : 1; // [1]
  535. uint32_t rg_ram_soft_rst : 1; // [2]
  536. uint32_t rg_txdlpf_reg_soft_rst : 1; // [3]
  537. uint32_t rg_rxdlpf_reg_soft_rst : 1; // [4]
  538. uint32_t rg_timer0_soft_rst : 1; // [5]
  539. uint32_t rg_wdg_soft_rst : 1; // [6]
  540. uint32_t rg_rffe_soft_rst : 1; // [7]
  541. uint32_t rg_ana_regs_soft_rst : 1; // [8]
  542. uint32_t rg_rtc_soft_rst : 1; // [9]
  543. uint32_t rg_spi2ahb_soft_rst : 1; // [10]
  544. uint32_t rg_intf_apb_reg_soft_rst : 1; // [11]
  545. uint32_t rg_intf_peak_det_soft_rst : 1; // [12]
  546. uint32_t rg_intf_irq_ctrl_soft_rst : 1; // [13]
  547. uint32_t rg_intf_clkgen_soft_rst : 1; // [14]
  548. uint32_t rg_dfe_reg_soft_rst : 1; // [15]
  549. uint32_t __31_16 : 16; // [31:16]
  550. } b;
  551. } REG_RF_SYSCTRL_SYSCTRL20_T;
  552. // sysctrl21
  553. typedef union {
  554. uint32_t v;
  555. struct
  556. {
  557. uint32_t rg_rf_gpio_o : 10; // [9:0]
  558. uint32_t __31_10 : 22; // [31:10]
  559. } b;
  560. } REG_RF_SYSCTRL_SYSCTRL21_T;
  561. // sysctrl22
  562. typedef union {
  563. uint32_t v;
  564. struct
  565. {
  566. uint32_t rg_rf_gpio_oen : 10; // [9:0]
  567. uint32_t __31_10 : 22; // [31:10]
  568. } b;
  569. } REG_RF_SYSCTRL_SYSCTRL22_T;
  570. // sysctrl23
  571. typedef union {
  572. uint32_t v;
  573. struct
  574. {
  575. uint32_t rg_simc_pa_on_th : 10; // [9:0]
  576. uint32_t rg_simc_pa_en : 1; // [10]
  577. uint32_t rg_simc_pa_on : 1; // [11]
  578. uint32_t __31_12 : 20; // [31:12]
  579. } b;
  580. } REG_RF_SYSCTRL_SYSCTRL23_T;
  581. // sysctrl24
  582. typedef union {
  583. uint32_t v;
  584. struct
  585. {
  586. uint32_t rg_sysctrl_soft_rst : 1; // [0]
  587. uint32_t __31_1 : 31; // [31:1]
  588. } b;
  589. } REG_RF_SYSCTRL_SYSCTRL24_T;
  590. // sysctrl25
  591. typedef union {
  592. uint32_t v;
  593. struct
  594. {
  595. uint32_t rg_adda_test_soft_rst : 1; // [0]
  596. uint32_t rg_adda_test_en : 1; // [1]
  597. uint32_t rg_adda_test_dac_sel : 1; // [2]
  598. uint32_t rg_adda_test_mode : 1; // [3]
  599. uint32_t rg_adda_test_mode_sel : 3; // [6:4]
  600. uint32_t rg_txpll_open_hw_ctrl_en : 1; // [7]
  601. uint32_t rg_txpll_pkden_hw_ctrl_en : 1; // [8]
  602. uint32_t rg_txpll_dlpf_rstn_hw_ctrl_en : 1; // [9]
  603. uint32_t rg_txpll_gro_rstn_hw_ctrl_en : 1; // [10]
  604. uint32_t rg_rxpll_open_hw_ctrl_en : 1; // [11]
  605. uint32_t rg_rxpll_pkden_hw_ctrl_en : 1; // [12]
  606. uint32_t rg_rxpll_dlpf_rstn_hw_ctrl_en : 1; // [13]
  607. uint32_t rg_rxpll_gro_rstn_hw_ctrl_en : 1; // [14]
  608. uint32_t __31_15 : 17; // [31:15]
  609. } b;
  610. } REG_RF_SYSCTRL_SYSCTRL25_T;
  611. // sysstat1
  612. typedef union {
  613. uint32_t v;
  614. struct
  615. {
  616. uint32_t rf_gpio_i : 10; // [9:0], read only
  617. uint32_t __31_10 : 22; // [31:10]
  618. } b;
  619. } REG_RF_SYSCTRL_SYSSTAT1_T;
  620. // sysstat2
  621. typedef union {
  622. uint32_t v;
  623. struct
  624. {
  625. uint32_t rf_dbg_monitor : 8; // [7:0], read only
  626. uint32_t __31_8 : 24; // [31:8]
  627. } b;
  628. } REG_RF_SYSCTRL_SYSSTAT2_T;
  629. // sysctrl26
  630. typedef union {
  631. uint32_t v;
  632. struct
  633. {
  634. uint32_t rg_wifi_gain0 : 16; // [15:0]
  635. uint32_t __31_16 : 16; // [31:16]
  636. } b;
  637. } REG_RF_SYSCTRL_SYSCTRL26_T;
  638. // sysctrl27
  639. typedef union {
  640. uint32_t v;
  641. struct
  642. {
  643. uint32_t rg_wifi_gain1 : 16; // [15:0]
  644. uint32_t __31_16 : 16; // [31:16]
  645. } b;
  646. } REG_RF_SYSCTRL_SYSCTRL27_T;
  647. // sysctrl28
  648. typedef union {
  649. uint32_t v;
  650. struct
  651. {
  652. uint32_t rg_wifi_gain2 : 16; // [15:0]
  653. uint32_t __31_16 : 16; // [31:16]
  654. } b;
  655. } REG_RF_SYSCTRL_SYSCTRL28_T;
  656. // sysctrl29
  657. typedef union {
  658. uint32_t v;
  659. struct
  660. {
  661. uint32_t rg_wifi_gain3 : 16; // [15:0]
  662. uint32_t __31_16 : 16; // [31:16]
  663. } b;
  664. } REG_RF_SYSCTRL_SYSCTRL29_T;
  665. // sysctrl30
  666. typedef union {
  667. uint32_t v;
  668. struct
  669. {
  670. uint32_t rg_wifi_gain4 : 16; // [15:0]
  671. uint32_t __31_16 : 16; // [31:16]
  672. } b;
  673. } REG_RF_SYSCTRL_SYSCTRL30_T;
  674. // sysctrl31
  675. typedef union {
  676. uint32_t v;
  677. struct
  678. {
  679. uint32_t rg_wifi_gain5 : 16; // [15:0]
  680. uint32_t __31_16 : 16; // [31:16]
  681. } b;
  682. } REG_RF_SYSCTRL_SYSCTRL31_T;
  683. // sysctrl32
  684. typedef union {
  685. uint32_t v;
  686. struct
  687. {
  688. uint32_t rg_wifi_gain6 : 16; // [15:0]
  689. uint32_t __31_16 : 16; // [31:16]
  690. } b;
  691. } REG_RF_SYSCTRL_SYSCTRL32_T;
  692. // sysctrl33
  693. typedef union {
  694. uint32_t v;
  695. struct
  696. {
  697. uint32_t rg_wifi_gain7 : 16; // [15:0]
  698. uint32_t __31_16 : 16; // [31:16]
  699. } b;
  700. } REG_RF_SYSCTRL_SYSCTRL33_T;
  701. // sysctrl34
  702. typedef union {
  703. uint32_t v;
  704. struct
  705. {
  706. uint32_t rg_wifi_gain8 : 16; // [15:0]
  707. uint32_t __31_16 : 16; // [31:16]
  708. } b;
  709. } REG_RF_SYSCTRL_SYSCTRL34_T;
  710. // sysctrl35
  711. typedef union {
  712. uint32_t v;
  713. struct
  714. {
  715. uint32_t rg_wifi_gain9 : 16; // [15:0]
  716. uint32_t __31_16 : 16; // [31:16]
  717. } b;
  718. } REG_RF_SYSCTRL_SYSCTRL35_T;
  719. // sysctrl36
  720. typedef union {
  721. uint32_t v;
  722. struct
  723. {
  724. uint32_t rg_wifi_gain10 : 16; // [15:0]
  725. uint32_t __31_16 : 16; // [31:16]
  726. } b;
  727. } REG_RF_SYSCTRL_SYSCTRL36_T;
  728. // sysctrl37
  729. typedef union {
  730. uint32_t v;
  731. struct
  732. {
  733. uint32_t rg_wifi_gain11 : 16; // [15:0]
  734. uint32_t __31_16 : 16; // [31:16]
  735. } b;
  736. } REG_RF_SYSCTRL_SYSCTRL37_T;
  737. // sysctrl38
  738. typedef union {
  739. uint32_t v;
  740. struct
  741. {
  742. uint32_t rg_wifi_gain12 : 16; // [15:0]
  743. uint32_t __31_16 : 16; // [31:16]
  744. } b;
  745. } REG_RF_SYSCTRL_SYSCTRL38_T;
  746. // sysctrl39
  747. typedef union {
  748. uint32_t v;
  749. struct
  750. {
  751. uint32_t rg_wifi_gain13 : 16; // [15:0]
  752. uint32_t __31_16 : 16; // [31:16]
  753. } b;
  754. } REG_RF_SYSCTRL_SYSCTRL39_T;
  755. // sysctrl40
  756. typedef union {
  757. uint32_t v;
  758. struct
  759. {
  760. uint32_t rg_wifi_gain14 : 16; // [15:0]
  761. uint32_t __31_16 : 16; // [31:16]
  762. } b;
  763. } REG_RF_SYSCTRL_SYSCTRL40_T;
  764. // sysctrl41
  765. typedef union {
  766. uint32_t v;
  767. struct
  768. {
  769. uint32_t rg_wifi_gain15 : 16; // [15:0]
  770. uint32_t __31_16 : 16; // [31:16]
  771. } b;
  772. } REG_RF_SYSCTRL_SYSCTRL41_T;
  773. // sysstat3
  774. typedef union {
  775. uint32_t v;
  776. struct
  777. {
  778. uint32_t wlan_gain_index : 4; // [3:0], read only
  779. uint32_t __31_4 : 28; // [31:4]
  780. } b;
  781. } REG_RF_SYSCTRL_SYSSTAT3_T;
  782. // sysctrl42
  783. typedef union {
  784. uint32_t v;
  785. struct
  786. {
  787. uint32_t rg_dc_ical_sel : 2; // [1:0]
  788. uint32_t rg_dc_qcal_sel : 2; // [3:2]
  789. uint32_t rg_gain_out_sel_wifi : 1; // [4]
  790. uint32_t __31_5 : 27; // [31:5]
  791. } b;
  792. } REG_RF_SYSCTRL_SYSCTRL42_T;
  793. // sysctrl43
  794. typedef union {
  795. uint32_t v;
  796. struct
  797. {
  798. uint32_t rg_dc_ical_offset : 8; // [7:0]
  799. uint32_t rg_dc_qcal_offset : 8; // [15:8]
  800. uint32_t __31_16 : 16; // [31:16]
  801. } b;
  802. } REG_RF_SYSCTRL_SYSCTRL43_T;
  803. // sysstat5
  804. typedef union {
  805. uint32_t v;
  806. struct
  807. {
  808. uint32_t adda_test_mem_full : 1; // [0], read only
  809. uint32_t __7_1 : 7; // [7:1]
  810. uint32_t cgm_ahb_sel_ac : 2; // [9:8], read only
  811. uint32_t __31_10 : 22; // [31:10]
  812. } b;
  813. } REG_RF_SYSCTRL_SYSSTAT5_T;
  814. // sysctrl46
  815. typedef union {
  816. uint32_t v;
  817. struct
  818. {
  819. uint32_t rg_pll_gro_stab_time : 10; // [9:0]
  820. uint32_t rg_rxpll_gro_auto_ctrl_en : 1; // [10]
  821. uint32_t rg_txpll_gro_auto_ctrl_en : 1; // [11]
  822. uint32_t __31_12 : 20; // [31:12]
  823. } b;
  824. } REG_RF_SYSCTRL_SYSCTRL46_T;
  825. // sysctrl47
  826. typedef union {
  827. uint32_t v;
  828. struct
  829. {
  830. uint32_t rg_adc_bias_en_cnt : 12; // [11:0]
  831. uint32_t rg_adc_auto_ctrl_en : 1; // [12]
  832. uint32_t rg_adc_clk_enh_bb_force : 1; // [13]
  833. uint32_t rg_adc_enh_bb_force : 1; // [14]
  834. uint32_t __31_15 : 17; // [31:15]
  835. } b;
  836. } REG_RF_SYSCTRL_SYSCTRL47_T;
  837. // sysctrl48
  838. typedef union {
  839. uint32_t v;
  840. struct
  841. {
  842. uint32_t rg_adc_clk_enh_cnt : 12; // [11:0]
  843. uint32_t __31_12 : 20; // [31:12]
  844. } b;
  845. } REG_RF_SYSCTRL_SYSCTRL48_T;
  846. // sysctrl49
  847. typedef union {
  848. uint32_t v;
  849. struct
  850. {
  851. uint32_t rg_pwdadc_bias_en_cnt : 12; // [11:0]
  852. uint32_t rg_pwdadc_auto_ctrl_en : 1; // [12]
  853. uint32_t __31_13 : 19; // [31:13]
  854. } b;
  855. } REG_RF_SYSCTRL_SYSCTRL49_T;
  856. // sysctrl50
  857. typedef union {
  858. uint32_t v;
  859. struct
  860. {
  861. uint32_t rg_pwdadc_clk_enh_cnt : 12; // [11:0]
  862. uint32_t __31_12 : 20; // [31:12]
  863. } b;
  864. } REG_RF_SYSCTRL_SYSCTRL50_T;
  865. // sysctrl51
  866. typedef union {
  867. uint32_t v;
  868. struct
  869. {
  870. uint32_t rg_wifi_gain0_dccal_i : 8; // [7:0]
  871. uint32_t rg_wifi_gain0_dccal_q : 8; // [15:8]
  872. uint32_t __31_16 : 16; // [31:16]
  873. } b;
  874. } REG_RF_SYSCTRL_SYSCTRL51_T;
  875. // sysctrl52
  876. typedef union {
  877. uint32_t v;
  878. struct
  879. {
  880. uint32_t rg_wifi_gain1_dccal_i : 8; // [7:0]
  881. uint32_t rg_wifi_gain1_dccal_q : 8; // [15:8]
  882. uint32_t __31_16 : 16; // [31:16]
  883. } b;
  884. } REG_RF_SYSCTRL_SYSCTRL52_T;
  885. // sysctrl53
  886. typedef union {
  887. uint32_t v;
  888. struct
  889. {
  890. uint32_t rg_wifi_gain2_dccal_i : 8; // [7:0]
  891. uint32_t rg_wifi_gain2_dccal_q : 8; // [15:8]
  892. uint32_t __31_16 : 16; // [31:16]
  893. } b;
  894. } REG_RF_SYSCTRL_SYSCTRL53_T;
  895. // sysctrl54
  896. typedef union {
  897. uint32_t v;
  898. struct
  899. {
  900. uint32_t rg_wifi_gain3_dccal_i : 8; // [7:0]
  901. uint32_t rg_wifi_gain3_dccal_q : 8; // [15:8]
  902. uint32_t __31_16 : 16; // [31:16]
  903. } b;
  904. } REG_RF_SYSCTRL_SYSCTRL54_T;
  905. // sysctrl55
  906. typedef union {
  907. uint32_t v;
  908. struct
  909. {
  910. uint32_t rg_wifi_gain4_dccal_i : 8; // [7:0]
  911. uint32_t rg_wifi_gain4_dccal_q : 8; // [15:8]
  912. uint32_t __31_16 : 16; // [31:16]
  913. } b;
  914. } REG_RF_SYSCTRL_SYSCTRL55_T;
  915. // sysctrl56
  916. typedef union {
  917. uint32_t v;
  918. struct
  919. {
  920. uint32_t rg_wifi_gain5_dccal_i : 8; // [7:0]
  921. uint32_t rg_wifi_gain5_dccal_q : 8; // [15:8]
  922. uint32_t __31_16 : 16; // [31:16]
  923. } b;
  924. } REG_RF_SYSCTRL_SYSCTRL56_T;
  925. // sysctrl57
  926. typedef union {
  927. uint32_t v;
  928. struct
  929. {
  930. uint32_t rg_wifi_gain6_dccal_i : 8; // [7:0]
  931. uint32_t rg_wifi_gain6_dccal_q : 8; // [15:8]
  932. uint32_t __31_16 : 16; // [31:16]
  933. } b;
  934. } REG_RF_SYSCTRL_SYSCTRL57_T;
  935. // sysctrl58
  936. typedef union {
  937. uint32_t v;
  938. struct
  939. {
  940. uint32_t rg_wifi_gain7_dccal_i : 8; // [7:0]
  941. uint32_t rg_wifi_gain7_dccal_q : 8; // [15:8]
  942. uint32_t __31_16 : 16; // [31:16]
  943. } b;
  944. } REG_RF_SYSCTRL_SYSCTRL58_T;
  945. // sysctrl59
  946. typedef union {
  947. uint32_t v;
  948. struct
  949. {
  950. uint32_t rg_wifi_gain8_dccal_i : 8; // [7:0]
  951. uint32_t rg_wifi_gain8_dccal_q : 8; // [15:8]
  952. uint32_t __31_16 : 16; // [31:16]
  953. } b;
  954. } REG_RF_SYSCTRL_SYSCTRL59_T;
  955. // sysctrl60
  956. typedef union {
  957. uint32_t v;
  958. struct
  959. {
  960. uint32_t rg_wifi_gain9_dccal_i : 8; // [7:0]
  961. uint32_t rg_wifi_gain9_dccal_q : 8; // [15:8]
  962. uint32_t __31_16 : 16; // [31:16]
  963. } b;
  964. } REG_RF_SYSCTRL_SYSCTRL60_T;
  965. // sysctrl61
  966. typedef union {
  967. uint32_t v;
  968. struct
  969. {
  970. uint32_t rg_wifi_gain10_dccal_i : 8; // [7:0]
  971. uint32_t rg_wifi_gain10_dccal_q : 8; // [15:8]
  972. uint32_t __31_16 : 16; // [31:16]
  973. } b;
  974. } REG_RF_SYSCTRL_SYSCTRL61_T;
  975. // sysctrl62
  976. typedef union {
  977. uint32_t v;
  978. struct
  979. {
  980. uint32_t rg_wifi_gain11_dccal_i : 8; // [7:0]
  981. uint32_t rg_wifi_gain11_dccal_q : 8; // [15:8]
  982. uint32_t __31_16 : 16; // [31:16]
  983. } b;
  984. } REG_RF_SYSCTRL_SYSCTRL62_T;
  985. // sysctrl63
  986. typedef union {
  987. uint32_t v;
  988. struct
  989. {
  990. uint32_t rg_wifi_gain12_dccal_i : 8; // [7:0]
  991. uint32_t rg_wifi_gain12_dccal_q : 8; // [15:8]
  992. uint32_t __31_16 : 16; // [31:16]
  993. } b;
  994. } REG_RF_SYSCTRL_SYSCTRL63_T;
  995. // sysctrl64
  996. typedef union {
  997. uint32_t v;
  998. struct
  999. {
  1000. uint32_t rg_wifi_gain13_dccal_i : 8; // [7:0]
  1001. uint32_t rg_wifi_gain13_dccal_q : 8; // [15:8]
  1002. uint32_t __31_16 : 16; // [31:16]
  1003. } b;
  1004. } REG_RF_SYSCTRL_SYSCTRL64_T;
  1005. // sysctrl65
  1006. typedef union {
  1007. uint32_t v;
  1008. struct
  1009. {
  1010. uint32_t rg_wifi_gain14_dccal_i : 8; // [7:0]
  1011. uint32_t rg_wifi_gain14_dccal_q : 8; // [15:8]
  1012. uint32_t __31_16 : 16; // [31:16]
  1013. } b;
  1014. } REG_RF_SYSCTRL_SYSCTRL65_T;
  1015. // sysctrl66
  1016. typedef union {
  1017. uint32_t v;
  1018. struct
  1019. {
  1020. uint32_t rg_wifi_gain15_dccal_i : 8; // [7:0]
  1021. uint32_t rg_wifi_gain15_dccal_q : 8; // [15:8]
  1022. uint32_t __31_16 : 16; // [31:16]
  1023. } b;
  1024. } REG_RF_SYSCTRL_SYSCTRL66_T;
  1025. // sysctrl67
  1026. typedef union {
  1027. uint32_t v;
  1028. struct
  1029. {
  1030. uint32_t rg_wifi_gain0_rxflt_dccal_i : 8; // [7:0]
  1031. uint32_t rg_wifi_gain0_rxflt_dccal_q : 8; // [15:8]
  1032. uint32_t __31_16 : 16; // [31:16]
  1033. } b;
  1034. } REG_RF_SYSCTRL_SYSCTRL67_T;
  1035. // sysctrl68
  1036. typedef union {
  1037. uint32_t v;
  1038. struct
  1039. {
  1040. uint32_t rg_wifi_gain1_rxflt_dccal_i : 8; // [7:0]
  1041. uint32_t rg_wifi_gain1_rxflt_dccal_q : 8; // [15:8]
  1042. uint32_t __31_16 : 16; // [31:16]
  1043. } b;
  1044. } REG_RF_SYSCTRL_SYSCTRL68_T;
  1045. // sysctrl69
  1046. typedef union {
  1047. uint32_t v;
  1048. struct
  1049. {
  1050. uint32_t rg_wifi_gain2_rxflt_dccal_i : 8; // [7:0]
  1051. uint32_t rg_wifi_gain2_rxflt_dccal_q : 8; // [15:8]
  1052. uint32_t __31_16 : 16; // [31:16]
  1053. } b;
  1054. } REG_RF_SYSCTRL_SYSCTRL69_T;
  1055. // sysctrl70
  1056. typedef union {
  1057. uint32_t v;
  1058. struct
  1059. {
  1060. uint32_t rg_wifi_gain3_rxflt_dccal_i : 8; // [7:0]
  1061. uint32_t rg_wifi_gain3_rxflt_dccal_q : 8; // [15:8]
  1062. uint32_t __31_16 : 16; // [31:16]
  1063. } b;
  1064. } REG_RF_SYSCTRL_SYSCTRL70_T;
  1065. // sysctrl71
  1066. typedef union {
  1067. uint32_t v;
  1068. struct
  1069. {
  1070. uint32_t rg_wifi_gain4_rxflt_dccal_i : 8; // [7:0]
  1071. uint32_t rg_wifi_gain4_rxflt_dccal_q : 8; // [15:8]
  1072. uint32_t __31_16 : 16; // [31:16]
  1073. } b;
  1074. } REG_RF_SYSCTRL_SYSCTRL71_T;
  1075. // sysctrl72
  1076. typedef union {
  1077. uint32_t v;
  1078. struct
  1079. {
  1080. uint32_t rg_wifi_gain5_rxflt_dccal_i : 8; // [7:0]
  1081. uint32_t rg_wifi_gain5_rxflt_dccal_q : 8; // [15:8]
  1082. uint32_t __31_16 : 16; // [31:16]
  1083. } b;
  1084. } REG_RF_SYSCTRL_SYSCTRL72_T;
  1085. // sysctrl73
  1086. typedef union {
  1087. uint32_t v;
  1088. struct
  1089. {
  1090. uint32_t rg_wifi_gain6_rxflt_dccal_i : 8; // [7:0]
  1091. uint32_t rg_wifi_gain6_rxflt_dccal_q : 8; // [15:8]
  1092. uint32_t __31_16 : 16; // [31:16]
  1093. } b;
  1094. } REG_RF_SYSCTRL_SYSCTRL73_T;
  1095. // sysctrl74
  1096. typedef union {
  1097. uint32_t v;
  1098. struct
  1099. {
  1100. uint32_t rg_wifi_gain7_rxflt_dccal_i : 8; // [7:0]
  1101. uint32_t rg_wifi_gain7_rxflt_dccal_q : 8; // [15:8]
  1102. uint32_t __31_16 : 16; // [31:16]
  1103. } b;
  1104. } REG_RF_SYSCTRL_SYSCTRL74_T;
  1105. // sysctrl75
  1106. typedef union {
  1107. uint32_t v;
  1108. struct
  1109. {
  1110. uint32_t rg_wifi_gain8_rxflt_dccal_i : 8; // [7:0]
  1111. uint32_t rg_wifi_gain8_rxflt_dccal_q : 8; // [15:8]
  1112. uint32_t __31_16 : 16; // [31:16]
  1113. } b;
  1114. } REG_RF_SYSCTRL_SYSCTRL75_T;
  1115. // sysctrl76
  1116. typedef union {
  1117. uint32_t v;
  1118. struct
  1119. {
  1120. uint32_t rg_wifi_gain9_rxflt_dccal_i : 8; // [7:0]
  1121. uint32_t rg_wifi_gain9_rxflt_dccal_q : 8; // [15:8]
  1122. uint32_t __31_16 : 16; // [31:16]
  1123. } b;
  1124. } REG_RF_SYSCTRL_SYSCTRL76_T;
  1125. // sysctrl77
  1126. typedef union {
  1127. uint32_t v;
  1128. struct
  1129. {
  1130. uint32_t rg_wifi_gain10_rxflt_dccal_i : 8; // [7:0]
  1131. uint32_t rg_wifi_gain10_rxflt_dccal_q : 8; // [15:8]
  1132. uint32_t __31_16 : 16; // [31:16]
  1133. } b;
  1134. } REG_RF_SYSCTRL_SYSCTRL77_T;
  1135. // sysctrl78
  1136. typedef union {
  1137. uint32_t v;
  1138. struct
  1139. {
  1140. uint32_t rg_wifi_gain11_rxflt_dccal_i : 8; // [7:0]
  1141. uint32_t rg_wifi_gain11_rxflt_dccal_q : 8; // [15:8]
  1142. uint32_t __31_16 : 16; // [31:16]
  1143. } b;
  1144. } REG_RF_SYSCTRL_SYSCTRL78_T;
  1145. // sysctrl79
  1146. typedef union {
  1147. uint32_t v;
  1148. struct
  1149. {
  1150. uint32_t rg_wifi_gain12_rxflt_dccal_i : 8; // [7:0]
  1151. uint32_t rg_wifi_gain12_rxflt_dccal_q : 8; // [15:8]
  1152. uint32_t __31_16 : 16; // [31:16]
  1153. } b;
  1154. } REG_RF_SYSCTRL_SYSCTRL79_T;
  1155. // sysctrl80
  1156. typedef union {
  1157. uint32_t v;
  1158. struct
  1159. {
  1160. uint32_t rg_wifi_gain13_rxflt_dccal_i : 8; // [7:0]
  1161. uint32_t rg_wifi_gain13_rxflt_dccal_q : 8; // [15:8]
  1162. uint32_t __31_16 : 16; // [31:16]
  1163. } b;
  1164. } REG_RF_SYSCTRL_SYSCTRL80_T;
  1165. // sysctrl81
  1166. typedef union {
  1167. uint32_t v;
  1168. struct
  1169. {
  1170. uint32_t rg_wifi_gain14_rxflt_dccal_i : 8; // [7:0]
  1171. uint32_t rg_wifi_gain14_rxflt_dccal_q : 8; // [15:8]
  1172. uint32_t __31_16 : 16; // [31:16]
  1173. } b;
  1174. } REG_RF_SYSCTRL_SYSCTRL81_T;
  1175. // sysctrl82
  1176. typedef union {
  1177. uint32_t v;
  1178. struct
  1179. {
  1180. uint32_t rg_wifi_gain15_rxflt_dccal_i : 8; // [7:0]
  1181. uint32_t rg_wifi_gain15_rxflt_dccal_q : 8; // [15:8]
  1182. uint32_t __31_16 : 16; // [31:16]
  1183. } b;
  1184. } REG_RF_SYSCTRL_SYSCTRL82_T;
  1185. // sysctrl1
  1186. #define RF_SYSCTRL_RG_SYS_CTRL_PU_BBPLL1 (1 << 0)
  1187. #define RF_SYSCTRL_RG_SYS_CTRL_PU_BBPLL2 (1 << 1)
  1188. #define RF_SYSCTRL_RG_SYS_CTRL_PU_BBPLL2_DR (1 << 2)
  1189. // sysctrl2
  1190. #define RF_SYSCTRL_RG_ENABLE_CLK26M_OSC_THM (1 << 0)
  1191. #define RF_SYSCTRL_RG_ENABLE_CLK26M_TSX_THM (1 << 1)
  1192. #define RF_SYSCTRL_RG_ENABLE_CLK26M_AUX1 (1 << 2)
  1193. // sysctrl3
  1194. #define RF_SYSCTRL_RG_GNSS_IQ_SEL_0 (1 << 0)
  1195. #define RF_SYSCTRL_RG_WIFI_IQ_SEL_0 (1 << 1)
  1196. #define RF_SYSCTRL_RG_LTE_IQ_SEL_0 (1 << 2)
  1197. #define RF_SYSCTRL_RFDIG_LATCH_GNSS (1 << 3)
  1198. #define RF_SYSCTRL_CGM_GNSS_BB_PP_WCN_CLK_EN (1 << 4)
  1199. #define RF_SYSCTRL_CGM_GNSS_BB_PP_WCN_CLK_SEL (1 << 5)
  1200. #define RF_SYSCTRL_CGM_GNSS_ADC_WCN_CLK_EN (1 << 6)
  1201. #define RF_SYSCTRL_CGM_GNSS_ADC_WCN_CLK_SEL (1 << 7)
  1202. #define RF_SYSCTRL_GNSS_INT_MASK_BIT (1 << 8)
  1203. #define RF_SYSCTRL_GNSS_COEXIST_EXT (1 << 9)
  1204. #define RF_SYSCTRL_RG_BITMAP_LTE_RX_ON (1 << 10)
  1205. // sysctrl4
  1206. #define RF_SYSCTRL_RG_RF2AON_NONBUF_EARLY_RESP_EN (1 << 0)
  1207. #define RF_SYSCTRL_RG_RF2AON_MCLK_AUTO_GATE_EN (1 << 1)
  1208. #define RF_SYSCTRL_RG_RF2AON_SCLK_AUTO_GATE_EN (1 << 2)
  1209. #define RF_SYSCTRL_RG_AON2RF_NONBUF_EARLY_RESP_EN (1 << 3)
  1210. #define RF_SYSCTRL_RG_AON2RF_MCLK_AUTO_GATE_EN (1 << 4)
  1211. #define RF_SYSCTRL_RG_AON2RF_SCLK_AUTO_GATE_EN (1 << 5)
  1212. #define RF_SYSCTRL_RG_RAM_CLK_AUTO_CG(n) (((n)&0x3) << 6)
  1213. // sysctrl5
  1214. #define RF_SYSCTRL_RG_LTE_DAC_CLK_EN (1 << 0)
  1215. #define RF_SYSCTRL_RG_LTE_DAC_CLKEDGE_SEL (1 << 1)
  1216. #define RF_SYSCTRL_RG_RTC_CLKEDGE_SEL (1 << 2)
  1217. #define RF_SYSCTRL_RG_ADC_CLKEDGE_SEL (1 << 3)
  1218. #define RF_SYSCTRL_RG_DFE_DUMP_SEL_BIT(n) (((n)&0x7) << 4)
  1219. #define RF_SYSCTRL_RG_HRESP_ERR_MASK (1 << 7)
  1220. #define RF_SYSCTRL_RG_RF_TEST_PAD_EN (1 << 8)
  1221. #define RF_SYSCTRL_RG_TSX_ADC_CLKEDGE_SEL (1 << 9)
  1222. #define RF_SYSCTRL_RG_OSC_ADC_CLKEDGE_SEL (1 << 10)
  1223. #define RF_SYSCTRL_RG_ADDA_TEST_SEL_TXDLPF_AFC (1 << 11)
  1224. #define RF_SYSCTRL_RG_ADDA_TEST_SEL_RXDLPF_AFC (1 << 12)
  1225. #define RF_SYSCTRL_RG_PWD_ADC_CLKEDGE_SEL (1 << 13)
  1226. // sysctrl6
  1227. #define RF_SYSCTRL_RG_DFE_CGU_SOFT_RST (1 << 0)
  1228. #define RF_SYSCTRL_RG_DFE_RXDP_SOFT_RST (1 << 1)
  1229. #define RF_SYSCTRL_RG_DFE_TXDP_SOFT_RST (1 << 2)
  1230. #define RF_SYSCTRL_RG_DFE_PWD_SOFT_RST (1 << 3)
  1231. #define RF_SYSCTRL_RG_DFE_THM_TSX_SOFT_RST (1 << 4)
  1232. #define RF_SYSCTRL_RG_DFE_THM_OSC_SOFT_RST (1 << 5)
  1233. #define RF_SYSCTRL_RG_TXDLPF_SOFT_RST (1 << 6)
  1234. #define RF_SYSCTRL_RG_RXDLPF_SOFT_RST (1 << 7)
  1235. // sysctrl7
  1236. #define RF_SYSCTRL_RG_USID_CHANGE_EN (1 << 0)
  1237. #define RF_SYSCTRL_RG_MIPI_CLK_HALF_EN (1 << 1)
  1238. #define RF_SYSCTRL_PTEST_FUNC_ATSPEED_SEL (1 << 2)
  1239. // sysctrl8
  1240. #define RF_SYSCTRL_RG_CGM_AHB_SEL(n) (((n)&0x3) << 0)
  1241. #define RF_SYSCTRL_RG_AHB_FREQ_AUTO_SEL (1 << 2)
  1242. #define RF_SYSCTRL_RG_CGM_AHB_EN (1 << 3)
  1243. #define RF_SYSCTRL_RG_CGM_26M_INTERFACE_EN (1 << 4)
  1244. #define RF_SYSCTRL_RG_CGM_DFE_245M76_EN (1 << 5)
  1245. #define RF_SYSCTRL_RG_RF2AON_AUTO_GATE_EN (1 << 6)
  1246. #define RF_SYSCTRL_RG_AON2RF_AUTO_GATE_EN (1 << 7)
  1247. #define RF_SYSCTRL_RG_WCN_BBPLL_80M_AUTO_GATE_EN (1 << 10)
  1248. #define RF_SYSCTRL_RG_BBPLL_245M_AUTO_GATE_EN (1 << 11)
  1249. #define RF_SYSCTRL_RG_BBPLL_122M_AUTO_GATE_EN (1 << 12)
  1250. #define RF_SYSCTRL_RG_THM_TSX_26M_AUTO_GATE_EN (1 << 13)
  1251. #define RF_SYSCTRL_RG_THM_OSC_26M_AUTO_GATE_EN (1 << 14)
  1252. // sysctrl9
  1253. #define RF_SYSCTRL_RG_RTC_CLK_EN (1 << 0)
  1254. #define RF_SYSCTRL_RG_RFFE_CLK_EN (1 << 1)
  1255. #define RF_SYSCTRL_RG_26M_INTERFACE_INTF_EN (1 << 2)
  1256. #define RF_SYSCTRL_RG_26M_INTERFACE_RXPLL_CAL_EN (1 << 3)
  1257. #define RF_SYSCTRL_RG_26M_INTERFACE_TXPLL_CAL_EN (1 << 4)
  1258. #define RF_SYSCTRL_RG_26M_INTERFACE_BBPLL1_EN (1 << 5)
  1259. #define RF_SYSCTRL_RG_26M_INTERFACE_BBPLL2_EN (1 << 6)
  1260. #define RF_SYSCTRL_RG_26M_INTERFACE_PEAK_DET_EN (1 << 7)
  1261. #define RF_SYSCTRL_RG_PWD_DFE_PWD_EN (1 << 8)
  1262. #define RF_SYSCTRL_RG_CGM_LTE_ADC_EN (1 << 9)
  1263. #define RF_SYSCTRL_RG_CGM_THM_OSC_EN (1 << 10)
  1264. #define RF_SYSCTRL_RG_CGM_THM_OSC_PAD_EN (1 << 11)
  1265. #define RF_SYSCTRL_RG_CGM_THM_TSX_DFE_EN (1 << 12)
  1266. #define RF_SYSCTRL_RG_CGM_THM_TSX_PAD_EN (1 << 13)
  1267. #define RF_SYSCTRL_RG_CGM_THM_TSX_BIST_EN (1 << 14)
  1268. // sysctrl10
  1269. #define RF_SYSCTRL_RG_AHB_BUS_EN (1 << 0)
  1270. #define RF_SYSCTRL_RG_AHB_DFE_EN (1 << 1)
  1271. #define RF_SYSCTRL_RG_AHB_INTF_EN (1 << 2)
  1272. #define RF_SYSCTRL_RG_AHB_RAM_EN (1 << 3)
  1273. #define RF_SYSCTRL_RG_AHB_SPI2AHB_EN (1 << 4)
  1274. #define RF_SYSCTRL_RG_AHB_RXDLPF_EN (1 << 5)
  1275. #define RF_SYSCTRL_RG_AHB_TXDLPF_EN (1 << 6)
  1276. #define RF_SYSCTRL_RG_RF2AON_EN (1 << 7)
  1277. #define RF_SYSCTRL_RG_AON2RF_EN (1 << 8)
  1278. #define RF_SYSCTRL_RG_AHB_PULP_EN (1 << 9)
  1279. #define RF_SYSCTRL_RG_AHB_TIMER0_EN (1 << 10)
  1280. #define RF_SYSCTRL_RG_AHB_WDG_EN (1 << 11)
  1281. #define RF_SYSCTRL_RG_CGM_RF_BITMAP_EN (1 << 12)
  1282. // sysctrl11
  1283. #define RF_SYSCTRL_RG_CGM_WPLL_SDM_EN (1 << 0)
  1284. #define RF_SYSCTRL_RG_CGM_LPLL_SDM_EN (1 << 1)
  1285. #define RF_SYSCTRL_RG_TXPLL_SDM_TXSDM_EN (1 << 2)
  1286. #define RF_SYSCTRL_RG_RXPLL_SDM_RXSDM_EN (1 << 3)
  1287. #define RF_SYSCTRL_RG_TX_GRO_OUT1_TXDLPF_EN (1 << 4)
  1288. #define RF_SYSCTRL_RG_TX_GRO_OUT2_TXDLPF_EN (1 << 5)
  1289. #define RF_SYSCTRL_RG_RX_GRO_OUT1_RXDLPF_EN (1 << 6)
  1290. #define RF_SYSCTRL_RG_RX_GRO_OUT2_RXDLPF_EN (1 << 7)
  1291. // sysctrl12
  1292. #define RF_SYSCTRL_GNSS_PLL_397M_SOFT_CNT_DONE (1 << 0)
  1293. #define RF_SYSCTRL_GNSS_PLL_198M_SOFT_CNT_DONE (1 << 1)
  1294. #define RF_SYSCTRL_WCN_BBPLL_80M_SOFT_CNT_DONE (1 << 2)
  1295. #define RF_SYSCTRL_BBPLL_245M_SOFT_CNT_DONE (1 << 3)
  1296. #define RF_SYSCTRL_BBPLL_122M_SOFT_CNT_DONE (1 << 4)
  1297. #define RF_SYSCTRL_ADC_122M_SOFT_CNT_DONE (1 << 5)
  1298. #define RF_SYSCTRL_THM_TSX_26M_SOFT_CNT_DONE (1 << 6)
  1299. #define RF_SYSCTRL_THM_OSC_26M_SOFT_CNT_DONE (1 << 7)
  1300. #define RF_SYSCTRL_GNSS_PLL_397M_CNT_DONE_BYPASS (1 << 8)
  1301. #define RF_SYSCTRL_GNSS_PLL_198M_CNT_DONE_BYPASS (1 << 9)
  1302. #define RF_SYSCTRL_WCN_BBPLL_80M_CNT_DONE_BYPASS (1 << 10)
  1303. #define RF_SYSCTRL_BBPLL_245M_CNT_DONE_BYPASS (1 << 11)
  1304. #define RF_SYSCTRL_BBPLL_122M_CNT_DONE_BYPASS (1 << 12)
  1305. #define RF_SYSCTRL_ADC_122M_CNT_DONE_BYPASS (1 << 13)
  1306. #define RF_SYSCTRL_THM_TSX_26M_CNT_DONE_BYPASS (1 << 14)
  1307. #define RF_SYSCTRL_THM_OSC_26M_CNT_DONE_BYPASS (1 << 15)
  1308. // sysctrl13
  1309. #define RF_SYSCTRL_GNSS_PLL_397M_WAIT_AUTO_GATE_SEL (1 << 0)
  1310. #define RF_SYSCTRL_GNSS_PLL_198M_WAIT_AUTO_GATE_SEL (1 << 1)
  1311. #define RF_SYSCTRL_WCN_BBPLL_80M_WAIT_AUTO_GATE_SEL (1 << 2)
  1312. #define RF_SYSCTRL_BBPLL_245M_WAIT_AUTO_GATE_SEL (1 << 3)
  1313. #define RF_SYSCTRL_BBPLL_122M_WAIT_AUTO_GATE_SEL (1 << 4)
  1314. #define RF_SYSCTRL_ADC_122M_WAIT_AUTO_GATE_SEL (1 << 5)
  1315. #define RF_SYSCTRL_THM_TSX_26M_WAIT_AUTO_GATE_SEL (1 << 6)
  1316. #define RF_SYSCTRL_THM_OSC_26M_WAIT_AUTO_GATE_SEL (1 << 7)
  1317. #define RF_SYSCTRL_GNSS_PLL_397M_WAIT_FORCE_EN (1 << 8)
  1318. #define RF_SYSCTRL_GNSS_PLL_198M_WAIT_FORCE_EN (1 << 9)
  1319. #define RF_SYSCTRL_WCN_BBPLL_80M_WAIT_FORCE_EN (1 << 10)
  1320. #define RF_SYSCTRL_BBPLL_245M_WAIT_FORCE_EN (1 << 11)
  1321. #define RF_SYSCTRL_BBPLL_122M_WAIT_FORCE_EN (1 << 12)
  1322. #define RF_SYSCTRL_ADC_122M_WAIT_FORCE_EN (1 << 13)
  1323. #define RF_SYSCTRL_THM_TSX_26M_WAIT_FORCE_EN (1 << 14)
  1324. #define RF_SYSCTRL_THM_OSC_26M_WAIT_FORCE_EN (1 << 15)
  1325. // sysctrl14
  1326. #define RF_SYSCTRL_GNSS_DIV_PLL_397M_158M8_FORCE_EN (1 << 0)
  1327. #define RF_SYSCTRL_GNSS_DIV_PLL_397M_132M3_FORCE_EN (1 << 1)
  1328. #define RF_SYSCTRL_GNSS_DIV_PLL_397M_56M7_FORCE_EN (1 << 2)
  1329. #define RF_SYSCTRL_GNSS_DIV_PLL_397M_33M1_FORCE_EN (1 << 3)
  1330. #define RF_SYSCTRL_GNSS_DIV_PLL_397M_158M8_AUTO_GATE_SEL (1 << 4)
  1331. #define RF_SYSCTRL_GNSS_DIV_PLL_397M_132M3_AUTO_GATE_SEL (1 << 5)
  1332. #define RF_SYSCTRL_GNSS_DIV_PLL_397M_56M7_AUTO_GATE_SEL (1 << 6)
  1333. #define RF_SYSCTRL_GNSS_DIV_PLL_397M_33M1_AUTO_GATE_SEL (1 << 7)
  1334. // sysctrl15
  1335. #define RF_SYSCTRL_CGM_GNSS_PLL_397M_AP_AUTO_GATE_SEL (1 << 0)
  1336. #define RF_SYSCTRL_CGM_GNSS_PLL_198_5M_AP_AUTO_GATE_SEL (1 << 1)
  1337. #define RF_SYSCTRL_CGM_GNSS_PLL_133M_AP_AUTO_GATE_SEL (1 << 2)
  1338. #define RF_SYSCTRL_CGM_GNSS_PLL_57M_AP_AUTO_GATE_SEL (1 << 3)
  1339. #define RF_SYSCTRL_CGM_GNSS_PLL_397M_CP_AUTO_GATE_SEL (1 << 4)
  1340. #define RF_SYSCTRL_CGM_GNSS_PLL_198_5M_CP_AUTO_GATE_SEL (1 << 5)
  1341. #define RF_SYSCTRL_CGM_WCN_BBPLL_80M_CP_AUTO_GATE_SEL (1 << 6)
  1342. #define RF_SYSCTRL_CGM_ADC_IQ_CP_AUTO_GATE_SEL (1 << 7)
  1343. #define RF_SYSCTRL_CGM_THM_TSX_26M_CP_AUTO_GATE_SEL (1 << 8)
  1344. #define RF_SYSCTRL_CGM_THM_OSC_26M_CP_AUTO_GATE_SEL (1 << 9)
  1345. #define RF_SYSCTRL_CGM_BBPLL_245_76M_LTE_AUTO_GATE_SEL (1 << 10)
  1346. #define RF_SYSCTRL_CGM_BBPLL_122_88M_LTE_AUTO_GATE_SEL (1 << 11)
  1347. #define RF_SYSCTRL_CGM_GNSS_PLL_397M_PUB_AUTO_GATE_SEL (1 << 12)
  1348. // sysctrl16
  1349. #define RF_SYSCTRL_CGM_BBPLL_245_76M_RF_AUTO_GATE_SEL (1 << 0)
  1350. #define RF_SYSCTRL_CGM_BBPLL_122_88M_RF_AUTO_GATE_SEL (1 << 1)
  1351. #define RF_SYSCTRL_CGM_WCN_BBPLL_80M_RF_AUTO_GATE_SEL (1 << 2)
  1352. #define RF_SYSCTRL_CGM_GNSS_PLL_133M_RF_AUTO_GATE_SEL (1 << 3)
  1353. #define RF_SYSCTRL_CGM_ADC_IQ_RF_AUTO_GATE_SEL (1 << 4)
  1354. #define RF_SYSCTRL_CGM_THM_TSX_26M_RF_AUTO_GATE_SEL (1 << 5)
  1355. #define RF_SYSCTRL_CGM_THM_OSC_26M_RF_AUTO_GATE_SEL (1 << 6)
  1356. #define RF_SYSCTRL_CGM_GNSS_PLL_397M_AON_AUTO_GATE_SEL (1 << 7)
  1357. #define RF_SYSCTRL_CGM_GNSS_PLL_198_5M_AON_AUTO_GATE_SEL (1 << 8)
  1358. #define RF_SYSCTRL_CGM_GNSS_PLL_133M_AON_AUTO_GATE_SEL (1 << 9)
  1359. #define RF_SYSCTRL_CGM_GNSS_PLL_33M_AON_AUTO_GATE_SEL (1 << 10)
  1360. #define RF_SYSCTRL_CGM_GNSS_PLL_133M_GNSS_AUTO_GATE_SEL (1 << 11)
  1361. #define RF_SYSCTRL_CGM_GNSS_PLL_158M_GNSS_AUTO_GATE_SEL (1 << 12)
  1362. #define RF_SYSCTRL_CGM_WCN_BBPLL_80M_GNSS_AUTO_GATE_SEL (1 << 13)
  1363. #define RF_SYSCTRL_CGM_ADC_IQ_GNSS_AUTO_GATE_SEL (1 << 14)
  1364. // sysctrl17
  1365. #define RF_SYSCTRL_CGM_GNSS_PLL_397M_AP_FORCE_EN (1 << 0)
  1366. #define RF_SYSCTRL_CGM_GNSS_PLL_198_5M_AP_FORCE_EN (1 << 1)
  1367. #define RF_SYSCTRL_CGM_GNSS_PLL_133M_AP_FORCE_EN (1 << 2)
  1368. #define RF_SYSCTRL_CGM_GNSS_PLL_57M_AP_FORCE_EN (1 << 3)
  1369. #define RF_SYSCTRL_CGM_GNSS_PLL_397M_CP_FORCE_EN (1 << 4)
  1370. #define RF_SYSCTRL_CGM_GNSS_PLL_198_5M_CP_FORCE_EN (1 << 5)
  1371. #define RF_SYSCTRL_CGM_WCN_BBPLL_80M_CP_FORCE_EN (1 << 6)
  1372. #define RF_SYSCTRL_CGM_ADC_IQ_CP_FORCE_EN (1 << 7)
  1373. #define RF_SYSCTRL_CGM_THM_TSX_26M_CP_FORCE_EN (1 << 8)
  1374. #define RF_SYSCTRL_CGM_THM_OSC_26M_CP_FORCE_EN (1 << 9)
  1375. #define RF_SYSCTRL_CGM_BBPLL_245_76M_LTE_FORCE_EN (1 << 10)
  1376. #define RF_SYSCTRL_CGM_BBPLL_122_88M_LTE_FORCE_EN (1 << 11)
  1377. #define RF_SYSCTRL_CGM_GNSS_PLL_397M_PUB_FORCE_EN (1 << 12)
  1378. // sysctrl18
  1379. #define RF_SYSCTRL_CGM_BBPLL_245_76M_RF_FORCE_EN (1 << 0)
  1380. #define RF_SYSCTRL_CGM_BBPLL_122_88M_RF_FORCE_EN (1 << 1)
  1381. #define RF_SYSCTRL_CGM_WCN_BBPLL_80M_RF_FORCE_EN (1 << 2)
  1382. #define RF_SYSCTRL_CGM_GNSS_PLL_133M_RF_FORCE_EN (1 << 3)
  1383. #define RF_SYSCTRL_CGM_ADC_IQ_RF_FORCE_EN (1 << 4)
  1384. #define RF_SYSCTRL_CGM_THM_TSX_26M_RF_FORCE_EN (1 << 5)
  1385. #define RF_SYSCTRL_CGM_THM_OSC_26M_RF_FORCE_EN (1 << 6)
  1386. #define RF_SYSCTRL_CGM_GNSS_PLL_397M_AON_FORCE_EN (1 << 7)
  1387. #define RF_SYSCTRL_CGM_GNSS_PLL_198_5M_AON_FORCE_EN (1 << 8)
  1388. #define RF_SYSCTRL_CGM_GNSS_PLL_133M_AON_FORCE_EN (1 << 9)
  1389. #define RF_SYSCTRL_CGM_GNSS_PLL_33M_AON_FORCE_EN (1 << 10)
  1390. #define RF_SYSCTRL_CGM_GNSS_PLL_133M_GNSS_FORCE_EN (1 << 11)
  1391. #define RF_SYSCTRL_CGM_GNSS_PLL_158M_GNSS_FORCE_EN (1 << 12)
  1392. #define RF_SYSCTRL_CGM_WCN_BBPLL_80M_GNSS_FORCE_EN (1 << 13)
  1393. #define RF_SYSCTRL_CGM_ADC_IQ_GNSS_FORCE_EN (1 << 14)
  1394. // sysctrl19
  1395. #define RF_SYSCTRL_RG_AON2RF_SOFT_RST (1 << 0)
  1396. #define RF_SYSCTRL_RG_RF2AON_SOFT_RST (1 << 1)
  1397. #define RF_SYSCTRL_RG_RF_BITMAP_SOFT_RST (1 << 2)
  1398. #define RF_SYSCTRL_RG_TSEN_BIST_SOFT_RST (1 << 3)
  1399. // sysctrl20
  1400. #define RF_SYSCTRL_RG_RISCV_SOFT_RST (1 << 0)
  1401. #define RF_SYSCTRL_RG_DBG_SOFT_RST (1 << 1)
  1402. #define RF_SYSCTRL_RG_RAM_SOFT_RST (1 << 2)
  1403. #define RF_SYSCTRL_RG_TXDLPF_REG_SOFT_RST (1 << 3)
  1404. #define RF_SYSCTRL_RG_RXDLPF_REG_SOFT_RST (1 << 4)
  1405. #define RF_SYSCTRL_RG_TIMER0_SOFT_RST (1 << 5)
  1406. #define RF_SYSCTRL_RG_WDG_SOFT_RST (1 << 6)
  1407. #define RF_SYSCTRL_RG_RFFE_SOFT_RST (1 << 7)
  1408. #define RF_SYSCTRL_RG_ANA_REGS_SOFT_RST (1 << 8)
  1409. #define RF_SYSCTRL_RG_RTC_SOFT_RST (1 << 9)
  1410. #define RF_SYSCTRL_RG_SPI2AHB_SOFT_RST (1 << 10)
  1411. #define RF_SYSCTRL_RG_INTF_APB_REG_SOFT_RST (1 << 11)
  1412. #define RF_SYSCTRL_RG_INTF_PEAK_DET_SOFT_RST (1 << 12)
  1413. #define RF_SYSCTRL_RG_INTF_IRQ_CTRL_SOFT_RST (1 << 13)
  1414. #define RF_SYSCTRL_RG_INTF_CLKGEN_SOFT_RST (1 << 14)
  1415. #define RF_SYSCTRL_RG_DFE_REG_SOFT_RST (1 << 15)
  1416. // sysctrl21
  1417. #define RF_SYSCTRL_RG_RF_GPIO_O(n) (((n)&0x3ff) << 0)
  1418. // sysctrl22
  1419. #define RF_SYSCTRL_RG_RF_GPIO_OEN(n) (((n)&0x3ff) << 0)
  1420. // sysctrl23
  1421. #define RF_SYSCTRL_RG_SIMC_PA_ON_TH(n) (((n)&0x3ff) << 0)
  1422. #define RF_SYSCTRL_RG_SIMC_PA_EN (1 << 10)
  1423. #define RF_SYSCTRL_RG_SIMC_PA_ON (1 << 11)
  1424. // sysctrl24
  1425. #define RF_SYSCTRL_RG_SYSCTRL_SOFT_RST (1 << 0)
  1426. // sysctrl25
  1427. #define RF_SYSCTRL_RG_ADDA_TEST_SOFT_RST (1 << 0)
  1428. #define RF_SYSCTRL_RG_ADDA_TEST_EN (1 << 1)
  1429. #define RF_SYSCTRL_RG_ADDA_TEST_DAC_SEL (1 << 2)
  1430. #define RF_SYSCTRL_RG_ADDA_TEST_MODE (1 << 3)
  1431. #define RF_SYSCTRL_RG_ADDA_TEST_MODE_SEL(n) (((n)&0x7) << 4)
  1432. #define RF_SYSCTRL_RG_TXPLL_OPEN_HW_CTRL_EN (1 << 7)
  1433. #define RF_SYSCTRL_RG_TXPLL_PKDEN_HW_CTRL_EN (1 << 8)
  1434. #define RF_SYSCTRL_RG_TXPLL_DLPF_RSTN_HW_CTRL_EN (1 << 9)
  1435. #define RF_SYSCTRL_RG_TXPLL_GRO_RSTN_HW_CTRL_EN (1 << 10)
  1436. #define RF_SYSCTRL_RG_RXPLL_OPEN_HW_CTRL_EN (1 << 11)
  1437. #define RF_SYSCTRL_RG_RXPLL_PKDEN_HW_CTRL_EN (1 << 12)
  1438. #define RF_SYSCTRL_RG_RXPLL_DLPF_RSTN_HW_CTRL_EN (1 << 13)
  1439. #define RF_SYSCTRL_RG_RXPLL_GRO_RSTN_HW_CTRL_EN (1 << 14)
  1440. // sysstat1
  1441. #define RF_SYSCTRL_RF_GPIO_I(n) (((n)&0x3ff) << 0)
  1442. // sysstat2
  1443. #define RF_SYSCTRL_RF_DBG_MONITOR(n) (((n)&0xff) << 0)
  1444. // sysctrl26
  1445. #define RF_SYSCTRL_RG_WIFI_GAIN0(n) (((n)&0xffff) << 0)
  1446. // sysctrl27
  1447. #define RF_SYSCTRL_RG_WIFI_GAIN1(n) (((n)&0xffff) << 0)
  1448. // sysctrl28
  1449. #define RF_SYSCTRL_RG_WIFI_GAIN2(n) (((n)&0xffff) << 0)
  1450. // sysctrl29
  1451. #define RF_SYSCTRL_RG_WIFI_GAIN3(n) (((n)&0xffff) << 0)
  1452. // sysctrl30
  1453. #define RF_SYSCTRL_RG_WIFI_GAIN4(n) (((n)&0xffff) << 0)
  1454. // sysctrl31
  1455. #define RF_SYSCTRL_RG_WIFI_GAIN5(n) (((n)&0xffff) << 0)
  1456. // sysctrl32
  1457. #define RF_SYSCTRL_RG_WIFI_GAIN6(n) (((n)&0xffff) << 0)
  1458. // sysctrl33
  1459. #define RF_SYSCTRL_RG_WIFI_GAIN7(n) (((n)&0xffff) << 0)
  1460. // sysctrl34
  1461. #define RF_SYSCTRL_RG_WIFI_GAIN8(n) (((n)&0xffff) << 0)
  1462. // sysctrl35
  1463. #define RF_SYSCTRL_RG_WIFI_GAIN9(n) (((n)&0xffff) << 0)
  1464. // sysctrl36
  1465. #define RF_SYSCTRL_RG_WIFI_GAIN10(n) (((n)&0xffff) << 0)
  1466. // sysctrl37
  1467. #define RF_SYSCTRL_RG_WIFI_GAIN11(n) (((n)&0xffff) << 0)
  1468. // sysctrl38
  1469. #define RF_SYSCTRL_RG_WIFI_GAIN12(n) (((n)&0xffff) << 0)
  1470. // sysctrl39
  1471. #define RF_SYSCTRL_RG_WIFI_GAIN13(n) (((n)&0xffff) << 0)
  1472. // sysctrl40
  1473. #define RF_SYSCTRL_RG_WIFI_GAIN14(n) (((n)&0xffff) << 0)
  1474. // sysctrl41
  1475. #define RF_SYSCTRL_RG_WIFI_GAIN15(n) (((n)&0xffff) << 0)
  1476. // sysstat3
  1477. #define RF_SYSCTRL_WLAN_GAIN_INDEX(n) (((n)&0xf) << 0)
  1478. // sysctrl42
  1479. #define RF_SYSCTRL_RG_DC_ICAL_SEL(n) (((n)&0x3) << 0)
  1480. #define RF_SYSCTRL_RG_DC_QCAL_SEL(n) (((n)&0x3) << 2)
  1481. #define RF_SYSCTRL_RG_GAIN_OUT_SEL_WIFI (1 << 4)
  1482. // sysctrl43
  1483. #define RF_SYSCTRL_RG_DC_ICAL_OFFSET(n) (((n)&0xff) << 0)
  1484. #define RF_SYSCTRL_RG_DC_QCAL_OFFSET(n) (((n)&0xff) << 8)
  1485. // sysstat5
  1486. #define RF_SYSCTRL_ADDA_TEST_MEM_FULL (1 << 0)
  1487. #define RF_SYSCTRL_CGM_AHB_SEL_AC(n) (((n)&0x3) << 8)
  1488. // sysctrl46
  1489. #define RF_SYSCTRL_RG_PLL_GRO_STAB_TIME(n) (((n)&0x3ff) << 0)
  1490. #define RF_SYSCTRL_RG_RXPLL_GRO_AUTO_CTRL_EN (1 << 10)
  1491. #define RF_SYSCTRL_RG_TXPLL_GRO_AUTO_CTRL_EN (1 << 11)
  1492. // sysctrl47
  1493. #define RF_SYSCTRL_RG_ADC_BIAS_EN_CNT(n) (((n)&0xfff) << 0)
  1494. #define RF_SYSCTRL_RG_ADC_AUTO_CTRL_EN (1 << 12)
  1495. #define RF_SYSCTRL_RG_ADC_CLK_ENH_BB_FORCE (1 << 13)
  1496. #define RF_SYSCTRL_RG_ADC_ENH_BB_FORCE (1 << 14)
  1497. // sysctrl48
  1498. #define RF_SYSCTRL_RG_ADC_CLK_ENH_CNT(n) (((n)&0xfff) << 0)
  1499. // sysctrl49
  1500. #define RF_SYSCTRL_RG_PWDADC_BIAS_EN_CNT(n) (((n)&0xfff) << 0)
  1501. #define RF_SYSCTRL_RG_PWDADC_AUTO_CTRL_EN (1 << 12)
  1502. // sysctrl50
  1503. #define RF_SYSCTRL_RG_PWDADC_CLK_ENH_CNT(n) (((n)&0xfff) << 0)
  1504. // sysctrl51
  1505. #define RF_SYSCTRL_RG_WIFI_GAIN0_DCCAL_I(n) (((n)&0xff) << 0)
  1506. #define RF_SYSCTRL_RG_WIFI_GAIN0_DCCAL_Q(n) (((n)&0xff) << 8)
  1507. // sysctrl52
  1508. #define RF_SYSCTRL_RG_WIFI_GAIN1_DCCAL_I(n) (((n)&0xff) << 0)
  1509. #define RF_SYSCTRL_RG_WIFI_GAIN1_DCCAL_Q(n) (((n)&0xff) << 8)
  1510. // sysctrl53
  1511. #define RF_SYSCTRL_RG_WIFI_GAIN2_DCCAL_I(n) (((n)&0xff) << 0)
  1512. #define RF_SYSCTRL_RG_WIFI_GAIN2_DCCAL_Q(n) (((n)&0xff) << 8)
  1513. // sysctrl54
  1514. #define RF_SYSCTRL_RG_WIFI_GAIN3_DCCAL_I(n) (((n)&0xff) << 0)
  1515. #define RF_SYSCTRL_RG_WIFI_GAIN3_DCCAL_Q(n) (((n)&0xff) << 8)
  1516. // sysctrl55
  1517. #define RF_SYSCTRL_RG_WIFI_GAIN4_DCCAL_I(n) (((n)&0xff) << 0)
  1518. #define RF_SYSCTRL_RG_WIFI_GAIN4_DCCAL_Q(n) (((n)&0xff) << 8)
  1519. // sysctrl56
  1520. #define RF_SYSCTRL_RG_WIFI_GAIN5_DCCAL_I(n) (((n)&0xff) << 0)
  1521. #define RF_SYSCTRL_RG_WIFI_GAIN5_DCCAL_Q(n) (((n)&0xff) << 8)
  1522. // sysctrl57
  1523. #define RF_SYSCTRL_RG_WIFI_GAIN6_DCCAL_I(n) (((n)&0xff) << 0)
  1524. #define RF_SYSCTRL_RG_WIFI_GAIN6_DCCAL_Q(n) (((n)&0xff) << 8)
  1525. // sysctrl58
  1526. #define RF_SYSCTRL_RG_WIFI_GAIN7_DCCAL_I(n) (((n)&0xff) << 0)
  1527. #define RF_SYSCTRL_RG_WIFI_GAIN7_DCCAL_Q(n) (((n)&0xff) << 8)
  1528. // sysctrl59
  1529. #define RF_SYSCTRL_RG_WIFI_GAIN8_DCCAL_I(n) (((n)&0xff) << 0)
  1530. #define RF_SYSCTRL_RG_WIFI_GAIN8_DCCAL_Q(n) (((n)&0xff) << 8)
  1531. // sysctrl60
  1532. #define RF_SYSCTRL_RG_WIFI_GAIN9_DCCAL_I(n) (((n)&0xff) << 0)
  1533. #define RF_SYSCTRL_RG_WIFI_GAIN9_DCCAL_Q(n) (((n)&0xff) << 8)
  1534. // sysctrl61
  1535. #define RF_SYSCTRL_RG_WIFI_GAIN10_DCCAL_I(n) (((n)&0xff) << 0)
  1536. #define RF_SYSCTRL_RG_WIFI_GAIN10_DCCAL_Q(n) (((n)&0xff) << 8)
  1537. // sysctrl62
  1538. #define RF_SYSCTRL_RG_WIFI_GAIN11_DCCAL_I(n) (((n)&0xff) << 0)
  1539. #define RF_SYSCTRL_RG_WIFI_GAIN11_DCCAL_Q(n) (((n)&0xff) << 8)
  1540. // sysctrl63
  1541. #define RF_SYSCTRL_RG_WIFI_GAIN12_DCCAL_I(n) (((n)&0xff) << 0)
  1542. #define RF_SYSCTRL_RG_WIFI_GAIN12_DCCAL_Q(n) (((n)&0xff) << 8)
  1543. // sysctrl64
  1544. #define RF_SYSCTRL_RG_WIFI_GAIN13_DCCAL_I(n) (((n)&0xff) << 0)
  1545. #define RF_SYSCTRL_RG_WIFI_GAIN13_DCCAL_Q(n) (((n)&0xff) << 8)
  1546. // sysctrl65
  1547. #define RF_SYSCTRL_RG_WIFI_GAIN14_DCCAL_I(n) (((n)&0xff) << 0)
  1548. #define RF_SYSCTRL_RG_WIFI_GAIN14_DCCAL_Q(n) (((n)&0xff) << 8)
  1549. // sysctrl66
  1550. #define RF_SYSCTRL_RG_WIFI_GAIN15_DCCAL_I(n) (((n)&0xff) << 0)
  1551. #define RF_SYSCTRL_RG_WIFI_GAIN15_DCCAL_Q(n) (((n)&0xff) << 8)
  1552. // sysctrl67
  1553. #define RF_SYSCTRL_RG_WIFI_GAIN0_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1554. #define RF_SYSCTRL_RG_WIFI_GAIN0_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1555. // sysctrl68
  1556. #define RF_SYSCTRL_RG_WIFI_GAIN1_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1557. #define RF_SYSCTRL_RG_WIFI_GAIN1_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1558. // sysctrl69
  1559. #define RF_SYSCTRL_RG_WIFI_GAIN2_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1560. #define RF_SYSCTRL_RG_WIFI_GAIN2_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1561. // sysctrl70
  1562. #define RF_SYSCTRL_RG_WIFI_GAIN3_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1563. #define RF_SYSCTRL_RG_WIFI_GAIN3_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1564. // sysctrl71
  1565. #define RF_SYSCTRL_RG_WIFI_GAIN4_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1566. #define RF_SYSCTRL_RG_WIFI_GAIN4_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1567. // sysctrl72
  1568. #define RF_SYSCTRL_RG_WIFI_GAIN5_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1569. #define RF_SYSCTRL_RG_WIFI_GAIN5_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1570. // sysctrl73
  1571. #define RF_SYSCTRL_RG_WIFI_GAIN6_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1572. #define RF_SYSCTRL_RG_WIFI_GAIN6_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1573. // sysctrl74
  1574. #define RF_SYSCTRL_RG_WIFI_GAIN7_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1575. #define RF_SYSCTRL_RG_WIFI_GAIN7_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1576. // sysctrl75
  1577. #define RF_SYSCTRL_RG_WIFI_GAIN8_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1578. #define RF_SYSCTRL_RG_WIFI_GAIN8_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1579. // sysctrl76
  1580. #define RF_SYSCTRL_RG_WIFI_GAIN9_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1581. #define RF_SYSCTRL_RG_WIFI_GAIN9_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1582. // sysctrl77
  1583. #define RF_SYSCTRL_RG_WIFI_GAIN10_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1584. #define RF_SYSCTRL_RG_WIFI_GAIN10_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1585. // sysctrl78
  1586. #define RF_SYSCTRL_RG_WIFI_GAIN11_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1587. #define RF_SYSCTRL_RG_WIFI_GAIN11_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1588. // sysctrl79
  1589. #define RF_SYSCTRL_RG_WIFI_GAIN12_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1590. #define RF_SYSCTRL_RG_WIFI_GAIN12_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1591. // sysctrl80
  1592. #define RF_SYSCTRL_RG_WIFI_GAIN13_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1593. #define RF_SYSCTRL_RG_WIFI_GAIN13_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1594. // sysctrl81
  1595. #define RF_SYSCTRL_RG_WIFI_GAIN14_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1596. #define RF_SYSCTRL_RG_WIFI_GAIN14_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1597. // sysctrl82
  1598. #define RF_SYSCTRL_RG_WIFI_GAIN15_RXFLT_DCCAL_I(n) (((n)&0xff) << 0)
  1599. #define RF_SYSCTRL_RG_WIFI_GAIN15_RXFLT_DCCAL_Q(n) (((n)&0xff) << 8)
  1600. #endif // _RF_SYSCTRL_H_