mtk-phy-asic.h 151 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186
  1. #ifndef __MTK_PROJECT_PHY__H
  2. #define __MTK_PROJECT_PHY__H
  3. /* referenecd from ssusb_USB20_PHY_regmap_com_T28HPM.xls */
  4. #define U3D_USBPHYACR0 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0000) /*2:30 SIV_B */
  5. #define U3D_USBPHYACR1 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0004) /*0:23 SIV_B */
  6. #define U3D_USBPHYACR2 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0008) /*0:15 SIV_B */
  7. #define U3D_USBPHYACR4 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0010) /*0:31 SIV_B */
  8. #define U3D_USBPHYACR5 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0014) /*0:28 SIV_B */
  9. #define U3D_USBPHYACR6 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0018) /*0:31 SIV_B */
  10. #define U3D_U2PHYACR3 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x001c) /*0:31 SIV_B */
  11. #define U3D_U2PHYACR4_0 (SSUSB_SIFSLV_U2PHY_COM_SIV_B_BASE+0x0020) /*0:5 SIV_B */
  12. #define U3D_U2PHYACR4 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0020) /*8:18 */
  13. #define U3D_U2PHYAMON0 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0024) /*0:1 */
  14. #define U3D_U2PHYDCR0 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0060) /*0:31 */
  15. #define U3D_U2PHYDCR1 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0064) /*0:31 */
  16. #define U3D_U2PHYDTM0 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0068) /*0:31 */
  17. #define U3D_U2PHYDTM1 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x006C) /*0:31 */
  18. #define U3D_U2PHYDMON0 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0070) /*0:7 */
  19. #define U3D_U2PHYDMON1 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0074) /*0:31 */
  20. #define U3D_U2PHYDMON2 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0078) /*0:31 */
  21. #define U3D_U2PHYDMON3 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x007C) /*0:31 */
  22. #define U3D_U2PHYBC12C (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0080) /*0:31 */
  23. #define U3D_U2PHYBC12C1 (SSUSB_SIFSLV_U2PHY_COM_BASE+0x0084) /*0:7 */
  24. #define U3D_U2PHYREGFPPC (SSUSB_SIFSLV_U2PHY_COM_BASE+0x00e0) /*0:4 */
  25. #define U3D_U2PHYVERSIONC (SSUSB_SIFSLV_U2PHY_COM_BASE+0x00f0) /*0:31 */
  26. #define U3D_U2PHYREGFCOM (SSUSB_SIFSLV_U2PHY_COM_BASE+0x00fc) /*16:31 */
  27. #define U3D_USB30_PHYA_REG0 (SSUSB_USB30_PHYA_SIV_B_BASE+0x0000)
  28. #define U3D_USB30_PHYA_REG6 (SSUSB_USB30_PHYA_SIV_B_BASE+0x0018)
  29. #define U3D_USB30_PHYA_REG9 (SSUSB_USB30_PHYA_SIV_B_BASE+0x0024)
  30. #define U3D_USB30_PHYA_REGC (SSUSB_USB30_PHYA_SIV_B_BASE + 0x0030)
  31. #define U3D_USB30_PHYA_REGD (SSUSB_USB30_PHYA_SIV_B_BASE + 0x0034)
  32. #define U3D_U3PHYA_DA_REG0 (SSUSB_SIFSLV_U3PHYA_DA_BASE + 0x0)
  33. #define U3D_PHYD_CDR1 (SSUSB_SIFSLV_U3PHYD_BASE+0x5c)
  34. #define U3D_XTALCTL3 (SSUSB_SIFSLV_SPLLC + 0x18)
  35. #if 0 /* 6595 */
  36. #define U3D_U2FREQ_CYCLE (SSUSB_SIFSLV_U2FREQ_BASE+0x01)
  37. #define U3D_U2FREQ_ENFREQ (SSUSB_SIFSLV_U2FREQ_BASE+0x03)
  38. #define U3D_U2FREQ_VALUE (SSUSB_SIFSLV_U2FREQ_BASE+0x0c)
  39. #define U3D_U2FREQ_VALID (SSUSB_SIFSLV_U2FREQ_BASE+0x10)
  40. #define U3D_U2FREQ_CLK (SSUSB_SIFSLV_U2FREQ_BASE+0x11)
  41. #else /* 8173 */
  42. #define U3D_U2FREQ_CYCLE (SSUSB_SIFSLV_U2FREQ_BASE+0x00)
  43. #define U3D_U2FREQ_ENFREQ (SSUSB_SIFSLV_U2FREQ_BASE+0x00)
  44. #define U3D_U2FREQ_VALUE (SSUSB_SIFSLV_U2FREQ_BASE+0x0c)
  45. #define U3D_U2FREQ_VALID (SSUSB_SIFSLV_U2FREQ_BASE+0x10)
  46. #define U3D_U2FREQ_CLK (SSUSB_SIFSLV_U2FREQ_BASE+0x10)
  47. #endif
  48. #define U2_SR_COEF_E60802 28
  49. /* U3D_U2PHYDTM1 */
  50. #define FORCE_IDDIG (0x1<<9) /* 9:9 */
  51. #define RG_IDDIG (0x1<<1) /* 1:1 */
  52. /* ///////////////////////////////////////////////////////////////////////////// */
  53. #if 0
  54. struct u2phy_reg_e {
  55. /* 0x0 */
  56. PHY_LE32 usbphyacr0;
  57. PHY_LE32 usbphyacr1;
  58. PHY_LE32 usbphyacr2;
  59. PHY_LE32 reserve0;
  60. /* 0x10 */
  61. PHY_LE32 usbphyacr4;
  62. PHY_LE32 usbphyacr5;
  63. PHY_LE32 usbphyacr6;
  64. PHY_LE32 u2phyacr3;
  65. /* 0x20 */
  66. PHY_LE32 u2phyacr4;
  67. PHY_LE32 u2phyamon0;
  68. PHY_LE32 reserve1[2];
  69. /* 0x30~0x50 */
  70. PHY_LE32 reserve2[12];
  71. /* 0x60 */
  72. PHY_LE32 u2phydcr0;
  73. PHY_LE32 u2phydcr1;
  74. PHY_LE32 u2phydtm0;
  75. PHY_LE32 u2phydtm1;
  76. /* 0x70 */
  77. PHY_LE32 u2phydmon0;
  78. PHY_LE32 u2phydmon1;
  79. PHY_LE32 u2phydmon2;
  80. PHY_LE32 u2phydmon3;
  81. /* 0x80 */
  82. PHY_LE32 u2phybc12c;
  83. PHY_LE32 u2phybc12c1;
  84. PHY_LE32 reserve3[2];
  85. /* 0x90~0xd0 */
  86. PHY_LE32 reserve4[20];
  87. /* 0xe0 */
  88. PHY_LE32 regfppc;
  89. PHY_LE32 reserve5[3];
  90. /* 0xf0 */
  91. PHY_LE32 versionc;
  92. PHY_LE32 reserve6[2];
  93. PHY_LE32 regfcom;
  94. };
  95. #endif
  96. /* U3D_USBPHYACR0 */
  97. #define E60802_RG_USB20_MPX_OUT_SEL (0x7<<28) /* 30:28 */
  98. #define E60802_RG_USB20_TX_PH_ROT_SEL (0x7<<24) /* 26:24 */
  99. #define E60802_RG_USB20_PLL_DIVEN (0x7<<20) /* 22:20 */
  100. #define E60802_RG_USB20_PLL_BR (0x1<<18) /* 18:18 */
  101. #define E60802_RG_USB20_PLL_BP (0x1<<17) /* 17:17 */
  102. #define E60802_RG_USB20_PLL_BLP (0x1<<16) /* 16:16 */
  103. #define E60802_RG_USB20_USBPLL_FORCE_ON (0x1<<15) /* 15:15 */
  104. #define E60802_RG_USB20_PLL_FBDIV (0x7f<<8) /* 14:8 */
  105. #define E60802_RG_USB20_PLL_PREDIV (0x3<<6) /* 7:6 */
  106. #define E60802_RG_USB20_INTR_EN (0x1<<5) /* 5:5 */
  107. #define E60802_RG_USB20_REF_EN (0x1<<4) /* 4:4 */
  108. #define E60802_RG_USB20_BGR_DIV (0x3<<2) /* 3:2 */
  109. #define E60802_RG_SIFSLV_CHP_EN (0x1<<1) /* 1:1 */
  110. #define E60802_RG_SIFSLV_BGR_EN (0x1<<0) /* 0:0 */
  111. /* U3D_USBPHYACR1 */
  112. #define E60802_RG_USB20_INTR_CAL (0x1f<<19) /* 23:19 */
  113. #define E60802_RG_USB20_OTG_VBUSTH (0x7<<16) /* 18:16 */
  114. #define E60802_RG_USB20_VRT_VREF_SEL (0x7<<12) /* 14:12 */
  115. #define E60802_RG_USB20_TERM_VREF_SEL (0x7<<8) /* 10:8 */
  116. #define E60802_RG_USB20_MPX_SEL (0xff<<0) /* 7:0 */
  117. /* U3D_USBPHYACR2 */
  118. #define E60802_RG_SIFSLV_MAC_BANDGAP_EN (0x1<<17) /* 17:17 */
  119. #define E60802_RG_SIFSLV_MAC_CHOPPER_EN (0x1<<16) /* 16:16 */
  120. #define E60802_RG_USB20_CLKREF_REV (0xffff<<0) /* 15:0 */
  121. /* U3D_USBPHYACR4 */
  122. #define E60802_RG_USB20_DP_ABIST_SOURCE_EN (0x1<<31) /* 31:31 */
  123. #define E60802_RG_USB20_DP_ABIST_SELE (0xf<<24) /* 27:24 */
  124. #define E60802_RG_USB20_ICUSB_EN (0x1<<16) /* 16:16 */
  125. #define E60802_RG_USB20_LS_CR (0x7<<12) /* 14:12 */
  126. #define E60802_RG_USB20_FS_CR (0x7<<8) /* 10:8 */
  127. #define E60802_RG_USB20_LS_SR (0x7<<4) /* 6:4 */
  128. #define E60802_RG_USB20_FS_SR (0x7<<0) /* 2:0 */
  129. /* U3D_USBPHYACR5 */
  130. #define E60802_RG_USB20_DISC_FIT_EN (0x1<<28) /* 28:28 */
  131. #define E60802_RG_USB20_INIT_SQ_EN_DG (0x3<<26) /* 27:26 */
  132. #define E60802_RG_USB20_HSTX_TMODE_SEL (0x3<<24) /* 25:24 */
  133. #define E60802_RG_USB20_SQD (0x3<<22) /* 23:22 */
  134. #define E60802_RG_USB20_DISCD (0x3<<20) /* 21:20 */
  135. #define E60802_RG_USB20_HSTX_TMODE_EN (0x1<<19) /* 19:19 */
  136. #define E60802_RG_USB20_PHYD_MONEN (0x1<<18) /* 18:18 */
  137. #define E60802_RG_USB20_INLPBK_EN (0x1<<17) /* 17:17 */
  138. #define E60802_RG_USB20_CHIRP_EN (0x1<<16) /* 16:16 */
  139. #define E60802_RG_USB20_HSTX_SRCAL_EN (0x1<<15) /* 15:15 */
  140. #define E60802_RG_USB20_HSTX_SRCTRL (0x7<<12) /* 14:12 */
  141. #define E60802_RG_USB20_HS_100U_U3_EN (0x1<<11) /* 11:11 */
  142. #define E60802_RG_USB20_GBIAS_ENB (0x1<<10) /* 10:10 */
  143. #define E60802_RG_USB20_DM_ABIST_SOURCE_EN (0x1<<7) /* 7:7 */
  144. #define E60802_RG_USB20_DM_ABIST_SELE (0xf<<0) /* 3:0 */
  145. /* U3D_USBPHYACR6 */
  146. #define E60802_RG_USB20_ISO_EN (0x1U<<31) /* 31:31 */
  147. #define E60802_RG_USB20_PHY_REV (0xef<<24) /* 31:24 */
  148. #define E60802_RG_USB20_BC11_SW_EN (0x1<<23) /* 23:23 */
  149. #define E60802_RG_USB20_SR_CLK_SEL (0x1<<22) /* 22:22 */
  150. #define E60802_RG_USB20_OTG_VBUSCMP_EN (0x1<<20) /* 20:20 */
  151. #define E60802_RG_USB20_OTG_ABIST_EN (0x1<<19) /* 19:19 */
  152. #define E60802_RG_USB20_OTG_ABIST_SELE (0x7<<16) /* 18:16 */
  153. #define E60802_RG_USB20_HSRX_MMODE_SELE (0x3<<12) /* 13:12 */
  154. #define E60802_RG_USB20_HSRX_BIAS_EN_SEL (0x3<<9) /* 10:9 */
  155. #define E60802_RG_USB20_HSRX_TMODE_EN (0x1<<8) /* 8:8 */
  156. #define E60802_RG_USB20_DISCTH (0xf<<4) /* 7:4 */
  157. #define E60802_RG_USB20_SQTH (0xf<<0) /* 3:0 */
  158. /* U3D_U2PHYACR3 */
  159. #define E60802_RG_USB20_HSTX_DBIST (0xf<<28) /* 31:28 */
  160. #define E60802_RG_USB20_HSTX_BIST_EN (0x1<<26) /* 26:26 */
  161. #define E60802_RG_USB20_HSTX_I_EN_MODE (0x3<<24) /* 25:24 */
  162. #define E60802_RG_USB20_USB11_TMODE_EN (0x1<<19) /* 19:19 */
  163. #define E60802_RG_USB20_TMODE_FS_LS_TX_EN (0x1<<18) /* 18:18 */
  164. #define E60802_RG_USB20_TMODE_FS_LS_RCV_EN (0x1<<17) /* 17:17 */
  165. #define E60802_RG_USB20_TMODE_FS_LS_MODE (0x1<<16) /* 16:16 */
  166. #define E60802_RG_USB20_HS_TERM_EN_MODE (0x3<<13) /* 14:13 */
  167. #define E60802_RG_USB20_PUPD_BIST_EN (0x1<<12) /* 12:12 */
  168. #define E60802_RG_USB20_EN_PU_DM (0x1<<11) /* 11:11 */
  169. #define E60802_RG_USB20_EN_PD_DM (0x1<<10) /* 10:10 */
  170. #define E60802_RG_USB20_EN_PU_DP (0x1<<9) /* 9:9 */
  171. #define E60802_RG_USB20_EN_PD_DP (0x1<<8) /* 8:8 */
  172. /* U3D_U2PHYACR4 */
  173. #define E60802_RG_USB20_DP_100K_MODE (0x1<<18) /* 18:18 */
  174. #define E60802_RG_USB20_DM_100K_EN (0x1<<17) /* 17:17 */
  175. #define E60802_USB20_DP_100K_EN (0x1<<16) /* 16:16 */
  176. #define E60802_USB20_GPIO_DM_I (0x1<<15) /* 15:15 */
  177. #define E60802_USB20_GPIO_DP_I (0x1<<14) /* 14:14 */
  178. #define E60802_USB20_GPIO_DM_OE (0x1<<13) /* 13:13 */
  179. #define E60802_USB20_GPIO_DP_OE (0x1<<12) /* 12:12 */
  180. #define E60802_RG_USB20_GPIO_CTL (0x1<<9) /* 9:9 */
  181. #define E60802_USB20_GPIO_MODE (0x1<<8) /* 8:8 */
  182. #define E60802_RG_USB20_TX_BIAS_EN (0x1<<5) /* 5:5 */
  183. #define E60802_RG_USB20_TX_VCMPDN_EN (0x1<<4) /* 4:4 */
  184. #define E60802_RG_USB20_HS_SQ_EN_MODE (0x3<<2) /* 3:2 */
  185. #define E60802_RG_USB20_HS_RCV_EN_MODE (0x3<<0) /* 1:0 */
  186. /* U3D_U2PHYAMON0 */
  187. #define E60802_RGO_USB20_GPIO_DM_O (0x1<<1) /* 1:1 */
  188. #define E60802_RGO_USB20_GPIO_DP_O (0x1<<0) /* 0:0 */
  189. /* U3D_U2PHYDCR0 */
  190. #define E60802_RG_USB20_CDR_TST (0x3<<30) /* 31:30 */
  191. #define E60802_RG_USB20_GATED_ENB (0x1<<29) /* 29:29 */
  192. #define E60802_RG_USB20_TESTMODE (0x3<<26) /* 27:26 */
  193. #define E60802_RG_SIFSLV_USB20_PLL_STABLE (0x1<<25) /* 25:25 */
  194. #define E60802_RG_SIFSLV_USB20_PLL_FORCE_ON (0x1<<24) /* 24:24 */
  195. #define E60802_RG_USB20_PHYD_RESERVE (0xffff<<8) /* 23:8 */
  196. #define E60802_RG_USB20_EBTHRLD (0x1<<7) /* 7:7 */
  197. #define E60802_RG_USB20_EARLY_HSTX_I (0x1<<6) /* 6:6 */
  198. #define E60802_RG_USB20_TX_TST (0x1<<5) /* 5:5 */
  199. #define E60802_RG_USB20_NEGEDGE_ENB (0x1<<4) /* 4:4 */
  200. #define E60802_RG_USB20_CDR_FILT (0xf<<0) /* 3:0 */
  201. /* U3D_U2PHYDCR1 */
  202. #define E60802_RG_USB20_PROBE_SEL (0xff<<24) /* 31:24 */
  203. #define E60802_RG_USB20_DRVVBUS (0x1<<23) /* 23:23 */
  204. #define E60802_RG_DEBUG_EN (0x1<<22) /* 22:22 */
  205. #define E60802_RG_USB20_OTG_PROBE (0x3<<20) /* 21:20 */
  206. #define E60802_RG_USB20_SW_PLLMODE (0x3<<18) /* 19:18 */
  207. #define E60802_RG_USB20_BERTH (0x3<<16) /* 17:16 */
  208. #define E60802_RG_USB20_LBMODE (0x3<<13) /* 14:13 */
  209. #define E60802_RG_USB20_FORCE_TAP (0x1<<12) /* 12:12 */
  210. #define E60802_RG_USB20_TAPSEL (0xfff<<0) /* 11:0 */
  211. /* U3D_U2PHYDTM0 */
  212. #define E60802_RG_UART_MODE (0x3<<30) /* 31:30 */
  213. #define E60802_FORCE_UART_I (0x1<<29) /* 29:29 */
  214. #define E60802_FORCE_UART_BIAS_EN (0x1<<28) /* 28:28 */
  215. #define E60802_FORCE_UART_TX_OE (0x1<<27) /* 27:27 */
  216. #define E60802_FORCE_UART_EN (0x1<<26) /* 26:26 */
  217. #define E60802_FORCE_USB_CLKEN (0x1<<25) /* 25:25 */
  218. #define E60802_FORCE_DRVVBUS (0x1<<24) /* 24:24 */
  219. #define E60802_FORCE_DATAIN (0x1<<23) /* 23:23 */
  220. #define E60802_FORCE_TXVALID (0x1<<22) /* 22:22 */
  221. #define E60802_FORCE_DM_PULLDOWN (0x1<<21) /* 21:21 */
  222. #define E60802_FORCE_DP_PULLDOWN (0x1<<20) /* 20:20 */
  223. #define E60802_FORCE_XCVRSEL (0x1<<19) /* 19:19 */
  224. #define E60802_FORCE_SUSPENDM (0x1<<18) /* 18:18 */
  225. #define E60802_FORCE_TERMSEL (0x1<<17) /* 17:17 */
  226. #define E60802_FORCE_OPMODE (0x1<<16) /* 16:16 */
  227. #define E60802_UTMI_MUXSEL (0x1<<15) /* 15:15 */
  228. #define E60802_RG_RESET (0x1<<14) /* 14:14 */
  229. #define E60802_RG_DATAIN (0xf<<10) /* 13:10 */
  230. #define E60802_RG_TXVALIDH (0x1<<9) /* 9:9 */
  231. #define E60802_RG_TXVALID (0x1<<8) /* 8:8 */
  232. #define E60802_RG_DMPULLDOWN (0x1<<7) /* 7:7 */
  233. #define E60802_RG_DPPULLDOWN (0x1<<6) /* 6:6 */
  234. #define E60802_RG_XCVRSEL (0x3<<4) /* 5:4 */
  235. #define E60802_RG_SUSPENDM (0x1<<3) /* 3:3 */
  236. #define E60802_RG_TERMSEL (0x1<<2) /* 2:2 */
  237. #define E60802_RG_OPMODE (0x3<<0) /* 1:0 */
  238. /* U3D_U2PHYDTM1 */
  239. #define E60802_RG_USB20_PRBS7_EN (0x1<<31) /* 31:31 */
  240. #define E60802_RG_USB20_PRBS7_BITCNT (0x3f<<24) /* 29:24 */
  241. #define E60802_RG_USB20_CLK48M_EN (0x1<<23) /* 23:23 */
  242. #define E60802_RG_USB20_CLK60M_EN (0x1<<22) /* 22:22 */
  243. #define E60802_RG_UART_I (0x1<<19) /* 19:19 */
  244. #define E60802_RG_UART_BIAS_EN (0x1<<18) /* 18:18 */
  245. #define E60802_RG_UART_TX_OE (0x1<<17) /* 17:17 */
  246. #define E60802_RG_UART_EN (0x1<<16) /* 16:16 */
  247. #define E60802_RG_IP_U2_PORT_POWER (0x1<<15) /* 15:15 */
  248. #define E60802_FORCE_IP_U2_PORT_POWER (0x1<<14) /* 14:14 */
  249. #define E60802_FORCE_VBUSVALID (0x1<<13) /* 13:13 */
  250. #define E60802_FORCE_SESSEND (0x1<<12) /* 12:12 */
  251. #define E60802_FORCE_BVALID (0x1<<11) /* 11:11 */
  252. #define E60802_FORCE_AVALID (0x1<<10) /* 10:10 */
  253. #define E60802_FORCE_IDDIG (0x1<<9) /* 9:9 */
  254. #define E60802_FORCE_IDPULLUP (0x1<<8) /* 8:8 */
  255. #define E60802_RG_VBUSVALID (0x1<<5) /* 5:5 */
  256. #define E60802_RG_SESSEND (0x1<<4) /* 4:4 */
  257. #define E60802_RG_BVALID (0x1<<3) /* 3:3 */
  258. #define E60802_RG_AVALID (0x1<<2) /* 2:2 */
  259. #define E60802_RG_IDDIG (0x1<<1) /* 1:1 */
  260. #define E60802_RG_IDPULLUP (0x1<<0) /* 0:0 */
  261. /* U3D_U2PHYDMON0 */
  262. #define E60802_RG_USB20_PRBS7_BERTH (0xff<<0) /* 7:0 */
  263. /* U3D_U2PHYDMON1 */
  264. #define E60802_USB20_UART_O (0x1<<31) /* 31:31 */
  265. #define E60802_RGO_USB20_LB_PASS (0x1<<30) /* 30:30 */
  266. #define E60802_RGO_USB20_LB_DONE (0x1<<29) /* 29:29 */
  267. #define E60802_AD_USB20_BVALID (0x1<<28) /* 28:28 */
  268. #define E60802_USB20_IDDIG (0x1<<27) /* 27:27 */
  269. #define E60802_AD_USB20_VBUSVALID (0x1<<26) /* 26:26 */
  270. #define E60802_AD_USB20_SESSEND (0x1<<25) /* 25:25 */
  271. #define E60802_AD_USB20_AVALID (0x1<<24) /* 24:24 */
  272. #define E60802_USB20_LINE_STATE (0x3<<22) /* 23:22 */
  273. #define E60802_USB20_HST_DISCON (0x1<<21) /* 21:21 */
  274. #define E60802_USB20_TX_READY (0x1<<20) /* 20:20 */
  275. #define E60802_USB20_RX_ERROR (0x1<<19) /* 19:19 */
  276. #define E60802_USB20_RX_ACTIVE (0x1<<18) /* 18:18 */
  277. #define E60802_USB20_RX_VALIDH (0x1<<17) /* 17:17 */
  278. #define E60802_USB20_RX_VALID (0x1<<16) /* 16:16 */
  279. #define E60802_USB20_DATA_OUT (0xffff<<0) /* 15:0 */
  280. /* U3D_U2PHYDMON2 */
  281. #define E60802_RGO_TXVALID_CNT (0xff<<24) /* 31:24 */
  282. #define E60802_RGO_RXACTIVE_CNT (0xff<<16) /* 23:16 */
  283. #define E60802_RGO_USB20_LB_BERCNT (0xff<<8) /* 15:8 */
  284. #define E60802_USB20_PROBE_OUT (0xff<<0) /* 7:0 */
  285. /* U3D_U2PHYDMON3 */
  286. #define E60802_RGO_USB20_PRBS7_ERRCNT (0xffff<<16) /* 31:16 */
  287. #define E60802_RGO_USB20_PRBS7_DONE (0x1<<3) /* 3:3 */
  288. #define E60802_RGO_USB20_PRBS7_LOCK (0x1<<2) /* 2:2 */
  289. #define E60802_RGO_USB20_PRBS7_PASS (0x1<<1) /* 1:1 */
  290. #define E60802_RGO_USB20_PRBS7_PASSTH (0x1<<0) /* 0:0 */
  291. /* U3D_U2PHYBC12C */
  292. #define E60802_RG_SIFSLV_CHGDT_DEGLCH_CNT (0xf<<28) /* 31:28 */
  293. #define E60802_RG_SIFSLV_CHGDT_CTRL_CNT (0xf<<24) /* 27:24 */
  294. #define E60802_RG_SIFSLV_CHGDT_FORCE_MODE (0x1<<16) /* 16:16 */
  295. #define E60802_RG_CHGDT_ISRC_LEV (0x3<<14) /* 15:14 */
  296. #define E60802_RG_CHGDT_VDATSRC (0x1<<13) /* 13:13 */
  297. #define E60802_RG_CHGDT_BGVREF_SEL (0x7<<10) /* 12:10 */
  298. #define E60802_RG_CHGDT_RDVREF_SEL (0x3<<8) /* 9:8 */
  299. #define E60802_RG_CHGDT_ISRC_DP (0x1<<7) /* 7:7 */
  300. #define E60802_RG_SIFSLV_CHGDT_OPOUT_DM (0x1<<6) /* 6:6 */
  301. #define E60802_RG_CHGDT_VDAT_DM (0x1<<5) /* 5:5 */
  302. #define E60802_RG_CHGDT_OPOUT_DP (0x1<<4) /* 4:4 */
  303. #define E60802_RG_SIFSLV_CHGDT_VDAT_DP (0x1<<3) /* 3:3 */
  304. #define E60802_RG_SIFSLV_CHGDT_COMP_EN (0x1<<2) /* 2:2 */
  305. #define E60802_RG_SIFSLV_CHGDT_OPDRV_EN (0x1<<1) /* 1:1 */
  306. #define E60802_RG_CHGDT_EN (0x1<<0) /* 0:0 */
  307. /* U3D_U2PHYBC12C1 */
  308. #define E60802_RG_CHGDT_REV (0xff<<0) /* 7:0 */
  309. /* U3D_REGFPPC */
  310. #define E60802_USB11_OTG_REG (0x1<<4) /* 4:4 */
  311. #define E60802_USB20_OTG_REG (0x1<<3) /* 3:3 */
  312. #define E60802_CHGDT_REG (0x1<<2) /* 2:2 */
  313. #define E60802_USB11_REG (0x1<<1) /* 1:1 */
  314. #define E60802_USB20_REG (0x1<<0) /* 0:0 */
  315. /* U3D_VERSIONC */
  316. #define E60802_VERSION_CODE_REGFILE (0xff<<24) /* 31:24 */
  317. #define E60802_USB11_VERSION_CODE (0xff<<16) /* 23:16 */
  318. #define E60802_VERSION_CODE_ANA (0xff<<8) /* 15:8 */
  319. #define E60802_VERSION_CODE_DIG (0xff<<0) /* 7:0 */
  320. /* U3D_REGFCOM */
  321. #define E60802_RG_PAGE (0xff<<24) /* 31:24 */
  322. #define E60802_I2C_MODE (0x1<<16) /* 16:16 */
  323. /* OFFSET */
  324. /* U3D_USBPHYACR0 */
  325. #define E60802_RG_USB20_MPX_OUT_SEL_OFST (28)
  326. #define E60802_RG_USB20_TX_PH_ROT_SEL_OFST (24)
  327. #define E60802_RG_USB20_PLL_DIVEN_OFST (20)
  328. #define E60802_RG_USB20_PLL_BR_OFST (18)
  329. #define E60802_RG_USB20_PLL_BP_OFST (17)
  330. #define E60802_RG_USB20_PLL_BLP_OFST (16)
  331. #define E60802_RG_USB20_USBPLL_FORCE_ON_OFST (15)
  332. #define E60802_RG_USB20_PLL_FBDIV_OFST (8)
  333. #define E60802_RG_USB20_PLL_PREDIV_OFST (6)
  334. #define E60802_RG_USB20_INTR_EN_OFST (5)
  335. #define E60802_RG_USB20_REF_EN_OFST (4)
  336. #define E60802_RG_USB20_BGR_DIV_OFST (2)
  337. #define E60802_RG_SIFSLV_CHP_EN_OFST (1)
  338. #define E60802_RG_SIFSLV_BGR_EN_OFST (0)
  339. /* U3D_USBPHYACR1 */
  340. #define E60802_RG_USB20_INTR_CAL_OFST (19)
  341. #define E60802_RG_USB20_OTG_VBUSTH_OFST (16)
  342. #define E60802_RG_USB20_VRT_VREF_SEL_OFST (12)
  343. #define E60802_RG_USB20_TERM_VREF_SEL_OFST (8)
  344. #define E60802_RG_USB20_MPX_SEL_OFST (0)
  345. /* U3D_USBPHYACR2 */
  346. #define E60802_RG_SIFSLV_MAC_BANDGAP_EN_OFST (17)
  347. #define E60802_RG_SIFSLV_MAC_CHOPPER_EN_OFST (16)
  348. #define E60802_RG_USB20_CLKREF_REV_OFST (0)
  349. /* U3D_USBPHYACR4 */
  350. #define E60802_RG_USB20_DP_ABIST_SOURCE_EN_OFST (31)
  351. #define E60802_RG_USB20_DP_ABIST_SELE_OFST (24)
  352. #define E60802_RG_USB20_ICUSB_EN_OFST (16)
  353. #define E60802_RG_USB20_LS_CR_OFST (12)
  354. #define E60802_RG_USB20_FS_CR_OFST (8)
  355. #define E60802_RG_USB20_LS_SR_OFST (4)
  356. #define E60802_RG_USB20_FS_SR_OFST (0)
  357. /* U3D_USBPHYACR5 */
  358. #define E60802_RG_USB20_DISC_FIT_EN_OFST (28)
  359. #define E60802_RG_USB20_INIT_SQ_EN_DG_OFST (26)
  360. #define E60802_RG_USB20_HSTX_TMODE_SEL_OFST (24)
  361. #define E60802_RG_USB20_SQD_OFST (22)
  362. #define E60802_RG_USB20_DISCD_OFST (20)
  363. #define E60802_RG_USB20_HSTX_TMODE_EN_OFST (19)
  364. #define E60802_RG_USB20_PHYD_MONEN_OFST (18)
  365. #define E60802_RG_USB20_INLPBK_EN_OFST (17)
  366. #define E60802_RG_USB20_CHIRP_EN_OFST (16)
  367. #define E60802_RG_USB20_HSTX_SRCAL_EN_OFST (15)
  368. #define E60802_RG_USB20_HSTX_SRCTRL_OFST (12)
  369. #define E60802_RG_USB20_HS_100U_U3_EN_OFST (11)
  370. #define E60802_RG_USB20_GBIAS_ENB_OFST (10)
  371. #define E60802_RG_USB20_DM_ABIST_SOURCE_EN_OFST (7)
  372. #define E60802_RG_USB20_DM_ABIST_SELE_OFST (0)
  373. /* U3D_USBPHYACR6 */
  374. #define E60802_RG_USB20_ISO_EN_OFST (31)
  375. #define E60802_RG_USB20_PHY_REV_OFST (24)
  376. #define E60802_RG_USB20_BC11_SW_EN_OFST (23)
  377. #define E60802_RG_USB20_SR_CLK_SEL_OFST (22)
  378. #define E60802_RG_USB20_OTG_VBUSCMP_EN_OFST (20)
  379. #define E60802_RG_USB20_OTG_ABIST_EN_OFST (19)
  380. #define E60802_RG_USB20_OTG_ABIST_SELE_OFST (16)
  381. #define E60802_RG_USB20_HSRX_MMODE_SELE_OFST (12)
  382. #define E60802_RG_USB20_HSRX_BIAS_EN_SEL_OFST (9)
  383. #define E60802_RG_USB20_HSRX_TMODE_EN_OFST (8)
  384. #define E60802_RG_USB20_DISCTH_OFST (4)
  385. #define E60802_RG_USB20_SQTH_OFST (0)
  386. /* U3D_U2PHYACR3 */
  387. #define E60802_RG_USB20_HSTX_DBIST_OFST (28)
  388. #define E60802_RG_USB20_HSTX_BIST_EN_OFST (26)
  389. #define E60802_RG_USB20_HSTX_I_EN_MODE_OFST (24)
  390. #define E60802_RG_USB20_USB11_TMODE_EN_OFST (19)
  391. #define E60802_RG_USB20_TMODE_FS_LS_TX_EN_OFST (18)
  392. #define E60802_RG_USB20_TMODE_FS_LS_RCV_EN_OFST (17)
  393. #define E60802_RG_USB20_TMODE_FS_LS_MODE_OFST (16)
  394. #define E60802_RG_USB20_HS_TERM_EN_MODE_OFST (13)
  395. #define E60802_RG_USB20_PUPD_BIST_EN_OFST (12)
  396. #define E60802_RG_USB20_EN_PU_DM_OFST (11)
  397. #define E60802_RG_USB20_EN_PD_DM_OFST (10)
  398. #define E60802_RG_USB20_EN_PU_DP_OFST (9)
  399. #define E60802_RG_USB20_EN_PD_DP_OFST (8)
  400. /* U3D_U2PHYACR4 */
  401. #define E60802_RG_USB20_DP_100K_MODE_OFST (18)
  402. #define E60802_RG_USB20_DM_100K_EN_OFST (17)
  403. #define E60802_USB20_DP_100K_EN_OFST (16)
  404. #define E60802_USB20_GPIO_DM_I_OFST (15)
  405. #define E60802_USB20_GPIO_DP_I_OFST (14)
  406. #define E60802_USB20_GPIO_DM_OE_OFST (13)
  407. #define E60802_USB20_GPIO_DP_OE_OFST (12)
  408. #define E60802_RG_USB20_GPIO_CTL_OFST (9)
  409. #define E60802_USB20_GPIO_MODE_OFST (8)
  410. #define E60802_RG_USB20_TX_BIAS_EN_OFST (5)
  411. #define E60802_RG_USB20_TX_VCMPDN_EN_OFST (4)
  412. #define E60802_RG_USB20_HS_SQ_EN_MODE_OFST (2)
  413. #define E60802_RG_USB20_HS_RCV_EN_MODE_OFST (0)
  414. /* U3D_U2PHYAMON0 */
  415. #define E60802_RGO_USB20_GPIO_DM_O_OFST (1)
  416. #define E60802_RGO_USB20_GPIO_DP_O_OFST (0)
  417. /* U3D_U2PHYDCR0 */
  418. #define E60802_RG_USB20_CDR_TST_OFST (30)
  419. #define E60802_RG_USB20_GATED_ENB_OFST (29)
  420. #define E60802_RG_USB20_TESTMODE_OFST (26)
  421. #define E60802_RG_SIFSLV_USB20_PLL_STABLE_OFST (25)
  422. #define E60802_RG_SIFSLV_USB20_PLL_FORCE_ON_OFST (24)
  423. #define E60802_RG_USB20_PHYD_RESERVE_OFST (8)
  424. #define E60802_RG_USB20_EBTHRLD_OFST (7)
  425. #define E60802_RG_USB20_EARLY_HSTX_I_OFST (6)
  426. #define E60802_RG_USB20_TX_TST_OFST (5)
  427. #define E60802_RG_USB20_NEGEDGE_ENB_OFST (4)
  428. #define E60802_RG_USB20_CDR_FILT_OFST (0)
  429. /* U3D_U2PHYDCR1 */
  430. #define E60802_RG_USB20_PROBE_SEL_OFST (24)
  431. #define E60802_RG_USB20_DRVVBUS_OFST (23)
  432. #define E60802_RG_DEBUG_EN_OFST (22)
  433. #define E60802_RG_USB20_OTG_PROBE_OFST (20)
  434. #define E60802_RG_USB20_SW_PLLMODE_OFST (18)
  435. #define E60802_RG_USB20_BERTH_OFST (16)
  436. #define E60802_RG_USB20_LBMODE_OFST (13)
  437. #define E60802_RG_USB20_FORCE_TAP_OFST (12)
  438. #define E60802_RG_USB20_TAPSEL_OFST (0)
  439. /* U3D_U2PHYDTM0 */
  440. #define E60802_RG_UART_MODE_OFST (30)
  441. #define E60802_FORCE_UART_I_OFST (29)
  442. #define E60802_FORCE_UART_BIAS_EN_OFST (28)
  443. #define E60802_FORCE_UART_TX_OE_OFST (27)
  444. #define E60802_FORCE_UART_EN_OFST (26)
  445. #define E60802_FORCE_USB_CLKEN_OFST (25)
  446. #define E60802_FORCE_DRVVBUS_OFST (24)
  447. #define E60802_FORCE_DATAIN_OFST (23)
  448. #define E60802_FORCE_TXVALID_OFST (22)
  449. #define E60802_FORCE_DM_PULLDOWN_OFST (21)
  450. #define E60802_FORCE_DP_PULLDOWN_OFST (20)
  451. #define E60802_FORCE_XCVRSEL_OFST (19)
  452. #define E60802_FORCE_SUSPENDM_OFST (18)
  453. #define E60802_FORCE_TERMSEL_OFST (17)
  454. #define E60802_FORCE_OPMODE_OFST (16)
  455. #define E60802_UTMI_MUXSEL_OFST (15)
  456. #define E60802_RG_RESET_OFST (14)
  457. #define E60802_RG_DATAIN_OFST (10)
  458. #define E60802_RG_TXVALIDH_OFST (9)
  459. #define E60802_RG_TXVALID_OFST (8)
  460. #define E60802_RG_DMPULLDOWN_OFST (7)
  461. #define E60802_RG_DPPULLDOWN_OFST (6)
  462. #define E60802_RG_XCVRSEL_OFST (4)
  463. #define E60802_RG_SUSPENDM_OFST (3)
  464. #define E60802_RG_TERMSEL_OFST (2)
  465. #define E60802_RG_OPMODE_OFST (0)
  466. /* U3D_U2PHYDTM1 */
  467. #define E60802_RG_USB20_PRBS7_EN_OFST (31)
  468. #define E60802_RG_USB20_PRBS7_BITCNT_OFST (24)
  469. #define E60802_RG_USB20_CLK48M_EN_OFST (23)
  470. #define E60802_RG_USB20_CLK60M_EN_OFST (22)
  471. #define E60802_RG_UART_I_OFST (19)
  472. #define E60802_RG_UART_BIAS_EN_OFST (18)
  473. #define E60802_RG_UART_TX_OE_OFST (17)
  474. #define E60802_RG_UART_EN_OFST (16)
  475. #define E60802_RG_IP_U2_PORT_POWER_OFST (15)
  476. #define E60802_FORCE_IP_U2_PORT_POWER_OFST (14)
  477. #define E60802_FORCE_VBUSVALID_OFST (13)
  478. #define E60802_FORCE_SESSEND_OFST (12)
  479. #define E60802_FORCE_BVALID_OFST (11)
  480. #define E60802_FORCE_AVALID_OFST (10)
  481. #define E60802_FORCE_IDDIG_OFST (9)
  482. #define E60802_FORCE_IDPULLUP_OFST (8)
  483. #define E60802_RG_VBUSVALID_OFST (5)
  484. #define E60802_RG_SESSEND_OFST (4)
  485. #define E60802_RG_BVALID_OFST (3)
  486. #define E60802_RG_AVALID_OFST (2)
  487. #define E60802_RG_IDDIG_OFST (1)
  488. #define E60802_RG_IDPULLUP_OFST (0)
  489. /* U3D_U2PHYDMON0 */
  490. #define E60802_RG_USB20_PRBS7_BERTH_OFST (0)
  491. /* U3D_U2PHYDMON1 */
  492. #define E60802_USB20_UART_O_OFST (31)
  493. #define E60802_RGO_USB20_LB_PASS_OFST (30)
  494. #define E60802_RGO_USB20_LB_DONE_OFST (29)
  495. #define E60802_AD_USB20_BVALID_OFST (28)
  496. #define E60802_USB20_IDDIG_OFST (27)
  497. #define E60802_AD_USB20_VBUSVALID_OFST (26)
  498. #define E60802_AD_USB20_SESSEND_OFST (25)
  499. #define E60802_AD_USB20_AVALID_OFST (24)
  500. #define E60802_USB20_LINE_STATE_OFST (22)
  501. #define E60802_USB20_HST_DISCON_OFST (21)
  502. #define E60802_USB20_TX_READY_OFST (20)
  503. #define E60802_USB20_RX_ERROR_OFST (19)
  504. #define E60802_USB20_RX_ACTIVE_OFST (18)
  505. #define E60802_USB20_RX_VALIDH_OFST (17)
  506. #define E60802_USB20_RX_VALID_OFST (16)
  507. #define E60802_USB20_DATA_OUT_OFST (0)
  508. /* U3D_U2PHYDMON2 */
  509. #define E60802_RGO_TXVALID_CNT_OFST (24)
  510. #define E60802_RGO_RXACTIVE_CNT_OFST (16)
  511. #define E60802_RGO_USB20_LB_BERCNT_OFST (8)
  512. #define E60802_USB20_PROBE_OUT_OFST (0)
  513. /* U3D_U2PHYDMON3 */
  514. #define E60802_RGO_USB20_PRBS7_ERRCNT_OFST (16)
  515. #define E60802_RGO_USB20_PRBS7_DONE_OFST (3)
  516. #define E60802_RGO_USB20_PRBS7_LOCK_OFST (2)
  517. #define E60802_RGO_USB20_PRBS7_PASS_OFST (1)
  518. #define E60802_RGO_USB20_PRBS7_PASSTH_OFST (0)
  519. /* U3D_U2PHYBC12C */
  520. #define E60802_RG_SIFSLV_CHGDT_DEGLCH_CNT_OFST (28)
  521. #define E60802_RG_SIFSLV_CHGDT_CTRL_CNT_OFST (24)
  522. #define E60802_RG_SIFSLV_CHGDT_FORCE_MODE_OFST (16)
  523. #define E60802_RG_CHGDT_ISRC_LEV_OFST (14)
  524. #define E60802_RG_CHGDT_VDATSRC_OFST (13)
  525. #define E60802_RG_CHGDT_BGVREF_SEL_OFST (10)
  526. #define E60802_RG_CHGDT_RDVREF_SEL_OFST (8)
  527. #define E60802_RG_CHGDT_ISRC_DP_OFST (7)
  528. #define E60802_RG_SIFSLV_CHGDT_OPOUT_DM_OFST (6)
  529. #define E60802_RG_CHGDT_VDAT_DM_OFST (5)
  530. #define E60802_RG_CHGDT_OPOUT_DP_OFST (4)
  531. #define E60802_RG_SIFSLV_CHGDT_VDAT_DP_OFST (3)
  532. #define E60802_RG_SIFSLV_CHGDT_COMP_EN_OFST (2)
  533. #define E60802_RG_SIFSLV_CHGDT_OPDRV_EN_OFST (1)
  534. #define E60802_RG_CHGDT_EN_OFST (0)
  535. /* U3D_U2PHYBC12C1 */
  536. #define E60802_RG_CHGDT_REV_OFST (0)
  537. /* U3D_REGFPPC */
  538. #define E60802_USB11_OTG_REG_OFST (4)
  539. #define E60802_USB20_OTG_REG_OFST (3)
  540. #define E60802_CHGDT_REG_OFST (2)
  541. #define E60802_USB11_REG_OFST (1)
  542. #define E60802_USB20_REG_OFST (0)
  543. /* U3D_VERSIONC */
  544. #define E60802_VERSION_CODE_REGFILE_OFST (24)
  545. #define E60802_USB11_VERSION_CODE_OFST (16)
  546. #define E60802_VERSION_CODE_ANA_OFST (8)
  547. #define E60802_VERSION_CODE_DIG_OFST (0)
  548. /* U3D_REGFCOM */
  549. #define E60802_RG_PAGE_OFST (24)
  550. #define E60802_I2C_MODE_OFST (16)
  551. #if 0
  552. /* ///////////////////////////////////////////////////////////////////////////// */
  553. struct u3phya_reg_e {
  554. /* 0x0 */
  555. PHY_LE32 reg0;
  556. PHY_LE32 reg1;
  557. PHY_LE32 reg2;
  558. PHY_LE32 reg3;
  559. /* 0x10 */
  560. PHY_LE32 reg4;
  561. PHY_LE32 reg5;
  562. PHY_LE32 reg6;
  563. PHY_LE32 reg7;
  564. /* 0x20 */
  565. PHY_LE32 reg8;
  566. PHY_LE32 reg9;
  567. PHY_LE32 rega;
  568. PHY_LE32 regb;
  569. /* 0x30 */
  570. PHY_LE32 regc;
  571. };
  572. #endif
  573. /* U3D_reg0 */
  574. #define E60802_RG_SSUSB_BGR_EN (0x1<<31) /* 31:31 */
  575. #define E60802_RG_SSUSB_CHPEN (0x1<<30) /* 30:30 */
  576. #define E60802_RG_SSUSB_BG_DIV (0x3<<28) /* 29:28 */
  577. #define E60802_RG_SSUSB_INTR_EN (0x1<<26) /* 26:26 */
  578. #define E60802_RG_SSUSB_MPX_EN (0x1<<24) /* 24:24 */
  579. #define E60802_RG_SSUSB_MPX_SEL (0xff<<16) /* 23:16 */
  580. #define E60802_RG_SSUSB_REF_EN (0x1<<15) /* 15:15 */
  581. #define E60802_RG_SSUSB_VRT_VREF_SEL (0xf<<11) /* 14:11 */
  582. #define E60802_RG_SSUSB_BG_MONEN (0x1<<8) /* 8:8 */
  583. #define E60802_RG_SSUSB_INT_BIAS_SEL (0x1<<7) /* 7:7 */
  584. #define E60802_RG_SSUSB_EXT_BIAS_SEL (0x1<<6) /* 6:6 */
  585. #define E60802_RG_PCIE_CLKDRV_OFFSET (0x3<<2) /* 3:2 */
  586. #define E60802_RG_PCIE_CLKDRV_SLEW (0x3<<0) /* 1:0 */
  587. /* U3D_reg1 */
  588. #define E60802_RG_PCIE_CLKDRV_AMP (0x7<<29) /* 31:29 */
  589. #define E60802_RG_SSUSB_XTAL_TST_A2DCK_EN (0x1<<28) /* 28:28 */
  590. #define E60802_RG_SSUSB_XTAL_MON_EN (0x1<<27) /* 27:27 */
  591. #define E60802_RG_SSUSB_XTAL_HYS (0x1<<26) /* 26:26 */
  592. #define E60802_RG_SSUSB_XTAL_TOP_RESERVE (0xffff<<10) /* 25:10 */
  593. #define E60802_RG_SSUSB_SYSPLL_PREDIV (0x3<<8) /* 9:8 */
  594. #define E60802_RG_SSUSB_SYSPLL_POSDIV (0x3<<6) /* 7:6 */
  595. #define E60802_RG_SSUSB_SYSPLL_VCO_DIV_SEL (0x1<<5) /* 5:5 */
  596. #define E60802_RG_SSUSB_SYSPLL_VOD_EN (0x1<<4) /* 4:4 */
  597. #define E60802_RG_SSUSB_SYSPLL_RST_DLY (0x3<<2) /* 3:2 */
  598. #define E60802_RG_SSUSB_SYSPLL_BLP (0x1<<1) /* 1:1 */
  599. #define E60802_RG_SSUSB_SYSPLL_BP (0x1<<0) /* 0:0 */
  600. /* U3D_reg2 */
  601. #define E60802_RG_SSUSB_SYSPLL_BR (0x1<<31) /* 31:31 */
  602. #define E60802_RG_SSUSB_SYSPLL_BC (0x1<<30) /* 30:30 */
  603. #define E60802_RG_SSUSB_SYSPLL_MONCK_EN (0x1<<29) /* 29:29 */
  604. #define E60802_RG_SSUSB_SYSPLL_MONVC_EN (0x1<<28) /* 28:28 */
  605. #define E60802_RG_SSUSB_SYSPLL_MONREF_EN (0x1<<27) /* 27:27 */
  606. #define E60802_RG_SSUSB_SYSPLL_SDM_IFM (0x1<<26) /* 26:26 */
  607. #define E60802_RG_SSUSB_SYSPLL_SDM_OUT (0x1<<25) /* 25:25 */
  608. #define E60802_RG_SSUSB_SYSPLL_BACK_EN (0x1<<24) /* 24:24 */
  609. /* U3D_reg3 */
  610. #define E60802_RG_SSUSB_SYSPLL_FBDIV (0x7fffffff<<1) /* 31:1 */
  611. #define E60802_RG_SSUSB_SYSPLL_HR_EN (0x1<<0) /* 0:0 */
  612. /* U3D_reg4 */
  613. #define E60802_RG_SSUSB_SYSPLL_SDM_DI_EN (0x1<<31) /* 31:31 */
  614. #define E60802_RG_SSUSB_SYSPLL_SDM_DI_LS (0x3<<29) /* 30:29 */
  615. #define E60802_RG_SSUSB_SYSPLL_SDM_ORD (0x3<<27) /* 28:27 */
  616. #define E60802_RG_SSUSB_SYSPLL_SDM_MODE (0x3<<25) /* 26:25 */
  617. #define E60802_RG_SSUSB_SYSPLL_RESERVE (0xff<<17) /* 24:17 */
  618. #define E60802_RG_SSUSB_SYSPLL_TOP_RESERVE (0xffff<<1) /* 16:1 */
  619. /* U3D_reg5 */
  620. #define E60802_RG_SSUSB_TX250MCK_INVB (0x1<<31) /* 31:31 */
  621. #define E60802_RG_SSUSB_IDRV_ITAILOP_EN (0x1<<30) /* 30:30 */
  622. #define E60802_RG_SSUSB_IDRV_CALIB (0x3f<<24) /* 29:24 */
  623. #define E60802_RG_SSUSB_IDEM_BIAS (0xf<<20) /* 23:20 */
  624. #define E60802_RG_SSUSB_TX_R50_FON (0x1<<19) /* 19:19 */
  625. #define E60802_RG_SSUSB_TX_SR (0x7<<16) /* 18:16 */
  626. #define E60802_RG_SSUSB_RXDET_RSEL (0x3<<14) /* 15:14 */
  627. #define E60802_RG_SSUSB_RXDET_UPDN_FORCE (0x1<<13) /* 13:13 */
  628. #define E60802_RG_SSUSB_RXDET_UPDN_SEL (0x1<<12) /* 12:12 */
  629. #define E60802_RG_SSUSB_RXDET_VTHSEL_L (0x3<<10) /* 11:10 */
  630. #define E60802_RG_SSUSB_RXDET_VTHSEL_H (0x3<<8) /* 9:8 */
  631. #define E60802_RG_SSUSB_CKMON_EN (0x1<<7) /* 7:7 */
  632. #define E60802_RG_SSUSB_TX_VLMON_EN (0x1<<6) /* 6:6 */
  633. #define E60802_RG_SSUSB_TX_VLMON_SEL (0x3<<4) /* 5:4 */
  634. #define E60802_RG_SSUSB_CKMON_SEL (0xf<<0) /* 3:0 */
  635. /* U3D_reg6 */
  636. #define E60802_RG_SSUSB_TX_EIDLE_CM (0xf<<28) /* 31:28 */
  637. #define E60802_RG_SSUSB_RXLBTX_EN (0x1<<27) /* 27:27 */
  638. #define E60802_RG_SSUSB_TXLBRX_EN (0x1<<26) /* 26:26 */
  639. #define E60802_RG_SSUSB_RESERVE (0x3ff<<16) /* 25:16 */
  640. #define E60802_RG_SSUSB_PLL_POSDIV (0x3<<14) /* 15:14 */
  641. #define E60802_RG_SSUSB_PLL_AUTOK_LOAD (0x1<<13) /* 13:13 */
  642. #define E60802_RG_SSUSB_PLL_VOD_EN (0x1<<12) /* 12:12 */
  643. #define E60802_RG_SSUSB_PLL_MONREF_EN (0x1<<11) /* 11:11 */
  644. #define E60802_RG_SSUSB_PLL_MONCK_EN (0x1<<10) /* 10:10 */
  645. #define E60802_RG_SSUSB_PLL_MONVC_EN (0x1<<9) /* 9:9 */
  646. #define E60802_RG_SSUSB_PLL_RLH_EN (0x1<<8) /* 8:8 */
  647. #define E60802_RG_SSUSB_PLL_AUTOK_KS (0x3<<6) /* 7:6 */
  648. #define E60802_RG_SSUSB_PLL_AUTOK_KF (0x3<<4) /* 5:4 */
  649. #define E60802_RG_SSUSB_PLL_RST_DLY (0x3<<2) /* 3:2 */
  650. /* U3D_reg7 */
  651. #define E60802_RG_SSUSB_PLL_RESERVE (0xffff<<16) /* 31:16 */
  652. #define E60802_RG_SSUSB_PLL_SSC_PRD (0xffff<<0) /* 15:0 */
  653. /* U3D_reg8 */
  654. #define E60802_RG_SSUSB_PLL_SSC_PHASE_INI (0x1<<31) /* 31:31 */
  655. #define E60802_RG_SSUSB_PLL_SSC_TRI_EN (0x1<<30) /* 30:30 */
  656. #define E60802_RG_SSUSB_PLL_CLK_PH_INV (0x1<<29) /* 29:29 */
  657. #define E60802_RG_SSUSB_PLL_DDS_LPF_EN (0x1<<28) /* 28:28 */
  658. #define E60802_RG_SSUSB_PLL_DDS_RST_SEL (0x1<<27) /* 27:27 */
  659. #define E60802_RG_SSUSB_PLL_DDS_VADJ (0x1<<26) /* 26:26 */
  660. #define E60802_RG_SSUSB_PLL_DDS_MONEN (0x1<<25) /* 25:25 */
  661. #define E60802_RG_SSUSB_PLL_DDS_SEL_EXT (0x1<<24) /* 24:24 */
  662. #define E60802_RG_SSUSB_PLL_DDS_PI_PL_EN (0x1<<23) /* 23:23 */
  663. #define E60802_RG_SSUSB_PLL_DDS_FRAC_MUTE (0x7<<20) /* 22:20 */
  664. #define E60802_RG_SSUSB_PLL_DDS_HF_EN (0x1<<19) /* 19:19 */
  665. #define E60802_RG_SSUSB_PLL_DDS_C (0x7<<16) /* 18:16 */
  666. #define E60802_RG_SSUSB_PLL_DDS_PREDIV2 (0x1<<15) /* 15:15 */
  667. #define E60802_RG_SSUSB_LFPS_LPF (0x3<<13) /* 14:13 */
  668. /* U3D_reg9 */
  669. #define E60802_RG_SSUSB_CDR_PD_DIV_BYPASS (0x1<<31) /* 31:31 */
  670. #define E60802_RG_SSUSB_CDR_PD_DIV_SEL (0x1<<30) /* 30:30 */
  671. #define E60802_RG_SSUSB_CDR_CPBIAS_SEL (0x1<<29) /* 29:29 */
  672. #define E60802_RG_SSUSB_CDR_OSCDET_EN (0x1<<28) /* 28:28 */
  673. #define E60802_RG_SSUSB_CDR_MONMUX (0x1<<27) /* 27:27 */
  674. #define E60802_RG_SSUSB_CDR_RST_DLY (0x3<<25) /* 26:25 */
  675. #define E60802_RG_SSUSB_CDR_RSTB_MANUAL (0x1<<24) /* 24:24 */
  676. #define E60802_RG_SSUSB_CDR_BYPASS (0x3<<22) /* 23:22 */
  677. #define E60802_RG_SSUSB_CDR_PI_SLEW (0x3<<20) /* 21:20 */
  678. #define E60802_RG_SSUSB_CDR_EPEN (0x1<<19) /* 19:19 */
  679. #define E60802_RG_SSUSB_CDR_AUTOK_LOAD (0x1<<18) /* 18:18 */
  680. #define E60802_RG_SSUSB_CDR_MONEN (0x1<<16) /* 16:16 */
  681. #define E60802_RG_SSUSB_CDR_MONEN_DIG (0x1<<15) /* 15:15 */
  682. #define E60802_RG_SSUSB_CDR_REGOD (0x3<<13) /* 14:13 */
  683. #define E60802_RG_SSUSB_CDR_AUTOK_KS (0x3<<11) /* 12:11 */
  684. #define E60802_RG_SSUSB_CDR_AUTOK_KF (0x3<<9) /* 10:9 */
  685. #define E60802_RG_SSUSB_RX_DAC_EN (0x1<<8) /* 8:8 */
  686. #define E60802_RG_SSUSB_RX_DAC_PWD (0x1<<7) /* 7:7 */
  687. #define E60802_RG_SSUSB_EQ_CURSEL (0x1<<6) /* 6:6 */
  688. #define E60802_RG_SSUSB_RX_DAC_MUX (0x1f<<1) /* 5:1 */
  689. #define E60802_RG_SSUSB_RX_R2T_EN (0x1<<0) /* 0:0 */
  690. /* U3D_regA */
  691. #define E60802_RG_SSUSB_RX_T2R_EN (0x1<<31) /* 31:31 */
  692. #define E60802_RG_SSUSB_RX_50_LOWER (0x7<<28) /* 30:28 */
  693. #define E60802_RG_SSUSB_RX_50_TAR (0x3<<26) /* 27:26 */
  694. #define E60802_RG_SSUSB_RX_SW_CTRL (0xf<<21) /* 24:21 */
  695. #define E60802_RG_PCIE_SIGDET_VTH (0x3<<19) /* 20:19 */
  696. #define E60802_RG_PCIE_SIGDET_LPF (0x3<<17) /* 18:17 */
  697. #define E60802_RG_SSUSB_LFPS_MON_EN (0x1<<16) /* 16:16 */
  698. #define E60802_RG_SSUSB_RXAFE_DCMON_SEL (0xf<<12) /* 15:12 */
  699. #define E60802_RG_SSUSB_RX_P1_ENTRY_PASS (0x1<<11) /* 11:11 */
  700. #define E60802_RG_SSUSB_RX_PD_RST (0x1<<10) /* 10:10 */
  701. #define E60802_RG_SSUSB_RX_PD_RST_PASS (0x1<<9) /* 9:9 */
  702. /* U3D_regB */
  703. #define E60802_RG_SSUSB_CDR_RESERVE (0xff<<24) /* 31:24 */
  704. #define E60802_RG_SSUSB_RXAFE_RESERVE (0xff<<16) /* 23:16 */
  705. #define E60802_RG_PCIE_RX_RESERVE (0xff<<8) /* 15:8 */
  706. #define E60802_RG_SSUSB_VRT_25M_EN (0x1<<7) /* 7:7 */
  707. #define E60802_RG_SSUSB_RX_PD_PICAL_SWAP (0x1<<6) /* 6:6 */
  708. #define E60802_RG_SSUSB_RX_DAC_MEAS_EN (0x1<<5) /* 5:5 */
  709. #define E60802_RG_SSUSB_MPX_SEL_L0 (0x1<<4) /* 4:4 */
  710. #define E60802_RG_SSUSB_LFPS_SLCOUT_SEL (0x1<<3) /* 3:3 */
  711. #define E60802_RG_SSUSB_LFPS_CMPOUT_SEL (0x1<<2) /* 2:2 */
  712. #define E60802_RG_PCIE_SIGDET_HF (0x3<<0) /* 1:0 */
  713. /* U3D_regC */
  714. #define E60802_RGS_SSUSB_RX_DEBUG_RESERVE (0xff<<0) /* 7:0 */
  715. #define E60802_AD_VUSB10_READY (0x1 << 8)
  716. /* U3D_regD */
  717. #define E60802_RG_SSUSBLDO_BG_LDO_EN (0x1 << 0)
  718. #define E60802_RG_SSUSBLDO_CAL (0xf << 8)
  719. /* OFFSET */
  720. /* U3D_reg0 */
  721. #define E60802_RG_SSUSB_BGR_EN_OFST (31)
  722. #define E60802_RG_SSUSB_CHPEN_OFST (30)
  723. #define E60802_RG_SSUSB_BG_DIV_OFST (28)
  724. #define E60802_RG_SSUSB_INTR_EN_OFST (26)
  725. #define E60802_RG_SSUSB_MPX_EN_OFST (24)
  726. #define E60802_RG_SSUSB_MPX_SEL_OFST (16)
  727. #define E60802_RG_SSUSB_REF_EN_OFST (15)
  728. #define E60802_RG_SSUSB_VRT_VREF_SEL_OFST (11)
  729. #define E60802_RG_SSUSB_BG_MONEN_OFST (8)
  730. #define E60802_RG_SSUSB_INT_BIAS_SEL_OFST (7)
  731. #define E60802_RG_SSUSB_EXT_BIAS_SEL_OFST (6)
  732. #define E60802_RG_PCIE_CLKDRV_OFFSET_OFST (2)
  733. #define E60802_RG_PCIE_CLKDRV_SLEW_OFST (0)
  734. /* U3D_reg1 */
  735. #define E60802_RG_PCIE_CLKDRV_AMP_OFST (29)
  736. #define E60802_RG_SSUSB_XTAL_TST_A2DCK_EN_OFST (28)
  737. #define E60802_RG_SSUSB_XTAL_MON_EN_OFST (27)
  738. #define E60802_RG_SSUSB_XTAL_HYS_OFST (26)
  739. #define E60802_RG_SSUSB_XTAL_TOP_RESERVE_OFST (10)
  740. #define E60802_RG_SSUSB_SYSPLL_PREDIV_OFST (8)
  741. #define E60802_RG_SSUSB_SYSPLL_POSDIV_OFST (6)
  742. #define E60802_RG_SSUSB_SYSPLL_VCO_DIV_SEL_OFST (5)
  743. #define E60802_RG_SSUSB_SYSPLL_VOD_EN_OFST (4)
  744. #define E60802_RG_SSUSB_SYSPLL_RST_DLY_OFST (2)
  745. #define E60802_RG_SSUSB_SYSPLL_BLP_OFST (1)
  746. #define E60802_RG_SSUSB_SYSPLL_BP_OFST (0)
  747. /* U3D_reg2 */
  748. #define E60802_RG_SSUSB_SYSPLL_BR_OFST (31)
  749. #define E60802_RG_SSUSB_SYSPLL_BC_OFST (30)
  750. #define E60802_RG_SSUSB_SYSPLL_MONCK_EN_OFST (29)
  751. #define E60802_RG_SSUSB_SYSPLL_MONVC_EN_OFST (28)
  752. #define E60802_RG_SSUSB_SYSPLL_MONREF_EN_OFST (27)
  753. #define E60802_RG_SSUSB_SYSPLL_SDM_IFM_OFST (26)
  754. #define E60802_RG_SSUSB_SYSPLL_SDM_OUT_OFST (25)
  755. #define E60802_RG_SSUSB_SYSPLL_BACK_EN_OFST (24)
  756. /* U3D_reg3 */
  757. #define E60802_RG_SSUSB_SYSPLL_FBDIV_OFST (1)
  758. #define E60802_RG_SSUSB_SYSPLL_HR_EN_OFST (0)
  759. /* U3D_reg4 */
  760. #define E60802_RG_SSUSB_SYSPLL_SDM_DI_EN_OFST (31)
  761. #define E60802_RG_SSUSB_SYSPLL_SDM_DI_LS_OFST (29)
  762. #define E60802_RG_SSUSB_SYSPLL_SDM_ORD_OFST (27)
  763. #define E60802_RG_SSUSB_SYSPLL_SDM_MODE_OFST (25)
  764. #define E60802_RG_SSUSB_SYSPLL_RESERVE_OFST (17)
  765. #define E60802_RG_SSUSB_SYSPLL_TOP_RESERVE_OFST (1)
  766. /* U3D_reg5 */
  767. #define E60802_RG_SSUSB_TX250MCK_INVB_OFST (31)
  768. #define E60802_RG_SSUSB_IDRV_ITAILOP_EN_OFST (30)
  769. #define E60802_RG_SSUSB_IDRV_CALIB_OFST (24)
  770. #define E60802_RG_SSUSB_IDEM_BIAS_OFST (20)
  771. #define E60802_RG_SSUSB_TX_R50_FON_OFST (19)
  772. #define E60802_RG_SSUSB_TX_SR_OFST (16)
  773. #define E60802_RG_SSUSB_RXDET_RSEL_OFST (14)
  774. #define E60802_RG_SSUSB_RXDET_UPDN_FORCE_OFST (13)
  775. #define E60802_RG_SSUSB_RXDET_UPDN_SEL_OFST (12)
  776. #define E60802_RG_SSUSB_RXDET_VTHSEL_L_OFST (10)
  777. #define E60802_RG_SSUSB_RXDET_VTHSEL_H_OFST (8)
  778. #define E60802_RG_SSUSB_CKMON_EN_OFST (7)
  779. #define E60802_RG_SSUSB_TX_VLMON_EN_OFST (6)
  780. #define E60802_RG_SSUSB_TX_VLMON_SEL_OFST (4)
  781. #define E60802_RG_SSUSB_CKMON_SEL_OFST (0)
  782. /* U3D_reg6 */
  783. #define E60802_RG_SSUSB_TX_EIDLE_CM_OFST (28)
  784. #define E60802_RG_SSUSB_RXLBTX_EN_OFST (27)
  785. #define E60802_RG_SSUSB_TXLBRX_EN_OFST (26)
  786. #define E60802_RG_SSUSB_RESERVE_OFST (16)
  787. #define E60802_RG_SSUSB_PLL_POSDIV_OFST (14)
  788. #define E60802_RG_SSUSB_PLL_AUTOK_LOAD_OFST (13)
  789. #define E60802_RG_SSUSB_PLL_VOD_EN_OFST (12)
  790. #define E60802_RG_SSUSB_PLL_MONREF_EN_OFST (11)
  791. #define E60802_RG_SSUSB_PLL_MONCK_EN_OFST (10)
  792. #define E60802_RG_SSUSB_PLL_MONVC_EN_OFST (9)
  793. #define E60802_RG_SSUSB_PLL_RLH_EN_OFST (8)
  794. #define E60802_RG_SSUSB_PLL_AUTOK_KS_OFST (6)
  795. #define E60802_RG_SSUSB_PLL_AUTOK_KF_OFST (4)
  796. #define E60802_RG_SSUSB_PLL_RST_DLY_OFST (2)
  797. /* U3D_reg7 */
  798. #define E60802_RG_SSUSB_PLL_RESERVE_OFST (16)
  799. #define E60802_RG_SSUSB_PLL_SSC_PRD_OFST (0)
  800. /* U3D_reg8 */
  801. #define E60802_RG_SSUSB_PLL_SSC_PHASE_INI_OFST (31)
  802. #define E60802_RG_SSUSB_PLL_SSC_TRI_EN_OFST (30)
  803. #define E60802_RG_SSUSB_PLL_CLK_PH_INV_OFST (29)
  804. #define E60802_RG_SSUSB_PLL_DDS_LPF_EN_OFST (28)
  805. #define E60802_RG_SSUSB_PLL_DDS_RST_SEL_OFST (27)
  806. #define E60802_RG_SSUSB_PLL_DDS_VADJ_OFST (26)
  807. #define E60802_RG_SSUSB_PLL_DDS_MONEN_OFST (25)
  808. #define E60802_RG_SSUSB_PLL_DDS_SEL_EXT_OFST (24)
  809. #define E60802_RG_SSUSB_PLL_DDS_PI_PL_EN_OFST (23)
  810. #define E60802_RG_SSUSB_PLL_DDS_FRAC_MUTE_OFST (20)
  811. #define E60802_RG_SSUSB_PLL_DDS_HF_EN_OFST (19)
  812. #define E60802_RG_SSUSB_PLL_DDS_C_OFST (16)
  813. #define E60802_RG_SSUSB_PLL_DDS_PREDIV2_OFST (15)
  814. #define E60802_RG_SSUSB_LFPS_LPF_OFST (13)
  815. /* U3D_reg9 */
  816. #define E60802_RG_SSUSB_CDR_PD_DIV_BYPASS_OFST (31)
  817. #define E60802_RG_SSUSB_CDR_PD_DIV_SEL_OFST (30)
  818. #define E60802_RG_SSUSB_CDR_CPBIAS_SEL_OFST (29)
  819. #define E60802_RG_SSUSB_CDR_OSCDET_EN_OFST (28)
  820. #define E60802_RG_SSUSB_CDR_MONMUX_OFST (27)
  821. #define E60802_RG_SSUSB_CDR_RST_DLY_OFST (25)
  822. #define E60802_RG_SSUSB_CDR_RSTB_MANUAL_OFST (24)
  823. #define E60802_RG_SSUSB_CDR_BYPASS_OFST (22)
  824. #define E60802_RG_SSUSB_CDR_PI_SLEW_OFST (20)
  825. #define E60802_RG_SSUSB_CDR_EPEN_OFST (19)
  826. #define E60802_RG_SSUSB_CDR_AUTOK_LOAD_OFST (18)
  827. #define E60802_RG_SSUSB_CDR_MONEN_OFST (16)
  828. #define E60802_RG_SSUSB_CDR_MONEN_DIG_OFST (15)
  829. #define E60802_RG_SSUSB_CDR_REGOD_OFST (13)
  830. #define E60802_RG_SSUSB_CDR_AUTOK_KS_OFST (11)
  831. #define E60802_RG_SSUSB_CDR_AUTOK_KF_OFST (9)
  832. #define E60802_RG_SSUSB_RX_DAC_EN_OFST (8)
  833. #define E60802_RG_SSUSB_RX_DAC_PWD_OFST (7)
  834. #define E60802_RG_SSUSB_EQ_CURSEL_OFST (6)
  835. #define E60802_RG_SSUSB_RX_DAC_MUX_OFST (1)
  836. #define E60802_RG_SSUSB_RX_R2T_EN_OFST (0)
  837. /* U3D_regA */
  838. #define E60802_RG_SSUSB_RX_T2R_EN_OFST (31)
  839. #define E60802_RG_SSUSB_RX_50_LOWER_OFST (28)
  840. #define E60802_RG_SSUSB_RX_50_TAR_OFST (26)
  841. #define E60802_RG_SSUSB_RX_SW_CTRL_OFST (21)
  842. #define E60802_RG_PCIE_SIGDET_VTH_OFST (19)
  843. #define E60802_RG_PCIE_SIGDET_LPF_OFST (17)
  844. #define E60802_RG_SSUSB_LFPS_MON_EN_OFST (16)
  845. #define E60802_RG_SSUSB_RXAFE_DCMON_SEL_OFST (12)
  846. #define E60802_RG_SSUSB_RX_P1_ENTRY_PASS_OFST (11)
  847. #define E60802_RG_SSUSB_RX_PD_RST_OFST (10)
  848. #define E60802_RG_SSUSB_RX_PD_RST_PASS_OFST (9)
  849. /* U3D_regB */
  850. #define E60802_RG_SSUSB_CDR_RESERVE_OFST (24)
  851. #define E60802_RG_SSUSB_RXAFE_RESERVE_OFST (16)
  852. #define E60802_RG_PCIE_RX_RESERVE_OFST (8)
  853. #define E60802_RG_SSUSB_VRT_25M_EN_OFST (7)
  854. #define E60802_RG_SSUSB_RX_PD_PICAL_SWAP_OFST (6)
  855. #define E60802_RG_SSUSB_RX_DAC_MEAS_EN_OFST (5)
  856. #define E60802_RG_SSUSB_MPX_SEL_L0_OFST (4)
  857. #define E60802_RG_SSUSB_LFPS_SLCOUT_SEL_OFST (3)
  858. #define E60802_RG_SSUSB_LFPS_CMPOUT_SEL_OFST (2)
  859. #define E60802_RG_PCIE_SIGDET_HF_OFST (0)
  860. /* U3D_regC */
  861. #define E60802_RGS_SSUSB_RX_DEBUG_RESERVE_OFST (0)
  862. #define E60802_AD_VUSB10_READY_OFST (8)
  863. /* U3D_regD */
  864. #define E60802_RG_SSUSBLDO_BG_LDO_EN_OFST (0)
  865. #define E60802_RG_SSUSBLDO_CAL_OFST (8)
  866. #if 0
  867. /* ///////////////////////////////////////////////////////////////////////////// */
  868. struct u3phya_da_reg_e {
  869. /* 0x0 */
  870. PHY_LE32 reg0;
  871. PHY_LE32 reg1;
  872. PHY_LE32 reg4;
  873. PHY_LE32 reg5;
  874. /* 0x10 */
  875. PHY_LE32 reg6;
  876. PHY_LE32 reg7;
  877. PHY_LE32 reg8;
  878. PHY_LE32 reg9;
  879. /* 0x20 */
  880. PHY_LE32 reg10;
  881. PHY_LE32 reg12;
  882. PHY_LE32 reg13;
  883. PHY_LE32 reg14;
  884. /* 0x30 */
  885. PHY_LE32 reg15;
  886. PHY_LE32 reg16;
  887. PHY_LE32 reg19;
  888. PHY_LE32 reg20;
  889. /* 0x40 */
  890. PHY_LE32 reg21;
  891. PHY_LE32 reg23;
  892. PHY_LE32 reg25;
  893. PHY_LE32 reg26;
  894. /* 0x50 */
  895. PHY_LE32 reg28;
  896. PHY_LE32 reg29;
  897. PHY_LE32 reg30;
  898. PHY_LE32 reg31;
  899. /* 0x60 */
  900. PHY_LE32 reg32;
  901. PHY_LE32 reg33;
  902. };
  903. #endif
  904. /* U3D_reg0 */
  905. #define E60802_RG_PCIE_SPEED_PE2D (0x1<<24) /* 24:24 */
  906. #define E60802_RG_PCIE_SPEED_PE2H (0x1<<23) /* 23:23 */
  907. #define E60802_RG_PCIE_SPEED_PE1D (0x1<<22) /* 22:22 */
  908. #define E60802_RG_PCIE_SPEED_PE1H (0x1<<21) /* 21:21 */
  909. #define E60802_RG_PCIE_SPEED_U3 (0x1<<20) /* 20:20 */
  910. #define E60802_RG_SSUSB_XTAL_EXT_EN_PE2D (0x3<<18) /* 19:18 */
  911. #define E60802_RG_SSUSB_XTAL_EXT_EN_PE2H (0x3<<16) /* 17:16 */
  912. #define E60802_RG_SSUSB_XTAL_EXT_EN_PE1D (0x3<<14) /* 15:14 */
  913. #define E60802_RG_SSUSB_XTAL_EXT_EN_PE1H (0x3<<12) /* 13:12 */
  914. #define E60802_RG_SSUSB_XTAL_EXT_EN_U3 (0x3<<10) /* 11:10 */
  915. #define E60802_RG_SSUSB_CDR_REFCK_SEL_PE2D (0x3<<8) /* 9:8 */
  916. #define E60802_RG_SSUSB_CDR_REFCK_SEL_PE2H (0x3<<6) /* 7:6 */
  917. #define E60802_RG_SSUSB_CDR_REFCK_SEL_PE1D (0x3<<4) /* 5:4 */
  918. #define E60802_RG_SSUSB_CDR_REFCK_SEL_PE1H (0x3<<2) /* 3:2 */
  919. #define E60802_RG_SSUSB_CDR_REFCK_SEL_U3 (0x3<<0) /* 1:0 */
  920. /* U3D_reg1 */
  921. #define E60802_RG_USB20_REFCK_SEL_PE2D (0x1<<30) /* 30:30 */
  922. #define E60802_RG_USB20_REFCK_SEL_PE2H (0x1<<29) /* 29:29 */
  923. #define E60802_RG_USB20_REFCK_SEL_PE1D (0x1<<28) /* 28:28 */
  924. #define E60802_RG_USB20_REFCK_SEL_PE1H (0x1<<27) /* 27:27 */
  925. #define E60802_RG_USB20_REFCK_SEL_U3 (0x1<<26) /* 26:26 */
  926. #define E60802_RG_PCIE_REFCK_DIV4_PE2D (0x1<<25) /* 25:25 */
  927. #define E60802_RG_PCIE_REFCK_DIV4_PE2H (0x1<<24) /* 24:24 */
  928. #define E60802_RG_PCIE_REFCK_DIV4_PE1D (0x1<<18) /* 18:18 */
  929. #define E60802_RG_PCIE_REFCK_DIV4_PE1H (0x1<<17) /* 17:17 */
  930. #define E60802_RG_PCIE_REFCK_DIV4_U3 (0x1<<16) /* 16:16 */
  931. #define E60802_RG_PCIE_MODE_PE2D (0x1<<8) /* 8:8 */
  932. #define E60802_RG_PCIE_MODE_PE2H (0x1<<3) /* 3:3 */
  933. #define E60802_RG_PCIE_MODE_PE1D (0x1<<2) /* 2:2 */
  934. #define E60802_RG_PCIE_MODE_PE1H (0x1<<1) /* 1:1 */
  935. #define E60802_RG_PCIE_MODE_U3 (0x1<<0) /* 0:0 */
  936. /* U3D_reg4 */
  937. #define E60802_RG_SSUSB_PLL_DIVEN_PE2D (0x7<<22) /* 24:22 */
  938. #define E60802_RG_SSUSB_PLL_DIVEN_PE2H (0x7<<19) /* 21:19 */
  939. #define E60802_RG_SSUSB_PLL_DIVEN_PE1D (0x7<<16) /* 18:16 */
  940. #define E60802_RG_SSUSB_PLL_DIVEN_PE1H (0x7<<13) /* 15:13 */
  941. #define E60802_RG_SSUSB_PLL_DIVEN_U3 (0x7<<10) /* 12:10 */
  942. #define E60802_RG_SSUSB_PLL_BC_PE2D (0x3<<8) /* 9:8 */
  943. #define E60802_RG_SSUSB_PLL_BC_PE2H (0x3<<6) /* 7:6 */
  944. #define E60802_RG_SSUSB_PLL_BC_PE1D (0x3<<4) /* 5:4 */
  945. #define E60802_RG_SSUSB_PLL_BC_PE1H (0x3<<2) /* 3:2 */
  946. #define E60802_RG_SSUSB_PLL_BC_U3 (0x3<<0) /* 1:0 */
  947. /* U3D_reg5 */
  948. #define E60802_RG_SSUSB_PLL_BR_PE2D (0x3<<30) /* 31:30 */
  949. #define E60802_RG_SSUSB_PLL_BR_PE2H (0x3<<28) /* 29:28 */
  950. #define E60802_RG_SSUSB_PLL_BR_PE1D (0x3<<26) /* 27:26 */
  951. #define E60802_RG_SSUSB_PLL_BR_PE1H (0x3<<24) /* 25:24 */
  952. #define E60802_RG_SSUSB_PLL_BR_U3 (0x3<<22) /* 23:22 */
  953. #define E60802_RG_SSUSB_PLL_IC_PE2D (0xf<<16) /* 19:16 */
  954. #define E60802_RG_SSUSB_PLL_IC_PE2H (0xf<<12) /* 15:12 */
  955. #define E60802_RG_SSUSB_PLL_IC_PE1D (0xf<<8) /* 11:8 */
  956. #define E60802_RG_SSUSB_PLL_IC_PE1H (0xf<<4) /* 7:4 */
  957. #define E60802_RG_SSUSB_PLL_IC_U3 (0xf<<0) /* 3:0 */
  958. /* U3D_reg6 */
  959. #define E60802_RG_SSUSB_PLL_IR_PE2D (0xf<<24) /* 27:24 */
  960. #define E60802_RG_SSUSB_PLL_IR_PE2H (0xf<<16) /* 19:16 */
  961. #define E60802_RG_SSUSB_PLL_IR_PE1D (0xf<<8) /* 11:8 */
  962. #define E60802_RG_SSUSB_PLL_IR_PE1H (0xf<<4) /* 7:4 */
  963. #define E60802_RG_SSUSB_PLL_IR_U3 (0xf<<0) /* 3:0 */
  964. /* U3D_reg7 */
  965. #define E60802_RG_SSUSB_PLL_BP_PE2D (0xf<<24) /* 27:24 */
  966. #define E60802_RG_SSUSB_PLL_BP_PE2H (0xf<<16) /* 19:16 */
  967. #define E60802_RG_SSUSB_PLL_BP_PE1D (0xf<<8) /* 11:8 */
  968. #define E60802_RG_SSUSB_PLL_BP_PE1H (0xf<<4) /* 7:4 */
  969. #define E60802_RG_SSUSB_PLL_BP_U3 (0xf<<0) /* 3:0 */
  970. /* U3D_reg8 */
  971. #define E60802_RG_SSUSB_PLL_FBKSEL_PE2D (0x3<<24) /* 25:24 */
  972. #define E60802_RG_SSUSB_PLL_FBKSEL_PE2H (0x3<<16) /* 17:16 */
  973. #define E60802_RG_SSUSB_PLL_FBKSEL_PE1D (0x3<<8) /* 9:8 */
  974. #define E60802_RG_SSUSB_PLL_FBKSEL_PE1H (0x3<<2) /* 3:2 */
  975. #define E60802_RG_SSUSB_PLL_FBKSEL_U3 (0x3<<0) /* 1:0 */
  976. /* U3D_reg9 */
  977. #define E60802_RG_SSUSB_PLL_FBKDIV_PE2H (0x7f<<24) /* 30:24 */
  978. #define E60802_RG_SSUSB_PLL_FBKDIV_PE1D (0x7f<<16) /* 22:16 */
  979. #define E60802_RG_SSUSB_PLL_FBKDIV_PE1H (0x7f<<8) /* 14:8 */
  980. #define E60802_RG_SSUSB_PLL_FBKDIV_U3 (0x7f<<0) /* 6:0 */
  981. /* U3D_reg10 */
  982. #define E60802_RG_SSUSB_PLL_PREDIV_PE2D (0x3<<26) /* 27:26 */
  983. #define E60802_RG_SSUSB_PLL_PREDIV_PE2H (0x3<<24) /* 25:24 */
  984. #define E60802_RG_SSUSB_PLL_PREDIV_PE1D (0x3<<18) /* 19:18 */
  985. #define E60802_RG_SSUSB_PLL_PREDIV_PE1H (0x3<<16) /* 17:16 */
  986. #define E60802_RG_SSUSB_PLL_PREDIV_U3 (0x3<<8) /* 9:8 */
  987. #define E60802_RG_SSUSB_PLL_FBKDIV_PE2D (0x7f<<0) /* 6:0 */
  988. /* U3D_reg12 */
  989. #define E60802_RG_SSUSB_PLL_PCW_NCPO_U3 (0x7fffffff<<0) /* 30:0 */
  990. /* U3D_reg13 */
  991. #define E60802_RG_SSUSB_PLL_PCW_NCPO_PE1H (0x7fffffff<<0) /* 30:0 */
  992. /* U3D_reg14 */
  993. #define E60802_RG_SSUSB_PLL_PCW_NCPO_PE1D (0x7fffffff<<0) /* 30:0 */
  994. /* U3D_reg15 */
  995. #define E60802_RG_SSUSB_PLL_PCW_NCPO_PE2H (0x7fffffff<<0) /* 30:0 */
  996. /* U3D_reg16 */
  997. #define E60802_RG_SSUSB_PLL_PCW_NCPO_PE2D (0x7fffffff<<0) /* 30:0 */
  998. /* U3D_reg19 */
  999. #define E60802_RG_SSUSB_PLL_SSC_DELTA1_PE1H (0xffff<<16) /* 31:16 */
  1000. #define E60802_RG_SSUSB_PLL_SSC_DELTA1_U3 (0xffff<<0) /* 15:0 */
  1001. /* U3D_reg20 */
  1002. #define E60802_RG_SSUSB_PLL_SSC_DELTA1_PE2H (0xffff<<16) /* 31:16 */
  1003. #define E60802_RG_SSUSB_PLL_SSC_DELTA1_PE1D (0xffff<<0) /* 15:0 */
  1004. /* U3D_reg21 */
  1005. #define E60802_RG_SSUSB_PLL_SSC_DELTA_U3 (0xffffU<<16) /* 31:16 */
  1006. #define E60802_RG_SSUSB_PLL_SSC_DELTA1_PE2D (0xffff<<0) /* 15:0 */
  1007. /* U3D_reg23 */
  1008. #define E60802_RG_SSUSB_PLL_SSC_DELTA_PE1D (0xffff<<16) /* 31:16 */
  1009. #define E60802_RG_SSUSB_PLL_SSC_DELTA_PE1H (0xffff<<0) /* 15:0 */
  1010. /* U3D_reg25 */
  1011. #define E60802_RG_SSUSB_PLL_SSC_DELTA_PE2D (0xffff<<16) /* 31:16 */
  1012. #define E60802_RG_SSUSB_PLL_SSC_DELTA_PE2H (0xffff<<0) /* 15:0 */
  1013. /* U3D_reg26 */
  1014. #define E60802_RG_SSUSB_PLL_REFCKDIV_PE2D (0x1<<25) /* 25:25 */
  1015. #define E60802_RG_SSUSB_PLL_REFCKDIV_PE2H (0x1<<24) /* 24:24 */
  1016. #define E60802_RG_SSUSB_PLL_REFCKDIV_PE1D (0x1<<16) /* 16:16 */
  1017. #define E60802_RG_SSUSB_PLL_REFCKDIV_PE1H (0x1<<8) /* 8:8 */
  1018. #define E60802_RG_SSUSB_PLL_REFCKDIV_U3 (0x1<<0) /* 0:0 */
  1019. /* U3D_reg28 */
  1020. #define E60802_RG_SSUSB_CDR_BPA_PE2D (0x3<<24) /* 25:24 */
  1021. #define E60802_RG_SSUSB_CDR_BPA_PE2H (0x3<<16) /* 17:16 */
  1022. #define E60802_RG_SSUSB_CDR_BPA_PE1D (0x3<<10) /* 11:10 */
  1023. #define E60802_RG_SSUSB_CDR_BPA_PE1H (0x3<<8) /* 9:8 */
  1024. #define E60802_RG_SSUSB_CDR_BPA_U3 (0x3<<0) /* 1:0 */
  1025. /* U3D_reg29 */
  1026. #define E60802_RG_SSUSB_CDR_BPB_PE2D (0x7<<24) /* 26:24 */
  1027. #define E60802_RG_SSUSB_CDR_BPB_PE2H (0x7<<16) /* 18:16 */
  1028. #define E60802_RG_SSUSB_CDR_BPB_PE1D (0x7<<6) /* 8:6 */
  1029. #define E60802_RG_SSUSB_CDR_BPB_PE1H (0x7<<3) /* 5:3 */
  1030. #define E60802_RG_SSUSB_CDR_BPB_U3 (0x7<<0) /* 2:0 */
  1031. /* U3D_reg30 */
  1032. #define E60802_RG_SSUSB_CDR_BR_PE2D (0x7<<24) /* 26:24 */
  1033. #define E60802_RG_SSUSB_CDR_BR_PE2H (0x7<<16) /* 18:16 */
  1034. #define E60802_RG_SSUSB_CDR_BR_PE1D (0x7<<6) /* 8:6 */
  1035. #define E60802_RG_SSUSB_CDR_BR_PE1H (0x7<<3) /* 5:3 */
  1036. #define E60802_RG_SSUSB_CDR_BR_U3 (0x7<<0) /* 2:0 */
  1037. /* U3D_reg31 */
  1038. #define E60802_RG_SSUSB_CDR_FBDIV_PE2H (0x7f<<24) /* 30:24 */
  1039. #define E60802_RG_SSUSB_CDR_FBDIV_PE1D (0x7f<<16) /* 22:16 */
  1040. #define E60802_RG_SSUSB_CDR_FBDIV_PE1H (0x7f<<8) /* 14:8 */
  1041. #define E60802_RG_SSUSB_CDR_FBDIV_U3 (0x7f<<0) /* 6:0 */
  1042. /* U3D_reg32 */
  1043. #define E60802_RG_SSUSB_EQ_RSTEP1_PE2D (0x3<<30) /* 31:30 */
  1044. #define E60802_RG_SSUSB_EQ_RSTEP1_PE2H (0x3<<28) /* 29:28 */
  1045. #define E60802_RG_SSUSB_EQ_RSTEP1_PE1D (0x3<<26) /* 27:26 */
  1046. #define E60802_RG_SSUSB_EQ_RSTEP1_PE1H (0x3<<24) /* 25:24 */
  1047. #define E60802_RG_SSUSB_EQ_RSTEP1_U3 (0x3<<22) /* 23:22 */
  1048. #define E60802_RG_SSUSB_LFPS_DEGLITCH_PE2D (0x3<<20) /* 21:20 */
  1049. #define E60802_RG_SSUSB_LFPS_DEGLITCH_PE2H (0x3<<18) /* 19:18 */
  1050. #define E60802_RG_SSUSB_LFPS_DEGLITCH_PE1D (0x3<<16) /* 17:16 */
  1051. #define E60802_RG_SSUSB_LFPS_DEGLITCH_PE1H (0x3<<14) /* 15:14 */
  1052. #define E60802_RG_SSUSB_LFPS_DEGLITCH_U3 (0x3<<12) /* 13:12 */
  1053. #define E60802_RG_SSUSB_CDR_KVSEL_PE2D (0x1<<11) /* 11:11 */
  1054. #define E60802_RG_SSUSB_CDR_KVSEL_PE2H (0x1<<10) /* 10:10 */
  1055. #define E60802_RG_SSUSB_CDR_KVSEL_PE1D (0x1<<9) /* 9:9 */
  1056. #define E60802_RG_SSUSB_CDR_KVSEL_PE1H (0x1<<8) /* 8:8 */
  1057. #define E60802_RG_SSUSB_CDR_KVSEL_U3 (0x1<<7) /* 7:7 */
  1058. #define E60802_RG_SSUSB_CDR_FBDIV_PE2D (0x7f<<0) /* 6:0 */
  1059. /* U3D_reg33 */
  1060. #define E60802_RG_SSUSB_RX_CMPWD_PE2D (0x1<<26) /* 26:26 */
  1061. #define E60802_RG_SSUSB_RX_CMPWD_PE2H (0x1<<25) /* 25:25 */
  1062. #define E60802_RG_SSUSB_RX_CMPWD_PE1D (0x1<<24) /* 24:24 */
  1063. #define E60802_RG_SSUSB_RX_CMPWD_PE1H (0x1<<23) /* 23:23 */
  1064. #define E60802_RG_SSUSB_RX_CMPWD_U3 (0x1<<16) /* 16:16 */
  1065. #define E60802_RG_SSUSB_EQ_RSTEP2_PE2D (0x3<<8) /* 9:8 */
  1066. #define E60802_RG_SSUSB_EQ_RSTEP2_PE2H (0x3<<6) /* 7:6 */
  1067. #define E60802_RG_SSUSB_EQ_RSTEP2_PE1D (0x3<<4) /* 5:4 */
  1068. #define E60802_RG_SSUSB_EQ_RSTEP2_PE1H (0x3<<2) /* 3:2 */
  1069. #define E60802_RG_SSUSB_EQ_RSTEP2_U3 (0x3<<0) /* 1:0 */
  1070. /* OFFSET DEFINITION */
  1071. /* U3D_reg0 */
  1072. #define E60802_RG_PCIE_SPEED_PE2D_OFST (24)
  1073. #define E60802_RG_PCIE_SPEED_PE2H_OFST (23)
  1074. #define E60802_RG_PCIE_SPEED_PE1D_OFST (22)
  1075. #define E60802_RG_PCIE_SPEED_PE1H_OFST (21)
  1076. #define E60802_RG_PCIE_SPEED_U3_OFST (20)
  1077. #define E60802_RG_SSUSB_XTAL_EXT_EN_PE2D_OFST (18)
  1078. #define E60802_RG_SSUSB_XTAL_EXT_EN_PE2H_OFST (16)
  1079. #define E60802_RG_SSUSB_XTAL_EXT_EN_PE1D_OFST (14)
  1080. #define E60802_RG_SSUSB_XTAL_EXT_EN_PE1H_OFST (12)
  1081. #define E60802_RG_SSUSB_XTAL_EXT_EN_U3_OFST (10)
  1082. #define E60802_RG_SSUSB_CDR_REFCK_SEL_PE2D_OFST (8)
  1083. #define E60802_RG_SSUSB_CDR_REFCK_SEL_PE2H_OFST (6)
  1084. #define E60802_RG_SSUSB_CDR_REFCK_SEL_PE1D_OFST (4)
  1085. #define E60802_RG_SSUSB_CDR_REFCK_SEL_PE1H_OFST (2)
  1086. #define E60802_RG_SSUSB_CDR_REFCK_SEL_U3_OFST (0)
  1087. /* U3D_reg1 */
  1088. #define E60802_RG_USB20_REFCK_SEL_PE2D_OFST (30)
  1089. #define E60802_RG_USB20_REFCK_SEL_PE2H_OFST (29)
  1090. #define E60802_RG_USB20_REFCK_SEL_PE1D_OFST (28)
  1091. #define E60802_RG_USB20_REFCK_SEL_PE1H_OFST (27)
  1092. #define E60802_RG_USB20_REFCK_SEL_U3_OFST (26)
  1093. #define E60802_RG_PCIE_REFCK_DIV4_PE2D_OFST (25)
  1094. #define E60802_RG_PCIE_REFCK_DIV4_PE2H_OFST (24)
  1095. #define E60802_RG_PCIE_REFCK_DIV4_PE1D_OFST (18)
  1096. #define E60802_RG_PCIE_REFCK_DIV4_PE1H_OFST (17)
  1097. #define E60802_RG_PCIE_REFCK_DIV4_U3_OFST (16)
  1098. #define E60802_RG_PCIE_MODE_PE2D_OFST (8)
  1099. #define E60802_RG_PCIE_MODE_PE2H_OFST (3)
  1100. #define E60802_RG_PCIE_MODE_PE1D_OFST (2)
  1101. #define E60802_RG_PCIE_MODE_PE1H_OFST (1)
  1102. #define E60802_RG_PCIE_MODE_U3_OFST (0)
  1103. /* U3D_reg4 */
  1104. #define E60802_RG_SSUSB_PLL_DIVEN_PE2D_OFST (22)
  1105. #define E60802_RG_SSUSB_PLL_DIVEN_PE2H_OFST (19)
  1106. #define E60802_RG_SSUSB_PLL_DIVEN_PE1D_OFST (16)
  1107. #define E60802_RG_SSUSB_PLL_DIVEN_PE1H_OFST (13)
  1108. #define E60802_RG_SSUSB_PLL_DIVEN_U3_OFST (10)
  1109. #define E60802_RG_SSUSB_PLL_BC_PE2D_OFST (8)
  1110. #define E60802_RG_SSUSB_PLL_BC_PE2H_OFST (6)
  1111. #define E60802_RG_SSUSB_PLL_BC_PE1D_OFST (4)
  1112. #define E60802_RG_SSUSB_PLL_BC_PE1H_OFST (2)
  1113. #define E60802_RG_SSUSB_PLL_BC_U3_OFST (0)
  1114. /* U3D_reg5 */
  1115. #define E60802_RG_SSUSB_PLL_BR_PE2D_OFST (30)
  1116. #define E60802_RG_SSUSB_PLL_BR_PE2H_OFST (28)
  1117. #define E60802_RG_SSUSB_PLL_BR_PE1D_OFST (26)
  1118. #define E60802_RG_SSUSB_PLL_BR_PE1H_OFST (24)
  1119. #define E60802_RG_SSUSB_PLL_BR_U3_OFST (22)
  1120. #define E60802_RG_SSUSB_PLL_IC_PE2D_OFST (16)
  1121. #define E60802_RG_SSUSB_PLL_IC_PE2H_OFST (12)
  1122. #define E60802_RG_SSUSB_PLL_IC_PE1D_OFST (8)
  1123. #define E60802_RG_SSUSB_PLL_IC_PE1H_OFST (4)
  1124. #define E60802_RG_SSUSB_PLL_IC_U3_OFST (0)
  1125. /* U3D_reg6 */
  1126. #define E60802_RG_SSUSB_PLL_IR_PE2D_OFST (24)
  1127. #define E60802_RG_SSUSB_PLL_IR_PE2H_OFST (16)
  1128. #define E60802_RG_SSUSB_PLL_IR_PE1D_OFST (8)
  1129. #define E60802_RG_SSUSB_PLL_IR_PE1H_OFST (4)
  1130. #define E60802_RG_SSUSB_PLL_IR_U3_OFST (0)
  1131. /* U3D_reg7 */
  1132. #define E60802_RG_SSUSB_PLL_BP_PE2D_OFST (24)
  1133. #define E60802_RG_SSUSB_PLL_BP_PE2H_OFST (16)
  1134. #define E60802_RG_SSUSB_PLL_BP_PE1D_OFST (8)
  1135. #define E60802_RG_SSUSB_PLL_BP_PE1H_OFST (4)
  1136. #define E60802_RG_SSUSB_PLL_BP_U3_OFST (0)
  1137. /* U3D_reg8 */
  1138. #define E60802_RG_SSUSB_PLL_FBKSEL_PE2D_OFST (24)
  1139. #define E60802_RG_SSUSB_PLL_FBKSEL_PE2H_OFST (16)
  1140. #define E60802_RG_SSUSB_PLL_FBKSEL_PE1D_OFST (8)
  1141. #define E60802_RG_SSUSB_PLL_FBKSEL_PE1H_OFST (2)
  1142. #define E60802_RG_SSUSB_PLL_FBKSEL_U3_OFST (0)
  1143. /* U3D_reg9 */
  1144. #define E60802_RG_SSUSB_PLL_FBKDIV_PE2H_OFST (24)
  1145. #define E60802_RG_SSUSB_PLL_FBKDIV_PE1D_OFST (16)
  1146. #define E60802_RG_SSUSB_PLL_FBKDIV_PE1H_OFST (8)
  1147. #define E60802_RG_SSUSB_PLL_FBKDIV_U3_OFST (0)
  1148. /* U3D_reg10 */
  1149. #define E60802_RG_SSUSB_PLL_PREDIV_PE2D_OFST (26)
  1150. #define E60802_RG_SSUSB_PLL_PREDIV_PE2H_OFST (24)
  1151. #define E60802_RG_SSUSB_PLL_PREDIV_PE1D_OFST (18)
  1152. #define E60802_RG_SSUSB_PLL_PREDIV_PE1H_OFST (16)
  1153. #define E60802_RG_SSUSB_PLL_PREDIV_U3_OFST (8)
  1154. #define E60802_RG_SSUSB_PLL_FBKDIV_PE2D_OFST (0)
  1155. /* U3D_reg12 */
  1156. #define E60802_RG_SSUSB_PLL_PCW_NCPO_U3_OFST (0)
  1157. /* U3D_reg13 */
  1158. #define E60802_RG_SSUSB_PLL_PCW_NCPO_PE1H_OFST (0)
  1159. /* U3D_reg14 */
  1160. #define E60802_RG_SSUSB_PLL_PCW_NCPO_PE1D_OFST (0)
  1161. /* U3D_reg15 */
  1162. #define E60802_RG_SSUSB_PLL_PCW_NCPO_PE2H_OFST (0)
  1163. /* U3D_reg16 */
  1164. #define E60802_RG_SSUSB_PLL_PCW_NCPO_PE2D_OFST (0)
  1165. /* U3D_reg19 */
  1166. #define E60802_RG_SSUSB_PLL_SSC_DELTA1_PE1H_OFST (16)
  1167. #define E60802_RG_SSUSB_PLL_SSC_DELTA1_U3_OFST (0)
  1168. /* U3D_reg20 */
  1169. #define E60802_RG_SSUSB_PLL_SSC_DELTA1_PE2H_OFST (16)
  1170. #define E60802_RG_SSUSB_PLL_SSC_DELTA1_PE1D_OFST (0)
  1171. /* U3D_reg21 */
  1172. #define E60802_RG_SSUSB_PLL_SSC_DELTA_U3_OFST (16)
  1173. #define E60802_RG_SSUSB_PLL_SSC_DELTA1_PE2D_OFST (0)
  1174. /* U3D_reg23 */
  1175. #define E60802_RG_SSUSB_PLL_SSC_DELTA_PE1D_OFST (16)
  1176. #define E60802_RG_SSUSB_PLL_SSC_DELTA_PE1H_OFST (0)
  1177. /* U3D_reg25 */
  1178. #define E60802_RG_SSUSB_PLL_SSC_DELTA_PE2D_OFST (16)
  1179. #define E60802_RG_SSUSB_PLL_SSC_DELTA_PE2H_OFST (0)
  1180. /* U3D_reg26 */
  1181. #define E60802_RG_SSUSB_PLL_REFCKDIV_PE2D_OFST (25)
  1182. #define E60802_RG_SSUSB_PLL_REFCKDIV_PE2H_OFST (24)
  1183. #define E60802_RG_SSUSB_PLL_REFCKDIV_PE1D_OFST (16)
  1184. #define E60802_RG_SSUSB_PLL_REFCKDIV_PE1H_OFST (8)
  1185. #define E60802_RG_SSUSB_PLL_REFCKDIV_U3_OFST (0)
  1186. /* U3D_reg28 */
  1187. #define E60802_RG_SSUSB_CDR_BPA_PE2D_OFST (24)
  1188. #define E60802_RG_SSUSB_CDR_BPA_PE2H_OFST (16)
  1189. #define E60802_RG_SSUSB_CDR_BPA_PE1D_OFST (10)
  1190. #define E60802_RG_SSUSB_CDR_BPA_PE1H_OFST (8)
  1191. #define E60802_RG_SSUSB_CDR_BPA_U3_OFST (0)
  1192. /* U3D_reg29 */
  1193. #define E60802_RG_SSUSB_CDR_BPB_PE2D_OFST (24)
  1194. #define E60802_RG_SSUSB_CDR_BPB_PE2H_OFST (16)
  1195. #define E60802_RG_SSUSB_CDR_BPB_PE1D_OFST (6)
  1196. #define E60802_RG_SSUSB_CDR_BPB_PE1H_OFST (3)
  1197. #define E60802_RG_SSUSB_CDR_BPB_U3_OFST (0)
  1198. /* U3D_reg30 */
  1199. #define E60802_RG_SSUSB_CDR_BR_PE2D_OFST (24)
  1200. #define E60802_RG_SSUSB_CDR_BR_PE2H_OFST (16)
  1201. #define E60802_RG_SSUSB_CDR_BR_PE1D_OFST (6)
  1202. #define E60802_RG_SSUSB_CDR_BR_PE1H_OFST (3)
  1203. #define E60802_RG_SSUSB_CDR_BR_U3_OFST (0)
  1204. /* U3D_reg31 */
  1205. #define E60802_RG_SSUSB_CDR_FBDIV_PE2H_OFST (24)
  1206. #define E60802_RG_SSUSB_CDR_FBDIV_PE1D_OFST (16)
  1207. #define E60802_RG_SSUSB_CDR_FBDIV_PE1H_OFST (8)
  1208. #define E60802_RG_SSUSB_CDR_FBDIV_U3_OFST (0)
  1209. /* U3D_reg32 */
  1210. #define E60802_RG_SSUSB_EQ_RSTEP1_PE2D_OFST (30)
  1211. #define E60802_RG_SSUSB_EQ_RSTEP1_PE2H_OFST (28)
  1212. #define E60802_RG_SSUSB_EQ_RSTEP1_PE1D_OFST (26)
  1213. #define E60802_RG_SSUSB_EQ_RSTEP1_PE1H_OFST (24)
  1214. #define E60802_RG_SSUSB_EQ_RSTEP1_U3_OFST (22)
  1215. #define E60802_RG_SSUSB_LFPS_DEGLITCH_PE2D_OFST (20)
  1216. #define E60802_RG_SSUSB_LFPS_DEGLITCH_PE2H_OFST (18)
  1217. #define E60802_RG_SSUSB_LFPS_DEGLITCH_PE1D_OFST (16)
  1218. #define E60802_RG_SSUSB_LFPS_DEGLITCH_PE1H_OFST (14)
  1219. #define E60802_RG_SSUSB_LFPS_DEGLITCH_U3_OFST (12)
  1220. #define E60802_RG_SSUSB_CDR_KVSEL_PE2D_OFST (11)
  1221. #define E60802_RG_SSUSB_CDR_KVSEL_PE2H_OFST (10)
  1222. #define E60802_RG_SSUSB_CDR_KVSEL_PE1D_OFST (9)
  1223. #define E60802_RG_SSUSB_CDR_KVSEL_PE1H_OFST (8)
  1224. #define E60802_RG_SSUSB_CDR_KVSEL_U3_OFST (7)
  1225. #define E60802_RG_SSUSB_CDR_FBDIV_PE2D_OFST (0)
  1226. /* U3D_reg33 */
  1227. #define E60802_RG_SSUSB_RX_CMPWD_PE2D_OFST (26)
  1228. #define E60802_RG_SSUSB_RX_CMPWD_PE2H_OFST (25)
  1229. #define E60802_RG_SSUSB_RX_CMPWD_PE1D_OFST (24)
  1230. #define E60802_RG_SSUSB_RX_CMPWD_PE1H_OFST (23)
  1231. #define E60802_RG_SSUSB_RX_CMPWD_U3_OFST (16)
  1232. #define E60802_RG_SSUSB_EQ_RSTEP2_PE2D_OFST (8)
  1233. #define E60802_RG_SSUSB_EQ_RSTEP2_PE2H_OFST (6)
  1234. #define E60802_RG_SSUSB_EQ_RSTEP2_PE1D_OFST (4)
  1235. #define E60802_RG_SSUSB_EQ_RSTEP2_PE1H_OFST (2)
  1236. #define E60802_RG_SSUSB_EQ_RSTEP2_U3_OFST (0)
  1237. /* ///////////////////////////////////////////////////////////////////////////// */
  1238. #if 0
  1239. struct u3phyd_reg_e {
  1240. /* 0x0 */
  1241. PHY_LE32 phyd_mix0;
  1242. PHY_LE32 phyd_mix1;
  1243. PHY_LE32 phyd_lfps0;
  1244. PHY_LE32 phyd_lfps1;
  1245. /* 0x10 */
  1246. PHY_LE32 phyd_impcal0;
  1247. PHY_LE32 phyd_impcal1;
  1248. PHY_LE32 phyd_txpll0;
  1249. PHY_LE32 phyd_txpll1;
  1250. /* 0x20 */
  1251. PHY_LE32 phyd_txpll2;
  1252. PHY_LE32 phyd_fl0;
  1253. PHY_LE32 phyd_mix2;
  1254. PHY_LE32 phyd_rx0;
  1255. /* 0x30 */
  1256. PHY_LE32 phyd_t2rlb;
  1257. PHY_LE32 phyd_cppat;
  1258. PHY_LE32 phyd_mix3;
  1259. PHY_LE32 phyd_ebufctl;
  1260. /* 0x40 */
  1261. PHY_LE32 phyd_pipe0;
  1262. PHY_LE32 phyd_pipe1;
  1263. PHY_LE32 phyd_mix4;
  1264. PHY_LE32 phyd_ckgen0;
  1265. /* 0x50 */
  1266. PHY_LE32 phyd_mix5;
  1267. PHY_LE32 phyd_reserved;
  1268. PHY_LE32 phyd_cdr0;
  1269. PHY_LE32 phyd_cdr1;
  1270. /* 0x60 */
  1271. PHY_LE32 phyd_pll_0;
  1272. PHY_LE32 phyd_pll_1;
  1273. PHY_LE32 phyd_bcn_det_1;
  1274. PHY_LE32 phyd_bcn_det_2;
  1275. /* 0x70 */
  1276. PHY_LE32 eq0;
  1277. PHY_LE32 eq1;
  1278. PHY_LE32 eq2;
  1279. PHY_LE32 eq3;
  1280. /* 0x80 */
  1281. PHY_LE32 eq_eye0;
  1282. PHY_LE32 eq_eye1;
  1283. PHY_LE32 eq_eye2;
  1284. PHY_LE32 eq_dfe0;
  1285. /* 0x90 */
  1286. PHY_LE32 eq_dfe1;
  1287. PHY_LE32 eq_dfe2;
  1288. PHY_LE32 eq_dfe3;
  1289. PHY_LE32 reserve0;
  1290. /* 0xa0 */
  1291. PHY_LE32 phyd_mon0;
  1292. PHY_LE32 phyd_mon1;
  1293. PHY_LE32 phyd_mon2;
  1294. PHY_LE32 phyd_mon3;
  1295. /* 0xb0 */
  1296. PHY_LE32 phyd_mon4;
  1297. PHY_LE32 phyd_mon5;
  1298. PHY_LE32 phyd_mon6;
  1299. PHY_LE32 phyd_mon7;
  1300. /* 0xc0 */
  1301. PHY_LE32 phya_rx_mon0;
  1302. PHY_LE32 phya_rx_mon1;
  1303. PHY_LE32 phya_rx_mon2;
  1304. PHY_LE32 phya_rx_mon3;
  1305. /* 0xd0 */
  1306. PHY_LE32 phya_rx_mon4;
  1307. PHY_LE32 phya_rx_mon5;
  1308. PHY_LE32 phyd_cppat2;
  1309. PHY_LE32 eq_eye3;
  1310. /* 0xe0 */
  1311. PHY_LE32 kband_out;
  1312. PHY_LE32 kband_out1;
  1313. };
  1314. #endif
  1315. /* U3D_PHYD_MIX0 */
  1316. #define E60802_RG_SSUSB_P_P3_TX_NG (0x1<<31) /* 31:31 */
  1317. #define E60802_RG_SSUSB_TSEQ_EN (0x1<<30) /* 30:30 */
  1318. #define E60802_RG_SSUSB_TSEQ_POLEN (0x1<<29) /* 29:29 */
  1319. #define E60802_RG_SSUSB_TSEQ_POL (0x1<<28) /* 28:28 */
  1320. #define E60802_RG_SSUSB_P_P3_PCLK_NG (0x1<<27) /* 27:27 */
  1321. #define E60802_RG_SSUSB_TSEQ_TH (0x7<<24) /* 26:24 */
  1322. #define E60802_RG_SSUSB_PRBS_BERTH (0xff<<16) /* 23:16 */
  1323. #define E60802_RG_SSUSB_DISABLE_PHY_U2_ON (0x1<<15) /* 15:15 */
  1324. #define E60802_RG_SSUSB_DISABLE_PHY_U2_OFF (0x1<<14) /* 14:14 */
  1325. #define E60802_RG_SSUSB_PRBS_EN (0x1<<13) /* 13:13 */
  1326. #define E60802_RG_SSUSB_BPSLOCK (0x1<<12) /* 12:12 */
  1327. #define E60802_RG_SSUSB_RTCOMCNT (0xf<<8) /* 11:8 */
  1328. #define E60802_RG_SSUSB_COMCNT (0xf<<4) /* 7:4 */
  1329. #define E60802_RG_SSUSB_PRBSEL_CALIB (0xf<<0) /* 3:0 */
  1330. /* U3D_PHYD_MIX1 */
  1331. #define E60802_RG_SSUSB_SLEEP_EN (0x1<<31) /* 31:31 */
  1332. #define E60802_RG_SSUSB_PRBSEL_PCS (0x7<<28) /* 30:28 */
  1333. #define E60802_RG_SSUSB_TXLFPS_PRD (0xf<<24) /* 27:24 */
  1334. #define E60802_RG_SSUSB_P_RX_P0S_CK (0x1<<23) /* 23:23 */
  1335. #define E60802_RG_SSUSB_P_TX_P0S_CK (0x1<<22) /* 22:22 */
  1336. #define E60802_RG_SSUSB_PDNCTL (0x3f<<16) /* 21:16 */
  1337. #define E60802_RG_SSUSB_TX_DRV_EN (0x1<<15) /* 15:15 */
  1338. #define E60802_RG_SSUSB_TX_DRV_SEL (0x1<<14) /* 14:14 */
  1339. #define E60802_RG_SSUSB_TX_DRV_DLY (0x3f<<8) /* 13:8 */
  1340. #define E60802_RG_SSUSB_BERT_EN (0x1<<7) /* 7:7 */
  1341. #define E60802_RG_SSUSB_SCP_TH (0x7<<4) /* 6:4 */
  1342. #define E60802_RG_SSUSB_SCP_EN (0x1<<3) /* 3:3 */
  1343. #define E60802_RG_SSUSB_RXANSIDEC_TEST (0x7<<0) /* 2:0 */
  1344. /* U3D_PHYD_LFPS0 */
  1345. #define E60802_RG_SSUSB_LFPS_PWD (0x1<<30) /* 30:30 */
  1346. #define E60802_RG_SSUSB_FORCE_LFPS_PWD (0x1<<29) /* 29:29 */
  1347. #define E60802_RG_SSUSB_RXLFPS_OVF (0x1f<<24) /* 28:24 */
  1348. #define E60802_RG_SSUSB_P3_ENTRY_SEL (0x1<<23) /* 23:23 */
  1349. #define E60802_RG_SSUSB_P3_ENTRY (0x1<<22) /* 22:22 */
  1350. #define E60802_RG_SSUSB_RXLFPS_CDRSEL (0x3<<20) /* 21:20 */
  1351. #define E60802_RG_SSUSB_RXLFPS_CDRTH (0xf<<16) /* 19:16 */
  1352. #define E60802_RG_SSUSB_LOCK5G_BLOCK (0x1<<15) /* 15:15 */
  1353. #define E60802_RG_SSUSB_TFIFO_EXT_D_SEL (0x1<<14) /* 14:14 */
  1354. #define E60802_RG_SSUSB_TFIFO_NO_EXTEND (0x1<<13) /* 13:13 */
  1355. #define E60802_RG_SSUSB_RXLFPS_LOB (0x1f<<8) /* 12:8 */
  1356. #define E60802_RG_SSUSB_TXLFPS_EN (0x1<<7) /* 7:7 */
  1357. #define E60802_RG_SSUSB_TXLFPS_SEL (0x1<<6) /* 6:6 */
  1358. #define E60802_RG_SSUSB_RXLFPS_CDRLOCK (0x1<<5) /* 5:5 */
  1359. #define E60802_RG_SSUSB_RXLFPS_UPB (0x1f<<0) /* 4:0 */
  1360. /* U3D_PHYD_LFPS1 */
  1361. #define E60802_RG_SSUSB_RX_IMP_BIAS (0xf<<28) /* 31:28 */
  1362. #define E60802_RG_SSUSB_TX_IMP_BIAS (0xf<<24) /* 27:24 */
  1363. #define E60802_RG_SSUSB_FWAKE_TH (0x3f<<16) /* 21:16 */
  1364. #define E60802_RG_SSUSB_P1_ENTRY_SEL (0x1<<14) /* 14:14 */
  1365. #define E60802_RG_SSUSB_P1_ENTRY (0x1<<13) /* 13:13 */
  1366. #define E60802_RG_SSUSB_RXLFPS_UDF (0x1f<<8) /* 12:8 */
  1367. #define E60802_RG_SSUSB_RXLFPS_P0IDLETH (0xff<<0) /* 7:0 */
  1368. /* U3D_PHYD_IMPCAL0 */
  1369. #define E60802_RG_SSUSB_FORCE_TX_IMPSEL (0x1<<31) /* 31:31 */
  1370. #define E60802_RG_SSUSB_TX_IMPCAL_EN (0x1<<30) /* 30:30 */
  1371. #define E60802_RG_SSUSB_FORCE_TX_IMPCAL_EN (0x1<<29) /* 29:29 */
  1372. #define E60802_RG_SSUSB_TX_IMPSEL (0x1f<<24) /* 28:24 */
  1373. #define E60802_RG_SSUSB_TX_IMPCAL_CALCYC (0x3f<<16) /* 21:16 */
  1374. #define E60802_RG_SSUSB_TX_IMPCAL_STBCYC (0x1f<<10) /* 14:10 */
  1375. #define E60802_RG_SSUSB_TX_IMPCAL_CYCCNT (0x3ff<<0) /* 9:0 */
  1376. /* U3D_PHYD_IMPCAL1 */
  1377. #define E60802_RG_SSUSB_FORCE_RX_IMPSEL (0x1<<31) /* 31:31 */
  1378. #define E60802_RG_SSUSB_RX_IMPCAL_EN (0x1<<30) /* 30:30 */
  1379. #define E60802_RG_SSUSB_FORCE_RX_IMPCAL_EN (0x1<<29) /* 29:29 */
  1380. #define E60802_RG_SSUSB_RX_IMPSEL (0x1f<<24) /* 28:24 */
  1381. #define E60802_RG_SSUSB_RX_IMPCAL_CALCYC (0x3f<<16) /* 21:16 */
  1382. #define E60802_RG_SSUSB_RX_IMPCAL_STBCYC (0x1f<<10) /* 14:10 */
  1383. #define E60802_RG_SSUSB_RX_IMPCAL_CYCCNT (0x3ff<<0) /* 9:0 */
  1384. /* U3D_PHYD_TXPLL0 */
  1385. #define E60802_RG_SSUSB_TXPLL_DDSEN_CYC (0x1f<<27) /* 31:27 */
  1386. #define E60802_RG_SSUSB_TXPLL_ON (0x1<<26) /* 26:26 */
  1387. #define E60802_RG_SSUSB_FORCE_TXPLLON (0x1<<25) /* 25:25 */
  1388. #define E60802_RG_SSUSB_TXPLL_STBCYC (0x1ff<<16) /* 24:16 */
  1389. #define E60802_RG_SSUSB_TXPLL_NCPOCHG_CYC (0xf<<12) /* 15:12 */
  1390. #define E60802_RG_SSUSB_TXPLL_NCPOEN_CYC (0x3<<10) /* 11:10 */
  1391. #define E60802_RG_SSUSB_TXPLL_DDSRSTB_CYC (0x7<<0) /* 2:0 */
  1392. /* U3D_PHYD_TXPLL1 */
  1393. #define E60802_RG_SSUSB_PLL_NCPO_EN (0x1<<31) /* 31:31 */
  1394. #define E60802_RG_SSUSB_PLL_FIFO_START_MAN (0x1<<30) /* 30:30 */
  1395. #define E60802_RG_SSUSB_PLL_NCPO_CHG (0x1<<28) /* 28:28 */
  1396. #define E60802_RG_SSUSB_PLL_DDS_RSTB (0x1<<27) /* 27:27 */
  1397. #define E60802_RG_SSUSB_PLL_DDS_PWDB (0x1<<26) /* 26:26 */
  1398. #define E60802_RG_SSUSB_PLL_DDSEN (0x1<<25) /* 25:25 */
  1399. #define E60802_RG_SSUSB_PLL_AUTOK_VCO (0x1<<24) /* 24:24 */
  1400. #define E60802_RG_SSUSB_PLL_PWD (0x1<<23) /* 23:23 */
  1401. #define E60802_RG_SSUSB_RX_AFE_PWD (0x1<<22) /* 22:22 */
  1402. #define E60802_RG_SSUSB_PLL_TCADJ (0x3f<<16) /* 21:16 */
  1403. #define E60802_RG_SSUSB_FORCE_CDR_TCADJ (0x1<<15) /* 15:15 */
  1404. #define E60802_RG_SSUSB_FORCE_CDR_AUTOK_VCO (0x1<<14) /* 14:14 */
  1405. #define E60802_RG_SSUSB_FORCE_CDR_PWD (0x1<<13) /* 13:13 */
  1406. #define E60802_RG_SSUSB_FORCE_PLL_NCPO_EN (0x1<<12) /* 12:12 */
  1407. #define E60802_RG_SSUSB_FORCE_PLL_FIFO_START_MAN (0x1<<11) /* 11:11 */
  1408. #define E60802_RG_SSUSB_FORCE_PLL_NCPO_CHG (0x1<<9) /* 9:9 */
  1409. #define E60802_RG_SSUSB_FORCE_PLL_DDS_RSTB (0x1<<8) /* 8:8 */
  1410. #define E60802_RG_SSUSB_FORCE_PLL_DDS_PWDB (0x1<<7) /* 7:7 */
  1411. #define E60802_RG_SSUSB_FORCE_PLL_DDSEN (0x1<<6) /* 6:6 */
  1412. #define E60802_RG_SSUSB_FORCE_PLL_TCADJ (0x1<<5) /* 5:5 */
  1413. #define E60802_RG_SSUSB_FORCE_PLL_AUTOK_VCO (0x1<<4) /* 4:4 */
  1414. #define E60802_RG_SSUSB_FORCE_PLL_PWD (0x1<<3) /* 3:3 */
  1415. #define E60802_RG_SSUSB_FLT_1_DISPERR_B (0x1<<2) /* 2:2 */
  1416. /* U3D_PHYD_TXPLL2 */
  1417. #define E60802_RG_SSUSB_TX_LFPS_EN (0x1<<31) /* 31:31 */
  1418. #define E60802_RG_SSUSB_FORCE_TX_LFPS_EN (0x1<<30) /* 30:30 */
  1419. #define E60802_RG_SSUSB_TX_LFPS (0x1<<29) /* 29:29 */
  1420. #define E60802_RG_SSUSB_FORCE_TX_LFPS (0x1<<28) /* 28:28 */
  1421. #define E60802_RG_SSUSB_RXPLL_STB (0x1<<27) /* 27:27 */
  1422. #define E60802_RG_SSUSB_TXPLL_STB (0x1<<26) /* 26:26 */
  1423. #define E60802_RG_SSUSB_FORCE_RXPLL_STB (0x1<<25) /* 25:25 */
  1424. #define E60802_RG_SSUSB_FORCE_TXPLL_STB (0x1<<24) /* 24:24 */
  1425. #define E60802_RG_SSUSB_RXPLL_REFCKSEL (0x1<<16) /* 16:16 */
  1426. #define E60802_RG_SSUSB_RXPLL_STBMODE (0x1<<11) /* 11:11 */
  1427. #define E60802_RG_SSUSB_RXPLL_ON (0x1<<10) /* 10:10 */
  1428. #define E60802_RG_SSUSB_FORCE_RXPLLON (0x1<<9) /* 9:9 */
  1429. #define E60802_RG_SSUSB_FORCE_RX_AFE_PWD (0x1<<8) /* 8:8 */
  1430. #define E60802_RG_SSUSB_CDR_AUTOK_VCO (0x1<<7) /* 7:7 */
  1431. #define E60802_RG_SSUSB_CDR_PWD (0x1<<6) /* 6:6 */
  1432. #define E60802_RG_SSUSB_CDR_TCADJ (0x3f<<0) /* 5:0 */
  1433. /* U3D_PHYD_FL0 */
  1434. #define E60802_RG_SSUSB_RX_FL_TARGET (0xffff<<16) /* 31:16 */
  1435. #define E60802_RG_SSUSB_RX_FL_CYCLECNT (0xffff<<0) /* 15:0 */
  1436. /* U3D_PHYD_MIX2 */
  1437. #define E60802_RG_SSUSB_RX_EQ_RST (0x1<<31) /* 31:31 */
  1438. #define E60802_RG_SSUSB_RX_EQ_RST_SEL (0x1<<30) /* 30:30 */
  1439. #define E60802_RG_SSUSB_RXVAL_RST (0x1<<29) /* 29:29 */
  1440. #define E60802_RG_SSUSB_RXVAL_CNT (0x1f<<24) /* 28:24 */
  1441. #define E60802_RG_SSUSB_CDROS_EN (0x1<<18) /* 18:18 */
  1442. #define E60802_RG_SSUSB_CDR_LCKOP (0x3<<16) /* 17:16 */
  1443. #define E60802_RG_SSUSB_RX_FL_LOCKTH (0xf<<8) /* 11:8 */
  1444. #define E60802_RG_SSUSB_RX_FL_OFFSET (0xff<<0) /* 7:0 */
  1445. /* U3D_PHYD_RX0 */
  1446. #define E60802_RG_SSUSB_T2RLB_BERTH (0xff<<24) /* 31:24 */
  1447. #define E60802_RG_SSUSB_T2RLB_PAT (0xff<<16) /* 23:16 */
  1448. #define E60802_RG_SSUSB_T2RLB_EN (0x1<<15) /* 15:15 */
  1449. #define E60802_RG_SSUSB_T2RLB_BPSCRAMB (0x1<<14) /* 14:14 */
  1450. #define E60802_RG_SSUSB_T2RLB_SERIAL (0x1<<13) /* 13:13 */
  1451. #define E60802_RG_SSUSB_T2RLB_MODE (0x3<<11) /* 12:11 */
  1452. #define E60802_RG_SSUSB_RX_SAOSC_EN (0x1<<10) /* 10:10 */
  1453. #define E60802_RG_SSUSB_RX_SAOSC_EN_SEL (0x1<<9) /* 9:9 */
  1454. #define E60802_RG_SSUSB_RX_DFE_OPTION (0x1<<8) /* 8:8 */
  1455. #define E60802_RG_SSUSB_RX_DFE_EN (0x1<<7) /* 7:7 */
  1456. #define E60802_RG_SSUSB_RX_DFE_EN_SEL (0x1<<6) /* 6:6 */
  1457. #define E60802_RG_SSUSB_RX_EQ_EN (0x1<<5) /* 5:5 */
  1458. #define E60802_RG_SSUSB_RX_EQ_EN_SEL (0x1<<4) /* 4:4 */
  1459. #define E60802_RG_SSUSB_RX_SAOSC_RST (0x1<<3) /* 3:3 */
  1460. #define E60802_RG_SSUSB_RX_SAOSC_RST_SEL (0x1<<2) /* 2:2 */
  1461. #define E60802_RG_SSUSB_RX_DFE_RST (0x1<<1) /* 1:1 */
  1462. #define E60802_RG_SSUSB_RX_DFE_RST_SEL (0x1<<0) /* 0:0 */
  1463. /* U3D_PHYD_T2RLB */
  1464. #define E60802_RG_SSUSB_EQTRAIN_CH_MODE (0x1<<28) /* 28:28 */
  1465. #define E60802_RG_SSUSB_PRB_OUT_CPPAT (0x1<<27) /* 27:27 */
  1466. #define E60802_RG_SSUSB_BPANSIENC (0x1<<26) /* 26:26 */
  1467. #define E60802_RG_SSUSB_VALID_EN (0x1<<25) /* 25:25 */
  1468. #define E60802_RG_SSUSB_EBUF_SRST (0x1<<24) /* 24:24 */
  1469. #define E60802_RG_SSUSB_K_EMP (0xf<<20) /* 23:20 */
  1470. #define E60802_RG_SSUSB_K_FUL (0xf<<16) /* 19:16 */
  1471. #define E60802_RG_SSUSB_T2RLB_BDATRST (0xf<<12) /* 15:12 */
  1472. #define E60802_RG_SSUSB_P_T2RLB_SKP_EN (0x1<<10) /* 10:10 */
  1473. #define E60802_RG_SSUSB_T2RLB_PATMODE (0x3<<8) /* 9:8 */
  1474. #define E60802_RG_SSUSB_T2RLB_TSEQCNT (0xff<<0) /* 7:0 */
  1475. /* U3D_PHYD_CPPAT */
  1476. #define E60802_RG_SSUSB_CPPAT_PROGRAM_EN (0x1<<24) /* 24:24 */
  1477. #define E60802_RG_SSUSB_CPPAT_TOZ (0x3<<21) /* 22:21 */
  1478. #define E60802_RG_SSUSB_CPPAT_PRBS_EN (0x1<<20) /* 20:20 */
  1479. #define E60802_RG_SSUSB_CPPAT_OUT_TMP2 (0xf<<16) /* 19:16 */
  1480. #define E60802_RG_SSUSB_CPPAT_OUT_TMP1 (0xff<<8) /* 15:8 */
  1481. #define E60802_RG_SSUSB_CPPAT_OUT_TMP0 (0xff<<0) /* 7:0 */
  1482. /* U3D_PHYD_MIX3 */
  1483. #define E60802_RG_SSUSB_CDR_TCADJ_MINUS (0x1<<31) /* 31:31 */
  1484. #define E60802_RG_SSUSB_P_CDROS_EN (0x1<<30) /* 30:30 */
  1485. #define E60802_RG_SSUSB_P_P2_TX_DRV_DIS (0x1<<28) /* 28:28 */
  1486. #define E60802_RG_SSUSB_CDR_TCADJ_OFFSET (0x7<<24) /* 26:24 */
  1487. #define E60802_RG_SSUSB_PLL_TCADJ_MINUS (0x1<<23) /* 23:23 */
  1488. #define E60802_RG_SSUSB_FORCE_PLL_BIAS_LPF_EN (0x1<<20) /* 20:20 */
  1489. #define E60802_RG_SSUSB_PLL_BIAS_LPF_EN (0x1<<19) /* 19:19 */
  1490. #define E60802_RG_SSUSB_PLL_TCADJ_OFFSET (0x7<<16) /* 18:16 */
  1491. #define E60802_RG_SSUSB_FORCE_PLL_SSCEN (0x1<<15) /* 15:15 */
  1492. #define E60802_RG_SSUSB_PLL_SSCEN (0x1<<14) /* 14:14 */
  1493. #define E60802_RG_SSUSB_FORCE_CDR_PI_PWD (0x1<<13) /* 13:13 */
  1494. #define E60802_RG_SSUSB_CDR_PI_PWD (0x1<<12) /* 12:12 */
  1495. #define E60802_RG_SSUSB_CDR_PI_MODE (0x1<<11) /* 11:11 */
  1496. #define E60802_RG_SSUSB_TXPLL_SSCEN_CYC (0x3ff<<0) /* 9:0 */
  1497. /* U3D_PHYD_EBUFCTL */
  1498. #define E60802_RG_SSUSB_EBUFCTL (0xffffffff<<0) /* 31:0 */
  1499. /* U3D_PHYD_PIPE0 */
  1500. #define E60802_RG_SSUSB_RXTERMINATION (0x1<<30) /* 30:30 */
  1501. #define E60802_RG_SSUSB_RXEQTRAINING (0x1<<29) /* 29:29 */
  1502. #define E60802_RG_SSUSB_RXPOLARITY (0x1<<28) /* 28:28 */
  1503. #define E60802_RG_SSUSB_TXDEEMPH (0x3<<26) /* 27:26 */
  1504. #define E60802_RG_SSUSB_POWERDOWN (0x3<<24) /* 25:24 */
  1505. #define E60802_RG_SSUSB_TXONESZEROS (0x1<<23) /* 23:23 */
  1506. #define E60802_RG_SSUSB_TXELECIDLE (0x1<<22) /* 22:22 */
  1507. #define E60802_RG_SSUSB_TXDETECTRX (0x1<<21) /* 21:21 */
  1508. #define E60802_RG_SSUSB_PIPE_SEL (0x1<<20) /* 20:20 */
  1509. #define E60802_RG_SSUSB_TXDATAK (0xf<<16) /* 19:16 */
  1510. #define E60802_RG_SSUSB_CDR_STABLE_SEL (0x1<<15) /* 15:15 */
  1511. #define E60802_RG_SSUSB_CDR_STABLE (0x1<<14) /* 14:14 */
  1512. #define E60802_RG_SSUSB_CDR_RSTB_SEL (0x1<<13) /* 13:13 */
  1513. #define E60802_RG_SSUSB_CDR_RSTB (0x1<<12) /* 12:12 */
  1514. #define E60802_RG_SSUSB_FRC_PIPE_POWERDOWN (0x1<<11) /* 11:11 */
  1515. #define E60802_RG_SSUSB_P_TXBCN_DIS (0x1<<6) /* 6:6 */
  1516. #define E60802_RG_SSUSB_P_ERROR_SEL (0x3<<4) /* 5:4 */
  1517. #define E60802_RG_SSUSB_TXMARGIN (0x7<<1) /* 3:1 */
  1518. #define E60802_RG_SSUSB_TXCOMPLIANCE (0x1<<0) /* 0:0 */
  1519. /* U3D_PHYD_PIPE1 */
  1520. #define E60802_RG_SSUSB_TXDATA (0xffffffff<<0) /* 31:0 */
  1521. /* U3D_PHYD_MIX4 */
  1522. #define E60802_RG_SSUSB_CDROS_CNT (0x3f<<24) /* 29:24 */
  1523. #define E60802_RG_SSUSB_T2RLB_BER_EN (0x1<<16) /* 16:16 */
  1524. #define E60802_RG_SSUSB_T2RLB_BER_RATE (0xffff<<0) /* 15:0 */
  1525. /* U3D_PHYD_CKGEN0 */
  1526. #define E60802_RG_SSUSB_RFIFO_IMPLAT (0x1<<27) /* 27:27 */
  1527. #define E60802_RG_SSUSB_TFIFO_PSEL (0x7<<24) /* 26:24 */
  1528. #define E60802_RG_SSUSB_CKGEN_PSEL (0x3<<8) /* 9:8 */
  1529. #define E60802_RG_SSUSB_RXCK_INV (0x1<<0) /* 0:0 */
  1530. /* U3D_PHYD_MIX5 */
  1531. #define E60802_RG_SSUSB_PRB_SEL (0xffff<<16) /* 31:16 */
  1532. #define E60802_RG_SSUSB_RXPLL_STBCYC (0x7ff<<0) /* 10:0 */
  1533. /* U3D_PHYD_RESERVED */
  1534. #define E60802_RG_SSUSB_PHYD_RESERVE (0xffffffff<<0) /* 31:0 */
  1535. /* U3D_PHYD_CDR0 */
  1536. #define E60802_RG_SSUSB_CDR_BIC_LTR (0xf<<28) /* 31:28 */
  1537. #define E60802_RG_SSUSB_CDR_BIC_LTD0 (0xf<<24) /* 27:24 */
  1538. #define E60802_RG_SSUSB_CDR_BC_LTD1 (0x1f<<16) /* 20:16 */
  1539. #define E60802_RG_SSUSB_CDR_BC_LTR (0x1f<<8) /* 12:8 */
  1540. #define E60802_RG_SSUSB_CDR_BC_LTD0 (0x1f<<0) /* 4:0 */
  1541. /* U3D_PHYD_CDR1 */
  1542. #define E60802_RG_SSUSB_CDR_BIR_LTD1 (0x1f<<24) /* 28:24 */
  1543. #define E60802_RG_SSUSB_CDR_BIR_LTR (0x1f<<16) /* 20:16 */
  1544. #define E60802_RG_SSUSB_CDR_BIR_LTD0 (0x1f<<8) /* 12:8 */
  1545. #define E60802_RG_SSUSB_CDR_BW_SEL (0x3<<6) /* 7:6 */
  1546. #define E60802_RG_SSUSB_CDR_BIC_LTD1 (0xf<<0) /* 3:0 */
  1547. /* U3D_PHYD_PLL_0 */
  1548. #define E60802_RG_SSUSB_FORCE_CDR_BAND_5G (0x1<<28) /* 28:28 */
  1549. #define E60802_RG_SSUSB_FORCE_CDR_BAND_2P5G (0x1<<27) /* 27:27 */
  1550. #define E60802_RG_SSUSB_FORCE_PLL_BAND_5G (0x1<<26) /* 26:26 */
  1551. #define E60802_RG_SSUSB_FORCE_PLL_BAND_2P5G (0x1<<25) /* 25:25 */
  1552. #define E60802_RG_SSUSB_P_EQ_T_SEL (0x3ff<<15) /* 24:15 */
  1553. #define E60802_RG_SSUSB_PLL_ISO_EN_CYC (0x3ff<<5) /* 14:5 */
  1554. #define E60802_RG_SSUSB_PLLBAND_RECAL (0x1<<4) /* 4:4 */
  1555. #define E60802_RG_SSUSB_PLL_DDS_ISO_EN (0x1<<3) /* 3:3 */
  1556. #define E60802_RG_SSUSB_FORCE_PLL_DDS_ISO_EN (0x1<<2) /* 2:2 */
  1557. #define E60802_RG_SSUSB_PLL_DDS_PWR_ON (0x1<<1) /* 1:1 */
  1558. #define E60802_RG_SSUSB_FORCE_PLL_DDS_PWR_ON (0x1<<0) /* 0:0 */
  1559. /* U3D_PHYD_PLL_1 */
  1560. #define E60802_RG_SSUSB_CDR_BAND_5G (0xff<<24) /* 31:24 */
  1561. #define E60802_RG_SSUSB_CDR_BAND_2P5G (0xff<<16) /* 23:16 */
  1562. #define E60802_RG_SSUSB_PLL_BAND_5G (0xff<<8) /* 15:8 */
  1563. #define E60802_RG_SSUSB_PLL_BAND_2P5G (0xff<<0) /* 7:0 */
  1564. /* U3D_PHYD_BCN_DET_1 */
  1565. #define E60802_RG_SSUSB_P_BCN_OBS_PRD (0xffff<<16) /* 31:16 */
  1566. #define E60802_RG_SSUSB_U_BCN_OBS_PRD (0xffff<<0) /* 15:0 */
  1567. /* U3D_PHYD_BCN_DET_2 */
  1568. #define E60802_RG_SSUSB_P_BCN_OBS_SEL (0xfff<<16) /* 27:16 */
  1569. #define E60802_RG_SSUSB_BCN_DET_DIS (0x1<<12) /* 12:12 */
  1570. #define E60802_RG_SSUSB_U_BCN_OBS_SEL (0xfff<<0) /* 11:0 */
  1571. /* U3D_EQ0 */
  1572. #define E60802_RG_SSUSB_EQ_DLHL_LFI (0x7f<<24) /* 30:24 */
  1573. #define E60802_RG_SSUSB_EQ_DHHL_LFI (0x7f<<16) /* 22:16 */
  1574. #define E60802_RG_SSUSB_EQ_DD0HOS_LFI (0x7f<<8) /* 14:8 */
  1575. #define E60802_RG_SSUSB_EQ_DD0LOS_LFI (0x7f<<0) /* 6:0 */
  1576. /* U3D_EQ1 */
  1577. #define E60802_RG_SSUSB_EQ_DD1HOS_LFI (0x7f<<24) /* 30:24 */
  1578. #define E60802_RG_SSUSB_EQ_DD1LOS_LFI (0x7f<<16) /* 22:16 */
  1579. #define E60802_RG_SSUSB_EQ_DE0OS_LFI (0x7f<<8) /* 14:8 */
  1580. #define E60802_RG_SSUSB_EQ_DE1OS_LFI (0x7f<<0) /* 6:0 */
  1581. /* U3D_EQ2 */
  1582. #define E60802_RG_SSUSB_EQ_DLHLOS_LFI (0x7f<<24) /* 30:24 */
  1583. #define E60802_RG_SSUSB_EQ_DHHLOS_LFI (0x7f<<16) /* 22:16 */
  1584. #define E60802_RG_SSUSB_EQ_STOPTIME (0x1<<14) /* 14:14 */
  1585. #define E60802_RG_SSUSB_EQ_DHHL_LF_SEL (0x7<<11) /* 13:11 */
  1586. #define E60802_RG_SSUSB_EQ_DSAOS_LF_SEL (0x7<<8) /* 10:8 */
  1587. #define E60802_RG_SSUSB_EQ_STARTTIME (0x3<<6) /* 7:6 */
  1588. #define E60802_RG_SSUSB_EQ_DLEQ_LF_SEL (0x7<<3) /* 5:3 */
  1589. #define E60802_RG_SSUSB_EQ_DLHL_LF_SEL (0x7<<0) /* 2:0 */
  1590. /* U3D_EQ3 */
  1591. #define E60802_RG_SSUSB_EQ_DLEQ_LFI_GEN2 (0xf<<28) /* 31:28 */
  1592. #define E60802_RG_SSUSB_EQ_DLEQ_LFI_GEN1 (0xf<<24) /* 27:24 */
  1593. #define E60802_RG_SSUSB_EQ_DEYE0OS_LFI (0x7f<<16) /* 22:16 */
  1594. #define E60802_RG_SSUSB_EQ_DEYE1OS_LFI (0x7f<<8) /* 14:8 */
  1595. #define E60802_RG_SSUSB_EQ_TRI_DET_EN (0x1<<7) /* 7:7 */
  1596. #define E60802_RG_SSUSB_EQ_TRI_DET_TH (0x7f<<0) /* 6:0 */
  1597. /* U3D_EQ_EYE0 */
  1598. #define E60802_RG_SSUSB_EQ_EYE_XOFFSET (0x7f<<25) /* 31:25 */
  1599. #define E60802_RG_SSUSB_EQ_EYE_MON_EN (0x1<<24) /* 24:24 */
  1600. #define E60802_RG_SSUSB_EQ_EYE0_Y (0x7f<<16) /* 22:16 */
  1601. #define E60802_RG_SSUSB_EQ_EYE1_Y (0x7f<<8) /* 14:8 */
  1602. #define E60802_RG_SSUSB_EQ_PILPO_ROUT (0x1<<7) /* 7:7 */
  1603. #define E60802_RG_SSUSB_EQ_PI_KPGAIN (0x7<<4) /* 6:4 */
  1604. #define E60802_RG_SSUSB_EQ_EYE_CNT_EN (0x1<<3) /* 3:3 */
  1605. /* U3D_EQ_EYE1 */
  1606. #define E60802_RG_SSUSB_EQ_SIGDET (0x7f<<24) /* 30:24 */
  1607. #define E60802_RG_SSUSB_EQ_EYE_MASK (0x3ff<<7) /* 16:7 */
  1608. /* U3D_EQ_EYE2 */
  1609. #define E60802_RG_SSUSB_EQ_RX500M_CK_SEL (0x1<<31) /* 31:31 */
  1610. #define E60802_RG_SSUSB_EQ_SD_CNT1 (0x3f<<24) /* 29:24 */
  1611. #define E60802_RG_SSUSB_EQ_ISIFLAG_SEL (0x3<<22) /* 23:22 */
  1612. #define E60802_RG_SSUSB_EQ_SD_CNT0 (0x3f<<16) /* 21:16 */
  1613. /* U3D_EQ_DFE0 */
  1614. #define E60802_RG_SSUSB_EQ_LEQMAX (0xf<<28) /* 31:28 */
  1615. #define E60802_RG_SSUSB_EQ_DFEX_EN (0x1<<27) /* 27:27 */
  1616. #define E60802_RG_SSUSB_EQ_DFEX_LF_SEL (0x7<<24) /* 26:24 */
  1617. #define E60802_RG_SSUSB_EQ_CHK_EYE_H (0x1<<23) /* 23:23 */
  1618. #define E60802_RG_SSUSB_EQ_PIEYE_INI (0x7f<<16) /* 22:16 */
  1619. #define E60802_RG_SSUSB_EQ_PI90_INI (0x7f<<8) /* 14:8 */
  1620. #define E60802_RG_SSUSB_EQ_PI0_INI (0x7f<<0) /* 6:0 */
  1621. /* U3D_EQ_DFE1 */
  1622. #define E60802_RG_SSUSB_EQ_REV (0xffff<<16) /* 31:16 */
  1623. #define E60802_RG_SSUSB_EQ_DFEYEN_DUR (0x7<<12) /* 14:12 */
  1624. #define E60802_RG_SSUSB_EQ_DFEXEN_DUR (0x7<<8) /* 10:8 */
  1625. #define E60802_RG_SSUSB_EQ_DFEX_RST (0x1<<7) /* 7:7 */
  1626. #define E60802_RG_SSUSB_EQ_GATED_RXD_B (0x1<<6) /* 6:6 */
  1627. #define E60802_RG_SSUSB_EQ_PI90CK_SEL (0x3<<4) /* 5:4 */
  1628. #define E60802_RG_SSUSB_EQ_DFEX_DIS (0x1<<2) /* 2:2 */
  1629. #define E60802_RG_SSUSB_EQ_DFEYEN_STOP_DIS (0x1<<1) /* 1:1 */
  1630. #define E60802_RG_SSUSB_EQ_DFEXEN_SEL (0x1<<0) /* 0:0 */
  1631. /* U3D_EQ_DFE2 */
  1632. #define E60802_RG_SSUSB_EQ_MON_SEL (0x1f<<24) /* 28:24 */
  1633. #define E60802_RG_SSUSB_EQ_LEQOSC_DLYCNT (0x7<<16) /* 18:16 */
  1634. #define E60802_RG_SSUSB_EQ_DLEQOS_LFI (0x1f<<8) /* 12:8 */
  1635. #define E60802_RG_SSUSB_EQ_DFE_TOG (0x1<<2) /* 2:2 */
  1636. #define E60802_RG_SSUSB_EQ_LEQ_STOP_TO (0x3<<0) /* 1:0 */
  1637. /* U3D_EQ_DFE3 */
  1638. #define E60802_RG_SSUSB_EQ_RESERVED (0xffffffff<<0) /* 31:0 */
  1639. /* U3D_PHYD_MON0 */
  1640. #define E60802_RGS_SSUSB_BERT_BERC (0xffff<<16) /* 31:16 */
  1641. #define E60802_RGS_SSUSB_LFPS (0xf<<12) /* 15:12 */
  1642. #define E60802_RGS_SSUSB_TRAINDEC (0x7<<8) /* 10:8 */
  1643. #define E60802_RGS_SSUSB_SCP_PAT (0xff<<0) /* 7:0 */
  1644. /* U3D_PHYD_MON1 */
  1645. #define E60802_RGS_SSUSB_RX_FL_OUT (0xffff<<0) /* 15:0 */
  1646. /* U3D_PHYD_MON2 */
  1647. #define E60802_RGS_SSUSB_T2RLB_ERRCNT (0xffff<<16) /* 31:16 */
  1648. #define E60802_RGS_SSUSB_RETRACK (0xf<<12) /* 15:12 */
  1649. #define E60802_RGS_SSUSB_RXPLL_LOCK (0x1<<10) /* 10:10 */
  1650. #define E60802_RGS_SSUSB_CDR_VCOCAL_CPLT_D (0x1<<9) /* 9:9 */
  1651. #define E60802_RGS_SSUSB_PLL_VCOCAL_CPLT_D (0x1<<8) /* 8:8 */
  1652. #define E60802_RGS_SSUSB_PDNCTL (0xff<<0) /* 7:0 */
  1653. /* U3D_PHYD_MON3 */
  1654. #define E60802_RGS_SSUSB_TSEQ_ERRCNT (0xffff<<16) /* 31:16 */
  1655. #define E60802_RGS_SSUSB_PRBS_ERRCNT (0xffff<<0) /* 15:0 */
  1656. /* U3D_PHYD_MON4 */
  1657. #define E60802_RGS_SSUSB_RX_LSLOCK_CNT (0xf<<24) /* 27:24 */
  1658. #define E60802_RGS_SSUSB_SCP_DETCNT (0xff<<16) /* 23:16 */
  1659. #define E60802_RGS_SSUSB_TSEQ_DETCNT (0xffff<<0) /* 15:0 */
  1660. /* U3D_PHYD_MON5 */
  1661. #define E60802_RGS_SSUSB_EBUFMSG (0xffff<<16) /* 31:16 */
  1662. #define E60802_RGS_SSUSB_BERT_LOCK (0x1<<15) /* 15:15 */
  1663. #define E60802_RGS_SSUSB_SCP_DET (0x1<<14) /* 14:14 */
  1664. #define E60802_RGS_SSUSB_TSEQ_DET (0x1<<13) /* 13:13 */
  1665. #define E60802_RGS_SSUSB_EBUF_UDF (0x1<<12) /* 12:12 */
  1666. #define E60802_RGS_SSUSB_EBUF_OVF (0x1<<11) /* 11:11 */
  1667. #define E60802_RGS_SSUSB_PRBS_PASSTH (0x1<<10) /* 10:10 */
  1668. #define E60802_RGS_SSUSB_PRBS_PASS (0x1<<9) /* 9:9 */
  1669. #define E60802_RGS_SSUSB_PRBS_LOCK (0x1<<8) /* 8:8 */
  1670. #define E60802_RGS_SSUSB_T2RLB_ERR (0x1<<6) /* 6:6 */
  1671. #define E60802_RGS_SSUSB_T2RLB_PASSTH (0x1<<5) /* 5:5 */
  1672. #define E60802_RGS_SSUSB_T2RLB_PASS (0x1<<4) /* 4:4 */
  1673. #define E60802_RGS_SSUSB_T2RLB_LOCK (0x1<<3) /* 3:3 */
  1674. #define E60802_RGS_SSUSB_RX_IMPCAL_DONE (0x1<<2) /* 2:2 */
  1675. #define E60802_RGS_SSUSB_TX_IMPCAL_DONE (0x1<<1) /* 1:1 */
  1676. #define E60802_RGS_SSUSB_RXDETECTED (0x1<<0) /* 0:0 */
  1677. /* U3D_PHYD_MON6 */
  1678. #define E60802_RGS_SSUSB_SIGCAL_DONE (0x1<<30) /* 30:30 */
  1679. #define E60802_RGS_SSUSB_SIGCAL_CAL_OUT (0x1<<29) /* 29:29 */
  1680. #define E60802_RGS_SSUSB_SIGCAL_OFFSET (0x1f<<24) /* 28:24 */
  1681. #define E60802_RGS_SSUSB_RX_IMP_SEL (0x1f<<16) /* 20:16 */
  1682. #define E60802_RGS_SSUSB_TX_IMP_SEL (0x1f<<8) /* 12:8 */
  1683. #define E60802_RGS_SSUSB_TFIFO_MSG (0xf<<4) /* 7:4 */
  1684. #define E60802_RGS_SSUSB_RFIFO_MSG (0xf<<0) /* 3:0 */
  1685. /* U3D_PHYD_MON7 */
  1686. #define E60802_RGS_SSUSB_FT_OUT (0xff<<8) /* 15:8 */
  1687. #define E60802_RGS_SSUSB_PRB_OUT (0xff<<0) /* 7:0 */
  1688. /* U3D_PHYA_RX_MON0 */
  1689. #define E60802_RGS_SSUSB_EQ_DCLEQ (0xf<<24) /* 27:24 */
  1690. #define E60802_RGS_SSUSB_EQ_DCD0H (0x7f<<16) /* 22:16 */
  1691. #define E60802_RGS_SSUSB_EQ_DCD0L (0x7f<<8) /* 14:8 */
  1692. #define E60802_RGS_SSUSB_EQ_DCD1H (0x7f<<0) /* 6:0 */
  1693. /* U3D_PHYA_RX_MON1 */
  1694. #define E60802_RGS_SSUSB_EQ_DCD1L (0x7f<<24) /* 30:24 */
  1695. #define E60802_RGS_SSUSB_EQ_DCE0 (0x7f<<16) /* 22:16 */
  1696. #define E60802_RGS_SSUSB_EQ_DCE1 (0x7f<<8) /* 14:8 */
  1697. #define E60802_RGS_SSUSB_EQ_DCHHL (0x7f<<0) /* 6:0 */
  1698. /* U3D_PHYA_RX_MON2 */
  1699. #define E60802_RGS_SSUSB_EQ_LEQ_STOP (0x1<<31) /* 31:31 */
  1700. #define E60802_RGS_SSUSB_EQ_DCLHL (0x7f<<24) /* 30:24 */
  1701. #define E60802_RGS_SSUSB_EQ_STATUS (0xff<<16) /* 23:16 */
  1702. #define E60802_RGS_SSUSB_EQ_DCEYE0 (0x7f<<8) /* 14:8 */
  1703. #define E60802_RGS_SSUSB_EQ_DCEYE1 (0x7f<<0) /* 6:0 */
  1704. /* U3D_PHYA_RX_MON3 */
  1705. #define E60802_RGS_SSUSB_EQ_EYE_MONITOR_ERRCNT_0 (0xfffff<<0) /* 19:0 */
  1706. /* U3D_PHYA_RX_MON4 */
  1707. #define E60802_RGS_SSUSB_EQ_EYE_MONITOR_ERRCNT_1 (0xfffff<<0) /* 19:0 */
  1708. /* U3D_PHYA_RX_MON5 */
  1709. #define E60802_RGS_SSUSB_EQ_DCLEQOS (0x1f<<8) /* 12:8 */
  1710. #define E60802_RGS_SSUSB_EQ_EYE_CNT_RDY (0x1<<7) /* 7:7 */
  1711. #define E60802_RGS_SSUSB_EQ_PILPO (0x7f<<0) /* 6:0 */
  1712. /* U3D_PHYD_CPPAT2 */
  1713. #define E60802_RG_SSUSB_CPPAT_OUT_H_TMP2 (0xf<<16) /* 19:16 */
  1714. #define E60802_RG_SSUSB_CPPAT_OUT_H_TMP1 (0xff<<8) /* 15:8 */
  1715. #define E60802_RG_SSUSB_CPPAT_OUT_H_TMP0 (0xff<<0) /* 7:0 */
  1716. /* U3D_EQ_EYE3 */
  1717. #define E60802_RG_SSUSB_EQ_LEQ_SHIFT (0x7<<24) /* 26:24 */
  1718. #define E60802_RG_SSUSB_EQ_EYE_CNT (0xfffff<<0) /* 19:0 */
  1719. /* U3D_KBAND_OUT */
  1720. #define E60802_RGS_SSUSB_CDR_BAND_5G (0xff<<24) /* 31:24 */
  1721. #define E60802_RGS_SSUSB_CDR_BAND_2P5G (0xff<<16) /* 23:16 */
  1722. #define E60802_RGS_SSUSB_PLL_BAND_5G (0xff<<8) /* 15:8 */
  1723. #define E60802_RGS_SSUSB_PLL_BAND_2P5G (0xff<<0) /* 7:0 */
  1724. /* U3D_KBAND_OUT1 */
  1725. #define E60802_RGS_SSUSB_CDR_VCOCAL_FAIL (0x1<<24) /* 24:24 */
  1726. #define E60802_RGS_SSUSB_CDR_VCOCAL_STATE (0xff<<16) /* 23:16 */
  1727. #define E60802_RGS_SSUSB_PLL_VCOCAL_FAIL (0x1<<8) /* 8:8 */
  1728. #define E60802_RGS_SSUSB_PLL_VCOCAL_STATE (0xff<<0) /* 7:0 */
  1729. /* OFFSET */
  1730. /* U3D_PHYD_MIX0 */
  1731. #define E60802_RG_SSUSB_P_P3_TX_NG_OFST (31)
  1732. #define E60802_RG_SSUSB_TSEQ_EN_OFST (30)
  1733. #define E60802_RG_SSUSB_TSEQ_POLEN_OFST (29)
  1734. #define E60802_RG_SSUSB_TSEQ_POL_OFST (28)
  1735. #define E60802_RG_SSUSB_P_P3_PCLK_NG_OFST (27)
  1736. #define E60802_RG_SSUSB_TSEQ_TH_OFST (24)
  1737. #define E60802_RG_SSUSB_PRBS_BERTH_OFST (16)
  1738. #define E60802_RG_SSUSB_DISABLE_PHY_U2_ON_OFST (15)
  1739. #define E60802_RG_SSUSB_DISABLE_PHY_U2_OFF_OFST (14)
  1740. #define E60802_RG_SSUSB_PRBS_EN_OFST (13)
  1741. #define E60802_RG_SSUSB_BPSLOCK_OFST (12)
  1742. #define E60802_RG_SSUSB_RTCOMCNT_OFST (8)
  1743. #define E60802_RG_SSUSB_COMCNT_OFST (4)
  1744. #define E60802_RG_SSUSB_PRBSEL_CALIB_OFST (0)
  1745. /* U3D_PHYD_MIX1 */
  1746. #define E60802_RG_SSUSB_SLEEP_EN_OFST (31)
  1747. #define E60802_RG_SSUSB_PRBSEL_PCS_OFST (28)
  1748. #define E60802_RG_SSUSB_TXLFPS_PRD_OFST (24)
  1749. #define E60802_RG_SSUSB_P_RX_P0S_CK_OFST (23)
  1750. #define E60802_RG_SSUSB_P_TX_P0S_CK_OFST (22)
  1751. #define E60802_RG_SSUSB_PDNCTL_OFST (16)
  1752. #define E60802_RG_SSUSB_TX_DRV_EN_OFST (15)
  1753. #define E60802_RG_SSUSB_TX_DRV_SEL_OFST (14)
  1754. #define E60802_RG_SSUSB_TX_DRV_DLY_OFST (8)
  1755. #define E60802_RG_SSUSB_BERT_EN_OFST (7)
  1756. #define E60802_RG_SSUSB_SCP_TH_OFST (4)
  1757. #define E60802_RG_SSUSB_SCP_EN_OFST (3)
  1758. #define E60802_RG_SSUSB_RXANSIDEC_TEST_OFST (0)
  1759. /* U3D_PHYD_LFPS0 */
  1760. #define E60802_RG_SSUSB_LFPS_PWD_OFST (30)
  1761. #define E60802_RG_SSUSB_FORCE_LFPS_PWD_OFST (29)
  1762. #define E60802_RG_SSUSB_RXLFPS_OVF_OFST (24)
  1763. #define E60802_RG_SSUSB_P3_ENTRY_SEL_OFST (23)
  1764. #define E60802_RG_SSUSB_P3_ENTRY_OFST (22)
  1765. #define E60802_RG_SSUSB_RXLFPS_CDRSEL_OFST (20)
  1766. #define E60802_RG_SSUSB_RXLFPS_CDRTH_OFST (16)
  1767. #define E60802_RG_SSUSB_LOCK5G_BLOCK_OFST (15)
  1768. #define E60802_RG_SSUSB_TFIFO_EXT_D_SEL_OFST (14)
  1769. #define E60802_RG_SSUSB_TFIFO_NO_EXTEND_OFST (13)
  1770. #define E60802_RG_SSUSB_RXLFPS_LOB_OFST (8)
  1771. #define E60802_RG_SSUSB_TXLFPS_EN_OFST (7)
  1772. #define E60802_RG_SSUSB_TXLFPS_SEL_OFST (6)
  1773. #define E60802_RG_SSUSB_RXLFPS_CDRLOCK_OFST (5)
  1774. #define E60802_RG_SSUSB_RXLFPS_UPB_OFST (0)
  1775. /* U3D_PHYD_LFPS1 */
  1776. #define E60802_RG_SSUSB_RX_IMP_BIAS_OFST (28)
  1777. #define E60802_RG_SSUSB_TX_IMP_BIAS_OFST (24)
  1778. #define E60802_RG_SSUSB_FWAKE_TH_OFST (16)
  1779. #define E60802_RG_SSUSB_P1_ENTRY_SEL_OFST (14)
  1780. #define E60802_RG_SSUSB_P1_ENTRY_OFST (13)
  1781. #define E60802_RG_SSUSB_RXLFPS_UDF_OFST (8)
  1782. #define E60802_RG_SSUSB_RXLFPS_P0IDLETH_OFST (0)
  1783. /* U3D_PHYD_IMPCAL0 */
  1784. #define E60802_RG_SSUSB_FORCE_TX_IMPSEL_OFST (31)
  1785. #define E60802_RG_SSUSB_TX_IMPCAL_EN_OFST (30)
  1786. #define E60802_RG_SSUSB_FORCE_TX_IMPCAL_EN_OFST (29)
  1787. #define E60802_RG_SSUSB_TX_IMPSEL_OFST (24)
  1788. #define E60802_RG_SSUSB_TX_IMPCAL_CALCYC_OFST (16)
  1789. #define E60802_RG_SSUSB_TX_IMPCAL_STBCYC_OFST (10)
  1790. #define E60802_RG_SSUSB_TX_IMPCAL_CYCCNT_OFST (0)
  1791. /* U3D_PHYD_IMPCAL1 */
  1792. #define E60802_RG_SSUSB_FORCE_RX_IMPSEL_OFST (31)
  1793. #define E60802_RG_SSUSB_RX_IMPCAL_EN_OFST (30)
  1794. #define E60802_RG_SSUSB_FORCE_RX_IMPCAL_EN_OFST (29)
  1795. #define E60802_RG_SSUSB_RX_IMPSEL_OFST (24)
  1796. #define E60802_RG_SSUSB_RX_IMPCAL_CALCYC_OFST (16)
  1797. #define E60802_RG_SSUSB_RX_IMPCAL_STBCYC_OFST (10)
  1798. #define E60802_RG_SSUSB_RX_IMPCAL_CYCCNT_OFST (0)
  1799. /* U3D_PHYD_TXPLL0 */
  1800. #define E60802_RG_SSUSB_TXPLL_DDSEN_CYC_OFST (27)
  1801. #define E60802_RG_SSUSB_TXPLL_ON_OFST (26)
  1802. #define E60802_RG_SSUSB_FORCE_TXPLLON_OFST (25)
  1803. #define E60802_RG_SSUSB_TXPLL_STBCYC_OFST (16)
  1804. #define E60802_RG_SSUSB_TXPLL_NCPOCHG_CYC_OFST (12)
  1805. #define E60802_RG_SSUSB_TXPLL_NCPOEN_CYC_OFST (10)
  1806. #define E60802_RG_SSUSB_TXPLL_DDSRSTB_CYC_OFST (0)
  1807. /* U3D_PHYD_TXPLL1 */
  1808. #define E60802_RG_SSUSB_PLL_NCPO_EN_OFST (31)
  1809. #define E60802_RG_SSUSB_PLL_FIFO_START_MAN_OFST (30)
  1810. #define E60802_RG_SSUSB_PLL_NCPO_CHG_OFST (28)
  1811. #define E60802_RG_SSUSB_PLL_DDS_RSTB_OFST (27)
  1812. #define E60802_RG_SSUSB_PLL_DDS_PWDB_OFST (26)
  1813. #define E60802_RG_SSUSB_PLL_DDSEN_OFST (25)
  1814. #define E60802_RG_SSUSB_PLL_AUTOK_VCO_OFST (24)
  1815. #define E60802_RG_SSUSB_PLL_PWD_OFST (23)
  1816. #define E60802_RG_SSUSB_RX_AFE_PWD_OFST (22)
  1817. #define E60802_RG_SSUSB_PLL_TCADJ_OFST (16)
  1818. #define E60802_RG_SSUSB_FORCE_CDR_TCADJ_OFST (15)
  1819. #define E60802_RG_SSUSB_FORCE_CDR_AUTOK_VCO_OFST (14)
  1820. #define E60802_RG_SSUSB_FORCE_CDR_PWD_OFST (13)
  1821. #define E60802_RG_SSUSB_FORCE_PLL_NCPO_EN_OFST (12)
  1822. #define E60802_RG_SSUSB_FORCE_PLL_FIFO_START_MAN_OFST (11)
  1823. #define E60802_RG_SSUSB_FORCE_PLL_NCPO_CHG_OFST (9)
  1824. #define E60802_RG_SSUSB_FORCE_PLL_DDS_RSTB_OFST (8)
  1825. #define E60802_RG_SSUSB_FORCE_PLL_DDS_PWDB_OFST (7)
  1826. #define E60802_RG_SSUSB_FORCE_PLL_DDSEN_OFST (6)
  1827. #define E60802_RG_SSUSB_FORCE_PLL_TCADJ_OFST (5)
  1828. #define E60802_RG_SSUSB_FORCE_PLL_AUTOK_VCO_OFST (4)
  1829. #define E60802_RG_SSUSB_FORCE_PLL_PWD_OFST (3)
  1830. #define E60802_RG_SSUSB_FLT_1_DISPERR_B_OFST (2)
  1831. /* U3D_PHYD_TXPLL2 */
  1832. #define E60802_RG_SSUSB_TX_LFPS_EN_OFST (31)
  1833. #define E60802_RG_SSUSB_FORCE_TX_LFPS_EN_OFST (30)
  1834. #define E60802_RG_SSUSB_TX_LFPS_OFST (29)
  1835. #define E60802_RG_SSUSB_FORCE_TX_LFPS_OFST (28)
  1836. #define E60802_RG_SSUSB_RXPLL_STB_OFST (27)
  1837. #define E60802_RG_SSUSB_TXPLL_STB_OFST (26)
  1838. #define E60802_RG_SSUSB_FORCE_RXPLL_STB_OFST (25)
  1839. #define E60802_RG_SSUSB_FORCE_TXPLL_STB_OFST (24)
  1840. #define E60802_RG_SSUSB_RXPLL_REFCKSEL_OFST (16)
  1841. #define E60802_RG_SSUSB_RXPLL_STBMODE_OFST (11)
  1842. #define E60802_RG_SSUSB_RXPLL_ON_OFST (10)
  1843. #define E60802_RG_SSUSB_FORCE_RXPLLON_OFST (9)
  1844. #define E60802_RG_SSUSB_FORCE_RX_AFE_PWD_OFST (8)
  1845. #define E60802_RG_SSUSB_CDR_AUTOK_VCO_OFST (7)
  1846. #define E60802_RG_SSUSB_CDR_PWD_OFST (6)
  1847. #define E60802_RG_SSUSB_CDR_TCADJ_OFST (0)
  1848. /* U3D_PHYD_FL0 */
  1849. #define E60802_RG_SSUSB_RX_FL_TARGET_OFST (16)
  1850. #define E60802_RG_SSUSB_RX_FL_CYCLECNT_OFST (0)
  1851. /* U3D_PHYD_MIX2 */
  1852. #define E60802_RG_SSUSB_RX_EQ_RST_OFST (31)
  1853. #define E60802_RG_SSUSB_RX_EQ_RST_SEL_OFST (30)
  1854. #define E60802_RG_SSUSB_RXVAL_RST_OFST (29)
  1855. #define E60802_RG_SSUSB_RXVAL_CNT_OFST (24)
  1856. #define E60802_RG_SSUSB_CDROS_EN_OFST (18)
  1857. #define E60802_RG_SSUSB_CDR_LCKOP_OFST (16)
  1858. #define E60802_RG_SSUSB_RX_FL_LOCKTH_OFST (8)
  1859. #define E60802_RG_SSUSB_RX_FL_OFFSET_OFST (0)
  1860. /* U3D_PHYD_RX0 */
  1861. #define E60802_RG_SSUSB_T2RLB_BERTH_OFST (24)
  1862. #define E60802_RG_SSUSB_T2RLB_PAT_OFST (16)
  1863. #define E60802_RG_SSUSB_T2RLB_EN_OFST (15)
  1864. #define E60802_RG_SSUSB_T2RLB_BPSCRAMB_OFST (14)
  1865. #define E60802_RG_SSUSB_T2RLB_SERIAL_OFST (13)
  1866. #define E60802_RG_SSUSB_T2RLB_MODE_OFST (11)
  1867. #define E60802_RG_SSUSB_RX_SAOSC_EN_OFST (10)
  1868. #define E60802_RG_SSUSB_RX_SAOSC_EN_SEL_OFST (9)
  1869. #define E60802_RG_SSUSB_RX_DFE_OPTION_OFST (8)
  1870. #define E60802_RG_SSUSB_RX_DFE_EN_OFST (7)
  1871. #define E60802_RG_SSUSB_RX_DFE_EN_SEL_OFST (6)
  1872. #define E60802_RG_SSUSB_RX_EQ_EN_OFST (5)
  1873. #define E60802_RG_SSUSB_RX_EQ_EN_SEL_OFST (4)
  1874. #define E60802_RG_SSUSB_RX_SAOSC_RST_OFST (3)
  1875. #define E60802_RG_SSUSB_RX_SAOSC_RST_SEL_OFST (2)
  1876. #define E60802_RG_SSUSB_RX_DFE_RST_OFST (1)
  1877. #define E60802_RG_SSUSB_RX_DFE_RST_SEL_OFST (0)
  1878. /* U3D_PHYD_T2RLB */
  1879. #define E60802_RG_SSUSB_EQTRAIN_CH_MODE_OFST (28)
  1880. #define E60802_RG_SSUSB_PRB_OUT_CPPAT_OFST (27)
  1881. #define E60802_RG_SSUSB_BPANSIENC_OFST (26)
  1882. #define E60802_RG_SSUSB_VALID_EN_OFST (25)
  1883. #define E60802_RG_SSUSB_EBUF_SRST_OFST (24)
  1884. #define E60802_RG_SSUSB_K_EMP_OFST (20)
  1885. #define E60802_RG_SSUSB_K_FUL_OFST (16)
  1886. #define E60802_RG_SSUSB_T2RLB_BDATRST_OFST (12)
  1887. #define E60802_RG_SSUSB_P_T2RLB_SKP_EN_OFST (10)
  1888. #define E60802_RG_SSUSB_T2RLB_PATMODE_OFST (8)
  1889. #define E60802_RG_SSUSB_T2RLB_TSEQCNT_OFST (0)
  1890. /* U3D_PHYD_CPPAT */
  1891. #define E60802_RG_SSUSB_CPPAT_PROGRAM_EN_OFST (24)
  1892. #define E60802_RG_SSUSB_CPPAT_TOZ_OFST (21)
  1893. #define E60802_RG_SSUSB_CPPAT_PRBS_EN_OFST (20)
  1894. #define E60802_RG_SSUSB_CPPAT_OUT_TMP2_OFST (16)
  1895. #define E60802_RG_SSUSB_CPPAT_OUT_TMP1_OFST (8)
  1896. #define E60802_RG_SSUSB_CPPAT_OUT_TMP0_OFST (0)
  1897. /* U3D_PHYD_MIX3 */
  1898. #define E60802_RG_SSUSB_CDR_TCADJ_MINUS_OFST (31)
  1899. #define E60802_RG_SSUSB_P_CDROS_EN_OFST (30)
  1900. #define E60802_RG_SSUSB_P_P2_TX_DRV_DIS_OFST (28)
  1901. #define E60802_RG_SSUSB_CDR_TCADJ_OFFSET_OFST (24)
  1902. #define E60802_RG_SSUSB_PLL_TCADJ_MINUS_OFST (23)
  1903. #define E60802_RG_SSUSB_FORCE_PLL_BIAS_LPF_EN_OFST (20)
  1904. #define E60802_RG_SSUSB_PLL_BIAS_LPF_EN_OFST (19)
  1905. #define E60802_RG_SSUSB_PLL_TCADJ_OFFSET_OFST (16)
  1906. #define E60802_RG_SSUSB_FORCE_PLL_SSCEN_OFST (15)
  1907. #define E60802_RG_SSUSB_PLL_SSCEN_OFST (14)
  1908. #define E60802_RG_SSUSB_FORCE_CDR_PI_PWD_OFST (13)
  1909. #define E60802_RG_SSUSB_CDR_PI_PWD_OFST (12)
  1910. #define E60802_RG_SSUSB_CDR_PI_MODE_OFST (11)
  1911. #define E60802_RG_SSUSB_TXPLL_SSCEN_CYC_OFST (0)
  1912. /* U3D_PHYD_EBUFCTL */
  1913. #define E60802_RG_SSUSB_EBUFCTL_OFST (0)
  1914. /* U3D_PHYD_PIPE0 */
  1915. #define E60802_RG_SSUSB_RXTERMINATION_OFST (30)
  1916. #define E60802_RG_SSUSB_RXEQTRAINING_OFST (29)
  1917. #define E60802_RG_SSUSB_RXPOLARITY_OFST (28)
  1918. #define E60802_RG_SSUSB_TXDEEMPH_OFST (26)
  1919. #define E60802_RG_SSUSB_POWERDOWN_OFST (24)
  1920. #define E60802_RG_SSUSB_TXONESZEROS_OFST (23)
  1921. #define E60802_RG_SSUSB_TXELECIDLE_OFST (22)
  1922. #define E60802_RG_SSUSB_TXDETECTRX_OFST (21)
  1923. #define E60802_RG_SSUSB_PIPE_SEL_OFST (20)
  1924. #define E60802_RG_SSUSB_TXDATAK_OFST (16)
  1925. #define E60802_RG_SSUSB_CDR_STABLE_SEL_OFST (15)
  1926. #define E60802_RG_SSUSB_CDR_STABLE_OFST (14)
  1927. #define E60802_RG_SSUSB_CDR_RSTB_SEL_OFST (13)
  1928. #define E60802_RG_SSUSB_CDR_RSTB_OFST (12)
  1929. #define E60802_RG_SSUSB_FRC_PIPE_POWERDOWN_OFST (11)
  1930. #define E60802_RG_SSUSB_P_TXBCN_DIS_OFST (6)
  1931. #define E60802_RG_SSUSB_P_ERROR_SEL_OFST (4)
  1932. #define E60802_RG_SSUSB_TXMARGIN_OFST (1)
  1933. #define E60802_RG_SSUSB_TXCOMPLIANCE_OFST (0)
  1934. /* U3D_PHYD_PIPE1 */
  1935. #define E60802_RG_SSUSB_TXDATA_OFST (0)
  1936. /* U3D_PHYD_MIX4 */
  1937. #define E60802_RG_SSUSB_CDROS_CNT_OFST (24)
  1938. #define E60802_RG_SSUSB_T2RLB_BER_EN_OFST (16)
  1939. #define E60802_RG_SSUSB_T2RLB_BER_RATE_OFST (0)
  1940. /* U3D_PHYD_CKGEN0 */
  1941. #define E60802_RG_SSUSB_RFIFO_IMPLAT_OFST (27)
  1942. #define E60802_RG_SSUSB_TFIFO_PSEL_OFST (24)
  1943. #define E60802_RG_SSUSB_CKGEN_PSEL_OFST (8)
  1944. #define E60802_RG_SSUSB_RXCK_INV_OFST (0)
  1945. /* U3D_PHYD_MIX5 */
  1946. #define E60802_RG_SSUSB_PRB_SEL_OFST (16)
  1947. #define E60802_RG_SSUSB_RXPLL_STBCYC_OFST (0)
  1948. /* U3D_PHYD_RESERVED */
  1949. #define E60802_RG_SSUSB_PHYD_RESERVE_OFST (0)
  1950. /* U3D_PHYD_CDR0 */
  1951. #define E60802_RG_SSUSB_CDR_BIC_LTR_OFST (28)
  1952. #define E60802_RG_SSUSB_CDR_BIC_LTD0_OFST (24)
  1953. #define E60802_RG_SSUSB_CDR_BC_LTD1_OFST (16)
  1954. #define E60802_RG_SSUSB_CDR_BC_LTR_OFST (8)
  1955. #define E60802_RG_SSUSB_CDR_BC_LTD0_OFST (0)
  1956. /* U3D_PHYD_CDR1 */
  1957. #define E60802_RG_SSUSB_CDR_BIR_LTD1_OFST (24)
  1958. #define E60802_RG_SSUSB_CDR_BIR_LTR_OFST (16)
  1959. #define E60802_RG_SSUSB_CDR_BIR_LTD0_OFST (8)
  1960. #define E60802_RG_SSUSB_CDR_BW_SEL_OFST (6)
  1961. #define E60802_RG_SSUSB_CDR_BIC_LTD1_OFST (0)
  1962. /* U3D_PHYD_PLL_0 */
  1963. #define E60802_RG_SSUSB_FORCE_CDR_BAND_5G_OFST (28)
  1964. #define E60802_RG_SSUSB_FORCE_CDR_BAND_2P5G_OFST (27)
  1965. #define E60802_RG_SSUSB_FORCE_PLL_BAND_5G_OFST (26)
  1966. #define E60802_RG_SSUSB_FORCE_PLL_BAND_2P5G_OFST (25)
  1967. #define E60802_RG_SSUSB_P_EQ_T_SEL_OFST (15)
  1968. #define E60802_RG_SSUSB_PLL_ISO_EN_CYC_OFST (5)
  1969. #define E60802_RG_SSUSB_PLLBAND_RECAL_OFST (4)
  1970. #define E60802_RG_SSUSB_PLL_DDS_ISO_EN_OFST (3)
  1971. #define E60802_RG_SSUSB_FORCE_PLL_DDS_ISO_EN_OFST (2)
  1972. #define E60802_RG_SSUSB_PLL_DDS_PWR_ON_OFST (1)
  1973. #define E60802_RG_SSUSB_FORCE_PLL_DDS_PWR_ON_OFST (0)
  1974. /* U3D_PHYD_PLL_1 */
  1975. #define E60802_RG_SSUSB_CDR_BAND_5G_OFST (24)
  1976. #define E60802_RG_SSUSB_CDR_BAND_2P5G_OFST (16)
  1977. #define E60802_RG_SSUSB_PLL_BAND_5G_OFST (8)
  1978. #define E60802_RG_SSUSB_PLL_BAND_2P5G_OFST (0)
  1979. /* U3D_PHYD_BCN_DET_1 */
  1980. #define E60802_RG_SSUSB_P_BCN_OBS_PRD_OFST (16)
  1981. #define E60802_RG_SSUSB_U_BCN_OBS_PRD_OFST (0)
  1982. /* U3D_PHYD_BCN_DET_2 */
  1983. #define E60802_RG_SSUSB_P_BCN_OBS_SEL_OFST (16)
  1984. #define E60802_RG_SSUSB_BCN_DET_DIS_OFST (12)
  1985. #define E60802_RG_SSUSB_U_BCN_OBS_SEL_OFST (0)
  1986. /* U3D_EQ0 */
  1987. #define E60802_RG_SSUSB_EQ_DLHL_LFI_OFST (24)
  1988. #define E60802_RG_SSUSB_EQ_DHHL_LFI_OFST (16)
  1989. #define E60802_RG_SSUSB_EQ_DD0HOS_LFI_OFST (8)
  1990. #define E60802_RG_SSUSB_EQ_DD0LOS_LFI_OFST (0)
  1991. /* U3D_EQ1 */
  1992. #define E60802_RG_SSUSB_EQ_DD1HOS_LFI_OFST (24)
  1993. #define E60802_RG_SSUSB_EQ_DD1LOS_LFI_OFST (16)
  1994. #define E60802_RG_SSUSB_EQ_DE0OS_LFI_OFST (8)
  1995. #define E60802_RG_SSUSB_EQ_DE1OS_LFI_OFST (0)
  1996. /* U3D_EQ2 */
  1997. #define E60802_RG_SSUSB_EQ_DLHLOS_LFI_OFST (24)
  1998. #define E60802_RG_SSUSB_EQ_DHHLOS_LFI_OFST (16)
  1999. #define E60802_RG_SSUSB_EQ_STOPTIME_OFST (14)
  2000. #define E60802_RG_SSUSB_EQ_DHHL_LF_SEL_OFST (11)
  2001. #define E60802_RG_SSUSB_EQ_DSAOS_LF_SEL_OFST (8)
  2002. #define E60802_RG_SSUSB_EQ_STARTTIME_OFST (6)
  2003. #define E60802_RG_SSUSB_EQ_DLEQ_LF_SEL_OFST (3)
  2004. #define E60802_RG_SSUSB_EQ_DLHL_LF_SEL_OFST (0)
  2005. /* U3D_EQ3 */
  2006. #define E60802_RG_SSUSB_EQ_DLEQ_LFI_GEN2_OFST (28)
  2007. #define E60802_RG_SSUSB_EQ_DLEQ_LFI_GEN1_OFST (24)
  2008. #define E60802_RG_SSUSB_EQ_DEYE0OS_LFI_OFST (16)
  2009. #define E60802_RG_SSUSB_EQ_DEYE1OS_LFI_OFST (8)
  2010. #define E60802_RG_SSUSB_EQ_TRI_DET_EN_OFST (7)
  2011. #define E60802_RG_SSUSB_EQ_TRI_DET_TH_OFST (0)
  2012. /* U3D_EQ_EYE0 */
  2013. #define E60802_RG_SSUSB_EQ_EYE_XOFFSET_OFST (25)
  2014. #define E60802_RG_SSUSB_EQ_EYE_MON_EN_OFST (24)
  2015. #define E60802_RG_SSUSB_EQ_EYE0_Y_OFST (16)
  2016. #define E60802_RG_SSUSB_EQ_EYE1_Y_OFST (8)
  2017. #define E60802_RG_SSUSB_EQ_PILPO_ROUT_OFST (7)
  2018. #define E60802_RG_SSUSB_EQ_PI_KPGAIN_OFST (4)
  2019. #define E60802_RG_SSUSB_EQ_EYE_CNT_EN_OFST (3)
  2020. /* U3D_EQ_EYE1 */
  2021. #define E60802_RG_SSUSB_EQ_SIGDET_OFST (24)
  2022. #define E60802_RG_SSUSB_EQ_EYE_MASK_OFST (7)
  2023. /* U3D_EQ_EYE2 */
  2024. #define E60802_RG_SSUSB_EQ_RX500M_CK_SEL_OFST (31)
  2025. #define E60802_RG_SSUSB_EQ_SD_CNT1_OFST (24)
  2026. #define E60802_RG_SSUSB_EQ_ISIFLAG_SEL_OFST (22)
  2027. #define E60802_RG_SSUSB_EQ_SD_CNT0_OFST (16)
  2028. /* U3D_EQ_DFE0 */
  2029. #define E60802_RG_SSUSB_EQ_LEQMAX_OFST (28)
  2030. #define E60802_RG_SSUSB_EQ_DFEX_EN_OFST (27)
  2031. #define E60802_RG_SSUSB_EQ_DFEX_LF_SEL_OFST (24)
  2032. #define E60802_RG_SSUSB_EQ_CHK_EYE_H_OFST (23)
  2033. #define E60802_RG_SSUSB_EQ_PIEYE_INI_OFST (16)
  2034. #define E60802_RG_SSUSB_EQ_PI90_INI_OFST (8)
  2035. #define E60802_RG_SSUSB_EQ_PI0_INI_OFST (0)
  2036. /* U3D_EQ_DFE1 */
  2037. #define E60802_RG_SSUSB_EQ_REV_OFST (16)
  2038. #define E60802_RG_SSUSB_EQ_DFEYEN_DUR_OFST (12)
  2039. #define E60802_RG_SSUSB_EQ_DFEXEN_DUR_OFST (8)
  2040. #define E60802_RG_SSUSB_EQ_DFEX_RST_OFST (7)
  2041. #define E60802_RG_SSUSB_EQ_GATED_RXD_B_OFST (6)
  2042. #define E60802_RG_SSUSB_EQ_PI90CK_SEL_OFST (4)
  2043. #define E60802_RG_SSUSB_EQ_DFEX_DIS_OFST (2)
  2044. #define E60802_RG_SSUSB_EQ_DFEYEN_STOP_DIS_OFST (1)
  2045. #define E60802_RG_SSUSB_EQ_DFEXEN_SEL_OFST (0)
  2046. /* U3D_EQ_DFE2 */
  2047. #define E60802_RG_SSUSB_EQ_MON_SEL_OFST (24)
  2048. #define E60802_RG_SSUSB_EQ_LEQOSC_DLYCNT_OFST (16)
  2049. #define E60802_RG_SSUSB_EQ_DLEQOS_LFI_OFST (8)
  2050. #define E60802_RG_SSUSB_EQ_DFE_TOG_OFST (2)
  2051. #define E60802_RG_SSUSB_EQ_LEQ_STOP_TO_OFST (0)
  2052. /* U3D_EQ_DFE3 */
  2053. #define E60802_RG_SSUSB_EQ_RESERVED_OFST (0)
  2054. /* U3D_PHYD_MON0 */
  2055. #define E60802_RGS_SSUSB_BERT_BERC_OFST (16)
  2056. #define E60802_RGS_SSUSB_LFPS_OFST (12)
  2057. #define E60802_RGS_SSUSB_TRAINDEC_OFST (8)
  2058. #define E60802_RGS_SSUSB_SCP_PAT_OFST (0)
  2059. /* U3D_PHYD_MON1 */
  2060. #define E60802_RGS_SSUSB_RX_FL_OUT_OFST (0)
  2061. /* U3D_PHYD_MON2 */
  2062. #define E60802_RGS_SSUSB_T2RLB_ERRCNT_OFST (16)
  2063. #define E60802_RGS_SSUSB_RETRACK_OFST (12)
  2064. #define E60802_RGS_SSUSB_RXPLL_LOCK_OFST (10)
  2065. #define E60802_RGS_SSUSB_CDR_VCOCAL_CPLT_D_OFST (9)
  2066. #define E60802_RGS_SSUSB_PLL_VCOCAL_CPLT_D_OFST (8)
  2067. #define E60802_RGS_SSUSB_PDNCTL_OFST (0)
  2068. /* U3D_PHYD_MON3 */
  2069. #define E60802_RGS_SSUSB_TSEQ_ERRCNT_OFST (16)
  2070. #define E60802_RGS_SSUSB_PRBS_ERRCNT_OFST (0)
  2071. /* U3D_PHYD_MON4 */
  2072. #define E60802_RGS_SSUSB_RX_LSLOCK_CNT_OFST (24)
  2073. #define E60802_RGS_SSUSB_SCP_DETCNT_OFST (16)
  2074. #define E60802_RGS_SSUSB_TSEQ_DETCNT_OFST (0)
  2075. /* U3D_PHYD_MON5 */
  2076. #define E60802_RGS_SSUSB_EBUFMSG_OFST (16)
  2077. #define E60802_RGS_SSUSB_BERT_LOCK_OFST (15)
  2078. #define E60802_RGS_SSUSB_SCP_DET_OFST (14)
  2079. #define E60802_RGS_SSUSB_TSEQ_DET_OFST (13)
  2080. #define E60802_RGS_SSUSB_EBUF_UDF_OFST (12)
  2081. #define E60802_RGS_SSUSB_EBUF_OVF_OFST (11)
  2082. #define E60802_RGS_SSUSB_PRBS_PASSTH_OFST (10)
  2083. #define E60802_RGS_SSUSB_PRBS_PASS_OFST (9)
  2084. #define E60802_RGS_SSUSB_PRBS_LOCK_OFST (8)
  2085. #define E60802_RGS_SSUSB_T2RLB_ERR_OFST (6)
  2086. #define E60802_RGS_SSUSB_T2RLB_PASSTH_OFST (5)
  2087. #define E60802_RGS_SSUSB_T2RLB_PASS_OFST (4)
  2088. #define E60802_RGS_SSUSB_T2RLB_LOCK_OFST (3)
  2089. #define E60802_RGS_SSUSB_RX_IMPCAL_DONE_OFST (2)
  2090. #define E60802_RGS_SSUSB_TX_IMPCAL_DONE_OFST (1)
  2091. #define E60802_RGS_SSUSB_RXDETECTED_OFST (0)
  2092. /* U3D_PHYD_MON6 */
  2093. #define E60802_RGS_SSUSB_SIGCAL_DONE_OFST (30)
  2094. #define E60802_RGS_SSUSB_SIGCAL_CAL_OUT_OFST (29)
  2095. #define E60802_RGS_SSUSB_SIGCAL_OFFSET_OFST (24)
  2096. #define E60802_RGS_SSUSB_RX_IMP_SEL_OFST (16)
  2097. #define E60802_RGS_SSUSB_TX_IMP_SEL_OFST (8)
  2098. #define E60802_RGS_SSUSB_TFIFO_MSG_OFST (4)
  2099. #define E60802_RGS_SSUSB_RFIFO_MSG_OFST (0)
  2100. /* U3D_PHYD_MON7 */
  2101. #define E60802_RGS_SSUSB_FT_OUT_OFST (8)
  2102. #define E60802_RGS_SSUSB_PRB_OUT_OFST (0)
  2103. /* U3D_PHYA_RX_MON0 */
  2104. #define E60802_RGS_SSUSB_EQ_DCLEQ_OFST (24)
  2105. #define E60802_RGS_SSUSB_EQ_DCD0H_OFST (16)
  2106. #define E60802_RGS_SSUSB_EQ_DCD0L_OFST (8)
  2107. #define E60802_RGS_SSUSB_EQ_DCD1H_OFST (0)
  2108. /* U3D_PHYA_RX_MON1 */
  2109. #define E60802_RGS_SSUSB_EQ_DCD1L_OFST (24)
  2110. #define E60802_RGS_SSUSB_EQ_DCE0_OFST (16)
  2111. #define E60802_RGS_SSUSB_EQ_DCE1_OFST (8)
  2112. #define E60802_RGS_SSUSB_EQ_DCHHL_OFST (0)
  2113. /* U3D_PHYA_RX_MON2 */
  2114. #define E60802_RGS_SSUSB_EQ_LEQ_STOP_OFST (31)
  2115. #define E60802_RGS_SSUSB_EQ_DCLHL_OFST (24)
  2116. #define E60802_RGS_SSUSB_EQ_STATUS_OFST (16)
  2117. #define E60802_RGS_SSUSB_EQ_DCEYE0_OFST (8)
  2118. #define E60802_RGS_SSUSB_EQ_DCEYE1_OFST (0)
  2119. /* U3D_PHYA_RX_MON3 */
  2120. #define E60802_RGS_SSUSB_EQ_EYE_MONITOR_ERRCNT_0_OFST (0)
  2121. /* U3D_PHYA_RX_MON4 */
  2122. #define E60802_RGS_SSUSB_EQ_EYE_MONITOR_ERRCNT_1_OFST (0)
  2123. /* U3D_PHYA_RX_MON5 */
  2124. #define E60802_RGS_SSUSB_EQ_DCLEQOS_OFST (8)
  2125. #define E60802_RGS_SSUSB_EQ_EYE_CNT_RDY_OFST (7)
  2126. #define E60802_RGS_SSUSB_EQ_PILPO_OFST (0)
  2127. /* U3D_PHYD_CPPAT2 */
  2128. #define E60802_RG_SSUSB_CPPAT_OUT_H_TMP2_OFST (16)
  2129. #define E60802_RG_SSUSB_CPPAT_OUT_H_TMP1_OFST (8)
  2130. #define E60802_RG_SSUSB_CPPAT_OUT_H_TMP0_OFST (0)
  2131. /* U3D_EQ_EYE3 */
  2132. #define E60802_RG_SSUSB_EQ_LEQ_SHIFT_OFST (24)
  2133. #define E60802_RG_SSUSB_EQ_EYE_CNT_OFST (0)
  2134. /* U3D_KBAND_OUT */
  2135. #define E60802_RGS_SSUSB_CDR_BAND_5G_OFST (24)
  2136. #define E60802_RGS_SSUSB_CDR_BAND_2P5G_OFST (16)
  2137. #define E60802_RGS_SSUSB_PLL_BAND_5G_OFST (8)
  2138. #define E60802_RGS_SSUSB_PLL_BAND_2P5G_OFST (0)
  2139. /* U3D_KBAND_OUT1 */
  2140. #define E60802_RGS_SSUSB_CDR_VCOCAL_FAIL_OFST (24)
  2141. #define E60802_RGS_SSUSB_CDR_VCOCAL_STATE_OFST (16)
  2142. #define E60802_RGS_SSUSB_PLL_VCOCAL_FAIL_OFST (8)
  2143. #define E60802_RGS_SSUSB_PLL_VCOCAL_STATE_OFST (0)
  2144. /* ///////////////////////////////////////////////////////////////////////////// */
  2145. #if 0
  2146. struct u3phyd_bank2_reg_e {
  2147. /* 0x0 */
  2148. PHY_LE32 b2_phyd_top1;
  2149. PHY_LE32 b2_phyd_top2;
  2150. PHY_LE32 b2_phyd_top3;
  2151. PHY_LE32 b2_phyd_top4;
  2152. /* 0x10 */
  2153. PHY_LE32 b2_phyd_top5;
  2154. PHY_LE32 b2_phyd_top6;
  2155. PHY_LE32 b2_phyd_top7;
  2156. PHY_LE32 b2_phyd_p_sigdet1;
  2157. /* 0x20 */
  2158. PHY_LE32 b2_phyd_p_sigdet2;
  2159. PHY_LE32 b2_phyd_p_sigdet_cal1;
  2160. PHY_LE32 b2_phyd_rxdet1;
  2161. PHY_LE32 b2_phyd_rxdet2;
  2162. /* 0x30 */
  2163. PHY_LE32 b2_phyd_misc0;
  2164. PHY_LE32 b2_phyd_misc2;
  2165. PHY_LE32 b2_phyd_misc3;
  2166. PHY_LE32 b2_phyd_l1ss;
  2167. /* 0x40 */
  2168. PHY_LE32 b2_rosc_0;
  2169. PHY_LE32 b2_rosc_1;
  2170. PHY_LE32 b2_rosc_2;
  2171. PHY_LE32 b2_rosc_3;
  2172. /* 0x50 */
  2173. PHY_LE32 b2_rosc_4;
  2174. PHY_LE32 b2_rosc_5;
  2175. PHY_LE32 b2_rosc_6;
  2176. PHY_LE32 b2_rosc_7;
  2177. /* 0x60 */
  2178. PHY_LE32 b2_rosc_8;
  2179. PHY_LE32 b2_rosc_9;
  2180. PHY_LE32 b2_rosc_a;
  2181. PHY_LE32 reserve1;
  2182. /* 0x70~0xd0 */
  2183. PHY_LE32 reserve2[28];
  2184. /* 0xe0 */
  2185. PHY_LE32 phyd_version;
  2186. PHY_LE32 phyd_model;
  2187. };
  2188. #endif
  2189. /* U3D_B2_PHYD_TOP1 */
  2190. #define E60802_RG_SSUSB_PCIE2_K_EMP (0xf<<28) /* 31:28 */
  2191. #define E60802_RG_SSUSB_PCIE2_K_FUL (0xf<<24) /* 27:24 */
  2192. #define E60802_RG_SSUSB_TX_EIDLE_LP_EN (0x1<<17) /* 17:17 */
  2193. #define E60802_RG_SSUSB_FORCE_TX_EIDLE_LP_EN (0x1<<16) /* 16:16 */
  2194. #define E60802_RG_SSUSB_SIGDET_EN (0x1<<15) /* 15:15 */
  2195. #define E60802_RG_SSUSB_FORCE_SIGDET_EN (0x1<<14) /* 14:14 */
  2196. #define E60802_RG_SSUSB_CLKRX_EN (0x1<<13) /* 13:13 */
  2197. #define E60802_RG_SSUSB_FORCE_CLKRX_EN (0x1<<12) /* 12:12 */
  2198. #define E60802_RG_SSUSB_CLKTX_EN (0x1<<11) /* 11:11 */
  2199. #define E60802_RG_SSUSB_FORCE_CLKTX_EN (0x1<<10) /* 10:10 */
  2200. #define E60802_RG_SSUSB_CLK_REQ_N_I (0x1<<9) /* 9:9 */
  2201. #define E60802_RG_SSUSB_FORCE_CLK_REQ_N_I (0x1<<8) /* 8:8 */
  2202. #define E60802_RG_SSUSB_RATE (0x1<<6) /* 6:6 */
  2203. #define E60802_RG_SSUSB_FORCE_RATE (0x1<<5) /* 5:5 */
  2204. #define E60802_RG_SSUSB_PCIE_MODE_SEL (0x1<<4) /* 4:4 */
  2205. #define E60802_RG_SSUSB_FORCE_PCIE_MODE_SEL (0x1<<3) /* 3:3 */
  2206. #define E60802_RG_SSUSB_PHY_MODE (0x3<<1) /* 2:1 */
  2207. #define E60802_RG_SSUSB_FORCE_PHY_MODE (0x1<<0) /* 0:0 */
  2208. /* U3D_B2_PHYD_TOP2 */
  2209. #define E60802_RG_SSUSB_FORCE_IDRV_6DB (0x1<<30) /* 30:30 */
  2210. #define E60802_RG_SSUSB_IDRV_6DB (0x3f<<24) /* 29:24 */
  2211. #define E60802_RG_SSUSB_FORCE_IDEM_3P5DB (0x1<<22) /* 22:22 */
  2212. #define E60802_RG_SSUSB_IDEM_3P5DB (0x3f<<16) /* 21:16 */
  2213. #define E60802_RG_SSUSB_FORCE_IDRV_3P5DB (0x1<<14) /* 14:14 */
  2214. #define E60802_RG_SSUSB_IDRV_3P5DB (0x3f<<8) /* 13:8 */
  2215. #define E60802_RG_SSUSB_FORCE_IDRV_0DB (0x1<<6) /* 6:6 */
  2216. #define E60802_RG_SSUSB_IDRV_0DB (0x3f<<0) /* 5:0 */
  2217. /* U3D_B2_PHYD_TOP3 */
  2218. #define E60802_RG_SSUSB_TX_BIASI (0x7<<25) /* 27:25 */
  2219. #define E60802_RG_SSUSB_FORCE_TX_BIASI_EN (0x1<<24) /* 24:24 */
  2220. #define E60802_RG_SSUSB_TX_BIASI_EN (0x1<<16) /* 16:16 */
  2221. #define E60802_RG_SSUSB_FORCE_TX_BIASI (0x1<<13) /* 13:13 */
  2222. #define E60802_RG_SSUSB_FORCE_IDEM_6DB (0x1<<8) /* 8:8 */
  2223. #define E60802_RG_SSUSB_IDEM_6DB (0x3f<<0) /* 5:0 */
  2224. /* U3D_B2_PHYD_TOP4 */
  2225. #define E60802_RG_SSUSB_G1_CDR_BIC_LTR (0xf<<28) /* 31:28 */
  2226. #define E60802_RG_SSUSB_G1_CDR_BIC_LTD0 (0xf<<24) /* 27:24 */
  2227. #define E60802_RG_SSUSB_G1_CDR_BC_LTD1 (0x1f<<16) /* 20:16 */
  2228. #define E60802_RG_SSUSB_G1_L1SS_CDR_BW_SEL (0x3<<13) /* 14:13 */
  2229. #define E60802_RG_SSUSB_G1_CDR_BC_LTR (0x1f<<8) /* 12:8 */
  2230. #define E60802_RG_SSUSB_G1_CDR_BW_SEL (0x3<<5) /* 6:5 */
  2231. #define E60802_RG_SSUSB_G1_CDR_BC_LTD0 (0x1f<<0) /* 4:0 */
  2232. /* U3D_B2_PHYD_TOP5 */
  2233. #define E60802_RG_SSUSB_G1_CDR_BIR_LTD1 (0x1f<<24) /* 28:24 */
  2234. #define E60802_RG_SSUSB_G1_CDR_BIR_LTR (0x1f<<16) /* 20:16 */
  2235. #define E60802_RG_SSUSB_G1_CDR_BIR_LTD0 (0x1f<<8) /* 12:8 */
  2236. #define E60802_RG_SSUSB_G1_CDR_BIC_LTD1 (0xf<<0) /* 3:0 */
  2237. /* U3D_B2_PHYD_TOP6 */
  2238. #define E60802_RG_SSUSB_G2_CDR_BIC_LTR (0xf<<28) /* 31:28 */
  2239. #define E60802_RG_SSUSB_G2_CDR_BIC_LTD0 (0xf<<24) /* 27:24 */
  2240. #define E60802_RG_SSUSB_G2_CDR_BC_LTD1 (0x1f<<16) /* 20:16 */
  2241. #define E60802_RG_SSUSB_G2_L1SS_CDR_BW_SEL (0x3<<13) /* 14:13 */
  2242. #define E60802_RG_SSUSB_G2_CDR_BC_LTR (0x1f<<8) /* 12:8 */
  2243. #define E60802_RG_SSUSB_G2_CDR_BW_SEL (0x3<<5) /* 6:5 */
  2244. #define E60802_RG_SSUSB_G2_CDR_BC_LTD0 (0x1f<<0) /* 4:0 */
  2245. /* U3D_B2_PHYD_TOP7 */
  2246. #define E60802_RG_SSUSB_G2_CDR_BIR_LTD1 (0x1f<<24) /* 28:24 */
  2247. #define E60802_RG_SSUSB_G2_CDR_BIR_LTR (0x1f<<16) /* 20:16 */
  2248. #define E60802_RG_SSUSB_G2_CDR_BIR_LTD0 (0x1f<<8) /* 12:8 */
  2249. #define E60802_RG_SSUSB_G2_CDR_BIC_LTD1 (0xf<<0) /* 3:0 */
  2250. /* U3D_B2_PHYD_P_SIGDET1 */
  2251. #define E60802_RG_SSUSB_P_SIGDET_FLT_DIS (0x1<<31) /* 31:31 */
  2252. #define E60802_RG_SSUSB_P_SIGDET_FLT_G2_DEAST_SEL (0x7f<<24) /* 30:24 */
  2253. #define E60802_RG_SSUSB_P_SIGDET_FLT_G1_DEAST_SEL (0x7f<<16) /* 22:16 */
  2254. #define E60802_RG_SSUSB_P_SIGDET_FLT_P2_AST_SEL (0x7f<<8) /* 14:8 */
  2255. #define E60802_RG_SSUSB_P_SIGDET_FLT_PX_AST_SEL (0x7f<<0) /* 6:0 */
  2256. /* U3D_B2_PHYD_P_SIGDET2 */
  2257. #define E60802_RG_SSUSB_P_SIGDET_RX_VAL_S (0x1<<29) /* 29:29 */
  2258. #define E60802_RG_SSUSB_P_SIGDET_L0S_DEAS_SEL (0x1<<28) /* 28:28 */
  2259. #define E60802_RG_SSUSB_P_SIGDET_L0_EXIT_S (0x1<<27) /* 27:27 */
  2260. #define E60802_RG_SSUSB_P_SIGDET_L0S_EXIT_T_S (0x3<<25) /* 26:25 */
  2261. #define E60802_RG_SSUSB_P_SIGDET_L0S_EXIT_S (0x1<<24) /* 24:24 */
  2262. #define E60802_RG_SSUSB_P_SIGDET_L0S_ENTRY_S (0x1<<16) /* 16:16 */
  2263. #define E60802_RG_SSUSB_P_SIGDET_PRB_SEL (0x1<<10) /* 10:10 */
  2264. #define E60802_RG_SSUSB_P_SIGDET_BK_SIG_T (0x3<<8) /* 9:8 */
  2265. #define E60802_RG_SSUSB_P_SIGDET_P2_RXLFPS (0x1<<6) /* 6:6 */
  2266. #define E60802_RG_SSUSB_P_SIGDET_NON_BK_AD (0x1<<5) /* 5:5 */
  2267. #define E60802_RG_SSUSB_P_SIGDET_BK_B_RXEQ (0x1<<4) /* 4:4 */
  2268. #define E60802_RG_SSUSB_P_SIGDET_G2_KO_SEL (0x3<<2) /* 3:2 */
  2269. #define E60802_RG_SSUSB_P_SIGDET_G1_KO_SEL (0x3<<0) /* 1:0 */
  2270. /* U3D_B2_PHYD_P_SIGDET_CAL1 */
  2271. #define E60802_RG_SSUSB_G2_2EIOS_DET_EN (0x1<<29) /* 29:29 */
  2272. #define E60802_RG_SSUSB_P_SIGDET_CAL_OFFSET (0x1f<<24) /* 28:24 */
  2273. #define E60802_RG_SSUSB_P_FORCE_SIGDET_CAL_OFFSET (0x1<<16) /* 16:16 */
  2274. #define E60802_RG_SSUSB_P_SIGDET_CAL_EN (0x1<<8) /* 8:8 */
  2275. #define E60802_RG_SSUSB_P_FORCE_SIGDET_CAL_EN (0x1<<3) /* 3:3 */
  2276. #define E60802_RG_SSUSB_P_SIGDET_FLT_EN (0x1<<2) /* 2:2 */
  2277. #define E60802_RG_SSUSB_P_SIGDET_SAMPLE_PRD (0x1<<1) /* 1:1 */
  2278. #define E60802_RG_SSUSB_P_SIGDET_REK (0x1<<0) /* 0:0 */
  2279. /* U3D_B2_PHYD_RXDET1 */
  2280. #define E60802_RG_SSUSB_RXDET_PRB_SEL (0x1<<31) /* 31:31 */
  2281. #define E60802_RG_SSUSB_FORCE_CMDET (0x1<<30) /* 30:30 */
  2282. #define E60802_RG_SSUSB_RXDET_EN (0x1<<29) /* 29:29 */
  2283. #define E60802_RG_SSUSB_FORCE_RXDET_EN (0x1<<28) /* 28:28 */
  2284. #define E60802_RG_SSUSB_RXDET_K_TWICE (0x1<<27) /* 27:27 */
  2285. #define E60802_RG_SSUSB_RXDET_STB3_SET (0x1ff<<18) /* 26:18 */
  2286. #define E60802_RG_SSUSB_RXDET_STB2_SET (0x1ff<<9) /* 17:9 */
  2287. #define E60802_RG_SSUSB_RXDET_STB1_SET (0x1ff<<0) /* 8:0 */
  2288. /* U3D_B2_PHYD_RXDET2 */
  2289. #define E60802_RG_SSUSB_PHYD_TRAINDEC_FORCE_CGEN (0x1<<31) /* 31:31 */
  2290. #define E60802_RG_SSUSB_PHYD_BERTLB_FORCE_CGEN (0x1<<30) /* 30:30 */
  2291. #define E60802_RG_SSUSB_PHYD_T2RLB_FORCE_CGEN (0x1<<29) /* 29:29 */
  2292. #define E60802_RG_SSUSB_LCK2REF_EXT_EN (0x1<<28) /* 28:28 */
  2293. #define E60802_RG_SSUSB_G2_LCK2REF_EXT_SEL (0xf<<24) /* 27:24 */
  2294. #define E60802_RG_SSUSB_LCK2REF_EXT_SEL (0xf<<20) /* 23:20 */
  2295. #define E60802_RG_SSUSB_PDN_T_SEL (0x3<<18) /* 19:18 */
  2296. #define E60802_RG_SSUSB_RXDET_STB3_SET_P3 (0x1ff<<9) /* 17:9 */
  2297. #define E60802_RG_SSUSB_RXDET_STB2_SET_P3 (0x1ff<<0) /* 8:0 */
  2298. /* U3D_B2_PHYD_MISC0 */
  2299. #define E60802_RG_SSUSB_TX_EIDLE_LP_P0DLYCYC (0x3f<<26) /* 31:26 */
  2300. #define E60802_RG_SSUSB_TX_SER_EN (0x1<<25) /* 25:25 */
  2301. #define E60802_RG_SSUSB_FORCE_TX_SER_EN (0x1<<24) /* 24:24 */
  2302. #define E60802_RG_SSUSB_TXPLL_REFCKSEL (0x1<<23) /* 23:23 */
  2303. #define E60802_RG_SSUSB_FORCE_PLL_DDS_HF_EN (0x1<<22) /* 22:22 */
  2304. #define E60802_RG_SSUSB_PLL_DDS_HF_EN_MAN (0x1<<21) /* 21:21 */
  2305. #define E60802_RG_SSUSB_RXLFPS_ENTXDRV (0x1<<20) /* 20:20 */
  2306. #define E60802_RG_SSUSB_RX_FL_UNLOCKTH (0xf<<16) /* 19:16 */
  2307. #define E60802_RG_SSUSB_LFPS_PSEL (0x1<<15) /* 15:15 */
  2308. #define E60802_RG_SSUSB_RX_SIGDET_EN (0x1<<14) /* 14:14 */
  2309. #define E60802_RG_SSUSB_RX_SIGDET_EN_SEL (0x1<<13) /* 13:13 */
  2310. #define E60802_RG_SSUSB_RX_PI_CAL_EN (0x1<<12) /* 12:12 */
  2311. #define E60802_RG_SSUSB_RX_PI_CAL_EN_SEL (0x1<<11) /* 11:11 */
  2312. #define E60802_RG_SSUSB_P3_CLS_CK_SEL (0x1<<10) /* 10:10 */
  2313. #define E60802_RG_SSUSB_T2RLB_PSEL (0x3<<8) /* 9:8 */
  2314. #define E60802_RG_SSUSB_PPCTL_PSEL (0x7<<5) /* 7:5 */
  2315. #define E60802_RG_SSUSB_PHYD_TX_DATA_INV (0x1<<4) /* 4:4 */
  2316. #define E60802_RG_SSUSB_BERTLB_PSEL (0x3<<2) /* 3:2 */
  2317. #define E60802_RG_SSUSB_RETRACK_DIS (0x1<<1) /* 1:1 */
  2318. #define E60802_RG_SSUSB_PPERRCNT_CLR (0x1<<0) /* 0:0 */
  2319. /* U3D_B2_PHYD_MISC2 */
  2320. #define E60802_RG_SSUSB_FRC_PLL_DDS_PREDIV2 (0x1<<31) /* 31:31 */
  2321. #define E60802_RG_SSUSB_FRC_PLL_DDS_IADJ (0xf<<27) /* 30:27 */
  2322. #define E60802_RG_SSUSB_P_SIGDET_125FILTER (0x1<<26) /* 26:26 */
  2323. #define E60802_RG_SSUSB_P_SIGDET_RST_FILTER (0x1<<25) /* 25:25 */
  2324. #define E60802_RG_SSUSB_P_SIGDET_EID_USE_RAW (0x1<<24) /* 24:24 */
  2325. #define E60802_RG_SSUSB_P_SIGDET_LTD_USE_RAW (0x1<<23) /* 23:23 */
  2326. #define E60802_RG_SSUSB_EIDLE_BF_RXDET (0x1<<22) /* 22:22 */
  2327. #define E60802_RG_SSUSB_EIDLE_LP_STBCYC (0x1ff<<13) /* 21:13 */
  2328. #define E60802_RG_SSUSB_TX_EIDLE_LP_POSTDLY (0x3f<<7) /* 12:7 */
  2329. #define E60802_RG_SSUSB_TX_EIDLE_LP_PREDLY (0x3f<<1) /* 6:1 */
  2330. #define E60802_RG_SSUSB_TX_EIDLE_LP_EN_ADV (0x1<<0) /* 0:0 */
  2331. /* U3D_B2_PHYD_MISC3 */
  2332. #define E60802_RGS_SSUSB_DDS_CALIB_C_STATE (0x7<<16) /* 18:16 */
  2333. #define E60802_RGS_SSUSB_PPERRCNT (0xffff<<0) /* 15:0 */
  2334. /* U3D_B2_PHYD_L1SS */
  2335. #define E60802_RG_SSUSB_L1SS_REV1 (0xff<<24) /* 31:24 */
  2336. #define E60802_RG_SSUSB_L1SS_REV0 (0xff<<16) /* 23:16 */
  2337. #define E60802_RG_SSUSB_P_LTD1_SLOCK_DIS (0x1<<11) /* 11:11 */
  2338. #define E60802_RG_SSUSB_PLL_CNT_CLEAN_DIS (0x1<<10) /* 10:10 */
  2339. #define E60802_RG_SSUSB_P_PLL_REK_SEL (0x1<<9) /* 9:9 */
  2340. #define E60802_RG_SSUSB_TXDRV_MASKDLY (0x1<<8) /* 8:8 */
  2341. #define E60802_RG_SSUSB_RXSTS_VAL (0x1<<7) /* 7:7 */
  2342. #define E60802_RG_PCIE_PHY_CLKREQ_N_EN (0x1<<6) /* 6:6 */
  2343. #define E60802_RG_PCIE_FORCE_PHY_CLKREQ_N_EN (0x1<<5) /* 5:5 */
  2344. #define E60802_RG_PCIE_PHY_CLKREQ_N_OUT (0x1<<4) /* 4:4 */
  2345. #define E60802_RG_PCIE_FORCE_PHY_CLKREQ_N_OUT (0x1<<3) /* 3:3 */
  2346. #define E60802_RG_SSUSB_RXPLL_STB_PX0 (0x1<<2) /* 2:2 */
  2347. #define E60802_RG_PCIE_L1SS_EN (0x1<<1) /* 1:1 */
  2348. #define E60802_RG_PCIE_FORCE_L1SS_EN (0x1<<0) /* 0:0 */
  2349. /* U3D_B2_ROSC_0 */
  2350. #define E60802_RG_SSUSB_RING_OSC_CNTEND (0x1ff<<23) /* 31:23 */
  2351. #define E60802_RG_SSUSB_XTAL_OSC_CNTEND (0x7f<<16) /* 22:16 */
  2352. #define E60802_RG_SSUSB_RING_OSC_EN (0x1<<3) /* 3:3 */
  2353. #define E60802_RG_SSUSB_RING_OSC_FORCE_EN (0x1<<2) /* 2:2 */
  2354. #define E60802_RG_SSUSB_FRC_RING_BYPASS_DET (0x1<<1) /* 1:1 */
  2355. #define E60802_RG_SSUSB_RING_BYPASS_DET (0x1<<0) /* 0:0 */
  2356. /* U3D_B2_ROSC_1 */
  2357. #define E60802_RG_SSUSB_RING_OSC_FRC_P3 (0x1<<20) /* 20:20 */
  2358. #define E60802_RG_SSUSB_RING_OSC_P3 (0x1<<19) /* 19:19 */
  2359. #define E60802_RG_SSUSB_RING_OSC_FRC_RECAL (0x3<<17) /* 18:17 */
  2360. #define E60802_RG_SSUSB_RING_OSC_RECAL (0x1<<16) /* 16:16 */
  2361. #define E60802_RG_SSUSB_RING_OSC_SEL (0xff<<8) /* 15:8 */
  2362. #define E60802_RG_SSUSB_RING_OSC_FRC_SEL (0x1<<0) /* 0:0 */
  2363. /* U3D_B2_ROSC_2 */
  2364. #define E60802_RG_SSUSB_RING_DET_STRCYC2 (0xffff<<16) /* 31:16 */
  2365. #define E60802_RG_SSUSB_RING_DET_STRCYC1 (0xffff<<0) /* 15:0 */
  2366. /* U3D_B2_ROSC_3 */
  2367. #define E60802_RG_SSUSB_RING_DET_DETWIN1 (0xffff<<16) /* 31:16 */
  2368. #define E60802_RG_SSUSB_RING_DET_STRCYC3 (0xffff<<0) /* 15:0 */
  2369. /* U3D_B2_ROSC_4 */
  2370. #define E60802_RG_SSUSB_RING_DET_DETWIN3 (0xffff<<16) /* 31:16 */
  2371. #define E60802_RG_SSUSB_RING_DET_DETWIN2 (0xffff<<0) /* 15:0 */
  2372. /* U3D_B2_ROSC_5 */
  2373. #define E60802_RG_SSUSB_RING_DET_LBOND1 (0xffff<<16) /* 31:16 */
  2374. #define E60802_RG_SSUSB_RING_DET_UBOND1 (0xffff<<0) /* 15:0 */
  2375. /* U3D_B2_ROSC_6 */
  2376. #define E60802_RG_SSUSB_RING_DET_LBOND2 (0xffff<<16) /* 31:16 */
  2377. #define E60802_RG_SSUSB_RING_DET_UBOND2 (0xffff<<0) /* 15:0 */
  2378. /* U3D_B2_ROSC_7 */
  2379. #define E60802_RG_SSUSB_RING_DET_LBOND3 (0xffff<<16) /* 31:16 */
  2380. #define E60802_RG_SSUSB_RING_DET_UBOND3 (0xffff<<0) /* 15:0 */
  2381. /* U3D_B2_ROSC_8 */
  2382. #define E60802_RG_SSUSB_RING_RESERVE (0xffff<<16) /* 31:16 */
  2383. #define E60802_RG_SSUSB_ROSC_PROB_SEL (0xf<<2) /* 5:2 */
  2384. #define E60802_RG_SSUSB_RING_FREQMETER_EN (0x1<<1) /* 1:1 */
  2385. #define E60802_RG_SSUSB_RING_DET_BPS_UBOND (0x1<<0) /* 0:0 */
  2386. /* U3D_B2_ROSC_9 */
  2387. #define E60802_RGS_FM_RING_CNT (0xffff<<16) /* 31:16 */
  2388. #define E60802_RGS_SSUSB_RING_OSC_STATE (0x3<<10) /* 11:10 */
  2389. #define E60802_RGS_SSUSB_RING_OSC_STABLE (0x1<<9) /* 9:9 */
  2390. #define E60802_RGS_SSUSB_RING_OSC_CAL_FAIL (0x1<<8) /* 8:8 */
  2391. #define E60802_RGS_SSUSB_RING_OSC_CAL (0xff<<0) /* 7:0 */
  2392. /* U3D_B2_ROSC_A */
  2393. #define E60802_RGS_SSUSB_ROSC_PROB_OUT (0xff<<0) /* 7:0 */
  2394. /* U3D_PHYD_VERSION */
  2395. #define E60802_RGS_SSUSB_PHYD_VERSION (0xffffffff<<0) /* 31:0 */
  2396. /* U3D_PHYD_MODEL */
  2397. #define E60802_RGS_SSUSB_PHYD_MODEL (0xffffffff<<0) /* 31:0 */
  2398. /* OFFSET */
  2399. /* U3D_B2_PHYD_TOP1 */
  2400. #define E60802_RG_SSUSB_PCIE2_K_EMP_OFST (28)
  2401. #define E60802_RG_SSUSB_PCIE2_K_FUL_OFST (24)
  2402. #define E60802_RG_SSUSB_TX_EIDLE_LP_EN_OFST (17)
  2403. #define E60802_RG_SSUSB_FORCE_TX_EIDLE_LP_EN_OFST (16)
  2404. #define E60802_RG_SSUSB_SIGDET_EN_OFST (15)
  2405. #define E60802_RG_SSUSB_FORCE_SIGDET_EN_OFST (14)
  2406. #define E60802_RG_SSUSB_CLKRX_EN_OFST (13)
  2407. #define E60802_RG_SSUSB_FORCE_CLKRX_EN_OFST (12)
  2408. #define E60802_RG_SSUSB_CLKTX_EN_OFST (11)
  2409. #define E60802_RG_SSUSB_FORCE_CLKTX_EN_OFST (10)
  2410. #define E60802_RG_SSUSB_CLK_REQ_N_I_OFST (9)
  2411. #define E60802_RG_SSUSB_FORCE_CLK_REQ_N_I_OFST (8)
  2412. #define E60802_RG_SSUSB_RATE_OFST (6)
  2413. #define E60802_RG_SSUSB_FORCE_RATE_OFST (5)
  2414. #define E60802_RG_SSUSB_PCIE_MODE_SEL_OFST (4)
  2415. #define E60802_RG_SSUSB_FORCE_PCIE_MODE_SEL_OFST (3)
  2416. #define E60802_RG_SSUSB_PHY_MODE_OFST (1)
  2417. #define E60802_RG_SSUSB_FORCE_PHY_MODE_OFST (0)
  2418. /* U3D_B2_PHYD_TOP2 */
  2419. #define E60802_RG_SSUSB_FORCE_IDRV_6DB_OFST (30)
  2420. #define E60802_RG_SSUSB_IDRV_6DB_OFST (24)
  2421. #define E60802_RG_SSUSB_FORCE_IDEM_3P5DB_OFST (22)
  2422. #define E60802_RG_SSUSB_IDEM_3P5DB_OFST (16)
  2423. #define E60802_RG_SSUSB_FORCE_IDRV_3P5DB_OFST (14)
  2424. #define E60802_RG_SSUSB_IDRV_3P5DB_OFST (8)
  2425. #define E60802_RG_SSUSB_FORCE_IDRV_0DB_OFST (6)
  2426. #define E60802_RG_SSUSB_IDRV_0DB_OFST (0)
  2427. /* U3D_B2_PHYD_TOP3 */
  2428. #define E60802_RG_SSUSB_TX_BIASI_OFST (25)
  2429. #define E60802_RG_SSUSB_FORCE_TX_BIASI_EN_OFST (24)
  2430. #define E60802_RG_SSUSB_TX_BIASI_EN_OFST (16)
  2431. #define E60802_RG_SSUSB_FORCE_TX_BIASI_OFST (13)
  2432. #define E60802_RG_SSUSB_FORCE_IDEM_6DB_OFST (8)
  2433. #define E60802_RG_SSUSB_IDEM_6DB_OFST (0)
  2434. /* U3D_B2_PHYD_TOP4 */
  2435. #define E60802_RG_SSUSB_G1_CDR_BIC_LTR_OFST (28)
  2436. #define E60802_RG_SSUSB_G1_CDR_BIC_LTD0_OFST (24)
  2437. #define E60802_RG_SSUSB_G1_CDR_BC_LTD1_OFST (16)
  2438. #define E60802_RG_SSUSB_G1_L1SS_CDR_BW_SEL_OFST (13)
  2439. #define E60802_RG_SSUSB_G1_CDR_BC_LTR_OFST (8)
  2440. #define E60802_RG_SSUSB_G1_CDR_BW_SEL_OFST (5)
  2441. #define E60802_RG_SSUSB_G1_CDR_BC_LTD0_OFST (0)
  2442. /* U3D_B2_PHYD_TOP5 */
  2443. #define E60802_RG_SSUSB_G1_CDR_BIR_LTD1_OFST (24)
  2444. #define E60802_RG_SSUSB_G1_CDR_BIR_LTR_OFST (16)
  2445. #define E60802_RG_SSUSB_G1_CDR_BIR_LTD0_OFST (8)
  2446. #define E60802_RG_SSUSB_G1_CDR_BIC_LTD1_OFST (0)
  2447. /* U3D_B2_PHYD_TOP6 */
  2448. #define E60802_RG_SSUSB_G2_CDR_BIC_LTR_OFST (28)
  2449. #define E60802_RG_SSUSB_G2_CDR_BIC_LTD0_OFST (24)
  2450. #define E60802_RG_SSUSB_G2_CDR_BC_LTD1_OFST (16)
  2451. #define E60802_RG_SSUSB_G2_L1SS_CDR_BW_SEL_OFST (13)
  2452. #define E60802_RG_SSUSB_G2_CDR_BC_LTR_OFST (8)
  2453. #define E60802_RG_SSUSB_G2_CDR_BW_SEL_OFST (5)
  2454. #define E60802_RG_SSUSB_G2_CDR_BC_LTD0_OFST (0)
  2455. /* U3D_B2_PHYD_TOP7 */
  2456. #define E60802_RG_SSUSB_G2_CDR_BIR_LTD1_OFST (24)
  2457. #define E60802_RG_SSUSB_G2_CDR_BIR_LTR_OFST (16)
  2458. #define E60802_RG_SSUSB_G2_CDR_BIR_LTD0_OFST (8)
  2459. #define E60802_RG_SSUSB_G2_CDR_BIC_LTD1_OFST (0)
  2460. /* U3D_B2_PHYD_P_SIGDET1 */
  2461. #define E60802_RG_SSUSB_P_SIGDET_FLT_DIS_OFST (31)
  2462. #define E60802_RG_SSUSB_P_SIGDET_FLT_G2_DEAST_SEL_OFST (24)
  2463. #define E60802_RG_SSUSB_P_SIGDET_FLT_G1_DEAST_SEL_OFST (16)
  2464. #define E60802_RG_SSUSB_P_SIGDET_FLT_P2_AST_SEL_OFST (8)
  2465. #define E60802_RG_SSUSB_P_SIGDET_FLT_PX_AST_SEL_OFST (0)
  2466. /* U3D_B2_PHYD_P_SIGDET2 */
  2467. #define E60802_RG_SSUSB_P_SIGDET_RX_VAL_S_OFST (29)
  2468. #define E60802_RG_SSUSB_P_SIGDET_L0S_DEAS_SEL_OFST (28)
  2469. #define E60802_RG_SSUSB_P_SIGDET_L0_EXIT_S_OFST (27)
  2470. #define E60802_RG_SSUSB_P_SIGDET_L0S_EXIT_T_S_OFST (25)
  2471. #define E60802_RG_SSUSB_P_SIGDET_L0S_EXIT_S_OFST (24)
  2472. #define E60802_RG_SSUSB_P_SIGDET_L0S_ENTRY_S_OFST (16)
  2473. #define E60802_RG_SSUSB_P_SIGDET_PRB_SEL_OFST (10)
  2474. #define E60802_RG_SSUSB_P_SIGDET_BK_SIG_T_OFST (8)
  2475. #define E60802_RG_SSUSB_P_SIGDET_P2_RXLFPS_OFST (6)
  2476. #define E60802_RG_SSUSB_P_SIGDET_NON_BK_AD_OFST (5)
  2477. #define E60802_RG_SSUSB_P_SIGDET_BK_B_RXEQ_OFST (4)
  2478. #define E60802_RG_SSUSB_P_SIGDET_G2_KO_SEL_OFST (2)
  2479. #define E60802_RG_SSUSB_P_SIGDET_G1_KO_SEL_OFST (0)
  2480. /* U3D_B2_PHYD_P_SIGDET_CAL1 */
  2481. #define E60802_RG_SSUSB_G2_2EIOS_DET_EN_OFST (29)
  2482. #define E60802_RG_SSUSB_P_SIGDET_CAL_OFFSET_OFST (24)
  2483. #define E60802_RG_SSUSB_P_FORCE_SIGDET_CAL_OFFSET_OFST (16)
  2484. #define E60802_RG_SSUSB_P_SIGDET_CAL_EN_OFST (8)
  2485. #define E60802_RG_SSUSB_P_FORCE_SIGDET_CAL_EN_OFST (3)
  2486. #define E60802_RG_SSUSB_P_SIGDET_FLT_EN_OFST (2)
  2487. #define E60802_RG_SSUSB_P_SIGDET_SAMPLE_PRD_OFST (1)
  2488. #define E60802_RG_SSUSB_P_SIGDET_REK_OFST (0)
  2489. /* U3D_B2_PHYD_RXDET1 */
  2490. #define E60802_RG_SSUSB_RXDET_PRB_SEL_OFST (31)
  2491. #define E60802_RG_SSUSB_FORCE_CMDET_OFST (30)
  2492. #define E60802_RG_SSUSB_RXDET_EN_OFST (29)
  2493. #define E60802_RG_SSUSB_FORCE_RXDET_EN_OFST (28)
  2494. #define E60802_RG_SSUSB_RXDET_K_TWICE_OFST (27)
  2495. #define E60802_RG_SSUSB_RXDET_STB3_SET_OFST (18)
  2496. #define E60802_RG_SSUSB_RXDET_STB2_SET_OFST (9)
  2497. #define E60802_RG_SSUSB_RXDET_STB1_SET_OFST (0)
  2498. /* U3D_B2_PHYD_RXDET2 */
  2499. #define E60802_RG_SSUSB_PHYD_TRAINDEC_FORCE_CGEN_OFST (31)
  2500. #define E60802_RG_SSUSB_PHYD_BERTLB_FORCE_CGEN_OFST (30)
  2501. #define E60802_RG_SSUSB_PHYD_T2RLB_FORCE_CGEN_OFST (29)
  2502. #define E60802_RG_SSUSB_LCK2REF_EXT_EN_OFST (28)
  2503. #define E60802_RG_SSUSB_G2_LCK2REF_EXT_SEL_OFST (24)
  2504. #define E60802_RG_SSUSB_LCK2REF_EXT_SEL_OFST (20)
  2505. #define E60802_RG_SSUSB_PDN_T_SEL_OFST (18)
  2506. #define E60802_RG_SSUSB_RXDET_STB3_SET_P3_OFST (9)
  2507. #define E60802_RG_SSUSB_RXDET_STB2_SET_P3_OFST (0)
  2508. /* U3D_B2_PHYD_MISC0 */
  2509. #define E60802_RG_SSUSB_TX_EIDLE_LP_P0DLYCYC_OFST (26)
  2510. #define E60802_RG_SSUSB_TX_SER_EN_OFST (25)
  2511. #define E60802_RG_SSUSB_FORCE_TX_SER_EN_OFST (24)
  2512. #define E60802_RG_SSUSB_TXPLL_REFCKSEL_OFST (23)
  2513. #define E60802_RG_SSUSB_FORCE_PLL_DDS_HF_EN_OFST (22)
  2514. #define E60802_RG_SSUSB_PLL_DDS_HF_EN_MAN_OFST (21)
  2515. #define E60802_RG_SSUSB_RXLFPS_ENTXDRV_OFST (20)
  2516. #define E60802_RG_SSUSB_RX_FL_UNLOCKTH_OFST (16)
  2517. #define E60802_RG_SSUSB_LFPS_PSEL_OFST (15)
  2518. #define E60802_RG_SSUSB_RX_SIGDET_EN_OFST (14)
  2519. #define E60802_RG_SSUSB_RX_SIGDET_EN_SEL_OFST (13)
  2520. #define E60802_RG_SSUSB_RX_PI_CAL_EN_OFST (12)
  2521. #define E60802_RG_SSUSB_RX_PI_CAL_EN_SEL_OFST (11)
  2522. #define E60802_RG_SSUSB_P3_CLS_CK_SEL_OFST (10)
  2523. #define E60802_RG_SSUSB_T2RLB_PSEL_OFST (8)
  2524. #define E60802_RG_SSUSB_PPCTL_PSEL_OFST (5)
  2525. #define E60802_RG_SSUSB_PHYD_TX_DATA_INV_OFST (4)
  2526. #define E60802_RG_SSUSB_BERTLB_PSEL_OFST (2)
  2527. #define E60802_RG_SSUSB_RETRACK_DIS_OFST (1)
  2528. #define E60802_RG_SSUSB_PPERRCNT_CLR_OFST (0)
  2529. /* U3D_B2_PHYD_MISC2 */
  2530. #define E60802_RG_SSUSB_FRC_PLL_DDS_PREDIV2_OFST (31)
  2531. #define E60802_RG_SSUSB_FRC_PLL_DDS_IADJ_OFST (27)
  2532. #define E60802_RG_SSUSB_P_SIGDET_125FILTER_OFST (26)
  2533. #define E60802_RG_SSUSB_P_SIGDET_RST_FILTER_OFST (25)
  2534. #define E60802_RG_SSUSB_P_SIGDET_EID_USE_RAW_OFST (24)
  2535. #define E60802_RG_SSUSB_P_SIGDET_LTD_USE_RAW_OFST (23)
  2536. #define E60802_RG_SSUSB_EIDLE_BF_RXDET_OFST (22)
  2537. #define E60802_RG_SSUSB_EIDLE_LP_STBCYC_OFST (13)
  2538. #define E60802_RG_SSUSB_TX_EIDLE_LP_POSTDLY_OFST (7)
  2539. #define E60802_RG_SSUSB_TX_EIDLE_LP_PREDLY_OFST (1)
  2540. #define E60802_RG_SSUSB_TX_EIDLE_LP_EN_ADV_OFST (0)
  2541. /* U3D_B2_PHYD_MISC3 */
  2542. #define E60802_RGS_SSUSB_DDS_CALIB_C_STATE_OFST (16)
  2543. #define E60802_RGS_SSUSB_PPERRCNT_OFST (0)
  2544. /* U3D_B2_PHYD_L1SS */
  2545. #define E60802_RG_SSUSB_L1SS_REV1_OFST (24)
  2546. #define E60802_RG_SSUSB_L1SS_REV0_OFST (16)
  2547. #define E60802_RG_SSUSB_P_LTD1_SLOCK_DIS_OFST (11)
  2548. #define E60802_RG_SSUSB_PLL_CNT_CLEAN_DIS_OFST (10)
  2549. #define E60802_RG_SSUSB_P_PLL_REK_SEL_OFST (9)
  2550. #define E60802_RG_SSUSB_TXDRV_MASKDLY_OFST (8)
  2551. #define E60802_RG_SSUSB_RXSTS_VAL_OFST (7)
  2552. #define E60802_RG_PCIE_PHY_CLKREQ_N_EN_OFST (6)
  2553. #define E60802_RG_PCIE_FORCE_PHY_CLKREQ_N_EN_OFST (5)
  2554. #define E60802_RG_PCIE_PHY_CLKREQ_N_OUT_OFST (4)
  2555. #define E60802_RG_PCIE_FORCE_PHY_CLKREQ_N_OUT_OFST (3)
  2556. #define E60802_RG_SSUSB_RXPLL_STB_PX0_OFST (2)
  2557. #define E60802_RG_PCIE_L1SS_EN_OFST (1)
  2558. #define E60802_RG_PCIE_FORCE_L1SS_EN_OFST (0)
  2559. /* U3D_B2_ROSC_0 */
  2560. #define E60802_RG_SSUSB_RING_OSC_CNTEND_OFST (23)
  2561. #define E60802_RG_SSUSB_XTAL_OSC_CNTEND_OFST (16)
  2562. #define E60802_RG_SSUSB_RING_OSC_EN_OFST (3)
  2563. #define E60802_RG_SSUSB_RING_OSC_FORCE_EN_OFST (2)
  2564. #define E60802_RG_SSUSB_FRC_RING_BYPASS_DET_OFST (1)
  2565. #define E60802_RG_SSUSB_RING_BYPASS_DET_OFST (0)
  2566. /* U3D_B2_ROSC_1 */
  2567. #define E60802_RG_SSUSB_RING_OSC_FRC_P3_OFST (20)
  2568. #define E60802_RG_SSUSB_RING_OSC_P3_OFST (19)
  2569. #define E60802_RG_SSUSB_RING_OSC_FRC_RECAL_OFST (17)
  2570. #define E60802_RG_SSUSB_RING_OSC_RECAL_OFST (16)
  2571. #define E60802_RG_SSUSB_RING_OSC_SEL_OFST (8)
  2572. #define E60802_RG_SSUSB_RING_OSC_FRC_SEL_OFST (0)
  2573. /* U3D_B2_ROSC_2 */
  2574. #define E60802_RG_SSUSB_RING_DET_STRCYC2_OFST (16)
  2575. #define E60802_RG_SSUSB_RING_DET_STRCYC1_OFST (0)
  2576. /* U3D_B2_ROSC_3 */
  2577. #define E60802_RG_SSUSB_RING_DET_DETWIN1_OFST (16)
  2578. #define E60802_RG_SSUSB_RING_DET_STRCYC3_OFST (0)
  2579. /* U3D_B2_ROSC_4 */
  2580. #define E60802_RG_SSUSB_RING_DET_DETWIN3_OFST (16)
  2581. #define E60802_RG_SSUSB_RING_DET_DETWIN2_OFST (0)
  2582. /* U3D_B2_ROSC_5 */
  2583. #define E60802_RG_SSUSB_RING_DET_LBOND1_OFST (16)
  2584. #define E60802_RG_SSUSB_RING_DET_UBOND1_OFST (0)
  2585. /* U3D_B2_ROSC_6 */
  2586. #define E60802_RG_SSUSB_RING_DET_LBOND2_OFST (16)
  2587. #define E60802_RG_SSUSB_RING_DET_UBOND2_OFST (0)
  2588. /* U3D_B2_ROSC_7 */
  2589. #define E60802_RG_SSUSB_RING_DET_LBOND3_OFST (16)
  2590. #define E60802_RG_SSUSB_RING_DET_UBOND3_OFST (0)
  2591. /* U3D_B2_ROSC_8 */
  2592. #define E60802_RG_SSUSB_RING_RESERVE_OFST (16)
  2593. #define E60802_RG_SSUSB_ROSC_PROB_SEL_OFST (2)
  2594. #define E60802_RG_SSUSB_RING_FREQMETER_EN_OFST (1)
  2595. #define E60802_RG_SSUSB_RING_DET_BPS_UBOND_OFST (0)
  2596. /* U3D_B2_ROSC_9 */
  2597. #define E60802_RGS_FM_RING_CNT_OFST (16)
  2598. #define E60802_RGS_SSUSB_RING_OSC_STATE_OFST (10)
  2599. #define E60802_RGS_SSUSB_RING_OSC_STABLE_OFST (9)
  2600. #define E60802_RGS_SSUSB_RING_OSC_CAL_FAIL_OFST (8)
  2601. #define E60802_RGS_SSUSB_RING_OSC_CAL_OFST (0)
  2602. /* U3D_B2_ROSC_A */
  2603. #define E60802_RGS_SSUSB_ROSC_PROB_OUT_OFST (0)
  2604. /* U3D_PHYD_VERSION */
  2605. #define E60802_RGS_SSUSB_PHYD_VERSION_OFST (0)
  2606. /* U3D_PHYD_MODEL */
  2607. #define E60802_RGS_SSUSB_PHYD_MODEL_OFST (0)
  2608. #if 0
  2609. /* ///////////////////////////////////////////////////////////////////////////// */
  2610. struct sifslv_chip_reg_e {
  2611. /* 0x0 */
  2612. PHY_LE32 gpio_ctla;
  2613. PHY_LE32 gpio_ctlb;
  2614. PHY_LE32 gpio_ctlc;
  2615. };
  2616. /* ///////////////////////////////////////////////////////////////////////////// */
  2617. struct sifslv_fm_feg_e {
  2618. /* 0x0 */
  2619. PHY_LE32 fmcr0;
  2620. PHY_LE32 fmcr1;
  2621. PHY_LE32 fmcr2;
  2622. PHY_LE32 fmmonr0;
  2623. /* 0X10 */
  2624. PHY_LE32 fmmonr1;
  2625. };
  2626. #endif
  2627. /* U3D_FMCR0 */
  2628. #define E60802_RG_LOCKTH (0xf<<28) /* 31:28 */
  2629. #define E60802_RG_MONCLK_SEL (0x3<<26) /* 27:26 */
  2630. #define E60802_RG_FM_MODE (0x1<<25) /* 25:25 */
  2631. #define E60802_RG_FREQDET_EN (0x1<<24) /* 24:24 */
  2632. #define E60802_RG_CYCLECNT (0xffffff<<0) /* 23:0 */
  2633. /* U3D_FMCR1 */
  2634. #define E60802_RG_TARGET (0xffffffff<<0) /* 31:0 */
  2635. /* U3D_FMCR2 */
  2636. #define E60802_RG_OFFSET (0xffffffff<<0) /* 31:0 */
  2637. /* U3D_FMMONR0 */
  2638. #define E60802_USB_FM_OUT (0xffffffff<<0) /* 31:0 */
  2639. /* U3D_FMMONR1 */
  2640. #define E60802_RG_MONCLK_SEL_2 (0x1<<9) /* 9:9 */
  2641. #define E60802_RG_FRCK_EN (0x1<<8) /* 8:8 */
  2642. #define E60802_USBPLL_LOCK (0x1<<1) /* 1:1 */
  2643. #define E60802_USB_FM_VLD (0x1<<0) /* 0:0 */
  2644. /* OFFSET */
  2645. /* U3D_FMCR0 */
  2646. #define E60802_RG_LOCKTH_OFST (28)
  2647. #define E60802_RG_MONCLK_SEL_OFST (26)
  2648. #define E60802_RG_FM_MODE_OFST (25)
  2649. #define E60802_RG_FREQDET_EN_OFST (24)
  2650. #define E60802_RG_CYCLECNT_OFST (0)
  2651. /* U3D_FMCR1 */
  2652. #define E60802_RG_TARGET_OFST (0)
  2653. /* U3D_FMCR2 */
  2654. #define E60802_RG_OFFSET_OFST (0)
  2655. /* U3D_FMMONR0 */
  2656. #define E60802_USB_FM_OUT_OFST (0)
  2657. /* U3D_FMMONR1 */
  2658. #define E60802_RG_MONCLK_SEL_2_OFST (9)
  2659. #define E60802_RG_FRCK_EN_OFST (8)
  2660. #define E60802_USBPLL_LOCK_OFST (1)
  2661. #define E60802_USB_FM_VLD_OFST (0)
  2662. /* ///////////////////////////////////////////////////////////////////////////// */
  2663. #if 0
  2664. struct spllc_reg_e {
  2665. /* 0x0 */
  2666. PHY_LE32 u3d_syspll_0;
  2667. PHY_LE32 u3d_syspll_1;
  2668. PHY_LE32 u3d_syspll_2;
  2669. PHY_LE32 u3d_syspll_sdm;
  2670. /* 0x10 */
  2671. PHY_LE32 u3d_xtalctl_1;
  2672. PHY_LE32 u3d_xtalctl_2;
  2673. PHY_LE32 u3d_xtalctl3;
  2674. };
  2675. #endif
  2676. /* U3D_SYSPLL_0 */
  2677. #define E60802_RG_SSUSB_SPLL_DDSEN_CYC (0x1f<<27) /* 31:27 */
  2678. #define E60802_RG_SSUSB_SPLL_NCPOEN_CYC (0x3<<25) /* 26:25 */
  2679. #define E60802_RG_SSUSB_SPLL_STBCYC (0x1ff<<16) /* 24:16 */
  2680. #define E60802_RG_SSUSB_SPLL_NCPOCHG_CYC (0xf<<12) /* 15:12 */
  2681. #define E60802_RG_SSUSB_SYSPLL_ON (0x1<<11) /* 11:11 */
  2682. #define E60802_RG_SSUSB_FORCE_SYSPLLON (0x1<<10) /* 10:10 */
  2683. #define E60802_RG_SSUSB_SPLL_DDSRSTB_CYC (0x7<<0) /* 2:0 */
  2684. /* U3D_SYSPLL_1 */
  2685. #define E60802_RG_SSUSB_PLL_BIAS_CYC (0xff<<24) /* 31:24 */
  2686. #define E60802_RG_SSUSB_SYSPLL_STB (0x1<<23) /* 23:23 */
  2687. #define E60802_RG_SSUSB_FORCE_SYSPLL_STB (0x1<<22) /* 22:22 */
  2688. #define E60802_RG_SSUSB_SPLL_DDS_ISO_EN (0x1<<21) /* 21:21 */
  2689. #define E60802_RG_SSUSB_FORCE_SPLL_DDS_ISO_EN (0x1<<20) /* 20:20 */
  2690. #define E60802_RG_SSUSB_SPLL_DDS_PWR_ON (0x1<<19) /* 19:19 */
  2691. #define E60802_RG_SSUSB_FORCE_SPLL_DDS_PWR_ON (0x1<<18) /* 18:18 */
  2692. #define E60802_RG_SSUSB_PLL_BIAS_PWD (0x1<<17) /* 17:17 */
  2693. #define E60802_RG_SSUSB_FORCE_PLL_BIAS_PWD (0x1<<16) /* 16:16 */
  2694. #define E60802_RG_SSUSB_FORCE_SPLL_NCPO_EN (0x1<<15) /* 15:15 */
  2695. #define E60802_RG_SSUSB_FORCE_SPLL_FIFO_START_MAN (0x1<<14) /* 14:14 */
  2696. #define E60802_RG_SSUSB_FORCE_SPLL_NCPO_CHG (0x1<<12) /* 12:12 */
  2697. #define E60802_RG_SSUSB_FORCE_SPLL_DDS_RSTB (0x1<<11) /* 11:11 */
  2698. #define E60802_RG_SSUSB_FORCE_SPLL_DDS_PWDB (0x1<<10) /* 10:10 */
  2699. #define E60802_RG_SSUSB_FORCE_SPLL_DDSEN (0x1<<9) /* 9:9 */
  2700. #define E60802_RG_SSUSB_FORCE_SPLL_PWD (0x1<<8) /* 8:8 */
  2701. #define E60802_RG_SSUSB_SPLL_NCPO_EN (0x1<<7) /* 7:7 */
  2702. #define E60802_RG_SSUSB_SPLL_FIFO_START_MAN (0x1<<6) /* 6:6 */
  2703. #define E60802_RG_SSUSB_SPLL_NCPO_CHG (0x1<<4) /* 4:4 */
  2704. #define E60802_RG_SSUSB_SPLL_DDS_RSTB (0x1<<3) /* 3:3 */
  2705. #define E60802_RG_SSUSB_SPLL_DDS_PWDB (0x1<<2) /* 2:2 */
  2706. #define E60802_RG_SSUSB_SPLL_DDSEN (0x1<<1) /* 1:1 */
  2707. #define E60802_RG_SSUSB_SPLL_PWD (0x1<<0) /* 0:0 */
  2708. /* U3D_SYSPLL_2 */
  2709. #define E60802_RG_SSUSB_SPLL_P_ON_SEL (0x1<<11) /* 11:11 */
  2710. #define E60802_RG_SSUSB_SPLL_FBDIV_CHG (0x1<<10) /* 10:10 */
  2711. #define E60802_RG_SSUSB_SPLL_DDS_ISOEN_CYC (0x3ff<<0) /* 9:0 */
  2712. /* U3D_SYSPLL_SDM */
  2713. #define E60802_RG_SSUSB_SPLL_SDM_ISO_EN_CYC (0x3ff<<14) /* 23:14 */
  2714. #define E60802_RG_SSUSB_SPLL_FORCE_SDM_ISO_EN (0x1<<13) /* 13:13 */
  2715. #define E60802_RG_SSUSB_SPLL_SDM_ISO_EN (0x1<<12) /* 12:12 */
  2716. #define E60802_RG_SSUSB_SPLL_SDM_PWR_ON_CYC (0x3ff<<2) /* 11:2 */
  2717. #define E60802_RG_SSUSB_SPLL_FORCE_SDM_PWR_ON (0x1<<1) /* 1:1 */
  2718. #define E60802_RG_SSUSB_SPLL_SDM_PWR_ON (0x1<<0) /* 0:0 */
  2719. /* U3D_XTALCTL_1 */
  2720. #define E60802_RG_SSUSB_BIAS_STBCYC (0x3fff<<17) /* 30:17 */
  2721. #define E60802_RG_SSUSB_XTAL_CLK_REQ_N (0x1<<16) /* 16:16 */
  2722. #define E60802_RG_SSUSB_XTAL_FORCE_CLK_REQ_N (0x1<<15) /* 15:15 */
  2723. #define E60802_RG_SSUSB_XTAL_STBCYC (0x7fff<<0) /* 14:0 */
  2724. /* U3D_XTALCTL_2 */
  2725. #define E60802_RG_SSUSB_INT_XTAL_SEL (0x1<<29) /* 29:29 */
  2726. #define E60802_RG_SSUSB_BG_LPF_DLY (0x3<<27) /* 28:27 */
  2727. #define E60802_RG_SSUSB_BG_LPF_EN (0x1<<26) /* 26:26 */
  2728. #define E60802_RG_SSUSB_FORCE_BG_LPF_EN (0x1<<25) /* 25:25 */
  2729. #define E60802_RG_SSUSB_P3_BIAS_PWD (0x1<<24) /* 24:24 */
  2730. #define E60802_RG_SSUSB_PCIE_CLKDET_HIT (0x1<<20) /* 20:20 */
  2731. #define E60802_RG_SSUSB_PCIE_CLKDET_EN (0x1<<19) /* 19:19 */
  2732. #define E60802_RG_SSUSB_FRC_PCIE_CLKDET_EN (0x1<<18) /* 18:18 */
  2733. #define E60802_RG_SSUSB_USB20_BIAS_EN (0x1<<17) /* 17:17 */
  2734. #define E60802_RG_SSUSB_USB20_SLEEP (0x1<<16) /* 16:16 */
  2735. #define E60802_RG_SSUSB_OSC_ONLY (0x1<<9) /* 9:9 */
  2736. #define E60802_RG_SSUSB_OSC_EN (0x1<<8) /* 8:8 */
  2737. #define E60802_RG_SSUSB_XTALBIAS_STB (0x1<<5) /* 5:5 */
  2738. #define E60802_RG_SSUSB_FORCE_XTALBIAS_STB (0x1<<4) /* 4:4 */
  2739. #define E60802_RG_SSUSB_BIAS_PWD (0x1<<3) /* 3:3 */
  2740. #define E60802_RG_SSUSB_XTAL_PWD (0x1<<2) /* 2:2 */
  2741. #define E60802_RG_SSUSB_FORCE_BIAS_PWD (0x1<<1) /* 1:1 */
  2742. #define E60802_RG_SSUSB_FORCE_XTAL_PWD (0x1<<0) /* 0:0 */
  2743. /* U3D_XTALCTL3 */
  2744. #define E60802_RG_SSUSB_XTALCTL_REV (0xf<<12) /* 15:12 */
  2745. #define E60802_RG_SSUSB_BIASIMR_EN (0x1<<11) /* 11:11 */
  2746. #define E60802_RG_SSUSB_FORCE_BIASIMR_EN (0x1<<10) /* 10:10 */
  2747. #define E60802_RG_SSUSB_XTAL_RX_PWD (0x1<<9) /* 9:9 */
  2748. #define E60802_RG_SSUSB_FRC_XTAL_RX_PWD (0x1<<8) /* 8:8 */
  2749. #define E60802_RG_SSUSB_CKBG_PROB_SEL (0x3<<6) /* 7:6 */
  2750. #define E60802_RG_SSUSB_XTAL_PROB_SEL (0x3<<4) /* 5:4 */
  2751. #define E60802_RG_SSUSB_XTAL_VREGBIAS_LPF_ENB (0x1<<3) /* 3:3 */
  2752. #define E60802_RG_SSUSB_XTAL_FRC_VREGBIAS_LPF_ENB (0x1<<2) /* 2:2 */
  2753. #define E60802_RG_SSUSB_XTAL_VREGBIAS_PWD (0x1<<1) /* 1:1 */
  2754. #define E60802_RG_SSUSB_XTAL_FRC_VREGBIAS_PWD (0x1<<0) /* 0:0 */
  2755. /* SSUSB_SIFSLV_SPLLC FIELD OFFSET DEFINITION */
  2756. /* U3D_SYSPLL_0 */
  2757. #define E60802_RG_SSUSB_SPLL_DDSEN_CYC_OFST (27)
  2758. #define E60802_RG_SSUSB_SPLL_NCPOEN_CYC_OFST (25)
  2759. #define E60802_RG_SSUSB_SPLL_STBCYC_OFST (16)
  2760. #define E60802_RG_SSUSB_SPLL_NCPOCHG_CYC_OFST (12)
  2761. #define E60802_RG_SSUSB_SYSPLL_ON_OFST (11)
  2762. #define E60802_RG_SSUSB_FORCE_SYSPLLON_OFST (10)
  2763. #define E60802_RG_SSUSB_SPLL_DDSRSTB_CYC_OFST (0)
  2764. /* U3D_SYE60802_SPLL_1 */
  2765. #define E60802_RG_SSUSB_PLL_BIAS_CYC_OFST (24)
  2766. #define E60802_RG_SSUSB_SYSPLL_STB_OFST (23)
  2767. #define E60802_RG_SSUSB_FORCE_SYSPLL_STB_OFST (22)
  2768. #define E60802_RG_SSUSB_SPLL_DDS_ISO_EN_OFST (21)
  2769. #define E60802_RG_SSUSB_FORCE_SPLL_DDS_ISO_EN_OFST (20)
  2770. #define E60802_RG_SSUSB_SPLL_DDS_PWR_ON_OFST (19)
  2771. #define E60802_RG_SSUSB_FORCE_SPLL_DDS_PWR_ON_OFST (18)
  2772. #define E60802_RG_SSUSB_PLL_BIAS_PWD_OFST (17)
  2773. #define E60802_RG_SSUSB_FORCE_PLL_BIAS_PWD_OFST (16)
  2774. #define E60802_RG_SSUSB_FORCE_SPLL_NCPO_EN_OFST (15)
  2775. #define E60802_RG_SSUSB_FORCE_SPLL_FIFO_START_MAN_OFST (14)
  2776. #define E60802_RG_SSUSB_FORCE_SPLL_NCPO_CHG_OFST (12)
  2777. #define E60802_RG_SSUSB_FORCE_SPLL_DDS_RSTB_OFST (11)
  2778. #define E60802_RG_SSUSB_FORCE_SPLL_DDS_PWDB_OFST (10)
  2779. #define E60802_RG_SSUSB_FORCE_SPLL_DDSEN_OFST (9)
  2780. #define E60802_RG_SSUSB_FORCE_SPLL_PWD_OFST (8)
  2781. #define E60802_RG_SSUSB_SPLL_NCPO_EN_OFST (7)
  2782. #define E60802_RG_SSUSB_SPLL_FIFO_START_MAN_OFST (6)
  2783. #define E60802_RG_SSUSB_SPLL_NCPO_CHG_OFST (4)
  2784. #define E60802_RG_SSUSB_SPLL_DDS_RSTB_OFST (3)
  2785. #define E60802_RG_SSUSB_SPLL_DDS_PWDB_OFST (2)
  2786. #define E60802_RG_SSUSB_SPLL_DDSEN_OFST (1)
  2787. #define E60802_RG_SSUSB_SPLL_PWD_OFST (0)
  2788. /* U3D_SYSPLL_2 */
  2789. #define E60802_RG_SSUSB_SPLL_P_ON_SEL_OFST (11)
  2790. #define E60802_RG_SSUSB_SPLL_FBDIV_CHG_OFST (10)
  2791. #define E60802_RG_SSUSB_SPLL_DDS_ISOEN_CYC_OFST (0)
  2792. /* U3D_SYSPLL_SDM */
  2793. #define E60802_RG_SSUSB_SPLL_SDM_ISO_EN_CYC_OFST (14)
  2794. #define E60802_RG_SSUSB_SPLL_FORCE_SDM_ISO_EN_OFST (13)
  2795. #define E60802_RG_SSUSB_SPLL_SDM_ISO_EN_OFST (12)
  2796. #define E60802_RG_SSUSB_SPLL_SDM_PWR_ON_CYC_OFST (2)
  2797. #define E60802_RG_SSUSB_SPLL_FORCE_SDM_PWR_ON_OFST (1)
  2798. #define E60802_RG_SSUSB_SPLL_SDM_PWR_ON_OFST (0)
  2799. /* U3D_XTALCTL_1 */
  2800. #define E60802_RG_SSUSB_BIAS_STBCYC_OFST (17)
  2801. #define E60802_RG_SSUSB_XTAL_CLK_REQ_N_OFST (16)
  2802. #define E60802_RG_SSUSB_XTAL_FORCE_CLK_REQ_N_OFST (15)
  2803. #define E60802_RG_SSUSB_XTAL_STBCYC_OFST (0)
  2804. /* U3D_XTALCTL_2 */
  2805. #define E60802_RG_SSUSB_INT_XTAL_SEL_OFST (29)
  2806. #define E60802_RG_SSUSB_BG_LPF_DLY_OFST (27)
  2807. #define E60802_RG_SSUSB_BG_LPF_EN_OFST (26)
  2808. #define E60802_RG_SSUSB_FORCE_BG_LPF_EN_OFST (25)
  2809. #define E60802_RG_SSUSB_P3_BIAS_PWD_OFST (24)
  2810. #define E60802_RG_SSUSB_PCIE_CLKDET_HIT_OFST (20)
  2811. #define E60802_RG_SSUSB_PCIE_CLKDET_EN_OFST (19)
  2812. #define E60802_RG_SSUSB_FRC_PCIE_CLKDET_EN_OFST (18)
  2813. #define E60802_RG_SSUSB_USB20_BIAS_EN_OFST (17)
  2814. #define E60802_RG_SSUSB_USB20_SLEEP_OFST (16)
  2815. #define E60802_RG_SSUSB_OSC_ONLY_OFST (9)
  2816. #define E60802_RG_SSUSB_OSC_EN_OFST (8)
  2817. #define E60802_RG_SSUSB_XTALBIAS_STB_OFST (5)
  2818. #define E60802_RG_SSUSB_FORCE_XTALBIAS_STB_OFST (4)
  2819. #define E60802_RG_SSUSB_BIAS_PWD_OFST (3)
  2820. #define E60802_RG_SSUSB_XTAL_PWD_OFST (2)
  2821. #define E60802_RG_SSUSB_FORCE_BIAS_PWD_OFST (1)
  2822. #define E60802_RG_SSUSB_FORCE_XTAL_PWD_OFST (0)
  2823. /* U3D_XTALCTL3 */
  2824. #define E60802_RG_SSUSB_XTALCTL_REV_OFST (12)
  2825. #define E60802_RG_SSUSB_BIASIMR_EN_OFST (11)
  2826. #define E60802_RG_SSUSB_FORCE_BIASIMR_EN_OFST (10)
  2827. #define E60802_RG_SSUSB_XTAL_RX_PWD_OFST (9)
  2828. #define E60802_RG_SSUSB_FRC_XTAL_RX_PWD_OFST (8)
  2829. #define E60802_RG_SSUSB_CKBG_PROB_SEL_OFST (6)
  2830. #define E60802_RG_SSUSB_XTAL_PROB_SEL_OFST (4)
  2831. #define E60802_RG_SSUSB_XTAL_VREGBIAS_LPF_ENB_OFST (3)
  2832. #define E60802_RG_SSUSB_XTAL_FRC_VREGBIAS_LPF_ENB_OFST (2)
  2833. #define E60802_RG_SSUSB_XTAL_VREGBIAS_PWD_OFST (1)
  2834. #define E60802_RG_SSUSB_XTAL_FRC_VREGBIAS_PWD_OFST (0)
  2835. /* ///////////////////////////////////////////////////////////////////////////// */
  2836. #if 0
  2837. PHY_INT32 phy_init_soc(struct u3phy_info *info);
  2838. PHY_INT32 u2_slew_rate_calibration(struct u3phy_info *info);
  2839. void usb_phy_savecurrent(unsigned int clk_on);
  2840. void usb_phy_recover(unsigned int clk_on);
  2841. #endif
  2842. /* maybe move to mtk-phy.h is better */
  2843. struct u3phy_info;
  2844. int u3p_project_init(struct u3phy_info *info);
  2845. #endif