rf_ana.h 96 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634
  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_ANA_H_
  13. #define _RF_ANA_H_
  14. // Auto generated by dtools(see dtools.txt for its version).
  15. // Don't edit it manually!
  16. #define REG_RF_ANA_SET_OFFSET (1024)
  17. #define REG_RF_ANA_CLR_OFFSET (2048)
  18. #define REG_RF_ANA_BASE (0x50031000)
  19. typedef volatile struct
  20. {
  21. uint32_t bandgap_ctrl_0; // 0x00000000
  22. uint32_t ldo_pu_ctrl_0; // 0x00000004
  23. uint32_t ldo_pu_ctrl_1; // 0x00000008
  24. uint32_t ldo_pu_ctrl_2; // 0x0000000c
  25. uint32_t trx_pu_0; // 0x00000010
  26. uint32_t trx_pu_1; // 0x00000014
  27. uint32_t trx_pu_2; // 0x00000018
  28. uint32_t trx_pu_3; // 0x0000001c
  29. uint32_t trx_pu_4; // 0x00000020
  30. uint32_t trx_pu_5; // 0x00000024
  31. uint32_t mdll_ctrl_0; // 0x00000028
  32. uint32_t mdll_ctrl_1; // 0x0000002c
  33. uint32_t xtal_ctrl_0; // 0x00000030
  34. uint32_t rxvco_ldo_ctrl; // 0x00000034
  35. uint32_t rxvco_buf_ldo_ctrl; // 0x00000038
  36. uint32_t rxvco_ctrl_0; // 0x0000003c
  37. uint32_t rxvco_ctrl_1; // 0x00000040
  38. uint32_t rxvco_ctrl_2; // 0x00000044
  39. uint32_t rxpll_ldo_ctrl_0; // 0x00000048
  40. uint32_t rxpll_ldo_ctrl_1; // 0x0000004c
  41. uint32_t rxpll_ldo_ctrl_2; // 0x00000050
  42. uint32_t rxpll_gro_ctrl_0; // 0x00000054
  43. uint32_t rxpll_gro_ctrl_1; // 0x00000058
  44. uint32_t rxpll_gro_ctrl_2; // 0x0000005c
  45. uint32_t rxpll_gro_ctrl_3; // 0x00000060
  46. uint32_t rxpll_ctrl_0; // 0x00000064
  47. uint32_t lna_sel_ctrl; // 0x00000068
  48. uint32_t lna_ctrl; // 0x0000006c
  49. uint32_t lna_pkd_ctrl; // 0x00000070
  50. uint32_t rxmixer_ctrl; // 0x00000074
  51. uint32_t pga_ctrl_0; // 0x00000078
  52. uint32_t pga_ctrl_1; // 0x0000007c
  53. uint32_t pga_ctrl_2; // 0x00000080
  54. uint32_t pga_ctrl_3; // 0x00000084
  55. uint32_t rxabb_dccal_ctrl_0; // 0x00000088
  56. uint32_t rxabb_dccal_ctrl_1; // 0x0000008c
  57. uint32_t rxflt_ctrl_0; // 0x00000090
  58. uint32_t rxflt_ctrl_1; // 0x00000094
  59. uint32_t rxflt_ctrl_2; // 0x00000098
  60. uint32_t adc_ldo_ctrl; // 0x0000009c
  61. uint32_t adc_ctrl_0; // 0x000000a0
  62. uint32_t adc_ctrl_1; // 0x000000a4
  63. uint32_t adc_ctrl_2; // 0x000000a8
  64. uint32_t adc_ctrl_3; // 0x000000ac
  65. uint32_t adc_rsv_0; // 0x000000b0
  66. uint32_t pwdadc_ctrl_0; // 0x000000b4
  67. uint32_t pwdadc_ctrl_1; // 0x000000b8
  68. uint32_t pwdadc_ctrl_2; // 0x000000bc
  69. uint32_t pwdadc_ctrl_3; // 0x000000c0
  70. uint32_t rx_gain_ctrl; // 0x000000c4
  71. uint32_t rx_reserve1; // 0x000000c8
  72. uint32_t rx_reserve2; // 0x000000cc
  73. uint32_t rx_reserve3; // 0x000000d0
  74. uint32_t txvco_ldo_ctrl; // 0x000000d4
  75. uint32_t txvco_buf_ldo_ctrl; // 0x000000d8
  76. uint32_t txvco_ctrl_0; // 0x000000dc
  77. uint32_t txvco_ctrl_1; // 0x000000e0
  78. uint32_t txvco_ctrl_2; // 0x000000e4
  79. uint32_t txpll_ldo_ctrl_0; // 0x000000e8
  80. uint32_t txpll_ldo_ctrl_1; // 0x000000ec
  81. uint32_t txpll_ldo_ctrl_2; // 0x000000f0
  82. uint32_t txpll_gro_ctrl_0; // 0x000000f4
  83. uint32_t txpll_gro_ctrl_1; // 0x000000f8
  84. uint32_t txpll_gro_ctrl_2; // 0x000000fc
  85. uint32_t txpll_gro_ctrl_3; // 0x00000100
  86. uint32_t txpll_ctrl_0; // 0x00000104
  87. uint32_t txrf_gain; // 0x00000108
  88. uint32_t txrf_gain_compensation; // 0x0000010c
  89. uint32_t txrf_gain_adj; // 0x00000110
  90. uint32_t txrf_matchcap; // 0x00000114
  91. uint32_t txflt_ctrl_0; // 0x00000118
  92. uint32_t txflt_ctrl_1; // 0x0000011c
  93. uint32_t dac_ctrl_0; // 0x00000120
  94. uint32_t dac_ctrl_1; // 0x00000124
  95. uint32_t gnss_clkgen_ctrl_0; // 0x00000128
  96. uint32_t gnss_clkgen_ctrl_1; // 0x0000012c
  97. uint32_t gnss_clkgen_ctrl_2; // 0x00000130
  98. uint32_t gnss_clkgen_ctrl_3; // 0x00000134
  99. uint32_t gnss_clkgen_ctrl_4; // 0x00000138
  100. uint32_t rxflt_dccal; // 0x0000013c
  101. uint32_t tx_reserve_0; // 0x00000140
  102. uint32_t tx_reserve_1; // 0x00000144
  103. uint32_t pwd_ctrl_0; // 0x00000148
  104. uint32_t pwd_ctrl_1; // 0x0000014c
  105. uint32_t pwd_ctrl_2; // 0x00000150
  106. uint32_t ts_ctrl_0; // 0x00000154
  107. uint32_t ts_ctrl_1; // 0x00000158
  108. uint32_t ts_ctrl_2; // 0x0000015c
  109. uint32_t cm_reserve1; // 0x00000160
  110. uint32_t cm_reserve2; // 0x00000164
  111. uint32_t cm_reserve3; // 0x00000168
  112. uint32_t revid_reg; // 0x0000016c
  113. uint32_t test_ctrl_0; // 0x00000170
  114. uint32_t test_ctrl_1; // 0x00000174
  115. uint32_t cal_ctrl_0; // 0x00000178
  116. uint32_t rf_output_readonly_0; // 0x0000017c
  117. uint32_t rf_output_readonly_1; // 0x00000180
  118. uint32_t tsenadc_ctrl_0; // 0x00000184
  119. uint32_t tsenadc_ctrl_1; // 0x00000188
  120. uint32_t tsenadc_ctrl_2; // 0x0000018c
  121. uint32_t apc_ctrl_0; // 0x00000190
  122. uint32_t apc_ctrl_1; // 0x00000194
  123. uint32_t __408[154]; // 0x00000198
  124. uint32_t bandgap_ctrl_0_set; // 0x00000400
  125. uint32_t ldo_pu_ctrl_0_set; // 0x00000404
  126. uint32_t ldo_pu_ctrl_1_set; // 0x00000408
  127. uint32_t ldo_pu_ctrl_2_set; // 0x0000040c
  128. uint32_t trx_pu_0_set; // 0x00000410
  129. uint32_t trx_pu_1_set; // 0x00000414
  130. uint32_t trx_pu_2_set; // 0x00000418
  131. uint32_t trx_pu_3_set; // 0x0000041c
  132. uint32_t trx_pu_4_set; // 0x00000420
  133. uint32_t trx_pu_5_set; // 0x00000424
  134. uint32_t mdll_ctrl_0_set; // 0x00000428
  135. uint32_t mdll_ctrl_1_set; // 0x0000042c
  136. uint32_t xtal_ctrl_0_set; // 0x00000430
  137. uint32_t rxvco_ldo_ctrl_set; // 0x00000434
  138. uint32_t rxvco_buf_ldo_ctrl_set; // 0x00000438
  139. uint32_t rxvco_ctrl_0_set; // 0x0000043c
  140. uint32_t rxvco_ctrl_1_set; // 0x00000440
  141. uint32_t rxvco_ctrl_2_set; // 0x00000444
  142. uint32_t rxpll_ldo_ctrl_0_set; // 0x00000448
  143. uint32_t rxpll_ldo_ctrl_1_set; // 0x0000044c
  144. uint32_t rxpll_ldo_ctrl_2_set; // 0x00000450
  145. uint32_t rxpll_gro_ctrl_0_set; // 0x00000454
  146. uint32_t rxpll_gro_ctrl_1_set; // 0x00000458
  147. uint32_t rxpll_gro_ctrl_2_set; // 0x0000045c
  148. uint32_t rxpll_gro_ctrl_3_set; // 0x00000460
  149. uint32_t rxpll_ctrl_0_set; // 0x00000464
  150. uint32_t lna_sel_ctrl_set; // 0x00000468
  151. uint32_t lna_ctrl_set; // 0x0000046c
  152. uint32_t lna_pkd_ctrl_set; // 0x00000470
  153. uint32_t rxmixer_ctrl_set; // 0x00000474
  154. uint32_t pga_ctrl_0_set; // 0x00000478
  155. uint32_t pga_ctrl_1_set; // 0x0000047c
  156. uint32_t pga_ctrl_2_set; // 0x00000480
  157. uint32_t pga_ctrl_3_set; // 0x00000484
  158. uint32_t rxabb_dccal_ctrl_0_set; // 0x00000488
  159. uint32_t rxabb_dccal_ctrl_1_set; // 0x0000048c
  160. uint32_t rxflt_ctrl_0_set; // 0x00000490
  161. uint32_t rxflt_ctrl_1_set; // 0x00000494
  162. uint32_t rxflt_ctrl_2_set; // 0x00000498
  163. uint32_t adc_ldo_ctrl_set; // 0x0000049c
  164. uint32_t adc_ctrl_0_set; // 0x000004a0
  165. uint32_t adc_ctrl_1_set; // 0x000004a4
  166. uint32_t adc_ctrl_2_set; // 0x000004a8
  167. uint32_t adc_ctrl_3_set; // 0x000004ac
  168. uint32_t adc_rsv_0_set; // 0x000004b0
  169. uint32_t pwdadc_ctrl_0_set; // 0x000004b4
  170. uint32_t pwdadc_ctrl_1_set; // 0x000004b8
  171. uint32_t pwdadc_ctrl_2_set; // 0x000004bc
  172. uint32_t pwdadc_ctrl_3_set; // 0x000004c0
  173. uint32_t rx_gain_ctrl_set; // 0x000004c4
  174. uint32_t rx_reserve1_set; // 0x000004c8
  175. uint32_t rx_reserve2_set; // 0x000004cc
  176. uint32_t rx_reserve3_set; // 0x000004d0
  177. uint32_t txvco_ldo_ctrl_set; // 0x000004d4
  178. uint32_t txvco_buf_ldo_ctrl_set; // 0x000004d8
  179. uint32_t txvco_ctrl_0_set; // 0x000004dc
  180. uint32_t txvco_ctrl_1_set; // 0x000004e0
  181. uint32_t txvco_ctrl_2_set; // 0x000004e4
  182. uint32_t txpll_ldo_ctrl_0_set; // 0x000004e8
  183. uint32_t txpll_ldo_ctrl_1_set; // 0x000004ec
  184. uint32_t txpll_ldo_ctrl_2_set; // 0x000004f0
  185. uint32_t txpll_gro_ctrl_0_set; // 0x000004f4
  186. uint32_t txpll_gro_ctrl_1_set; // 0x000004f8
  187. uint32_t txpll_gro_ctrl_2_set; // 0x000004fc
  188. uint32_t txpll_gro_ctrl_3_set; // 0x00000500
  189. uint32_t txpll_ctrl_0_set; // 0x00000504
  190. uint32_t txrf_gain_set; // 0x00000508
  191. uint32_t txrf_gain_compensation_set; // 0x0000050c
  192. uint32_t txrf_gain_adj_set; // 0x00000510
  193. uint32_t txrf_matchcap_set; // 0x00000514
  194. uint32_t txflt_ctrl_0_set; // 0x00000518
  195. uint32_t txflt_ctrl_1_set; // 0x0000051c
  196. uint32_t dac_ctrl_0_set; // 0x00000520
  197. uint32_t dac_ctrl_1_set; // 0x00000524
  198. uint32_t gnss_clkgen_ctrl_0_set; // 0x00000528
  199. uint32_t gnss_clkgen_ctrl_1_set; // 0x0000052c
  200. uint32_t gnss_clkgen_ctrl_2_set; // 0x00000530
  201. uint32_t gnss_clkgen_ctrl_3_set; // 0x00000534
  202. uint32_t gnss_clkgen_ctrl_4_set; // 0x00000538
  203. uint32_t rxflt_dccal_set; // 0x0000053c
  204. uint32_t tx_reserve_0_set; // 0x00000540
  205. uint32_t tx_reserve_1_set; // 0x00000544
  206. uint32_t pwd_ctrl_0_set; // 0x00000548
  207. uint32_t pwd_ctrl_1_set; // 0x0000054c
  208. uint32_t pwd_ctrl_2_set; // 0x00000550
  209. uint32_t ts_ctrl_0_set; // 0x00000554
  210. uint32_t ts_ctrl_1_set; // 0x00000558
  211. uint32_t ts_ctrl_2_set; // 0x0000055c
  212. uint32_t cm_reserve1_set; // 0x00000560
  213. uint32_t cm_reserve2_set; // 0x00000564
  214. uint32_t cm_reserve3_set; // 0x00000568
  215. uint32_t __1388[1]; // 0x0000056c
  216. uint32_t test_ctrl_0_set; // 0x00000570
  217. uint32_t test_ctrl_1_set; // 0x00000574
  218. uint32_t cal_ctrl_0_set; // 0x00000578
  219. uint32_t __1404[2]; // 0x0000057c
  220. uint32_t tsenadc_ctrl_0_set; // 0x00000584
  221. uint32_t tsenadc_ctrl_1_set; // 0x00000588
  222. uint32_t tsenadc_ctrl_2_set; // 0x0000058c
  223. uint32_t apc_ctrl_0_set; // 0x00000590
  224. uint32_t apc_ctrl_1_set; // 0x00000594
  225. uint32_t __1432[154]; // 0x00000598
  226. uint32_t bandgap_ctrl_0_clr; // 0x00000800
  227. uint32_t ldo_pu_ctrl_0_clr; // 0x00000804
  228. uint32_t ldo_pu_ctrl_1_clr; // 0x00000808
  229. uint32_t ldo_pu_ctrl_2_clr; // 0x0000080c
  230. uint32_t trx_pu_0_clr; // 0x00000810
  231. uint32_t trx_pu_1_clr; // 0x00000814
  232. uint32_t trx_pu_2_clr; // 0x00000818
  233. uint32_t trx_pu_3_clr; // 0x0000081c
  234. uint32_t trx_pu_4_clr; // 0x00000820
  235. uint32_t trx_pu_5_clr; // 0x00000824
  236. uint32_t mdll_ctrl_0_clr; // 0x00000828
  237. uint32_t mdll_ctrl_1_clr; // 0x0000082c
  238. uint32_t xtal_ctrl_0_clr; // 0x00000830
  239. uint32_t rxvco_ldo_ctrl_clr; // 0x00000834
  240. uint32_t rxvco_buf_ldo_ctrl_clr; // 0x00000838
  241. uint32_t rxvco_ctrl_0_clr; // 0x0000083c
  242. uint32_t rxvco_ctrl_1_clr; // 0x00000840
  243. uint32_t rxvco_ctrl_2_clr; // 0x00000844
  244. uint32_t rxpll_ldo_ctrl_0_clr; // 0x00000848
  245. uint32_t rxpll_ldo_ctrl_1_clr; // 0x0000084c
  246. uint32_t rxpll_ldo_ctrl_2_clr; // 0x00000850
  247. uint32_t rxpll_gro_ctrl_0_clr; // 0x00000854
  248. uint32_t rxpll_gro_ctrl_1_clr; // 0x00000858
  249. uint32_t rxpll_gro_ctrl_2_clr; // 0x0000085c
  250. uint32_t rxpll_gro_ctrl_3_clr; // 0x00000860
  251. uint32_t rxpll_ctrl_0_clr; // 0x00000864
  252. uint32_t lna_sel_ctrl_clr; // 0x00000868
  253. uint32_t lna_ctrl_clr; // 0x0000086c
  254. uint32_t lna_pkd_ctrl_clr; // 0x00000870
  255. uint32_t rxmixer_ctrl_clr; // 0x00000874
  256. uint32_t pga_ctrl_0_clr; // 0x00000878
  257. uint32_t pga_ctrl_1_clr; // 0x0000087c
  258. uint32_t pga_ctrl_2_clr; // 0x00000880
  259. uint32_t pga_ctrl_3_clr; // 0x00000884
  260. uint32_t rxabb_dccal_ctrl_0_clr; // 0x00000888
  261. uint32_t rxabb_dccal_ctrl_1_clr; // 0x0000088c
  262. uint32_t rxflt_ctrl_0_clr; // 0x00000890
  263. uint32_t rxflt_ctrl_1_clr; // 0x00000894
  264. uint32_t rxflt_ctrl_2_clr; // 0x00000898
  265. uint32_t adc_ldo_ctrl_clr; // 0x0000089c
  266. uint32_t adc_ctrl_0_clr; // 0x000008a0
  267. uint32_t adc_ctrl_1_clr; // 0x000008a4
  268. uint32_t adc_ctrl_2_clr; // 0x000008a8
  269. uint32_t adc_ctrl_3_clr; // 0x000008ac
  270. uint32_t adc_rsv_0_clr; // 0x000008b0
  271. uint32_t pwdadc_ctrl_0_clr; // 0x000008b4
  272. uint32_t pwdadc_ctrl_1_clr; // 0x000008b8
  273. uint32_t pwdadc_ctrl_2_clr; // 0x000008bc
  274. uint32_t pwdadc_ctrl_3_clr; // 0x000008c0
  275. uint32_t rx_gain_ctrl_clr; // 0x000008c4
  276. uint32_t rx_reserve1_clr; // 0x000008c8
  277. uint32_t rx_reserve2_clr; // 0x000008cc
  278. uint32_t rx_reserve3_clr; // 0x000008d0
  279. uint32_t txvco_ldo_ctrl_clr; // 0x000008d4
  280. uint32_t txvco_buf_ldo_ctrl_clr; // 0x000008d8
  281. uint32_t txvco_ctrl_0_clr; // 0x000008dc
  282. uint32_t txvco_ctrl_1_clr; // 0x000008e0
  283. uint32_t txvco_ctrl_2_clr; // 0x000008e4
  284. uint32_t txpll_ldo_ctrl_0_clr; // 0x000008e8
  285. uint32_t txpll_ldo_ctrl_1_clr; // 0x000008ec
  286. uint32_t txpll_ldo_ctrl_2_clr; // 0x000008f0
  287. uint32_t txpll_gro_ctrl_0_clr; // 0x000008f4
  288. uint32_t txpll_gro_ctrl_1_clr; // 0x000008f8
  289. uint32_t txpll_gro_ctrl_2_clr; // 0x000008fc
  290. uint32_t txpll_gro_ctrl_3_clr; // 0x00000900
  291. uint32_t txpll_ctrl_0_clr; // 0x00000904
  292. uint32_t txrf_gain_clr; // 0x00000908
  293. uint32_t txrf_gain_compensation_clr; // 0x0000090c
  294. uint32_t txrf_gain_adj_clr; // 0x00000910
  295. uint32_t txrf_matchcap_clr; // 0x00000914
  296. uint32_t txflt_ctrl_0_clr; // 0x00000918
  297. uint32_t txflt_ctrl_1_clr; // 0x0000091c
  298. uint32_t dac_ctrl_0_clr; // 0x00000920
  299. uint32_t dac_ctrl_1_clr; // 0x00000924
  300. uint32_t gnss_clkgen_ctrl_0_clr; // 0x00000928
  301. uint32_t gnss_clkgen_ctrl_1_clr; // 0x0000092c
  302. uint32_t gnss_clkgen_ctrl_2_clr; // 0x00000930
  303. uint32_t gnss_clkgen_ctrl_3_clr; // 0x00000934
  304. uint32_t gnss_clkgen_ctrl_4_clr; // 0x00000938
  305. uint32_t rxflt_dccal_clr; // 0x0000093c
  306. uint32_t tx_reserve_0_clr; // 0x00000940
  307. uint32_t tx_reserve_1_clr; // 0x00000944
  308. uint32_t pwd_ctrl_0_clr; // 0x00000948
  309. uint32_t pwd_ctrl_1_clr; // 0x0000094c
  310. uint32_t pwd_ctrl_2_clr; // 0x00000950
  311. uint32_t ts_ctrl_0_clr; // 0x00000954
  312. uint32_t ts_ctrl_1_clr; // 0x00000958
  313. uint32_t ts_ctrl_2_clr; // 0x0000095c
  314. uint32_t cm_reserve1_clr; // 0x00000960
  315. uint32_t cm_reserve2_clr; // 0x00000964
  316. uint32_t cm_reserve3_clr; // 0x00000968
  317. uint32_t __2412[1]; // 0x0000096c
  318. uint32_t test_ctrl_0_clr; // 0x00000970
  319. uint32_t test_ctrl_1_clr; // 0x00000974
  320. uint32_t cal_ctrl_0_clr; // 0x00000978
  321. uint32_t __2428[2]; // 0x0000097c
  322. uint32_t tsenadc_ctrl_0_clr; // 0x00000984
  323. uint32_t tsenadc_ctrl_1_clr; // 0x00000988
  324. uint32_t tsenadc_ctrl_2_clr; // 0x0000098c
  325. uint32_t apc_ctrl_0_clr; // 0x00000990
  326. uint32_t apc_ctrl_1_clr; // 0x00000994
  327. } HWP_RF_ANA_T;
  328. #define hwp_rfAna ((HWP_RF_ANA_T *)REG_ACCESS_ADDRESS(REG_RF_ANA_BASE))
  329. // bandgap_ctrl_0
  330. typedef union {
  331. uint32_t v;
  332. struct
  333. {
  334. uint32_t __6_0 : 7; // [6:0]
  335. uint32_t ldo_levelshifter_cp_tune : 2; // [8:7]
  336. uint32_t ldo_levelshifter_out : 3; // [11:9]
  337. uint32_t bg_cal_r_d_bb : 4; // [15:12]
  338. uint32_t __31_16 : 16; // [31:16]
  339. } b;
  340. } REG_RF_ANA_BANDGAP_CTRL_0_T;
  341. // ldo_pu_ctrl_0
  342. typedef union {
  343. uint32_t v;
  344. struct
  345. {
  346. uint32_t __3_0 : 4; // [3:0]
  347. uint32_t pwdadc_ldo_en_bb : 1; // [4]
  348. uint32_t pwdadc_ldo_bias_en_bb : 1; // [5]
  349. uint32_t dac_ldo_fc_pulse_bb : 1; // [6]
  350. uint32_t dac_ldo_en_bb : 1; // [7]
  351. uint32_t txflt_ldo_fc_pulse_bb : 1; // [8]
  352. uint32_t txflt_ldo_en_bb : 1; // [9]
  353. uint32_t adc_ldo_en_bb : 1; // [10]
  354. uint32_t adc_ldo_bias_en_bb : 1; // [11]
  355. uint32_t rxabb_ldo_fc_pulse_bb : 1; // [12]
  356. uint32_t rxabb_ldo_en_bb : 1; // [13]
  357. uint32_t lna_ldo_fast_charge_en_bb : 1; // [14]
  358. uint32_t lna_ldo_en_in_bb : 1; // [15]
  359. uint32_t __31_16 : 16; // [31:16]
  360. } b;
  361. } REG_RF_ANA_LDO_PU_CTRL_0_T;
  362. // ldo_pu_ctrl_1
  363. typedef union {
  364. uint32_t v;
  365. struct
  366. {
  367. uint32_t __0_0 : 1; // [0]
  368. uint32_t rxvco_tc_fc_bb : 1; // [1]
  369. uint32_t rxvco_tc_en_bb : 1; // [2]
  370. uint32_t rxvco_buf_ldo_load_bb : 1; // [3]
  371. uint32_t rxvco_buf_ldo_fc_bb : 1; // [4]
  372. uint32_t rxvco_buf_ldo_en_bb : 1; // [5]
  373. uint32_t rxvco_ldo_load_bb : 1; // [6]
  374. uint32_t rxvco_ldo_fc_bb : 1; // [7]
  375. uint32_t rxvco_ldo_en_bb : 1; // [8]
  376. uint32_t rxpll_rdac_ldo_vref_fc_en_bb : 1; // [9]
  377. uint32_t rxpll_rdac_ldo_vref_en_bb : 1; // [10]
  378. uint32_t rxpll_rdac_ldo_dig_en_bb : 1; // [11]
  379. uint32_t rxpll_presc_ldo_fast_charge_en_bb : 1; // [12]
  380. uint32_t rxpll_presc_ldo_en_bb : 1; // [13]
  381. uint32_t rxpll_gro_ldo_en_bb : 1; // [14]
  382. uint32_t rxpll_gro_ldo_bias_en_bb : 1; // [15]
  383. uint32_t __31_16 : 16; // [31:16]
  384. } b;
  385. } REG_RF_ANA_LDO_PU_CTRL_1_T;
  386. // ldo_pu_ctrl_2
  387. typedef union {
  388. uint32_t v;
  389. struct
  390. {
  391. uint32_t __0_0 : 1; // [0]
  392. uint32_t txvco_tc_fc_bb : 1; // [1]
  393. uint32_t txvco_tc_en_bb : 1; // [2]
  394. uint32_t txvcobuf_ldo_load_bb : 1; // [3]
  395. uint32_t txvcobuf_ldo_fc_bb : 1; // [4]
  396. uint32_t txvcobuf_ldo_en_bb : 1; // [5]
  397. uint32_t txvco_ldo_load_bb : 1; // [6]
  398. uint32_t txvco_ldo_fc_bb : 1; // [7]
  399. uint32_t txvco_ldo_en_bb : 1; // [8]
  400. uint32_t txpll_rdac_ldo_vref_fc_en_bb : 1; // [9]
  401. uint32_t txpll_rdac_ldo_vref_en_bb : 1; // [10]
  402. uint32_t txpll_rdac_ldo_dig_en_bb : 1; // [11]
  403. uint32_t txpll_presc_ldo_fast_charge_en_bb : 1; // [12]
  404. uint32_t txpll_presc_ldo_en_bb : 1; // [13]
  405. uint32_t txpll_gro_ldo_en_bb : 1; // [14]
  406. uint32_t txpll_gro_ldo_bias_en_bb : 1; // [15]
  407. uint32_t __31_16 : 16; // [31:16]
  408. } b;
  409. } REG_RF_ANA_LDO_PU_CTRL_2_T;
  410. // trx_pu_0
  411. typedef union {
  412. uint32_t v;
  413. struct
  414. {
  415. uint32_t __11_0 : 12; // [11:0]
  416. uint32_t pu_xdrv_bb : 1; // [12]
  417. uint32_t mdll_startup_bb : 1; // [13]
  418. uint32_t pu_mdll_bb : 1; // [14]
  419. uint32_t pu_bg_bb : 1; // [15]
  420. uint32_t __31_16 : 16; // [31:16]
  421. } b;
  422. } REG_RF_ANA_TRX_PU_0_T;
  423. // trx_pu_1
  424. typedef union {
  425. uint32_t v;
  426. struct
  427. {
  428. uint32_t __5_0 : 6; // [5:0]
  429. uint32_t rxpll_rdac_rstn_bb : 1; // [6]
  430. uint32_t rxpll_gro_rstn_bb : 1; // [7]
  431. uint32_t pu_rxpll_rdac_bb : 1; // [8]
  432. uint32_t pu_rxpll_gro_bb : 1; // [9]
  433. uint32_t pu_rxpll_presc_bb : 1; // [10]
  434. uint32_t rxvco_pkdet_en_bb : 1; // [11]
  435. uint32_t rxvco_vcol_sel_bb : 1; // [12]
  436. uint32_t rxvco_vcoh_sel_bb : 1; // [13]
  437. uint32_t rxvco_ibias_en_bb : 1; // [14]
  438. uint32_t rxvco_bias_en_bb : 1; // [15]
  439. uint32_t __31_16 : 16; // [31:16]
  440. } b;
  441. } REG_RF_ANA_TRX_PU_1_T;
  442. // trx_pu_2
  443. typedef union {
  444. uint32_t v;
  445. struct
  446. {
  447. uint32_t __0_0 : 1; // [0]
  448. uint32_t adc_rstn_bb : 1; // [1]
  449. uint32_t adc_enh_bb : 1; // [2]
  450. uint32_t adc_clk_enh_bb : 1; // [3]
  451. uint32_t adc_ref_enh_bb : 1; // [4]
  452. uint32_t adc_bias_en_bb : 1; // [5]
  453. uint32_t pu_tia_bb : 1; // [6]
  454. uint32_t pu_rxmixer_bb : 1; // [7]
  455. uint32_t rxflt_en_bb : 1; // [8]
  456. uint32_t rxflt_rstn_bb : 1; // [9]
  457. uint32_t pu_rxflt_bb : 1; // [10]
  458. uint32_t pu_pga_bb : 1; // [11]
  459. uint32_t pga_pkd_en_bb : 1; // [12]
  460. uint32_t pga_en_bb : 1; // [13]
  461. uint32_t lna_pkd_en_bb : 1; // [14]
  462. uint32_t pu_lna_bb : 1; // [15]
  463. uint32_t __31_16 : 16; // [31:16]
  464. } b;
  465. } REG_RF_ANA_TRX_PU_2_T;
  466. // trx_pu_3
  467. typedef union {
  468. uint32_t v;
  469. struct
  470. {
  471. uint32_t __5_0 : 6; // [5:0]
  472. uint32_t txpll_rdac_rstn_bb : 1; // [6]
  473. uint32_t txpll_gro_rstn_bb : 1; // [7]
  474. uint32_t pu_txpll_rdac_bb : 1; // [8]
  475. uint32_t pu_txpll_gro_bb : 1; // [9]
  476. uint32_t pu_txpll_presc_bb : 1; // [10]
  477. uint32_t txvco_pkdet_en_bb : 1; // [11]
  478. uint32_t txvco_vcol_sel_bb : 1; // [12]
  479. uint32_t txvco_vcoh_sel_bb : 1; // [13]
  480. uint32_t txvco_ibias_en_bb : 1; // [14]
  481. uint32_t txvco_bias_en_bb : 1; // [15]
  482. uint32_t __31_16 : 16; // [31:16]
  483. } b;
  484. } REG_RF_ANA_TRX_PU_3_T;
  485. // trx_pu_4
  486. typedef union {
  487. uint32_t v;
  488. struct
  489. {
  490. uint32_t __0_0 : 1; // [0]
  491. uint32_t pwd_rstn_bb : 1; // [1]
  492. uint32_t pwdadc_enh_bb : 1; // [2]
  493. uint32_t pwdadc_clk_enh_bb : 1; // [3]
  494. uint32_t pwdadc_ref_enh_bb : 1; // [4]
  495. uint32_t pwdadc_bias_en_bb : 1; // [5]
  496. uint32_t pu_pwd_pga_bb : 1; // [6]
  497. uint32_t pwdadc_rstn_bb : 1; // [7]
  498. uint32_t pu_pwd_bb : 1; // [8]
  499. uint32_t txpad_en_bb : 1; // [9]
  500. uint32_t pu_txrf_bb : 1; // [10]
  501. uint32_t pu_txflt_bb : 1; // [11]
  502. uint32_t txmixer_en_bb : 1; // [12]
  503. uint32_t dac_rstn_bb : 1; // [13]
  504. uint32_t pu_dac_bb : 1; // [14]
  505. uint32_t txflt_rstn_bb : 1; // [15]
  506. uint32_t __31_16 : 16; // [31:16]
  507. } b;
  508. } REG_RF_ANA_TRX_PU_4_T;
  509. // trx_pu_5
  510. typedef union {
  511. uint32_t v;
  512. struct
  513. {
  514. uint32_t __11_0 : 12; // [11:0]
  515. uint32_t pu_dly_txrf_bb : 1; // [12]
  516. uint32_t pu_dly_txflt_bb : 1; // [13]
  517. uint32_t pu_dly_pwd_bb : 1; // [14]
  518. uint32_t __31_15 : 17; // [31:15]
  519. } b;
  520. } REG_RF_ANA_TRX_PU_5_T;
  521. // mdll_ctrl_0
  522. typedef union {
  523. uint32_t v;
  524. struct
  525. {
  526. uint32_t mdll_dither_mode_bb : 1; // [0]
  527. uint32_t mdll_cp_ibit_bb : 3; // [3:1]
  528. uint32_t mdll_dither_bit_bb : 3; // [6:4]
  529. uint32_t mdll_band_sel_bb : 1; // [7]
  530. uint32_t mdll_band_bit_bb : 3; // [10:8]
  531. uint32_t mdll_dither_en_bb : 1; // [11]
  532. uint32_t mdll_div_bit_bb : 4; // [15:12]
  533. uint32_t __31_16 : 16; // [31:16]
  534. } b;
  535. } REG_RF_ANA_MDLL_CTRL_0_T;
  536. // mdll_ctrl_1
  537. typedef union {
  538. uint32_t v;
  539. struct
  540. {
  541. uint32_t __6_0 : 7; // [6:0]
  542. uint32_t disable_refclk_txpll_bb : 1; // [7]
  543. uint32_t disable_refclk_rxpll_bb : 1; // [8]
  544. uint32_t mdll_vctrl_test_en_bb : 1; // [9]
  545. uint32_t mdll_refclk_test_en_bb : 1; // [10]
  546. uint32_t mdll_clk_divn_bb : 2; // [12:11]
  547. uint32_t mdll_regu_vcosel_bb : 3; // [15:13]
  548. uint32_t __31_16 : 16; // [31:16]
  549. } b;
  550. } REG_RF_ANA_MDLL_CTRL_1_T;
  551. // xtal_ctrl_0
  552. typedef union {
  553. uint32_t v;
  554. struct
  555. {
  556. uint32_t xtal26m_refpll_crf_en_bb : 1; // [0]
  557. uint32_t xtal_iptat_en_bb : 1; // [1]
  558. uint32_t __31_2 : 30; // [31:2]
  559. } b;
  560. } REG_RF_ANA_XTAL_CTRL_0_T;
  561. // rxvco_ldo_ctrl
  562. typedef union {
  563. uint32_t v;
  564. struct
  565. {
  566. uint32_t __5_0 : 6; // [5:0]
  567. uint32_t rxvco_ldo_trim_bb : 4; // [9:6]
  568. uint32_t rxvco_ldo_out_bb : 3; // [12:10]
  569. uint32_t rxvco_ldo_short_en_bb : 1; // [13]
  570. uint32_t rxvco_ldo_powermode_sel_bb : 1; // [14]
  571. uint32_t rxvco_ldo_vcomode_sel_bb : 1; // [15]
  572. uint32_t __31_16 : 16; // [31:16]
  573. } b;
  574. } REG_RF_ANA_RXVCO_LDO_CTRL_T;
  575. // rxvco_buf_ldo_ctrl
  576. typedef union {
  577. uint32_t v;
  578. struct
  579. {
  580. uint32_t __5_0 : 6; // [5:0]
  581. uint32_t rxvco_buf_ldo_trim_bb : 4; // [9:6]
  582. uint32_t rxvco_buf_ldo_out_bb : 3; // [12:10]
  583. uint32_t rxvco_buf_ldo_short_en_bb : 1; // [13]
  584. uint32_t rxvco_buf_ldo_powermode_sel_bb : 1; // [14]
  585. uint32_t rxvco_buf_ldo_vcomode_sel_bb : 1; // [15]
  586. uint32_t __31_16 : 16; // [31:16]
  587. } b;
  588. } REG_RF_ANA_RXVCO_BUF_LDO_CTRL_T;
  589. // rxvco_ctrl_0
  590. typedef union {
  591. uint32_t v;
  592. struct
  593. {
  594. uint32_t rxvco_var_reverse_bb : 1; // [0]
  595. uint32_t rxvco_varbias_vbsel_ptat_bb : 2; // [2:1]
  596. uint32_t rxvco_varbias_vbsel_ctat_bb : 2; // [4:3]
  597. uint32_t rxvco_varbias_rcsel_bb : 2; // [6:5]
  598. uint32_t rxvco_var_short_bb : 1; // [7]
  599. uint32_t rxvco_ktc_ptat_bb : 3; // [10:8]
  600. uint32_t rxvco_ktc_ctat_bb : 3; // [13:11]
  601. uint32_t rxvco_bias_sel_bb : 1; // [14]
  602. uint32_t rxvco_bias_extra_bb : 1; // [15]
  603. uint32_t __31_16 : 16; // [31:16]
  604. } b;
  605. } REG_RF_ANA_RXVCO_CTRL_0_T;
  606. // rxvco_ctrl_1
  607. typedef union {
  608. uint32_t v;
  609. struct
  610. {
  611. uint32_t __2_0 : 3; // [2:0]
  612. uint32_t rxvco_pkd_ref_ctrl_bb : 1; // [3]
  613. uint32_t rxvco_pkd_ref_bb : 3; // [6:4]
  614. uint32_t rxvco_pkd_pdt_bb : 3; // [9:7]
  615. uint32_t rxvco_vardif_bb : 3; // [12:10]
  616. uint32_t rxvco_varcom_bb : 3; // [15:13]
  617. uint32_t __31_16 : 16; // [31:16]
  618. } b;
  619. } REG_RF_ANA_RXVCO_CTRL_1_T;
  620. // rxvco_ctrl_2
  621. typedef union {
  622. uint32_t v;
  623. struct
  624. {
  625. uint32_t __8_0 : 9; // [8:0]
  626. uint32_t rxvco_lte_en_bb : 1; // [9]
  627. uint32_t rxvco_lcl_div2_bb : 1; // [10]
  628. uint32_t rxvco_lcl_div1_bb : 1; // [11]
  629. uint32_t rxvco_cm_sca_ctrl_bb : 4; // [15:12]
  630. uint32_t __31_16 : 16; // [31:16]
  631. } b;
  632. } REG_RF_ANA_RXVCO_CTRL_2_T;
  633. // rxpll_ldo_ctrl_0
  634. typedef union {
  635. uint32_t v;
  636. struct
  637. {
  638. uint32_t __0_0 : 1; // [0]
  639. uint32_t rxpll_gro_ldo_out_trim_bb : 2; // [2:1]
  640. uint32_t rxpll_gro_ldo_in_trim_bb : 4; // [6:3]
  641. uint32_t rxpll_presc_ldo_cripple_bb : 2; // [8:7]
  642. uint32_t rxpll_presc_ldo_out_bb : 3; // [11:9]
  643. uint32_t rxpll_presc_ldo_ref_trim_bb : 4; // [15:12]
  644. uint32_t __31_16 : 16; // [31:16]
  645. } b;
  646. } REG_RF_ANA_RXPLL_LDO_CTRL_0_T;
  647. // rxpll_ldo_ctrl_1
  648. typedef union {
  649. uint32_t v;
  650. struct
  651. {
  652. uint32_t __1_0 : 2; // [1:0]
  653. uint32_t rxpll_rdac_ldo_dig_cripple_bb : 2; // [3:2]
  654. uint32_t rxpll_rdac_ldo_dig_out_bb : 3; // [6:4]
  655. uint32_t rxpll_rdac_ldo_dig_ref_trim_bb : 4; // [10:7]
  656. uint32_t rxpll_gro_ldo_res_adjust_bb : 2; // [12:11]
  657. uint32_t rxpll_gro_ldo_cp_trim_bb : 3; // [15:13]
  658. uint32_t __31_16 : 16; // [31:16]
  659. } b;
  660. } REG_RF_ANA_RXPLL_LDO_CTRL_1_T;
  661. // rxpll_ldo_ctrl_2
  662. typedef union {
  663. uint32_t v;
  664. struct
  665. {
  666. uint32_t __2_0 : 3; // [2:0]
  667. uint32_t rxpll_fbdiv_vddres_bb : 3; // [5:3]
  668. uint32_t rxpll_rdac_ldo_vref_cripple_bb : 2; // [7:6]
  669. uint32_t rxpll_rdac_ldo_vref_out_bb : 4; // [11:8]
  670. uint32_t rxpll_rdac_ldo_vref_ref_trim_bb : 4; // [15:12]
  671. uint32_t __31_16 : 16; // [31:16]
  672. } b;
  673. } REG_RF_ANA_RXPLL_LDO_CTRL_2_T;
  674. // rxpll_gro_ctrl_0
  675. typedef union {
  676. uint32_t v;
  677. struct
  678. {
  679. uint32_t rxpll_gro_reg0_bb : 16; // [15:0]
  680. uint32_t __31_16 : 16; // [31:16]
  681. } b;
  682. } REG_RF_ANA_RXPLL_GRO_CTRL_0_T;
  683. // rxpll_gro_ctrl_1
  684. typedef union {
  685. uint32_t v;
  686. struct
  687. {
  688. uint32_t rxpll_gro_reg1_bb : 16; // [15:0]
  689. uint32_t __31_16 : 16; // [31:16]
  690. } b;
  691. } REG_RF_ANA_RXPLL_GRO_CTRL_1_T;
  692. // rxpll_gro_ctrl_2
  693. typedef union {
  694. uint32_t v;
  695. struct
  696. {
  697. uint32_t rxpll_gro_reg2_bb : 16; // [15:0]
  698. uint32_t __31_16 : 16; // [31:16]
  699. } b;
  700. } REG_RF_ANA_RXPLL_GRO_CTRL_2_T;
  701. // rxpll_gro_ctrl_3
  702. typedef union {
  703. uint32_t v;
  704. struct
  705. {
  706. uint32_t rxpll_gro_reg3_bb : 16; // [15:0]
  707. uint32_t __31_16 : 16; // [31:16]
  708. } b;
  709. } REG_RF_ANA_RXPLL_GRO_CTRL_3_T;
  710. // rxpll_ctrl_0
  711. typedef union {
  712. uint32_t v;
  713. struct
  714. {
  715. uint32_t __3_0 : 4; // [3:0]
  716. uint32_t rxpll_rdac_rcflt_r_bb : 3; // [6:4]
  717. uint32_t rxpll_open_en_bb : 1; // [7]
  718. uint32_t rxpll_sdmclk_sel_bb : 1; // [8]
  719. uint32_t rxpll_fbcsel_bit_bb : 3; // [11:9]
  720. uint32_t rxpll_rdac_clk_edgesel_bb : 1; // [12]
  721. uint32_t rxpll_rdac_vlow_selb_bb : 3; // [15:13]
  722. uint32_t __31_16 : 16; // [31:16]
  723. } b;
  724. } REG_RF_ANA_RXPLL_CTRL_0_T;
  725. // lna_sel_ctrl
  726. typedef union {
  727. uint32_t v;
  728. struct
  729. {
  730. uint32_t rxmixer_vco_selrx_bb : 1; // [0]
  731. uint32_t rxmixer_vco_sel5g_bb : 1; // [1]
  732. uint32_t en_lna_lte_l5_bb : 1; // [2]
  733. uint32_t en_lna_lte_l4_bb : 1; // [3]
  734. uint32_t en_lna_lte_l3_bb : 1; // [4]
  735. uint32_t en_lna_lte_l2_bb : 1; // [5]
  736. uint32_t en_lna_lte_l1_bb : 1; // [6]
  737. uint32_t en_lna_gnss_bb : 1; // [7]
  738. uint32_t en_lna_lte_m5_bb : 1; // [8]
  739. uint32_t en_lna_lte_m4_bb : 1; // [9]
  740. uint32_t en_lna_lte_m3_bb : 1; // [10]
  741. uint32_t en_lna_lte_m2_bb : 1; // [11]
  742. uint32_t en_lna_lte_m1_bb : 1; // [12]
  743. uint32_t en_lna_lte_h2_bb : 1; // [13]
  744. uint32_t en_lna_lte_h1_bb : 1; // [14]
  745. uint32_t en_lna_wifi_bb : 1; // [15]
  746. uint32_t __31_16 : 16; // [31:16]
  747. } b;
  748. } REG_RF_ANA_LNA_SEL_CTRL_T;
  749. // lna_ctrl
  750. typedef union {
  751. uint32_t v;
  752. struct
  753. {
  754. uint32_t __2_0 : 3; // [2:0]
  755. uint32_t lna_resf_en_bb : 1; // [3]
  756. uint32_t __5_4 : 2; // [5:4]
  757. uint32_t lna_gain0_bit_bb : 1; // [6]
  758. uint32_t lna_ldo_out_bb : 3; // [9:7]
  759. uint32_t lna_ldo_cp_tune_bb : 2; // [11:10]
  760. uint32_t lna_ldo_bypass_bb : 1; // [12]
  761. uint32_t lna_power_res_bit_bb : 3; // [15:13]
  762. uint32_t __31_16 : 16; // [31:16]
  763. } b;
  764. } REG_RF_ANA_LNA_CTRL_T;
  765. // lna_pkd_ctrl
  766. typedef union {
  767. uint32_t v;
  768. struct
  769. {
  770. uint32_t __2_0 : 3; // [2:0]
  771. uint32_t lna_in_capbank_bb : 3; // [5:3]
  772. uint32_t lna_pkd_ref_ctrl_bb : 1; // [6]
  773. uint32_t lna_pkd_ref_2_bb : 3; // [9:7]
  774. uint32_t lna_pkd_ref_1_bb : 3; // [12:10]
  775. uint32_t lna_pkd_pdt_bb : 3; // [15:13]
  776. uint32_t __31_16 : 16; // [31:16]
  777. } b;
  778. } REG_RF_ANA_LNA_PKD_CTRL_T;
  779. // rxmixer_ctrl
  780. typedef union {
  781. uint32_t v;
  782. struct
  783. {
  784. uint32_t __3_0 : 4; // [3:0]
  785. uint32_t lna_m3_capbank_bb : 3; // [6:4]
  786. uint32_t lna_h2_capbank_bb : 3; // [9:7]
  787. uint32_t tia_bypass_bb : 1; // [10]
  788. uint32_t tia_rin_bit_bb : 2; // [12:11]
  789. uint32_t rxmixer_lodc_lte_bit_bb : 2; // [14:13]
  790. uint32_t rxmixer_lodc_h_bb : 1; // [15]
  791. uint32_t __31_16 : 16; // [31:16]
  792. } b;
  793. } REG_RF_ANA_RXMIXER_CTRL_T;
  794. // pga_ctrl_0
  795. typedef union {
  796. uint32_t v;
  797. struct
  798. {
  799. uint32_t pga_op_millercn_bit_bb : 2; // [1:0]
  800. uint32_t pga_op_millercc_bit_bb : 2; // [3:2]
  801. uint32_t pga_rs_bit_bb : 5; // [8:4]
  802. uint32_t pga_i_bit_bb : 2; // [10:9]
  803. uint32_t rxabb_ldo_cp_tun_bb : 2; // [12:11]
  804. uint32_t rxabb_ldo_out_bb : 3; // [15:13]
  805. uint32_t __31_16 : 16; // [31:16]
  806. } b;
  807. } REG_RF_ANA_PGA_CTRL_0_T;
  808. // pga_ctrl_1
  809. typedef union {
  810. uint32_t v;
  811. struct
  812. {
  813. uint32_t pga_bw_tune_bit_bb : 3; // [2:0]
  814. uint32_t pga_c2nd_bit_bb : 2; // [4:3]
  815. uint32_t pga_rpre_bit_bb : 2; // [6:5]
  816. uint32_t pga_blk_mode_bb : 1; // [7]
  817. uint32_t pga_cf_bit_bb : 5; // [12:8]
  818. uint32_t pga_bw_mode_bb : 3; // [15:13]
  819. uint32_t __31_16 : 16; // [31:16]
  820. } b;
  821. } REG_RF_ANA_PGA_CTRL_1_T;
  822. // pga_ctrl_2
  823. typedef union {
  824. uint32_t v;
  825. struct
  826. {
  827. uint32_t pga_pkd_ref_ctrl_bb : 1; // [0]
  828. uint32_t pga_pkd_ref2_bb : 3; // [3:1]
  829. uint32_t pga_pkd_ref1_bb : 3; // [6:4]
  830. uint32_t pga_ctun_bit_bb : 9; // [15:7]
  831. uint32_t __31_16 : 16; // [31:16]
  832. } b;
  833. } REG_RF_ANA_PGA_CTRL_2_T;
  834. // pga_ctrl_3
  835. typedef union {
  836. uint32_t v;
  837. struct
  838. {
  839. uint32_t __4_0 : 5; // [4:0]
  840. uint32_t pga_cm_con_bb : 3; // [7:5]
  841. uint32_t rxabb_ldo_trim_bb : 4; // [11:8]
  842. uint32_t pga_pkd_ibias_sel_bb : 2; // [13:12]
  843. uint32_t pga_pkd_rctime_sel_bb : 2; // [15:14]
  844. uint32_t __31_16 : 16; // [31:16]
  845. } b;
  846. } REG_RF_ANA_PGA_CTRL_3_T;
  847. // rxabb_dccal_ctrl_0
  848. typedef union {
  849. uint32_t v;
  850. struct
  851. {
  852. uint32_t rx_dccal_q_bit_bb : 8; // [7:0]
  853. uint32_t rx_dccal_i_bit_bb : 8; // [15:8]
  854. uint32_t __31_16 : 16; // [31:16]
  855. } b;
  856. } REG_RF_ANA_RXABB_DCCAL_CTRL_0_T;
  857. // rxabb_dccal_ctrl_1
  858. typedef union {
  859. uint32_t v;
  860. struct
  861. {
  862. uint32_t __13_0 : 14; // [13:0]
  863. uint32_t rx_dccal_range_bit_bb : 2; // [15:14]
  864. uint32_t __31_16 : 16; // [31:16]
  865. } b;
  866. } REG_RF_ANA_RXABB_DCCAL_CTRL_1_T;
  867. // rxflt_ctrl_0
  868. typedef union {
  869. uint32_t v;
  870. struct
  871. {
  872. uint32_t __2_0 : 3; // [2:0]
  873. uint32_t rxflt_if_freq_bit_bb : 3; // [5:3]
  874. uint32_t rxflt_if_en_bb : 1; // [6]
  875. uint32_t rxflt_if_swap_bb : 1; // [7]
  876. uint32_t rxflt_bwtun_bit_bb : 4; // [11:8]
  877. uint32_t rxflt_bwmode_bit_bb : 3; // [14:12]
  878. uint32_t rxflt_aux_en_bb : 1; // [15]
  879. uint32_t __31_16 : 16; // [31:16]
  880. } b;
  881. } REG_RF_ANA_RXFLT_CTRL_0_T;
  882. // rxflt_ctrl_1
  883. typedef union {
  884. uint32_t v;
  885. struct
  886. {
  887. uint32_t __7_0 : 8; // [7:0]
  888. uint32_t rxflt_i_bit_bb : 2; // [9:8]
  889. uint32_t rxflt_op_millercn_bit_bb : 2; // [11:10]
  890. uint32_t rxflt_op_millercc_bit_bb : 2; // [13:12]
  891. uint32_t anti_kick_back_filter_bw_bb : 2; // [15:14]
  892. uint32_t __31_16 : 16; // [31:16]
  893. } b;
  894. } REG_RF_ANA_RXFLT_CTRL_1_T;
  895. // rxflt_ctrl_2
  896. typedef union {
  897. uint32_t v;
  898. struct
  899. {
  900. uint32_t __0_0 : 1; // [0]
  901. uint32_t rxflt_bwtun_c2_bb : 7; // [7:1]
  902. uint32_t rxflt_bwtun_c1_bb : 8; // [15:8]
  903. uint32_t __31_16 : 16; // [31:16]
  904. } b;
  905. } REG_RF_ANA_RXFLT_CTRL_2_T;
  906. // adc_ldo_ctrl
  907. typedef union {
  908. uint32_t v;
  909. struct
  910. {
  911. uint32_t __6_0 : 7; // [6:0]
  912. uint32_t adc_ldo_out_trim_bb : 2; // [8:7]
  913. uint32_t adc_ldo_in_trim_bb : 4; // [12:9]
  914. uint32_t adc_ldo_cp_trim_bb : 3; // [15:13]
  915. uint32_t __31_16 : 16; // [31:16]
  916. } b;
  917. } REG_RF_ANA_ADC_LDO_CTRL_T;
  918. // adc_ctrl_0
  919. typedef union {
  920. uint32_t v;
  921. struct
  922. {
  923. uint32_t adc_ns_enh_bb : 1; // [0]
  924. uint32_t adc_ns_charge_set_time_ctrl_bb : 2; // [2:1]
  925. uint32_t adc_msb_delay_ctrl_bb : 2; // [4:3]
  926. uint32_t adc_loop_delay_ctrl_bb : 4; // [8:5]
  927. uint32_t adc_en_latch_adjust_bb : 2; // [10:9]
  928. uint32_t adc_clkout_polarity_bb : 1; // [11]
  929. uint32_t adc_clk_vin_delay_ctrl_bb : 2; // [13:12]
  930. uint32_t adc_clk_rst_ctrl_bb : 2; // [15:14]
  931. uint32_t __31_16 : 16; // [31:16]
  932. } b;
  933. } REG_RF_ANA_ADC_CTRL_0_T;
  934. // adc_ctrl_1
  935. typedef union {
  936. uint32_t v;
  937. struct
  938. {
  939. uint32_t adc_os_code_0p25_i_bb : 1; // [0]
  940. uint32_t adc_os_code_0p5_i_bb : 1; // [1]
  941. uint32_t adc_os_code_i_bb : 5; // [6:2]
  942. uint32_t __7_7 : 1; // [7]
  943. uint32_t adc_os_code_0p25_q_bb : 1; // [8]
  944. uint32_t adc_os_code_0p5_q_bb : 1; // [9]
  945. uint32_t adc_os_code_q_bb : 5; // [14:10]
  946. uint32_t __31_15 : 17; // [31:15]
  947. } b;
  948. } REG_RF_ANA_ADC_CTRL_1_T;
  949. // adc_ctrl_2
  950. typedef union {
  951. uint32_t v;
  952. struct
  953. {
  954. uint32_t adc_input_os_vcm_ctrl_bb : 3; // [2:0]
  955. uint32_t adc_stb_ctrl_bb : 3; // [5:3]
  956. uint32_t adc_samp_hold_ctrl_bb : 2; // [7:6]
  957. uint32_t adc_residual_comp_en_bb : 1; // [8]
  958. uint32_t adc_res_adjust_bb : 2; // [10:9]
  959. uint32_t adc_os_cap_flow_q_bb : 1; // [11]
  960. uint32_t adc_os_cap_flow_i_bb : 1; // [12]
  961. uint32_t adc_ns_vcm_ctrl_bb : 3; // [15:13]
  962. uint32_t __31_16 : 16; // [31:16]
  963. } b;
  964. } REG_RF_ANA_ADC_CTRL_2_T;
  965. // adc_ctrl_3
  966. typedef union {
  967. uint32_t v;
  968. struct
  969. {
  970. uint32_t adc_input_short_bb : 1; // [0]
  971. uint32_t adc_ns_slap_ctrl_bb : 1; // [1]
  972. uint32_t __2_2 : 1; // [2]
  973. uint32_t adc_clk_sel_bb : 2; // [4:3]
  974. uint32_t adc_vrp_i_ctrl_bb : 4; // [8:5]
  975. uint32_t adc_vrp_ctrl_bb : 4; // [12:9]
  976. uint32_t adc_vcm_ctrl_bb : 3; // [15:13]
  977. uint32_t __31_16 : 16; // [31:16]
  978. } b;
  979. } REG_RF_ANA_ADC_CTRL_3_T;
  980. // pwdadc_ctrl_0
  981. typedef union {
  982. uint32_t v;
  983. struct
  984. {
  985. uint32_t pwdadc_ns_enh_bb : 1; // [0]
  986. uint32_t pwdadc_ns_charge_set_time_ctrl_bb : 2; // [2:1]
  987. uint32_t pwdadc_msb_delay_ctrl_bb : 2; // [4:3]
  988. uint32_t pwdadc_loop_delay_ctrl_bb : 4; // [8:5]
  989. uint32_t pwdadc_en_latch_adjust_bb : 2; // [10:9]
  990. uint32_t pwdadc_clkout_polarity_bb : 1; // [11]
  991. uint32_t pwdadc_clk_vin_delay_ctrl_bb : 2; // [13:12]
  992. uint32_t pwdadc_clk_rst_ctrl_bb : 2; // [15:14]
  993. uint32_t __31_16 : 16; // [31:16]
  994. } b;
  995. } REG_RF_ANA_PWDADC_CTRL_0_T;
  996. // pwdadc_ctrl_1
  997. typedef union {
  998. uint32_t v;
  999. struct
  1000. {
  1001. uint32_t pwdadc_input_short_bb : 1; // [0]
  1002. uint32_t pwdadc_os_code_i_bb : 5; // [5:1]
  1003. uint32_t pwdadc_os_code_0p25_q_bb : 1; // [6]
  1004. uint32_t pwdadc_os_code_0p25_i_bb : 1; // [7]
  1005. uint32_t pwdadc_os_code_0p5_q_bb : 1; // [8]
  1006. uint32_t pwdadc_os_code_0p5_i_bb : 1; // [9]
  1007. uint32_t pwdadc_os_cap_flow_q_bb : 1; // [10]
  1008. uint32_t pwdadc_os_cap_flow_i_bb : 1; // [11]
  1009. uint32_t pwdadc_ns_vcm_ctrl_bb : 3; // [14:12]
  1010. uint32_t pwdadc_ns_slap_ctrl_bb : 1; // [15]
  1011. uint32_t __31_16 : 16; // [31:16]
  1012. } b;
  1013. } REG_RF_ANA_PWDADC_CTRL_1_T;
  1014. // pwdadc_ctrl_2
  1015. typedef union {
  1016. uint32_t v;
  1017. struct
  1018. {
  1019. uint32_t __0_0 : 1; // [0]
  1020. uint32_t pwdadc_clk_sel_bb : 2; // [2:1]
  1021. uint32_t pwdadc_stb_ctrl_bb : 3; // [5:3]
  1022. uint32_t pwdadc_samp_hold_ctrl_bb : 2; // [7:6]
  1023. uint32_t pwdadc_residual_comp_en_bb : 1; // [8]
  1024. uint32_t pwdadc_res_adjust_bb : 2; // [10:9]
  1025. uint32_t pwdadc_os_code_q_bb : 5; // [15:11]
  1026. uint32_t __31_16 : 16; // [31:16]
  1027. } b;
  1028. } REG_RF_ANA_PWDADC_CTRL_2_T;
  1029. // pwdadc_ctrl_3
  1030. typedef union {
  1031. uint32_t v;
  1032. struct
  1033. {
  1034. uint32_t __1_0 : 2; // [1:0]
  1035. uint32_t pwdadc_input_os_vcm_ctrl_bb : 3; // [4:2]
  1036. uint32_t pwdadc_vrp_i_ctrl_bb : 4; // [8:5]
  1037. uint32_t pwdadc_vrp_ctrl_bb : 4; // [12:9]
  1038. uint32_t pwdadc_vcm_ctrl_bb : 3; // [15:13]
  1039. uint32_t __31_16 : 16; // [31:16]
  1040. } b;
  1041. } REG_RF_ANA_PWDADC_CTRL_3_T;
  1042. // rx_gain_ctrl
  1043. typedef union {
  1044. uint32_t v;
  1045. struct
  1046. {
  1047. uint32_t lna_resf_bit_bb : 3; // [2:0]
  1048. uint32_t rxflt_gain_bit_bb : 4; // [6:3]
  1049. uint32_t pga_gain_bit_bb : 2; // [8:7]
  1050. uint32_t lna_vbc_bit_bb : 3; // [11:9]
  1051. uint32_t lna_bias_bb : 2; // [13:12]
  1052. uint32_t lna_gain_bb : 2; // [15:14]
  1053. uint32_t __31_16 : 16; // [31:16]
  1054. } b;
  1055. } REG_RF_ANA_RX_GAIN_CTRL_T;
  1056. // rx_reserve1
  1057. typedef union {
  1058. uint32_t v;
  1059. struct
  1060. {
  1061. uint32_t rx_reserve1_bb : 16; // [15:0]
  1062. uint32_t __31_16 : 16; // [31:16]
  1063. } b;
  1064. } REG_RF_ANA_RX_RESERVE1_T;
  1065. // rx_reserve2
  1066. typedef union {
  1067. uint32_t v;
  1068. struct
  1069. {
  1070. uint32_t rx_reserve2_bb : 16; // [15:0]
  1071. uint32_t __31_16 : 16; // [31:16]
  1072. } b;
  1073. } REG_RF_ANA_RX_RESERVE2_T;
  1074. // rx_reserve3
  1075. typedef union {
  1076. uint32_t v;
  1077. struct
  1078. {
  1079. uint32_t rx_reserve3_bb : 16; // [15:0]
  1080. uint32_t __31_16 : 16; // [31:16]
  1081. } b;
  1082. } REG_RF_ANA_RX_RESERVE3_T;
  1083. // txvco_ldo_ctrl
  1084. typedef union {
  1085. uint32_t v;
  1086. struct
  1087. {
  1088. uint32_t __5_0 : 6; // [5:0]
  1089. uint32_t txvco_ldo_trim_bb : 4; // [9:6]
  1090. uint32_t txvco_ldo_out_bb : 3; // [12:10]
  1091. uint32_t txvco_ldo_short_en_bb : 1; // [13]
  1092. uint32_t txvco_ldo_powermode_sel_bb : 1; // [14]
  1093. uint32_t txvco_ldo_vcomode_sel_bb : 1; // [15]
  1094. uint32_t __31_16 : 16; // [31:16]
  1095. } b;
  1096. } REG_RF_ANA_TXVCO_LDO_CTRL_T;
  1097. // txvco_buf_ldo_ctrl
  1098. typedef union {
  1099. uint32_t v;
  1100. struct
  1101. {
  1102. uint32_t __5_0 : 6; // [5:0]
  1103. uint32_t txvcobuf_ldo_trim_bb : 4; // [9:6]
  1104. uint32_t txvcobuf_ldo_out_bb : 3; // [12:10]
  1105. uint32_t txvcobuf_ldo_short_en_bb : 1; // [13]
  1106. uint32_t txvcobuf_ldo_powermode_sel_bb : 1; // [14]
  1107. uint32_t txvcobuf_ldo_vcomode_sel_bb : 1; // [15]
  1108. uint32_t __31_16 : 16; // [31:16]
  1109. } b;
  1110. } REG_RF_ANA_TXVCO_BUF_LDO_CTRL_T;
  1111. // txvco_ctrl_0
  1112. typedef union {
  1113. uint32_t v;
  1114. struct
  1115. {
  1116. uint32_t txvco_var_reverse_bb : 1; // [0]
  1117. uint32_t txvco_varbias_vbsel_ptat_bb : 2; // [2:1]
  1118. uint32_t txvco_varbias_vbsel_ctat_bb : 2; // [4:3]
  1119. uint32_t txvco_varbias_rcsel_bb : 2; // [6:5]
  1120. uint32_t txvco_var_short_bb : 1; // [7]
  1121. uint32_t txvco_ktc_ptat_bb : 3; // [10:8]
  1122. uint32_t txvco_ktc_ctat_bb : 3; // [13:11]
  1123. uint32_t txvco_bias_sel_bb : 1; // [14]
  1124. uint32_t txvco_bias_extra_bb : 1; // [15]
  1125. uint32_t __31_16 : 16; // [31:16]
  1126. } b;
  1127. } REG_RF_ANA_TXVCO_CTRL_0_T;
  1128. // txvco_ctrl_1
  1129. typedef union {
  1130. uint32_t v;
  1131. struct
  1132. {
  1133. uint32_t __2_0 : 3; // [2:0]
  1134. uint32_t txvco_pkd_ref_ctrl_bb : 1; // [3]
  1135. uint32_t txvco_pkd_ref_bb : 3; // [6:4]
  1136. uint32_t txvco_pkd_pdt_bb : 3; // [9:7]
  1137. uint32_t txvco_vardif_bb : 3; // [12:10]
  1138. uint32_t txvco_varcom_bb : 3; // [15:13]
  1139. uint32_t __31_16 : 16; // [31:16]
  1140. } b;
  1141. } REG_RF_ANA_TXVCO_CTRL_1_T;
  1142. // txvco_ctrl_2
  1143. typedef union {
  1144. uint32_t v;
  1145. struct
  1146. {
  1147. uint32_t __0_0 : 1; // [0]
  1148. uint32_t txrfdiv_pwd_en_bb : 1; // [1]
  1149. uint32_t txrfdiv_lte_en_bb : 1; // [2]
  1150. uint32_t txrfdiv_div4_en_bb : 1; // [3]
  1151. uint32_t txrfdiv_div2_en_bb : 1; // [4]
  1152. uint32_t txvco_rx_div1_en_bb : 1; // [5]
  1153. uint32_t txvco_gnss_en_bb : 1; // [6]
  1154. uint32_t txvco_rxlte_en_bb : 1; // [7]
  1155. uint32_t txvco_tx_en_bb : 1; // [8]
  1156. uint32_t __9_9 : 1; // [9]
  1157. uint32_t txvco_lcl_div2_bb : 1; // [10]
  1158. uint32_t txvco_lcl_div1_bb : 1; // [11]
  1159. uint32_t txvco_cm_sca_ctrl_bb : 4; // [15:12]
  1160. uint32_t __31_16 : 16; // [31:16]
  1161. } b;
  1162. } REG_RF_ANA_TXVCO_CTRL_2_T;
  1163. // txpll_ldo_ctrl_0
  1164. typedef union {
  1165. uint32_t v;
  1166. struct
  1167. {
  1168. uint32_t __0_0 : 1; // [0]
  1169. uint32_t txpll_gro_ldo_out_trim_bb : 2; // [2:1]
  1170. uint32_t txpll_gro_ldo_in_trim_bb : 4; // [6:3]
  1171. uint32_t txpll_presc_ldo_cripple_bb : 2; // [8:7]
  1172. uint32_t txpll_presc_ldo_out_bb : 3; // [11:9]
  1173. uint32_t txpll_presc_ldo_ref_trim_bb : 4; // [15:12]
  1174. uint32_t __31_16 : 16; // [31:16]
  1175. } b;
  1176. } REG_RF_ANA_TXPLL_LDO_CTRL_0_T;
  1177. // txpll_ldo_ctrl_1
  1178. typedef union {
  1179. uint32_t v;
  1180. struct
  1181. {
  1182. uint32_t __1_0 : 2; // [1:0]
  1183. uint32_t txpll_rdac_ldo_dig_cripple_bb : 2; // [3:2]
  1184. uint32_t txpll_rdac_ldo_dig_out_bb : 3; // [6:4]
  1185. uint32_t txpll_rdac_ldo_dig_ref_trim_bb : 4; // [10:7]
  1186. uint32_t txpll_gro_ldo_res_adjust_bb : 2; // [12:11]
  1187. uint32_t txpll_gro_ldo_cp_trim_bb : 3; // [15:13]
  1188. uint32_t __31_16 : 16; // [31:16]
  1189. } b;
  1190. } REG_RF_ANA_TXPLL_LDO_CTRL_1_T;
  1191. // txpll_ldo_ctrl_2
  1192. typedef union {
  1193. uint32_t v;
  1194. struct
  1195. {
  1196. uint32_t __2_0 : 3; // [2:0]
  1197. uint32_t txpll_fbdiv_vddres_bb : 3; // [5:3]
  1198. uint32_t txpll_rdac_ldo_vref_cripple_bb : 2; // [7:6]
  1199. uint32_t txpll_rdac_ldo_vref_out_bb : 4; // [11:8]
  1200. uint32_t txpll_rdac_ldo_vref_ref_trim_bb : 4; // [15:12]
  1201. uint32_t __31_16 : 16; // [31:16]
  1202. } b;
  1203. } REG_RF_ANA_TXPLL_LDO_CTRL_2_T;
  1204. // txpll_gro_ctrl_0
  1205. typedef union {
  1206. uint32_t v;
  1207. struct
  1208. {
  1209. uint32_t txpll_gro_reg0_bb : 16; // [15:0]
  1210. uint32_t __31_16 : 16; // [31:16]
  1211. } b;
  1212. } REG_RF_ANA_TXPLL_GRO_CTRL_0_T;
  1213. // txpll_gro_ctrl_1
  1214. typedef union {
  1215. uint32_t v;
  1216. struct
  1217. {
  1218. uint32_t txpll_gro_reg1_bb : 16; // [15:0]
  1219. uint32_t __31_16 : 16; // [31:16]
  1220. } b;
  1221. } REG_RF_ANA_TXPLL_GRO_CTRL_1_T;
  1222. // txpll_gro_ctrl_2
  1223. typedef union {
  1224. uint32_t v;
  1225. struct
  1226. {
  1227. uint32_t txpll_gro_reg2_bb : 16; // [15:0]
  1228. uint32_t __31_16 : 16; // [31:16]
  1229. } b;
  1230. } REG_RF_ANA_TXPLL_GRO_CTRL_2_T;
  1231. // txpll_gro_ctrl_3
  1232. typedef union {
  1233. uint32_t v;
  1234. struct
  1235. {
  1236. uint32_t txpll_gro_reg3_bb : 16; // [15:0]
  1237. uint32_t __31_16 : 16; // [31:16]
  1238. } b;
  1239. } REG_RF_ANA_TXPLL_GRO_CTRL_3_T;
  1240. // txpll_ctrl_0
  1241. typedef union {
  1242. uint32_t v;
  1243. struct
  1244. {
  1245. uint32_t __3_0 : 4; // [3:0]
  1246. uint32_t txpll_rdac_rcflt_r_bb : 3; // [6:4]
  1247. uint32_t txpll_open_en_bb : 1; // [7]
  1248. uint32_t txpll_sdmclk_sel_bb : 1; // [8]
  1249. uint32_t txpll_fbcsel_bit_bb : 3; // [11:9]
  1250. uint32_t txpll_rdac_clk_edgesel_bb : 1; // [12]
  1251. uint32_t txpll_rdac_vlow_selb_bb : 3; // [15:13]
  1252. uint32_t __31_16 : 16; // [31:16]
  1253. } b;
  1254. } REG_RF_ANA_TXPLL_CTRL_0_T;
  1255. // txrf_gain
  1256. typedef union {
  1257. uint32_t v;
  1258. struct
  1259. {
  1260. uint32_t __0_0 : 1; // [0]
  1261. uint32_t txrf_gain3_bit_bb : 3; // [3:1]
  1262. uint32_t txrf_gain2_bit_bb : 5; // [8:4]
  1263. uint32_t txrf_gain1_bit_bb : 5; // [13:9]
  1264. uint32_t txflt_ph45_en_bb : 1; // [14]
  1265. uint32_t txrf_ph45_en_bb : 1; // [15]
  1266. uint32_t __31_16 : 16; // [31:16]
  1267. } b;
  1268. } REG_RF_ANA_TXRF_GAIN_T;
  1269. // txrf_gain_compensation
  1270. typedef union {
  1271. uint32_t v;
  1272. struct
  1273. {
  1274. uint32_t __0_0 : 1; // [0]
  1275. uint32_t txpad_bias_ibit_bb : 3; // [3:1]
  1276. uint32_t txrf_gain2c_n45_bit_bb : 4; // [7:4]
  1277. uint32_t txrf_gain2c_p45_bit_bb : 4; // [11:8]
  1278. uint32_t txrf_gain2c_bit_bb : 4; // [15:12]
  1279. uint32_t __31_16 : 16; // [31:16]
  1280. } b;
  1281. } REG_RF_ANA_TXRF_GAIN_COMPENSATION_T;
  1282. // txrf_gain_adj
  1283. typedef union {
  1284. uint32_t v;
  1285. struct
  1286. {
  1287. uint32_t __2_0 : 3; // [2:0]
  1288. uint32_t txrf_lb2_en_bb : 1; // [3]
  1289. uint32_t txrf_lb1_en_bb : 1; // [4]
  1290. uint32_t txrf_hb2_en_bb : 1; // [5]
  1291. uint32_t txrf_hb1_en_bb : 1; // [6]
  1292. uint32_t txrf_bandbalance_bit_bb : 2; // [8:7]
  1293. uint32_t txrf_en_bbload_bb : 1; // [9]
  1294. uint32_t txrf_sw_sel2_bb : 1; // [10]
  1295. uint32_t txrf_sw_sel1_bb : 1; // [11]
  1296. uint32_t txpad_cas_vbit_bb : 2; // [13:12]
  1297. uint32_t txpad_aux_vbit_bb : 2; // [15:14]
  1298. uint32_t __31_16 : 16; // [31:16]
  1299. } b;
  1300. } REG_RF_ANA_TXRF_GAIN_ADJ_T;
  1301. // txrf_matchcap
  1302. typedef union {
  1303. uint32_t v;
  1304. struct
  1305. {
  1306. uint32_t __4_0 : 5; // [4:0]
  1307. uint32_t txrf_mix_r2r_cbit_bb : 1; // [5]
  1308. uint32_t txrf_rcflt_rbit_bb : 2; // [7:6]
  1309. uint32_t txpad_deq_bit_bb : 2; // [9:8]
  1310. uint32_t txpad_cap_ulb_bit_bb : 2; // [11:10]
  1311. uint32_t txpad_cap_bit_bb : 4; // [15:12]
  1312. uint32_t __31_16 : 16; // [31:16]
  1313. } b;
  1314. } REG_RF_ANA_TXRF_MATCHCAP_T;
  1315. // txflt_ctrl_0
  1316. typedef union {
  1317. uint32_t v;
  1318. struct
  1319. {
  1320. uint32_t txflt_vcm_ref_bb : 3; // [2:0]
  1321. uint32_t txflt_ibias_bit_bb : 2; // [4:3]
  1322. uint32_t txflt_cn_bb : 2; // [6:5]
  1323. uint32_t txflt_cc_bb : 2; // [8:7]
  1324. uint32_t tx_dccal_clk_edgesel_bb : 1; // [9]
  1325. uint32_t tx_dccal_en_bb : 1; // [10]
  1326. uint32_t txflt_ldo_cp_tune_bb : 2; // [12:11]
  1327. uint32_t txflt_ldo_out_bb : 3; // [15:13]
  1328. uint32_t __31_16 : 16; // [31:16]
  1329. } b;
  1330. } REG_RF_ANA_TXFLT_CTRL_0_T;
  1331. // txflt_ctrl_1
  1332. typedef union {
  1333. uint32_t v;
  1334. struct
  1335. {
  1336. uint32_t txflt_buffer_ibit_bb : 2; // [1:0]
  1337. uint32_t txflt_bwtun_bit_bb : 8; // [9:2]
  1338. uint32_t txflt_bw_bit_bb : 3; // [12:10]
  1339. uint32_t txflt_testin_en_bb : 1; // [13]
  1340. uint32_t txflt_hp_bit_bb : 2; // [15:14]
  1341. uint32_t __31_16 : 16; // [31:16]
  1342. } b;
  1343. } REG_RF_ANA_TXFLT_CTRL_1_T;
  1344. // dac_ctrl_0
  1345. typedef union {
  1346. uint32_t v;
  1347. struct
  1348. {
  1349. uint32_t __2_0 : 3; // [2:0]
  1350. uint32_t dac_core_bit_bb : 3; // [5:3]
  1351. uint32_t dac_vhigh_bit_bb : 3; // [8:6]
  1352. uint32_t dac_clkedge_sel_bb : 1; // [9]
  1353. uint32_t dac_muxen_bit_bb : 2; // [11:10]
  1354. uint32_t dac_iout_en_bb : 1; // [12]
  1355. uint32_t dac_auxout_en_bb : 1; // [13]
  1356. uint32_t dac_range_bit_bb : 2; // [15:14]
  1357. uint32_t __31_16 : 16; // [31:16]
  1358. } b;
  1359. } REG_RF_ANA_DAC_CTRL_0_T;
  1360. // dac_ctrl_1
  1361. typedef union {
  1362. uint32_t v;
  1363. struct
  1364. {
  1365. uint32_t __0_0 : 1; // [0]
  1366. uint32_t dac_ldo_out_bb : 3; // [3:1]
  1367. uint32_t dac_ldo_cp_tune_bb : 2; // [5:4]
  1368. uint32_t dac_tia_opamp_fbcap_bit_bb : 2; // [7:6]
  1369. uint32_t dac_tia_cmo_bit_bb : 2; // [9:8]
  1370. uint32_t dac_tia_cmi_bit_bb : 2; // [11:10]
  1371. uint32_t __31_12 : 20; // [31:12]
  1372. } b;
  1373. } REG_RF_ANA_DAC_CTRL_1_T;
  1374. // gnss_clkgen_ctrl_0
  1375. typedef union {
  1376. uint32_t v;
  1377. struct
  1378. {
  1379. uint32_t gnss_clkgen_m4_clk_div_bb : 4; // [3:0]
  1380. uint32_t gnss_clkgen_m4_clk_bufsel_bb : 2; // [5:4]
  1381. uint32_t gnss_clkgen_adc_clk_out_vres_bb : 3; // [8:6]
  1382. uint32_t gnss_clkgen_adc_clk_out_div_bb : 5; // [13:9]
  1383. uint32_t gnss_clkgen_adc_clk_out_bufsel_bb : 2; // [15:14]
  1384. uint32_t __31_16 : 16; // [31:16]
  1385. } b;
  1386. } REG_RF_ANA_GNSS_CLKGEN_CTRL_0_T;
  1387. // gnss_clkgen_ctrl_1
  1388. typedef union {
  1389. uint32_t v;
  1390. struct
  1391. {
  1392. uint32_t __0_0 : 1; // [0]
  1393. uint32_t gnss_clkgen_tsx_adc_clk_bufsel_bb : 2; // [2:1]
  1394. uint32_t gnss_clkgen_pp_clk_vres_bb : 3; // [5:3]
  1395. uint32_t gnss_clkgen_pp_clk_div_bb : 5; // [10:6]
  1396. uint32_t gnss_clkgen_pp_clk_bufsel_bb : 2; // [12:11]
  1397. uint32_t gnss_clkgen_m4_clk_vres_bb : 3; // [15:13]
  1398. uint32_t __31_16 : 16; // [31:16]
  1399. } b;
  1400. } REG_RF_ANA_GNSS_CLKGEN_CTRL_1_T;
  1401. // gnss_clkgen_ctrl_2
  1402. typedef union {
  1403. uint32_t v;
  1404. struct
  1405. {
  1406. uint32_t gnss_clkgen_ana_adc_clk_div_bb : 7; // [6:0]
  1407. uint32_t gnss_clkgen_ana_adc_clk_bufsel_bb : 2; // [8:7]
  1408. uint32_t gnss_clkgen_tsx_adc_clk_vres_bb : 3; // [11:9]
  1409. uint32_t gnss_clkgen_tsx_adc_clk_div_bb : 4; // [15:12]
  1410. uint32_t __31_16 : 16; // [31:16]
  1411. } b;
  1412. } REG_RF_ANA_GNSS_CLKGEN_CTRL_2_T;
  1413. // gnss_clkgen_ctrl_3
  1414. typedef union {
  1415. uint32_t v;
  1416. struct
  1417. {
  1418. uint32_t __0_0 : 1; // [0]
  1419. uint32_t gnss_clkgen_m4_clk_frac_sel_bb : 1; // [1]
  1420. uint32_t gnss_clkgen_m4_clk_frac_divn_bb : 3; // [4:2]
  1421. uint32_t gnss_clkgen_m4_clk_frac_divf_bb : 3; // [7:5]
  1422. uint32_t gnss_clkgen_m4_clk_div_frac_en_bb : 1; // [8]
  1423. uint32_t gnss_clkgen_pp_clk_mux_bb : 2; // [10:9]
  1424. uint32_t gnss_clkgen_adc_clk_out_mux_bb : 2; // [12:11]
  1425. uint32_t gnss_clkgen_ana_adc_clk_vres_bb : 3; // [15:13]
  1426. uint32_t __31_16 : 16; // [31:16]
  1427. } b;
  1428. } REG_RF_ANA_GNSS_CLKGEN_CTRL_3_T;
  1429. // gnss_clkgen_ctrl_4
  1430. typedef union {
  1431. uint32_t v;
  1432. struct
  1433. {
  1434. uint32_t __5_0 : 6; // [5:0]
  1435. uint32_t gnss_clkgen_ana_adc_clk_en_bb : 1; // [6]
  1436. uint32_t gnss_clkgen_ana_adc_clk_div_en_bb : 1; // [7]
  1437. uint32_t gnss_clkgen_tsx_adc_clk_en_bb : 1; // [8]
  1438. uint32_t gnss_clkgen_tsx_adc_clk_div_en_bb : 1; // [9]
  1439. uint32_t gnss_clkgen_pp_clk_en_bb : 1; // [10]
  1440. uint32_t gnss_clkgen_pp_clk_div_en_bb : 1; // [11]
  1441. uint32_t gnss_clkgen_m4_clk_en_bb : 1; // [12]
  1442. uint32_t gnss_clkgen_m4_clk_div_en_bb : 1; // [13]
  1443. uint32_t gnss_clkgen_adc_clk_out_en_bb : 1; // [14]
  1444. uint32_t gnss_clkgen_adc_clk_out_div_en_bb : 1; // [15]
  1445. uint32_t __31_16 : 16; // [31:16]
  1446. } b;
  1447. } REG_RF_ANA_GNSS_CLKGEN_CTRL_4_T;
  1448. // rxflt_dccal
  1449. typedef union {
  1450. uint32_t v;
  1451. struct
  1452. {
  1453. uint32_t rxflt_dccal_q_bit_bb : 8; // [7:0]
  1454. uint32_t rxflt_dccal_i_bit_bb : 8; // [15:8]
  1455. uint32_t __31_16 : 16; // [31:16]
  1456. } b;
  1457. } REG_RF_ANA_RXFLT_DCCAL_T;
  1458. // tx_reserve_0
  1459. typedef union {
  1460. uint32_t v;
  1461. struct
  1462. {
  1463. uint32_t lte_tx_rsv_09_h_bb : 16; // [15:0]
  1464. uint32_t __31_16 : 16; // [31:16]
  1465. } b;
  1466. } REG_RF_ANA_TX_RESERVE_0_T;
  1467. // tx_reserve_1
  1468. typedef union {
  1469. uint32_t v;
  1470. struct
  1471. {
  1472. uint32_t lte_tx_rsv_18_bb : 8; // [7:0]
  1473. uint32_t lte_tx_rsv_09_l_bb : 8; // [15:8]
  1474. uint32_t __31_16 : 16; // [31:16]
  1475. } b;
  1476. } REG_RF_ANA_TX_RESERVE_1_T;
  1477. // pwd_ctrl_0
  1478. typedef union {
  1479. uint32_t v;
  1480. struct
  1481. {
  1482. uint32_t __2_0 : 3; // [2:0]
  1483. uint32_t pwd_pga_cc_bit_bb : 2; // [4:3]
  1484. uint32_t pwd_pga_cn_bit_bb : 2; // [6:5]
  1485. uint32_t pwd_pga_ldo_res_adj_bb : 2; // [8:7]
  1486. uint32_t pwd_mgain_bit_bb : 3; // [11:9]
  1487. uint32_t pwd_pga_res_bit_bb : 4; // [15:12]
  1488. uint32_t __31_16 : 16; // [31:16]
  1489. } b;
  1490. } REG_RF_ANA_PWD_CTRL_0_T;
  1491. // pwd_ctrl_1
  1492. typedef union {
  1493. uint32_t v;
  1494. struct
  1495. {
  1496. uint32_t __11_0 : 12; // [11:0]
  1497. uint32_t pwd_pga_cap_bit_bb : 4; // [15:12]
  1498. uint32_t __31_16 : 16; // [31:16]
  1499. } b;
  1500. } REG_RF_ANA_PWD_CTRL_1_T;
  1501. // pwd_ctrl_2
  1502. typedef union {
  1503. uint32_t v;
  1504. struct
  1505. {
  1506. uint32_t pwd_cal_q_en_bb : 1; // [0]
  1507. uint32_t pwd_cal_q_done_bb : 1; // [1]
  1508. uint32_t pwd_cal_q_bb : 6; // [7:2]
  1509. uint32_t pwd_cal_i_en_bb : 1; // [8]
  1510. uint32_t pwd_cal_i_done_bb : 1; // [9]
  1511. uint32_t pwd_cal_i_bb : 6; // [15:10]
  1512. uint32_t __31_16 : 16; // [31:16]
  1513. } b;
  1514. } REG_RF_ANA_PWD_CTRL_2_T;
  1515. // ts_ctrl_0
  1516. typedef union {
  1517. uint32_t v;
  1518. struct
  1519. {
  1520. uint32_t ts_adc_ibit_bb : 3; // [2:0]
  1521. uint32_t ts_refsel_bit_bb : 2; // [4:3]
  1522. uint32_t ts_div_bit_bb : 4; // [8:5]
  1523. uint32_t ts_chopper_en_bb : 1; // [9]
  1524. uint32_t ts_xtaltest_en_bb : 1; // [10]
  1525. uint32_t ts_pwdext_en_bb : 1; // [11]
  1526. uint32_t ts_pwdint_en_bb : 1; // [12]
  1527. uint32_t pu_ts_bb : 1; // [13]
  1528. uint32_t ts_ldo_fast_charge_en_bb : 1; // [14]
  1529. uint32_t ts_ldo_en_bb : 1; // [15]
  1530. uint32_t __31_16 : 16; // [31:16]
  1531. } b;
  1532. } REG_RF_ANA_TS_CTRL_0_T;
  1533. // ts_ctrl_1
  1534. typedef union {
  1535. uint32_t v;
  1536. struct
  1537. {
  1538. uint32_t ts_clk_divedge_sel_bb : 1; // [0]
  1539. uint32_t ts_clk_edgesel_bb : 1; // [1]
  1540. uint32_t ts_clksel_bit_bb : 2; // [3:2]
  1541. uint32_t ts_beta_en_bb : 1; // [4]
  1542. uint32_t ts_vbe_sdmbit_bb : 1; // [5]
  1543. uint32_t ts_testmode_en_bb : 1; // [6]
  1544. uint32_t ts_resetn_bb : 1; // [7]
  1545. uint32_t ts_vbe_bit_bb : 8; // [15:8]
  1546. uint32_t __31_16 : 16; // [31:16]
  1547. } b;
  1548. } REG_RF_ANA_TS_CTRL_1_T;
  1549. // ts_ctrl_2
  1550. typedef union {
  1551. uint32_t v;
  1552. struct
  1553. {
  1554. uint32_t __10_0 : 11; // [10:0]
  1555. uint32_t ts_ldo_out_bb : 3; // [13:11]
  1556. uint32_t ts_ldo_cp_tune_bb : 2; // [15:14]
  1557. uint32_t __31_16 : 16; // [31:16]
  1558. } b;
  1559. } REG_RF_ANA_TS_CTRL_2_T;
  1560. // cm_reserve1
  1561. typedef union {
  1562. uint32_t v;
  1563. struct
  1564. {
  1565. uint32_t cm_reserve1_bb : 16; // [15:0]
  1566. uint32_t __31_16 : 16; // [31:16]
  1567. } b;
  1568. } REG_RF_ANA_CM_RESERVE1_T;
  1569. // cm_reserve2
  1570. typedef union {
  1571. uint32_t v;
  1572. struct
  1573. {
  1574. uint32_t cm_reserve2_bb : 16; // [15:0]
  1575. uint32_t __31_16 : 16; // [31:16]
  1576. } b;
  1577. } REG_RF_ANA_CM_RESERVE2_T;
  1578. // cm_reserve3
  1579. typedef union {
  1580. uint32_t v;
  1581. struct
  1582. {
  1583. uint32_t cm_reserve3_bb : 16; // [15:0]
  1584. uint32_t __31_16 : 16; // [31:16]
  1585. } b;
  1586. } REG_RF_ANA_CM_RESERVE3_T;
  1587. // revid_reg
  1588. typedef union {
  1589. uint32_t v;
  1590. struct
  1591. {
  1592. uint32_t revid : 8; // [7:0], read only
  1593. uint32_t __31_8 : 24; // [31:8]
  1594. } b;
  1595. } REG_RF_ANA_REVID_REG_T;
  1596. // test_ctrl_0
  1597. typedef union {
  1598. uint32_t v;
  1599. struct
  1600. {
  1601. uint32_t rx_lo_test_en_bb : 1; // [0]
  1602. uint32_t rx_4g_test_en_bb : 1; // [1]
  1603. uint32_t rx_5g_test_en_bb : 1; // [2]
  1604. uint32_t test_txvco_en_bb : 1; // [3]
  1605. uint32_t test_ldoref_rxvcobuf_sw_en_bb : 1; // [4]
  1606. uint32_t test_ldoref_rxvco_sw_en_bb : 1; // [5]
  1607. uint32_t test_ldoref_rxabb_sw_en_bb : 1; // [6]
  1608. uint32_t test_ldoref_txvcobuf_sw_en_bb : 1; // [7]
  1609. uint32_t test_ldoref_txvco_sw_en_bb : 1; // [8]
  1610. uint32_t test_bg_cal_r_en_bb : 1; // [9]
  1611. uint32_t test_clk_mdll_sw_en_bb : 1; // [10]
  1612. uint32_t test_ldoref_adc_sw_en_bb : 1; // [11]
  1613. uint32_t test_mdll_vctrl_sw_en_bb : 1; // [12]
  1614. uint32_t pll_test_en_bb : 1; // [13]
  1615. uint32_t dac_out_en_bb : 1; // [14]
  1616. uint32_t tx_if_en_bb : 1; // [15]
  1617. uint32_t __31_16 : 16; // [31:16]
  1618. } b;
  1619. } REG_RF_ANA_TEST_CTRL_0_T;
  1620. // test_ctrl_1
  1621. typedef union {
  1622. uint32_t v;
  1623. struct
  1624. {
  1625. uint32_t __0_0 : 1; // [0]
  1626. uint32_t cal_rxiq_att_ctrl_bb : 5; // [5:1]
  1627. uint32_t cal_rxiq_div4_en_bb : 1; // [6]
  1628. uint32_t cal_rxiq_div2_en_bb : 1; // [7]
  1629. uint32_t test_iq_adcinput_sw_en_bb : 1; // [8]
  1630. uint32_t test_ldoref_txpll_rdac_sw_en_bb : 1; // [9]
  1631. uint32_t test_ldoref_rxpll_rdac_sw_en_bb : 1; // [10]
  1632. uint32_t test_vpa_ts_sw_en_bb : 1; // [11]
  1633. uint32_t test_vref_ts_sw_en_bb : 1; // [12]
  1634. uint32_t test_vr_ts_sw_en_bb : 1; // [13]
  1635. uint32_t test_vl_ts_sw_en_bb : 1; // [14]
  1636. uint32_t test_clk_ts_sw_en_bb : 1; // [15]
  1637. uint32_t __31_16 : 16; // [31:16]
  1638. } b;
  1639. } REG_RF_ANA_TEST_CTRL_1_T;
  1640. // cal_ctrl_0
  1641. typedef union {
  1642. uint32_t v;
  1643. struct
  1644. {
  1645. uint32_t cal_rxiq_att_adj_bb : 4; // [3:0]
  1646. uint32_t tx_ed_ibg_bb : 3; // [6:4]
  1647. uint32_t tx_ed_ibp_bb : 3; // [9:7]
  1648. uint32_t txpad_att_ctl_bb : 2; // [11:10]
  1649. uint32_t cal_rxiq_en_bb : 1; // [12]
  1650. uint32_t cal_rxiq_mix_sel_bb : 1; // [13]
  1651. uint32_t cal_txiq_en_bb : 1; // [14]
  1652. uint32_t cal_txiq_sel_bb : 1; // [15]
  1653. uint32_t __31_16 : 16; // [31:16]
  1654. } b;
  1655. } REG_RF_ANA_CAL_CTRL_0_T;
  1656. // rf_output_readonly_0
  1657. typedef union {
  1658. uint32_t v;
  1659. struct
  1660. {
  1661. uint32_t __5_0 : 6; // [5:0]
  1662. uint32_t txpll_lock_bb : 1; // [6], read only
  1663. uint32_t rxpll_lock_bb : 1; // [7], read only
  1664. uint32_t txvco_pkdet_out_bb : 1; // [8], read only
  1665. uint32_t rxvco_pkdet_out_bb : 1; // [9], read only
  1666. uint32_t pga_pkd_out_bb : 2; // [11:10], read only
  1667. uint32_t lna_pkd_out_2_bb : 1; // [12], read only
  1668. uint32_t lna_pkd_out_1_bb : 1; // [13], read only
  1669. uint32_t tx_dccal_outq_bb : 1; // [14], read only
  1670. uint32_t tx_dccal_outi_bb : 1; // [15], read only
  1671. uint32_t __31_16 : 16; // [31:16]
  1672. } b;
  1673. } REG_RF_ANA_RF_OUTPUT_READONLY_0_T;
  1674. // rf_output_readonly_1
  1675. typedef union {
  1676. uint32_t v;
  1677. struct
  1678. {
  1679. uint32_t __7_0 : 8; // [7:0]
  1680. uint32_t pwdadc_conv_done_q_wo_ns_bb : 1; // [8], read only
  1681. uint32_t pwdadc_conv_done_i_wo_ns_bb : 1; // [9], read only
  1682. uint32_t pwdadc_conv_done_q_wi_ns_bb : 1; // [10], read only
  1683. uint32_t pwdadc_conv_done_i_wi_ns_bb : 1; // [11], read only
  1684. uint32_t adc_conv_done_q_wo_ns_bb : 1; // [12], read only
  1685. uint32_t adc_conv_done_i_wo_ns_bb : 1; // [13], read only
  1686. uint32_t adc_conv_done_q_wi_ns_bb : 1; // [14], read only
  1687. uint32_t adc_conv_done_i_wi_ns_bb : 1; // [15], read only
  1688. uint32_t __31_16 : 16; // [31:16]
  1689. } b;
  1690. } REG_RF_ANA_RF_OUTPUT_READONLY_1_T;
  1691. // tsenadc_ctrl_0
  1692. typedef union {
  1693. uint32_t v;
  1694. struct
  1695. {
  1696. uint32_t rg_tsen_chop_clksel_bb : 2; // [1:0]
  1697. uint32_t __5_2 : 4; // [5:2]
  1698. uint32_t rg_tsen_adcldoref_bb : 5; // [10:6]
  1699. uint32_t rg_tsen_adcldo_v_bb : 4; // [14:11]
  1700. uint32_t rg_tsen_adcldo_en_bb : 1; // [15]
  1701. uint32_t __31_16 : 16; // [31:16]
  1702. } b;
  1703. } REG_RF_ANA_TSENADC_CTRL_0_T;
  1704. // tsenadc_ctrl_1
  1705. typedef union {
  1706. uint32_t v;
  1707. struct
  1708. {
  1709. uint32_t __7_0 : 8; // [7:0]
  1710. uint32_t rg_tsen_sdadc_en_bb : 1; // [8]
  1711. uint32_t rg_tsen_sdadc_data_edge_sel_bb : 1; // [9]
  1712. uint32_t rg_tsen_sdadc_chop_en_bb : 1; // [10]
  1713. uint32_t rg_tsen_sdadc_capchop_en_bb : 1; // [11]
  1714. uint32_t rg_tsen_sdadc_bias_bb : 2; // [13:12]
  1715. uint32_t rg_tsen_clksel_bb : 2; // [15:14]
  1716. uint32_t __31_16 : 16; // [31:16]
  1717. } b;
  1718. } REG_RF_ANA_TSENADC_CTRL_1_T;
  1719. // tsenadc_ctrl_2
  1720. typedef union {
  1721. uint32_t v;
  1722. struct
  1723. {
  1724. uint32_t __1_0 : 2; // [1:0]
  1725. uint32_t rg_tsen_ugbuf_ctrl_bb : 2; // [3:2]
  1726. uint32_t rg_tsen_ugbuf_chop_en_bb : 1; // [4]
  1727. uint32_t rg_tsen_ugbuf_bias_bb : 2; // [6:5]
  1728. uint32_t rg_tsen_test_clk_sel_bb : 1; // [7]
  1729. uint32_t rg_tsen_sdadc_vcmo_bb : 2; // [9:8]
  1730. uint32_t rg_tsen_sdadc_vcmi_bb : 2; // [11:10]
  1731. uint32_t rg_tsen_sdadc_ugbuf_en_bb : 1; // [12]
  1732. uint32_t rg_tsen_sdadc_rst_bb : 1; // [13]
  1733. uint32_t rg_tsen_sdadc_offset_en_bb : 1; // [14]
  1734. uint32_t rg_tsen_sdadc_input_en_bb : 1; // [15]
  1735. uint32_t __31_16 : 16; // [31:16]
  1736. } b;
  1737. } REG_RF_ANA_TSENADC_CTRL_2_T;
  1738. // apc_ctrl_0
  1739. typedef union {
  1740. uint32_t v;
  1741. struct
  1742. {
  1743. uint32_t __5_0 : 6; // [5:0]
  1744. uint32_t pu_ramp_dac_bb : 1; // [6]
  1745. uint32_t apc_pga_ibit_bb : 2; // [8:7]
  1746. uint32_t apc_lv_gain_bit_bb : 3; // [11:9]
  1747. uint32_t apc_hv_gain_bit_bb : 3; // [14:12]
  1748. uint32_t apc_bprc_bb : 1; // [15]
  1749. uint32_t __31_16 : 16; // [31:16]
  1750. } b;
  1751. } REG_RF_ANA_APC_CTRL_0_T;
  1752. // apc_ctrl_1
  1753. typedef union {
  1754. uint32_t v;
  1755. struct
  1756. {
  1757. uint32_t ramp_dac_din_bb : 10; // [9:0]
  1758. uint32_t __31_10 : 22; // [31:10]
  1759. } b;
  1760. } REG_RF_ANA_APC_CTRL_1_T;
  1761. // bandgap_ctrl_0
  1762. #define RF_ANA_LDO_LEVELSHIFTER_CP_TUNE(n) (((n)&0x3) << 7)
  1763. #define RF_ANA_LDO_LEVELSHIFTER_OUT(n) (((n)&0x7) << 9)
  1764. #define RF_ANA_BG_CAL_R_D_BB(n) (((n)&0xf) << 12)
  1765. // ldo_pu_ctrl_0
  1766. #define RF_ANA_PWDADC_LDO_EN_BB (1 << 4)
  1767. #define RF_ANA_PWDADC_LDO_BIAS_EN_BB (1 << 5)
  1768. #define RF_ANA_DAC_LDO_FC_PULSE_BB (1 << 6)
  1769. #define RF_ANA_DAC_LDO_EN_BB (1 << 7)
  1770. #define RF_ANA_TXFLT_LDO_FC_PULSE_BB (1 << 8)
  1771. #define RF_ANA_TXFLT_LDO_EN_BB (1 << 9)
  1772. #define RF_ANA_ADC_LDO_EN_BB (1 << 10)
  1773. #define RF_ANA_ADC_LDO_BIAS_EN_BB (1 << 11)
  1774. #define RF_ANA_RXABB_LDO_FC_PULSE_BB (1 << 12)
  1775. #define RF_ANA_RXABB_LDO_EN_BB (1 << 13)
  1776. #define RF_ANA_LNA_LDO_FAST_CHARGE_EN_BB (1 << 14)
  1777. #define RF_ANA_LNA_LDO_EN_IN_BB (1 << 15)
  1778. // ldo_pu_ctrl_1
  1779. #define RF_ANA_RXVCO_TC_FC_BB (1 << 1)
  1780. #define RF_ANA_RXVCO_TC_EN_BB (1 << 2)
  1781. #define RF_ANA_RXVCO_BUF_LDO_LOAD_BB (1 << 3)
  1782. #define RF_ANA_RXVCO_BUF_LDO_FC_BB (1 << 4)
  1783. #define RF_ANA_RXVCO_BUF_LDO_EN_BB (1 << 5)
  1784. #define RF_ANA_RXVCO_LDO_LOAD_BB (1 << 6)
  1785. #define RF_ANA_RXVCO_LDO_FC_BB (1 << 7)
  1786. #define RF_ANA_RXVCO_LDO_EN_BB (1 << 8)
  1787. #define RF_ANA_RXPLL_RDAC_LDO_VREF_FC_EN_BB (1 << 9)
  1788. #define RF_ANA_RXPLL_RDAC_LDO_VREF_EN_BB (1 << 10)
  1789. #define RF_ANA_RXPLL_RDAC_LDO_DIG_EN_BB (1 << 11)
  1790. #define RF_ANA_RXPLL_PRESC_LDO_FAST_CHARGE_EN_BB (1 << 12)
  1791. #define RF_ANA_RXPLL_PRESC_LDO_EN_BB (1 << 13)
  1792. #define RF_ANA_RXPLL_GRO_LDO_EN_BB (1 << 14)
  1793. #define RF_ANA_RXPLL_GRO_LDO_BIAS_EN_BB (1 << 15)
  1794. // ldo_pu_ctrl_2
  1795. #define RF_ANA_TXVCO_TC_FC_BB (1 << 1)
  1796. #define RF_ANA_TXVCO_TC_EN_BB (1 << 2)
  1797. #define RF_ANA_TXVCOBUF_LDO_LOAD_BB (1 << 3)
  1798. #define RF_ANA_TXVCOBUF_LDO_FC_BB (1 << 4)
  1799. #define RF_ANA_TXVCOBUF_LDO_EN_BB (1 << 5)
  1800. #define RF_ANA_TXVCO_LDO_LOAD_BB (1 << 6)
  1801. #define RF_ANA_TXVCO_LDO_FC_BB (1 << 7)
  1802. #define RF_ANA_TXVCO_LDO_EN_BB (1 << 8)
  1803. #define RF_ANA_TXPLL_RDAC_LDO_VREF_FC_EN_BB (1 << 9)
  1804. #define RF_ANA_TXPLL_RDAC_LDO_VREF_EN_BB (1 << 10)
  1805. #define RF_ANA_TXPLL_RDAC_LDO_DIG_EN_BB (1 << 11)
  1806. #define RF_ANA_TXPLL_PRESC_LDO_FAST_CHARGE_EN_BB (1 << 12)
  1807. #define RF_ANA_TXPLL_PRESC_LDO_EN_BB (1 << 13)
  1808. #define RF_ANA_TXPLL_GRO_LDO_EN_BB (1 << 14)
  1809. #define RF_ANA_TXPLL_GRO_LDO_BIAS_EN_BB (1 << 15)
  1810. // trx_pu_0
  1811. #define RF_ANA_PU_XDRV_BB (1 << 12)
  1812. #define RF_ANA_MDLL_STARTUP_BB (1 << 13)
  1813. #define RF_ANA_PU_MDLL_BB (1 << 14)
  1814. #define RF_ANA_PU_BG_BB (1 << 15)
  1815. // trx_pu_1
  1816. #define RF_ANA_RXPLL_RDAC_RSTN_BB (1 << 6)
  1817. #define RF_ANA_RXPLL_GRO_RSTN_BB (1 << 7)
  1818. #define RF_ANA_PU_RXPLL_RDAC_BB (1 << 8)
  1819. #define RF_ANA_PU_RXPLL_GRO_BB (1 << 9)
  1820. #define RF_ANA_PU_RXPLL_PRESC_BB (1 << 10)
  1821. #define RF_ANA_RXVCO_PKDET_EN_BB (1 << 11)
  1822. #define RF_ANA_RXVCO_VCOL_SEL_BB (1 << 12)
  1823. #define RF_ANA_RXVCO_VCOH_SEL_BB (1 << 13)
  1824. #define RF_ANA_RXVCO_IBIAS_EN_BB (1 << 14)
  1825. #define RF_ANA_RXVCO_BIAS_EN_BB (1 << 15)
  1826. // trx_pu_2
  1827. #define RF_ANA_ADC_RSTN_BB (1 << 1)
  1828. #define RF_ANA_ADC_ENH_BB (1 << 2)
  1829. #define RF_ANA_ADC_CLK_ENH_BB (1 << 3)
  1830. #define RF_ANA_ADC_REF_ENH_BB (1 << 4)
  1831. #define RF_ANA_ADC_BIAS_EN_BB (1 << 5)
  1832. #define RF_ANA_PU_TIA_BB (1 << 6)
  1833. #define RF_ANA_PU_RXMIXER_BB (1 << 7)
  1834. #define RF_ANA_RXFLT_EN_BB (1 << 8)
  1835. #define RF_ANA_RXFLT_RSTN_BB (1 << 9)
  1836. #define RF_ANA_PU_RXFLT_BB (1 << 10)
  1837. #define RF_ANA_PU_PGA_BB (1 << 11)
  1838. #define RF_ANA_PGA_PKD_EN_BB (1 << 12)
  1839. #define RF_ANA_PGA_EN_BB (1 << 13)
  1840. #define RF_ANA_LNA_PKD_EN_BB (1 << 14)
  1841. #define RF_ANA_PU_LNA_BB (1 << 15)
  1842. // trx_pu_3
  1843. #define RF_ANA_TXPLL_RDAC_RSTN_BB (1 << 6)
  1844. #define RF_ANA_TXPLL_GRO_RSTN_BB (1 << 7)
  1845. #define RF_ANA_PU_TXPLL_RDAC_BB (1 << 8)
  1846. #define RF_ANA_PU_TXPLL_GRO_BB (1 << 9)
  1847. #define RF_ANA_PU_TXPLL_PRESC_BB (1 << 10)
  1848. #define RF_ANA_TXVCO_PKDET_EN_BB (1 << 11)
  1849. #define RF_ANA_TXVCO_VCOL_SEL_BB (1 << 12)
  1850. #define RF_ANA_TXVCO_VCOH_SEL_BB (1 << 13)
  1851. #define RF_ANA_TXVCO_IBIAS_EN_BB (1 << 14)
  1852. #define RF_ANA_TXVCO_BIAS_EN_BB (1 << 15)
  1853. // trx_pu_4
  1854. #define RF_ANA_PWD_RSTN_BB (1 << 1)
  1855. #define RF_ANA_PWDADC_ENH_BB (1 << 2)
  1856. #define RF_ANA_PWDADC_CLK_ENH_BB (1 << 3)
  1857. #define RF_ANA_PWDADC_REF_ENH_BB (1 << 4)
  1858. #define RF_ANA_PWDADC_BIAS_EN_BB (1 << 5)
  1859. #define RF_ANA_PU_PWD_PGA_BB (1 << 6)
  1860. #define RF_ANA_PWDADC_RSTN_BB (1 << 7)
  1861. #define RF_ANA_PU_PWD_BB (1 << 8)
  1862. #define RF_ANA_TXPAD_EN_BB (1 << 9)
  1863. #define RF_ANA_PU_TXRF_BB (1 << 10)
  1864. #define RF_ANA_PU_TXFLT_BB (1 << 11)
  1865. #define RF_ANA_TXMIXER_EN_BB (1 << 12)
  1866. #define RF_ANA_DAC_RSTN_BB (1 << 13)
  1867. #define RF_ANA_PU_DAC_BB (1 << 14)
  1868. #define RF_ANA_TXFLT_RSTN_BB (1 << 15)
  1869. // trx_pu_5
  1870. #define RF_ANA_PU_DLY_TXRF_BB (1 << 12)
  1871. #define RF_ANA_PU_DLY_TXFLT_BB (1 << 13)
  1872. #define RF_ANA_PU_DLY_PWD_BB (1 << 14)
  1873. // mdll_ctrl_0
  1874. #define RF_ANA_MDLL_DITHER_MODE_BB (1 << 0)
  1875. #define RF_ANA_MDLL_CP_IBIT_BB(n) (((n)&0x7) << 1)
  1876. #define RF_ANA_MDLL_DITHER_BIT_BB(n) (((n)&0x7) << 4)
  1877. #define RF_ANA_MDLL_BAND_SEL_BB (1 << 7)
  1878. #define RF_ANA_MDLL_BAND_BIT_BB(n) (((n)&0x7) << 8)
  1879. #define RF_ANA_MDLL_DITHER_EN_BB (1 << 11)
  1880. #define RF_ANA_MDLL_DIV_BIT_BB(n) (((n)&0xf) << 12)
  1881. // mdll_ctrl_1
  1882. #define RF_ANA_DISABLE_REFCLK_TXPLL_BB (1 << 7)
  1883. #define RF_ANA_DISABLE_REFCLK_RXPLL_BB (1 << 8)
  1884. #define RF_ANA_MDLL_VCTRL_TEST_EN_BB (1 << 9)
  1885. #define RF_ANA_MDLL_REFCLK_TEST_EN_BB (1 << 10)
  1886. #define RF_ANA_MDLL_CLK_DIVN_BB(n) (((n)&0x3) << 11)
  1887. #define RF_ANA_MDLL_REGU_VCOSEL_BB(n) (((n)&0x7) << 13)
  1888. // xtal_ctrl_0
  1889. #define RF_ANA_XTAL26M_REFPLL_CRF_EN_BB (1 << 0)
  1890. #define RF_ANA_XTAL_IPTAT_EN_BB (1 << 1)
  1891. // rxvco_ldo_ctrl
  1892. #define RF_ANA_RXVCO_LDO_TRIM_BB(n) (((n)&0xf) << 6)
  1893. #define RF_ANA_RXVCO_LDO_OUT_BB(n) (((n)&0x7) << 10)
  1894. #define RF_ANA_RXVCO_LDO_SHORT_EN_BB (1 << 13)
  1895. #define RF_ANA_RXVCO_LDO_POWERMODE_SEL_BB (1 << 14)
  1896. #define RF_ANA_RXVCO_LDO_VCOMODE_SEL_BB (1 << 15)
  1897. // rxvco_buf_ldo_ctrl
  1898. #define RF_ANA_RXVCO_BUF_LDO_TRIM_BB(n) (((n)&0xf) << 6)
  1899. #define RF_ANA_RXVCO_BUF_LDO_OUT_BB(n) (((n)&0x7) << 10)
  1900. #define RF_ANA_RXVCO_BUF_LDO_SHORT_EN_BB (1 << 13)
  1901. #define RF_ANA_RXVCO_BUF_LDO_POWERMODE_SEL_BB (1 << 14)
  1902. #define RF_ANA_RXVCO_BUF_LDO_VCOMODE_SEL_BB (1 << 15)
  1903. // rxvco_ctrl_0
  1904. #define RF_ANA_RXVCO_VAR_REVERSE_BB (1 << 0)
  1905. #define RF_ANA_RXVCO_VARBIAS_VBSEL_PTAT_BB(n) (((n)&0x3) << 1)
  1906. #define RF_ANA_RXVCO_VARBIAS_VBSEL_CTAT_BB(n) (((n)&0x3) << 3)
  1907. #define RF_ANA_RXVCO_VARBIAS_RCSEL_BB(n) (((n)&0x3) << 5)
  1908. #define RF_ANA_RXVCO_VAR_SHORT_BB (1 << 7)
  1909. #define RF_ANA_RXVCO_KTC_PTAT_BB(n) (((n)&0x7) << 8)
  1910. #define RF_ANA_RXVCO_KTC_CTAT_BB(n) (((n)&0x7) << 11)
  1911. #define RF_ANA_RXVCO_BIAS_SEL_BB (1 << 14)
  1912. #define RF_ANA_RXVCO_BIAS_EXTRA_BB (1 << 15)
  1913. // rxvco_ctrl_1
  1914. #define RF_ANA_RXVCO_PKD_REF_CTRL_BB (1 << 3)
  1915. #define RF_ANA_RXVCO_PKD_REF_BB(n) (((n)&0x7) << 4)
  1916. #define RF_ANA_RXVCO_PKD_PDT_BB(n) (((n)&0x7) << 7)
  1917. #define RF_ANA_RXVCO_VARDIF_BB(n) (((n)&0x7) << 10)
  1918. #define RF_ANA_RXVCO_VARCOM_BB(n) (((n)&0x7) << 13)
  1919. // rxvco_ctrl_2
  1920. #define RF_ANA_RXVCO_LTE_EN_BB (1 << 9)
  1921. #define RF_ANA_RXVCO_LCL_DIV2_BB (1 << 10)
  1922. #define RF_ANA_RXVCO_LCL_DIV1_BB (1 << 11)
  1923. #define RF_ANA_RXVCO_CM_SCA_CTRL_BB(n) (((n)&0xf) << 12)
  1924. // rxpll_ldo_ctrl_0
  1925. #define RF_ANA_RXPLL_GRO_LDO_OUT_TRIM_BB(n) (((n)&0x3) << 1)
  1926. #define RF_ANA_RXPLL_GRO_LDO_IN_TRIM_BB(n) (((n)&0xf) << 3)
  1927. #define RF_ANA_RXPLL_PRESC_LDO_CRIPPLE_BB(n) (((n)&0x3) << 7)
  1928. #define RF_ANA_RXPLL_PRESC_LDO_OUT_BB(n) (((n)&0x7) << 9)
  1929. #define RF_ANA_RXPLL_PRESC_LDO_REF_TRIM_BB(n) (((n)&0xf) << 12)
  1930. // rxpll_ldo_ctrl_1
  1931. #define RF_ANA_RXPLL_RDAC_LDO_DIG_CRIPPLE_BB(n) (((n)&0x3) << 2)
  1932. #define RF_ANA_RXPLL_RDAC_LDO_DIG_OUT_BB(n) (((n)&0x7) << 4)
  1933. #define RF_ANA_RXPLL_RDAC_LDO_DIG_REF_TRIM_BB(n) (((n)&0xf) << 7)
  1934. #define RF_ANA_RXPLL_GRO_LDO_RES_ADJUST_BB(n) (((n)&0x3) << 11)
  1935. #define RF_ANA_RXPLL_GRO_LDO_CP_TRIM_BB(n) (((n)&0x7) << 13)
  1936. // rxpll_ldo_ctrl_2
  1937. #define RF_ANA_RXPLL_FBDIV_VDDRES_BB(n) (((n)&0x7) << 3)
  1938. #define RF_ANA_RXPLL_RDAC_LDO_VREF_CRIPPLE_BB(n) (((n)&0x3) << 6)
  1939. #define RF_ANA_RXPLL_RDAC_LDO_VREF_OUT_BB(n) (((n)&0xf) << 8)
  1940. #define RF_ANA_RXPLL_RDAC_LDO_VREF_REF_TRIM_BB(n) (((n)&0xf) << 12)
  1941. // rxpll_gro_ctrl_0
  1942. #define RF_ANA_RXPLL_GRO_REG0_BB(n) (((n)&0xffff) << 0)
  1943. // rxpll_gro_ctrl_1
  1944. #define RF_ANA_RXPLL_GRO_REG1_BB(n) (((n)&0xffff) << 0)
  1945. // rxpll_gro_ctrl_2
  1946. #define RF_ANA_RXPLL_GRO_REG2_BB(n) (((n)&0xffff) << 0)
  1947. // rxpll_gro_ctrl_3
  1948. #define RF_ANA_RXPLL_GRO_REG3_BB(n) (((n)&0xffff) << 0)
  1949. // rxpll_ctrl_0
  1950. #define RF_ANA_RXPLL_RDAC_RCFLT_R_BB(n) (((n)&0x7) << 4)
  1951. #define RF_ANA_RXPLL_OPEN_EN_BB (1 << 7)
  1952. #define RF_ANA_RXPLL_SDMCLK_SEL_BB (1 << 8)
  1953. #define RF_ANA_RXPLL_FBCSEL_BIT_BB(n) (((n)&0x7) << 9)
  1954. #define RF_ANA_RXPLL_RDAC_CLK_EDGESEL_BB (1 << 12)
  1955. #define RF_ANA_RXPLL_RDAC_VLOW_SELB_BB(n) (((n)&0x7) << 13)
  1956. // lna_sel_ctrl
  1957. #define RF_ANA_RXMIXER_VCO_SELRX_BB (1 << 0)
  1958. #define RF_ANA_RXMIXER_VCO_SEL5G_BB (1 << 1)
  1959. #define RF_ANA_EN_LNA_LTE_L5_BB (1 << 2)
  1960. #define RF_ANA_EN_LNA_LTE_L4_BB (1 << 3)
  1961. #define RF_ANA_EN_LNA_LTE_L3_BB (1 << 4)
  1962. #define RF_ANA_EN_LNA_LTE_L2_BB (1 << 5)
  1963. #define RF_ANA_EN_LNA_LTE_L1_BB (1 << 6)
  1964. #define RF_ANA_EN_LNA_GNSS_BB (1 << 7)
  1965. #define RF_ANA_EN_LNA_LTE_M5_BB (1 << 8)
  1966. #define RF_ANA_EN_LNA_LTE_M4_BB (1 << 9)
  1967. #define RF_ANA_EN_LNA_LTE_M3_BB (1 << 10)
  1968. #define RF_ANA_EN_LNA_LTE_M2_BB (1 << 11)
  1969. #define RF_ANA_EN_LNA_LTE_M1_BB (1 << 12)
  1970. #define RF_ANA_EN_LNA_LTE_H2_BB (1 << 13)
  1971. #define RF_ANA_EN_LNA_LTE_H1_BB (1 << 14)
  1972. #define RF_ANA_EN_LNA_WIFI_BB (1 << 15)
  1973. // lna_ctrl
  1974. #define RF_ANA_LNA_RESF_EN_BB (1 << 3)
  1975. #define RF_ANA_LNA_GAIN0_BIT_BB (1 << 6)
  1976. #define RF_ANA_LNA_LDO_OUT_BB(n) (((n)&0x7) << 7)
  1977. #define RF_ANA_LNA_LDO_CP_TUNE_BB(n) (((n)&0x3) << 10)
  1978. #define RF_ANA_LNA_LDO_BYPASS_BB (1 << 12)
  1979. #define RF_ANA_LNA_POWER_RES_BIT_BB(n) (((n)&0x7) << 13)
  1980. // lna_pkd_ctrl
  1981. #define RF_ANA_LNA_IN_CAPBANK_BB(n) (((n)&0x7) << 3)
  1982. #define RF_ANA_LNA_PKD_REF_CTRL_BB (1 << 6)
  1983. #define RF_ANA_LNA_PKD_REF_2_BB(n) (((n)&0x7) << 7)
  1984. #define RF_ANA_LNA_PKD_REF_1_BB(n) (((n)&0x7) << 10)
  1985. #define RF_ANA_LNA_PKD_PDT_BB(n) (((n)&0x7) << 13)
  1986. // rxmixer_ctrl
  1987. #define RF_ANA_LNA_M3_CAPBANK_BB(n) (((n)&0x7) << 4)
  1988. #define RF_ANA_LNA_H2_CAPBANK_BB(n) (((n)&0x7) << 7)
  1989. #define RF_ANA_TIA_BYPASS_BB (1 << 10)
  1990. #define RF_ANA_TIA_RIN_BIT_BB(n) (((n)&0x3) << 11)
  1991. #define RF_ANA_RXMIXER_LODC_LTE_BIT_BB(n) (((n)&0x3) << 13)
  1992. #define RF_ANA_RXMIXER_LODC_H_BB (1 << 15)
  1993. // pga_ctrl_0
  1994. #define RF_ANA_PGA_OP_MILLERCN_BIT_BB(n) (((n)&0x3) << 0)
  1995. #define RF_ANA_PGA_OP_MILLERCC_BIT_BB(n) (((n)&0x3) << 2)
  1996. #define RF_ANA_PGA_RS_BIT_BB(n) (((n)&0x1f) << 4)
  1997. #define RF_ANA_PGA_I_BIT_BB(n) (((n)&0x3) << 9)
  1998. #define RF_ANA_RXABB_LDO_CP_TUN_BB(n) (((n)&0x3) << 11)
  1999. #define RF_ANA_RXABB_LDO_OUT_BB(n) (((n)&0x7) << 13)
  2000. // pga_ctrl_1
  2001. #define RF_ANA_PGA_BW_TUNE_BIT_BB(n) (((n)&0x7) << 0)
  2002. #define RF_ANA_PGA_C2ND_BIT_BB(n) (((n)&0x3) << 3)
  2003. #define RF_ANA_PGA_RPRE_BIT_BB(n) (((n)&0x3) << 5)
  2004. #define RF_ANA_PGA_BLK_MODE_BB (1 << 7)
  2005. #define RF_ANA_PGA_CF_BIT_BB(n) (((n)&0x1f) << 8)
  2006. #define RF_ANA_PGA_BW_MODE_BB(n) (((n)&0x7) << 13)
  2007. // pga_ctrl_2
  2008. #define RF_ANA_PGA_PKD_REF_CTRL_BB (1 << 0)
  2009. #define RF_ANA_PGA_PKD_REF2_BB(n) (((n)&0x7) << 1)
  2010. #define RF_ANA_PGA_PKD_REF1_BB(n) (((n)&0x7) << 4)
  2011. #define RF_ANA_PGA_CTUN_BIT_BB(n) (((n)&0x1ff) << 7)
  2012. // pga_ctrl_3
  2013. #define RF_ANA_PGA_CM_CON_BB(n) (((n)&0x7) << 5)
  2014. #define RF_ANA_RXABB_LDO_TRIM_BB(n) (((n)&0xf) << 8)
  2015. #define RF_ANA_PGA_PKD_IBIAS_SEL_BB(n) (((n)&0x3) << 12)
  2016. #define RF_ANA_PGA_PKD_RCTIME_SEL_BB(n) (((n)&0x3) << 14)
  2017. // rxabb_dccal_ctrl_0
  2018. #define RF_ANA_RX_DCCAL_Q_BIT_BB(n) (((n)&0xff) << 0)
  2019. #define RF_ANA_RX_DCCAL_I_BIT_BB(n) (((n)&0xff) << 8)
  2020. // rxabb_dccal_ctrl_1
  2021. #define RF_ANA_RX_DCCAL_RANGE_BIT_BB(n) (((n)&0x3) << 14)
  2022. // rxflt_ctrl_0
  2023. #define RF_ANA_RXFLT_IF_FREQ_BIT_BB(n) (((n)&0x7) << 3)
  2024. #define RF_ANA_RXFLT_IF_EN_BB (1 << 6)
  2025. #define RF_ANA_RXFLT_IF_SWAP_BB (1 << 7)
  2026. #define RF_ANA_RXFLT_BWTUN_BIT_BB(n) (((n)&0xf) << 8)
  2027. #define RF_ANA_RXFLT_BWMODE_BIT_BB(n) (((n)&0x7) << 12)
  2028. #define RF_ANA_RXFLT_AUX_EN_BB (1 << 15)
  2029. // rxflt_ctrl_1
  2030. #define RF_ANA_RXFLT_I_BIT_BB(n) (((n)&0x3) << 8)
  2031. #define RF_ANA_RXFLT_OP_MILLERCN_BIT_BB(n) (((n)&0x3) << 10)
  2032. #define RF_ANA_RXFLT_OP_MILLERCC_BIT_BB(n) (((n)&0x3) << 12)
  2033. #define RF_ANA_ANTI_KICK_BACK_FILTER_BW_BB(n) (((n)&0x3) << 14)
  2034. // rxflt_ctrl_2
  2035. #define RF_ANA_RXFLT_BWTUN_C2_BB(n) (((n)&0x7f) << 1)
  2036. #define RF_ANA_RXFLT_BWTUN_C1_BB(n) (((n)&0xff) << 8)
  2037. // adc_ldo_ctrl
  2038. #define RF_ANA_ADC_LDO_OUT_TRIM_BB(n) (((n)&0x3) << 7)
  2039. #define RF_ANA_ADC_LDO_IN_TRIM_BB(n) (((n)&0xf) << 9)
  2040. #define RF_ANA_ADC_LDO_CP_TRIM_BB(n) (((n)&0x7) << 13)
  2041. // adc_ctrl_0
  2042. #define RF_ANA_ADC_NS_ENH_BB (1 << 0)
  2043. #define RF_ANA_ADC_NS_CHARGE_SET_TIME_CTRL_BB(n) (((n)&0x3) << 1)
  2044. #define RF_ANA_ADC_MSB_DELAY_CTRL_BB(n) (((n)&0x3) << 3)
  2045. #define RF_ANA_ADC_LOOP_DELAY_CTRL_BB(n) (((n)&0xf) << 5)
  2046. #define RF_ANA_ADC_EN_LATCH_ADJUST_BB(n) (((n)&0x3) << 9)
  2047. #define RF_ANA_ADC_CLKOUT_POLARITY_BB (1 << 11)
  2048. #define RF_ANA_ADC_CLK_VIN_DELAY_CTRL_BB(n) (((n)&0x3) << 12)
  2049. #define RF_ANA_ADC_CLK_RST_CTRL_BB(n) (((n)&0x3) << 14)
  2050. // adc_ctrl_1
  2051. #define RF_ANA_ADC_OS_CODE_0P25_I_BB (1 << 0)
  2052. #define RF_ANA_ADC_OS_CODE_0P5_I_BB (1 << 1)
  2053. #define RF_ANA_ADC_OS_CODE_I_BB(n) (((n)&0x1f) << 2)
  2054. #define RF_ANA_ADC_OS_CODE_0P25_Q_BB (1 << 8)
  2055. #define RF_ANA_ADC_OS_CODE_0P5_Q_BB (1 << 9)
  2056. #define RF_ANA_ADC_OS_CODE_Q_BB(n) (((n)&0x1f) << 10)
  2057. // adc_ctrl_2
  2058. #define RF_ANA_ADC_INPUT_OS_VCM_CTRL_BB(n) (((n)&0x7) << 0)
  2059. #define RF_ANA_ADC_STB_CTRL_BB(n) (((n)&0x7) << 3)
  2060. #define RF_ANA_ADC_SAMP_HOLD_CTRL_BB(n) (((n)&0x3) << 6)
  2061. #define RF_ANA_ADC_RESIDUAL_COMP_EN_BB (1 << 8)
  2062. #define RF_ANA_ADC_RES_ADJUST_BB(n) (((n)&0x3) << 9)
  2063. #define RF_ANA_ADC_OS_CAP_FLOW_Q_BB (1 << 11)
  2064. #define RF_ANA_ADC_OS_CAP_FLOW_I_BB (1 << 12)
  2065. #define RF_ANA_ADC_NS_VCM_CTRL_BB(n) (((n)&0x7) << 13)
  2066. // adc_ctrl_3
  2067. #define RF_ANA_ADC_INPUT_SHORT_BB (1 << 0)
  2068. #define RF_ANA_ADC_NS_SLAP_CTRL_BB (1 << 1)
  2069. #define RF_ANA_ADC_CLK_SEL_BB(n) (((n)&0x3) << 3)
  2070. #define RF_ANA_ADC_VRP_I_CTRL_BB(n) (((n)&0xf) << 5)
  2071. #define RF_ANA_ADC_VRP_CTRL_BB(n) (((n)&0xf) << 9)
  2072. #define RF_ANA_ADC_VCM_CTRL_BB(n) (((n)&0x7) << 13)
  2073. // pwdadc_ctrl_0
  2074. #define RF_ANA_PWDADC_NS_ENH_BB (1 << 0)
  2075. #define RF_ANA_PWDADC_NS_CHARGE_SET_TIME_CTRL_BB(n) (((n)&0x3) << 1)
  2076. #define RF_ANA_PWDADC_MSB_DELAY_CTRL_BB(n) (((n)&0x3) << 3)
  2077. #define RF_ANA_PWDADC_LOOP_DELAY_CTRL_BB(n) (((n)&0xf) << 5)
  2078. #define RF_ANA_PWDADC_EN_LATCH_ADJUST_BB(n) (((n)&0x3) << 9)
  2079. #define RF_ANA_PWDADC_CLKOUT_POLARITY_BB (1 << 11)
  2080. #define RF_ANA_PWDADC_CLK_VIN_DELAY_CTRL_BB(n) (((n)&0x3) << 12)
  2081. #define RF_ANA_PWDADC_CLK_RST_CTRL_BB(n) (((n)&0x3) << 14)
  2082. // pwdadc_ctrl_1
  2083. #define RF_ANA_PWDADC_INPUT_SHORT_BB (1 << 0)
  2084. #define RF_ANA_PWDADC_OS_CODE_I_BB(n) (((n)&0x1f) << 1)
  2085. #define RF_ANA_PWDADC_OS_CODE_0P25_Q_BB (1 << 6)
  2086. #define RF_ANA_PWDADC_OS_CODE_0P25_I_BB (1 << 7)
  2087. #define RF_ANA_PWDADC_OS_CODE_0P5_Q_BB (1 << 8)
  2088. #define RF_ANA_PWDADC_OS_CODE_0P5_I_BB (1 << 9)
  2089. #define RF_ANA_PWDADC_OS_CAP_FLOW_Q_BB (1 << 10)
  2090. #define RF_ANA_PWDADC_OS_CAP_FLOW_I_BB (1 << 11)
  2091. #define RF_ANA_PWDADC_NS_VCM_CTRL_BB(n) (((n)&0x7) << 12)
  2092. #define RF_ANA_PWDADC_NS_SLAP_CTRL_BB (1 << 15)
  2093. // pwdadc_ctrl_2
  2094. #define RF_ANA_PWDADC_CLK_SEL_BB(n) (((n)&0x3) << 1)
  2095. #define RF_ANA_PWDADC_STB_CTRL_BB(n) (((n)&0x7) << 3)
  2096. #define RF_ANA_PWDADC_SAMP_HOLD_CTRL_BB(n) (((n)&0x3) << 6)
  2097. #define RF_ANA_PWDADC_RESIDUAL_COMP_EN_BB (1 << 8)
  2098. #define RF_ANA_PWDADC_RES_ADJUST_BB(n) (((n)&0x3) << 9)
  2099. #define RF_ANA_PWDADC_OS_CODE_Q_BB(n) (((n)&0x1f) << 11)
  2100. // pwdadc_ctrl_3
  2101. #define RF_ANA_PWDADC_INPUT_OS_VCM_CTRL_BB(n) (((n)&0x7) << 2)
  2102. #define RF_ANA_PWDADC_VRP_I_CTRL_BB(n) (((n)&0xf) << 5)
  2103. #define RF_ANA_PWDADC_VRP_CTRL_BB(n) (((n)&0xf) << 9)
  2104. #define RF_ANA_PWDADC_VCM_CTRL_BB(n) (((n)&0x7) << 13)
  2105. // rx_gain_ctrl
  2106. #define RF_ANA_LNA_RESF_BIT_BB(n) (((n)&0x7) << 0)
  2107. #define RF_ANA_RXFLT_GAIN_BIT_BB(n) (((n)&0xf) << 3)
  2108. #define RF_ANA_PGA_GAIN_BIT_BB(n) (((n)&0x3) << 7)
  2109. #define RF_ANA_LNA_VBC_BIT_BB(n) (((n)&0x7) << 9)
  2110. #define RF_ANA_LNA_BIAS_BB(n) (((n)&0x3) << 12)
  2111. #define RF_ANA_LNA_GAIN_BB(n) (((n)&0x3) << 14)
  2112. // rx_reserve1
  2113. #define RF_ANA_RX_RESERVE1_BB(n) (((n)&0xffff) << 0)
  2114. // rx_reserve2
  2115. #define RF_ANA_RX_RESERVE2_BB(n) (((n)&0xffff) << 0)
  2116. // rx_reserve3
  2117. #define RF_ANA_RX_RESERVE3_BB(n) (((n)&0xffff) << 0)
  2118. // txvco_ldo_ctrl
  2119. #define RF_ANA_TXVCO_LDO_TRIM_BB(n) (((n)&0xf) << 6)
  2120. #define RF_ANA_TXVCO_LDO_OUT_BB(n) (((n)&0x7) << 10)
  2121. #define RF_ANA_TXVCO_LDO_SHORT_EN_BB (1 << 13)
  2122. #define RF_ANA_TXVCO_LDO_POWERMODE_SEL_BB (1 << 14)
  2123. #define RF_ANA_TXVCO_LDO_VCOMODE_SEL_BB (1 << 15)
  2124. // txvco_buf_ldo_ctrl
  2125. #define RF_ANA_TXVCOBUF_LDO_TRIM_BB(n) (((n)&0xf) << 6)
  2126. #define RF_ANA_TXVCOBUF_LDO_OUT_BB(n) (((n)&0x7) << 10)
  2127. #define RF_ANA_TXVCOBUF_LDO_SHORT_EN_BB (1 << 13)
  2128. #define RF_ANA_TXVCOBUF_LDO_POWERMODE_SEL_BB (1 << 14)
  2129. #define RF_ANA_TXVCOBUF_LDO_VCOMODE_SEL_BB (1 << 15)
  2130. // txvco_ctrl_0
  2131. #define RF_ANA_TXVCO_VAR_REVERSE_BB (1 << 0)
  2132. #define RF_ANA_TXVCO_VARBIAS_VBSEL_PTAT_BB(n) (((n)&0x3) << 1)
  2133. #define RF_ANA_TXVCO_VARBIAS_VBSEL_CTAT_BB(n) (((n)&0x3) << 3)
  2134. #define RF_ANA_TXVCO_VARBIAS_RCSEL_BB(n) (((n)&0x3) << 5)
  2135. #define RF_ANA_TXVCO_VAR_SHORT_BB (1 << 7)
  2136. #define RF_ANA_TXVCO_KTC_PTAT_BB(n) (((n)&0x7) << 8)
  2137. #define RF_ANA_TXVCO_KTC_CTAT_BB(n) (((n)&0x7) << 11)
  2138. #define RF_ANA_TXVCO_BIAS_SEL_BB (1 << 14)
  2139. #define RF_ANA_TXVCO_BIAS_EXTRA_BB (1 << 15)
  2140. // txvco_ctrl_1
  2141. #define RF_ANA_TXVCO_PKD_REF_CTRL_BB (1 << 3)
  2142. #define RF_ANA_TXVCO_PKD_REF_BB(n) (((n)&0x7) << 4)
  2143. #define RF_ANA_TXVCO_PKD_PDT_BB(n) (((n)&0x7) << 7)
  2144. #define RF_ANA_TXVCO_VARDIF_BB(n) (((n)&0x7) << 10)
  2145. #define RF_ANA_TXVCO_VARCOM_BB(n) (((n)&0x7) << 13)
  2146. // txvco_ctrl_2
  2147. #define RF_ANA_TXRFDIV_PWD_EN_BB (1 << 1)
  2148. #define RF_ANA_TXRFDIV_LTE_EN_BB (1 << 2)
  2149. #define RF_ANA_TXRFDIV_DIV4_EN_BB (1 << 3)
  2150. #define RF_ANA_TXRFDIV_DIV2_EN_BB (1 << 4)
  2151. #define RF_ANA_TXVCO_RX_DIV1_EN_BB (1 << 5)
  2152. #define RF_ANA_TXVCO_GNSS_EN_BB (1 << 6)
  2153. #define RF_ANA_TXVCO_RXLTE_EN_BB (1 << 7)
  2154. #define RF_ANA_TXVCO_TX_EN_BB (1 << 8)
  2155. #define RF_ANA_TXVCO_LCL_DIV2_BB (1 << 10)
  2156. #define RF_ANA_TXVCO_LCL_DIV1_BB (1 << 11)
  2157. #define RF_ANA_TXVCO_CM_SCA_CTRL_BB(n) (((n)&0xf) << 12)
  2158. // txpll_ldo_ctrl_0
  2159. #define RF_ANA_TXPLL_GRO_LDO_OUT_TRIM_BB(n) (((n)&0x3) << 1)
  2160. #define RF_ANA_TXPLL_GRO_LDO_IN_TRIM_BB(n) (((n)&0xf) << 3)
  2161. #define RF_ANA_TXPLL_PRESC_LDO_CRIPPLE_BB(n) (((n)&0x3) << 7)
  2162. #define RF_ANA_TXPLL_PRESC_LDO_OUT_BB(n) (((n)&0x7) << 9)
  2163. #define RF_ANA_TXPLL_PRESC_LDO_REF_TRIM_BB(n) (((n)&0xf) << 12)
  2164. // txpll_ldo_ctrl_1
  2165. #define RF_ANA_TXPLL_RDAC_LDO_DIG_CRIPPLE_BB(n) (((n)&0x3) << 2)
  2166. #define RF_ANA_TXPLL_RDAC_LDO_DIG_OUT_BB(n) (((n)&0x7) << 4)
  2167. #define RF_ANA_TXPLL_RDAC_LDO_DIG_REF_TRIM_BB(n) (((n)&0xf) << 7)
  2168. #define RF_ANA_TXPLL_GRO_LDO_RES_ADJUST_BB(n) (((n)&0x3) << 11)
  2169. #define RF_ANA_TXPLL_GRO_LDO_CP_TRIM_BB(n) (((n)&0x7) << 13)
  2170. // txpll_ldo_ctrl_2
  2171. #define RF_ANA_TXPLL_FBDIV_VDDRES_BB(n) (((n)&0x7) << 3)
  2172. #define RF_ANA_TXPLL_RDAC_LDO_VREF_CRIPPLE_BB(n) (((n)&0x3) << 6)
  2173. #define RF_ANA_TXPLL_RDAC_LDO_VREF_OUT_BB(n) (((n)&0xf) << 8)
  2174. #define RF_ANA_TXPLL_RDAC_LDO_VREF_REF_TRIM_BB(n) (((n)&0xf) << 12)
  2175. // txpll_gro_ctrl_0
  2176. #define RF_ANA_TXPLL_GRO_REG0_BB(n) (((n)&0xffff) << 0)
  2177. // txpll_gro_ctrl_1
  2178. #define RF_ANA_TXPLL_GRO_REG1_BB(n) (((n)&0xffff) << 0)
  2179. // txpll_gro_ctrl_2
  2180. #define RF_ANA_TXPLL_GRO_REG2_BB(n) (((n)&0xffff) << 0)
  2181. // txpll_gro_ctrl_3
  2182. #define RF_ANA_TXPLL_GRO_REG3_BB(n) (((n)&0xffff) << 0)
  2183. // txpll_ctrl_0
  2184. #define RF_ANA_TXPLL_RDAC_RCFLT_R_BB(n) (((n)&0x7) << 4)
  2185. #define RF_ANA_TXPLL_OPEN_EN_BB (1 << 7)
  2186. #define RF_ANA_TXPLL_SDMCLK_SEL_BB (1 << 8)
  2187. #define RF_ANA_TXPLL_FBCSEL_BIT_BB(n) (((n)&0x7) << 9)
  2188. #define RF_ANA_TXPLL_RDAC_CLK_EDGESEL_BB (1 << 12)
  2189. #define RF_ANA_TXPLL_RDAC_VLOW_SELB_BB(n) (((n)&0x7) << 13)
  2190. // txrf_gain
  2191. #define RF_ANA_TXRF_GAIN3_BIT_BB(n) (((n)&0x7) << 1)
  2192. #define RF_ANA_TXRF_GAIN2_BIT_BB(n) (((n)&0x1f) << 4)
  2193. #define RF_ANA_TXRF_GAIN1_BIT_BB(n) (((n)&0x1f) << 9)
  2194. #define RF_ANA_TXFLT_PH45_EN_BB (1 << 14)
  2195. #define RF_ANA_TXRF_PH45_EN_BB (1 << 15)
  2196. // txrf_gain_compensation
  2197. #define RF_ANA_TXPAD_BIAS_IBIT_BB(n) (((n)&0x7) << 1)
  2198. #define RF_ANA_TXRF_GAIN2C_N45_BIT_BB(n) (((n)&0xf) << 4)
  2199. #define RF_ANA_TXRF_GAIN2C_P45_BIT_BB(n) (((n)&0xf) << 8)
  2200. #define RF_ANA_TXRF_GAIN2C_BIT_BB(n) (((n)&0xf) << 12)
  2201. // txrf_gain_adj
  2202. #define RF_ANA_TXRF_LB2_EN_BB (1 << 3)
  2203. #define RF_ANA_TXRF_LB1_EN_BB (1 << 4)
  2204. #define RF_ANA_TXRF_HB2_EN_BB (1 << 5)
  2205. #define RF_ANA_TXRF_HB1_EN_BB (1 << 6)
  2206. #define RF_ANA_TXRF_BANDBALANCE_BIT_BB(n) (((n)&0x3) << 7)
  2207. #define RF_ANA_TXRF_EN_BBLOAD_BB (1 << 9)
  2208. #define RF_ANA_TXRF_SW_SEL2_BB (1 << 10)
  2209. #define RF_ANA_TXRF_SW_SEL1_BB (1 << 11)
  2210. #define RF_ANA_TXPAD_CAS_VBIT_BB(n) (((n)&0x3) << 12)
  2211. #define RF_ANA_TXPAD_AUX_VBIT_BB(n) (((n)&0x3) << 14)
  2212. // txrf_matchcap
  2213. #define RF_ANA_TXRF_MIX_R2R_CBIT_BB (1 << 5)
  2214. #define RF_ANA_TXRF_RCFLT_RBIT_BB(n) (((n)&0x3) << 6)
  2215. #define RF_ANA_TXPAD_DEQ_BIT_BB(n) (((n)&0x3) << 8)
  2216. #define RF_ANA_TXPAD_CAP_ULB_BIT_BB(n) (((n)&0x3) << 10)
  2217. #define RF_ANA_TXPAD_CAP_BIT_BB(n) (((n)&0xf) << 12)
  2218. // txflt_ctrl_0
  2219. #define RF_ANA_TXFLT_VCM_REF_BB(n) (((n)&0x7) << 0)
  2220. #define RF_ANA_TXFLT_IBIAS_BIT_BB(n) (((n)&0x3) << 3)
  2221. #define RF_ANA_TXFLT_CN_BB(n) (((n)&0x3) << 5)
  2222. #define RF_ANA_TXFLT_CC_BB(n) (((n)&0x3) << 7)
  2223. #define RF_ANA_TX_DCCAL_CLK_EDGESEL_BB (1 << 9)
  2224. #define RF_ANA_TX_DCCAL_EN_BB (1 << 10)
  2225. #define RF_ANA_TXFLT_LDO_CP_TUNE_BB(n) (((n)&0x3) << 11)
  2226. #define RF_ANA_TXFLT_LDO_OUT_BB(n) (((n)&0x7) << 13)
  2227. // txflt_ctrl_1
  2228. #define RF_ANA_TXFLT_BUFFER_IBIT_BB(n) (((n)&0x3) << 0)
  2229. #define RF_ANA_TXFLT_BWTUN_BIT_BB(n) (((n)&0xff) << 2)
  2230. #define RF_ANA_TXFLT_BW_BIT_BB(n) (((n)&0x7) << 10)
  2231. #define RF_ANA_TXFLT_TESTIN_EN_BB (1 << 13)
  2232. #define RF_ANA_TXFLT_HP_BIT_BB(n) (((n)&0x3) << 14)
  2233. // dac_ctrl_0
  2234. #define RF_ANA_DAC_CORE_BIT_BB(n) (((n)&0x7) << 3)
  2235. #define RF_ANA_DAC_VHIGH_BIT_BB(n) (((n)&0x7) << 6)
  2236. #define RF_ANA_DAC_CLKEDGE_SEL_BB (1 << 9)
  2237. #define RF_ANA_DAC_MUXEN_BIT_BB(n) (((n)&0x3) << 10)
  2238. #define RF_ANA_DAC_IOUT_EN_BB (1 << 12)
  2239. #define RF_ANA_DAC_AUXOUT_EN_BB (1 << 13)
  2240. #define RF_ANA_DAC_RANGE_BIT_BB(n) (((n)&0x3) << 14)
  2241. // dac_ctrl_1
  2242. #define RF_ANA_DAC_LDO_OUT_BB(n) (((n)&0x7) << 1)
  2243. #define RF_ANA_DAC_LDO_CP_TUNE_BB(n) (((n)&0x3) << 4)
  2244. #define RF_ANA_DAC_TIA_OPAMP_FBCAP_BIT_BB(n) (((n)&0x3) << 6)
  2245. #define RF_ANA_DAC_TIA_CMO_BIT_BB(n) (((n)&0x3) << 8)
  2246. #define RF_ANA_DAC_TIA_CMI_BIT_BB(n) (((n)&0x3) << 10)
  2247. // gnss_clkgen_ctrl_0
  2248. #define RF_ANA_GNSS_CLKGEN_M4_CLK_DIV_BB(n) (((n)&0xf) << 0)
  2249. #define RF_ANA_GNSS_CLKGEN_M4_CLK_BUFSEL_BB(n) (((n)&0x3) << 4)
  2250. #define RF_ANA_GNSS_CLKGEN_ADC_CLK_OUT_VRES_BB(n) (((n)&0x7) << 6)
  2251. #define RF_ANA_GNSS_CLKGEN_ADC_CLK_OUT_DIV_BB(n) (((n)&0x1f) << 9)
  2252. #define RF_ANA_GNSS_CLKGEN_ADC_CLK_OUT_BUFSEL_BB(n) (((n)&0x3) << 14)
  2253. // gnss_clkgen_ctrl_1
  2254. #define RF_ANA_GNSS_CLKGEN_TSX_ADC_CLK_BUFSEL_BB(n) (((n)&0x3) << 1)
  2255. #define RF_ANA_GNSS_CLKGEN_PP_CLK_VRES_BB(n) (((n)&0x7) << 3)
  2256. #define RF_ANA_GNSS_CLKGEN_PP_CLK_DIV_BB(n) (((n)&0x1f) << 6)
  2257. #define RF_ANA_GNSS_CLKGEN_PP_CLK_BUFSEL_BB(n) (((n)&0x3) << 11)
  2258. #define RF_ANA_GNSS_CLKGEN_M4_CLK_VRES_BB(n) (((n)&0x7) << 13)
  2259. // gnss_clkgen_ctrl_2
  2260. #define RF_ANA_GNSS_CLKGEN_ANA_ADC_CLK_DIV_BB(n) (((n)&0x7f) << 0)
  2261. #define RF_ANA_GNSS_CLKGEN_ANA_ADC_CLK_BUFSEL_BB(n) (((n)&0x3) << 7)
  2262. #define RF_ANA_GNSS_CLKGEN_TSX_ADC_CLK_VRES_BB(n) (((n)&0x7) << 9)
  2263. #define RF_ANA_GNSS_CLKGEN_TSX_ADC_CLK_DIV_BB(n) (((n)&0xf) << 12)
  2264. // gnss_clkgen_ctrl_3
  2265. #define RF_ANA_GNSS_CLKGEN_M4_CLK_FRAC_SEL_BB (1 << 1)
  2266. #define RF_ANA_GNSS_CLKGEN_M4_CLK_FRAC_DIVN_BB(n) (((n)&0x7) << 2)
  2267. #define RF_ANA_GNSS_CLKGEN_M4_CLK_FRAC_DIVF_BB(n) (((n)&0x7) << 5)
  2268. #define RF_ANA_GNSS_CLKGEN_M4_CLK_DIV_FRAC_EN_BB (1 << 8)
  2269. #define RF_ANA_GNSS_CLKGEN_PP_CLK_MUX_BB(n) (((n)&0x3) << 9)
  2270. #define RF_ANA_GNSS_CLKGEN_ADC_CLK_OUT_MUX_BB(n) (((n)&0x3) << 11)
  2271. #define RF_ANA_GNSS_CLKGEN_ANA_ADC_CLK_VRES_BB(n) (((n)&0x7) << 13)
  2272. // gnss_clkgen_ctrl_4
  2273. #define RF_ANA_GNSS_CLKGEN_ANA_ADC_CLK_EN_BB (1 << 6)
  2274. #define RF_ANA_GNSS_CLKGEN_ANA_ADC_CLK_DIV_EN_BB (1 << 7)
  2275. #define RF_ANA_GNSS_CLKGEN_TSX_ADC_CLK_EN_BB (1 << 8)
  2276. #define RF_ANA_GNSS_CLKGEN_TSX_ADC_CLK_DIV_EN_BB (1 << 9)
  2277. #define RF_ANA_GNSS_CLKGEN_PP_CLK_EN_BB (1 << 10)
  2278. #define RF_ANA_GNSS_CLKGEN_PP_CLK_DIV_EN_BB (1 << 11)
  2279. #define RF_ANA_GNSS_CLKGEN_M4_CLK_EN_BB (1 << 12)
  2280. #define RF_ANA_GNSS_CLKGEN_M4_CLK_DIV_EN_BB (1 << 13)
  2281. #define RF_ANA_GNSS_CLKGEN_ADC_CLK_OUT_EN_BB (1 << 14)
  2282. #define RF_ANA_GNSS_CLKGEN_ADC_CLK_OUT_DIV_EN_BB (1 << 15)
  2283. // rxflt_dccal
  2284. #define RF_ANA_RXFLT_DCCAL_Q_BIT_BB(n) (((n)&0xff) << 0)
  2285. #define RF_ANA_RXFLT_DCCAL_I_BIT_BB(n) (((n)&0xff) << 8)
  2286. // tx_reserve_0
  2287. #define RF_ANA_LTE_TX_RSV_09_H_BB(n) (((n)&0xffff) << 0)
  2288. // tx_reserve_1
  2289. #define RF_ANA_LTE_TX_RSV_18_BB(n) (((n)&0xff) << 0)
  2290. #define RF_ANA_LTE_TX_RSV_09_L_BB(n) (((n)&0xff) << 8)
  2291. // pwd_ctrl_0
  2292. #define RF_ANA_PWD_PGA_CC_BIT_BB(n) (((n)&0x3) << 3)
  2293. #define RF_ANA_PWD_PGA_CN_BIT_BB(n) (((n)&0x3) << 5)
  2294. #define RF_ANA_PWD_PGA_LDO_RES_ADJ_BB(n) (((n)&0x3) << 7)
  2295. #define RF_ANA_PWD_MGAIN_BIT_BB(n) (((n)&0x7) << 9)
  2296. #define RF_ANA_PWD_PGA_RES_BIT_BB(n) (((n)&0xf) << 12)
  2297. // pwd_ctrl_1
  2298. #define RF_ANA_PWD_PGA_CAP_BIT_BB(n) (((n)&0xf) << 12)
  2299. // pwd_ctrl_2
  2300. #define RF_ANA_PWD_CAL_Q_EN_BB (1 << 0)
  2301. #define RF_ANA_PWD_CAL_Q_DONE_BB (1 << 1)
  2302. #define RF_ANA_PWD_CAL_Q_BB(n) (((n)&0x3f) << 2)
  2303. #define RF_ANA_PWD_CAL_I_EN_BB (1 << 8)
  2304. #define RF_ANA_PWD_CAL_I_DONE_BB (1 << 9)
  2305. #define RF_ANA_PWD_CAL_I_BB(n) (((n)&0x3f) << 10)
  2306. // ts_ctrl_0
  2307. #define RF_ANA_TS_ADC_IBIT_BB(n) (((n)&0x7) << 0)
  2308. #define RF_ANA_TS_REFSEL_BIT_BB(n) (((n)&0x3) << 3)
  2309. #define RF_ANA_TS_DIV_BIT_BB(n) (((n)&0xf) << 5)
  2310. #define RF_ANA_TS_CHOPPER_EN_BB (1 << 9)
  2311. #define RF_ANA_TS_XTALTEST_EN_BB (1 << 10)
  2312. #define RF_ANA_TS_PWDEXT_EN_BB (1 << 11)
  2313. #define RF_ANA_TS_PWDINT_EN_BB (1 << 12)
  2314. #define RF_ANA_PU_TS_BB (1 << 13)
  2315. #define RF_ANA_TS_LDO_FAST_CHARGE_EN_BB (1 << 14)
  2316. #define RF_ANA_TS_LDO_EN_BB (1 << 15)
  2317. // ts_ctrl_1
  2318. #define RF_ANA_TS_CLK_DIVEDGE_SEL_BB (1 << 0)
  2319. #define RF_ANA_TS_CLK_EDGESEL_BB (1 << 1)
  2320. #define RF_ANA_TS_CLKSEL_BIT_BB(n) (((n)&0x3) << 2)
  2321. #define RF_ANA_TS_BETA_EN_BB (1 << 4)
  2322. #define RF_ANA_TS_VBE_SDMBIT_BB (1 << 5)
  2323. #define RF_ANA_TS_TESTMODE_EN_BB (1 << 6)
  2324. #define RF_ANA_TS_RESETN_BB (1 << 7)
  2325. #define RF_ANA_TS_VBE_BIT_BB(n) (((n)&0xff) << 8)
  2326. // ts_ctrl_2
  2327. #define RF_ANA_TS_LDO_OUT_BB(n) (((n)&0x7) << 11)
  2328. #define RF_ANA_TS_LDO_CP_TUNE_BB(n) (((n)&0x3) << 14)
  2329. // cm_reserve1
  2330. #define RF_ANA_CM_RESERVE1_BB(n) (((n)&0xffff) << 0)
  2331. // cm_reserve2
  2332. #define RF_ANA_CM_RESERVE2_BB(n) (((n)&0xffff) << 0)
  2333. // cm_reserve3
  2334. #define RF_ANA_CM_RESERVE3_BB(n) (((n)&0xffff) << 0)
  2335. // revid_reg
  2336. #define RF_ANA_REVID(n) (((n)&0xff) << 0)
  2337. // test_ctrl_0
  2338. #define RF_ANA_RX_LO_TEST_EN_BB (1 << 0)
  2339. #define RF_ANA_RX_4G_TEST_EN_BB (1 << 1)
  2340. #define RF_ANA_RX_5G_TEST_EN_BB (1 << 2)
  2341. #define RF_ANA_TEST_TXVCO_EN_BB (1 << 3)
  2342. #define RF_ANA_TEST_LDOREF_RXVCOBUF_SW_EN_BB (1 << 4)
  2343. #define RF_ANA_TEST_LDOREF_RXVCO_SW_EN_BB (1 << 5)
  2344. #define RF_ANA_TEST_LDOREF_RXABB_SW_EN_BB (1 << 6)
  2345. #define RF_ANA_TEST_LDOREF_TXVCOBUF_SW_EN_BB (1 << 7)
  2346. #define RF_ANA_TEST_LDOREF_TXVCO_SW_EN_BB (1 << 8)
  2347. #define RF_ANA_TEST_BG_CAL_R_EN_BB (1 << 9)
  2348. #define RF_ANA_TEST_CLK_MDLL_SW_EN_BB (1 << 10)
  2349. #define RF_ANA_TEST_LDOREF_ADC_SW_EN_BB (1 << 11)
  2350. #define RF_ANA_TEST_MDLL_VCTRL_SW_EN_BB (1 << 12)
  2351. #define RF_ANA_PLL_TEST_EN_BB (1 << 13)
  2352. #define RF_ANA_DAC_OUT_EN_BB (1 << 14)
  2353. #define RF_ANA_TX_IF_EN_BB (1 << 15)
  2354. // test_ctrl_1
  2355. #define RF_ANA_CAL_RXIQ_ATT_CTRL_BB(n) (((n)&0x1f) << 1)
  2356. #define RF_ANA_CAL_RXIQ_DIV4_EN_BB (1 << 6)
  2357. #define RF_ANA_CAL_RXIQ_DIV2_EN_BB (1 << 7)
  2358. #define RF_ANA_TEST_IQ_ADCINPUT_SW_EN_BB (1 << 8)
  2359. #define RF_ANA_TEST_LDOREF_TXPLL_RDAC_SW_EN_BB (1 << 9)
  2360. #define RF_ANA_TEST_LDOREF_RXPLL_RDAC_SW_EN_BB (1 << 10)
  2361. #define RF_ANA_TEST_VPA_TS_SW_EN_BB (1 << 11)
  2362. #define RF_ANA_TEST_VREF_TS_SW_EN_BB (1 << 12)
  2363. #define RF_ANA_TEST_VR_TS_SW_EN_BB (1 << 13)
  2364. #define RF_ANA_TEST_VL_TS_SW_EN_BB (1 << 14)
  2365. #define RF_ANA_TEST_CLK_TS_SW_EN_BB (1 << 15)
  2366. // cal_ctrl_0
  2367. #define RF_ANA_CAL_RXIQ_ATT_ADJ_BB(n) (((n)&0xf) << 0)
  2368. #define RF_ANA_TX_ED_IBG_BB(n) (((n)&0x7) << 4)
  2369. #define RF_ANA_TX_ED_IBP_BB(n) (((n)&0x7) << 7)
  2370. #define RF_ANA_TXPAD_ATT_CTL_BB(n) (((n)&0x3) << 10)
  2371. #define RF_ANA_CAL_RXIQ_EN_BB (1 << 12)
  2372. #define RF_ANA_CAL_RXIQ_MIX_SEL_BB (1 << 13)
  2373. #define RF_ANA_CAL_TXIQ_EN_BB (1 << 14)
  2374. #define RF_ANA_CAL_TXIQ_SEL_BB (1 << 15)
  2375. // rf_output_readonly_0
  2376. #define RF_ANA_TXPLL_LOCK_BB (1 << 6)
  2377. #define RF_ANA_RXPLL_LOCK_BB (1 << 7)
  2378. #define RF_ANA_TXVCO_PKDET_OUT_BB (1 << 8)
  2379. #define RF_ANA_RXVCO_PKDET_OUT_BB (1 << 9)
  2380. #define RF_ANA_PGA_PKD_OUT_BB(n) (((n)&0x3) << 10)
  2381. #define RF_ANA_LNA_PKD_OUT_2_BB (1 << 12)
  2382. #define RF_ANA_LNA_PKD_OUT_1_BB (1 << 13)
  2383. #define RF_ANA_TX_DCCAL_OUTQ_BB (1 << 14)
  2384. #define RF_ANA_TX_DCCAL_OUTI_BB (1 << 15)
  2385. // rf_output_readonly_1
  2386. #define RF_ANA_PWDADC_CONV_DONE_Q_WO_NS_BB (1 << 8)
  2387. #define RF_ANA_PWDADC_CONV_DONE_I_WO_NS_BB (1 << 9)
  2388. #define RF_ANA_PWDADC_CONV_DONE_Q_WI_NS_BB (1 << 10)
  2389. #define RF_ANA_PWDADC_CONV_DONE_I_WI_NS_BB (1 << 11)
  2390. #define RF_ANA_ADC_CONV_DONE_Q_WO_NS_BB (1 << 12)
  2391. #define RF_ANA_ADC_CONV_DONE_I_WO_NS_BB (1 << 13)
  2392. #define RF_ANA_ADC_CONV_DONE_Q_WI_NS_BB (1 << 14)
  2393. #define RF_ANA_ADC_CONV_DONE_I_WI_NS_BB (1 << 15)
  2394. // tsenadc_ctrl_0
  2395. #define RF_ANA_RG_TSEN_CHOP_CLKSEL_BB(n) (((n)&0x3) << 0)
  2396. #define RF_ANA_RG_TSEN_ADCLDOREF_BB(n) (((n)&0x1f) << 6)
  2397. #define RF_ANA_RG_TSEN_ADCLDO_V_BB(n) (((n)&0xf) << 11)
  2398. #define RF_ANA_RG_TSEN_ADCLDO_EN_BB (1 << 15)
  2399. // tsenadc_ctrl_1
  2400. #define RF_ANA_RG_TSEN_SDADC_EN_BB (1 << 8)
  2401. #define RF_ANA_RG_TSEN_SDADC_DATA_EDGE_SEL_BB (1 << 9)
  2402. #define RF_ANA_RG_TSEN_SDADC_CHOP_EN_BB (1 << 10)
  2403. #define RF_ANA_RG_TSEN_SDADC_CAPCHOP_EN_BB (1 << 11)
  2404. #define RF_ANA_RG_TSEN_SDADC_BIAS_BB(n) (((n)&0x3) << 12)
  2405. #define RF_ANA_RG_TSEN_CLKSEL_BB(n) (((n)&0x3) << 14)
  2406. // tsenadc_ctrl_2
  2407. #define RF_ANA_RG_TSEN_UGBUF_CTRL_BB(n) (((n)&0x3) << 2)
  2408. #define RF_ANA_RG_TSEN_UGBUF_CHOP_EN_BB (1 << 4)
  2409. #define RF_ANA_RG_TSEN_UGBUF_BIAS_BB(n) (((n)&0x3) << 5)
  2410. #define RF_ANA_RG_TSEN_TEST_CLK_SEL_BB (1 << 7)
  2411. #define RF_ANA_RG_TSEN_SDADC_VCMO_BB(n) (((n)&0x3) << 8)
  2412. #define RF_ANA_RG_TSEN_SDADC_VCMI_BB(n) (((n)&0x3) << 10)
  2413. #define RF_ANA_RG_TSEN_SDADC_UGBUF_EN_BB (1 << 12)
  2414. #define RF_ANA_RG_TSEN_SDADC_RST_BB (1 << 13)
  2415. #define RF_ANA_RG_TSEN_SDADC_OFFSET_EN_BB (1 << 14)
  2416. #define RF_ANA_RG_TSEN_SDADC_INPUT_EN_BB (1 << 15)
  2417. // apc_ctrl_0
  2418. #define RF_ANA_PU_RAMP_DAC_BB (1 << 6)
  2419. #define RF_ANA_APC_PGA_IBIT_BB(n) (((n)&0x3) << 7)
  2420. #define RF_ANA_APC_LV_GAIN_BIT_BB(n) (((n)&0x7) << 9)
  2421. #define RF_ANA_APC_HV_GAIN_BIT_BB(n) (((n)&0x7) << 12)
  2422. #define RF_ANA_APC_BPRC_BB (1 << 15)
  2423. // apc_ctrl_1
  2424. #define RF_ANA_RAMP_DAC_DIN_BB(n) (((n)&0x3ff) << 0)
  2425. #endif // _RF_ANA_H_