psram_phy.h 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134
  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 _PSRAM_PHY_H_
  13. #define _PSRAM_PHY_H_
  14. // Auto generated by dtools(see dtools.txt for its version).
  15. // Don't edit it manually!
  16. #define REG_PSRAM_PHY_BASE (0x51601000)
  17. typedef volatile struct
  18. {
  19. uint32_t psram_rf_cfg_phy; // 0x00000000
  20. uint32_t psram_rf_cfg_clock_gate; // 0x00000004
  21. uint32_t psram_rf_cfg_lpi; // 0x00000008
  22. uint32_t psram_rf_cfg_psram_type; // 0x0000000c
  23. uint32_t psram_rf_wb_mrw_data; // 0x00000010
  24. uint32_t __20[59]; // 0x00000014
  25. uint32_t psram_rfdll_cfg_dll; // 0x00000100
  26. uint32_t psram_rfdll_status_cpst_idle; // 0x00000104
  27. uint32_t psram_rf_status_phy_data_in; // 0x00000108
  28. uint32_t __268[61]; // 0x0000010c
  29. uint32_t psram_rf_cfg_dll_ads0; // 0x00000200
  30. uint32_t psram_rfdll_status_dll_ads0; // 0x00000204
  31. uint32_t psram_rf_cfg_dll_dl_0_wr_ads0; // 0x00000208
  32. uint32_t psram_rf_cfg_dll_dl_1_wr_ads0; // 0x0000020c
  33. uint32_t psram_rf_cfg_dll_dl_2_wr_ads0; // 0x00000210
  34. uint32_t psram_rf_cfg_dll_dl_3_wr_ads0; // 0x00000214
  35. uint32_t psram_rf_cfg_dll_dl_4_wr_ads0; // 0x00000218
  36. uint32_t psram_rf_cfg_dll_dl_5_wr_ads0; // 0x0000021c
  37. uint32_t psram_rf_cfg_dll_dl_6_wr_ads0; // 0x00000220
  38. uint32_t psram_rf_cfg_dll_dl_7_wr_ads0; // 0x00000224
  39. uint32_t psram_rf_cfg_dll_dl_8_wr_ads0; // 0x00000228
  40. uint32_t psram_rf_cfg_dll_dl_9_wr_ads0; // 0x0000022c
  41. uint32_t psram_rfdll_status_max_cnt_ads0; // 0x00000230
  42. uint32_t psram_rfdll_status_min_cnt_ads0; // 0x00000234
  43. uint32_t psram_rf_cfg_phy_iomux_sel_wr_ads0; // 0x00000238
  44. uint32_t psram_rf_cfg_phy_iomux_ie_wr_ads0; // 0x0000023c
  45. uint32_t psram_rf_cfg_phy_iomux_oe_wr_ads0; // 0x00000240
  46. uint32_t psram_rf_cfg_phy_iomux_out_wr_ads0; // 0x00000244
  47. uint32_t __584[46]; // 0x00000248
  48. uint32_t psram_rf_cfg_dll_ads1; // 0x00000300
  49. uint32_t psram_rfdll_status_dll_ads1; // 0x00000304
  50. uint32_t psram_rf_cfg_dll_dl_0_wr_ads1; // 0x00000308
  51. uint32_t psram_rf_cfg_dll_dl_1_wr_ads1; // 0x0000030c
  52. uint32_t psram_rf_cfg_dll_dl_2_wr_ads1; // 0x00000310
  53. uint32_t psram_rf_cfg_dll_dl_3_wr_ads1; // 0x00000314
  54. uint32_t psram_rf_cfg_dll_dl_4_wr_ads1; // 0x00000318
  55. uint32_t psram_rf_cfg_dll_dl_5_wr_ads1; // 0x0000031c
  56. uint32_t psram_rf_cfg_dll_dl_6_wr_ads1; // 0x00000320
  57. uint32_t psram_rf_cfg_dll_dl_7_wr_ads1; // 0x00000324
  58. uint32_t psram_rf_cfg_dll_dl_8_wr_ads1; // 0x00000328
  59. uint32_t psram_rf_cfg_dll_dl_9_wr_ads1; // 0x0000032c
  60. uint32_t psram_rfdll_status_max_cnt_ads1; // 0x00000330
  61. uint32_t psram_rfdll_status_min_cnt_ads1; // 0x00000334
  62. uint32_t psram_rf_cfg_phy_iomux_sel_wr_ads1; // 0x00000338
  63. uint32_t psram_rf_cfg_phy_iomux_ie_wr_ads1; // 0x0000033c
  64. uint32_t psram_rf_cfg_phy_iomux_oe_wr_ads1; // 0x00000340
  65. uint32_t psram_rf_cfg_phy_iomux_out_wr_ads1; // 0x00000344
  66. uint32_t __840[46]; // 0x00000348
  67. uint32_t psram_drf_cfg; // 0x00000400
  68. uint32_t psram_drf_cfg_reg_sel; // 0x00000404
  69. uint32_t psram_drf_cfg_dqs_ie_sel_f0; // 0x00000408
  70. uint32_t psram_drf_cfg_dqs_oe_sel_f0; // 0x0000040c
  71. uint32_t psram_drf_cfg_dqs_out_sel_f0; // 0x00000410
  72. uint32_t psram_drf_cfg_dqs_gate_sel_f0; // 0x00000414
  73. uint32_t psram_drf_cfg_data_ie_sel_f0; // 0x00000418
  74. uint32_t psram_drf_cfg_data_oe_sel_f0; // 0x0000041c
  75. uint32_t psram_drf_cfg_dqs_ie_sel_f1; // 0x00000420
  76. uint32_t psram_drf_cfg_dqs_oe_sel_f1; // 0x00000424
  77. uint32_t psram_drf_cfg_dqs_out_sel_f1; // 0x00000428
  78. uint32_t psram_drf_cfg_dqs_gate_sel_f1; // 0x0000042c
  79. uint32_t psram_drf_cfg_data_ie_sel_f1; // 0x00000430
  80. uint32_t psram_drf_cfg_data_oe_sel_f1; // 0x00000434
  81. uint32_t psram_drf_cfg_dqs_ie_sel_f2; // 0x00000438
  82. uint32_t psram_drf_cfg_dqs_oe_sel_f2; // 0x0000043c
  83. uint32_t psram_drf_cfg_dqs_out_sel_f2; // 0x00000440
  84. uint32_t psram_drf_cfg_dqs_gate_sel_f2; // 0x00000444
  85. uint32_t psram_drf_cfg_data_ie_sel_f2; // 0x00000448
  86. uint32_t psram_drf_cfg_data_oe_sel_f2; // 0x0000044c
  87. uint32_t psram_drf_cfg_dqs_ie_sel_f3; // 0x00000450
  88. uint32_t psram_drf_cfg_dqs_oe_sel_f3; // 0x00000454
  89. uint32_t psram_drf_cfg_dqs_out_sel_f3; // 0x00000458
  90. uint32_t psram_drf_cfg_dqs_gate_sel_f3; // 0x0000045c
  91. uint32_t psram_drf_cfg_data_ie_sel_f3; // 0x00000460
  92. uint32_t psram_drf_cfg_data_oe_sel_f3; // 0x00000464
  93. uint32_t psram_drf_cfg_dll_mode_f0; // 0x00000468
  94. uint32_t psram_drf_cfg_dll_cnt_f0; // 0x0000046c
  95. uint32_t psram_drf_cfg_dll_mode_f1; // 0x00000470
  96. uint32_t psram_drf_cfg_dll_cnt_f1; // 0x00000474
  97. uint32_t psram_drf_cfg_dll_mode_f2; // 0x00000478
  98. uint32_t psram_drf_cfg_dll_cnt_f2; // 0x0000047c
  99. uint32_t psram_drf_cfg_dll_mode_f3; // 0x00000480
  100. uint32_t psram_drf_cfg_dll_cnt_f3; // 0x00000484
  101. uint32_t __1160[30]; // 0x00000488
  102. uint32_t psram_drf_format_control; // 0x00000500
  103. uint32_t psram_drf_t_rcd; // 0x00000504
  104. uint32_t psram_drf_t_rddata_en; // 0x00000508
  105. uint32_t psram_drf_t_phywrlat; // 0x0000050c
  106. uint32_t psram_drf_t_cph_wr; // 0x00000510
  107. uint32_t psram_drf_t_cph_rd; // 0x00000514
  108. uint32_t psram_drf_t_data_oe_ext; // 0x00000518
  109. uint32_t psram_drf_t_dqs_oe_ext; // 0x0000051c
  110. uint32_t psram_drf_t_xphs; // 0x00000520
  111. uint32_t psram_drf_t_rddata_vld_sync; // 0x00000524
  112. uint32_t psram_drf_t_rddata_late; // 0x00000528
  113. uint32_t psram_drf_t_rddata_valid_early; // 0x0000052c
  114. uint32_t drf_t_wb_rst; // 0x00000530
  115. uint32_t __1332[51]; // 0x00000534
  116. uint32_t psram_drf_train_cfg; // 0x00000600
  117. uint32_t psram_drf_mr_data_en; // 0x00000604
  118. uint32_t psram_drf_mr_data_0; // 0x00000608
  119. uint32_t psram_drf_mr_data_1; // 0x0000060c
  120. uint32_t __1552[60]; // 0x00000610
  121. uint32_t psram_rf_irq_ctrl; // 0x00000700
  122. uint32_t psram_rf_irq_status_clr; // 0x00000704
  123. uint32_t psram_rf_irq_status; // 0x00000708
  124. uint32_t psram_rf_irq_cnt_clr; // 0x0000070c
  125. uint32_t psram_rf_irq_cnt_dll_unlock_ads0; // 0x00000710
  126. uint32_t psram_rf_irq_cnt_dll_unlock_ads1; // 0x00000714
  127. uint32_t __1816[2]; // 0x00000718
  128. uint32_t io_rf_psram_drv_cfg; // 0x00000720
  129. uint32_t io_rf_psram_pad_en_cfg; // 0x00000724
  130. uint32_t io_rf_psram_pull_cfg; // 0x00000728
  131. uint32_t io_rf_psram_reserved; // 0x0000072c
  132. } HWP_PSRAM_PHY_T;
  133. #define hwp_psramPhy ((HWP_PSRAM_PHY_T *)REG_ACCESS_ADDRESS(REG_PSRAM_PHY_BASE))
  134. // psram_rf_cfg_phy
  135. typedef union {
  136. uint32_t v;
  137. struct
  138. {
  139. uint32_t rf_phy_en : 1; // [0]
  140. uint32_t rf_phy_init_complete : 1; // [1]
  141. uint32_t __31_2 : 30; // [31:2]
  142. } b;
  143. } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_T;
  144. // psram_rf_cfg_clock_gate
  145. typedef union {
  146. uint32_t v;
  147. struct
  148. {
  149. uint32_t rf_clk_gate_en : 1; // [0]
  150. uint32_t rf_clk_gate_fg_en : 1; // [1]
  151. uint32_t rf_clk_gate_ag_en : 1; // [2]
  152. uint32_t rf_clk_gate_ag_wr_en : 1; // [3]
  153. uint32_t rf_clk_gate_ag_rd_en : 1; // [4]
  154. uint32_t __31_5 : 27; // [31:5]
  155. } b;
  156. } REG_PSRAM_PHY_PSRAM_RF_CFG_CLOCK_GATE_T;
  157. // psram_rf_cfg_lpi
  158. typedef union {
  159. uint32_t v;
  160. struct
  161. {
  162. uint32_t rf_lpi_sel_m0 : 1; // [0]
  163. uint32_t rf_cwakeup_m0 : 1; // [1]
  164. uint32_t rf_cwakeup_s0 : 1; // [2]
  165. uint32_t __31_3 : 29; // [31:3]
  166. } b;
  167. } REG_PSRAM_PHY_PSRAM_RF_CFG_LPI_T;
  168. // psram_rf_cfg_psram_type
  169. typedef union {
  170. uint32_t v;
  171. struct
  172. {
  173. uint32_t rf_wb_sel : 1; // [0]
  174. uint32_t rf_ap256_sel : 1; // [1]
  175. uint32_t rf_datax16_sel : 1; // [2]
  176. uint32_t rf_wb64_256_sel : 1; // [3]
  177. uint32_t rf_rwds_smpl_time : 3; // [6:4]
  178. uint32_t rf_wrapper_limit : 1; // [7]
  179. uint32_t rf_length_limit : 1; // [8]
  180. uint32_t __31_9 : 23; // [31:9]
  181. } b;
  182. } REG_PSRAM_PHY_PSRAM_RF_CFG_PSRAM_TYPE_T;
  183. // psram_rf_wb_mrw_data
  184. typedef union {
  185. uint32_t v;
  186. struct
  187. {
  188. uint32_t rf_wb_mrw_data : 16; // [15:0]
  189. uint32_t __31_16 : 16; // [31:16]
  190. } b;
  191. } REG_PSRAM_PHY_PSRAM_RF_WB_MRW_DATA_T;
  192. // psram_rfdll_cfg_dll
  193. typedef union {
  194. uint32_t v;
  195. struct
  196. {
  197. uint32_t rfdll_reset : 1; // [0]
  198. uint32_t __31_1 : 31; // [31:1]
  199. } b;
  200. } REG_PSRAM_PHY_PSRAM_RFDLL_CFG_DLL_T;
  201. // psram_rfdll_status_cpst_idle
  202. typedef union {
  203. uint32_t v;
  204. struct
  205. {
  206. uint32_t rfdl_cpst_st_idle_ads0 : 1; // [0], read only
  207. uint32_t rfdl_cpst_st_idle_ads1 : 1; // [1], read only
  208. uint32_t __31_2 : 30; // [31:2]
  209. } b;
  210. } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_CPST_IDLE_T;
  211. // psram_rf_status_phy_data_in
  212. typedef union {
  213. uint32_t v;
  214. struct
  215. {
  216. uint32_t rf_phy_data_in : 16; // [15:0]
  217. uint32_t __31_16 : 16; // [31:16]
  218. } b;
  219. } REG_PSRAM_PHY_PSRAM_RF_STATUS_PHY_DATA_IN_T;
  220. // psram_rf_cfg_dll_ads0
  221. typedef union {
  222. uint32_t v;
  223. struct
  224. {
  225. uint32_t __7_0 : 8; // [7:0]
  226. uint32_t rf_dll_clr_ads0 : 1; // [8]
  227. uint32_t rf_dll_auto_clr_en_ads0 : 1; // [9]
  228. uint32_t rf_dl_cpst_en_ads0 : 1; // [10]
  229. uint32_t rf_dl_cpst_start_ads0 : 1; // [11]
  230. uint32_t rf_dl_cpst_auto_ref_en_ads0 : 1; // [12]
  231. uint32_t rf_dll_err_clr_ads0 : 1; // [13]
  232. uint32_t rf_dll_clk_sel_ads0 : 1; // [14]
  233. uint32_t rf_dll_en_ads0 : 1; // [15]
  234. uint32_t rf_dl_cpst_thr_ads0 : 8; // [23:16]
  235. uint32_t rf_dll_pd_cnt_ads0 : 3; // [26:24]
  236. uint32_t rf_dll_auto_err_clr_en_ads0 : 1; // [27]
  237. uint32_t rf_dll_lock_wait_ads0 : 4; // [31:28]
  238. } b;
  239. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_ADS0_T;
  240. // psram_rfdll_status_dll_ads0
  241. typedef union {
  242. uint32_t v;
  243. struct
  244. {
  245. uint32_t rfdll_cnt_ads0 : 8; // [7:0], read only
  246. uint32_t __23_8 : 16; // [23:8]
  247. uint32_t rfdl_cpst_st_ads0 : 1; // [24], read only
  248. uint32_t rfdll_st_ads0 : 3; // [27:25], read only
  249. uint32_t rfdll_locked_ads0 : 1; // [28], read only
  250. uint32_t rfdll_error_ads0 : 1; // [29], read only
  251. uint32_t __31_30 : 2; // [31:30]
  252. } b;
  253. } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_DLL_ADS0_T;
  254. // psram_rf_cfg_dll_dl_0_wr_ads0
  255. typedef union {
  256. uint32_t v;
  257. struct
  258. {
  259. uint32_t rf_clkwr_raw_dl_sel_ads0 : 8; // [7:0]
  260. uint32_t rfdl_clkwr_raw_cnt_ads0 : 8; // [15:8], read only
  261. uint32_t rf_clkwr_raw_dl_cpst_offset_ads0 : 8; // [23:16]
  262. uint32_t rf_clkwr_qtr_dl_sel_ads0 : 2; // [25:24]
  263. uint32_t rfdl_clkwr_qtr_cnt_ads0 : 2; // [27:26], read only
  264. uint32_t rf_clkwr_qtr_dl_cpst_offset_ads0 : 2; // [29:28]
  265. uint32_t rf_clkwr_dl_cpst_minus_ads0 : 1; // [30]
  266. uint32_t rf_clkwr_dl_cpst_en_ads0 : 1; // [31]
  267. } b;
  268. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_0_WR_ADS0_T;
  269. // psram_rf_cfg_dll_dl_1_wr_ads0
  270. typedef union {
  271. uint32_t v;
  272. struct
  273. {
  274. uint32_t rf_dqs_in_pos_raw_dl_sel_ads0 : 8; // [7:0]
  275. uint32_t rfdl_dqs_in_pos_raw_cnt_ads0 : 8; // [15:8], read only
  276. uint32_t rf_dqs_in_pos_raw_dl_cpst_offset_ads0 : 8; // [23:16]
  277. uint32_t rf_dqs_in_pos_qtr_dl_sel_ads0 : 2; // [25:24]
  278. uint32_t rfdl_dqs_in_pos_qtr_cnt_ads0 : 2; // [27:26], read only
  279. uint32_t rf_dqs_in_pos_qtr_dl_cpst_offset_ads0 : 2; // [29:28]
  280. uint32_t rf_dqs_in_pos_dl_cpst_minus_ads0 : 1; // [30]
  281. uint32_t rf_dqs_in_pos_dl_cpst_en_ads0 : 1; // [31]
  282. } b;
  283. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_1_WR_ADS0_T;
  284. // psram_rf_cfg_dll_dl_2_wr_ads0
  285. typedef union {
  286. uint32_t v;
  287. struct
  288. {
  289. uint32_t rf_dqs_in_neg_raw_dl_sel_ads0 : 8; // [7:0]
  290. uint32_t rfdl_dqs_in_neg_raw_cnt_ads0 : 8; // [15:8], read only
  291. uint32_t rf_dqs_in_neg_raw_dl_cpst_offset_ads0 : 8; // [23:16]
  292. uint32_t rf_dqs_in_neg_qtr_dl_sel_ads0 : 2; // [25:24]
  293. uint32_t rfdl_dqs_in_neg_qtr_cnt_ads0 : 2; // [27:26], read only
  294. uint32_t rf_dqs_in_neg_qtr_dl_cpst_offset_ads0 : 2; // [29:28]
  295. uint32_t rf_dqs_in_neg_dl_cpst_minus_ads0 : 1; // [30]
  296. uint32_t rf_dqs_in_neg_dl_cpst_en_ads0 : 1; // [31]
  297. } b;
  298. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_2_WR_ADS0_T;
  299. // psram_rf_cfg_dll_dl_3_wr_ads0
  300. typedef union {
  301. uint32_t v;
  302. struct
  303. {
  304. uint32_t rf_dqs_gate_raw_dl_sel_ads0 : 8; // [7:0]
  305. uint32_t rfdl_dqs_gate_raw_cnt_ads0 : 8; // [15:8], read only
  306. uint32_t rf_dqs_gate_raw_dl_cpst_offset_ads0 : 8; // [23:16]
  307. uint32_t rf_dqs_gate_qtr_dl_sel_ads0 : 2; // [25:24]
  308. uint32_t rfdl_dqs_gate_qtr_cnt_ads0 : 2; // [27:26], read only
  309. uint32_t rf_dqs_gate_qtr_dl_cpst_offset_ads0 : 2; // [29:28]
  310. uint32_t rf_dqs_gate_dl_cpst_minus_ads0 : 1; // [30]
  311. uint32_t rf_dqs_gate_dl_cpst_en_ads0 : 1; // [31]
  312. } b;
  313. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_3_WR_ADS0_T;
  314. // psram_rf_cfg_dll_dl_4_wr_ads0
  315. typedef union {
  316. uint32_t v;
  317. struct
  318. {
  319. uint32_t rf_dly_out_clk_dl_sel_ads0 : 5; // [4:0]
  320. uint32_t __7_5 : 3; // [7:5]
  321. uint32_t rf_dly_out_cen_dl_sel_ads0 : 5; // [12:8]
  322. uint32_t __31_13 : 19; // [31:13]
  323. } b;
  324. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_4_WR_ADS0_T;
  325. // psram_rf_cfg_dll_dl_5_wr_ads0
  326. typedef union {
  327. uint32_t v;
  328. struct
  329. {
  330. uint32_t rf_dly_out_d0_dl_sel_ads0 : 5; // [4:0]
  331. uint32_t __7_5 : 3; // [7:5]
  332. uint32_t rf_dly_out_d1_dl_sel_ads0 : 5; // [12:8]
  333. uint32_t __15_13 : 3; // [15:13]
  334. uint32_t rf_dly_out_d2_dl_sel_ads0 : 5; // [20:16]
  335. uint32_t __23_21 : 3; // [23:21]
  336. uint32_t rf_dly_out_d3_dl_sel_ads0 : 5; // [28:24]
  337. uint32_t __31_29 : 3; // [31:29]
  338. } b;
  339. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_5_WR_ADS0_T;
  340. // psram_rf_cfg_dll_dl_6_wr_ads0
  341. typedef union {
  342. uint32_t v;
  343. struct
  344. {
  345. uint32_t rf_dly_out_d4_dl_sel_ads0 : 5; // [4:0]
  346. uint32_t __7_5 : 3; // [7:5]
  347. uint32_t rf_dly_out_d5_dl_sel_ads0 : 5; // [12:8]
  348. uint32_t __15_13 : 3; // [15:13]
  349. uint32_t rf_dly_out_d6_dl_sel_ads0 : 5; // [20:16]
  350. uint32_t __23_21 : 3; // [23:21]
  351. uint32_t rf_dly_out_d7_dl_sel_ads0 : 5; // [28:24]
  352. uint32_t __31_29 : 3; // [31:29]
  353. } b;
  354. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_6_WR_ADS0_T;
  355. // psram_rf_cfg_dll_dl_7_wr_ads0
  356. typedef union {
  357. uint32_t v;
  358. struct
  359. {
  360. uint32_t rf_dly_in_d0_dl_sel_ads0 : 5; // [4:0]
  361. uint32_t __7_5 : 3; // [7:5]
  362. uint32_t rf_dly_in_d1_dl_sel_ads0 : 5; // [12:8]
  363. uint32_t __15_13 : 3; // [15:13]
  364. uint32_t rf_dly_in_d2_dl_sel_ads0 : 5; // [20:16]
  365. uint32_t __23_21 : 3; // [23:21]
  366. uint32_t rf_dly_in_d3_dl_sel_ads0 : 5; // [28:24]
  367. uint32_t __31_29 : 3; // [31:29]
  368. } b;
  369. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_7_WR_ADS0_T;
  370. // psram_rf_cfg_dll_dl_8_wr_ads0
  371. typedef union {
  372. uint32_t v;
  373. struct
  374. {
  375. uint32_t rf_dly_in_d4_dl_sel_ads0 : 5; // [4:0]
  376. uint32_t __7_5 : 3; // [7:5]
  377. uint32_t rf_dly_in_d5_dl_sel_ads0 : 5; // [12:8]
  378. uint32_t __15_13 : 3; // [15:13]
  379. uint32_t rf_dly_in_d6_dl_sel_ads0 : 5; // [20:16]
  380. uint32_t __23_21 : 3; // [23:21]
  381. uint32_t rf_dly_in_d7_dl_sel_ads0 : 5; // [28:24]
  382. uint32_t __31_29 : 3; // [31:29]
  383. } b;
  384. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_8_WR_ADS0_T;
  385. // psram_rf_cfg_dll_dl_9_wr_ads0
  386. typedef union {
  387. uint32_t v;
  388. struct
  389. {
  390. uint32_t rf_dly_out_dqs_dl_sel_ads0 : 5; // [4:0]
  391. uint32_t __7_5 : 3; // [7:5]
  392. uint32_t rf_dly_out_dqm_dl_sel_ads0 : 5; // [12:8]
  393. uint32_t __15_13 : 3; // [15:13]
  394. uint32_t rf_dly_in_dqs_dl_sel_ads0 : 5; // [20:16]
  395. uint32_t __31_21 : 11; // [31:21]
  396. } b;
  397. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_9_WR_ADS0_T;
  398. // psram_rfdll_status_max_cnt_ads0
  399. typedef union {
  400. uint32_t v;
  401. struct
  402. {
  403. uint32_t rfdll_max_cnt_f0_ads0 : 8; // [7:0], read only
  404. uint32_t rfdll_max_cnt_f1_ads0 : 8; // [15:8], read only
  405. uint32_t rfdll_max_cnt_f2_ads0 : 8; // [23:16], read only
  406. uint32_t rfdll_max_cnt_f3_ads0 : 8; // [31:24], read only
  407. } b;
  408. } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_MAX_CNT_ADS0_T;
  409. // psram_rfdll_status_min_cnt_ads0
  410. typedef union {
  411. uint32_t v;
  412. struct
  413. {
  414. uint32_t rfdll_min_cnt_f0_ads0 : 8; // [7:0], read only
  415. uint32_t rfdll_min_cnt_f1_ads0 : 8; // [15:8], read only
  416. uint32_t rfdll_min_cnt_f2_ads0 : 8; // [23:16], read only
  417. uint32_t rfdll_min_cnt_f3_ads0 : 8; // [31:24], read only
  418. } b;
  419. } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_MIN_CNT_ADS0_T;
  420. // psram_rf_cfg_phy_iomux_sel_wr_ads0
  421. typedef union {
  422. uint32_t v;
  423. struct
  424. {
  425. uint32_t rf_phy_io_d0_sel_ads0 : 1; // [0]
  426. uint32_t rf_phy_io_d1_sel_ads0 : 1; // [1]
  427. uint32_t rf_phy_io_d2_sel_ads0 : 1; // [2]
  428. uint32_t rf_phy_io_d3_sel_ads0 : 1; // [3]
  429. uint32_t rf_phy_io_d4_sel_ads0 : 1; // [4]
  430. uint32_t rf_phy_io_d5_sel_ads0 : 1; // [5]
  431. uint32_t rf_phy_io_d6_sel_ads0 : 1; // [6]
  432. uint32_t rf_phy_io_d7_sel_ads0 : 1; // [7]
  433. uint32_t rf_phy_io_dqm_sel_ads0 : 1; // [8]
  434. uint32_t rf_phy_io_dqs_sel_ads0 : 1; // [9]
  435. uint32_t __15_10 : 6; // [15:10]
  436. uint32_t rf_phy_io_clk_sel_ads0 : 1; // [16]
  437. uint32_t __19_17 : 3; // [19:17]
  438. uint32_t rf_phy_io_csn_sel_ads0 : 1; // [20]
  439. uint32_t __31_21 : 11; // [31:21]
  440. } b;
  441. } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_SEL_WR_ADS0_T;
  442. // psram_rf_cfg_phy_iomux_ie_wr_ads0
  443. typedef union {
  444. uint32_t v;
  445. struct
  446. {
  447. uint32_t rf_phy_io_d0_ie_ads0 : 1; // [0]
  448. uint32_t rf_phy_io_d1_ie_ads0 : 1; // [1]
  449. uint32_t rf_phy_io_d2_ie_ads0 : 1; // [2]
  450. uint32_t rf_phy_io_d3_ie_ads0 : 1; // [3]
  451. uint32_t rf_phy_io_d4_ie_ads0 : 1; // [4]
  452. uint32_t rf_phy_io_d5_ie_ads0 : 1; // [5]
  453. uint32_t rf_phy_io_d6_ie_ads0 : 1; // [6]
  454. uint32_t rf_phy_io_d7_ie_ads0 : 1; // [7]
  455. uint32_t rf_phy_io_dqm_ie_ads0 : 1; // [8]
  456. uint32_t rf_phy_io_dqs_ie_ads0 : 1; // [9]
  457. uint32_t __15_10 : 6; // [15:10]
  458. uint32_t rf_phy_io_clk_ie_ads0 : 1; // [16]
  459. uint32_t __19_17 : 3; // [19:17]
  460. uint32_t rf_phy_io_csn_ie_ads0 : 1; // [20]
  461. uint32_t __31_21 : 11; // [31:21]
  462. } b;
  463. } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_IE_WR_ADS0_T;
  464. // psram_rf_cfg_phy_iomux_oe_wr_ads0
  465. typedef union {
  466. uint32_t v;
  467. struct
  468. {
  469. uint32_t rf_phy_io_d0_oe_ads0 : 1; // [0]
  470. uint32_t rf_phy_io_d1_oe_ads0 : 1; // [1]
  471. uint32_t rf_phy_io_d2_oe_ads0 : 1; // [2]
  472. uint32_t rf_phy_io_d3_oe_ads0 : 1; // [3]
  473. uint32_t rf_phy_io_d4_oe_ads0 : 1; // [4]
  474. uint32_t rf_phy_io_d5_oe_ads0 : 1; // [5]
  475. uint32_t rf_phy_io_d6_oe_ads0 : 1; // [6]
  476. uint32_t rf_phy_io_d7_oe_ads0 : 1; // [7]
  477. uint32_t rf_phy_io_dqm_oe_ads0 : 1; // [8]
  478. uint32_t rf_phy_io_dqs_oe_ads0 : 1; // [9]
  479. uint32_t __15_10 : 6; // [15:10]
  480. uint32_t rf_phy_io_clk_oe_ads0 : 1; // [16]
  481. uint32_t __19_17 : 3; // [19:17]
  482. uint32_t rf_phy_io_csn_oe_ads0 : 1; // [20]
  483. uint32_t __31_21 : 11; // [31:21]
  484. } b;
  485. } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_OE_WR_ADS0_T;
  486. // psram_rf_cfg_phy_iomux_out_wr_ads0
  487. typedef union {
  488. uint32_t v;
  489. struct
  490. {
  491. uint32_t rf_phy_io_d0_out_ads0 : 1; // [0]
  492. uint32_t rf_phy_io_d1_out_ads0 : 1; // [1]
  493. uint32_t rf_phy_io_d2_out_ads0 : 1; // [2]
  494. uint32_t rf_phy_io_d3_out_ads0 : 1; // [3]
  495. uint32_t rf_phy_io_d4_out_ads0 : 1; // [4]
  496. uint32_t rf_phy_io_d5_out_ads0 : 1; // [5]
  497. uint32_t rf_phy_io_d6_out_ads0 : 1; // [6]
  498. uint32_t rf_phy_io_d7_out_ads0 : 1; // [7]
  499. uint32_t rf_phy_io_dqm_out_ads0 : 1; // [8]
  500. uint32_t rf_phy_io_dqs_out_ads0 : 1; // [9]
  501. uint32_t __15_10 : 6; // [15:10]
  502. uint32_t rf_phy_io_clk_out_ads0 : 1; // [16]
  503. uint32_t __19_17 : 3; // [19:17]
  504. uint32_t rf_phy_io_csn_out_ads0 : 1; // [20]
  505. uint32_t __31_21 : 11; // [31:21]
  506. } b;
  507. } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_OUT_WR_ADS0_T;
  508. // psram_rf_cfg_dll_ads1
  509. typedef union {
  510. uint32_t v;
  511. struct
  512. {
  513. uint32_t __7_0 : 8; // [7:0]
  514. uint32_t rf_dll_clr_ads1 : 1; // [8]
  515. uint32_t rf_dll_auto_clr_en_ads1 : 1; // [9]
  516. uint32_t rf_dl_cpst_en_ads1 : 1; // [10]
  517. uint32_t rf_dl_cpst_start_ads1 : 1; // [11]
  518. uint32_t rf_dl_cpst_auto_ref_en_ads1 : 1; // [12]
  519. uint32_t rf_dll_err_clr_ads1 : 1; // [13]
  520. uint32_t rf_dll_clk_sel_ads1 : 1; // [14]
  521. uint32_t rf_dll_en_ads1 : 1; // [15]
  522. uint32_t rf_dl_cpst_thr_ads1 : 8; // [23:16]
  523. uint32_t rf_dll_pd_cnt_ads1 : 3; // [26:24]
  524. uint32_t rf_dll_auto_err_clr_en_ads1 : 1; // [27]
  525. uint32_t rf_dll_lock_wait_ads1 : 4; // [31:28]
  526. } b;
  527. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_ADS1_T;
  528. // psram_rfdll_status_dll_ads1
  529. typedef union {
  530. uint32_t v;
  531. struct
  532. {
  533. uint32_t rfdll_cnt_ads1 : 8; // [7:0], read only
  534. uint32_t __23_8 : 16; // [23:8]
  535. uint32_t rfdl_cpst_st_ads1 : 1; // [24], read only
  536. uint32_t rfdll_st_ads1 : 3; // [27:25], read only
  537. uint32_t rfdll_locked_ads1 : 1; // [28], read only
  538. uint32_t rfdll_error_ads1 : 1; // [29], read only
  539. uint32_t __31_30 : 2; // [31:30]
  540. } b;
  541. } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_DLL_ADS1_T;
  542. // psram_rf_cfg_dll_dl_0_wr_ads1
  543. typedef union {
  544. uint32_t v;
  545. struct
  546. {
  547. uint32_t rf_clkwr_raw_dl_sel_ads1 : 8; // [7:0]
  548. uint32_t rfdl_clkwr_raw_cnt_ads1 : 8; // [15:8], read only
  549. uint32_t rf_clkwr_raw_dl_cpst_offset_ads1 : 8; // [23:16]
  550. uint32_t rf_clkwr_qtr_dl_sel_ads1 : 2; // [25:24]
  551. uint32_t rfdl_clkwr_qtr_cnt_ads1 : 2; // [27:26], read only
  552. uint32_t rf_clkwr_qtr_dl_cpst_offset_ads1 : 2; // [29:28]
  553. uint32_t rf_clkwr_dl_cpst_minus_ads1 : 1; // [30]
  554. uint32_t rf_clkwr_dl_cpst_en_ads1 : 1; // [31]
  555. } b;
  556. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_0_WR_ADS1_T;
  557. // psram_rf_cfg_dll_dl_1_wr_ads1
  558. typedef union {
  559. uint32_t v;
  560. struct
  561. {
  562. uint32_t rf_dqs_in_pos_raw_dl_sel_ads1 : 8; // [7:0]
  563. uint32_t rfdl_dqs_in_pos_raw_cnt_ads1 : 8; // [15:8], read only
  564. uint32_t rf_dqs_in_pos_raw_dl_cpst_offset_ads1 : 8; // [23:16]
  565. uint32_t rf_dqs_in_pos_qtr_dl_sel_ads1 : 2; // [25:24]
  566. uint32_t rfdl_dqs_in_pos_qtr_cnt_ads1 : 2; // [27:26], read only
  567. uint32_t rf_dqs_in_pos_qtr_dl_cpst_offset_ads1 : 2; // [29:28]
  568. uint32_t rf_dqs_in_pos_dl_cpst_minus_ads1 : 1; // [30]
  569. uint32_t rf_dqs_in_pos_dl_cpst_en_ads1 : 1; // [31]
  570. } b;
  571. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_1_WR_ADS1_T;
  572. // psram_rf_cfg_dll_dl_2_wr_ads1
  573. typedef union {
  574. uint32_t v;
  575. struct
  576. {
  577. uint32_t rf_dqs_in_neg_raw_dl_sel_ads1 : 8; // [7:0]
  578. uint32_t rfdl_dqs_in_neg_raw_cnt_ads1 : 8; // [15:8], read only
  579. uint32_t rf_dqs_in_neg_raw_dl_cpst_offset_ads1 : 8; // [23:16]
  580. uint32_t rf_dqs_in_neg_qtr_dl_sel_ads1 : 2; // [25:24]
  581. uint32_t rfdl_dqs_in_neg_qtr_cnt_ads1 : 2; // [27:26], read only
  582. uint32_t rf_dqs_in_neg_qtr_dl_cpst_offset_ads1 : 2; // [29:28]
  583. uint32_t rf_dqs_in_neg_dl_cpst_minus_ads1 : 1; // [30]
  584. uint32_t rf_dqs_in_neg_dl_cpst_en_ads1 : 1; // [31]
  585. } b;
  586. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_2_WR_ADS1_T;
  587. // psram_rf_cfg_dll_dl_3_wr_ads1
  588. typedef union {
  589. uint32_t v;
  590. struct
  591. {
  592. uint32_t rf_dqs_gate_raw_dl_sel_ads1 : 8; // [7:0]
  593. uint32_t rfdl_dqs_gate_raw_cnt_ads1 : 8; // [15:8], read only
  594. uint32_t rf_dqs_gate_raw_dl_cpst_offset_ads1 : 8; // [23:16]
  595. uint32_t rf_dqs_gate_qtr_dl_sel_ads1 : 2; // [25:24]
  596. uint32_t rfdl_dqs_gate_qtr_cnt_ads1 : 2; // [27:26], read only
  597. uint32_t rf_dqs_gate_qtr_dl_cpst_offset_ads1 : 2; // [29:28]
  598. uint32_t rf_dqs_gate_dl_cpst_minus_ads1 : 1; // [30]
  599. uint32_t rf_dqs_gate_dl_cpst_en_ads1 : 1; // [31]
  600. } b;
  601. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_3_WR_ADS1_T;
  602. // psram_rf_cfg_dll_dl_4_wr_ads1
  603. typedef union {
  604. uint32_t v;
  605. struct
  606. {
  607. uint32_t rf_dly_out_clk_dl_sel_ads1 : 5; // [4:0]
  608. uint32_t __7_5 : 3; // [7:5]
  609. uint32_t rf_dly_out_cen_dl_sel_ads1 : 5; // [12:8]
  610. uint32_t __31_13 : 19; // [31:13]
  611. } b;
  612. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_4_WR_ADS1_T;
  613. // psram_rf_cfg_dll_dl_5_wr_ads1
  614. typedef union {
  615. uint32_t v;
  616. struct
  617. {
  618. uint32_t rf_dly_out_d0_dl_sel_ads1 : 5; // [4:0]
  619. uint32_t __7_5 : 3; // [7:5]
  620. uint32_t rf_dly_out_d1_dl_sel_ads1 : 5; // [12:8]
  621. uint32_t __15_13 : 3; // [15:13]
  622. uint32_t rf_dly_out_d2_dl_sel_ads1 : 5; // [20:16]
  623. uint32_t __23_21 : 3; // [23:21]
  624. uint32_t rf_dly_out_d3_dl_sel_ads1 : 5; // [28:24]
  625. uint32_t __31_29 : 3; // [31:29]
  626. } b;
  627. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_5_WR_ADS1_T;
  628. // psram_rf_cfg_dll_dl_6_wr_ads1
  629. typedef union {
  630. uint32_t v;
  631. struct
  632. {
  633. uint32_t rf_dly_out_d4_dl_sel_ads1 : 5; // [4:0]
  634. uint32_t __7_5 : 3; // [7:5]
  635. uint32_t rf_dly_out_d5_dl_sel_ads1 : 5; // [12:8]
  636. uint32_t __15_13 : 3; // [15:13]
  637. uint32_t rf_dly_out_d6_dl_sel_ads1 : 5; // [20:16]
  638. uint32_t __23_21 : 3; // [23:21]
  639. uint32_t rf_dly_out_d7_dl_sel_ads1 : 5; // [28:24]
  640. uint32_t __31_29 : 3; // [31:29]
  641. } b;
  642. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_6_WR_ADS1_T;
  643. // psram_rf_cfg_dll_dl_7_wr_ads1
  644. typedef union {
  645. uint32_t v;
  646. struct
  647. {
  648. uint32_t rf_dly_in_d0_dl_sel_ads1 : 5; // [4:0]
  649. uint32_t __7_5 : 3; // [7:5]
  650. uint32_t rf_dly_in_d1_dl_sel_ads1 : 5; // [12:8]
  651. uint32_t __15_13 : 3; // [15:13]
  652. uint32_t rf_dly_in_d2_dl_sel_ads1 : 5; // [20:16]
  653. uint32_t __23_21 : 3; // [23:21]
  654. uint32_t rf_dly_in_d3_dl_sel_ads1 : 5; // [28:24]
  655. uint32_t __31_29 : 3; // [31:29]
  656. } b;
  657. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_7_WR_ADS1_T;
  658. // psram_rf_cfg_dll_dl_8_wr_ads1
  659. typedef union {
  660. uint32_t v;
  661. struct
  662. {
  663. uint32_t rf_dly_in_d4_dl_sel_ads1 : 5; // [4:0]
  664. uint32_t __7_5 : 3; // [7:5]
  665. uint32_t rf_dly_in_d5_dl_sel_ads1 : 5; // [12:8]
  666. uint32_t __15_13 : 3; // [15:13]
  667. uint32_t rf_dly_in_d6_dl_sel_ads1 : 5; // [20:16]
  668. uint32_t __23_21 : 3; // [23:21]
  669. uint32_t rf_dly_in_d7_dl_sel_ads1 : 5; // [28:24]
  670. uint32_t __31_29 : 3; // [31:29]
  671. } b;
  672. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_8_WR_ADS1_T;
  673. // psram_rf_cfg_dll_dl_9_wr_ads1
  674. typedef union {
  675. uint32_t v;
  676. struct
  677. {
  678. uint32_t rf_dly_out_dqs_dl_sel_ads1 : 5; // [4:0]
  679. uint32_t __7_5 : 3; // [7:5]
  680. uint32_t rf_dly_out_dqm_dl_sel_ads1 : 5; // [12:8]
  681. uint32_t __15_13 : 3; // [15:13]
  682. uint32_t rf_dly_in_dqs_dl_sel_ads1 : 5; // [20:16]
  683. uint32_t __31_21 : 11; // [31:21]
  684. } b;
  685. } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_9_WR_ADS1_T;
  686. // psram_rfdll_status_max_cnt_ads1
  687. typedef union {
  688. uint32_t v;
  689. struct
  690. {
  691. uint32_t rfdll_max_cnt_f0_ads1 : 8; // [7:0], read only
  692. uint32_t rfdll_max_cnt_f1_ads1 : 8; // [15:8], read only
  693. uint32_t rfdll_max_cnt_f2_ads1 : 8; // [23:16], read only
  694. uint32_t rfdll_max_cnt_f3_ads1 : 8; // [31:24], read only
  695. } b;
  696. } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_MAX_CNT_ADS1_T;
  697. // psram_rfdll_status_min_cnt_ads1
  698. typedef union {
  699. uint32_t v;
  700. struct
  701. {
  702. uint32_t rfdll_min_cnt_f0_ads1 : 8; // [7:0], read only
  703. uint32_t rfdll_min_cnt_f1_ads1 : 8; // [15:8], read only
  704. uint32_t rfdll_min_cnt_f2_ads1 : 8; // [23:16], read only
  705. uint32_t rfdll_min_cnt_f3_ads1 : 8; // [31:24], read only
  706. } b;
  707. } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_MIN_CNT_ADS1_T;
  708. // psram_rf_cfg_phy_iomux_sel_wr_ads1
  709. typedef union {
  710. uint32_t v;
  711. struct
  712. {
  713. uint32_t rf_phy_io_d0_sel_ads1 : 1; // [0]
  714. uint32_t rf_phy_io_d1_sel_ads1 : 1; // [1]
  715. uint32_t rf_phy_io_d2_sel_ads1 : 1; // [2]
  716. uint32_t rf_phy_io_d3_sel_ads1 : 1; // [3]
  717. uint32_t rf_phy_io_d4_sel_ads1 : 1; // [4]
  718. uint32_t rf_phy_io_d5_sel_ads1 : 1; // [5]
  719. uint32_t rf_phy_io_d6_sel_ads1 : 1; // [6]
  720. uint32_t rf_phy_io_d7_sel_ads1 : 1; // [7]
  721. uint32_t rf_phy_io_dqm_sel_ads1 : 1; // [8]
  722. uint32_t rf_phy_io_dqs_sel_ads1 : 1; // [9]
  723. uint32_t __15_10 : 6; // [15:10]
  724. uint32_t rf_phy_io_clk_sel_ads1 : 1; // [16]
  725. uint32_t __19_17 : 3; // [19:17]
  726. uint32_t rf_phy_io_csn_sel_ads1 : 1; // [20]
  727. uint32_t __31_21 : 11; // [31:21]
  728. } b;
  729. } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_SEL_WR_ADS1_T;
  730. // psram_rf_cfg_phy_iomux_ie_wr_ads1
  731. typedef union {
  732. uint32_t v;
  733. struct
  734. {
  735. uint32_t rf_phy_io_d0_ie_ads1 : 1; // [0]
  736. uint32_t rf_phy_io_d1_ie_ads1 : 1; // [1]
  737. uint32_t rf_phy_io_d2_ie_ads1 : 1; // [2]
  738. uint32_t rf_phy_io_d3_ie_ads1 : 1; // [3]
  739. uint32_t rf_phy_io_d4_ie_ads1 : 1; // [4]
  740. uint32_t rf_phy_io_d5_ie_ads1 : 1; // [5]
  741. uint32_t rf_phy_io_d6_ie_ads1 : 1; // [6]
  742. uint32_t rf_phy_io_d7_ie_ads1 : 1; // [7]
  743. uint32_t rf_phy_io_dqm_ie_ads1 : 1; // [8]
  744. uint32_t rf_phy_io_dqs_ie_ads1 : 1; // [9]
  745. uint32_t __15_10 : 6; // [15:10]
  746. uint32_t rf_phy_io_clk_ie_ads1 : 1; // [16]
  747. uint32_t __19_17 : 3; // [19:17]
  748. uint32_t rf_phy_io_csn_ie_ads1 : 1; // [20]
  749. uint32_t __31_21 : 11; // [31:21]
  750. } b;
  751. } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_IE_WR_ADS1_T;
  752. // psram_rf_cfg_phy_iomux_oe_wr_ads1
  753. typedef union {
  754. uint32_t v;
  755. struct
  756. {
  757. uint32_t rf_phy_io_d0_oe_ads1 : 1; // [0]
  758. uint32_t rf_phy_io_d1_oe_ads1 : 1; // [1]
  759. uint32_t rf_phy_io_d2_oe_ads1 : 1; // [2]
  760. uint32_t rf_phy_io_d3_oe_ads1 : 1; // [3]
  761. uint32_t rf_phy_io_d4_oe_ads1 : 1; // [4]
  762. uint32_t rf_phy_io_d5_oe_ads1 : 1; // [5]
  763. uint32_t rf_phy_io_d6_oe_ads1 : 1; // [6]
  764. uint32_t rf_phy_io_d7_oe_ads1 : 1; // [7]
  765. uint32_t rf_phy_io_dqm_oe_ads1 : 1; // [8]
  766. uint32_t rf_phy_io_dqs_oe_ads1 : 1; // [9]
  767. uint32_t __15_10 : 6; // [15:10]
  768. uint32_t rf_phy_io_clk_oe_ads1 : 1; // [16]
  769. uint32_t __19_17 : 3; // [19:17]
  770. uint32_t rf_phy_io_csn_oe_ads1 : 1; // [20]
  771. uint32_t __31_21 : 11; // [31:21]
  772. } b;
  773. } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_OE_WR_ADS1_T;
  774. // psram_rf_cfg_phy_iomux_out_wr_ads1
  775. typedef union {
  776. uint32_t v;
  777. struct
  778. {
  779. uint32_t rf_phy_io_d0_out_ads1 : 1; // [0]
  780. uint32_t rf_phy_io_d1_out_ads1 : 1; // [1]
  781. uint32_t rf_phy_io_d2_out_ads1 : 1; // [2]
  782. uint32_t rf_phy_io_d3_out_ads1 : 1; // [3]
  783. uint32_t rf_phy_io_d4_out_ads1 : 1; // [4]
  784. uint32_t rf_phy_io_d5_out_ads1 : 1; // [5]
  785. uint32_t rf_phy_io_d6_out_ads1 : 1; // [6]
  786. uint32_t rf_phy_io_d7_out_ads1 : 1; // [7]
  787. uint32_t rf_phy_io_dqm_out_ads1 : 1; // [8]
  788. uint32_t rf_phy_io_dqs_out_ads1 : 1; // [9]
  789. uint32_t __15_10 : 6; // [15:10]
  790. uint32_t rf_phy_io_clk_out_ads1 : 1; // [16]
  791. uint32_t __19_17 : 3; // [19:17]
  792. uint32_t rf_phy_io_csn_out_ads1 : 1; // [20]
  793. uint32_t __31_21 : 11; // [31:21]
  794. } b;
  795. } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_OUT_WR_ADS1_T;
  796. // psram_drf_cfg
  797. typedef union {
  798. uint32_t v;
  799. struct
  800. {
  801. uint32_t drf_clkdmem_out_sel : 1; // [0]
  802. uint32_t __31_1 : 31; // [31:1]
  803. } b;
  804. } REG_PSRAM_PHY_PSRAM_DRF_CFG_T;
  805. // psram_drf_cfg_reg_sel
  806. typedef union {
  807. uint32_t v;
  808. struct
  809. {
  810. uint32_t drf_reg_sel : 2; // [1:0]
  811. uint32_t __31_2 : 30; // [31:2]
  812. } b;
  813. } REG_PSRAM_PHY_PSRAM_DRF_CFG_REG_SEL_T;
  814. // psram_drf_cfg_dqs_ie_sel_f0
  815. typedef union {
  816. uint32_t v;
  817. struct
  818. {
  819. uint32_t drf_dqs_ie_sel_f0 : 16; // [15:0]
  820. uint32_t __31_16 : 16; // [31:16]
  821. } b;
  822. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_IE_SEL_F0_T;
  823. // psram_drf_cfg_dqs_oe_sel_f0
  824. typedef union {
  825. uint32_t v;
  826. struct
  827. {
  828. uint32_t drf_dqs_oe_sel_f0 : 16; // [15:0]
  829. uint32_t __31_16 : 16; // [31:16]
  830. } b;
  831. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OE_SEL_F0_T;
  832. // psram_drf_cfg_dqs_out_sel_f0
  833. typedef union {
  834. uint32_t v;
  835. struct
  836. {
  837. uint32_t drf_dqs_out_sel_f0 : 16; // [15:0]
  838. uint32_t __31_16 : 16; // [31:16]
  839. } b;
  840. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OUT_SEL_F0_T;
  841. // psram_drf_cfg_dqs_gate_sel_f0
  842. typedef union {
  843. uint32_t v;
  844. struct
  845. {
  846. uint32_t drf_dqs_gate_sel_f0 : 16; // [15:0]
  847. uint32_t __31_16 : 16; // [31:16]
  848. } b;
  849. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_GATE_SEL_F0_T;
  850. // psram_drf_cfg_data_ie_sel_f0
  851. typedef union {
  852. uint32_t v;
  853. struct
  854. {
  855. uint32_t drf_data_ie_sel_f0 : 16; // [15:0]
  856. uint32_t __31_16 : 16; // [31:16]
  857. } b;
  858. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_IE_SEL_F0_T;
  859. // psram_drf_cfg_data_oe_sel_f0
  860. typedef union {
  861. uint32_t v;
  862. struct
  863. {
  864. uint32_t drf_data_oe_sel_f0 : 16; // [15:0]
  865. uint32_t __31_16 : 16; // [31:16]
  866. } b;
  867. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_OE_SEL_F0_T;
  868. // psram_drf_cfg_dqs_ie_sel_f1
  869. typedef union {
  870. uint32_t v;
  871. struct
  872. {
  873. uint32_t drf_dqs_ie_sel_f1 : 16; // [15:0]
  874. uint32_t __31_16 : 16; // [31:16]
  875. } b;
  876. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_IE_SEL_F1_T;
  877. // psram_drf_cfg_dqs_oe_sel_f1
  878. typedef union {
  879. uint32_t v;
  880. struct
  881. {
  882. uint32_t drf_dqs_oe_sel_f1 : 16; // [15:0]
  883. uint32_t __31_16 : 16; // [31:16]
  884. } b;
  885. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OE_SEL_F1_T;
  886. // psram_drf_cfg_dqs_out_sel_f1
  887. typedef union {
  888. uint32_t v;
  889. struct
  890. {
  891. uint32_t drf_dqs_out_sel_f1 : 16; // [15:0]
  892. uint32_t __31_16 : 16; // [31:16]
  893. } b;
  894. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OUT_SEL_F1_T;
  895. // psram_drf_cfg_dqs_gate_sel_f1
  896. typedef union {
  897. uint32_t v;
  898. struct
  899. {
  900. uint32_t drf_dqs_gate_sel_f1 : 16; // [15:0]
  901. uint32_t __31_16 : 16; // [31:16]
  902. } b;
  903. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_GATE_SEL_F1_T;
  904. // psram_drf_cfg_data_ie_sel_f1
  905. typedef union {
  906. uint32_t v;
  907. struct
  908. {
  909. uint32_t drf_data_ie_sel_f1 : 16; // [15:0]
  910. uint32_t __31_16 : 16; // [31:16]
  911. } b;
  912. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_IE_SEL_F1_T;
  913. // psram_drf_cfg_data_oe_sel_f1
  914. typedef union {
  915. uint32_t v;
  916. struct
  917. {
  918. uint32_t drf_data_oe_sel_f1 : 16; // [15:0]
  919. uint32_t __31_16 : 16; // [31:16]
  920. } b;
  921. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_OE_SEL_F1_T;
  922. // psram_drf_cfg_dqs_ie_sel_f2
  923. typedef union {
  924. uint32_t v;
  925. struct
  926. {
  927. uint32_t drf_dqs_ie_sel_f2 : 16; // [15:0]
  928. uint32_t __31_16 : 16; // [31:16]
  929. } b;
  930. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_IE_SEL_F2_T;
  931. // psram_drf_cfg_dqs_oe_sel_f2
  932. typedef union {
  933. uint32_t v;
  934. struct
  935. {
  936. uint32_t drf_dqs_oe_sel_f2 : 16; // [15:0]
  937. uint32_t __31_16 : 16; // [31:16]
  938. } b;
  939. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OE_SEL_F2_T;
  940. // psram_drf_cfg_dqs_out_sel_f2
  941. typedef union {
  942. uint32_t v;
  943. struct
  944. {
  945. uint32_t drf_dqs_out_sel_f2 : 16; // [15:0]
  946. uint32_t __31_16 : 16; // [31:16]
  947. } b;
  948. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OUT_SEL_F2_T;
  949. // psram_drf_cfg_dqs_gate_sel_f2
  950. typedef union {
  951. uint32_t v;
  952. struct
  953. {
  954. uint32_t drf_dqs_gate_sel_f2 : 16; // [15:0]
  955. uint32_t __31_16 : 16; // [31:16]
  956. } b;
  957. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_GATE_SEL_F2_T;
  958. // psram_drf_cfg_data_ie_sel_f2
  959. typedef union {
  960. uint32_t v;
  961. struct
  962. {
  963. uint32_t drf_data_ie_sel_f2 : 16; // [15:0]
  964. uint32_t __31_16 : 16; // [31:16]
  965. } b;
  966. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_IE_SEL_F2_T;
  967. // psram_drf_cfg_data_oe_sel_f2
  968. typedef union {
  969. uint32_t v;
  970. struct
  971. {
  972. uint32_t drf_data_oe_sel_f2 : 16; // [15:0]
  973. uint32_t __31_16 : 16; // [31:16]
  974. } b;
  975. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_OE_SEL_F2_T;
  976. // psram_drf_cfg_dqs_ie_sel_f3
  977. typedef union {
  978. uint32_t v;
  979. struct
  980. {
  981. uint32_t drf_dqs_ie_sel_f3 : 16; // [15:0]
  982. uint32_t __31_16 : 16; // [31:16]
  983. } b;
  984. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_IE_SEL_F3_T;
  985. // psram_drf_cfg_dqs_oe_sel_f3
  986. typedef union {
  987. uint32_t v;
  988. struct
  989. {
  990. uint32_t drf_dqs_oe_sel_f3 : 16; // [15:0]
  991. uint32_t __31_16 : 16; // [31:16]
  992. } b;
  993. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OE_SEL_F3_T;
  994. // psram_drf_cfg_dqs_out_sel_f3
  995. typedef union {
  996. uint32_t v;
  997. struct
  998. {
  999. uint32_t drf_dqs_out_sel_f3 : 16; // [15:0]
  1000. uint32_t __31_16 : 16; // [31:16]
  1001. } b;
  1002. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OUT_SEL_F3_T;
  1003. // psram_drf_cfg_dqs_gate_sel_f3
  1004. typedef union {
  1005. uint32_t v;
  1006. struct
  1007. {
  1008. uint32_t drf_dqs_gate_sel_f3 : 16; // [15:0]
  1009. uint32_t __31_16 : 16; // [31:16]
  1010. } b;
  1011. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_GATE_SEL_F3_T;
  1012. // psram_drf_cfg_data_ie_sel_f3
  1013. typedef union {
  1014. uint32_t v;
  1015. struct
  1016. {
  1017. uint32_t drf_data_ie_sel_f3 : 16; // [15:0]
  1018. uint32_t __31_16 : 16; // [31:16]
  1019. } b;
  1020. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_IE_SEL_F3_T;
  1021. // psram_drf_cfg_data_oe_sel_f3
  1022. typedef union {
  1023. uint32_t v;
  1024. struct
  1025. {
  1026. uint32_t drf_data_oe_sel_f3 : 16; // [15:0]
  1027. uint32_t __31_16 : 16; // [31:16]
  1028. } b;
  1029. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_OE_SEL_F3_T;
  1030. // psram_drf_cfg_dll_mode_f0
  1031. typedef union {
  1032. uint32_t v;
  1033. struct
  1034. {
  1035. uint32_t drf_dll_clk_mode_f0 : 1; // [0]
  1036. uint32_t drf_dll_half_mode_f0 : 1; // [1]
  1037. uint32_t drf_dll_satu_mode_f0 : 1; // [2]
  1038. uint32_t __31_3 : 29; // [31:3]
  1039. } b;
  1040. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_MODE_F0_T;
  1041. // psram_drf_cfg_dll_cnt_f0
  1042. typedef union {
  1043. uint32_t v;
  1044. struct
  1045. {
  1046. uint32_t drf_dll_init_cnt_f0 : 10; // [9:0]
  1047. uint32_t drf_dll_satu_cnt_f0 : 10; // [19:10]
  1048. uint32_t drf_dll_auto_cnt_f0 : 10; // [29:20]
  1049. uint32_t __31_30 : 2; // [31:30]
  1050. } b;
  1051. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_CNT_F0_T;
  1052. // psram_drf_cfg_dll_mode_f1
  1053. typedef union {
  1054. uint32_t v;
  1055. struct
  1056. {
  1057. uint32_t drf_dll_clk_mode_f1 : 1; // [0]
  1058. uint32_t drf_dll_half_mode_f1 : 1; // [1]
  1059. uint32_t drf_dll_satu_mode_f1 : 1; // [2]
  1060. uint32_t __31_3 : 29; // [31:3]
  1061. } b;
  1062. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_MODE_F1_T;
  1063. // psram_drf_cfg_dll_cnt_f1
  1064. typedef union {
  1065. uint32_t v;
  1066. struct
  1067. {
  1068. uint32_t drf_dll_init_cnt_f1 : 10; // [9:0]
  1069. uint32_t drf_dll_satu_cnt_f1 : 10; // [19:10]
  1070. uint32_t drf_dll_auto_cnt_f1 : 10; // [29:20]
  1071. uint32_t __31_30 : 2; // [31:30]
  1072. } b;
  1073. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_CNT_F1_T;
  1074. // psram_drf_cfg_dll_mode_f2
  1075. typedef union {
  1076. uint32_t v;
  1077. struct
  1078. {
  1079. uint32_t drf_dll_clk_mode_f2 : 1; // [0]
  1080. uint32_t drf_dll_half_mode_f2 : 1; // [1]
  1081. uint32_t drf_dll_satu_mode_f2 : 1; // [2]
  1082. uint32_t __31_3 : 29; // [31:3]
  1083. } b;
  1084. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_MODE_F2_T;
  1085. // psram_drf_cfg_dll_cnt_f2
  1086. typedef union {
  1087. uint32_t v;
  1088. struct
  1089. {
  1090. uint32_t drf_dll_init_cnt_f2 : 10; // [9:0]
  1091. uint32_t drf_dll_satu_cnt_f2 : 10; // [19:10]
  1092. uint32_t drf_dll_auto_cnt_f2 : 10; // [29:20]
  1093. uint32_t __31_30 : 2; // [31:30]
  1094. } b;
  1095. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_CNT_F2_T;
  1096. // psram_drf_cfg_dll_mode_f3
  1097. typedef union {
  1098. uint32_t v;
  1099. struct
  1100. {
  1101. uint32_t drf_dll_clk_mode_f3 : 1; // [0]
  1102. uint32_t drf_dll_half_mode_f3 : 1; // [1]
  1103. uint32_t drf_dll_satu_mode_f3 : 1; // [2]
  1104. uint32_t __31_3 : 29; // [31:3]
  1105. } b;
  1106. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_MODE_F3_T;
  1107. // psram_drf_cfg_dll_cnt_f3
  1108. typedef union {
  1109. uint32_t v;
  1110. struct
  1111. {
  1112. uint32_t drf_dll_init_cnt_f3 : 10; // [9:0]
  1113. uint32_t drf_dll_satu_cnt_f3 : 10; // [19:10]
  1114. uint32_t drf_dll_auto_cnt_f3 : 10; // [29:20]
  1115. uint32_t __31_30 : 2; // [31:30]
  1116. } b;
  1117. } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_CNT_F3_T;
  1118. // psram_drf_format_control
  1119. typedef union {
  1120. uint32_t v;
  1121. struct
  1122. {
  1123. uint32_t drf_memory_burst : 2; // [1:0]
  1124. uint32_t __31_2 : 30; // [31:2]
  1125. } b;
  1126. } REG_PSRAM_PHY_PSRAM_DRF_FORMAT_CONTROL_T;
  1127. // psram_drf_t_rcd
  1128. typedef union {
  1129. uint32_t v;
  1130. struct
  1131. {
  1132. uint32_t drf_t_rcd : 4; // [3:0]
  1133. uint32_t __31_4 : 28; // [31:4]
  1134. } b;
  1135. } REG_PSRAM_PHY_PSRAM_DRF_T_RCD_T;
  1136. // psram_drf_t_rddata_en
  1137. typedef union {
  1138. uint32_t v;
  1139. struct
  1140. {
  1141. uint32_t drf_t_rddata_en : 4; // [3:0]
  1142. uint32_t __31_4 : 28; // [31:4]
  1143. } b;
  1144. } REG_PSRAM_PHY_PSRAM_DRF_T_RDDATA_EN_T;
  1145. // psram_drf_t_phywrlat
  1146. typedef union {
  1147. uint32_t v;
  1148. struct
  1149. {
  1150. uint32_t drf_t_phywrlat : 4; // [3:0]
  1151. uint32_t __31_4 : 28; // [31:4]
  1152. } b;
  1153. } REG_PSRAM_PHY_PSRAM_DRF_T_PHYWRLAT_T;
  1154. // psram_drf_t_cph_wr
  1155. typedef union {
  1156. uint32_t v;
  1157. struct
  1158. {
  1159. uint32_t drf_t_cph_wr : 4; // [3:0]
  1160. uint32_t __31_4 : 28; // [31:4]
  1161. } b;
  1162. } REG_PSRAM_PHY_PSRAM_DRF_T_CPH_WR_T;
  1163. // psram_drf_t_cph_rd
  1164. typedef union {
  1165. uint32_t v;
  1166. struct
  1167. {
  1168. uint32_t drf_t_cph_rd : 3; // [2:0]
  1169. uint32_t __3_3 : 1; // [3]
  1170. uint32_t drf_t_cph_rd_optm : 1; // [4]
  1171. uint32_t __31_5 : 27; // [31:5]
  1172. } b;
  1173. } REG_PSRAM_PHY_PSRAM_DRF_T_CPH_RD_T;
  1174. // psram_drf_t_data_oe_ext
  1175. typedef union {
  1176. uint32_t v;
  1177. struct
  1178. {
  1179. uint32_t drf_t_data_oe_wdata_ext : 4; // [3:0]
  1180. uint32_t drf_t_data_oe_cmd_ext : 4; // [7:4]
  1181. uint32_t __31_8 : 24; // [31:8]
  1182. } b;
  1183. } REG_PSRAM_PHY_PSRAM_DRF_T_DATA_OE_EXT_T;
  1184. // psram_drf_t_dqs_oe_ext
  1185. typedef union {
  1186. uint32_t v;
  1187. struct
  1188. {
  1189. uint32_t drf_t_dqs_oe_ext : 4; // [3:0]
  1190. uint32_t __31_4 : 28; // [31:4]
  1191. } b;
  1192. } REG_PSRAM_PHY_PSRAM_DRF_T_DQS_OE_EXT_T;
  1193. // psram_drf_t_xphs
  1194. typedef union {
  1195. uint32_t v;
  1196. struct
  1197. {
  1198. uint32_t drf_t_xphs : 5; // [4:0]
  1199. uint32_t __31_5 : 27; // [31:5]
  1200. } b;
  1201. } REG_PSRAM_PHY_PSRAM_DRF_T_XPHS_T;
  1202. // psram_drf_t_rddata_vld_sync
  1203. typedef union {
  1204. uint32_t v;
  1205. struct
  1206. {
  1207. uint32_t drf_t_rddata_vld_sync : 3; // [2:0]
  1208. uint32_t __31_3 : 29; // [31:3]
  1209. } b;
  1210. } REG_PSRAM_PHY_PSRAM_DRF_T_RDDATA_VLD_SYNC_T;
  1211. // psram_drf_t_rddata_late
  1212. typedef union {
  1213. uint32_t v;
  1214. struct
  1215. {
  1216. uint32_t drf_t_rddata_late : 5; // [4:0]
  1217. uint32_t __31_5 : 27; // [31:5]
  1218. } b;
  1219. } REG_PSRAM_PHY_PSRAM_DRF_T_RDDATA_LATE_T;
  1220. // psram_drf_t_rddata_valid_early
  1221. typedef union {
  1222. uint32_t v;
  1223. struct
  1224. {
  1225. uint32_t drf_t_rddata_valid_early : 2; // [1:0]
  1226. uint32_t __31_2 : 30; // [31:2]
  1227. } b;
  1228. } REG_PSRAM_PHY_PSRAM_DRF_T_RDDATA_VALID_EARLY_T;
  1229. // drf_t_wb_rst
  1230. typedef union {
  1231. uint32_t v;
  1232. struct
  1233. {
  1234. uint32_t drf_t_wb_rh_rst : 6; // [5:0]
  1235. uint32_t __7_6 : 2; // [7:6]
  1236. uint32_t drf_t_wb_rp_rst : 6; // [13:8]
  1237. uint32_t __31_14 : 18; // [31:14]
  1238. } b;
  1239. } REG_PSRAM_PHY_DRF_T_WB_RST_T;
  1240. // psram_drf_train_cfg
  1241. typedef union {
  1242. uint32_t v;
  1243. struct
  1244. {
  1245. uint32_t drf_phyupd_en : 1; // [0]
  1246. uint32_t drf_phyupd_type_sel : 2; // [2:1]
  1247. uint32_t __3_3 : 1; // [3]
  1248. uint32_t drf_phyupd_type_0 : 2; // [5:4]
  1249. uint32_t drf_phyupd_type_1 : 2; // [7:6]
  1250. uint32_t drf_phyupd_type_2 : 2; // [9:8]
  1251. uint32_t drf_phyupd_type_3 : 2; // [11:10]
  1252. uint32_t drf_phy_wrlvl_en : 1; // [12]
  1253. uint32_t drf_dmc_wrlvl_en : 1; // [13]
  1254. uint32_t __15_14 : 2; // [15:14]
  1255. uint32_t drf_phy_rdlvl_en : 1; // [16]
  1256. uint32_t drf_dmc_rdlvl_en : 1; // [17]
  1257. uint32_t __19_18 : 2; // [19:18]
  1258. uint32_t drf_phy_rdlvl_gate_en : 1; // [20]
  1259. uint32_t drf_dmc_rdlvl_gate_en : 1; // [21]
  1260. uint32_t __31_22 : 10; // [31:22]
  1261. } b;
  1262. } REG_PSRAM_PHY_PSRAM_DRF_TRAIN_CFG_T;
  1263. // psram_drf_mr_data_en
  1264. typedef union {
  1265. uint32_t v;
  1266. struct
  1267. {
  1268. uint32_t drf_mr_data_en : 1; // [0]
  1269. uint32_t __31_1 : 31; // [31:1]
  1270. } b;
  1271. } REG_PSRAM_PHY_PSRAM_DRF_MR_DATA_EN_T;
  1272. // psram_rf_irq_ctrl
  1273. typedef union {
  1274. uint32_t v;
  1275. struct
  1276. {
  1277. uint32_t rf_irq_en_dll_unlock_ads0 : 1; // [0]
  1278. uint32_t rf_irq_en_dll_unlock_ads1 : 1; // [1]
  1279. uint32_t __3_2 : 2; // [3:2]
  1280. uint32_t rf_irq_en_rddata_timeout_ads0 : 1; // [4]
  1281. uint32_t rf_irq_en_rddata_timeout_ads1 : 1; // [5]
  1282. uint32_t __7_6 : 2; // [7:6]
  1283. uint32_t rf_irq_en_disc_rst_ads0 : 1; // [8]
  1284. uint32_t rf_irq_en_disc_mrw_ads0 : 1; // [9]
  1285. uint32_t rf_irq_en_disc_mrr_ads0 : 1; // [10]
  1286. uint32_t rf_irq_en_disc_wr_ads0 : 1; // [11]
  1287. uint32_t rf_irq_en_disc_rd_ads0 : 1; // [12]
  1288. uint32_t __15_13 : 3; // [15:13]
  1289. uint32_t rf_irq_en_disc_rst_ads1 : 1; // [16]
  1290. uint32_t rf_irq_en_disc_mrw_ads1 : 1; // [17]
  1291. uint32_t rf_irq_en_disc_mrr_ads1 : 1; // [18]
  1292. uint32_t rf_irq_en_disc_wr_ads1 : 1; // [19]
  1293. uint32_t rf_irq_en_disc_rd_ads1 : 1; // [20]
  1294. uint32_t __31_21 : 11; // [31:21]
  1295. } b;
  1296. } REG_PSRAM_PHY_PSRAM_RF_IRQ_CTRL_T;
  1297. // psram_rf_irq_status_clr
  1298. typedef union {
  1299. uint32_t v;
  1300. struct
  1301. {
  1302. uint32_t rf_irq_st_clr_dll_unlock_ads0 : 1; // [0]
  1303. uint32_t rf_irq_st_clr_dll_unlock_ads1 : 1; // [1]
  1304. uint32_t __3_2 : 2; // [3:2]
  1305. uint32_t rf_irq_st_clr_rddata_timeout_ads0 : 1; // [4]
  1306. uint32_t rf_irq_st_clr_rddata_timeout_ads1 : 1; // [5]
  1307. uint32_t __7_6 : 2; // [7:6]
  1308. uint32_t rf_irq_st_clr_disc_rst_ads0 : 1; // [8]
  1309. uint32_t rf_irq_st_clr_disc_mrw_ads0 : 1; // [9]
  1310. uint32_t rf_irq_st_clr_disc_mrr_ads0 : 1; // [10]
  1311. uint32_t rf_irq_st_clr_disc_wr_ads0 : 1; // [11]
  1312. uint32_t rf_irq_st_clr_disc_rd_ads0 : 1; // [12]
  1313. uint32_t __15_13 : 3; // [15:13]
  1314. uint32_t rf_irq_st_clr_disc_rst_ads1 : 1; // [16]
  1315. uint32_t rf_irq_st_clr_disc_mrw_ads1 : 1; // [17]
  1316. uint32_t rf_irq_st_clr_disc_mrr_ads1 : 1; // [18]
  1317. uint32_t rf_irq_st_clr_disc_wr_ads1 : 1; // [19]
  1318. uint32_t rf_irq_st_clr_disc_rd_ads1 : 1; // [20]
  1319. uint32_t __31_21 : 11; // [31:21]
  1320. } b;
  1321. } REG_PSRAM_PHY_PSRAM_RF_IRQ_STATUS_CLR_T;
  1322. // psram_rf_irq_status
  1323. typedef union {
  1324. uint32_t v;
  1325. struct
  1326. {
  1327. uint32_t rf_irq_st_dll_unlock_ads0 : 1; // [0], read only
  1328. uint32_t rf_irq_st_dll_unlock_ads1 : 1; // [1], read only
  1329. uint32_t __3_2 : 2; // [3:2]
  1330. uint32_t rf_irq_st_rddata_timeout_ads0 : 1; // [4], read only
  1331. uint32_t rf_irq_st_rddata_timeout_ads1 : 1; // [5], read only
  1332. uint32_t __7_6 : 2; // [7:6]
  1333. uint32_t rf_irq_st_disc_rst_ads0 : 1; // [8], read only
  1334. uint32_t rf_irq_st_disc_mrw_ads0 : 1; // [9], read only
  1335. uint32_t rf_irq_st_disc_mrr_ads0 : 1; // [10], read only
  1336. uint32_t rf_irq_st_disc_wr_ads0 : 1; // [11], read only
  1337. uint32_t rf_irq_st_disc_rd_ads0 : 1; // [12], read only
  1338. uint32_t __15_13 : 3; // [15:13]
  1339. uint32_t rf_irq_st_disc_rst_ads1 : 1; // [16], read only
  1340. uint32_t rf_irq_st_disc_mrw_ads1 : 1; // [17], read only
  1341. uint32_t rf_irq_st_disc_mrr_ads1 : 1; // [18], read only
  1342. uint32_t rf_irq_st_disc_wr_ads1 : 1; // [19], read only
  1343. uint32_t rf_irq_st_disc_rd_ads1 : 1; // [20], read only
  1344. uint32_t __31_21 : 11; // [31:21]
  1345. } b;
  1346. } REG_PSRAM_PHY_PSRAM_RF_IRQ_STATUS_T;
  1347. // psram_rf_irq_cnt_clr
  1348. typedef union {
  1349. uint32_t v;
  1350. struct
  1351. {
  1352. uint32_t rf_irq_cnt_clr_dll_unlock_ads0 : 1; // [0]
  1353. uint32_t rf_irq_cnt_clr_dll_unlock_ads1 : 1; // [1]
  1354. uint32_t __31_2 : 30; // [31:2]
  1355. } b;
  1356. } REG_PSRAM_PHY_PSRAM_RF_IRQ_CNT_CLR_T;
  1357. // psram_rf_irq_cnt_dll_unlock_ads0
  1358. typedef union {
  1359. uint32_t v;
  1360. struct
  1361. {
  1362. uint32_t rf_irq_cnt_dll_unlock_ads0 : 31; // [30:0], read only
  1363. uint32_t rf_irq_cnt_overflow_dll_unlock_ads0 : 1; // [31], read only
  1364. } b;
  1365. } REG_PSRAM_PHY_PSRAM_RF_IRQ_CNT_DLL_UNLOCK_ADS0_T;
  1366. // psram_rf_irq_cnt_dll_unlock_ads1
  1367. typedef union {
  1368. uint32_t v;
  1369. struct
  1370. {
  1371. uint32_t rf_irq_cnt_dll_unlock_ads1 : 31; // [30:0], read only
  1372. uint32_t rf_irq_cnt_overflow_dll_unlock_ads1 : 1; // [31], read only
  1373. } b;
  1374. } REG_PSRAM_PHY_PSRAM_RF_IRQ_CNT_DLL_UNLOCK_ADS1_T;
  1375. // io_rf_psram_drv_cfg
  1376. typedef union {
  1377. uint32_t v;
  1378. struct
  1379. {
  1380. uint32_t psram_fix_read0 : 1; // [0]
  1381. uint32_t psram_slewrate : 2; // [2:1]
  1382. uint32_t psram_drvp : 5; // [7:3]
  1383. uint32_t psram_drvn : 5; // [12:8]
  1384. uint32_t __31_13 : 19; // [31:13]
  1385. } b;
  1386. } REG_PSRAM_PHY_IO_RF_PSRAM_DRV_CFG_T;
  1387. // io_rf_psram_pad_en_cfg
  1388. typedef union {
  1389. uint32_t v;
  1390. struct
  1391. {
  1392. uint32_t psram_pad_clkn_en : 1; // [0]
  1393. uint32_t __31_1 : 31; // [31:1]
  1394. } b;
  1395. } REG_PSRAM_PHY_IO_RF_PSRAM_PAD_EN_CFG_T;
  1396. // io_rf_psram_pull_cfg
  1397. typedef union {
  1398. uint32_t v;
  1399. struct
  1400. {
  1401. uint32_t psram_dqs_pull0_bit : 2; // [1:0]
  1402. uint32_t psram_dq_pull0_bit : 2; // [3:2]
  1403. uint32_t psram_dm_pull1_bit : 2; // [5:4]
  1404. uint32_t psram_clkn_pull1_bit : 2; // [7:6]
  1405. uint32_t psram_clk_pull0_bit : 2; // [9:8]
  1406. uint32_t psram_cen_pull1_bit : 2; // [11:10]
  1407. uint32_t __31_12 : 20; // [31:12]
  1408. } b;
  1409. } REG_PSRAM_PHY_IO_RF_PSRAM_PULL_CFG_T;
  1410. // psram_rf_cfg_phy
  1411. #define PSRAM_PHY_RF_PHY_EN (1 << 0)
  1412. #define PSRAM_PHY_RF_PHY_INIT_COMPLETE (1 << 1)
  1413. // psram_rf_cfg_clock_gate
  1414. #define PSRAM_PHY_RF_CLK_GATE_EN (1 << 0)
  1415. #define PSRAM_PHY_RF_CLK_GATE_FG_EN (1 << 1)
  1416. #define PSRAM_PHY_RF_CLK_GATE_AG_EN (1 << 2)
  1417. #define PSRAM_PHY_RF_CLK_GATE_AG_WR_EN (1 << 3)
  1418. #define PSRAM_PHY_RF_CLK_GATE_AG_RD_EN (1 << 4)
  1419. // psram_rf_cfg_lpi
  1420. #define PSRAM_PHY_RF_LPI_SEL_M0 (1 << 0)
  1421. #define PSRAM_PHY_RF_CWAKEUP_M0 (1 << 1)
  1422. #define PSRAM_PHY_RF_CWAKEUP_S0 (1 << 2)
  1423. // psram_rf_cfg_psram_type
  1424. #define PSRAM_PHY_RF_WB_SEL (1 << 0)
  1425. #define PSRAM_PHY_RF_AP256_SEL (1 << 1)
  1426. #define PSRAM_PHY_RF_DATAX16_SEL (1 << 2)
  1427. #define PSRAM_PHY_RF_WB64_256_SEL (1 << 3)
  1428. #define PSRAM_PHY_RF_RWDS_SMPL_TIME(n) (((n)&0x7) << 4)
  1429. #define PSRAM_PHY_RF_WRAPPER_LIMIT (1 << 7)
  1430. #define PSRAM_PHY_RF_LENGTH_LIMIT (1 << 8)
  1431. // psram_rf_wb_mrw_data
  1432. #define PSRAM_PHY_RF_WB_MRW_DATA(n) (((n)&0xffff) << 0)
  1433. // psram_rfdll_cfg_dll
  1434. #define PSRAM_PHY_RFDLL_RESET (1 << 0)
  1435. // psram_rfdll_status_cpst_idle
  1436. #define PSRAM_PHY_RFDL_CPST_ST_IDLE_ADS0 (1 << 0)
  1437. #define PSRAM_PHY_RFDL_CPST_ST_IDLE_ADS1 (1 << 1)
  1438. // psram_rf_status_phy_data_in
  1439. #define PSRAM_PHY_RF_PHY_DATA_IN(n) (((n)&0xffff) << 0)
  1440. // psram_rf_cfg_dll_ads0
  1441. #define PSRAM_PHY_RF_DLL_CLR_ADS0 (1 << 8)
  1442. #define PSRAM_PHY_RF_DLL_AUTO_CLR_EN_ADS0 (1 << 9)
  1443. #define PSRAM_PHY_RF_DL_CPST_EN_ADS0 (1 << 10)
  1444. #define PSRAM_PHY_RF_DL_CPST_START_ADS0 (1 << 11)
  1445. #define PSRAM_PHY_RF_DL_CPST_AUTO_REF_EN_ADS0 (1 << 12)
  1446. #define PSRAM_PHY_RF_DLL_ERR_CLR_ADS0 (1 << 13)
  1447. #define PSRAM_PHY_RF_DLL_CLK_SEL_ADS0 (1 << 14)
  1448. #define PSRAM_PHY_RF_DLL_EN_ADS0 (1 << 15)
  1449. #define PSRAM_PHY_RF_DL_CPST_THR_ADS0(n) (((n)&0xff) << 16)
  1450. #define PSRAM_PHY_RF_DLL_PD_CNT_ADS0(n) (((n)&0x7) << 24)
  1451. #define PSRAM_PHY_RF_DLL_AUTO_ERR_CLR_EN_ADS0 (1 << 27)
  1452. #define PSRAM_PHY_RF_DLL_LOCK_WAIT_ADS0(n) (((n)&0xf) << 28)
  1453. // psram_rfdll_status_dll_ads0
  1454. #define PSRAM_PHY_RFDLL_CNT_ADS0(n) (((n)&0xff) << 0)
  1455. #define PSRAM_PHY_RFDL_CPST_ST_ADS0 (1 << 24)
  1456. #define PSRAM_PHY_RFDLL_ST_ADS0(n) (((n)&0x7) << 25)
  1457. #define PSRAM_PHY_RFDLL_LOCKED_ADS0 (1 << 28)
  1458. #define PSRAM_PHY_RFDLL_ERROR_ADS0 (1 << 29)
  1459. // psram_rf_cfg_dll_dl_0_wr_ads0
  1460. #define PSRAM_PHY_RF_CLKWR_RAW_DL_SEL_ADS0(n) (((n)&0xff) << 0)
  1461. #define PSRAM_PHY_RFDL_CLKWR_RAW_CNT_ADS0(n) (((n)&0xff) << 8)
  1462. #define PSRAM_PHY_RF_CLKWR_RAW_DL_CPST_OFFSET_ADS0(n) (((n)&0xff) << 16)
  1463. #define PSRAM_PHY_RF_CLKWR_QTR_DL_SEL_ADS0(n) (((n)&0x3) << 24)
  1464. #define PSRAM_PHY_RFDL_CLKWR_QTR_CNT_ADS0(n) (((n)&0x3) << 26)
  1465. #define PSRAM_PHY_RF_CLKWR_QTR_DL_CPST_OFFSET_ADS0(n) (((n)&0x3) << 28)
  1466. #define PSRAM_PHY_RF_CLKWR_DL_CPST_MINUS_ADS0 (1 << 30)
  1467. #define PSRAM_PHY_RF_CLKWR_DL_CPST_EN_ADS0 (1 << 31)
  1468. // psram_rf_cfg_dll_dl_1_wr_ads0
  1469. #define PSRAM_PHY_RF_DQS_IN_POS_RAW_DL_SEL_ADS0(n) (((n)&0xff) << 0)
  1470. #define PSRAM_PHY_RFDL_DQS_IN_POS_RAW_CNT_ADS0(n) (((n)&0xff) << 8)
  1471. #define PSRAM_PHY_RF_DQS_IN_POS_RAW_DL_CPST_OFFSET_ADS0(n) (((n)&0xff) << 16)
  1472. #define PSRAM_PHY_RF_DQS_IN_POS_QTR_DL_SEL_ADS0(n) (((n)&0x3) << 24)
  1473. #define PSRAM_PHY_RFDL_DQS_IN_POS_QTR_CNT_ADS0(n) (((n)&0x3) << 26)
  1474. #define PSRAM_PHY_RF_DQS_IN_POS_QTR_DL_CPST_OFFSET_ADS0(n) (((n)&0x3) << 28)
  1475. #define PSRAM_PHY_RF_DQS_IN_POS_DL_CPST_MINUS_ADS0 (1 << 30)
  1476. #define PSRAM_PHY_RF_DQS_IN_POS_DL_CPST_EN_ADS0 (1 << 31)
  1477. // psram_rf_cfg_dll_dl_2_wr_ads0
  1478. #define PSRAM_PHY_RF_DQS_IN_NEG_RAW_DL_SEL_ADS0(n) (((n)&0xff) << 0)
  1479. #define PSRAM_PHY_RFDL_DQS_IN_NEG_RAW_CNT_ADS0(n) (((n)&0xff) << 8)
  1480. #define PSRAM_PHY_RF_DQS_IN_NEG_RAW_DL_CPST_OFFSET_ADS0(n) (((n)&0xff) << 16)
  1481. #define PSRAM_PHY_RF_DQS_IN_NEG_QTR_DL_SEL_ADS0(n) (((n)&0x3) << 24)
  1482. #define PSRAM_PHY_RFDL_DQS_IN_NEG_QTR_CNT_ADS0(n) (((n)&0x3) << 26)
  1483. #define PSRAM_PHY_RF_DQS_IN_NEG_QTR_DL_CPST_OFFSET_ADS0(n) (((n)&0x3) << 28)
  1484. #define PSRAM_PHY_RF_DQS_IN_NEG_DL_CPST_MINUS_ADS0 (1 << 30)
  1485. #define PSRAM_PHY_RF_DQS_IN_NEG_DL_CPST_EN_ADS0 (1 << 31)
  1486. // psram_rf_cfg_dll_dl_3_wr_ads0
  1487. #define PSRAM_PHY_RF_DQS_GATE_RAW_DL_SEL_ADS0(n) (((n)&0xff) << 0)
  1488. #define PSRAM_PHY_RFDL_DQS_GATE_RAW_CNT_ADS0(n) (((n)&0xff) << 8)
  1489. #define PSRAM_PHY_RF_DQS_GATE_RAW_DL_CPST_OFFSET_ADS0(n) (((n)&0xff) << 16)
  1490. #define PSRAM_PHY_RF_DQS_GATE_QTR_DL_SEL_ADS0(n) (((n)&0x3) << 24)
  1491. #define PSRAM_PHY_RFDL_DQS_GATE_QTR_CNT_ADS0(n) (((n)&0x3) << 26)
  1492. #define PSRAM_PHY_RF_DQS_GATE_QTR_DL_CPST_OFFSET_ADS0(n) (((n)&0x3) << 28)
  1493. #define PSRAM_PHY_RF_DQS_GATE_DL_CPST_MINUS_ADS0 (1 << 30)
  1494. #define PSRAM_PHY_RF_DQS_GATE_DL_CPST_EN_ADS0 (1 << 31)
  1495. // psram_rf_cfg_dll_dl_4_wr_ads0
  1496. #define PSRAM_PHY_RF_DLY_OUT_CLK_DL_SEL_ADS0(n) (((n)&0x1f) << 0)
  1497. #define PSRAM_PHY_RF_DLY_OUT_CEN_DL_SEL_ADS0(n) (((n)&0x1f) << 8)
  1498. // psram_rf_cfg_dll_dl_5_wr_ads0
  1499. #define PSRAM_PHY_RF_DLY_OUT_D0_DL_SEL_ADS0(n) (((n)&0x1f) << 0)
  1500. #define PSRAM_PHY_RF_DLY_OUT_D1_DL_SEL_ADS0(n) (((n)&0x1f) << 8)
  1501. #define PSRAM_PHY_RF_DLY_OUT_D2_DL_SEL_ADS0(n) (((n)&0x1f) << 16)
  1502. #define PSRAM_PHY_RF_DLY_OUT_D3_DL_SEL_ADS0(n) (((n)&0x1f) << 24)
  1503. // psram_rf_cfg_dll_dl_6_wr_ads0
  1504. #define PSRAM_PHY_RF_DLY_OUT_D4_DL_SEL_ADS0(n) (((n)&0x1f) << 0)
  1505. #define PSRAM_PHY_RF_DLY_OUT_D5_DL_SEL_ADS0(n) (((n)&0x1f) << 8)
  1506. #define PSRAM_PHY_RF_DLY_OUT_D6_DL_SEL_ADS0(n) (((n)&0x1f) << 16)
  1507. #define PSRAM_PHY_RF_DLY_OUT_D7_DL_SEL_ADS0(n) (((n)&0x1f) << 24)
  1508. // psram_rf_cfg_dll_dl_7_wr_ads0
  1509. #define PSRAM_PHY_RF_DLY_IN_D0_DL_SEL_ADS0(n) (((n)&0x1f) << 0)
  1510. #define PSRAM_PHY_RF_DLY_IN_D1_DL_SEL_ADS0(n) (((n)&0x1f) << 8)
  1511. #define PSRAM_PHY_RF_DLY_IN_D2_DL_SEL_ADS0(n) (((n)&0x1f) << 16)
  1512. #define PSRAM_PHY_RF_DLY_IN_D3_DL_SEL_ADS0(n) (((n)&0x1f) << 24)
  1513. // psram_rf_cfg_dll_dl_8_wr_ads0
  1514. #define PSRAM_PHY_RF_DLY_IN_D4_DL_SEL_ADS0(n) (((n)&0x1f) << 0)
  1515. #define PSRAM_PHY_RF_DLY_IN_D5_DL_SEL_ADS0(n) (((n)&0x1f) << 8)
  1516. #define PSRAM_PHY_RF_DLY_IN_D6_DL_SEL_ADS0(n) (((n)&0x1f) << 16)
  1517. #define PSRAM_PHY_RF_DLY_IN_D7_DL_SEL_ADS0(n) (((n)&0x1f) << 24)
  1518. // psram_rf_cfg_dll_dl_9_wr_ads0
  1519. #define PSRAM_PHY_RF_DLY_OUT_DQS_DL_SEL_ADS0(n) (((n)&0x1f) << 0)
  1520. #define PSRAM_PHY_RF_DLY_OUT_DQM_DL_SEL_ADS0(n) (((n)&0x1f) << 8)
  1521. #define PSRAM_PHY_RF_DLY_IN_DQS_DL_SEL_ADS0(n) (((n)&0x1f) << 16)
  1522. // psram_rfdll_status_max_cnt_ads0
  1523. #define PSRAM_PHY_RFDLL_MAX_CNT_F0_ADS0(n) (((n)&0xff) << 0)
  1524. #define PSRAM_PHY_RFDLL_MAX_CNT_F1_ADS0(n) (((n)&0xff) << 8)
  1525. #define PSRAM_PHY_RFDLL_MAX_CNT_F2_ADS0(n) (((n)&0xff) << 16)
  1526. #define PSRAM_PHY_RFDLL_MAX_CNT_F3_ADS0(n) (((n)&0xff) << 24)
  1527. // psram_rfdll_status_min_cnt_ads0
  1528. #define PSRAM_PHY_RFDLL_MIN_CNT_F0_ADS0(n) (((n)&0xff) << 0)
  1529. #define PSRAM_PHY_RFDLL_MIN_CNT_F1_ADS0(n) (((n)&0xff) << 8)
  1530. #define PSRAM_PHY_RFDLL_MIN_CNT_F2_ADS0(n) (((n)&0xff) << 16)
  1531. #define PSRAM_PHY_RFDLL_MIN_CNT_F3_ADS0(n) (((n)&0xff) << 24)
  1532. // psram_rf_cfg_phy_iomux_sel_wr_ads0
  1533. #define PSRAM_PHY_RF_PHY_IO_D0_SEL_ADS0 (1 << 0)
  1534. #define PSRAM_PHY_RF_PHY_IO_D1_SEL_ADS0 (1 << 1)
  1535. #define PSRAM_PHY_RF_PHY_IO_D2_SEL_ADS0 (1 << 2)
  1536. #define PSRAM_PHY_RF_PHY_IO_D3_SEL_ADS0 (1 << 3)
  1537. #define PSRAM_PHY_RF_PHY_IO_D4_SEL_ADS0 (1 << 4)
  1538. #define PSRAM_PHY_RF_PHY_IO_D5_SEL_ADS0 (1 << 5)
  1539. #define PSRAM_PHY_RF_PHY_IO_D6_SEL_ADS0 (1 << 6)
  1540. #define PSRAM_PHY_RF_PHY_IO_D7_SEL_ADS0 (1 << 7)
  1541. #define PSRAM_PHY_RF_PHY_IO_DQM_SEL_ADS0 (1 << 8)
  1542. #define PSRAM_PHY_RF_PHY_IO_DQS_SEL_ADS0 (1 << 9)
  1543. #define PSRAM_PHY_RF_PHY_IO_CLK_SEL_ADS0 (1 << 16)
  1544. #define PSRAM_PHY_RF_PHY_IO_CSN_SEL_ADS0 (1 << 20)
  1545. // psram_rf_cfg_phy_iomux_ie_wr_ads0
  1546. #define PSRAM_PHY_RF_PHY_IO_D0_IE_ADS0 (1 << 0)
  1547. #define PSRAM_PHY_RF_PHY_IO_D1_IE_ADS0 (1 << 1)
  1548. #define PSRAM_PHY_RF_PHY_IO_D2_IE_ADS0 (1 << 2)
  1549. #define PSRAM_PHY_RF_PHY_IO_D3_IE_ADS0 (1 << 3)
  1550. #define PSRAM_PHY_RF_PHY_IO_D4_IE_ADS0 (1 << 4)
  1551. #define PSRAM_PHY_RF_PHY_IO_D5_IE_ADS0 (1 << 5)
  1552. #define PSRAM_PHY_RF_PHY_IO_D6_IE_ADS0 (1 << 6)
  1553. #define PSRAM_PHY_RF_PHY_IO_D7_IE_ADS0 (1 << 7)
  1554. #define PSRAM_PHY_RF_PHY_IO_DQM_IE_ADS0 (1 << 8)
  1555. #define PSRAM_PHY_RF_PHY_IO_DQS_IE_ADS0 (1 << 9)
  1556. #define PSRAM_PHY_RF_PHY_IO_CLK_IE_ADS0 (1 << 16)
  1557. #define PSRAM_PHY_RF_PHY_IO_CSN_IE_ADS0 (1 << 20)
  1558. // psram_rf_cfg_phy_iomux_oe_wr_ads0
  1559. #define PSRAM_PHY_RF_PHY_IO_D0_OE_ADS0 (1 << 0)
  1560. #define PSRAM_PHY_RF_PHY_IO_D1_OE_ADS0 (1 << 1)
  1561. #define PSRAM_PHY_RF_PHY_IO_D2_OE_ADS0 (1 << 2)
  1562. #define PSRAM_PHY_RF_PHY_IO_D3_OE_ADS0 (1 << 3)
  1563. #define PSRAM_PHY_RF_PHY_IO_D4_OE_ADS0 (1 << 4)
  1564. #define PSRAM_PHY_RF_PHY_IO_D5_OE_ADS0 (1 << 5)
  1565. #define PSRAM_PHY_RF_PHY_IO_D6_OE_ADS0 (1 << 6)
  1566. #define PSRAM_PHY_RF_PHY_IO_D7_OE_ADS0 (1 << 7)
  1567. #define PSRAM_PHY_RF_PHY_IO_DQM_OE_ADS0 (1 << 8)
  1568. #define PSRAM_PHY_RF_PHY_IO_DQS_OE_ADS0 (1 << 9)
  1569. #define PSRAM_PHY_RF_PHY_IO_CLK_OE_ADS0 (1 << 16)
  1570. #define PSRAM_PHY_RF_PHY_IO_CSN_OE_ADS0 (1 << 20)
  1571. // psram_rf_cfg_phy_iomux_out_wr_ads0
  1572. #define PSRAM_PHY_RF_PHY_IO_D0_OUT_ADS0 (1 << 0)
  1573. #define PSRAM_PHY_RF_PHY_IO_D1_OUT_ADS0 (1 << 1)
  1574. #define PSRAM_PHY_RF_PHY_IO_D2_OUT_ADS0 (1 << 2)
  1575. #define PSRAM_PHY_RF_PHY_IO_D3_OUT_ADS0 (1 << 3)
  1576. #define PSRAM_PHY_RF_PHY_IO_D4_OUT_ADS0 (1 << 4)
  1577. #define PSRAM_PHY_RF_PHY_IO_D5_OUT_ADS0 (1 << 5)
  1578. #define PSRAM_PHY_RF_PHY_IO_D6_OUT_ADS0 (1 << 6)
  1579. #define PSRAM_PHY_RF_PHY_IO_D7_OUT_ADS0 (1 << 7)
  1580. #define PSRAM_PHY_RF_PHY_IO_DQM_OUT_ADS0 (1 << 8)
  1581. #define PSRAM_PHY_RF_PHY_IO_DQS_OUT_ADS0 (1 << 9)
  1582. #define PSRAM_PHY_RF_PHY_IO_CLK_OUT_ADS0 (1 << 16)
  1583. #define PSRAM_PHY_RF_PHY_IO_CSN_OUT_ADS0 (1 << 20)
  1584. // psram_rf_cfg_dll_ads1
  1585. #define PSRAM_PHY_RF_DLL_CLR_ADS1 (1 << 8)
  1586. #define PSRAM_PHY_RF_DLL_AUTO_CLR_EN_ADS1 (1 << 9)
  1587. #define PSRAM_PHY_RF_DL_CPST_EN_ADS1 (1 << 10)
  1588. #define PSRAM_PHY_RF_DL_CPST_START_ADS1 (1 << 11)
  1589. #define PSRAM_PHY_RF_DL_CPST_AUTO_REF_EN_ADS1 (1 << 12)
  1590. #define PSRAM_PHY_RF_DLL_ERR_CLR_ADS1 (1 << 13)
  1591. #define PSRAM_PHY_RF_DLL_CLK_SEL_ADS1 (1 << 14)
  1592. #define PSRAM_PHY_RF_DLL_EN_ADS1 (1 << 15)
  1593. #define PSRAM_PHY_RF_DL_CPST_THR_ADS1(n) (((n)&0xff) << 16)
  1594. #define PSRAM_PHY_RF_DLL_PD_CNT_ADS1(n) (((n)&0x7) << 24)
  1595. #define PSRAM_PHY_RF_DLL_AUTO_ERR_CLR_EN_ADS1 (1 << 27)
  1596. #define PSRAM_PHY_RF_DLL_LOCK_WAIT_ADS1(n) (((n)&0xf) << 28)
  1597. // psram_rfdll_status_dll_ads1
  1598. #define PSRAM_PHY_RFDLL_CNT_ADS1(n) (((n)&0xff) << 0)
  1599. #define PSRAM_PHY_RFDL_CPST_ST_ADS1 (1 << 24)
  1600. #define PSRAM_PHY_RFDLL_ST_ADS1(n) (((n)&0x7) << 25)
  1601. #define PSRAM_PHY_RFDLL_LOCKED_ADS1 (1 << 28)
  1602. #define PSRAM_PHY_RFDLL_ERROR_ADS1 (1 << 29)
  1603. // psram_rf_cfg_dll_dl_0_wr_ads1
  1604. #define PSRAM_PHY_RF_CLKWR_RAW_DL_SEL_ADS1(n) (((n)&0xff) << 0)
  1605. #define PSRAM_PHY_RFDL_CLKWR_RAW_CNT_ADS1(n) (((n)&0xff) << 8)
  1606. #define PSRAM_PHY_RF_CLKWR_RAW_DL_CPST_OFFSET_ADS1(n) (((n)&0xff) << 16)
  1607. #define PSRAM_PHY_RF_CLKWR_QTR_DL_SEL_ADS1(n) (((n)&0x3) << 24)
  1608. #define PSRAM_PHY_RFDL_CLKWR_QTR_CNT_ADS1(n) (((n)&0x3) << 26)
  1609. #define PSRAM_PHY_RF_CLKWR_QTR_DL_CPST_OFFSET_ADS1(n) (((n)&0x3) << 28)
  1610. #define PSRAM_PHY_RF_CLKWR_DL_CPST_MINUS_ADS1 (1 << 30)
  1611. #define PSRAM_PHY_RF_CLKWR_DL_CPST_EN_ADS1 (1 << 31)
  1612. // psram_rf_cfg_dll_dl_1_wr_ads1
  1613. #define PSRAM_PHY_RF_DQS_IN_POS_RAW_DL_SEL_ADS1(n) (((n)&0xff) << 0)
  1614. #define PSRAM_PHY_RFDL_DQS_IN_POS_RAW_CNT_ADS1(n) (((n)&0xff) << 8)
  1615. #define PSRAM_PHY_RF_DQS_IN_POS_RAW_DL_CPST_OFFSET_ADS1(n) (((n)&0xff) << 16)
  1616. #define PSRAM_PHY_RF_DQS_IN_POS_QTR_DL_SEL_ADS1(n) (((n)&0x3) << 24)
  1617. #define PSRAM_PHY_RFDL_DQS_IN_POS_QTR_CNT_ADS1(n) (((n)&0x3) << 26)
  1618. #define PSRAM_PHY_RF_DQS_IN_POS_QTR_DL_CPST_OFFSET_ADS1(n) (((n)&0x3) << 28)
  1619. #define PSRAM_PHY_RF_DQS_IN_POS_DL_CPST_MINUS_ADS1 (1 << 30)
  1620. #define PSRAM_PHY_RF_DQS_IN_POS_DL_CPST_EN_ADS1 (1 << 31)
  1621. // psram_rf_cfg_dll_dl_2_wr_ads1
  1622. #define PSRAM_PHY_RF_DQS_IN_NEG_RAW_DL_SEL_ADS1(n) (((n)&0xff) << 0)
  1623. #define PSRAM_PHY_RFDL_DQS_IN_NEG_RAW_CNT_ADS1(n) (((n)&0xff) << 8)
  1624. #define PSRAM_PHY_RF_DQS_IN_NEG_RAW_DL_CPST_OFFSET_ADS1(n) (((n)&0xff) << 16)
  1625. #define PSRAM_PHY_RF_DQS_IN_NEG_QTR_DL_SEL_ADS1(n) (((n)&0x3) << 24)
  1626. #define PSRAM_PHY_RFDL_DQS_IN_NEG_QTR_CNT_ADS1(n) (((n)&0x3) << 26)
  1627. #define PSRAM_PHY_RF_DQS_IN_NEG_QTR_DL_CPST_OFFSET_ADS1(n) (((n)&0x3) << 28)
  1628. #define PSRAM_PHY_RF_DQS_IN_NEG_DL_CPST_MINUS_ADS1 (1 << 30)
  1629. #define PSRAM_PHY_RF_DQS_IN_NEG_DL_CPST_EN_ADS1 (1 << 31)
  1630. // psram_rf_cfg_dll_dl_3_wr_ads1
  1631. #define PSRAM_PHY_RF_DQS_GATE_RAW_DL_SEL_ADS1(n) (((n)&0xff) << 0)
  1632. #define PSRAM_PHY_RFDL_DQS_GATE_RAW_CNT_ADS1(n) (((n)&0xff) << 8)
  1633. #define PSRAM_PHY_RF_DQS_GATE_RAW_DL_CPST_OFFSET_ADS1(n) (((n)&0xff) << 16)
  1634. #define PSRAM_PHY_RF_DQS_GATE_QTR_DL_SEL_ADS1(n) (((n)&0x3) << 24)
  1635. #define PSRAM_PHY_RFDL_DQS_GATE_QTR_CNT_ADS1(n) (((n)&0x3) << 26)
  1636. #define PSRAM_PHY_RF_DQS_GATE_QTR_DL_CPST_OFFSET_ADS1(n) (((n)&0x3) << 28)
  1637. #define PSRAM_PHY_RF_DQS_GATE_DL_CPST_MINUS_ADS1 (1 << 30)
  1638. #define PSRAM_PHY_RF_DQS_GATE_DL_CPST_EN_ADS1 (1 << 31)
  1639. // psram_rf_cfg_dll_dl_4_wr_ads1
  1640. #define PSRAM_PHY_RF_DLY_OUT_CLK_DL_SEL_ADS1(n) (((n)&0x1f) << 0)
  1641. #define PSRAM_PHY_RF_DLY_OUT_CEN_DL_SEL_ADS1(n) (((n)&0x1f) << 8)
  1642. // psram_rf_cfg_dll_dl_5_wr_ads1
  1643. #define PSRAM_PHY_RF_DLY_OUT_D0_DL_SEL_ADS1(n) (((n)&0x1f) << 0)
  1644. #define PSRAM_PHY_RF_DLY_OUT_D1_DL_SEL_ADS1(n) (((n)&0x1f) << 8)
  1645. #define PSRAM_PHY_RF_DLY_OUT_D2_DL_SEL_ADS1(n) (((n)&0x1f) << 16)
  1646. #define PSRAM_PHY_RF_DLY_OUT_D3_DL_SEL_ADS1(n) (((n)&0x1f) << 24)
  1647. // psram_rf_cfg_dll_dl_6_wr_ads1
  1648. #define PSRAM_PHY_RF_DLY_OUT_D4_DL_SEL_ADS1(n) (((n)&0x1f) << 0)
  1649. #define PSRAM_PHY_RF_DLY_OUT_D5_DL_SEL_ADS1(n) (((n)&0x1f) << 8)
  1650. #define PSRAM_PHY_RF_DLY_OUT_D6_DL_SEL_ADS1(n) (((n)&0x1f) << 16)
  1651. #define PSRAM_PHY_RF_DLY_OUT_D7_DL_SEL_ADS1(n) (((n)&0x1f) << 24)
  1652. // psram_rf_cfg_dll_dl_7_wr_ads1
  1653. #define PSRAM_PHY_RF_DLY_IN_D0_DL_SEL_ADS1(n) (((n)&0x1f) << 0)
  1654. #define PSRAM_PHY_RF_DLY_IN_D1_DL_SEL_ADS1(n) (((n)&0x1f) << 8)
  1655. #define PSRAM_PHY_RF_DLY_IN_D2_DL_SEL_ADS1(n) (((n)&0x1f) << 16)
  1656. #define PSRAM_PHY_RF_DLY_IN_D3_DL_SEL_ADS1(n) (((n)&0x1f) << 24)
  1657. // psram_rf_cfg_dll_dl_8_wr_ads1
  1658. #define PSRAM_PHY_RF_DLY_IN_D4_DL_SEL_ADS1(n) (((n)&0x1f) << 0)
  1659. #define PSRAM_PHY_RF_DLY_IN_D5_DL_SEL_ADS1(n) (((n)&0x1f) << 8)
  1660. #define PSRAM_PHY_RF_DLY_IN_D6_DL_SEL_ADS1(n) (((n)&0x1f) << 16)
  1661. #define PSRAM_PHY_RF_DLY_IN_D7_DL_SEL_ADS1(n) (((n)&0x1f) << 24)
  1662. // psram_rf_cfg_dll_dl_9_wr_ads1
  1663. #define PSRAM_PHY_RF_DLY_OUT_DQS_DL_SEL_ADS1(n) (((n)&0x1f) << 0)
  1664. #define PSRAM_PHY_RF_DLY_OUT_DQM_DL_SEL_ADS1(n) (((n)&0x1f) << 8)
  1665. #define PSRAM_PHY_RF_DLY_IN_DQS_DL_SEL_ADS1(n) (((n)&0x1f) << 16)
  1666. // psram_rfdll_status_max_cnt_ads1
  1667. #define PSRAM_PHY_RFDLL_MAX_CNT_F0_ADS1(n) (((n)&0xff) << 0)
  1668. #define PSRAM_PHY_RFDLL_MAX_CNT_F1_ADS1(n) (((n)&0xff) << 8)
  1669. #define PSRAM_PHY_RFDLL_MAX_CNT_F2_ADS1(n) (((n)&0xff) << 16)
  1670. #define PSRAM_PHY_RFDLL_MAX_CNT_F3_ADS1(n) (((n)&0xff) << 24)
  1671. // psram_rfdll_status_min_cnt_ads1
  1672. #define PSRAM_PHY_RFDLL_MIN_CNT_F0_ADS1(n) (((n)&0xff) << 0)
  1673. #define PSRAM_PHY_RFDLL_MIN_CNT_F1_ADS1(n) (((n)&0xff) << 8)
  1674. #define PSRAM_PHY_RFDLL_MIN_CNT_F2_ADS1(n) (((n)&0xff) << 16)
  1675. #define PSRAM_PHY_RFDLL_MIN_CNT_F3_ADS1(n) (((n)&0xff) << 24)
  1676. // psram_rf_cfg_phy_iomux_sel_wr_ads1
  1677. #define PSRAM_PHY_RF_PHY_IO_D0_SEL_ADS1 (1 << 0)
  1678. #define PSRAM_PHY_RF_PHY_IO_D1_SEL_ADS1 (1 << 1)
  1679. #define PSRAM_PHY_RF_PHY_IO_D2_SEL_ADS1 (1 << 2)
  1680. #define PSRAM_PHY_RF_PHY_IO_D3_SEL_ADS1 (1 << 3)
  1681. #define PSRAM_PHY_RF_PHY_IO_D4_SEL_ADS1 (1 << 4)
  1682. #define PSRAM_PHY_RF_PHY_IO_D5_SEL_ADS1 (1 << 5)
  1683. #define PSRAM_PHY_RF_PHY_IO_D6_SEL_ADS1 (1 << 6)
  1684. #define PSRAM_PHY_RF_PHY_IO_D7_SEL_ADS1 (1 << 7)
  1685. #define PSRAM_PHY_RF_PHY_IO_DQM_SEL_ADS1 (1 << 8)
  1686. #define PSRAM_PHY_RF_PHY_IO_DQS_SEL_ADS1 (1 << 9)
  1687. #define PSRAM_PHY_RF_PHY_IO_CLK_SEL_ADS1 (1 << 16)
  1688. #define PSRAM_PHY_RF_PHY_IO_CSN_SEL_ADS1 (1 << 20)
  1689. // psram_rf_cfg_phy_iomux_ie_wr_ads1
  1690. #define PSRAM_PHY_RF_PHY_IO_D0_IE_ADS1 (1 << 0)
  1691. #define PSRAM_PHY_RF_PHY_IO_D1_IE_ADS1 (1 << 1)
  1692. #define PSRAM_PHY_RF_PHY_IO_D2_IE_ADS1 (1 << 2)
  1693. #define PSRAM_PHY_RF_PHY_IO_D3_IE_ADS1 (1 << 3)
  1694. #define PSRAM_PHY_RF_PHY_IO_D4_IE_ADS1 (1 << 4)
  1695. #define PSRAM_PHY_RF_PHY_IO_D5_IE_ADS1 (1 << 5)
  1696. #define PSRAM_PHY_RF_PHY_IO_D6_IE_ADS1 (1 << 6)
  1697. #define PSRAM_PHY_RF_PHY_IO_D7_IE_ADS1 (1 << 7)
  1698. #define PSRAM_PHY_RF_PHY_IO_DQM_IE_ADS1 (1 << 8)
  1699. #define PSRAM_PHY_RF_PHY_IO_DQS_IE_ADS1 (1 << 9)
  1700. #define PSRAM_PHY_RF_PHY_IO_CLK_IE_ADS1 (1 << 16)
  1701. #define PSRAM_PHY_RF_PHY_IO_CSN_IE_ADS1 (1 << 20)
  1702. // psram_rf_cfg_phy_iomux_oe_wr_ads1
  1703. #define PSRAM_PHY_RF_PHY_IO_D0_OE_ADS1 (1 << 0)
  1704. #define PSRAM_PHY_RF_PHY_IO_D1_OE_ADS1 (1 << 1)
  1705. #define PSRAM_PHY_RF_PHY_IO_D2_OE_ADS1 (1 << 2)
  1706. #define PSRAM_PHY_RF_PHY_IO_D3_OE_ADS1 (1 << 3)
  1707. #define PSRAM_PHY_RF_PHY_IO_D4_OE_ADS1 (1 << 4)
  1708. #define PSRAM_PHY_RF_PHY_IO_D5_OE_ADS1 (1 << 5)
  1709. #define PSRAM_PHY_RF_PHY_IO_D6_OE_ADS1 (1 << 6)
  1710. #define PSRAM_PHY_RF_PHY_IO_D7_OE_ADS1 (1 << 7)
  1711. #define PSRAM_PHY_RF_PHY_IO_DQM_OE_ADS1 (1 << 8)
  1712. #define PSRAM_PHY_RF_PHY_IO_DQS_OE_ADS1 (1 << 9)
  1713. #define PSRAM_PHY_RF_PHY_IO_CLK_OE_ADS1 (1 << 16)
  1714. #define PSRAM_PHY_RF_PHY_IO_CSN_OE_ADS1 (1 << 20)
  1715. // psram_rf_cfg_phy_iomux_out_wr_ads1
  1716. #define PSRAM_PHY_RF_PHY_IO_D0_OUT_ADS1 (1 << 0)
  1717. #define PSRAM_PHY_RF_PHY_IO_D1_OUT_ADS1 (1 << 1)
  1718. #define PSRAM_PHY_RF_PHY_IO_D2_OUT_ADS1 (1 << 2)
  1719. #define PSRAM_PHY_RF_PHY_IO_D3_OUT_ADS1 (1 << 3)
  1720. #define PSRAM_PHY_RF_PHY_IO_D4_OUT_ADS1 (1 << 4)
  1721. #define PSRAM_PHY_RF_PHY_IO_D5_OUT_ADS1 (1 << 5)
  1722. #define PSRAM_PHY_RF_PHY_IO_D6_OUT_ADS1 (1 << 6)
  1723. #define PSRAM_PHY_RF_PHY_IO_D7_OUT_ADS1 (1 << 7)
  1724. #define PSRAM_PHY_RF_PHY_IO_DQM_OUT_ADS1 (1 << 8)
  1725. #define PSRAM_PHY_RF_PHY_IO_DQS_OUT_ADS1 (1 << 9)
  1726. #define PSRAM_PHY_RF_PHY_IO_CLK_OUT_ADS1 (1 << 16)
  1727. #define PSRAM_PHY_RF_PHY_IO_CSN_OUT_ADS1 (1 << 20)
  1728. // psram_drf_cfg
  1729. #define PSRAM_PHY_DRF_CLKDMEM_OUT_SEL (1 << 0)
  1730. // psram_drf_cfg_reg_sel
  1731. #define PSRAM_PHY_DRF_REG_SEL(n) (((n)&0x3) << 0)
  1732. // psram_drf_cfg_dqs_ie_sel_f0
  1733. #define PSRAM_PHY_DRF_DQS_IE_SEL_F0(n) (((n)&0xffff) << 0)
  1734. // psram_drf_cfg_dqs_oe_sel_f0
  1735. #define PSRAM_PHY_DRF_DQS_OE_SEL_F0(n) (((n)&0xffff) << 0)
  1736. // psram_drf_cfg_dqs_out_sel_f0
  1737. #define PSRAM_PHY_DRF_DQS_OUT_SEL_F0(n) (((n)&0xffff) << 0)
  1738. // psram_drf_cfg_dqs_gate_sel_f0
  1739. #define PSRAM_PHY_DRF_DQS_GATE_SEL_F0(n) (((n)&0xffff) << 0)
  1740. // psram_drf_cfg_data_ie_sel_f0
  1741. #define PSRAM_PHY_DRF_DATA_IE_SEL_F0(n) (((n)&0xffff) << 0)
  1742. // psram_drf_cfg_data_oe_sel_f0
  1743. #define PSRAM_PHY_DRF_DATA_OE_SEL_F0(n) (((n)&0xffff) << 0)
  1744. // psram_drf_cfg_dqs_ie_sel_f1
  1745. #define PSRAM_PHY_DRF_DQS_IE_SEL_F1(n) (((n)&0xffff) << 0)
  1746. // psram_drf_cfg_dqs_oe_sel_f1
  1747. #define PSRAM_PHY_DRF_DQS_OE_SEL_F1(n) (((n)&0xffff) << 0)
  1748. // psram_drf_cfg_dqs_out_sel_f1
  1749. #define PSRAM_PHY_DRF_DQS_OUT_SEL_F1(n) (((n)&0xffff) << 0)
  1750. // psram_drf_cfg_dqs_gate_sel_f1
  1751. #define PSRAM_PHY_DRF_DQS_GATE_SEL_F1(n) (((n)&0xffff) << 0)
  1752. // psram_drf_cfg_data_ie_sel_f1
  1753. #define PSRAM_PHY_DRF_DATA_IE_SEL_F1(n) (((n)&0xffff) << 0)
  1754. // psram_drf_cfg_data_oe_sel_f1
  1755. #define PSRAM_PHY_DRF_DATA_OE_SEL_F1(n) (((n)&0xffff) << 0)
  1756. // psram_drf_cfg_dqs_ie_sel_f2
  1757. #define PSRAM_PHY_DRF_DQS_IE_SEL_F2(n) (((n)&0xffff) << 0)
  1758. // psram_drf_cfg_dqs_oe_sel_f2
  1759. #define PSRAM_PHY_DRF_DQS_OE_SEL_F2(n) (((n)&0xffff) << 0)
  1760. // psram_drf_cfg_dqs_out_sel_f2
  1761. #define PSRAM_PHY_DRF_DQS_OUT_SEL_F2(n) (((n)&0xffff) << 0)
  1762. // psram_drf_cfg_dqs_gate_sel_f2
  1763. #define PSRAM_PHY_DRF_DQS_GATE_SEL_F2(n) (((n)&0xffff) << 0)
  1764. // psram_drf_cfg_data_ie_sel_f2
  1765. #define PSRAM_PHY_DRF_DATA_IE_SEL_F2(n) (((n)&0xffff) << 0)
  1766. // psram_drf_cfg_data_oe_sel_f2
  1767. #define PSRAM_PHY_DRF_DATA_OE_SEL_F2(n) (((n)&0xffff) << 0)
  1768. // psram_drf_cfg_dqs_ie_sel_f3
  1769. #define PSRAM_PHY_DRF_DQS_IE_SEL_F3(n) (((n)&0xffff) << 0)
  1770. // psram_drf_cfg_dqs_oe_sel_f3
  1771. #define PSRAM_PHY_DRF_DQS_OE_SEL_F3(n) (((n)&0xffff) << 0)
  1772. // psram_drf_cfg_dqs_out_sel_f3
  1773. #define PSRAM_PHY_DRF_DQS_OUT_SEL_F3(n) (((n)&0xffff) << 0)
  1774. // psram_drf_cfg_dqs_gate_sel_f3
  1775. #define PSRAM_PHY_DRF_DQS_GATE_SEL_F3(n) (((n)&0xffff) << 0)
  1776. // psram_drf_cfg_data_ie_sel_f3
  1777. #define PSRAM_PHY_DRF_DATA_IE_SEL_F3(n) (((n)&0xffff) << 0)
  1778. // psram_drf_cfg_data_oe_sel_f3
  1779. #define PSRAM_PHY_DRF_DATA_OE_SEL_F3(n) (((n)&0xffff) << 0)
  1780. // psram_drf_cfg_dll_mode_f0
  1781. #define PSRAM_PHY_DRF_DLL_CLK_MODE_F0 (1 << 0)
  1782. #define PSRAM_PHY_DRF_DLL_HALF_MODE_F0 (1 << 1)
  1783. #define PSRAM_PHY_DRF_DLL_SATU_MODE_F0 (1 << 2)
  1784. // psram_drf_cfg_dll_cnt_f0
  1785. #define PSRAM_PHY_DRF_DLL_INIT_CNT_F0(n) (((n)&0x3ff) << 0)
  1786. #define PSRAM_PHY_DRF_DLL_SATU_CNT_F0(n) (((n)&0x3ff) << 10)
  1787. #define PSRAM_PHY_DRF_DLL_AUTO_CNT_F0(n) (((n)&0x3ff) << 20)
  1788. // psram_drf_cfg_dll_mode_f1
  1789. #define PSRAM_PHY_DRF_DLL_CLK_MODE_F1 (1 << 0)
  1790. #define PSRAM_PHY_DRF_DLL_HALF_MODE_F1 (1 << 1)
  1791. #define PSRAM_PHY_DRF_DLL_SATU_MODE_F1 (1 << 2)
  1792. // psram_drf_cfg_dll_cnt_f1
  1793. #define PSRAM_PHY_DRF_DLL_INIT_CNT_F1(n) (((n)&0x3ff) << 0)
  1794. #define PSRAM_PHY_DRF_DLL_SATU_CNT_F1(n) (((n)&0x3ff) << 10)
  1795. #define PSRAM_PHY_DRF_DLL_AUTO_CNT_F1(n) (((n)&0x3ff) << 20)
  1796. // psram_drf_cfg_dll_mode_f2
  1797. #define PSRAM_PHY_DRF_DLL_CLK_MODE_F2 (1 << 0)
  1798. #define PSRAM_PHY_DRF_DLL_HALF_MODE_F2 (1 << 1)
  1799. #define PSRAM_PHY_DRF_DLL_SATU_MODE_F2 (1 << 2)
  1800. // psram_drf_cfg_dll_cnt_f2
  1801. #define PSRAM_PHY_DRF_DLL_INIT_CNT_F2(n) (((n)&0x3ff) << 0)
  1802. #define PSRAM_PHY_DRF_DLL_SATU_CNT_F2(n) (((n)&0x3ff) << 10)
  1803. #define PSRAM_PHY_DRF_DLL_AUTO_CNT_F2(n) (((n)&0x3ff) << 20)
  1804. // psram_drf_cfg_dll_mode_f3
  1805. #define PSRAM_PHY_DRF_DLL_CLK_MODE_F3 (1 << 0)
  1806. #define PSRAM_PHY_DRF_DLL_HALF_MODE_F3 (1 << 1)
  1807. #define PSRAM_PHY_DRF_DLL_SATU_MODE_F3 (1 << 2)
  1808. // psram_drf_cfg_dll_cnt_f3
  1809. #define PSRAM_PHY_DRF_DLL_INIT_CNT_F3(n) (((n)&0x3ff) << 0)
  1810. #define PSRAM_PHY_DRF_DLL_SATU_CNT_F3(n) (((n)&0x3ff) << 10)
  1811. #define PSRAM_PHY_DRF_DLL_AUTO_CNT_F3(n) (((n)&0x3ff) << 20)
  1812. // psram_drf_format_control
  1813. #define PSRAM_PHY_DRF_MEMORY_BURST(n) (((n)&0x3) << 0)
  1814. // psram_drf_t_rcd
  1815. #define PSRAM_PHY_DRF_T_RCD(n) (((n)&0xf) << 0)
  1816. // psram_drf_t_rddata_en
  1817. #define PSRAM_PHY_DRF_T_RDDATA_EN(n) (((n)&0xf) << 0)
  1818. // psram_drf_t_phywrlat
  1819. #define PSRAM_PHY_DRF_T_PHYWRLAT(n) (((n)&0xf) << 0)
  1820. // psram_drf_t_cph_wr
  1821. #define PSRAM_PHY_DRF_T_CPH_WR(n) (((n)&0xf) << 0)
  1822. // psram_drf_t_cph_rd
  1823. #define PSRAM_PHY_DRF_T_CPH_RD(n) (((n)&0x7) << 0)
  1824. #define PSRAM_PHY_DRF_T_CPH_RD_OPTM (1 << 4)
  1825. // psram_drf_t_data_oe_ext
  1826. #define PSRAM_PHY_DRF_T_DATA_OE_WDATA_EXT(n) (((n)&0xf) << 0)
  1827. #define PSRAM_PHY_DRF_T_DATA_OE_CMD_EXT(n) (((n)&0xf) << 4)
  1828. // psram_drf_t_dqs_oe_ext
  1829. #define PSRAM_PHY_DRF_T_DQS_OE_EXT(n) (((n)&0xf) << 0)
  1830. // psram_drf_t_xphs
  1831. #define PSRAM_PHY_DRF_T_XPHS(n) (((n)&0x1f) << 0)
  1832. // psram_drf_t_rddata_vld_sync
  1833. #define PSRAM_PHY_DRF_T_RDDATA_VLD_SYNC(n) (((n)&0x7) << 0)
  1834. // psram_drf_t_rddata_late
  1835. #define PSRAM_PHY_DRF_T_RDDATA_LATE(n) (((n)&0x1f) << 0)
  1836. // psram_drf_t_rddata_valid_early
  1837. #define PSRAM_PHY_DRF_T_RDDATA_VALID_EARLY(n) (((n)&0x3) << 0)
  1838. // drf_t_wb_rst
  1839. #define PSRAM_PHY_DRF_T_WB_RH_RST(n) (((n)&0x3f) << 0)
  1840. #define PSRAM_PHY_DRF_T_WB_RP_RST(n) (((n)&0x3f) << 8)
  1841. // psram_drf_train_cfg
  1842. #define PSRAM_PHY_DRF_PHYUPD_EN (1 << 0)
  1843. #define PSRAM_PHY_DRF_PHYUPD_TYPE_SEL(n) (((n)&0x3) << 1)
  1844. #define PSRAM_PHY_DRF_PHYUPD_TYPE_0(n) (((n)&0x3) << 4)
  1845. #define PSRAM_PHY_DRF_PHYUPD_TYPE_1(n) (((n)&0x3) << 6)
  1846. #define PSRAM_PHY_DRF_PHYUPD_TYPE_2(n) (((n)&0x3) << 8)
  1847. #define PSRAM_PHY_DRF_PHYUPD_TYPE_3(n) (((n)&0x3) << 10)
  1848. #define PSRAM_PHY_DRF_PHY_WRLVL_EN (1 << 12)
  1849. #define PSRAM_PHY_DRF_DMC_WRLVL_EN (1 << 13)
  1850. #define PSRAM_PHY_DRF_PHY_RDLVL_EN (1 << 16)
  1851. #define PSRAM_PHY_DRF_DMC_RDLVL_EN (1 << 17)
  1852. #define PSRAM_PHY_DRF_PHY_RDLVL_GATE_EN (1 << 20)
  1853. #define PSRAM_PHY_DRF_DMC_RDLVL_GATE_EN (1 << 21)
  1854. // psram_drf_mr_data_en
  1855. #define PSRAM_PHY_DRF_MR_DATA_EN (1 << 0)
  1856. // psram_rf_irq_ctrl
  1857. #define PSRAM_PHY_RF_IRQ_EN_DLL_UNLOCK_ADS0 (1 << 0)
  1858. #define PSRAM_PHY_RF_IRQ_EN_DLL_UNLOCK_ADS1 (1 << 1)
  1859. #define PSRAM_PHY_RF_IRQ_EN_RDDATA_TIMEOUT_ADS0 (1 << 4)
  1860. #define PSRAM_PHY_RF_IRQ_EN_RDDATA_TIMEOUT_ADS1 (1 << 5)
  1861. #define PSRAM_PHY_RF_IRQ_EN_DISC_RST_ADS0 (1 << 8)
  1862. #define PSRAM_PHY_RF_IRQ_EN_DISC_MRW_ADS0 (1 << 9)
  1863. #define PSRAM_PHY_RF_IRQ_EN_DISC_MRR_ADS0 (1 << 10)
  1864. #define PSRAM_PHY_RF_IRQ_EN_DISC_WR_ADS0 (1 << 11)
  1865. #define PSRAM_PHY_RF_IRQ_EN_DISC_RD_ADS0 (1 << 12)
  1866. #define PSRAM_PHY_RF_IRQ_EN_DISC_RST_ADS1 (1 << 16)
  1867. #define PSRAM_PHY_RF_IRQ_EN_DISC_MRW_ADS1 (1 << 17)
  1868. #define PSRAM_PHY_RF_IRQ_EN_DISC_MRR_ADS1 (1 << 18)
  1869. #define PSRAM_PHY_RF_IRQ_EN_DISC_WR_ADS1 (1 << 19)
  1870. #define PSRAM_PHY_RF_IRQ_EN_DISC_RD_ADS1 (1 << 20)
  1871. // psram_rf_irq_status_clr
  1872. #define PSRAM_PHY_RF_IRQ_ST_CLR_DLL_UNLOCK_ADS0 (1 << 0)
  1873. #define PSRAM_PHY_RF_IRQ_ST_CLR_DLL_UNLOCK_ADS1 (1 << 1)
  1874. #define PSRAM_PHY_RF_IRQ_ST_CLR_RDDATA_TIMEOUT_ADS0 (1 << 4)
  1875. #define PSRAM_PHY_RF_IRQ_ST_CLR_RDDATA_TIMEOUT_ADS1 (1 << 5)
  1876. #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_RST_ADS0 (1 << 8)
  1877. #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_MRW_ADS0 (1 << 9)
  1878. #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_MRR_ADS0 (1 << 10)
  1879. #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_WR_ADS0 (1 << 11)
  1880. #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_RD_ADS0 (1 << 12)
  1881. #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_RST_ADS1 (1 << 16)
  1882. #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_MRW_ADS1 (1 << 17)
  1883. #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_MRR_ADS1 (1 << 18)
  1884. #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_WR_ADS1 (1 << 19)
  1885. #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_RD_ADS1 (1 << 20)
  1886. // psram_rf_irq_status
  1887. #define PSRAM_PHY_RF_IRQ_ST_DLL_UNLOCK_ADS0 (1 << 0)
  1888. #define PSRAM_PHY_RF_IRQ_ST_DLL_UNLOCK_ADS1 (1 << 1)
  1889. #define PSRAM_PHY_RF_IRQ_ST_RDDATA_TIMEOUT_ADS0 (1 << 4)
  1890. #define PSRAM_PHY_RF_IRQ_ST_RDDATA_TIMEOUT_ADS1 (1 << 5)
  1891. #define PSRAM_PHY_RF_IRQ_ST_DISC_RST_ADS0 (1 << 8)
  1892. #define PSRAM_PHY_RF_IRQ_ST_DISC_MRW_ADS0 (1 << 9)
  1893. #define PSRAM_PHY_RF_IRQ_ST_DISC_MRR_ADS0 (1 << 10)
  1894. #define PSRAM_PHY_RF_IRQ_ST_DISC_WR_ADS0 (1 << 11)
  1895. #define PSRAM_PHY_RF_IRQ_ST_DISC_RD_ADS0 (1 << 12)
  1896. #define PSRAM_PHY_RF_IRQ_ST_DISC_RST_ADS1 (1 << 16)
  1897. #define PSRAM_PHY_RF_IRQ_ST_DISC_MRW_ADS1 (1 << 17)
  1898. #define PSRAM_PHY_RF_IRQ_ST_DISC_MRR_ADS1 (1 << 18)
  1899. #define PSRAM_PHY_RF_IRQ_ST_DISC_WR_ADS1 (1 << 19)
  1900. #define PSRAM_PHY_RF_IRQ_ST_DISC_RD_ADS1 (1 << 20)
  1901. // psram_rf_irq_cnt_clr
  1902. #define PSRAM_PHY_RF_IRQ_CNT_CLR_DLL_UNLOCK_ADS0 (1 << 0)
  1903. #define PSRAM_PHY_RF_IRQ_CNT_CLR_DLL_UNLOCK_ADS1 (1 << 1)
  1904. // psram_rf_irq_cnt_dll_unlock_ads0
  1905. #define PSRAM_PHY_RF_IRQ_CNT_DLL_UNLOCK_ADS0(n) (((n)&0x7fffffff) << 0)
  1906. #define PSRAM_PHY_RF_IRQ_CNT_OVERFLOW_DLL_UNLOCK_ADS0 (1 << 31)
  1907. // psram_rf_irq_cnt_dll_unlock_ads1
  1908. #define PSRAM_PHY_RF_IRQ_CNT_DLL_UNLOCK_ADS1(n) (((n)&0x7fffffff) << 0)
  1909. #define PSRAM_PHY_RF_IRQ_CNT_OVERFLOW_DLL_UNLOCK_ADS1 (1 << 31)
  1910. // io_rf_psram_drv_cfg
  1911. #define PSRAM_PHY_PSRAM_FIX_READ0 (1 << 0)
  1912. #define PSRAM_PHY_PSRAM_SLEWRATE(n) (((n)&0x3) << 1)
  1913. #define PSRAM_PHY_PSRAM_DRVP(n) (((n)&0x1f) << 3)
  1914. #define PSRAM_PHY_PSRAM_DRVN(n) (((n)&0x1f) << 8)
  1915. // io_rf_psram_pad_en_cfg
  1916. #define PSRAM_PHY_PSRAM_PAD_CLKN_EN (1 << 0)
  1917. // io_rf_psram_pull_cfg
  1918. #define PSRAM_PHY_PSRAM_DQS_PULL0_BIT(n) (((n)&0x3) << 0)
  1919. #define PSRAM_PHY_PSRAM_DQ_PULL0_BIT(n) (((n)&0x3) << 2)
  1920. #define PSRAM_PHY_PSRAM_DM_PULL1_BIT(n) (((n)&0x3) << 4)
  1921. #define PSRAM_PHY_PSRAM_CLKN_PULL1_BIT(n) (((n)&0x3) << 6)
  1922. #define PSRAM_PHY_PSRAM_CLK_PULL0_BIT(n) (((n)&0x3) << 8)
  1923. #define PSRAM_PHY_PSRAM_CEN_PULL1_BIT(n) (((n)&0x3) << 10)
  1924. #endif // _PSRAM_PHY_H_