1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134 |
- /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
- * All rights reserved.
- *
- * This software is supplied "AS IS" without any warranties.
- * RDA assumes no responsibility or liability for the use of the software,
- * conveys no license or title under any patent, copyright, or mask work
- * right to the product. RDA reserves the right to make changes in the
- * software without notification. RDA also make no representation or
- * warranty that such application will be suitable for the specified use
- * without further testing or modification.
- */
- #ifndef _PSRAM_PHY_H_
- #define _PSRAM_PHY_H_
- // Auto generated by dtools(see dtools.txt for its version).
- // Don't edit it manually!
- #define REG_PSRAM_PHY_BASE (0x51601000)
- typedef volatile struct
- {
- uint32_t psram_rf_cfg_phy; // 0x00000000
- uint32_t psram_rf_cfg_clock_gate; // 0x00000004
- uint32_t psram_rf_cfg_lpi; // 0x00000008
- uint32_t psram_rf_cfg_psram_type; // 0x0000000c
- uint32_t psram_rf_wb_mrw_data; // 0x00000010
- uint32_t __20[59]; // 0x00000014
- uint32_t psram_rfdll_cfg_dll; // 0x00000100
- uint32_t psram_rfdll_status_cpst_idle; // 0x00000104
- uint32_t psram_rf_status_phy_data_in; // 0x00000108
- uint32_t __268[61]; // 0x0000010c
- uint32_t psram_rf_cfg_dll_ads0; // 0x00000200
- uint32_t psram_rfdll_status_dll_ads0; // 0x00000204
- uint32_t psram_rf_cfg_dll_dl_0_wr_ads0; // 0x00000208
- uint32_t psram_rf_cfg_dll_dl_1_wr_ads0; // 0x0000020c
- uint32_t psram_rf_cfg_dll_dl_2_wr_ads0; // 0x00000210
- uint32_t psram_rf_cfg_dll_dl_3_wr_ads0; // 0x00000214
- uint32_t psram_rf_cfg_dll_dl_4_wr_ads0; // 0x00000218
- uint32_t psram_rf_cfg_dll_dl_5_wr_ads0; // 0x0000021c
- uint32_t psram_rf_cfg_dll_dl_6_wr_ads0; // 0x00000220
- uint32_t psram_rf_cfg_dll_dl_7_wr_ads0; // 0x00000224
- uint32_t psram_rf_cfg_dll_dl_8_wr_ads0; // 0x00000228
- uint32_t psram_rf_cfg_dll_dl_9_wr_ads0; // 0x0000022c
- uint32_t psram_rfdll_status_max_cnt_ads0; // 0x00000230
- uint32_t psram_rfdll_status_min_cnt_ads0; // 0x00000234
- uint32_t psram_rf_cfg_phy_iomux_sel_wr_ads0; // 0x00000238
- uint32_t psram_rf_cfg_phy_iomux_ie_wr_ads0; // 0x0000023c
- uint32_t psram_rf_cfg_phy_iomux_oe_wr_ads0; // 0x00000240
- uint32_t psram_rf_cfg_phy_iomux_out_wr_ads0; // 0x00000244
- uint32_t __584[46]; // 0x00000248
- uint32_t psram_rf_cfg_dll_ads1; // 0x00000300
- uint32_t psram_rfdll_status_dll_ads1; // 0x00000304
- uint32_t psram_rf_cfg_dll_dl_0_wr_ads1; // 0x00000308
- uint32_t psram_rf_cfg_dll_dl_1_wr_ads1; // 0x0000030c
- uint32_t psram_rf_cfg_dll_dl_2_wr_ads1; // 0x00000310
- uint32_t psram_rf_cfg_dll_dl_3_wr_ads1; // 0x00000314
- uint32_t psram_rf_cfg_dll_dl_4_wr_ads1; // 0x00000318
- uint32_t psram_rf_cfg_dll_dl_5_wr_ads1; // 0x0000031c
- uint32_t psram_rf_cfg_dll_dl_6_wr_ads1; // 0x00000320
- uint32_t psram_rf_cfg_dll_dl_7_wr_ads1; // 0x00000324
- uint32_t psram_rf_cfg_dll_dl_8_wr_ads1; // 0x00000328
- uint32_t psram_rf_cfg_dll_dl_9_wr_ads1; // 0x0000032c
- uint32_t psram_rfdll_status_max_cnt_ads1; // 0x00000330
- uint32_t psram_rfdll_status_min_cnt_ads1; // 0x00000334
- uint32_t psram_rf_cfg_phy_iomux_sel_wr_ads1; // 0x00000338
- uint32_t psram_rf_cfg_phy_iomux_ie_wr_ads1; // 0x0000033c
- uint32_t psram_rf_cfg_phy_iomux_oe_wr_ads1; // 0x00000340
- uint32_t psram_rf_cfg_phy_iomux_out_wr_ads1; // 0x00000344
- uint32_t __840[46]; // 0x00000348
- uint32_t psram_drf_cfg; // 0x00000400
- uint32_t psram_drf_cfg_reg_sel; // 0x00000404
- uint32_t psram_drf_cfg_dqs_ie_sel_f0; // 0x00000408
- uint32_t psram_drf_cfg_dqs_oe_sel_f0; // 0x0000040c
- uint32_t psram_drf_cfg_dqs_out_sel_f0; // 0x00000410
- uint32_t psram_drf_cfg_dqs_gate_sel_f0; // 0x00000414
- uint32_t psram_drf_cfg_data_ie_sel_f0; // 0x00000418
- uint32_t psram_drf_cfg_data_oe_sel_f0; // 0x0000041c
- uint32_t psram_drf_cfg_dqs_ie_sel_f1; // 0x00000420
- uint32_t psram_drf_cfg_dqs_oe_sel_f1; // 0x00000424
- uint32_t psram_drf_cfg_dqs_out_sel_f1; // 0x00000428
- uint32_t psram_drf_cfg_dqs_gate_sel_f1; // 0x0000042c
- uint32_t psram_drf_cfg_data_ie_sel_f1; // 0x00000430
- uint32_t psram_drf_cfg_data_oe_sel_f1; // 0x00000434
- uint32_t psram_drf_cfg_dqs_ie_sel_f2; // 0x00000438
- uint32_t psram_drf_cfg_dqs_oe_sel_f2; // 0x0000043c
- uint32_t psram_drf_cfg_dqs_out_sel_f2; // 0x00000440
- uint32_t psram_drf_cfg_dqs_gate_sel_f2; // 0x00000444
- uint32_t psram_drf_cfg_data_ie_sel_f2; // 0x00000448
- uint32_t psram_drf_cfg_data_oe_sel_f2; // 0x0000044c
- uint32_t psram_drf_cfg_dqs_ie_sel_f3; // 0x00000450
- uint32_t psram_drf_cfg_dqs_oe_sel_f3; // 0x00000454
- uint32_t psram_drf_cfg_dqs_out_sel_f3; // 0x00000458
- uint32_t psram_drf_cfg_dqs_gate_sel_f3; // 0x0000045c
- uint32_t psram_drf_cfg_data_ie_sel_f3; // 0x00000460
- uint32_t psram_drf_cfg_data_oe_sel_f3; // 0x00000464
- uint32_t psram_drf_cfg_dll_mode_f0; // 0x00000468
- uint32_t psram_drf_cfg_dll_cnt_f0; // 0x0000046c
- uint32_t psram_drf_cfg_dll_mode_f1; // 0x00000470
- uint32_t psram_drf_cfg_dll_cnt_f1; // 0x00000474
- uint32_t psram_drf_cfg_dll_mode_f2; // 0x00000478
- uint32_t psram_drf_cfg_dll_cnt_f2; // 0x0000047c
- uint32_t psram_drf_cfg_dll_mode_f3; // 0x00000480
- uint32_t psram_drf_cfg_dll_cnt_f3; // 0x00000484
- uint32_t __1160[30]; // 0x00000488
- uint32_t psram_drf_format_control; // 0x00000500
- uint32_t psram_drf_t_rcd; // 0x00000504
- uint32_t psram_drf_t_rddata_en; // 0x00000508
- uint32_t psram_drf_t_phywrlat; // 0x0000050c
- uint32_t psram_drf_t_cph_wr; // 0x00000510
- uint32_t psram_drf_t_cph_rd; // 0x00000514
- uint32_t psram_drf_t_data_oe_ext; // 0x00000518
- uint32_t psram_drf_t_dqs_oe_ext; // 0x0000051c
- uint32_t psram_drf_t_xphs; // 0x00000520
- uint32_t psram_drf_t_rddata_vld_sync; // 0x00000524
- uint32_t psram_drf_t_rddata_late; // 0x00000528
- uint32_t psram_drf_t_rddata_valid_early; // 0x0000052c
- uint32_t drf_t_wb_rst; // 0x00000530
- uint32_t __1332[51]; // 0x00000534
- uint32_t psram_drf_train_cfg; // 0x00000600
- uint32_t psram_drf_mr_data_en; // 0x00000604
- uint32_t psram_drf_mr_data_0; // 0x00000608
- uint32_t psram_drf_mr_data_1; // 0x0000060c
- uint32_t __1552[60]; // 0x00000610
- uint32_t psram_rf_irq_ctrl; // 0x00000700
- uint32_t psram_rf_irq_status_clr; // 0x00000704
- uint32_t psram_rf_irq_status; // 0x00000708
- uint32_t psram_rf_irq_cnt_clr; // 0x0000070c
- uint32_t psram_rf_irq_cnt_dll_unlock_ads0; // 0x00000710
- uint32_t psram_rf_irq_cnt_dll_unlock_ads1; // 0x00000714
- uint32_t __1816[2]; // 0x00000718
- uint32_t io_rf_psram_drv_cfg; // 0x00000720
- uint32_t io_rf_psram_pad_en_cfg; // 0x00000724
- uint32_t io_rf_psram_pull_cfg; // 0x00000728
- uint32_t io_rf_psram_reserved; // 0x0000072c
- } HWP_PSRAM_PHY_T;
- #define hwp_psramPhy ((HWP_PSRAM_PHY_T *)REG_ACCESS_ADDRESS(REG_PSRAM_PHY_BASE))
- // psram_rf_cfg_phy
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_phy_en : 1; // [0]
- uint32_t rf_phy_init_complete : 1; // [1]
- uint32_t __31_2 : 30; // [31:2]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_T;
- // psram_rf_cfg_clock_gate
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_clk_gate_en : 1; // [0]
- uint32_t rf_clk_gate_fg_en : 1; // [1]
- uint32_t rf_clk_gate_ag_en : 1; // [2]
- uint32_t rf_clk_gate_ag_wr_en : 1; // [3]
- uint32_t rf_clk_gate_ag_rd_en : 1; // [4]
- uint32_t __31_5 : 27; // [31:5]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_CLOCK_GATE_T;
- // psram_rf_cfg_lpi
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_lpi_sel_m0 : 1; // [0]
- uint32_t rf_cwakeup_m0 : 1; // [1]
- uint32_t rf_cwakeup_s0 : 1; // [2]
- uint32_t __31_3 : 29; // [31:3]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_LPI_T;
- // psram_rf_cfg_psram_type
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_wb_sel : 1; // [0]
- uint32_t rf_ap256_sel : 1; // [1]
- uint32_t rf_datax16_sel : 1; // [2]
- uint32_t rf_wb64_256_sel : 1; // [3]
- uint32_t rf_rwds_smpl_time : 3; // [6:4]
- uint32_t rf_wrapper_limit : 1; // [7]
- uint32_t rf_length_limit : 1; // [8]
- uint32_t __31_9 : 23; // [31:9]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_PSRAM_TYPE_T;
- // psram_rf_wb_mrw_data
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_wb_mrw_data : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_WB_MRW_DATA_T;
- // psram_rfdll_cfg_dll
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rfdll_reset : 1; // [0]
- uint32_t __31_1 : 31; // [31:1]
- } b;
- } REG_PSRAM_PHY_PSRAM_RFDLL_CFG_DLL_T;
- // psram_rfdll_status_cpst_idle
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rfdl_cpst_st_idle_ads0 : 1; // [0], read only
- uint32_t rfdl_cpst_st_idle_ads1 : 1; // [1], read only
- uint32_t __31_2 : 30; // [31:2]
- } b;
- } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_CPST_IDLE_T;
- // psram_rf_status_phy_data_in
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_phy_data_in : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_STATUS_PHY_DATA_IN_T;
- // psram_rf_cfg_dll_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t __7_0 : 8; // [7:0]
- uint32_t rf_dll_clr_ads0 : 1; // [8]
- uint32_t rf_dll_auto_clr_en_ads0 : 1; // [9]
- uint32_t rf_dl_cpst_en_ads0 : 1; // [10]
- uint32_t rf_dl_cpst_start_ads0 : 1; // [11]
- uint32_t rf_dl_cpst_auto_ref_en_ads0 : 1; // [12]
- uint32_t rf_dll_err_clr_ads0 : 1; // [13]
- uint32_t rf_dll_clk_sel_ads0 : 1; // [14]
- uint32_t rf_dll_en_ads0 : 1; // [15]
- uint32_t rf_dl_cpst_thr_ads0 : 8; // [23:16]
- uint32_t rf_dll_pd_cnt_ads0 : 3; // [26:24]
- uint32_t rf_dll_auto_err_clr_en_ads0 : 1; // [27]
- uint32_t rf_dll_lock_wait_ads0 : 4; // [31:28]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_ADS0_T;
- // psram_rfdll_status_dll_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rfdll_cnt_ads0 : 8; // [7:0], read only
- uint32_t __23_8 : 16; // [23:8]
- uint32_t rfdl_cpst_st_ads0 : 1; // [24], read only
- uint32_t rfdll_st_ads0 : 3; // [27:25], read only
- uint32_t rfdll_locked_ads0 : 1; // [28], read only
- uint32_t rfdll_error_ads0 : 1; // [29], read only
- uint32_t __31_30 : 2; // [31:30]
- } b;
- } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_DLL_ADS0_T;
- // psram_rf_cfg_dll_dl_0_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_clkwr_raw_dl_sel_ads0 : 8; // [7:0]
- uint32_t rfdl_clkwr_raw_cnt_ads0 : 8; // [15:8], read only
- uint32_t rf_clkwr_raw_dl_cpst_offset_ads0 : 8; // [23:16]
- uint32_t rf_clkwr_qtr_dl_sel_ads0 : 2; // [25:24]
- uint32_t rfdl_clkwr_qtr_cnt_ads0 : 2; // [27:26], read only
- uint32_t rf_clkwr_qtr_dl_cpst_offset_ads0 : 2; // [29:28]
- uint32_t rf_clkwr_dl_cpst_minus_ads0 : 1; // [30]
- uint32_t rf_clkwr_dl_cpst_en_ads0 : 1; // [31]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_0_WR_ADS0_T;
- // psram_rf_cfg_dll_dl_1_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dqs_in_pos_raw_dl_sel_ads0 : 8; // [7:0]
- uint32_t rfdl_dqs_in_pos_raw_cnt_ads0 : 8; // [15:8], read only
- uint32_t rf_dqs_in_pos_raw_dl_cpst_offset_ads0 : 8; // [23:16]
- uint32_t rf_dqs_in_pos_qtr_dl_sel_ads0 : 2; // [25:24]
- uint32_t rfdl_dqs_in_pos_qtr_cnt_ads0 : 2; // [27:26], read only
- uint32_t rf_dqs_in_pos_qtr_dl_cpst_offset_ads0 : 2; // [29:28]
- uint32_t rf_dqs_in_pos_dl_cpst_minus_ads0 : 1; // [30]
- uint32_t rf_dqs_in_pos_dl_cpst_en_ads0 : 1; // [31]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_1_WR_ADS0_T;
- // psram_rf_cfg_dll_dl_2_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dqs_in_neg_raw_dl_sel_ads0 : 8; // [7:0]
- uint32_t rfdl_dqs_in_neg_raw_cnt_ads0 : 8; // [15:8], read only
- uint32_t rf_dqs_in_neg_raw_dl_cpst_offset_ads0 : 8; // [23:16]
- uint32_t rf_dqs_in_neg_qtr_dl_sel_ads0 : 2; // [25:24]
- uint32_t rfdl_dqs_in_neg_qtr_cnt_ads0 : 2; // [27:26], read only
- uint32_t rf_dqs_in_neg_qtr_dl_cpst_offset_ads0 : 2; // [29:28]
- uint32_t rf_dqs_in_neg_dl_cpst_minus_ads0 : 1; // [30]
- uint32_t rf_dqs_in_neg_dl_cpst_en_ads0 : 1; // [31]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_2_WR_ADS0_T;
- // psram_rf_cfg_dll_dl_3_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dqs_gate_raw_dl_sel_ads0 : 8; // [7:0]
- uint32_t rfdl_dqs_gate_raw_cnt_ads0 : 8; // [15:8], read only
- uint32_t rf_dqs_gate_raw_dl_cpst_offset_ads0 : 8; // [23:16]
- uint32_t rf_dqs_gate_qtr_dl_sel_ads0 : 2; // [25:24]
- uint32_t rfdl_dqs_gate_qtr_cnt_ads0 : 2; // [27:26], read only
- uint32_t rf_dqs_gate_qtr_dl_cpst_offset_ads0 : 2; // [29:28]
- uint32_t rf_dqs_gate_dl_cpst_minus_ads0 : 1; // [30]
- uint32_t rf_dqs_gate_dl_cpst_en_ads0 : 1; // [31]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_3_WR_ADS0_T;
- // psram_rf_cfg_dll_dl_4_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dly_out_clk_dl_sel_ads0 : 5; // [4:0]
- uint32_t __7_5 : 3; // [7:5]
- uint32_t rf_dly_out_cen_dl_sel_ads0 : 5; // [12:8]
- uint32_t __31_13 : 19; // [31:13]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_4_WR_ADS0_T;
- // psram_rf_cfg_dll_dl_5_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dly_out_d0_dl_sel_ads0 : 5; // [4:0]
- uint32_t __7_5 : 3; // [7:5]
- uint32_t rf_dly_out_d1_dl_sel_ads0 : 5; // [12:8]
- uint32_t __15_13 : 3; // [15:13]
- uint32_t rf_dly_out_d2_dl_sel_ads0 : 5; // [20:16]
- uint32_t __23_21 : 3; // [23:21]
- uint32_t rf_dly_out_d3_dl_sel_ads0 : 5; // [28:24]
- uint32_t __31_29 : 3; // [31:29]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_5_WR_ADS0_T;
- // psram_rf_cfg_dll_dl_6_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dly_out_d4_dl_sel_ads0 : 5; // [4:0]
- uint32_t __7_5 : 3; // [7:5]
- uint32_t rf_dly_out_d5_dl_sel_ads0 : 5; // [12:8]
- uint32_t __15_13 : 3; // [15:13]
- uint32_t rf_dly_out_d6_dl_sel_ads0 : 5; // [20:16]
- uint32_t __23_21 : 3; // [23:21]
- uint32_t rf_dly_out_d7_dl_sel_ads0 : 5; // [28:24]
- uint32_t __31_29 : 3; // [31:29]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_6_WR_ADS0_T;
- // psram_rf_cfg_dll_dl_7_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dly_in_d0_dl_sel_ads0 : 5; // [4:0]
- uint32_t __7_5 : 3; // [7:5]
- uint32_t rf_dly_in_d1_dl_sel_ads0 : 5; // [12:8]
- uint32_t __15_13 : 3; // [15:13]
- uint32_t rf_dly_in_d2_dl_sel_ads0 : 5; // [20:16]
- uint32_t __23_21 : 3; // [23:21]
- uint32_t rf_dly_in_d3_dl_sel_ads0 : 5; // [28:24]
- uint32_t __31_29 : 3; // [31:29]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_7_WR_ADS0_T;
- // psram_rf_cfg_dll_dl_8_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dly_in_d4_dl_sel_ads0 : 5; // [4:0]
- uint32_t __7_5 : 3; // [7:5]
- uint32_t rf_dly_in_d5_dl_sel_ads0 : 5; // [12:8]
- uint32_t __15_13 : 3; // [15:13]
- uint32_t rf_dly_in_d6_dl_sel_ads0 : 5; // [20:16]
- uint32_t __23_21 : 3; // [23:21]
- uint32_t rf_dly_in_d7_dl_sel_ads0 : 5; // [28:24]
- uint32_t __31_29 : 3; // [31:29]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_8_WR_ADS0_T;
- // psram_rf_cfg_dll_dl_9_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dly_out_dqs_dl_sel_ads0 : 5; // [4:0]
- uint32_t __7_5 : 3; // [7:5]
- uint32_t rf_dly_out_dqm_dl_sel_ads0 : 5; // [12:8]
- uint32_t __15_13 : 3; // [15:13]
- uint32_t rf_dly_in_dqs_dl_sel_ads0 : 5; // [20:16]
- uint32_t __31_21 : 11; // [31:21]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_9_WR_ADS0_T;
- // psram_rfdll_status_max_cnt_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rfdll_max_cnt_f0_ads0 : 8; // [7:0], read only
- uint32_t rfdll_max_cnt_f1_ads0 : 8; // [15:8], read only
- uint32_t rfdll_max_cnt_f2_ads0 : 8; // [23:16], read only
- uint32_t rfdll_max_cnt_f3_ads0 : 8; // [31:24], read only
- } b;
- } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_MAX_CNT_ADS0_T;
- // psram_rfdll_status_min_cnt_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rfdll_min_cnt_f0_ads0 : 8; // [7:0], read only
- uint32_t rfdll_min_cnt_f1_ads0 : 8; // [15:8], read only
- uint32_t rfdll_min_cnt_f2_ads0 : 8; // [23:16], read only
- uint32_t rfdll_min_cnt_f3_ads0 : 8; // [31:24], read only
- } b;
- } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_MIN_CNT_ADS0_T;
- // psram_rf_cfg_phy_iomux_sel_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_phy_io_d0_sel_ads0 : 1; // [0]
- uint32_t rf_phy_io_d1_sel_ads0 : 1; // [1]
- uint32_t rf_phy_io_d2_sel_ads0 : 1; // [2]
- uint32_t rf_phy_io_d3_sel_ads0 : 1; // [3]
- uint32_t rf_phy_io_d4_sel_ads0 : 1; // [4]
- uint32_t rf_phy_io_d5_sel_ads0 : 1; // [5]
- uint32_t rf_phy_io_d6_sel_ads0 : 1; // [6]
- uint32_t rf_phy_io_d7_sel_ads0 : 1; // [7]
- uint32_t rf_phy_io_dqm_sel_ads0 : 1; // [8]
- uint32_t rf_phy_io_dqs_sel_ads0 : 1; // [9]
- uint32_t __15_10 : 6; // [15:10]
- uint32_t rf_phy_io_clk_sel_ads0 : 1; // [16]
- uint32_t __19_17 : 3; // [19:17]
- uint32_t rf_phy_io_csn_sel_ads0 : 1; // [20]
- uint32_t __31_21 : 11; // [31:21]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_SEL_WR_ADS0_T;
- // psram_rf_cfg_phy_iomux_ie_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_phy_io_d0_ie_ads0 : 1; // [0]
- uint32_t rf_phy_io_d1_ie_ads0 : 1; // [1]
- uint32_t rf_phy_io_d2_ie_ads0 : 1; // [2]
- uint32_t rf_phy_io_d3_ie_ads0 : 1; // [3]
- uint32_t rf_phy_io_d4_ie_ads0 : 1; // [4]
- uint32_t rf_phy_io_d5_ie_ads0 : 1; // [5]
- uint32_t rf_phy_io_d6_ie_ads0 : 1; // [6]
- uint32_t rf_phy_io_d7_ie_ads0 : 1; // [7]
- uint32_t rf_phy_io_dqm_ie_ads0 : 1; // [8]
- uint32_t rf_phy_io_dqs_ie_ads0 : 1; // [9]
- uint32_t __15_10 : 6; // [15:10]
- uint32_t rf_phy_io_clk_ie_ads0 : 1; // [16]
- uint32_t __19_17 : 3; // [19:17]
- uint32_t rf_phy_io_csn_ie_ads0 : 1; // [20]
- uint32_t __31_21 : 11; // [31:21]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_IE_WR_ADS0_T;
- // psram_rf_cfg_phy_iomux_oe_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_phy_io_d0_oe_ads0 : 1; // [0]
- uint32_t rf_phy_io_d1_oe_ads0 : 1; // [1]
- uint32_t rf_phy_io_d2_oe_ads0 : 1; // [2]
- uint32_t rf_phy_io_d3_oe_ads0 : 1; // [3]
- uint32_t rf_phy_io_d4_oe_ads0 : 1; // [4]
- uint32_t rf_phy_io_d5_oe_ads0 : 1; // [5]
- uint32_t rf_phy_io_d6_oe_ads0 : 1; // [6]
- uint32_t rf_phy_io_d7_oe_ads0 : 1; // [7]
- uint32_t rf_phy_io_dqm_oe_ads0 : 1; // [8]
- uint32_t rf_phy_io_dqs_oe_ads0 : 1; // [9]
- uint32_t __15_10 : 6; // [15:10]
- uint32_t rf_phy_io_clk_oe_ads0 : 1; // [16]
- uint32_t __19_17 : 3; // [19:17]
- uint32_t rf_phy_io_csn_oe_ads0 : 1; // [20]
- uint32_t __31_21 : 11; // [31:21]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_OE_WR_ADS0_T;
- // psram_rf_cfg_phy_iomux_out_wr_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_phy_io_d0_out_ads0 : 1; // [0]
- uint32_t rf_phy_io_d1_out_ads0 : 1; // [1]
- uint32_t rf_phy_io_d2_out_ads0 : 1; // [2]
- uint32_t rf_phy_io_d3_out_ads0 : 1; // [3]
- uint32_t rf_phy_io_d4_out_ads0 : 1; // [4]
- uint32_t rf_phy_io_d5_out_ads0 : 1; // [5]
- uint32_t rf_phy_io_d6_out_ads0 : 1; // [6]
- uint32_t rf_phy_io_d7_out_ads0 : 1; // [7]
- uint32_t rf_phy_io_dqm_out_ads0 : 1; // [8]
- uint32_t rf_phy_io_dqs_out_ads0 : 1; // [9]
- uint32_t __15_10 : 6; // [15:10]
- uint32_t rf_phy_io_clk_out_ads0 : 1; // [16]
- uint32_t __19_17 : 3; // [19:17]
- uint32_t rf_phy_io_csn_out_ads0 : 1; // [20]
- uint32_t __31_21 : 11; // [31:21]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_OUT_WR_ADS0_T;
- // psram_rf_cfg_dll_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t __7_0 : 8; // [7:0]
- uint32_t rf_dll_clr_ads1 : 1; // [8]
- uint32_t rf_dll_auto_clr_en_ads1 : 1; // [9]
- uint32_t rf_dl_cpst_en_ads1 : 1; // [10]
- uint32_t rf_dl_cpst_start_ads1 : 1; // [11]
- uint32_t rf_dl_cpst_auto_ref_en_ads1 : 1; // [12]
- uint32_t rf_dll_err_clr_ads1 : 1; // [13]
- uint32_t rf_dll_clk_sel_ads1 : 1; // [14]
- uint32_t rf_dll_en_ads1 : 1; // [15]
- uint32_t rf_dl_cpst_thr_ads1 : 8; // [23:16]
- uint32_t rf_dll_pd_cnt_ads1 : 3; // [26:24]
- uint32_t rf_dll_auto_err_clr_en_ads1 : 1; // [27]
- uint32_t rf_dll_lock_wait_ads1 : 4; // [31:28]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_ADS1_T;
- // psram_rfdll_status_dll_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rfdll_cnt_ads1 : 8; // [7:0], read only
- uint32_t __23_8 : 16; // [23:8]
- uint32_t rfdl_cpst_st_ads1 : 1; // [24], read only
- uint32_t rfdll_st_ads1 : 3; // [27:25], read only
- uint32_t rfdll_locked_ads1 : 1; // [28], read only
- uint32_t rfdll_error_ads1 : 1; // [29], read only
- uint32_t __31_30 : 2; // [31:30]
- } b;
- } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_DLL_ADS1_T;
- // psram_rf_cfg_dll_dl_0_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_clkwr_raw_dl_sel_ads1 : 8; // [7:0]
- uint32_t rfdl_clkwr_raw_cnt_ads1 : 8; // [15:8], read only
- uint32_t rf_clkwr_raw_dl_cpst_offset_ads1 : 8; // [23:16]
- uint32_t rf_clkwr_qtr_dl_sel_ads1 : 2; // [25:24]
- uint32_t rfdl_clkwr_qtr_cnt_ads1 : 2; // [27:26], read only
- uint32_t rf_clkwr_qtr_dl_cpst_offset_ads1 : 2; // [29:28]
- uint32_t rf_clkwr_dl_cpst_minus_ads1 : 1; // [30]
- uint32_t rf_clkwr_dl_cpst_en_ads1 : 1; // [31]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_0_WR_ADS1_T;
- // psram_rf_cfg_dll_dl_1_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dqs_in_pos_raw_dl_sel_ads1 : 8; // [7:0]
- uint32_t rfdl_dqs_in_pos_raw_cnt_ads1 : 8; // [15:8], read only
- uint32_t rf_dqs_in_pos_raw_dl_cpst_offset_ads1 : 8; // [23:16]
- uint32_t rf_dqs_in_pos_qtr_dl_sel_ads1 : 2; // [25:24]
- uint32_t rfdl_dqs_in_pos_qtr_cnt_ads1 : 2; // [27:26], read only
- uint32_t rf_dqs_in_pos_qtr_dl_cpst_offset_ads1 : 2; // [29:28]
- uint32_t rf_dqs_in_pos_dl_cpst_minus_ads1 : 1; // [30]
- uint32_t rf_dqs_in_pos_dl_cpst_en_ads1 : 1; // [31]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_1_WR_ADS1_T;
- // psram_rf_cfg_dll_dl_2_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dqs_in_neg_raw_dl_sel_ads1 : 8; // [7:0]
- uint32_t rfdl_dqs_in_neg_raw_cnt_ads1 : 8; // [15:8], read only
- uint32_t rf_dqs_in_neg_raw_dl_cpst_offset_ads1 : 8; // [23:16]
- uint32_t rf_dqs_in_neg_qtr_dl_sel_ads1 : 2; // [25:24]
- uint32_t rfdl_dqs_in_neg_qtr_cnt_ads1 : 2; // [27:26], read only
- uint32_t rf_dqs_in_neg_qtr_dl_cpst_offset_ads1 : 2; // [29:28]
- uint32_t rf_dqs_in_neg_dl_cpst_minus_ads1 : 1; // [30]
- uint32_t rf_dqs_in_neg_dl_cpst_en_ads1 : 1; // [31]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_2_WR_ADS1_T;
- // psram_rf_cfg_dll_dl_3_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dqs_gate_raw_dl_sel_ads1 : 8; // [7:0]
- uint32_t rfdl_dqs_gate_raw_cnt_ads1 : 8; // [15:8], read only
- uint32_t rf_dqs_gate_raw_dl_cpst_offset_ads1 : 8; // [23:16]
- uint32_t rf_dqs_gate_qtr_dl_sel_ads1 : 2; // [25:24]
- uint32_t rfdl_dqs_gate_qtr_cnt_ads1 : 2; // [27:26], read only
- uint32_t rf_dqs_gate_qtr_dl_cpst_offset_ads1 : 2; // [29:28]
- uint32_t rf_dqs_gate_dl_cpst_minus_ads1 : 1; // [30]
- uint32_t rf_dqs_gate_dl_cpst_en_ads1 : 1; // [31]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_3_WR_ADS1_T;
- // psram_rf_cfg_dll_dl_4_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dly_out_clk_dl_sel_ads1 : 5; // [4:0]
- uint32_t __7_5 : 3; // [7:5]
- uint32_t rf_dly_out_cen_dl_sel_ads1 : 5; // [12:8]
- uint32_t __31_13 : 19; // [31:13]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_4_WR_ADS1_T;
- // psram_rf_cfg_dll_dl_5_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dly_out_d0_dl_sel_ads1 : 5; // [4:0]
- uint32_t __7_5 : 3; // [7:5]
- uint32_t rf_dly_out_d1_dl_sel_ads1 : 5; // [12:8]
- uint32_t __15_13 : 3; // [15:13]
- uint32_t rf_dly_out_d2_dl_sel_ads1 : 5; // [20:16]
- uint32_t __23_21 : 3; // [23:21]
- uint32_t rf_dly_out_d3_dl_sel_ads1 : 5; // [28:24]
- uint32_t __31_29 : 3; // [31:29]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_5_WR_ADS1_T;
- // psram_rf_cfg_dll_dl_6_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dly_out_d4_dl_sel_ads1 : 5; // [4:0]
- uint32_t __7_5 : 3; // [7:5]
- uint32_t rf_dly_out_d5_dl_sel_ads1 : 5; // [12:8]
- uint32_t __15_13 : 3; // [15:13]
- uint32_t rf_dly_out_d6_dl_sel_ads1 : 5; // [20:16]
- uint32_t __23_21 : 3; // [23:21]
- uint32_t rf_dly_out_d7_dl_sel_ads1 : 5; // [28:24]
- uint32_t __31_29 : 3; // [31:29]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_6_WR_ADS1_T;
- // psram_rf_cfg_dll_dl_7_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dly_in_d0_dl_sel_ads1 : 5; // [4:0]
- uint32_t __7_5 : 3; // [7:5]
- uint32_t rf_dly_in_d1_dl_sel_ads1 : 5; // [12:8]
- uint32_t __15_13 : 3; // [15:13]
- uint32_t rf_dly_in_d2_dl_sel_ads1 : 5; // [20:16]
- uint32_t __23_21 : 3; // [23:21]
- uint32_t rf_dly_in_d3_dl_sel_ads1 : 5; // [28:24]
- uint32_t __31_29 : 3; // [31:29]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_7_WR_ADS1_T;
- // psram_rf_cfg_dll_dl_8_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dly_in_d4_dl_sel_ads1 : 5; // [4:0]
- uint32_t __7_5 : 3; // [7:5]
- uint32_t rf_dly_in_d5_dl_sel_ads1 : 5; // [12:8]
- uint32_t __15_13 : 3; // [15:13]
- uint32_t rf_dly_in_d6_dl_sel_ads1 : 5; // [20:16]
- uint32_t __23_21 : 3; // [23:21]
- uint32_t rf_dly_in_d7_dl_sel_ads1 : 5; // [28:24]
- uint32_t __31_29 : 3; // [31:29]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_8_WR_ADS1_T;
- // psram_rf_cfg_dll_dl_9_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_dly_out_dqs_dl_sel_ads1 : 5; // [4:0]
- uint32_t __7_5 : 3; // [7:5]
- uint32_t rf_dly_out_dqm_dl_sel_ads1 : 5; // [12:8]
- uint32_t __15_13 : 3; // [15:13]
- uint32_t rf_dly_in_dqs_dl_sel_ads1 : 5; // [20:16]
- uint32_t __31_21 : 11; // [31:21]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_DLL_DL_9_WR_ADS1_T;
- // psram_rfdll_status_max_cnt_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rfdll_max_cnt_f0_ads1 : 8; // [7:0], read only
- uint32_t rfdll_max_cnt_f1_ads1 : 8; // [15:8], read only
- uint32_t rfdll_max_cnt_f2_ads1 : 8; // [23:16], read only
- uint32_t rfdll_max_cnt_f3_ads1 : 8; // [31:24], read only
- } b;
- } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_MAX_CNT_ADS1_T;
- // psram_rfdll_status_min_cnt_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rfdll_min_cnt_f0_ads1 : 8; // [7:0], read only
- uint32_t rfdll_min_cnt_f1_ads1 : 8; // [15:8], read only
- uint32_t rfdll_min_cnt_f2_ads1 : 8; // [23:16], read only
- uint32_t rfdll_min_cnt_f3_ads1 : 8; // [31:24], read only
- } b;
- } REG_PSRAM_PHY_PSRAM_RFDLL_STATUS_MIN_CNT_ADS1_T;
- // psram_rf_cfg_phy_iomux_sel_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_phy_io_d0_sel_ads1 : 1; // [0]
- uint32_t rf_phy_io_d1_sel_ads1 : 1; // [1]
- uint32_t rf_phy_io_d2_sel_ads1 : 1; // [2]
- uint32_t rf_phy_io_d3_sel_ads1 : 1; // [3]
- uint32_t rf_phy_io_d4_sel_ads1 : 1; // [4]
- uint32_t rf_phy_io_d5_sel_ads1 : 1; // [5]
- uint32_t rf_phy_io_d6_sel_ads1 : 1; // [6]
- uint32_t rf_phy_io_d7_sel_ads1 : 1; // [7]
- uint32_t rf_phy_io_dqm_sel_ads1 : 1; // [8]
- uint32_t rf_phy_io_dqs_sel_ads1 : 1; // [9]
- uint32_t __15_10 : 6; // [15:10]
- uint32_t rf_phy_io_clk_sel_ads1 : 1; // [16]
- uint32_t __19_17 : 3; // [19:17]
- uint32_t rf_phy_io_csn_sel_ads1 : 1; // [20]
- uint32_t __31_21 : 11; // [31:21]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_SEL_WR_ADS1_T;
- // psram_rf_cfg_phy_iomux_ie_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_phy_io_d0_ie_ads1 : 1; // [0]
- uint32_t rf_phy_io_d1_ie_ads1 : 1; // [1]
- uint32_t rf_phy_io_d2_ie_ads1 : 1; // [2]
- uint32_t rf_phy_io_d3_ie_ads1 : 1; // [3]
- uint32_t rf_phy_io_d4_ie_ads1 : 1; // [4]
- uint32_t rf_phy_io_d5_ie_ads1 : 1; // [5]
- uint32_t rf_phy_io_d6_ie_ads1 : 1; // [6]
- uint32_t rf_phy_io_d7_ie_ads1 : 1; // [7]
- uint32_t rf_phy_io_dqm_ie_ads1 : 1; // [8]
- uint32_t rf_phy_io_dqs_ie_ads1 : 1; // [9]
- uint32_t __15_10 : 6; // [15:10]
- uint32_t rf_phy_io_clk_ie_ads1 : 1; // [16]
- uint32_t __19_17 : 3; // [19:17]
- uint32_t rf_phy_io_csn_ie_ads1 : 1; // [20]
- uint32_t __31_21 : 11; // [31:21]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_IE_WR_ADS1_T;
- // psram_rf_cfg_phy_iomux_oe_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_phy_io_d0_oe_ads1 : 1; // [0]
- uint32_t rf_phy_io_d1_oe_ads1 : 1; // [1]
- uint32_t rf_phy_io_d2_oe_ads1 : 1; // [2]
- uint32_t rf_phy_io_d3_oe_ads1 : 1; // [3]
- uint32_t rf_phy_io_d4_oe_ads1 : 1; // [4]
- uint32_t rf_phy_io_d5_oe_ads1 : 1; // [5]
- uint32_t rf_phy_io_d6_oe_ads1 : 1; // [6]
- uint32_t rf_phy_io_d7_oe_ads1 : 1; // [7]
- uint32_t rf_phy_io_dqm_oe_ads1 : 1; // [8]
- uint32_t rf_phy_io_dqs_oe_ads1 : 1; // [9]
- uint32_t __15_10 : 6; // [15:10]
- uint32_t rf_phy_io_clk_oe_ads1 : 1; // [16]
- uint32_t __19_17 : 3; // [19:17]
- uint32_t rf_phy_io_csn_oe_ads1 : 1; // [20]
- uint32_t __31_21 : 11; // [31:21]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_OE_WR_ADS1_T;
- // psram_rf_cfg_phy_iomux_out_wr_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_phy_io_d0_out_ads1 : 1; // [0]
- uint32_t rf_phy_io_d1_out_ads1 : 1; // [1]
- uint32_t rf_phy_io_d2_out_ads1 : 1; // [2]
- uint32_t rf_phy_io_d3_out_ads1 : 1; // [3]
- uint32_t rf_phy_io_d4_out_ads1 : 1; // [4]
- uint32_t rf_phy_io_d5_out_ads1 : 1; // [5]
- uint32_t rf_phy_io_d6_out_ads1 : 1; // [6]
- uint32_t rf_phy_io_d7_out_ads1 : 1; // [7]
- uint32_t rf_phy_io_dqm_out_ads1 : 1; // [8]
- uint32_t rf_phy_io_dqs_out_ads1 : 1; // [9]
- uint32_t __15_10 : 6; // [15:10]
- uint32_t rf_phy_io_clk_out_ads1 : 1; // [16]
- uint32_t __19_17 : 3; // [19:17]
- uint32_t rf_phy_io_csn_out_ads1 : 1; // [20]
- uint32_t __31_21 : 11; // [31:21]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_CFG_PHY_IOMUX_OUT_WR_ADS1_T;
- // psram_drf_cfg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_clkdmem_out_sel : 1; // [0]
- uint32_t __31_1 : 31; // [31:1]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_T;
- // psram_drf_cfg_reg_sel
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_reg_sel : 2; // [1:0]
- uint32_t __31_2 : 30; // [31:2]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_REG_SEL_T;
- // psram_drf_cfg_dqs_ie_sel_f0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_ie_sel_f0 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_IE_SEL_F0_T;
- // psram_drf_cfg_dqs_oe_sel_f0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_oe_sel_f0 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OE_SEL_F0_T;
- // psram_drf_cfg_dqs_out_sel_f0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_out_sel_f0 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OUT_SEL_F0_T;
- // psram_drf_cfg_dqs_gate_sel_f0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_gate_sel_f0 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_GATE_SEL_F0_T;
- // psram_drf_cfg_data_ie_sel_f0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_data_ie_sel_f0 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_IE_SEL_F0_T;
- // psram_drf_cfg_data_oe_sel_f0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_data_oe_sel_f0 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_OE_SEL_F0_T;
- // psram_drf_cfg_dqs_ie_sel_f1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_ie_sel_f1 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_IE_SEL_F1_T;
- // psram_drf_cfg_dqs_oe_sel_f1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_oe_sel_f1 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OE_SEL_F1_T;
- // psram_drf_cfg_dqs_out_sel_f1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_out_sel_f1 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OUT_SEL_F1_T;
- // psram_drf_cfg_dqs_gate_sel_f1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_gate_sel_f1 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_GATE_SEL_F1_T;
- // psram_drf_cfg_data_ie_sel_f1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_data_ie_sel_f1 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_IE_SEL_F1_T;
- // psram_drf_cfg_data_oe_sel_f1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_data_oe_sel_f1 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_OE_SEL_F1_T;
- // psram_drf_cfg_dqs_ie_sel_f2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_ie_sel_f2 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_IE_SEL_F2_T;
- // psram_drf_cfg_dqs_oe_sel_f2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_oe_sel_f2 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OE_SEL_F2_T;
- // psram_drf_cfg_dqs_out_sel_f2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_out_sel_f2 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OUT_SEL_F2_T;
- // psram_drf_cfg_dqs_gate_sel_f2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_gate_sel_f2 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_GATE_SEL_F2_T;
- // psram_drf_cfg_data_ie_sel_f2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_data_ie_sel_f2 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_IE_SEL_F2_T;
- // psram_drf_cfg_data_oe_sel_f2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_data_oe_sel_f2 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_OE_SEL_F2_T;
- // psram_drf_cfg_dqs_ie_sel_f3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_ie_sel_f3 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_IE_SEL_F3_T;
- // psram_drf_cfg_dqs_oe_sel_f3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_oe_sel_f3 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OE_SEL_F3_T;
- // psram_drf_cfg_dqs_out_sel_f3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_out_sel_f3 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_OUT_SEL_F3_T;
- // psram_drf_cfg_dqs_gate_sel_f3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dqs_gate_sel_f3 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DQS_GATE_SEL_F3_T;
- // psram_drf_cfg_data_ie_sel_f3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_data_ie_sel_f3 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_IE_SEL_F3_T;
- // psram_drf_cfg_data_oe_sel_f3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_data_oe_sel_f3 : 16; // [15:0]
- uint32_t __31_16 : 16; // [31:16]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DATA_OE_SEL_F3_T;
- // psram_drf_cfg_dll_mode_f0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dll_clk_mode_f0 : 1; // [0]
- uint32_t drf_dll_half_mode_f0 : 1; // [1]
- uint32_t drf_dll_satu_mode_f0 : 1; // [2]
- uint32_t __31_3 : 29; // [31:3]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_MODE_F0_T;
- // psram_drf_cfg_dll_cnt_f0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dll_init_cnt_f0 : 10; // [9:0]
- uint32_t drf_dll_satu_cnt_f0 : 10; // [19:10]
- uint32_t drf_dll_auto_cnt_f0 : 10; // [29:20]
- uint32_t __31_30 : 2; // [31:30]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_CNT_F0_T;
- // psram_drf_cfg_dll_mode_f1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dll_clk_mode_f1 : 1; // [0]
- uint32_t drf_dll_half_mode_f1 : 1; // [1]
- uint32_t drf_dll_satu_mode_f1 : 1; // [2]
- uint32_t __31_3 : 29; // [31:3]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_MODE_F1_T;
- // psram_drf_cfg_dll_cnt_f1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dll_init_cnt_f1 : 10; // [9:0]
- uint32_t drf_dll_satu_cnt_f1 : 10; // [19:10]
- uint32_t drf_dll_auto_cnt_f1 : 10; // [29:20]
- uint32_t __31_30 : 2; // [31:30]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_CNT_F1_T;
- // psram_drf_cfg_dll_mode_f2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dll_clk_mode_f2 : 1; // [0]
- uint32_t drf_dll_half_mode_f2 : 1; // [1]
- uint32_t drf_dll_satu_mode_f2 : 1; // [2]
- uint32_t __31_3 : 29; // [31:3]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_MODE_F2_T;
- // psram_drf_cfg_dll_cnt_f2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dll_init_cnt_f2 : 10; // [9:0]
- uint32_t drf_dll_satu_cnt_f2 : 10; // [19:10]
- uint32_t drf_dll_auto_cnt_f2 : 10; // [29:20]
- uint32_t __31_30 : 2; // [31:30]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_CNT_F2_T;
- // psram_drf_cfg_dll_mode_f3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dll_clk_mode_f3 : 1; // [0]
- uint32_t drf_dll_half_mode_f3 : 1; // [1]
- uint32_t drf_dll_satu_mode_f3 : 1; // [2]
- uint32_t __31_3 : 29; // [31:3]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_MODE_F3_T;
- // psram_drf_cfg_dll_cnt_f3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_dll_init_cnt_f3 : 10; // [9:0]
- uint32_t drf_dll_satu_cnt_f3 : 10; // [19:10]
- uint32_t drf_dll_auto_cnt_f3 : 10; // [29:20]
- uint32_t __31_30 : 2; // [31:30]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_CFG_DLL_CNT_F3_T;
- // psram_drf_format_control
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_memory_burst : 2; // [1:0]
- uint32_t __31_2 : 30; // [31:2]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_FORMAT_CONTROL_T;
- // psram_drf_t_rcd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_t_rcd : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_T_RCD_T;
- // psram_drf_t_rddata_en
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_t_rddata_en : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_T_RDDATA_EN_T;
- // psram_drf_t_phywrlat
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_t_phywrlat : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_T_PHYWRLAT_T;
- // psram_drf_t_cph_wr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_t_cph_wr : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_T_CPH_WR_T;
- // psram_drf_t_cph_rd
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_t_cph_rd : 3; // [2:0]
- uint32_t __3_3 : 1; // [3]
- uint32_t drf_t_cph_rd_optm : 1; // [4]
- uint32_t __31_5 : 27; // [31:5]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_T_CPH_RD_T;
- // psram_drf_t_data_oe_ext
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_t_data_oe_wdata_ext : 4; // [3:0]
- uint32_t drf_t_data_oe_cmd_ext : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_T_DATA_OE_EXT_T;
- // psram_drf_t_dqs_oe_ext
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_t_dqs_oe_ext : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_T_DQS_OE_EXT_T;
- // psram_drf_t_xphs
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_t_xphs : 5; // [4:0]
- uint32_t __31_5 : 27; // [31:5]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_T_XPHS_T;
- // psram_drf_t_rddata_vld_sync
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_t_rddata_vld_sync : 3; // [2:0]
- uint32_t __31_3 : 29; // [31:3]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_T_RDDATA_VLD_SYNC_T;
- // psram_drf_t_rddata_late
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_t_rddata_late : 5; // [4:0]
- uint32_t __31_5 : 27; // [31:5]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_T_RDDATA_LATE_T;
- // psram_drf_t_rddata_valid_early
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_t_rddata_valid_early : 2; // [1:0]
- uint32_t __31_2 : 30; // [31:2]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_T_RDDATA_VALID_EARLY_T;
- // drf_t_wb_rst
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_t_wb_rh_rst : 6; // [5:0]
- uint32_t __7_6 : 2; // [7:6]
- uint32_t drf_t_wb_rp_rst : 6; // [13:8]
- uint32_t __31_14 : 18; // [31:14]
- } b;
- } REG_PSRAM_PHY_DRF_T_WB_RST_T;
- // psram_drf_train_cfg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_phyupd_en : 1; // [0]
- uint32_t drf_phyupd_type_sel : 2; // [2:1]
- uint32_t __3_3 : 1; // [3]
- uint32_t drf_phyupd_type_0 : 2; // [5:4]
- uint32_t drf_phyupd_type_1 : 2; // [7:6]
- uint32_t drf_phyupd_type_2 : 2; // [9:8]
- uint32_t drf_phyupd_type_3 : 2; // [11:10]
- uint32_t drf_phy_wrlvl_en : 1; // [12]
- uint32_t drf_dmc_wrlvl_en : 1; // [13]
- uint32_t __15_14 : 2; // [15:14]
- uint32_t drf_phy_rdlvl_en : 1; // [16]
- uint32_t drf_dmc_rdlvl_en : 1; // [17]
- uint32_t __19_18 : 2; // [19:18]
- uint32_t drf_phy_rdlvl_gate_en : 1; // [20]
- uint32_t drf_dmc_rdlvl_gate_en : 1; // [21]
- uint32_t __31_22 : 10; // [31:22]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_TRAIN_CFG_T;
- // psram_drf_mr_data_en
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drf_mr_data_en : 1; // [0]
- uint32_t __31_1 : 31; // [31:1]
- } b;
- } REG_PSRAM_PHY_PSRAM_DRF_MR_DATA_EN_T;
- // psram_rf_irq_ctrl
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_irq_en_dll_unlock_ads0 : 1; // [0]
- uint32_t rf_irq_en_dll_unlock_ads1 : 1; // [1]
- uint32_t __3_2 : 2; // [3:2]
- uint32_t rf_irq_en_rddata_timeout_ads0 : 1; // [4]
- uint32_t rf_irq_en_rddata_timeout_ads1 : 1; // [5]
- uint32_t __7_6 : 2; // [7:6]
- uint32_t rf_irq_en_disc_rst_ads0 : 1; // [8]
- uint32_t rf_irq_en_disc_mrw_ads0 : 1; // [9]
- uint32_t rf_irq_en_disc_mrr_ads0 : 1; // [10]
- uint32_t rf_irq_en_disc_wr_ads0 : 1; // [11]
- uint32_t rf_irq_en_disc_rd_ads0 : 1; // [12]
- uint32_t __15_13 : 3; // [15:13]
- uint32_t rf_irq_en_disc_rst_ads1 : 1; // [16]
- uint32_t rf_irq_en_disc_mrw_ads1 : 1; // [17]
- uint32_t rf_irq_en_disc_mrr_ads1 : 1; // [18]
- uint32_t rf_irq_en_disc_wr_ads1 : 1; // [19]
- uint32_t rf_irq_en_disc_rd_ads1 : 1; // [20]
- uint32_t __31_21 : 11; // [31:21]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_IRQ_CTRL_T;
- // psram_rf_irq_status_clr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_irq_st_clr_dll_unlock_ads0 : 1; // [0]
- uint32_t rf_irq_st_clr_dll_unlock_ads1 : 1; // [1]
- uint32_t __3_2 : 2; // [3:2]
- uint32_t rf_irq_st_clr_rddata_timeout_ads0 : 1; // [4]
- uint32_t rf_irq_st_clr_rddata_timeout_ads1 : 1; // [5]
- uint32_t __7_6 : 2; // [7:6]
- uint32_t rf_irq_st_clr_disc_rst_ads0 : 1; // [8]
- uint32_t rf_irq_st_clr_disc_mrw_ads0 : 1; // [9]
- uint32_t rf_irq_st_clr_disc_mrr_ads0 : 1; // [10]
- uint32_t rf_irq_st_clr_disc_wr_ads0 : 1; // [11]
- uint32_t rf_irq_st_clr_disc_rd_ads0 : 1; // [12]
- uint32_t __15_13 : 3; // [15:13]
- uint32_t rf_irq_st_clr_disc_rst_ads1 : 1; // [16]
- uint32_t rf_irq_st_clr_disc_mrw_ads1 : 1; // [17]
- uint32_t rf_irq_st_clr_disc_mrr_ads1 : 1; // [18]
- uint32_t rf_irq_st_clr_disc_wr_ads1 : 1; // [19]
- uint32_t rf_irq_st_clr_disc_rd_ads1 : 1; // [20]
- uint32_t __31_21 : 11; // [31:21]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_IRQ_STATUS_CLR_T;
- // psram_rf_irq_status
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_irq_st_dll_unlock_ads0 : 1; // [0], read only
- uint32_t rf_irq_st_dll_unlock_ads1 : 1; // [1], read only
- uint32_t __3_2 : 2; // [3:2]
- uint32_t rf_irq_st_rddata_timeout_ads0 : 1; // [4], read only
- uint32_t rf_irq_st_rddata_timeout_ads1 : 1; // [5], read only
- uint32_t __7_6 : 2; // [7:6]
- uint32_t rf_irq_st_disc_rst_ads0 : 1; // [8], read only
- uint32_t rf_irq_st_disc_mrw_ads0 : 1; // [9], read only
- uint32_t rf_irq_st_disc_mrr_ads0 : 1; // [10], read only
- uint32_t rf_irq_st_disc_wr_ads0 : 1; // [11], read only
- uint32_t rf_irq_st_disc_rd_ads0 : 1; // [12], read only
- uint32_t __15_13 : 3; // [15:13]
- uint32_t rf_irq_st_disc_rst_ads1 : 1; // [16], read only
- uint32_t rf_irq_st_disc_mrw_ads1 : 1; // [17], read only
- uint32_t rf_irq_st_disc_mrr_ads1 : 1; // [18], read only
- uint32_t rf_irq_st_disc_wr_ads1 : 1; // [19], read only
- uint32_t rf_irq_st_disc_rd_ads1 : 1; // [20], read only
- uint32_t __31_21 : 11; // [31:21]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_IRQ_STATUS_T;
- // psram_rf_irq_cnt_clr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_irq_cnt_clr_dll_unlock_ads0 : 1; // [0]
- uint32_t rf_irq_cnt_clr_dll_unlock_ads1 : 1; // [1]
- uint32_t __31_2 : 30; // [31:2]
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_IRQ_CNT_CLR_T;
- // psram_rf_irq_cnt_dll_unlock_ads0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_irq_cnt_dll_unlock_ads0 : 31; // [30:0], read only
- uint32_t rf_irq_cnt_overflow_dll_unlock_ads0 : 1; // [31], read only
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_IRQ_CNT_DLL_UNLOCK_ADS0_T;
- // psram_rf_irq_cnt_dll_unlock_ads1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rf_irq_cnt_dll_unlock_ads1 : 31; // [30:0], read only
- uint32_t rf_irq_cnt_overflow_dll_unlock_ads1 : 1; // [31], read only
- } b;
- } REG_PSRAM_PHY_PSRAM_RF_IRQ_CNT_DLL_UNLOCK_ADS1_T;
- // io_rf_psram_drv_cfg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t psram_fix_read0 : 1; // [0]
- uint32_t psram_slewrate : 2; // [2:1]
- uint32_t psram_drvp : 5; // [7:3]
- uint32_t psram_drvn : 5; // [12:8]
- uint32_t __31_13 : 19; // [31:13]
- } b;
- } REG_PSRAM_PHY_IO_RF_PSRAM_DRV_CFG_T;
- // io_rf_psram_pad_en_cfg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t psram_pad_clkn_en : 1; // [0]
- uint32_t __31_1 : 31; // [31:1]
- } b;
- } REG_PSRAM_PHY_IO_RF_PSRAM_PAD_EN_CFG_T;
- // io_rf_psram_pull_cfg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t psram_dqs_pull0_bit : 2; // [1:0]
- uint32_t psram_dq_pull0_bit : 2; // [3:2]
- uint32_t psram_dm_pull1_bit : 2; // [5:4]
- uint32_t psram_clkn_pull1_bit : 2; // [7:6]
- uint32_t psram_clk_pull0_bit : 2; // [9:8]
- uint32_t psram_cen_pull1_bit : 2; // [11:10]
- uint32_t __31_12 : 20; // [31:12]
- } b;
- } REG_PSRAM_PHY_IO_RF_PSRAM_PULL_CFG_T;
- // psram_rf_cfg_phy
- #define PSRAM_PHY_RF_PHY_EN (1 << 0)
- #define PSRAM_PHY_RF_PHY_INIT_COMPLETE (1 << 1)
- // psram_rf_cfg_clock_gate
- #define PSRAM_PHY_RF_CLK_GATE_EN (1 << 0)
- #define PSRAM_PHY_RF_CLK_GATE_FG_EN (1 << 1)
- #define PSRAM_PHY_RF_CLK_GATE_AG_EN (1 << 2)
- #define PSRAM_PHY_RF_CLK_GATE_AG_WR_EN (1 << 3)
- #define PSRAM_PHY_RF_CLK_GATE_AG_RD_EN (1 << 4)
- // psram_rf_cfg_lpi
- #define PSRAM_PHY_RF_LPI_SEL_M0 (1 << 0)
- #define PSRAM_PHY_RF_CWAKEUP_M0 (1 << 1)
- #define PSRAM_PHY_RF_CWAKEUP_S0 (1 << 2)
- // psram_rf_cfg_psram_type
- #define PSRAM_PHY_RF_WB_SEL (1 << 0)
- #define PSRAM_PHY_RF_AP256_SEL (1 << 1)
- #define PSRAM_PHY_RF_DATAX16_SEL (1 << 2)
- #define PSRAM_PHY_RF_WB64_256_SEL (1 << 3)
- #define PSRAM_PHY_RF_RWDS_SMPL_TIME(n) (((n)&0x7) << 4)
- #define PSRAM_PHY_RF_WRAPPER_LIMIT (1 << 7)
- #define PSRAM_PHY_RF_LENGTH_LIMIT (1 << 8)
- // psram_rf_wb_mrw_data
- #define PSRAM_PHY_RF_WB_MRW_DATA(n) (((n)&0xffff) << 0)
- // psram_rfdll_cfg_dll
- #define PSRAM_PHY_RFDLL_RESET (1 << 0)
- // psram_rfdll_status_cpst_idle
- #define PSRAM_PHY_RFDL_CPST_ST_IDLE_ADS0 (1 << 0)
- #define PSRAM_PHY_RFDL_CPST_ST_IDLE_ADS1 (1 << 1)
- // psram_rf_status_phy_data_in
- #define PSRAM_PHY_RF_PHY_DATA_IN(n) (((n)&0xffff) << 0)
- // psram_rf_cfg_dll_ads0
- #define PSRAM_PHY_RF_DLL_CLR_ADS0 (1 << 8)
- #define PSRAM_PHY_RF_DLL_AUTO_CLR_EN_ADS0 (1 << 9)
- #define PSRAM_PHY_RF_DL_CPST_EN_ADS0 (1 << 10)
- #define PSRAM_PHY_RF_DL_CPST_START_ADS0 (1 << 11)
- #define PSRAM_PHY_RF_DL_CPST_AUTO_REF_EN_ADS0 (1 << 12)
- #define PSRAM_PHY_RF_DLL_ERR_CLR_ADS0 (1 << 13)
- #define PSRAM_PHY_RF_DLL_CLK_SEL_ADS0 (1 << 14)
- #define PSRAM_PHY_RF_DLL_EN_ADS0 (1 << 15)
- #define PSRAM_PHY_RF_DL_CPST_THR_ADS0(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RF_DLL_PD_CNT_ADS0(n) (((n)&0x7) << 24)
- #define PSRAM_PHY_RF_DLL_AUTO_ERR_CLR_EN_ADS0 (1 << 27)
- #define PSRAM_PHY_RF_DLL_LOCK_WAIT_ADS0(n) (((n)&0xf) << 28)
- // psram_rfdll_status_dll_ads0
- #define PSRAM_PHY_RFDLL_CNT_ADS0(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDL_CPST_ST_ADS0 (1 << 24)
- #define PSRAM_PHY_RFDLL_ST_ADS0(n) (((n)&0x7) << 25)
- #define PSRAM_PHY_RFDLL_LOCKED_ADS0 (1 << 28)
- #define PSRAM_PHY_RFDLL_ERROR_ADS0 (1 << 29)
- // psram_rf_cfg_dll_dl_0_wr_ads0
- #define PSRAM_PHY_RF_CLKWR_RAW_DL_SEL_ADS0(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDL_CLKWR_RAW_CNT_ADS0(n) (((n)&0xff) << 8)
- #define PSRAM_PHY_RF_CLKWR_RAW_DL_CPST_OFFSET_ADS0(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RF_CLKWR_QTR_DL_SEL_ADS0(n) (((n)&0x3) << 24)
- #define PSRAM_PHY_RFDL_CLKWR_QTR_CNT_ADS0(n) (((n)&0x3) << 26)
- #define PSRAM_PHY_RF_CLKWR_QTR_DL_CPST_OFFSET_ADS0(n) (((n)&0x3) << 28)
- #define PSRAM_PHY_RF_CLKWR_DL_CPST_MINUS_ADS0 (1 << 30)
- #define PSRAM_PHY_RF_CLKWR_DL_CPST_EN_ADS0 (1 << 31)
- // psram_rf_cfg_dll_dl_1_wr_ads0
- #define PSRAM_PHY_RF_DQS_IN_POS_RAW_DL_SEL_ADS0(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDL_DQS_IN_POS_RAW_CNT_ADS0(n) (((n)&0xff) << 8)
- #define PSRAM_PHY_RF_DQS_IN_POS_RAW_DL_CPST_OFFSET_ADS0(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RF_DQS_IN_POS_QTR_DL_SEL_ADS0(n) (((n)&0x3) << 24)
- #define PSRAM_PHY_RFDL_DQS_IN_POS_QTR_CNT_ADS0(n) (((n)&0x3) << 26)
- #define PSRAM_PHY_RF_DQS_IN_POS_QTR_DL_CPST_OFFSET_ADS0(n) (((n)&0x3) << 28)
- #define PSRAM_PHY_RF_DQS_IN_POS_DL_CPST_MINUS_ADS0 (1 << 30)
- #define PSRAM_PHY_RF_DQS_IN_POS_DL_CPST_EN_ADS0 (1 << 31)
- // psram_rf_cfg_dll_dl_2_wr_ads0
- #define PSRAM_PHY_RF_DQS_IN_NEG_RAW_DL_SEL_ADS0(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDL_DQS_IN_NEG_RAW_CNT_ADS0(n) (((n)&0xff) << 8)
- #define PSRAM_PHY_RF_DQS_IN_NEG_RAW_DL_CPST_OFFSET_ADS0(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RF_DQS_IN_NEG_QTR_DL_SEL_ADS0(n) (((n)&0x3) << 24)
- #define PSRAM_PHY_RFDL_DQS_IN_NEG_QTR_CNT_ADS0(n) (((n)&0x3) << 26)
- #define PSRAM_PHY_RF_DQS_IN_NEG_QTR_DL_CPST_OFFSET_ADS0(n) (((n)&0x3) << 28)
- #define PSRAM_PHY_RF_DQS_IN_NEG_DL_CPST_MINUS_ADS0 (1 << 30)
- #define PSRAM_PHY_RF_DQS_IN_NEG_DL_CPST_EN_ADS0 (1 << 31)
- // psram_rf_cfg_dll_dl_3_wr_ads0
- #define PSRAM_PHY_RF_DQS_GATE_RAW_DL_SEL_ADS0(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDL_DQS_GATE_RAW_CNT_ADS0(n) (((n)&0xff) << 8)
- #define PSRAM_PHY_RF_DQS_GATE_RAW_DL_CPST_OFFSET_ADS0(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RF_DQS_GATE_QTR_DL_SEL_ADS0(n) (((n)&0x3) << 24)
- #define PSRAM_PHY_RFDL_DQS_GATE_QTR_CNT_ADS0(n) (((n)&0x3) << 26)
- #define PSRAM_PHY_RF_DQS_GATE_QTR_DL_CPST_OFFSET_ADS0(n) (((n)&0x3) << 28)
- #define PSRAM_PHY_RF_DQS_GATE_DL_CPST_MINUS_ADS0 (1 << 30)
- #define PSRAM_PHY_RF_DQS_GATE_DL_CPST_EN_ADS0 (1 << 31)
- // psram_rf_cfg_dll_dl_4_wr_ads0
- #define PSRAM_PHY_RF_DLY_OUT_CLK_DL_SEL_ADS0(n) (((n)&0x1f) << 0)
- #define PSRAM_PHY_RF_DLY_OUT_CEN_DL_SEL_ADS0(n) (((n)&0x1f) << 8)
- // psram_rf_cfg_dll_dl_5_wr_ads0
- #define PSRAM_PHY_RF_DLY_OUT_D0_DL_SEL_ADS0(n) (((n)&0x1f) << 0)
- #define PSRAM_PHY_RF_DLY_OUT_D1_DL_SEL_ADS0(n) (((n)&0x1f) << 8)
- #define PSRAM_PHY_RF_DLY_OUT_D2_DL_SEL_ADS0(n) (((n)&0x1f) << 16)
- #define PSRAM_PHY_RF_DLY_OUT_D3_DL_SEL_ADS0(n) (((n)&0x1f) << 24)
- // psram_rf_cfg_dll_dl_6_wr_ads0
- #define PSRAM_PHY_RF_DLY_OUT_D4_DL_SEL_ADS0(n) (((n)&0x1f) << 0)
- #define PSRAM_PHY_RF_DLY_OUT_D5_DL_SEL_ADS0(n) (((n)&0x1f) << 8)
- #define PSRAM_PHY_RF_DLY_OUT_D6_DL_SEL_ADS0(n) (((n)&0x1f) << 16)
- #define PSRAM_PHY_RF_DLY_OUT_D7_DL_SEL_ADS0(n) (((n)&0x1f) << 24)
- // psram_rf_cfg_dll_dl_7_wr_ads0
- #define PSRAM_PHY_RF_DLY_IN_D0_DL_SEL_ADS0(n) (((n)&0x1f) << 0)
- #define PSRAM_PHY_RF_DLY_IN_D1_DL_SEL_ADS0(n) (((n)&0x1f) << 8)
- #define PSRAM_PHY_RF_DLY_IN_D2_DL_SEL_ADS0(n) (((n)&0x1f) << 16)
- #define PSRAM_PHY_RF_DLY_IN_D3_DL_SEL_ADS0(n) (((n)&0x1f) << 24)
- // psram_rf_cfg_dll_dl_8_wr_ads0
- #define PSRAM_PHY_RF_DLY_IN_D4_DL_SEL_ADS0(n) (((n)&0x1f) << 0)
- #define PSRAM_PHY_RF_DLY_IN_D5_DL_SEL_ADS0(n) (((n)&0x1f) << 8)
- #define PSRAM_PHY_RF_DLY_IN_D6_DL_SEL_ADS0(n) (((n)&0x1f) << 16)
- #define PSRAM_PHY_RF_DLY_IN_D7_DL_SEL_ADS0(n) (((n)&0x1f) << 24)
- // psram_rf_cfg_dll_dl_9_wr_ads0
- #define PSRAM_PHY_RF_DLY_OUT_DQS_DL_SEL_ADS0(n) (((n)&0x1f) << 0)
- #define PSRAM_PHY_RF_DLY_OUT_DQM_DL_SEL_ADS0(n) (((n)&0x1f) << 8)
- #define PSRAM_PHY_RF_DLY_IN_DQS_DL_SEL_ADS0(n) (((n)&0x1f) << 16)
- // psram_rfdll_status_max_cnt_ads0
- #define PSRAM_PHY_RFDLL_MAX_CNT_F0_ADS0(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDLL_MAX_CNT_F1_ADS0(n) (((n)&0xff) << 8)
- #define PSRAM_PHY_RFDLL_MAX_CNT_F2_ADS0(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RFDLL_MAX_CNT_F3_ADS0(n) (((n)&0xff) << 24)
- // psram_rfdll_status_min_cnt_ads0
- #define PSRAM_PHY_RFDLL_MIN_CNT_F0_ADS0(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDLL_MIN_CNT_F1_ADS0(n) (((n)&0xff) << 8)
- #define PSRAM_PHY_RFDLL_MIN_CNT_F2_ADS0(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RFDLL_MIN_CNT_F3_ADS0(n) (((n)&0xff) << 24)
- // psram_rf_cfg_phy_iomux_sel_wr_ads0
- #define PSRAM_PHY_RF_PHY_IO_D0_SEL_ADS0 (1 << 0)
- #define PSRAM_PHY_RF_PHY_IO_D1_SEL_ADS0 (1 << 1)
- #define PSRAM_PHY_RF_PHY_IO_D2_SEL_ADS0 (1 << 2)
- #define PSRAM_PHY_RF_PHY_IO_D3_SEL_ADS0 (1 << 3)
- #define PSRAM_PHY_RF_PHY_IO_D4_SEL_ADS0 (1 << 4)
- #define PSRAM_PHY_RF_PHY_IO_D5_SEL_ADS0 (1 << 5)
- #define PSRAM_PHY_RF_PHY_IO_D6_SEL_ADS0 (1 << 6)
- #define PSRAM_PHY_RF_PHY_IO_D7_SEL_ADS0 (1 << 7)
- #define PSRAM_PHY_RF_PHY_IO_DQM_SEL_ADS0 (1 << 8)
- #define PSRAM_PHY_RF_PHY_IO_DQS_SEL_ADS0 (1 << 9)
- #define PSRAM_PHY_RF_PHY_IO_CLK_SEL_ADS0 (1 << 16)
- #define PSRAM_PHY_RF_PHY_IO_CSN_SEL_ADS0 (1 << 20)
- // psram_rf_cfg_phy_iomux_ie_wr_ads0
- #define PSRAM_PHY_RF_PHY_IO_D0_IE_ADS0 (1 << 0)
- #define PSRAM_PHY_RF_PHY_IO_D1_IE_ADS0 (1 << 1)
- #define PSRAM_PHY_RF_PHY_IO_D2_IE_ADS0 (1 << 2)
- #define PSRAM_PHY_RF_PHY_IO_D3_IE_ADS0 (1 << 3)
- #define PSRAM_PHY_RF_PHY_IO_D4_IE_ADS0 (1 << 4)
- #define PSRAM_PHY_RF_PHY_IO_D5_IE_ADS0 (1 << 5)
- #define PSRAM_PHY_RF_PHY_IO_D6_IE_ADS0 (1 << 6)
- #define PSRAM_PHY_RF_PHY_IO_D7_IE_ADS0 (1 << 7)
- #define PSRAM_PHY_RF_PHY_IO_DQM_IE_ADS0 (1 << 8)
- #define PSRAM_PHY_RF_PHY_IO_DQS_IE_ADS0 (1 << 9)
- #define PSRAM_PHY_RF_PHY_IO_CLK_IE_ADS0 (1 << 16)
- #define PSRAM_PHY_RF_PHY_IO_CSN_IE_ADS0 (1 << 20)
- // psram_rf_cfg_phy_iomux_oe_wr_ads0
- #define PSRAM_PHY_RF_PHY_IO_D0_OE_ADS0 (1 << 0)
- #define PSRAM_PHY_RF_PHY_IO_D1_OE_ADS0 (1 << 1)
- #define PSRAM_PHY_RF_PHY_IO_D2_OE_ADS0 (1 << 2)
- #define PSRAM_PHY_RF_PHY_IO_D3_OE_ADS0 (1 << 3)
- #define PSRAM_PHY_RF_PHY_IO_D4_OE_ADS0 (1 << 4)
- #define PSRAM_PHY_RF_PHY_IO_D5_OE_ADS0 (1 << 5)
- #define PSRAM_PHY_RF_PHY_IO_D6_OE_ADS0 (1 << 6)
- #define PSRAM_PHY_RF_PHY_IO_D7_OE_ADS0 (1 << 7)
- #define PSRAM_PHY_RF_PHY_IO_DQM_OE_ADS0 (1 << 8)
- #define PSRAM_PHY_RF_PHY_IO_DQS_OE_ADS0 (1 << 9)
- #define PSRAM_PHY_RF_PHY_IO_CLK_OE_ADS0 (1 << 16)
- #define PSRAM_PHY_RF_PHY_IO_CSN_OE_ADS0 (1 << 20)
- // psram_rf_cfg_phy_iomux_out_wr_ads0
- #define PSRAM_PHY_RF_PHY_IO_D0_OUT_ADS0 (1 << 0)
- #define PSRAM_PHY_RF_PHY_IO_D1_OUT_ADS0 (1 << 1)
- #define PSRAM_PHY_RF_PHY_IO_D2_OUT_ADS0 (1 << 2)
- #define PSRAM_PHY_RF_PHY_IO_D3_OUT_ADS0 (1 << 3)
- #define PSRAM_PHY_RF_PHY_IO_D4_OUT_ADS0 (1 << 4)
- #define PSRAM_PHY_RF_PHY_IO_D5_OUT_ADS0 (1 << 5)
- #define PSRAM_PHY_RF_PHY_IO_D6_OUT_ADS0 (1 << 6)
- #define PSRAM_PHY_RF_PHY_IO_D7_OUT_ADS0 (1 << 7)
- #define PSRAM_PHY_RF_PHY_IO_DQM_OUT_ADS0 (1 << 8)
- #define PSRAM_PHY_RF_PHY_IO_DQS_OUT_ADS0 (1 << 9)
- #define PSRAM_PHY_RF_PHY_IO_CLK_OUT_ADS0 (1 << 16)
- #define PSRAM_PHY_RF_PHY_IO_CSN_OUT_ADS0 (1 << 20)
- // psram_rf_cfg_dll_ads1
- #define PSRAM_PHY_RF_DLL_CLR_ADS1 (1 << 8)
- #define PSRAM_PHY_RF_DLL_AUTO_CLR_EN_ADS1 (1 << 9)
- #define PSRAM_PHY_RF_DL_CPST_EN_ADS1 (1 << 10)
- #define PSRAM_PHY_RF_DL_CPST_START_ADS1 (1 << 11)
- #define PSRAM_PHY_RF_DL_CPST_AUTO_REF_EN_ADS1 (1 << 12)
- #define PSRAM_PHY_RF_DLL_ERR_CLR_ADS1 (1 << 13)
- #define PSRAM_PHY_RF_DLL_CLK_SEL_ADS1 (1 << 14)
- #define PSRAM_PHY_RF_DLL_EN_ADS1 (1 << 15)
- #define PSRAM_PHY_RF_DL_CPST_THR_ADS1(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RF_DLL_PD_CNT_ADS1(n) (((n)&0x7) << 24)
- #define PSRAM_PHY_RF_DLL_AUTO_ERR_CLR_EN_ADS1 (1 << 27)
- #define PSRAM_PHY_RF_DLL_LOCK_WAIT_ADS1(n) (((n)&0xf) << 28)
- // psram_rfdll_status_dll_ads1
- #define PSRAM_PHY_RFDLL_CNT_ADS1(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDL_CPST_ST_ADS1 (1 << 24)
- #define PSRAM_PHY_RFDLL_ST_ADS1(n) (((n)&0x7) << 25)
- #define PSRAM_PHY_RFDLL_LOCKED_ADS1 (1 << 28)
- #define PSRAM_PHY_RFDLL_ERROR_ADS1 (1 << 29)
- // psram_rf_cfg_dll_dl_0_wr_ads1
- #define PSRAM_PHY_RF_CLKWR_RAW_DL_SEL_ADS1(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDL_CLKWR_RAW_CNT_ADS1(n) (((n)&0xff) << 8)
- #define PSRAM_PHY_RF_CLKWR_RAW_DL_CPST_OFFSET_ADS1(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RF_CLKWR_QTR_DL_SEL_ADS1(n) (((n)&0x3) << 24)
- #define PSRAM_PHY_RFDL_CLKWR_QTR_CNT_ADS1(n) (((n)&0x3) << 26)
- #define PSRAM_PHY_RF_CLKWR_QTR_DL_CPST_OFFSET_ADS1(n) (((n)&0x3) << 28)
- #define PSRAM_PHY_RF_CLKWR_DL_CPST_MINUS_ADS1 (1 << 30)
- #define PSRAM_PHY_RF_CLKWR_DL_CPST_EN_ADS1 (1 << 31)
- // psram_rf_cfg_dll_dl_1_wr_ads1
- #define PSRAM_PHY_RF_DQS_IN_POS_RAW_DL_SEL_ADS1(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDL_DQS_IN_POS_RAW_CNT_ADS1(n) (((n)&0xff) << 8)
- #define PSRAM_PHY_RF_DQS_IN_POS_RAW_DL_CPST_OFFSET_ADS1(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RF_DQS_IN_POS_QTR_DL_SEL_ADS1(n) (((n)&0x3) << 24)
- #define PSRAM_PHY_RFDL_DQS_IN_POS_QTR_CNT_ADS1(n) (((n)&0x3) << 26)
- #define PSRAM_PHY_RF_DQS_IN_POS_QTR_DL_CPST_OFFSET_ADS1(n) (((n)&0x3) << 28)
- #define PSRAM_PHY_RF_DQS_IN_POS_DL_CPST_MINUS_ADS1 (1 << 30)
- #define PSRAM_PHY_RF_DQS_IN_POS_DL_CPST_EN_ADS1 (1 << 31)
- // psram_rf_cfg_dll_dl_2_wr_ads1
- #define PSRAM_PHY_RF_DQS_IN_NEG_RAW_DL_SEL_ADS1(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDL_DQS_IN_NEG_RAW_CNT_ADS1(n) (((n)&0xff) << 8)
- #define PSRAM_PHY_RF_DQS_IN_NEG_RAW_DL_CPST_OFFSET_ADS1(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RF_DQS_IN_NEG_QTR_DL_SEL_ADS1(n) (((n)&0x3) << 24)
- #define PSRAM_PHY_RFDL_DQS_IN_NEG_QTR_CNT_ADS1(n) (((n)&0x3) << 26)
- #define PSRAM_PHY_RF_DQS_IN_NEG_QTR_DL_CPST_OFFSET_ADS1(n) (((n)&0x3) << 28)
- #define PSRAM_PHY_RF_DQS_IN_NEG_DL_CPST_MINUS_ADS1 (1 << 30)
- #define PSRAM_PHY_RF_DQS_IN_NEG_DL_CPST_EN_ADS1 (1 << 31)
- // psram_rf_cfg_dll_dl_3_wr_ads1
- #define PSRAM_PHY_RF_DQS_GATE_RAW_DL_SEL_ADS1(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDL_DQS_GATE_RAW_CNT_ADS1(n) (((n)&0xff) << 8)
- #define PSRAM_PHY_RF_DQS_GATE_RAW_DL_CPST_OFFSET_ADS1(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RF_DQS_GATE_QTR_DL_SEL_ADS1(n) (((n)&0x3) << 24)
- #define PSRAM_PHY_RFDL_DQS_GATE_QTR_CNT_ADS1(n) (((n)&0x3) << 26)
- #define PSRAM_PHY_RF_DQS_GATE_QTR_DL_CPST_OFFSET_ADS1(n) (((n)&0x3) << 28)
- #define PSRAM_PHY_RF_DQS_GATE_DL_CPST_MINUS_ADS1 (1 << 30)
- #define PSRAM_PHY_RF_DQS_GATE_DL_CPST_EN_ADS1 (1 << 31)
- // psram_rf_cfg_dll_dl_4_wr_ads1
- #define PSRAM_PHY_RF_DLY_OUT_CLK_DL_SEL_ADS1(n) (((n)&0x1f) << 0)
- #define PSRAM_PHY_RF_DLY_OUT_CEN_DL_SEL_ADS1(n) (((n)&0x1f) << 8)
- // psram_rf_cfg_dll_dl_5_wr_ads1
- #define PSRAM_PHY_RF_DLY_OUT_D0_DL_SEL_ADS1(n) (((n)&0x1f) << 0)
- #define PSRAM_PHY_RF_DLY_OUT_D1_DL_SEL_ADS1(n) (((n)&0x1f) << 8)
- #define PSRAM_PHY_RF_DLY_OUT_D2_DL_SEL_ADS1(n) (((n)&0x1f) << 16)
- #define PSRAM_PHY_RF_DLY_OUT_D3_DL_SEL_ADS1(n) (((n)&0x1f) << 24)
- // psram_rf_cfg_dll_dl_6_wr_ads1
- #define PSRAM_PHY_RF_DLY_OUT_D4_DL_SEL_ADS1(n) (((n)&0x1f) << 0)
- #define PSRAM_PHY_RF_DLY_OUT_D5_DL_SEL_ADS1(n) (((n)&0x1f) << 8)
- #define PSRAM_PHY_RF_DLY_OUT_D6_DL_SEL_ADS1(n) (((n)&0x1f) << 16)
- #define PSRAM_PHY_RF_DLY_OUT_D7_DL_SEL_ADS1(n) (((n)&0x1f) << 24)
- // psram_rf_cfg_dll_dl_7_wr_ads1
- #define PSRAM_PHY_RF_DLY_IN_D0_DL_SEL_ADS1(n) (((n)&0x1f) << 0)
- #define PSRAM_PHY_RF_DLY_IN_D1_DL_SEL_ADS1(n) (((n)&0x1f) << 8)
- #define PSRAM_PHY_RF_DLY_IN_D2_DL_SEL_ADS1(n) (((n)&0x1f) << 16)
- #define PSRAM_PHY_RF_DLY_IN_D3_DL_SEL_ADS1(n) (((n)&0x1f) << 24)
- // psram_rf_cfg_dll_dl_8_wr_ads1
- #define PSRAM_PHY_RF_DLY_IN_D4_DL_SEL_ADS1(n) (((n)&0x1f) << 0)
- #define PSRAM_PHY_RF_DLY_IN_D5_DL_SEL_ADS1(n) (((n)&0x1f) << 8)
- #define PSRAM_PHY_RF_DLY_IN_D6_DL_SEL_ADS1(n) (((n)&0x1f) << 16)
- #define PSRAM_PHY_RF_DLY_IN_D7_DL_SEL_ADS1(n) (((n)&0x1f) << 24)
- // psram_rf_cfg_dll_dl_9_wr_ads1
- #define PSRAM_PHY_RF_DLY_OUT_DQS_DL_SEL_ADS1(n) (((n)&0x1f) << 0)
- #define PSRAM_PHY_RF_DLY_OUT_DQM_DL_SEL_ADS1(n) (((n)&0x1f) << 8)
- #define PSRAM_PHY_RF_DLY_IN_DQS_DL_SEL_ADS1(n) (((n)&0x1f) << 16)
- // psram_rfdll_status_max_cnt_ads1
- #define PSRAM_PHY_RFDLL_MAX_CNT_F0_ADS1(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDLL_MAX_CNT_F1_ADS1(n) (((n)&0xff) << 8)
- #define PSRAM_PHY_RFDLL_MAX_CNT_F2_ADS1(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RFDLL_MAX_CNT_F3_ADS1(n) (((n)&0xff) << 24)
- // psram_rfdll_status_min_cnt_ads1
- #define PSRAM_PHY_RFDLL_MIN_CNT_F0_ADS1(n) (((n)&0xff) << 0)
- #define PSRAM_PHY_RFDLL_MIN_CNT_F1_ADS1(n) (((n)&0xff) << 8)
- #define PSRAM_PHY_RFDLL_MIN_CNT_F2_ADS1(n) (((n)&0xff) << 16)
- #define PSRAM_PHY_RFDLL_MIN_CNT_F3_ADS1(n) (((n)&0xff) << 24)
- // psram_rf_cfg_phy_iomux_sel_wr_ads1
- #define PSRAM_PHY_RF_PHY_IO_D0_SEL_ADS1 (1 << 0)
- #define PSRAM_PHY_RF_PHY_IO_D1_SEL_ADS1 (1 << 1)
- #define PSRAM_PHY_RF_PHY_IO_D2_SEL_ADS1 (1 << 2)
- #define PSRAM_PHY_RF_PHY_IO_D3_SEL_ADS1 (1 << 3)
- #define PSRAM_PHY_RF_PHY_IO_D4_SEL_ADS1 (1 << 4)
- #define PSRAM_PHY_RF_PHY_IO_D5_SEL_ADS1 (1 << 5)
- #define PSRAM_PHY_RF_PHY_IO_D6_SEL_ADS1 (1 << 6)
- #define PSRAM_PHY_RF_PHY_IO_D7_SEL_ADS1 (1 << 7)
- #define PSRAM_PHY_RF_PHY_IO_DQM_SEL_ADS1 (1 << 8)
- #define PSRAM_PHY_RF_PHY_IO_DQS_SEL_ADS1 (1 << 9)
- #define PSRAM_PHY_RF_PHY_IO_CLK_SEL_ADS1 (1 << 16)
- #define PSRAM_PHY_RF_PHY_IO_CSN_SEL_ADS1 (1 << 20)
- // psram_rf_cfg_phy_iomux_ie_wr_ads1
- #define PSRAM_PHY_RF_PHY_IO_D0_IE_ADS1 (1 << 0)
- #define PSRAM_PHY_RF_PHY_IO_D1_IE_ADS1 (1 << 1)
- #define PSRAM_PHY_RF_PHY_IO_D2_IE_ADS1 (1 << 2)
- #define PSRAM_PHY_RF_PHY_IO_D3_IE_ADS1 (1 << 3)
- #define PSRAM_PHY_RF_PHY_IO_D4_IE_ADS1 (1 << 4)
- #define PSRAM_PHY_RF_PHY_IO_D5_IE_ADS1 (1 << 5)
- #define PSRAM_PHY_RF_PHY_IO_D6_IE_ADS1 (1 << 6)
- #define PSRAM_PHY_RF_PHY_IO_D7_IE_ADS1 (1 << 7)
- #define PSRAM_PHY_RF_PHY_IO_DQM_IE_ADS1 (1 << 8)
- #define PSRAM_PHY_RF_PHY_IO_DQS_IE_ADS1 (1 << 9)
- #define PSRAM_PHY_RF_PHY_IO_CLK_IE_ADS1 (1 << 16)
- #define PSRAM_PHY_RF_PHY_IO_CSN_IE_ADS1 (1 << 20)
- // psram_rf_cfg_phy_iomux_oe_wr_ads1
- #define PSRAM_PHY_RF_PHY_IO_D0_OE_ADS1 (1 << 0)
- #define PSRAM_PHY_RF_PHY_IO_D1_OE_ADS1 (1 << 1)
- #define PSRAM_PHY_RF_PHY_IO_D2_OE_ADS1 (1 << 2)
- #define PSRAM_PHY_RF_PHY_IO_D3_OE_ADS1 (1 << 3)
- #define PSRAM_PHY_RF_PHY_IO_D4_OE_ADS1 (1 << 4)
- #define PSRAM_PHY_RF_PHY_IO_D5_OE_ADS1 (1 << 5)
- #define PSRAM_PHY_RF_PHY_IO_D6_OE_ADS1 (1 << 6)
- #define PSRAM_PHY_RF_PHY_IO_D7_OE_ADS1 (1 << 7)
- #define PSRAM_PHY_RF_PHY_IO_DQM_OE_ADS1 (1 << 8)
- #define PSRAM_PHY_RF_PHY_IO_DQS_OE_ADS1 (1 << 9)
- #define PSRAM_PHY_RF_PHY_IO_CLK_OE_ADS1 (1 << 16)
- #define PSRAM_PHY_RF_PHY_IO_CSN_OE_ADS1 (1 << 20)
- // psram_rf_cfg_phy_iomux_out_wr_ads1
- #define PSRAM_PHY_RF_PHY_IO_D0_OUT_ADS1 (1 << 0)
- #define PSRAM_PHY_RF_PHY_IO_D1_OUT_ADS1 (1 << 1)
- #define PSRAM_PHY_RF_PHY_IO_D2_OUT_ADS1 (1 << 2)
- #define PSRAM_PHY_RF_PHY_IO_D3_OUT_ADS1 (1 << 3)
- #define PSRAM_PHY_RF_PHY_IO_D4_OUT_ADS1 (1 << 4)
- #define PSRAM_PHY_RF_PHY_IO_D5_OUT_ADS1 (1 << 5)
- #define PSRAM_PHY_RF_PHY_IO_D6_OUT_ADS1 (1 << 6)
- #define PSRAM_PHY_RF_PHY_IO_D7_OUT_ADS1 (1 << 7)
- #define PSRAM_PHY_RF_PHY_IO_DQM_OUT_ADS1 (1 << 8)
- #define PSRAM_PHY_RF_PHY_IO_DQS_OUT_ADS1 (1 << 9)
- #define PSRAM_PHY_RF_PHY_IO_CLK_OUT_ADS1 (1 << 16)
- #define PSRAM_PHY_RF_PHY_IO_CSN_OUT_ADS1 (1 << 20)
- // psram_drf_cfg
- #define PSRAM_PHY_DRF_CLKDMEM_OUT_SEL (1 << 0)
- // psram_drf_cfg_reg_sel
- #define PSRAM_PHY_DRF_REG_SEL(n) (((n)&0x3) << 0)
- // psram_drf_cfg_dqs_ie_sel_f0
- #define PSRAM_PHY_DRF_DQS_IE_SEL_F0(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_oe_sel_f0
- #define PSRAM_PHY_DRF_DQS_OE_SEL_F0(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_out_sel_f0
- #define PSRAM_PHY_DRF_DQS_OUT_SEL_F0(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_gate_sel_f0
- #define PSRAM_PHY_DRF_DQS_GATE_SEL_F0(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_data_ie_sel_f0
- #define PSRAM_PHY_DRF_DATA_IE_SEL_F0(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_data_oe_sel_f0
- #define PSRAM_PHY_DRF_DATA_OE_SEL_F0(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_ie_sel_f1
- #define PSRAM_PHY_DRF_DQS_IE_SEL_F1(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_oe_sel_f1
- #define PSRAM_PHY_DRF_DQS_OE_SEL_F1(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_out_sel_f1
- #define PSRAM_PHY_DRF_DQS_OUT_SEL_F1(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_gate_sel_f1
- #define PSRAM_PHY_DRF_DQS_GATE_SEL_F1(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_data_ie_sel_f1
- #define PSRAM_PHY_DRF_DATA_IE_SEL_F1(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_data_oe_sel_f1
- #define PSRAM_PHY_DRF_DATA_OE_SEL_F1(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_ie_sel_f2
- #define PSRAM_PHY_DRF_DQS_IE_SEL_F2(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_oe_sel_f2
- #define PSRAM_PHY_DRF_DQS_OE_SEL_F2(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_out_sel_f2
- #define PSRAM_PHY_DRF_DQS_OUT_SEL_F2(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_gate_sel_f2
- #define PSRAM_PHY_DRF_DQS_GATE_SEL_F2(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_data_ie_sel_f2
- #define PSRAM_PHY_DRF_DATA_IE_SEL_F2(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_data_oe_sel_f2
- #define PSRAM_PHY_DRF_DATA_OE_SEL_F2(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_ie_sel_f3
- #define PSRAM_PHY_DRF_DQS_IE_SEL_F3(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_oe_sel_f3
- #define PSRAM_PHY_DRF_DQS_OE_SEL_F3(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_out_sel_f3
- #define PSRAM_PHY_DRF_DQS_OUT_SEL_F3(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dqs_gate_sel_f3
- #define PSRAM_PHY_DRF_DQS_GATE_SEL_F3(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_data_ie_sel_f3
- #define PSRAM_PHY_DRF_DATA_IE_SEL_F3(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_data_oe_sel_f3
- #define PSRAM_PHY_DRF_DATA_OE_SEL_F3(n) (((n)&0xffff) << 0)
- // psram_drf_cfg_dll_mode_f0
- #define PSRAM_PHY_DRF_DLL_CLK_MODE_F0 (1 << 0)
- #define PSRAM_PHY_DRF_DLL_HALF_MODE_F0 (1 << 1)
- #define PSRAM_PHY_DRF_DLL_SATU_MODE_F0 (1 << 2)
- // psram_drf_cfg_dll_cnt_f0
- #define PSRAM_PHY_DRF_DLL_INIT_CNT_F0(n) (((n)&0x3ff) << 0)
- #define PSRAM_PHY_DRF_DLL_SATU_CNT_F0(n) (((n)&0x3ff) << 10)
- #define PSRAM_PHY_DRF_DLL_AUTO_CNT_F0(n) (((n)&0x3ff) << 20)
- // psram_drf_cfg_dll_mode_f1
- #define PSRAM_PHY_DRF_DLL_CLK_MODE_F1 (1 << 0)
- #define PSRAM_PHY_DRF_DLL_HALF_MODE_F1 (1 << 1)
- #define PSRAM_PHY_DRF_DLL_SATU_MODE_F1 (1 << 2)
- // psram_drf_cfg_dll_cnt_f1
- #define PSRAM_PHY_DRF_DLL_INIT_CNT_F1(n) (((n)&0x3ff) << 0)
- #define PSRAM_PHY_DRF_DLL_SATU_CNT_F1(n) (((n)&0x3ff) << 10)
- #define PSRAM_PHY_DRF_DLL_AUTO_CNT_F1(n) (((n)&0x3ff) << 20)
- // psram_drf_cfg_dll_mode_f2
- #define PSRAM_PHY_DRF_DLL_CLK_MODE_F2 (1 << 0)
- #define PSRAM_PHY_DRF_DLL_HALF_MODE_F2 (1 << 1)
- #define PSRAM_PHY_DRF_DLL_SATU_MODE_F2 (1 << 2)
- // psram_drf_cfg_dll_cnt_f2
- #define PSRAM_PHY_DRF_DLL_INIT_CNT_F2(n) (((n)&0x3ff) << 0)
- #define PSRAM_PHY_DRF_DLL_SATU_CNT_F2(n) (((n)&0x3ff) << 10)
- #define PSRAM_PHY_DRF_DLL_AUTO_CNT_F2(n) (((n)&0x3ff) << 20)
- // psram_drf_cfg_dll_mode_f3
- #define PSRAM_PHY_DRF_DLL_CLK_MODE_F3 (1 << 0)
- #define PSRAM_PHY_DRF_DLL_HALF_MODE_F3 (1 << 1)
- #define PSRAM_PHY_DRF_DLL_SATU_MODE_F3 (1 << 2)
- // psram_drf_cfg_dll_cnt_f3
- #define PSRAM_PHY_DRF_DLL_INIT_CNT_F3(n) (((n)&0x3ff) << 0)
- #define PSRAM_PHY_DRF_DLL_SATU_CNT_F3(n) (((n)&0x3ff) << 10)
- #define PSRAM_PHY_DRF_DLL_AUTO_CNT_F3(n) (((n)&0x3ff) << 20)
- // psram_drf_format_control
- #define PSRAM_PHY_DRF_MEMORY_BURST(n) (((n)&0x3) << 0)
- // psram_drf_t_rcd
- #define PSRAM_PHY_DRF_T_RCD(n) (((n)&0xf) << 0)
- // psram_drf_t_rddata_en
- #define PSRAM_PHY_DRF_T_RDDATA_EN(n) (((n)&0xf) << 0)
- // psram_drf_t_phywrlat
- #define PSRAM_PHY_DRF_T_PHYWRLAT(n) (((n)&0xf) << 0)
- // psram_drf_t_cph_wr
- #define PSRAM_PHY_DRF_T_CPH_WR(n) (((n)&0xf) << 0)
- // psram_drf_t_cph_rd
- #define PSRAM_PHY_DRF_T_CPH_RD(n) (((n)&0x7) << 0)
- #define PSRAM_PHY_DRF_T_CPH_RD_OPTM (1 << 4)
- // psram_drf_t_data_oe_ext
- #define PSRAM_PHY_DRF_T_DATA_OE_WDATA_EXT(n) (((n)&0xf) << 0)
- #define PSRAM_PHY_DRF_T_DATA_OE_CMD_EXT(n) (((n)&0xf) << 4)
- // psram_drf_t_dqs_oe_ext
- #define PSRAM_PHY_DRF_T_DQS_OE_EXT(n) (((n)&0xf) << 0)
- // psram_drf_t_xphs
- #define PSRAM_PHY_DRF_T_XPHS(n) (((n)&0x1f) << 0)
- // psram_drf_t_rddata_vld_sync
- #define PSRAM_PHY_DRF_T_RDDATA_VLD_SYNC(n) (((n)&0x7) << 0)
- // psram_drf_t_rddata_late
- #define PSRAM_PHY_DRF_T_RDDATA_LATE(n) (((n)&0x1f) << 0)
- // psram_drf_t_rddata_valid_early
- #define PSRAM_PHY_DRF_T_RDDATA_VALID_EARLY(n) (((n)&0x3) << 0)
- // drf_t_wb_rst
- #define PSRAM_PHY_DRF_T_WB_RH_RST(n) (((n)&0x3f) << 0)
- #define PSRAM_PHY_DRF_T_WB_RP_RST(n) (((n)&0x3f) << 8)
- // psram_drf_train_cfg
- #define PSRAM_PHY_DRF_PHYUPD_EN (1 << 0)
- #define PSRAM_PHY_DRF_PHYUPD_TYPE_SEL(n) (((n)&0x3) << 1)
- #define PSRAM_PHY_DRF_PHYUPD_TYPE_0(n) (((n)&0x3) << 4)
- #define PSRAM_PHY_DRF_PHYUPD_TYPE_1(n) (((n)&0x3) << 6)
- #define PSRAM_PHY_DRF_PHYUPD_TYPE_2(n) (((n)&0x3) << 8)
- #define PSRAM_PHY_DRF_PHYUPD_TYPE_3(n) (((n)&0x3) << 10)
- #define PSRAM_PHY_DRF_PHY_WRLVL_EN (1 << 12)
- #define PSRAM_PHY_DRF_DMC_WRLVL_EN (1 << 13)
- #define PSRAM_PHY_DRF_PHY_RDLVL_EN (1 << 16)
- #define PSRAM_PHY_DRF_DMC_RDLVL_EN (1 << 17)
- #define PSRAM_PHY_DRF_PHY_RDLVL_GATE_EN (1 << 20)
- #define PSRAM_PHY_DRF_DMC_RDLVL_GATE_EN (1 << 21)
- // psram_drf_mr_data_en
- #define PSRAM_PHY_DRF_MR_DATA_EN (1 << 0)
- // psram_rf_irq_ctrl
- #define PSRAM_PHY_RF_IRQ_EN_DLL_UNLOCK_ADS0 (1 << 0)
- #define PSRAM_PHY_RF_IRQ_EN_DLL_UNLOCK_ADS1 (1 << 1)
- #define PSRAM_PHY_RF_IRQ_EN_RDDATA_TIMEOUT_ADS0 (1 << 4)
- #define PSRAM_PHY_RF_IRQ_EN_RDDATA_TIMEOUT_ADS1 (1 << 5)
- #define PSRAM_PHY_RF_IRQ_EN_DISC_RST_ADS0 (1 << 8)
- #define PSRAM_PHY_RF_IRQ_EN_DISC_MRW_ADS0 (1 << 9)
- #define PSRAM_PHY_RF_IRQ_EN_DISC_MRR_ADS0 (1 << 10)
- #define PSRAM_PHY_RF_IRQ_EN_DISC_WR_ADS0 (1 << 11)
- #define PSRAM_PHY_RF_IRQ_EN_DISC_RD_ADS0 (1 << 12)
- #define PSRAM_PHY_RF_IRQ_EN_DISC_RST_ADS1 (1 << 16)
- #define PSRAM_PHY_RF_IRQ_EN_DISC_MRW_ADS1 (1 << 17)
- #define PSRAM_PHY_RF_IRQ_EN_DISC_MRR_ADS1 (1 << 18)
- #define PSRAM_PHY_RF_IRQ_EN_DISC_WR_ADS1 (1 << 19)
- #define PSRAM_PHY_RF_IRQ_EN_DISC_RD_ADS1 (1 << 20)
- // psram_rf_irq_status_clr
- #define PSRAM_PHY_RF_IRQ_ST_CLR_DLL_UNLOCK_ADS0 (1 << 0)
- #define PSRAM_PHY_RF_IRQ_ST_CLR_DLL_UNLOCK_ADS1 (1 << 1)
- #define PSRAM_PHY_RF_IRQ_ST_CLR_RDDATA_TIMEOUT_ADS0 (1 << 4)
- #define PSRAM_PHY_RF_IRQ_ST_CLR_RDDATA_TIMEOUT_ADS1 (1 << 5)
- #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_RST_ADS0 (1 << 8)
- #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_MRW_ADS0 (1 << 9)
- #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_MRR_ADS0 (1 << 10)
- #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_WR_ADS0 (1 << 11)
- #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_RD_ADS0 (1 << 12)
- #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_RST_ADS1 (1 << 16)
- #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_MRW_ADS1 (1 << 17)
- #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_MRR_ADS1 (1 << 18)
- #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_WR_ADS1 (1 << 19)
- #define PSRAM_PHY_RF_IRQ_ST_CLR_DISC_RD_ADS1 (1 << 20)
- // psram_rf_irq_status
- #define PSRAM_PHY_RF_IRQ_ST_DLL_UNLOCK_ADS0 (1 << 0)
- #define PSRAM_PHY_RF_IRQ_ST_DLL_UNLOCK_ADS1 (1 << 1)
- #define PSRAM_PHY_RF_IRQ_ST_RDDATA_TIMEOUT_ADS0 (1 << 4)
- #define PSRAM_PHY_RF_IRQ_ST_RDDATA_TIMEOUT_ADS1 (1 << 5)
- #define PSRAM_PHY_RF_IRQ_ST_DISC_RST_ADS0 (1 << 8)
- #define PSRAM_PHY_RF_IRQ_ST_DISC_MRW_ADS0 (1 << 9)
- #define PSRAM_PHY_RF_IRQ_ST_DISC_MRR_ADS0 (1 << 10)
- #define PSRAM_PHY_RF_IRQ_ST_DISC_WR_ADS0 (1 << 11)
- #define PSRAM_PHY_RF_IRQ_ST_DISC_RD_ADS0 (1 << 12)
- #define PSRAM_PHY_RF_IRQ_ST_DISC_RST_ADS1 (1 << 16)
- #define PSRAM_PHY_RF_IRQ_ST_DISC_MRW_ADS1 (1 << 17)
- #define PSRAM_PHY_RF_IRQ_ST_DISC_MRR_ADS1 (1 << 18)
- #define PSRAM_PHY_RF_IRQ_ST_DISC_WR_ADS1 (1 << 19)
- #define PSRAM_PHY_RF_IRQ_ST_DISC_RD_ADS1 (1 << 20)
- // psram_rf_irq_cnt_clr
- #define PSRAM_PHY_RF_IRQ_CNT_CLR_DLL_UNLOCK_ADS0 (1 << 0)
- #define PSRAM_PHY_RF_IRQ_CNT_CLR_DLL_UNLOCK_ADS1 (1 << 1)
- // psram_rf_irq_cnt_dll_unlock_ads0
- #define PSRAM_PHY_RF_IRQ_CNT_DLL_UNLOCK_ADS0(n) (((n)&0x7fffffff) << 0)
- #define PSRAM_PHY_RF_IRQ_CNT_OVERFLOW_DLL_UNLOCK_ADS0 (1 << 31)
- // psram_rf_irq_cnt_dll_unlock_ads1
- #define PSRAM_PHY_RF_IRQ_CNT_DLL_UNLOCK_ADS1(n) (((n)&0x7fffffff) << 0)
- #define PSRAM_PHY_RF_IRQ_CNT_OVERFLOW_DLL_UNLOCK_ADS1 (1 << 31)
- // io_rf_psram_drv_cfg
- #define PSRAM_PHY_PSRAM_FIX_READ0 (1 << 0)
- #define PSRAM_PHY_PSRAM_SLEWRATE(n) (((n)&0x3) << 1)
- #define PSRAM_PHY_PSRAM_DRVP(n) (((n)&0x1f) << 3)
- #define PSRAM_PHY_PSRAM_DRVN(n) (((n)&0x1f) << 8)
- // io_rf_psram_pad_en_cfg
- #define PSRAM_PHY_PSRAM_PAD_CLKN_EN (1 << 0)
- // io_rf_psram_pull_cfg
- #define PSRAM_PHY_PSRAM_DQS_PULL0_BIT(n) (((n)&0x3) << 0)
- #define PSRAM_PHY_PSRAM_DQ_PULL0_BIT(n) (((n)&0x3) << 2)
- #define PSRAM_PHY_PSRAM_DM_PULL1_BIT(n) (((n)&0x3) << 4)
- #define PSRAM_PHY_PSRAM_CLKN_PULL1_BIT(n) (((n)&0x3) << 6)
- #define PSRAM_PHY_PSRAM_CLK_PULL0_BIT(n) (((n)&0x3) << 8)
- #define PSRAM_PHY_PSRAM_CEN_PULL1_BIT(n) (((n)&0x3) << 10)
- #endif // _PSRAM_PHY_H_
|