wm5100.h 282 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316
  1. /*
  2. * wm5100.h -- WM5100 ALSA SoC Audio driver
  3. *
  4. * Copyright 2011 Wolfson Microelectronics plc
  5. *
  6. * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
  7. *
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #ifndef WM5100_ASOC_H
  14. #define WM5100_ASOC_H
  15. #include <sound/soc.h>
  16. #include <linux/regmap.h>
  17. int wm5100_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack);
  18. #define WM5100_CLK_AIF1 1
  19. #define WM5100_CLK_AIF2 2
  20. #define WM5100_CLK_AIF3 3
  21. #define WM5100_CLK_SYSCLK 4
  22. #define WM5100_CLK_ASYNCCLK 5
  23. #define WM5100_CLK_32KHZ 6
  24. #define WM5100_CLK_OPCLK 7
  25. #define WM5100_CLKSRC_MCLK1 0
  26. #define WM5100_CLKSRC_MCLK2 1
  27. #define WM5100_CLKSRC_SYSCLK 2
  28. #define WM5100_CLKSRC_FLL1 4
  29. #define WM5100_CLKSRC_FLL2 5
  30. #define WM5100_CLKSRC_AIF1BCLK 8
  31. #define WM5100_CLKSRC_AIF2BCLK 9
  32. #define WM5100_CLKSRC_AIF3BCLK 10
  33. #define WM5100_CLKSRC_ASYNCCLK 0x100
  34. #define WM5100_FLL1 1
  35. #define WM5100_FLL2 2
  36. #define WM5100_FLL_SRC_MCLK1 0x0
  37. #define WM5100_FLL_SRC_MCLK2 0x1
  38. #define WM5100_FLL_SRC_FLL1 0x4
  39. #define WM5100_FLL_SRC_FLL2 0x5
  40. #define WM5100_FLL_SRC_AIF1BCLK 0x8
  41. #define WM5100_FLL_SRC_AIF2BCLK 0x9
  42. #define WM5100_FLL_SRC_AIF3BCLK 0xa
  43. /*
  44. * Register values.
  45. */
  46. #define WM5100_SOFTWARE_RESET 0x00
  47. #define WM5100_DEVICE_REVISION 0x01
  48. #define WM5100_CTRL_IF_1 0x10
  49. #define WM5100_TONE_GENERATOR_1 0x20
  50. #define WM5100_PWM_DRIVE_1 0x30
  51. #define WM5100_PWM_DRIVE_2 0x31
  52. #define WM5100_PWM_DRIVE_3 0x32
  53. #define WM5100_CLOCKING_1 0x100
  54. #define WM5100_CLOCKING_3 0x101
  55. #define WM5100_CLOCKING_4 0x102
  56. #define WM5100_CLOCKING_5 0x103
  57. #define WM5100_CLOCKING_6 0x104
  58. #define WM5100_CLOCKING_7 0x107
  59. #define WM5100_CLOCKING_8 0x108
  60. #define WM5100_ASRC_ENABLE 0x120
  61. #define WM5100_ASRC_STATUS 0x121
  62. #define WM5100_ASRC_RATE1 0x122
  63. #define WM5100_ISRC_1_CTRL_1 0x141
  64. #define WM5100_ISRC_1_CTRL_2 0x142
  65. #define WM5100_ISRC_2_CTRL1 0x143
  66. #define WM5100_ISRC_2_CTRL_2 0x144
  67. #define WM5100_FLL1_CONTROL_1 0x182
  68. #define WM5100_FLL1_CONTROL_2 0x183
  69. #define WM5100_FLL1_CONTROL_3 0x184
  70. #define WM5100_FLL1_CONTROL_5 0x186
  71. #define WM5100_FLL1_CONTROL_6 0x187
  72. #define WM5100_FLL1_EFS_1 0x188
  73. #define WM5100_FLL2_CONTROL_1 0x1A2
  74. #define WM5100_FLL2_CONTROL_2 0x1A3
  75. #define WM5100_FLL2_CONTROL_3 0x1A4
  76. #define WM5100_FLL2_CONTROL_5 0x1A6
  77. #define WM5100_FLL2_CONTROL_6 0x1A7
  78. #define WM5100_FLL2_EFS_1 0x1A8
  79. #define WM5100_MIC_CHARGE_PUMP_1 0x200
  80. #define WM5100_MIC_CHARGE_PUMP_2 0x201
  81. #define WM5100_HP_CHARGE_PUMP_1 0x202
  82. #define WM5100_LDO1_CONTROL 0x211
  83. #define WM5100_MIC_BIAS_CTRL_1 0x215
  84. #define WM5100_MIC_BIAS_CTRL_2 0x216
  85. #define WM5100_MIC_BIAS_CTRL_3 0x217
  86. #define WM5100_ACCESSORY_DETECT_MODE_1 0x280
  87. #define WM5100_HEADPHONE_DETECT_1 0x288
  88. #define WM5100_HEADPHONE_DETECT_2 0x289
  89. #define WM5100_MIC_DETECT_1 0x290
  90. #define WM5100_MIC_DETECT_2 0x291
  91. #define WM5100_MIC_DETECT_3 0x292
  92. #define WM5100_MISC_CONTROL 0x2BB
  93. #define WM5100_INPUT_ENABLES 0x301
  94. #define WM5100_INPUT_ENABLES_STATUS 0x302
  95. #define WM5100_IN1L_CONTROL 0x310
  96. #define WM5100_IN1R_CONTROL 0x311
  97. #define WM5100_IN2L_CONTROL 0x312
  98. #define WM5100_IN2R_CONTROL 0x313
  99. #define WM5100_IN3L_CONTROL 0x314
  100. #define WM5100_IN3R_CONTROL 0x315
  101. #define WM5100_IN4L_CONTROL 0x316
  102. #define WM5100_IN4R_CONTROL 0x317
  103. #define WM5100_RXANC_SRC 0x318
  104. #define WM5100_INPUT_VOLUME_RAMP 0x319
  105. #define WM5100_ADC_DIGITAL_VOLUME_1L 0x320
  106. #define WM5100_ADC_DIGITAL_VOLUME_1R 0x321
  107. #define WM5100_ADC_DIGITAL_VOLUME_2L 0x322
  108. #define WM5100_ADC_DIGITAL_VOLUME_2R 0x323
  109. #define WM5100_ADC_DIGITAL_VOLUME_3L 0x324
  110. #define WM5100_ADC_DIGITAL_VOLUME_3R 0x325
  111. #define WM5100_ADC_DIGITAL_VOLUME_4L 0x326
  112. #define WM5100_ADC_DIGITAL_VOLUME_4R 0x327
  113. #define WM5100_OUTPUT_ENABLES_2 0x401
  114. #define WM5100_OUTPUT_STATUS_1 0x402
  115. #define WM5100_OUTPUT_STATUS_2 0x403
  116. #define WM5100_CHANNEL_ENABLES_1 0x408
  117. #define WM5100_OUT_VOLUME_1L 0x410
  118. #define WM5100_OUT_VOLUME_1R 0x411
  119. #define WM5100_DAC_VOLUME_LIMIT_1L 0x412
  120. #define WM5100_DAC_VOLUME_LIMIT_1R 0x413
  121. #define WM5100_OUT_VOLUME_2L 0x414
  122. #define WM5100_OUT_VOLUME_2R 0x415
  123. #define WM5100_DAC_VOLUME_LIMIT_2L 0x416
  124. #define WM5100_DAC_VOLUME_LIMIT_2R 0x417
  125. #define WM5100_OUT_VOLUME_3L 0x418
  126. #define WM5100_OUT_VOLUME_3R 0x419
  127. #define WM5100_DAC_VOLUME_LIMIT_3L 0x41A
  128. #define WM5100_DAC_VOLUME_LIMIT_3R 0x41B
  129. #define WM5100_OUT_VOLUME_4L 0x41C
  130. #define WM5100_OUT_VOLUME_4R 0x41D
  131. #define WM5100_DAC_VOLUME_LIMIT_5L 0x41E
  132. #define WM5100_DAC_VOLUME_LIMIT_5R 0x41F
  133. #define WM5100_DAC_VOLUME_LIMIT_6L 0x420
  134. #define WM5100_DAC_VOLUME_LIMIT_6R 0x421
  135. #define WM5100_DAC_AEC_CONTROL_1 0x440
  136. #define WM5100_OUTPUT_VOLUME_RAMP 0x441
  137. #define WM5100_DAC_DIGITAL_VOLUME_1L 0x480
  138. #define WM5100_DAC_DIGITAL_VOLUME_1R 0x481
  139. #define WM5100_DAC_DIGITAL_VOLUME_2L 0x482
  140. #define WM5100_DAC_DIGITAL_VOLUME_2R 0x483
  141. #define WM5100_DAC_DIGITAL_VOLUME_3L 0x484
  142. #define WM5100_DAC_DIGITAL_VOLUME_3R 0x485
  143. #define WM5100_DAC_DIGITAL_VOLUME_4L 0x486
  144. #define WM5100_DAC_DIGITAL_VOLUME_4R 0x487
  145. #define WM5100_DAC_DIGITAL_VOLUME_5L 0x488
  146. #define WM5100_DAC_DIGITAL_VOLUME_5R 0x489
  147. #define WM5100_DAC_DIGITAL_VOLUME_6L 0x48A
  148. #define WM5100_DAC_DIGITAL_VOLUME_6R 0x48B
  149. #define WM5100_PDM_SPK1_CTRL_1 0x4C0
  150. #define WM5100_PDM_SPK1_CTRL_2 0x4C1
  151. #define WM5100_PDM_SPK2_CTRL_1 0x4C2
  152. #define WM5100_PDM_SPK2_CTRL_2 0x4C3
  153. #define WM5100_AUDIO_IF_1_1 0x500
  154. #define WM5100_AUDIO_IF_1_2 0x501
  155. #define WM5100_AUDIO_IF_1_3 0x502
  156. #define WM5100_AUDIO_IF_1_4 0x503
  157. #define WM5100_AUDIO_IF_1_5 0x504
  158. #define WM5100_AUDIO_IF_1_6 0x505
  159. #define WM5100_AUDIO_IF_1_7 0x506
  160. #define WM5100_AUDIO_IF_1_8 0x507
  161. #define WM5100_AUDIO_IF_1_9 0x508
  162. #define WM5100_AUDIO_IF_1_10 0x509
  163. #define WM5100_AUDIO_IF_1_11 0x50A
  164. #define WM5100_AUDIO_IF_1_12 0x50B
  165. #define WM5100_AUDIO_IF_1_13 0x50C
  166. #define WM5100_AUDIO_IF_1_14 0x50D
  167. #define WM5100_AUDIO_IF_1_15 0x50E
  168. #define WM5100_AUDIO_IF_1_16 0x50F
  169. #define WM5100_AUDIO_IF_1_17 0x510
  170. #define WM5100_AUDIO_IF_1_18 0x511
  171. #define WM5100_AUDIO_IF_1_19 0x512
  172. #define WM5100_AUDIO_IF_1_20 0x513
  173. #define WM5100_AUDIO_IF_1_21 0x514
  174. #define WM5100_AUDIO_IF_1_22 0x515
  175. #define WM5100_AUDIO_IF_1_23 0x516
  176. #define WM5100_AUDIO_IF_1_24 0x517
  177. #define WM5100_AUDIO_IF_1_25 0x518
  178. #define WM5100_AUDIO_IF_1_26 0x519
  179. #define WM5100_AUDIO_IF_1_27 0x51A
  180. #define WM5100_AUDIO_IF_2_1 0x540
  181. #define WM5100_AUDIO_IF_2_2 0x541
  182. #define WM5100_AUDIO_IF_2_3 0x542
  183. #define WM5100_AUDIO_IF_2_4 0x543
  184. #define WM5100_AUDIO_IF_2_5 0x544
  185. #define WM5100_AUDIO_IF_2_6 0x545
  186. #define WM5100_AUDIO_IF_2_7 0x546
  187. #define WM5100_AUDIO_IF_2_8 0x547
  188. #define WM5100_AUDIO_IF_2_9 0x548
  189. #define WM5100_AUDIO_IF_2_10 0x549
  190. #define WM5100_AUDIO_IF_2_11 0x54A
  191. #define WM5100_AUDIO_IF_2_18 0x551
  192. #define WM5100_AUDIO_IF_2_19 0x552
  193. #define WM5100_AUDIO_IF_2_26 0x559
  194. #define WM5100_AUDIO_IF_2_27 0x55A
  195. #define WM5100_AUDIO_IF_3_1 0x580
  196. #define WM5100_AUDIO_IF_3_2 0x581
  197. #define WM5100_AUDIO_IF_3_3 0x582
  198. #define WM5100_AUDIO_IF_3_4 0x583
  199. #define WM5100_AUDIO_IF_3_5 0x584
  200. #define WM5100_AUDIO_IF_3_6 0x585
  201. #define WM5100_AUDIO_IF_3_7 0x586
  202. #define WM5100_AUDIO_IF_3_8 0x587
  203. #define WM5100_AUDIO_IF_3_9 0x588
  204. #define WM5100_AUDIO_IF_3_10 0x589
  205. #define WM5100_AUDIO_IF_3_11 0x58A
  206. #define WM5100_AUDIO_IF_3_18 0x591
  207. #define WM5100_AUDIO_IF_3_19 0x592
  208. #define WM5100_AUDIO_IF_3_26 0x599
  209. #define WM5100_AUDIO_IF_3_27 0x59A
  210. #define WM5100_PWM1MIX_INPUT_1_SOURCE 0x640
  211. #define WM5100_PWM1MIX_INPUT_1_VOLUME 0x641
  212. #define WM5100_PWM1MIX_INPUT_2_SOURCE 0x642
  213. #define WM5100_PWM1MIX_INPUT_2_VOLUME 0x643
  214. #define WM5100_PWM1MIX_INPUT_3_SOURCE 0x644
  215. #define WM5100_PWM1MIX_INPUT_3_VOLUME 0x645
  216. #define WM5100_PWM1MIX_INPUT_4_SOURCE 0x646
  217. #define WM5100_PWM1MIX_INPUT_4_VOLUME 0x647
  218. #define WM5100_PWM2MIX_INPUT_1_SOURCE 0x648
  219. #define WM5100_PWM2MIX_INPUT_1_VOLUME 0x649
  220. #define WM5100_PWM2MIX_INPUT_2_SOURCE 0x64A
  221. #define WM5100_PWM2MIX_INPUT_2_VOLUME 0x64B
  222. #define WM5100_PWM2MIX_INPUT_3_SOURCE 0x64C
  223. #define WM5100_PWM2MIX_INPUT_3_VOLUME 0x64D
  224. #define WM5100_PWM2MIX_INPUT_4_SOURCE 0x64E
  225. #define WM5100_PWM2MIX_INPUT_4_VOLUME 0x64F
  226. #define WM5100_OUT1LMIX_INPUT_1_SOURCE 0x680
  227. #define WM5100_OUT1LMIX_INPUT_1_VOLUME 0x681
  228. #define WM5100_OUT1LMIX_INPUT_2_SOURCE 0x682
  229. #define WM5100_OUT1LMIX_INPUT_2_VOLUME 0x683
  230. #define WM5100_OUT1LMIX_INPUT_3_SOURCE 0x684
  231. #define WM5100_OUT1LMIX_INPUT_3_VOLUME 0x685
  232. #define WM5100_OUT1LMIX_INPUT_4_SOURCE 0x686
  233. #define WM5100_OUT1LMIX_INPUT_4_VOLUME 0x687
  234. #define WM5100_OUT1RMIX_INPUT_1_SOURCE 0x688
  235. #define WM5100_OUT1RMIX_INPUT_1_VOLUME 0x689
  236. #define WM5100_OUT1RMIX_INPUT_2_SOURCE 0x68A
  237. #define WM5100_OUT1RMIX_INPUT_2_VOLUME 0x68B
  238. #define WM5100_OUT1RMIX_INPUT_3_SOURCE 0x68C
  239. #define WM5100_OUT1RMIX_INPUT_3_VOLUME 0x68D
  240. #define WM5100_OUT1RMIX_INPUT_4_SOURCE 0x68E
  241. #define WM5100_OUT1RMIX_INPUT_4_VOLUME 0x68F
  242. #define WM5100_OUT2LMIX_INPUT_1_SOURCE 0x690
  243. #define WM5100_OUT2LMIX_INPUT_1_VOLUME 0x691
  244. #define WM5100_OUT2LMIX_INPUT_2_SOURCE 0x692
  245. #define WM5100_OUT2LMIX_INPUT_2_VOLUME 0x693
  246. #define WM5100_OUT2LMIX_INPUT_3_SOURCE 0x694
  247. #define WM5100_OUT2LMIX_INPUT_3_VOLUME 0x695
  248. #define WM5100_OUT2LMIX_INPUT_4_SOURCE 0x696
  249. #define WM5100_OUT2LMIX_INPUT_4_VOLUME 0x697
  250. #define WM5100_OUT2RMIX_INPUT_1_SOURCE 0x698
  251. #define WM5100_OUT2RMIX_INPUT_1_VOLUME 0x699
  252. #define WM5100_OUT2RMIX_INPUT_2_SOURCE 0x69A
  253. #define WM5100_OUT2RMIX_INPUT_2_VOLUME 0x69B
  254. #define WM5100_OUT2RMIX_INPUT_3_SOURCE 0x69C
  255. #define WM5100_OUT2RMIX_INPUT_3_VOLUME 0x69D
  256. #define WM5100_OUT2RMIX_INPUT_4_SOURCE 0x69E
  257. #define WM5100_OUT2RMIX_INPUT_4_VOLUME 0x69F
  258. #define WM5100_OUT3LMIX_INPUT_1_SOURCE 0x6A0
  259. #define WM5100_OUT3LMIX_INPUT_1_VOLUME 0x6A1
  260. #define WM5100_OUT3LMIX_INPUT_2_SOURCE 0x6A2
  261. #define WM5100_OUT3LMIX_INPUT_2_VOLUME 0x6A3
  262. #define WM5100_OUT3LMIX_INPUT_3_SOURCE 0x6A4
  263. #define WM5100_OUT3LMIX_INPUT_3_VOLUME 0x6A5
  264. #define WM5100_OUT3LMIX_INPUT_4_SOURCE 0x6A6
  265. #define WM5100_OUT3LMIX_INPUT_4_VOLUME 0x6A7
  266. #define WM5100_OUT3RMIX_INPUT_1_SOURCE 0x6A8
  267. #define WM5100_OUT3RMIX_INPUT_1_VOLUME 0x6A9
  268. #define WM5100_OUT3RMIX_INPUT_2_SOURCE 0x6AA
  269. #define WM5100_OUT3RMIX_INPUT_2_VOLUME 0x6AB
  270. #define WM5100_OUT3RMIX_INPUT_3_SOURCE 0x6AC
  271. #define WM5100_OUT3RMIX_INPUT_3_VOLUME 0x6AD
  272. #define WM5100_OUT3RMIX_INPUT_4_SOURCE 0x6AE
  273. #define WM5100_OUT3RMIX_INPUT_4_VOLUME 0x6AF
  274. #define WM5100_OUT4LMIX_INPUT_1_SOURCE 0x6B0
  275. #define WM5100_OUT4LMIX_INPUT_1_VOLUME 0x6B1
  276. #define WM5100_OUT4LMIX_INPUT_2_SOURCE 0x6B2
  277. #define WM5100_OUT4LMIX_INPUT_2_VOLUME 0x6B3
  278. #define WM5100_OUT4LMIX_INPUT_3_SOURCE 0x6B4
  279. #define WM5100_OUT4LMIX_INPUT_3_VOLUME 0x6B5
  280. #define WM5100_OUT4LMIX_INPUT_4_SOURCE 0x6B6
  281. #define WM5100_OUT4LMIX_INPUT_4_VOLUME 0x6B7
  282. #define WM5100_OUT4RMIX_INPUT_1_SOURCE 0x6B8
  283. #define WM5100_OUT4RMIX_INPUT_1_VOLUME 0x6B9
  284. #define WM5100_OUT4RMIX_INPUT_2_SOURCE 0x6BA
  285. #define WM5100_OUT4RMIX_INPUT_2_VOLUME 0x6BB
  286. #define WM5100_OUT4RMIX_INPUT_3_SOURCE 0x6BC
  287. #define WM5100_OUT4RMIX_INPUT_3_VOLUME 0x6BD
  288. #define WM5100_OUT4RMIX_INPUT_4_SOURCE 0x6BE
  289. #define WM5100_OUT4RMIX_INPUT_4_VOLUME 0x6BF
  290. #define WM5100_OUT5LMIX_INPUT_1_SOURCE 0x6C0
  291. #define WM5100_OUT5LMIX_INPUT_1_VOLUME 0x6C1
  292. #define WM5100_OUT5LMIX_INPUT_2_SOURCE 0x6C2
  293. #define WM5100_OUT5LMIX_INPUT_2_VOLUME 0x6C3
  294. #define WM5100_OUT5LMIX_INPUT_3_SOURCE 0x6C4
  295. #define WM5100_OUT5LMIX_INPUT_3_VOLUME 0x6C5
  296. #define WM5100_OUT5LMIX_INPUT_4_SOURCE 0x6C6
  297. #define WM5100_OUT5LMIX_INPUT_4_VOLUME 0x6C7
  298. #define WM5100_OUT5RMIX_INPUT_1_SOURCE 0x6C8
  299. #define WM5100_OUT5RMIX_INPUT_1_VOLUME 0x6C9
  300. #define WM5100_OUT5RMIX_INPUT_2_SOURCE 0x6CA
  301. #define WM5100_OUT5RMIX_INPUT_2_VOLUME 0x6CB
  302. #define WM5100_OUT5RMIX_INPUT_3_SOURCE 0x6CC
  303. #define WM5100_OUT5RMIX_INPUT_3_VOLUME 0x6CD
  304. #define WM5100_OUT5RMIX_INPUT_4_SOURCE 0x6CE
  305. #define WM5100_OUT5RMIX_INPUT_4_VOLUME 0x6CF
  306. #define WM5100_OUT6LMIX_INPUT_1_SOURCE 0x6D0
  307. #define WM5100_OUT6LMIX_INPUT_1_VOLUME 0x6D1
  308. #define WM5100_OUT6LMIX_INPUT_2_SOURCE 0x6D2
  309. #define WM5100_OUT6LMIX_INPUT_2_VOLUME 0x6D3
  310. #define WM5100_OUT6LMIX_INPUT_3_SOURCE 0x6D4
  311. #define WM5100_OUT6LMIX_INPUT_3_VOLUME 0x6D5
  312. #define WM5100_OUT6LMIX_INPUT_4_SOURCE 0x6D6
  313. #define WM5100_OUT6LMIX_INPUT_4_VOLUME 0x6D7
  314. #define WM5100_OUT6RMIX_INPUT_1_SOURCE 0x6D8
  315. #define WM5100_OUT6RMIX_INPUT_1_VOLUME 0x6D9
  316. #define WM5100_OUT6RMIX_INPUT_2_SOURCE 0x6DA
  317. #define WM5100_OUT6RMIX_INPUT_2_VOLUME 0x6DB
  318. #define WM5100_OUT6RMIX_INPUT_3_SOURCE 0x6DC
  319. #define WM5100_OUT6RMIX_INPUT_3_VOLUME 0x6DD
  320. #define WM5100_OUT6RMIX_INPUT_4_SOURCE 0x6DE
  321. #define WM5100_OUT6RMIX_INPUT_4_VOLUME 0x6DF
  322. #define WM5100_AIF1TX1MIX_INPUT_1_SOURCE 0x700
  323. #define WM5100_AIF1TX1MIX_INPUT_1_VOLUME 0x701
  324. #define WM5100_AIF1TX1MIX_INPUT_2_SOURCE 0x702
  325. #define WM5100_AIF1TX1MIX_INPUT_2_VOLUME 0x703
  326. #define WM5100_AIF1TX1MIX_INPUT_3_SOURCE 0x704
  327. #define WM5100_AIF1TX1MIX_INPUT_3_VOLUME 0x705
  328. #define WM5100_AIF1TX1MIX_INPUT_4_SOURCE 0x706
  329. #define WM5100_AIF1TX1MIX_INPUT_4_VOLUME 0x707
  330. #define WM5100_AIF1TX2MIX_INPUT_1_SOURCE 0x708
  331. #define WM5100_AIF1TX2MIX_INPUT_1_VOLUME 0x709
  332. #define WM5100_AIF1TX2MIX_INPUT_2_SOURCE 0x70A
  333. #define WM5100_AIF1TX2MIX_INPUT_2_VOLUME 0x70B
  334. #define WM5100_AIF1TX2MIX_INPUT_3_SOURCE 0x70C
  335. #define WM5100_AIF1TX2MIX_INPUT_3_VOLUME 0x70D
  336. #define WM5100_AIF1TX2MIX_INPUT_4_SOURCE 0x70E
  337. #define WM5100_AIF1TX2MIX_INPUT_4_VOLUME 0x70F
  338. #define WM5100_AIF1TX3MIX_INPUT_1_SOURCE 0x710
  339. #define WM5100_AIF1TX3MIX_INPUT_1_VOLUME 0x711
  340. #define WM5100_AIF1TX3MIX_INPUT_2_SOURCE 0x712
  341. #define WM5100_AIF1TX3MIX_INPUT_2_VOLUME 0x713
  342. #define WM5100_AIF1TX3MIX_INPUT_3_SOURCE 0x714
  343. #define WM5100_AIF1TX3MIX_INPUT_3_VOLUME 0x715
  344. #define WM5100_AIF1TX3MIX_INPUT_4_SOURCE 0x716
  345. #define WM5100_AIF1TX3MIX_INPUT_4_VOLUME 0x717
  346. #define WM5100_AIF1TX4MIX_INPUT_1_SOURCE 0x718
  347. #define WM5100_AIF1TX4MIX_INPUT_1_VOLUME 0x719
  348. #define WM5100_AIF1TX4MIX_INPUT_2_SOURCE 0x71A
  349. #define WM5100_AIF1TX4MIX_INPUT_2_VOLUME 0x71B
  350. #define WM5100_AIF1TX4MIX_INPUT_3_SOURCE 0x71C
  351. #define WM5100_AIF1TX4MIX_INPUT_3_VOLUME 0x71D
  352. #define WM5100_AIF1TX4MIX_INPUT_4_SOURCE 0x71E
  353. #define WM5100_AIF1TX4MIX_INPUT_4_VOLUME 0x71F
  354. #define WM5100_AIF1TX5MIX_INPUT_1_SOURCE 0x720
  355. #define WM5100_AIF1TX5MIX_INPUT_1_VOLUME 0x721
  356. #define WM5100_AIF1TX5MIX_INPUT_2_SOURCE 0x722
  357. #define WM5100_AIF1TX5MIX_INPUT_2_VOLUME 0x723
  358. #define WM5100_AIF1TX5MIX_INPUT_3_SOURCE 0x724
  359. #define WM5100_AIF1TX5MIX_INPUT_3_VOLUME 0x725
  360. #define WM5100_AIF1TX5MIX_INPUT_4_SOURCE 0x726
  361. #define WM5100_AIF1TX5MIX_INPUT_4_VOLUME 0x727
  362. #define WM5100_AIF1TX6MIX_INPUT_1_SOURCE 0x728
  363. #define WM5100_AIF1TX6MIX_INPUT_1_VOLUME 0x729
  364. #define WM5100_AIF1TX6MIX_INPUT_2_SOURCE 0x72A
  365. #define WM5100_AIF1TX6MIX_INPUT_2_VOLUME 0x72B
  366. #define WM5100_AIF1TX6MIX_INPUT_3_SOURCE 0x72C
  367. #define WM5100_AIF1TX6MIX_INPUT_3_VOLUME 0x72D
  368. #define WM5100_AIF1TX6MIX_INPUT_4_SOURCE 0x72E
  369. #define WM5100_AIF1TX6MIX_INPUT_4_VOLUME 0x72F
  370. #define WM5100_AIF1TX7MIX_INPUT_1_SOURCE 0x730
  371. #define WM5100_AIF1TX7MIX_INPUT_1_VOLUME 0x731
  372. #define WM5100_AIF1TX7MIX_INPUT_2_SOURCE 0x732
  373. #define WM5100_AIF1TX7MIX_INPUT_2_VOLUME 0x733
  374. #define WM5100_AIF1TX7MIX_INPUT_3_SOURCE 0x734
  375. #define WM5100_AIF1TX7MIX_INPUT_3_VOLUME 0x735
  376. #define WM5100_AIF1TX7MIX_INPUT_4_SOURCE 0x736
  377. #define WM5100_AIF1TX7MIX_INPUT_4_VOLUME 0x737
  378. #define WM5100_AIF1TX8MIX_INPUT_1_SOURCE 0x738
  379. #define WM5100_AIF1TX8MIX_INPUT_1_VOLUME 0x739
  380. #define WM5100_AIF1TX8MIX_INPUT_2_SOURCE 0x73A
  381. #define WM5100_AIF1TX8MIX_INPUT_2_VOLUME 0x73B
  382. #define WM5100_AIF1TX8MIX_INPUT_3_SOURCE 0x73C
  383. #define WM5100_AIF1TX8MIX_INPUT_3_VOLUME 0x73D
  384. #define WM5100_AIF1TX8MIX_INPUT_4_SOURCE 0x73E
  385. #define WM5100_AIF1TX8MIX_INPUT_4_VOLUME 0x73F
  386. #define WM5100_AIF2TX1MIX_INPUT_1_SOURCE 0x740
  387. #define WM5100_AIF2TX1MIX_INPUT_1_VOLUME 0x741
  388. #define WM5100_AIF2TX1MIX_INPUT_2_SOURCE 0x742
  389. #define WM5100_AIF2TX1MIX_INPUT_2_VOLUME 0x743
  390. #define WM5100_AIF2TX1MIX_INPUT_3_SOURCE 0x744
  391. #define WM5100_AIF2TX1MIX_INPUT_3_VOLUME 0x745
  392. #define WM5100_AIF2TX1MIX_INPUT_4_SOURCE 0x746
  393. #define WM5100_AIF2TX1MIX_INPUT_4_VOLUME 0x747
  394. #define WM5100_AIF2TX2MIX_INPUT_1_SOURCE 0x748
  395. #define WM5100_AIF2TX2MIX_INPUT_1_VOLUME 0x749
  396. #define WM5100_AIF2TX2MIX_INPUT_2_SOURCE 0x74A
  397. #define WM5100_AIF2TX2MIX_INPUT_2_VOLUME 0x74B
  398. #define WM5100_AIF2TX2MIX_INPUT_3_SOURCE 0x74C
  399. #define WM5100_AIF2TX2MIX_INPUT_3_VOLUME 0x74D
  400. #define WM5100_AIF2TX2MIX_INPUT_4_SOURCE 0x74E
  401. #define WM5100_AIF2TX2MIX_INPUT_4_VOLUME 0x74F
  402. #define WM5100_AIF3TX1MIX_INPUT_1_SOURCE 0x780
  403. #define WM5100_AIF3TX1MIX_INPUT_1_VOLUME 0x781
  404. #define WM5100_AIF3TX1MIX_INPUT_2_SOURCE 0x782
  405. #define WM5100_AIF3TX1MIX_INPUT_2_VOLUME 0x783
  406. #define WM5100_AIF3TX1MIX_INPUT_3_SOURCE 0x784
  407. #define WM5100_AIF3TX1MIX_INPUT_3_VOLUME 0x785
  408. #define WM5100_AIF3TX1MIX_INPUT_4_SOURCE 0x786
  409. #define WM5100_AIF3TX1MIX_INPUT_4_VOLUME 0x787
  410. #define WM5100_AIF3TX2MIX_INPUT_1_SOURCE 0x788
  411. #define WM5100_AIF3TX2MIX_INPUT_1_VOLUME 0x789
  412. #define WM5100_AIF3TX2MIX_INPUT_2_SOURCE 0x78A
  413. #define WM5100_AIF3TX2MIX_INPUT_2_VOLUME 0x78B
  414. #define WM5100_AIF3TX2MIX_INPUT_3_SOURCE 0x78C
  415. #define WM5100_AIF3TX2MIX_INPUT_3_VOLUME 0x78D
  416. #define WM5100_AIF3TX2MIX_INPUT_4_SOURCE 0x78E
  417. #define WM5100_AIF3TX2MIX_INPUT_4_VOLUME 0x78F
  418. #define WM5100_EQ1MIX_INPUT_1_SOURCE 0x880
  419. #define WM5100_EQ1MIX_INPUT_1_VOLUME 0x881
  420. #define WM5100_EQ1MIX_INPUT_2_SOURCE 0x882
  421. #define WM5100_EQ1MIX_INPUT_2_VOLUME 0x883
  422. #define WM5100_EQ1MIX_INPUT_3_SOURCE 0x884
  423. #define WM5100_EQ1MIX_INPUT_3_VOLUME 0x885
  424. #define WM5100_EQ1MIX_INPUT_4_SOURCE 0x886
  425. #define WM5100_EQ1MIX_INPUT_4_VOLUME 0x887
  426. #define WM5100_EQ2MIX_INPUT_1_SOURCE 0x888
  427. #define WM5100_EQ2MIX_INPUT_1_VOLUME 0x889
  428. #define WM5100_EQ2MIX_INPUT_2_SOURCE 0x88A
  429. #define WM5100_EQ2MIX_INPUT_2_VOLUME 0x88B
  430. #define WM5100_EQ2MIX_INPUT_3_SOURCE 0x88C
  431. #define WM5100_EQ2MIX_INPUT_3_VOLUME 0x88D
  432. #define WM5100_EQ2MIX_INPUT_4_SOURCE 0x88E
  433. #define WM5100_EQ2MIX_INPUT_4_VOLUME 0x88F
  434. #define WM5100_EQ3MIX_INPUT_1_SOURCE 0x890
  435. #define WM5100_EQ3MIX_INPUT_1_VOLUME 0x891
  436. #define WM5100_EQ3MIX_INPUT_2_SOURCE 0x892
  437. #define WM5100_EQ3MIX_INPUT_2_VOLUME 0x893
  438. #define WM5100_EQ3MIX_INPUT_3_SOURCE 0x894
  439. #define WM5100_EQ3MIX_INPUT_3_VOLUME 0x895
  440. #define WM5100_EQ3MIX_INPUT_4_SOURCE 0x896
  441. #define WM5100_EQ3MIX_INPUT_4_VOLUME 0x897
  442. #define WM5100_EQ4MIX_INPUT_1_SOURCE 0x898
  443. #define WM5100_EQ4MIX_INPUT_1_VOLUME 0x899
  444. #define WM5100_EQ4MIX_INPUT_2_SOURCE 0x89A
  445. #define WM5100_EQ4MIX_INPUT_2_VOLUME 0x89B
  446. #define WM5100_EQ4MIX_INPUT_3_SOURCE 0x89C
  447. #define WM5100_EQ4MIX_INPUT_3_VOLUME 0x89D
  448. #define WM5100_EQ4MIX_INPUT_4_SOURCE 0x89E
  449. #define WM5100_EQ4MIX_INPUT_4_VOLUME 0x89F
  450. #define WM5100_DRC1LMIX_INPUT_1_SOURCE 0x8C0
  451. #define WM5100_DRC1LMIX_INPUT_1_VOLUME 0x8C1
  452. #define WM5100_DRC1LMIX_INPUT_2_SOURCE 0x8C2
  453. #define WM5100_DRC1LMIX_INPUT_2_VOLUME 0x8C3
  454. #define WM5100_DRC1LMIX_INPUT_3_SOURCE 0x8C4
  455. #define WM5100_DRC1LMIX_INPUT_3_VOLUME 0x8C5
  456. #define WM5100_DRC1LMIX_INPUT_4_SOURCE 0x8C6
  457. #define WM5100_DRC1LMIX_INPUT_4_VOLUME 0x8C7
  458. #define WM5100_DRC1RMIX_INPUT_1_SOURCE 0x8C8
  459. #define WM5100_DRC1RMIX_INPUT_1_VOLUME 0x8C9
  460. #define WM5100_DRC1RMIX_INPUT_2_SOURCE 0x8CA
  461. #define WM5100_DRC1RMIX_INPUT_2_VOLUME 0x8CB
  462. #define WM5100_DRC1RMIX_INPUT_3_SOURCE 0x8CC
  463. #define WM5100_DRC1RMIX_INPUT_3_VOLUME 0x8CD
  464. #define WM5100_DRC1RMIX_INPUT_4_SOURCE 0x8CE
  465. #define WM5100_DRC1RMIX_INPUT_4_VOLUME 0x8CF
  466. #define WM5100_HPLP1MIX_INPUT_1_SOURCE 0x900
  467. #define WM5100_HPLP1MIX_INPUT_1_VOLUME 0x901
  468. #define WM5100_HPLP1MIX_INPUT_2_SOURCE 0x902
  469. #define WM5100_HPLP1MIX_INPUT_2_VOLUME 0x903
  470. #define WM5100_HPLP1MIX_INPUT_3_SOURCE 0x904
  471. #define WM5100_HPLP1MIX_INPUT_3_VOLUME 0x905
  472. #define WM5100_HPLP1MIX_INPUT_4_SOURCE 0x906
  473. #define WM5100_HPLP1MIX_INPUT_4_VOLUME 0x907
  474. #define WM5100_HPLP2MIX_INPUT_1_SOURCE 0x908
  475. #define WM5100_HPLP2MIX_INPUT_1_VOLUME 0x909
  476. #define WM5100_HPLP2MIX_INPUT_2_SOURCE 0x90A
  477. #define WM5100_HPLP2MIX_INPUT_2_VOLUME 0x90B
  478. #define WM5100_HPLP2MIX_INPUT_3_SOURCE 0x90C
  479. #define WM5100_HPLP2MIX_INPUT_3_VOLUME 0x90D
  480. #define WM5100_HPLP2MIX_INPUT_4_SOURCE 0x90E
  481. #define WM5100_HPLP2MIX_INPUT_4_VOLUME 0x90F
  482. #define WM5100_HPLP3MIX_INPUT_1_SOURCE 0x910
  483. #define WM5100_HPLP3MIX_INPUT_1_VOLUME 0x911
  484. #define WM5100_HPLP3MIX_INPUT_2_SOURCE 0x912
  485. #define WM5100_HPLP3MIX_INPUT_2_VOLUME 0x913
  486. #define WM5100_HPLP3MIX_INPUT_3_SOURCE 0x914
  487. #define WM5100_HPLP3MIX_INPUT_3_VOLUME 0x915
  488. #define WM5100_HPLP3MIX_INPUT_4_SOURCE 0x916
  489. #define WM5100_HPLP3MIX_INPUT_4_VOLUME 0x917
  490. #define WM5100_HPLP4MIX_INPUT_1_SOURCE 0x918
  491. #define WM5100_HPLP4MIX_INPUT_1_VOLUME 0x919
  492. #define WM5100_HPLP4MIX_INPUT_2_SOURCE 0x91A
  493. #define WM5100_HPLP4MIX_INPUT_2_VOLUME 0x91B
  494. #define WM5100_HPLP4MIX_INPUT_3_SOURCE 0x91C
  495. #define WM5100_HPLP4MIX_INPUT_3_VOLUME 0x91D
  496. #define WM5100_HPLP4MIX_INPUT_4_SOURCE 0x91E
  497. #define WM5100_HPLP4MIX_INPUT_4_VOLUME 0x91F
  498. #define WM5100_DSP1LMIX_INPUT_1_SOURCE 0x940
  499. #define WM5100_DSP1LMIX_INPUT_1_VOLUME 0x941
  500. #define WM5100_DSP1LMIX_INPUT_2_SOURCE 0x942
  501. #define WM5100_DSP1LMIX_INPUT_2_VOLUME 0x943
  502. #define WM5100_DSP1LMIX_INPUT_3_SOURCE 0x944
  503. #define WM5100_DSP1LMIX_INPUT_3_VOLUME 0x945
  504. #define WM5100_DSP1LMIX_INPUT_4_SOURCE 0x946
  505. #define WM5100_DSP1LMIX_INPUT_4_VOLUME 0x947
  506. #define WM5100_DSP1RMIX_INPUT_1_SOURCE 0x948
  507. #define WM5100_DSP1RMIX_INPUT_1_VOLUME 0x949
  508. #define WM5100_DSP1RMIX_INPUT_2_SOURCE 0x94A
  509. #define WM5100_DSP1RMIX_INPUT_2_VOLUME 0x94B
  510. #define WM5100_DSP1RMIX_INPUT_3_SOURCE 0x94C
  511. #define WM5100_DSP1RMIX_INPUT_3_VOLUME 0x94D
  512. #define WM5100_DSP1RMIX_INPUT_4_SOURCE 0x94E
  513. #define WM5100_DSP1RMIX_INPUT_4_VOLUME 0x94F
  514. #define WM5100_DSP1AUX1MIX_INPUT_1_SOURCE 0x950
  515. #define WM5100_DSP1AUX2MIX_INPUT_1_SOURCE 0x958
  516. #define WM5100_DSP1AUX3MIX_INPUT_1_SOURCE 0x960
  517. #define WM5100_DSP1AUX4MIX_INPUT_1_SOURCE 0x968
  518. #define WM5100_DSP1AUX5MIX_INPUT_1_SOURCE 0x970
  519. #define WM5100_DSP1AUX6MIX_INPUT_1_SOURCE 0x978
  520. #define WM5100_DSP2LMIX_INPUT_1_SOURCE 0x980
  521. #define WM5100_DSP2LMIX_INPUT_1_VOLUME 0x981
  522. #define WM5100_DSP2LMIX_INPUT_2_SOURCE 0x982
  523. #define WM5100_DSP2LMIX_INPUT_2_VOLUME 0x983
  524. #define WM5100_DSP2LMIX_INPUT_3_SOURCE 0x984
  525. #define WM5100_DSP2LMIX_INPUT_3_VOLUME 0x985
  526. #define WM5100_DSP2LMIX_INPUT_4_SOURCE 0x986
  527. #define WM5100_DSP2LMIX_INPUT_4_VOLUME 0x987
  528. #define WM5100_DSP2RMIX_INPUT_1_SOURCE 0x988
  529. #define WM5100_DSP2RMIX_INPUT_1_VOLUME 0x989
  530. #define WM5100_DSP2RMIX_INPUT_2_SOURCE 0x98A
  531. #define WM5100_DSP2RMIX_INPUT_2_VOLUME 0x98B
  532. #define WM5100_DSP2RMIX_INPUT_3_SOURCE 0x98C
  533. #define WM5100_DSP2RMIX_INPUT_3_VOLUME 0x98D
  534. #define WM5100_DSP2RMIX_INPUT_4_SOURCE 0x98E
  535. #define WM5100_DSP2RMIX_INPUT_4_VOLUME 0x98F
  536. #define WM5100_DSP2AUX1MIX_INPUT_1_SOURCE 0x990
  537. #define WM5100_DSP2AUX2MIX_INPUT_1_SOURCE 0x998
  538. #define WM5100_DSP2AUX3MIX_INPUT_1_SOURCE 0x9A0
  539. #define WM5100_DSP2AUX4MIX_INPUT_1_SOURCE 0x9A8
  540. #define WM5100_DSP2AUX5MIX_INPUT_1_SOURCE 0x9B0
  541. #define WM5100_DSP2AUX6MIX_INPUT_1_SOURCE 0x9B8
  542. #define WM5100_DSP3LMIX_INPUT_1_SOURCE 0x9C0
  543. #define WM5100_DSP3LMIX_INPUT_1_VOLUME 0x9C1
  544. #define WM5100_DSP3LMIX_INPUT_2_SOURCE 0x9C2
  545. #define WM5100_DSP3LMIX_INPUT_2_VOLUME 0x9C3
  546. #define WM5100_DSP3LMIX_INPUT_3_SOURCE 0x9C4
  547. #define WM5100_DSP3LMIX_INPUT_3_VOLUME 0x9C5
  548. #define WM5100_DSP3LMIX_INPUT_4_SOURCE 0x9C6
  549. #define WM5100_DSP3LMIX_INPUT_4_VOLUME 0x9C7
  550. #define WM5100_DSP3RMIX_INPUT_1_SOURCE 0x9C8
  551. #define WM5100_DSP3RMIX_INPUT_1_VOLUME 0x9C9
  552. #define WM5100_DSP3RMIX_INPUT_2_SOURCE 0x9CA
  553. #define WM5100_DSP3RMIX_INPUT_2_VOLUME 0x9CB
  554. #define WM5100_DSP3RMIX_INPUT_3_SOURCE 0x9CC
  555. #define WM5100_DSP3RMIX_INPUT_3_VOLUME 0x9CD
  556. #define WM5100_DSP3RMIX_INPUT_4_SOURCE 0x9CE
  557. #define WM5100_DSP3RMIX_INPUT_4_VOLUME 0x9CF
  558. #define WM5100_DSP3AUX1MIX_INPUT_1_SOURCE 0x9D0
  559. #define WM5100_DSP3AUX2MIX_INPUT_1_SOURCE 0x9D8
  560. #define WM5100_DSP3AUX3MIX_INPUT_1_SOURCE 0x9E0
  561. #define WM5100_DSP3AUX4MIX_INPUT_1_SOURCE 0x9E8
  562. #define WM5100_DSP3AUX5MIX_INPUT_1_SOURCE 0x9F0
  563. #define WM5100_DSP3AUX6MIX_INPUT_1_SOURCE 0x9F8
  564. #define WM5100_ASRC1LMIX_INPUT_1_SOURCE 0xA80
  565. #define WM5100_ASRC1RMIX_INPUT_1_SOURCE 0xA88
  566. #define WM5100_ASRC2LMIX_INPUT_1_SOURCE 0xA90
  567. #define WM5100_ASRC2RMIX_INPUT_1_SOURCE 0xA98
  568. #define WM5100_ISRC1DEC1MIX_INPUT_1_SOURCE 0xB00
  569. #define WM5100_ISRC1DEC2MIX_INPUT_1_SOURCE 0xB08
  570. #define WM5100_ISRC1DEC3MIX_INPUT_1_SOURCE 0xB10
  571. #define WM5100_ISRC1DEC4MIX_INPUT_1_SOURCE 0xB18
  572. #define WM5100_ISRC1INT1MIX_INPUT_1_SOURCE 0xB20
  573. #define WM5100_ISRC1INT2MIX_INPUT_1_SOURCE 0xB28
  574. #define WM5100_ISRC1INT3MIX_INPUT_1_SOURCE 0xB30
  575. #define WM5100_ISRC1INT4MIX_INPUT_1_SOURCE 0xB38
  576. #define WM5100_ISRC2DEC1MIX_INPUT_1_SOURCE 0xB40
  577. #define WM5100_ISRC2DEC2MIX_INPUT_1_SOURCE 0xB48
  578. #define WM5100_ISRC2DEC3MIX_INPUT_1_SOURCE 0xB50
  579. #define WM5100_ISRC2DEC4MIX_INPUT_1_SOURCE 0xB58
  580. #define WM5100_ISRC2INT1MIX_INPUT_1_SOURCE 0xB60
  581. #define WM5100_ISRC2INT2MIX_INPUT_1_SOURCE 0xB68
  582. #define WM5100_ISRC2INT3MIX_INPUT_1_SOURCE 0xB70
  583. #define WM5100_ISRC2INT4MIX_INPUT_1_SOURCE 0xB78
  584. #define WM5100_GPIO_CTRL_1 0xC00
  585. #define WM5100_GPIO_CTRL_2 0xC01
  586. #define WM5100_GPIO_CTRL_3 0xC02
  587. #define WM5100_GPIO_CTRL_4 0xC03
  588. #define WM5100_GPIO_CTRL_5 0xC04
  589. #define WM5100_GPIO_CTRL_6 0xC05
  590. #define WM5100_MISC_PAD_CTRL_1 0xC23
  591. #define WM5100_MISC_PAD_CTRL_2 0xC24
  592. #define WM5100_MISC_PAD_CTRL_3 0xC25
  593. #define WM5100_MISC_PAD_CTRL_4 0xC26
  594. #define WM5100_MISC_PAD_CTRL_5 0xC27
  595. #define WM5100_MISC_GPIO_1 0xC28
  596. #define WM5100_INTERRUPT_STATUS_1 0xD00
  597. #define WM5100_INTERRUPT_STATUS_2 0xD01
  598. #define WM5100_INTERRUPT_STATUS_3 0xD02
  599. #define WM5100_INTERRUPT_STATUS_4 0xD03
  600. #define WM5100_INTERRUPT_RAW_STATUS_2 0xD04
  601. #define WM5100_INTERRUPT_RAW_STATUS_3 0xD05
  602. #define WM5100_INTERRUPT_RAW_STATUS_4 0xD06
  603. #define WM5100_INTERRUPT_STATUS_1_MASK 0xD07
  604. #define WM5100_INTERRUPT_STATUS_2_MASK 0xD08
  605. #define WM5100_INTERRUPT_STATUS_3_MASK 0xD09
  606. #define WM5100_INTERRUPT_STATUS_4_MASK 0xD0A
  607. #define WM5100_INTERRUPT_CONTROL 0xD1F
  608. #define WM5100_IRQ_DEBOUNCE_1 0xD20
  609. #define WM5100_IRQ_DEBOUNCE_2 0xD21
  610. #define WM5100_FX_CTRL 0xE00
  611. #define WM5100_EQ1_1 0xE10
  612. #define WM5100_EQ1_2 0xE11
  613. #define WM5100_EQ1_3 0xE12
  614. #define WM5100_EQ1_4 0xE13
  615. #define WM5100_EQ1_5 0xE14
  616. #define WM5100_EQ1_6 0xE15
  617. #define WM5100_EQ1_7 0xE16
  618. #define WM5100_EQ1_8 0xE17
  619. #define WM5100_EQ1_9 0xE18
  620. #define WM5100_EQ1_10 0xE19
  621. #define WM5100_EQ1_11 0xE1A
  622. #define WM5100_EQ1_12 0xE1B
  623. #define WM5100_EQ1_13 0xE1C
  624. #define WM5100_EQ1_14 0xE1D
  625. #define WM5100_EQ1_15 0xE1E
  626. #define WM5100_EQ1_16 0xE1F
  627. #define WM5100_EQ1_17 0xE20
  628. #define WM5100_EQ1_18 0xE21
  629. #define WM5100_EQ1_19 0xE22
  630. #define WM5100_EQ1_20 0xE23
  631. #define WM5100_EQ2_1 0xE26
  632. #define WM5100_EQ2_2 0xE27
  633. #define WM5100_EQ2_3 0xE28
  634. #define WM5100_EQ2_4 0xE29
  635. #define WM5100_EQ2_5 0xE2A
  636. #define WM5100_EQ2_6 0xE2B
  637. #define WM5100_EQ2_7 0xE2C
  638. #define WM5100_EQ2_8 0xE2D
  639. #define WM5100_EQ2_9 0xE2E
  640. #define WM5100_EQ2_10 0xE2F
  641. #define WM5100_EQ2_11 0xE30
  642. #define WM5100_EQ2_12 0xE31
  643. #define WM5100_EQ2_13 0xE32
  644. #define WM5100_EQ2_14 0xE33
  645. #define WM5100_EQ2_15 0xE34
  646. #define WM5100_EQ2_16 0xE35
  647. #define WM5100_EQ2_17 0xE36
  648. #define WM5100_EQ2_18 0xE37
  649. #define WM5100_EQ2_19 0xE38
  650. #define WM5100_EQ2_20 0xE39
  651. #define WM5100_EQ3_1 0xE3C
  652. #define WM5100_EQ3_2 0xE3D
  653. #define WM5100_EQ3_3 0xE3E
  654. #define WM5100_EQ3_4 0xE3F
  655. #define WM5100_EQ3_5 0xE40
  656. #define WM5100_EQ3_6 0xE41
  657. #define WM5100_EQ3_7 0xE42
  658. #define WM5100_EQ3_8 0xE43
  659. #define WM5100_EQ3_9 0xE44
  660. #define WM5100_EQ3_10 0xE45
  661. #define WM5100_EQ3_11 0xE46
  662. #define WM5100_EQ3_12 0xE47
  663. #define WM5100_EQ3_13 0xE48
  664. #define WM5100_EQ3_14 0xE49
  665. #define WM5100_EQ3_15 0xE4A
  666. #define WM5100_EQ3_16 0xE4B
  667. #define WM5100_EQ3_17 0xE4C
  668. #define WM5100_EQ3_18 0xE4D
  669. #define WM5100_EQ3_19 0xE4E
  670. #define WM5100_EQ3_20 0xE4F
  671. #define WM5100_EQ4_1 0xE52
  672. #define WM5100_EQ4_2 0xE53
  673. #define WM5100_EQ4_3 0xE54
  674. #define WM5100_EQ4_4 0xE55
  675. #define WM5100_EQ4_5 0xE56
  676. #define WM5100_EQ4_6 0xE57
  677. #define WM5100_EQ4_7 0xE58
  678. #define WM5100_EQ4_8 0xE59
  679. #define WM5100_EQ4_9 0xE5A
  680. #define WM5100_EQ4_10 0xE5B
  681. #define WM5100_EQ4_11 0xE5C
  682. #define WM5100_EQ4_12 0xE5D
  683. #define WM5100_EQ4_13 0xE5E
  684. #define WM5100_EQ4_14 0xE5F
  685. #define WM5100_EQ4_15 0xE60
  686. #define WM5100_EQ4_16 0xE61
  687. #define WM5100_EQ4_17 0xE62
  688. #define WM5100_EQ4_18 0xE63
  689. #define WM5100_EQ4_19 0xE64
  690. #define WM5100_EQ4_20 0xE65
  691. #define WM5100_DRC1_CTRL1 0xE80
  692. #define WM5100_DRC1_CTRL2 0xE81
  693. #define WM5100_DRC1_CTRL3 0xE82
  694. #define WM5100_DRC1_CTRL4 0xE83
  695. #define WM5100_DRC1_CTRL5 0xE84
  696. #define WM5100_HPLPF1_1 0xEC0
  697. #define WM5100_HPLPF1_2 0xEC1
  698. #define WM5100_HPLPF2_1 0xEC4
  699. #define WM5100_HPLPF2_2 0xEC5
  700. #define WM5100_HPLPF3_1 0xEC8
  701. #define WM5100_HPLPF3_2 0xEC9
  702. #define WM5100_HPLPF4_1 0xECC
  703. #define WM5100_HPLPF4_2 0xECD
  704. #define WM5100_DSP1_CONTROL_1 0xF00
  705. #define WM5100_DSP1_CONTROL_2 0xF02
  706. #define WM5100_DSP1_CONTROL_3 0xF03
  707. #define WM5100_DSP1_CONTROL_4 0xF04
  708. #define WM5100_DSP1_CONTROL_5 0xF06
  709. #define WM5100_DSP1_CONTROL_6 0xF07
  710. #define WM5100_DSP1_CONTROL_7 0xF08
  711. #define WM5100_DSP1_CONTROL_8 0xF09
  712. #define WM5100_DSP1_CONTROL_9 0xF0A
  713. #define WM5100_DSP1_CONTROL_10 0xF0B
  714. #define WM5100_DSP1_CONTROL_11 0xF0C
  715. #define WM5100_DSP1_CONTROL_12 0xF0D
  716. #define WM5100_DSP1_CONTROL_13 0xF0F
  717. #define WM5100_DSP1_CONTROL_14 0xF10
  718. #define WM5100_DSP1_CONTROL_15 0xF11
  719. #define WM5100_DSP1_CONTROL_16 0xF12
  720. #define WM5100_DSP1_CONTROL_17 0xF13
  721. #define WM5100_DSP1_CONTROL_18 0xF14
  722. #define WM5100_DSP1_CONTROL_19 0xF16
  723. #define WM5100_DSP1_CONTROL_20 0xF17
  724. #define WM5100_DSP1_CONTROL_21 0xF18
  725. #define WM5100_DSP1_CONTROL_22 0xF1A
  726. #define WM5100_DSP1_CONTROL_23 0xF1B
  727. #define WM5100_DSP1_CONTROL_24 0xF1C
  728. #define WM5100_DSP1_CONTROL_25 0xF1E
  729. #define WM5100_DSP1_CONTROL_26 0xF20
  730. #define WM5100_DSP1_CONTROL_27 0xF21
  731. #define WM5100_DSP1_CONTROL_28 0xF22
  732. #define WM5100_DSP1_CONTROL_29 0xF23
  733. #define WM5100_DSP1_CONTROL_30 0xF24
  734. #define WM5100_DSP2_CONTROL_1 0x1000
  735. #define WM5100_DSP2_CONTROL_2 0x1002
  736. #define WM5100_DSP2_CONTROL_3 0x1003
  737. #define WM5100_DSP2_CONTROL_4 0x1004
  738. #define WM5100_DSP2_CONTROL_5 0x1006
  739. #define WM5100_DSP2_CONTROL_6 0x1007
  740. #define WM5100_DSP2_CONTROL_7 0x1008
  741. #define WM5100_DSP2_CONTROL_8 0x1009
  742. #define WM5100_DSP2_CONTROL_9 0x100A
  743. #define WM5100_DSP2_CONTROL_10 0x100B
  744. #define WM5100_DSP2_CONTROL_11 0x100C
  745. #define WM5100_DSP2_CONTROL_12 0x100D
  746. #define WM5100_DSP2_CONTROL_13 0x100F
  747. #define WM5100_DSP2_CONTROL_14 0x1010
  748. #define WM5100_DSP2_CONTROL_15 0x1011
  749. #define WM5100_DSP2_CONTROL_16 0x1012
  750. #define WM5100_DSP2_CONTROL_17 0x1013
  751. #define WM5100_DSP2_CONTROL_18 0x1014
  752. #define WM5100_DSP2_CONTROL_19 0x1016
  753. #define WM5100_DSP2_CONTROL_20 0x1017
  754. #define WM5100_DSP2_CONTROL_21 0x1018
  755. #define WM5100_DSP2_CONTROL_22 0x101A
  756. #define WM5100_DSP2_CONTROL_23 0x101B
  757. #define WM5100_DSP2_CONTROL_24 0x101C
  758. #define WM5100_DSP2_CONTROL_25 0x101E
  759. #define WM5100_DSP2_CONTROL_26 0x1020
  760. #define WM5100_DSP2_CONTROL_27 0x1021
  761. #define WM5100_DSP2_CONTROL_28 0x1022
  762. #define WM5100_DSP2_CONTROL_29 0x1023
  763. #define WM5100_DSP2_CONTROL_30 0x1024
  764. #define WM5100_DSP3_CONTROL_1 0x1100
  765. #define WM5100_DSP3_CONTROL_2 0x1102
  766. #define WM5100_DSP3_CONTROL_3 0x1103
  767. #define WM5100_DSP3_CONTROL_4 0x1104
  768. #define WM5100_DSP3_CONTROL_5 0x1106
  769. #define WM5100_DSP3_CONTROL_6 0x1107
  770. #define WM5100_DSP3_CONTROL_7 0x1108
  771. #define WM5100_DSP3_CONTROL_8 0x1109
  772. #define WM5100_DSP3_CONTROL_9 0x110A
  773. #define WM5100_DSP3_CONTROL_10 0x110B
  774. #define WM5100_DSP3_CONTROL_11 0x110C
  775. #define WM5100_DSP3_CONTROL_12 0x110D
  776. #define WM5100_DSP3_CONTROL_13 0x110F
  777. #define WM5100_DSP3_CONTROL_14 0x1110
  778. #define WM5100_DSP3_CONTROL_15 0x1111
  779. #define WM5100_DSP3_CONTROL_16 0x1112
  780. #define WM5100_DSP3_CONTROL_17 0x1113
  781. #define WM5100_DSP3_CONTROL_18 0x1114
  782. #define WM5100_DSP3_CONTROL_19 0x1116
  783. #define WM5100_DSP3_CONTROL_20 0x1117
  784. #define WM5100_DSP3_CONTROL_21 0x1118
  785. #define WM5100_DSP3_CONTROL_22 0x111A
  786. #define WM5100_DSP3_CONTROL_23 0x111B
  787. #define WM5100_DSP3_CONTROL_24 0x111C
  788. #define WM5100_DSP3_CONTROL_25 0x111E
  789. #define WM5100_DSP3_CONTROL_26 0x1120
  790. #define WM5100_DSP3_CONTROL_27 0x1121
  791. #define WM5100_DSP3_CONTROL_28 0x1122
  792. #define WM5100_DSP3_CONTROL_29 0x1123
  793. #define WM5100_DSP3_CONTROL_30 0x1124
  794. #define WM5100_DSP1_DM_0 0x4000
  795. #define WM5100_DSP1_DM_1 0x4001
  796. #define WM5100_DSP1_DM_2 0x4002
  797. #define WM5100_DSP1_DM_3 0x4003
  798. #define WM5100_DSP1_DM_508 0x41FC
  799. #define WM5100_DSP1_DM_509 0x41FD
  800. #define WM5100_DSP1_DM_510 0x41FE
  801. #define WM5100_DSP1_DM_511 0x41FF
  802. #define WM5100_DSP1_PM_0 0x4800
  803. #define WM5100_DSP1_PM_1 0x4801
  804. #define WM5100_DSP1_PM_2 0x4802
  805. #define WM5100_DSP1_PM_3 0x4803
  806. #define WM5100_DSP1_PM_4 0x4804
  807. #define WM5100_DSP1_PM_5 0x4805
  808. #define WM5100_DSP1_PM_1530 0x4DFA
  809. #define WM5100_DSP1_PM_1531 0x4DFB
  810. #define WM5100_DSP1_PM_1532 0x4DFC
  811. #define WM5100_DSP1_PM_1533 0x4DFD
  812. #define WM5100_DSP1_PM_1534 0x4DFE
  813. #define WM5100_DSP1_PM_1535 0x4DFF
  814. #define WM5100_DSP1_ZM_0 0x5000
  815. #define WM5100_DSP1_ZM_1 0x5001
  816. #define WM5100_DSP1_ZM_2 0x5002
  817. #define WM5100_DSP1_ZM_3 0x5003
  818. #define WM5100_DSP1_ZM_2044 0x57FC
  819. #define WM5100_DSP1_ZM_2045 0x57FD
  820. #define WM5100_DSP1_ZM_2046 0x57FE
  821. #define WM5100_DSP1_ZM_2047 0x57FF
  822. #define WM5100_DSP2_DM_0 0x6000
  823. #define WM5100_DSP2_DM_1 0x6001
  824. #define WM5100_DSP2_DM_2 0x6002
  825. #define WM5100_DSP2_DM_3 0x6003
  826. #define WM5100_DSP2_DM_508 0x61FC
  827. #define WM5100_DSP2_DM_509 0x61FD
  828. #define WM5100_DSP2_DM_510 0x61FE
  829. #define WM5100_DSP2_DM_511 0x61FF
  830. #define WM5100_DSP2_PM_0 0x6800
  831. #define WM5100_DSP2_PM_1 0x6801
  832. #define WM5100_DSP2_PM_2 0x6802
  833. #define WM5100_DSP2_PM_3 0x6803
  834. #define WM5100_DSP2_PM_4 0x6804
  835. #define WM5100_DSP2_PM_5 0x6805
  836. #define WM5100_DSP2_PM_1530 0x6DFA
  837. #define WM5100_DSP2_PM_1531 0x6DFB
  838. #define WM5100_DSP2_PM_1532 0x6DFC
  839. #define WM5100_DSP2_PM_1533 0x6DFD
  840. #define WM5100_DSP2_PM_1534 0x6DFE
  841. #define WM5100_DSP2_PM_1535 0x6DFF
  842. #define WM5100_DSP2_ZM_0 0x7000
  843. #define WM5100_DSP2_ZM_1 0x7001
  844. #define WM5100_DSP2_ZM_2 0x7002
  845. #define WM5100_DSP2_ZM_3 0x7003
  846. #define WM5100_DSP2_ZM_2044 0x77FC
  847. #define WM5100_DSP2_ZM_2045 0x77FD
  848. #define WM5100_DSP2_ZM_2046 0x77FE
  849. #define WM5100_DSP2_ZM_2047 0x77FF
  850. #define WM5100_DSP3_DM_0 0x8000
  851. #define WM5100_DSP3_DM_1 0x8001
  852. #define WM5100_DSP3_DM_2 0x8002
  853. #define WM5100_DSP3_DM_3 0x8003
  854. #define WM5100_DSP3_DM_508 0x81FC
  855. #define WM5100_DSP3_DM_509 0x81FD
  856. #define WM5100_DSP3_DM_510 0x81FE
  857. #define WM5100_DSP3_DM_511 0x81FF
  858. #define WM5100_DSP3_PM_0 0x8800
  859. #define WM5100_DSP3_PM_1 0x8801
  860. #define WM5100_DSP3_PM_2 0x8802
  861. #define WM5100_DSP3_PM_3 0x8803
  862. #define WM5100_DSP3_PM_4 0x8804
  863. #define WM5100_DSP3_PM_5 0x8805
  864. #define WM5100_DSP3_PM_1530 0x8DFA
  865. #define WM5100_DSP3_PM_1531 0x8DFB
  866. #define WM5100_DSP3_PM_1532 0x8DFC
  867. #define WM5100_DSP3_PM_1533 0x8DFD
  868. #define WM5100_DSP3_PM_1534 0x8DFE
  869. #define WM5100_DSP3_PM_1535 0x8DFF
  870. #define WM5100_DSP3_ZM_0 0x9000
  871. #define WM5100_DSP3_ZM_1 0x9001
  872. #define WM5100_DSP3_ZM_2 0x9002
  873. #define WM5100_DSP3_ZM_3 0x9003
  874. #define WM5100_DSP3_ZM_2044 0x97FC
  875. #define WM5100_DSP3_ZM_2045 0x97FD
  876. #define WM5100_DSP3_ZM_2046 0x97FE
  877. #define WM5100_DSP3_ZM_2047 0x97FF
  878. #define WM5100_REGISTER_COUNT 1435
  879. #define WM5100_MAX_REGISTER 0x97FF
  880. /*
  881. * Field Definitions.
  882. */
  883. /*
  884. * R0 (0x00) - software reset
  885. */
  886. #define WM5100_SW_RST_DEV_ID1_MASK 0xFFFF /* SW_RST_DEV_ID1 - [15:0] */
  887. #define WM5100_SW_RST_DEV_ID1_SHIFT 0 /* SW_RST_DEV_ID1 - [15:0] */
  888. #define WM5100_SW_RST_DEV_ID1_WIDTH 16 /* SW_RST_DEV_ID1 - [15:0] */
  889. /*
  890. * R1 (0x01) - Device Revision
  891. */
  892. #define WM5100_DEVICE_REVISION_MASK 0x000F /* DEVICE_REVISION - [3:0] */
  893. #define WM5100_DEVICE_REVISION_SHIFT 0 /* DEVICE_REVISION - [3:0] */
  894. #define WM5100_DEVICE_REVISION_WIDTH 4 /* DEVICE_REVISION - [3:0] */
  895. /*
  896. * R16 (0x10) - Ctrl IF 1
  897. */
  898. #define WM5100_AUTO_INC 0x0001 /* AUTO_INC */
  899. #define WM5100_AUTO_INC_MASK 0x0001 /* AUTO_INC */
  900. #define WM5100_AUTO_INC_SHIFT 0 /* AUTO_INC */
  901. #define WM5100_AUTO_INC_WIDTH 1 /* AUTO_INC */
  902. /*
  903. * R32 (0x20) - Tone Generator 1
  904. */
  905. #define WM5100_TONE_RATE_MASK 0x3000 /* TONE_RATE - [13:12] */
  906. #define WM5100_TONE_RATE_SHIFT 12 /* TONE_RATE - [13:12] */
  907. #define WM5100_TONE_RATE_WIDTH 2 /* TONE_RATE - [13:12] */
  908. #define WM5100_TONE_OFFSET_MASK 0x0300 /* TONE_OFFSET - [9:8] */
  909. #define WM5100_TONE_OFFSET_SHIFT 8 /* TONE_OFFSET - [9:8] */
  910. #define WM5100_TONE_OFFSET_WIDTH 2 /* TONE_OFFSET - [9:8] */
  911. #define WM5100_TONE2_ENA 0x0002 /* TONE2_ENA */
  912. #define WM5100_TONE2_ENA_MASK 0x0002 /* TONE2_ENA */
  913. #define WM5100_TONE2_ENA_SHIFT 1 /* TONE2_ENA */
  914. #define WM5100_TONE2_ENA_WIDTH 1 /* TONE2_ENA */
  915. #define WM5100_TONE1_ENA 0x0001 /* TONE1_ENA */
  916. #define WM5100_TONE1_ENA_MASK 0x0001 /* TONE1_ENA */
  917. #define WM5100_TONE1_ENA_SHIFT 0 /* TONE1_ENA */
  918. #define WM5100_TONE1_ENA_WIDTH 1 /* TONE1_ENA */
  919. /*
  920. * R48 (0x30) - PWM Drive 1
  921. */
  922. #define WM5100_PWM_RATE_MASK 0x3000 /* PWM_RATE - [13:12] */
  923. #define WM5100_PWM_RATE_SHIFT 12 /* PWM_RATE - [13:12] */
  924. #define WM5100_PWM_RATE_WIDTH 2 /* PWM_RATE - [13:12] */
  925. #define WM5100_PWM_CLK_SEL_MASK 0x0300 /* PWM_CLK_SEL - [9:8] */
  926. #define WM5100_PWM_CLK_SEL_SHIFT 8 /* PWM_CLK_SEL - [9:8] */
  927. #define WM5100_PWM_CLK_SEL_WIDTH 2 /* PWM_CLK_SEL - [9:8] */
  928. #define WM5100_PWM2_OVD 0x0020 /* PWM2_OVD */
  929. #define WM5100_PWM2_OVD_MASK 0x0020 /* PWM2_OVD */
  930. #define WM5100_PWM2_OVD_SHIFT 5 /* PWM2_OVD */
  931. #define WM5100_PWM2_OVD_WIDTH 1 /* PWM2_OVD */
  932. #define WM5100_PWM1_OVD 0x0010 /* PWM1_OVD */
  933. #define WM5100_PWM1_OVD_MASK 0x0010 /* PWM1_OVD */
  934. #define WM5100_PWM1_OVD_SHIFT 4 /* PWM1_OVD */
  935. #define WM5100_PWM1_OVD_WIDTH 1 /* PWM1_OVD */
  936. #define WM5100_PWM2_ENA 0x0002 /* PWM2_ENA */
  937. #define WM5100_PWM2_ENA_MASK 0x0002 /* PWM2_ENA */
  938. #define WM5100_PWM2_ENA_SHIFT 1 /* PWM2_ENA */
  939. #define WM5100_PWM2_ENA_WIDTH 1 /* PWM2_ENA */
  940. #define WM5100_PWM1_ENA 0x0001 /* PWM1_ENA */
  941. #define WM5100_PWM1_ENA_MASK 0x0001 /* PWM1_ENA */
  942. #define WM5100_PWM1_ENA_SHIFT 0 /* PWM1_ENA */
  943. #define WM5100_PWM1_ENA_WIDTH 1 /* PWM1_ENA */
  944. /*
  945. * R49 (0x31) - PWM Drive 2
  946. */
  947. #define WM5100_PWM1_LVL_MASK 0x03FF /* PWM1_LVL - [9:0] */
  948. #define WM5100_PWM1_LVL_SHIFT 0 /* PWM1_LVL - [9:0] */
  949. #define WM5100_PWM1_LVL_WIDTH 10 /* PWM1_LVL - [9:0] */
  950. /*
  951. * R50 (0x32) - PWM Drive 3
  952. */
  953. #define WM5100_PWM2_LVL_MASK 0x03FF /* PWM2_LVL - [9:0] */
  954. #define WM5100_PWM2_LVL_SHIFT 0 /* PWM2_LVL - [9:0] */
  955. #define WM5100_PWM2_LVL_WIDTH 10 /* PWM2_LVL - [9:0] */
  956. /*
  957. * R256 (0x100) - Clocking 1
  958. */
  959. #define WM5100_CLK_32K_SRC_MASK 0x000F /* CLK_32K_SRC - [3:0] */
  960. #define WM5100_CLK_32K_SRC_SHIFT 0 /* CLK_32K_SRC - [3:0] */
  961. #define WM5100_CLK_32K_SRC_WIDTH 4 /* CLK_32K_SRC - [3:0] */
  962. /*
  963. * R257 (0x101) - Clocking 3
  964. */
  965. #define WM5100_SYSCLK_FREQ_MASK 0x0700 /* SYSCLK_FREQ - [10:8] */
  966. #define WM5100_SYSCLK_FREQ_SHIFT 8 /* SYSCLK_FREQ - [10:8] */
  967. #define WM5100_SYSCLK_FREQ_WIDTH 3 /* SYSCLK_FREQ - [10:8] */
  968. #define WM5100_SYSCLK_ENA 0x0040 /* SYSCLK_ENA */
  969. #define WM5100_SYSCLK_ENA_MASK 0x0040 /* SYSCLK_ENA */
  970. #define WM5100_SYSCLK_ENA_SHIFT 6 /* SYSCLK_ENA */
  971. #define WM5100_SYSCLK_ENA_WIDTH 1 /* SYSCLK_ENA */
  972. #define WM5100_SYSCLK_SRC_MASK 0x000F /* SYSCLK_SRC - [3:0] */
  973. #define WM5100_SYSCLK_SRC_SHIFT 0 /* SYSCLK_SRC - [3:0] */
  974. #define WM5100_SYSCLK_SRC_WIDTH 4 /* SYSCLK_SRC - [3:0] */
  975. /*
  976. * R258 (0x102) - Clocking 4
  977. */
  978. #define WM5100_SAMPLE_RATE_1_MASK 0x001F /* SAMPLE_RATE_1 - [4:0] */
  979. #define WM5100_SAMPLE_RATE_1_SHIFT 0 /* SAMPLE_RATE_1 - [4:0] */
  980. #define WM5100_SAMPLE_RATE_1_WIDTH 5 /* SAMPLE_RATE_1 - [4:0] */
  981. /*
  982. * R259 (0x103) - Clocking 5
  983. */
  984. #define WM5100_SAMPLE_RATE_2_MASK 0x001F /* SAMPLE_RATE_2 - [4:0] */
  985. #define WM5100_SAMPLE_RATE_2_SHIFT 0 /* SAMPLE_RATE_2 - [4:0] */
  986. #define WM5100_SAMPLE_RATE_2_WIDTH 5 /* SAMPLE_RATE_2 - [4:0] */
  987. /*
  988. * R260 (0x104) - Clocking 6
  989. */
  990. #define WM5100_SAMPLE_RATE_3_MASK 0x001F /* SAMPLE_RATE_3 - [4:0] */
  991. #define WM5100_SAMPLE_RATE_3_SHIFT 0 /* SAMPLE_RATE_3 - [4:0] */
  992. #define WM5100_SAMPLE_RATE_3_WIDTH 5 /* SAMPLE_RATE_3 - [4:0] */
  993. /*
  994. * R263 (0x107) - Clocking 7
  995. */
  996. #define WM5100_ASYNC_CLK_FREQ_MASK 0x0700 /* ASYNC_CLK_FREQ - [10:8] */
  997. #define WM5100_ASYNC_CLK_FREQ_SHIFT 8 /* ASYNC_CLK_FREQ - [10:8] */
  998. #define WM5100_ASYNC_CLK_FREQ_WIDTH 3 /* ASYNC_CLK_FREQ - [10:8] */
  999. #define WM5100_ASYNC_CLK_ENA 0x0040 /* ASYNC_CLK_ENA */
  1000. #define WM5100_ASYNC_CLK_ENA_MASK 0x0040 /* ASYNC_CLK_ENA */
  1001. #define WM5100_ASYNC_CLK_ENA_SHIFT 6 /* ASYNC_CLK_ENA */
  1002. #define WM5100_ASYNC_CLK_ENA_WIDTH 1 /* ASYNC_CLK_ENA */
  1003. #define WM5100_ASYNC_CLK_SRC_MASK 0x000F /* ASYNC_CLK_SRC - [3:0] */
  1004. #define WM5100_ASYNC_CLK_SRC_SHIFT 0 /* ASYNC_CLK_SRC - [3:0] */
  1005. #define WM5100_ASYNC_CLK_SRC_WIDTH 4 /* ASYNC_CLK_SRC - [3:0] */
  1006. /*
  1007. * R264 (0x108) - Clocking 8
  1008. */
  1009. #define WM5100_ASYNC_SAMPLE_RATE_MASK 0x001F /* ASYNC_SAMPLE_RATE - [4:0] */
  1010. #define WM5100_ASYNC_SAMPLE_RATE_SHIFT 0 /* ASYNC_SAMPLE_RATE - [4:0] */
  1011. #define WM5100_ASYNC_SAMPLE_RATE_WIDTH 5 /* ASYNC_SAMPLE_RATE - [4:0] */
  1012. /*
  1013. * R288 (0x120) - ASRC_ENABLE
  1014. */
  1015. #define WM5100_ASRC2L_ENA 0x0008 /* ASRC2L_ENA */
  1016. #define WM5100_ASRC2L_ENA_MASK 0x0008 /* ASRC2L_ENA */
  1017. #define WM5100_ASRC2L_ENA_SHIFT 3 /* ASRC2L_ENA */
  1018. #define WM5100_ASRC2L_ENA_WIDTH 1 /* ASRC2L_ENA */
  1019. #define WM5100_ASRC2R_ENA 0x0004 /* ASRC2R_ENA */
  1020. #define WM5100_ASRC2R_ENA_MASK 0x0004 /* ASRC2R_ENA */
  1021. #define WM5100_ASRC2R_ENA_SHIFT 2 /* ASRC2R_ENA */
  1022. #define WM5100_ASRC2R_ENA_WIDTH 1 /* ASRC2R_ENA */
  1023. #define WM5100_ASRC1L_ENA 0x0002 /* ASRC1L_ENA */
  1024. #define WM5100_ASRC1L_ENA_MASK 0x0002 /* ASRC1L_ENA */
  1025. #define WM5100_ASRC1L_ENA_SHIFT 1 /* ASRC1L_ENA */
  1026. #define WM5100_ASRC1L_ENA_WIDTH 1 /* ASRC1L_ENA */
  1027. #define WM5100_ASRC1R_ENA 0x0001 /* ASRC1R_ENA */
  1028. #define WM5100_ASRC1R_ENA_MASK 0x0001 /* ASRC1R_ENA */
  1029. #define WM5100_ASRC1R_ENA_SHIFT 0 /* ASRC1R_ENA */
  1030. #define WM5100_ASRC1R_ENA_WIDTH 1 /* ASRC1R_ENA */
  1031. /*
  1032. * R289 (0x121) - ASRC_STATUS
  1033. */
  1034. #define WM5100_ASRC2L_ENA_STS 0x0008 /* ASRC2L_ENA_STS */
  1035. #define WM5100_ASRC2L_ENA_STS_MASK 0x0008 /* ASRC2L_ENA_STS */
  1036. #define WM5100_ASRC2L_ENA_STS_SHIFT 3 /* ASRC2L_ENA_STS */
  1037. #define WM5100_ASRC2L_ENA_STS_WIDTH 1 /* ASRC2L_ENA_STS */
  1038. #define WM5100_ASRC2R_ENA_STS 0x0004 /* ASRC2R_ENA_STS */
  1039. #define WM5100_ASRC2R_ENA_STS_MASK 0x0004 /* ASRC2R_ENA_STS */
  1040. #define WM5100_ASRC2R_ENA_STS_SHIFT 2 /* ASRC2R_ENA_STS */
  1041. #define WM5100_ASRC2R_ENA_STS_WIDTH 1 /* ASRC2R_ENA_STS */
  1042. #define WM5100_ASRC1L_ENA_STS 0x0002 /* ASRC1L_ENA_STS */
  1043. #define WM5100_ASRC1L_ENA_STS_MASK 0x0002 /* ASRC1L_ENA_STS */
  1044. #define WM5100_ASRC1L_ENA_STS_SHIFT 1 /* ASRC1L_ENA_STS */
  1045. #define WM5100_ASRC1L_ENA_STS_WIDTH 1 /* ASRC1L_ENA_STS */
  1046. #define WM5100_ASRC1R_ENA_STS 0x0001 /* ASRC1R_ENA_STS */
  1047. #define WM5100_ASRC1R_ENA_STS_MASK 0x0001 /* ASRC1R_ENA_STS */
  1048. #define WM5100_ASRC1R_ENA_STS_SHIFT 0 /* ASRC1R_ENA_STS */
  1049. #define WM5100_ASRC1R_ENA_STS_WIDTH 1 /* ASRC1R_ENA_STS */
  1050. /*
  1051. * R290 (0x122) - ASRC_RATE1
  1052. */
  1053. #define WM5100_ASRC_RATE1_MASK 0x0006 /* ASRC_RATE1 - [2:1] */
  1054. #define WM5100_ASRC_RATE1_SHIFT 1 /* ASRC_RATE1 - [2:1] */
  1055. #define WM5100_ASRC_RATE1_WIDTH 2 /* ASRC_RATE1 - [2:1] */
  1056. /*
  1057. * R321 (0x141) - ISRC 1 CTRL 1
  1058. */
  1059. #define WM5100_ISRC1_DFS_ENA 0x2000 /* ISRC1_DFS_ENA */
  1060. #define WM5100_ISRC1_DFS_ENA_MASK 0x2000 /* ISRC1_DFS_ENA */
  1061. #define WM5100_ISRC1_DFS_ENA_SHIFT 13 /* ISRC1_DFS_ENA */
  1062. #define WM5100_ISRC1_DFS_ENA_WIDTH 1 /* ISRC1_DFS_ENA */
  1063. #define WM5100_ISRC1_CLK_SEL_MASK 0x0300 /* ISRC1_CLK_SEL - [9:8] */
  1064. #define WM5100_ISRC1_CLK_SEL_SHIFT 8 /* ISRC1_CLK_SEL - [9:8] */
  1065. #define WM5100_ISRC1_CLK_SEL_WIDTH 2 /* ISRC1_CLK_SEL - [9:8] */
  1066. #define WM5100_ISRC1_FSH_MASK 0x000C /* ISRC1_FSH - [3:2] */
  1067. #define WM5100_ISRC1_FSH_SHIFT 2 /* ISRC1_FSH - [3:2] */
  1068. #define WM5100_ISRC1_FSH_WIDTH 2 /* ISRC1_FSH - [3:2] */
  1069. #define WM5100_ISRC1_FSL_MASK 0x0003 /* ISRC1_FSL - [1:0] */
  1070. #define WM5100_ISRC1_FSL_SHIFT 0 /* ISRC1_FSL - [1:0] */
  1071. #define WM5100_ISRC1_FSL_WIDTH 2 /* ISRC1_FSL - [1:0] */
  1072. /*
  1073. * R322 (0x142) - ISRC 1 CTRL 2
  1074. */
  1075. #define WM5100_ISRC1_INT1_ENA 0x8000 /* ISRC1_INT1_ENA */
  1076. #define WM5100_ISRC1_INT1_ENA_MASK 0x8000 /* ISRC1_INT1_ENA */
  1077. #define WM5100_ISRC1_INT1_ENA_SHIFT 15 /* ISRC1_INT1_ENA */
  1078. #define WM5100_ISRC1_INT1_ENA_WIDTH 1 /* ISRC1_INT1_ENA */
  1079. #define WM5100_ISRC1_INT2_ENA 0x4000 /* ISRC1_INT2_ENA */
  1080. #define WM5100_ISRC1_INT2_ENA_MASK 0x4000 /* ISRC1_INT2_ENA */
  1081. #define WM5100_ISRC1_INT2_ENA_SHIFT 14 /* ISRC1_INT2_ENA */
  1082. #define WM5100_ISRC1_INT2_ENA_WIDTH 1 /* ISRC1_INT2_ENA */
  1083. #define WM5100_ISRC1_INT3_ENA 0x2000 /* ISRC1_INT3_ENA */
  1084. #define WM5100_ISRC1_INT3_ENA_MASK 0x2000 /* ISRC1_INT3_ENA */
  1085. #define WM5100_ISRC1_INT3_ENA_SHIFT 13 /* ISRC1_INT3_ENA */
  1086. #define WM5100_ISRC1_INT3_ENA_WIDTH 1 /* ISRC1_INT3_ENA */
  1087. #define WM5100_ISRC1_INT4_ENA 0x1000 /* ISRC1_INT4_ENA */
  1088. #define WM5100_ISRC1_INT4_ENA_MASK 0x1000 /* ISRC1_INT4_ENA */
  1089. #define WM5100_ISRC1_INT4_ENA_SHIFT 12 /* ISRC1_INT4_ENA */
  1090. #define WM5100_ISRC1_INT4_ENA_WIDTH 1 /* ISRC1_INT4_ENA */
  1091. #define WM5100_ISRC1_DEC1_ENA 0x0200 /* ISRC1_DEC1_ENA */
  1092. #define WM5100_ISRC1_DEC1_ENA_MASK 0x0200 /* ISRC1_DEC1_ENA */
  1093. #define WM5100_ISRC1_DEC1_ENA_SHIFT 9 /* ISRC1_DEC1_ENA */
  1094. #define WM5100_ISRC1_DEC1_ENA_WIDTH 1 /* ISRC1_DEC1_ENA */
  1095. #define WM5100_ISRC1_DEC2_ENA 0x0100 /* ISRC1_DEC2_ENA */
  1096. #define WM5100_ISRC1_DEC2_ENA_MASK 0x0100 /* ISRC1_DEC2_ENA */
  1097. #define WM5100_ISRC1_DEC2_ENA_SHIFT 8 /* ISRC1_DEC2_ENA */
  1098. #define WM5100_ISRC1_DEC2_ENA_WIDTH 1 /* ISRC1_DEC2_ENA */
  1099. #define WM5100_ISRC1_DEC3_ENA 0x0080 /* ISRC1_DEC3_ENA */
  1100. #define WM5100_ISRC1_DEC3_ENA_MASK 0x0080 /* ISRC1_DEC3_ENA */
  1101. #define WM5100_ISRC1_DEC3_ENA_SHIFT 7 /* ISRC1_DEC3_ENA */
  1102. #define WM5100_ISRC1_DEC3_ENA_WIDTH 1 /* ISRC1_DEC3_ENA */
  1103. #define WM5100_ISRC1_DEC4_ENA 0x0040 /* ISRC1_DEC4_ENA */
  1104. #define WM5100_ISRC1_DEC4_ENA_MASK 0x0040 /* ISRC1_DEC4_ENA */
  1105. #define WM5100_ISRC1_DEC4_ENA_SHIFT 6 /* ISRC1_DEC4_ENA */
  1106. #define WM5100_ISRC1_DEC4_ENA_WIDTH 1 /* ISRC1_DEC4_ENA */
  1107. #define WM5100_ISRC1_NOTCH_ENA 0x0001 /* ISRC1_NOTCH_ENA */
  1108. #define WM5100_ISRC1_NOTCH_ENA_MASK 0x0001 /* ISRC1_NOTCH_ENA */
  1109. #define WM5100_ISRC1_NOTCH_ENA_SHIFT 0 /* ISRC1_NOTCH_ENA */
  1110. #define WM5100_ISRC1_NOTCH_ENA_WIDTH 1 /* ISRC1_NOTCH_ENA */
  1111. /*
  1112. * R323 (0x143) - ISRC 2 CTRL1
  1113. */
  1114. #define WM5100_ISRC2_DFS_ENA 0x2000 /* ISRC2_DFS_ENA */
  1115. #define WM5100_ISRC2_DFS_ENA_MASK 0x2000 /* ISRC2_DFS_ENA */
  1116. #define WM5100_ISRC2_DFS_ENA_SHIFT 13 /* ISRC2_DFS_ENA */
  1117. #define WM5100_ISRC2_DFS_ENA_WIDTH 1 /* ISRC2_DFS_ENA */
  1118. #define WM5100_ISRC2_CLK_SEL_MASK 0x0300 /* ISRC2_CLK_SEL - [9:8] */
  1119. #define WM5100_ISRC2_CLK_SEL_SHIFT 8 /* ISRC2_CLK_SEL - [9:8] */
  1120. #define WM5100_ISRC2_CLK_SEL_WIDTH 2 /* ISRC2_CLK_SEL - [9:8] */
  1121. #define WM5100_ISRC2_FSH_MASK 0x000C /* ISRC2_FSH - [3:2] */
  1122. #define WM5100_ISRC2_FSH_SHIFT 2 /* ISRC2_FSH - [3:2] */
  1123. #define WM5100_ISRC2_FSH_WIDTH 2 /* ISRC2_FSH - [3:2] */
  1124. #define WM5100_ISRC2_FSL_MASK 0x0003 /* ISRC2_FSL - [1:0] */
  1125. #define WM5100_ISRC2_FSL_SHIFT 0 /* ISRC2_FSL - [1:0] */
  1126. #define WM5100_ISRC2_FSL_WIDTH 2 /* ISRC2_FSL - [1:0] */
  1127. /*
  1128. * R324 (0x144) - ISRC 2 CTRL 2
  1129. */
  1130. #define WM5100_ISRC2_INT1_ENA 0x8000 /* ISRC2_INT1_ENA */
  1131. #define WM5100_ISRC2_INT1_ENA_MASK 0x8000 /* ISRC2_INT1_ENA */
  1132. #define WM5100_ISRC2_INT1_ENA_SHIFT 15 /* ISRC2_INT1_ENA */
  1133. #define WM5100_ISRC2_INT1_ENA_WIDTH 1 /* ISRC2_INT1_ENA */
  1134. #define WM5100_ISRC2_INT2_ENA 0x4000 /* ISRC2_INT2_ENA */
  1135. #define WM5100_ISRC2_INT2_ENA_MASK 0x4000 /* ISRC2_INT2_ENA */
  1136. #define WM5100_ISRC2_INT2_ENA_SHIFT 14 /* ISRC2_INT2_ENA */
  1137. #define WM5100_ISRC2_INT2_ENA_WIDTH 1 /* ISRC2_INT2_ENA */
  1138. #define WM5100_ISRC2_INT3_ENA 0x2000 /* ISRC2_INT3_ENA */
  1139. #define WM5100_ISRC2_INT3_ENA_MASK 0x2000 /* ISRC2_INT3_ENA */
  1140. #define WM5100_ISRC2_INT3_ENA_SHIFT 13 /* ISRC2_INT3_ENA */
  1141. #define WM5100_ISRC2_INT3_ENA_WIDTH 1 /* ISRC2_INT3_ENA */
  1142. #define WM5100_ISRC2_INT4_ENA 0x1000 /* ISRC2_INT4_ENA */
  1143. #define WM5100_ISRC2_INT4_ENA_MASK 0x1000 /* ISRC2_INT4_ENA */
  1144. #define WM5100_ISRC2_INT4_ENA_SHIFT 12 /* ISRC2_INT4_ENA */
  1145. #define WM5100_ISRC2_INT4_ENA_WIDTH 1 /* ISRC2_INT4_ENA */
  1146. #define WM5100_ISRC2_DEC1_ENA 0x0200 /* ISRC2_DEC1_ENA */
  1147. #define WM5100_ISRC2_DEC1_ENA_MASK 0x0200 /* ISRC2_DEC1_ENA */
  1148. #define WM5100_ISRC2_DEC1_ENA_SHIFT 9 /* ISRC2_DEC1_ENA */
  1149. #define WM5100_ISRC2_DEC1_ENA_WIDTH 1 /* ISRC2_DEC1_ENA */
  1150. #define WM5100_ISRC2_DEC2_ENA 0x0100 /* ISRC2_DEC2_ENA */
  1151. #define WM5100_ISRC2_DEC2_ENA_MASK 0x0100 /* ISRC2_DEC2_ENA */
  1152. #define WM5100_ISRC2_DEC2_ENA_SHIFT 8 /* ISRC2_DEC2_ENA */
  1153. #define WM5100_ISRC2_DEC2_ENA_WIDTH 1 /* ISRC2_DEC2_ENA */
  1154. #define WM5100_ISRC2_DEC3_ENA 0x0080 /* ISRC2_DEC3_ENA */
  1155. #define WM5100_ISRC2_DEC3_ENA_MASK 0x0080 /* ISRC2_DEC3_ENA */
  1156. #define WM5100_ISRC2_DEC3_ENA_SHIFT 7 /* ISRC2_DEC3_ENA */
  1157. #define WM5100_ISRC2_DEC3_ENA_WIDTH 1 /* ISRC2_DEC3_ENA */
  1158. #define WM5100_ISRC2_DEC4_ENA 0x0040 /* ISRC2_DEC4_ENA */
  1159. #define WM5100_ISRC2_DEC4_ENA_MASK 0x0040 /* ISRC2_DEC4_ENA */
  1160. #define WM5100_ISRC2_DEC4_ENA_SHIFT 6 /* ISRC2_DEC4_ENA */
  1161. #define WM5100_ISRC2_DEC4_ENA_WIDTH 1 /* ISRC2_DEC4_ENA */
  1162. #define WM5100_ISRC2_NOTCH_ENA 0x0001 /* ISRC2_NOTCH_ENA */
  1163. #define WM5100_ISRC2_NOTCH_ENA_MASK 0x0001 /* ISRC2_NOTCH_ENA */
  1164. #define WM5100_ISRC2_NOTCH_ENA_SHIFT 0 /* ISRC2_NOTCH_ENA */
  1165. #define WM5100_ISRC2_NOTCH_ENA_WIDTH 1 /* ISRC2_NOTCH_ENA */
  1166. /*
  1167. * R386 (0x182) - FLL1 Control 1
  1168. */
  1169. #define WM5100_FLL1_ENA 0x0001 /* FLL1_ENA */
  1170. #define WM5100_FLL1_ENA_MASK 0x0001 /* FLL1_ENA */
  1171. #define WM5100_FLL1_ENA_SHIFT 0 /* FLL1_ENA */
  1172. #define WM5100_FLL1_ENA_WIDTH 1 /* FLL1_ENA */
  1173. /*
  1174. * R387 (0x183) - FLL1 Control 2
  1175. */
  1176. #define WM5100_FLL1_OUTDIV_MASK 0x3F00 /* FLL1_OUTDIV - [13:8] */
  1177. #define WM5100_FLL1_OUTDIV_SHIFT 8 /* FLL1_OUTDIV - [13:8] */
  1178. #define WM5100_FLL1_OUTDIV_WIDTH 6 /* FLL1_OUTDIV - [13:8] */
  1179. #define WM5100_FLL1_FRATIO_MASK 0x0007 /* FLL1_FRATIO - [2:0] */
  1180. #define WM5100_FLL1_FRATIO_SHIFT 0 /* FLL1_FRATIO - [2:0] */
  1181. #define WM5100_FLL1_FRATIO_WIDTH 3 /* FLL1_FRATIO - [2:0] */
  1182. /*
  1183. * R388 (0x184) - FLL1 Control 3
  1184. */
  1185. #define WM5100_FLL1_THETA_MASK 0xFFFF /* FLL1_THETA - [15:0] */
  1186. #define WM5100_FLL1_THETA_SHIFT 0 /* FLL1_THETA - [15:0] */
  1187. #define WM5100_FLL1_THETA_WIDTH 16 /* FLL1_THETA - [15:0] */
  1188. /*
  1189. * R390 (0x186) - FLL1 Control 5
  1190. */
  1191. #define WM5100_FLL1_N_MASK 0x03FF /* FLL1_N - [9:0] */
  1192. #define WM5100_FLL1_N_SHIFT 0 /* FLL1_N - [9:0] */
  1193. #define WM5100_FLL1_N_WIDTH 10 /* FLL1_N - [9:0] */
  1194. /*
  1195. * R391 (0x187) - FLL1 Control 6
  1196. */
  1197. #define WM5100_FLL1_REFCLK_DIV_MASK 0x00C0 /* FLL1_REFCLK_DIV - [7:6] */
  1198. #define WM5100_FLL1_REFCLK_DIV_SHIFT 6 /* FLL1_REFCLK_DIV - [7:6] */
  1199. #define WM5100_FLL1_REFCLK_DIV_WIDTH 2 /* FLL1_REFCLK_DIV - [7:6] */
  1200. #define WM5100_FLL1_REFCLK_SRC_MASK 0x000F /* FLL1_REFCLK_SRC - [3:0] */
  1201. #define WM5100_FLL1_REFCLK_SRC_SHIFT 0 /* FLL1_REFCLK_SRC - [3:0] */
  1202. #define WM5100_FLL1_REFCLK_SRC_WIDTH 4 /* FLL1_REFCLK_SRC - [3:0] */
  1203. /*
  1204. * R392 (0x188) - FLL1 EFS 1
  1205. */
  1206. #define WM5100_FLL1_LAMBDA_MASK 0xFFFF /* FLL1_LAMBDA - [15:0] */
  1207. #define WM5100_FLL1_LAMBDA_SHIFT 0 /* FLL1_LAMBDA - [15:0] */
  1208. #define WM5100_FLL1_LAMBDA_WIDTH 16 /* FLL1_LAMBDA - [15:0] */
  1209. /*
  1210. * R418 (0x1A2) - FLL2 Control 1
  1211. */
  1212. #define WM5100_FLL2_ENA 0x0001 /* FLL2_ENA */
  1213. #define WM5100_FLL2_ENA_MASK 0x0001 /* FLL2_ENA */
  1214. #define WM5100_FLL2_ENA_SHIFT 0 /* FLL2_ENA */
  1215. #define WM5100_FLL2_ENA_WIDTH 1 /* FLL2_ENA */
  1216. /*
  1217. * R419 (0x1A3) - FLL2 Control 2
  1218. */
  1219. #define WM5100_FLL2_OUTDIV_MASK 0x3F00 /* FLL2_OUTDIV - [13:8] */
  1220. #define WM5100_FLL2_OUTDIV_SHIFT 8 /* FLL2_OUTDIV - [13:8] */
  1221. #define WM5100_FLL2_OUTDIV_WIDTH 6 /* FLL2_OUTDIV - [13:8] */
  1222. #define WM5100_FLL2_FRATIO_MASK 0x0007 /* FLL2_FRATIO - [2:0] */
  1223. #define WM5100_FLL2_FRATIO_SHIFT 0 /* FLL2_FRATIO - [2:0] */
  1224. #define WM5100_FLL2_FRATIO_WIDTH 3 /* FLL2_FRATIO - [2:0] */
  1225. /*
  1226. * R420 (0x1A4) - FLL2 Control 3
  1227. */
  1228. #define WM5100_FLL2_THETA_MASK 0xFFFF /* FLL2_THETA - [15:0] */
  1229. #define WM5100_FLL2_THETA_SHIFT 0 /* FLL2_THETA - [15:0] */
  1230. #define WM5100_FLL2_THETA_WIDTH 16 /* FLL2_THETA - [15:0] */
  1231. /*
  1232. * R422 (0x1A6) - FLL2 Control 5
  1233. */
  1234. #define WM5100_FLL2_N_MASK 0x03FF /* FLL2_N - [9:0] */
  1235. #define WM5100_FLL2_N_SHIFT 0 /* FLL2_N - [9:0] */
  1236. #define WM5100_FLL2_N_WIDTH 10 /* FLL2_N - [9:0] */
  1237. /*
  1238. * R423 (0x1A7) - FLL2 Control 6
  1239. */
  1240. #define WM5100_FLL2_REFCLK_DIV_MASK 0x00C0 /* FLL2_REFCLK_DIV - [7:6] */
  1241. #define WM5100_FLL2_REFCLK_DIV_SHIFT 6 /* FLL2_REFCLK_DIV - [7:6] */
  1242. #define WM5100_FLL2_REFCLK_DIV_WIDTH 2 /* FLL2_REFCLK_DIV - [7:6] */
  1243. #define WM5100_FLL2_REFCLK_SRC_MASK 0x000F /* FLL2_REFCLK_SRC - [3:0] */
  1244. #define WM5100_FLL2_REFCLK_SRC_SHIFT 0 /* FLL2_REFCLK_SRC - [3:0] */
  1245. #define WM5100_FLL2_REFCLK_SRC_WIDTH 4 /* FLL2_REFCLK_SRC - [3:0] */
  1246. /*
  1247. * R424 (0x1A8) - FLL2 EFS 1
  1248. */
  1249. #define WM5100_FLL2_LAMBDA_MASK 0xFFFF /* FLL2_LAMBDA - [15:0] */
  1250. #define WM5100_FLL2_LAMBDA_SHIFT 0 /* FLL2_LAMBDA - [15:0] */
  1251. #define WM5100_FLL2_LAMBDA_WIDTH 16 /* FLL2_LAMBDA - [15:0] */
  1252. /*
  1253. * R512 (0x200) - Mic Charge Pump 1
  1254. */
  1255. #define WM5100_CP2_BYPASS 0x0020 /* CP2_BYPASS */
  1256. #define WM5100_CP2_BYPASS_MASK 0x0020 /* CP2_BYPASS */
  1257. #define WM5100_CP2_BYPASS_SHIFT 5 /* CP2_BYPASS */
  1258. #define WM5100_CP2_BYPASS_WIDTH 1 /* CP2_BYPASS */
  1259. #define WM5100_CP2_ENA 0x0001 /* CP2_ENA */
  1260. #define WM5100_CP2_ENA_MASK 0x0001 /* CP2_ENA */
  1261. #define WM5100_CP2_ENA_SHIFT 0 /* CP2_ENA */
  1262. #define WM5100_CP2_ENA_WIDTH 1 /* CP2_ENA */
  1263. /*
  1264. * R513 (0x201) - Mic Charge Pump 2
  1265. */
  1266. #define WM5100_LDO2_VSEL_MASK 0xF800 /* LDO2_VSEL - [15:11] */
  1267. #define WM5100_LDO2_VSEL_SHIFT 11 /* LDO2_VSEL - [15:11] */
  1268. #define WM5100_LDO2_VSEL_WIDTH 5 /* LDO2_VSEL - [15:11] */
  1269. /*
  1270. * R514 (0x202) - HP Charge Pump 1
  1271. */
  1272. #define WM5100_CP1_ENA 0x0001 /* CP1_ENA */
  1273. #define WM5100_CP1_ENA_MASK 0x0001 /* CP1_ENA */
  1274. #define WM5100_CP1_ENA_SHIFT 0 /* CP1_ENA */
  1275. #define WM5100_CP1_ENA_WIDTH 1 /* CP1_ENA */
  1276. /*
  1277. * R529 (0x211) - LDO1 Control
  1278. */
  1279. #define WM5100_LDO1_BYPASS 0x0002 /* LDO1_BYPASS */
  1280. #define WM5100_LDO1_BYPASS_MASK 0x0002 /* LDO1_BYPASS */
  1281. #define WM5100_LDO1_BYPASS_SHIFT 1 /* LDO1_BYPASS */
  1282. #define WM5100_LDO1_BYPASS_WIDTH 1 /* LDO1_BYPASS */
  1283. /*
  1284. * R533 (0x215) - Mic Bias Ctrl 1
  1285. */
  1286. #define WM5100_MICB1_DISCH 0x0040 /* MICB1_DISCH */
  1287. #define WM5100_MICB1_DISCH_MASK 0x0040 /* MICB1_DISCH */
  1288. #define WM5100_MICB1_DISCH_SHIFT 6 /* MICB1_DISCH */
  1289. #define WM5100_MICB1_DISCH_WIDTH 1 /* MICB1_DISCH */
  1290. #define WM5100_MICB1_RATE 0x0020 /* MICB1_RATE */
  1291. #define WM5100_MICB1_RATE_MASK 0x0020 /* MICB1_RATE */
  1292. #define WM5100_MICB1_RATE_SHIFT 5 /* MICB1_RATE */
  1293. #define WM5100_MICB1_RATE_WIDTH 1 /* MICB1_RATE */
  1294. #define WM5100_MICB1_LVL_MASK 0x001C /* MICB1_LVL - [4:2] */
  1295. #define WM5100_MICB1_LVL_SHIFT 2 /* MICB1_LVL - [4:2] */
  1296. #define WM5100_MICB1_LVL_WIDTH 3 /* MICB1_LVL - [4:2] */
  1297. #define WM5100_MICB1_BYPASS 0x0002 /* MICB1_BYPASS */
  1298. #define WM5100_MICB1_BYPASS_MASK 0x0002 /* MICB1_BYPASS */
  1299. #define WM5100_MICB1_BYPASS_SHIFT 1 /* MICB1_BYPASS */
  1300. #define WM5100_MICB1_BYPASS_WIDTH 1 /* MICB1_BYPASS */
  1301. #define WM5100_MICB1_ENA 0x0001 /* MICB1_ENA */
  1302. #define WM5100_MICB1_ENA_MASK 0x0001 /* MICB1_ENA */
  1303. #define WM5100_MICB1_ENA_SHIFT 0 /* MICB1_ENA */
  1304. #define WM5100_MICB1_ENA_WIDTH 1 /* MICB1_ENA */
  1305. /*
  1306. * R534 (0x216) - Mic Bias Ctrl 2
  1307. */
  1308. #define WM5100_MICB2_DISCH 0x0040 /* MICB2_DISCH */
  1309. #define WM5100_MICB2_DISCH_MASK 0x0040 /* MICB2_DISCH */
  1310. #define WM5100_MICB2_DISCH_SHIFT 6 /* MICB2_DISCH */
  1311. #define WM5100_MICB2_DISCH_WIDTH 1 /* MICB2_DISCH */
  1312. #define WM5100_MICB2_RATE 0x0020 /* MICB2_RATE */
  1313. #define WM5100_MICB2_RATE_MASK 0x0020 /* MICB2_RATE */
  1314. #define WM5100_MICB2_RATE_SHIFT 5 /* MICB2_RATE */
  1315. #define WM5100_MICB2_RATE_WIDTH 1 /* MICB2_RATE */
  1316. #define WM5100_MICB2_LVL_MASK 0x001C /* MICB2_LVL - [4:2] */
  1317. #define WM5100_MICB2_LVL_SHIFT 2 /* MICB2_LVL - [4:2] */
  1318. #define WM5100_MICB2_LVL_WIDTH 3 /* MICB2_LVL - [4:2] */
  1319. #define WM5100_MICB2_BYPASS 0x0002 /* MICB2_BYPASS */
  1320. #define WM5100_MICB2_BYPASS_MASK 0x0002 /* MICB2_BYPASS */
  1321. #define WM5100_MICB2_BYPASS_SHIFT 1 /* MICB2_BYPASS */
  1322. #define WM5100_MICB2_BYPASS_WIDTH 1 /* MICB2_BYPASS */
  1323. #define WM5100_MICB2_ENA 0x0001 /* MICB2_ENA */
  1324. #define WM5100_MICB2_ENA_MASK 0x0001 /* MICB2_ENA */
  1325. #define WM5100_MICB2_ENA_SHIFT 0 /* MICB2_ENA */
  1326. #define WM5100_MICB2_ENA_WIDTH 1 /* MICB2_ENA */
  1327. /*
  1328. * R535 (0x217) - Mic Bias Ctrl 3
  1329. */
  1330. #define WM5100_MICB3_DISCH 0x0040 /* MICB3_DISCH */
  1331. #define WM5100_MICB3_DISCH_MASK 0x0040 /* MICB3_DISCH */
  1332. #define WM5100_MICB3_DISCH_SHIFT 6 /* MICB3_DISCH */
  1333. #define WM5100_MICB3_DISCH_WIDTH 1 /* MICB3_DISCH */
  1334. #define WM5100_MICB3_RATE 0x0020 /* MICB3_RATE */
  1335. #define WM5100_MICB3_RATE_MASK 0x0020 /* MICB3_RATE */
  1336. #define WM5100_MICB3_RATE_SHIFT 5 /* MICB3_RATE */
  1337. #define WM5100_MICB3_RATE_WIDTH 1 /* MICB3_RATE */
  1338. #define WM5100_MICB3_LVL_MASK 0x001C /* MICB3_LVL - [4:2] */
  1339. #define WM5100_MICB3_LVL_SHIFT 2 /* MICB3_LVL - [4:2] */
  1340. #define WM5100_MICB3_LVL_WIDTH 3 /* MICB3_LVL - [4:2] */
  1341. #define WM5100_MICB3_BYPASS 0x0002 /* MICB3_BYPASS */
  1342. #define WM5100_MICB3_BYPASS_MASK 0x0002 /* MICB3_BYPASS */
  1343. #define WM5100_MICB3_BYPASS_SHIFT 1 /* MICB3_BYPASS */
  1344. #define WM5100_MICB3_BYPASS_WIDTH 1 /* MICB3_BYPASS */
  1345. #define WM5100_MICB3_ENA 0x0001 /* MICB3_ENA */
  1346. #define WM5100_MICB3_ENA_MASK 0x0001 /* MICB3_ENA */
  1347. #define WM5100_MICB3_ENA_SHIFT 0 /* MICB3_ENA */
  1348. #define WM5100_MICB3_ENA_WIDTH 1 /* MICB3_ENA */
  1349. /*
  1350. * R640 (0x280) - Accessory Detect Mode 1
  1351. */
  1352. #define WM5100_ACCDET_BIAS_SRC_MASK 0xC000 /* ACCDET_BIAS_SRC - [15:14] */
  1353. #define WM5100_ACCDET_BIAS_SRC_SHIFT 14 /* ACCDET_BIAS_SRC - [15:14] */
  1354. #define WM5100_ACCDET_BIAS_SRC_WIDTH 2 /* ACCDET_BIAS_SRC - [15:14] */
  1355. #define WM5100_ACCDET_SRC 0x2000 /* ACCDET_SRC */
  1356. #define WM5100_ACCDET_SRC_MASK 0x2000 /* ACCDET_SRC */
  1357. #define WM5100_ACCDET_SRC_SHIFT 13 /* ACCDET_SRC */
  1358. #define WM5100_ACCDET_SRC_WIDTH 1 /* ACCDET_SRC */
  1359. #define WM5100_ACCDET_MODE_MASK 0x0003 /* ACCDET_MODE - [1:0] */
  1360. #define WM5100_ACCDET_MODE_SHIFT 0 /* ACCDET_MODE - [1:0] */
  1361. #define WM5100_ACCDET_MODE_WIDTH 2 /* ACCDET_MODE - [1:0] */
  1362. /*
  1363. * R648 (0x288) - Headphone Detect 1
  1364. */
  1365. #define WM5100_HP_HOLDTIME_MASK 0x00E0 /* HP_HOLDTIME - [7:5] */
  1366. #define WM5100_HP_HOLDTIME_SHIFT 5 /* HP_HOLDTIME - [7:5] */
  1367. #define WM5100_HP_HOLDTIME_WIDTH 3 /* HP_HOLDTIME - [7:5] */
  1368. #define WM5100_HP_CLK_DIV_MASK 0x0018 /* HP_CLK_DIV - [4:3] */
  1369. #define WM5100_HP_CLK_DIV_SHIFT 3 /* HP_CLK_DIV - [4:3] */
  1370. #define WM5100_HP_CLK_DIV_WIDTH 2 /* HP_CLK_DIV - [4:3] */
  1371. #define WM5100_HP_STEP_SIZE 0x0002 /* HP_STEP_SIZE */
  1372. #define WM5100_HP_STEP_SIZE_MASK 0x0002 /* HP_STEP_SIZE */
  1373. #define WM5100_HP_STEP_SIZE_SHIFT 1 /* HP_STEP_SIZE */
  1374. #define WM5100_HP_STEP_SIZE_WIDTH 1 /* HP_STEP_SIZE */
  1375. #define WM5100_HP_POLL 0x0001 /* HP_POLL */
  1376. #define WM5100_HP_POLL_MASK 0x0001 /* HP_POLL */
  1377. #define WM5100_HP_POLL_SHIFT 0 /* HP_POLL */
  1378. #define WM5100_HP_POLL_WIDTH 1 /* HP_POLL */
  1379. /*
  1380. * R649 (0x289) - Headphone Detect 2
  1381. */
  1382. #define WM5100_HP_DONE 0x0080 /* HP_DONE */
  1383. #define WM5100_HP_DONE_MASK 0x0080 /* HP_DONE */
  1384. #define WM5100_HP_DONE_SHIFT 7 /* HP_DONE */
  1385. #define WM5100_HP_DONE_WIDTH 1 /* HP_DONE */
  1386. #define WM5100_HP_LVL_MASK 0x007F /* HP_LVL - [6:0] */
  1387. #define WM5100_HP_LVL_SHIFT 0 /* HP_LVL - [6:0] */
  1388. #define WM5100_HP_LVL_WIDTH 7 /* HP_LVL - [6:0] */
  1389. /*
  1390. * R656 (0x290) - Mic Detect 1
  1391. */
  1392. #define WM5100_ACCDET_BIAS_STARTTIME_MASK 0xF000 /* ACCDET_BIAS_STARTTIME - [15:12] */
  1393. #define WM5100_ACCDET_BIAS_STARTTIME_SHIFT 12 /* ACCDET_BIAS_STARTTIME - [15:12] */
  1394. #define WM5100_ACCDET_BIAS_STARTTIME_WIDTH 4 /* ACCDET_BIAS_STARTTIME - [15:12] */
  1395. #define WM5100_ACCDET_RATE_MASK 0x0F00 /* ACCDET_RATE - [11:8] */
  1396. #define WM5100_ACCDET_RATE_SHIFT 8 /* ACCDET_RATE - [11:8] */
  1397. #define WM5100_ACCDET_RATE_WIDTH 4 /* ACCDET_RATE - [11:8] */
  1398. #define WM5100_ACCDET_DBTIME 0x0002 /* ACCDET_DBTIME */
  1399. #define WM5100_ACCDET_DBTIME_MASK 0x0002 /* ACCDET_DBTIME */
  1400. #define WM5100_ACCDET_DBTIME_SHIFT 1 /* ACCDET_DBTIME */
  1401. #define WM5100_ACCDET_DBTIME_WIDTH 1 /* ACCDET_DBTIME */
  1402. #define WM5100_ACCDET_ENA 0x0001 /* ACCDET_ENA */
  1403. #define WM5100_ACCDET_ENA_MASK 0x0001 /* ACCDET_ENA */
  1404. #define WM5100_ACCDET_ENA_SHIFT 0 /* ACCDET_ENA */
  1405. #define WM5100_ACCDET_ENA_WIDTH 1 /* ACCDET_ENA */
  1406. /*
  1407. * R657 (0x291) - Mic Detect 2
  1408. */
  1409. #define WM5100_ACCDET_LVL_SEL_MASK 0x00FF /* ACCDET_LVL_SEL - [7:0] */
  1410. #define WM5100_ACCDET_LVL_SEL_SHIFT 0 /* ACCDET_LVL_SEL - [7:0] */
  1411. #define WM5100_ACCDET_LVL_SEL_WIDTH 8 /* ACCDET_LVL_SEL - [7:0] */
  1412. /*
  1413. * R658 (0x292) - Mic Detect 3
  1414. */
  1415. #define WM5100_ACCDET_LVL_MASK 0x07FC /* ACCDET_LVL - [10:2] */
  1416. #define WM5100_ACCDET_LVL_SHIFT 2 /* ACCDET_LVL - [10:2] */
  1417. #define WM5100_ACCDET_LVL_WIDTH 9 /* ACCDET_LVL - [10:2] */
  1418. #define WM5100_ACCDET_VALID 0x0002 /* ACCDET_VALID */
  1419. #define WM5100_ACCDET_VALID_MASK 0x0002 /* ACCDET_VALID */
  1420. #define WM5100_ACCDET_VALID_SHIFT 1 /* ACCDET_VALID */
  1421. #define WM5100_ACCDET_VALID_WIDTH 1 /* ACCDET_VALID */
  1422. #define WM5100_ACCDET_STS 0x0001 /* ACCDET_STS */
  1423. #define WM5100_ACCDET_STS_MASK 0x0001 /* ACCDET_STS */
  1424. #define WM5100_ACCDET_STS_SHIFT 0 /* ACCDET_STS */
  1425. #define WM5100_ACCDET_STS_WIDTH 1 /* ACCDET_STS */
  1426. /*
  1427. * R699 (0x2BB) - Misc Control
  1428. */
  1429. #define WM5100_HPCOM_SRC 0x200 /* HPCOM_SRC */
  1430. #define WM5100_HPCOM_SRC_SHIFT 9 /* HPCOM_SRC */
  1431. /*
  1432. * R769 (0x301) - Input Enables
  1433. */
  1434. #define WM5100_IN4L_ENA 0x0080 /* IN4L_ENA */
  1435. #define WM5100_IN4L_ENA_MASK 0x0080 /* IN4L_ENA */
  1436. #define WM5100_IN4L_ENA_SHIFT 7 /* IN4L_ENA */
  1437. #define WM5100_IN4L_ENA_WIDTH 1 /* IN4L_ENA */
  1438. #define WM5100_IN4R_ENA 0x0040 /* IN4R_ENA */
  1439. #define WM5100_IN4R_ENA_MASK 0x0040 /* IN4R_ENA */
  1440. #define WM5100_IN4R_ENA_SHIFT 6 /* IN4R_ENA */
  1441. #define WM5100_IN4R_ENA_WIDTH 1 /* IN4R_ENA */
  1442. #define WM5100_IN3L_ENA 0x0020 /* IN3L_ENA */
  1443. #define WM5100_IN3L_ENA_MASK 0x0020 /* IN3L_ENA */
  1444. #define WM5100_IN3L_ENA_SHIFT 5 /* IN3L_ENA */
  1445. #define WM5100_IN3L_ENA_WIDTH 1 /* IN3L_ENA */
  1446. #define WM5100_IN3R_ENA 0x0010 /* IN3R_ENA */
  1447. #define WM5100_IN3R_ENA_MASK 0x0010 /* IN3R_ENA */
  1448. #define WM5100_IN3R_ENA_SHIFT 4 /* IN3R_ENA */
  1449. #define WM5100_IN3R_ENA_WIDTH 1 /* IN3R_ENA */
  1450. #define WM5100_IN2L_ENA 0x0008 /* IN2L_ENA */
  1451. #define WM5100_IN2L_ENA_MASK 0x0008 /* IN2L_ENA */
  1452. #define WM5100_IN2L_ENA_SHIFT 3 /* IN2L_ENA */
  1453. #define WM5100_IN2L_ENA_WIDTH 1 /* IN2L_ENA */
  1454. #define WM5100_IN2R_ENA 0x0004 /* IN2R_ENA */
  1455. #define WM5100_IN2R_ENA_MASK 0x0004 /* IN2R_ENA */
  1456. #define WM5100_IN2R_ENA_SHIFT 2 /* IN2R_ENA */
  1457. #define WM5100_IN2R_ENA_WIDTH 1 /* IN2R_ENA */
  1458. #define WM5100_IN1L_ENA 0x0002 /* IN1L_ENA */
  1459. #define WM5100_IN1L_ENA_MASK 0x0002 /* IN1L_ENA */
  1460. #define WM5100_IN1L_ENA_SHIFT 1 /* IN1L_ENA */
  1461. #define WM5100_IN1L_ENA_WIDTH 1 /* IN1L_ENA */
  1462. #define WM5100_IN1R_ENA 0x0001 /* IN1R_ENA */
  1463. #define WM5100_IN1R_ENA_MASK 0x0001 /* IN1R_ENA */
  1464. #define WM5100_IN1R_ENA_SHIFT 0 /* IN1R_ENA */
  1465. #define WM5100_IN1R_ENA_WIDTH 1 /* IN1R_ENA */
  1466. /*
  1467. * R770 (0x302) - Input Enables Status
  1468. */
  1469. #define WM5100_IN4L_ENA_STS 0x0080 /* IN4L_ENA_STS */
  1470. #define WM5100_IN4L_ENA_STS_MASK 0x0080 /* IN4L_ENA_STS */
  1471. #define WM5100_IN4L_ENA_STS_SHIFT 7 /* IN4L_ENA_STS */
  1472. #define WM5100_IN4L_ENA_STS_WIDTH 1 /* IN4L_ENA_STS */
  1473. #define WM5100_IN4R_ENA_STS 0x0040 /* IN4R_ENA_STS */
  1474. #define WM5100_IN4R_ENA_STS_MASK 0x0040 /* IN4R_ENA_STS */
  1475. #define WM5100_IN4R_ENA_STS_SHIFT 6 /* IN4R_ENA_STS */
  1476. #define WM5100_IN4R_ENA_STS_WIDTH 1 /* IN4R_ENA_STS */
  1477. #define WM5100_IN3L_ENA_STS 0x0020 /* IN3L_ENA_STS */
  1478. #define WM5100_IN3L_ENA_STS_MASK 0x0020 /* IN3L_ENA_STS */
  1479. #define WM5100_IN3L_ENA_STS_SHIFT 5 /* IN3L_ENA_STS */
  1480. #define WM5100_IN3L_ENA_STS_WIDTH 1 /* IN3L_ENA_STS */
  1481. #define WM5100_IN3R_ENA_STS 0x0010 /* IN3R_ENA_STS */
  1482. #define WM5100_IN3R_ENA_STS_MASK 0x0010 /* IN3R_ENA_STS */
  1483. #define WM5100_IN3R_ENA_STS_SHIFT 4 /* IN3R_ENA_STS */
  1484. #define WM5100_IN3R_ENA_STS_WIDTH 1 /* IN3R_ENA_STS */
  1485. #define WM5100_IN2L_ENA_STS 0x0008 /* IN2L_ENA_STS */
  1486. #define WM5100_IN2L_ENA_STS_MASK 0x0008 /* IN2L_ENA_STS */
  1487. #define WM5100_IN2L_ENA_STS_SHIFT 3 /* IN2L_ENA_STS */
  1488. #define WM5100_IN2L_ENA_STS_WIDTH 1 /* IN2L_ENA_STS */
  1489. #define WM5100_IN2R_ENA_STS 0x0004 /* IN2R_ENA_STS */
  1490. #define WM5100_IN2R_ENA_STS_MASK 0x0004 /* IN2R_ENA_STS */
  1491. #define WM5100_IN2R_ENA_STS_SHIFT 2 /* IN2R_ENA_STS */
  1492. #define WM5100_IN2R_ENA_STS_WIDTH 1 /* IN2R_ENA_STS */
  1493. #define WM5100_IN1L_ENA_STS 0x0002 /* IN1L_ENA_STS */
  1494. #define WM5100_IN1L_ENA_STS_MASK 0x0002 /* IN1L_ENA_STS */
  1495. #define WM5100_IN1L_ENA_STS_SHIFT 1 /* IN1L_ENA_STS */
  1496. #define WM5100_IN1L_ENA_STS_WIDTH 1 /* IN1L_ENA_STS */
  1497. #define WM5100_IN1R_ENA_STS 0x0001 /* IN1R_ENA_STS */
  1498. #define WM5100_IN1R_ENA_STS_MASK 0x0001 /* IN1R_ENA_STS */
  1499. #define WM5100_IN1R_ENA_STS_SHIFT 0 /* IN1R_ENA_STS */
  1500. #define WM5100_IN1R_ENA_STS_WIDTH 1 /* IN1R_ENA_STS */
  1501. /*
  1502. * R784 (0x310) - IN1L Control
  1503. */
  1504. #define WM5100_IN_RATE_MASK 0xC000 /* IN_RATE - [15:14] */
  1505. #define WM5100_IN_RATE_SHIFT 14 /* IN_RATE - [15:14] */
  1506. #define WM5100_IN_RATE_WIDTH 2 /* IN_RATE - [15:14] */
  1507. #define WM5100_IN1_OSR 0x2000 /* IN1_OSR */
  1508. #define WM5100_IN1_OSR_MASK 0x2000 /* IN1_OSR */
  1509. #define WM5100_IN1_OSR_SHIFT 13 /* IN1_OSR */
  1510. #define WM5100_IN1_OSR_WIDTH 1 /* IN1_OSR */
  1511. #define WM5100_IN1_DMIC_SUP_MASK 0x1800 /* IN1_DMIC_SUP - [12:11] */
  1512. #define WM5100_IN1_DMIC_SUP_SHIFT 11 /* IN1_DMIC_SUP - [12:11] */
  1513. #define WM5100_IN1_DMIC_SUP_WIDTH 2 /* IN1_DMIC_SUP - [12:11] */
  1514. #define WM5100_IN1_MODE_MASK 0x0600 /* IN1_MODE - [10:9] */
  1515. #define WM5100_IN1_MODE_SHIFT 9 /* IN1_MODE - [10:9] */
  1516. #define WM5100_IN1_MODE_WIDTH 2 /* IN1_MODE - [10:9] */
  1517. #define WM5100_IN1L_PGA_VOL_MASK 0x00FE /* IN1L_PGA_VOL - [7:1] */
  1518. #define WM5100_IN1L_PGA_VOL_SHIFT 1 /* IN1L_PGA_VOL - [7:1] */
  1519. #define WM5100_IN1L_PGA_VOL_WIDTH 7 /* IN1L_PGA_VOL - [7:1] */
  1520. /*
  1521. * R785 (0x311) - IN1R Control
  1522. */
  1523. #define WM5100_IN1R_PGA_VOL_MASK 0x00FE /* IN1R_PGA_VOL - [7:1] */
  1524. #define WM5100_IN1R_PGA_VOL_SHIFT 1 /* IN1R_PGA_VOL - [7:1] */
  1525. #define WM5100_IN1R_PGA_VOL_WIDTH 7 /* IN1R_PGA_VOL - [7:1] */
  1526. /*
  1527. * R786 (0x312) - IN2L Control
  1528. */
  1529. #define WM5100_IN2_OSR 0x2000 /* IN2_OSR */
  1530. #define WM5100_IN2_OSR_MASK 0x2000 /* IN2_OSR */
  1531. #define WM5100_IN2_OSR_SHIFT 13 /* IN2_OSR */
  1532. #define WM5100_IN2_OSR_WIDTH 1 /* IN2_OSR */
  1533. #define WM5100_IN2_DMIC_SUP_MASK 0x1800 /* IN2_DMIC_SUP - [12:11] */
  1534. #define WM5100_IN2_DMIC_SUP_SHIFT 11 /* IN2_DMIC_SUP - [12:11] */
  1535. #define WM5100_IN2_DMIC_SUP_WIDTH 2 /* IN2_DMIC_SUP - [12:11] */
  1536. #define WM5100_IN2_MODE_MASK 0x0600 /* IN2_MODE - [10:9] */
  1537. #define WM5100_IN2_MODE_SHIFT 9 /* IN2_MODE - [10:9] */
  1538. #define WM5100_IN2_MODE_WIDTH 2 /* IN2_MODE - [10:9] */
  1539. #define WM5100_IN2L_PGA_VOL_MASK 0x00FE /* IN2L_PGA_VOL - [7:1] */
  1540. #define WM5100_IN2L_PGA_VOL_SHIFT 1 /* IN2L_PGA_VOL - [7:1] */
  1541. #define WM5100_IN2L_PGA_VOL_WIDTH 7 /* IN2L_PGA_VOL - [7:1] */
  1542. /*
  1543. * R787 (0x313) - IN2R Control
  1544. */
  1545. #define WM5100_IN2R_PGA_VOL_MASK 0x00FE /* IN2R_PGA_VOL - [7:1] */
  1546. #define WM5100_IN2R_PGA_VOL_SHIFT 1 /* IN2R_PGA_VOL - [7:1] */
  1547. #define WM5100_IN2R_PGA_VOL_WIDTH 7 /* IN2R_PGA_VOL - [7:1] */
  1548. /*
  1549. * R788 (0x314) - IN3L Control
  1550. */
  1551. #define WM5100_IN3_OSR 0x2000 /* IN3_OSR */
  1552. #define WM5100_IN3_OSR_MASK 0x2000 /* IN3_OSR */
  1553. #define WM5100_IN3_OSR_SHIFT 13 /* IN3_OSR */
  1554. #define WM5100_IN3_OSR_WIDTH 1 /* IN3_OSR */
  1555. #define WM5100_IN3_DMIC_SUP_MASK 0x1800 /* IN3_DMIC_SUP - [12:11] */
  1556. #define WM5100_IN3_DMIC_SUP_SHIFT 11 /* IN3_DMIC_SUP - [12:11] */
  1557. #define WM5100_IN3_DMIC_SUP_WIDTH 2 /* IN3_DMIC_SUP - [12:11] */
  1558. #define WM5100_IN3_MODE_MASK 0x0600 /* IN3_MODE - [10:9] */
  1559. #define WM5100_IN3_MODE_SHIFT 9 /* IN3_MODE - [10:9] */
  1560. #define WM5100_IN3_MODE_WIDTH 2 /* IN3_MODE - [10:9] */
  1561. #define WM5100_IN3L_PGA_VOL_MASK 0x00FE /* IN3L_PGA_VOL - [7:1] */
  1562. #define WM5100_IN3L_PGA_VOL_SHIFT 1 /* IN3L_PGA_VOL - [7:1] */
  1563. #define WM5100_IN3L_PGA_VOL_WIDTH 7 /* IN3L_PGA_VOL - [7:1] */
  1564. /*
  1565. * R789 (0x315) - IN3R Control
  1566. */
  1567. #define WM5100_IN3R_PGA_VOL_MASK 0x00FE /* IN3R_PGA_VOL - [7:1] */
  1568. #define WM5100_IN3R_PGA_VOL_SHIFT 1 /* IN3R_PGA_VOL - [7:1] */
  1569. #define WM5100_IN3R_PGA_VOL_WIDTH 7 /* IN3R_PGA_VOL - [7:1] */
  1570. /*
  1571. * R790 (0x316) - IN4L Control
  1572. */
  1573. #define WM5100_IN4_OSR 0x2000 /* IN4_OSR */
  1574. #define WM5100_IN4_OSR_MASK 0x2000 /* IN4_OSR */
  1575. #define WM5100_IN4_OSR_SHIFT 13 /* IN4_OSR */
  1576. #define WM5100_IN4_OSR_WIDTH 1 /* IN4_OSR */
  1577. #define WM5100_IN4_DMIC_SUP_MASK 0x1800 /* IN4_DMIC_SUP - [12:11] */
  1578. #define WM5100_IN4_DMIC_SUP_SHIFT 11 /* IN4_DMIC_SUP - [12:11] */
  1579. #define WM5100_IN4_DMIC_SUP_WIDTH 2 /* IN4_DMIC_SUP - [12:11] */
  1580. #define WM5100_IN4_MODE_MASK 0x0600 /* IN4_MODE - [10:9] */
  1581. #define WM5100_IN4_MODE_SHIFT 9 /* IN4_MODE - [10:9] */
  1582. #define WM5100_IN4_MODE_WIDTH 2 /* IN4_MODE - [10:9] */
  1583. #define WM5100_IN4L_PGA_VOL_MASK 0x00FE /* IN4L_PGA_VOL - [7:1] */
  1584. #define WM5100_IN4L_PGA_VOL_SHIFT 1 /* IN4L_PGA_VOL - [7:1] */
  1585. #define WM5100_IN4L_PGA_VOL_WIDTH 7 /* IN4L_PGA_VOL - [7:1] */
  1586. /*
  1587. * R791 (0x317) - IN4R Control
  1588. */
  1589. #define WM5100_IN4R_PGA_VOL_MASK 0x00FE /* IN4R_PGA_VOL - [7:1] */
  1590. #define WM5100_IN4R_PGA_VOL_SHIFT 1 /* IN4R_PGA_VOL - [7:1] */
  1591. #define WM5100_IN4R_PGA_VOL_WIDTH 7 /* IN4R_PGA_VOL - [7:1] */
  1592. /*
  1593. * R792 (0x318) - RXANC_SRC
  1594. */
  1595. #define WM5100_IN_RXANC_SEL_MASK 0x0007 /* IN_RXANC_SEL - [2:0] */
  1596. #define WM5100_IN_RXANC_SEL_SHIFT 0 /* IN_RXANC_SEL - [2:0] */
  1597. #define WM5100_IN_RXANC_SEL_WIDTH 3 /* IN_RXANC_SEL - [2:0] */
  1598. /*
  1599. * R793 (0x319) - Input Volume Ramp
  1600. */
  1601. #define WM5100_IN_VD_RAMP_MASK 0x0070 /* IN_VD_RAMP - [6:4] */
  1602. #define WM5100_IN_VD_RAMP_SHIFT 4 /* IN_VD_RAMP - [6:4] */
  1603. #define WM5100_IN_VD_RAMP_WIDTH 3 /* IN_VD_RAMP - [6:4] */
  1604. #define WM5100_IN_VI_RAMP_MASK 0x0007 /* IN_VI_RAMP - [2:0] */
  1605. #define WM5100_IN_VI_RAMP_SHIFT 0 /* IN_VI_RAMP - [2:0] */
  1606. #define WM5100_IN_VI_RAMP_WIDTH 3 /* IN_VI_RAMP - [2:0] */
  1607. /*
  1608. * R800 (0x320) - ADC Digital Volume 1L
  1609. */
  1610. #define WM5100_IN_VU 0x0200 /* IN_VU */
  1611. #define WM5100_IN_VU_MASK 0x0200 /* IN_VU */
  1612. #define WM5100_IN_VU_SHIFT 9 /* IN_VU */
  1613. #define WM5100_IN_VU_WIDTH 1 /* IN_VU */
  1614. #define WM5100_IN1L_MUTE 0x0100 /* IN1L_MUTE */
  1615. #define WM5100_IN1L_MUTE_MASK 0x0100 /* IN1L_MUTE */
  1616. #define WM5100_IN1L_MUTE_SHIFT 8 /* IN1L_MUTE */
  1617. #define WM5100_IN1L_MUTE_WIDTH 1 /* IN1L_MUTE */
  1618. #define WM5100_IN1L_VOL_MASK 0x00FF /* IN1L_VOL - [7:0] */
  1619. #define WM5100_IN1L_VOL_SHIFT 0 /* IN1L_VOL - [7:0] */
  1620. #define WM5100_IN1L_VOL_WIDTH 8 /* IN1L_VOL - [7:0] */
  1621. /*
  1622. * R801 (0x321) - ADC Digital Volume 1R
  1623. */
  1624. #define WM5100_IN_VU 0x0200 /* IN_VU */
  1625. #define WM5100_IN_VU_MASK 0x0200 /* IN_VU */
  1626. #define WM5100_IN_VU_SHIFT 9 /* IN_VU */
  1627. #define WM5100_IN_VU_WIDTH 1 /* IN_VU */
  1628. #define WM5100_IN1R_MUTE 0x0100 /* IN1R_MUTE */
  1629. #define WM5100_IN1R_MUTE_MASK 0x0100 /* IN1R_MUTE */
  1630. #define WM5100_IN1R_MUTE_SHIFT 8 /* IN1R_MUTE */
  1631. #define WM5100_IN1R_MUTE_WIDTH 1 /* IN1R_MUTE */
  1632. #define WM5100_IN1R_VOL_MASK 0x00FF /* IN1R_VOL - [7:0] */
  1633. #define WM5100_IN1R_VOL_SHIFT 0 /* IN1R_VOL - [7:0] */
  1634. #define WM5100_IN1R_VOL_WIDTH 8 /* IN1R_VOL - [7:0] */
  1635. /*
  1636. * R802 (0x322) - ADC Digital Volume 2L
  1637. */
  1638. #define WM5100_IN_VU 0x0200 /* IN_VU */
  1639. #define WM5100_IN_VU_MASK 0x0200 /* IN_VU */
  1640. #define WM5100_IN_VU_SHIFT 9 /* IN_VU */
  1641. #define WM5100_IN_VU_WIDTH 1 /* IN_VU */
  1642. #define WM5100_IN2L_MUTE 0x0100 /* IN2L_MUTE */
  1643. #define WM5100_IN2L_MUTE_MASK 0x0100 /* IN2L_MUTE */
  1644. #define WM5100_IN2L_MUTE_SHIFT 8 /* IN2L_MUTE */
  1645. #define WM5100_IN2L_MUTE_WIDTH 1 /* IN2L_MUTE */
  1646. #define WM5100_IN2L_VOL_MASK 0x00FF /* IN2L_VOL - [7:0] */
  1647. #define WM5100_IN2L_VOL_SHIFT 0 /* IN2L_VOL - [7:0] */
  1648. #define WM5100_IN2L_VOL_WIDTH 8 /* IN2L_VOL - [7:0] */
  1649. /*
  1650. * R803 (0x323) - ADC Digital Volume 2R
  1651. */
  1652. #define WM5100_IN_VU 0x0200 /* IN_VU */
  1653. #define WM5100_IN_VU_MASK 0x0200 /* IN_VU */
  1654. #define WM5100_IN_VU_SHIFT 9 /* IN_VU */
  1655. #define WM5100_IN_VU_WIDTH 1 /* IN_VU */
  1656. #define WM5100_IN2R_MUTE 0x0100 /* IN2R_MUTE */
  1657. #define WM5100_IN2R_MUTE_MASK 0x0100 /* IN2R_MUTE */
  1658. #define WM5100_IN2R_MUTE_SHIFT 8 /* IN2R_MUTE */
  1659. #define WM5100_IN2R_MUTE_WIDTH 1 /* IN2R_MUTE */
  1660. #define WM5100_IN2R_VOL_MASK 0x00FF /* IN2R_VOL - [7:0] */
  1661. #define WM5100_IN2R_VOL_SHIFT 0 /* IN2R_VOL - [7:0] */
  1662. #define WM5100_IN2R_VOL_WIDTH 8 /* IN2R_VOL - [7:0] */
  1663. /*
  1664. * R804 (0x324) - ADC Digital Volume 3L
  1665. */
  1666. #define WM5100_IN_VU 0x0200 /* IN_VU */
  1667. #define WM5100_IN_VU_MASK 0x0200 /* IN_VU */
  1668. #define WM5100_IN_VU_SHIFT 9 /* IN_VU */
  1669. #define WM5100_IN_VU_WIDTH 1 /* IN_VU */
  1670. #define WM5100_IN3L_MUTE 0x0100 /* IN3L_MUTE */
  1671. #define WM5100_IN3L_MUTE_MASK 0x0100 /* IN3L_MUTE */
  1672. #define WM5100_IN3L_MUTE_SHIFT 8 /* IN3L_MUTE */
  1673. #define WM5100_IN3L_MUTE_WIDTH 1 /* IN3L_MUTE */
  1674. #define WM5100_IN3L_VOL_MASK 0x00FF /* IN3L_VOL - [7:0] */
  1675. #define WM5100_IN3L_VOL_SHIFT 0 /* IN3L_VOL - [7:0] */
  1676. #define WM5100_IN3L_VOL_WIDTH 8 /* IN3L_VOL - [7:0] */
  1677. /*
  1678. * R805 (0x325) - ADC Digital Volume 3R
  1679. */
  1680. #define WM5100_IN_VU 0x0200 /* IN_VU */
  1681. #define WM5100_IN_VU_MASK 0x0200 /* IN_VU */
  1682. #define WM5100_IN_VU_SHIFT 9 /* IN_VU */
  1683. #define WM5100_IN_VU_WIDTH 1 /* IN_VU */
  1684. #define WM5100_IN3R_MUTE 0x0100 /* IN3R_MUTE */
  1685. #define WM5100_IN3R_MUTE_MASK 0x0100 /* IN3R_MUTE */
  1686. #define WM5100_IN3R_MUTE_SHIFT 8 /* IN3R_MUTE */
  1687. #define WM5100_IN3R_MUTE_WIDTH 1 /* IN3R_MUTE */
  1688. #define WM5100_IN3R_VOL_MASK 0x00FF /* IN3R_VOL - [7:0] */
  1689. #define WM5100_IN3R_VOL_SHIFT 0 /* IN3R_VOL - [7:0] */
  1690. #define WM5100_IN3R_VOL_WIDTH 8 /* IN3R_VOL - [7:0] */
  1691. /*
  1692. * R806 (0x326) - ADC Digital Volume 4L
  1693. */
  1694. #define WM5100_IN_VU 0x0200 /* IN_VU */
  1695. #define WM5100_IN_VU_MASK 0x0200 /* IN_VU */
  1696. #define WM5100_IN_VU_SHIFT 9 /* IN_VU */
  1697. #define WM5100_IN_VU_WIDTH 1 /* IN_VU */
  1698. #define WM5100_IN4L_MUTE 0x0100 /* IN4L_MUTE */
  1699. #define WM5100_IN4L_MUTE_MASK 0x0100 /* IN4L_MUTE */
  1700. #define WM5100_IN4L_MUTE_SHIFT 8 /* IN4L_MUTE */
  1701. #define WM5100_IN4L_MUTE_WIDTH 1 /* IN4L_MUTE */
  1702. #define WM5100_IN4L_VOL_MASK 0x00FF /* IN4L_VOL - [7:0] */
  1703. #define WM5100_IN4L_VOL_SHIFT 0 /* IN4L_VOL - [7:0] */
  1704. #define WM5100_IN4L_VOL_WIDTH 8 /* IN4L_VOL - [7:0] */
  1705. /*
  1706. * R807 (0x327) - ADC Digital Volume 4R
  1707. */
  1708. #define WM5100_IN_VU 0x0200 /* IN_VU */
  1709. #define WM5100_IN_VU_MASK 0x0200 /* IN_VU */
  1710. #define WM5100_IN_VU_SHIFT 9 /* IN_VU */
  1711. #define WM5100_IN_VU_WIDTH 1 /* IN_VU */
  1712. #define WM5100_IN4R_MUTE 0x0100 /* IN4R_MUTE */
  1713. #define WM5100_IN4R_MUTE_MASK 0x0100 /* IN4R_MUTE */
  1714. #define WM5100_IN4R_MUTE_SHIFT 8 /* IN4R_MUTE */
  1715. #define WM5100_IN4R_MUTE_WIDTH 1 /* IN4R_MUTE */
  1716. #define WM5100_IN4R_VOL_MASK 0x00FF /* IN4R_VOL - [7:0] */
  1717. #define WM5100_IN4R_VOL_SHIFT 0 /* IN4R_VOL - [7:0] */
  1718. #define WM5100_IN4R_VOL_WIDTH 8 /* IN4R_VOL - [7:0] */
  1719. /*
  1720. * R1025 (0x401) - Output Enables 2
  1721. */
  1722. #define WM5100_OUT6L_ENA 0x0800 /* OUT6L_ENA */
  1723. #define WM5100_OUT6L_ENA_MASK 0x0800 /* OUT6L_ENA */
  1724. #define WM5100_OUT6L_ENA_SHIFT 11 /* OUT6L_ENA */
  1725. #define WM5100_OUT6L_ENA_WIDTH 1 /* OUT6L_ENA */
  1726. #define WM5100_OUT6R_ENA 0x0400 /* OUT6R_ENA */
  1727. #define WM5100_OUT6R_ENA_MASK 0x0400 /* OUT6R_ENA */
  1728. #define WM5100_OUT6R_ENA_SHIFT 10 /* OUT6R_ENA */
  1729. #define WM5100_OUT6R_ENA_WIDTH 1 /* OUT6R_ENA */
  1730. #define WM5100_OUT5L_ENA 0x0200 /* OUT5L_ENA */
  1731. #define WM5100_OUT5L_ENA_MASK 0x0200 /* OUT5L_ENA */
  1732. #define WM5100_OUT5L_ENA_SHIFT 9 /* OUT5L_ENA */
  1733. #define WM5100_OUT5L_ENA_WIDTH 1 /* OUT5L_ENA */
  1734. #define WM5100_OUT5R_ENA 0x0100 /* OUT5R_ENA */
  1735. #define WM5100_OUT5R_ENA_MASK 0x0100 /* OUT5R_ENA */
  1736. #define WM5100_OUT5R_ENA_SHIFT 8 /* OUT5R_ENA */
  1737. #define WM5100_OUT5R_ENA_WIDTH 1 /* OUT5R_ENA */
  1738. #define WM5100_OUT4L_ENA 0x0080 /* OUT4L_ENA */
  1739. #define WM5100_OUT4L_ENA_MASK 0x0080 /* OUT4L_ENA */
  1740. #define WM5100_OUT4L_ENA_SHIFT 7 /* OUT4L_ENA */
  1741. #define WM5100_OUT4L_ENA_WIDTH 1 /* OUT4L_ENA */
  1742. #define WM5100_OUT4R_ENA 0x0040 /* OUT4R_ENA */
  1743. #define WM5100_OUT4R_ENA_MASK 0x0040 /* OUT4R_ENA */
  1744. #define WM5100_OUT4R_ENA_SHIFT 6 /* OUT4R_ENA */
  1745. #define WM5100_OUT4R_ENA_WIDTH 1 /* OUT4R_ENA */
  1746. /*
  1747. * R1026 (0x402) - Output Status 1
  1748. */
  1749. #define WM5100_OUT3L_ENA_STS 0x0020 /* OUT3L_ENA_STS */
  1750. #define WM5100_OUT3L_ENA_STS_MASK 0x0020 /* OUT3L_ENA_STS */
  1751. #define WM5100_OUT3L_ENA_STS_SHIFT 5 /* OUT3L_ENA_STS */
  1752. #define WM5100_OUT3L_ENA_STS_WIDTH 1 /* OUT3L_ENA_STS */
  1753. #define WM5100_OUT3R_ENA_STS 0x0010 /* OUT3R_ENA_STS */
  1754. #define WM5100_OUT3R_ENA_STS_MASK 0x0010 /* OUT3R_ENA_STS */
  1755. #define WM5100_OUT3R_ENA_STS_SHIFT 4 /* OUT3R_ENA_STS */
  1756. #define WM5100_OUT3R_ENA_STS_WIDTH 1 /* OUT3R_ENA_STS */
  1757. #define WM5100_OUT2L_ENA_STS 0x0008 /* OUT2L_ENA_STS */
  1758. #define WM5100_OUT2L_ENA_STS_MASK 0x0008 /* OUT2L_ENA_STS */
  1759. #define WM5100_OUT2L_ENA_STS_SHIFT 3 /* OUT2L_ENA_STS */
  1760. #define WM5100_OUT2L_ENA_STS_WIDTH 1 /* OUT2L_ENA_STS */
  1761. #define WM5100_OUT2R_ENA_STS 0x0004 /* OUT2R_ENA_STS */
  1762. #define WM5100_OUT2R_ENA_STS_MASK 0x0004 /* OUT2R_ENA_STS */
  1763. #define WM5100_OUT2R_ENA_STS_SHIFT 2 /* OUT2R_ENA_STS */
  1764. #define WM5100_OUT2R_ENA_STS_WIDTH 1 /* OUT2R_ENA_STS */
  1765. #define WM5100_OUT1L_ENA_STS 0x0002 /* OUT1L_ENA_STS */
  1766. #define WM5100_OUT1L_ENA_STS_MASK 0x0002 /* OUT1L_ENA_STS */
  1767. #define WM5100_OUT1L_ENA_STS_SHIFT 1 /* OUT1L_ENA_STS */
  1768. #define WM5100_OUT1L_ENA_STS_WIDTH 1 /* OUT1L_ENA_STS */
  1769. #define WM5100_OUT1R_ENA_STS 0x0001 /* OUT1R_ENA_STS */
  1770. #define WM5100_OUT1R_ENA_STS_MASK 0x0001 /* OUT1R_ENA_STS */
  1771. #define WM5100_OUT1R_ENA_STS_SHIFT 0 /* OUT1R_ENA_STS */
  1772. #define WM5100_OUT1R_ENA_STS_WIDTH 1 /* OUT1R_ENA_STS */
  1773. /*
  1774. * R1027 (0x403) - Output Status 2
  1775. */
  1776. #define WM5100_OUT6L_ENA_STS 0x0800 /* OUT6L_ENA_STS */
  1777. #define WM5100_OUT6L_ENA_STS_MASK 0x0800 /* OUT6L_ENA_STS */
  1778. #define WM5100_OUT6L_ENA_STS_SHIFT 11 /* OUT6L_ENA_STS */
  1779. #define WM5100_OUT6L_ENA_STS_WIDTH 1 /* OUT6L_ENA_STS */
  1780. #define WM5100_OUT6R_ENA_STS 0x0400 /* OUT6R_ENA_STS */
  1781. #define WM5100_OUT6R_ENA_STS_MASK 0x0400 /* OUT6R_ENA_STS */
  1782. #define WM5100_OUT6R_ENA_STS_SHIFT 10 /* OUT6R_ENA_STS */
  1783. #define WM5100_OUT6R_ENA_STS_WIDTH 1 /* OUT6R_ENA_STS */
  1784. #define WM5100_OUT5L_ENA_STS 0x0200 /* OUT5L_ENA_STS */
  1785. #define WM5100_OUT5L_ENA_STS_MASK 0x0200 /* OUT5L_ENA_STS */
  1786. #define WM5100_OUT5L_ENA_STS_SHIFT 9 /* OUT5L_ENA_STS */
  1787. #define WM5100_OUT5L_ENA_STS_WIDTH 1 /* OUT5L_ENA_STS */
  1788. #define WM5100_OUT5R_ENA_STS 0x0100 /* OUT5R_ENA_STS */
  1789. #define WM5100_OUT5R_ENA_STS_MASK 0x0100 /* OUT5R_ENA_STS */
  1790. #define WM5100_OUT5R_ENA_STS_SHIFT 8 /* OUT5R_ENA_STS */
  1791. #define WM5100_OUT5R_ENA_STS_WIDTH 1 /* OUT5R_ENA_STS */
  1792. #define WM5100_OUT4L_ENA_STS 0x0080 /* OUT4L_ENA_STS */
  1793. #define WM5100_OUT4L_ENA_STS_MASK 0x0080 /* OUT4L_ENA_STS */
  1794. #define WM5100_OUT4L_ENA_STS_SHIFT 7 /* OUT4L_ENA_STS */
  1795. #define WM5100_OUT4L_ENA_STS_WIDTH 1 /* OUT4L_ENA_STS */
  1796. #define WM5100_OUT4R_ENA_STS 0x0040 /* OUT4R_ENA_STS */
  1797. #define WM5100_OUT4R_ENA_STS_MASK 0x0040 /* OUT4R_ENA_STS */
  1798. #define WM5100_OUT4R_ENA_STS_SHIFT 6 /* OUT4R_ENA_STS */
  1799. #define WM5100_OUT4R_ENA_STS_WIDTH 1 /* OUT4R_ENA_STS */
  1800. /*
  1801. * R1032 (0x408) - Channel Enables 1
  1802. */
  1803. #define WM5100_HP3L_ENA 0x0020 /* HP3L_ENA */
  1804. #define WM5100_HP3L_ENA_MASK 0x0020 /* HP3L_ENA */
  1805. #define WM5100_HP3L_ENA_SHIFT 5 /* HP3L_ENA */
  1806. #define WM5100_HP3L_ENA_WIDTH 1 /* HP3L_ENA */
  1807. #define WM5100_HP3R_ENA 0x0010 /* HP3R_ENA */
  1808. #define WM5100_HP3R_ENA_MASK 0x0010 /* HP3R_ENA */
  1809. #define WM5100_HP3R_ENA_SHIFT 4 /* HP3R_ENA */
  1810. #define WM5100_HP3R_ENA_WIDTH 1 /* HP3R_ENA */
  1811. #define WM5100_HP2L_ENA 0x0008 /* HP2L_ENA */
  1812. #define WM5100_HP2L_ENA_MASK 0x0008 /* HP2L_ENA */
  1813. #define WM5100_HP2L_ENA_SHIFT 3 /* HP2L_ENA */
  1814. #define WM5100_HP2L_ENA_WIDTH 1 /* HP2L_ENA */
  1815. #define WM5100_HP2R_ENA 0x0004 /* HP2R_ENA */
  1816. #define WM5100_HP2R_ENA_MASK 0x0004 /* HP2R_ENA */
  1817. #define WM5100_HP2R_ENA_SHIFT 2 /* HP2R_ENA */
  1818. #define WM5100_HP2R_ENA_WIDTH 1 /* HP2R_ENA */
  1819. #define WM5100_HP1L_ENA 0x0002 /* HP1L_ENA */
  1820. #define WM5100_HP1L_ENA_MASK 0x0002 /* HP1L_ENA */
  1821. #define WM5100_HP1L_ENA_SHIFT 1 /* HP1L_ENA */
  1822. #define WM5100_HP1L_ENA_WIDTH 1 /* HP1L_ENA */
  1823. #define WM5100_HP1R_ENA 0x0001 /* HP1R_ENA */
  1824. #define WM5100_HP1R_ENA_MASK 0x0001 /* HP1R_ENA */
  1825. #define WM5100_HP1R_ENA_SHIFT 0 /* HP1R_ENA */
  1826. #define WM5100_HP1R_ENA_WIDTH 1 /* HP1R_ENA */
  1827. /*
  1828. * R1040 (0x410) - Out Volume 1L
  1829. */
  1830. #define WM5100_OUT_RATE_MASK 0xC000 /* OUT_RATE - [15:14] */
  1831. #define WM5100_OUT_RATE_SHIFT 14 /* OUT_RATE - [15:14] */
  1832. #define WM5100_OUT_RATE_WIDTH 2 /* OUT_RATE - [15:14] */
  1833. #define WM5100_OUT1_OSR 0x2000 /* OUT1_OSR */
  1834. #define WM5100_OUT1_OSR_MASK 0x2000 /* OUT1_OSR */
  1835. #define WM5100_OUT1_OSR_SHIFT 13 /* OUT1_OSR */
  1836. #define WM5100_OUT1_OSR_WIDTH 1 /* OUT1_OSR */
  1837. #define WM5100_OUT1_MONO 0x1000 /* OUT1_MONO */
  1838. #define WM5100_OUT1_MONO_MASK 0x1000 /* OUT1_MONO */
  1839. #define WM5100_OUT1_MONO_SHIFT 12 /* OUT1_MONO */
  1840. #define WM5100_OUT1_MONO_WIDTH 1 /* OUT1_MONO */
  1841. #define WM5100_OUT1L_ANC_SRC 0x0800 /* OUT1L_ANC_SRC */
  1842. #define WM5100_OUT1L_ANC_SRC_MASK 0x0800 /* OUT1L_ANC_SRC */
  1843. #define WM5100_OUT1L_ANC_SRC_SHIFT 11 /* OUT1L_ANC_SRC */
  1844. #define WM5100_OUT1L_ANC_SRC_WIDTH 1 /* OUT1L_ANC_SRC */
  1845. #define WM5100_OUT1L_PGA_VOL_MASK 0x00FE /* OUT1L_PGA_VOL - [7:1] */
  1846. #define WM5100_OUT1L_PGA_VOL_SHIFT 1 /* OUT1L_PGA_VOL - [7:1] */
  1847. #define WM5100_OUT1L_PGA_VOL_WIDTH 7 /* OUT1L_PGA_VOL - [7:1] */
  1848. /*
  1849. * R1041 (0x411) - Out Volume 1R
  1850. */
  1851. #define WM5100_OUT1R_ANC_SRC 0x0800 /* OUT1R_ANC_SRC */
  1852. #define WM5100_OUT1R_ANC_SRC_MASK 0x0800 /* OUT1R_ANC_SRC */
  1853. #define WM5100_OUT1R_ANC_SRC_SHIFT 11 /* OUT1R_ANC_SRC */
  1854. #define WM5100_OUT1R_ANC_SRC_WIDTH 1 /* OUT1R_ANC_SRC */
  1855. #define WM5100_OUT1R_PGA_VOL_MASK 0x00FE /* OUT1R_PGA_VOL - [7:1] */
  1856. #define WM5100_OUT1R_PGA_VOL_SHIFT 1 /* OUT1R_PGA_VOL - [7:1] */
  1857. #define WM5100_OUT1R_PGA_VOL_WIDTH 7 /* OUT1R_PGA_VOL - [7:1] */
  1858. /*
  1859. * R1042 (0x412) - DAC Volume Limit 1L
  1860. */
  1861. #define WM5100_OUT1L_VOL_LIM_MASK 0x00FF /* OUT1L_VOL_LIM - [7:0] */
  1862. #define WM5100_OUT1L_VOL_LIM_SHIFT 0 /* OUT1L_VOL_LIM - [7:0] */
  1863. #define WM5100_OUT1L_VOL_LIM_WIDTH 8 /* OUT1L_VOL_LIM - [7:0] */
  1864. /*
  1865. * R1043 (0x413) - DAC Volume Limit 1R
  1866. */
  1867. #define WM5100_OUT1R_VOL_LIM_MASK 0x00FF /* OUT1R_VOL_LIM - [7:0] */
  1868. #define WM5100_OUT1R_VOL_LIM_SHIFT 0 /* OUT1R_VOL_LIM - [7:0] */
  1869. #define WM5100_OUT1R_VOL_LIM_WIDTH 8 /* OUT1R_VOL_LIM - [7:0] */
  1870. /*
  1871. * R1044 (0x414) - Out Volume 2L
  1872. */
  1873. #define WM5100_OUT2_OSR 0x2000 /* OUT2_OSR */
  1874. #define WM5100_OUT2_OSR_MASK 0x2000 /* OUT2_OSR */
  1875. #define WM5100_OUT2_OSR_SHIFT 13 /* OUT2_OSR */
  1876. #define WM5100_OUT2_OSR_WIDTH 1 /* OUT2_OSR */
  1877. #define WM5100_OUT2_MONO 0x1000 /* OUT2_MONO */
  1878. #define WM5100_OUT2_MONO_MASK 0x1000 /* OUT2_MONO */
  1879. #define WM5100_OUT2_MONO_SHIFT 12 /* OUT2_MONO */
  1880. #define WM5100_OUT2_MONO_WIDTH 1 /* OUT2_MONO */
  1881. #define WM5100_OUT2L_ANC_SRC 0x0800 /* OUT2L_ANC_SRC */
  1882. #define WM5100_OUT2L_ANC_SRC_MASK 0x0800 /* OUT2L_ANC_SRC */
  1883. #define WM5100_OUT2L_ANC_SRC_SHIFT 11 /* OUT2L_ANC_SRC */
  1884. #define WM5100_OUT2L_ANC_SRC_WIDTH 1 /* OUT2L_ANC_SRC */
  1885. #define WM5100_OUT2L_PGA_VOL_MASK 0x00FE /* OUT2L_PGA_VOL - [7:1] */
  1886. #define WM5100_OUT2L_PGA_VOL_SHIFT 1 /* OUT2L_PGA_VOL - [7:1] */
  1887. #define WM5100_OUT2L_PGA_VOL_WIDTH 7 /* OUT2L_PGA_VOL - [7:1] */
  1888. /*
  1889. * R1045 (0x415) - Out Volume 2R
  1890. */
  1891. #define WM5100_OUT2R_ANC_SRC 0x0800 /* OUT2R_ANC_SRC */
  1892. #define WM5100_OUT2R_ANC_SRC_MASK 0x0800 /* OUT2R_ANC_SRC */
  1893. #define WM5100_OUT2R_ANC_SRC_SHIFT 11 /* OUT2R_ANC_SRC */
  1894. #define WM5100_OUT2R_ANC_SRC_WIDTH 1 /* OUT2R_ANC_SRC */
  1895. #define WM5100_OUT2R_PGA_VOL_MASK 0x00FE /* OUT2R_PGA_VOL - [7:1] */
  1896. #define WM5100_OUT2R_PGA_VOL_SHIFT 1 /* OUT2R_PGA_VOL - [7:1] */
  1897. #define WM5100_OUT2R_PGA_VOL_WIDTH 7 /* OUT2R_PGA_VOL - [7:1] */
  1898. /*
  1899. * R1046 (0x416) - DAC Volume Limit 2L
  1900. */
  1901. #define WM5100_OUT2L_VOL_LIM_MASK 0x00FF /* OUT2L_VOL_LIM - [7:0] */
  1902. #define WM5100_OUT2L_VOL_LIM_SHIFT 0 /* OUT2L_VOL_LIM - [7:0] */
  1903. #define WM5100_OUT2L_VOL_LIM_WIDTH 8 /* OUT2L_VOL_LIM - [7:0] */
  1904. /*
  1905. * R1047 (0x417) - DAC Volume Limit 2R
  1906. */
  1907. #define WM5100_OUT2R_VOL_LIM_MASK 0x00FF /* OUT2R_VOL_LIM - [7:0] */
  1908. #define WM5100_OUT2R_VOL_LIM_SHIFT 0 /* OUT2R_VOL_LIM - [7:0] */
  1909. #define WM5100_OUT2R_VOL_LIM_WIDTH 8 /* OUT2R_VOL_LIM - [7:0] */
  1910. /*
  1911. * R1048 (0x418) - Out Volume 3L
  1912. */
  1913. #define WM5100_OUT3_OSR 0x2000 /* OUT3_OSR */
  1914. #define WM5100_OUT3_OSR_MASK 0x2000 /* OUT3_OSR */
  1915. #define WM5100_OUT3_OSR_SHIFT 13 /* OUT3_OSR */
  1916. #define WM5100_OUT3_OSR_WIDTH 1 /* OUT3_OSR */
  1917. #define WM5100_OUT3_MONO 0x1000 /* OUT3_MONO */
  1918. #define WM5100_OUT3_MONO_MASK 0x1000 /* OUT3_MONO */
  1919. #define WM5100_OUT3_MONO_SHIFT 12 /* OUT3_MONO */
  1920. #define WM5100_OUT3_MONO_WIDTH 1 /* OUT3_MONO */
  1921. #define WM5100_OUT3L_ANC_SRC 0x0800 /* OUT3L_ANC_SRC */
  1922. #define WM5100_OUT3L_ANC_SRC_MASK 0x0800 /* OUT3L_ANC_SRC */
  1923. #define WM5100_OUT3L_ANC_SRC_SHIFT 11 /* OUT3L_ANC_SRC */
  1924. #define WM5100_OUT3L_ANC_SRC_WIDTH 1 /* OUT3L_ANC_SRC */
  1925. #define WM5100_OUT3L_PGA_VOL_MASK 0x00FE /* OUT3L_PGA_VOL - [7:1] */
  1926. #define WM5100_OUT3L_PGA_VOL_SHIFT 1 /* OUT3L_PGA_VOL - [7:1] */
  1927. #define WM5100_OUT3L_PGA_VOL_WIDTH 7 /* OUT3L_PGA_VOL - [7:1] */
  1928. /*
  1929. * R1049 (0x419) - Out Volume 3R
  1930. */
  1931. #define WM5100_OUT3R_ANC_SRC 0x0800 /* OUT3R_ANC_SRC */
  1932. #define WM5100_OUT3R_ANC_SRC_MASK 0x0800 /* OUT3R_ANC_SRC */
  1933. #define WM5100_OUT3R_ANC_SRC_SHIFT 11 /* OUT3R_ANC_SRC */
  1934. #define WM5100_OUT3R_ANC_SRC_WIDTH 1 /* OUT3R_ANC_SRC */
  1935. #define WM5100_OUT3R_PGA_VOL_MASK 0x00FE /* OUT3R_PGA_VOL - [7:1] */
  1936. #define WM5100_OUT3R_PGA_VOL_SHIFT 1 /* OUT3R_PGA_VOL - [7:1] */
  1937. #define WM5100_OUT3R_PGA_VOL_WIDTH 7 /* OUT3R_PGA_VOL - [7:1] */
  1938. /*
  1939. * R1050 (0x41A) - DAC Volume Limit 3L
  1940. */
  1941. #define WM5100_OUT3L_VOL_LIM_MASK 0x00FF /* OUT3L_VOL_LIM - [7:0] */
  1942. #define WM5100_OUT3L_VOL_LIM_SHIFT 0 /* OUT3L_VOL_LIM - [7:0] */
  1943. #define WM5100_OUT3L_VOL_LIM_WIDTH 8 /* OUT3L_VOL_LIM - [7:0] */
  1944. /*
  1945. * R1051 (0x41B) - DAC Volume Limit 3R
  1946. */
  1947. #define WM5100_OUT3R_VOL_LIM_MASK 0x00FF /* OUT3R_VOL_LIM - [7:0] */
  1948. #define WM5100_OUT3R_VOL_LIM_SHIFT 0 /* OUT3R_VOL_LIM - [7:0] */
  1949. #define WM5100_OUT3R_VOL_LIM_WIDTH 8 /* OUT3R_VOL_LIM - [7:0] */
  1950. /*
  1951. * R1052 (0x41C) - Out Volume 4L
  1952. */
  1953. #define WM5100_OUT4_OSR 0x2000 /* OUT4_OSR */
  1954. #define WM5100_OUT4_OSR_MASK 0x2000 /* OUT4_OSR */
  1955. #define WM5100_OUT4_OSR_SHIFT 13 /* OUT4_OSR */
  1956. #define WM5100_OUT4_OSR_WIDTH 1 /* OUT4_OSR */
  1957. #define WM5100_OUT4L_ANC_SRC 0x0800 /* OUT4L_ANC_SRC */
  1958. #define WM5100_OUT4L_ANC_SRC_MASK 0x0800 /* OUT4L_ANC_SRC */
  1959. #define WM5100_OUT4L_ANC_SRC_SHIFT 11 /* OUT4L_ANC_SRC */
  1960. #define WM5100_OUT4L_ANC_SRC_WIDTH 1 /* OUT4L_ANC_SRC */
  1961. #define WM5100_OUT4L_VOL_LIM_MASK 0x00FF /* OUT4L_VOL_LIM - [7:0] */
  1962. #define WM5100_OUT4L_VOL_LIM_SHIFT 0 /* OUT4L_VOL_LIM - [7:0] */
  1963. #define WM5100_OUT4L_VOL_LIM_WIDTH 8 /* OUT4L_VOL_LIM - [7:0] */
  1964. /*
  1965. * R1053 (0x41D) - Out Volume 4R
  1966. */
  1967. #define WM5100_OUT4R_ANC_SRC 0x0800 /* OUT4R_ANC_SRC */
  1968. #define WM5100_OUT4R_ANC_SRC_MASK 0x0800 /* OUT4R_ANC_SRC */
  1969. #define WM5100_OUT4R_ANC_SRC_SHIFT 11 /* OUT4R_ANC_SRC */
  1970. #define WM5100_OUT4R_ANC_SRC_WIDTH 1 /* OUT4R_ANC_SRC */
  1971. #define WM5100_OUT4R_VOL_LIM_MASK 0x00FF /* OUT4R_VOL_LIM - [7:0] */
  1972. #define WM5100_OUT4R_VOL_LIM_SHIFT 0 /* OUT4R_VOL_LIM - [7:0] */
  1973. #define WM5100_OUT4R_VOL_LIM_WIDTH 8 /* OUT4R_VOL_LIM - [7:0] */
  1974. /*
  1975. * R1054 (0x41E) - DAC Volume Limit 5L
  1976. */
  1977. #define WM5100_OUT5_OSR 0x2000 /* OUT5_OSR */
  1978. #define WM5100_OUT5_OSR_MASK 0x2000 /* OUT5_OSR */
  1979. #define WM5100_OUT5_OSR_SHIFT 13 /* OUT5_OSR */
  1980. #define WM5100_OUT5_OSR_WIDTH 1 /* OUT5_OSR */
  1981. #define WM5100_OUT5L_ANC_SRC 0x0800 /* OUT5L_ANC_SRC */
  1982. #define WM5100_OUT5L_ANC_SRC_MASK 0x0800 /* OUT5L_ANC_SRC */
  1983. #define WM5100_OUT5L_ANC_SRC_SHIFT 11 /* OUT5L_ANC_SRC */
  1984. #define WM5100_OUT5L_ANC_SRC_WIDTH 1 /* OUT5L_ANC_SRC */
  1985. #define WM5100_OUT5L_VOL_LIM_MASK 0x00FF /* OUT5L_VOL_LIM - [7:0] */
  1986. #define WM5100_OUT5L_VOL_LIM_SHIFT 0 /* OUT5L_VOL_LIM - [7:0] */
  1987. #define WM5100_OUT5L_VOL_LIM_WIDTH 8 /* OUT5L_VOL_LIM - [7:0] */
  1988. /*
  1989. * R1055 (0x41F) - DAC Volume Limit 5R
  1990. */
  1991. #define WM5100_OUT5R_ANC_SRC 0x0800 /* OUT5R_ANC_SRC */
  1992. #define WM5100_OUT5R_ANC_SRC_MASK 0x0800 /* OUT5R_ANC_SRC */
  1993. #define WM5100_OUT5R_ANC_SRC_SHIFT 11 /* OUT5R_ANC_SRC */
  1994. #define WM5100_OUT5R_ANC_SRC_WIDTH 1 /* OUT5R_ANC_SRC */
  1995. #define WM5100_OUT5R_VOL_LIM_MASK 0x00FF /* OUT5R_VOL_LIM - [7:0] */
  1996. #define WM5100_OUT5R_VOL_LIM_SHIFT 0 /* OUT5R_VOL_LIM - [7:0] */
  1997. #define WM5100_OUT5R_VOL_LIM_WIDTH 8 /* OUT5R_VOL_LIM - [7:0] */
  1998. /*
  1999. * R1056 (0x420) - DAC Volume Limit 6L
  2000. */
  2001. #define WM5100_OUT6_OSR 0x2000 /* OUT6_OSR */
  2002. #define WM5100_OUT6_OSR_MASK 0x2000 /* OUT6_OSR */
  2003. #define WM5100_OUT6_OSR_SHIFT 13 /* OUT6_OSR */
  2004. #define WM5100_OUT6_OSR_WIDTH 1 /* OUT6_OSR */
  2005. #define WM5100_OUT6L_ANC_SRC 0x0800 /* OUT6L_ANC_SRC */
  2006. #define WM5100_OUT6L_ANC_SRC_MASK 0x0800 /* OUT6L_ANC_SRC */
  2007. #define WM5100_OUT6L_ANC_SRC_SHIFT 11 /* OUT6L_ANC_SRC */
  2008. #define WM5100_OUT6L_ANC_SRC_WIDTH 1 /* OUT6L_ANC_SRC */
  2009. #define WM5100_OUT6L_VOL_LIM_MASK 0x00FF /* OUT6L_VOL_LIM - [7:0] */
  2010. #define WM5100_OUT6L_VOL_LIM_SHIFT 0 /* OUT6L_VOL_LIM - [7:0] */
  2011. #define WM5100_OUT6L_VOL_LIM_WIDTH 8 /* OUT6L_VOL_LIM - [7:0] */
  2012. /*
  2013. * R1057 (0x421) - DAC Volume Limit 6R
  2014. */
  2015. #define WM5100_OUT6R_ANC_SRC 0x0800 /* OUT6R_ANC_SRC */
  2016. #define WM5100_OUT6R_ANC_SRC_MASK 0x0800 /* OUT6R_ANC_SRC */
  2017. #define WM5100_OUT6R_ANC_SRC_SHIFT 11 /* OUT6R_ANC_SRC */
  2018. #define WM5100_OUT6R_ANC_SRC_WIDTH 1 /* OUT6R_ANC_SRC */
  2019. #define WM5100_OUT6R_VOL_LIM_MASK 0x00FF /* OUT6R_VOL_LIM - [7:0] */
  2020. #define WM5100_OUT6R_VOL_LIM_SHIFT 0 /* OUT6R_VOL_LIM - [7:0] */
  2021. #define WM5100_OUT6R_VOL_LIM_WIDTH 8 /* OUT6R_VOL_LIM - [7:0] */
  2022. /*
  2023. * R1088 (0x440) - DAC AEC Control 1
  2024. */
  2025. #define WM5100_AEC_LOOPBACK_SRC_MASK 0x003C /* AEC_LOOPBACK_SRC - [5:2] */
  2026. #define WM5100_AEC_LOOPBACK_SRC_SHIFT 2 /* AEC_LOOPBACK_SRC - [5:2] */
  2027. #define WM5100_AEC_LOOPBACK_SRC_WIDTH 4 /* AEC_LOOPBACK_SRC - [5:2] */
  2028. #define WM5100_AEC_ENA_STS 0x0002 /* AEC_ENA_STS */
  2029. #define WM5100_AEC_ENA_STS_MASK 0x0002 /* AEC_ENA_STS */
  2030. #define WM5100_AEC_ENA_STS_SHIFT 1 /* AEC_ENA_STS */
  2031. #define WM5100_AEC_ENA_STS_WIDTH 1 /* AEC_ENA_STS */
  2032. #define WM5100_AEC_LOOPBACK_ENA 0x0001 /* AEC_LOOPBACK_ENA */
  2033. #define WM5100_AEC_LOOPBACK_ENA_MASK 0x0001 /* AEC_LOOPBACK_ENA */
  2034. #define WM5100_AEC_LOOPBACK_ENA_SHIFT 0 /* AEC_LOOPBACK_ENA */
  2035. #define WM5100_AEC_LOOPBACK_ENA_WIDTH 1 /* AEC_LOOPBACK_ENA */
  2036. /*
  2037. * R1089 (0x441) - Output Volume Ramp
  2038. */
  2039. #define WM5100_OUT_VD_RAMP_MASK 0x0070 /* OUT_VD_RAMP - [6:4] */
  2040. #define WM5100_OUT_VD_RAMP_SHIFT 4 /* OUT_VD_RAMP - [6:4] */
  2041. #define WM5100_OUT_VD_RAMP_WIDTH 3 /* OUT_VD_RAMP - [6:4] */
  2042. #define WM5100_OUT_VI_RAMP_MASK 0x0007 /* OUT_VI_RAMP - [2:0] */
  2043. #define WM5100_OUT_VI_RAMP_SHIFT 0 /* OUT_VI_RAMP - [2:0] */
  2044. #define WM5100_OUT_VI_RAMP_WIDTH 3 /* OUT_VI_RAMP - [2:0] */
  2045. /*
  2046. * R1152 (0x480) - DAC Digital Volume 1L
  2047. */
  2048. #define WM5100_OUT_VU 0x0200 /* OUT_VU */
  2049. #define WM5100_OUT_VU_MASK 0x0200 /* OUT_VU */
  2050. #define WM5100_OUT_VU_SHIFT 9 /* OUT_VU */
  2051. #define WM5100_OUT_VU_WIDTH 1 /* OUT_VU */
  2052. #define WM5100_OUT1L_MUTE 0x0100 /* OUT1L_MUTE */
  2053. #define WM5100_OUT1L_MUTE_MASK 0x0100 /* OUT1L_MUTE */
  2054. #define WM5100_OUT1L_MUTE_SHIFT 8 /* OUT1L_MUTE */
  2055. #define WM5100_OUT1L_MUTE_WIDTH 1 /* OUT1L_MUTE */
  2056. #define WM5100_OUT1L_VOL_MASK 0x00FF /* OUT1L_VOL - [7:0] */
  2057. #define WM5100_OUT1L_VOL_SHIFT 0 /* OUT1L_VOL - [7:0] */
  2058. #define WM5100_OUT1L_VOL_WIDTH 8 /* OUT1L_VOL - [7:0] */
  2059. /*
  2060. * R1153 (0x481) - DAC Digital Volume 1R
  2061. */
  2062. #define WM5100_OUT_VU 0x0200 /* OUT_VU */
  2063. #define WM5100_OUT_VU_MASK 0x0200 /* OUT_VU */
  2064. #define WM5100_OUT_VU_SHIFT 9 /* OUT_VU */
  2065. #define WM5100_OUT_VU_WIDTH 1 /* OUT_VU */
  2066. #define WM5100_OUT1R_MUTE 0x0100 /* OUT1R_MUTE */
  2067. #define WM5100_OUT1R_MUTE_MASK 0x0100 /* OUT1R_MUTE */
  2068. #define WM5100_OUT1R_MUTE_SHIFT 8 /* OUT1R_MUTE */
  2069. #define WM5100_OUT1R_MUTE_WIDTH 1 /* OUT1R_MUTE */
  2070. #define WM5100_OUT1R_VOL_MASK 0x00FF /* OUT1R_VOL - [7:0] */
  2071. #define WM5100_OUT1R_VOL_SHIFT 0 /* OUT1R_VOL - [7:0] */
  2072. #define WM5100_OUT1R_VOL_WIDTH 8 /* OUT1R_VOL - [7:0] */
  2073. /*
  2074. * R1154 (0x482) - DAC Digital Volume 2L
  2075. */
  2076. #define WM5100_OUT_VU 0x0200 /* OUT_VU */
  2077. #define WM5100_OUT_VU_MASK 0x0200 /* OUT_VU */
  2078. #define WM5100_OUT_VU_SHIFT 9 /* OUT_VU */
  2079. #define WM5100_OUT_VU_WIDTH 1 /* OUT_VU */
  2080. #define WM5100_OUT2L_MUTE 0x0100 /* OUT2L_MUTE */
  2081. #define WM5100_OUT2L_MUTE_MASK 0x0100 /* OUT2L_MUTE */
  2082. #define WM5100_OUT2L_MUTE_SHIFT 8 /* OUT2L_MUTE */
  2083. #define WM5100_OUT2L_MUTE_WIDTH 1 /* OUT2L_MUTE */
  2084. #define WM5100_OUT2L_VOL_MASK 0x00FF /* OUT2L_VOL - [7:0] */
  2085. #define WM5100_OUT2L_VOL_SHIFT 0 /* OUT2L_VOL - [7:0] */
  2086. #define WM5100_OUT2L_VOL_WIDTH 8 /* OUT2L_VOL - [7:0] */
  2087. /*
  2088. * R1155 (0x483) - DAC Digital Volume 2R
  2089. */
  2090. #define WM5100_OUT_VU 0x0200 /* OUT_VU */
  2091. #define WM5100_OUT_VU_MASK 0x0200 /* OUT_VU */
  2092. #define WM5100_OUT_VU_SHIFT 9 /* OUT_VU */
  2093. #define WM5100_OUT_VU_WIDTH 1 /* OUT_VU */
  2094. #define WM5100_OUT2R_MUTE 0x0100 /* OUT2R_MUTE */
  2095. #define WM5100_OUT2R_MUTE_MASK 0x0100 /* OUT2R_MUTE */
  2096. #define WM5100_OUT2R_MUTE_SHIFT 8 /* OUT2R_MUTE */
  2097. #define WM5100_OUT2R_MUTE_WIDTH 1 /* OUT2R_MUTE */
  2098. #define WM5100_OUT2R_VOL_MASK 0x00FF /* OUT2R_VOL - [7:0] */
  2099. #define WM5100_OUT2R_VOL_SHIFT 0 /* OUT2R_VOL - [7:0] */
  2100. #define WM5100_OUT2R_VOL_WIDTH 8 /* OUT2R_VOL - [7:0] */
  2101. /*
  2102. * R1156 (0x484) - DAC Digital Volume 3L
  2103. */
  2104. #define WM5100_OUT_VU 0x0200 /* OUT_VU */
  2105. #define WM5100_OUT_VU_MASK 0x0200 /* OUT_VU */
  2106. #define WM5100_OUT_VU_SHIFT 9 /* OUT_VU */
  2107. #define WM5100_OUT_VU_WIDTH 1 /* OUT_VU */
  2108. #define WM5100_OUT3L_MUTE 0x0100 /* OUT3L_MUTE */
  2109. #define WM5100_OUT3L_MUTE_MASK 0x0100 /* OUT3L_MUTE */
  2110. #define WM5100_OUT3L_MUTE_SHIFT 8 /* OUT3L_MUTE */
  2111. #define WM5100_OUT3L_MUTE_WIDTH 1 /* OUT3L_MUTE */
  2112. #define WM5100_OUT3L_VOL_MASK 0x00FF /* OUT3L_VOL - [7:0] */
  2113. #define WM5100_OUT3L_VOL_SHIFT 0 /* OUT3L_VOL - [7:0] */
  2114. #define WM5100_OUT3L_VOL_WIDTH 8 /* OUT3L_VOL - [7:0] */
  2115. /*
  2116. * R1157 (0x485) - DAC Digital Volume 3R
  2117. */
  2118. #define WM5100_OUT_VU 0x0200 /* OUT_VU */
  2119. #define WM5100_OUT_VU_MASK 0x0200 /* OUT_VU */
  2120. #define WM5100_OUT_VU_SHIFT 9 /* OUT_VU */
  2121. #define WM5100_OUT_VU_WIDTH 1 /* OUT_VU */
  2122. #define WM5100_OUT3R_MUTE 0x0100 /* OUT3R_MUTE */
  2123. #define WM5100_OUT3R_MUTE_MASK 0x0100 /* OUT3R_MUTE */
  2124. #define WM5100_OUT3R_MUTE_SHIFT 8 /* OUT3R_MUTE */
  2125. #define WM5100_OUT3R_MUTE_WIDTH 1 /* OUT3R_MUTE */
  2126. #define WM5100_OUT3R_VOL_MASK 0x00FF /* OUT3R_VOL - [7:0] */
  2127. #define WM5100_OUT3R_VOL_SHIFT 0 /* OUT3R_VOL - [7:0] */
  2128. #define WM5100_OUT3R_VOL_WIDTH 8 /* OUT3R_VOL - [7:0] */
  2129. /*
  2130. * R1158 (0x486) - DAC Digital Volume 4L
  2131. */
  2132. #define WM5100_OUT_VU 0x0200 /* OUT_VU */
  2133. #define WM5100_OUT_VU_MASK 0x0200 /* OUT_VU */
  2134. #define WM5100_OUT_VU_SHIFT 9 /* OUT_VU */
  2135. #define WM5100_OUT_VU_WIDTH 1 /* OUT_VU */
  2136. #define WM5100_OUT4L_MUTE 0x0100 /* OUT4L_MUTE */
  2137. #define WM5100_OUT4L_MUTE_MASK 0x0100 /* OUT4L_MUTE */
  2138. #define WM5100_OUT4L_MUTE_SHIFT 8 /* OUT4L_MUTE */
  2139. #define WM5100_OUT4L_MUTE_WIDTH 1 /* OUT4L_MUTE */
  2140. #define WM5100_OUT4L_VOL_MASK 0x00FF /* OUT4L_VOL - [7:0] */
  2141. #define WM5100_OUT4L_VOL_SHIFT 0 /* OUT4L_VOL - [7:0] */
  2142. #define WM5100_OUT4L_VOL_WIDTH 8 /* OUT4L_VOL - [7:0] */
  2143. /*
  2144. * R1159 (0x487) - DAC Digital Volume 4R
  2145. */
  2146. #define WM5100_OUT_VU 0x0200 /* OUT_VU */
  2147. #define WM5100_OUT_VU_MASK 0x0200 /* OUT_VU */
  2148. #define WM5100_OUT_VU_SHIFT 9 /* OUT_VU */
  2149. #define WM5100_OUT_VU_WIDTH 1 /* OUT_VU */
  2150. #define WM5100_OUT4R_MUTE 0x0100 /* OUT4R_MUTE */
  2151. #define WM5100_OUT4R_MUTE_MASK 0x0100 /* OUT4R_MUTE */
  2152. #define WM5100_OUT4R_MUTE_SHIFT 8 /* OUT4R_MUTE */
  2153. #define WM5100_OUT4R_MUTE_WIDTH 1 /* OUT4R_MUTE */
  2154. #define WM5100_OUT4R_VOL_MASK 0x00FF /* OUT4R_VOL - [7:0] */
  2155. #define WM5100_OUT4R_VOL_SHIFT 0 /* OUT4R_VOL - [7:0] */
  2156. #define WM5100_OUT4R_VOL_WIDTH 8 /* OUT4R_VOL - [7:0] */
  2157. /*
  2158. * R1160 (0x488) - DAC Digital Volume 5L
  2159. */
  2160. #define WM5100_OUT_VU 0x0200 /* OUT_VU */
  2161. #define WM5100_OUT_VU_MASK 0x0200 /* OUT_VU */
  2162. #define WM5100_OUT_VU_SHIFT 9 /* OUT_VU */
  2163. #define WM5100_OUT_VU_WIDTH 1 /* OUT_VU */
  2164. #define WM5100_OUT5L_MUTE 0x0100 /* OUT5L_MUTE */
  2165. #define WM5100_OUT5L_MUTE_MASK 0x0100 /* OUT5L_MUTE */
  2166. #define WM5100_OUT5L_MUTE_SHIFT 8 /* OUT5L_MUTE */
  2167. #define WM5100_OUT5L_MUTE_WIDTH 1 /* OUT5L_MUTE */
  2168. #define WM5100_OUT5L_VOL_MASK 0x00FF /* OUT5L_VOL - [7:0] */
  2169. #define WM5100_OUT5L_VOL_SHIFT 0 /* OUT5L_VOL - [7:0] */
  2170. #define WM5100_OUT5L_VOL_WIDTH 8 /* OUT5L_VOL - [7:0] */
  2171. /*
  2172. * R1161 (0x489) - DAC Digital Volume 5R
  2173. */
  2174. #define WM5100_OUT_VU 0x0200 /* OUT_VU */
  2175. #define WM5100_OUT_VU_MASK 0x0200 /* OUT_VU */
  2176. #define WM5100_OUT_VU_SHIFT 9 /* OUT_VU */
  2177. #define WM5100_OUT_VU_WIDTH 1 /* OUT_VU */
  2178. #define WM5100_OUT5R_MUTE 0x0100 /* OUT5R_MUTE */
  2179. #define WM5100_OUT5R_MUTE_MASK 0x0100 /* OUT5R_MUTE */
  2180. #define WM5100_OUT5R_MUTE_SHIFT 8 /* OUT5R_MUTE */
  2181. #define WM5100_OUT5R_MUTE_WIDTH 1 /* OUT5R_MUTE */
  2182. #define WM5100_OUT5R_VOL_MASK 0x00FF /* OUT5R_VOL - [7:0] */
  2183. #define WM5100_OUT5R_VOL_SHIFT 0 /* OUT5R_VOL - [7:0] */
  2184. #define WM5100_OUT5R_VOL_WIDTH 8 /* OUT5R_VOL - [7:0] */
  2185. /*
  2186. * R1162 (0x48A) - DAC Digital Volume 6L
  2187. */
  2188. #define WM5100_OUT_VU 0x0200 /* OUT_VU */
  2189. #define WM5100_OUT_VU_MASK 0x0200 /* OUT_VU */
  2190. #define WM5100_OUT_VU_SHIFT 9 /* OUT_VU */
  2191. #define WM5100_OUT_VU_WIDTH 1 /* OUT_VU */
  2192. #define WM5100_OUT6L_MUTE 0x0100 /* OUT6L_MUTE */
  2193. #define WM5100_OUT6L_MUTE_MASK 0x0100 /* OUT6L_MUTE */
  2194. #define WM5100_OUT6L_MUTE_SHIFT 8 /* OUT6L_MUTE */
  2195. #define WM5100_OUT6L_MUTE_WIDTH 1 /* OUT6L_MUTE */
  2196. #define WM5100_OUT6L_VOL_MASK 0x00FF /* OUT6L_VOL - [7:0] */
  2197. #define WM5100_OUT6L_VOL_SHIFT 0 /* OUT6L_VOL - [7:0] */
  2198. #define WM5100_OUT6L_VOL_WIDTH 8 /* OUT6L_VOL - [7:0] */
  2199. /*
  2200. * R1163 (0x48B) - DAC Digital Volume 6R
  2201. */
  2202. #define WM5100_OUT_VU 0x0200 /* OUT_VU */
  2203. #define WM5100_OUT_VU_MASK 0x0200 /* OUT_VU */
  2204. #define WM5100_OUT_VU_SHIFT 9 /* OUT_VU */
  2205. #define WM5100_OUT_VU_WIDTH 1 /* OUT_VU */
  2206. #define WM5100_OUT6R_MUTE 0x0100 /* OUT6R_MUTE */
  2207. #define WM5100_OUT6R_MUTE_MASK 0x0100 /* OUT6R_MUTE */
  2208. #define WM5100_OUT6R_MUTE_SHIFT 8 /* OUT6R_MUTE */
  2209. #define WM5100_OUT6R_MUTE_WIDTH 1 /* OUT6R_MUTE */
  2210. #define WM5100_OUT6R_VOL_MASK 0x00FF /* OUT6R_VOL - [7:0] */
  2211. #define WM5100_OUT6R_VOL_SHIFT 0 /* OUT6R_VOL - [7:0] */
  2212. #define WM5100_OUT6R_VOL_WIDTH 8 /* OUT6R_VOL - [7:0] */
  2213. /*
  2214. * R1216 (0x4C0) - PDM SPK1 CTRL 1
  2215. */
  2216. #define WM5100_SPK1R_MUTE 0x2000 /* SPK1R_MUTE */
  2217. #define WM5100_SPK1R_MUTE_MASK 0x2000 /* SPK1R_MUTE */
  2218. #define WM5100_SPK1R_MUTE_SHIFT 13 /* SPK1R_MUTE */
  2219. #define WM5100_SPK1R_MUTE_WIDTH 1 /* SPK1R_MUTE */
  2220. #define WM5100_SPK1L_MUTE 0x1000 /* SPK1L_MUTE */
  2221. #define WM5100_SPK1L_MUTE_MASK 0x1000 /* SPK1L_MUTE */
  2222. #define WM5100_SPK1L_MUTE_SHIFT 12 /* SPK1L_MUTE */
  2223. #define WM5100_SPK1L_MUTE_WIDTH 1 /* SPK1L_MUTE */
  2224. #define WM5100_SPK1_MUTE_ENDIAN 0x0100 /* SPK1_MUTE_ENDIAN */
  2225. #define WM5100_SPK1_MUTE_ENDIAN_MASK 0x0100 /* SPK1_MUTE_ENDIAN */
  2226. #define WM5100_SPK1_MUTE_ENDIAN_SHIFT 8 /* SPK1_MUTE_ENDIAN */
  2227. #define WM5100_SPK1_MUTE_ENDIAN_WIDTH 1 /* SPK1_MUTE_ENDIAN */
  2228. #define WM5100_SPK1_MUTE_SEQ1_MASK 0x00FF /* SPK1_MUTE_SEQ1 - [7:0] */
  2229. #define WM5100_SPK1_MUTE_SEQ1_SHIFT 0 /* SPK1_MUTE_SEQ1 - [7:0] */
  2230. #define WM5100_SPK1_MUTE_SEQ1_WIDTH 8 /* SPK1_MUTE_SEQ1 - [7:0] */
  2231. /*
  2232. * R1217 (0x4C1) - PDM SPK1 CTRL 2
  2233. */
  2234. #define WM5100_SPK1_FMT 0x0001 /* SPK1_FMT */
  2235. #define WM5100_SPK1_FMT_MASK 0x0001 /* SPK1_FMT */
  2236. #define WM5100_SPK1_FMT_SHIFT 0 /* SPK1_FMT */
  2237. #define WM5100_SPK1_FMT_WIDTH 1 /* SPK1_FMT */
  2238. /*
  2239. * R1218 (0x4C2) - PDM SPK2 CTRL 1
  2240. */
  2241. #define WM5100_SPK2R_MUTE 0x2000 /* SPK2R_MUTE */
  2242. #define WM5100_SPK2R_MUTE_MASK 0x2000 /* SPK2R_MUTE */
  2243. #define WM5100_SPK2R_MUTE_SHIFT 13 /* SPK2R_MUTE */
  2244. #define WM5100_SPK2R_MUTE_WIDTH 1 /* SPK2R_MUTE */
  2245. #define WM5100_SPK2L_MUTE 0x1000 /* SPK2L_MUTE */
  2246. #define WM5100_SPK2L_MUTE_MASK 0x1000 /* SPK2L_MUTE */
  2247. #define WM5100_SPK2L_MUTE_SHIFT 12 /* SPK2L_MUTE */
  2248. #define WM5100_SPK2L_MUTE_WIDTH 1 /* SPK2L_MUTE */
  2249. #define WM5100_SPK2_MUTE_ENDIAN 0x0100 /* SPK2_MUTE_ENDIAN */
  2250. #define WM5100_SPK2_MUTE_ENDIAN_MASK 0x0100 /* SPK2_MUTE_ENDIAN */
  2251. #define WM5100_SPK2_MUTE_ENDIAN_SHIFT 8 /* SPK2_MUTE_ENDIAN */
  2252. #define WM5100_SPK2_MUTE_ENDIAN_WIDTH 1 /* SPK2_MUTE_ENDIAN */
  2253. #define WM5100_SPK2_MUTE_SEQ1_MASK 0x00FF /* SPK2_MUTE_SEQ1 - [7:0] */
  2254. #define WM5100_SPK2_MUTE_SEQ1_SHIFT 0 /* SPK2_MUTE_SEQ1 - [7:0] */
  2255. #define WM5100_SPK2_MUTE_SEQ1_WIDTH 8 /* SPK2_MUTE_SEQ1 - [7:0] */
  2256. /*
  2257. * R1219 (0x4C3) - PDM SPK2 CTRL 2
  2258. */
  2259. #define WM5100_SPK2_FMT 0x0001 /* SPK2_FMT */
  2260. #define WM5100_SPK2_FMT_MASK 0x0001 /* SPK2_FMT */
  2261. #define WM5100_SPK2_FMT_SHIFT 0 /* SPK2_FMT */
  2262. #define WM5100_SPK2_FMT_WIDTH 1 /* SPK2_FMT */
  2263. /*
  2264. * R1280 (0x500) - Audio IF 1_1
  2265. */
  2266. #define WM5100_AIF1_BCLK_INV 0x0080 /* AIF1_BCLK_INV */
  2267. #define WM5100_AIF1_BCLK_INV_MASK 0x0080 /* AIF1_BCLK_INV */
  2268. #define WM5100_AIF1_BCLK_INV_SHIFT 7 /* AIF1_BCLK_INV */
  2269. #define WM5100_AIF1_BCLK_INV_WIDTH 1 /* AIF1_BCLK_INV */
  2270. #define WM5100_AIF1_BCLK_FRC 0x0040 /* AIF1_BCLK_FRC */
  2271. #define WM5100_AIF1_BCLK_FRC_MASK 0x0040 /* AIF1_BCLK_FRC */
  2272. #define WM5100_AIF1_BCLK_FRC_SHIFT 6 /* AIF1_BCLK_FRC */
  2273. #define WM5100_AIF1_BCLK_FRC_WIDTH 1 /* AIF1_BCLK_FRC */
  2274. #define WM5100_AIF1_BCLK_MSTR 0x0020 /* AIF1_BCLK_MSTR */
  2275. #define WM5100_AIF1_BCLK_MSTR_MASK 0x0020 /* AIF1_BCLK_MSTR */
  2276. #define WM5100_AIF1_BCLK_MSTR_SHIFT 5 /* AIF1_BCLK_MSTR */
  2277. #define WM5100_AIF1_BCLK_MSTR_WIDTH 1 /* AIF1_BCLK_MSTR */
  2278. #define WM5100_AIF1_BCLK_FREQ_MASK 0x001F /* AIF1_BCLK_FREQ - [4:0] */
  2279. #define WM5100_AIF1_BCLK_FREQ_SHIFT 0 /* AIF1_BCLK_FREQ - [4:0] */
  2280. #define WM5100_AIF1_BCLK_FREQ_WIDTH 5 /* AIF1_BCLK_FREQ - [4:0] */
  2281. /*
  2282. * R1281 (0x501) - Audio IF 1_2
  2283. */
  2284. #define WM5100_AIF1TX_DAT_TRI 0x0020 /* AIF1TX_DAT_TRI */
  2285. #define WM5100_AIF1TX_DAT_TRI_MASK 0x0020 /* AIF1TX_DAT_TRI */
  2286. #define WM5100_AIF1TX_DAT_TRI_SHIFT 5 /* AIF1TX_DAT_TRI */
  2287. #define WM5100_AIF1TX_DAT_TRI_WIDTH 1 /* AIF1TX_DAT_TRI */
  2288. #define WM5100_AIF1TX_LRCLK_SRC 0x0008 /* AIF1TX_LRCLK_SRC */
  2289. #define WM5100_AIF1TX_LRCLK_SRC_MASK 0x0008 /* AIF1TX_LRCLK_SRC */
  2290. #define WM5100_AIF1TX_LRCLK_SRC_SHIFT 3 /* AIF1TX_LRCLK_SRC */
  2291. #define WM5100_AIF1TX_LRCLK_SRC_WIDTH 1 /* AIF1TX_LRCLK_SRC */
  2292. #define WM5100_AIF1TX_LRCLK_INV 0x0004 /* AIF1TX_LRCLK_INV */
  2293. #define WM5100_AIF1TX_LRCLK_INV_MASK 0x0004 /* AIF1TX_LRCLK_INV */
  2294. #define WM5100_AIF1TX_LRCLK_INV_SHIFT 2 /* AIF1TX_LRCLK_INV */
  2295. #define WM5100_AIF1TX_LRCLK_INV_WIDTH 1 /* AIF1TX_LRCLK_INV */
  2296. #define WM5100_AIF1TX_LRCLK_FRC 0x0002 /* AIF1TX_LRCLK_FRC */
  2297. #define WM5100_AIF1TX_LRCLK_FRC_MASK 0x0002 /* AIF1TX_LRCLK_FRC */
  2298. #define WM5100_AIF1TX_LRCLK_FRC_SHIFT 1 /* AIF1TX_LRCLK_FRC */
  2299. #define WM5100_AIF1TX_LRCLK_FRC_WIDTH 1 /* AIF1TX_LRCLK_FRC */
  2300. #define WM5100_AIF1TX_LRCLK_MSTR 0x0001 /* AIF1TX_LRCLK_MSTR */
  2301. #define WM5100_AIF1TX_LRCLK_MSTR_MASK 0x0001 /* AIF1TX_LRCLK_MSTR */
  2302. #define WM5100_AIF1TX_LRCLK_MSTR_SHIFT 0 /* AIF1TX_LRCLK_MSTR */
  2303. #define WM5100_AIF1TX_LRCLK_MSTR_WIDTH 1 /* AIF1TX_LRCLK_MSTR */
  2304. /*
  2305. * R1282 (0x502) - Audio IF 1_3
  2306. */
  2307. #define WM5100_AIF1RX_LRCLK_INV 0x0004 /* AIF1RX_LRCLK_INV */
  2308. #define WM5100_AIF1RX_LRCLK_INV_MASK 0x0004 /* AIF1RX_LRCLK_INV */
  2309. #define WM5100_AIF1RX_LRCLK_INV_SHIFT 2 /* AIF1RX_LRCLK_INV */
  2310. #define WM5100_AIF1RX_LRCLK_INV_WIDTH 1 /* AIF1RX_LRCLK_INV */
  2311. #define WM5100_AIF1RX_LRCLK_FRC 0x0002 /* AIF1RX_LRCLK_FRC */
  2312. #define WM5100_AIF1RX_LRCLK_FRC_MASK 0x0002 /* AIF1RX_LRCLK_FRC */
  2313. #define WM5100_AIF1RX_LRCLK_FRC_SHIFT 1 /* AIF1RX_LRCLK_FRC */
  2314. #define WM5100_AIF1RX_LRCLK_FRC_WIDTH 1 /* AIF1RX_LRCLK_FRC */
  2315. #define WM5100_AIF1RX_LRCLK_MSTR 0x0001 /* AIF1RX_LRCLK_MSTR */
  2316. #define WM5100_AIF1RX_LRCLK_MSTR_MASK 0x0001 /* AIF1RX_LRCLK_MSTR */
  2317. #define WM5100_AIF1RX_LRCLK_MSTR_SHIFT 0 /* AIF1RX_LRCLK_MSTR */
  2318. #define WM5100_AIF1RX_LRCLK_MSTR_WIDTH 1 /* AIF1RX_LRCLK_MSTR */
  2319. /*
  2320. * R1283 (0x503) - Audio IF 1_4
  2321. */
  2322. #define WM5100_AIF1_TRI 0x0040 /* AIF1_TRI */
  2323. #define WM5100_AIF1_TRI_MASK 0x0040 /* AIF1_TRI */
  2324. #define WM5100_AIF1_TRI_SHIFT 6 /* AIF1_TRI */
  2325. #define WM5100_AIF1_TRI_WIDTH 1 /* AIF1_TRI */
  2326. #define WM5100_AIF1_RATE_MASK 0x0003 /* AIF1_RATE - [1:0] */
  2327. #define WM5100_AIF1_RATE_SHIFT 0 /* AIF1_RATE - [1:0] */
  2328. #define WM5100_AIF1_RATE_WIDTH 2 /* AIF1_RATE - [1:0] */
  2329. /*
  2330. * R1284 (0x504) - Audio IF 1_5
  2331. */
  2332. #define WM5100_AIF1_FMT_MASK 0x0007 /* AIF1_FMT - [2:0] */
  2333. #define WM5100_AIF1_FMT_SHIFT 0 /* AIF1_FMT - [2:0] */
  2334. #define WM5100_AIF1_FMT_WIDTH 3 /* AIF1_FMT - [2:0] */
  2335. /*
  2336. * R1285 (0x505) - Audio IF 1_6
  2337. */
  2338. #define WM5100_AIF1TX_BCPF_MASK 0x1FFF /* AIF1TX_BCPF - [12:0] */
  2339. #define WM5100_AIF1TX_BCPF_SHIFT 0 /* AIF1TX_BCPF - [12:0] */
  2340. #define WM5100_AIF1TX_BCPF_WIDTH 13 /* AIF1TX_BCPF - [12:0] */
  2341. /*
  2342. * R1286 (0x506) - Audio IF 1_7
  2343. */
  2344. #define WM5100_AIF1RX_BCPF_MASK 0x1FFF /* AIF1RX_BCPF - [12:0] */
  2345. #define WM5100_AIF1RX_BCPF_SHIFT 0 /* AIF1RX_BCPF - [12:0] */
  2346. #define WM5100_AIF1RX_BCPF_WIDTH 13 /* AIF1RX_BCPF - [12:0] */
  2347. /*
  2348. * R1287 (0x507) - Audio IF 1_8
  2349. */
  2350. #define WM5100_AIF1TX_WL_MASK 0x3F00 /* AIF1TX_WL - [13:8] */
  2351. #define WM5100_AIF1TX_WL_SHIFT 8 /* AIF1TX_WL - [13:8] */
  2352. #define WM5100_AIF1TX_WL_WIDTH 6 /* AIF1TX_WL - [13:8] */
  2353. #define WM5100_AIF1TX_SLOT_LEN_MASK 0x00FF /* AIF1TX_SLOT_LEN - [7:0] */
  2354. #define WM5100_AIF1TX_SLOT_LEN_SHIFT 0 /* AIF1TX_SLOT_LEN - [7:0] */
  2355. #define WM5100_AIF1TX_SLOT_LEN_WIDTH 8 /* AIF1TX_SLOT_LEN - [7:0] */
  2356. /*
  2357. * R1288 (0x508) - Audio IF 1_9
  2358. */
  2359. #define WM5100_AIF1RX_WL_MASK 0x3F00 /* AIF1RX_WL - [13:8] */
  2360. #define WM5100_AIF1RX_WL_SHIFT 8 /* AIF1RX_WL - [13:8] */
  2361. #define WM5100_AIF1RX_WL_WIDTH 6 /* AIF1RX_WL - [13:8] */
  2362. #define WM5100_AIF1RX_SLOT_LEN_MASK 0x00FF /* AIF1RX_SLOT_LEN - [7:0] */
  2363. #define WM5100_AIF1RX_SLOT_LEN_SHIFT 0 /* AIF1RX_SLOT_LEN - [7:0] */
  2364. #define WM5100_AIF1RX_SLOT_LEN_WIDTH 8 /* AIF1RX_SLOT_LEN - [7:0] */
  2365. /*
  2366. * R1289 (0x509) - Audio IF 1_10
  2367. */
  2368. #define WM5100_AIF1TX1_SLOT_MASK 0x003F /* AIF1TX1_SLOT - [5:0] */
  2369. #define WM5100_AIF1TX1_SLOT_SHIFT 0 /* AIF1TX1_SLOT - [5:0] */
  2370. #define WM5100_AIF1TX1_SLOT_WIDTH 6 /* AIF1TX1_SLOT - [5:0] */
  2371. /*
  2372. * R1290 (0x50A) - Audio IF 1_11
  2373. */
  2374. #define WM5100_AIF1TX2_SLOT_MASK 0x003F /* AIF1TX2_SLOT - [5:0] */
  2375. #define WM5100_AIF1TX2_SLOT_SHIFT 0 /* AIF1TX2_SLOT - [5:0] */
  2376. #define WM5100_AIF1TX2_SLOT_WIDTH 6 /* AIF1TX2_SLOT - [5:0] */
  2377. /*
  2378. * R1291 (0x50B) - Audio IF 1_12
  2379. */
  2380. #define WM5100_AIF1TX3_SLOT_MASK 0x003F /* AIF1TX3_SLOT - [5:0] */
  2381. #define WM5100_AIF1TX3_SLOT_SHIFT 0 /* AIF1TX3_SLOT - [5:0] */
  2382. #define WM5100_AIF1TX3_SLOT_WIDTH 6 /* AIF1TX3_SLOT - [5:0] */
  2383. /*
  2384. * R1292 (0x50C) - Audio IF 1_13
  2385. */
  2386. #define WM5100_AIF1TX4_SLOT_MASK 0x003F /* AIF1TX4_SLOT - [5:0] */
  2387. #define WM5100_AIF1TX4_SLOT_SHIFT 0 /* AIF1TX4_SLOT - [5:0] */
  2388. #define WM5100_AIF1TX4_SLOT_WIDTH 6 /* AIF1TX4_SLOT - [5:0] */
  2389. /*
  2390. * R1293 (0x50D) - Audio IF 1_14
  2391. */
  2392. #define WM5100_AIF1TX5_SLOT_MASK 0x003F /* AIF1TX5_SLOT - [5:0] */
  2393. #define WM5100_AIF1TX5_SLOT_SHIFT 0 /* AIF1TX5_SLOT - [5:0] */
  2394. #define WM5100_AIF1TX5_SLOT_WIDTH 6 /* AIF1TX5_SLOT - [5:0] */
  2395. /*
  2396. * R1294 (0x50E) - Audio IF 1_15
  2397. */
  2398. #define WM5100_AIF1TX6_SLOT_MASK 0x003F /* AIF1TX6_SLOT - [5:0] */
  2399. #define WM5100_AIF1TX6_SLOT_SHIFT 0 /* AIF1TX6_SLOT - [5:0] */
  2400. #define WM5100_AIF1TX6_SLOT_WIDTH 6 /* AIF1TX6_SLOT - [5:0] */
  2401. /*
  2402. * R1295 (0x50F) - Audio IF 1_16
  2403. */
  2404. #define WM5100_AIF1TX7_SLOT_MASK 0x003F /* AIF1TX7_SLOT - [5:0] */
  2405. #define WM5100_AIF1TX7_SLOT_SHIFT 0 /* AIF1TX7_SLOT - [5:0] */
  2406. #define WM5100_AIF1TX7_SLOT_WIDTH 6 /* AIF1TX7_SLOT - [5:0] */
  2407. /*
  2408. * R1296 (0x510) - Audio IF 1_17
  2409. */
  2410. #define WM5100_AIF1TX8_SLOT_MASK 0x003F /* AIF1TX8_SLOT - [5:0] */
  2411. #define WM5100_AIF1TX8_SLOT_SHIFT 0 /* AIF1TX8_SLOT - [5:0] */
  2412. #define WM5100_AIF1TX8_SLOT_WIDTH 6 /* AIF1TX8_SLOT - [5:0] */
  2413. /*
  2414. * R1297 (0x511) - Audio IF 1_18
  2415. */
  2416. #define WM5100_AIF1RX1_SLOT_MASK 0x003F /* AIF1RX1_SLOT - [5:0] */
  2417. #define WM5100_AIF1RX1_SLOT_SHIFT 0 /* AIF1RX1_SLOT - [5:0] */
  2418. #define WM5100_AIF1RX1_SLOT_WIDTH 6 /* AIF1RX1_SLOT - [5:0] */
  2419. /*
  2420. * R1298 (0x512) - Audio IF 1_19
  2421. */
  2422. #define WM5100_AIF1RX2_SLOT_MASK 0x003F /* AIF1RX2_SLOT - [5:0] */
  2423. #define WM5100_AIF1RX2_SLOT_SHIFT 0 /* AIF1RX2_SLOT - [5:0] */
  2424. #define WM5100_AIF1RX2_SLOT_WIDTH 6 /* AIF1RX2_SLOT - [5:0] */
  2425. /*
  2426. * R1299 (0x513) - Audio IF 1_20
  2427. */
  2428. #define WM5100_AIF1RX3_SLOT_MASK 0x003F /* AIF1RX3_SLOT - [5:0] */
  2429. #define WM5100_AIF1RX3_SLOT_SHIFT 0 /* AIF1RX3_SLOT - [5:0] */
  2430. #define WM5100_AIF1RX3_SLOT_WIDTH 6 /* AIF1RX3_SLOT - [5:0] */
  2431. /*
  2432. * R1300 (0x514) - Audio IF 1_21
  2433. */
  2434. #define WM5100_AIF1RX4_SLOT_MASK 0x003F /* AIF1RX4_SLOT - [5:0] */
  2435. #define WM5100_AIF1RX4_SLOT_SHIFT 0 /* AIF1RX4_SLOT - [5:0] */
  2436. #define WM5100_AIF1RX4_SLOT_WIDTH 6 /* AIF1RX4_SLOT - [5:0] */
  2437. /*
  2438. * R1301 (0x515) - Audio IF 1_22
  2439. */
  2440. #define WM5100_AIF1RX5_SLOT_MASK 0x003F /* AIF1RX5_SLOT - [5:0] */
  2441. #define WM5100_AIF1RX5_SLOT_SHIFT 0 /* AIF1RX5_SLOT - [5:0] */
  2442. #define WM5100_AIF1RX5_SLOT_WIDTH 6 /* AIF1RX5_SLOT - [5:0] */
  2443. /*
  2444. * R1302 (0x516) - Audio IF 1_23
  2445. */
  2446. #define WM5100_AIF1RX6_SLOT_MASK 0x003F /* AIF1RX6_SLOT - [5:0] */
  2447. #define WM5100_AIF1RX6_SLOT_SHIFT 0 /* AIF1RX6_SLOT - [5:0] */
  2448. #define WM5100_AIF1RX6_SLOT_WIDTH 6 /* AIF1RX6_SLOT - [5:0] */
  2449. /*
  2450. * R1303 (0x517) - Audio IF 1_24
  2451. */
  2452. #define WM5100_AIF1RX7_SLOT_MASK 0x003F /* AIF1RX7_SLOT - [5:0] */
  2453. #define WM5100_AIF1RX7_SLOT_SHIFT 0 /* AIF1RX7_SLOT - [5:0] */
  2454. #define WM5100_AIF1RX7_SLOT_WIDTH 6 /* AIF1RX7_SLOT - [5:0] */
  2455. /*
  2456. * R1304 (0x518) - Audio IF 1_25
  2457. */
  2458. #define WM5100_AIF1RX8_SLOT_MASK 0x003F /* AIF1RX8_SLOT - [5:0] */
  2459. #define WM5100_AIF1RX8_SLOT_SHIFT 0 /* AIF1RX8_SLOT - [5:0] */
  2460. #define WM5100_AIF1RX8_SLOT_WIDTH 6 /* AIF1RX8_SLOT - [5:0] */
  2461. /*
  2462. * R1305 (0x519) - Audio IF 1_26
  2463. */
  2464. #define WM5100_AIF1TX8_ENA 0x0080 /* AIF1TX8_ENA */
  2465. #define WM5100_AIF1TX8_ENA_MASK 0x0080 /* AIF1TX8_ENA */
  2466. #define WM5100_AIF1TX8_ENA_SHIFT 7 /* AIF1TX8_ENA */
  2467. #define WM5100_AIF1TX8_ENA_WIDTH 1 /* AIF1TX8_ENA */
  2468. #define WM5100_AIF1TX7_ENA 0x0040 /* AIF1TX7_ENA */
  2469. #define WM5100_AIF1TX7_ENA_MASK 0x0040 /* AIF1TX7_ENA */
  2470. #define WM5100_AIF1TX7_ENA_SHIFT 6 /* AIF1TX7_ENA */
  2471. #define WM5100_AIF1TX7_ENA_WIDTH 1 /* AIF1TX7_ENA */
  2472. #define WM5100_AIF1TX6_ENA 0x0020 /* AIF1TX6_ENA */
  2473. #define WM5100_AIF1TX6_ENA_MASK 0x0020 /* AIF1TX6_ENA */
  2474. #define WM5100_AIF1TX6_ENA_SHIFT 5 /* AIF1TX6_ENA */
  2475. #define WM5100_AIF1TX6_ENA_WIDTH 1 /* AIF1TX6_ENA */
  2476. #define WM5100_AIF1TX5_ENA 0x0010 /* AIF1TX5_ENA */
  2477. #define WM5100_AIF1TX5_ENA_MASK 0x0010 /* AIF1TX5_ENA */
  2478. #define WM5100_AIF1TX5_ENA_SHIFT 4 /* AIF1TX5_ENA */
  2479. #define WM5100_AIF1TX5_ENA_WIDTH 1 /* AIF1TX5_ENA */
  2480. #define WM5100_AIF1TX4_ENA 0x0008 /* AIF1TX4_ENA */
  2481. #define WM5100_AIF1TX4_ENA_MASK 0x0008 /* AIF1TX4_ENA */
  2482. #define WM5100_AIF1TX4_ENA_SHIFT 3 /* AIF1TX4_ENA */
  2483. #define WM5100_AIF1TX4_ENA_WIDTH 1 /* AIF1TX4_ENA */
  2484. #define WM5100_AIF1TX3_ENA 0x0004 /* AIF1TX3_ENA */
  2485. #define WM5100_AIF1TX3_ENA_MASK 0x0004 /* AIF1TX3_ENA */
  2486. #define WM5100_AIF1TX3_ENA_SHIFT 2 /* AIF1TX3_ENA */
  2487. #define WM5100_AIF1TX3_ENA_WIDTH 1 /* AIF1TX3_ENA */
  2488. #define WM5100_AIF1TX2_ENA 0x0002 /* AIF1TX2_ENA */
  2489. #define WM5100_AIF1TX2_ENA_MASK 0x0002 /* AIF1TX2_ENA */
  2490. #define WM5100_AIF1TX2_ENA_SHIFT 1 /* AIF1TX2_ENA */
  2491. #define WM5100_AIF1TX2_ENA_WIDTH 1 /* AIF1TX2_ENA */
  2492. #define WM5100_AIF1TX1_ENA 0x0001 /* AIF1TX1_ENA */
  2493. #define WM5100_AIF1TX1_ENA_MASK 0x0001 /* AIF1TX1_ENA */
  2494. #define WM5100_AIF1TX1_ENA_SHIFT 0 /* AIF1TX1_ENA */
  2495. #define WM5100_AIF1TX1_ENA_WIDTH 1 /* AIF1TX1_ENA */
  2496. /*
  2497. * R1306 (0x51A) - Audio IF 1_27
  2498. */
  2499. #define WM5100_AIF1RX8_ENA 0x0080 /* AIF1RX8_ENA */
  2500. #define WM5100_AIF1RX8_ENA_MASK 0x0080 /* AIF1RX8_ENA */
  2501. #define WM5100_AIF1RX8_ENA_SHIFT 7 /* AIF1RX8_ENA */
  2502. #define WM5100_AIF1RX8_ENA_WIDTH 1 /* AIF1RX8_ENA */
  2503. #define WM5100_AIF1RX7_ENA 0x0040 /* AIF1RX7_ENA */
  2504. #define WM5100_AIF1RX7_ENA_MASK 0x0040 /* AIF1RX7_ENA */
  2505. #define WM5100_AIF1RX7_ENA_SHIFT 6 /* AIF1RX7_ENA */
  2506. #define WM5100_AIF1RX7_ENA_WIDTH 1 /* AIF1RX7_ENA */
  2507. #define WM5100_AIF1RX6_ENA 0x0020 /* AIF1RX6_ENA */
  2508. #define WM5100_AIF1RX6_ENA_MASK 0x0020 /* AIF1RX6_ENA */
  2509. #define WM5100_AIF1RX6_ENA_SHIFT 5 /* AIF1RX6_ENA */
  2510. #define WM5100_AIF1RX6_ENA_WIDTH 1 /* AIF1RX6_ENA */
  2511. #define WM5100_AIF1RX5_ENA 0x0010 /* AIF1RX5_ENA */
  2512. #define WM5100_AIF1RX5_ENA_MASK 0x0010 /* AIF1RX5_ENA */
  2513. #define WM5100_AIF1RX5_ENA_SHIFT 4 /* AIF1RX5_ENA */
  2514. #define WM5100_AIF1RX5_ENA_WIDTH 1 /* AIF1RX5_ENA */
  2515. #define WM5100_AIF1RX4_ENA 0x0008 /* AIF1RX4_ENA */
  2516. #define WM5100_AIF1RX4_ENA_MASK 0x0008 /* AIF1RX4_ENA */
  2517. #define WM5100_AIF1RX4_ENA_SHIFT 3 /* AIF1RX4_ENA */
  2518. #define WM5100_AIF1RX4_ENA_WIDTH 1 /* AIF1RX4_ENA */
  2519. #define WM5100_AIF1RX3_ENA 0x0004 /* AIF1RX3_ENA */
  2520. #define WM5100_AIF1RX3_ENA_MASK 0x0004 /* AIF1RX3_ENA */
  2521. #define WM5100_AIF1RX3_ENA_SHIFT 2 /* AIF1RX3_ENA */
  2522. #define WM5100_AIF1RX3_ENA_WIDTH 1 /* AIF1RX3_ENA */
  2523. #define WM5100_AIF1RX2_ENA 0x0002 /* AIF1RX2_ENA */
  2524. #define WM5100_AIF1RX2_ENA_MASK 0x0002 /* AIF1RX2_ENA */
  2525. #define WM5100_AIF1RX2_ENA_SHIFT 1 /* AIF1RX2_ENA */
  2526. #define WM5100_AIF1RX2_ENA_WIDTH 1 /* AIF1RX2_ENA */
  2527. #define WM5100_AIF1RX1_ENA 0x0001 /* AIF1RX1_ENA */
  2528. #define WM5100_AIF1RX1_ENA_MASK 0x0001 /* AIF1RX1_ENA */
  2529. #define WM5100_AIF1RX1_ENA_SHIFT 0 /* AIF1RX1_ENA */
  2530. #define WM5100_AIF1RX1_ENA_WIDTH 1 /* AIF1RX1_ENA */
  2531. /*
  2532. * R1344 (0x540) - Audio IF 2_1
  2533. */
  2534. #define WM5100_AIF2_BCLK_INV 0x0080 /* AIF2_BCLK_INV */
  2535. #define WM5100_AIF2_BCLK_INV_MASK 0x0080 /* AIF2_BCLK_INV */
  2536. #define WM5100_AIF2_BCLK_INV_SHIFT 7 /* AIF2_BCLK_INV */
  2537. #define WM5100_AIF2_BCLK_INV_WIDTH 1 /* AIF2_BCLK_INV */
  2538. #define WM5100_AIF2_BCLK_FRC 0x0040 /* AIF2_BCLK_FRC */
  2539. #define WM5100_AIF2_BCLK_FRC_MASK 0x0040 /* AIF2_BCLK_FRC */
  2540. #define WM5100_AIF2_BCLK_FRC_SHIFT 6 /* AIF2_BCLK_FRC */
  2541. #define WM5100_AIF2_BCLK_FRC_WIDTH 1 /* AIF2_BCLK_FRC */
  2542. #define WM5100_AIF2_BCLK_MSTR 0x0020 /* AIF2_BCLK_MSTR */
  2543. #define WM5100_AIF2_BCLK_MSTR_MASK 0x0020 /* AIF2_BCLK_MSTR */
  2544. #define WM5100_AIF2_BCLK_MSTR_SHIFT 5 /* AIF2_BCLK_MSTR */
  2545. #define WM5100_AIF2_BCLK_MSTR_WIDTH 1 /* AIF2_BCLK_MSTR */
  2546. #define WM5100_AIF2_BCLK_FREQ_MASK 0x001F /* AIF2_BCLK_FREQ - [4:0] */
  2547. #define WM5100_AIF2_BCLK_FREQ_SHIFT 0 /* AIF2_BCLK_FREQ - [4:0] */
  2548. #define WM5100_AIF2_BCLK_FREQ_WIDTH 5 /* AIF2_BCLK_FREQ - [4:0] */
  2549. /*
  2550. * R1345 (0x541) - Audio IF 2_2
  2551. */
  2552. #define WM5100_AIF2TX_DAT_TRI 0x0020 /* AIF2TX_DAT_TRI */
  2553. #define WM5100_AIF2TX_DAT_TRI_MASK 0x0020 /* AIF2TX_DAT_TRI */
  2554. #define WM5100_AIF2TX_DAT_TRI_SHIFT 5 /* AIF2TX_DAT_TRI */
  2555. #define WM5100_AIF2TX_DAT_TRI_WIDTH 1 /* AIF2TX_DAT_TRI */
  2556. #define WM5100_AIF2TX_LRCLK_SRC 0x0008 /* AIF2TX_LRCLK_SRC */
  2557. #define WM5100_AIF2TX_LRCLK_SRC_MASK 0x0008 /* AIF2TX_LRCLK_SRC */
  2558. #define WM5100_AIF2TX_LRCLK_SRC_SHIFT 3 /* AIF2TX_LRCLK_SRC */
  2559. #define WM5100_AIF2TX_LRCLK_SRC_WIDTH 1 /* AIF2TX_LRCLK_SRC */
  2560. #define WM5100_AIF2TX_LRCLK_INV 0x0004 /* AIF2TX_LRCLK_INV */
  2561. #define WM5100_AIF2TX_LRCLK_INV_MASK 0x0004 /* AIF2TX_LRCLK_INV */
  2562. #define WM5100_AIF2TX_LRCLK_INV_SHIFT 2 /* AIF2TX_LRCLK_INV */
  2563. #define WM5100_AIF2TX_LRCLK_INV_WIDTH 1 /* AIF2TX_LRCLK_INV */
  2564. #define WM5100_AIF2TX_LRCLK_FRC 0x0002 /* AIF2TX_LRCLK_FRC */
  2565. #define WM5100_AIF2TX_LRCLK_FRC_MASK 0x0002 /* AIF2TX_LRCLK_FRC */
  2566. #define WM5100_AIF2TX_LRCLK_FRC_SHIFT 1 /* AIF2TX_LRCLK_FRC */
  2567. #define WM5100_AIF2TX_LRCLK_FRC_WIDTH 1 /* AIF2TX_LRCLK_FRC */
  2568. #define WM5100_AIF2TX_LRCLK_MSTR 0x0001 /* AIF2TX_LRCLK_MSTR */
  2569. #define WM5100_AIF2TX_LRCLK_MSTR_MASK 0x0001 /* AIF2TX_LRCLK_MSTR */
  2570. #define WM5100_AIF2TX_LRCLK_MSTR_SHIFT 0 /* AIF2TX_LRCLK_MSTR */
  2571. #define WM5100_AIF2TX_LRCLK_MSTR_WIDTH 1 /* AIF2TX_LRCLK_MSTR */
  2572. /*
  2573. * R1346 (0x542) - Audio IF 2_3
  2574. */
  2575. #define WM5100_AIF2RX_LRCLK_INV 0x0004 /* AIF2RX_LRCLK_INV */
  2576. #define WM5100_AIF2RX_LRCLK_INV_MASK 0x0004 /* AIF2RX_LRCLK_INV */
  2577. #define WM5100_AIF2RX_LRCLK_INV_SHIFT 2 /* AIF2RX_LRCLK_INV */
  2578. #define WM5100_AIF2RX_LRCLK_INV_WIDTH 1 /* AIF2RX_LRCLK_INV */
  2579. #define WM5100_AIF2RX_LRCLK_FRC 0x0002 /* AIF2RX_LRCLK_FRC */
  2580. #define WM5100_AIF2RX_LRCLK_FRC_MASK 0x0002 /* AIF2RX_LRCLK_FRC */
  2581. #define WM5100_AIF2RX_LRCLK_FRC_SHIFT 1 /* AIF2RX_LRCLK_FRC */
  2582. #define WM5100_AIF2RX_LRCLK_FRC_WIDTH 1 /* AIF2RX_LRCLK_FRC */
  2583. #define WM5100_AIF2RX_LRCLK_MSTR 0x0001 /* AIF2RX_LRCLK_MSTR */
  2584. #define WM5100_AIF2RX_LRCLK_MSTR_MASK 0x0001 /* AIF2RX_LRCLK_MSTR */
  2585. #define WM5100_AIF2RX_LRCLK_MSTR_SHIFT 0 /* AIF2RX_LRCLK_MSTR */
  2586. #define WM5100_AIF2RX_LRCLK_MSTR_WIDTH 1 /* AIF2RX_LRCLK_MSTR */
  2587. /*
  2588. * R1347 (0x543) - Audio IF 2_4
  2589. */
  2590. #define WM5100_AIF2_TRI 0x0040 /* AIF2_TRI */
  2591. #define WM5100_AIF2_TRI_MASK 0x0040 /* AIF2_TRI */
  2592. #define WM5100_AIF2_TRI_SHIFT 6 /* AIF2_TRI */
  2593. #define WM5100_AIF2_TRI_WIDTH 1 /* AIF2_TRI */
  2594. #define WM5100_AIF2_RATE_MASK 0x0003 /* AIF2_RATE - [1:0] */
  2595. #define WM5100_AIF2_RATE_SHIFT 0 /* AIF2_RATE - [1:0] */
  2596. #define WM5100_AIF2_RATE_WIDTH 2 /* AIF2_RATE - [1:0] */
  2597. /*
  2598. * R1348 (0x544) - Audio IF 2_5
  2599. */
  2600. #define WM5100_AIF2_FMT_MASK 0x0007 /* AIF2_FMT - [2:0] */
  2601. #define WM5100_AIF2_FMT_SHIFT 0 /* AIF2_FMT - [2:0] */
  2602. #define WM5100_AIF2_FMT_WIDTH 3 /* AIF2_FMT - [2:0] */
  2603. /*
  2604. * R1349 (0x545) - Audio IF 2_6
  2605. */
  2606. #define WM5100_AIF2TX_BCPF_MASK 0x1FFF /* AIF2TX_BCPF - [12:0] */
  2607. #define WM5100_AIF2TX_BCPF_SHIFT 0 /* AIF2TX_BCPF - [12:0] */
  2608. #define WM5100_AIF2TX_BCPF_WIDTH 13 /* AIF2TX_BCPF - [12:0] */
  2609. /*
  2610. * R1350 (0x546) - Audio IF 2_7
  2611. */
  2612. #define WM5100_AIF2RX_BCPF_MASK 0x1FFF /* AIF2RX_BCPF - [12:0] */
  2613. #define WM5100_AIF2RX_BCPF_SHIFT 0 /* AIF2RX_BCPF - [12:0] */
  2614. #define WM5100_AIF2RX_BCPF_WIDTH 13 /* AIF2RX_BCPF - [12:0] */
  2615. /*
  2616. * R1351 (0x547) - Audio IF 2_8
  2617. */
  2618. #define WM5100_AIF2TX_WL_MASK 0x3F00 /* AIF2TX_WL - [13:8] */
  2619. #define WM5100_AIF2TX_WL_SHIFT 8 /* AIF2TX_WL - [13:8] */
  2620. #define WM5100_AIF2TX_WL_WIDTH 6 /* AIF2TX_WL - [13:8] */
  2621. #define WM5100_AIF2TX_SLOT_LEN_MASK 0x00FF /* AIF2TX_SLOT_LEN - [7:0] */
  2622. #define WM5100_AIF2TX_SLOT_LEN_SHIFT 0 /* AIF2TX_SLOT_LEN - [7:0] */
  2623. #define WM5100_AIF2TX_SLOT_LEN_WIDTH 8 /* AIF2TX_SLOT_LEN - [7:0] */
  2624. /*
  2625. * R1352 (0x548) - Audio IF 2_9
  2626. */
  2627. #define WM5100_AIF2RX_WL_MASK 0x3F00 /* AIF2RX_WL - [13:8] */
  2628. #define WM5100_AIF2RX_WL_SHIFT 8 /* AIF2RX_WL - [13:8] */
  2629. #define WM5100_AIF2RX_WL_WIDTH 6 /* AIF2RX_WL - [13:8] */
  2630. #define WM5100_AIF2RX_SLOT_LEN_MASK 0x00FF /* AIF2RX_SLOT_LEN - [7:0] */
  2631. #define WM5100_AIF2RX_SLOT_LEN_SHIFT 0 /* AIF2RX_SLOT_LEN - [7:0] */
  2632. #define WM5100_AIF2RX_SLOT_LEN_WIDTH 8 /* AIF2RX_SLOT_LEN - [7:0] */
  2633. /*
  2634. * R1353 (0x549) - Audio IF 2_10
  2635. */
  2636. #define WM5100_AIF2TX1_SLOT_MASK 0x003F /* AIF2TX1_SLOT - [5:0] */
  2637. #define WM5100_AIF2TX1_SLOT_SHIFT 0 /* AIF2TX1_SLOT - [5:0] */
  2638. #define WM5100_AIF2TX1_SLOT_WIDTH 6 /* AIF2TX1_SLOT - [5:0] */
  2639. /*
  2640. * R1354 (0x54A) - Audio IF 2_11
  2641. */
  2642. #define WM5100_AIF2TX2_SLOT_MASK 0x003F /* AIF2TX2_SLOT - [5:0] */
  2643. #define WM5100_AIF2TX2_SLOT_SHIFT 0 /* AIF2TX2_SLOT - [5:0] */
  2644. #define WM5100_AIF2TX2_SLOT_WIDTH 6 /* AIF2TX2_SLOT - [5:0] */
  2645. /*
  2646. * R1361 (0x551) - Audio IF 2_18
  2647. */
  2648. #define WM5100_AIF2RX1_SLOT_MASK 0x003F /* AIF2RX1_SLOT - [5:0] */
  2649. #define WM5100_AIF2RX1_SLOT_SHIFT 0 /* AIF2RX1_SLOT - [5:0] */
  2650. #define WM5100_AIF2RX1_SLOT_WIDTH 6 /* AIF2RX1_SLOT - [5:0] */
  2651. /*
  2652. * R1362 (0x552) - Audio IF 2_19
  2653. */
  2654. #define WM5100_AIF2RX2_SLOT_MASK 0x003F /* AIF2RX2_SLOT - [5:0] */
  2655. #define WM5100_AIF2RX2_SLOT_SHIFT 0 /* AIF2RX2_SLOT - [5:0] */
  2656. #define WM5100_AIF2RX2_SLOT_WIDTH 6 /* AIF2RX2_SLOT - [5:0] */
  2657. /*
  2658. * R1369 (0x559) - Audio IF 2_26
  2659. */
  2660. #define WM5100_AIF2TX2_ENA 0x0002 /* AIF2TX2_ENA */
  2661. #define WM5100_AIF2TX2_ENA_MASK 0x0002 /* AIF2TX2_ENA */
  2662. #define WM5100_AIF2TX2_ENA_SHIFT 1 /* AIF2TX2_ENA */
  2663. #define WM5100_AIF2TX2_ENA_WIDTH 1 /* AIF2TX2_ENA */
  2664. #define WM5100_AIF2TX1_ENA 0x0001 /* AIF2TX1_ENA */
  2665. #define WM5100_AIF2TX1_ENA_MASK 0x0001 /* AIF2TX1_ENA */
  2666. #define WM5100_AIF2TX1_ENA_SHIFT 0 /* AIF2TX1_ENA */
  2667. #define WM5100_AIF2TX1_ENA_WIDTH 1 /* AIF2TX1_ENA */
  2668. /*
  2669. * R1370 (0x55A) - Audio IF 2_27
  2670. */
  2671. #define WM5100_AIF2RX2_ENA 0x0002 /* AIF2RX2_ENA */
  2672. #define WM5100_AIF2RX2_ENA_MASK 0x0002 /* AIF2RX2_ENA */
  2673. #define WM5100_AIF2RX2_ENA_SHIFT 1 /* AIF2RX2_ENA */
  2674. #define WM5100_AIF2RX2_ENA_WIDTH 1 /* AIF2RX2_ENA */
  2675. #define WM5100_AIF2RX1_ENA 0x0001 /* AIF2RX1_ENA */
  2676. #define WM5100_AIF2RX1_ENA_MASK 0x0001 /* AIF2RX1_ENA */
  2677. #define WM5100_AIF2RX1_ENA_SHIFT 0 /* AIF2RX1_ENA */
  2678. #define WM5100_AIF2RX1_ENA_WIDTH 1 /* AIF2RX1_ENA */
  2679. /*
  2680. * R1408 (0x580) - Audio IF 3_1
  2681. */
  2682. #define WM5100_AIF3_BCLK_INV 0x0080 /* AIF3_BCLK_INV */
  2683. #define WM5100_AIF3_BCLK_INV_MASK 0x0080 /* AIF3_BCLK_INV */
  2684. #define WM5100_AIF3_BCLK_INV_SHIFT 7 /* AIF3_BCLK_INV */
  2685. #define WM5100_AIF3_BCLK_INV_WIDTH 1 /* AIF3_BCLK_INV */
  2686. #define WM5100_AIF3_BCLK_FRC 0x0040 /* AIF3_BCLK_FRC */
  2687. #define WM5100_AIF3_BCLK_FRC_MASK 0x0040 /* AIF3_BCLK_FRC */
  2688. #define WM5100_AIF3_BCLK_FRC_SHIFT 6 /* AIF3_BCLK_FRC */
  2689. #define WM5100_AIF3_BCLK_FRC_WIDTH 1 /* AIF3_BCLK_FRC */
  2690. #define WM5100_AIF3_BCLK_MSTR 0x0020 /* AIF3_BCLK_MSTR */
  2691. #define WM5100_AIF3_BCLK_MSTR_MASK 0x0020 /* AIF3_BCLK_MSTR */
  2692. #define WM5100_AIF3_BCLK_MSTR_SHIFT 5 /* AIF3_BCLK_MSTR */
  2693. #define WM5100_AIF3_BCLK_MSTR_WIDTH 1 /* AIF3_BCLK_MSTR */
  2694. #define WM5100_AIF3_BCLK_FREQ_MASK 0x001F /* AIF3_BCLK_FREQ - [4:0] */
  2695. #define WM5100_AIF3_BCLK_FREQ_SHIFT 0 /* AIF3_BCLK_FREQ - [4:0] */
  2696. #define WM5100_AIF3_BCLK_FREQ_WIDTH 5 /* AIF3_BCLK_FREQ - [4:0] */
  2697. /*
  2698. * R1409 (0x581) - Audio IF 3_2
  2699. */
  2700. #define WM5100_AIF3TX_DAT_TRI 0x0020 /* AIF3TX_DAT_TRI */
  2701. #define WM5100_AIF3TX_DAT_TRI_MASK 0x0020 /* AIF3TX_DAT_TRI */
  2702. #define WM5100_AIF3TX_DAT_TRI_SHIFT 5 /* AIF3TX_DAT_TRI */
  2703. #define WM5100_AIF3TX_DAT_TRI_WIDTH 1 /* AIF3TX_DAT_TRI */
  2704. #define WM5100_AIF3TX_LRCLK_SRC 0x0008 /* AIF3TX_LRCLK_SRC */
  2705. #define WM5100_AIF3TX_LRCLK_SRC_MASK 0x0008 /* AIF3TX_LRCLK_SRC */
  2706. #define WM5100_AIF3TX_LRCLK_SRC_SHIFT 3 /* AIF3TX_LRCLK_SRC */
  2707. #define WM5100_AIF3TX_LRCLK_SRC_WIDTH 1 /* AIF3TX_LRCLK_SRC */
  2708. #define WM5100_AIF3TX_LRCLK_INV 0x0004 /* AIF3TX_LRCLK_INV */
  2709. #define WM5100_AIF3TX_LRCLK_INV_MASK 0x0004 /* AIF3TX_LRCLK_INV */
  2710. #define WM5100_AIF3TX_LRCLK_INV_SHIFT 2 /* AIF3TX_LRCLK_INV */
  2711. #define WM5100_AIF3TX_LRCLK_INV_WIDTH 1 /* AIF3TX_LRCLK_INV */
  2712. #define WM5100_AIF3TX_LRCLK_FRC 0x0002 /* AIF3TX_LRCLK_FRC */
  2713. #define WM5100_AIF3TX_LRCLK_FRC_MASK 0x0002 /* AIF3TX_LRCLK_FRC */
  2714. #define WM5100_AIF3TX_LRCLK_FRC_SHIFT 1 /* AIF3TX_LRCLK_FRC */
  2715. #define WM5100_AIF3TX_LRCLK_FRC_WIDTH 1 /* AIF3TX_LRCLK_FRC */
  2716. #define WM5100_AIF3TX_LRCLK_MSTR 0x0001 /* AIF3TX_LRCLK_MSTR */
  2717. #define WM5100_AIF3TX_LRCLK_MSTR_MASK 0x0001 /* AIF3TX_LRCLK_MSTR */
  2718. #define WM5100_AIF3TX_LRCLK_MSTR_SHIFT 0 /* AIF3TX_LRCLK_MSTR */
  2719. #define WM5100_AIF3TX_LRCLK_MSTR_WIDTH 1 /* AIF3TX_LRCLK_MSTR */
  2720. /*
  2721. * R1410 (0x582) - Audio IF 3_3
  2722. */
  2723. #define WM5100_AIF3RX_LRCLK_INV 0x0004 /* AIF3RX_LRCLK_INV */
  2724. #define WM5100_AIF3RX_LRCLK_INV_MASK 0x0004 /* AIF3RX_LRCLK_INV */
  2725. #define WM5100_AIF3RX_LRCLK_INV_SHIFT 2 /* AIF3RX_LRCLK_INV */
  2726. #define WM5100_AIF3RX_LRCLK_INV_WIDTH 1 /* AIF3RX_LRCLK_INV */
  2727. #define WM5100_AIF3RX_LRCLK_FRC 0x0002 /* AIF3RX_LRCLK_FRC */
  2728. #define WM5100_AIF3RX_LRCLK_FRC_MASK 0x0002 /* AIF3RX_LRCLK_FRC */
  2729. #define WM5100_AIF3RX_LRCLK_FRC_SHIFT 1 /* AIF3RX_LRCLK_FRC */
  2730. #define WM5100_AIF3RX_LRCLK_FRC_WIDTH 1 /* AIF3RX_LRCLK_FRC */
  2731. #define WM5100_AIF3RX_LRCLK_MSTR 0x0001 /* AIF3RX_LRCLK_MSTR */
  2732. #define WM5100_AIF3RX_LRCLK_MSTR_MASK 0x0001 /* AIF3RX_LRCLK_MSTR */
  2733. #define WM5100_AIF3RX_LRCLK_MSTR_SHIFT 0 /* AIF3RX_LRCLK_MSTR */
  2734. #define WM5100_AIF3RX_LRCLK_MSTR_WIDTH 1 /* AIF3RX_LRCLK_MSTR */
  2735. /*
  2736. * R1411 (0x583) - Audio IF 3_4
  2737. */
  2738. #define WM5100_AIF3_TRI 0x0040 /* AIF3_TRI */
  2739. #define WM5100_AIF3_TRI_MASK 0x0040 /* AIF3_TRI */
  2740. #define WM5100_AIF3_TRI_SHIFT 6 /* AIF3_TRI */
  2741. #define WM5100_AIF3_TRI_WIDTH 1 /* AIF3_TRI */
  2742. #define WM5100_AIF3_RATE_MASK 0x0003 /* AIF3_RATE - [1:0] */
  2743. #define WM5100_AIF3_RATE_SHIFT 0 /* AIF3_RATE - [1:0] */
  2744. #define WM5100_AIF3_RATE_WIDTH 2 /* AIF3_RATE - [1:0] */
  2745. /*
  2746. * R1412 (0x584) - Audio IF 3_5
  2747. */
  2748. #define WM5100_AIF3_FMT_MASK 0x0007 /* AIF3_FMT - [2:0] */
  2749. #define WM5100_AIF3_FMT_SHIFT 0 /* AIF3_FMT - [2:0] */
  2750. #define WM5100_AIF3_FMT_WIDTH 3 /* AIF3_FMT - [2:0] */
  2751. /*
  2752. * R1413 (0x585) - Audio IF 3_6
  2753. */
  2754. #define WM5100_AIF3TX_BCPF_MASK 0x1FFF /* AIF3TX_BCPF - [12:0] */
  2755. #define WM5100_AIF3TX_BCPF_SHIFT 0 /* AIF3TX_BCPF - [12:0] */
  2756. #define WM5100_AIF3TX_BCPF_WIDTH 13 /* AIF3TX_BCPF - [12:0] */
  2757. /*
  2758. * R1414 (0x586) - Audio IF 3_7
  2759. */
  2760. #define WM5100_AIF3RX_BCPF_MASK 0x1FFF /* AIF3RX_BCPF - [12:0] */
  2761. #define WM5100_AIF3RX_BCPF_SHIFT 0 /* AIF3RX_BCPF - [12:0] */
  2762. #define WM5100_AIF3RX_BCPF_WIDTH 13 /* AIF3RX_BCPF - [12:0] */
  2763. /*
  2764. * R1415 (0x587) - Audio IF 3_8
  2765. */
  2766. #define WM5100_AIF3TX_WL_MASK 0x3F00 /* AIF3TX_WL - [13:8] */
  2767. #define WM5100_AIF3TX_WL_SHIFT 8 /* AIF3TX_WL - [13:8] */
  2768. #define WM5100_AIF3TX_WL_WIDTH 6 /* AIF3TX_WL - [13:8] */
  2769. #define WM5100_AIF3TX_SLOT_LEN_MASK 0x00FF /* AIF3TX_SLOT_LEN - [7:0] */
  2770. #define WM5100_AIF3TX_SLOT_LEN_SHIFT 0 /* AIF3TX_SLOT_LEN - [7:0] */
  2771. #define WM5100_AIF3TX_SLOT_LEN_WIDTH 8 /* AIF3TX_SLOT_LEN - [7:0] */
  2772. /*
  2773. * R1416 (0x588) - Audio IF 3_9
  2774. */
  2775. #define WM5100_AIF3RX_WL_MASK 0x3F00 /* AIF3RX_WL - [13:8] */
  2776. #define WM5100_AIF3RX_WL_SHIFT 8 /* AIF3RX_WL - [13:8] */
  2777. #define WM5100_AIF3RX_WL_WIDTH 6 /* AIF3RX_WL - [13:8] */
  2778. #define WM5100_AIF3RX_SLOT_LEN_MASK 0x00FF /* AIF3RX_SLOT_LEN - [7:0] */
  2779. #define WM5100_AIF3RX_SLOT_LEN_SHIFT 0 /* AIF3RX_SLOT_LEN - [7:0] */
  2780. #define WM5100_AIF3RX_SLOT_LEN_WIDTH 8 /* AIF3RX_SLOT_LEN - [7:0] */
  2781. /*
  2782. * R1417 (0x589) - Audio IF 3_10
  2783. */
  2784. #define WM5100_AIF3TX1_SLOT_MASK 0x003F /* AIF3TX1_SLOT - [5:0] */
  2785. #define WM5100_AIF3TX1_SLOT_SHIFT 0 /* AIF3TX1_SLOT - [5:0] */
  2786. #define WM5100_AIF3TX1_SLOT_WIDTH 6 /* AIF3TX1_SLOT - [5:0] */
  2787. /*
  2788. * R1418 (0x58A) - Audio IF 3_11
  2789. */
  2790. #define WM5100_AIF3TX2_SLOT_MASK 0x003F /* AIF3TX2_SLOT - [5:0] */
  2791. #define WM5100_AIF3TX2_SLOT_SHIFT 0 /* AIF3TX2_SLOT - [5:0] */
  2792. #define WM5100_AIF3TX2_SLOT_WIDTH 6 /* AIF3TX2_SLOT - [5:0] */
  2793. /*
  2794. * R1425 (0x591) - Audio IF 3_18
  2795. */
  2796. #define WM5100_AIF3RX1_SLOT_MASK 0x003F /* AIF3RX1_SLOT - [5:0] */
  2797. #define WM5100_AIF3RX1_SLOT_SHIFT 0 /* AIF3RX1_SLOT - [5:0] */
  2798. #define WM5100_AIF3RX1_SLOT_WIDTH 6 /* AIF3RX1_SLOT - [5:0] */
  2799. /*
  2800. * R1426 (0x592) - Audio IF 3_19
  2801. */
  2802. #define WM5100_AIF3RX2_SLOT_MASK 0x003F /* AIF3RX2_SLOT - [5:0] */
  2803. #define WM5100_AIF3RX2_SLOT_SHIFT 0 /* AIF3RX2_SLOT - [5:0] */
  2804. #define WM5100_AIF3RX2_SLOT_WIDTH 6 /* AIF3RX2_SLOT - [5:0] */
  2805. /*
  2806. * R1433 (0x599) - Audio IF 3_26
  2807. */
  2808. #define WM5100_AIF3TX2_ENA 0x0002 /* AIF3TX2_ENA */
  2809. #define WM5100_AIF3TX2_ENA_MASK 0x0002 /* AIF3TX2_ENA */
  2810. #define WM5100_AIF3TX2_ENA_SHIFT 1 /* AIF3TX2_ENA */
  2811. #define WM5100_AIF3TX2_ENA_WIDTH 1 /* AIF3TX2_ENA */
  2812. #define WM5100_AIF3TX1_ENA 0x0001 /* AIF3TX1_ENA */
  2813. #define WM5100_AIF3TX1_ENA_MASK 0x0001 /* AIF3TX1_ENA */
  2814. #define WM5100_AIF3TX1_ENA_SHIFT 0 /* AIF3TX1_ENA */
  2815. #define WM5100_AIF3TX1_ENA_WIDTH 1 /* AIF3TX1_ENA */
  2816. /*
  2817. * R1434 (0x59A) - Audio IF 3_27
  2818. */
  2819. #define WM5100_AIF3RX2_ENA 0x0002 /* AIF3RX2_ENA */
  2820. #define WM5100_AIF3RX2_ENA_MASK 0x0002 /* AIF3RX2_ENA */
  2821. #define WM5100_AIF3RX2_ENA_SHIFT 1 /* AIF3RX2_ENA */
  2822. #define WM5100_AIF3RX2_ENA_WIDTH 1 /* AIF3RX2_ENA */
  2823. #define WM5100_AIF3RX1_ENA 0x0001 /* AIF3RX1_ENA */
  2824. #define WM5100_AIF3RX1_ENA_MASK 0x0001 /* AIF3RX1_ENA */
  2825. #define WM5100_AIF3RX1_ENA_SHIFT 0 /* AIF3RX1_ENA */
  2826. #define WM5100_AIF3RX1_ENA_WIDTH 1 /* AIF3RX1_ENA */
  2827. #define WM5100_MIXER_VOL_MASK 0x00FE /* MIXER_VOL - [7:1] */
  2828. #define WM5100_MIXER_VOL_SHIFT 1 /* MIXER_VOL - [7:1] */
  2829. #define WM5100_MIXER_VOL_WIDTH 7 /* MIXER_VOL - [7:1] */
  2830. /*
  2831. * R3072 (0xC00) - GPIO CTRL 1
  2832. */
  2833. #define WM5100_GP1_DIR 0x8000 /* GP1_DIR */
  2834. #define WM5100_GP1_DIR_MASK 0x8000 /* GP1_DIR */
  2835. #define WM5100_GP1_DIR_SHIFT 15 /* GP1_DIR */
  2836. #define WM5100_GP1_DIR_WIDTH 1 /* GP1_DIR */
  2837. #define WM5100_GP1_PU 0x4000 /* GP1_PU */
  2838. #define WM5100_GP1_PU_MASK 0x4000 /* GP1_PU */
  2839. #define WM5100_GP1_PU_SHIFT 14 /* GP1_PU */
  2840. #define WM5100_GP1_PU_WIDTH 1 /* GP1_PU */
  2841. #define WM5100_GP1_PD 0x2000 /* GP1_PD */
  2842. #define WM5100_GP1_PD_MASK 0x2000 /* GP1_PD */
  2843. #define WM5100_GP1_PD_SHIFT 13 /* GP1_PD */
  2844. #define WM5100_GP1_PD_WIDTH 1 /* GP1_PD */
  2845. #define WM5100_GP1_POL 0x0400 /* GP1_POL */
  2846. #define WM5100_GP1_POL_MASK 0x0400 /* GP1_POL */
  2847. #define WM5100_GP1_POL_SHIFT 10 /* GP1_POL */
  2848. #define WM5100_GP1_POL_WIDTH 1 /* GP1_POL */
  2849. #define WM5100_GP1_OP_CFG 0x0200 /* GP1_OP_CFG */
  2850. #define WM5100_GP1_OP_CFG_MASK 0x0200 /* GP1_OP_CFG */
  2851. #define WM5100_GP1_OP_CFG_SHIFT 9 /* GP1_OP_CFG */
  2852. #define WM5100_GP1_OP_CFG_WIDTH 1 /* GP1_OP_CFG */
  2853. #define WM5100_GP1_DB 0x0100 /* GP1_DB */
  2854. #define WM5100_GP1_DB_MASK 0x0100 /* GP1_DB */
  2855. #define WM5100_GP1_DB_SHIFT 8 /* GP1_DB */
  2856. #define WM5100_GP1_DB_WIDTH 1 /* GP1_DB */
  2857. #define WM5100_GP1_LVL 0x0040 /* GP1_LVL */
  2858. #define WM5100_GP1_LVL_MASK 0x0040 /* GP1_LVL */
  2859. #define WM5100_GP1_LVL_SHIFT 6 /* GP1_LVL */
  2860. #define WM5100_GP1_LVL_WIDTH 1 /* GP1_LVL */
  2861. #define WM5100_GP1_FN_MASK 0x003F /* GP1_FN - [5:0] */
  2862. #define WM5100_GP1_FN_SHIFT 0 /* GP1_FN - [5:0] */
  2863. #define WM5100_GP1_FN_WIDTH 6 /* GP1_FN - [5:0] */
  2864. /*
  2865. * R3073 (0xC01) - GPIO CTRL 2
  2866. */
  2867. #define WM5100_GP2_DIR 0x8000 /* GP2_DIR */
  2868. #define WM5100_GP2_DIR_MASK 0x8000 /* GP2_DIR */
  2869. #define WM5100_GP2_DIR_SHIFT 15 /* GP2_DIR */
  2870. #define WM5100_GP2_DIR_WIDTH 1 /* GP2_DIR */
  2871. #define WM5100_GP2_PU 0x4000 /* GP2_PU */
  2872. #define WM5100_GP2_PU_MASK 0x4000 /* GP2_PU */
  2873. #define WM5100_GP2_PU_SHIFT 14 /* GP2_PU */
  2874. #define WM5100_GP2_PU_WIDTH 1 /* GP2_PU */
  2875. #define WM5100_GP2_PD 0x2000 /* GP2_PD */
  2876. #define WM5100_GP2_PD_MASK 0x2000 /* GP2_PD */
  2877. #define WM5100_GP2_PD_SHIFT 13 /* GP2_PD */
  2878. #define WM5100_GP2_PD_WIDTH 1 /* GP2_PD */
  2879. #define WM5100_GP2_POL 0x0400 /* GP2_POL */
  2880. #define WM5100_GP2_POL_MASK 0x0400 /* GP2_POL */
  2881. #define WM5100_GP2_POL_SHIFT 10 /* GP2_POL */
  2882. #define WM5100_GP2_POL_WIDTH 1 /* GP2_POL */
  2883. #define WM5100_GP2_OP_CFG 0x0200 /* GP2_OP_CFG */
  2884. #define WM5100_GP2_OP_CFG_MASK 0x0200 /* GP2_OP_CFG */
  2885. #define WM5100_GP2_OP_CFG_SHIFT 9 /* GP2_OP_CFG */
  2886. #define WM5100_GP2_OP_CFG_WIDTH 1 /* GP2_OP_CFG */
  2887. #define WM5100_GP2_DB 0x0100 /* GP2_DB */
  2888. #define WM5100_GP2_DB_MASK 0x0100 /* GP2_DB */
  2889. #define WM5100_GP2_DB_SHIFT 8 /* GP2_DB */
  2890. #define WM5100_GP2_DB_WIDTH 1 /* GP2_DB */
  2891. #define WM5100_GP2_LVL 0x0040 /* GP2_LVL */
  2892. #define WM5100_GP2_LVL_MASK 0x0040 /* GP2_LVL */
  2893. #define WM5100_GP2_LVL_SHIFT 6 /* GP2_LVL */
  2894. #define WM5100_GP2_LVL_WIDTH 1 /* GP2_LVL */
  2895. #define WM5100_GP2_FN_MASK 0x003F /* GP2_FN - [5:0] */
  2896. #define WM5100_GP2_FN_SHIFT 0 /* GP2_FN - [5:0] */
  2897. #define WM5100_GP2_FN_WIDTH 6 /* GP2_FN - [5:0] */
  2898. /*
  2899. * R3074 (0xC02) - GPIO CTRL 3
  2900. */
  2901. #define WM5100_GP3_DIR 0x8000 /* GP3_DIR */
  2902. #define WM5100_GP3_DIR_MASK 0x8000 /* GP3_DIR */
  2903. #define WM5100_GP3_DIR_SHIFT 15 /* GP3_DIR */
  2904. #define WM5100_GP3_DIR_WIDTH 1 /* GP3_DIR */
  2905. #define WM5100_GP3_PU 0x4000 /* GP3_PU */
  2906. #define WM5100_GP3_PU_MASK 0x4000 /* GP3_PU */
  2907. #define WM5100_GP3_PU_SHIFT 14 /* GP3_PU */
  2908. #define WM5100_GP3_PU_WIDTH 1 /* GP3_PU */
  2909. #define WM5100_GP3_PD 0x2000 /* GP3_PD */
  2910. #define WM5100_GP3_PD_MASK 0x2000 /* GP3_PD */
  2911. #define WM5100_GP3_PD_SHIFT 13 /* GP3_PD */
  2912. #define WM5100_GP3_PD_WIDTH 1 /* GP3_PD */
  2913. #define WM5100_GP3_POL 0x0400 /* GP3_POL */
  2914. #define WM5100_GP3_POL_MASK 0x0400 /* GP3_POL */
  2915. #define WM5100_GP3_POL_SHIFT 10 /* GP3_POL */
  2916. #define WM5100_GP3_POL_WIDTH 1 /* GP3_POL */
  2917. #define WM5100_GP3_OP_CFG 0x0200 /* GP3_OP_CFG */
  2918. #define WM5100_GP3_OP_CFG_MASK 0x0200 /* GP3_OP_CFG */
  2919. #define WM5100_GP3_OP_CFG_SHIFT 9 /* GP3_OP_CFG */
  2920. #define WM5100_GP3_OP_CFG_WIDTH 1 /* GP3_OP_CFG */
  2921. #define WM5100_GP3_DB 0x0100 /* GP3_DB */
  2922. #define WM5100_GP3_DB_MASK 0x0100 /* GP3_DB */
  2923. #define WM5100_GP3_DB_SHIFT 8 /* GP3_DB */
  2924. #define WM5100_GP3_DB_WIDTH 1 /* GP3_DB */
  2925. #define WM5100_GP3_LVL 0x0040 /* GP3_LVL */
  2926. #define WM5100_GP3_LVL_MASK 0x0040 /* GP3_LVL */
  2927. #define WM5100_GP3_LVL_SHIFT 6 /* GP3_LVL */
  2928. #define WM5100_GP3_LVL_WIDTH 1 /* GP3_LVL */
  2929. #define WM5100_GP3_FN_MASK 0x003F /* GP3_FN - [5:0] */
  2930. #define WM5100_GP3_FN_SHIFT 0 /* GP3_FN - [5:0] */
  2931. #define WM5100_GP3_FN_WIDTH 6 /* GP3_FN - [5:0] */
  2932. /*
  2933. * R3075 (0xC03) - GPIO CTRL 4
  2934. */
  2935. #define WM5100_GP4_DIR 0x8000 /* GP4_DIR */
  2936. #define WM5100_GP4_DIR_MASK 0x8000 /* GP4_DIR */
  2937. #define WM5100_GP4_DIR_SHIFT 15 /* GP4_DIR */
  2938. #define WM5100_GP4_DIR_WIDTH 1 /* GP4_DIR */
  2939. #define WM5100_GP4_PU 0x4000 /* GP4_PU */
  2940. #define WM5100_GP4_PU_MASK 0x4000 /* GP4_PU */
  2941. #define WM5100_GP4_PU_SHIFT 14 /* GP4_PU */
  2942. #define WM5100_GP4_PU_WIDTH 1 /* GP4_PU */
  2943. #define WM5100_GP4_PD 0x2000 /* GP4_PD */
  2944. #define WM5100_GP4_PD_MASK 0x2000 /* GP4_PD */
  2945. #define WM5100_GP4_PD_SHIFT 13 /* GP4_PD */
  2946. #define WM5100_GP4_PD_WIDTH 1 /* GP4_PD */
  2947. #define WM5100_GP4_POL 0x0400 /* GP4_POL */
  2948. #define WM5100_GP4_POL_MASK 0x0400 /* GP4_POL */
  2949. #define WM5100_GP4_POL_SHIFT 10 /* GP4_POL */
  2950. #define WM5100_GP4_POL_WIDTH 1 /* GP4_POL */
  2951. #define WM5100_GP4_OP_CFG 0x0200 /* GP4_OP_CFG */
  2952. #define WM5100_GP4_OP_CFG_MASK 0x0200 /* GP4_OP_CFG */
  2953. #define WM5100_GP4_OP_CFG_SHIFT 9 /* GP4_OP_CFG */
  2954. #define WM5100_GP4_OP_CFG_WIDTH 1 /* GP4_OP_CFG */
  2955. #define WM5100_GP4_DB 0x0100 /* GP4_DB */
  2956. #define WM5100_GP4_DB_MASK 0x0100 /* GP4_DB */
  2957. #define WM5100_GP4_DB_SHIFT 8 /* GP4_DB */
  2958. #define WM5100_GP4_DB_WIDTH 1 /* GP4_DB */
  2959. #define WM5100_GP4_LVL 0x0040 /* GP4_LVL */
  2960. #define WM5100_GP4_LVL_MASK 0x0040 /* GP4_LVL */
  2961. #define WM5100_GP4_LVL_SHIFT 6 /* GP4_LVL */
  2962. #define WM5100_GP4_LVL_WIDTH 1 /* GP4_LVL */
  2963. #define WM5100_GP4_FN_MASK 0x003F /* GP4_FN - [5:0] */
  2964. #define WM5100_GP4_FN_SHIFT 0 /* GP4_FN - [5:0] */
  2965. #define WM5100_GP4_FN_WIDTH 6 /* GP4_FN - [5:0] */
  2966. /*
  2967. * R3076 (0xC04) - GPIO CTRL 5
  2968. */
  2969. #define WM5100_GP5_DIR 0x8000 /* GP5_DIR */
  2970. #define WM5100_GP5_DIR_MASK 0x8000 /* GP5_DIR */
  2971. #define WM5100_GP5_DIR_SHIFT 15 /* GP5_DIR */
  2972. #define WM5100_GP5_DIR_WIDTH 1 /* GP5_DIR */
  2973. #define WM5100_GP5_PU 0x4000 /* GP5_PU */
  2974. #define WM5100_GP5_PU_MASK 0x4000 /* GP5_PU */
  2975. #define WM5100_GP5_PU_SHIFT 14 /* GP5_PU */
  2976. #define WM5100_GP5_PU_WIDTH 1 /* GP5_PU */
  2977. #define WM5100_GP5_PD 0x2000 /* GP5_PD */
  2978. #define WM5100_GP5_PD_MASK 0x2000 /* GP5_PD */
  2979. #define WM5100_GP5_PD_SHIFT 13 /* GP5_PD */
  2980. #define WM5100_GP5_PD_WIDTH 1 /* GP5_PD */
  2981. #define WM5100_GP5_POL 0x0400 /* GP5_POL */
  2982. #define WM5100_GP5_POL_MASK 0x0400 /* GP5_POL */
  2983. #define WM5100_GP5_POL_SHIFT 10 /* GP5_POL */
  2984. #define WM5100_GP5_POL_WIDTH 1 /* GP5_POL */
  2985. #define WM5100_GP5_OP_CFG 0x0200 /* GP5_OP_CFG */
  2986. #define WM5100_GP5_OP_CFG_MASK 0x0200 /* GP5_OP_CFG */
  2987. #define WM5100_GP5_OP_CFG_SHIFT 9 /* GP5_OP_CFG */
  2988. #define WM5100_GP5_OP_CFG_WIDTH 1 /* GP5_OP_CFG */
  2989. #define WM5100_GP5_DB 0x0100 /* GP5_DB */
  2990. #define WM5100_GP5_DB_MASK 0x0100 /* GP5_DB */
  2991. #define WM5100_GP5_DB_SHIFT 8 /* GP5_DB */
  2992. #define WM5100_GP5_DB_WIDTH 1 /* GP5_DB */
  2993. #define WM5100_GP5_LVL 0x0040 /* GP5_LVL */
  2994. #define WM5100_GP5_LVL_MASK 0x0040 /* GP5_LVL */
  2995. #define WM5100_GP5_LVL_SHIFT 6 /* GP5_LVL */
  2996. #define WM5100_GP5_LVL_WIDTH 1 /* GP5_LVL */
  2997. #define WM5100_GP5_FN_MASK 0x003F /* GP5_FN - [5:0] */
  2998. #define WM5100_GP5_FN_SHIFT 0 /* GP5_FN - [5:0] */
  2999. #define WM5100_GP5_FN_WIDTH 6 /* GP5_FN - [5:0] */
  3000. /*
  3001. * R3077 (0xC05) - GPIO CTRL 6
  3002. */
  3003. #define WM5100_GP6_DIR 0x8000 /* GP6_DIR */
  3004. #define WM5100_GP6_DIR_MASK 0x8000 /* GP6_DIR */
  3005. #define WM5100_GP6_DIR_SHIFT 15 /* GP6_DIR */
  3006. #define WM5100_GP6_DIR_WIDTH 1 /* GP6_DIR */
  3007. #define WM5100_GP6_PU 0x4000 /* GP6_PU */
  3008. #define WM5100_GP6_PU_MASK 0x4000 /* GP6_PU */
  3009. #define WM5100_GP6_PU_SHIFT 14 /* GP6_PU */
  3010. #define WM5100_GP6_PU_WIDTH 1 /* GP6_PU */
  3011. #define WM5100_GP6_PD 0x2000 /* GP6_PD */
  3012. #define WM5100_GP6_PD_MASK 0x2000 /* GP6_PD */
  3013. #define WM5100_GP6_PD_SHIFT 13 /* GP6_PD */
  3014. #define WM5100_GP6_PD_WIDTH 1 /* GP6_PD */
  3015. #define WM5100_GP6_POL 0x0400 /* GP6_POL */
  3016. #define WM5100_GP6_POL_MASK 0x0400 /* GP6_POL */
  3017. #define WM5100_GP6_POL_SHIFT 10 /* GP6_POL */
  3018. #define WM5100_GP6_POL_WIDTH 1 /* GP6_POL */
  3019. #define WM5100_GP6_OP_CFG 0x0200 /* GP6_OP_CFG */
  3020. #define WM5100_GP6_OP_CFG_MASK 0x0200 /* GP6_OP_CFG */
  3021. #define WM5100_GP6_OP_CFG_SHIFT 9 /* GP6_OP_CFG */
  3022. #define WM5100_GP6_OP_CFG_WIDTH 1 /* GP6_OP_CFG */
  3023. #define WM5100_GP6_DB 0x0100 /* GP6_DB */
  3024. #define WM5100_GP6_DB_MASK 0x0100 /* GP6_DB */
  3025. #define WM5100_GP6_DB_SHIFT 8 /* GP6_DB */
  3026. #define WM5100_GP6_DB_WIDTH 1 /* GP6_DB */
  3027. #define WM5100_GP6_LVL 0x0040 /* GP6_LVL */
  3028. #define WM5100_GP6_LVL_MASK 0x0040 /* GP6_LVL */
  3029. #define WM5100_GP6_LVL_SHIFT 6 /* GP6_LVL */
  3030. #define WM5100_GP6_LVL_WIDTH 1 /* GP6_LVL */
  3031. #define WM5100_GP6_FN_MASK 0x003F /* GP6_FN - [5:0] */
  3032. #define WM5100_GP6_FN_SHIFT 0 /* GP6_FN - [5:0] */
  3033. #define WM5100_GP6_FN_WIDTH 6 /* GP6_FN - [5:0] */
  3034. /*
  3035. * R3107 (0xC23) - Misc Pad Ctrl 1
  3036. */
  3037. #define WM5100_LDO1ENA_PD 0x8000 /* LDO1ENA_PD */
  3038. #define WM5100_LDO1ENA_PD_MASK 0x8000 /* LDO1ENA_PD */
  3039. #define WM5100_LDO1ENA_PD_SHIFT 15 /* LDO1ENA_PD */
  3040. #define WM5100_LDO1ENA_PD_WIDTH 1 /* LDO1ENA_PD */
  3041. #define WM5100_MCLK2_PD 0x2000 /* MCLK2_PD */
  3042. #define WM5100_MCLK2_PD_MASK 0x2000 /* MCLK2_PD */
  3043. #define WM5100_MCLK2_PD_SHIFT 13 /* MCLK2_PD */
  3044. #define WM5100_MCLK2_PD_WIDTH 1 /* MCLK2_PD */
  3045. #define WM5100_MCLK1_PD 0x1000 /* MCLK1_PD */
  3046. #define WM5100_MCLK1_PD_MASK 0x1000 /* MCLK1_PD */
  3047. #define WM5100_MCLK1_PD_SHIFT 12 /* MCLK1_PD */
  3048. #define WM5100_MCLK1_PD_WIDTH 1 /* MCLK1_PD */
  3049. #define WM5100_RESET_PU 0x0002 /* RESET_PU */
  3050. #define WM5100_RESET_PU_MASK 0x0002 /* RESET_PU */
  3051. #define WM5100_RESET_PU_SHIFT 1 /* RESET_PU */
  3052. #define WM5100_RESET_PU_WIDTH 1 /* RESET_PU */
  3053. #define WM5100_ADDR_PD 0x0001 /* ADDR_PD */
  3054. #define WM5100_ADDR_PD_MASK 0x0001 /* ADDR_PD */
  3055. #define WM5100_ADDR_PD_SHIFT 0 /* ADDR_PD */
  3056. #define WM5100_ADDR_PD_WIDTH 1 /* ADDR_PD */
  3057. /*
  3058. * R3108 (0xC24) - Misc Pad Ctrl 2
  3059. */
  3060. #define WM5100_DMICDAT4_PD 0x0008 /* DMICDAT4_PD */
  3061. #define WM5100_DMICDAT4_PD_MASK 0x0008 /* DMICDAT4_PD */
  3062. #define WM5100_DMICDAT4_PD_SHIFT 3 /* DMICDAT4_PD */
  3063. #define WM5100_DMICDAT4_PD_WIDTH 1 /* DMICDAT4_PD */
  3064. #define WM5100_DMICDAT3_PD 0x0004 /* DMICDAT3_PD */
  3065. #define WM5100_DMICDAT3_PD_MASK 0x0004 /* DMICDAT3_PD */
  3066. #define WM5100_DMICDAT3_PD_SHIFT 2 /* DMICDAT3_PD */
  3067. #define WM5100_DMICDAT3_PD_WIDTH 1 /* DMICDAT3_PD */
  3068. #define WM5100_DMICDAT2_PD 0x0002 /* DMICDAT2_PD */
  3069. #define WM5100_DMICDAT2_PD_MASK 0x0002 /* DMICDAT2_PD */
  3070. #define WM5100_DMICDAT2_PD_SHIFT 1 /* DMICDAT2_PD */
  3071. #define WM5100_DMICDAT2_PD_WIDTH 1 /* DMICDAT2_PD */
  3072. #define WM5100_DMICDAT1_PD 0x0001 /* DMICDAT1_PD */
  3073. #define WM5100_DMICDAT1_PD_MASK 0x0001 /* DMICDAT1_PD */
  3074. #define WM5100_DMICDAT1_PD_SHIFT 0 /* DMICDAT1_PD */
  3075. #define WM5100_DMICDAT1_PD_WIDTH 1 /* DMICDAT1_PD */
  3076. /*
  3077. * R3109 (0xC25) - Misc Pad Ctrl 3
  3078. */
  3079. #define WM5100_AIF1RXLRCLK_PU 0x0020 /* AIF1RXLRCLK_PU */
  3080. #define WM5100_AIF1RXLRCLK_PU_MASK 0x0020 /* AIF1RXLRCLK_PU */
  3081. #define WM5100_AIF1RXLRCLK_PU_SHIFT 5 /* AIF1RXLRCLK_PU */
  3082. #define WM5100_AIF1RXLRCLK_PU_WIDTH 1 /* AIF1RXLRCLK_PU */
  3083. #define WM5100_AIF1RXLRCLK_PD 0x0010 /* AIF1RXLRCLK_PD */
  3084. #define WM5100_AIF1RXLRCLK_PD_MASK 0x0010 /* AIF1RXLRCLK_PD */
  3085. #define WM5100_AIF1RXLRCLK_PD_SHIFT 4 /* AIF1RXLRCLK_PD */
  3086. #define WM5100_AIF1RXLRCLK_PD_WIDTH 1 /* AIF1RXLRCLK_PD */
  3087. #define WM5100_AIF1BCLK_PU 0x0008 /* AIF1BCLK_PU */
  3088. #define WM5100_AIF1BCLK_PU_MASK 0x0008 /* AIF1BCLK_PU */
  3089. #define WM5100_AIF1BCLK_PU_SHIFT 3 /* AIF1BCLK_PU */
  3090. #define WM5100_AIF1BCLK_PU_WIDTH 1 /* AIF1BCLK_PU */
  3091. #define WM5100_AIF1BCLK_PD 0x0004 /* AIF1BCLK_PD */
  3092. #define WM5100_AIF1BCLK_PD_MASK 0x0004 /* AIF1BCLK_PD */
  3093. #define WM5100_AIF1BCLK_PD_SHIFT 2 /* AIF1BCLK_PD */
  3094. #define WM5100_AIF1BCLK_PD_WIDTH 1 /* AIF1BCLK_PD */
  3095. #define WM5100_AIF1RXDAT_PU 0x0002 /* AIF1RXDAT_PU */
  3096. #define WM5100_AIF1RXDAT_PU_MASK 0x0002 /* AIF1RXDAT_PU */
  3097. #define WM5100_AIF1RXDAT_PU_SHIFT 1 /* AIF1RXDAT_PU */
  3098. #define WM5100_AIF1RXDAT_PU_WIDTH 1 /* AIF1RXDAT_PU */
  3099. #define WM5100_AIF1RXDAT_PD 0x0001 /* AIF1RXDAT_PD */
  3100. #define WM5100_AIF1RXDAT_PD_MASK 0x0001 /* AIF1RXDAT_PD */
  3101. #define WM5100_AIF1RXDAT_PD_SHIFT 0 /* AIF1RXDAT_PD */
  3102. #define WM5100_AIF1RXDAT_PD_WIDTH 1 /* AIF1RXDAT_PD */
  3103. /*
  3104. * R3110 (0xC26) - Misc Pad Ctrl 4
  3105. */
  3106. #define WM5100_AIF2RXLRCLK_PU 0x0020 /* AIF2RXLRCLK_PU */
  3107. #define WM5100_AIF2RXLRCLK_PU_MASK 0x0020 /* AIF2RXLRCLK_PU */
  3108. #define WM5100_AIF2RXLRCLK_PU_SHIFT 5 /* AIF2RXLRCLK_PU */
  3109. #define WM5100_AIF2RXLRCLK_PU_WIDTH 1 /* AIF2RXLRCLK_PU */
  3110. #define WM5100_AIF2RXLRCLK_PD 0x0010 /* AIF2RXLRCLK_PD */
  3111. #define WM5100_AIF2RXLRCLK_PD_MASK 0x0010 /* AIF2RXLRCLK_PD */
  3112. #define WM5100_AIF2RXLRCLK_PD_SHIFT 4 /* AIF2RXLRCLK_PD */
  3113. #define WM5100_AIF2RXLRCLK_PD_WIDTH 1 /* AIF2RXLRCLK_PD */
  3114. #define WM5100_AIF2BCLK_PU 0x0008 /* AIF2BCLK_PU */
  3115. #define WM5100_AIF2BCLK_PU_MASK 0x0008 /* AIF2BCLK_PU */
  3116. #define WM5100_AIF2BCLK_PU_SHIFT 3 /* AIF2BCLK_PU */
  3117. #define WM5100_AIF2BCLK_PU_WIDTH 1 /* AIF2BCLK_PU */
  3118. #define WM5100_AIF2BCLK_PD 0x0004 /* AIF2BCLK_PD */
  3119. #define WM5100_AIF2BCLK_PD_MASK 0x0004 /* AIF2BCLK_PD */
  3120. #define WM5100_AIF2BCLK_PD_SHIFT 2 /* AIF2BCLK_PD */
  3121. #define WM5100_AIF2BCLK_PD_WIDTH 1 /* AIF2BCLK_PD */
  3122. #define WM5100_AIF2RXDAT_PU 0x0002 /* AIF2RXDAT_PU */
  3123. #define WM5100_AIF2RXDAT_PU_MASK 0x0002 /* AIF2RXDAT_PU */
  3124. #define WM5100_AIF2RXDAT_PU_SHIFT 1 /* AIF2RXDAT_PU */
  3125. #define WM5100_AIF2RXDAT_PU_WIDTH 1 /* AIF2RXDAT_PU */
  3126. #define WM5100_AIF2RXDAT_PD 0x0001 /* AIF2RXDAT_PD */
  3127. #define WM5100_AIF2RXDAT_PD_MASK 0x0001 /* AIF2RXDAT_PD */
  3128. #define WM5100_AIF2RXDAT_PD_SHIFT 0 /* AIF2RXDAT_PD */
  3129. #define WM5100_AIF2RXDAT_PD_WIDTH 1 /* AIF2RXDAT_PD */
  3130. /*
  3131. * R3111 (0xC27) - Misc Pad Ctrl 5
  3132. */
  3133. #define WM5100_AIF3RXLRCLK_PU 0x0020 /* AIF3RXLRCLK_PU */
  3134. #define WM5100_AIF3RXLRCLK_PU_MASK 0x0020 /* AIF3RXLRCLK_PU */
  3135. #define WM5100_AIF3RXLRCLK_PU_SHIFT 5 /* AIF3RXLRCLK_PU */
  3136. #define WM5100_AIF3RXLRCLK_PU_WIDTH 1 /* AIF3RXLRCLK_PU */
  3137. #define WM5100_AIF3RXLRCLK_PD 0x0010 /* AIF3RXLRCLK_PD */
  3138. #define WM5100_AIF3RXLRCLK_PD_MASK 0x0010 /* AIF3RXLRCLK_PD */
  3139. #define WM5100_AIF3RXLRCLK_PD_SHIFT 4 /* AIF3RXLRCLK_PD */
  3140. #define WM5100_AIF3RXLRCLK_PD_WIDTH 1 /* AIF3RXLRCLK_PD */
  3141. #define WM5100_AIF3BCLK_PU 0x0008 /* AIF3BCLK_PU */
  3142. #define WM5100_AIF3BCLK_PU_MASK 0x0008 /* AIF3BCLK_PU */
  3143. #define WM5100_AIF3BCLK_PU_SHIFT 3 /* AIF3BCLK_PU */
  3144. #define WM5100_AIF3BCLK_PU_WIDTH 1 /* AIF3BCLK_PU */
  3145. #define WM5100_AIF3BCLK_PD 0x0004 /* AIF3BCLK_PD */
  3146. #define WM5100_AIF3BCLK_PD_MASK 0x0004 /* AIF3BCLK_PD */
  3147. #define WM5100_AIF3BCLK_PD_SHIFT 2 /* AIF3BCLK_PD */
  3148. #define WM5100_AIF3BCLK_PD_WIDTH 1 /* AIF3BCLK_PD */
  3149. #define WM5100_AIF3RXDAT_PU 0x0002 /* AIF3RXDAT_PU */
  3150. #define WM5100_AIF3RXDAT_PU_MASK 0x0002 /* AIF3RXDAT_PU */
  3151. #define WM5100_AIF3RXDAT_PU_SHIFT 1 /* AIF3RXDAT_PU */
  3152. #define WM5100_AIF3RXDAT_PU_WIDTH 1 /* AIF3RXDAT_PU */
  3153. #define WM5100_AIF3RXDAT_PD 0x0001 /* AIF3RXDAT_PD */
  3154. #define WM5100_AIF3RXDAT_PD_MASK 0x0001 /* AIF3RXDAT_PD */
  3155. #define WM5100_AIF3RXDAT_PD_SHIFT 0 /* AIF3RXDAT_PD */
  3156. #define WM5100_AIF3RXDAT_PD_WIDTH 1 /* AIF3RXDAT_PD */
  3157. /*
  3158. * R3112 (0xC28) - Misc GPIO 1
  3159. */
  3160. #define WM5100_OPCLK_SEL_MASK 0x0003 /* OPCLK_SEL - [1:0] */
  3161. #define WM5100_OPCLK_SEL_SHIFT 0 /* OPCLK_SEL - [1:0] */
  3162. #define WM5100_OPCLK_SEL_WIDTH 2 /* OPCLK_SEL - [1:0] */
  3163. /*
  3164. * R3328 (0xD00) - Interrupt Status 1
  3165. */
  3166. #define WM5100_GP6_EINT 0x0020 /* GP6_EINT */
  3167. #define WM5100_GP6_EINT_MASK 0x0020 /* GP6_EINT */
  3168. #define WM5100_GP6_EINT_SHIFT 5 /* GP6_EINT */
  3169. #define WM5100_GP6_EINT_WIDTH 1 /* GP6_EINT */
  3170. #define WM5100_GP5_EINT 0x0010 /* GP5_EINT */
  3171. #define WM5100_GP5_EINT_MASK 0x0010 /* GP5_EINT */
  3172. #define WM5100_GP5_EINT_SHIFT 4 /* GP5_EINT */
  3173. #define WM5100_GP5_EINT_WIDTH 1 /* GP5_EINT */
  3174. #define WM5100_GP4_EINT 0x0008 /* GP4_EINT */
  3175. #define WM5100_GP4_EINT_MASK 0x0008 /* GP4_EINT */
  3176. #define WM5100_GP4_EINT_SHIFT 3 /* GP4_EINT */
  3177. #define WM5100_GP4_EINT_WIDTH 1 /* GP4_EINT */
  3178. #define WM5100_GP3_EINT 0x0004 /* GP3_EINT */
  3179. #define WM5100_GP3_EINT_MASK 0x0004 /* GP3_EINT */
  3180. #define WM5100_GP3_EINT_SHIFT 2 /* GP3_EINT */
  3181. #define WM5100_GP3_EINT_WIDTH 1 /* GP3_EINT */
  3182. #define WM5100_GP2_EINT 0x0002 /* GP2_EINT */
  3183. #define WM5100_GP2_EINT_MASK 0x0002 /* GP2_EINT */
  3184. #define WM5100_GP2_EINT_SHIFT 1 /* GP2_EINT */
  3185. #define WM5100_GP2_EINT_WIDTH 1 /* GP2_EINT */
  3186. #define WM5100_GP1_EINT 0x0001 /* GP1_EINT */
  3187. #define WM5100_GP1_EINT_MASK 0x0001 /* GP1_EINT */
  3188. #define WM5100_GP1_EINT_SHIFT 0 /* GP1_EINT */
  3189. #define WM5100_GP1_EINT_WIDTH 1 /* GP1_EINT */
  3190. /*
  3191. * R3329 (0xD01) - Interrupt Status 2
  3192. */
  3193. #define WM5100_DSP_IRQ6_EINT 0x0020 /* DSP_IRQ6_EINT */
  3194. #define WM5100_DSP_IRQ6_EINT_MASK 0x0020 /* DSP_IRQ6_EINT */
  3195. #define WM5100_DSP_IRQ6_EINT_SHIFT 5 /* DSP_IRQ6_EINT */
  3196. #define WM5100_DSP_IRQ6_EINT_WIDTH 1 /* DSP_IRQ6_EINT */
  3197. #define WM5100_DSP_IRQ5_EINT 0x0010 /* DSP_IRQ5_EINT */
  3198. #define WM5100_DSP_IRQ5_EINT_MASK 0x0010 /* DSP_IRQ5_EINT */
  3199. #define WM5100_DSP_IRQ5_EINT_SHIFT 4 /* DSP_IRQ5_EINT */
  3200. #define WM5100_DSP_IRQ5_EINT_WIDTH 1 /* DSP_IRQ5_EINT */
  3201. #define WM5100_DSP_IRQ4_EINT 0x0008 /* DSP_IRQ4_EINT */
  3202. #define WM5100_DSP_IRQ4_EINT_MASK 0x0008 /* DSP_IRQ4_EINT */
  3203. #define WM5100_DSP_IRQ4_EINT_SHIFT 3 /* DSP_IRQ4_EINT */
  3204. #define WM5100_DSP_IRQ4_EINT_WIDTH 1 /* DSP_IRQ4_EINT */
  3205. #define WM5100_DSP_IRQ3_EINT 0x0004 /* DSP_IRQ3_EINT */
  3206. #define WM5100_DSP_IRQ3_EINT_MASK 0x0004 /* DSP_IRQ3_EINT */
  3207. #define WM5100_DSP_IRQ3_EINT_SHIFT 2 /* DSP_IRQ3_EINT */
  3208. #define WM5100_DSP_IRQ3_EINT_WIDTH 1 /* DSP_IRQ3_EINT */
  3209. #define WM5100_DSP_IRQ2_EINT 0x0002 /* DSP_IRQ2_EINT */
  3210. #define WM5100_DSP_IRQ2_EINT_MASK 0x0002 /* DSP_IRQ2_EINT */
  3211. #define WM5100_DSP_IRQ2_EINT_SHIFT 1 /* DSP_IRQ2_EINT */
  3212. #define WM5100_DSP_IRQ2_EINT_WIDTH 1 /* DSP_IRQ2_EINT */
  3213. #define WM5100_DSP_IRQ1_EINT 0x0001 /* DSP_IRQ1_EINT */
  3214. #define WM5100_DSP_IRQ1_EINT_MASK 0x0001 /* DSP_IRQ1_EINT */
  3215. #define WM5100_DSP_IRQ1_EINT_SHIFT 0 /* DSP_IRQ1_EINT */
  3216. #define WM5100_DSP_IRQ1_EINT_WIDTH 1 /* DSP_IRQ1_EINT */
  3217. /*
  3218. * R3330 (0xD02) - Interrupt Status 3
  3219. */
  3220. #define WM5100_SPK_SHUTDOWN_WARN_EINT 0x8000 /* SPK_SHUTDOWN_WARN_EINT */
  3221. #define WM5100_SPK_SHUTDOWN_WARN_EINT_MASK 0x8000 /* SPK_SHUTDOWN_WARN_EINT */
  3222. #define WM5100_SPK_SHUTDOWN_WARN_EINT_SHIFT 15 /* SPK_SHUTDOWN_WARN_EINT */
  3223. #define WM5100_SPK_SHUTDOWN_WARN_EINT_WIDTH 1 /* SPK_SHUTDOWN_WARN_EINT */
  3224. #define WM5100_SPK_SHUTDOWN_EINT 0x4000 /* SPK_SHUTDOWN_EINT */
  3225. #define WM5100_SPK_SHUTDOWN_EINT_MASK 0x4000 /* SPK_SHUTDOWN_EINT */
  3226. #define WM5100_SPK_SHUTDOWN_EINT_SHIFT 14 /* SPK_SHUTDOWN_EINT */
  3227. #define WM5100_SPK_SHUTDOWN_EINT_WIDTH 1 /* SPK_SHUTDOWN_EINT */
  3228. #define WM5100_HPDET_EINT 0x2000 /* HPDET_EINT */
  3229. #define WM5100_HPDET_EINT_MASK 0x2000 /* HPDET_EINT */
  3230. #define WM5100_HPDET_EINT_SHIFT 13 /* HPDET_EINT */
  3231. #define WM5100_HPDET_EINT_WIDTH 1 /* HPDET_EINT */
  3232. #define WM5100_ACCDET_EINT 0x1000 /* ACCDET_EINT */
  3233. #define WM5100_ACCDET_EINT_MASK 0x1000 /* ACCDET_EINT */
  3234. #define WM5100_ACCDET_EINT_SHIFT 12 /* ACCDET_EINT */
  3235. #define WM5100_ACCDET_EINT_WIDTH 1 /* ACCDET_EINT */
  3236. #define WM5100_DRC_SIG_DET_EINT 0x0200 /* DRC_SIG_DET_EINT */
  3237. #define WM5100_DRC_SIG_DET_EINT_MASK 0x0200 /* DRC_SIG_DET_EINT */
  3238. #define WM5100_DRC_SIG_DET_EINT_SHIFT 9 /* DRC_SIG_DET_EINT */
  3239. #define WM5100_DRC_SIG_DET_EINT_WIDTH 1 /* DRC_SIG_DET_EINT */
  3240. #define WM5100_ASRC2_LOCK_EINT 0x0100 /* ASRC2_LOCK_EINT */
  3241. #define WM5100_ASRC2_LOCK_EINT_MASK 0x0100 /* ASRC2_LOCK_EINT */
  3242. #define WM5100_ASRC2_LOCK_EINT_SHIFT 8 /* ASRC2_LOCK_EINT */
  3243. #define WM5100_ASRC2_LOCK_EINT_WIDTH 1 /* ASRC2_LOCK_EINT */
  3244. #define WM5100_ASRC1_LOCK_EINT 0x0080 /* ASRC1_LOCK_EINT */
  3245. #define WM5100_ASRC1_LOCK_EINT_MASK 0x0080 /* ASRC1_LOCK_EINT */
  3246. #define WM5100_ASRC1_LOCK_EINT_SHIFT 7 /* ASRC1_LOCK_EINT */
  3247. #define WM5100_ASRC1_LOCK_EINT_WIDTH 1 /* ASRC1_LOCK_EINT */
  3248. #define WM5100_FLL2_LOCK_EINT 0x0008 /* FLL2_LOCK_EINT */
  3249. #define WM5100_FLL2_LOCK_EINT_MASK 0x0008 /* FLL2_LOCK_EINT */
  3250. #define WM5100_FLL2_LOCK_EINT_SHIFT 3 /* FLL2_LOCK_EINT */
  3251. #define WM5100_FLL2_LOCK_EINT_WIDTH 1 /* FLL2_LOCK_EINT */
  3252. #define WM5100_FLL1_LOCK_EINT 0x0004 /* FLL1_LOCK_EINT */
  3253. #define WM5100_FLL1_LOCK_EINT_MASK 0x0004 /* FLL1_LOCK_EINT */
  3254. #define WM5100_FLL1_LOCK_EINT_SHIFT 2 /* FLL1_LOCK_EINT */
  3255. #define WM5100_FLL1_LOCK_EINT_WIDTH 1 /* FLL1_LOCK_EINT */
  3256. #define WM5100_CLKGEN_ERR_EINT 0x0002 /* CLKGEN_ERR_EINT */
  3257. #define WM5100_CLKGEN_ERR_EINT_MASK 0x0002 /* CLKGEN_ERR_EINT */
  3258. #define WM5100_CLKGEN_ERR_EINT_SHIFT 1 /* CLKGEN_ERR_EINT */
  3259. #define WM5100_CLKGEN_ERR_EINT_WIDTH 1 /* CLKGEN_ERR_EINT */
  3260. #define WM5100_CLKGEN_ERR_ASYNC_EINT 0x0001 /* CLKGEN_ERR_ASYNC_EINT */
  3261. #define WM5100_CLKGEN_ERR_ASYNC_EINT_MASK 0x0001 /* CLKGEN_ERR_ASYNC_EINT */
  3262. #define WM5100_CLKGEN_ERR_ASYNC_EINT_SHIFT 0 /* CLKGEN_ERR_ASYNC_EINT */
  3263. #define WM5100_CLKGEN_ERR_ASYNC_EINT_WIDTH 1 /* CLKGEN_ERR_ASYNC_EINT */
  3264. /*
  3265. * R3331 (0xD03) - Interrupt Status 4
  3266. */
  3267. #define WM5100_AIF3_ERR_EINT 0x2000 /* AIF3_ERR_EINT */
  3268. #define WM5100_AIF3_ERR_EINT_MASK 0x2000 /* AIF3_ERR_EINT */
  3269. #define WM5100_AIF3_ERR_EINT_SHIFT 13 /* AIF3_ERR_EINT */
  3270. #define WM5100_AIF3_ERR_EINT_WIDTH 1 /* AIF3_ERR_EINT */
  3271. #define WM5100_AIF2_ERR_EINT 0x1000 /* AIF2_ERR_EINT */
  3272. #define WM5100_AIF2_ERR_EINT_MASK 0x1000 /* AIF2_ERR_EINT */
  3273. #define WM5100_AIF2_ERR_EINT_SHIFT 12 /* AIF2_ERR_EINT */
  3274. #define WM5100_AIF2_ERR_EINT_WIDTH 1 /* AIF2_ERR_EINT */
  3275. #define WM5100_AIF1_ERR_EINT 0x0800 /* AIF1_ERR_EINT */
  3276. #define WM5100_AIF1_ERR_EINT_MASK 0x0800 /* AIF1_ERR_EINT */
  3277. #define WM5100_AIF1_ERR_EINT_SHIFT 11 /* AIF1_ERR_EINT */
  3278. #define WM5100_AIF1_ERR_EINT_WIDTH 1 /* AIF1_ERR_EINT */
  3279. #define WM5100_CTRLIF_ERR_EINT 0x0400 /* CTRLIF_ERR_EINT */
  3280. #define WM5100_CTRLIF_ERR_EINT_MASK 0x0400 /* CTRLIF_ERR_EINT */
  3281. #define WM5100_CTRLIF_ERR_EINT_SHIFT 10 /* CTRLIF_ERR_EINT */
  3282. #define WM5100_CTRLIF_ERR_EINT_WIDTH 1 /* CTRLIF_ERR_EINT */
  3283. #define WM5100_ISRC2_UNDERCLOCKED_EINT 0x0200 /* ISRC2_UNDERCLOCKED_EINT */
  3284. #define WM5100_ISRC2_UNDERCLOCKED_EINT_MASK 0x0200 /* ISRC2_UNDERCLOCKED_EINT */
  3285. #define WM5100_ISRC2_UNDERCLOCKED_EINT_SHIFT 9 /* ISRC2_UNDERCLOCKED_EINT */
  3286. #define WM5100_ISRC2_UNDERCLOCKED_EINT_WIDTH 1 /* ISRC2_UNDERCLOCKED_EINT */
  3287. #define WM5100_ISRC1_UNDERCLOCKED_EINT 0x0100 /* ISRC1_UNDERCLOCKED_EINT */
  3288. #define WM5100_ISRC1_UNDERCLOCKED_EINT_MASK 0x0100 /* ISRC1_UNDERCLOCKED_EINT */
  3289. #define WM5100_ISRC1_UNDERCLOCKED_EINT_SHIFT 8 /* ISRC1_UNDERCLOCKED_EINT */
  3290. #define WM5100_ISRC1_UNDERCLOCKED_EINT_WIDTH 1 /* ISRC1_UNDERCLOCKED_EINT */
  3291. #define WM5100_FX_UNDERCLOCKED_EINT 0x0080 /* FX_UNDERCLOCKED_EINT */
  3292. #define WM5100_FX_UNDERCLOCKED_EINT_MASK 0x0080 /* FX_UNDERCLOCKED_EINT */
  3293. #define WM5100_FX_UNDERCLOCKED_EINT_SHIFT 7 /* FX_UNDERCLOCKED_EINT */
  3294. #define WM5100_FX_UNDERCLOCKED_EINT_WIDTH 1 /* FX_UNDERCLOCKED_EINT */
  3295. #define WM5100_AIF3_UNDERCLOCKED_EINT 0x0040 /* AIF3_UNDERCLOCKED_EINT */
  3296. #define WM5100_AIF3_UNDERCLOCKED_EINT_MASK 0x0040 /* AIF3_UNDERCLOCKED_EINT */
  3297. #define WM5100_AIF3_UNDERCLOCKED_EINT_SHIFT 6 /* AIF3_UNDERCLOCKED_EINT */
  3298. #define WM5100_AIF3_UNDERCLOCKED_EINT_WIDTH 1 /* AIF3_UNDERCLOCKED_EINT */
  3299. #define WM5100_AIF2_UNDERCLOCKED_EINT 0x0020 /* AIF2_UNDERCLOCKED_EINT */
  3300. #define WM5100_AIF2_UNDERCLOCKED_EINT_MASK 0x0020 /* AIF2_UNDERCLOCKED_EINT */
  3301. #define WM5100_AIF2_UNDERCLOCKED_EINT_SHIFT 5 /* AIF2_UNDERCLOCKED_EINT */
  3302. #define WM5100_AIF2_UNDERCLOCKED_EINT_WIDTH 1 /* AIF2_UNDERCLOCKED_EINT */
  3303. #define WM5100_AIF1_UNDERCLOCKED_EINT 0x0010 /* AIF1_UNDERCLOCKED_EINT */
  3304. #define WM5100_AIF1_UNDERCLOCKED_EINT_MASK 0x0010 /* AIF1_UNDERCLOCKED_EINT */
  3305. #define WM5100_AIF1_UNDERCLOCKED_EINT_SHIFT 4 /* AIF1_UNDERCLOCKED_EINT */
  3306. #define WM5100_AIF1_UNDERCLOCKED_EINT_WIDTH 1 /* AIF1_UNDERCLOCKED_EINT */
  3307. #define WM5100_ASRC_UNDERCLOCKED_EINT 0x0008 /* ASRC_UNDERCLOCKED_EINT */
  3308. #define WM5100_ASRC_UNDERCLOCKED_EINT_MASK 0x0008 /* ASRC_UNDERCLOCKED_EINT */
  3309. #define WM5100_ASRC_UNDERCLOCKED_EINT_SHIFT 3 /* ASRC_UNDERCLOCKED_EINT */
  3310. #define WM5100_ASRC_UNDERCLOCKED_EINT_WIDTH 1 /* ASRC_UNDERCLOCKED_EINT */
  3311. #define WM5100_DAC_UNDERCLOCKED_EINT 0x0004 /* DAC_UNDERCLOCKED_EINT */
  3312. #define WM5100_DAC_UNDERCLOCKED_EINT_MASK 0x0004 /* DAC_UNDERCLOCKED_EINT */
  3313. #define WM5100_DAC_UNDERCLOCKED_EINT_SHIFT 2 /* DAC_UNDERCLOCKED_EINT */
  3314. #define WM5100_DAC_UNDERCLOCKED_EINT_WIDTH 1 /* DAC_UNDERCLOCKED_EINT */
  3315. #define WM5100_ADC_UNDERCLOCKED_EINT 0x0002 /* ADC_UNDERCLOCKED_EINT */
  3316. #define WM5100_ADC_UNDERCLOCKED_EINT_MASK 0x0002 /* ADC_UNDERCLOCKED_EINT */
  3317. #define WM5100_ADC_UNDERCLOCKED_EINT_SHIFT 1 /* ADC_UNDERCLOCKED_EINT */
  3318. #define WM5100_ADC_UNDERCLOCKED_EINT_WIDTH 1 /* ADC_UNDERCLOCKED_EINT */
  3319. #define WM5100_MIXER_UNDERCLOCKED_EINT 0x0001 /* MIXER_UNDERCLOCKED_EINT */
  3320. #define WM5100_MIXER_UNDERCLOCKED_EINT_MASK 0x0001 /* MIXER_UNDERCLOCKED_EINT */
  3321. #define WM5100_MIXER_UNDERCLOCKED_EINT_SHIFT 0 /* MIXER_UNDERCLOCKED_EINT */
  3322. #define WM5100_MIXER_UNDERCLOCKED_EINT_WIDTH 1 /* MIXER_UNDERCLOCKED_EINT */
  3323. /*
  3324. * R3332 (0xD04) - Interrupt Raw Status 2
  3325. */
  3326. #define WM5100_DSP_IRQ6_STS 0x0020 /* DSP_IRQ6_STS */
  3327. #define WM5100_DSP_IRQ6_STS_MASK 0x0020 /* DSP_IRQ6_STS */
  3328. #define WM5100_DSP_IRQ6_STS_SHIFT 5 /* DSP_IRQ6_STS */
  3329. #define WM5100_DSP_IRQ6_STS_WIDTH 1 /* DSP_IRQ6_STS */
  3330. #define WM5100_DSP_IRQ5_STS 0x0010 /* DSP_IRQ5_STS */
  3331. #define WM5100_DSP_IRQ5_STS_MASK 0x0010 /* DSP_IRQ5_STS */
  3332. #define WM5100_DSP_IRQ5_STS_SHIFT 4 /* DSP_IRQ5_STS */
  3333. #define WM5100_DSP_IRQ5_STS_WIDTH 1 /* DSP_IRQ5_STS */
  3334. #define WM5100_DSP_IRQ4_STS 0x0008 /* DSP_IRQ4_STS */
  3335. #define WM5100_DSP_IRQ4_STS_MASK 0x0008 /* DSP_IRQ4_STS */
  3336. #define WM5100_DSP_IRQ4_STS_SHIFT 3 /* DSP_IRQ4_STS */
  3337. #define WM5100_DSP_IRQ4_STS_WIDTH 1 /* DSP_IRQ4_STS */
  3338. #define WM5100_DSP_IRQ3_STS 0x0004 /* DSP_IRQ3_STS */
  3339. #define WM5100_DSP_IRQ3_STS_MASK 0x0004 /* DSP_IRQ3_STS */
  3340. #define WM5100_DSP_IRQ3_STS_SHIFT 2 /* DSP_IRQ3_STS */
  3341. #define WM5100_DSP_IRQ3_STS_WIDTH 1 /* DSP_IRQ3_STS */
  3342. #define WM5100_DSP_IRQ2_STS 0x0002 /* DSP_IRQ2_STS */
  3343. #define WM5100_DSP_IRQ2_STS_MASK 0x0002 /* DSP_IRQ2_STS */
  3344. #define WM5100_DSP_IRQ2_STS_SHIFT 1 /* DSP_IRQ2_STS */
  3345. #define WM5100_DSP_IRQ2_STS_WIDTH 1 /* DSP_IRQ2_STS */
  3346. #define WM5100_DSP_IRQ1_STS 0x0001 /* DSP_IRQ1_STS */
  3347. #define WM5100_DSP_IRQ1_STS_MASK 0x0001 /* DSP_IRQ1_STS */
  3348. #define WM5100_DSP_IRQ1_STS_SHIFT 0 /* DSP_IRQ1_STS */
  3349. #define WM5100_DSP_IRQ1_STS_WIDTH 1 /* DSP_IRQ1_STS */
  3350. /*
  3351. * R3333 (0xD05) - Interrupt Raw Status 3
  3352. */
  3353. #define WM5100_SPK_SHUTDOWN_WARN_STS 0x8000 /* SPK_SHUTDOWN_WARN_STS */
  3354. #define WM5100_SPK_SHUTDOWN_WARN_STS_MASK 0x8000 /* SPK_SHUTDOWN_WARN_STS */
  3355. #define WM5100_SPK_SHUTDOWN_WARN_STS_SHIFT 15 /* SPK_SHUTDOWN_WARN_STS */
  3356. #define WM5100_SPK_SHUTDOWN_WARN_STS_WIDTH 1 /* SPK_SHUTDOWN_WARN_STS */
  3357. #define WM5100_SPK_SHUTDOWN_STS 0x4000 /* SPK_SHUTDOWN_STS */
  3358. #define WM5100_SPK_SHUTDOWN_STS_MASK 0x4000 /* SPK_SHUTDOWN_STS */
  3359. #define WM5100_SPK_SHUTDOWN_STS_SHIFT 14 /* SPK_SHUTDOWN_STS */
  3360. #define WM5100_SPK_SHUTDOWN_STS_WIDTH 1 /* SPK_SHUTDOWN_STS */
  3361. #define WM5100_HPDET_STS 0x2000 /* HPDET_STS */
  3362. #define WM5100_HPDET_STS_MASK 0x2000 /* HPDET_STS */
  3363. #define WM5100_HPDET_STS_SHIFT 13 /* HPDET_STS */
  3364. #define WM5100_HPDET_STS_WIDTH 1 /* HPDET_STS */
  3365. #define WM5100_DRC_SID_DET_STS 0x0200 /* DRC_SID_DET_STS */
  3366. #define WM5100_DRC_SID_DET_STS_MASK 0x0200 /* DRC_SID_DET_STS */
  3367. #define WM5100_DRC_SID_DET_STS_SHIFT 9 /* DRC_SID_DET_STS */
  3368. #define WM5100_DRC_SID_DET_STS_WIDTH 1 /* DRC_SID_DET_STS */
  3369. #define WM5100_ASRC2_LOCK_STS 0x0100 /* ASRC2_LOCK_STS */
  3370. #define WM5100_ASRC2_LOCK_STS_MASK 0x0100 /* ASRC2_LOCK_STS */
  3371. #define WM5100_ASRC2_LOCK_STS_SHIFT 8 /* ASRC2_LOCK_STS */
  3372. #define WM5100_ASRC2_LOCK_STS_WIDTH 1 /* ASRC2_LOCK_STS */
  3373. #define WM5100_ASRC1_LOCK_STS 0x0080 /* ASRC1_LOCK_STS */
  3374. #define WM5100_ASRC1_LOCK_STS_MASK 0x0080 /* ASRC1_LOCK_STS */
  3375. #define WM5100_ASRC1_LOCK_STS_SHIFT 7 /* ASRC1_LOCK_STS */
  3376. #define WM5100_ASRC1_LOCK_STS_WIDTH 1 /* ASRC1_LOCK_STS */
  3377. #define WM5100_FLL2_LOCK_STS 0x0008 /* FLL2_LOCK_STS */
  3378. #define WM5100_FLL2_LOCK_STS_MASK 0x0008 /* FLL2_LOCK_STS */
  3379. #define WM5100_FLL2_LOCK_STS_SHIFT 3 /* FLL2_LOCK_STS */
  3380. #define WM5100_FLL2_LOCK_STS_WIDTH 1 /* FLL2_LOCK_STS */
  3381. #define WM5100_FLL1_LOCK_STS 0x0004 /* FLL1_LOCK_STS */
  3382. #define WM5100_FLL1_LOCK_STS_MASK 0x0004 /* FLL1_LOCK_STS */
  3383. #define WM5100_FLL1_LOCK_STS_SHIFT 2 /* FLL1_LOCK_STS */
  3384. #define WM5100_FLL1_LOCK_STS_WIDTH 1 /* FLL1_LOCK_STS */
  3385. #define WM5100_CLKGEN_ERR_STS 0x0002 /* CLKGEN_ERR_STS */
  3386. #define WM5100_CLKGEN_ERR_STS_MASK 0x0002 /* CLKGEN_ERR_STS */
  3387. #define WM5100_CLKGEN_ERR_STS_SHIFT 1 /* CLKGEN_ERR_STS */
  3388. #define WM5100_CLKGEN_ERR_STS_WIDTH 1 /* CLKGEN_ERR_STS */
  3389. #define WM5100_CLKGEN_ERR_ASYNC_STS 0x0001 /* CLKGEN_ERR_ASYNC_STS */
  3390. #define WM5100_CLKGEN_ERR_ASYNC_STS_MASK 0x0001 /* CLKGEN_ERR_ASYNC_STS */
  3391. #define WM5100_CLKGEN_ERR_ASYNC_STS_SHIFT 0 /* CLKGEN_ERR_ASYNC_STS */
  3392. #define WM5100_CLKGEN_ERR_ASYNC_STS_WIDTH 1 /* CLKGEN_ERR_ASYNC_STS */
  3393. /*
  3394. * R3334 (0xD06) - Interrupt Raw Status 4
  3395. */
  3396. #define WM5100_AIF3_ERR_STS 0x2000 /* AIF3_ERR_STS */
  3397. #define WM5100_AIF3_ERR_STS_MASK 0x2000 /* AIF3_ERR_STS */
  3398. #define WM5100_AIF3_ERR_STS_SHIFT 13 /* AIF3_ERR_STS */
  3399. #define WM5100_AIF3_ERR_STS_WIDTH 1 /* AIF3_ERR_STS */
  3400. #define WM5100_AIF2_ERR_STS 0x1000 /* AIF2_ERR_STS */
  3401. #define WM5100_AIF2_ERR_STS_MASK 0x1000 /* AIF2_ERR_STS */
  3402. #define WM5100_AIF2_ERR_STS_SHIFT 12 /* AIF2_ERR_STS */
  3403. #define WM5100_AIF2_ERR_STS_WIDTH 1 /* AIF2_ERR_STS */
  3404. #define WM5100_AIF1_ERR_STS 0x0800 /* AIF1_ERR_STS */
  3405. #define WM5100_AIF1_ERR_STS_MASK 0x0800 /* AIF1_ERR_STS */
  3406. #define WM5100_AIF1_ERR_STS_SHIFT 11 /* AIF1_ERR_STS */
  3407. #define WM5100_AIF1_ERR_STS_WIDTH 1 /* AIF1_ERR_STS */
  3408. #define WM5100_CTRLIF_ERR_STS 0x0400 /* CTRLIF_ERR_STS */
  3409. #define WM5100_CTRLIF_ERR_STS_MASK 0x0400 /* CTRLIF_ERR_STS */
  3410. #define WM5100_CTRLIF_ERR_STS_SHIFT 10 /* CTRLIF_ERR_STS */
  3411. #define WM5100_CTRLIF_ERR_STS_WIDTH 1 /* CTRLIF_ERR_STS */
  3412. #define WM5100_ISRC2_UNDERCLOCKED_STS 0x0200 /* ISRC2_UNDERCLOCKED_STS */
  3413. #define WM5100_ISRC2_UNDERCLOCKED_STS_MASK 0x0200 /* ISRC2_UNDERCLOCKED_STS */
  3414. #define WM5100_ISRC2_UNDERCLOCKED_STS_SHIFT 9 /* ISRC2_UNDERCLOCKED_STS */
  3415. #define WM5100_ISRC2_UNDERCLOCKED_STS_WIDTH 1 /* ISRC2_UNDERCLOCKED_STS */
  3416. #define WM5100_ISRC1_UNDERCLOCKED_STS 0x0100 /* ISRC1_UNDERCLOCKED_STS */
  3417. #define WM5100_ISRC1_UNDERCLOCKED_STS_MASK 0x0100 /* ISRC1_UNDERCLOCKED_STS */
  3418. #define WM5100_ISRC1_UNDERCLOCKED_STS_SHIFT 8 /* ISRC1_UNDERCLOCKED_STS */
  3419. #define WM5100_ISRC1_UNDERCLOCKED_STS_WIDTH 1 /* ISRC1_UNDERCLOCKED_STS */
  3420. #define WM5100_FX_UNDERCLOCKED_STS 0x0080 /* FX_UNDERCLOCKED_STS */
  3421. #define WM5100_FX_UNDERCLOCKED_STS_MASK 0x0080 /* FX_UNDERCLOCKED_STS */
  3422. #define WM5100_FX_UNDERCLOCKED_STS_SHIFT 7 /* FX_UNDERCLOCKED_STS */
  3423. #define WM5100_FX_UNDERCLOCKED_STS_WIDTH 1 /* FX_UNDERCLOCKED_STS */
  3424. #define WM5100_AIF3_UNDERCLOCKED_STS 0x0040 /* AIF3_UNDERCLOCKED_STS */
  3425. #define WM5100_AIF3_UNDERCLOCKED_STS_MASK 0x0040 /* AIF3_UNDERCLOCKED_STS */
  3426. #define WM5100_AIF3_UNDERCLOCKED_STS_SHIFT 6 /* AIF3_UNDERCLOCKED_STS */
  3427. #define WM5100_AIF3_UNDERCLOCKED_STS_WIDTH 1 /* AIF3_UNDERCLOCKED_STS */
  3428. #define WM5100_AIF2_UNDERCLOCKED_STS 0x0020 /* AIF2_UNDERCLOCKED_STS */
  3429. #define WM5100_AIF2_UNDERCLOCKED_STS_MASK 0x0020 /* AIF2_UNDERCLOCKED_STS */
  3430. #define WM5100_AIF2_UNDERCLOCKED_STS_SHIFT 5 /* AIF2_UNDERCLOCKED_STS */
  3431. #define WM5100_AIF2_UNDERCLOCKED_STS_WIDTH 1 /* AIF2_UNDERCLOCKED_STS */
  3432. #define WM5100_AIF1_UNDERCLOCKED_STS 0x0010 /* AIF1_UNDERCLOCKED_STS */
  3433. #define WM5100_AIF1_UNDERCLOCKED_STS_MASK 0x0010 /* AIF1_UNDERCLOCKED_STS */
  3434. #define WM5100_AIF1_UNDERCLOCKED_STS_SHIFT 4 /* AIF1_UNDERCLOCKED_STS */
  3435. #define WM5100_AIF1_UNDERCLOCKED_STS_WIDTH 1 /* AIF1_UNDERCLOCKED_STS */
  3436. #define WM5100_ASRC_UNDERCLOCKED_STS 0x0008 /* ASRC_UNDERCLOCKED_STS */
  3437. #define WM5100_ASRC_UNDERCLOCKED_STS_MASK 0x0008 /* ASRC_UNDERCLOCKED_STS */
  3438. #define WM5100_ASRC_UNDERCLOCKED_STS_SHIFT 3 /* ASRC_UNDERCLOCKED_STS */
  3439. #define WM5100_ASRC_UNDERCLOCKED_STS_WIDTH 1 /* ASRC_UNDERCLOCKED_STS */
  3440. #define WM5100_DAC_UNDERCLOCKED_STS 0x0004 /* DAC_UNDERCLOCKED_STS */
  3441. #define WM5100_DAC_UNDERCLOCKED_STS_MASK 0x0004 /* DAC_UNDERCLOCKED_STS */
  3442. #define WM5100_DAC_UNDERCLOCKED_STS_SHIFT 2 /* DAC_UNDERCLOCKED_STS */
  3443. #define WM5100_DAC_UNDERCLOCKED_STS_WIDTH 1 /* DAC_UNDERCLOCKED_STS */
  3444. #define WM5100_ADC_UNDERCLOCKED_STS 0x0002 /* ADC_UNDERCLOCKED_STS */
  3445. #define WM5100_ADC_UNDERCLOCKED_STS_MASK 0x0002 /* ADC_UNDERCLOCKED_STS */
  3446. #define WM5100_ADC_UNDERCLOCKED_STS_SHIFT 1 /* ADC_UNDERCLOCKED_STS */
  3447. #define WM5100_ADC_UNDERCLOCKED_STS_WIDTH 1 /* ADC_UNDERCLOCKED_STS */
  3448. #define WM5100_MIXER_UNDERCLOCKED_STS 0x0001 /* MIXER_UNDERCLOCKED_STS */
  3449. #define WM5100_MIXER_UNDERCLOCKED_STS_MASK 0x0001 /* MIXER_UNDERCLOCKED_STS */
  3450. #define WM5100_MIXER_UNDERCLOCKED_STS_SHIFT 0 /* MIXER_UNDERCLOCKED_STS */
  3451. #define WM5100_MIXER_UNDERCLOCKED_STS_WIDTH 1 /* MIXER_UNDERCLOCKED_STS */
  3452. /*
  3453. * R3335 (0xD07) - Interrupt Status 1 Mask
  3454. */
  3455. #define WM5100_IM_GP6_EINT 0x0020 /* IM_GP6_EINT */
  3456. #define WM5100_IM_GP6_EINT_MASK 0x0020 /* IM_GP6_EINT */
  3457. #define WM5100_IM_GP6_EINT_SHIFT 5 /* IM_GP6_EINT */
  3458. #define WM5100_IM_GP6_EINT_WIDTH 1 /* IM_GP6_EINT */
  3459. #define WM5100_IM_GP5_EINT 0x0010 /* IM_GP5_EINT */
  3460. #define WM5100_IM_GP5_EINT_MASK 0x0010 /* IM_GP5_EINT */
  3461. #define WM5100_IM_GP5_EINT_SHIFT 4 /* IM_GP5_EINT */
  3462. #define WM5100_IM_GP5_EINT_WIDTH 1 /* IM_GP5_EINT */
  3463. #define WM5100_IM_GP4_EINT 0x0008 /* IM_GP4_EINT */
  3464. #define WM5100_IM_GP4_EINT_MASK 0x0008 /* IM_GP4_EINT */
  3465. #define WM5100_IM_GP4_EINT_SHIFT 3 /* IM_GP4_EINT */
  3466. #define WM5100_IM_GP4_EINT_WIDTH 1 /* IM_GP4_EINT */
  3467. #define WM5100_IM_GP3_EINT 0x0004 /* IM_GP3_EINT */
  3468. #define WM5100_IM_GP3_EINT_MASK 0x0004 /* IM_GP3_EINT */
  3469. #define WM5100_IM_GP3_EINT_SHIFT 2 /* IM_GP3_EINT */
  3470. #define WM5100_IM_GP3_EINT_WIDTH 1 /* IM_GP3_EINT */
  3471. #define WM5100_IM_GP2_EINT 0x0002 /* IM_GP2_EINT */
  3472. #define WM5100_IM_GP2_EINT_MASK 0x0002 /* IM_GP2_EINT */
  3473. #define WM5100_IM_GP2_EINT_SHIFT 1 /* IM_GP2_EINT */
  3474. #define WM5100_IM_GP2_EINT_WIDTH 1 /* IM_GP2_EINT */
  3475. #define WM5100_IM_GP1_EINT 0x0001 /* IM_GP1_EINT */
  3476. #define WM5100_IM_GP1_EINT_MASK 0x0001 /* IM_GP1_EINT */
  3477. #define WM5100_IM_GP1_EINT_SHIFT 0 /* IM_GP1_EINT */
  3478. #define WM5100_IM_GP1_EINT_WIDTH 1 /* IM_GP1_EINT */
  3479. /*
  3480. * R3336 (0xD08) - Interrupt Status 2 Mask
  3481. */
  3482. #define WM5100_IM_DSP_IRQ6_EINT 0x0020 /* IM_DSP_IRQ6_EINT */
  3483. #define WM5100_IM_DSP_IRQ6_EINT_MASK 0x0020 /* IM_DSP_IRQ6_EINT */
  3484. #define WM5100_IM_DSP_IRQ6_EINT_SHIFT 5 /* IM_DSP_IRQ6_EINT */
  3485. #define WM5100_IM_DSP_IRQ6_EINT_WIDTH 1 /* IM_DSP_IRQ6_EINT */
  3486. #define WM5100_IM_DSP_IRQ5_EINT 0x0010 /* IM_DSP_IRQ5_EINT */
  3487. #define WM5100_IM_DSP_IRQ5_EINT_MASK 0x0010 /* IM_DSP_IRQ5_EINT */
  3488. #define WM5100_IM_DSP_IRQ5_EINT_SHIFT 4 /* IM_DSP_IRQ5_EINT */
  3489. #define WM5100_IM_DSP_IRQ5_EINT_WIDTH 1 /* IM_DSP_IRQ5_EINT */
  3490. #define WM5100_IM_DSP_IRQ4_EINT 0x0008 /* IM_DSP_IRQ4_EINT */
  3491. #define WM5100_IM_DSP_IRQ4_EINT_MASK 0x0008 /* IM_DSP_IRQ4_EINT */
  3492. #define WM5100_IM_DSP_IRQ4_EINT_SHIFT 3 /* IM_DSP_IRQ4_EINT */
  3493. #define WM5100_IM_DSP_IRQ4_EINT_WIDTH 1 /* IM_DSP_IRQ4_EINT */
  3494. #define WM5100_IM_DSP_IRQ3_EINT 0x0004 /* IM_DSP_IRQ3_EINT */
  3495. #define WM5100_IM_DSP_IRQ3_EINT_MASK 0x0004 /* IM_DSP_IRQ3_EINT */
  3496. #define WM5100_IM_DSP_IRQ3_EINT_SHIFT 2 /* IM_DSP_IRQ3_EINT */
  3497. #define WM5100_IM_DSP_IRQ3_EINT_WIDTH 1 /* IM_DSP_IRQ3_EINT */
  3498. #define WM5100_IM_DSP_IRQ2_EINT 0x0002 /* IM_DSP_IRQ2_EINT */
  3499. #define WM5100_IM_DSP_IRQ2_EINT_MASK 0x0002 /* IM_DSP_IRQ2_EINT */
  3500. #define WM5100_IM_DSP_IRQ2_EINT_SHIFT 1 /* IM_DSP_IRQ2_EINT */
  3501. #define WM5100_IM_DSP_IRQ2_EINT_WIDTH 1 /* IM_DSP_IRQ2_EINT */
  3502. #define WM5100_IM_DSP_IRQ1_EINT 0x0001 /* IM_DSP_IRQ1_EINT */
  3503. #define WM5100_IM_DSP_IRQ1_EINT_MASK 0x0001 /* IM_DSP_IRQ1_EINT */
  3504. #define WM5100_IM_DSP_IRQ1_EINT_SHIFT 0 /* IM_DSP_IRQ1_EINT */
  3505. #define WM5100_IM_DSP_IRQ1_EINT_WIDTH 1 /* IM_DSP_IRQ1_EINT */
  3506. /*
  3507. * R3337 (0xD09) - Interrupt Status 3 Mask
  3508. */
  3509. #define WM5100_IM_SPK_SHUTDOWN_WARN_EINT 0x8000 /* IM_SPK_SHUTDOWN_WARN_EINT */
  3510. #define WM5100_IM_SPK_SHUTDOWN_WARN_EINT_MASK 0x8000 /* IM_SPK_SHUTDOWN_WARN_EINT */
  3511. #define WM5100_IM_SPK_SHUTDOWN_WARN_EINT_SHIFT 15 /* IM_SPK_SHUTDOWN_WARN_EINT */
  3512. #define WM5100_IM_SPK_SHUTDOWN_WARN_EINT_WIDTH 1 /* IM_SPK_SHUTDOWN_WARN_EINT */
  3513. #define WM5100_IM_SPK_SHUTDOWN_EINT 0x4000 /* IM_SPK_SHUTDOWN_EINT */
  3514. #define WM5100_IM_SPK_SHUTDOWN_EINT_MASK 0x4000 /* IM_SPK_SHUTDOWN_EINT */
  3515. #define WM5100_IM_SPK_SHUTDOWN_EINT_SHIFT 14 /* IM_SPK_SHUTDOWN_EINT */
  3516. #define WM5100_IM_SPK_SHUTDOWN_EINT_WIDTH 1 /* IM_SPK_SHUTDOWN_EINT */
  3517. #define WM5100_IM_HPDET_EINT 0x2000 /* IM_HPDET_EINT */
  3518. #define WM5100_IM_HPDET_EINT_MASK 0x2000 /* IM_HPDET_EINT */
  3519. #define WM5100_IM_HPDET_EINT_SHIFT 13 /* IM_HPDET_EINT */
  3520. #define WM5100_IM_HPDET_EINT_WIDTH 1 /* IM_HPDET_EINT */
  3521. #define WM5100_IM_ACCDET_EINT 0x1000 /* IM_ACCDET_EINT */
  3522. #define WM5100_IM_ACCDET_EINT_MASK 0x1000 /* IM_ACCDET_EINT */
  3523. #define WM5100_IM_ACCDET_EINT_SHIFT 12 /* IM_ACCDET_EINT */
  3524. #define WM5100_IM_ACCDET_EINT_WIDTH 1 /* IM_ACCDET_EINT */
  3525. #define WM5100_IM_DRC_SIG_DET_EINT 0x0200 /* IM_DRC_SIG_DET_EINT */
  3526. #define WM5100_IM_DRC_SIG_DET_EINT_MASK 0x0200 /* IM_DRC_SIG_DET_EINT */
  3527. #define WM5100_IM_DRC_SIG_DET_EINT_SHIFT 9 /* IM_DRC_SIG_DET_EINT */
  3528. #define WM5100_IM_DRC_SIG_DET_EINT_WIDTH 1 /* IM_DRC_SIG_DET_EINT */
  3529. #define WM5100_IM_ASRC2_LOCK_EINT 0x0100 /* IM_ASRC2_LOCK_EINT */
  3530. #define WM5100_IM_ASRC2_LOCK_EINT_MASK 0x0100 /* IM_ASRC2_LOCK_EINT */
  3531. #define WM5100_IM_ASRC2_LOCK_EINT_SHIFT 8 /* IM_ASRC2_LOCK_EINT */
  3532. #define WM5100_IM_ASRC2_LOCK_EINT_WIDTH 1 /* IM_ASRC2_LOCK_EINT */
  3533. #define WM5100_IM_ASRC1_LOCK_EINT 0x0080 /* IM_ASRC1_LOCK_EINT */
  3534. #define WM5100_IM_ASRC1_LOCK_EINT_MASK 0x0080 /* IM_ASRC1_LOCK_EINT */
  3535. #define WM5100_IM_ASRC1_LOCK_EINT_SHIFT 7 /* IM_ASRC1_LOCK_EINT */
  3536. #define WM5100_IM_ASRC1_LOCK_EINT_WIDTH 1 /* IM_ASRC1_LOCK_EINT */
  3537. #define WM5100_IM_FLL2_LOCK_EINT 0x0008 /* IM_FLL2_LOCK_EINT */
  3538. #define WM5100_IM_FLL2_LOCK_EINT_MASK 0x0008 /* IM_FLL2_LOCK_EINT */
  3539. #define WM5100_IM_FLL2_LOCK_EINT_SHIFT 3 /* IM_FLL2_LOCK_EINT */
  3540. #define WM5100_IM_FLL2_LOCK_EINT_WIDTH 1 /* IM_FLL2_LOCK_EINT */
  3541. #define WM5100_IM_FLL1_LOCK_EINT 0x0004 /* IM_FLL1_LOCK_EINT */
  3542. #define WM5100_IM_FLL1_LOCK_EINT_MASK 0x0004 /* IM_FLL1_LOCK_EINT */
  3543. #define WM5100_IM_FLL1_LOCK_EINT_SHIFT 2 /* IM_FLL1_LOCK_EINT */
  3544. #define WM5100_IM_FLL1_LOCK_EINT_WIDTH 1 /* IM_FLL1_LOCK_EINT */
  3545. #define WM5100_IM_CLKGEN_ERR_EINT 0x0002 /* IM_CLKGEN_ERR_EINT */
  3546. #define WM5100_IM_CLKGEN_ERR_EINT_MASK 0x0002 /* IM_CLKGEN_ERR_EINT */
  3547. #define WM5100_IM_CLKGEN_ERR_EINT_SHIFT 1 /* IM_CLKGEN_ERR_EINT */
  3548. #define WM5100_IM_CLKGEN_ERR_EINT_WIDTH 1 /* IM_CLKGEN_ERR_EINT */
  3549. #define WM5100_IM_CLKGEN_ERR_ASYNC_EINT 0x0001 /* IM_CLKGEN_ERR_ASYNC_EINT */
  3550. #define WM5100_IM_CLKGEN_ERR_ASYNC_EINT_MASK 0x0001 /* IM_CLKGEN_ERR_ASYNC_EINT */
  3551. #define WM5100_IM_CLKGEN_ERR_ASYNC_EINT_SHIFT 0 /* IM_CLKGEN_ERR_ASYNC_EINT */
  3552. #define WM5100_IM_CLKGEN_ERR_ASYNC_EINT_WIDTH 1 /* IM_CLKGEN_ERR_ASYNC_EINT */
  3553. /*
  3554. * R3338 (0xD0A) - Interrupt Status 4 Mask
  3555. */
  3556. #define WM5100_IM_AIF3_ERR_EINT 0x2000 /* IM_AIF3_ERR_EINT */
  3557. #define WM5100_IM_AIF3_ERR_EINT_MASK 0x2000 /* IM_AIF3_ERR_EINT */
  3558. #define WM5100_IM_AIF3_ERR_EINT_SHIFT 13 /* IM_AIF3_ERR_EINT */
  3559. #define WM5100_IM_AIF3_ERR_EINT_WIDTH 1 /* IM_AIF3_ERR_EINT */
  3560. #define WM5100_IM_AIF2_ERR_EINT 0x1000 /* IM_AIF2_ERR_EINT */
  3561. #define WM5100_IM_AIF2_ERR_EINT_MASK 0x1000 /* IM_AIF2_ERR_EINT */
  3562. #define WM5100_IM_AIF2_ERR_EINT_SHIFT 12 /* IM_AIF2_ERR_EINT */
  3563. #define WM5100_IM_AIF2_ERR_EINT_WIDTH 1 /* IM_AIF2_ERR_EINT */
  3564. #define WM5100_IM_AIF1_ERR_EINT 0x0800 /* IM_AIF1_ERR_EINT */
  3565. #define WM5100_IM_AIF1_ERR_EINT_MASK 0x0800 /* IM_AIF1_ERR_EINT */
  3566. #define WM5100_IM_AIF1_ERR_EINT_SHIFT 11 /* IM_AIF1_ERR_EINT */
  3567. #define WM5100_IM_AIF1_ERR_EINT_WIDTH 1 /* IM_AIF1_ERR_EINT */
  3568. #define WM5100_IM_CTRLIF_ERR_EINT 0x0400 /* IM_CTRLIF_ERR_EINT */
  3569. #define WM5100_IM_CTRLIF_ERR_EINT_MASK 0x0400 /* IM_CTRLIF_ERR_EINT */
  3570. #define WM5100_IM_CTRLIF_ERR_EINT_SHIFT 10 /* IM_CTRLIF_ERR_EINT */
  3571. #define WM5100_IM_CTRLIF_ERR_EINT_WIDTH 1 /* IM_CTRLIF_ERR_EINT */
  3572. #define WM5100_IM_ISRC2_UNDERCLOCKED_EINT 0x0200 /* IM_ISRC2_UNDERCLOCKED_EINT */
  3573. #define WM5100_IM_ISRC2_UNDERCLOCKED_EINT_MASK 0x0200 /* IM_ISRC2_UNDERCLOCKED_EINT */
  3574. #define WM5100_IM_ISRC2_UNDERCLOCKED_EINT_SHIFT 9 /* IM_ISRC2_UNDERCLOCKED_EINT */
  3575. #define WM5100_IM_ISRC2_UNDERCLOCKED_EINT_WIDTH 1 /* IM_ISRC2_UNDERCLOCKED_EINT */
  3576. #define WM5100_IM_ISRC1_UNDERCLOCKED_EINT 0x0100 /* IM_ISRC1_UNDERCLOCKED_EINT */
  3577. #define WM5100_IM_ISRC1_UNDERCLOCKED_EINT_MASK 0x0100 /* IM_ISRC1_UNDERCLOCKED_EINT */
  3578. #define WM5100_IM_ISRC1_UNDERCLOCKED_EINT_SHIFT 8 /* IM_ISRC1_UNDERCLOCKED_EINT */
  3579. #define WM5100_IM_ISRC1_UNDERCLOCKED_EINT_WIDTH 1 /* IM_ISRC1_UNDERCLOCKED_EINT */
  3580. #define WM5100_IM_FX_UNDERCLOCKED_EINT 0x0080 /* IM_FX_UNDERCLOCKED_EINT */
  3581. #define WM5100_IM_FX_UNDERCLOCKED_EINT_MASK 0x0080 /* IM_FX_UNDERCLOCKED_EINT */
  3582. #define WM5100_IM_FX_UNDERCLOCKED_EINT_SHIFT 7 /* IM_FX_UNDERCLOCKED_EINT */
  3583. #define WM5100_IM_FX_UNDERCLOCKED_EINT_WIDTH 1 /* IM_FX_UNDERCLOCKED_EINT */
  3584. #define WM5100_IM_AIF3_UNDERCLOCKED_EINT 0x0040 /* IM_AIF3_UNDERCLOCKED_EINT */
  3585. #define WM5100_IM_AIF3_UNDERCLOCKED_EINT_MASK 0x0040 /* IM_AIF3_UNDERCLOCKED_EINT */
  3586. #define WM5100_IM_AIF3_UNDERCLOCKED_EINT_SHIFT 6 /* IM_AIF3_UNDERCLOCKED_EINT */
  3587. #define WM5100_IM_AIF3_UNDERCLOCKED_EINT_WIDTH 1 /* IM_AIF3_UNDERCLOCKED_EINT */
  3588. #define WM5100_IM_AIF2_UNDERCLOCKED_EINT 0x0020 /* IM_AIF2_UNDERCLOCKED_EINT */
  3589. #define WM5100_IM_AIF2_UNDERCLOCKED_EINT_MASK 0x0020 /* IM_AIF2_UNDERCLOCKED_EINT */
  3590. #define WM5100_IM_AIF2_UNDERCLOCKED_EINT_SHIFT 5 /* IM_AIF2_UNDERCLOCKED_EINT */
  3591. #define WM5100_IM_AIF2_UNDERCLOCKED_EINT_WIDTH 1 /* IM_AIF2_UNDERCLOCKED_EINT */
  3592. #define WM5100_IM_AIF1_UNDERCLOCKED_EINT 0x0010 /* IM_AIF1_UNDERCLOCKED_EINT */
  3593. #define WM5100_IM_AIF1_UNDERCLOCKED_EINT_MASK 0x0010 /* IM_AIF1_UNDERCLOCKED_EINT */
  3594. #define WM5100_IM_AIF1_UNDERCLOCKED_EINT_SHIFT 4 /* IM_AIF1_UNDERCLOCKED_EINT */
  3595. #define WM5100_IM_AIF1_UNDERCLOCKED_EINT_WIDTH 1 /* IM_AIF1_UNDERCLOCKED_EINT */
  3596. #define WM5100_IM_ASRC_UNDERCLOCKED_EINT 0x0008 /* IM_ASRC_UNDERCLOCKED_EINT */
  3597. #define WM5100_IM_ASRC_UNDERCLOCKED_EINT_MASK 0x0008 /* IM_ASRC_UNDERCLOCKED_EINT */
  3598. #define WM5100_IM_ASRC_UNDERCLOCKED_EINT_SHIFT 3 /* IM_ASRC_UNDERCLOCKED_EINT */
  3599. #define WM5100_IM_ASRC_UNDERCLOCKED_EINT_WIDTH 1 /* IM_ASRC_UNDERCLOCKED_EINT */
  3600. #define WM5100_IM_DAC_UNDERCLOCKED_EINT 0x0004 /* IM_DAC_UNDERCLOCKED_EINT */
  3601. #define WM5100_IM_DAC_UNDERCLOCKED_EINT_MASK 0x0004 /* IM_DAC_UNDERCLOCKED_EINT */
  3602. #define WM5100_IM_DAC_UNDERCLOCKED_EINT_SHIFT 2 /* IM_DAC_UNDERCLOCKED_EINT */
  3603. #define WM5100_IM_DAC_UNDERCLOCKED_EINT_WIDTH 1 /* IM_DAC_UNDERCLOCKED_EINT */
  3604. #define WM5100_IM_ADC_UNDERCLOCKED_EINT 0x0002 /* IM_ADC_UNDERCLOCKED_EINT */
  3605. #define WM5100_IM_ADC_UNDERCLOCKED_EINT_MASK 0x0002 /* IM_ADC_UNDERCLOCKED_EINT */
  3606. #define WM5100_IM_ADC_UNDERCLOCKED_EINT_SHIFT 1 /* IM_ADC_UNDERCLOCKED_EINT */
  3607. #define WM5100_IM_ADC_UNDERCLOCKED_EINT_WIDTH 1 /* IM_ADC_UNDERCLOCKED_EINT */
  3608. #define WM5100_IM_MIXER_UNDERCLOCKED_EINT 0x0001 /* IM_MIXER_UNDERCLOCKED_EINT */
  3609. #define WM5100_IM_MIXER_UNDERCLOCKED_EINT_MASK 0x0001 /* IM_MIXER_UNDERCLOCKED_EINT */
  3610. #define WM5100_IM_MIXER_UNDERCLOCKED_EINT_SHIFT 0 /* IM_MIXER_UNDERCLOCKED_EINT */
  3611. #define WM5100_IM_MIXER_UNDERCLOCKED_EINT_WIDTH 1 /* IM_MIXER_UNDERCLOCKED_EINT */
  3612. /*
  3613. * R3359 (0xD1F) - Interrupt Control
  3614. */
  3615. #define WM5100_IM_IRQ 0x0001 /* IM_IRQ */
  3616. #define WM5100_IM_IRQ_MASK 0x0001 /* IM_IRQ */
  3617. #define WM5100_IM_IRQ_SHIFT 0 /* IM_IRQ */
  3618. #define WM5100_IM_IRQ_WIDTH 1 /* IM_IRQ */
  3619. /*
  3620. * R3360 (0xD20) - IRQ Debounce 1
  3621. */
  3622. #define WM5100_SPK_SHUTDOWN_WARN_DB 0x0200 /* SPK_SHUTDOWN_WARN_DB */
  3623. #define WM5100_SPK_SHUTDOWN_WARN_DB_MASK 0x0200 /* SPK_SHUTDOWN_WARN_DB */
  3624. #define WM5100_SPK_SHUTDOWN_WARN_DB_SHIFT 9 /* SPK_SHUTDOWN_WARN_DB */
  3625. #define WM5100_SPK_SHUTDOWN_WARN_DB_WIDTH 1 /* SPK_SHUTDOWN_WARN_DB */
  3626. #define WM5100_SPK_SHUTDOWN_DB 0x0100 /* SPK_SHUTDOWN_DB */
  3627. #define WM5100_SPK_SHUTDOWN_DB_MASK 0x0100 /* SPK_SHUTDOWN_DB */
  3628. #define WM5100_SPK_SHUTDOWN_DB_SHIFT 8 /* SPK_SHUTDOWN_DB */
  3629. #define WM5100_SPK_SHUTDOWN_DB_WIDTH 1 /* SPK_SHUTDOWN_DB */
  3630. #define WM5100_FLL1_LOCK_IRQ_DB 0x0008 /* FLL1_LOCK_IRQ_DB */
  3631. #define WM5100_FLL1_LOCK_IRQ_DB_MASK 0x0008 /* FLL1_LOCK_IRQ_DB */
  3632. #define WM5100_FLL1_LOCK_IRQ_DB_SHIFT 3 /* FLL1_LOCK_IRQ_DB */
  3633. #define WM5100_FLL1_LOCK_IRQ_DB_WIDTH 1 /* FLL1_LOCK_IRQ_DB */
  3634. #define WM5100_FLL2_LOCK_IRQ_DB 0x0004 /* FLL2_LOCK_IRQ_DB */
  3635. #define WM5100_FLL2_LOCK_IRQ_DB_MASK 0x0004 /* FLL2_LOCK_IRQ_DB */
  3636. #define WM5100_FLL2_LOCK_IRQ_DB_SHIFT 2 /* FLL2_LOCK_IRQ_DB */
  3637. #define WM5100_FLL2_LOCK_IRQ_DB_WIDTH 1 /* FLL2_LOCK_IRQ_DB */
  3638. #define WM5100_CLKGEN_ERR_IRQ_DB 0x0002 /* CLKGEN_ERR_IRQ_DB */
  3639. #define WM5100_CLKGEN_ERR_IRQ_DB_MASK 0x0002 /* CLKGEN_ERR_IRQ_DB */
  3640. #define WM5100_CLKGEN_ERR_IRQ_DB_SHIFT 1 /* CLKGEN_ERR_IRQ_DB */
  3641. #define WM5100_CLKGEN_ERR_IRQ_DB_WIDTH 1 /* CLKGEN_ERR_IRQ_DB */
  3642. #define WM5100_CLKGEN_ERR_ASYNC_IRQ_DB 0x0001 /* CLKGEN_ERR_ASYNC_IRQ_DB */
  3643. #define WM5100_CLKGEN_ERR_ASYNC_IRQ_DB_MASK 0x0001 /* CLKGEN_ERR_ASYNC_IRQ_DB */
  3644. #define WM5100_CLKGEN_ERR_ASYNC_IRQ_DB_SHIFT 0 /* CLKGEN_ERR_ASYNC_IRQ_DB */
  3645. #define WM5100_CLKGEN_ERR_ASYNC_IRQ_DB_WIDTH 1 /* CLKGEN_ERR_ASYNC_IRQ_DB */
  3646. /*
  3647. * R3361 (0xD21) - IRQ Debounce 2
  3648. */
  3649. #define WM5100_AIF_ERR_DB 0x0001 /* AIF_ERR_DB */
  3650. #define WM5100_AIF_ERR_DB_MASK 0x0001 /* AIF_ERR_DB */
  3651. #define WM5100_AIF_ERR_DB_SHIFT 0 /* AIF_ERR_DB */
  3652. #define WM5100_AIF_ERR_DB_WIDTH 1 /* AIF_ERR_DB */
  3653. /*
  3654. * R3584 (0xE00) - FX_Ctrl
  3655. */
  3656. #define WM5100_FX_STS_MASK 0xFFC0 /* FX_STS - [15:6] */
  3657. #define WM5100_FX_STS_SHIFT 6 /* FX_STS - [15:6] */
  3658. #define WM5100_FX_STS_WIDTH 10 /* FX_STS - [15:6] */
  3659. #define WM5100_FX_RATE_MASK 0x0003 /* FX_RATE - [1:0] */
  3660. #define WM5100_FX_RATE_SHIFT 0 /* FX_RATE - [1:0] */
  3661. #define WM5100_FX_RATE_WIDTH 2 /* FX_RATE - [1:0] */
  3662. /*
  3663. * R3600 (0xE10) - EQ1_1
  3664. */
  3665. #define WM5100_EQ1_B1_GAIN_MASK 0xF800 /* EQ1_B1_GAIN - [15:11] */
  3666. #define WM5100_EQ1_B1_GAIN_SHIFT 11 /* EQ1_B1_GAIN - [15:11] */
  3667. #define WM5100_EQ1_B1_GAIN_WIDTH 5 /* EQ1_B1_GAIN - [15:11] */
  3668. #define WM5100_EQ1_B2_GAIN_MASK 0x07C0 /* EQ1_B2_GAIN - [10:6] */
  3669. #define WM5100_EQ1_B2_GAIN_SHIFT 6 /* EQ1_B2_GAIN - [10:6] */
  3670. #define WM5100_EQ1_B2_GAIN_WIDTH 5 /* EQ1_B2_GAIN - [10:6] */
  3671. #define WM5100_EQ1_B3_GAIN_MASK 0x003E /* EQ1_B3_GAIN - [5:1] */
  3672. #define WM5100_EQ1_B3_GAIN_SHIFT 1 /* EQ1_B3_GAIN - [5:1] */
  3673. #define WM5100_EQ1_B3_GAIN_WIDTH 5 /* EQ1_B3_GAIN - [5:1] */
  3674. #define WM5100_EQ1_ENA 0x0001 /* EQ1_ENA */
  3675. #define WM5100_EQ1_ENA_MASK 0x0001 /* EQ1_ENA */
  3676. #define WM5100_EQ1_ENA_SHIFT 0 /* EQ1_ENA */
  3677. #define WM5100_EQ1_ENA_WIDTH 1 /* EQ1_ENA */
  3678. /*
  3679. * R3601 (0xE11) - EQ1_2
  3680. */
  3681. #define WM5100_EQ1_B4_GAIN_MASK 0xF800 /* EQ1_B4_GAIN - [15:11] */
  3682. #define WM5100_EQ1_B4_GAIN_SHIFT 11 /* EQ1_B4_GAIN - [15:11] */
  3683. #define WM5100_EQ1_B4_GAIN_WIDTH 5 /* EQ1_B4_GAIN - [15:11] */
  3684. #define WM5100_EQ1_B5_GAIN_MASK 0x07C0 /* EQ1_B5_GAIN - [10:6] */
  3685. #define WM5100_EQ1_B5_GAIN_SHIFT 6 /* EQ1_B5_GAIN - [10:6] */
  3686. #define WM5100_EQ1_B5_GAIN_WIDTH 5 /* EQ1_B5_GAIN - [10:6] */
  3687. /*
  3688. * R3602 (0xE12) - EQ1_3
  3689. */
  3690. #define WM5100_EQ1_B1_A_MASK 0xFFFF /* EQ1_B1_A - [15:0] */
  3691. #define WM5100_EQ1_B1_A_SHIFT 0 /* EQ1_B1_A - [15:0] */
  3692. #define WM5100_EQ1_B1_A_WIDTH 16 /* EQ1_B1_A - [15:0] */
  3693. /*
  3694. * R3603 (0xE13) - EQ1_4
  3695. */
  3696. #define WM5100_EQ1_B1_B_MASK 0xFFFF /* EQ1_B1_B - [15:0] */
  3697. #define WM5100_EQ1_B1_B_SHIFT 0 /* EQ1_B1_B - [15:0] */
  3698. #define WM5100_EQ1_B1_B_WIDTH 16 /* EQ1_B1_B - [15:0] */
  3699. /*
  3700. * R3604 (0xE14) - EQ1_5
  3701. */
  3702. #define WM5100_EQ1_B1_PG_MASK 0xFFFF /* EQ1_B1_PG - [15:0] */
  3703. #define WM5100_EQ1_B1_PG_SHIFT 0 /* EQ1_B1_PG - [15:0] */
  3704. #define WM5100_EQ1_B1_PG_WIDTH 16 /* EQ1_B1_PG - [15:0] */
  3705. /*
  3706. * R3605 (0xE15) - EQ1_6
  3707. */
  3708. #define WM5100_EQ1_B2_A_MASK 0xFFFF /* EQ1_B2_A - [15:0] */
  3709. #define WM5100_EQ1_B2_A_SHIFT 0 /* EQ1_B2_A - [15:0] */
  3710. #define WM5100_EQ1_B2_A_WIDTH 16 /* EQ1_B2_A - [15:0] */
  3711. /*
  3712. * R3606 (0xE16) - EQ1_7
  3713. */
  3714. #define WM5100_EQ1_B2_B_MASK 0xFFFF /* EQ1_B2_B - [15:0] */
  3715. #define WM5100_EQ1_B2_B_SHIFT 0 /* EQ1_B2_B - [15:0] */
  3716. #define WM5100_EQ1_B2_B_WIDTH 16 /* EQ1_B2_B - [15:0] */
  3717. /*
  3718. * R3607 (0xE17) - EQ1_8
  3719. */
  3720. #define WM5100_EQ1_B2_C_MASK 0xFFFF /* EQ1_B2_C - [15:0] */
  3721. #define WM5100_EQ1_B2_C_SHIFT 0 /* EQ1_B2_C - [15:0] */
  3722. #define WM5100_EQ1_B2_C_WIDTH 16 /* EQ1_B2_C - [15:0] */
  3723. /*
  3724. * R3608 (0xE18) - EQ1_9
  3725. */
  3726. #define WM5100_EQ1_B2_PG_MASK 0xFFFF /* EQ1_B2_PG - [15:0] */
  3727. #define WM5100_EQ1_B2_PG_SHIFT 0 /* EQ1_B2_PG - [15:0] */
  3728. #define WM5100_EQ1_B2_PG_WIDTH 16 /* EQ1_B2_PG - [15:0] */
  3729. /*
  3730. * R3609 (0xE19) - EQ1_10
  3731. */
  3732. #define WM5100_EQ1_B3_A_MASK 0xFFFF /* EQ1_B3_A - [15:0] */
  3733. #define WM5100_EQ1_B3_A_SHIFT 0 /* EQ1_B3_A - [15:0] */
  3734. #define WM5100_EQ1_B3_A_WIDTH 16 /* EQ1_B3_A - [15:0] */
  3735. /*
  3736. * R3610 (0xE1A) - EQ1_11
  3737. */
  3738. #define WM5100_EQ1_B3_B_MASK 0xFFFF /* EQ1_B3_B - [15:0] */
  3739. #define WM5100_EQ1_B3_B_SHIFT 0 /* EQ1_B3_B - [15:0] */
  3740. #define WM5100_EQ1_B3_B_WIDTH 16 /* EQ1_B3_B - [15:0] */
  3741. /*
  3742. * R3611 (0xE1B) - EQ1_12
  3743. */
  3744. #define WM5100_EQ1_B3_C_MASK 0xFFFF /* EQ1_B3_C - [15:0] */
  3745. #define WM5100_EQ1_B3_C_SHIFT 0 /* EQ1_B3_C - [15:0] */
  3746. #define WM5100_EQ1_B3_C_WIDTH 16 /* EQ1_B3_C - [15:0] */
  3747. /*
  3748. * R3612 (0xE1C) - EQ1_13
  3749. */
  3750. #define WM5100_EQ1_B3_PG_MASK 0xFFFF /* EQ1_B3_PG - [15:0] */
  3751. #define WM5100_EQ1_B3_PG_SHIFT 0 /* EQ1_B3_PG - [15:0] */
  3752. #define WM5100_EQ1_B3_PG_WIDTH 16 /* EQ1_B3_PG - [15:0] */
  3753. /*
  3754. * R3613 (0xE1D) - EQ1_14
  3755. */
  3756. #define WM5100_EQ1_B4_A_MASK 0xFFFF /* EQ1_B4_A - [15:0] */
  3757. #define WM5100_EQ1_B4_A_SHIFT 0 /* EQ1_B4_A - [15:0] */
  3758. #define WM5100_EQ1_B4_A_WIDTH 16 /* EQ1_B4_A - [15:0] */
  3759. /*
  3760. * R3614 (0xE1E) - EQ1_15
  3761. */
  3762. #define WM5100_EQ1_B4_B_MASK 0xFFFF /* EQ1_B4_B - [15:0] */
  3763. #define WM5100_EQ1_B4_B_SHIFT 0 /* EQ1_B4_B - [15:0] */
  3764. #define WM5100_EQ1_B4_B_WIDTH 16 /* EQ1_B4_B - [15:0] */
  3765. /*
  3766. * R3615 (0xE1F) - EQ1_16
  3767. */
  3768. #define WM5100_EQ1_B4_C_MASK 0xFFFF /* EQ1_B4_C - [15:0] */
  3769. #define WM5100_EQ1_B4_C_SHIFT 0 /* EQ1_B4_C - [15:0] */
  3770. #define WM5100_EQ1_B4_C_WIDTH 16 /* EQ1_B4_C - [15:0] */
  3771. /*
  3772. * R3616 (0xE20) - EQ1_17
  3773. */
  3774. #define WM5100_EQ1_B4_PG_MASK 0xFFFF /* EQ1_B4_PG - [15:0] */
  3775. #define WM5100_EQ1_B4_PG_SHIFT 0 /* EQ1_B4_PG - [15:0] */
  3776. #define WM5100_EQ1_B4_PG_WIDTH 16 /* EQ1_B4_PG - [15:0] */
  3777. /*
  3778. * R3617 (0xE21) - EQ1_18
  3779. */
  3780. #define WM5100_EQ1_B5_A_MASK 0xFFFF /* EQ1_B5_A - [15:0] */
  3781. #define WM5100_EQ1_B5_A_SHIFT 0 /* EQ1_B5_A - [15:0] */
  3782. #define WM5100_EQ1_B5_A_WIDTH 16 /* EQ1_B5_A - [15:0] */
  3783. /*
  3784. * R3618 (0xE22) - EQ1_19
  3785. */
  3786. #define WM5100_EQ1_B5_B_MASK 0xFFFF /* EQ1_B5_B - [15:0] */
  3787. #define WM5100_EQ1_B5_B_SHIFT 0 /* EQ1_B5_B - [15:0] */
  3788. #define WM5100_EQ1_B5_B_WIDTH 16 /* EQ1_B5_B - [15:0] */
  3789. /*
  3790. * R3619 (0xE23) - EQ1_20
  3791. */
  3792. #define WM5100_EQ1_B5_PG_MASK 0xFFFF /* EQ1_B5_PG - [15:0] */
  3793. #define WM5100_EQ1_B5_PG_SHIFT 0 /* EQ1_B5_PG - [15:0] */
  3794. #define WM5100_EQ1_B5_PG_WIDTH 16 /* EQ1_B5_PG - [15:0] */
  3795. /*
  3796. * R3622 (0xE26) - EQ2_1
  3797. */
  3798. #define WM5100_EQ2_B1_GAIN_MASK 0xF800 /* EQ2_B1_GAIN - [15:11] */
  3799. #define WM5100_EQ2_B1_GAIN_SHIFT 11 /* EQ2_B1_GAIN - [15:11] */
  3800. #define WM5100_EQ2_B1_GAIN_WIDTH 5 /* EQ2_B1_GAIN - [15:11] */
  3801. #define WM5100_EQ2_B2_GAIN_MASK 0x07C0 /* EQ2_B2_GAIN - [10:6] */
  3802. #define WM5100_EQ2_B2_GAIN_SHIFT 6 /* EQ2_B2_GAIN - [10:6] */
  3803. #define WM5100_EQ2_B2_GAIN_WIDTH 5 /* EQ2_B2_GAIN - [10:6] */
  3804. #define WM5100_EQ2_B3_GAIN_MASK 0x003E /* EQ2_B3_GAIN - [5:1] */
  3805. #define WM5100_EQ2_B3_GAIN_SHIFT 1 /* EQ2_B3_GAIN - [5:1] */
  3806. #define WM5100_EQ2_B3_GAIN_WIDTH 5 /* EQ2_B3_GAIN - [5:1] */
  3807. #define WM5100_EQ2_ENA 0x0001 /* EQ2_ENA */
  3808. #define WM5100_EQ2_ENA_MASK 0x0001 /* EQ2_ENA */
  3809. #define WM5100_EQ2_ENA_SHIFT 0 /* EQ2_ENA */
  3810. #define WM5100_EQ2_ENA_WIDTH 1 /* EQ2_ENA */
  3811. /*
  3812. * R3623 (0xE27) - EQ2_2
  3813. */
  3814. #define WM5100_EQ2_B4_GAIN_MASK 0xF800 /* EQ2_B4_GAIN - [15:11] */
  3815. #define WM5100_EQ2_B4_GAIN_SHIFT 11 /* EQ2_B4_GAIN - [15:11] */
  3816. #define WM5100_EQ2_B4_GAIN_WIDTH 5 /* EQ2_B4_GAIN - [15:11] */
  3817. #define WM5100_EQ2_B5_GAIN_MASK 0x07C0 /* EQ2_B5_GAIN - [10:6] */
  3818. #define WM5100_EQ2_B5_GAIN_SHIFT 6 /* EQ2_B5_GAIN - [10:6] */
  3819. #define WM5100_EQ2_B5_GAIN_WIDTH 5 /* EQ2_B5_GAIN - [10:6] */
  3820. /*
  3821. * R3624 (0xE28) - EQ2_3
  3822. */
  3823. #define WM5100_EQ2_B1_A_MASK 0xFFFF /* EQ2_B1_A - [15:0] */
  3824. #define WM5100_EQ2_B1_A_SHIFT 0 /* EQ2_B1_A - [15:0] */
  3825. #define WM5100_EQ2_B1_A_WIDTH 16 /* EQ2_B1_A - [15:0] */
  3826. /*
  3827. * R3625 (0xE29) - EQ2_4
  3828. */
  3829. #define WM5100_EQ2_B1_B_MASK 0xFFFF /* EQ2_B1_B - [15:0] */
  3830. #define WM5100_EQ2_B1_B_SHIFT 0 /* EQ2_B1_B - [15:0] */
  3831. #define WM5100_EQ2_B1_B_WIDTH 16 /* EQ2_B1_B - [15:0] */
  3832. /*
  3833. * R3626 (0xE2A) - EQ2_5
  3834. */
  3835. #define WM5100_EQ2_B1_PG_MASK 0xFFFF /* EQ2_B1_PG - [15:0] */
  3836. #define WM5100_EQ2_B1_PG_SHIFT 0 /* EQ2_B1_PG - [15:0] */
  3837. #define WM5100_EQ2_B1_PG_WIDTH 16 /* EQ2_B1_PG - [15:0] */
  3838. /*
  3839. * R3627 (0xE2B) - EQ2_6
  3840. */
  3841. #define WM5100_EQ2_B2_A_MASK 0xFFFF /* EQ2_B2_A - [15:0] */
  3842. #define WM5100_EQ2_B2_A_SHIFT 0 /* EQ2_B2_A - [15:0] */
  3843. #define WM5100_EQ2_B2_A_WIDTH 16 /* EQ2_B2_A - [15:0] */
  3844. /*
  3845. * R3628 (0xE2C) - EQ2_7
  3846. */
  3847. #define WM5100_EQ2_B2_B_MASK 0xFFFF /* EQ2_B2_B - [15:0] */
  3848. #define WM5100_EQ2_B2_B_SHIFT 0 /* EQ2_B2_B - [15:0] */
  3849. #define WM5100_EQ2_B2_B_WIDTH 16 /* EQ2_B2_B - [15:0] */
  3850. /*
  3851. * R3629 (0xE2D) - EQ2_8
  3852. */
  3853. #define WM5100_EQ2_B2_C_MASK 0xFFFF /* EQ2_B2_C - [15:0] */
  3854. #define WM5100_EQ2_B2_C_SHIFT 0 /* EQ2_B2_C - [15:0] */
  3855. #define WM5100_EQ2_B2_C_WIDTH 16 /* EQ2_B2_C - [15:0] */
  3856. /*
  3857. * R3630 (0xE2E) - EQ2_9
  3858. */
  3859. #define WM5100_EQ2_B2_PG_MASK 0xFFFF /* EQ2_B2_PG - [15:0] */
  3860. #define WM5100_EQ2_B2_PG_SHIFT 0 /* EQ2_B2_PG - [15:0] */
  3861. #define WM5100_EQ2_B2_PG_WIDTH 16 /* EQ2_B2_PG - [15:0] */
  3862. /*
  3863. * R3631 (0xE2F) - EQ2_10
  3864. */
  3865. #define WM5100_EQ2_B3_A_MASK 0xFFFF /* EQ2_B3_A - [15:0] */
  3866. #define WM5100_EQ2_B3_A_SHIFT 0 /* EQ2_B3_A - [15:0] */
  3867. #define WM5100_EQ2_B3_A_WIDTH 16 /* EQ2_B3_A - [15:0] */
  3868. /*
  3869. * R3632 (0xE30) - EQ2_11
  3870. */
  3871. #define WM5100_EQ2_B3_B_MASK 0xFFFF /* EQ2_B3_B - [15:0] */
  3872. #define WM5100_EQ2_B3_B_SHIFT 0 /* EQ2_B3_B - [15:0] */
  3873. #define WM5100_EQ2_B3_B_WIDTH 16 /* EQ2_B3_B - [15:0] */
  3874. /*
  3875. * R3633 (0xE31) - EQ2_12
  3876. */
  3877. #define WM5100_EQ2_B3_C_MASK 0xFFFF /* EQ2_B3_C - [15:0] */
  3878. #define WM5100_EQ2_B3_C_SHIFT 0 /* EQ2_B3_C - [15:0] */
  3879. #define WM5100_EQ2_B3_C_WIDTH 16 /* EQ2_B3_C - [15:0] */
  3880. /*
  3881. * R3634 (0xE32) - EQ2_13
  3882. */
  3883. #define WM5100_EQ2_B3_PG_MASK 0xFFFF /* EQ2_B3_PG - [15:0] */
  3884. #define WM5100_EQ2_B3_PG_SHIFT 0 /* EQ2_B3_PG - [15:0] */
  3885. #define WM5100_EQ2_B3_PG_WIDTH 16 /* EQ2_B3_PG - [15:0] */
  3886. /*
  3887. * R3635 (0xE33) - EQ2_14
  3888. */
  3889. #define WM5100_EQ2_B4_A_MASK 0xFFFF /* EQ2_B4_A - [15:0] */
  3890. #define WM5100_EQ2_B4_A_SHIFT 0 /* EQ2_B4_A - [15:0] */
  3891. #define WM5100_EQ2_B4_A_WIDTH 16 /* EQ2_B4_A - [15:0] */
  3892. /*
  3893. * R3636 (0xE34) - EQ2_15
  3894. */
  3895. #define WM5100_EQ2_B4_B_MASK 0xFFFF /* EQ2_B4_B - [15:0] */
  3896. #define WM5100_EQ2_B4_B_SHIFT 0 /* EQ2_B4_B - [15:0] */
  3897. #define WM5100_EQ2_B4_B_WIDTH 16 /* EQ2_B4_B - [15:0] */
  3898. /*
  3899. * R3637 (0xE35) - EQ2_16
  3900. */
  3901. #define WM5100_EQ2_B4_C_MASK 0xFFFF /* EQ2_B4_C - [15:0] */
  3902. #define WM5100_EQ2_B4_C_SHIFT 0 /* EQ2_B4_C - [15:0] */
  3903. #define WM5100_EQ2_B4_C_WIDTH 16 /* EQ2_B4_C - [15:0] */
  3904. /*
  3905. * R3638 (0xE36) - EQ2_17
  3906. */
  3907. #define WM5100_EQ2_B4_PG_MASK 0xFFFF /* EQ2_B4_PG - [15:0] */
  3908. #define WM5100_EQ2_B4_PG_SHIFT 0 /* EQ2_B4_PG - [15:0] */
  3909. #define WM5100_EQ2_B4_PG_WIDTH 16 /* EQ2_B4_PG - [15:0] */
  3910. /*
  3911. * R3639 (0xE37) - EQ2_18
  3912. */
  3913. #define WM5100_EQ2_B5_A_MASK 0xFFFF /* EQ2_B5_A - [15:0] */
  3914. #define WM5100_EQ2_B5_A_SHIFT 0 /* EQ2_B5_A - [15:0] */
  3915. #define WM5100_EQ2_B5_A_WIDTH 16 /* EQ2_B5_A - [15:0] */
  3916. /*
  3917. * R3640 (0xE38) - EQ2_19
  3918. */
  3919. #define WM5100_EQ2_B5_B_MASK 0xFFFF /* EQ2_B5_B - [15:0] */
  3920. #define WM5100_EQ2_B5_B_SHIFT 0 /* EQ2_B5_B - [15:0] */
  3921. #define WM5100_EQ2_B5_B_WIDTH 16 /* EQ2_B5_B - [15:0] */
  3922. /*
  3923. * R3641 (0xE39) - EQ2_20
  3924. */
  3925. #define WM5100_EQ2_B5_PG_MASK 0xFFFF /* EQ2_B5_PG - [15:0] */
  3926. #define WM5100_EQ2_B5_PG_SHIFT 0 /* EQ2_B5_PG - [15:0] */
  3927. #define WM5100_EQ2_B5_PG_WIDTH 16 /* EQ2_B5_PG - [15:0] */
  3928. /*
  3929. * R3644 (0xE3C) - EQ3_1
  3930. */
  3931. #define WM5100_EQ3_B1_GAIN_MASK 0xF800 /* EQ3_B1_GAIN - [15:11] */
  3932. #define WM5100_EQ3_B1_GAIN_SHIFT 11 /* EQ3_B1_GAIN - [15:11] */
  3933. #define WM5100_EQ3_B1_GAIN_WIDTH 5 /* EQ3_B1_GAIN - [15:11] */
  3934. #define WM5100_EQ3_B2_GAIN_MASK 0x07C0 /* EQ3_B2_GAIN - [10:6] */
  3935. #define WM5100_EQ3_B2_GAIN_SHIFT 6 /* EQ3_B2_GAIN - [10:6] */
  3936. #define WM5100_EQ3_B2_GAIN_WIDTH 5 /* EQ3_B2_GAIN - [10:6] */
  3937. #define WM5100_EQ3_B3_GAIN_MASK 0x003E /* EQ3_B3_GAIN - [5:1] */
  3938. #define WM5100_EQ3_B3_GAIN_SHIFT 1 /* EQ3_B3_GAIN - [5:1] */
  3939. #define WM5100_EQ3_B3_GAIN_WIDTH 5 /* EQ3_B3_GAIN - [5:1] */
  3940. #define WM5100_EQ3_ENA 0x0001 /* EQ3_ENA */
  3941. #define WM5100_EQ3_ENA_MASK 0x0001 /* EQ3_ENA */
  3942. #define WM5100_EQ3_ENA_SHIFT 0 /* EQ3_ENA */
  3943. #define WM5100_EQ3_ENA_WIDTH 1 /* EQ3_ENA */
  3944. /*
  3945. * R3645 (0xE3D) - EQ3_2
  3946. */
  3947. #define WM5100_EQ3_B4_GAIN_MASK 0xF800 /* EQ3_B4_GAIN - [15:11] */
  3948. #define WM5100_EQ3_B4_GAIN_SHIFT 11 /* EQ3_B4_GAIN - [15:11] */
  3949. #define WM5100_EQ3_B4_GAIN_WIDTH 5 /* EQ3_B4_GAIN - [15:11] */
  3950. #define WM5100_EQ3_B5_GAIN_MASK 0x07C0 /* EQ3_B5_GAIN - [10:6] */
  3951. #define WM5100_EQ3_B5_GAIN_SHIFT 6 /* EQ3_B5_GAIN - [10:6] */
  3952. #define WM5100_EQ3_B5_GAIN_WIDTH 5 /* EQ3_B5_GAIN - [10:6] */
  3953. /*
  3954. * R3646 (0xE3E) - EQ3_3
  3955. */
  3956. #define WM5100_EQ3_B1_A_MASK 0xFFFF /* EQ3_B1_A - [15:0] */
  3957. #define WM5100_EQ3_B1_A_SHIFT 0 /* EQ3_B1_A - [15:0] */
  3958. #define WM5100_EQ3_B1_A_WIDTH 16 /* EQ3_B1_A - [15:0] */
  3959. /*
  3960. * R3647 (0xE3F) - EQ3_4
  3961. */
  3962. #define WM5100_EQ3_B1_B_MASK 0xFFFF /* EQ3_B1_B - [15:0] */
  3963. #define WM5100_EQ3_B1_B_SHIFT 0 /* EQ3_B1_B - [15:0] */
  3964. #define WM5100_EQ3_B1_B_WIDTH 16 /* EQ3_B1_B - [15:0] */
  3965. /*
  3966. * R3648 (0xE40) - EQ3_5
  3967. */
  3968. #define WM5100_EQ3_B1_PG_MASK 0xFFFF /* EQ3_B1_PG - [15:0] */
  3969. #define WM5100_EQ3_B1_PG_SHIFT 0 /* EQ3_B1_PG - [15:0] */
  3970. #define WM5100_EQ3_B1_PG_WIDTH 16 /* EQ3_B1_PG - [15:0] */
  3971. /*
  3972. * R3649 (0xE41) - EQ3_6
  3973. */
  3974. #define WM5100_EQ3_B2_A_MASK 0xFFFF /* EQ3_B2_A - [15:0] */
  3975. #define WM5100_EQ3_B2_A_SHIFT 0 /* EQ3_B2_A - [15:0] */
  3976. #define WM5100_EQ3_B2_A_WIDTH 16 /* EQ3_B2_A - [15:0] */
  3977. /*
  3978. * R3650 (0xE42) - EQ3_7
  3979. */
  3980. #define WM5100_EQ3_B2_B_MASK 0xFFFF /* EQ3_B2_B - [15:0] */
  3981. #define WM5100_EQ3_B2_B_SHIFT 0 /* EQ3_B2_B - [15:0] */
  3982. #define WM5100_EQ3_B2_B_WIDTH 16 /* EQ3_B2_B - [15:0] */
  3983. /*
  3984. * R3651 (0xE43) - EQ3_8
  3985. */
  3986. #define WM5100_EQ3_B2_C_MASK 0xFFFF /* EQ3_B2_C - [15:0] */
  3987. #define WM5100_EQ3_B2_C_SHIFT 0 /* EQ3_B2_C - [15:0] */
  3988. #define WM5100_EQ3_B2_C_WIDTH 16 /* EQ3_B2_C - [15:0] */
  3989. /*
  3990. * R3652 (0xE44) - EQ3_9
  3991. */
  3992. #define WM5100_EQ3_B2_PG_MASK 0xFFFF /* EQ3_B2_PG - [15:0] */
  3993. #define WM5100_EQ3_B2_PG_SHIFT 0 /* EQ3_B2_PG - [15:0] */
  3994. #define WM5100_EQ3_B2_PG_WIDTH 16 /* EQ3_B2_PG - [15:0] */
  3995. /*
  3996. * R3653 (0xE45) - EQ3_10
  3997. */
  3998. #define WM5100_EQ3_B3_A_MASK 0xFFFF /* EQ3_B3_A - [15:0] */
  3999. #define WM5100_EQ3_B3_A_SHIFT 0 /* EQ3_B3_A - [15:0] */
  4000. #define WM5100_EQ3_B3_A_WIDTH 16 /* EQ3_B3_A - [15:0] */
  4001. /*
  4002. * R3654 (0xE46) - EQ3_11
  4003. */
  4004. #define WM5100_EQ3_B3_B_MASK 0xFFFF /* EQ3_B3_B - [15:0] */
  4005. #define WM5100_EQ3_B3_B_SHIFT 0 /* EQ3_B3_B - [15:0] */
  4006. #define WM5100_EQ3_B3_B_WIDTH 16 /* EQ3_B3_B - [15:0] */
  4007. /*
  4008. * R3655 (0xE47) - EQ3_12
  4009. */
  4010. #define WM5100_EQ3_B3_C_MASK 0xFFFF /* EQ3_B3_C - [15:0] */
  4011. #define WM5100_EQ3_B3_C_SHIFT 0 /* EQ3_B3_C - [15:0] */
  4012. #define WM5100_EQ3_B3_C_WIDTH 16 /* EQ3_B3_C - [15:0] */
  4013. /*
  4014. * R3656 (0xE48) - EQ3_13
  4015. */
  4016. #define WM5100_EQ3_B3_PG_MASK 0xFFFF /* EQ3_B3_PG - [15:0] */
  4017. #define WM5100_EQ3_B3_PG_SHIFT 0 /* EQ3_B3_PG - [15:0] */
  4018. #define WM5100_EQ3_B3_PG_WIDTH 16 /* EQ3_B3_PG - [15:0] */
  4019. /*
  4020. * R3657 (0xE49) - EQ3_14
  4021. */
  4022. #define WM5100_EQ3_B4_A_MASK 0xFFFF /* EQ3_B4_A - [15:0] */
  4023. #define WM5100_EQ3_B4_A_SHIFT 0 /* EQ3_B4_A - [15:0] */
  4024. #define WM5100_EQ3_B4_A_WIDTH 16 /* EQ3_B4_A - [15:0] */
  4025. /*
  4026. * R3658 (0xE4A) - EQ3_15
  4027. */
  4028. #define WM5100_EQ3_B4_B_MASK 0xFFFF /* EQ3_B4_B - [15:0] */
  4029. #define WM5100_EQ3_B4_B_SHIFT 0 /* EQ3_B4_B - [15:0] */
  4030. #define WM5100_EQ3_B4_B_WIDTH 16 /* EQ3_B4_B - [15:0] */
  4031. /*
  4032. * R3659 (0xE4B) - EQ3_16
  4033. */
  4034. #define WM5100_EQ3_B4_C_MASK 0xFFFF /* EQ3_B4_C - [15:0] */
  4035. #define WM5100_EQ3_B4_C_SHIFT 0 /* EQ3_B4_C - [15:0] */
  4036. #define WM5100_EQ3_B4_C_WIDTH 16 /* EQ3_B4_C - [15:0] */
  4037. /*
  4038. * R3660 (0xE4C) - EQ3_17
  4039. */
  4040. #define WM5100_EQ3_B4_PG_MASK 0xFFFF /* EQ3_B4_PG - [15:0] */
  4041. #define WM5100_EQ3_B4_PG_SHIFT 0 /* EQ3_B4_PG - [15:0] */
  4042. #define WM5100_EQ3_B4_PG_WIDTH 16 /* EQ3_B4_PG - [15:0] */
  4043. /*
  4044. * R3661 (0xE4D) - EQ3_18
  4045. */
  4046. #define WM5100_EQ3_B5_A_MASK 0xFFFF /* EQ3_B5_A - [15:0] */
  4047. #define WM5100_EQ3_B5_A_SHIFT 0 /* EQ3_B5_A - [15:0] */
  4048. #define WM5100_EQ3_B5_A_WIDTH 16 /* EQ3_B5_A - [15:0] */
  4049. /*
  4050. * R3662 (0xE4E) - EQ3_19
  4051. */
  4052. #define WM5100_EQ3_B5_B_MASK 0xFFFF /* EQ3_B5_B - [15:0] */
  4053. #define WM5100_EQ3_B5_B_SHIFT 0 /* EQ3_B5_B - [15:0] */
  4054. #define WM5100_EQ3_B5_B_WIDTH 16 /* EQ3_B5_B - [15:0] */
  4055. /*
  4056. * R3663 (0xE4F) - EQ3_20
  4057. */
  4058. #define WM5100_EQ3_B5_PG_MASK 0xFFFF /* EQ3_B5_PG - [15:0] */
  4059. #define WM5100_EQ3_B5_PG_SHIFT 0 /* EQ3_B5_PG - [15:0] */
  4060. #define WM5100_EQ3_B5_PG_WIDTH 16 /* EQ3_B5_PG - [15:0] */
  4061. /*
  4062. * R3666 (0xE52) - EQ4_1
  4063. */
  4064. #define WM5100_EQ4_B1_GAIN_MASK 0xF800 /* EQ4_B1_GAIN - [15:11] */
  4065. #define WM5100_EQ4_B1_GAIN_SHIFT 11 /* EQ4_B1_GAIN - [15:11] */
  4066. #define WM5100_EQ4_B1_GAIN_WIDTH 5 /* EQ4_B1_GAIN - [15:11] */
  4067. #define WM5100_EQ4_B2_GAIN_MASK 0x07C0 /* EQ4_B2_GAIN - [10:6] */
  4068. #define WM5100_EQ4_B2_GAIN_SHIFT 6 /* EQ4_B2_GAIN - [10:6] */
  4069. #define WM5100_EQ4_B2_GAIN_WIDTH 5 /* EQ4_B2_GAIN - [10:6] */
  4070. #define WM5100_EQ4_B3_GAIN_MASK 0x003E /* EQ4_B3_GAIN - [5:1] */
  4071. #define WM5100_EQ4_B3_GAIN_SHIFT 1 /* EQ4_B3_GAIN - [5:1] */
  4072. #define WM5100_EQ4_B3_GAIN_WIDTH 5 /* EQ4_B3_GAIN - [5:1] */
  4073. #define WM5100_EQ4_ENA 0x0001 /* EQ4_ENA */
  4074. #define WM5100_EQ4_ENA_MASK 0x0001 /* EQ4_ENA */
  4075. #define WM5100_EQ4_ENA_SHIFT 0 /* EQ4_ENA */
  4076. #define WM5100_EQ4_ENA_WIDTH 1 /* EQ4_ENA */
  4077. /*
  4078. * R3667 (0xE53) - EQ4_2
  4079. */
  4080. #define WM5100_EQ4_B4_GAIN_MASK 0xF800 /* EQ4_B4_GAIN - [15:11] */
  4081. #define WM5100_EQ4_B4_GAIN_SHIFT 11 /* EQ4_B4_GAIN - [15:11] */
  4082. #define WM5100_EQ4_B4_GAIN_WIDTH 5 /* EQ4_B4_GAIN - [15:11] */
  4083. #define WM5100_EQ4_B5_GAIN_MASK 0x07C0 /* EQ4_B5_GAIN - [10:6] */
  4084. #define WM5100_EQ4_B5_GAIN_SHIFT 6 /* EQ4_B5_GAIN - [10:6] */
  4085. #define WM5100_EQ4_B5_GAIN_WIDTH 5 /* EQ4_B5_GAIN - [10:6] */
  4086. /*
  4087. * R3668 (0xE54) - EQ4_3
  4088. */
  4089. #define WM5100_EQ4_B1_A_MASK 0xFFFF /* EQ4_B1_A - [15:0] */
  4090. #define WM5100_EQ4_B1_A_SHIFT 0 /* EQ4_B1_A - [15:0] */
  4091. #define WM5100_EQ4_B1_A_WIDTH 16 /* EQ4_B1_A - [15:0] */
  4092. /*
  4093. * R3669 (0xE55) - EQ4_4
  4094. */
  4095. #define WM5100_EQ4_B1_B_MASK 0xFFFF /* EQ4_B1_B - [15:0] */
  4096. #define WM5100_EQ4_B1_B_SHIFT 0 /* EQ4_B1_B - [15:0] */
  4097. #define WM5100_EQ4_B1_B_WIDTH 16 /* EQ4_B1_B - [15:0] */
  4098. /*
  4099. * R3670 (0xE56) - EQ4_5
  4100. */
  4101. #define WM5100_EQ4_B1_PG_MASK 0xFFFF /* EQ4_B1_PG - [15:0] */
  4102. #define WM5100_EQ4_B1_PG_SHIFT 0 /* EQ4_B1_PG - [15:0] */
  4103. #define WM5100_EQ4_B1_PG_WIDTH 16 /* EQ4_B1_PG - [15:0] */
  4104. /*
  4105. * R3671 (0xE57) - EQ4_6
  4106. */
  4107. #define WM5100_EQ4_B2_A_MASK 0xFFFF /* EQ4_B2_A - [15:0] */
  4108. #define WM5100_EQ4_B2_A_SHIFT 0 /* EQ4_B2_A - [15:0] */
  4109. #define WM5100_EQ4_B2_A_WIDTH 16 /* EQ4_B2_A - [15:0] */
  4110. /*
  4111. * R3672 (0xE58) - EQ4_7
  4112. */
  4113. #define WM5100_EQ4_B2_B_MASK 0xFFFF /* EQ4_B2_B - [15:0] */
  4114. #define WM5100_EQ4_B2_B_SHIFT 0 /* EQ4_B2_B - [15:0] */
  4115. #define WM5100_EQ4_B2_B_WIDTH 16 /* EQ4_B2_B - [15:0] */
  4116. /*
  4117. * R3673 (0xE59) - EQ4_8
  4118. */
  4119. #define WM5100_EQ4_B2_C_MASK 0xFFFF /* EQ4_B2_C - [15:0] */
  4120. #define WM5100_EQ4_B2_C_SHIFT 0 /* EQ4_B2_C - [15:0] */
  4121. #define WM5100_EQ4_B2_C_WIDTH 16 /* EQ4_B2_C - [15:0] */
  4122. /*
  4123. * R3674 (0xE5A) - EQ4_9
  4124. */
  4125. #define WM5100_EQ4_B2_PG_MASK 0xFFFF /* EQ4_B2_PG - [15:0] */
  4126. #define WM5100_EQ4_B2_PG_SHIFT 0 /* EQ4_B2_PG - [15:0] */
  4127. #define WM5100_EQ4_B2_PG_WIDTH 16 /* EQ4_B2_PG - [15:0] */
  4128. /*
  4129. * R3675 (0xE5B) - EQ4_10
  4130. */
  4131. #define WM5100_EQ4_B3_A_MASK 0xFFFF /* EQ4_B3_A - [15:0] */
  4132. #define WM5100_EQ4_B3_A_SHIFT 0 /* EQ4_B3_A - [15:0] */
  4133. #define WM5100_EQ4_B3_A_WIDTH 16 /* EQ4_B3_A - [15:0] */
  4134. /*
  4135. * R3676 (0xE5C) - EQ4_11
  4136. */
  4137. #define WM5100_EQ4_B3_B_MASK 0xFFFF /* EQ4_B3_B - [15:0] */
  4138. #define WM5100_EQ4_B3_B_SHIFT 0 /* EQ4_B3_B - [15:0] */
  4139. #define WM5100_EQ4_B3_B_WIDTH 16 /* EQ4_B3_B - [15:0] */
  4140. /*
  4141. * R3677 (0xE5D) - EQ4_12
  4142. */
  4143. #define WM5100_EQ4_B3_C_MASK 0xFFFF /* EQ4_B3_C - [15:0] */
  4144. #define WM5100_EQ4_B3_C_SHIFT 0 /* EQ4_B3_C - [15:0] */
  4145. #define WM5100_EQ4_B3_C_WIDTH 16 /* EQ4_B3_C - [15:0] */
  4146. /*
  4147. * R3678 (0xE5E) - EQ4_13
  4148. */
  4149. #define WM5100_EQ4_B3_PG_MASK 0xFFFF /* EQ4_B3_PG - [15:0] */
  4150. #define WM5100_EQ4_B3_PG_SHIFT 0 /* EQ4_B3_PG - [15:0] */
  4151. #define WM5100_EQ4_B3_PG_WIDTH 16 /* EQ4_B3_PG - [15:0] */
  4152. /*
  4153. * R3679 (0xE5F) - EQ4_14
  4154. */
  4155. #define WM5100_EQ4_B4_A_MASK 0xFFFF /* EQ4_B4_A - [15:0] */
  4156. #define WM5100_EQ4_B4_A_SHIFT 0 /* EQ4_B4_A - [15:0] */
  4157. #define WM5100_EQ4_B4_A_WIDTH 16 /* EQ4_B4_A - [15:0] */
  4158. /*
  4159. * R3680 (0xE60) - EQ4_15
  4160. */
  4161. #define WM5100_EQ4_B4_B_MASK 0xFFFF /* EQ4_B4_B - [15:0] */
  4162. #define WM5100_EQ4_B4_B_SHIFT 0 /* EQ4_B4_B - [15:0] */
  4163. #define WM5100_EQ4_B4_B_WIDTH 16 /* EQ4_B4_B - [15:0] */
  4164. /*
  4165. * R3681 (0xE61) - EQ4_16
  4166. */
  4167. #define WM5100_EQ4_B4_C_MASK 0xFFFF /* EQ4_B4_C - [15:0] */
  4168. #define WM5100_EQ4_B4_C_SHIFT 0 /* EQ4_B4_C - [15:0] */
  4169. #define WM5100_EQ4_B4_C_WIDTH 16 /* EQ4_B4_C - [15:0] */
  4170. /*
  4171. * R3682 (0xE62) - EQ4_17
  4172. */
  4173. #define WM5100_EQ4_B4_PG_MASK 0xFFFF /* EQ4_B4_PG - [15:0] */
  4174. #define WM5100_EQ4_B4_PG_SHIFT 0 /* EQ4_B4_PG - [15:0] */
  4175. #define WM5100_EQ4_B4_PG_WIDTH 16 /* EQ4_B4_PG - [15:0] */
  4176. /*
  4177. * R3683 (0xE63) - EQ4_18
  4178. */
  4179. #define WM5100_EQ4_B5_A_MASK 0xFFFF /* EQ4_B5_A - [15:0] */
  4180. #define WM5100_EQ4_B5_A_SHIFT 0 /* EQ4_B5_A - [15:0] */
  4181. #define WM5100_EQ4_B5_A_WIDTH 16 /* EQ4_B5_A - [15:0] */
  4182. /*
  4183. * R3684 (0xE64) - EQ4_19
  4184. */
  4185. #define WM5100_EQ4_B5_B_MASK 0xFFFF /* EQ4_B5_B - [15:0] */
  4186. #define WM5100_EQ4_B5_B_SHIFT 0 /* EQ4_B5_B - [15:0] */
  4187. #define WM5100_EQ4_B5_B_WIDTH 16 /* EQ4_B5_B - [15:0] */
  4188. /*
  4189. * R3685 (0xE65) - EQ4_20
  4190. */
  4191. #define WM5100_EQ4_B5_PG_MASK 0xFFFF /* EQ4_B5_PG - [15:0] */
  4192. #define WM5100_EQ4_B5_PG_SHIFT 0 /* EQ4_B5_PG - [15:0] */
  4193. #define WM5100_EQ4_B5_PG_WIDTH 16 /* EQ4_B5_PG - [15:0] */
  4194. /*
  4195. * R3712 (0xE80) - DRC1 ctrl1
  4196. */
  4197. #define WM5100_DRC_SIG_DET_RMS_MASK 0xF800 /* DRC_SIG_DET_RMS - [15:11] */
  4198. #define WM5100_DRC_SIG_DET_RMS_SHIFT 11 /* DRC_SIG_DET_RMS - [15:11] */
  4199. #define WM5100_DRC_SIG_DET_RMS_WIDTH 5 /* DRC_SIG_DET_RMS - [15:11] */
  4200. #define WM5100_DRC_SIG_DET_PK_MASK 0x0600 /* DRC_SIG_DET_PK - [10:9] */
  4201. #define WM5100_DRC_SIG_DET_PK_SHIFT 9 /* DRC_SIG_DET_PK - [10:9] */
  4202. #define WM5100_DRC_SIG_DET_PK_WIDTH 2 /* DRC_SIG_DET_PK - [10:9] */
  4203. #define WM5100_DRC_NG_ENA 0x0100 /* DRC_NG_ENA */
  4204. #define WM5100_DRC_NG_ENA_MASK 0x0100 /* DRC_NG_ENA */
  4205. #define WM5100_DRC_NG_ENA_SHIFT 8 /* DRC_NG_ENA */
  4206. #define WM5100_DRC_NG_ENA_WIDTH 1 /* DRC_NG_ENA */
  4207. #define WM5100_DRC_SIG_DET_MODE 0x0080 /* DRC_SIG_DET_MODE */
  4208. #define WM5100_DRC_SIG_DET_MODE_MASK 0x0080 /* DRC_SIG_DET_MODE */
  4209. #define WM5100_DRC_SIG_DET_MODE_SHIFT 7 /* DRC_SIG_DET_MODE */
  4210. #define WM5100_DRC_SIG_DET_MODE_WIDTH 1 /* DRC_SIG_DET_MODE */
  4211. #define WM5100_DRC_SIG_DET 0x0040 /* DRC_SIG_DET */
  4212. #define WM5100_DRC_SIG_DET_MASK 0x0040 /* DRC_SIG_DET */
  4213. #define WM5100_DRC_SIG_DET_SHIFT 6 /* DRC_SIG_DET */
  4214. #define WM5100_DRC_SIG_DET_WIDTH 1 /* DRC_SIG_DET */
  4215. #define WM5100_DRC_KNEE2_OP_ENA 0x0020 /* DRC_KNEE2_OP_ENA */
  4216. #define WM5100_DRC_KNEE2_OP_ENA_MASK 0x0020 /* DRC_KNEE2_OP_ENA */
  4217. #define WM5100_DRC_KNEE2_OP_ENA_SHIFT 5 /* DRC_KNEE2_OP_ENA */
  4218. #define WM5100_DRC_KNEE2_OP_ENA_WIDTH 1 /* DRC_KNEE2_OP_ENA */
  4219. #define WM5100_DRC_QR 0x0010 /* DRC_QR */
  4220. #define WM5100_DRC_QR_MASK 0x0010 /* DRC_QR */
  4221. #define WM5100_DRC_QR_SHIFT 4 /* DRC_QR */
  4222. #define WM5100_DRC_QR_WIDTH 1 /* DRC_QR */
  4223. #define WM5100_DRC_ANTICLIP 0x0008 /* DRC_ANTICLIP */
  4224. #define WM5100_DRC_ANTICLIP_MASK 0x0008 /* DRC_ANTICLIP */
  4225. #define WM5100_DRC_ANTICLIP_SHIFT 3 /* DRC_ANTICLIP */
  4226. #define WM5100_DRC_ANTICLIP_WIDTH 1 /* DRC_ANTICLIP */
  4227. #define WM5100_DRCL_ENA 0x0002 /* DRCL_ENA */
  4228. #define WM5100_DRCL_ENA_MASK 0x0002 /* DRCL_ENA */
  4229. #define WM5100_DRCL_ENA_SHIFT 1 /* DRCL_ENA */
  4230. #define WM5100_DRCL_ENA_WIDTH 1 /* DRCL_ENA */
  4231. #define WM5100_DRCR_ENA 0x0001 /* DRCR_ENA */
  4232. #define WM5100_DRCR_ENA_MASK 0x0001 /* DRCR_ENA */
  4233. #define WM5100_DRCR_ENA_SHIFT 0 /* DRCR_ENA */
  4234. #define WM5100_DRCR_ENA_WIDTH 1 /* DRCR_ENA */
  4235. /*
  4236. * R3713 (0xE81) - DRC1 ctrl2
  4237. */
  4238. #define WM5100_DRC_ATK_MASK 0x1E00 /* DRC_ATK - [12:9] */
  4239. #define WM5100_DRC_ATK_SHIFT 9 /* DRC_ATK - [12:9] */
  4240. #define WM5100_DRC_ATK_WIDTH 4 /* DRC_ATK - [12:9] */
  4241. #define WM5100_DRC_DCY_MASK 0x01E0 /* DRC_DCY - [8:5] */
  4242. #define WM5100_DRC_DCY_SHIFT 5 /* DRC_DCY - [8:5] */
  4243. #define WM5100_DRC_DCY_WIDTH 4 /* DRC_DCY - [8:5] */
  4244. #define WM5100_DRC_MINGAIN_MASK 0x001C /* DRC_MINGAIN - [4:2] */
  4245. #define WM5100_DRC_MINGAIN_SHIFT 2 /* DRC_MINGAIN - [4:2] */
  4246. #define WM5100_DRC_MINGAIN_WIDTH 3 /* DRC_MINGAIN - [4:2] */
  4247. #define WM5100_DRC_MAXGAIN_MASK 0x0003 /* DRC_MAXGAIN - [1:0] */
  4248. #define WM5100_DRC_MAXGAIN_SHIFT 0 /* DRC_MAXGAIN - [1:0] */
  4249. #define WM5100_DRC_MAXGAIN_WIDTH 2 /* DRC_MAXGAIN - [1:0] */
  4250. /*
  4251. * R3714 (0xE82) - DRC1 ctrl3
  4252. */
  4253. #define WM5100_DRC_NG_MINGAIN_MASK 0xF000 /* DRC_NG_MINGAIN - [15:12] */
  4254. #define WM5100_DRC_NG_MINGAIN_SHIFT 12 /* DRC_NG_MINGAIN - [15:12] */
  4255. #define WM5100_DRC_NG_MINGAIN_WIDTH 4 /* DRC_NG_MINGAIN - [15:12] */
  4256. #define WM5100_DRC_NG_EXP_MASK 0x0C00 /* DRC_NG_EXP - [11:10] */
  4257. #define WM5100_DRC_NG_EXP_SHIFT 10 /* DRC_NG_EXP - [11:10] */
  4258. #define WM5100_DRC_NG_EXP_WIDTH 2 /* DRC_NG_EXP - [11:10] */
  4259. #define WM5100_DRC_QR_THR_MASK 0x0300 /* DRC_QR_THR - [9:8] */
  4260. #define WM5100_DRC_QR_THR_SHIFT 8 /* DRC_QR_THR - [9:8] */
  4261. #define WM5100_DRC_QR_THR_WIDTH 2 /* DRC_QR_THR - [9:8] */
  4262. #define WM5100_DRC_QR_DCY_MASK 0x00C0 /* DRC_QR_DCY - [7:6] */
  4263. #define WM5100_DRC_QR_DCY_SHIFT 6 /* DRC_QR_DCY - [7:6] */
  4264. #define WM5100_DRC_QR_DCY_WIDTH 2 /* DRC_QR_DCY - [7:6] */
  4265. #define WM5100_DRC_HI_COMP_MASK 0x0038 /* DRC_HI_COMP - [5:3] */
  4266. #define WM5100_DRC_HI_COMP_SHIFT 3 /* DRC_HI_COMP - [5:3] */
  4267. #define WM5100_DRC_HI_COMP_WIDTH 3 /* DRC_HI_COMP - [5:3] */
  4268. #define WM5100_DRC_LO_COMP_MASK 0x0007 /* DRC_LO_COMP - [2:0] */
  4269. #define WM5100_DRC_LO_COMP_SHIFT 0 /* DRC_LO_COMP - [2:0] */
  4270. #define WM5100_DRC_LO_COMP_WIDTH 3 /* DRC_LO_COMP - [2:0] */
  4271. /*
  4272. * R3715 (0xE83) - DRC1 ctrl4
  4273. */
  4274. #define WM5100_DRC_KNEE_IP_MASK 0x07E0 /* DRC_KNEE_IP - [10:5] */
  4275. #define WM5100_DRC_KNEE_IP_SHIFT 5 /* DRC_KNEE_IP - [10:5] */
  4276. #define WM5100_DRC_KNEE_IP_WIDTH 6 /* DRC_KNEE_IP - [10:5] */
  4277. #define WM5100_DRC_KNEE_OP_MASK 0x001F /* DRC_KNEE_OP - [4:0] */
  4278. #define WM5100_DRC_KNEE_OP_SHIFT 0 /* DRC_KNEE_OP - [4:0] */
  4279. #define WM5100_DRC_KNEE_OP_WIDTH 5 /* DRC_KNEE_OP - [4:0] */
  4280. /*
  4281. * R3716 (0xE84) - DRC1 ctrl5
  4282. */
  4283. #define WM5100_DRC_KNEE2_IP_MASK 0x03E0 /* DRC_KNEE2_IP - [9:5] */
  4284. #define WM5100_DRC_KNEE2_IP_SHIFT 5 /* DRC_KNEE2_IP - [9:5] */
  4285. #define WM5100_DRC_KNEE2_IP_WIDTH 5 /* DRC_KNEE2_IP - [9:5] */
  4286. #define WM5100_DRC_KNEE2_OP_MASK 0x001F /* DRC_KNEE2_OP - [4:0] */
  4287. #define WM5100_DRC_KNEE2_OP_SHIFT 0 /* DRC_KNEE2_OP - [4:0] */
  4288. #define WM5100_DRC_KNEE2_OP_WIDTH 5 /* DRC_KNEE2_OP - [4:0] */
  4289. /*
  4290. * R3776 (0xEC0) - HPLPF1_1
  4291. */
  4292. #define WM5100_LHPF1_MODE 0x0002 /* LHPF1_MODE */
  4293. #define WM5100_LHPF1_MODE_MASK 0x0002 /* LHPF1_MODE */
  4294. #define WM5100_LHPF1_MODE_SHIFT 1 /* LHPF1_MODE */
  4295. #define WM5100_LHPF1_MODE_WIDTH 1 /* LHPF1_MODE */
  4296. #define WM5100_LHPF1_ENA 0x0001 /* LHPF1_ENA */
  4297. #define WM5100_LHPF1_ENA_MASK 0x0001 /* LHPF1_ENA */
  4298. #define WM5100_LHPF1_ENA_SHIFT 0 /* LHPF1_ENA */
  4299. #define WM5100_LHPF1_ENA_WIDTH 1 /* LHPF1_ENA */
  4300. /*
  4301. * R3777 (0xEC1) - HPLPF1_2
  4302. */
  4303. #define WM5100_LHPF1_COEFF_MASK 0xFFFF /* LHPF1_COEFF - [15:0] */
  4304. #define WM5100_LHPF1_COEFF_SHIFT 0 /* LHPF1_COEFF - [15:0] */
  4305. #define WM5100_LHPF1_COEFF_WIDTH 16 /* LHPF1_COEFF - [15:0] */
  4306. /*
  4307. * R3780 (0xEC4) - HPLPF2_1
  4308. */
  4309. #define WM5100_LHPF2_MODE 0x0002 /* LHPF2_MODE */
  4310. #define WM5100_LHPF2_MODE_MASK 0x0002 /* LHPF2_MODE */
  4311. #define WM5100_LHPF2_MODE_SHIFT 1 /* LHPF2_MODE */
  4312. #define WM5100_LHPF2_MODE_WIDTH 1 /* LHPF2_MODE */
  4313. #define WM5100_LHPF2_ENA 0x0001 /* LHPF2_ENA */
  4314. #define WM5100_LHPF2_ENA_MASK 0x0001 /* LHPF2_ENA */
  4315. #define WM5100_LHPF2_ENA_SHIFT 0 /* LHPF2_ENA */
  4316. #define WM5100_LHPF2_ENA_WIDTH 1 /* LHPF2_ENA */
  4317. /*
  4318. * R3781 (0xEC5) - HPLPF2_2
  4319. */
  4320. #define WM5100_LHPF2_COEFF_MASK 0xFFFF /* LHPF2_COEFF - [15:0] */
  4321. #define WM5100_LHPF2_COEFF_SHIFT 0 /* LHPF2_COEFF - [15:0] */
  4322. #define WM5100_LHPF2_COEFF_WIDTH 16 /* LHPF2_COEFF - [15:0] */
  4323. /*
  4324. * R3784 (0xEC8) - HPLPF3_1
  4325. */
  4326. #define WM5100_LHPF3_MODE 0x0002 /* LHPF3_MODE */
  4327. #define WM5100_LHPF3_MODE_MASK 0x0002 /* LHPF3_MODE */
  4328. #define WM5100_LHPF3_MODE_SHIFT 1 /* LHPF3_MODE */
  4329. #define WM5100_LHPF3_MODE_WIDTH 1 /* LHPF3_MODE */
  4330. #define WM5100_LHPF3_ENA 0x0001 /* LHPF3_ENA */
  4331. #define WM5100_LHPF3_ENA_MASK 0x0001 /* LHPF3_ENA */
  4332. #define WM5100_LHPF3_ENA_SHIFT 0 /* LHPF3_ENA */
  4333. #define WM5100_LHPF3_ENA_WIDTH 1 /* LHPF3_ENA */
  4334. /*
  4335. * R3785 (0xEC9) - HPLPF3_2
  4336. */
  4337. #define WM5100_LHPF3_COEFF_MASK 0xFFFF /* LHPF3_COEFF - [15:0] */
  4338. #define WM5100_LHPF3_COEFF_SHIFT 0 /* LHPF3_COEFF - [15:0] */
  4339. #define WM5100_LHPF3_COEFF_WIDTH 16 /* LHPF3_COEFF - [15:0] */
  4340. /*
  4341. * R3788 (0xECC) - HPLPF4_1
  4342. */
  4343. #define WM5100_LHPF4_MODE 0x0002 /* LHPF4_MODE */
  4344. #define WM5100_LHPF4_MODE_MASK 0x0002 /* LHPF4_MODE */
  4345. #define WM5100_LHPF4_MODE_SHIFT 1 /* LHPF4_MODE */
  4346. #define WM5100_LHPF4_MODE_WIDTH 1 /* LHPF4_MODE */
  4347. #define WM5100_LHPF4_ENA 0x0001 /* LHPF4_ENA */
  4348. #define WM5100_LHPF4_ENA_MASK 0x0001 /* LHPF4_ENA */
  4349. #define WM5100_LHPF4_ENA_SHIFT 0 /* LHPF4_ENA */
  4350. #define WM5100_LHPF4_ENA_WIDTH 1 /* LHPF4_ENA */
  4351. /*
  4352. * R3789 (0xECD) - HPLPF4_2
  4353. */
  4354. #define WM5100_LHPF4_COEFF_MASK 0xFFFF /* LHPF4_COEFF - [15:0] */
  4355. #define WM5100_LHPF4_COEFF_SHIFT 0 /* LHPF4_COEFF - [15:0] */
  4356. #define WM5100_LHPF4_COEFF_WIDTH 16 /* LHPF4_COEFF - [15:0] */
  4357. /*
  4358. * R4132 (0x1024) - DSP2 Control 30
  4359. */
  4360. #define WM5100_DSP2_RATE_MASK 0xC000 /* DSP2_RATE - [15:14] */
  4361. #define WM5100_DSP2_RATE_SHIFT 14 /* DSP2_RATE - [15:14] */
  4362. #define WM5100_DSP2_RATE_WIDTH 2 /* DSP2_RATE - [15:14] */
  4363. #define WM5100_DSP2_DBG_CLK_ENA 0x0008 /* DSP2_DBG_CLK_ENA */
  4364. #define WM5100_DSP2_DBG_CLK_ENA_MASK 0x0008 /* DSP2_DBG_CLK_ENA */
  4365. #define WM5100_DSP2_DBG_CLK_ENA_SHIFT 3 /* DSP2_DBG_CLK_ENA */
  4366. #define WM5100_DSP2_DBG_CLK_ENA_WIDTH 1 /* DSP2_DBG_CLK_ENA */
  4367. #define WM5100_DSP2_SYS_ENA 0x0004 /* DSP2_SYS_ENA */
  4368. #define WM5100_DSP2_SYS_ENA_MASK 0x0004 /* DSP2_SYS_ENA */
  4369. #define WM5100_DSP2_SYS_ENA_SHIFT 2 /* DSP2_SYS_ENA */
  4370. #define WM5100_DSP2_SYS_ENA_WIDTH 1 /* DSP2_SYS_ENA */
  4371. #define WM5100_DSP2_CORE_ENA 0x0002 /* DSP2_CORE_ENA */
  4372. #define WM5100_DSP2_CORE_ENA_MASK 0x0002 /* DSP2_CORE_ENA */
  4373. #define WM5100_DSP2_CORE_ENA_SHIFT 1 /* DSP2_CORE_ENA */
  4374. #define WM5100_DSP2_CORE_ENA_WIDTH 1 /* DSP2_CORE_ENA */
  4375. #define WM5100_DSP2_START 0x0001 /* DSP2_START */
  4376. #define WM5100_DSP2_START_MASK 0x0001 /* DSP2_START */
  4377. #define WM5100_DSP2_START_SHIFT 0 /* DSP2_START */
  4378. #define WM5100_DSP2_START_WIDTH 1 /* DSP2_START */
  4379. /*
  4380. * R3876 (0xF24) - DSP1 Control 30
  4381. */
  4382. #define WM5100_DSP1_RATE_MASK 0xC000 /* DSP1_RATE - [15:14] */
  4383. #define WM5100_DSP1_RATE_SHIFT 14 /* DSP1_RATE - [15:14] */
  4384. #define WM5100_DSP1_RATE_WIDTH 2 /* DSP1_RATE - [15:14] */
  4385. #define WM5100_DSP1_DBG_CLK_ENA 0x0008 /* DSP1_DBG_CLK_ENA */
  4386. #define WM5100_DSP1_DBG_CLK_ENA_MASK 0x0008 /* DSP1_DBG_CLK_ENA */
  4387. #define WM5100_DSP1_DBG_CLK_ENA_SHIFT 3 /* DSP1_DBG_CLK_ENA */
  4388. #define WM5100_DSP1_DBG_CLK_ENA_WIDTH 1 /* DSP1_DBG_CLK_ENA */
  4389. #define WM5100_DSP1_SYS_ENA 0x0004 /* DSP1_SYS_ENA */
  4390. #define WM5100_DSP1_SYS_ENA_MASK 0x0004 /* DSP1_SYS_ENA */
  4391. #define WM5100_DSP1_SYS_ENA_SHIFT 2 /* DSP1_SYS_ENA */
  4392. #define WM5100_DSP1_SYS_ENA_WIDTH 1 /* DSP1_SYS_ENA */
  4393. #define WM5100_DSP1_CORE_ENA 0x0002 /* DSP1_CORE_ENA */
  4394. #define WM5100_DSP1_CORE_ENA_MASK 0x0002 /* DSP1_CORE_ENA */
  4395. #define WM5100_DSP1_CORE_ENA_SHIFT 1 /* DSP1_CORE_ENA */
  4396. #define WM5100_DSP1_CORE_ENA_WIDTH 1 /* DSP1_CORE_ENA */
  4397. #define WM5100_DSP1_START 0x0001 /* DSP1_START */
  4398. #define WM5100_DSP1_START_MASK 0x0001 /* DSP1_START */
  4399. #define WM5100_DSP1_START_SHIFT 0 /* DSP1_START */
  4400. #define WM5100_DSP1_START_WIDTH 1 /* DSP1_START */
  4401. /*
  4402. * R4388 (0x1124) - DSP3 Control 30
  4403. */
  4404. #define WM5100_DSP3_RATE_MASK 0xC000 /* DSP3_RATE - [15:14] */
  4405. #define WM5100_DSP3_RATE_SHIFT 14 /* DSP3_RATE - [15:14] */
  4406. #define WM5100_DSP3_RATE_WIDTH 2 /* DSP3_RATE - [15:14] */
  4407. #define WM5100_DSP3_DBG_CLK_ENA 0x0008 /* DSP3_DBG_CLK_ENA */
  4408. #define WM5100_DSP3_DBG_CLK_ENA_MASK 0x0008 /* DSP3_DBG_CLK_ENA */
  4409. #define WM5100_DSP3_DBG_CLK_ENA_SHIFT 3 /* DSP3_DBG_CLK_ENA */
  4410. #define WM5100_DSP3_DBG_CLK_ENA_WIDTH 1 /* DSP3_DBG_CLK_ENA */
  4411. #define WM5100_DSP3_SYS_ENA 0x0004 /* DSP3_SYS_ENA */
  4412. #define WM5100_DSP3_SYS_ENA_MASK 0x0004 /* DSP3_SYS_ENA */
  4413. #define WM5100_DSP3_SYS_ENA_SHIFT 2 /* DSP3_SYS_ENA */
  4414. #define WM5100_DSP3_SYS_ENA_WIDTH 1 /* DSP3_SYS_ENA */
  4415. #define WM5100_DSP3_CORE_ENA 0x0002 /* DSP3_CORE_ENA */
  4416. #define WM5100_DSP3_CORE_ENA_MASK 0x0002 /* DSP3_CORE_ENA */
  4417. #define WM5100_DSP3_CORE_ENA_SHIFT 1 /* DSP3_CORE_ENA */
  4418. #define WM5100_DSP3_CORE_ENA_WIDTH 1 /* DSP3_CORE_ENA */
  4419. #define WM5100_DSP3_START 0x0001 /* DSP3_START */
  4420. #define WM5100_DSP3_START_MASK 0x0001 /* DSP3_START */
  4421. #define WM5100_DSP3_START_SHIFT 0 /* DSP3_START */
  4422. #define WM5100_DSP3_START_WIDTH 1 /* DSP3_START */
  4423. /*
  4424. * R16384 (0x4000) - DSP1 DM 0
  4425. */
  4426. #define WM5100_DSP1_DM_START_1_MASK 0x00FF /* DSP1_DM_START - [7:0] */
  4427. #define WM5100_DSP1_DM_START_1_SHIFT 0 /* DSP1_DM_START - [7:0] */
  4428. #define WM5100_DSP1_DM_START_1_WIDTH 8 /* DSP1_DM_START - [7:0] */
  4429. /*
  4430. * R16385 (0x4001) - DSP1 DM 1
  4431. */
  4432. #define WM5100_DSP1_DM_START_MASK 0xFFFF /* DSP1_DM_START - [15:0] */
  4433. #define WM5100_DSP1_DM_START_SHIFT 0 /* DSP1_DM_START - [15:0] */
  4434. #define WM5100_DSP1_DM_START_WIDTH 16 /* DSP1_DM_START - [15:0] */
  4435. /*
  4436. * R16386 (0x4002) - DSP1 DM 2
  4437. */
  4438. #define WM5100_DSP1_DM_1_1_MASK 0x00FF /* DSP1_DM_1 - [7:0] */
  4439. #define WM5100_DSP1_DM_1_1_SHIFT 0 /* DSP1_DM_1 - [7:0] */
  4440. #define WM5100_DSP1_DM_1_1_WIDTH 8 /* DSP1_DM_1 - [7:0] */
  4441. /*
  4442. * R16387 (0x4003) - DSP1 DM 3
  4443. */
  4444. #define WM5100_DSP1_DM_1_MASK 0xFFFF /* DSP1_DM_1 - [15:0] */
  4445. #define WM5100_DSP1_DM_1_SHIFT 0 /* DSP1_DM_1 - [15:0] */
  4446. #define WM5100_DSP1_DM_1_WIDTH 16 /* DSP1_DM_1 - [15:0] */
  4447. /*
  4448. * R16892 (0x41FC) - DSP1 DM 508
  4449. */
  4450. #define WM5100_DSP1_DM_254_1_MASK 0x00FF /* DSP1_DM_254 - [7:0] */
  4451. #define WM5100_DSP1_DM_254_1_SHIFT 0 /* DSP1_DM_254 - [7:0] */
  4452. #define WM5100_DSP1_DM_254_1_WIDTH 8 /* DSP1_DM_254 - [7:0] */
  4453. /*
  4454. * R16893 (0x41FD) - DSP1 DM 509
  4455. */
  4456. #define WM5100_DSP1_DM_254_MASK 0xFFFF /* DSP1_DM_254 - [15:0] */
  4457. #define WM5100_DSP1_DM_254_SHIFT 0 /* DSP1_DM_254 - [15:0] */
  4458. #define WM5100_DSP1_DM_254_WIDTH 16 /* DSP1_DM_254 - [15:0] */
  4459. /*
  4460. * R16894 (0x41FE) - DSP1 DM 510
  4461. */
  4462. #define WM5100_DSP1_DM_END_1_MASK 0x00FF /* DSP1_DM_END - [7:0] */
  4463. #define WM5100_DSP1_DM_END_1_SHIFT 0 /* DSP1_DM_END - [7:0] */
  4464. #define WM5100_DSP1_DM_END_1_WIDTH 8 /* DSP1_DM_END - [7:0] */
  4465. /*
  4466. * R16895 (0x41FF) - DSP1 DM 511
  4467. */
  4468. #define WM5100_DSP1_DM_END_MASK 0xFFFF /* DSP1_DM_END - [15:0] */
  4469. #define WM5100_DSP1_DM_END_SHIFT 0 /* DSP1_DM_END - [15:0] */
  4470. #define WM5100_DSP1_DM_END_WIDTH 16 /* DSP1_DM_END - [15:0] */
  4471. /*
  4472. * R18432 (0x4800) - DSP1 PM 0
  4473. */
  4474. #define WM5100_DSP1_PM_START_2_MASK 0x00FF /* DSP1_PM_START - [7:0] */
  4475. #define WM5100_DSP1_PM_START_2_SHIFT 0 /* DSP1_PM_START - [7:0] */
  4476. #define WM5100_DSP1_PM_START_2_WIDTH 8 /* DSP1_PM_START - [7:0] */
  4477. /*
  4478. * R18433 (0x4801) - DSP1 PM 1
  4479. */
  4480. #define WM5100_DSP1_PM_START_1_MASK 0xFFFF /* DSP1_PM_START - [15:0] */
  4481. #define WM5100_DSP1_PM_START_1_SHIFT 0 /* DSP1_PM_START - [15:0] */
  4482. #define WM5100_DSP1_PM_START_1_WIDTH 16 /* DSP1_PM_START - [15:0] */
  4483. /*
  4484. * R18434 (0x4802) - DSP1 PM 2
  4485. */
  4486. #define WM5100_DSP1_PM_START_MASK 0xFFFF /* DSP1_PM_START - [15:0] */
  4487. #define WM5100_DSP1_PM_START_SHIFT 0 /* DSP1_PM_START - [15:0] */
  4488. #define WM5100_DSP1_PM_START_WIDTH 16 /* DSP1_PM_START - [15:0] */
  4489. /*
  4490. * R18435 (0x4803) - DSP1 PM 3
  4491. */
  4492. #define WM5100_DSP1_PM_1_2_MASK 0x00FF /* DSP1_PM_1 - [7:0] */
  4493. #define WM5100_DSP1_PM_1_2_SHIFT 0 /* DSP1_PM_1 - [7:0] */
  4494. #define WM5100_DSP1_PM_1_2_WIDTH 8 /* DSP1_PM_1 - [7:0] */
  4495. /*
  4496. * R18436 (0x4804) - DSP1 PM 4
  4497. */
  4498. #define WM5100_DSP1_PM_1_1_MASK 0xFFFF /* DSP1_PM_1 - [15:0] */
  4499. #define WM5100_DSP1_PM_1_1_SHIFT 0 /* DSP1_PM_1 - [15:0] */
  4500. #define WM5100_DSP1_PM_1_1_WIDTH 16 /* DSP1_PM_1 - [15:0] */
  4501. /*
  4502. * R18437 (0x4805) - DSP1 PM 5
  4503. */
  4504. #define WM5100_DSP1_PM_1_MASK 0xFFFF /* DSP1_PM_1 - [15:0] */
  4505. #define WM5100_DSP1_PM_1_SHIFT 0 /* DSP1_PM_1 - [15:0] */
  4506. #define WM5100_DSP1_PM_1_WIDTH 16 /* DSP1_PM_1 - [15:0] */
  4507. /*
  4508. * R19962 (0x4DFA) - DSP1 PM 1530
  4509. */
  4510. #define WM5100_DSP1_PM_510_2_MASK 0x00FF /* DSP1_PM_510 - [7:0] */
  4511. #define WM5100_DSP1_PM_510_2_SHIFT 0 /* DSP1_PM_510 - [7:0] */
  4512. #define WM5100_DSP1_PM_510_2_WIDTH 8 /* DSP1_PM_510 - [7:0] */
  4513. /*
  4514. * R19963 (0x4DFB) - DSP1 PM 1531
  4515. */
  4516. #define WM5100_DSP1_PM_510_1_MASK 0xFFFF /* DSP1_PM_510 - [15:0] */
  4517. #define WM5100_DSP1_PM_510_1_SHIFT 0 /* DSP1_PM_510 - [15:0] */
  4518. #define WM5100_DSP1_PM_510_1_WIDTH 16 /* DSP1_PM_510 - [15:0] */
  4519. /*
  4520. * R19964 (0x4DFC) - DSP1 PM 1532
  4521. */
  4522. #define WM5100_DSP1_PM_510_MASK 0xFFFF /* DSP1_PM_510 - [15:0] */
  4523. #define WM5100_DSP1_PM_510_SHIFT 0 /* DSP1_PM_510 - [15:0] */
  4524. #define WM5100_DSP1_PM_510_WIDTH 16 /* DSP1_PM_510 - [15:0] */
  4525. /*
  4526. * R19965 (0x4DFD) - DSP1 PM 1533
  4527. */
  4528. #define WM5100_DSP1_PM_END_2_MASK 0x00FF /* DSP1_PM_END - [7:0] */
  4529. #define WM5100_DSP1_PM_END_2_SHIFT 0 /* DSP1_PM_END - [7:0] */
  4530. #define WM5100_DSP1_PM_END_2_WIDTH 8 /* DSP1_PM_END - [7:0] */
  4531. /*
  4532. * R19966 (0x4DFE) - DSP1 PM 1534
  4533. */
  4534. #define WM5100_DSP1_PM_END_1_MASK 0xFFFF /* DSP1_PM_END - [15:0] */
  4535. #define WM5100_DSP1_PM_END_1_SHIFT 0 /* DSP1_PM_END - [15:0] */
  4536. #define WM5100_DSP1_PM_END_1_WIDTH 16 /* DSP1_PM_END - [15:0] */
  4537. /*
  4538. * R19967 (0x4DFF) - DSP1 PM 1535
  4539. */
  4540. #define WM5100_DSP1_PM_END_MASK 0xFFFF /* DSP1_PM_END - [15:0] */
  4541. #define WM5100_DSP1_PM_END_SHIFT 0 /* DSP1_PM_END - [15:0] */
  4542. #define WM5100_DSP1_PM_END_WIDTH 16 /* DSP1_PM_END - [15:0] */
  4543. /*
  4544. * R20480 (0x5000) - DSP1 ZM 0
  4545. */
  4546. #define WM5100_DSP1_ZM_START_1_MASK 0x00FF /* DSP1_ZM_START - [7:0] */
  4547. #define WM5100_DSP1_ZM_START_1_SHIFT 0 /* DSP1_ZM_START - [7:0] */
  4548. #define WM5100_DSP1_ZM_START_1_WIDTH 8 /* DSP1_ZM_START - [7:0] */
  4549. /*
  4550. * R20481 (0x5001) - DSP1 ZM 1
  4551. */
  4552. #define WM5100_DSP1_ZM_START_MASK 0xFFFF /* DSP1_ZM_START - [15:0] */
  4553. #define WM5100_DSP1_ZM_START_SHIFT 0 /* DSP1_ZM_START - [15:0] */
  4554. #define WM5100_DSP1_ZM_START_WIDTH 16 /* DSP1_ZM_START - [15:0] */
  4555. /*
  4556. * R20482 (0x5002) - DSP1 ZM 2
  4557. */
  4558. #define WM5100_DSP1_ZM_1_1_MASK 0x00FF /* DSP1_ZM_1 - [7:0] */
  4559. #define WM5100_DSP1_ZM_1_1_SHIFT 0 /* DSP1_ZM_1 - [7:0] */
  4560. #define WM5100_DSP1_ZM_1_1_WIDTH 8 /* DSP1_ZM_1 - [7:0] */
  4561. /*
  4562. * R20483 (0x5003) - DSP1 ZM 3
  4563. */
  4564. #define WM5100_DSP1_ZM_1_MASK 0xFFFF /* DSP1_ZM_1 - [15:0] */
  4565. #define WM5100_DSP1_ZM_1_SHIFT 0 /* DSP1_ZM_1 - [15:0] */
  4566. #define WM5100_DSP1_ZM_1_WIDTH 16 /* DSP1_ZM_1 - [15:0] */
  4567. /*
  4568. * R22524 (0x57FC) - DSP1 ZM 2044
  4569. */
  4570. #define WM5100_DSP1_ZM_1022_1_MASK 0x00FF /* DSP1_ZM_1022 - [7:0] */
  4571. #define WM5100_DSP1_ZM_1022_1_SHIFT 0 /* DSP1_ZM_1022 - [7:0] */
  4572. #define WM5100_DSP1_ZM_1022_1_WIDTH 8 /* DSP1_ZM_1022 - [7:0] */
  4573. /*
  4574. * R22525 (0x57FD) - DSP1 ZM 2045
  4575. */
  4576. #define WM5100_DSP1_ZM_1022_MASK 0xFFFF /* DSP1_ZM_1022 - [15:0] */
  4577. #define WM5100_DSP1_ZM_1022_SHIFT 0 /* DSP1_ZM_1022 - [15:0] */
  4578. #define WM5100_DSP1_ZM_1022_WIDTH 16 /* DSP1_ZM_1022 - [15:0] */
  4579. /*
  4580. * R22526 (0x57FE) - DSP1 ZM 2046
  4581. */
  4582. #define WM5100_DSP1_ZM_END_1_MASK 0x00FF /* DSP1_ZM_END - [7:0] */
  4583. #define WM5100_DSP1_ZM_END_1_SHIFT 0 /* DSP1_ZM_END - [7:0] */
  4584. #define WM5100_DSP1_ZM_END_1_WIDTH 8 /* DSP1_ZM_END - [7:0] */
  4585. /*
  4586. * R22527 (0x57FF) - DSP1 ZM 2047
  4587. */
  4588. #define WM5100_DSP1_ZM_END_MASK 0xFFFF /* DSP1_ZM_END - [15:0] */
  4589. #define WM5100_DSP1_ZM_END_SHIFT 0 /* DSP1_ZM_END - [15:0] */
  4590. #define WM5100_DSP1_ZM_END_WIDTH 16 /* DSP1_ZM_END - [15:0] */
  4591. /*
  4592. * R24576 (0x6000) - DSP2 DM 0
  4593. */
  4594. #define WM5100_DSP2_DM_START_1_MASK 0x00FF /* DSP2_DM_START - [7:0] */
  4595. #define WM5100_DSP2_DM_START_1_SHIFT 0 /* DSP2_DM_START - [7:0] */
  4596. #define WM5100_DSP2_DM_START_1_WIDTH 8 /* DSP2_DM_START - [7:0] */
  4597. /*
  4598. * R24577 (0x6001) - DSP2 DM 1
  4599. */
  4600. #define WM5100_DSP2_DM_START_MASK 0xFFFF /* DSP2_DM_START - [15:0] */
  4601. #define WM5100_DSP2_DM_START_SHIFT 0 /* DSP2_DM_START - [15:0] */
  4602. #define WM5100_DSP2_DM_START_WIDTH 16 /* DSP2_DM_START - [15:0] */
  4603. /*
  4604. * R24578 (0x6002) - DSP2 DM 2
  4605. */
  4606. #define WM5100_DSP2_DM_1_1_MASK 0x00FF /* DSP2_DM_1 - [7:0] */
  4607. #define WM5100_DSP2_DM_1_1_SHIFT 0 /* DSP2_DM_1 - [7:0] */
  4608. #define WM5100_DSP2_DM_1_1_WIDTH 8 /* DSP2_DM_1 - [7:0] */
  4609. /*
  4610. * R24579 (0x6003) - DSP2 DM 3
  4611. */
  4612. #define WM5100_DSP2_DM_1_MASK 0xFFFF /* DSP2_DM_1 - [15:0] */
  4613. #define WM5100_DSP2_DM_1_SHIFT 0 /* DSP2_DM_1 - [15:0] */
  4614. #define WM5100_DSP2_DM_1_WIDTH 16 /* DSP2_DM_1 - [15:0] */
  4615. /*
  4616. * R25084 (0x61FC) - DSP2 DM 508
  4617. */
  4618. #define WM5100_DSP2_DM_254_1_MASK 0x00FF /* DSP2_DM_254 - [7:0] */
  4619. #define WM5100_DSP2_DM_254_1_SHIFT 0 /* DSP2_DM_254 - [7:0] */
  4620. #define WM5100_DSP2_DM_254_1_WIDTH 8 /* DSP2_DM_254 - [7:0] */
  4621. /*
  4622. * R25085 (0x61FD) - DSP2 DM 509
  4623. */
  4624. #define WM5100_DSP2_DM_254_MASK 0xFFFF /* DSP2_DM_254 - [15:0] */
  4625. #define WM5100_DSP2_DM_254_SHIFT 0 /* DSP2_DM_254 - [15:0] */
  4626. #define WM5100_DSP2_DM_254_WIDTH 16 /* DSP2_DM_254 - [15:0] */
  4627. /*
  4628. * R25086 (0x61FE) - DSP2 DM 510
  4629. */
  4630. #define WM5100_DSP2_DM_END_1_MASK 0x00FF /* DSP2_DM_END - [7:0] */
  4631. #define WM5100_DSP2_DM_END_1_SHIFT 0 /* DSP2_DM_END - [7:0] */
  4632. #define WM5100_DSP2_DM_END_1_WIDTH 8 /* DSP2_DM_END - [7:0] */
  4633. /*
  4634. * R25087 (0x61FF) - DSP2 DM 511
  4635. */
  4636. #define WM5100_DSP2_DM_END_MASK 0xFFFF /* DSP2_DM_END - [15:0] */
  4637. #define WM5100_DSP2_DM_END_SHIFT 0 /* DSP2_DM_END - [15:0] */
  4638. #define WM5100_DSP2_DM_END_WIDTH 16 /* DSP2_DM_END - [15:0] */
  4639. /*
  4640. * R26624 (0x6800) - DSP2 PM 0
  4641. */
  4642. #define WM5100_DSP2_PM_START_2_MASK 0x00FF /* DSP2_PM_START - [7:0] */
  4643. #define WM5100_DSP2_PM_START_2_SHIFT 0 /* DSP2_PM_START - [7:0] */
  4644. #define WM5100_DSP2_PM_START_2_WIDTH 8 /* DSP2_PM_START - [7:0] */
  4645. /*
  4646. * R26625 (0x6801) - DSP2 PM 1
  4647. */
  4648. #define WM5100_DSP2_PM_START_1_MASK 0xFFFF /* DSP2_PM_START - [15:0] */
  4649. #define WM5100_DSP2_PM_START_1_SHIFT 0 /* DSP2_PM_START - [15:0] */
  4650. #define WM5100_DSP2_PM_START_1_WIDTH 16 /* DSP2_PM_START - [15:0] */
  4651. /*
  4652. * R26626 (0x6802) - DSP2 PM 2
  4653. */
  4654. #define WM5100_DSP2_PM_START_MASK 0xFFFF /* DSP2_PM_START - [15:0] */
  4655. #define WM5100_DSP2_PM_START_SHIFT 0 /* DSP2_PM_START - [15:0] */
  4656. #define WM5100_DSP2_PM_START_WIDTH 16 /* DSP2_PM_START - [15:0] */
  4657. /*
  4658. * R26627 (0x6803) - DSP2 PM 3
  4659. */
  4660. #define WM5100_DSP2_PM_1_2_MASK 0x00FF /* DSP2_PM_1 - [7:0] */
  4661. #define WM5100_DSP2_PM_1_2_SHIFT 0 /* DSP2_PM_1 - [7:0] */
  4662. #define WM5100_DSP2_PM_1_2_WIDTH 8 /* DSP2_PM_1 - [7:0] */
  4663. /*
  4664. * R26628 (0x6804) - DSP2 PM 4
  4665. */
  4666. #define WM5100_DSP2_PM_1_1_MASK 0xFFFF /* DSP2_PM_1 - [15:0] */
  4667. #define WM5100_DSP2_PM_1_1_SHIFT 0 /* DSP2_PM_1 - [15:0] */
  4668. #define WM5100_DSP2_PM_1_1_WIDTH 16 /* DSP2_PM_1 - [15:0] */
  4669. /*
  4670. * R26629 (0x6805) - DSP2 PM 5
  4671. */
  4672. #define WM5100_DSP2_PM_1_MASK 0xFFFF /* DSP2_PM_1 - [15:0] */
  4673. #define WM5100_DSP2_PM_1_SHIFT 0 /* DSP2_PM_1 - [15:0] */
  4674. #define WM5100_DSP2_PM_1_WIDTH 16 /* DSP2_PM_1 - [15:0] */
  4675. /*
  4676. * R28154 (0x6DFA) - DSP2 PM 1530
  4677. */
  4678. #define WM5100_DSP2_PM_510_2_MASK 0x00FF /* DSP2_PM_510 - [7:0] */
  4679. #define WM5100_DSP2_PM_510_2_SHIFT 0 /* DSP2_PM_510 - [7:0] */
  4680. #define WM5100_DSP2_PM_510_2_WIDTH 8 /* DSP2_PM_510 - [7:0] */
  4681. /*
  4682. * R28155 (0x6DFB) - DSP2 PM 1531
  4683. */
  4684. #define WM5100_DSP2_PM_510_1_MASK 0xFFFF /* DSP2_PM_510 - [15:0] */
  4685. #define WM5100_DSP2_PM_510_1_SHIFT 0 /* DSP2_PM_510 - [15:0] */
  4686. #define WM5100_DSP2_PM_510_1_WIDTH 16 /* DSP2_PM_510 - [15:0] */
  4687. /*
  4688. * R28156 (0x6DFC) - DSP2 PM 1532
  4689. */
  4690. #define WM5100_DSP2_PM_510_MASK 0xFFFF /* DSP2_PM_510 - [15:0] */
  4691. #define WM5100_DSP2_PM_510_SHIFT 0 /* DSP2_PM_510 - [15:0] */
  4692. #define WM5100_DSP2_PM_510_WIDTH 16 /* DSP2_PM_510 - [15:0] */
  4693. /*
  4694. * R28157 (0x6DFD) - DSP2 PM 1533
  4695. */
  4696. #define WM5100_DSP2_PM_END_2_MASK 0x00FF /* DSP2_PM_END - [7:0] */
  4697. #define WM5100_DSP2_PM_END_2_SHIFT 0 /* DSP2_PM_END - [7:0] */
  4698. #define WM5100_DSP2_PM_END_2_WIDTH 8 /* DSP2_PM_END - [7:0] */
  4699. /*
  4700. * R28158 (0x6DFE) - DSP2 PM 1534
  4701. */
  4702. #define WM5100_DSP2_PM_END_1_MASK 0xFFFF /* DSP2_PM_END - [15:0] */
  4703. #define WM5100_DSP2_PM_END_1_SHIFT 0 /* DSP2_PM_END - [15:0] */
  4704. #define WM5100_DSP2_PM_END_1_WIDTH 16 /* DSP2_PM_END - [15:0] */
  4705. /*
  4706. * R28159 (0x6DFF) - DSP2 PM 1535
  4707. */
  4708. #define WM5100_DSP2_PM_END_MASK 0xFFFF /* DSP2_PM_END - [15:0] */
  4709. #define WM5100_DSP2_PM_END_SHIFT 0 /* DSP2_PM_END - [15:0] */
  4710. #define WM5100_DSP2_PM_END_WIDTH 16 /* DSP2_PM_END - [15:0] */
  4711. /*
  4712. * R28672 (0x7000) - DSP2 ZM 0
  4713. */
  4714. #define WM5100_DSP2_ZM_START_1_MASK 0x00FF /* DSP2_ZM_START - [7:0] */
  4715. #define WM5100_DSP2_ZM_START_1_SHIFT 0 /* DSP2_ZM_START - [7:0] */
  4716. #define WM5100_DSP2_ZM_START_1_WIDTH 8 /* DSP2_ZM_START - [7:0] */
  4717. /*
  4718. * R28673 (0x7001) - DSP2 ZM 1
  4719. */
  4720. #define WM5100_DSP2_ZM_START_MASK 0xFFFF /* DSP2_ZM_START - [15:0] */
  4721. #define WM5100_DSP2_ZM_START_SHIFT 0 /* DSP2_ZM_START - [15:0] */
  4722. #define WM5100_DSP2_ZM_START_WIDTH 16 /* DSP2_ZM_START - [15:0] */
  4723. /*
  4724. * R28674 (0x7002) - DSP2 ZM 2
  4725. */
  4726. #define WM5100_DSP2_ZM_1_1_MASK 0x00FF /* DSP2_ZM_1 - [7:0] */
  4727. #define WM5100_DSP2_ZM_1_1_SHIFT 0 /* DSP2_ZM_1 - [7:0] */
  4728. #define WM5100_DSP2_ZM_1_1_WIDTH 8 /* DSP2_ZM_1 - [7:0] */
  4729. /*
  4730. * R28675 (0x7003) - DSP2 ZM 3
  4731. */
  4732. #define WM5100_DSP2_ZM_1_MASK 0xFFFF /* DSP2_ZM_1 - [15:0] */
  4733. #define WM5100_DSP2_ZM_1_SHIFT 0 /* DSP2_ZM_1 - [15:0] */
  4734. #define WM5100_DSP2_ZM_1_WIDTH 16 /* DSP2_ZM_1 - [15:0] */
  4735. /*
  4736. * R30716 (0x77FC) - DSP2 ZM 2044
  4737. */
  4738. #define WM5100_DSP2_ZM_1022_1_MASK 0x00FF /* DSP2_ZM_1022 - [7:0] */
  4739. #define WM5100_DSP2_ZM_1022_1_SHIFT 0 /* DSP2_ZM_1022 - [7:0] */
  4740. #define WM5100_DSP2_ZM_1022_1_WIDTH 8 /* DSP2_ZM_1022 - [7:0] */
  4741. /*
  4742. * R30717 (0x77FD) - DSP2 ZM 2045
  4743. */
  4744. #define WM5100_DSP2_ZM_1022_MASK 0xFFFF /* DSP2_ZM_1022 - [15:0] */
  4745. #define WM5100_DSP2_ZM_1022_SHIFT 0 /* DSP2_ZM_1022 - [15:0] */
  4746. #define WM5100_DSP2_ZM_1022_WIDTH 16 /* DSP2_ZM_1022 - [15:0] */
  4747. /*
  4748. * R30718 (0x77FE) - DSP2 ZM 2046
  4749. */
  4750. #define WM5100_DSP2_ZM_END_1_MASK 0x00FF /* DSP2_ZM_END - [7:0] */
  4751. #define WM5100_DSP2_ZM_END_1_SHIFT 0 /* DSP2_ZM_END - [7:0] */
  4752. #define WM5100_DSP2_ZM_END_1_WIDTH 8 /* DSP2_ZM_END - [7:0] */
  4753. /*
  4754. * R30719 (0x77FF) - DSP2 ZM 2047
  4755. */
  4756. #define WM5100_DSP2_ZM_END_MASK 0xFFFF /* DSP2_ZM_END - [15:0] */
  4757. #define WM5100_DSP2_ZM_END_SHIFT 0 /* DSP2_ZM_END - [15:0] */
  4758. #define WM5100_DSP2_ZM_END_WIDTH 16 /* DSP2_ZM_END - [15:0] */
  4759. /*
  4760. * R32768 (0x8000) - DSP3 DM 0
  4761. */
  4762. #define WM5100_DSP3_DM_START_1_MASK 0x00FF /* DSP3_DM_START - [7:0] */
  4763. #define WM5100_DSP3_DM_START_1_SHIFT 0 /* DSP3_DM_START - [7:0] */
  4764. #define WM5100_DSP3_DM_START_1_WIDTH 8 /* DSP3_DM_START - [7:0] */
  4765. /*
  4766. * R32769 (0x8001) - DSP3 DM 1
  4767. */
  4768. #define WM5100_DSP3_DM_START_MASK 0xFFFF /* DSP3_DM_START - [15:0] */
  4769. #define WM5100_DSP3_DM_START_SHIFT 0 /* DSP3_DM_START - [15:0] */
  4770. #define WM5100_DSP3_DM_START_WIDTH 16 /* DSP3_DM_START - [15:0] */
  4771. /*
  4772. * R32770 (0x8002) - DSP3 DM 2
  4773. */
  4774. #define WM5100_DSP3_DM_1_1_MASK 0x00FF /* DSP3_DM_1 - [7:0] */
  4775. #define WM5100_DSP3_DM_1_1_SHIFT 0 /* DSP3_DM_1 - [7:0] */
  4776. #define WM5100_DSP3_DM_1_1_WIDTH 8 /* DSP3_DM_1 - [7:0] */
  4777. /*
  4778. * R32771 (0x8003) - DSP3 DM 3
  4779. */
  4780. #define WM5100_DSP3_DM_1_MASK 0xFFFF /* DSP3_DM_1 - [15:0] */
  4781. #define WM5100_DSP3_DM_1_SHIFT 0 /* DSP3_DM_1 - [15:0] */
  4782. #define WM5100_DSP3_DM_1_WIDTH 16 /* DSP3_DM_1 - [15:0] */
  4783. /*
  4784. * R33276 (0x81FC) - DSP3 DM 508
  4785. */
  4786. #define WM5100_DSP3_DM_254_1_MASK 0x00FF /* DSP3_DM_254 - [7:0] */
  4787. #define WM5100_DSP3_DM_254_1_SHIFT 0 /* DSP3_DM_254 - [7:0] */
  4788. #define WM5100_DSP3_DM_254_1_WIDTH 8 /* DSP3_DM_254 - [7:0] */
  4789. /*
  4790. * R33277 (0x81FD) - DSP3 DM 509
  4791. */
  4792. #define WM5100_DSP3_DM_254_MASK 0xFFFF /* DSP3_DM_254 - [15:0] */
  4793. #define WM5100_DSP3_DM_254_SHIFT 0 /* DSP3_DM_254 - [15:0] */
  4794. #define WM5100_DSP3_DM_254_WIDTH 16 /* DSP3_DM_254 - [15:0] */
  4795. /*
  4796. * R33278 (0x81FE) - DSP3 DM 510
  4797. */
  4798. #define WM5100_DSP3_DM_END_1_MASK 0x00FF /* DSP3_DM_END - [7:0] */
  4799. #define WM5100_DSP3_DM_END_1_SHIFT 0 /* DSP3_DM_END - [7:0] */
  4800. #define WM5100_DSP3_DM_END_1_WIDTH 8 /* DSP3_DM_END - [7:0] */
  4801. /*
  4802. * R33279 (0x81FF) - DSP3 DM 511
  4803. */
  4804. #define WM5100_DSP3_DM_END_MASK 0xFFFF /* DSP3_DM_END - [15:0] */
  4805. #define WM5100_DSP3_DM_END_SHIFT 0 /* DSP3_DM_END - [15:0] */
  4806. #define WM5100_DSP3_DM_END_WIDTH 16 /* DSP3_DM_END - [15:0] */
  4807. /*
  4808. * R34816 (0x8800) - DSP3 PM 0
  4809. */
  4810. #define WM5100_DSP3_PM_START_2_MASK 0x00FF /* DSP3_PM_START - [7:0] */
  4811. #define WM5100_DSP3_PM_START_2_SHIFT 0 /* DSP3_PM_START - [7:0] */
  4812. #define WM5100_DSP3_PM_START_2_WIDTH 8 /* DSP3_PM_START - [7:0] */
  4813. /*
  4814. * R34817 (0x8801) - DSP3 PM 1
  4815. */
  4816. #define WM5100_DSP3_PM_START_1_MASK 0xFFFF /* DSP3_PM_START - [15:0] */
  4817. #define WM5100_DSP3_PM_START_1_SHIFT 0 /* DSP3_PM_START - [15:0] */
  4818. #define WM5100_DSP3_PM_START_1_WIDTH 16 /* DSP3_PM_START - [15:0] */
  4819. /*
  4820. * R34818 (0x8802) - DSP3 PM 2
  4821. */
  4822. #define WM5100_DSP3_PM_START_MASK 0xFFFF /* DSP3_PM_START - [15:0] */
  4823. #define WM5100_DSP3_PM_START_SHIFT 0 /* DSP3_PM_START - [15:0] */
  4824. #define WM5100_DSP3_PM_START_WIDTH 16 /* DSP3_PM_START - [15:0] */
  4825. /*
  4826. * R34819 (0x8803) - DSP3 PM 3
  4827. */
  4828. #define WM5100_DSP3_PM_1_2_MASK 0x00FF /* DSP3_PM_1 - [7:0] */
  4829. #define WM5100_DSP3_PM_1_2_SHIFT 0 /* DSP3_PM_1 - [7:0] */
  4830. #define WM5100_DSP3_PM_1_2_WIDTH 8 /* DSP3_PM_1 - [7:0] */
  4831. /*
  4832. * R34820 (0x8804) - DSP3 PM 4
  4833. */
  4834. #define WM5100_DSP3_PM_1_1_MASK 0xFFFF /* DSP3_PM_1 - [15:0] */
  4835. #define WM5100_DSP3_PM_1_1_SHIFT 0 /* DSP3_PM_1 - [15:0] */
  4836. #define WM5100_DSP3_PM_1_1_WIDTH 16 /* DSP3_PM_1 - [15:0] */
  4837. /*
  4838. * R34821 (0x8805) - DSP3 PM 5
  4839. */
  4840. #define WM5100_DSP3_PM_1_MASK 0xFFFF /* DSP3_PM_1 - [15:0] */
  4841. #define WM5100_DSP3_PM_1_SHIFT 0 /* DSP3_PM_1 - [15:0] */
  4842. #define WM5100_DSP3_PM_1_WIDTH 16 /* DSP3_PM_1 - [15:0] */
  4843. /*
  4844. * R36346 (0x8DFA) - DSP3 PM 1530
  4845. */
  4846. #define WM5100_DSP3_PM_510_2_MASK 0x00FF /* DSP3_PM_510 - [7:0] */
  4847. #define WM5100_DSP3_PM_510_2_SHIFT 0 /* DSP3_PM_510 - [7:0] */
  4848. #define WM5100_DSP3_PM_510_2_WIDTH 8 /* DSP3_PM_510 - [7:0] */
  4849. /*
  4850. * R36347 (0x8DFB) - DSP3 PM 1531
  4851. */
  4852. #define WM5100_DSP3_PM_510_1_MASK 0xFFFF /* DSP3_PM_510 - [15:0] */
  4853. #define WM5100_DSP3_PM_510_1_SHIFT 0 /* DSP3_PM_510 - [15:0] */
  4854. #define WM5100_DSP3_PM_510_1_WIDTH 16 /* DSP3_PM_510 - [15:0] */
  4855. /*
  4856. * R36348 (0x8DFC) - DSP3 PM 1532
  4857. */
  4858. #define WM5100_DSP3_PM_510_MASK 0xFFFF /* DSP3_PM_510 - [15:0] */
  4859. #define WM5100_DSP3_PM_510_SHIFT 0 /* DSP3_PM_510 - [15:0] */
  4860. #define WM5100_DSP3_PM_510_WIDTH 16 /* DSP3_PM_510 - [15:0] */
  4861. /*
  4862. * R36349 (0x8DFD) - DSP3 PM 1533
  4863. */
  4864. #define WM5100_DSP3_PM_END_2_MASK 0x00FF /* DSP3_PM_END - [7:0] */
  4865. #define WM5100_DSP3_PM_END_2_SHIFT 0 /* DSP3_PM_END - [7:0] */
  4866. #define WM5100_DSP3_PM_END_2_WIDTH 8 /* DSP3_PM_END - [7:0] */
  4867. /*
  4868. * R36350 (0x8DFE) - DSP3 PM 1534
  4869. */
  4870. #define WM5100_DSP3_PM_END_1_MASK 0xFFFF /* DSP3_PM_END - [15:0] */
  4871. #define WM5100_DSP3_PM_END_1_SHIFT 0 /* DSP3_PM_END - [15:0] */
  4872. #define WM5100_DSP3_PM_END_1_WIDTH 16 /* DSP3_PM_END - [15:0] */
  4873. /*
  4874. * R36351 (0x8DFF) - DSP3 PM 1535
  4875. */
  4876. #define WM5100_DSP3_PM_END_MASK 0xFFFF /* DSP3_PM_END - [15:0] */
  4877. #define WM5100_DSP3_PM_END_SHIFT 0 /* DSP3_PM_END - [15:0] */
  4878. #define WM5100_DSP3_PM_END_WIDTH 16 /* DSP3_PM_END - [15:0] */
  4879. /*
  4880. * R36864 (0x9000) - DSP3 ZM 0
  4881. */
  4882. #define WM5100_DSP3_ZM_START_1_MASK 0x00FF /* DSP3_ZM_START - [7:0] */
  4883. #define WM5100_DSP3_ZM_START_1_SHIFT 0 /* DSP3_ZM_START - [7:0] */
  4884. #define WM5100_DSP3_ZM_START_1_WIDTH 8 /* DSP3_ZM_START - [7:0] */
  4885. /*
  4886. * R36865 (0x9001) - DSP3 ZM 1
  4887. */
  4888. #define WM5100_DSP3_ZM_START_MASK 0xFFFF /* DSP3_ZM_START - [15:0] */
  4889. #define WM5100_DSP3_ZM_START_SHIFT 0 /* DSP3_ZM_START - [15:0] */
  4890. #define WM5100_DSP3_ZM_START_WIDTH 16 /* DSP3_ZM_START - [15:0] */
  4891. /*
  4892. * R36866 (0x9002) - DSP3 ZM 2
  4893. */
  4894. #define WM5100_DSP3_ZM_1_1_MASK 0x00FF /* DSP3_ZM_1 - [7:0] */
  4895. #define WM5100_DSP3_ZM_1_1_SHIFT 0 /* DSP3_ZM_1 - [7:0] */
  4896. #define WM5100_DSP3_ZM_1_1_WIDTH 8 /* DSP3_ZM_1 - [7:0] */
  4897. /*
  4898. * R36867 (0x9003) - DSP3 ZM 3
  4899. */
  4900. #define WM5100_DSP3_ZM_1_MASK 0xFFFF /* DSP3_ZM_1 - [15:0] */
  4901. #define WM5100_DSP3_ZM_1_SHIFT 0 /* DSP3_ZM_1 - [15:0] */
  4902. #define WM5100_DSP3_ZM_1_WIDTH 16 /* DSP3_ZM_1 - [15:0] */
  4903. /*
  4904. * R38908 (0x97FC) - DSP3 ZM 2044
  4905. */
  4906. #define WM5100_DSP3_ZM_1022_1_MASK 0x00FF /* DSP3_ZM_1022 - [7:0] */
  4907. #define WM5100_DSP3_ZM_1022_1_SHIFT 0 /* DSP3_ZM_1022 - [7:0] */
  4908. #define WM5100_DSP3_ZM_1022_1_WIDTH 8 /* DSP3_ZM_1022 - [7:0] */
  4909. /*
  4910. * R38909 (0x97FD) - DSP3 ZM 2045
  4911. */
  4912. #define WM5100_DSP3_ZM_1022_MASK 0xFFFF /* DSP3_ZM_1022 - [15:0] */
  4913. #define WM5100_DSP3_ZM_1022_SHIFT 0 /* DSP3_ZM_1022 - [15:0] */
  4914. #define WM5100_DSP3_ZM_1022_WIDTH 16 /* DSP3_ZM_1022 - [15:0] */
  4915. /*
  4916. * R38910 (0x97FE) - DSP3 ZM 2046
  4917. */
  4918. #define WM5100_DSP3_ZM_END_1_MASK 0x00FF /* DSP3_ZM_END - [7:0] */
  4919. #define WM5100_DSP3_ZM_END_1_SHIFT 0 /* DSP3_ZM_END - [7:0] */
  4920. #define WM5100_DSP3_ZM_END_1_WIDTH 8 /* DSP3_ZM_END - [7:0] */
  4921. /*
  4922. * R38911 (0x97FF) - DSP3 ZM 2047
  4923. */
  4924. #define WM5100_DSP3_ZM_END_MASK 0xFFFF /* DSP3_ZM_END - [15:0] */
  4925. #define WM5100_DSP3_ZM_END_SHIFT 0 /* DSP3_ZM_END - [15:0] */
  4926. #define WM5100_DSP3_ZM_END_WIDTH 16 /* DSP3_ZM_END - [15:0] */
  4927. bool wm5100_readable_register(struct device *dev, unsigned int reg);
  4928. bool wm5100_volatile_register(struct device *dev, unsigned int reg);
  4929. extern struct reg_default wm5100_reg_defaults[WM5100_REGISTER_COUNT];
  4930. #endif