mt8192-reg.h 177 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * mt8192-reg.h -- Mediatek 8192 audio driver reg definition
  4. *
  5. * Copyright (c) 2020 MediaTek Inc.
  6. * Author: Shane Chien <[email protected]>
  7. */
  8. #ifndef _MT8192_REG_H_
  9. #define _MT8192_REG_H_
  10. /* reg bit enum */
  11. enum {
  12. MT8192_MEMIF_PBUF_SIZE_32_BYTES,
  13. MT8192_MEMIF_PBUF_SIZE_64_BYTES,
  14. MT8192_MEMIF_PBUF_SIZE_128_BYTES,
  15. MT8192_MEMIF_PBUF_SIZE_256_BYTES,
  16. MT8192_MEMIF_PBUF_SIZE_NUM,
  17. };
  18. /*****************************************************************************
  19. * R E G I S T E R D E F I N I T I O N
  20. *****************************************************************************/
  21. /* AUDIO_TOP_CON3 */
  22. #define BCK_INVERSE_SFT 3
  23. #define BCK_INVERSE_MASK 0x1
  24. #define BCK_INVERSE_MASK_SFT (0x1 << 3)
  25. /* AFE_DAC_CON0 */
  26. #define VUL12_ON_SFT 31
  27. #define VUL12_ON_MASK 0x1
  28. #define VUL12_ON_MASK_SFT (0x1 << 31)
  29. #define MOD_DAI_ON_SFT 30
  30. #define MOD_DAI_ON_MASK 0x1
  31. #define MOD_DAI_ON_MASK_SFT (0x1 << 30)
  32. #define DAI_ON_SFT 29
  33. #define DAI_ON_MASK 0x1
  34. #define DAI_ON_MASK_SFT (0x1 << 29)
  35. #define DAI2_ON_SFT 28
  36. #define DAI2_ON_MASK 0x1
  37. #define DAI2_ON_MASK_SFT (0x1 << 28)
  38. #define VUL6_ON_SFT 23
  39. #define VUL6_ON_MASK 0x1
  40. #define VUL6_ON_MASK_SFT (0x1 << 23)
  41. #define VUL5_ON_SFT 22
  42. #define VUL5_ON_MASK 0x1
  43. #define VUL5_ON_MASK_SFT (0x1 << 22)
  44. #define VUL4_ON_SFT 21
  45. #define VUL4_ON_MASK 0x1
  46. #define VUL4_ON_MASK_SFT (0x1 << 21)
  47. #define VUL3_ON_SFT 20
  48. #define VUL3_ON_MASK 0x1
  49. #define VUL3_ON_MASK_SFT (0x1 << 20)
  50. #define VUL2_ON_SFT 19
  51. #define VUL2_ON_MASK 0x1
  52. #define VUL2_ON_MASK_SFT (0x1 << 19)
  53. #define VUL_ON_SFT 18
  54. #define VUL_ON_MASK 0x1
  55. #define VUL_ON_MASK_SFT (0x1 << 18)
  56. #define AWB2_ON_SFT 17
  57. #define AWB2_ON_MASK 0x1
  58. #define AWB2_ON_MASK_SFT (0x1 << 17)
  59. #define AWB_ON_SFT 16
  60. #define AWB_ON_MASK 0x1
  61. #define AWB_ON_MASK_SFT (0x1 << 16)
  62. #define DL12_ON_SFT 15
  63. #define DL12_ON_MASK 0x1
  64. #define DL12_ON_MASK_SFT (0x1 << 15)
  65. #define DL9_ON_SFT 12
  66. #define DL9_ON_MASK 0x1
  67. #define DL9_ON_MASK_SFT (0x1 << 12)
  68. #define DL8_ON_SFT 11
  69. #define DL8_ON_MASK 0x1
  70. #define DL8_ON_MASK_SFT (0x1 << 11)
  71. #define DL7_ON_SFT 10
  72. #define DL7_ON_MASK 0x1
  73. #define DL7_ON_MASK_SFT (0x1 << 10)
  74. #define DL6_ON_SFT 9
  75. #define DL6_ON_MASK 0x1
  76. #define DL6_ON_MASK_SFT (0x1 << 9)
  77. #define DL5_ON_SFT 8
  78. #define DL5_ON_MASK 0x1
  79. #define DL5_ON_MASK_SFT (0x1 << 8)
  80. #define DL4_ON_SFT 7
  81. #define DL4_ON_MASK 0x1
  82. #define DL4_ON_MASK_SFT (0x1 << 7)
  83. #define DL3_ON_SFT 6
  84. #define DL3_ON_MASK 0x1
  85. #define DL3_ON_MASK_SFT (0x1 << 6)
  86. #define DL2_ON_SFT 5
  87. #define DL2_ON_MASK 0x1
  88. #define DL2_ON_MASK_SFT (0x1 << 5)
  89. #define DL1_ON_SFT 4
  90. #define DL1_ON_MASK 0x1
  91. #define DL1_ON_MASK_SFT (0x1 << 4)
  92. #define HDMI_OUT_ON_SFT 1
  93. #define HDMI_OUT_ON_MASK 0x1
  94. #define HDMI_OUT_ON_MASK_SFT (0x1 << 1)
  95. #define AFE_ON_SFT 0
  96. #define AFE_ON_MASK 0x1
  97. #define AFE_ON_MASK_SFT (0x1 << 0)
  98. /* AFE_DAC_MON */
  99. #define AFE_ON_RETM_SFT 0
  100. #define AFE_ON_RETM_MASK 0x1
  101. #define AFE_ON_RETM_MASK_SFT (0x1 << 0)
  102. /* AFE_I2S_CON */
  103. #define BCK_NEG_EG_LATCH_SFT 30
  104. #define BCK_NEG_EG_LATCH_MASK 0x1
  105. #define BCK_NEG_EG_LATCH_MASK_SFT (0x1 << 30)
  106. #define BCK_INV_SFT 29
  107. #define BCK_INV_MASK 0x1
  108. #define BCK_INV_MASK_SFT (0x1 << 29)
  109. #define I2SIN_PAD_SEL_SFT 28
  110. #define I2SIN_PAD_SEL_MASK 0x1
  111. #define I2SIN_PAD_SEL_MASK_SFT (0x1 << 28)
  112. #define I2S_LOOPBACK_SFT 20
  113. #define I2S_LOOPBACK_MASK 0x1
  114. #define I2S_LOOPBACK_MASK_SFT (0x1 << 20)
  115. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
  116. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
  117. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
  118. #define I2S1_HD_EN_SFT 12
  119. #define I2S1_HD_EN_MASK 0x1
  120. #define I2S1_HD_EN_MASK_SFT (0x1 << 12)
  121. #define I2S_OUT_MODE_SFT 8
  122. #define I2S_OUT_MODE_MASK 0xf
  123. #define I2S_OUT_MODE_MASK_SFT (0xf << 8)
  124. #define INV_PAD_CTRL_SFT 7
  125. #define INV_PAD_CTRL_MASK 0x1
  126. #define INV_PAD_CTRL_MASK_SFT (0x1 << 7)
  127. #define I2S_BYPSRC_SFT 6
  128. #define I2S_BYPSRC_MASK 0x1
  129. #define I2S_BYPSRC_MASK_SFT (0x1 << 6)
  130. #define INV_LRCK_SFT 5
  131. #define INV_LRCK_MASK 0x1
  132. #define INV_LRCK_MASK_SFT (0x1 << 5)
  133. #define I2S_FMT_SFT 3
  134. #define I2S_FMT_MASK 0x1
  135. #define I2S_FMT_MASK_SFT (0x1 << 3)
  136. #define I2S_SRC_SFT 2
  137. #define I2S_SRC_MASK 0x1
  138. #define I2S_SRC_MASK_SFT (0x1 << 2)
  139. #define I2S_WLEN_SFT 1
  140. #define I2S_WLEN_MASK 0x1
  141. #define I2S_WLEN_MASK_SFT (0x1 << 1)
  142. #define I2S_EN_SFT 0
  143. #define I2S_EN_MASK 0x1
  144. #define I2S_EN_MASK_SFT (0x1 << 0)
  145. /* AFE_I2S_CON1 */
  146. #define I2S2_LR_SWAP_SFT 31
  147. #define I2S2_LR_SWAP_MASK 0x1
  148. #define I2S2_LR_SWAP_MASK_SFT (0x1 << 31)
  149. #define I2S2_SEL_O19_O20_SFT 18
  150. #define I2S2_SEL_O19_O20_MASK 0x1
  151. #define I2S2_SEL_O19_O20_MASK_SFT (0x1 << 18)
  152. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
  153. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
  154. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
  155. #define I2S2_SEL_O03_O04_SFT 16
  156. #define I2S2_SEL_O03_O04_MASK 0x1
  157. #define I2S2_SEL_O03_O04_MASK_SFT (0x1 << 16)
  158. #define I2S2_32BIT_EN_SFT 13
  159. #define I2S2_32BIT_EN_MASK 0x1
  160. #define I2S2_32BIT_EN_MASK_SFT (0x1 << 13)
  161. #define I2S2_HD_EN_SFT 12
  162. #define I2S2_HD_EN_MASK 0x1
  163. #define I2S2_HD_EN_MASK_SFT (0x1 << 12)
  164. #define I2S2_OUT_MODE_SFT 8
  165. #define I2S2_OUT_MODE_MASK 0xf
  166. #define I2S2_OUT_MODE_MASK_SFT (0xf << 8)
  167. #define INV_LRCK_SFT 5
  168. #define INV_LRCK_MASK 0x1
  169. #define INV_LRCK_MASK_SFT (0x1 << 5)
  170. #define I2S2_FMT_SFT 3
  171. #define I2S2_FMT_MASK 0x1
  172. #define I2S2_FMT_MASK_SFT (0x1 << 3)
  173. #define I2S2_WLEN_SFT 1
  174. #define I2S2_WLEN_MASK 0x1
  175. #define I2S2_WLEN_MASK_SFT (0x1 << 1)
  176. #define I2S2_EN_SFT 0
  177. #define I2S2_EN_MASK 0x1
  178. #define I2S2_EN_MASK_SFT (0x1 << 0)
  179. /* AFE_I2S_CON2 */
  180. #define I2S3_LR_SWAP_SFT 31
  181. #define I2S3_LR_SWAP_MASK 0x1
  182. #define I2S3_LR_SWAP_MASK_SFT (0x1 << 31)
  183. #define I2S3_UPDATE_WORD_SFT 24
  184. #define I2S3_UPDATE_WORD_MASK 0x1f
  185. #define I2S3_UPDATE_WORD_MASK_SFT (0x1f << 24)
  186. #define I2S3_BCK_INV_SFT 23
  187. #define I2S3_BCK_INV_MASK 0x1
  188. #define I2S3_BCK_INV_MASK_SFT (0x1 << 23)
  189. #define I2S3_FPGA_BIT_TEST_SFT 22
  190. #define I2S3_FPGA_BIT_TEST_MASK 0x1
  191. #define I2S3_FPGA_BIT_TEST_MASK_SFT (0x1 << 22)
  192. #define I2S3_FPGA_BIT_SFT 21
  193. #define I2S3_FPGA_BIT_MASK 0x1
  194. #define I2S3_FPGA_BIT_MASK_SFT (0x1 << 21)
  195. #define I2S3_LOOPBACK_SFT 20
  196. #define I2S3_LOOPBACK_MASK 0x1
  197. #define I2S3_LOOPBACK_MASK_SFT (0x1 << 20)
  198. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
  199. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
  200. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
  201. #define I2S3_HD_EN_SFT 12
  202. #define I2S3_HD_EN_MASK 0x1
  203. #define I2S3_HD_EN_MASK_SFT (0x1 << 12)
  204. #define I2S3_OUT_MODE_SFT 8
  205. #define I2S3_OUT_MODE_MASK 0xf
  206. #define I2S3_OUT_MODE_MASK_SFT (0xf << 8)
  207. #define I2S3_FMT_SFT 3
  208. #define I2S3_FMT_MASK 0x1
  209. #define I2S3_FMT_MASK_SFT (0x1 << 3)
  210. #define I2S3_WLEN_SFT 1
  211. #define I2S3_WLEN_MASK 0x1
  212. #define I2S3_WLEN_MASK_SFT (0x1 << 1)
  213. #define I2S3_EN_SFT 0
  214. #define I2S3_EN_MASK 0x1
  215. #define I2S3_EN_MASK_SFT (0x1 << 0)
  216. /* AFE_I2S_CON3 */
  217. #define I2S4_LR_SWAP_SFT 31
  218. #define I2S4_LR_SWAP_MASK 0x1
  219. #define I2S4_LR_SWAP_MASK_SFT (0x1 << 31)
  220. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
  221. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
  222. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
  223. #define I2S4_32BIT_EN_SFT 13
  224. #define I2S4_32BIT_EN_MASK 0x1
  225. #define I2S4_32BIT_EN_MASK_SFT (0x1 << 13)
  226. #define I2S4_HD_EN_SFT 12
  227. #define I2S4_HD_EN_MASK 0x1
  228. #define I2S4_HD_EN_MASK_SFT (0x1 << 12)
  229. #define I2S4_OUT_MODE_SFT 8
  230. #define I2S4_OUT_MODE_MASK 0xf
  231. #define I2S4_OUT_MODE_MASK_SFT (0xf << 8)
  232. #define INV_LRCK_SFT 5
  233. #define INV_LRCK_MASK 0x1
  234. #define INV_LRCK_MASK_SFT (0x1 << 5)
  235. #define I2S4_FMT_SFT 3
  236. #define I2S4_FMT_MASK 0x1
  237. #define I2S4_FMT_MASK_SFT (0x1 << 3)
  238. #define I2S4_WLEN_SFT 1
  239. #define I2S4_WLEN_MASK 0x1
  240. #define I2S4_WLEN_MASK_SFT (0x1 << 1)
  241. #define I2S4_EN_SFT 0
  242. #define I2S4_EN_MASK 0x1
  243. #define I2S4_EN_MASK_SFT (0x1 << 0)
  244. /* AFE_I2S_CON4 */
  245. #define I2S5_LR_SWAP_SFT 31
  246. #define I2S5_LR_SWAP_MASK 0x1
  247. #define I2S5_LR_SWAP_MASK_SFT (0x1 << 31)
  248. #define I2S_LOOPBACK_SFT 20
  249. #define I2S_LOOPBACK_MASK 0x1
  250. #define I2S_LOOPBACK_MASK_SFT (0x1 << 20)
  251. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
  252. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
  253. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
  254. #define I2S5_32BIT_EN_SFT 13
  255. #define I2S5_32BIT_EN_MASK 0x1
  256. #define I2S5_32BIT_EN_MASK_SFT (0x1 << 13)
  257. #define I2S5_HD_EN_SFT 12
  258. #define I2S5_HD_EN_MASK 0x1
  259. #define I2S5_HD_EN_MASK_SFT (0x1 << 12)
  260. #define I2S5_OUT_MODE_SFT 8
  261. #define I2S5_OUT_MODE_MASK 0xf
  262. #define I2S5_OUT_MODE_MASK_SFT (0xf << 8)
  263. #define INV_LRCK_SFT 5
  264. #define INV_LRCK_MASK 0x1
  265. #define INV_LRCK_MASK_SFT (0x1 << 5)
  266. #define I2S5_FMT_SFT 3
  267. #define I2S5_FMT_MASK 0x1
  268. #define I2S5_FMT_MASK_SFT (0x1 << 3)
  269. #define I2S5_WLEN_SFT 1
  270. #define I2S5_WLEN_MASK 0x1
  271. #define I2S5_WLEN_MASK_SFT (0x1 << 1)
  272. #define I2S5_EN_SFT 0
  273. #define I2S5_EN_MASK 0x1
  274. #define I2S5_EN_MASK_SFT (0x1 << 0)
  275. /* AFE_CONNSYS_I2S_CON */
  276. #define BCK_NEG_EG_LATCH_SFT 30
  277. #define BCK_NEG_EG_LATCH_MASK 0x1
  278. #define BCK_NEG_EG_LATCH_MASK_SFT (0x1 << 30)
  279. #define BCK_INV_SFT 29
  280. #define BCK_INV_MASK 0x1
  281. #define BCK_INV_MASK_SFT (0x1 << 29)
  282. #define I2SIN_PAD_SEL_SFT 28
  283. #define I2SIN_PAD_SEL_MASK 0x1
  284. #define I2SIN_PAD_SEL_MASK_SFT (0x1 << 28)
  285. #define I2S_LOOPBACK_SFT 20
  286. #define I2S_LOOPBACK_MASK 0x1
  287. #define I2S_LOOPBACK_MASK_SFT (0x1 << 20)
  288. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
  289. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
  290. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
  291. #define I2S_MODE_SFT 8
  292. #define I2S_MODE_MASK 0xf
  293. #define I2S_MODE_MASK_SFT (0xf << 8)
  294. #define INV_PAD_CTRL_SFT 7
  295. #define INV_PAD_CTRL_MASK 0x1
  296. #define INV_PAD_CTRL_MASK_SFT (0x1 << 7)
  297. #define I2S_BYPSRC_SFT 6
  298. #define I2S_BYPSRC_MASK 0x1
  299. #define I2S_BYPSRC_MASK_SFT (0x1 << 6)
  300. #define INV_LRCK_SFT 5
  301. #define INV_LRCK_MASK 0x1
  302. #define INV_LRCK_MASK_SFT (0x1 << 5)
  303. #define I2S_FMT_SFT 3
  304. #define I2S_FMT_MASK 0x1
  305. #define I2S_FMT_MASK_SFT (0x1 << 3)
  306. #define I2S_SRC_SFT 2
  307. #define I2S_SRC_MASK 0x1
  308. #define I2S_SRC_MASK_SFT (0x1 << 2)
  309. #define I2S_WLEN_SFT 1
  310. #define I2S_WLEN_MASK 0x1
  311. #define I2S_WLEN_MASK_SFT (0x1 << 1)
  312. #define I2S_EN_SFT 0
  313. #define I2S_EN_MASK 0x1
  314. #define I2S_EN_MASK_SFT (0x1 << 0)
  315. /* AFE_I2S_CON6 */
  316. #define BCK_NEG_EG_LATCH_SFT 30
  317. #define BCK_NEG_EG_LATCH_MASK 0x1
  318. #define BCK_NEG_EG_LATCH_MASK_SFT (0x1 << 30)
  319. #define BCK_INV_SFT 29
  320. #define BCK_INV_MASK 0x1
  321. #define BCK_INV_MASK_SFT (0x1 << 29)
  322. #define I2S6_LOOPBACK_SFT 20
  323. #define I2S6_LOOPBACK_MASK 0x1
  324. #define I2S6_LOOPBACK_MASK_SFT (0x1 << 20)
  325. #define I2S6_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
  326. #define I2S6_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
  327. #define I2S6_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
  328. #define I2S6_HD_EN_SFT 12
  329. #define I2S6_HD_EN_MASK 0x1
  330. #define I2S6_HD_EN_MASK_SFT (0x1 << 12)
  331. #define I2S6_OUT_MODE_SFT 8
  332. #define I2S6_OUT_MODE_MASK 0xf
  333. #define I2S6_OUT_MODE_MASK_SFT (0xf << 8)
  334. #define I2S6_BYPSRC_SFT 6
  335. #define I2S6_BYPSRC_MASK 0x1
  336. #define I2S6_BYPSRC_MASK_SFT (0x1 << 6)
  337. #define INV_LRCK_SFT 5
  338. #define INV_LRCK_MASK 0x1
  339. #define INV_LRCK_MASK_SFT (0x1 << 5)
  340. #define I2S6_FMT_SFT 3
  341. #define I2S6_FMT_MASK 0x1
  342. #define I2S6_FMT_MASK_SFT (0x1 << 3)
  343. #define I2S6_SRC_SFT 2
  344. #define I2S6_SRC_MASK 0x1
  345. #define I2S6_SRC_MASK_SFT (0x1 << 2)
  346. #define I2S6_WLEN_SFT 1
  347. #define I2S6_WLEN_MASK 0x1
  348. #define I2S6_WLEN_MASK_SFT (0x1 << 1)
  349. #define I2S6_EN_SFT 0
  350. #define I2S6_EN_MASK 0x1
  351. #define I2S6_EN_MASK_SFT (0x1 << 0)
  352. /* AFE_I2S_CON7 */
  353. #define I2S7_LR_SWAP_SFT 31
  354. #define I2S7_LR_SWAP_MASK 0x1
  355. #define I2S7_LR_SWAP_MASK_SFT (0x1 << 31)
  356. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
  357. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
  358. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
  359. #define I2S7_32BIT_EN_SFT 13
  360. #define I2S7_32BIT_EN_MASK 0x1
  361. #define I2S7_32BIT_EN_MASK_SFT (0x1 << 13)
  362. #define I2S7_HD_EN_SFT 12
  363. #define I2S7_HD_EN_MASK 0x1
  364. #define I2S7_HD_EN_MASK_SFT (0x1 << 12)
  365. #define I2S7_OUT_MODE_SFT 8
  366. #define I2S7_OUT_MODE_MASK 0xf
  367. #define I2S7_OUT_MODE_MASK_SFT (0xf << 8)
  368. #define INV_LRCK_SFT 5
  369. #define INV_LRCK_MASK 0x1
  370. #define INV_LRCK_MASK_SFT (0x1 << 5)
  371. #define I2S7_FMT_SFT 3
  372. #define I2S7_FMT_MASK 0x1
  373. #define I2S7_FMT_MASK_SFT (0x1 << 3)
  374. #define I2S7_WLEN_SFT 1
  375. #define I2S7_WLEN_MASK 0x1
  376. #define I2S7_WLEN_MASK_SFT (0x1 << 1)
  377. #define I2S7_EN_SFT 0
  378. #define I2S7_EN_MASK 0x1
  379. #define I2S7_EN_MASK_SFT (0x1 << 0)
  380. /* AFE_I2S_CON8 */
  381. #define BCK_NEG_EG_LATCH_SFT 30
  382. #define BCK_NEG_EG_LATCH_MASK 0x1
  383. #define BCK_NEG_EG_LATCH_MASK_SFT (0x1 << 30)
  384. #define BCK_INV_SFT 29
  385. #define BCK_INV_MASK 0x1
  386. #define BCK_INV_MASK_SFT (0x1 << 29)
  387. #define I2S8_LOOPBACK_SFT 20
  388. #define I2S8_LOOPBACK_MASK 0x1
  389. #define I2S8_LOOPBACK_MASK_SFT (0x1 << 20)
  390. #define I2S8_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
  391. #define I2S8_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
  392. #define I2S8_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
  393. #define I2S8_HD_EN_SFT 12
  394. #define I2S8_HD_EN_MASK 0x1
  395. #define I2S8_HD_EN_MASK_SFT (0x1 << 12)
  396. #define I2S8_OUT_MODE_SFT 8
  397. #define I2S8_OUT_MODE_MASK 0xf
  398. #define I2S8_OUT_MODE_MASK_SFT (0xf << 8)
  399. #define I2S8_BYPSRC_SFT 6
  400. #define I2S8_BYPSRC_MASK 0x1
  401. #define I2S8_BYPSRC_MASK_SFT (0x1 << 6)
  402. #define INV_LRCK_SFT 5
  403. #define INV_LRCK_MASK 0x1
  404. #define INV_LRCK_MASK_SFT (0x1 << 5)
  405. #define I2S8_FMT_SFT 3
  406. #define I2S8_FMT_MASK 0x1
  407. #define I2S8_FMT_MASK_SFT (0x1 << 3)
  408. #define I2S8_SRC_SFT 2
  409. #define I2S8_SRC_MASK 0x1
  410. #define I2S8_SRC_MASK_SFT (0x1 << 2)
  411. #define I2S8_WLEN_SFT 1
  412. #define I2S8_WLEN_MASK 0x1
  413. #define I2S8_WLEN_MASK_SFT (0x1 << 1)
  414. #define I2S8_EN_SFT 0
  415. #define I2S8_EN_MASK 0x1
  416. #define I2S8_EN_MASK_SFT (0x1 << 0)
  417. /* AFE_I2S_CON9 */
  418. #define I2S9_LR_SWAP_SFT 31
  419. #define I2S9_LR_SWAP_MASK 0x1
  420. #define I2S9_LR_SWAP_MASK_SFT (0x1 << 31)
  421. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT 17
  422. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK 0x1
  423. #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT (0x1 << 17)
  424. #define I2S9_32BIT_EN_SFT 13
  425. #define I2S9_32BIT_EN_MASK 0x1
  426. #define I2S9_32BIT_EN_MASK_SFT (0x1 << 13)
  427. #define I2S9_HD_EN_SFT 12
  428. #define I2S9_HD_EN_MASK 0x1
  429. #define I2S9_HD_EN_MASK_SFT (0x1 << 12)
  430. #define I2S9_OUT_MODE_SFT 8
  431. #define I2S9_OUT_MODE_MASK 0xf
  432. #define I2S9_OUT_MODE_MASK_SFT (0xf << 8)
  433. #define INV_LRCK_SFT 5
  434. #define INV_LRCK_MASK 0x1
  435. #define INV_LRCK_MASK_SFT (0x1 << 5)
  436. #define I2S9_FMT_SFT 3
  437. #define I2S9_FMT_MASK 0x1
  438. #define I2S9_FMT_MASK_SFT (0x1 << 3)
  439. #define I2S9_WLEN_SFT 1
  440. #define I2S9_WLEN_MASK 0x1
  441. #define I2S9_WLEN_MASK_SFT (0x1 << 1)
  442. #define I2S9_EN_SFT 0
  443. #define I2S9_EN_MASK 0x1
  444. #define I2S9_EN_MASK_SFT (0x1 << 0)
  445. /* AFE_ASRC_2CH_CON2 */
  446. #define CHSET_O16BIT_SFT 19
  447. #define CHSET_O16BIT_MASK 0x1
  448. #define CHSET_O16BIT_MASK_SFT (0x1 << 19)
  449. #define CHSET_CLR_IIR_HISTORY_SFT 17
  450. #define CHSET_CLR_IIR_HISTORY_MASK 0x1
  451. #define CHSET_CLR_IIR_HISTORY_MASK_SFT (0x1 << 17)
  452. #define CHSET_IS_MONO_SFT 16
  453. #define CHSET_IS_MONO_MASK 0x1
  454. #define CHSET_IS_MONO_MASK_SFT (0x1 << 16)
  455. #define CHSET_IIR_EN_SFT 11
  456. #define CHSET_IIR_EN_MASK 0x1
  457. #define CHSET_IIR_EN_MASK_SFT (0x1 << 11)
  458. #define CHSET_IIR_STAGE_SFT 8
  459. #define CHSET_IIR_STAGE_MASK 0x7
  460. #define CHSET_IIR_STAGE_MASK_SFT (0x7 << 8)
  461. #define CHSET_STR_CLR_SFT 5
  462. #define CHSET_STR_CLR_MASK 0x1
  463. #define CHSET_STR_CLR_MASK_SFT (0x1 << 5)
  464. #define CHSET_ON_SFT 2
  465. #define CHSET_ON_MASK 0x1
  466. #define CHSET_ON_MASK_SFT (0x1 << 2)
  467. #define COEFF_SRAM_CTRL_SFT 1
  468. #define COEFF_SRAM_CTRL_MASK 0x1
  469. #define COEFF_SRAM_CTRL_MASK_SFT (0x1 << 1)
  470. #define ASM_ON_SFT 0
  471. #define ASM_ON_MASK 0x1
  472. #define ASM_ON_MASK_SFT (0x1 << 0)
  473. /* AFE_GAIN1_CON0 */
  474. #define GAIN1_SAMPLE_PER_STEP_SFT 8
  475. #define GAIN1_SAMPLE_PER_STEP_MASK 0xff
  476. #define GAIN1_SAMPLE_PER_STEP_MASK_SFT (0xff << 8)
  477. #define GAIN1_MODE_SFT 4
  478. #define GAIN1_MODE_MASK 0xf
  479. #define GAIN1_MODE_MASK_SFT (0xf << 4)
  480. #define GAIN1_ON_SFT 0
  481. #define GAIN1_ON_MASK 0x1
  482. #define GAIN1_ON_MASK_SFT (0x1 << 0)
  483. /* AFE_GAIN1_CON1 */
  484. #define GAIN1_TARGET_SFT 0
  485. #define GAIN1_TARGET_MASK 0xfffffff
  486. #define GAIN1_TARGET_MASK_SFT (0xfffffff << 0)
  487. /* AFE_GAIN2_CON0 */
  488. #define GAIN2_SAMPLE_PER_STEP_SFT 8
  489. #define GAIN2_SAMPLE_PER_STEP_MASK 0xff
  490. #define GAIN2_SAMPLE_PER_STEP_MASK_SFT (0xff << 8)
  491. #define GAIN2_MODE_SFT 4
  492. #define GAIN2_MODE_MASK 0xf
  493. #define GAIN2_MODE_MASK_SFT (0xf << 4)
  494. #define GAIN2_ON_SFT 0
  495. #define GAIN2_ON_MASK 0x1
  496. #define GAIN2_ON_MASK_SFT (0x1 << 0)
  497. /* AFE_GAIN2_CON1 */
  498. #define GAIN2_TARGET_SFT 0
  499. #define GAIN2_TARGET_MASK 0xfffffff
  500. #define GAIN2_TARGET_MASK_SFT (0xfffffff << 0)
  501. /* AFE_GAIN1_CUR */
  502. #define AFE_GAIN1_CUR_SFT 0
  503. #define AFE_GAIN1_CUR_MASK 0xfffffff
  504. #define AFE_GAIN1_CUR_MASK_SFT (0xfffffff << 0)
  505. /* AFE_GAIN2_CUR */
  506. #define AFE_GAIN2_CUR_SFT 0
  507. #define AFE_GAIN2_CUR_MASK 0xfffffff
  508. #define AFE_GAIN2_CUR_MASK_SFT (0xfffffff << 0)
  509. /* PCM_INTF_CON1 */
  510. #define PCM_FIX_VALUE_SEL_SFT 31
  511. #define PCM_FIX_VALUE_SEL_MASK 0x1
  512. #define PCM_FIX_VALUE_SEL_MASK_SFT (0x1 << 31)
  513. #define PCM_BUFFER_LOOPBACK_SFT 30
  514. #define PCM_BUFFER_LOOPBACK_MASK 0x1
  515. #define PCM_BUFFER_LOOPBACK_MASK_SFT (0x1 << 30)
  516. #define PCM_PARALLEL_LOOPBACK_SFT 29
  517. #define PCM_PARALLEL_LOOPBACK_MASK 0x1
  518. #define PCM_PARALLEL_LOOPBACK_MASK_SFT (0x1 << 29)
  519. #define PCM_SERIAL_LOOPBACK_SFT 28
  520. #define PCM_SERIAL_LOOPBACK_MASK 0x1
  521. #define PCM_SERIAL_LOOPBACK_MASK_SFT (0x1 << 28)
  522. #define PCM_DAI_PCM_LOOPBACK_SFT 27
  523. #define PCM_DAI_PCM_LOOPBACK_MASK 0x1
  524. #define PCM_DAI_PCM_LOOPBACK_MASK_SFT (0x1 << 27)
  525. #define PCM_I2S_PCM_LOOPBACK_SFT 26
  526. #define PCM_I2S_PCM_LOOPBACK_MASK 0x1
  527. #define PCM_I2S_PCM_LOOPBACK_MASK_SFT (0x1 << 26)
  528. #define PCM_SYNC_DELSEL_SFT 25
  529. #define PCM_SYNC_DELSEL_MASK 0x1
  530. #define PCM_SYNC_DELSEL_MASK_SFT (0x1 << 25)
  531. #define PCM_TX_LR_SWAP_SFT 24
  532. #define PCM_TX_LR_SWAP_MASK 0x1
  533. #define PCM_TX_LR_SWAP_MASK_SFT (0x1 << 24)
  534. #define PCM_SYNC_OUT_INV_SFT 23
  535. #define PCM_SYNC_OUT_INV_MASK 0x1
  536. #define PCM_SYNC_OUT_INV_MASK_SFT (0x1 << 23)
  537. #define PCM_BCLK_OUT_INV_SFT 22
  538. #define PCM_BCLK_OUT_INV_MASK 0x1
  539. #define PCM_BCLK_OUT_INV_MASK_SFT (0x1 << 22)
  540. #define PCM_SYNC_IN_INV_SFT 21
  541. #define PCM_SYNC_IN_INV_MASK 0x1
  542. #define PCM_SYNC_IN_INV_MASK_SFT (0x1 << 21)
  543. #define PCM_BCLK_IN_INV_SFT 20
  544. #define PCM_BCLK_IN_INV_MASK 0x1
  545. #define PCM_BCLK_IN_INV_MASK_SFT (0x1 << 20)
  546. #define PCM_TX_LCH_RPT_SFT 19
  547. #define PCM_TX_LCH_RPT_MASK 0x1
  548. #define PCM_TX_LCH_RPT_MASK_SFT (0x1 << 19)
  549. #define PCM_VBT_16K_MODE_SFT 18
  550. #define PCM_VBT_16K_MODE_MASK 0x1
  551. #define PCM_VBT_16K_MODE_MASK_SFT (0x1 << 18)
  552. #define PCM_EXT_MODEM_SFT 17
  553. #define PCM_EXT_MODEM_MASK 0x1
  554. #define PCM_EXT_MODEM_MASK_SFT (0x1 << 17)
  555. #define PCM_24BIT_SFT 16
  556. #define PCM_24BIT_MASK 0x1
  557. #define PCM_24BIT_MASK_SFT (0x1 << 16)
  558. #define PCM_WLEN_SFT 14
  559. #define PCM_WLEN_MASK 0x3
  560. #define PCM_WLEN_MASK_SFT (0x3 << 14)
  561. #define PCM_SYNC_LENGTH_SFT 9
  562. #define PCM_SYNC_LENGTH_MASK 0x1f
  563. #define PCM_SYNC_LENGTH_MASK_SFT (0x1f << 9)
  564. #define PCM_SYNC_TYPE_SFT 8
  565. #define PCM_SYNC_TYPE_MASK 0x1
  566. #define PCM_SYNC_TYPE_MASK_SFT (0x1 << 8)
  567. #define PCM_BT_MODE_SFT 7
  568. #define PCM_BT_MODE_MASK 0x1
  569. #define PCM_BT_MODE_MASK_SFT (0x1 << 7)
  570. #define PCM_BYP_ASRC_SFT 6
  571. #define PCM_BYP_ASRC_MASK 0x1
  572. #define PCM_BYP_ASRC_MASK_SFT (0x1 << 6)
  573. #define PCM_SLAVE_SFT 5
  574. #define PCM_SLAVE_MASK 0x1
  575. #define PCM_SLAVE_MASK_SFT (0x1 << 5)
  576. #define PCM_MODE_SFT 3
  577. #define PCM_MODE_MASK 0x3
  578. #define PCM_MODE_MASK_SFT (0x3 << 3)
  579. #define PCM_FMT_SFT 1
  580. #define PCM_FMT_MASK 0x3
  581. #define PCM_FMT_MASK_SFT (0x3 << 1)
  582. #define PCM_EN_SFT 0
  583. #define PCM_EN_MASK 0x1
  584. #define PCM_EN_MASK_SFT (0x1 << 0)
  585. /* PCM_INTF_CON2 */
  586. #define PCM1_TX_FIFO_OV_SFT 31
  587. #define PCM1_TX_FIFO_OV_MASK 0x1
  588. #define PCM1_TX_FIFO_OV_MASK_SFT (0x1 << 31)
  589. #define PCM1_RX_FIFO_OV_SFT 30
  590. #define PCM1_RX_FIFO_OV_MASK 0x1
  591. #define PCM1_RX_FIFO_OV_MASK_SFT (0x1 << 30)
  592. #define PCM2_TX_FIFO_OV_SFT 29
  593. #define PCM2_TX_FIFO_OV_MASK 0x1
  594. #define PCM2_TX_FIFO_OV_MASK_SFT (0x1 << 29)
  595. #define PCM2_RX_FIFO_OV_SFT 28
  596. #define PCM2_RX_FIFO_OV_MASK 0x1
  597. #define PCM2_RX_FIFO_OV_MASK_SFT (0x1 << 28)
  598. #define PCM1_SYNC_GLITCH_SFT 27
  599. #define PCM1_SYNC_GLITCH_MASK 0x1
  600. #define PCM1_SYNC_GLITCH_MASK_SFT (0x1 << 27)
  601. #define PCM2_SYNC_GLITCH_SFT 26
  602. #define PCM2_SYNC_GLITCH_MASK 0x1
  603. #define PCM2_SYNC_GLITCH_MASK_SFT (0x1 << 26)
  604. #define TX3_RCH_DBG_MODE_SFT 17
  605. #define TX3_RCH_DBG_MODE_MASK 0x1
  606. #define TX3_RCH_DBG_MODE_MASK_SFT (0x1 << 17)
  607. #define PCM1_PCM2_LOOPBACK_SFT 16
  608. #define PCM1_PCM2_LOOPBACK_MASK 0x1
  609. #define PCM1_PCM2_LOOPBACK_MASK_SFT (0x1 << 16)
  610. #define DAI_PCM_LOOPBACK_CH_SFT 14
  611. #define DAI_PCM_LOOPBACK_CH_MASK 0x3
  612. #define DAI_PCM_LOOPBACK_CH_MASK_SFT (0x3 << 14)
  613. #define I2S_PCM_LOOPBACK_CH_SFT 12
  614. #define I2S_PCM_LOOPBACK_CH_MASK 0x3
  615. #define I2S_PCM_LOOPBACK_CH_MASK_SFT (0x3 << 12)
  616. #define TX_FIX_VALUE_SFT 0
  617. #define TX_FIX_VALUE_MASK 0xff
  618. #define TX_FIX_VALUE_MASK_SFT (0xff << 0)
  619. /* PCM2_INTF_CON */
  620. #define PCM2_TX_FIX_VALUE_SFT 24
  621. #define PCM2_TX_FIX_VALUE_MASK 0xff
  622. #define PCM2_TX_FIX_VALUE_MASK_SFT (0xff << 24)
  623. #define PCM2_FIX_VALUE_SEL_SFT 23
  624. #define PCM2_FIX_VALUE_SEL_MASK 0x1
  625. #define PCM2_FIX_VALUE_SEL_MASK_SFT (0x1 << 23)
  626. #define PCM2_BUFFER_LOOPBACK_SFT 22
  627. #define PCM2_BUFFER_LOOPBACK_MASK 0x1
  628. #define PCM2_BUFFER_LOOPBACK_MASK_SFT (0x1 << 22)
  629. #define PCM2_PARALLEL_LOOPBACK_SFT 21
  630. #define PCM2_PARALLEL_LOOPBACK_MASK 0x1
  631. #define PCM2_PARALLEL_LOOPBACK_MASK_SFT (0x1 << 21)
  632. #define PCM2_SERIAL_LOOPBACK_SFT 20
  633. #define PCM2_SERIAL_LOOPBACK_MASK 0x1
  634. #define PCM2_SERIAL_LOOPBACK_MASK_SFT (0x1 << 20)
  635. #define PCM2_DAI_PCM_LOOPBACK_SFT 19
  636. #define PCM2_DAI_PCM_LOOPBACK_MASK 0x1
  637. #define PCM2_DAI_PCM_LOOPBACK_MASK_SFT (0x1 << 19)
  638. #define PCM2_I2S_PCM_LOOPBACK_SFT 18
  639. #define PCM2_I2S_PCM_LOOPBACK_MASK 0x1
  640. #define PCM2_I2S_PCM_LOOPBACK_MASK_SFT (0x1 << 18)
  641. #define PCM2_SYNC_DELSEL_SFT 17
  642. #define PCM2_SYNC_DELSEL_MASK 0x1
  643. #define PCM2_SYNC_DELSEL_MASK_SFT (0x1 << 17)
  644. #define PCM2_TX_LR_SWAP_SFT 16
  645. #define PCM2_TX_LR_SWAP_MASK 0x1
  646. #define PCM2_TX_LR_SWAP_MASK_SFT (0x1 << 16)
  647. #define PCM2_SYNC_IN_INV_SFT 15
  648. #define PCM2_SYNC_IN_INV_MASK 0x1
  649. #define PCM2_SYNC_IN_INV_MASK_SFT (0x1 << 15)
  650. #define PCM2_BCLK_IN_INV_SFT 14
  651. #define PCM2_BCLK_IN_INV_MASK 0x1
  652. #define PCM2_BCLK_IN_INV_MASK_SFT (0x1 << 14)
  653. #define PCM2_TX_LCH_RPT_SFT 13
  654. #define PCM2_TX_LCH_RPT_MASK 0x1
  655. #define PCM2_TX_LCH_RPT_MASK_SFT (0x1 << 13)
  656. #define PCM2_VBT_16K_MODE_SFT 12
  657. #define PCM2_VBT_16K_MODE_MASK 0x1
  658. #define PCM2_VBT_16K_MODE_MASK_SFT (0x1 << 12)
  659. #define PCM2_LOOPBACK_CH_SEL_SFT 10
  660. #define PCM2_LOOPBACK_CH_SEL_MASK 0x3
  661. #define PCM2_LOOPBACK_CH_SEL_MASK_SFT (0x3 << 10)
  662. #define PCM2_TX2_BT_MODE_SFT 8
  663. #define PCM2_TX2_BT_MODE_MASK 0x1
  664. #define PCM2_TX2_BT_MODE_MASK_SFT (0x1 << 8)
  665. #define PCM2_BT_MODE_SFT 7
  666. #define PCM2_BT_MODE_MASK 0x1
  667. #define PCM2_BT_MODE_MASK_SFT (0x1 << 7)
  668. #define PCM2_AFIFO_SFT 6
  669. #define PCM2_AFIFO_MASK 0x1
  670. #define PCM2_AFIFO_MASK_SFT (0x1 << 6)
  671. #define PCM2_WLEN_SFT 5
  672. #define PCM2_WLEN_MASK 0x1
  673. #define PCM2_WLEN_MASK_SFT (0x1 << 5)
  674. #define PCM2_MODE_SFT 3
  675. #define PCM2_MODE_MASK 0x3
  676. #define PCM2_MODE_MASK_SFT (0x3 << 3)
  677. #define PCM2_FMT_SFT 1
  678. #define PCM2_FMT_MASK 0x3
  679. #define PCM2_FMT_MASK_SFT (0x3 << 1)
  680. #define PCM2_EN_SFT 0
  681. #define PCM2_EN_MASK 0x1
  682. #define PCM2_EN_MASK_SFT (0x1 << 0)
  683. /* AFE_ADDA_MTKAIF_CFG0 */
  684. #define MTKAIF_RXIF_CLKINV_ADC_SFT 31
  685. #define MTKAIF_RXIF_CLKINV_ADC_MASK 0x1
  686. #define MTKAIF_RXIF_CLKINV_ADC_MASK_SFT (0x1 << 31)
  687. #define MTKAIF_RXIF_BYPASS_SRC_SFT 17
  688. #define MTKAIF_RXIF_BYPASS_SRC_MASK 0x1
  689. #define MTKAIF_RXIF_BYPASS_SRC_MASK_SFT (0x1 << 17)
  690. #define MTKAIF_RXIF_PROTOCOL2_SFT 16
  691. #define MTKAIF_RXIF_PROTOCOL2_MASK 0x1
  692. #define MTKAIF_RXIF_PROTOCOL2_MASK_SFT (0x1 << 16)
  693. #define MTKAIF_TXIF_BYPASS_SRC_SFT 5
  694. #define MTKAIF_TXIF_BYPASS_SRC_MASK 0x1
  695. #define MTKAIF_TXIF_BYPASS_SRC_MASK_SFT (0x1 << 5)
  696. #define MTKAIF_TXIF_PROTOCOL2_SFT 4
  697. #define MTKAIF_TXIF_PROTOCOL2_MASK 0x1
  698. #define MTKAIF_TXIF_PROTOCOL2_MASK_SFT (0x1 << 4)
  699. #define MTKAIF_TXIF_8TO5_SFT 2
  700. #define MTKAIF_TXIF_8TO5_MASK 0x1
  701. #define MTKAIF_TXIF_8TO5_MASK_SFT (0x1 << 2)
  702. #define MTKAIF_RXIF_8TO5_SFT 1
  703. #define MTKAIF_RXIF_8TO5_MASK 0x1
  704. #define MTKAIF_RXIF_8TO5_MASK_SFT (0x1 << 1)
  705. #define MTKAIF_IF_LOOPBACK1_SFT 0
  706. #define MTKAIF_IF_LOOPBACK1_MASK 0x1
  707. #define MTKAIF_IF_LOOPBACK1_MASK_SFT (0x1 << 0)
  708. /* AFE_ADDA_MTKAIF_RX_CFG2 */
  709. #define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_SFT 16
  710. #define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_MASK 0x1
  711. #define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_MASK_SFT (0x1 << 16)
  712. #define MTKAIF_RXIF_DELAY_CYCLE_SFT 12
  713. #define MTKAIF_RXIF_DELAY_CYCLE_MASK 0xf
  714. #define MTKAIF_RXIF_DELAY_CYCLE_MASK_SFT (0xf << 12)
  715. #define MTKAIF_RXIF_DELAY_DATA_SFT 8
  716. #define MTKAIF_RXIF_DELAY_DATA_MASK 0x1
  717. #define MTKAIF_RXIF_DELAY_DATA_MASK_SFT (0x1 << 8)
  718. #define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_SFT 4
  719. #define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_MASK 0x7
  720. #define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_MASK_SFT (0x7 << 4)
  721. /* AFE_ADDA_DL_SRC2_CON0 */
  722. #define DL_2_INPUT_MODE_CTL_SFT 28
  723. #define DL_2_INPUT_MODE_CTL_MASK 0xf
  724. #define DL_2_INPUT_MODE_CTL_MASK_SFT (0xf << 28)
  725. #define DL_2_CH1_SATURATION_EN_CTL_SFT 27
  726. #define DL_2_CH1_SATURATION_EN_CTL_MASK 0x1
  727. #define DL_2_CH1_SATURATION_EN_CTL_MASK_SFT (0x1 << 27)
  728. #define DL_2_CH2_SATURATION_EN_CTL_SFT 26
  729. #define DL_2_CH2_SATURATION_EN_CTL_MASK 0x1
  730. #define DL_2_CH2_SATURATION_EN_CTL_MASK_SFT (0x1 << 26)
  731. #define DL_2_OUTPUT_SEL_CTL_SFT 24
  732. #define DL_2_OUTPUT_SEL_CTL_MASK 0x3
  733. #define DL_2_OUTPUT_SEL_CTL_MASK_SFT (0x3 << 24)
  734. #define DL_2_FADEIN_0START_EN_SFT 16
  735. #define DL_2_FADEIN_0START_EN_MASK 0x3
  736. #define DL_2_FADEIN_0START_EN_MASK_SFT (0x3 << 16)
  737. #define DL_DISABLE_HW_CG_CTL_SFT 15
  738. #define DL_DISABLE_HW_CG_CTL_MASK 0x1
  739. #define DL_DISABLE_HW_CG_CTL_MASK_SFT (0x1 << 15)
  740. #define C_DATA_EN_SEL_CTL_PRE_SFT 14
  741. #define C_DATA_EN_SEL_CTL_PRE_MASK 0x1
  742. #define C_DATA_EN_SEL_CTL_PRE_MASK_SFT (0x1 << 14)
  743. #define DL_2_SIDE_TONE_ON_CTL_PRE_SFT 13
  744. #define DL_2_SIDE_TONE_ON_CTL_PRE_MASK 0x1
  745. #define DL_2_SIDE_TONE_ON_CTL_PRE_MASK_SFT (0x1 << 13)
  746. #define DL_2_MUTE_CH1_OFF_CTL_PRE_SFT 12
  747. #define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK 0x1
  748. #define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK_SFT (0x1 << 12)
  749. #define DL_2_MUTE_CH2_OFF_CTL_PRE_SFT 11
  750. #define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK 0x1
  751. #define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK_SFT (0x1 << 11)
  752. #define DL2_ARAMPSP_CTL_PRE_SFT 9
  753. #define DL2_ARAMPSP_CTL_PRE_MASK 0x3
  754. #define DL2_ARAMPSP_CTL_PRE_MASK_SFT (0x3 << 9)
  755. #define DL_2_IIRMODE_CTL_PRE_SFT 6
  756. #define DL_2_IIRMODE_CTL_PRE_MASK 0x7
  757. #define DL_2_IIRMODE_CTL_PRE_MASK_SFT (0x7 << 6)
  758. #define DL_2_VOICE_MODE_CTL_PRE_SFT 5
  759. #define DL_2_VOICE_MODE_CTL_PRE_MASK 0x1
  760. #define DL_2_VOICE_MODE_CTL_PRE_MASK_SFT (0x1 << 5)
  761. #define D2_2_MUTE_CH1_ON_CTL_PRE_SFT 4
  762. #define D2_2_MUTE_CH1_ON_CTL_PRE_MASK 0x1
  763. #define D2_2_MUTE_CH1_ON_CTL_PRE_MASK_SFT (0x1 << 4)
  764. #define D2_2_MUTE_CH2_ON_CTL_PRE_SFT 3
  765. #define D2_2_MUTE_CH2_ON_CTL_PRE_MASK 0x1
  766. #define D2_2_MUTE_CH2_ON_CTL_PRE_MASK_SFT (0x1 << 3)
  767. #define DL_2_IIR_ON_CTL_PRE_SFT 2
  768. #define DL_2_IIR_ON_CTL_PRE_MASK 0x1
  769. #define DL_2_IIR_ON_CTL_PRE_MASK_SFT (0x1 << 2)
  770. #define DL_2_GAIN_ON_CTL_PRE_SFT 1
  771. #define DL_2_GAIN_ON_CTL_PRE_MASK 0x1
  772. #define DL_2_GAIN_ON_CTL_PRE_MASK_SFT (0x1 << 1)
  773. #define DL_2_SRC_ON_TMP_CTL_PRE_SFT 0
  774. #define DL_2_SRC_ON_TMP_CTL_PRE_MASK 0x1
  775. #define DL_2_SRC_ON_TMP_CTL_PRE_MASK_SFT (0x1 << 0)
  776. /* AFE_ADDA_DL_SRC2_CON1 */
  777. #define DL_2_GAIN_CTL_PRE_SFT 16
  778. #define DL_2_GAIN_CTL_PRE_MASK 0xffff
  779. #define DL_2_GAIN_CTL_PRE_MASK_SFT (0xffff << 16)
  780. #define DL_2_GAIN_MODE_CTL_SFT 0
  781. #define DL_2_GAIN_MODE_CTL_MASK 0x1
  782. #define DL_2_GAIN_MODE_CTL_MASK_SFT (0x1 << 0)
  783. /* AFE_ADDA_UL_SRC_CON0 */
  784. #define ULCF_CFG_EN_CTL_SFT 31
  785. #define ULCF_CFG_EN_CTL_MASK 0x1
  786. #define ULCF_CFG_EN_CTL_MASK_SFT (0x1 << 31)
  787. #define UL_DMIC_PHASE_SEL_CH1_SFT 27
  788. #define UL_DMIC_PHASE_SEL_CH1_MASK 0x7
  789. #define UL_DMIC_PHASE_SEL_CH1_MASK_SFT (0x7 << 27)
  790. #define UL_DMIC_PHASE_SEL_CH2_SFT 24
  791. #define UL_DMIC_PHASE_SEL_CH2_MASK 0x7
  792. #define UL_DMIC_PHASE_SEL_CH2_MASK_SFT (0x7 << 24)
  793. #define UL_MODE_3P25M_CH2_CTL_SFT 22
  794. #define UL_MODE_3P25M_CH2_CTL_MASK 0x1
  795. #define UL_MODE_3P25M_CH2_CTL_MASK_SFT (0x1 << 22)
  796. #define UL_MODE_3P25M_CH1_CTL_SFT 21
  797. #define UL_MODE_3P25M_CH1_CTL_MASK 0x1
  798. #define UL_MODE_3P25M_CH1_CTL_MASK_SFT (0x1 << 21)
  799. #define UL_VOICE_MODE_CH1_CH2_CTL_SFT 17
  800. #define UL_VOICE_MODE_CH1_CH2_CTL_MASK 0x7
  801. #define UL_VOICE_MODE_CH1_CH2_CTL_MASK_SFT (0x7 << 17)
  802. #define UL_AP_DMIC_ON_SFT 16
  803. #define UL_AP_DMIC_ON_MASK 0x1
  804. #define UL_AP_DMIC_ON_MASK_SFT (0x1 << 16)
  805. #define DMIC_LOW_POWER_MODE_CTL_SFT 14
  806. #define DMIC_LOW_POWER_MODE_CTL_MASK 0x3
  807. #define DMIC_LOW_POWER_MODE_CTL_MASK_SFT (0x3 << 14)
  808. #define UL_DISABLE_HW_CG_CTL_SFT 12
  809. #define UL_DISABLE_HW_CG_CTL_MASK 0x1
  810. #define UL_DISABLE_HW_CG_CTL_MASK_SFT (0x1 << 12)
  811. #define UL_IIR_ON_TMP_CTL_SFT 10
  812. #define UL_IIR_ON_TMP_CTL_MASK 0x1
  813. #define UL_IIR_ON_TMP_CTL_MASK_SFT (0x1 << 10)
  814. #define UL_IIRMODE_CTL_SFT 7
  815. #define UL_IIRMODE_CTL_MASK 0x7
  816. #define UL_IIRMODE_CTL_MASK_SFT (0x7 << 7)
  817. #define DIGMIC_4P33M_SEL_SFT 6
  818. #define DIGMIC_4P33M_SEL_MASK 0x1
  819. #define DIGMIC_4P33M_SEL_MASK_SFT (0x1 << 6)
  820. #define DIGMIC_3P25M_1P625M_SEL_CTL_SFT 5
  821. #define DIGMIC_3P25M_1P625M_SEL_CTL_MASK 0x1
  822. #define DIGMIC_3P25M_1P625M_SEL_CTL_MASK_SFT (0x1 << 5)
  823. #define UL_LOOP_BACK_MODE_CTL_SFT 2
  824. #define UL_LOOP_BACK_MODE_CTL_MASK 0x1
  825. #define UL_LOOP_BACK_MODE_CTL_MASK_SFT (0x1 << 2)
  826. #define UL_SDM_3_LEVEL_CTL_SFT 1
  827. #define UL_SDM_3_LEVEL_CTL_MASK 0x1
  828. #define UL_SDM_3_LEVEL_CTL_MASK_SFT (0x1 << 1)
  829. #define UL_SRC_ON_TMP_CTL_SFT 0
  830. #define UL_SRC_ON_TMP_CTL_MASK 0x1
  831. #define UL_SRC_ON_TMP_CTL_MASK_SFT (0x1 << 0)
  832. /* AFE_ADDA_UL_SRC_CON1 */
  833. #define C_DAC_EN_CTL_SFT 27
  834. #define C_DAC_EN_CTL_MASK 0x1
  835. #define C_DAC_EN_CTL_MASK_SFT (0x1 << 27)
  836. #define C_MUTE_SW_CTL_SFT 26
  837. #define C_MUTE_SW_CTL_MASK 0x1
  838. #define C_MUTE_SW_CTL_MASK_SFT (0x1 << 26)
  839. #define ASDM_SRC_SEL_CTL_SFT 25
  840. #define ASDM_SRC_SEL_CTL_MASK 0x1
  841. #define ASDM_SRC_SEL_CTL_MASK_SFT (0x1 << 25)
  842. #define C_AMP_DIV_CH2_CTL_SFT 21
  843. #define C_AMP_DIV_CH2_CTL_MASK 0x7
  844. #define C_AMP_DIV_CH2_CTL_MASK_SFT (0x7 << 21)
  845. #define C_FREQ_DIV_CH2_CTL_SFT 16
  846. #define C_FREQ_DIV_CH2_CTL_MASK 0x1f
  847. #define C_FREQ_DIV_CH2_CTL_MASK_SFT (0x1f << 16)
  848. #define C_SINE_MODE_CH2_CTL_SFT 12
  849. #define C_SINE_MODE_CH2_CTL_MASK 0xf
  850. #define C_SINE_MODE_CH2_CTL_MASK_SFT (0xf << 12)
  851. #define C_AMP_DIV_CH1_CTL_SFT 9
  852. #define C_AMP_DIV_CH1_CTL_MASK 0x7
  853. #define C_AMP_DIV_CH1_CTL_MASK_SFT (0x7 << 9)
  854. #define C_FREQ_DIV_CH1_CTL_SFT 4
  855. #define C_FREQ_DIV_CH1_CTL_MASK 0x1f
  856. #define C_FREQ_DIV_CH1_CTL_MASK_SFT (0x1f << 4)
  857. #define C_SINE_MODE_CH1_CTL_SFT 0
  858. #define C_SINE_MODE_CH1_CTL_MASK 0xf
  859. #define C_SINE_MODE_CH1_CTL_MASK_SFT (0xf << 0)
  860. /* AFE_ADDA_TOP_CON0 */
  861. #define C_LOOP_BACK_MODE_CTL_SFT 12
  862. #define C_LOOP_BACK_MODE_CTL_MASK 0xf
  863. #define C_LOOP_BACK_MODE_CTL_MASK_SFT (0xf << 12)
  864. #define ADDA_UL_GAIN_MODE_SFT 8
  865. #define ADDA_UL_GAIN_MODE_MASK 0x3
  866. #define ADDA_UL_GAIN_MODE_MASK_SFT (0x3 << 8)
  867. #define C_EXT_ADC_CTL_SFT 0
  868. #define C_EXT_ADC_CTL_MASK 0x1
  869. #define C_EXT_ADC_CTL_MASK_SFT (0x1 << 0)
  870. /* AFE_ADDA_UL_DL_CON0 */
  871. #define AFE_ADDA_UL_LR_SWAP_SFT 31
  872. #define AFE_ADDA_UL_LR_SWAP_MASK 0x1
  873. #define AFE_ADDA_UL_LR_SWAP_MASK_SFT (0x1 << 31)
  874. #define AFE_ADDA_CKDIV_RST_SFT 30
  875. #define AFE_ADDA_CKDIV_RST_MASK 0x1
  876. #define AFE_ADDA_CKDIV_RST_MASK_SFT (0x1 << 30)
  877. #define AFE_ADDA_FIFO_AUTO_RST_SFT 29
  878. #define AFE_ADDA_FIFO_AUTO_RST_MASK 0x1
  879. #define AFE_ADDA_FIFO_AUTO_RST_MASK_SFT (0x1 << 29)
  880. #define AFE_ADDA_UL_FIFO_DIGMIC_TESTIN_SFT 21
  881. #define AFE_ADDA_UL_FIFO_DIGMIC_TESTIN_MASK 0x3
  882. #define AFE_ADDA_UL_FIFO_DIGMIC_TESTIN_MASK_SFT (0x3 << 21)
  883. #define AFE_ADDA_UL_FIFO_DIGMIC_WDATA_TESTEN_SFT 20
  884. #define AFE_ADDA_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK 0x1
  885. #define AFE_ADDA_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK_SFT (0x1 << 20)
  886. #define AFE_ADDA6_UL_LR_SWAP_SFT 15
  887. #define AFE_ADDA6_UL_LR_SWAP_MASK 0x1
  888. #define AFE_ADDA6_UL_LR_SWAP_MASK_SFT (0x1 << 15)
  889. #define AFE_ADDA6_CKDIV_RST_SFT 14
  890. #define AFE_ADDA6_CKDIV_RST_MASK 0x1
  891. #define AFE_ADDA6_CKDIV_RST_MASK_SFT (0x1 << 14)
  892. #define AFE_ADDA6_FIFO_AUTO_RST_SFT 13
  893. #define AFE_ADDA6_FIFO_AUTO_RST_MASK 0x1
  894. #define AFE_ADDA6_FIFO_AUTO_RST_MASK_SFT (0x1 << 13)
  895. #define AFE_ADDA6_UL_FIFO_DIGMIC_TESTIN_SFT 5
  896. #define AFE_ADDA6_UL_FIFO_DIGMIC_TESTIN_MASK 0x3
  897. #define AFE_ADDA6_UL_FIFO_DIGMIC_TESTIN_MASK_SFT (0x3 << 5)
  898. #define AFE_ADDA6_UL_FIFO_DIGMIC_WDATA_TESTEN_SFT 4
  899. #define AFE_ADDA6_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK 0x1
  900. #define AFE_ADDA6_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK_SFT (0x1 << 4)
  901. #define ADDA_AFE_ON_SFT 0
  902. #define ADDA_AFE_ON_MASK 0x1
  903. #define ADDA_AFE_ON_MASK_SFT (0x1 << 0)
  904. /* AFE_SIDETONE_CON0 */
  905. #define R_RDY_SFT 30
  906. #define R_RDY_MASK 0x1
  907. #define R_RDY_MASK_SFT (0x1 << 30)
  908. #define W_RDY_SFT 29
  909. #define W_RDY_MASK 0x1
  910. #define W_RDY_MASK_SFT (0x1 << 29)
  911. #define R_W_EN_SFT 25
  912. #define R_W_EN_MASK 0x1
  913. #define R_W_EN_MASK_SFT (0x1 << 25)
  914. #define R_W_SEL_SFT 24
  915. #define R_W_SEL_MASK 0x1
  916. #define R_W_SEL_MASK_SFT (0x1 << 24)
  917. #define SEL_CH2_SFT 23
  918. #define SEL_CH2_MASK 0x1
  919. #define SEL_CH2_MASK_SFT (0x1 << 23)
  920. #define SIDE_TONE_COEFFICIENT_ADDR_SFT 16
  921. #define SIDE_TONE_COEFFICIENT_ADDR_MASK 0x1f
  922. #define SIDE_TONE_COEFFICIENT_ADDR_MASK_SFT (0x1f << 16)
  923. #define SIDE_TONE_COEFFICIENT_SFT 0
  924. #define SIDE_TONE_COEFFICIENT_MASK 0xffff
  925. #define SIDE_TONE_COEFFICIENT_MASK_SFT (0xffff << 0)
  926. /* AFE_SIDETONE_COEFF */
  927. #define SIDE_TONE_COEFF_SFT 0
  928. #define SIDE_TONE_COEFF_MASK 0xffff
  929. #define SIDE_TONE_COEFF_MASK_SFT (0xffff << 0)
  930. /* AFE_SIDETONE_CON1 */
  931. #define STF_BYPASS_MODE_SFT 31
  932. #define STF_BYPASS_MODE_MASK 0x1
  933. #define STF_BYPASS_MODE_MASK_SFT (0x1 << 31)
  934. #define STF_BYPASS_MODE_O28_O29_SFT 30
  935. #define STF_BYPASS_MODE_O28_O29_MASK 0x1
  936. #define STF_BYPASS_MODE_O28_O29_MASK_SFT (0x1 << 30)
  937. #define STF_BYPASS_MODE_I2S4_SFT 29
  938. #define STF_BYPASS_MODE_I2S4_MASK 0x1
  939. #define STF_BYPASS_MODE_I2S4_MASK_SFT (0x1 << 29)
  940. #define STF_BYPASS_MODE_I2S5_SFT 28
  941. #define STF_BYPASS_MODE_I2S5_MASK 0x1
  942. #define STF_BYPASS_MODE_I2S5_MASK_SFT (0x1 << 28)
  943. #define STF_BYPASS_MODE_DL3_SFT 27
  944. #define STF_BYPASS_MODE_DL3_MASK 0x1
  945. #define STF_BYPASS_MODE_DL3_MASK_SFT (0x1 << 27)
  946. #define STF_BYPASS_MODE_I2S7_SFT 26
  947. #define STF_BYPASS_MODE_I2S7_MASK 0x1
  948. #define STF_BYPASS_MODE_I2S7_MASK_SFT (0x1 << 26)
  949. #define STF_BYPASS_MODE_I2S9_SFT 25
  950. #define STF_BYPASS_MODE_I2S9_MASK 0x1
  951. #define STF_BYPASS_MODE_I2S9_MASK_SFT (0x1 << 25)
  952. #define STF_O19O20_OUT_EN_SEL_SFT 13
  953. #define STF_O19O20_OUT_EN_SEL_MASK 0x1
  954. #define STF_O19O20_OUT_EN_SEL_MASK_SFT (0x1 << 13)
  955. #define STF_SOURCE_FROM_O19O20_SFT 12
  956. #define STF_SOURCE_FROM_O19O20_MASK 0x1
  957. #define STF_SOURCE_FROM_O19O20_MASK_SFT (0x1 << 12)
  958. #define SIDE_TONE_ON_SFT 8
  959. #define SIDE_TONE_ON_MASK 0x1
  960. #define SIDE_TONE_ON_MASK_SFT (0x1 << 8)
  961. #define SIDE_TONE_HALF_TAP_NUM_SFT 0
  962. #define SIDE_TONE_HALF_TAP_NUM_MASK 0x3f
  963. #define SIDE_TONE_HALF_TAP_NUM_MASK_SFT (0x3f << 0)
  964. /* AFE_SIDETONE_GAIN */
  965. #define POSITIVE_GAIN_SFT 16
  966. #define POSITIVE_GAIN_MASK 0x7
  967. #define POSITIVE_GAIN_MASK_SFT (0x7 << 16)
  968. #define SIDE_TONE_GAIN_SFT 0
  969. #define SIDE_TONE_GAIN_MASK 0xffff
  970. #define SIDE_TONE_GAIN_MASK_SFT (0xffff << 0)
  971. /* AFE_ADDA_DL_SDM_DCCOMP_CON */
  972. #define USE_3RD_SDM_SFT 28
  973. #define USE_3RD_SDM_MASK 0x1
  974. #define USE_3RD_SDM_MASK_SFT (0x1 << 28)
  975. #define DL_FIFO_START_POINT_SFT 24
  976. #define DL_FIFO_START_POINT_MASK 0x7
  977. #define DL_FIFO_START_POINT_MASK_SFT (0x7 << 24)
  978. #define DL_FIFO_SWAP_SFT 20
  979. #define DL_FIFO_SWAP_MASK 0x1
  980. #define DL_FIFO_SWAP_MASK_SFT (0x1 << 20)
  981. #define C_AUDSDM1ORDSELECT_CTL_SFT 19
  982. #define C_AUDSDM1ORDSELECT_CTL_MASK 0x1
  983. #define C_AUDSDM1ORDSELECT_CTL_MASK_SFT (0x1 << 19)
  984. #define C_SDM7BITSEL_CTL_SFT 18
  985. #define C_SDM7BITSEL_CTL_MASK 0x1
  986. #define C_SDM7BITSEL_CTL_MASK_SFT (0x1 << 18)
  987. #define GAIN_AT_SDM_RST_PRE_CTL_SFT 15
  988. #define GAIN_AT_SDM_RST_PRE_CTL_MASK 0x1
  989. #define GAIN_AT_SDM_RST_PRE_CTL_MASK_SFT (0x1 << 15)
  990. #define DL_DCM_AUTO_IDLE_EN_SFT 14
  991. #define DL_DCM_AUTO_IDLE_EN_MASK 0x1
  992. #define DL_DCM_AUTO_IDLE_EN_MASK_SFT (0x1 << 14)
  993. #define AFE_DL_SRC_DCM_EN_SFT 13
  994. #define AFE_DL_SRC_DCM_EN_MASK 0x1
  995. #define AFE_DL_SRC_DCM_EN_MASK_SFT (0x1 << 13)
  996. #define AFE_DL_POST_SRC_DCM_EN_SFT 12
  997. #define AFE_DL_POST_SRC_DCM_EN_MASK 0x1
  998. #define AFE_DL_POST_SRC_DCM_EN_MASK_SFT (0x1 << 12)
  999. #define AUD_SDM_MONO_SFT 9
  1000. #define AUD_SDM_MONO_MASK 0x1
  1001. #define AUD_SDM_MONO_MASK_SFT (0x1 << 9)
  1002. #define AUD_DC_COMP_EN_SFT 8
  1003. #define AUD_DC_COMP_EN_MASK 0x1
  1004. #define AUD_DC_COMP_EN_MASK_SFT (0x1 << 8)
  1005. #define ATTGAIN_CTL_SFT 0
  1006. #define ATTGAIN_CTL_MASK 0x3f
  1007. #define ATTGAIN_CTL_MASK_SFT (0x3f << 0)
  1008. /* AFE_SINEGEN_CON0 */
  1009. #define DAC_EN_SFT 26
  1010. #define DAC_EN_MASK 0x1
  1011. #define DAC_EN_MASK_SFT (0x1 << 26)
  1012. #define MUTE_SW_CH2_SFT 25
  1013. #define MUTE_SW_CH2_MASK 0x1
  1014. #define MUTE_SW_CH2_MASK_SFT (0x1 << 25)
  1015. #define MUTE_SW_CH1_SFT 24
  1016. #define MUTE_SW_CH1_MASK 0x1
  1017. #define MUTE_SW_CH1_MASK_SFT (0x1 << 24)
  1018. #define SINE_MODE_CH2_SFT 20
  1019. #define SINE_MODE_CH2_MASK 0xf
  1020. #define SINE_MODE_CH2_MASK_SFT (0xf << 20)
  1021. #define AMP_DIV_CH2_SFT 17
  1022. #define AMP_DIV_CH2_MASK 0x7
  1023. #define AMP_DIV_CH2_MASK_SFT (0x7 << 17)
  1024. #define FREQ_DIV_CH2_SFT 12
  1025. #define FREQ_DIV_CH2_MASK 0x1f
  1026. #define FREQ_DIV_CH2_MASK_SFT (0x1f << 12)
  1027. #define SINE_MODE_CH1_SFT 8
  1028. #define SINE_MODE_CH1_MASK 0xf
  1029. #define SINE_MODE_CH1_MASK_SFT (0xf << 8)
  1030. #define AMP_DIV_CH1_SFT 5
  1031. #define AMP_DIV_CH1_MASK 0x7
  1032. #define AMP_DIV_CH1_MASK_SFT (0x7 << 5)
  1033. #define FREQ_DIV_CH1_SFT 0
  1034. #define FREQ_DIV_CH1_MASK 0x1f
  1035. #define FREQ_DIV_CH1_MASK_SFT (0x1f << 0)
  1036. /* AFE_SINEGEN_CON2 */
  1037. #define INNER_LOOP_BACK_MODE_SFT 0
  1038. #define INNER_LOOP_BACK_MODE_MASK 0x3f
  1039. #define INNER_LOOP_BACK_MODE_MASK_SFT (0x3f << 0)
  1040. /* AFE_HD_ENGEN_ENABLE */
  1041. #define AFE_24M_ON_SFT 1
  1042. #define AFE_24M_ON_MASK 0x1
  1043. #define AFE_24M_ON_MASK_SFT (0x1 << 1)
  1044. #define AFE_22M_ON_SFT 0
  1045. #define AFE_22M_ON_MASK 0x1
  1046. #define AFE_22M_ON_MASK_SFT (0x1 << 0)
  1047. /* AFE_ADDA_DL_NLE_FIFO_MON */
  1048. #define DL_NLE_FIFO_WBIN_SFT 8
  1049. #define DL_NLE_FIFO_WBIN_MASK 0xf
  1050. #define DL_NLE_FIFO_WBIN_MASK_SFT (0xf << 8)
  1051. #define DL_NLE_FIFO_RBIN_SFT 4
  1052. #define DL_NLE_FIFO_RBIN_MASK 0xf
  1053. #define DL_NLE_FIFO_RBIN_MASK_SFT (0xf << 4)
  1054. #define DL_NLE_FIFO_RDACTIVE_SFT 3
  1055. #define DL_NLE_FIFO_RDACTIVE_MASK 0x1
  1056. #define DL_NLE_FIFO_RDACTIVE_MASK_SFT (0x1 << 3)
  1057. #define DL_NLE_FIFO_STARTRD_SFT 2
  1058. #define DL_NLE_FIFO_STARTRD_MASK 0x1
  1059. #define DL_NLE_FIFO_STARTRD_MASK_SFT (0x1 << 2)
  1060. #define DL_NLE_FIFO_RD_EMPTY_SFT 1
  1061. #define DL_NLE_FIFO_RD_EMPTY_MASK 0x1
  1062. #define DL_NLE_FIFO_RD_EMPTY_MASK_SFT (0x1 << 1)
  1063. #define DL_NLE_FIFO_WR_FULL_SFT 0
  1064. #define DL_NLE_FIFO_WR_FULL_MASK 0x1
  1065. #define DL_NLE_FIFO_WR_FULL_MASK_SFT (0x1 << 0)
  1066. /* AFE_DL1_CON0 */
  1067. #define DL1_MODE_SFT 24
  1068. #define DL1_MODE_MASK 0xf
  1069. #define DL1_MODE_MASK_SFT (0xf << 24)
  1070. #define DL1_MINLEN_SFT 20
  1071. #define DL1_MINLEN_MASK 0xf
  1072. #define DL1_MINLEN_MASK_SFT (0xf << 20)
  1073. #define DL1_MAXLEN_SFT 16
  1074. #define DL1_MAXLEN_MASK 0xf
  1075. #define DL1_MAXLEN_MASK_SFT (0xf << 16)
  1076. #define DL1_SW_CLEAR_BUF_EMPTY_SFT 15
  1077. #define DL1_SW_CLEAR_BUF_EMPTY_MASK 0x1
  1078. #define DL1_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15)
  1079. #define DL1_PBUF_SIZE_SFT 12
  1080. #define DL1_PBUF_SIZE_MASK 0x3
  1081. #define DL1_PBUF_SIZE_MASK_SFT (0x3 << 12)
  1082. #define DL1_MONO_SFT 8
  1083. #define DL1_MONO_MASK 0x1
  1084. #define DL1_MONO_MASK_SFT (0x1 << 8)
  1085. #define DL1_NORMAL_MODE_SFT 5
  1086. #define DL1_NORMAL_MODE_MASK 0x1
  1087. #define DL1_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1088. #define DL1_HALIGN_SFT 4
  1089. #define DL1_HALIGN_MASK 0x1
  1090. #define DL1_HALIGN_MASK_SFT (0x1 << 4)
  1091. #define DL1_HD_MODE_SFT 0
  1092. #define DL1_HD_MODE_MASK 0x3
  1093. #define DL1_HD_MODE_MASK_SFT (0x3 << 0)
  1094. /* AFE_DL2_CON0 */
  1095. #define DL2_MODE_SFT 24
  1096. #define DL2_MODE_MASK 0xf
  1097. #define DL2_MODE_MASK_SFT (0xf << 24)
  1098. #define DL2_MINLEN_SFT 20
  1099. #define DL2_MINLEN_MASK 0xf
  1100. #define DL2_MINLEN_MASK_SFT (0xf << 20)
  1101. #define DL2_MAXLEN_SFT 16
  1102. #define DL2_MAXLEN_MASK 0xf
  1103. #define DL2_MAXLEN_MASK_SFT (0xf << 16)
  1104. #define DL2_SW_CLEAR_BUF_EMPTY_SFT 15
  1105. #define DL2_SW_CLEAR_BUF_EMPTY_MASK 0x1
  1106. #define DL2_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15)
  1107. #define DL2_PBUF_SIZE_SFT 12
  1108. #define DL2_PBUF_SIZE_MASK 0x3
  1109. #define DL2_PBUF_SIZE_MASK_SFT (0x3 << 12)
  1110. #define DL2_MONO_SFT 8
  1111. #define DL2_MONO_MASK 0x1
  1112. #define DL2_MONO_MASK_SFT (0x1 << 8)
  1113. #define DL2_NORMAL_MODE_SFT 5
  1114. #define DL2_NORMAL_MODE_MASK 0x1
  1115. #define DL2_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1116. #define DL2_HALIGN_SFT 4
  1117. #define DL2_HALIGN_MASK 0x1
  1118. #define DL2_HALIGN_MASK_SFT (0x1 << 4)
  1119. #define DL2_HD_MODE_SFT 0
  1120. #define DL2_HD_MODE_MASK 0x3
  1121. #define DL2_HD_MODE_MASK_SFT (0x3 << 0)
  1122. /* AFE_DL3_CON0 */
  1123. #define DL3_MODE_SFT 24
  1124. #define DL3_MODE_MASK 0xf
  1125. #define DL3_MODE_MASK_SFT (0xf << 24)
  1126. #define DL3_MINLEN_SFT 20
  1127. #define DL3_MINLEN_MASK 0xf
  1128. #define DL3_MINLEN_MASK_SFT (0xf << 20)
  1129. #define DL3_MAXLEN_SFT 16
  1130. #define DL3_MAXLEN_MASK 0xf
  1131. #define DL3_MAXLEN_MASK_SFT (0xf << 16)
  1132. #define DL3_SW_CLEAR_BUF_EMPTY_SFT 15
  1133. #define DL3_SW_CLEAR_BUF_EMPTY_MASK 0x1
  1134. #define DL3_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15)
  1135. #define DL3_PBUF_SIZE_SFT 12
  1136. #define DL3_PBUF_SIZE_MASK 0x3
  1137. #define DL3_PBUF_SIZE_MASK_SFT (0x3 << 12)
  1138. #define DL3_MONO_SFT 8
  1139. #define DL3_MONO_MASK 0x1
  1140. #define DL3_MONO_MASK_SFT (0x1 << 8)
  1141. #define DL3_NORMAL_MODE_SFT 5
  1142. #define DL3_NORMAL_MODE_MASK 0x1
  1143. #define DL3_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1144. #define DL3_HALIGN_SFT 4
  1145. #define DL3_HALIGN_MASK 0x1
  1146. #define DL3_HALIGN_MASK_SFT (0x1 << 4)
  1147. #define DL3_HD_MODE_SFT 0
  1148. #define DL3_HD_MODE_MASK 0x3
  1149. #define DL3_HD_MODE_MASK_SFT (0x3 << 0)
  1150. /* AFE_DL4_CON0 */
  1151. #define DL4_MODE_SFT 24
  1152. #define DL4_MODE_MASK 0xf
  1153. #define DL4_MODE_MASK_SFT (0xf << 24)
  1154. #define DL4_MINLEN_SFT 20
  1155. #define DL4_MINLEN_MASK 0xf
  1156. #define DL4_MINLEN_MASK_SFT (0xf << 20)
  1157. #define DL4_MAXLEN_SFT 16
  1158. #define DL4_MAXLEN_MASK 0xf
  1159. #define DL4_MAXLEN_MASK_SFT (0xf << 16)
  1160. #define DL4_SW_CLEAR_BUF_EMPTY_SFT 15
  1161. #define DL4_SW_CLEAR_BUF_EMPTY_MASK 0x1
  1162. #define DL4_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15)
  1163. #define DL4_PBUF_SIZE_SFT 12
  1164. #define DL4_PBUF_SIZE_MASK 0x3
  1165. #define DL4_PBUF_SIZE_MASK_SFT (0x3 << 12)
  1166. #define DL4_MONO_SFT 8
  1167. #define DL4_MONO_MASK 0x1
  1168. #define DL4_MONO_MASK_SFT (0x1 << 8)
  1169. #define DL4_NORMAL_MODE_SFT 5
  1170. #define DL4_NORMAL_MODE_MASK 0x1
  1171. #define DL4_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1172. #define DL4_HALIGN_SFT 4
  1173. #define DL4_HALIGN_MASK 0x1
  1174. #define DL4_HALIGN_MASK_SFT (0x1 << 4)
  1175. #define DL4_HD_MODE_SFT 0
  1176. #define DL4_HD_MODE_MASK 0x3
  1177. #define DL4_HD_MODE_MASK_SFT (0x3 << 0)
  1178. /* AFE_DL5_CON0 */
  1179. #define DL5_MODE_SFT 24
  1180. #define DL5_MODE_MASK 0xf
  1181. #define DL5_MODE_MASK_SFT (0xf << 24)
  1182. #define DL5_MINLEN_SFT 20
  1183. #define DL5_MINLEN_MASK 0xf
  1184. #define DL5_MINLEN_MASK_SFT (0xf << 20)
  1185. #define DL5_MAXLEN_SFT 16
  1186. #define DL5_MAXLEN_MASK 0xf
  1187. #define DL5_MAXLEN_MASK_SFT (0xf << 16)
  1188. #define DL5_SW_CLEAR_BUF_EMPTY_SFT 15
  1189. #define DL5_SW_CLEAR_BUF_EMPTY_MASK 0x1
  1190. #define DL5_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15)
  1191. #define DL5_PBUF_SIZE_SFT 12
  1192. #define DL5_PBUF_SIZE_MASK 0x3
  1193. #define DL5_PBUF_SIZE_MASK_SFT (0x3 << 12)
  1194. #define DL5_MONO_SFT 8
  1195. #define DL5_MONO_MASK 0x1
  1196. #define DL5_MONO_MASK_SFT (0x1 << 8)
  1197. #define DL5_NORMAL_MODE_SFT 5
  1198. #define DL5_NORMAL_MODE_MASK 0x1
  1199. #define DL5_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1200. #define DL5_HALIGN_SFT 4
  1201. #define DL5_HALIGN_MASK 0x1
  1202. #define DL5_HALIGN_MASK_SFT (0x1 << 4)
  1203. #define DL5_HD_MODE_SFT 0
  1204. #define DL5_HD_MODE_MASK 0x3
  1205. #define DL5_HD_MODE_MASK_SFT (0x3 << 0)
  1206. /* AFE_DL6_CON0 */
  1207. #define DL6_MODE_SFT 24
  1208. #define DL6_MODE_MASK 0xf
  1209. #define DL6_MODE_MASK_SFT (0xf << 24)
  1210. #define DL6_MINLEN_SFT 20
  1211. #define DL6_MINLEN_MASK 0xf
  1212. #define DL6_MINLEN_MASK_SFT (0xf << 20)
  1213. #define DL6_MAXLEN_SFT 16
  1214. #define DL6_MAXLEN_MASK 0xf
  1215. #define DL6_MAXLEN_MASK_SFT (0xf << 16)
  1216. #define DL6_SW_CLEAR_BUF_EMPTY_SFT 15
  1217. #define DL6_SW_CLEAR_BUF_EMPTY_MASK 0x1
  1218. #define DL6_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15)
  1219. #define DL6_PBUF_SIZE_SFT 12
  1220. #define DL6_PBUF_SIZE_MASK 0x3
  1221. #define DL6_PBUF_SIZE_MASK_SFT (0x3 << 12)
  1222. #define DL6_MONO_SFT 8
  1223. #define DL6_MONO_MASK 0x1
  1224. #define DL6_MONO_MASK_SFT (0x1 << 8)
  1225. #define DL6_NORMAL_MODE_SFT 5
  1226. #define DL6_NORMAL_MODE_MASK 0x1
  1227. #define DL6_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1228. #define DL6_HALIGN_SFT 4
  1229. #define DL6_HALIGN_MASK 0x1
  1230. #define DL6_HALIGN_MASK_SFT (0x1 << 4)
  1231. #define DL6_HD_MODE_SFT 0
  1232. #define DL6_HD_MODE_MASK 0x3
  1233. #define DL6_HD_MODE_MASK_SFT (0x3 << 0)
  1234. /* AFE_DL7_CON0 */
  1235. #define DL7_MODE_SFT 24
  1236. #define DL7_MODE_MASK 0xf
  1237. #define DL7_MODE_MASK_SFT (0xf << 24)
  1238. #define DL7_MINLEN_SFT 20
  1239. #define DL7_MINLEN_MASK 0xf
  1240. #define DL7_MINLEN_MASK_SFT (0xf << 20)
  1241. #define DL7_MAXLEN_SFT 16
  1242. #define DL7_MAXLEN_MASK 0xf
  1243. #define DL7_MAXLEN_MASK_SFT (0xf << 16)
  1244. #define DL7_SW_CLEAR_BUF_EMPTY_SFT 15
  1245. #define DL7_SW_CLEAR_BUF_EMPTY_MASK 0x1
  1246. #define DL7_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15)
  1247. #define DL7_PBUF_SIZE_SFT 12
  1248. #define DL7_PBUF_SIZE_MASK 0x3
  1249. #define DL7_PBUF_SIZE_MASK_SFT (0x3 << 12)
  1250. #define DL7_MONO_SFT 8
  1251. #define DL7_MONO_MASK 0x1
  1252. #define DL7_MONO_MASK_SFT (0x1 << 8)
  1253. #define DL7_NORMAL_MODE_SFT 5
  1254. #define DL7_NORMAL_MODE_MASK 0x1
  1255. #define DL7_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1256. #define DL7_HALIGN_SFT 4
  1257. #define DL7_HALIGN_MASK 0x1
  1258. #define DL7_HALIGN_MASK_SFT (0x1 << 4)
  1259. #define DL7_HD_MODE_SFT 0
  1260. #define DL7_HD_MODE_MASK 0x3
  1261. #define DL7_HD_MODE_MASK_SFT (0x3 << 0)
  1262. /* AFE_DL8_CON0 */
  1263. #define DL8_MODE_SFT 24
  1264. #define DL8_MODE_MASK 0xf
  1265. #define DL8_MODE_MASK_SFT (0xf << 24)
  1266. #define DL8_MINLEN_SFT 20
  1267. #define DL8_MINLEN_MASK 0xf
  1268. #define DL8_MINLEN_MASK_SFT (0xf << 20)
  1269. #define DL8_MAXLEN_SFT 16
  1270. #define DL8_MAXLEN_MASK 0xf
  1271. #define DL8_MAXLEN_MASK_SFT (0xf << 16)
  1272. #define DL8_SW_CLEAR_BUF_EMPTY_SFT 15
  1273. #define DL8_SW_CLEAR_BUF_EMPTY_MASK 0x1
  1274. #define DL8_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15)
  1275. #define DL8_PBUF_SIZE_SFT 12
  1276. #define DL8_PBUF_SIZE_MASK 0x3
  1277. #define DL8_PBUF_SIZE_MASK_SFT (0x3 << 12)
  1278. #define DL8_MONO_SFT 8
  1279. #define DL8_MONO_MASK 0x1
  1280. #define DL8_MONO_MASK_SFT (0x1 << 8)
  1281. #define DL8_NORMAL_MODE_SFT 5
  1282. #define DL8_NORMAL_MODE_MASK 0x1
  1283. #define DL8_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1284. #define DL8_HALIGN_SFT 4
  1285. #define DL8_HALIGN_MASK 0x1
  1286. #define DL8_HALIGN_MASK_SFT (0x1 << 4)
  1287. #define DL8_HD_MODE_SFT 0
  1288. #define DL8_HD_MODE_MASK 0x3
  1289. #define DL8_HD_MODE_MASK_SFT (0x3 << 0)
  1290. /* AFE_DL9_CON0 */
  1291. #define DL9_MODE_SFT 24
  1292. #define DL9_MODE_MASK 0xf
  1293. #define DL9_MODE_MASK_SFT (0xf << 24)
  1294. #define DL9_MINLEN_SFT 20
  1295. #define DL9_MINLEN_MASK 0xf
  1296. #define DL9_MINLEN_MASK_SFT (0xf << 20)
  1297. #define DL9_MAXLEN_SFT 16
  1298. #define DL9_MAXLEN_MASK 0xf
  1299. #define DL9_MAXLEN_MASK_SFT (0xf << 16)
  1300. #define DL9_SW_CLEAR_BUF_EMPTY_SFT 15
  1301. #define DL9_SW_CLEAR_BUF_EMPTY_MASK 0x1
  1302. #define DL9_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15)
  1303. #define DL9_PBUF_SIZE_SFT 12
  1304. #define DL9_PBUF_SIZE_MASK 0x3
  1305. #define DL9_PBUF_SIZE_MASK_SFT (0x3 << 12)
  1306. #define DL9_MONO_SFT 8
  1307. #define DL9_MONO_MASK 0x1
  1308. #define DL9_MONO_MASK_SFT (0x1 << 8)
  1309. #define DL9_NORMAL_MODE_SFT 5
  1310. #define DL9_NORMAL_MODE_MASK 0x1
  1311. #define DL9_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1312. #define DL9_HALIGN_SFT 4
  1313. #define DL9_HALIGN_MASK 0x1
  1314. #define DL9_HALIGN_MASK_SFT (0x1 << 4)
  1315. #define DL9_HD_MODE_SFT 0
  1316. #define DL9_HD_MODE_MASK 0x3
  1317. #define DL9_HD_MODE_MASK_SFT (0x3 << 0)
  1318. /* AFE_DL12_CON0 */
  1319. #define DL12_MODE_SFT 24
  1320. #define DL12_MODE_MASK 0xf
  1321. #define DL12_MODE_MASK_SFT (0xf << 24)
  1322. #define DL12_MINLEN_SFT 20
  1323. #define DL12_MINLEN_MASK 0xf
  1324. #define DL12_MINLEN_MASK_SFT (0xf << 20)
  1325. #define DL12_MAXLEN_SFT 16
  1326. #define DL12_MAXLEN_MASK 0xf
  1327. #define DL12_MAXLEN_MASK_SFT (0xf << 16)
  1328. #define DL12_SW_CLEAR_BUF_EMPTY_SFT 15
  1329. #define DL12_SW_CLEAR_BUF_EMPTY_MASK 0x1
  1330. #define DL12_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15)
  1331. #define DL12_PBUF_SIZE_SFT 12
  1332. #define DL12_PBUF_SIZE_MASK 0x3
  1333. #define DL12_PBUF_SIZE_MASK_SFT (0x3 << 12)
  1334. #define DL12_4CH_EN_SFT 11
  1335. #define DL12_4CH_EN_MASK 0x1
  1336. #define DL12_4CH_EN_MASK_SFT (0x1 << 11)
  1337. #define DL12_MONO_SFT 8
  1338. #define DL12_MONO_MASK 0x1
  1339. #define DL12_MONO_MASK_SFT (0x1 << 8)
  1340. #define DL12_NORMAL_MODE_SFT 5
  1341. #define DL12_NORMAL_MODE_MASK 0x1
  1342. #define DL12_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1343. #define DL12_HALIGN_SFT 4
  1344. #define DL12_HALIGN_MASK 0x1
  1345. #define DL12_HALIGN_MASK_SFT (0x1 << 4)
  1346. #define DL12_HD_MODE_SFT 0
  1347. #define DL12_HD_MODE_MASK 0x3
  1348. #define DL12_HD_MODE_MASK_SFT (0x3 << 0)
  1349. /* AFE_AWB_CON0 */
  1350. #define AWB_MODE_SFT 24
  1351. #define AWB_MODE_MASK 0xf
  1352. #define AWB_MODE_MASK_SFT (0xf << 24)
  1353. #define AWB_SW_CLEAR_BUF_FULL_SFT 15
  1354. #define AWB_SW_CLEAR_BUF_FULL_MASK 0x1
  1355. #define AWB_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15)
  1356. #define AWB_R_MONO_SFT 9
  1357. #define AWB_R_MONO_MASK 0x1
  1358. #define AWB_R_MONO_MASK_SFT (0x1 << 9)
  1359. #define AWB_MONO_SFT 8
  1360. #define AWB_MONO_MASK 0x1
  1361. #define AWB_MONO_MASK_SFT (0x1 << 8)
  1362. #define AWB_WR_SIGN_SFT 6
  1363. #define AWB_WR_SIGN_MASK 0x1
  1364. #define AWB_WR_SIGN_MASK_SFT (0x1 << 6)
  1365. #define AWB_NORMAL_MODE_SFT 5
  1366. #define AWB_NORMAL_MODE_MASK 0x1
  1367. #define AWB_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1368. #define AWB_HALIGN_SFT 4
  1369. #define AWB_HALIGN_MASK 0x1
  1370. #define AWB_HALIGN_MASK_SFT (0x1 << 4)
  1371. #define AWB_HD_MODE_SFT 0
  1372. #define AWB_HD_MODE_MASK 0x3
  1373. #define AWB_HD_MODE_MASK_SFT (0x3 << 0)
  1374. /* AFE_AWB2_CON0 */
  1375. #define AWB2_MODE_SFT 24
  1376. #define AWB2_MODE_MASK 0xf
  1377. #define AWB2_MODE_MASK_SFT (0xf << 24)
  1378. #define AWB2_SW_CLEAR_BUF_FULL_SFT 15
  1379. #define AWB2_SW_CLEAR_BUF_FULL_MASK 0x1
  1380. #define AWB2_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15)
  1381. #define AWB2_R_MONO_SFT 9
  1382. #define AWB2_R_MONO_MASK 0x1
  1383. #define AWB2_R_MONO_MASK_SFT (0x1 << 9)
  1384. #define AWB2_MONO_SFT 8
  1385. #define AWB2_MONO_MASK 0x1
  1386. #define AWB2_MONO_MASK_SFT (0x1 << 8)
  1387. #define AWB2_WR_SIGN_SFT 6
  1388. #define AWB2_WR_SIGN_MASK 0x1
  1389. #define AWB2_WR_SIGN_MASK_SFT (0x1 << 6)
  1390. #define AWB2_NORMAL_MODE_SFT 5
  1391. #define AWB2_NORMAL_MODE_MASK 0x1
  1392. #define AWB2_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1393. #define AWB2_HALIGN_SFT 4
  1394. #define AWB2_HALIGN_MASK 0x1
  1395. #define AWB2_HALIGN_MASK_SFT (0x1 << 4)
  1396. #define AWB2_HD_MODE_SFT 0
  1397. #define AWB2_HD_MODE_MASK 0x3
  1398. #define AWB2_HD_MODE_MASK_SFT (0x3 << 0)
  1399. /* AFE_VUL_CON0 */
  1400. #define VUL_MODE_SFT 24
  1401. #define VUL_MODE_MASK 0xf
  1402. #define VUL_MODE_MASK_SFT (0xf << 24)
  1403. #define VUL_SW_CLEAR_BUF_FULL_SFT 15
  1404. #define VUL_SW_CLEAR_BUF_FULL_MASK 0x1
  1405. #define VUL_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15)
  1406. #define VUL_R_MONO_SFT 9
  1407. #define VUL_R_MONO_MASK 0x1
  1408. #define VUL_R_MONO_MASK_SFT (0x1 << 9)
  1409. #define VUL_MONO_SFT 8
  1410. #define VUL_MONO_MASK 0x1
  1411. #define VUL_MONO_MASK_SFT (0x1 << 8)
  1412. #define VUL_WR_SIGN_SFT 6
  1413. #define VUL_WR_SIGN_MASK 0x1
  1414. #define VUL_WR_SIGN_MASK_SFT (0x1 << 6)
  1415. #define VUL_NORMAL_MODE_SFT 5
  1416. #define VUL_NORMAL_MODE_MASK 0x1
  1417. #define VUL_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1418. #define VUL_HALIGN_SFT 4
  1419. #define VUL_HALIGN_MASK 0x1
  1420. #define VUL_HALIGN_MASK_SFT (0x1 << 4)
  1421. #define VUL_HD_MODE_SFT 0
  1422. #define VUL_HD_MODE_MASK 0x3
  1423. #define VUL_HD_MODE_MASK_SFT (0x3 << 0)
  1424. /* AFE_VUL12_CON0 */
  1425. #define VUL12_MODE_SFT 24
  1426. #define VUL12_MODE_MASK 0xf
  1427. #define VUL12_MODE_MASK_SFT (0xf << 24)
  1428. #define VUL12_SW_CLEAR_BUF_FULL_SFT 15
  1429. #define VUL12_SW_CLEAR_BUF_FULL_MASK 0x1
  1430. #define VUL12_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15)
  1431. #define VUL12_4CH_EN_SFT 11
  1432. #define VUL12_4CH_EN_MASK 0x1
  1433. #define VUL12_4CH_EN_MASK_SFT (0x1 << 11)
  1434. #define VUL12_R_MONO_SFT 9
  1435. #define VUL12_R_MONO_MASK 0x1
  1436. #define VUL12_R_MONO_MASK_SFT (0x1 << 9)
  1437. #define VUL12_MONO_SFT 8
  1438. #define VUL12_MONO_MASK 0x1
  1439. #define VUL12_MONO_MASK_SFT (0x1 << 8)
  1440. #define VUL12_WR_SIGN_SFT 6
  1441. #define VUL12_WR_SIGN_MASK 0x1
  1442. #define VUL12_WR_SIGN_MASK_SFT (0x1 << 6)
  1443. #define VUL12_NORMAL_MODE_SFT 5
  1444. #define VUL12_NORMAL_MODE_MASK 0x1
  1445. #define VUL12_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1446. #define VUL12_HALIGN_SFT 4
  1447. #define VUL12_HALIGN_MASK 0x1
  1448. #define VUL12_HALIGN_MASK_SFT (0x1 << 4)
  1449. #define VUL12_HD_MODE_SFT 0
  1450. #define VUL12_HD_MODE_MASK 0x3
  1451. #define VUL12_HD_MODE_MASK_SFT (0x3 << 0)
  1452. /* AFE_VUL2_CON0 */
  1453. #define VUL2_MODE_SFT 24
  1454. #define VUL2_MODE_MASK 0xf
  1455. #define VUL2_MODE_MASK_SFT (0xf << 24)
  1456. #define VUL2_SW_CLEAR_BUF_FULL_SFT 15
  1457. #define VUL2_SW_CLEAR_BUF_FULL_MASK 0x1
  1458. #define VUL2_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15)
  1459. #define VUL2_R_MONO_SFT 9
  1460. #define VUL2_R_MONO_MASK 0x1
  1461. #define VUL2_R_MONO_MASK_SFT (0x1 << 9)
  1462. #define VUL2_MONO_SFT 8
  1463. #define VUL2_MONO_MASK 0x1
  1464. #define VUL2_MONO_MASK_SFT (0x1 << 8)
  1465. #define VUL2_WR_SIGN_SFT 6
  1466. #define VUL2_WR_SIGN_MASK 0x1
  1467. #define VUL2_WR_SIGN_MASK_SFT (0x1 << 6)
  1468. #define VUL2_NORMAL_MODE_SFT 5
  1469. #define VUL2_NORMAL_MODE_MASK 0x1
  1470. #define VUL2_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1471. #define VUL2_HALIGN_SFT 4
  1472. #define VUL2_HALIGN_MASK 0x1
  1473. #define VUL2_HALIGN_MASK_SFT (0x1 << 4)
  1474. #define VUL2_HD_MODE_SFT 0
  1475. #define VUL2_HD_MODE_MASK 0x3
  1476. #define VUL2_HD_MODE_MASK_SFT (0x3 << 0)
  1477. /* AFE_VUL3_CON0 */
  1478. #define VUL3_MODE_SFT 24
  1479. #define VUL3_MODE_MASK 0xf
  1480. #define VUL3_MODE_MASK_SFT (0xf << 24)
  1481. #define VUL3_SW_CLEAR_BUF_FULL_SFT 15
  1482. #define VUL3_SW_CLEAR_BUF_FULL_MASK 0x1
  1483. #define VUL3_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15)
  1484. #define VUL3_R_MONO_SFT 9
  1485. #define VUL3_R_MONO_MASK 0x1
  1486. #define VUL3_R_MONO_MASK_SFT (0x1 << 9)
  1487. #define VUL3_MONO_SFT 8
  1488. #define VUL3_MONO_MASK 0x1
  1489. #define VUL3_MONO_MASK_SFT (0x1 << 8)
  1490. #define VUL3_WR_SIGN_SFT 6
  1491. #define VUL3_WR_SIGN_MASK 0x1
  1492. #define VUL3_WR_SIGN_MASK_SFT (0x1 << 6)
  1493. #define VUL3_NORMAL_MODE_SFT 5
  1494. #define VUL3_NORMAL_MODE_MASK 0x1
  1495. #define VUL3_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1496. #define VUL3_HALIGN_SFT 4
  1497. #define VUL3_HALIGN_MASK 0x1
  1498. #define VUL3_HALIGN_MASK_SFT (0x1 << 4)
  1499. #define VUL3_HD_MODE_SFT 0
  1500. #define VUL3_HD_MODE_MASK 0x3
  1501. #define VUL3_HD_MODE_MASK_SFT (0x3 << 0)
  1502. /* AFE_VUL4_CON0 */
  1503. #define VUL4_MODE_SFT 24
  1504. #define VUL4_MODE_MASK 0xf
  1505. #define VUL4_MODE_MASK_SFT (0xf << 24)
  1506. #define VUL4_SW_CLEAR_BUF_FULL_SFT 15
  1507. #define VUL4_SW_CLEAR_BUF_FULL_MASK 0x1
  1508. #define VUL4_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15)
  1509. #define VUL4_R_MONO_SFT 9
  1510. #define VUL4_R_MONO_MASK 0x1
  1511. #define VUL4_R_MONO_MASK_SFT (0x1 << 9)
  1512. #define VUL4_MONO_SFT 8
  1513. #define VUL4_MONO_MASK 0x1
  1514. #define VUL4_MONO_MASK_SFT (0x1 << 8)
  1515. #define VUL4_WR_SIGN_SFT 6
  1516. #define VUL4_WR_SIGN_MASK 0x1
  1517. #define VUL4_WR_SIGN_MASK_SFT (0x1 << 6)
  1518. #define VUL4_NORMAL_MODE_SFT 5
  1519. #define VUL4_NORMAL_MODE_MASK 0x1
  1520. #define VUL4_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1521. #define VUL4_HALIGN_SFT 4
  1522. #define VUL4_HALIGN_MASK 0x1
  1523. #define VUL4_HALIGN_MASK_SFT (0x1 << 4)
  1524. #define VUL4_HD_MODE_SFT 0
  1525. #define VUL4_HD_MODE_MASK 0x3
  1526. #define VUL4_HD_MODE_MASK_SFT (0x3 << 0)
  1527. /* AFE_VUL5_CON0 */
  1528. #define VUL5_MODE_SFT 24
  1529. #define VUL5_MODE_MASK 0xf
  1530. #define VUL5_MODE_MASK_SFT (0xf << 24)
  1531. #define VUL5_SW_CLEAR_BUF_FULL_SFT 15
  1532. #define VUL5_SW_CLEAR_BUF_FULL_MASK 0x1
  1533. #define VUL5_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15)
  1534. #define VUL5_R_MONO_SFT 9
  1535. #define VUL5_R_MONO_MASK 0x1
  1536. #define VUL5_R_MONO_MASK_SFT (0x1 << 9)
  1537. #define VUL5_MONO_SFT 8
  1538. #define VUL5_MONO_MASK 0x1
  1539. #define VUL5_MONO_MASK_SFT (0x1 << 8)
  1540. #define VUL5_WR_SIGN_SFT 6
  1541. #define VUL5_WR_SIGN_MASK 0x1
  1542. #define VUL5_WR_SIGN_MASK_SFT (0x1 << 6)
  1543. #define VUL5_NORMAL_MODE_SFT 5
  1544. #define VUL5_NORMAL_MODE_MASK 0x1
  1545. #define VUL5_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1546. #define VUL5_HALIGN_SFT 4
  1547. #define VUL5_HALIGN_MASK 0x1
  1548. #define VUL5_HALIGN_MASK_SFT (0x1 << 4)
  1549. #define VUL5_HD_MODE_SFT 0
  1550. #define VUL5_HD_MODE_MASK 0x3
  1551. #define VUL5_HD_MODE_MASK_SFT (0x3 << 0)
  1552. /* AFE_VUL6_CON0 */
  1553. #define VUL6_MODE_SFT 24
  1554. #define VUL6_MODE_MASK 0xf
  1555. #define VUL6_MODE_MASK_SFT (0xf << 24)
  1556. #define VUL6_SW_CLEAR_BUF_FULL_SFT 15
  1557. #define VUL6_SW_CLEAR_BUF_FULL_MASK 0x1
  1558. #define VUL6_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15)
  1559. #define VUL6_R_MONO_SFT 9
  1560. #define VUL6_R_MONO_MASK 0x1
  1561. #define VUL6_R_MONO_MASK_SFT (0x1 << 9)
  1562. #define VUL6_MONO_SFT 8
  1563. #define VUL6_MONO_MASK 0x1
  1564. #define VUL6_MONO_MASK_SFT (0x1 << 8)
  1565. #define VUL6_WR_SIGN_SFT 6
  1566. #define VUL6_WR_SIGN_MASK 0x1
  1567. #define VUL6_WR_SIGN_MASK_SFT (0x1 << 6)
  1568. #define VUL6_NORMAL_MODE_SFT 5
  1569. #define VUL6_NORMAL_MODE_MASK 0x1
  1570. #define VUL6_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1571. #define VUL6_HALIGN_SFT 4
  1572. #define VUL6_HALIGN_MASK 0x1
  1573. #define VUL6_HALIGN_MASK_SFT (0x1 << 4)
  1574. #define VUL6_HD_MODE_SFT 0
  1575. #define VUL6_HD_MODE_MASK 0x3
  1576. #define VUL6_HD_MODE_MASK_SFT (0x3 << 0)
  1577. /* AFE_DAI_CON0 */
  1578. #define DAI_MODE_SFT 24
  1579. #define DAI_MODE_MASK 0x3
  1580. #define DAI_MODE_MASK_SFT (0x3 << 24)
  1581. #define DAI_SW_CLEAR_BUF_FULL_SFT 15
  1582. #define DAI_SW_CLEAR_BUF_FULL_MASK 0x1
  1583. #define DAI_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15)
  1584. #define DAI_DUPLICATE_WR_SFT 10
  1585. #define DAI_DUPLICATE_WR_MASK 0x1
  1586. #define DAI_DUPLICATE_WR_MASK_SFT (0x1 << 10)
  1587. #define DAI_MONO_SFT 8
  1588. #define DAI_MONO_MASK 0x1
  1589. #define DAI_MONO_MASK_SFT (0x1 << 8)
  1590. #define DAI_WR_SIGN_SFT 6
  1591. #define DAI_WR_SIGN_MASK 0x1
  1592. #define DAI_WR_SIGN_MASK_SFT (0x1 << 6)
  1593. #define DAI_NORMAL_MODE_SFT 5
  1594. #define DAI_NORMAL_MODE_MASK 0x1
  1595. #define DAI_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1596. #define DAI_HALIGN_SFT 4
  1597. #define DAI_HALIGN_MASK 0x1
  1598. #define DAI_HALIGN_MASK_SFT (0x1 << 4)
  1599. #define DAI_HD_MODE_SFT 0
  1600. #define DAI_HD_MODE_MASK 0x3
  1601. #define DAI_HD_MODE_MASK_SFT (0x3 << 0)
  1602. /* AFE_MOD_DAI_CON0 */
  1603. #define MOD_DAI_MODE_SFT 24
  1604. #define MOD_DAI_MODE_MASK 0x3
  1605. #define MOD_DAI_MODE_MASK_SFT (0x3 << 24)
  1606. #define MOD_DAI_SW_CLEAR_BUF_FULL_SFT 15
  1607. #define MOD_DAI_SW_CLEAR_BUF_FULL_MASK 0x1
  1608. #define MOD_DAI_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15)
  1609. #define MOD_DAI_DUPLICATE_WR_SFT 10
  1610. #define MOD_DAI_DUPLICATE_WR_MASK 0x1
  1611. #define MOD_DAI_DUPLICATE_WR_MASK_SFT (0x1 << 10)
  1612. #define MOD_DAI_MONO_SFT 8
  1613. #define MOD_DAI_MONO_MASK 0x1
  1614. #define MOD_DAI_MONO_MASK_SFT (0x1 << 8)
  1615. #define MOD_DAI_WR_SIGN_SFT 6
  1616. #define MOD_DAI_WR_SIGN_MASK 0x1
  1617. #define MOD_DAI_WR_SIGN_MASK_SFT (0x1 << 6)
  1618. #define MOD_DAI_NORMAL_MODE_SFT 5
  1619. #define MOD_DAI_NORMAL_MODE_MASK 0x1
  1620. #define MOD_DAI_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1621. #define MOD_DAI_HALIGN_SFT 4
  1622. #define MOD_DAI_HALIGN_MASK 0x1
  1623. #define MOD_DAI_HALIGN_MASK_SFT (0x1 << 4)
  1624. #define MOD_DAI_HD_MODE_SFT 0
  1625. #define MOD_DAI_HD_MODE_MASK 0x3
  1626. #define MOD_DAI_HD_MODE_MASK_SFT (0x3 << 0)
  1627. /* AFE_DAI2_CON0 */
  1628. #define DAI2_MODE_SFT 24
  1629. #define DAI2_MODE_MASK 0xf
  1630. #define DAI2_MODE_MASK_SFT (0xf << 24)
  1631. #define DAI2_SW_CLEAR_BUF_FULL_SFT 15
  1632. #define DAI2_SW_CLEAR_BUF_FULL_MASK 0x1
  1633. #define DAI2_SW_CLEAR_BUF_FULL_MASK_SFT (0x1 << 15)
  1634. #define DAI2_DUPLICATE_WR_SFT 10
  1635. #define DAI2_DUPLICATE_WR_MASK 0x1
  1636. #define DAI2_DUPLICATE_WR_MASK_SFT (0x1 << 10)
  1637. #define DAI2_MONO_SFT 8
  1638. #define DAI2_MONO_MASK 0x1
  1639. #define DAI2_MONO_MASK_SFT (0x1 << 8)
  1640. #define DAI2_WR_SIGN_SFT 6
  1641. #define DAI2_WR_SIGN_MASK 0x1
  1642. #define DAI2_WR_SIGN_MASK_SFT (0x1 << 6)
  1643. #define DAI2_NORMAL_MODE_SFT 5
  1644. #define DAI2_NORMAL_MODE_MASK 0x1
  1645. #define DAI2_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1646. #define DAI2_HALIGN_SFT 4
  1647. #define DAI2_HALIGN_MASK 0x1
  1648. #define DAI2_HALIGN_MASK_SFT (0x1 << 4)
  1649. #define DAI2_HD_MODE_SFT 0
  1650. #define DAI2_HD_MODE_MASK 0x3
  1651. #define DAI2_HD_MODE_MASK_SFT (0x3 << 0)
  1652. /* AFE_MEMIF_CON0 */
  1653. #define CPU_COMPACT_MODE_SFT 2
  1654. #define CPU_COMPACT_MODE_MASK 0x1
  1655. #define CPU_COMPACT_MODE_MASK_SFT (0x1 << 2)
  1656. #define CPU_HD_ALIGN_SFT 1
  1657. #define CPU_HD_ALIGN_MASK 0x1
  1658. #define CPU_HD_ALIGN_MASK_SFT (0x1 << 1)
  1659. #define SYSRAM_SIGN_SFT 0
  1660. #define SYSRAM_SIGN_MASK 0x1
  1661. #define SYSRAM_SIGN_MASK_SFT (0x1 << 0)
  1662. /* AFE_HDMI_OUT_CON0 */
  1663. #define HDMI_CH_NUM_SFT 24
  1664. #define HDMI_CH_NUM_MASK 0xf
  1665. #define HDMI_CH_NUM_MASK_SFT (0xf << 24)
  1666. #define HDMI_OUT_MINLEN_SFT 20
  1667. #define HDMI_OUT_MINLEN_MASK 0xf
  1668. #define HDMI_OUT_MINLEN_MASK_SFT (0xf << 20)
  1669. #define HDMI_OUT_MAXLEN_SFT 16
  1670. #define HDMI_OUT_MAXLEN_MASK 0xf
  1671. #define HDMI_OUT_MAXLEN_MASK_SFT (0xf << 16)
  1672. #define HDMI_OUT_SW_CLEAR_BUF_EMPTY_SFT 15
  1673. #define HDMI_OUT_SW_CLEAR_BUF_EMPTY_MASK 0x1
  1674. #define HDMI_OUT_SW_CLEAR_BUF_EMPTY_MASK_SFT (0x1 << 15)
  1675. #define HDMI_OUT_PBUF_SIZE_SFT 12
  1676. #define HDMI_OUT_PBUF_SIZE_MASK 0x3
  1677. #define HDMI_OUT_PBUF_SIZE_MASK_SFT (0x3 << 12)
  1678. #define HDMI_OUT_NORMAL_MODE_SFT 5
  1679. #define HDMI_OUT_NORMAL_MODE_MASK 0x1
  1680. #define HDMI_OUT_NORMAL_MODE_MASK_SFT (0x1 << 5)
  1681. #define HDMI_OUT_HALIGN_SFT 4
  1682. #define HDMI_OUT_HALIGN_MASK 0x1
  1683. #define HDMI_OUT_HALIGN_MASK_SFT (0x1 << 4)
  1684. #define HDMI_OUT_HD_MODE_SFT 0
  1685. #define HDMI_OUT_HD_MODE_MASK 0x3
  1686. #define HDMI_OUT_HD_MODE_MASK_SFT (0x3 << 0)
  1687. /* AFE_IRQ_MCU_CON0 */
  1688. #define IRQ31_MCU_ON_SFT 31
  1689. #define IRQ31_MCU_ON_MASK 0x1
  1690. #define IRQ31_MCU_ON_MASK_SFT (0x1 << 31)
  1691. #define IRQ26_MCU_ON_SFT 26
  1692. #define IRQ26_MCU_ON_MASK 0x1
  1693. #define IRQ26_MCU_ON_MASK_SFT (0x1 << 26)
  1694. #define IRQ25_MCU_ON_SFT 25
  1695. #define IRQ25_MCU_ON_MASK 0x1
  1696. #define IRQ25_MCU_ON_MASK_SFT (0x1 << 25)
  1697. #define IRQ24_MCU_ON_SFT 24
  1698. #define IRQ24_MCU_ON_MASK 0x1
  1699. #define IRQ24_MCU_ON_MASK_SFT (0x1 << 24)
  1700. #define IRQ23_MCU_ON_SFT 23
  1701. #define IRQ23_MCU_ON_MASK 0x1
  1702. #define IRQ23_MCU_ON_MASK_SFT (0x1 << 23)
  1703. #define IRQ22_MCU_ON_SFT 22
  1704. #define IRQ22_MCU_ON_MASK 0x1
  1705. #define IRQ22_MCU_ON_MASK_SFT (0x1 << 22)
  1706. #define IRQ21_MCU_ON_SFT 21
  1707. #define IRQ21_MCU_ON_MASK 0x1
  1708. #define IRQ21_MCU_ON_MASK_SFT (0x1 << 21)
  1709. #define IRQ20_MCU_ON_SFT 20
  1710. #define IRQ20_MCU_ON_MASK 0x1
  1711. #define IRQ20_MCU_ON_MASK_SFT (0x1 << 20)
  1712. #define IRQ19_MCU_ON_SFT 19
  1713. #define IRQ19_MCU_ON_MASK 0x1
  1714. #define IRQ19_MCU_ON_MASK_SFT (0x1 << 19)
  1715. #define IRQ18_MCU_ON_SFT 18
  1716. #define IRQ18_MCU_ON_MASK 0x1
  1717. #define IRQ18_MCU_ON_MASK_SFT (0x1 << 18)
  1718. #define IRQ17_MCU_ON_SFT 17
  1719. #define IRQ17_MCU_ON_MASK 0x1
  1720. #define IRQ17_MCU_ON_MASK_SFT (0x1 << 17)
  1721. #define IRQ16_MCU_ON_SFT 16
  1722. #define IRQ16_MCU_ON_MASK 0x1
  1723. #define IRQ16_MCU_ON_MASK_SFT (0x1 << 16)
  1724. #define IRQ15_MCU_ON_SFT 15
  1725. #define IRQ15_MCU_ON_MASK 0x1
  1726. #define IRQ15_MCU_ON_MASK_SFT (0x1 << 15)
  1727. #define IRQ14_MCU_ON_SFT 14
  1728. #define IRQ14_MCU_ON_MASK 0x1
  1729. #define IRQ14_MCU_ON_MASK_SFT (0x1 << 14)
  1730. #define IRQ13_MCU_ON_SFT 13
  1731. #define IRQ13_MCU_ON_MASK 0x1
  1732. #define IRQ13_MCU_ON_MASK_SFT (0x1 << 13)
  1733. #define IRQ12_MCU_ON_SFT 12
  1734. #define IRQ12_MCU_ON_MASK 0x1
  1735. #define IRQ12_MCU_ON_MASK_SFT (0x1 << 12)
  1736. #define IRQ11_MCU_ON_SFT 11
  1737. #define IRQ11_MCU_ON_MASK 0x1
  1738. #define IRQ11_MCU_ON_MASK_SFT (0x1 << 11)
  1739. #define IRQ10_MCU_ON_SFT 10
  1740. #define IRQ10_MCU_ON_MASK 0x1
  1741. #define IRQ10_MCU_ON_MASK_SFT (0x1 << 10)
  1742. #define IRQ9_MCU_ON_SFT 9
  1743. #define IRQ9_MCU_ON_MASK 0x1
  1744. #define IRQ9_MCU_ON_MASK_SFT (0x1 << 9)
  1745. #define IRQ8_MCU_ON_SFT 8
  1746. #define IRQ8_MCU_ON_MASK 0x1
  1747. #define IRQ8_MCU_ON_MASK_SFT (0x1 << 8)
  1748. #define IRQ7_MCU_ON_SFT 7
  1749. #define IRQ7_MCU_ON_MASK 0x1
  1750. #define IRQ7_MCU_ON_MASK_SFT (0x1 << 7)
  1751. #define IRQ6_MCU_ON_SFT 6
  1752. #define IRQ6_MCU_ON_MASK 0x1
  1753. #define IRQ6_MCU_ON_MASK_SFT (0x1 << 6)
  1754. #define IRQ5_MCU_ON_SFT 5
  1755. #define IRQ5_MCU_ON_MASK 0x1
  1756. #define IRQ5_MCU_ON_MASK_SFT (0x1 << 5)
  1757. #define IRQ4_MCU_ON_SFT 4
  1758. #define IRQ4_MCU_ON_MASK 0x1
  1759. #define IRQ4_MCU_ON_MASK_SFT (0x1 << 4)
  1760. #define IRQ3_MCU_ON_SFT 3
  1761. #define IRQ3_MCU_ON_MASK 0x1
  1762. #define IRQ3_MCU_ON_MASK_SFT (0x1 << 3)
  1763. #define IRQ2_MCU_ON_SFT 2
  1764. #define IRQ2_MCU_ON_MASK 0x1
  1765. #define IRQ2_MCU_ON_MASK_SFT (0x1 << 2)
  1766. #define IRQ1_MCU_ON_SFT 1
  1767. #define IRQ1_MCU_ON_MASK 0x1
  1768. #define IRQ1_MCU_ON_MASK_SFT (0x1 << 1)
  1769. #define IRQ0_MCU_ON_SFT 0
  1770. #define IRQ0_MCU_ON_MASK 0x1
  1771. #define IRQ0_MCU_ON_MASK_SFT (0x1 << 0)
  1772. /* AFE_IRQ_MCU_CON1 */
  1773. #define IRQ7_MCU_MODE_SFT 28
  1774. #define IRQ7_MCU_MODE_MASK 0xf
  1775. #define IRQ7_MCU_MODE_MASK_SFT (0xf << 28)
  1776. #define IRQ6_MCU_MODE_SFT 24
  1777. #define IRQ6_MCU_MODE_MASK 0xf
  1778. #define IRQ6_MCU_MODE_MASK_SFT (0xf << 24)
  1779. #define IRQ5_MCU_MODE_SFT 20
  1780. #define IRQ5_MCU_MODE_MASK 0xf
  1781. #define IRQ5_MCU_MODE_MASK_SFT (0xf << 20)
  1782. #define IRQ4_MCU_MODE_SFT 16
  1783. #define IRQ4_MCU_MODE_MASK 0xf
  1784. #define IRQ4_MCU_MODE_MASK_SFT (0xf << 16)
  1785. #define IRQ3_MCU_MODE_SFT 12
  1786. #define IRQ3_MCU_MODE_MASK 0xf
  1787. #define IRQ3_MCU_MODE_MASK_SFT (0xf << 12)
  1788. #define IRQ2_MCU_MODE_SFT 8
  1789. #define IRQ2_MCU_MODE_MASK 0xf
  1790. #define IRQ2_MCU_MODE_MASK_SFT (0xf << 8)
  1791. #define IRQ1_MCU_MODE_SFT 4
  1792. #define IRQ1_MCU_MODE_MASK 0xf
  1793. #define IRQ1_MCU_MODE_MASK_SFT (0xf << 4)
  1794. #define IRQ0_MCU_MODE_SFT 0
  1795. #define IRQ0_MCU_MODE_MASK 0xf
  1796. #define IRQ0_MCU_MODE_MASK_SFT (0xf << 0)
  1797. /* AFE_IRQ_MCU_CON2 */
  1798. #define IRQ15_MCU_MODE_SFT 28
  1799. #define IRQ15_MCU_MODE_MASK 0xf
  1800. #define IRQ15_MCU_MODE_MASK_SFT (0xf << 28)
  1801. #define IRQ14_MCU_MODE_SFT 24
  1802. #define IRQ14_MCU_MODE_MASK 0xf
  1803. #define IRQ14_MCU_MODE_MASK_SFT (0xf << 24)
  1804. #define IRQ13_MCU_MODE_SFT 20
  1805. #define IRQ13_MCU_MODE_MASK 0xf
  1806. #define IRQ13_MCU_MODE_MASK_SFT (0xf << 20)
  1807. #define IRQ12_MCU_MODE_SFT 16
  1808. #define IRQ12_MCU_MODE_MASK 0xf
  1809. #define IRQ12_MCU_MODE_MASK_SFT (0xf << 16)
  1810. #define IRQ11_MCU_MODE_SFT 12
  1811. #define IRQ11_MCU_MODE_MASK 0xf
  1812. #define IRQ11_MCU_MODE_MASK_SFT (0xf << 12)
  1813. #define IRQ10_MCU_MODE_SFT 8
  1814. #define IRQ10_MCU_MODE_MASK 0xf
  1815. #define IRQ10_MCU_MODE_MASK_SFT (0xf << 8)
  1816. #define IRQ9_MCU_MODE_SFT 4
  1817. #define IRQ9_MCU_MODE_MASK 0xf
  1818. #define IRQ9_MCU_MODE_MASK_SFT (0xf << 4)
  1819. #define IRQ8_MCU_MODE_SFT 0
  1820. #define IRQ8_MCU_MODE_MASK 0xf
  1821. #define IRQ8_MCU_MODE_MASK_SFT (0xf << 0)
  1822. /* AFE_IRQ_MCU_CON3 */
  1823. #define IRQ23_MCU_MODE_SFT 28
  1824. #define IRQ23_MCU_MODE_MASK 0xf
  1825. #define IRQ23_MCU_MODE_MASK_SFT (0xf << 28)
  1826. #define IRQ22_MCU_MODE_SFT 24
  1827. #define IRQ22_MCU_MODE_MASK 0xf
  1828. #define IRQ22_MCU_MODE_MASK_SFT (0xf << 24)
  1829. #define IRQ21_MCU_MODE_SFT 20
  1830. #define IRQ21_MCU_MODE_MASK 0xf
  1831. #define IRQ21_MCU_MODE_MASK_SFT (0xf << 20)
  1832. #define IRQ20_MCU_MODE_SFT 16
  1833. #define IRQ20_MCU_MODE_MASK 0xf
  1834. #define IRQ20_MCU_MODE_MASK_SFT (0xf << 16)
  1835. #define IRQ19_MCU_MODE_SFT 12
  1836. #define IRQ19_MCU_MODE_MASK 0xf
  1837. #define IRQ19_MCU_MODE_MASK_SFT (0xf << 12)
  1838. #define IRQ18_MCU_MODE_SFT 8
  1839. #define IRQ18_MCU_MODE_MASK 0xf
  1840. #define IRQ18_MCU_MODE_MASK_SFT (0xf << 8)
  1841. #define IRQ17_MCU_MODE_SFT 4
  1842. #define IRQ17_MCU_MODE_MASK 0xf
  1843. #define IRQ17_MCU_MODE_MASK_SFT (0xf << 4)
  1844. #define IRQ16_MCU_MODE_SFT 0
  1845. #define IRQ16_MCU_MODE_MASK 0xf
  1846. #define IRQ16_MCU_MODE_MASK_SFT (0xf << 0)
  1847. /* AFE_IRQ_MCU_CON4 */
  1848. #define IRQ26_MCU_MODE_SFT 8
  1849. #define IRQ26_MCU_MODE_MASK 0xf
  1850. #define IRQ26_MCU_MODE_MASK_SFT (0xf << 8)
  1851. #define IRQ25_MCU_MODE_SFT 4
  1852. #define IRQ25_MCU_MODE_MASK 0xf
  1853. #define IRQ25_MCU_MODE_MASK_SFT (0xf << 4)
  1854. #define IRQ24_MCU_MODE_SFT 0
  1855. #define IRQ24_MCU_MODE_MASK 0xf
  1856. #define IRQ24_MCU_MODE_MASK_SFT (0xf << 0)
  1857. /* AFE_IRQ_MCU_CLR */
  1858. #define IRQ31_MCU_CLR_SFT 31
  1859. #define IRQ31_MCU_CLR_MASK 0x1
  1860. #define IRQ31_MCU_CLR_MASK_SFT (0x1 << 31)
  1861. #define IRQ26_MCU_CLR_SFT 26
  1862. #define IRQ26_MCU_CLR_MASK 0x1
  1863. #define IRQ26_MCU_CLR_MASK_SFT (0x1 << 26)
  1864. #define IRQ25_MCU_CLR_SFT 25
  1865. #define IRQ25_MCU_CLR_MASK 0x1
  1866. #define IRQ25_MCU_CLR_MASK_SFT (0x1 << 25)
  1867. #define IRQ24_MCU_CLR_SFT 24
  1868. #define IRQ24_MCU_CLR_MASK 0x1
  1869. #define IRQ24_MCU_CLR_MASK_SFT (0x1 << 24)
  1870. #define IRQ23_MCU_CLR_SFT 23
  1871. #define IRQ23_MCU_CLR_MASK 0x1
  1872. #define IRQ23_MCU_CLR_MASK_SFT (0x1 << 23)
  1873. #define IRQ22_MCU_CLR_SFT 22
  1874. #define IRQ22_MCU_CLR_MASK 0x1
  1875. #define IRQ22_MCU_CLR_MASK_SFT (0x1 << 22)
  1876. #define IRQ21_MCU_CLR_SFT 21
  1877. #define IRQ21_MCU_CLR_MASK 0x1
  1878. #define IRQ21_MCU_CLR_MASK_SFT (0x1 << 21)
  1879. #define IRQ20_MCU_CLR_SFT 20
  1880. #define IRQ20_MCU_CLR_MASK 0x1
  1881. #define IRQ20_MCU_CLR_MASK_SFT (0x1 << 20)
  1882. #define IRQ19_MCU_CLR_SFT 19
  1883. #define IRQ19_MCU_CLR_MASK 0x1
  1884. #define IRQ19_MCU_CLR_MASK_SFT (0x1 << 19)
  1885. #define IRQ18_MCU_CLR_SFT 18
  1886. #define IRQ18_MCU_CLR_MASK 0x1
  1887. #define IRQ18_MCU_CLR_MASK_SFT (0x1 << 18)
  1888. #define IRQ17_MCU_CLR_SFT 17
  1889. #define IRQ17_MCU_CLR_MASK 0x1
  1890. #define IRQ17_MCU_CLR_MASK_SFT (0x1 << 17)
  1891. #define IRQ16_MCU_CLR_SFT 16
  1892. #define IRQ16_MCU_CLR_MASK 0x1
  1893. #define IRQ16_MCU_CLR_MASK_SFT (0x1 << 16)
  1894. #define IRQ15_MCU_CLR_SFT 15
  1895. #define IRQ15_MCU_CLR_MASK 0x1
  1896. #define IRQ15_MCU_CLR_MASK_SFT (0x1 << 15)
  1897. #define IRQ14_MCU_CLR_SFT 14
  1898. #define IRQ14_MCU_CLR_MASK 0x1
  1899. #define IRQ14_MCU_CLR_MASK_SFT (0x1 << 14)
  1900. #define IRQ13_MCU_CLR_SFT 13
  1901. #define IRQ13_MCU_CLR_MASK 0x1
  1902. #define IRQ13_MCU_CLR_MASK_SFT (0x1 << 13)
  1903. #define IRQ12_MCU_CLR_SFT 12
  1904. #define IRQ12_MCU_CLR_MASK 0x1
  1905. #define IRQ12_MCU_CLR_MASK_SFT (0x1 << 12)
  1906. #define IRQ11_MCU_CLR_SFT 11
  1907. #define IRQ11_MCU_CLR_MASK 0x1
  1908. #define IRQ11_MCU_CLR_MASK_SFT (0x1 << 11)
  1909. #define IRQ10_MCU_CLR_SFT 10
  1910. #define IRQ10_MCU_CLR_MASK 0x1
  1911. #define IRQ10_MCU_CLR_MASK_SFT (0x1 << 10)
  1912. #define IRQ9_MCU_CLR_SFT 9
  1913. #define IRQ9_MCU_CLR_MASK 0x1
  1914. #define IRQ9_MCU_CLR_MASK_SFT (0x1 << 9)
  1915. #define IRQ8_MCU_CLR_SFT 8
  1916. #define IRQ8_MCU_CLR_MASK 0x1
  1917. #define IRQ8_MCU_CLR_MASK_SFT (0x1 << 8)
  1918. #define IRQ7_MCU_CLR_SFT 7
  1919. #define IRQ7_MCU_CLR_MASK 0x1
  1920. #define IRQ7_MCU_CLR_MASK_SFT (0x1 << 7)
  1921. #define IRQ6_MCU_CLR_SFT 6
  1922. #define IRQ6_MCU_CLR_MASK 0x1
  1923. #define IRQ6_MCU_CLR_MASK_SFT (0x1 << 6)
  1924. #define IRQ5_MCU_CLR_SFT 5
  1925. #define IRQ5_MCU_CLR_MASK 0x1
  1926. #define IRQ5_MCU_CLR_MASK_SFT (0x1 << 5)
  1927. #define IRQ4_MCU_CLR_SFT 4
  1928. #define IRQ4_MCU_CLR_MASK 0x1
  1929. #define IRQ4_MCU_CLR_MASK_SFT (0x1 << 4)
  1930. #define IRQ3_MCU_CLR_SFT 3
  1931. #define IRQ3_MCU_CLR_MASK 0x1
  1932. #define IRQ3_MCU_CLR_MASK_SFT (0x1 << 3)
  1933. #define IRQ2_MCU_CLR_SFT 2
  1934. #define IRQ2_MCU_CLR_MASK 0x1
  1935. #define IRQ2_MCU_CLR_MASK_SFT (0x1 << 2)
  1936. #define IRQ1_MCU_CLR_SFT 1
  1937. #define IRQ1_MCU_CLR_MASK 0x1
  1938. #define IRQ1_MCU_CLR_MASK_SFT (0x1 << 1)
  1939. #define IRQ0_MCU_CLR_SFT 0
  1940. #define IRQ0_MCU_CLR_MASK 0x1
  1941. #define IRQ0_MCU_CLR_MASK_SFT (0x1 << 0)
  1942. /* AFE_IRQ_MCU_EN */
  1943. #define IRQ31_MCU_EN_SFT 31
  1944. #define IRQ30_MCU_EN_SFT 30
  1945. #define IRQ29_MCU_EN_SFT 29
  1946. #define IRQ28_MCU_EN_SFT 28
  1947. #define IRQ27_MCU_EN_SFT 27
  1948. #define IRQ26_MCU_EN_SFT 26
  1949. #define IRQ25_MCU_EN_SFT 25
  1950. #define IRQ24_MCU_EN_SFT 24
  1951. #define IRQ23_MCU_EN_SFT 23
  1952. #define IRQ22_MCU_EN_SFT 22
  1953. #define IRQ21_MCU_EN_SFT 21
  1954. #define IRQ20_MCU_EN_SFT 20
  1955. #define IRQ19_MCU_EN_SFT 19
  1956. #define IRQ18_MCU_EN_SFT 18
  1957. #define IRQ17_MCU_EN_SFT 17
  1958. #define IRQ16_MCU_EN_SFT 16
  1959. #define IRQ15_MCU_EN_SFT 15
  1960. #define IRQ14_MCU_EN_SFT 14
  1961. #define IRQ13_MCU_EN_SFT 13
  1962. #define IRQ12_MCU_EN_SFT 12
  1963. #define IRQ11_MCU_EN_SFT 11
  1964. #define IRQ10_MCU_EN_SFT 10
  1965. #define IRQ9_MCU_EN_SFT 9
  1966. #define IRQ8_MCU_EN_SFT 8
  1967. #define IRQ7_MCU_EN_SFT 7
  1968. #define IRQ6_MCU_EN_SFT 6
  1969. #define IRQ5_MCU_EN_SFT 5
  1970. #define IRQ4_MCU_EN_SFT 4
  1971. #define IRQ3_MCU_EN_SFT 3
  1972. #define IRQ2_MCU_EN_SFT 2
  1973. #define IRQ1_MCU_EN_SFT 1
  1974. #define IRQ0_MCU_EN_SFT 0
  1975. /* AFE_IRQ_MCU_SCP_EN */
  1976. #define IRQ31_MCU_SCP_EN_SFT 31
  1977. #define IRQ30_MCU_SCP_EN_SFT 30
  1978. #define IRQ29_MCU_SCP_EN_SFT 29
  1979. #define IRQ28_MCU_SCP_EN_SFT 28
  1980. #define IRQ27_MCU_SCP_EN_SFT 27
  1981. #define IRQ26_MCU_SCP_EN_SFT 26
  1982. #define IRQ25_MCU_SCP_EN_SFT 25
  1983. #define IRQ24_MCU_SCP_EN_SFT 24
  1984. #define IRQ23_MCU_SCP_EN_SFT 23
  1985. #define IRQ22_MCU_SCP_EN_SFT 22
  1986. #define IRQ21_MCU_SCP_EN_SFT 21
  1987. #define IRQ20_MCU_SCP_EN_SFT 20
  1988. #define IRQ19_MCU_SCP_EN_SFT 19
  1989. #define IRQ18_MCU_SCP_EN_SFT 18
  1990. #define IRQ17_MCU_SCP_EN_SFT 17
  1991. #define IRQ16_MCU_SCP_EN_SFT 16
  1992. #define IRQ15_MCU_SCP_EN_SFT 15
  1993. #define IRQ14_MCU_SCP_EN_SFT 14
  1994. #define IRQ13_MCU_SCP_EN_SFT 13
  1995. #define IRQ12_MCU_SCP_EN_SFT 12
  1996. #define IRQ11_MCU_SCP_EN_SFT 11
  1997. #define IRQ10_MCU_SCP_EN_SFT 10
  1998. #define IRQ9_MCU_SCP_EN_SFT 9
  1999. #define IRQ8_MCU_SCP_EN_SFT 8
  2000. #define IRQ7_MCU_SCP_EN_SFT 7
  2001. #define IRQ6_MCU_SCP_EN_SFT 6
  2002. #define IRQ5_MCU_SCP_EN_SFT 5
  2003. #define IRQ4_MCU_SCP_EN_SFT 4
  2004. #define IRQ3_MCU_SCP_EN_SFT 3
  2005. #define IRQ2_MCU_SCP_EN_SFT 2
  2006. #define IRQ1_MCU_SCP_EN_SFT 1
  2007. #define IRQ0_MCU_SCP_EN_SFT 0
  2008. /* AFE_TDM_CON1 */
  2009. #define TDM_EN_SFT 0
  2010. #define TDM_EN_MASK 0x1
  2011. #define TDM_EN_MASK_SFT (0x1 << 0)
  2012. #define LRCK_INVERSE_SFT 2
  2013. #define LRCK_INVERSE_MASK 0x1
  2014. #define LRCK_INVERSE_MASK_SFT (0x1 << 2)
  2015. #define DELAY_DATA_SFT 3
  2016. #define DELAY_DATA_MASK 0x1
  2017. #define DELAY_DATA_MASK_SFT (0x1 << 3)
  2018. #define LEFT_ALIGN_SFT 4
  2019. #define LEFT_ALIGN_MASK 0x1
  2020. #define LEFT_ALIGN_MASK_SFT (0x1 << 4)
  2021. #define WLEN_SFT 8
  2022. #define WLEN_MASK 0x3
  2023. #define WLEN_MASK_SFT (0x3 << 8)
  2024. #define CHANNEL_NUM_SFT 10
  2025. #define CHANNEL_NUM_MASK 0x3
  2026. #define CHANNEL_NUM_MASK_SFT (0x3 << 10)
  2027. #define CHANNEL_BCK_CYCLES_SFT 12
  2028. #define CHANNEL_BCK_CYCLES_MASK 0x3
  2029. #define CHANNEL_BCK_CYCLES_MASK_SFT (0x3 << 12)
  2030. #define DAC_BIT_NUM_SFT 16
  2031. #define DAC_BIT_NUM_MASK 0x1f
  2032. #define DAC_BIT_NUM_MASK_SFT (0x1f << 16)
  2033. #define LRCK_TDM_WIDTH_SFT 24
  2034. #define LRCK_TDM_WIDTH_MASK 0xff
  2035. #define LRCK_TDM_WIDTH_MASK_SFT (0xff << 24)
  2036. /* AFE_TDM_CON2 */
  2037. #define ST_CH_PAIR_SOUT0_SFT 0
  2038. #define ST_CH_PAIR_SOUT0_MASK 0x7
  2039. #define ST_CH_PAIR_SOUT0_MASK_SFT (0x7 << 0)
  2040. #define ST_CH_PAIR_SOUT1_SFT 4
  2041. #define ST_CH_PAIR_SOUT1_MASK 0x7
  2042. #define ST_CH_PAIR_SOUT1_MASK_SFT (0x7 << 4)
  2043. #define ST_CH_PAIR_SOUT2_SFT 8
  2044. #define ST_CH_PAIR_SOUT2_MASK 0x7
  2045. #define ST_CH_PAIR_SOUT2_MASK_SFT (0x7 << 8)
  2046. #define ST_CH_PAIR_SOUT3_SFT 12
  2047. #define ST_CH_PAIR_SOUT3_MASK 0x7
  2048. #define ST_CH_PAIR_SOUT3_MASK_SFT (0x7 << 12)
  2049. #define TDM_FIX_VALUE_SEL_SFT 16
  2050. #define TDM_FIX_VALUE_SEL_MASK 0x1
  2051. #define TDM_FIX_VALUE_SEL_MASK_SFT (0x1 << 16)
  2052. #define TDM_I2S_LOOPBACK_SFT 20
  2053. #define TDM_I2S_LOOPBACK_MASK 0x1
  2054. #define TDM_I2S_LOOPBACK_MASK_SFT (0x1 << 20)
  2055. #define TDM_I2S_LOOPBACK_CH_SFT 21
  2056. #define TDM_I2S_LOOPBACK_CH_MASK 0x3
  2057. #define TDM_I2S_LOOPBACK_CH_MASK_SFT (0x3 << 21)
  2058. #define TDM_FIX_VALUE_SFT 24
  2059. #define TDM_FIX_VALUE_MASK 0xff
  2060. #define TDM_FIX_VALUE_MASK_SFT (0xff << 24)
  2061. /* AFE_HDMI_CONN0 */
  2062. #define HDMI_O_7_SFT 21
  2063. #define HDMI_O_7_MASK 0x7
  2064. #define HDMI_O_7_MASK_SFT (0x7 << 21)
  2065. #define HDMI_O_6_SFT 18
  2066. #define HDMI_O_6_MASK 0x7
  2067. #define HDMI_O_6_MASK_SFT (0x7 << 18)
  2068. #define HDMI_O_5_SFT 15
  2069. #define HDMI_O_5_MASK 0x7
  2070. #define HDMI_O_5_MASK_SFT (0x7 << 15)
  2071. #define HDMI_O_4_SFT 12
  2072. #define HDMI_O_4_MASK 0x7
  2073. #define HDMI_O_4_MASK_SFT (0x7 << 12)
  2074. #define HDMI_O_3_SFT 9
  2075. #define HDMI_O_3_MASK 0x7
  2076. #define HDMI_O_3_MASK_SFT (0x7 << 9)
  2077. #define HDMI_O_2_SFT 6
  2078. #define HDMI_O_2_MASK 0x7
  2079. #define HDMI_O_2_MASK_SFT (0x7 << 6)
  2080. #define HDMI_O_1_SFT 3
  2081. #define HDMI_O_1_MASK 0x7
  2082. #define HDMI_O_1_MASK_SFT (0x7 << 3)
  2083. #define HDMI_O_0_SFT 0
  2084. #define HDMI_O_0_MASK 0x7
  2085. #define HDMI_O_0_MASK_SFT (0x7 << 0)
  2086. /* AFE_AUD_PAD_TOP */
  2087. #define AUD_PAD_TOP_MON_SFT 15
  2088. #define AUD_PAD_TOP_MON_MASK 0x1ffff
  2089. #define AUD_PAD_TOP_MON_MASK_SFT (0x1ffff << 15)
  2090. #define AUD_PAD_TOP_FIFO_RSP_SFT 4
  2091. #define AUD_PAD_TOP_FIFO_RSP_MASK 0xf
  2092. #define AUD_PAD_TOP_FIFO_RSP_MASK_SFT (0xf << 4)
  2093. #define RG_RX_PROTOCOL2_SFT 3
  2094. #define RG_RX_PROTOCOL2_MASK 0x1
  2095. #define RG_RX_PROTOCOL2_MASK_SFT (0x1 << 3)
  2096. #define RESERVDED_01_SFT 1
  2097. #define RESERVDED_01_MASK 0x3
  2098. #define RESERVDED_01_MASK_SFT (0x3 << 1)
  2099. #define RG_RX_FIFO_ON_SFT 0
  2100. #define RG_RX_FIFO_ON_MASK 0x1
  2101. #define RG_RX_FIFO_ON_MASK_SFT (0x1 << 0)
  2102. /* AFE_ADDA_MTKAIF_SYNCWORD_CFG */
  2103. #define RG_ADDA6_MTKAIF_RX_SYNC_WORD2_DISABLE_SFT 23
  2104. #define RG_ADDA6_MTKAIF_RX_SYNC_WORD2_DISABLE_MASK 0x1
  2105. #define RG_ADDA6_MTKAIF_RX_SYNC_WORD2_DISABLE_MASK_SFT (0x1 << 23)
  2106. /* AFE_ADDA_MTKAIF_RX_CFG0 */
  2107. #define MTKAIF_RXIF_VOICE_MODE_SFT 20
  2108. #define MTKAIF_RXIF_VOICE_MODE_MASK 0xf
  2109. #define MTKAIF_RXIF_VOICE_MODE_MASK_SFT (0xf << 20)
  2110. #define MTKAIF_RXIF_DETECT_ON_SFT 16
  2111. #define MTKAIF_RXIF_DETECT_ON_MASK 0x1
  2112. #define MTKAIF_RXIF_DETECT_ON_MASK_SFT (0x1 << 16)
  2113. #define MTKAIF_RXIF_DATA_BIT_SFT 8
  2114. #define MTKAIF_RXIF_DATA_BIT_MASK 0x7
  2115. #define MTKAIF_RXIF_DATA_BIT_MASK_SFT (0x7 << 8)
  2116. #define MTKAIF_RXIF_FIFO_RSP_SFT 4
  2117. #define MTKAIF_RXIF_FIFO_RSP_MASK 0x7
  2118. #define MTKAIF_RXIF_FIFO_RSP_MASK_SFT (0x7 << 4)
  2119. #define MTKAIF_RXIF_DATA_MODE_SFT 0
  2120. #define MTKAIF_RXIF_DATA_MODE_MASK 0x1
  2121. #define MTKAIF_RXIF_DATA_MODE_MASK_SFT (0x1 << 0)
  2122. /* GENERAL_ASRC_MODE */
  2123. #define GENERAL2_ASRCOUT_MODE_SFT 12
  2124. #define GENERAL2_ASRCOUT_MODE_MASK 0xf
  2125. #define GENERAL2_ASRCOUT_MODE_MASK_SFT (0xf << 12)
  2126. #define GENERAL2_ASRCIN_MODE_SFT 8
  2127. #define GENERAL2_ASRCIN_MODE_MASK 0xf
  2128. #define GENERAL2_ASRCIN_MODE_MASK_SFT (0xf << 8)
  2129. #define GENERAL1_ASRCOUT_MODE_SFT 4
  2130. #define GENERAL1_ASRCOUT_MODE_MASK 0xf
  2131. #define GENERAL1_ASRCOUT_MODE_MASK_SFT (0xf << 4)
  2132. #define GENERAL1_ASRCIN_MODE_SFT 0
  2133. #define GENERAL1_ASRCIN_MODE_MASK 0xf
  2134. #define GENERAL1_ASRCIN_MODE_MASK_SFT (0xf << 0)
  2135. /* GENERAL_ASRC_EN_ON */
  2136. #define GENERAL2_ASRC_EN_ON_SFT 1
  2137. #define GENERAL2_ASRC_EN_ON_MASK 0x1
  2138. #define GENERAL2_ASRC_EN_ON_MASK_SFT (0x1 << 1)
  2139. #define GENERAL1_ASRC_EN_ON_SFT 0
  2140. #define GENERAL1_ASRC_EN_ON_MASK 0x1
  2141. #define GENERAL1_ASRC_EN_ON_MASK_SFT (0x1 << 0)
  2142. /* AFE_GENERAL1_ASRC_2CH_CON0 */
  2143. #define G_SRC_CHSET_STR_CLR_SFT 4
  2144. #define G_SRC_CHSET_STR_CLR_MASK 0x1
  2145. #define G_SRC_CHSET_STR_CLR_MASK_SFT (0x1 << 4)
  2146. #define G_SRC_CHSET_ON_SFT 2
  2147. #define G_SRC_CHSET_ON_MASK 0x1
  2148. #define G_SRC_CHSET_ON_MASK_SFT (0x1 << 2)
  2149. #define G_SRC_COEFF_SRAM_CTRL_SFT 1
  2150. #define G_SRC_COEFF_SRAM_CTRL_MASK 0x1
  2151. #define G_SRC_COEFF_SRAM_CTRL_MASK_SFT (0x1 << 1)
  2152. #define G_SRC_ASM_ON_SFT 0
  2153. #define G_SRC_ASM_ON_MASK 0x1
  2154. #define G_SRC_ASM_ON_MASK_SFT (0x1 << 0)
  2155. /* AFE_GENERAL1_ASRC_2CH_CON3 */
  2156. #define G_SRC_ASM_FREQ_4_SFT 0
  2157. #define G_SRC_ASM_FREQ_4_MASK 0xffffff
  2158. #define G_SRC_ASM_FREQ_4_MASK_SFT (0xffffff << 0)
  2159. /* AFE_GENERAL1_ASRC_2CH_CON4 */
  2160. #define G_SRC_ASM_FREQ_5_SFT 0
  2161. #define G_SRC_ASM_FREQ_5_MASK 0xffffff
  2162. #define G_SRC_ASM_FREQ_5_MASK_SFT (0xffffff << 0)
  2163. /* AFE_GENERAL1_ASRC_2CH_CON13 */
  2164. #define G_SRC_COEFF_SRAM_ADR_SFT 0
  2165. #define G_SRC_COEFF_SRAM_ADR_MASK 0x3f
  2166. #define G_SRC_COEFF_SRAM_ADR_MASK_SFT (0x3f << 0)
  2167. /* AFE_GENERAL1_ASRC_2CH_CON2 */
  2168. #define G_SRC_CHSET_O16BIT_SFT 19
  2169. #define G_SRC_CHSET_O16BIT_MASK 0x1
  2170. #define G_SRC_CHSET_O16BIT_MASK_SFT (0x1 << 19)
  2171. #define G_SRC_CHSET_CLR_IIR_HISTORY_SFT 17
  2172. #define G_SRC_CHSET_CLR_IIR_HISTORY_MASK 0x1
  2173. #define G_SRC_CHSET_CLR_IIR_HISTORY_MASK_SFT (0x1 << 17)
  2174. #define G_SRC_CHSET_IS_MONO_SFT 16
  2175. #define G_SRC_CHSET_IS_MONO_MASK 0x1
  2176. #define G_SRC_CHSET_IS_MONO_MASK_SFT (0x1 << 16)
  2177. #define G_SRC_CHSET_IIR_EN_SFT 11
  2178. #define G_SRC_CHSET_IIR_EN_MASK 0x1
  2179. #define G_SRC_CHSET_IIR_EN_MASK_SFT (0x1 << 11)
  2180. #define G_SRC_CHSET_IIR_STAGE_SFT 8
  2181. #define G_SRC_CHSET_IIR_STAGE_MASK 0x7
  2182. #define G_SRC_CHSET_IIR_STAGE_MASK_SFT (0x7 << 8)
  2183. #define G_SRC_CHSET_STR_CLR_RU_SFT 5
  2184. #define G_SRC_CHSET_STR_CLR_RU_MASK 0x1
  2185. #define G_SRC_CHSET_STR_CLR_RU_MASK_SFT (0x1 << 5)
  2186. #define G_SRC_CHSET_ON_SFT 2
  2187. #define G_SRC_CHSET_ON_MASK 0x1
  2188. #define G_SRC_CHSET_ON_MASK_SFT (0x1 << 2)
  2189. #define G_SRC_COEFF_SRAM_CTRL_SFT 1
  2190. #define G_SRC_COEFF_SRAM_CTRL_MASK 0x1
  2191. #define G_SRC_COEFF_SRAM_CTRL_MASK_SFT (0x1 << 1)
  2192. #define G_SRC_ASM_ON_SFT 0
  2193. #define G_SRC_ASM_ON_MASK 0x1
  2194. #define G_SRC_ASM_ON_MASK_SFT (0x1 << 0)
  2195. /* AFE_ADDA_DL_SDM_AUTO_RESET_CON */
  2196. #define ADDA_SDM_AUTO_RESET_ONOFF_SFT 31
  2197. #define ADDA_SDM_AUTO_RESET_ONOFF_MASK 0x1
  2198. #define ADDA_SDM_AUTO_RESET_ONOFF_MASK_SFT (0x1 << 31)
  2199. /* AFE_ADDA_3RD_DAC_DL_SDM_AUTO_RESET_CON */
  2200. #define ADDA_3RD_DAC_SDM_AUTO_RESET_ONOFF_SFT 31
  2201. #define ADDA_3RD_DAC_SDM_AUTO_RESET_ONOFF_MASK 0x1
  2202. #define ADDA_3RD_DAC_SDM_AUTO_RESET_ONOFF_MASK_SFT (0x1 << 31)
  2203. /* AFE_TINY_CONN0 */
  2204. #define O_3_CFG_SFT 24
  2205. #define O_3_CFG_MASK 0x1f
  2206. #define O_3_CFG_MASK_SFT (0x1f << 24)
  2207. #define O_2_CFG_SFT 16
  2208. #define O_2_CFG_MASK 0x1f
  2209. #define O_2_CFG_MASK_SFT (0x1f << 16)
  2210. #define O_1_CFG_SFT 8
  2211. #define O_1_CFG_MASK 0x1f
  2212. #define O_1_CFG_MASK_SFT (0x1f << 8)
  2213. #define O_0_CFG_SFT 0
  2214. #define O_0_CFG_MASK 0x1f
  2215. #define O_0_CFG_MASK_SFT (0x1f << 0)
  2216. /* AFE_TINY_CONN5 */
  2217. #define O_23_CFG_SFT 24
  2218. #define O_23_CFG_MASK 0x1f
  2219. #define O_23_CFG_MASK_SFT (0x1f << 24)
  2220. #define O_22_CFG_SFT 16
  2221. #define O_22_CFG_MASK 0x1f
  2222. #define O_22_CFG_MASK_SFT (0x1f << 16)
  2223. #define O_21_CFG_SFT 8
  2224. #define O_21_CFG_MASK 0x1f
  2225. #define O_21_CFG_MASK_SFT (0x1f << 8)
  2226. #define O_20_CFG_SFT 0
  2227. #define O_20_CFG_MASK 0x1f
  2228. #define O_20_CFG_MASK_SFT (0x1f << 0)
  2229. /* AFE_MEMIF_CONN */
  2230. #define VUL6_USE_TINY_SFT 8
  2231. #define VUL6_USE_TINY_MASK 1
  2232. #define VUL6_USE_TINY_MASK_SFT (0x1 << 8)
  2233. #define VUL5_USE_TINY_SFT 7
  2234. #define VUL5_USE_TINY_MASK 1
  2235. #define VUL5_USE_TINY_MASK_SFT (0x1 << 7)
  2236. #define VUL4_USE_TINY_SFT 6
  2237. #define VUL4_USE_TINY_MASK 1
  2238. #define VUL4_USE_TINY_MASK_SFT (0x1 << 6)
  2239. #define VUL3_USE_TINY_SFT 5
  2240. #define VUL3_USE_TINY_MASK 1
  2241. #define VUL3_USE_TINY_MASK_SFT (0x1 << 5)
  2242. #define AWB2_USE_TINY_SFT 4
  2243. #define AWB2_USE_TINY_MASK 1
  2244. #define AWB2_USE_TINY_MASK_SFT (0x1 << 4)
  2245. #define AWB_USE_TINY_SFT 3
  2246. #define AWB_USE_TINY_MASK 1
  2247. #define AWB_USE_TINY_MASK_SFT (0x1 << 3)
  2248. #define VUL12_USE_TINY_SFT 2
  2249. #define VUL12_USE_TINY_MASK 1
  2250. #define VUL12_USE_TINY_MASK_SFT (0x1 << 2)
  2251. #define VUL2_USE_TINY_SFT 1
  2252. #define VUL2_USE_TINY_MASK 1
  2253. #define VUL2_USE_TINY_MASK_SFT (0x1 << 1)
  2254. #define VUL1_USE_TINY_SFT 0
  2255. #define VUL1_USE_TINY_MASK 1
  2256. #define VUL1_USE_TINY_MASK_SFT (0x1 << 0)
  2257. /* AFE_ASRC_2CH_CON0 */
  2258. #define CON0_CHSET_STR_CLR_SFT 4
  2259. #define CON0_CHSET_STR_CLR_MASK 1
  2260. #define CON0_CHSET_STR_CLR_MASK_SFT (0x1 << 4)
  2261. #define CON0_ASM_ON_SFT 0
  2262. #define CON0_ASM_ON_MASK 1
  2263. #define CON0_ASM_ON_MASK_SFT (0x1 << 0)
  2264. /* AFE_ASRC_2CH_CON5 */
  2265. #define CALI_EN_SFT 0
  2266. #define CALI_EN_MASK 1
  2267. #define CALI_EN_MASK_SFT (0x1 << 0)
  2268. #define AUDIO_TOP_CON0 0x0000
  2269. #define AUDIO_TOP_CON1 0x0004
  2270. #define AUDIO_TOP_CON2 0x0008
  2271. #define AUDIO_TOP_CON3 0x000c
  2272. #define AFE_DAC_CON0 0x0010
  2273. #define AFE_I2S_CON 0x0018
  2274. #define AFE_CONN0 0x0020
  2275. #define AFE_CONN1 0x0024
  2276. #define AFE_CONN2 0x0028
  2277. #define AFE_CONN3 0x002c
  2278. #define AFE_CONN4 0x0030
  2279. #define AFE_I2S_CON1 0x0034
  2280. #define AFE_I2S_CON2 0x0038
  2281. #define AFE_I2S_CON3 0x0040
  2282. #define AFE_CONN5 0x0044
  2283. #define AFE_CONN_24BIT 0x0048
  2284. #define AFE_DL1_CON0 0x004c
  2285. #define AFE_DL1_BASE_MSB 0x0050
  2286. #define AFE_DL1_BASE 0x0054
  2287. #define AFE_DL1_CUR_MSB 0x0058
  2288. #define AFE_DL1_CUR 0x005c
  2289. #define AFE_DL1_END_MSB 0x0060
  2290. #define AFE_DL1_END 0x0064
  2291. #define AFE_DL2_CON0 0x0068
  2292. #define AFE_DL2_BASE_MSB 0x006c
  2293. #define AFE_DL2_BASE 0x0070
  2294. #define AFE_DL2_CUR_MSB 0x0074
  2295. #define AFE_DL2_CUR 0x0078
  2296. #define AFE_DL2_END_MSB 0x007c
  2297. #define AFE_DL2_END 0x0080
  2298. #define AFE_DL3_CON0 0x0084
  2299. #define AFE_DL3_BASE_MSB 0x0088
  2300. #define AFE_DL3_BASE 0x008c
  2301. #define AFE_DL3_CUR_MSB 0x0090
  2302. #define AFE_DL3_CUR 0x0094
  2303. #define AFE_DL3_END_MSB 0x0098
  2304. #define AFE_DL3_END 0x009c
  2305. #define AFE_CONN6 0x00bc
  2306. #define AFE_DL4_CON0 0x00cc
  2307. #define AFE_DL4_BASE_MSB 0x00d0
  2308. #define AFE_DL4_BASE 0x00d4
  2309. #define AFE_DL4_CUR_MSB 0x00d8
  2310. #define AFE_DL4_CUR 0x00dc
  2311. #define AFE_DL4_END_MSB 0x00e0
  2312. #define AFE_DL4_END 0x00e4
  2313. #define AFE_DL12_CON0 0x00e8
  2314. #define AFE_DL12_BASE_MSB 0x00ec
  2315. #define AFE_DL12_BASE 0x00f0
  2316. #define AFE_DL12_CUR_MSB 0x00f4
  2317. #define AFE_DL12_CUR 0x00f8
  2318. #define AFE_DL12_END_MSB 0x00fc
  2319. #define AFE_DL12_END 0x0100
  2320. #define AFE_ADDA_DL_SRC2_CON0 0x0108
  2321. #define AFE_ADDA_DL_SRC2_CON1 0x010c
  2322. #define AFE_ADDA_UL_SRC_CON0 0x0114
  2323. #define AFE_ADDA_UL_SRC_CON1 0x0118
  2324. #define AFE_ADDA_TOP_CON0 0x0120
  2325. #define AFE_ADDA_UL_DL_CON0 0x0124
  2326. #define AFE_ADDA_SRC_DEBUG 0x012c
  2327. #define AFE_ADDA_SRC_DEBUG_MON0 0x0130
  2328. #define AFE_ADDA_SRC_DEBUG_MON1 0x0134
  2329. #define AFE_ADDA_UL_SRC_MON0 0x0148
  2330. #define AFE_ADDA_UL_SRC_MON1 0x014c
  2331. #define AFE_SECURE_CON0 0x0150
  2332. #define AFE_SRAM_BOUND 0x0154
  2333. #define AFE_SECURE_CON1 0x0158
  2334. #define AFE_SECURE_CONN0 0x015c
  2335. #define AFE_VUL_CON0 0x0170
  2336. #define AFE_VUL_BASE_MSB 0x0174
  2337. #define AFE_VUL_BASE 0x0178
  2338. #define AFE_VUL_CUR_MSB 0x017c
  2339. #define AFE_VUL_CUR 0x0180
  2340. #define AFE_VUL_END_MSB 0x0184
  2341. #define AFE_VUL_END 0x0188
  2342. #define AFE_ADDA_3RD_DAC_DL_SDM_AUTO_RESET_CON 0x018c
  2343. #define AFE_ADDA_3RD_DAC_DL_SRC2_CON0 0x0190
  2344. #define AFE_ADDA_3RD_DAC_DL_SRC2_CON1 0x0194
  2345. #define AFE_ADDA_3RD_DAC_PREDIS_CON0 0x01a0
  2346. #define AFE_ADDA_3RD_DAC_PREDIS_CON1 0x01a4
  2347. #define AFE_ADDA_3RD_DAC_PREDIS_CON2 0x01a8
  2348. #define AFE_ADDA_3RD_DAC_PREDIS_CON3 0x01ac
  2349. #define AFE_ADDA_3RD_DAC_DL_SDM_DCCOMP_CON 0x01b0
  2350. #define AFE_ADDA_3RD_DAC_DL_SDM_TEST 0x01b4
  2351. #define AFE_ADDA_3RD_DAC_DL_DC_COMP_CFG0 0x01b8
  2352. #define AFE_ADDA_3RD_DAC_DL_DC_COMP_CFG1 0x01bc
  2353. #define AFE_ADDA_3RD_DAC_DL_SDM_FIFO_MON 0x01c0
  2354. #define AFE_ADDA_3RD_DAC_DL_SRC_LCH_MON 0x01c4
  2355. #define AFE_ADDA_3RD_DAC_DL_SRC_RCH_MON 0x01c8
  2356. #define AFE_ADDA_3RD_DAC_DL_SDM_OUT_MON 0x01cc
  2357. #define AFE_SIDETONE_DEBUG 0x01d0
  2358. #define AFE_SIDETONE_MON 0x01d4
  2359. #define AFE_ADDA_3RD_DAC_DL_SDM_DITHER_CON 0x01d8
  2360. #define AFE_SINEGEN_CON2 0x01dc
  2361. #define AFE_SIDETONE_CON0 0x01e0
  2362. #define AFE_SIDETONE_COEFF 0x01e4
  2363. #define AFE_SIDETONE_CON1 0x01e8
  2364. #define AFE_SIDETONE_GAIN 0x01ec
  2365. #define AFE_SINEGEN_CON0 0x01f0
  2366. #define AFE_I2S_MON2 0x01f8
  2367. #define AFE_SINEGEN_CON_TDM 0x01fc
  2368. #define AFE_TOP_CON0 0x0200
  2369. #define AFE_VUL2_CON0 0x020c
  2370. #define AFE_VUL2_BASE_MSB 0x0210
  2371. #define AFE_VUL2_BASE 0x0214
  2372. #define AFE_VUL2_CUR_MSB 0x0218
  2373. #define AFE_VUL2_CUR 0x021c
  2374. #define AFE_VUL2_END_MSB 0x0220
  2375. #define AFE_VUL2_END 0x0224
  2376. #define AFE_VUL3_CON0 0x0228
  2377. #define AFE_VUL3_BASE_MSB 0x022c
  2378. #define AFE_VUL3_BASE 0x0230
  2379. #define AFE_VUL3_CUR_MSB 0x0234
  2380. #define AFE_VUL3_CUR 0x0238
  2381. #define AFE_VUL3_END_MSB 0x023c
  2382. #define AFE_VUL3_END 0x0240
  2383. #define AFE_BUSY 0x0244
  2384. #define AFE_BUS_CFG 0x0250
  2385. #define AFE_ADDA_PREDIS_CON0 0x0260
  2386. #define AFE_ADDA_PREDIS_CON1 0x0264
  2387. #define AFE_I2S_MON 0x027c
  2388. #define AFE_ADDA_IIR_COEF_02_01 0x0290
  2389. #define AFE_ADDA_IIR_COEF_04_03 0x0294
  2390. #define AFE_ADDA_IIR_COEF_06_05 0x0298
  2391. #define AFE_ADDA_IIR_COEF_08_07 0x029c
  2392. #define AFE_ADDA_IIR_COEF_10_09 0x02a0
  2393. #define AFE_IRQ_MCU_CON1 0x02e4
  2394. #define AFE_IRQ_MCU_CON2 0x02e8
  2395. #define AFE_DAC_MON 0x02ec
  2396. #define AFE_IRQ_MCU_CON3 0x02f0
  2397. #define AFE_IRQ_MCU_CON4 0x02f4
  2398. #define AFE_IRQ_MCU_CNT0 0x0300
  2399. #define AFE_IRQ_MCU_CNT6 0x0304
  2400. #define AFE_IRQ_MCU_CNT8 0x0308
  2401. #define AFE_IRQ_MCU_DSP2_EN 0x030c
  2402. #define AFE_IRQ0_MCU_CNT_MON 0x0310
  2403. #define AFE_IRQ6_MCU_CNT_MON 0x0314
  2404. #define AFE_VUL4_CON0 0x0358
  2405. #define AFE_VUL4_BASE_MSB 0x035c
  2406. #define AFE_VUL4_BASE 0x0360
  2407. #define AFE_VUL4_CUR_MSB 0x0364
  2408. #define AFE_VUL4_CUR 0x0368
  2409. #define AFE_VUL4_END_MSB 0x036c
  2410. #define AFE_VUL4_END 0x0370
  2411. #define AFE_VUL12_CON0 0x0374
  2412. #define AFE_VUL12_BASE_MSB 0x0378
  2413. #define AFE_VUL12_BASE 0x037c
  2414. #define AFE_VUL12_CUR_MSB 0x0380
  2415. #define AFE_VUL12_CUR 0x0384
  2416. #define AFE_VUL12_END_MSB 0x0388
  2417. #define AFE_VUL12_END 0x038c
  2418. #define AFE_HDMI_CONN0 0x0390
  2419. #define AFE_IRQ3_MCU_CNT_MON 0x0398
  2420. #define AFE_IRQ4_MCU_CNT_MON 0x039c
  2421. #define AFE_IRQ_MCU_CON0 0x03a0
  2422. #define AFE_IRQ_MCU_STATUS 0x03a4
  2423. #define AFE_IRQ_MCU_CLR 0x03a8
  2424. #define AFE_IRQ_MCU_CNT1 0x03ac
  2425. #define AFE_IRQ_MCU_CNT2 0x03b0
  2426. #define AFE_IRQ_MCU_EN 0x03b4
  2427. #define AFE_IRQ_MCU_MON2 0x03b8
  2428. #define AFE_IRQ_MCU_CNT5 0x03bc
  2429. #define AFE_IRQ1_MCU_CNT_MON 0x03c0
  2430. #define AFE_IRQ2_MCU_CNT_MON 0x03c4
  2431. #define AFE_IRQ5_MCU_CNT_MON 0x03cc
  2432. #define AFE_IRQ_MCU_DSP_EN 0x03d0
  2433. #define AFE_IRQ_MCU_SCP_EN 0x03d4
  2434. #define AFE_IRQ_MCU_CNT7 0x03dc
  2435. #define AFE_IRQ7_MCU_CNT_MON 0x03e0
  2436. #define AFE_IRQ_MCU_CNT3 0x03e4
  2437. #define AFE_IRQ_MCU_CNT4 0x03e8
  2438. #define AFE_IRQ_MCU_CNT11 0x03ec
  2439. #define AFE_APLL1_TUNER_CFG 0x03f0
  2440. #define AFE_APLL2_TUNER_CFG 0x03f4
  2441. #define AFE_IRQ_MCU_MISS_CLR 0x03f8
  2442. #define AFE_CONN33 0x0408
  2443. #define AFE_IRQ_MCU_CNT12 0x040c
  2444. #define AFE_GAIN1_CON0 0x0410
  2445. #define AFE_GAIN1_CON1 0x0414
  2446. #define AFE_GAIN1_CON2 0x0418
  2447. #define AFE_GAIN1_CON3 0x041c
  2448. #define AFE_CONN7 0x0420
  2449. #define AFE_GAIN1_CUR 0x0424
  2450. #define AFE_GAIN2_CON0 0x0428
  2451. #define AFE_GAIN2_CON1 0x042c
  2452. #define AFE_GAIN2_CON2 0x0430
  2453. #define AFE_GAIN2_CON3 0x0434
  2454. #define AFE_CONN8 0x0438
  2455. #define AFE_GAIN2_CUR 0x043c
  2456. #define AFE_CONN9 0x0440
  2457. #define AFE_CONN10 0x0444
  2458. #define AFE_CONN11 0x0448
  2459. #define AFE_CONN12 0x044c
  2460. #define AFE_CONN13 0x0450
  2461. #define AFE_CONN14 0x0454
  2462. #define AFE_CONN15 0x0458
  2463. #define AFE_CONN16 0x045c
  2464. #define AFE_CONN17 0x0460
  2465. #define AFE_CONN18 0x0464
  2466. #define AFE_CONN19 0x0468
  2467. #define AFE_CONN20 0x046c
  2468. #define AFE_CONN21 0x0470
  2469. #define AFE_CONN22 0x0474
  2470. #define AFE_CONN23 0x0478
  2471. #define AFE_CONN24 0x047c
  2472. #define AFE_CONN_RS 0x0494
  2473. #define AFE_CONN_DI 0x0498
  2474. #define AFE_CONN25 0x04b0
  2475. #define AFE_CONN26 0x04b4
  2476. #define AFE_CONN27 0x04b8
  2477. #define AFE_CONN28 0x04bc
  2478. #define AFE_CONN29 0x04c0
  2479. #define AFE_CONN30 0x04c4
  2480. #define AFE_CONN31 0x04c8
  2481. #define AFE_CONN32 0x04cc
  2482. #define AFE_SRAM_DELSEL_CON1 0x04f4
  2483. #define AFE_CONN56 0x0500
  2484. #define AFE_CONN57 0x0504
  2485. #define AFE_CONN56_1 0x0510
  2486. #define AFE_CONN57_1 0x0514
  2487. #define AFE_TINY_CONN2 0x0520
  2488. #define AFE_TINY_CONN3 0x0524
  2489. #define AFE_TINY_CONN4 0x0528
  2490. #define AFE_TINY_CONN5 0x052c
  2491. #define PCM_INTF_CON1 0x0530
  2492. #define PCM_INTF_CON2 0x0538
  2493. #define PCM2_INTF_CON 0x053c
  2494. #define AFE_TDM_CON1 0x0548
  2495. #define AFE_TDM_CON2 0x054c
  2496. #define AFE_I2S_CON6 0x0564
  2497. #define AFE_I2S_CON7 0x0568
  2498. #define AFE_I2S_CON8 0x056c
  2499. #define AFE_I2S_CON9 0x0570
  2500. #define AFE_CONN34 0x0580
  2501. #define FPGA_CFG0 0x05b0
  2502. #define FPGA_CFG1 0x05b4
  2503. #define FPGA_CFG2 0x05c0
  2504. #define FPGA_CFG3 0x05c4
  2505. #define AUDIO_TOP_DBG_CON 0x05c8
  2506. #define AUDIO_TOP_DBG_MON0 0x05cc
  2507. #define AUDIO_TOP_DBG_MON1 0x05d0
  2508. #define AFE_IRQ8_MCU_CNT_MON 0x05e4
  2509. #define AFE_IRQ11_MCU_CNT_MON 0x05e8
  2510. #define AFE_IRQ12_MCU_CNT_MON 0x05ec
  2511. #define AFE_IRQ_MCU_CNT9 0x0600
  2512. #define AFE_IRQ_MCU_CNT10 0x0604
  2513. #define AFE_IRQ_MCU_CNT13 0x0608
  2514. #define AFE_IRQ_MCU_CNT14 0x060c
  2515. #define AFE_IRQ_MCU_CNT15 0x0610
  2516. #define AFE_IRQ_MCU_CNT16 0x0614
  2517. #define AFE_IRQ_MCU_CNT17 0x0618
  2518. #define AFE_IRQ_MCU_CNT18 0x061c
  2519. #define AFE_IRQ_MCU_CNT19 0x0620
  2520. #define AFE_IRQ_MCU_CNT20 0x0624
  2521. #define AFE_IRQ_MCU_CNT21 0x0628
  2522. #define AFE_IRQ_MCU_CNT22 0x062c
  2523. #define AFE_IRQ_MCU_CNT23 0x0630
  2524. #define AFE_IRQ_MCU_CNT24 0x0634
  2525. #define AFE_IRQ_MCU_CNT25 0x0638
  2526. #define AFE_IRQ_MCU_CNT26 0x063c
  2527. #define AFE_IRQ_MCU_CNT31 0x0640
  2528. #define AFE_TINY_CONN6 0x0650
  2529. #define AFE_TINY_CONN7 0x0654
  2530. #define AFE_IRQ9_MCU_CNT_MON 0x0660
  2531. #define AFE_IRQ10_MCU_CNT_MON 0x0664
  2532. #define AFE_IRQ13_MCU_CNT_MON 0x0668
  2533. #define AFE_IRQ14_MCU_CNT_MON 0x066c
  2534. #define AFE_IRQ15_MCU_CNT_MON 0x0670
  2535. #define AFE_IRQ16_MCU_CNT_MON 0x0674
  2536. #define AFE_IRQ17_MCU_CNT_MON 0x0678
  2537. #define AFE_IRQ18_MCU_CNT_MON 0x067c
  2538. #define AFE_IRQ19_MCU_CNT_MON 0x0680
  2539. #define AFE_IRQ20_MCU_CNT_MON 0x0684
  2540. #define AFE_IRQ21_MCU_CNT_MON 0x0688
  2541. #define AFE_IRQ22_MCU_CNT_MON 0x068c
  2542. #define AFE_IRQ23_MCU_CNT_MON 0x0690
  2543. #define AFE_IRQ24_MCU_CNT_MON 0x0694
  2544. #define AFE_IRQ25_MCU_CNT_MON 0x0698
  2545. #define AFE_IRQ26_MCU_CNT_MON 0x069c
  2546. #define AFE_IRQ31_MCU_CNT_MON 0x06a0
  2547. #define AFE_GENERAL_REG0 0x0800
  2548. #define AFE_GENERAL_REG1 0x0804
  2549. #define AFE_GENERAL_REG2 0x0808
  2550. #define AFE_GENERAL_REG3 0x080c
  2551. #define AFE_GENERAL_REG4 0x0810
  2552. #define AFE_GENERAL_REG5 0x0814
  2553. #define AFE_GENERAL_REG6 0x0818
  2554. #define AFE_GENERAL_REG7 0x081c
  2555. #define AFE_GENERAL_REG8 0x0820
  2556. #define AFE_GENERAL_REG9 0x0824
  2557. #define AFE_GENERAL_REG10 0x0828
  2558. #define AFE_GENERAL_REG11 0x082c
  2559. #define AFE_GENERAL_REG12 0x0830
  2560. #define AFE_GENERAL_REG13 0x0834
  2561. #define AFE_GENERAL_REG14 0x0838
  2562. #define AFE_GENERAL_REG15 0x083c
  2563. #define AFE_CBIP_CFG0 0x0840
  2564. #define AFE_CBIP_MON0 0x0844
  2565. #define AFE_CBIP_SLV_MUX_MON0 0x0848
  2566. #define AFE_CBIP_SLV_DECODER_MON0 0x084c
  2567. #define AFE_ADDA6_MTKAIF_MON0 0x0854
  2568. #define AFE_ADDA6_MTKAIF_MON1 0x0858
  2569. #define AFE_AWB_CON0 0x085c
  2570. #define AFE_AWB_BASE_MSB 0x0860
  2571. #define AFE_AWB_BASE 0x0864
  2572. #define AFE_AWB_CUR_MSB 0x0868
  2573. #define AFE_AWB_CUR 0x086c
  2574. #define AFE_AWB_END_MSB 0x0870
  2575. #define AFE_AWB_END 0x0874
  2576. #define AFE_AWB2_CON0 0x0878
  2577. #define AFE_AWB2_BASE_MSB 0x087c
  2578. #define AFE_AWB2_BASE 0x0880
  2579. #define AFE_AWB2_CUR_MSB 0x0884
  2580. #define AFE_AWB2_CUR 0x0888
  2581. #define AFE_AWB2_END_MSB 0x088c
  2582. #define AFE_AWB2_END 0x0890
  2583. #define AFE_DAI_CON0 0x0894
  2584. #define AFE_DAI_BASE_MSB 0x0898
  2585. #define AFE_DAI_BASE 0x089c
  2586. #define AFE_DAI_CUR_MSB 0x08a0
  2587. #define AFE_DAI_CUR 0x08a4
  2588. #define AFE_DAI_END_MSB 0x08a8
  2589. #define AFE_DAI_END 0x08ac
  2590. #define AFE_DAI2_CON0 0x08b0
  2591. #define AFE_DAI2_BASE_MSB 0x08b4
  2592. #define AFE_DAI2_BASE 0x08b8
  2593. #define AFE_DAI2_CUR_MSB 0x08bc
  2594. #define AFE_DAI2_CUR 0x08c0
  2595. #define AFE_DAI2_END_MSB 0x08c4
  2596. #define AFE_DAI2_END 0x08c8
  2597. #define AFE_MEMIF_CON0 0x08cc
  2598. #define AFE_CONN0_1 0x0900
  2599. #define AFE_CONN1_1 0x0904
  2600. #define AFE_CONN2_1 0x0908
  2601. #define AFE_CONN3_1 0x090c
  2602. #define AFE_CONN4_1 0x0910
  2603. #define AFE_CONN5_1 0x0914
  2604. #define AFE_CONN6_1 0x0918
  2605. #define AFE_CONN7_1 0x091c
  2606. #define AFE_CONN8_1 0x0920
  2607. #define AFE_CONN9_1 0x0924
  2608. #define AFE_CONN10_1 0x0928
  2609. #define AFE_CONN11_1 0x092c
  2610. #define AFE_CONN12_1 0x0930
  2611. #define AFE_CONN13_1 0x0934
  2612. #define AFE_CONN14_1 0x0938
  2613. #define AFE_CONN15_1 0x093c
  2614. #define AFE_CONN16_1 0x0940
  2615. #define AFE_CONN17_1 0x0944
  2616. #define AFE_CONN18_1 0x0948
  2617. #define AFE_CONN19_1 0x094c
  2618. #define AFE_CONN20_1 0x0950
  2619. #define AFE_CONN21_1 0x0954
  2620. #define AFE_CONN22_1 0x0958
  2621. #define AFE_CONN23_1 0x095c
  2622. #define AFE_CONN24_1 0x0960
  2623. #define AFE_CONN25_1 0x0964
  2624. #define AFE_CONN26_1 0x0968
  2625. #define AFE_CONN27_1 0x096c
  2626. #define AFE_CONN28_1 0x0970
  2627. #define AFE_CONN29_1 0x0974
  2628. #define AFE_CONN30_1 0x0978
  2629. #define AFE_CONN31_1 0x097c
  2630. #define AFE_CONN32_1 0x0980
  2631. #define AFE_CONN33_1 0x0984
  2632. #define AFE_CONN34_1 0x0988
  2633. #define AFE_CONN_RS_1 0x098c
  2634. #define AFE_CONN_DI_1 0x0990
  2635. #define AFE_CONN_24BIT_1 0x0994
  2636. #define AFE_CONN_REG 0x0998
  2637. #define AFE_CONN35 0x09a0
  2638. #define AFE_CONN36 0x09a4
  2639. #define AFE_CONN37 0x09a8
  2640. #define AFE_CONN38 0x09ac
  2641. #define AFE_CONN35_1 0x09b0
  2642. #define AFE_CONN36_1 0x09b4
  2643. #define AFE_CONN37_1 0x09b8
  2644. #define AFE_CONN38_1 0x09bc
  2645. #define AFE_CONN39 0x09c0
  2646. #define AFE_CONN40 0x09c4
  2647. #define AFE_CONN41 0x09c8
  2648. #define AFE_CONN42 0x09cc
  2649. #define AFE_SGEN_CON_SGEN32 0x09d0
  2650. #define AFE_CONN39_1 0x09e0
  2651. #define AFE_CONN40_1 0x09e4
  2652. #define AFE_CONN41_1 0x09e8
  2653. #define AFE_CONN42_1 0x09ec
  2654. #define AFE_I2S_CON4 0x09f8
  2655. #define AFE_ADDA6_TOP_CON0 0x0a80
  2656. #define AFE_ADDA6_UL_SRC_CON0 0x0a84
  2657. #define AFE_ADDA6_UL_SRC_CON1 0x0a88
  2658. #define AFE_ADDA6_SRC_DEBUG 0x0a8c
  2659. #define AFE_ADDA6_SRC_DEBUG_MON0 0x0a90
  2660. #define AFE_ADDA6_ULCF_CFG_02_01 0x0aa0
  2661. #define AFE_ADDA6_ULCF_CFG_04_03 0x0aa4
  2662. #define AFE_ADDA6_ULCF_CFG_06_05 0x0aa8
  2663. #define AFE_ADDA6_ULCF_CFG_08_07 0x0aac
  2664. #define AFE_ADDA6_ULCF_CFG_10_09 0x0ab0
  2665. #define AFE_ADDA6_ULCF_CFG_12_11 0x0ab4
  2666. #define AFE_ADDA6_ULCF_CFG_14_13 0x0ab8
  2667. #define AFE_ADDA6_ULCF_CFG_16_15 0x0abc
  2668. #define AFE_ADDA6_ULCF_CFG_18_17 0x0ac0
  2669. #define AFE_ADDA6_ULCF_CFG_20_19 0x0ac4
  2670. #define AFE_ADDA6_ULCF_CFG_22_21 0x0ac8
  2671. #define AFE_ADDA6_ULCF_CFG_24_23 0x0acc
  2672. #define AFE_ADDA6_ULCF_CFG_26_25 0x0ad0
  2673. #define AFE_ADDA6_ULCF_CFG_28_27 0x0ad4
  2674. #define AFE_ADDA6_ULCF_CFG_30_29 0x0ad8
  2675. #define AFE_ADD6A_UL_SRC_MON0 0x0ae4
  2676. #define AFE_ADDA6_UL_SRC_MON1 0x0ae8
  2677. #define AFE_TINY_CONN0 0x0af0
  2678. #define AFE_TINY_CONN1 0x0af4
  2679. #define AFE_CONN43 0x0af8
  2680. #define AFE_CONN43_1 0x0afc
  2681. #define AFE_MOD_DAI_CON0 0x0b00
  2682. #define AFE_MOD_DAI_BASE_MSB 0x0b04
  2683. #define AFE_MOD_DAI_BASE 0x0b08
  2684. #define AFE_MOD_DAI_CUR_MSB 0x0b0c
  2685. #define AFE_MOD_DAI_CUR 0x0b10
  2686. #define AFE_MOD_DAI_END_MSB 0x0b14
  2687. #define AFE_MOD_DAI_END 0x0b18
  2688. #define AFE_HDMI_OUT_CON0 0x0b1c
  2689. #define AFE_HDMI_OUT_BASE_MSB 0x0b20
  2690. #define AFE_HDMI_OUT_BASE 0x0b24
  2691. #define AFE_HDMI_OUT_CUR_MSB 0x0b28
  2692. #define AFE_HDMI_OUT_CUR 0x0b2c
  2693. #define AFE_HDMI_OUT_END_MSB 0x0b30
  2694. #define AFE_HDMI_OUT_END 0x0b34
  2695. #define AFE_AWB_RCH_MON 0x0b70
  2696. #define AFE_AWB_LCH_MON 0x0b74
  2697. #define AFE_VUL_RCH_MON 0x0b78
  2698. #define AFE_VUL_LCH_MON 0x0b7c
  2699. #define AFE_VUL12_RCH_MON 0x0b80
  2700. #define AFE_VUL12_LCH_MON 0x0b84
  2701. #define AFE_VUL2_RCH_MON 0x0b88
  2702. #define AFE_VUL2_LCH_MON 0x0b8c
  2703. #define AFE_DAI_DATA_MON 0x0b90
  2704. #define AFE_MOD_DAI_DATA_MON 0x0b94
  2705. #define AFE_DAI2_DATA_MON 0x0b98
  2706. #define AFE_AWB2_RCH_MON 0x0b9c
  2707. #define AFE_AWB2_LCH_MON 0x0ba0
  2708. #define AFE_VUL3_RCH_MON 0x0ba4
  2709. #define AFE_VUL3_LCH_MON 0x0ba8
  2710. #define AFE_VUL4_RCH_MON 0x0bac
  2711. #define AFE_VUL4_LCH_MON 0x0bb0
  2712. #define AFE_VUL5_RCH_MON 0x0bb4
  2713. #define AFE_VUL5_LCH_MON 0x0bb8
  2714. #define AFE_VUL6_RCH_MON 0x0bbc
  2715. #define AFE_VUL6_LCH_MON 0x0bc0
  2716. #define AFE_DL1_RCH_MON 0x0bc4
  2717. #define AFE_DL1_LCH_MON 0x0bc8
  2718. #define AFE_DL2_RCH_MON 0x0bcc
  2719. #define AFE_DL2_LCH_MON 0x0bd0
  2720. #define AFE_DL12_RCH1_MON 0x0bd4
  2721. #define AFE_DL12_LCH1_MON 0x0bd8
  2722. #define AFE_DL12_RCH2_MON 0x0bdc
  2723. #define AFE_DL12_LCH2_MON 0x0be0
  2724. #define AFE_DL3_RCH_MON 0x0be4
  2725. #define AFE_DL3_LCH_MON 0x0be8
  2726. #define AFE_DL4_RCH_MON 0x0bec
  2727. #define AFE_DL4_LCH_MON 0x0bf0
  2728. #define AFE_DL5_RCH_MON 0x0bf4
  2729. #define AFE_DL5_LCH_MON 0x0bf8
  2730. #define AFE_DL6_RCH_MON 0x0bfc
  2731. #define AFE_DL6_LCH_MON 0x0c00
  2732. #define AFE_DL7_RCH_MON 0x0c04
  2733. #define AFE_DL7_LCH_MON 0x0c08
  2734. #define AFE_DL8_RCH_MON 0x0c0c
  2735. #define AFE_DL8_LCH_MON 0x0c10
  2736. #define AFE_VUL5_CON0 0x0c14
  2737. #define AFE_VUL5_BASE_MSB 0x0c18
  2738. #define AFE_VUL5_BASE 0x0c1c
  2739. #define AFE_VUL5_CUR_MSB 0x0c20
  2740. #define AFE_VUL5_CUR 0x0c24
  2741. #define AFE_VUL5_END_MSB 0x0c28
  2742. #define AFE_VUL5_END 0x0c2c
  2743. #define AFE_VUL6_CON0 0x0c30
  2744. #define AFE_VUL6_BASE_MSB 0x0c34
  2745. #define AFE_VUL6_BASE 0x0c38
  2746. #define AFE_VUL6_CUR_MSB 0x0c3c
  2747. #define AFE_VUL6_CUR 0x0c40
  2748. #define AFE_VUL6_END_MSB 0x0c44
  2749. #define AFE_VUL6_END 0x0c48
  2750. #define AFE_ADDA_DL_SDM_DCCOMP_CON 0x0c50
  2751. #define AFE_ADDA_DL_SDM_TEST 0x0c54
  2752. #define AFE_ADDA_DL_DC_COMP_CFG0 0x0c58
  2753. #define AFE_ADDA_DL_DC_COMP_CFG1 0x0c5c
  2754. #define AFE_ADDA_DL_SDM_FIFO_MON 0x0c60
  2755. #define AFE_ADDA_DL_SRC_LCH_MON 0x0c64
  2756. #define AFE_ADDA_DL_SRC_RCH_MON 0x0c68
  2757. #define AFE_ADDA_DL_SDM_OUT_MON 0x0c6c
  2758. #define AFE_ADDA_DL_SDM_DITHER_CON 0x0c70
  2759. #define AFE_ADDA_DL_SDM_AUTO_RESET_CON 0x0c74
  2760. #define AFE_CONNSYS_I2S_CON 0x0c78
  2761. #define AFE_CONNSYS_I2S_MON 0x0c7c
  2762. #define AFE_ASRC_2CH_CON0 0x0c80
  2763. #define AFE_ASRC_2CH_CON1 0x0c84
  2764. #define AFE_ASRC_2CH_CON2 0x0c88
  2765. #define AFE_ASRC_2CH_CON3 0x0c8c
  2766. #define AFE_ASRC_2CH_CON4 0x0c90
  2767. #define AFE_ASRC_2CH_CON5 0x0c94
  2768. #define AFE_ASRC_2CH_CON6 0x0c98
  2769. #define AFE_ASRC_2CH_CON7 0x0c9c
  2770. #define AFE_ASRC_2CH_CON8 0x0ca0
  2771. #define AFE_ASRC_2CH_CON9 0x0ca4
  2772. #define AFE_ASRC_2CH_CON10 0x0ca8
  2773. #define AFE_ASRC_2CH_CON12 0x0cb0
  2774. #define AFE_ASRC_2CH_CON13 0x0cb4
  2775. #define AFE_ADDA6_IIR_COEF_02_01 0x0ce0
  2776. #define AFE_ADDA6_IIR_COEF_04_03 0x0ce4
  2777. #define AFE_ADDA6_IIR_COEF_06_05 0x0ce8
  2778. #define AFE_ADDA6_IIR_COEF_08_07 0x0cec
  2779. #define AFE_ADDA6_IIR_COEF_10_09 0x0cf0
  2780. #define AFE_SE_PROT_SIDEBAND 0x0d38
  2781. #define AFE_SE_DOMAIN_SIDEBAND0 0x0d3c
  2782. #define AFE_ADDA_PREDIS_CON2 0x0d40
  2783. #define AFE_ADDA_PREDIS_CON3 0x0d44
  2784. #define AFE_MEMIF_CONN 0x0d50
  2785. #define AFE_SE_DOMAIN_SIDEBAND1 0x0d54
  2786. #define AFE_SE_DOMAIN_SIDEBAND2 0x0d58
  2787. #define AFE_SE_DOMAIN_SIDEBAND3 0x0d5c
  2788. #define AFE_CONN44 0x0d70
  2789. #define AFE_CONN45 0x0d74
  2790. #define AFE_CONN46 0x0d78
  2791. #define AFE_CONN47 0x0d7c
  2792. #define AFE_CONN44_1 0x0d80
  2793. #define AFE_CONN45_1 0x0d84
  2794. #define AFE_CONN46_1 0x0d88
  2795. #define AFE_CONN47_1 0x0d8c
  2796. #define AFE_DL9_CUR_MSB 0x0dc0
  2797. #define AFE_DL9_CUR 0x0dc4
  2798. #define AFE_DL9_END_MSB 0x0dc8
  2799. #define AFE_DL9_END 0x0dcc
  2800. #define AFE_HD_ENGEN_ENABLE 0x0dd0
  2801. #define AFE_ADDA_DL_NLE_FIFO_MON 0x0dfc
  2802. #define AFE_ADDA_MTKAIF_CFG0 0x0e00
  2803. #define AFE_ADDA_MTKAIF_SYNCWORD_CFG 0x0e14
  2804. #define AFE_ADDA_MTKAIF_RX_CFG0 0x0e20
  2805. #define AFE_ADDA_MTKAIF_RX_CFG1 0x0e24
  2806. #define AFE_ADDA_MTKAIF_RX_CFG2 0x0e28
  2807. #define AFE_ADDA_MTKAIF_MON0 0x0e34
  2808. #define AFE_ADDA_MTKAIF_MON1 0x0e38
  2809. #define AFE_AUD_PAD_TOP 0x0e40
  2810. #define AFE_DL_NLE_R_CFG0 0x0e44
  2811. #define AFE_DL_NLE_R_CFG1 0x0e48
  2812. #define AFE_DL_NLE_L_CFG0 0x0e4c
  2813. #define AFE_DL_NLE_L_CFG1 0x0e50
  2814. #define AFE_DL_NLE_R_MON0 0x0e54
  2815. #define AFE_DL_NLE_R_MON1 0x0e58
  2816. #define AFE_DL_NLE_R_MON2 0x0e5c
  2817. #define AFE_DL_NLE_L_MON0 0x0e60
  2818. #define AFE_DL_NLE_L_MON1 0x0e64
  2819. #define AFE_DL_NLE_L_MON2 0x0e68
  2820. #define AFE_DL_NLE_GAIN_CFG0 0x0e6c
  2821. #define AFE_ADDA6_MTKAIF_CFG0 0x0e70
  2822. #define AFE_ADDA6_MTKAIF_RX_CFG0 0x0e74
  2823. #define AFE_ADDA6_MTKAIF_RX_CFG1 0x0e78
  2824. #define AFE_ADDA6_MTKAIF_RX_CFG2 0x0e7c
  2825. #define AFE_GENERAL1_ASRC_2CH_CON0 0x0e80
  2826. #define AFE_GENERAL1_ASRC_2CH_CON1 0x0e84
  2827. #define AFE_GENERAL1_ASRC_2CH_CON2 0x0e88
  2828. #define AFE_GENERAL1_ASRC_2CH_CON3 0x0e8c
  2829. #define AFE_GENERAL1_ASRC_2CH_CON4 0x0e90
  2830. #define AFE_GENERAL1_ASRC_2CH_CON5 0x0e94
  2831. #define AFE_GENERAL1_ASRC_2CH_CON6 0x0e98
  2832. #define AFE_GENERAL1_ASRC_2CH_CON7 0x0e9c
  2833. #define AFE_GENERAL1_ASRC_2CH_CON8 0x0ea0
  2834. #define AFE_GENERAL1_ASRC_2CH_CON9 0x0ea4
  2835. #define AFE_GENERAL1_ASRC_2CH_CON10 0x0ea8
  2836. #define AFE_GENERAL1_ASRC_2CH_CON12 0x0eb0
  2837. #define AFE_GENERAL1_ASRC_2CH_CON13 0x0eb4
  2838. #define GENERAL_ASRC_MODE 0x0eb8
  2839. #define GENERAL_ASRC_EN_ON 0x0ebc
  2840. #define AFE_CONN48 0x0ec0
  2841. #define AFE_CONN49 0x0ec4
  2842. #define AFE_CONN50 0x0ec8
  2843. #define AFE_CONN51 0x0ecc
  2844. #define AFE_CONN52 0x0ed0
  2845. #define AFE_CONN53 0x0ed4
  2846. #define AFE_CONN54 0x0ed8
  2847. #define AFE_CONN55 0x0edc
  2848. #define AFE_CONN48_1 0x0ee0
  2849. #define AFE_CONN49_1 0x0ee4
  2850. #define AFE_CONN50_1 0x0ee8
  2851. #define AFE_CONN51_1 0x0eec
  2852. #define AFE_CONN52_1 0x0ef0
  2853. #define AFE_CONN53_1 0x0ef4
  2854. #define AFE_CONN54_1 0x0ef8
  2855. #define AFE_CONN55_1 0x0efc
  2856. #define AFE_GENERAL2_ASRC_2CH_CON0 0x0f00
  2857. #define AFE_GENERAL2_ASRC_2CH_CON1 0x0f04
  2858. #define AFE_GENERAL2_ASRC_2CH_CON2 0x0f08
  2859. #define AFE_GENERAL2_ASRC_2CH_CON3 0x0f0c
  2860. #define AFE_GENERAL2_ASRC_2CH_CON4 0x0f10
  2861. #define AFE_GENERAL2_ASRC_2CH_CON5 0x0f14
  2862. #define AFE_GENERAL2_ASRC_2CH_CON6 0x0f18
  2863. #define AFE_GENERAL2_ASRC_2CH_CON7 0x0f1c
  2864. #define AFE_GENERAL2_ASRC_2CH_CON8 0x0f20
  2865. #define AFE_GENERAL2_ASRC_2CH_CON9 0x0f24
  2866. #define AFE_GENERAL2_ASRC_2CH_CON10 0x0f28
  2867. #define AFE_GENERAL2_ASRC_2CH_CON12 0x0f30
  2868. #define AFE_GENERAL2_ASRC_2CH_CON13 0x0f34
  2869. #define AFE_DL9_RCH_MON 0x0f38
  2870. #define AFE_DL9_LCH_MON 0x0f3c
  2871. #define AFE_DL5_CON0 0x0f4c
  2872. #define AFE_DL5_BASE_MSB 0x0f50
  2873. #define AFE_DL5_BASE 0x0f54
  2874. #define AFE_DL5_CUR_MSB 0x0f58
  2875. #define AFE_DL5_CUR 0x0f5c
  2876. #define AFE_DL5_END_MSB 0x0f60
  2877. #define AFE_DL5_END 0x0f64
  2878. #define AFE_DL6_CON0 0x0f68
  2879. #define AFE_DL6_BASE_MSB 0x0f6c
  2880. #define AFE_DL6_BASE 0x0f70
  2881. #define AFE_DL6_CUR_MSB 0x0f74
  2882. #define AFE_DL6_CUR 0x0f78
  2883. #define AFE_DL6_END_MSB 0x0f7c
  2884. #define AFE_DL6_END 0x0f80
  2885. #define AFE_DL7_CON0 0x0f84
  2886. #define AFE_DL7_BASE_MSB 0x0f88
  2887. #define AFE_DL7_BASE 0x0f8c
  2888. #define AFE_DL7_CUR_MSB 0x0f90
  2889. #define AFE_DL7_CUR 0x0f94
  2890. #define AFE_DL7_END_MSB 0x0f98
  2891. #define AFE_DL7_END 0x0f9c
  2892. #define AFE_DL8_CON0 0x0fa0
  2893. #define AFE_DL8_BASE_MSB 0x0fa4
  2894. #define AFE_DL8_BASE 0x0fa8
  2895. #define AFE_DL8_CUR_MSB 0x0fac
  2896. #define AFE_DL8_CUR 0x0fb0
  2897. #define AFE_DL8_END_MSB 0x0fb4
  2898. #define AFE_DL8_END 0x0fb8
  2899. #define AFE_DL9_CON0 0x0fbc
  2900. #define AFE_DL9_BASE_MSB 0x0fc0
  2901. #define AFE_DL9_BASE 0x0fc4
  2902. #define AFE_SE_SECURE_CON 0x1004
  2903. #define AFE_PROT_SIDEBAND_MON 0x1008
  2904. #define AFE_DOMAIN_SIDEBAND0_MON 0x100c
  2905. #define AFE_DOMAIN_SIDEBAND1_MON 0x1010
  2906. #define AFE_DOMAIN_SIDEBAND2_MON 0x1014
  2907. #define AFE_DOMAIN_SIDEBAND3_MON 0x1018
  2908. #define AFE_SECURE_MASK_CONN0 0x1020
  2909. #define AFE_SECURE_MASK_CONN1 0x1024
  2910. #define AFE_SECURE_MASK_CONN2 0x1028
  2911. #define AFE_SECURE_MASK_CONN3 0x102c
  2912. #define AFE_SECURE_MASK_CONN4 0x1030
  2913. #define AFE_SECURE_MASK_CONN5 0x1034
  2914. #define AFE_SECURE_MASK_CONN6 0x1038
  2915. #define AFE_SECURE_MASK_CONN7 0x103c
  2916. #define AFE_SECURE_MASK_CONN8 0x1040
  2917. #define AFE_SECURE_MASK_CONN9 0x1044
  2918. #define AFE_SECURE_MASK_CONN10 0x1048
  2919. #define AFE_SECURE_MASK_CONN11 0x104c
  2920. #define AFE_SECURE_MASK_CONN12 0x1050
  2921. #define AFE_SECURE_MASK_CONN13 0x1054
  2922. #define AFE_SECURE_MASK_CONN14 0x1058
  2923. #define AFE_SECURE_MASK_CONN15 0x105c
  2924. #define AFE_SECURE_MASK_CONN16 0x1060
  2925. #define AFE_SECURE_MASK_CONN17 0x1064
  2926. #define AFE_SECURE_MASK_CONN18 0x1068
  2927. #define AFE_SECURE_MASK_CONN19 0x106c
  2928. #define AFE_SECURE_MASK_CONN20 0x1070
  2929. #define AFE_SECURE_MASK_CONN21 0x1074
  2930. #define AFE_SECURE_MASK_CONN22 0x1078
  2931. #define AFE_SECURE_MASK_CONN23 0x107c
  2932. #define AFE_SECURE_MASK_CONN24 0x1080
  2933. #define AFE_SECURE_MASK_CONN25 0x1084
  2934. #define AFE_SECURE_MASK_CONN26 0x1088
  2935. #define AFE_SECURE_MASK_CONN27 0x108c
  2936. #define AFE_SECURE_MASK_CONN28 0x1090
  2937. #define AFE_SECURE_MASK_CONN29 0x1094
  2938. #define AFE_SECURE_MASK_CONN30 0x1098
  2939. #define AFE_SECURE_MASK_CONN31 0x109c
  2940. #define AFE_SECURE_MASK_CONN32 0x10a0
  2941. #define AFE_SECURE_MASK_CONN33 0x10a4
  2942. #define AFE_SECURE_MASK_CONN34 0x10a8
  2943. #define AFE_SECURE_MASK_CONN35 0x10ac
  2944. #define AFE_SECURE_MASK_CONN36 0x10b0
  2945. #define AFE_SECURE_MASK_CONN37 0x10b4
  2946. #define AFE_SECURE_MASK_CONN38 0x10b8
  2947. #define AFE_SECURE_MASK_CONN39 0x10bc
  2948. #define AFE_SECURE_MASK_CONN40 0x10c0
  2949. #define AFE_SECURE_MASK_CONN41 0x10c4
  2950. #define AFE_SECURE_MASK_CONN42 0x10c8
  2951. #define AFE_SECURE_MASK_CONN43 0x10cc
  2952. #define AFE_SECURE_MASK_CONN44 0x10d0
  2953. #define AFE_SECURE_MASK_CONN45 0x10d4
  2954. #define AFE_SECURE_MASK_CONN46 0x10d8
  2955. #define AFE_SECURE_MASK_CONN47 0x10dc
  2956. #define AFE_SECURE_MASK_CONN48 0x10e0
  2957. #define AFE_SECURE_MASK_CONN49 0x10e4
  2958. #define AFE_SECURE_MASK_CONN50 0x10e8
  2959. #define AFE_SECURE_MASK_CONN51 0x10ec
  2960. #define AFE_SECURE_MASK_CONN52 0x10f0
  2961. #define AFE_SECURE_MASK_CONN53 0x10f4
  2962. #define AFE_SECURE_MASK_CONN54 0x10f8
  2963. #define AFE_SECURE_MASK_CONN55 0x10fc
  2964. #define AFE_SECURE_MASK_CONN56 0x1100
  2965. #define AFE_SECURE_MASK_CONN57 0x1104
  2966. #define AFE_SECURE_MASK_CONN0_1 0x1108
  2967. #define AFE_SECURE_MASK_CONN1_1 0x110c
  2968. #define AFE_SECURE_MASK_CONN2_1 0x1110
  2969. #define AFE_SECURE_MASK_CONN3_1 0x1114
  2970. #define AFE_SECURE_MASK_CONN4_1 0x1118
  2971. #define AFE_SECURE_MASK_CONN5_1 0x111c
  2972. #define AFE_SECURE_MASK_CONN6_1 0x1120
  2973. #define AFE_SECURE_MASK_CONN7_1 0x1124
  2974. #define AFE_SECURE_MASK_CONN8_1 0x1128
  2975. #define AFE_SECURE_MASK_CONN9_1 0x112c
  2976. #define AFE_SECURE_MASK_CONN10_1 0x1130
  2977. #define AFE_SECURE_MASK_CONN11_1 0x1134
  2978. #define AFE_SECURE_MASK_CONN12_1 0x1138
  2979. #define AFE_SECURE_MASK_CONN13_1 0x113c
  2980. #define AFE_SECURE_MASK_CONN14_1 0x1140
  2981. #define AFE_SECURE_MASK_CONN15_1 0x1144
  2982. #define AFE_SECURE_MASK_CONN16_1 0x1148
  2983. #define AFE_SECURE_MASK_CONN17_1 0x114c
  2984. #define AFE_SECURE_MASK_CONN18_1 0x1150
  2985. #define AFE_SECURE_MASK_CONN19_1 0x1154
  2986. #define AFE_SECURE_MASK_CONN20_1 0x1158
  2987. #define AFE_SECURE_MASK_CONN21_1 0x115c
  2988. #define AFE_SECURE_MASK_CONN22_1 0x1160
  2989. #define AFE_SECURE_MASK_CONN23_1 0x1164
  2990. #define AFE_SECURE_MASK_CONN24_1 0x1168
  2991. #define AFE_SECURE_MASK_CONN25_1 0x116c
  2992. #define AFE_SECURE_MASK_CONN26_1 0x1170
  2993. #define AFE_SECURE_MASK_CONN27_1 0x1174
  2994. #define AFE_SECURE_MASK_CONN28_1 0x1178
  2995. #define AFE_SECURE_MASK_CONN29_1 0x117c
  2996. #define AFE_SECURE_MASK_CONN30_1 0x1180
  2997. #define AFE_SECURE_MASK_CONN31_1 0x1184
  2998. #define AFE_SECURE_MASK_CONN32_1 0x1188
  2999. #define AFE_SECURE_MASK_CONN33_1 0x118c
  3000. #define AFE_SECURE_MASK_CONN34_1 0x1190
  3001. #define AFE_SECURE_MASK_CONN35_1 0x1194
  3002. #define AFE_SECURE_MASK_CONN36_1 0x1198
  3003. #define AFE_SECURE_MASK_CONN37_1 0x119c
  3004. #define AFE_SECURE_MASK_CONN38_1 0x11a0
  3005. #define AFE_SECURE_MASK_CONN39_1 0x11a4
  3006. #define AFE_SECURE_MASK_CONN40_1 0x11a8
  3007. #define AFE_SECURE_MASK_CONN41_1 0x11ac
  3008. #define AFE_SECURE_MASK_CONN42_1 0x11b0
  3009. #define AFE_SECURE_MASK_CONN43_1 0x11b4
  3010. #define AFE_SECURE_MASK_CONN44_1 0x11b8
  3011. #define AFE_SECURE_MASK_CONN45_1 0x11bc
  3012. #define AFE_SECURE_MASK_CONN46_1 0x11c0
  3013. #define AFE_SECURE_MASK_CONN47_1 0x11c4
  3014. #define AFE_SECURE_MASK_CONN48_1 0x11c8
  3015. #define AFE_SECURE_MASK_CONN49_1 0x11cc
  3016. #define AFE_SECURE_MASK_CONN50_1 0x11d0
  3017. #define AFE_SECURE_MASK_CONN51_1 0x11d4
  3018. #define AFE_SECURE_MASK_CONN52_1 0x11d8
  3019. #define AFE_SECURE_MASK_CONN53_1 0x11dc
  3020. #define AFE_SECURE_MASK_CONN54_1 0x11e0
  3021. #define AFE_SECURE_MASK_CONN55_1 0x11e4
  3022. #define AFE_SECURE_MASK_CONN56_1 0x11e8
  3023. #define AFE_SECURE_MASK_TINY_CONN0 0x1200
  3024. #define AFE_SECURE_MASK_TINY_CONN1 0x1204
  3025. #define AFE_SECURE_MASK_TINY_CONN2 0x1208
  3026. #define AFE_SECURE_MASK_TINY_CONN3 0x120c
  3027. #define AFE_SECURE_MASK_TINY_CONN4 0x1210
  3028. #define AFE_SECURE_MASK_TINY_CONN5 0x1214
  3029. #define AFE_SECURE_MASK_TINY_CONN6 0x1218
  3030. #define AFE_SECURE_MASK_TINY_CONN7 0x121c
  3031. #define AFE_MAX_REGISTER AFE_SECURE_MASK_TINY_CONN7
  3032. #define AFE_IRQ_STATUS_BITS 0x87FFFFFF
  3033. #define AFE_IRQ_CNT_SHIFT 0
  3034. #define AFE_IRQ_CNT_MASK 0x3ffff
  3035. #endif