registers.h 478 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176
  1. /*
  2. * ARIZONA register definitions
  3. *
  4. * Copyright 2012 Wolfson Microelectronics plc
  5. *
  6. * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef _ARIZONA_REGISTERS_H
  13. #define _ARIZONA_REGISTERS_H
  14. /*
  15. * Register values.
  16. */
  17. #define ARIZONA_SOFTWARE_RESET 0x00
  18. #define ARIZONA_DEVICE_REVISION 0x01
  19. #define ARIZONA_CTRL_IF_SPI_CFG_1 0x08
  20. #define ARIZONA_CTRL_IF_I2C1_CFG_1 0x09
  21. #define ARIZONA_CTRL_IF_I2C2_CFG_1 0x0A
  22. #define ARIZONA_CTRL_IF_I2C1_CFG_2 0x0B
  23. #define ARIZONA_CTRL_IF_I2C2_CFG_2 0x0C
  24. #define ARIZONA_CTRL_IF_STATUS_1 0x0D
  25. #define ARIZONA_WRITE_SEQUENCER_CTRL_0 0x16
  26. #define ARIZONA_WRITE_SEQUENCER_CTRL_1 0x17
  27. #define ARIZONA_WRITE_SEQUENCER_CTRL_2 0x18
  28. #define ARIZONA_WRITE_SEQUENCER_CTRL_3 0x19
  29. #define ARIZONA_WRITE_SEQUENCER_PROM 0x1A
  30. #define ARIZONA_TONE_GENERATOR_1 0x20
  31. #define ARIZONA_TONE_GENERATOR_2 0x21
  32. #define ARIZONA_TONE_GENERATOR_3 0x22
  33. #define ARIZONA_TONE_GENERATOR_4 0x23
  34. #define ARIZONA_TONE_GENERATOR_5 0x24
  35. #define ARIZONA_PWM_DRIVE_1 0x30
  36. #define ARIZONA_PWM_DRIVE_2 0x31
  37. #define ARIZONA_PWM_DRIVE_3 0x32
  38. #define ARIZONA_WAKE_CONTROL 0x40
  39. #define ARIZONA_SEQUENCE_CONTROL 0x41
  40. #define ARIZONA_SPARE_TRIGGERS 0x42
  41. #define ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_1 0x61
  42. #define ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_2 0x62
  43. #define ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_3 0x63
  44. #define ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_4 0x64
  45. #define ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_1 0x66
  46. #define ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_2 0x67
  47. #define ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_3 0x68
  48. #define ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_4 0x69
  49. #define ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_5 0x6A
  50. #define ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_6 0x6B
  51. #define ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_7 0x6C
  52. #define ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_8 0x6D
  53. #define ARIZONA_COMFORT_NOISE_GENERATOR 0x70
  54. #define ARIZONA_HAPTICS_CONTROL_1 0x90
  55. #define ARIZONA_HAPTICS_CONTROL_2 0x91
  56. #define ARIZONA_HAPTICS_PHASE_1_INTENSITY 0x92
  57. #define ARIZONA_HAPTICS_PHASE_1_DURATION 0x93
  58. #define ARIZONA_HAPTICS_PHASE_2_INTENSITY 0x94
  59. #define ARIZONA_HAPTICS_PHASE_2_DURATION 0x95
  60. #define ARIZONA_HAPTICS_PHASE_3_INTENSITY 0x96
  61. #define ARIZONA_HAPTICS_PHASE_3_DURATION 0x97
  62. #define ARIZONA_HAPTICS_STATUS 0x98
  63. #define ARIZONA_CLOCK_32K_1 0x100
  64. #define ARIZONA_SYSTEM_CLOCK_1 0x101
  65. #define ARIZONA_SAMPLE_RATE_1 0x102
  66. #define ARIZONA_SAMPLE_RATE_2 0x103
  67. #define ARIZONA_SAMPLE_RATE_3 0x104
  68. #define ARIZONA_SAMPLE_RATE_1_STATUS 0x10A
  69. #define ARIZONA_SAMPLE_RATE_2_STATUS 0x10B
  70. #define ARIZONA_SAMPLE_RATE_3_STATUS 0x10C
  71. #define ARIZONA_ASYNC_CLOCK_1 0x112
  72. #define ARIZONA_ASYNC_SAMPLE_RATE_1 0x113
  73. #define ARIZONA_ASYNC_SAMPLE_RATE_2 0x114
  74. #define ARIZONA_ASYNC_SAMPLE_RATE_1_STATUS 0x11B
  75. #define ARIZONA_ASYNC_SAMPLE_RATE_2_STATUS 0x11C
  76. #define ARIZONA_OUTPUT_SYSTEM_CLOCK 0x149
  77. #define ARIZONA_OUTPUT_ASYNC_CLOCK 0x14A
  78. #define ARIZONA_RATE_ESTIMATOR_1 0x152
  79. #define ARIZONA_RATE_ESTIMATOR_2 0x153
  80. #define ARIZONA_RATE_ESTIMATOR_3 0x154
  81. #define ARIZONA_RATE_ESTIMATOR_4 0x155
  82. #define ARIZONA_RATE_ESTIMATOR_5 0x156
  83. #define ARIZONA_DYNAMIC_FREQUENCY_SCALING_1 0x161
  84. #define ARIZONA_FLL1_CONTROL_1 0x171
  85. #define ARIZONA_FLL1_CONTROL_2 0x172
  86. #define ARIZONA_FLL1_CONTROL_3 0x173
  87. #define ARIZONA_FLL1_CONTROL_4 0x174
  88. #define ARIZONA_FLL1_CONTROL_5 0x175
  89. #define ARIZONA_FLL1_CONTROL_6 0x176
  90. #define ARIZONA_FLL1_LOOP_FILTER_TEST_1 0x177
  91. #define ARIZONA_FLL1_NCO_TEST_0 0x178
  92. #define ARIZONA_FLL1_CONTROL_7 0x179
  93. #define ARIZONA_FLL1_SYNCHRONISER_1 0x181
  94. #define ARIZONA_FLL1_SYNCHRONISER_2 0x182
  95. #define ARIZONA_FLL1_SYNCHRONISER_3 0x183
  96. #define ARIZONA_FLL1_SYNCHRONISER_4 0x184
  97. #define ARIZONA_FLL1_SYNCHRONISER_5 0x185
  98. #define ARIZONA_FLL1_SYNCHRONISER_6 0x186
  99. #define ARIZONA_FLL1_SYNCHRONISER_7 0x187
  100. #define ARIZONA_FLL1_SPREAD_SPECTRUM 0x189
  101. #define ARIZONA_FLL1_GPIO_CLOCK 0x18A
  102. #define ARIZONA_FLL2_CONTROL_1 0x191
  103. #define ARIZONA_FLL2_CONTROL_2 0x192
  104. #define ARIZONA_FLL2_CONTROL_3 0x193
  105. #define ARIZONA_FLL2_CONTROL_4 0x194
  106. #define ARIZONA_FLL2_CONTROL_5 0x195
  107. #define ARIZONA_FLL2_CONTROL_6 0x196
  108. #define ARIZONA_FLL2_LOOP_FILTER_TEST_1 0x197
  109. #define ARIZONA_FLL2_NCO_TEST_0 0x198
  110. #define ARIZONA_FLL2_CONTROL_7 0x199
  111. #define ARIZONA_FLL2_SYNCHRONISER_1 0x1A1
  112. #define ARIZONA_FLL2_SYNCHRONISER_2 0x1A2
  113. #define ARIZONA_FLL2_SYNCHRONISER_3 0x1A3
  114. #define ARIZONA_FLL2_SYNCHRONISER_4 0x1A4
  115. #define ARIZONA_FLL2_SYNCHRONISER_5 0x1A5
  116. #define ARIZONA_FLL2_SYNCHRONISER_6 0x1A6
  117. #define ARIZONA_FLL2_SYNCHRONISER_7 0x1A7
  118. #define ARIZONA_FLL2_SPREAD_SPECTRUM 0x1A9
  119. #define ARIZONA_FLL2_GPIO_CLOCK 0x1AA
  120. #define ARIZONA_MIC_CHARGE_PUMP_1 0x200
  121. #define ARIZONA_LDO1_CONTROL_1 0x210
  122. #define ARIZONA_LDO1_CONTROL_2 0x212
  123. #define ARIZONA_LDO2_CONTROL_1 0x213
  124. #define ARIZONA_MIC_BIAS_CTRL_1 0x218
  125. #define ARIZONA_MIC_BIAS_CTRL_2 0x219
  126. #define ARIZONA_MIC_BIAS_CTRL_3 0x21A
  127. #define ARIZONA_HP_CTRL_1L 0x225
  128. #define ARIZONA_HP_CTRL_1R 0x226
  129. #define ARIZONA_ACCESSORY_DETECT_MODE_1 0x293
  130. #define ARIZONA_HEADPHONE_DETECT_1 0x29B
  131. #define ARIZONA_HEADPHONE_DETECT_2 0x29C
  132. #define ARIZONA_HP_DACVAL 0x29F
  133. #define ARIZONA_MICD_CLAMP_CONTROL 0x2A2
  134. #define ARIZONA_MIC_DETECT_1 0x2A3
  135. #define ARIZONA_MIC_DETECT_2 0x2A4
  136. #define ARIZONA_MIC_DETECT_3 0x2A5
  137. #define ARIZONA_MIC_DETECT_LEVEL_1 0x2A6
  138. #define ARIZONA_MIC_DETECT_LEVEL_2 0x2A7
  139. #define ARIZONA_MIC_DETECT_LEVEL_3 0x2A8
  140. #define ARIZONA_MIC_DETECT_LEVEL_4 0x2A9
  141. #define ARIZONA_MIC_DETECT_4 0x2AB
  142. #define ARIZONA_MIC_NOISE_MIX_CONTROL_1 0x2C3
  143. #define ARIZONA_ISOLATION_CONTROL 0x2CB
  144. #define ARIZONA_JACK_DETECT_ANALOGUE 0x2D3
  145. #define ARIZONA_INPUT_ENABLES 0x300
  146. #define ARIZONA_INPUT_ENABLES_STATUS 0x301
  147. #define ARIZONA_INPUT_RATE 0x308
  148. #define ARIZONA_INPUT_VOLUME_RAMP 0x309
  149. #define ARIZONA_HPF_CONTROL 0x30C
  150. #define ARIZONA_IN1L_CONTROL 0x310
  151. #define ARIZONA_ADC_DIGITAL_VOLUME_1L 0x311
  152. #define ARIZONA_DMIC1L_CONTROL 0x312
  153. #define ARIZONA_IN1R_CONTROL 0x314
  154. #define ARIZONA_ADC_DIGITAL_VOLUME_1R 0x315
  155. #define ARIZONA_DMIC1R_CONTROL 0x316
  156. #define ARIZONA_IN2L_CONTROL 0x318
  157. #define ARIZONA_ADC_DIGITAL_VOLUME_2L 0x319
  158. #define ARIZONA_DMIC2L_CONTROL 0x31A
  159. #define ARIZONA_IN2R_CONTROL 0x31C
  160. #define ARIZONA_ADC_DIGITAL_VOLUME_2R 0x31D
  161. #define ARIZONA_DMIC2R_CONTROL 0x31E
  162. #define ARIZONA_IN3L_CONTROL 0x320
  163. #define ARIZONA_ADC_DIGITAL_VOLUME_3L 0x321
  164. #define ARIZONA_DMIC3L_CONTROL 0x322
  165. #define ARIZONA_IN3R_CONTROL 0x324
  166. #define ARIZONA_ADC_DIGITAL_VOLUME_3R 0x325
  167. #define ARIZONA_DMIC3R_CONTROL 0x326
  168. #define ARIZONA_IN4L_CONTROL 0x328
  169. #define ARIZONA_ADC_DIGITAL_VOLUME_4L 0x329
  170. #define ARIZONA_DMIC4L_CONTROL 0x32A
  171. #define ARIZONA_IN4R_CONTROL 0x32C
  172. #define ARIZONA_ADC_DIGITAL_VOLUME_4R 0x32D
  173. #define ARIZONA_DMIC4R_CONTROL 0x32E
  174. #define ARIZONA_OUTPUT_ENABLES_1 0x400
  175. #define ARIZONA_OUTPUT_STATUS_1 0x401
  176. #define ARIZONA_RAW_OUTPUT_STATUS_1 0x406
  177. #define ARIZONA_OUTPUT_RATE_1 0x408
  178. #define ARIZONA_OUTPUT_VOLUME_RAMP 0x409
  179. #define ARIZONA_OUTPUT_PATH_CONFIG_1L 0x410
  180. #define ARIZONA_DAC_DIGITAL_VOLUME_1L 0x411
  181. #define ARIZONA_DAC_VOLUME_LIMIT_1L 0x412
  182. #define ARIZONA_NOISE_GATE_SELECT_1L 0x413
  183. #define ARIZONA_OUTPUT_PATH_CONFIG_1R 0x414
  184. #define ARIZONA_DAC_DIGITAL_VOLUME_1R 0x415
  185. #define ARIZONA_DAC_VOLUME_LIMIT_1R 0x416
  186. #define ARIZONA_NOISE_GATE_SELECT_1R 0x417
  187. #define ARIZONA_OUTPUT_PATH_CONFIG_2L 0x418
  188. #define ARIZONA_DAC_DIGITAL_VOLUME_2L 0x419
  189. #define ARIZONA_DAC_VOLUME_LIMIT_2L 0x41A
  190. #define ARIZONA_NOISE_GATE_SELECT_2L 0x41B
  191. #define ARIZONA_OUTPUT_PATH_CONFIG_2R 0x41C
  192. #define ARIZONA_DAC_DIGITAL_VOLUME_2R 0x41D
  193. #define ARIZONA_DAC_VOLUME_LIMIT_2R 0x41E
  194. #define ARIZONA_NOISE_GATE_SELECT_2R 0x41F
  195. #define ARIZONA_OUTPUT_PATH_CONFIG_3L 0x420
  196. #define ARIZONA_DAC_DIGITAL_VOLUME_3L 0x421
  197. #define ARIZONA_DAC_VOLUME_LIMIT_3L 0x422
  198. #define ARIZONA_NOISE_GATE_SELECT_3L 0x423
  199. #define ARIZONA_OUTPUT_PATH_CONFIG_3R 0x424
  200. #define ARIZONA_DAC_DIGITAL_VOLUME_3R 0x425
  201. #define ARIZONA_DAC_VOLUME_LIMIT_3R 0x426
  202. #define ARIZONA_NOISE_GATE_SELECT_3R 0x427
  203. #define ARIZONA_OUTPUT_PATH_CONFIG_4L 0x428
  204. #define ARIZONA_DAC_DIGITAL_VOLUME_4L 0x429
  205. #define ARIZONA_OUT_VOLUME_4L 0x42A
  206. #define ARIZONA_NOISE_GATE_SELECT_4L 0x42B
  207. #define ARIZONA_OUTPUT_PATH_CONFIG_4R 0x42C
  208. #define ARIZONA_DAC_DIGITAL_VOLUME_4R 0x42D
  209. #define ARIZONA_OUT_VOLUME_4R 0x42E
  210. #define ARIZONA_NOISE_GATE_SELECT_4R 0x42F
  211. #define ARIZONA_OUTPUT_PATH_CONFIG_5L 0x430
  212. #define ARIZONA_DAC_DIGITAL_VOLUME_5L 0x431
  213. #define ARIZONA_DAC_VOLUME_LIMIT_5L 0x432
  214. #define ARIZONA_NOISE_GATE_SELECT_5L 0x433
  215. #define ARIZONA_OUTPUT_PATH_CONFIG_5R 0x434
  216. #define ARIZONA_DAC_DIGITAL_VOLUME_5R 0x435
  217. #define ARIZONA_DAC_VOLUME_LIMIT_5R 0x436
  218. #define ARIZONA_NOISE_GATE_SELECT_5R 0x437
  219. #define ARIZONA_OUTPUT_PATH_CONFIG_6L 0x438
  220. #define ARIZONA_DAC_DIGITAL_VOLUME_6L 0x439
  221. #define ARIZONA_DAC_VOLUME_LIMIT_6L 0x43A
  222. #define ARIZONA_NOISE_GATE_SELECT_6L 0x43B
  223. #define ARIZONA_OUTPUT_PATH_CONFIG_6R 0x43C
  224. #define ARIZONA_DAC_DIGITAL_VOLUME_6R 0x43D
  225. #define ARIZONA_DAC_VOLUME_LIMIT_6R 0x43E
  226. #define ARIZONA_NOISE_GATE_SELECT_6R 0x43F
  227. #define ARIZONA_DRE_ENABLE 0x440
  228. #define ARIZONA_DRE_CONTROL_1 0x441
  229. #define ARIZONA_DRE_CONTROL_2 0x442
  230. #define ARIZONA_DRE_CONTROL_3 0x443
  231. #define ARIZONA_EDRE_ENABLE 0x448
  232. #define ARIZONA_DAC_AEC_CONTROL_1 0x450
  233. #define ARIZONA_DAC_AEC_CONTROL_2 0x451
  234. #define ARIZONA_NOISE_GATE_CONTROL 0x458
  235. #define ARIZONA_PDM_SPK1_CTRL_1 0x490
  236. #define ARIZONA_PDM_SPK1_CTRL_2 0x491
  237. #define ARIZONA_PDM_SPK2_CTRL_1 0x492
  238. #define ARIZONA_PDM_SPK2_CTRL_2 0x493
  239. #define ARIZONA_HP_TEST_CTRL_13 0x49A
  240. #define ARIZONA_HP1_SHORT_CIRCUIT_CTRL 0x4A0
  241. #define ARIZONA_HP2_SHORT_CIRCUIT_CTRL 0x4A1
  242. #define ARIZONA_HP3_SHORT_CIRCUIT_CTRL 0x4A2
  243. #define ARIZONA_HP_TEST_CTRL_1 0x4A4
  244. #define ARIZONA_SPK_CTRL_2 0x4B5
  245. #define ARIZONA_SPK_CTRL_3 0x4B6
  246. #define ARIZONA_DAC_COMP_1 0x4DC
  247. #define ARIZONA_DAC_COMP_2 0x4DD
  248. #define ARIZONA_DAC_COMP_3 0x4DE
  249. #define ARIZONA_DAC_COMP_4 0x4DF
  250. #define ARIZONA_AIF1_BCLK_CTRL 0x500
  251. #define ARIZONA_AIF1_TX_PIN_CTRL 0x501
  252. #define ARIZONA_AIF1_RX_PIN_CTRL 0x502
  253. #define ARIZONA_AIF1_RATE_CTRL 0x503
  254. #define ARIZONA_AIF1_FORMAT 0x504
  255. #define ARIZONA_AIF1_TX_BCLK_RATE 0x505
  256. #define ARIZONA_AIF1_RX_BCLK_RATE 0x506
  257. #define ARIZONA_AIF1_FRAME_CTRL_1 0x507
  258. #define ARIZONA_AIF1_FRAME_CTRL_2 0x508
  259. #define ARIZONA_AIF1_FRAME_CTRL_3 0x509
  260. #define ARIZONA_AIF1_FRAME_CTRL_4 0x50A
  261. #define ARIZONA_AIF1_FRAME_CTRL_5 0x50B
  262. #define ARIZONA_AIF1_FRAME_CTRL_6 0x50C
  263. #define ARIZONA_AIF1_FRAME_CTRL_7 0x50D
  264. #define ARIZONA_AIF1_FRAME_CTRL_8 0x50E
  265. #define ARIZONA_AIF1_FRAME_CTRL_9 0x50F
  266. #define ARIZONA_AIF1_FRAME_CTRL_10 0x510
  267. #define ARIZONA_AIF1_FRAME_CTRL_11 0x511
  268. #define ARIZONA_AIF1_FRAME_CTRL_12 0x512
  269. #define ARIZONA_AIF1_FRAME_CTRL_13 0x513
  270. #define ARIZONA_AIF1_FRAME_CTRL_14 0x514
  271. #define ARIZONA_AIF1_FRAME_CTRL_15 0x515
  272. #define ARIZONA_AIF1_FRAME_CTRL_16 0x516
  273. #define ARIZONA_AIF1_FRAME_CTRL_17 0x517
  274. #define ARIZONA_AIF1_FRAME_CTRL_18 0x518
  275. #define ARIZONA_AIF1_TX_ENABLES 0x519
  276. #define ARIZONA_AIF1_RX_ENABLES 0x51A
  277. #define ARIZONA_AIF1_FORCE_WRITE 0x51B
  278. #define ARIZONA_AIF2_BCLK_CTRL 0x540
  279. #define ARIZONA_AIF2_TX_PIN_CTRL 0x541
  280. #define ARIZONA_AIF2_RX_PIN_CTRL 0x542
  281. #define ARIZONA_AIF2_RATE_CTRL 0x543
  282. #define ARIZONA_AIF2_FORMAT 0x544
  283. #define ARIZONA_AIF2_TX_BCLK_RATE 0x545
  284. #define ARIZONA_AIF2_RX_BCLK_RATE 0x546
  285. #define ARIZONA_AIF2_FRAME_CTRL_1 0x547
  286. #define ARIZONA_AIF2_FRAME_CTRL_2 0x548
  287. #define ARIZONA_AIF2_FRAME_CTRL_3 0x549
  288. #define ARIZONA_AIF2_FRAME_CTRL_4 0x54A
  289. #define ARIZONA_AIF2_FRAME_CTRL_5 0x54B
  290. #define ARIZONA_AIF2_FRAME_CTRL_6 0x54C
  291. #define ARIZONA_AIF2_FRAME_CTRL_7 0x54D
  292. #define ARIZONA_AIF2_FRAME_CTRL_8 0x54E
  293. #define ARIZONA_AIF2_FRAME_CTRL_11 0x551
  294. #define ARIZONA_AIF2_FRAME_CTRL_12 0x552
  295. #define ARIZONA_AIF2_FRAME_CTRL_13 0x553
  296. #define ARIZONA_AIF2_FRAME_CTRL_14 0x554
  297. #define ARIZONA_AIF2_FRAME_CTRL_15 0x555
  298. #define ARIZONA_AIF2_FRAME_CTRL_16 0x556
  299. #define ARIZONA_AIF2_TX_ENABLES 0x559
  300. #define ARIZONA_AIF2_RX_ENABLES 0x55A
  301. #define ARIZONA_AIF2_FORCE_WRITE 0x55B
  302. #define ARIZONA_AIF3_BCLK_CTRL 0x580
  303. #define ARIZONA_AIF3_TX_PIN_CTRL 0x581
  304. #define ARIZONA_AIF3_RX_PIN_CTRL 0x582
  305. #define ARIZONA_AIF3_RATE_CTRL 0x583
  306. #define ARIZONA_AIF3_FORMAT 0x584
  307. #define ARIZONA_AIF3_TX_BCLK_RATE 0x585
  308. #define ARIZONA_AIF3_RX_BCLK_RATE 0x586
  309. #define ARIZONA_AIF3_FRAME_CTRL_1 0x587
  310. #define ARIZONA_AIF3_FRAME_CTRL_2 0x588
  311. #define ARIZONA_AIF3_FRAME_CTRL_3 0x589
  312. #define ARIZONA_AIF3_FRAME_CTRL_4 0x58A
  313. #define ARIZONA_AIF3_FRAME_CTRL_11 0x591
  314. #define ARIZONA_AIF3_FRAME_CTRL_12 0x592
  315. #define ARIZONA_AIF3_TX_ENABLES 0x599
  316. #define ARIZONA_AIF3_RX_ENABLES 0x59A
  317. #define ARIZONA_AIF3_FORCE_WRITE 0x59B
  318. #define ARIZONA_SPD1_TX_CONTROL 0x5C2
  319. #define ARIZONA_SPD1_TX_CHANNEL_STATUS_1 0x5C3
  320. #define ARIZONA_SPD1_TX_CHANNEL_STATUS_2 0x5C4
  321. #define ARIZONA_SPD1_TX_CHANNEL_STATUS_3 0x5C5
  322. #define ARIZONA_SLIMBUS_FRAMER_REF_GEAR 0x5E3
  323. #define ARIZONA_SLIMBUS_RATES_1 0x5E5
  324. #define ARIZONA_SLIMBUS_RATES_2 0x5E6
  325. #define ARIZONA_SLIMBUS_RATES_3 0x5E7
  326. #define ARIZONA_SLIMBUS_RATES_4 0x5E8
  327. #define ARIZONA_SLIMBUS_RATES_5 0x5E9
  328. #define ARIZONA_SLIMBUS_RATES_6 0x5EA
  329. #define ARIZONA_SLIMBUS_RATES_7 0x5EB
  330. #define ARIZONA_SLIMBUS_RATES_8 0x5EC
  331. #define ARIZONA_SLIMBUS_RX_CHANNEL_ENABLE 0x5F5
  332. #define ARIZONA_SLIMBUS_TX_CHANNEL_ENABLE 0x5F6
  333. #define ARIZONA_SLIMBUS_RX_PORT_STATUS 0x5F7
  334. #define ARIZONA_SLIMBUS_TX_PORT_STATUS 0x5F8
  335. #define ARIZONA_PWM1MIX_INPUT_1_SOURCE 0x640
  336. #define ARIZONA_PWM1MIX_INPUT_1_VOLUME 0x641
  337. #define ARIZONA_PWM1MIX_INPUT_2_SOURCE 0x642
  338. #define ARIZONA_PWM1MIX_INPUT_2_VOLUME 0x643
  339. #define ARIZONA_PWM1MIX_INPUT_3_SOURCE 0x644
  340. #define ARIZONA_PWM1MIX_INPUT_3_VOLUME 0x645
  341. #define ARIZONA_PWM1MIX_INPUT_4_SOURCE 0x646
  342. #define ARIZONA_PWM1MIX_INPUT_4_VOLUME 0x647
  343. #define ARIZONA_PWM2MIX_INPUT_1_SOURCE 0x648
  344. #define ARIZONA_PWM2MIX_INPUT_1_VOLUME 0x649
  345. #define ARIZONA_PWM2MIX_INPUT_2_SOURCE 0x64A
  346. #define ARIZONA_PWM2MIX_INPUT_2_VOLUME 0x64B
  347. #define ARIZONA_PWM2MIX_INPUT_3_SOURCE 0x64C
  348. #define ARIZONA_PWM2MIX_INPUT_3_VOLUME 0x64D
  349. #define ARIZONA_PWM2MIX_INPUT_4_SOURCE 0x64E
  350. #define ARIZONA_PWM2MIX_INPUT_4_VOLUME 0x64F
  351. #define ARIZONA_MICMIX_INPUT_1_SOURCE 0x660
  352. #define ARIZONA_MICMIX_INPUT_1_VOLUME 0x661
  353. #define ARIZONA_MICMIX_INPUT_2_SOURCE 0x662
  354. #define ARIZONA_MICMIX_INPUT_2_VOLUME 0x663
  355. #define ARIZONA_MICMIX_INPUT_3_SOURCE 0x664
  356. #define ARIZONA_MICMIX_INPUT_3_VOLUME 0x665
  357. #define ARIZONA_MICMIX_INPUT_4_SOURCE 0x666
  358. #define ARIZONA_MICMIX_INPUT_4_VOLUME 0x667
  359. #define ARIZONA_NOISEMIX_INPUT_1_SOURCE 0x668
  360. #define ARIZONA_NOISEMIX_INPUT_1_VOLUME 0x669
  361. #define ARIZONA_NOISEMIX_INPUT_2_SOURCE 0x66A
  362. #define ARIZONA_NOISEMIX_INPUT_2_VOLUME 0x66B
  363. #define ARIZONA_NOISEMIX_INPUT_3_SOURCE 0x66C
  364. #define ARIZONA_NOISEMIX_INPUT_3_VOLUME 0x66D
  365. #define ARIZONA_NOISEMIX_INPUT_4_SOURCE 0x66E
  366. #define ARIZONA_NOISEMIX_INPUT_4_VOLUME 0x66F
  367. #define ARIZONA_OUT1LMIX_INPUT_1_SOURCE 0x680
  368. #define ARIZONA_OUT1LMIX_INPUT_1_VOLUME 0x681
  369. #define ARIZONA_OUT1LMIX_INPUT_2_SOURCE 0x682
  370. #define ARIZONA_OUT1LMIX_INPUT_2_VOLUME 0x683
  371. #define ARIZONA_OUT1LMIX_INPUT_3_SOURCE 0x684
  372. #define ARIZONA_OUT1LMIX_INPUT_3_VOLUME 0x685
  373. #define ARIZONA_OUT1LMIX_INPUT_4_SOURCE 0x686
  374. #define ARIZONA_OUT1LMIX_INPUT_4_VOLUME 0x687
  375. #define ARIZONA_OUT1RMIX_INPUT_1_SOURCE 0x688
  376. #define ARIZONA_OUT1RMIX_INPUT_1_VOLUME 0x689
  377. #define ARIZONA_OUT1RMIX_INPUT_2_SOURCE 0x68A
  378. #define ARIZONA_OUT1RMIX_INPUT_2_VOLUME 0x68B
  379. #define ARIZONA_OUT1RMIX_INPUT_3_SOURCE 0x68C
  380. #define ARIZONA_OUT1RMIX_INPUT_3_VOLUME 0x68D
  381. #define ARIZONA_OUT1RMIX_INPUT_4_SOURCE 0x68E
  382. #define ARIZONA_OUT1RMIX_INPUT_4_VOLUME 0x68F
  383. #define ARIZONA_OUT2LMIX_INPUT_1_SOURCE 0x690
  384. #define ARIZONA_OUT2LMIX_INPUT_1_VOLUME 0x691
  385. #define ARIZONA_OUT2LMIX_INPUT_2_SOURCE 0x692
  386. #define ARIZONA_OUT2LMIX_INPUT_2_VOLUME 0x693
  387. #define ARIZONA_OUT2LMIX_INPUT_3_SOURCE 0x694
  388. #define ARIZONA_OUT2LMIX_INPUT_3_VOLUME 0x695
  389. #define ARIZONA_OUT2LMIX_INPUT_4_SOURCE 0x696
  390. #define ARIZONA_OUT2LMIX_INPUT_4_VOLUME 0x697
  391. #define ARIZONA_OUT2RMIX_INPUT_1_SOURCE 0x698
  392. #define ARIZONA_OUT2RMIX_INPUT_1_VOLUME 0x699
  393. #define ARIZONA_OUT2RMIX_INPUT_2_SOURCE 0x69A
  394. #define ARIZONA_OUT2RMIX_INPUT_2_VOLUME 0x69B
  395. #define ARIZONA_OUT2RMIX_INPUT_3_SOURCE 0x69C
  396. #define ARIZONA_OUT2RMIX_INPUT_3_VOLUME 0x69D
  397. #define ARIZONA_OUT2RMIX_INPUT_4_SOURCE 0x69E
  398. #define ARIZONA_OUT2RMIX_INPUT_4_VOLUME 0x69F
  399. #define ARIZONA_OUT3LMIX_INPUT_1_SOURCE 0x6A0
  400. #define ARIZONA_OUT3LMIX_INPUT_1_VOLUME 0x6A1
  401. #define ARIZONA_OUT3LMIX_INPUT_2_SOURCE 0x6A2
  402. #define ARIZONA_OUT3LMIX_INPUT_2_VOLUME 0x6A3
  403. #define ARIZONA_OUT3LMIX_INPUT_3_SOURCE 0x6A4
  404. #define ARIZONA_OUT3LMIX_INPUT_3_VOLUME 0x6A5
  405. #define ARIZONA_OUT3LMIX_INPUT_4_SOURCE 0x6A6
  406. #define ARIZONA_OUT3LMIX_INPUT_4_VOLUME 0x6A7
  407. #define ARIZONA_OUT3RMIX_INPUT_1_SOURCE 0x6A8
  408. #define ARIZONA_OUT3RMIX_INPUT_1_VOLUME 0x6A9
  409. #define ARIZONA_OUT3RMIX_INPUT_2_SOURCE 0x6AA
  410. #define ARIZONA_OUT3RMIX_INPUT_2_VOLUME 0x6AB
  411. #define ARIZONA_OUT3RMIX_INPUT_3_SOURCE 0x6AC
  412. #define ARIZONA_OUT3RMIX_INPUT_3_VOLUME 0x6AD
  413. #define ARIZONA_OUT3RMIX_INPUT_4_SOURCE 0x6AE
  414. #define ARIZONA_OUT3RMIX_INPUT_4_VOLUME 0x6AF
  415. #define ARIZONA_OUT4LMIX_INPUT_1_SOURCE 0x6B0
  416. #define ARIZONA_OUT4LMIX_INPUT_1_VOLUME 0x6B1
  417. #define ARIZONA_OUT4LMIX_INPUT_2_SOURCE 0x6B2
  418. #define ARIZONA_OUT4LMIX_INPUT_2_VOLUME 0x6B3
  419. #define ARIZONA_OUT4LMIX_INPUT_3_SOURCE 0x6B4
  420. #define ARIZONA_OUT4LMIX_INPUT_3_VOLUME 0x6B5
  421. #define ARIZONA_OUT4LMIX_INPUT_4_SOURCE 0x6B6
  422. #define ARIZONA_OUT4LMIX_INPUT_4_VOLUME 0x6B7
  423. #define ARIZONA_OUT4RMIX_INPUT_1_SOURCE 0x6B8
  424. #define ARIZONA_OUT4RMIX_INPUT_1_VOLUME 0x6B9
  425. #define ARIZONA_OUT4RMIX_INPUT_2_SOURCE 0x6BA
  426. #define ARIZONA_OUT4RMIX_INPUT_2_VOLUME 0x6BB
  427. #define ARIZONA_OUT4RMIX_INPUT_3_SOURCE 0x6BC
  428. #define ARIZONA_OUT4RMIX_INPUT_3_VOLUME 0x6BD
  429. #define ARIZONA_OUT4RMIX_INPUT_4_SOURCE 0x6BE
  430. #define ARIZONA_OUT4RMIX_INPUT_4_VOLUME 0x6BF
  431. #define ARIZONA_OUT5LMIX_INPUT_1_SOURCE 0x6C0
  432. #define ARIZONA_OUT5LMIX_INPUT_1_VOLUME 0x6C1
  433. #define ARIZONA_OUT5LMIX_INPUT_2_SOURCE 0x6C2
  434. #define ARIZONA_OUT5LMIX_INPUT_2_VOLUME 0x6C3
  435. #define ARIZONA_OUT5LMIX_INPUT_3_SOURCE 0x6C4
  436. #define ARIZONA_OUT5LMIX_INPUT_3_VOLUME 0x6C5
  437. #define ARIZONA_OUT5LMIX_INPUT_4_SOURCE 0x6C6
  438. #define ARIZONA_OUT5LMIX_INPUT_4_VOLUME 0x6C7
  439. #define ARIZONA_OUT5RMIX_INPUT_1_SOURCE 0x6C8
  440. #define ARIZONA_OUT5RMIX_INPUT_1_VOLUME 0x6C9
  441. #define ARIZONA_OUT5RMIX_INPUT_2_SOURCE 0x6CA
  442. #define ARIZONA_OUT5RMIX_INPUT_2_VOLUME 0x6CB
  443. #define ARIZONA_OUT5RMIX_INPUT_3_SOURCE 0x6CC
  444. #define ARIZONA_OUT5RMIX_INPUT_3_VOLUME 0x6CD
  445. #define ARIZONA_OUT5RMIX_INPUT_4_SOURCE 0x6CE
  446. #define ARIZONA_OUT5RMIX_INPUT_4_VOLUME 0x6CF
  447. #define ARIZONA_OUT6LMIX_INPUT_1_SOURCE 0x6D0
  448. #define ARIZONA_OUT6LMIX_INPUT_1_VOLUME 0x6D1
  449. #define ARIZONA_OUT6LMIX_INPUT_2_SOURCE 0x6D2
  450. #define ARIZONA_OUT6LMIX_INPUT_2_VOLUME 0x6D3
  451. #define ARIZONA_OUT6LMIX_INPUT_3_SOURCE 0x6D4
  452. #define ARIZONA_OUT6LMIX_INPUT_3_VOLUME 0x6D5
  453. #define ARIZONA_OUT6LMIX_INPUT_4_SOURCE 0x6D6
  454. #define ARIZONA_OUT6LMIX_INPUT_4_VOLUME 0x6D7
  455. #define ARIZONA_OUT6RMIX_INPUT_1_SOURCE 0x6D8
  456. #define ARIZONA_OUT6RMIX_INPUT_1_VOLUME 0x6D9
  457. #define ARIZONA_OUT6RMIX_INPUT_2_SOURCE 0x6DA
  458. #define ARIZONA_OUT6RMIX_INPUT_2_VOLUME 0x6DB
  459. #define ARIZONA_OUT6RMIX_INPUT_3_SOURCE 0x6DC
  460. #define ARIZONA_OUT6RMIX_INPUT_3_VOLUME 0x6DD
  461. #define ARIZONA_OUT6RMIX_INPUT_4_SOURCE 0x6DE
  462. #define ARIZONA_OUT6RMIX_INPUT_4_VOLUME 0x6DF
  463. #define ARIZONA_AIF1TX1MIX_INPUT_1_SOURCE 0x700
  464. #define ARIZONA_AIF1TX1MIX_INPUT_1_VOLUME 0x701
  465. #define ARIZONA_AIF1TX1MIX_INPUT_2_SOURCE 0x702
  466. #define ARIZONA_AIF1TX1MIX_INPUT_2_VOLUME 0x703
  467. #define ARIZONA_AIF1TX1MIX_INPUT_3_SOURCE 0x704
  468. #define ARIZONA_AIF1TX1MIX_INPUT_3_VOLUME 0x705
  469. #define ARIZONA_AIF1TX1MIX_INPUT_4_SOURCE 0x706
  470. #define ARIZONA_AIF1TX1MIX_INPUT_4_VOLUME 0x707
  471. #define ARIZONA_AIF1TX2MIX_INPUT_1_SOURCE 0x708
  472. #define ARIZONA_AIF1TX2MIX_INPUT_1_VOLUME 0x709
  473. #define ARIZONA_AIF1TX2MIX_INPUT_2_SOURCE 0x70A
  474. #define ARIZONA_AIF1TX2MIX_INPUT_2_VOLUME 0x70B
  475. #define ARIZONA_AIF1TX2MIX_INPUT_3_SOURCE 0x70C
  476. #define ARIZONA_AIF1TX2MIX_INPUT_3_VOLUME 0x70D
  477. #define ARIZONA_AIF1TX2MIX_INPUT_4_SOURCE 0x70E
  478. #define ARIZONA_AIF1TX2MIX_INPUT_4_VOLUME 0x70F
  479. #define ARIZONA_AIF1TX3MIX_INPUT_1_SOURCE 0x710
  480. #define ARIZONA_AIF1TX3MIX_INPUT_1_VOLUME 0x711
  481. #define ARIZONA_AIF1TX3MIX_INPUT_2_SOURCE 0x712
  482. #define ARIZONA_AIF1TX3MIX_INPUT_2_VOLUME 0x713
  483. #define ARIZONA_AIF1TX3MIX_INPUT_3_SOURCE 0x714
  484. #define ARIZONA_AIF1TX3MIX_INPUT_3_VOLUME 0x715
  485. #define ARIZONA_AIF1TX3MIX_INPUT_4_SOURCE 0x716
  486. #define ARIZONA_AIF1TX3MIX_INPUT_4_VOLUME 0x717
  487. #define ARIZONA_AIF1TX4MIX_INPUT_1_SOURCE 0x718
  488. #define ARIZONA_AIF1TX4MIX_INPUT_1_VOLUME 0x719
  489. #define ARIZONA_AIF1TX4MIX_INPUT_2_SOURCE 0x71A
  490. #define ARIZONA_AIF1TX4MIX_INPUT_2_VOLUME 0x71B
  491. #define ARIZONA_AIF1TX4MIX_INPUT_3_SOURCE 0x71C
  492. #define ARIZONA_AIF1TX4MIX_INPUT_3_VOLUME 0x71D
  493. #define ARIZONA_AIF1TX4MIX_INPUT_4_SOURCE 0x71E
  494. #define ARIZONA_AIF1TX4MIX_INPUT_4_VOLUME 0x71F
  495. #define ARIZONA_AIF1TX5MIX_INPUT_1_SOURCE 0x720
  496. #define ARIZONA_AIF1TX5MIX_INPUT_1_VOLUME 0x721
  497. #define ARIZONA_AIF1TX5MIX_INPUT_2_SOURCE 0x722
  498. #define ARIZONA_AIF1TX5MIX_INPUT_2_VOLUME 0x723
  499. #define ARIZONA_AIF1TX5MIX_INPUT_3_SOURCE 0x724
  500. #define ARIZONA_AIF1TX5MIX_INPUT_3_VOLUME 0x725
  501. #define ARIZONA_AIF1TX5MIX_INPUT_4_SOURCE 0x726
  502. #define ARIZONA_AIF1TX5MIX_INPUT_4_VOLUME 0x727
  503. #define ARIZONA_AIF1TX6MIX_INPUT_1_SOURCE 0x728
  504. #define ARIZONA_AIF1TX6MIX_INPUT_1_VOLUME 0x729
  505. #define ARIZONA_AIF1TX6MIX_INPUT_2_SOURCE 0x72A
  506. #define ARIZONA_AIF1TX6MIX_INPUT_2_VOLUME 0x72B
  507. #define ARIZONA_AIF1TX6MIX_INPUT_3_SOURCE 0x72C
  508. #define ARIZONA_AIF1TX6MIX_INPUT_3_VOLUME 0x72D
  509. #define ARIZONA_AIF1TX6MIX_INPUT_4_SOURCE 0x72E
  510. #define ARIZONA_AIF1TX6MIX_INPUT_4_VOLUME 0x72F
  511. #define ARIZONA_AIF1TX7MIX_INPUT_1_SOURCE 0x730
  512. #define ARIZONA_AIF1TX7MIX_INPUT_1_VOLUME 0x731
  513. #define ARIZONA_AIF1TX7MIX_INPUT_2_SOURCE 0x732
  514. #define ARIZONA_AIF1TX7MIX_INPUT_2_VOLUME 0x733
  515. #define ARIZONA_AIF1TX7MIX_INPUT_3_SOURCE 0x734
  516. #define ARIZONA_AIF1TX7MIX_INPUT_3_VOLUME 0x735
  517. #define ARIZONA_AIF1TX7MIX_INPUT_4_SOURCE 0x736
  518. #define ARIZONA_AIF1TX7MIX_INPUT_4_VOLUME 0x737
  519. #define ARIZONA_AIF1TX8MIX_INPUT_1_SOURCE 0x738
  520. #define ARIZONA_AIF1TX8MIX_INPUT_1_VOLUME 0x739
  521. #define ARIZONA_AIF1TX8MIX_INPUT_2_SOURCE 0x73A
  522. #define ARIZONA_AIF1TX8MIX_INPUT_2_VOLUME 0x73B
  523. #define ARIZONA_AIF1TX8MIX_INPUT_3_SOURCE 0x73C
  524. #define ARIZONA_AIF1TX8MIX_INPUT_3_VOLUME 0x73D
  525. #define ARIZONA_AIF1TX8MIX_INPUT_4_SOURCE 0x73E
  526. #define ARIZONA_AIF1TX8MIX_INPUT_4_VOLUME 0x73F
  527. #define ARIZONA_AIF2TX1MIX_INPUT_1_SOURCE 0x740
  528. #define ARIZONA_AIF2TX1MIX_INPUT_1_VOLUME 0x741
  529. #define ARIZONA_AIF2TX1MIX_INPUT_2_SOURCE 0x742
  530. #define ARIZONA_AIF2TX1MIX_INPUT_2_VOLUME 0x743
  531. #define ARIZONA_AIF2TX1MIX_INPUT_3_SOURCE 0x744
  532. #define ARIZONA_AIF2TX1MIX_INPUT_3_VOLUME 0x745
  533. #define ARIZONA_AIF2TX1MIX_INPUT_4_SOURCE 0x746
  534. #define ARIZONA_AIF2TX1MIX_INPUT_4_VOLUME 0x747
  535. #define ARIZONA_AIF2TX2MIX_INPUT_1_SOURCE 0x748
  536. #define ARIZONA_AIF2TX2MIX_INPUT_1_VOLUME 0x749
  537. #define ARIZONA_AIF2TX2MIX_INPUT_2_SOURCE 0x74A
  538. #define ARIZONA_AIF2TX2MIX_INPUT_2_VOLUME 0x74B
  539. #define ARIZONA_AIF2TX2MIX_INPUT_3_SOURCE 0x74C
  540. #define ARIZONA_AIF2TX2MIX_INPUT_3_VOLUME 0x74D
  541. #define ARIZONA_AIF2TX2MIX_INPUT_4_SOURCE 0x74E
  542. #define ARIZONA_AIF2TX2MIX_INPUT_4_VOLUME 0x74F
  543. #define ARIZONA_AIF2TX3MIX_INPUT_1_SOURCE 0x750
  544. #define ARIZONA_AIF2TX3MIX_INPUT_1_VOLUME 0x751
  545. #define ARIZONA_AIF2TX3MIX_INPUT_2_SOURCE 0x752
  546. #define ARIZONA_AIF2TX3MIX_INPUT_2_VOLUME 0x753
  547. #define ARIZONA_AIF2TX3MIX_INPUT_3_SOURCE 0x754
  548. #define ARIZONA_AIF2TX3MIX_INPUT_3_VOLUME 0x755
  549. #define ARIZONA_AIF2TX3MIX_INPUT_4_SOURCE 0x756
  550. #define ARIZONA_AIF2TX3MIX_INPUT_4_VOLUME 0x757
  551. #define ARIZONA_AIF2TX4MIX_INPUT_1_SOURCE 0x758
  552. #define ARIZONA_AIF2TX4MIX_INPUT_1_VOLUME 0x759
  553. #define ARIZONA_AIF2TX4MIX_INPUT_2_SOURCE 0x75A
  554. #define ARIZONA_AIF2TX4MIX_INPUT_2_VOLUME 0x75B
  555. #define ARIZONA_AIF2TX4MIX_INPUT_3_SOURCE 0x75C
  556. #define ARIZONA_AIF2TX4MIX_INPUT_3_VOLUME 0x75D
  557. #define ARIZONA_AIF2TX4MIX_INPUT_4_SOURCE 0x75E
  558. #define ARIZONA_AIF2TX4MIX_INPUT_4_VOLUME 0x75F
  559. #define ARIZONA_AIF2TX5MIX_INPUT_1_SOURCE 0x760
  560. #define ARIZONA_AIF2TX5MIX_INPUT_1_VOLUME 0x761
  561. #define ARIZONA_AIF2TX5MIX_INPUT_2_SOURCE 0x762
  562. #define ARIZONA_AIF2TX5MIX_INPUT_2_VOLUME 0x763
  563. #define ARIZONA_AIF2TX5MIX_INPUT_3_SOURCE 0x764
  564. #define ARIZONA_AIF2TX5MIX_INPUT_3_VOLUME 0x765
  565. #define ARIZONA_AIF2TX5MIX_INPUT_4_SOURCE 0x766
  566. #define ARIZONA_AIF2TX5MIX_INPUT_4_VOLUME 0x767
  567. #define ARIZONA_AIF2TX6MIX_INPUT_1_SOURCE 0x768
  568. #define ARIZONA_AIF2TX6MIX_INPUT_1_VOLUME 0x769
  569. #define ARIZONA_AIF2TX6MIX_INPUT_2_SOURCE 0x76A
  570. #define ARIZONA_AIF2TX6MIX_INPUT_2_VOLUME 0x76B
  571. #define ARIZONA_AIF2TX6MIX_INPUT_3_SOURCE 0x76C
  572. #define ARIZONA_AIF2TX6MIX_INPUT_3_VOLUME 0x76D
  573. #define ARIZONA_AIF2TX6MIX_INPUT_4_SOURCE 0x76E
  574. #define ARIZONA_AIF2TX6MIX_INPUT_4_VOLUME 0x76F
  575. #define ARIZONA_AIF3TX1MIX_INPUT_1_SOURCE 0x780
  576. #define ARIZONA_AIF3TX1MIX_INPUT_1_VOLUME 0x781
  577. #define ARIZONA_AIF3TX1MIX_INPUT_2_SOURCE 0x782
  578. #define ARIZONA_AIF3TX1MIX_INPUT_2_VOLUME 0x783
  579. #define ARIZONA_AIF3TX1MIX_INPUT_3_SOURCE 0x784
  580. #define ARIZONA_AIF3TX1MIX_INPUT_3_VOLUME 0x785
  581. #define ARIZONA_AIF3TX1MIX_INPUT_4_SOURCE 0x786
  582. #define ARIZONA_AIF3TX1MIX_INPUT_4_VOLUME 0x787
  583. #define ARIZONA_AIF3TX2MIX_INPUT_1_SOURCE 0x788
  584. #define ARIZONA_AIF3TX2MIX_INPUT_1_VOLUME 0x789
  585. #define ARIZONA_AIF3TX2MIX_INPUT_2_SOURCE 0x78A
  586. #define ARIZONA_AIF3TX2MIX_INPUT_2_VOLUME 0x78B
  587. #define ARIZONA_AIF3TX2MIX_INPUT_3_SOURCE 0x78C
  588. #define ARIZONA_AIF3TX2MIX_INPUT_3_VOLUME 0x78D
  589. #define ARIZONA_AIF3TX2MIX_INPUT_4_SOURCE 0x78E
  590. #define ARIZONA_AIF3TX2MIX_INPUT_4_VOLUME 0x78F
  591. #define ARIZONA_SLIMTX1MIX_INPUT_1_SOURCE 0x7C0
  592. #define ARIZONA_SLIMTX1MIX_INPUT_1_VOLUME 0x7C1
  593. #define ARIZONA_SLIMTX1MIX_INPUT_2_SOURCE 0x7C2
  594. #define ARIZONA_SLIMTX1MIX_INPUT_2_VOLUME 0x7C3
  595. #define ARIZONA_SLIMTX1MIX_INPUT_3_SOURCE 0x7C4
  596. #define ARIZONA_SLIMTX1MIX_INPUT_3_VOLUME 0x7C5
  597. #define ARIZONA_SLIMTX1MIX_INPUT_4_SOURCE 0x7C6
  598. #define ARIZONA_SLIMTX1MIX_INPUT_4_VOLUME 0x7C7
  599. #define ARIZONA_SLIMTX2MIX_INPUT_1_SOURCE 0x7C8
  600. #define ARIZONA_SLIMTX2MIX_INPUT_1_VOLUME 0x7C9
  601. #define ARIZONA_SLIMTX2MIX_INPUT_2_SOURCE 0x7CA
  602. #define ARIZONA_SLIMTX2MIX_INPUT_2_VOLUME 0x7CB
  603. #define ARIZONA_SLIMTX2MIX_INPUT_3_SOURCE 0x7CC
  604. #define ARIZONA_SLIMTX2MIX_INPUT_3_VOLUME 0x7CD
  605. #define ARIZONA_SLIMTX2MIX_INPUT_4_SOURCE 0x7CE
  606. #define ARIZONA_SLIMTX2MIX_INPUT_4_VOLUME 0x7CF
  607. #define ARIZONA_SLIMTX3MIX_INPUT_1_SOURCE 0x7D0
  608. #define ARIZONA_SLIMTX3MIX_INPUT_1_VOLUME 0x7D1
  609. #define ARIZONA_SLIMTX3MIX_INPUT_2_SOURCE 0x7D2
  610. #define ARIZONA_SLIMTX3MIX_INPUT_2_VOLUME 0x7D3
  611. #define ARIZONA_SLIMTX3MIX_INPUT_3_SOURCE 0x7D4
  612. #define ARIZONA_SLIMTX3MIX_INPUT_3_VOLUME 0x7D5
  613. #define ARIZONA_SLIMTX3MIX_INPUT_4_SOURCE 0x7D6
  614. #define ARIZONA_SLIMTX3MIX_INPUT_4_VOLUME 0x7D7
  615. #define ARIZONA_SLIMTX4MIX_INPUT_1_SOURCE 0x7D8
  616. #define ARIZONA_SLIMTX4MIX_INPUT_1_VOLUME 0x7D9
  617. #define ARIZONA_SLIMTX4MIX_INPUT_2_SOURCE 0x7DA
  618. #define ARIZONA_SLIMTX4MIX_INPUT_2_VOLUME 0x7DB
  619. #define ARIZONA_SLIMTX4MIX_INPUT_3_SOURCE 0x7DC
  620. #define ARIZONA_SLIMTX4MIX_INPUT_3_VOLUME 0x7DD
  621. #define ARIZONA_SLIMTX4MIX_INPUT_4_SOURCE 0x7DE
  622. #define ARIZONA_SLIMTX4MIX_INPUT_4_VOLUME 0x7DF
  623. #define ARIZONA_SLIMTX5MIX_INPUT_1_SOURCE 0x7E0
  624. #define ARIZONA_SLIMTX5MIX_INPUT_1_VOLUME 0x7E1
  625. #define ARIZONA_SLIMTX5MIX_INPUT_2_SOURCE 0x7E2
  626. #define ARIZONA_SLIMTX5MIX_INPUT_2_VOLUME 0x7E3
  627. #define ARIZONA_SLIMTX5MIX_INPUT_3_SOURCE 0x7E4
  628. #define ARIZONA_SLIMTX5MIX_INPUT_3_VOLUME 0x7E5
  629. #define ARIZONA_SLIMTX5MIX_INPUT_4_SOURCE 0x7E6
  630. #define ARIZONA_SLIMTX5MIX_INPUT_4_VOLUME 0x7E7
  631. #define ARIZONA_SLIMTX6MIX_INPUT_1_SOURCE 0x7E8
  632. #define ARIZONA_SLIMTX6MIX_INPUT_1_VOLUME 0x7E9
  633. #define ARIZONA_SLIMTX6MIX_INPUT_2_SOURCE 0x7EA
  634. #define ARIZONA_SLIMTX6MIX_INPUT_2_VOLUME 0x7EB
  635. #define ARIZONA_SLIMTX6MIX_INPUT_3_SOURCE 0x7EC
  636. #define ARIZONA_SLIMTX6MIX_INPUT_3_VOLUME 0x7ED
  637. #define ARIZONA_SLIMTX6MIX_INPUT_4_SOURCE 0x7EE
  638. #define ARIZONA_SLIMTX6MIX_INPUT_4_VOLUME 0x7EF
  639. #define ARIZONA_SLIMTX7MIX_INPUT_1_SOURCE 0x7F0
  640. #define ARIZONA_SLIMTX7MIX_INPUT_1_VOLUME 0x7F1
  641. #define ARIZONA_SLIMTX7MIX_INPUT_2_SOURCE 0x7F2
  642. #define ARIZONA_SLIMTX7MIX_INPUT_2_VOLUME 0x7F3
  643. #define ARIZONA_SLIMTX7MIX_INPUT_3_SOURCE 0x7F4
  644. #define ARIZONA_SLIMTX7MIX_INPUT_3_VOLUME 0x7F5
  645. #define ARIZONA_SLIMTX7MIX_INPUT_4_SOURCE 0x7F6
  646. #define ARIZONA_SLIMTX7MIX_INPUT_4_VOLUME 0x7F7
  647. #define ARIZONA_SLIMTX8MIX_INPUT_1_SOURCE 0x7F8
  648. #define ARIZONA_SLIMTX8MIX_INPUT_1_VOLUME 0x7F9
  649. #define ARIZONA_SLIMTX8MIX_INPUT_2_SOURCE 0x7FA
  650. #define ARIZONA_SLIMTX8MIX_INPUT_2_VOLUME 0x7FB
  651. #define ARIZONA_SLIMTX8MIX_INPUT_3_SOURCE 0x7FC
  652. #define ARIZONA_SLIMTX8MIX_INPUT_3_VOLUME 0x7FD
  653. #define ARIZONA_SLIMTX8MIX_INPUT_4_SOURCE 0x7FE
  654. #define ARIZONA_SLIMTX8MIX_INPUT_4_VOLUME 0x7FF
  655. #define ARIZONA_SPDIFTX1MIX_INPUT_1_SOURCE 0x800
  656. #define ARIZONA_SPDIFTX1MIX_INPUT_1_VOLUME 0x801
  657. #define ARIZONA_SPDIFTX2MIX_INPUT_1_SOURCE 0x808
  658. #define ARIZONA_SPDIFTX2MIX_INPUT_1_VOLUME 0x809
  659. #define ARIZONA_EQ1MIX_INPUT_1_SOURCE 0x880
  660. #define ARIZONA_EQ1MIX_INPUT_1_VOLUME 0x881
  661. #define ARIZONA_EQ1MIX_INPUT_2_SOURCE 0x882
  662. #define ARIZONA_EQ1MIX_INPUT_2_VOLUME 0x883
  663. #define ARIZONA_EQ1MIX_INPUT_3_SOURCE 0x884
  664. #define ARIZONA_EQ1MIX_INPUT_3_VOLUME 0x885
  665. #define ARIZONA_EQ1MIX_INPUT_4_SOURCE 0x886
  666. #define ARIZONA_EQ1MIX_INPUT_4_VOLUME 0x887
  667. #define ARIZONA_EQ2MIX_INPUT_1_SOURCE 0x888
  668. #define ARIZONA_EQ2MIX_INPUT_1_VOLUME 0x889
  669. #define ARIZONA_EQ2MIX_INPUT_2_SOURCE 0x88A
  670. #define ARIZONA_EQ2MIX_INPUT_2_VOLUME 0x88B
  671. #define ARIZONA_EQ2MIX_INPUT_3_SOURCE 0x88C
  672. #define ARIZONA_EQ2MIX_INPUT_3_VOLUME 0x88D
  673. #define ARIZONA_EQ2MIX_INPUT_4_SOURCE 0x88E
  674. #define ARIZONA_EQ2MIX_INPUT_4_VOLUME 0x88F
  675. #define ARIZONA_EQ3MIX_INPUT_1_SOURCE 0x890
  676. #define ARIZONA_EQ3MIX_INPUT_1_VOLUME 0x891
  677. #define ARIZONA_EQ3MIX_INPUT_2_SOURCE 0x892
  678. #define ARIZONA_EQ3MIX_INPUT_2_VOLUME 0x893
  679. #define ARIZONA_EQ3MIX_INPUT_3_SOURCE 0x894
  680. #define ARIZONA_EQ3MIX_INPUT_3_VOLUME 0x895
  681. #define ARIZONA_EQ3MIX_INPUT_4_SOURCE 0x896
  682. #define ARIZONA_EQ3MIX_INPUT_4_VOLUME 0x897
  683. #define ARIZONA_EQ4MIX_INPUT_1_SOURCE 0x898
  684. #define ARIZONA_EQ4MIX_INPUT_1_VOLUME 0x899
  685. #define ARIZONA_EQ4MIX_INPUT_2_SOURCE 0x89A
  686. #define ARIZONA_EQ4MIX_INPUT_2_VOLUME 0x89B
  687. #define ARIZONA_EQ4MIX_INPUT_3_SOURCE 0x89C
  688. #define ARIZONA_EQ4MIX_INPUT_3_VOLUME 0x89D
  689. #define ARIZONA_EQ4MIX_INPUT_4_SOURCE 0x89E
  690. #define ARIZONA_EQ4MIX_INPUT_4_VOLUME 0x89F
  691. #define ARIZONA_DRC1LMIX_INPUT_1_SOURCE 0x8C0
  692. #define ARIZONA_DRC1LMIX_INPUT_1_VOLUME 0x8C1
  693. #define ARIZONA_DRC1LMIX_INPUT_2_SOURCE 0x8C2
  694. #define ARIZONA_DRC1LMIX_INPUT_2_VOLUME 0x8C3
  695. #define ARIZONA_DRC1LMIX_INPUT_3_SOURCE 0x8C4
  696. #define ARIZONA_DRC1LMIX_INPUT_3_VOLUME 0x8C5
  697. #define ARIZONA_DRC1LMIX_INPUT_4_SOURCE 0x8C6
  698. #define ARIZONA_DRC1LMIX_INPUT_4_VOLUME 0x8C7
  699. #define ARIZONA_DRC1RMIX_INPUT_1_SOURCE 0x8C8
  700. #define ARIZONA_DRC1RMIX_INPUT_1_VOLUME 0x8C9
  701. #define ARIZONA_DRC1RMIX_INPUT_2_SOURCE 0x8CA
  702. #define ARIZONA_DRC1RMIX_INPUT_2_VOLUME 0x8CB
  703. #define ARIZONA_DRC1RMIX_INPUT_3_SOURCE 0x8CC
  704. #define ARIZONA_DRC1RMIX_INPUT_3_VOLUME 0x8CD
  705. #define ARIZONA_DRC1RMIX_INPUT_4_SOURCE 0x8CE
  706. #define ARIZONA_DRC1RMIX_INPUT_4_VOLUME 0x8CF
  707. #define ARIZONA_DRC2LMIX_INPUT_1_SOURCE 0x8D0
  708. #define ARIZONA_DRC2LMIX_INPUT_1_VOLUME 0x8D1
  709. #define ARIZONA_DRC2LMIX_INPUT_2_SOURCE 0x8D2
  710. #define ARIZONA_DRC2LMIX_INPUT_2_VOLUME 0x8D3
  711. #define ARIZONA_DRC2LMIX_INPUT_3_SOURCE 0x8D4
  712. #define ARIZONA_DRC2LMIX_INPUT_3_VOLUME 0x8D5
  713. #define ARIZONA_DRC2LMIX_INPUT_4_SOURCE 0x8D6
  714. #define ARIZONA_DRC2LMIX_INPUT_4_VOLUME 0x8D7
  715. #define ARIZONA_DRC2RMIX_INPUT_1_SOURCE 0x8D8
  716. #define ARIZONA_DRC2RMIX_INPUT_1_VOLUME 0x8D9
  717. #define ARIZONA_DRC2RMIX_INPUT_2_SOURCE 0x8DA
  718. #define ARIZONA_DRC2RMIX_INPUT_2_VOLUME 0x8DB
  719. #define ARIZONA_DRC2RMIX_INPUT_3_SOURCE 0x8DC
  720. #define ARIZONA_DRC2RMIX_INPUT_3_VOLUME 0x8DD
  721. #define ARIZONA_DRC2RMIX_INPUT_4_SOURCE 0x8DE
  722. #define ARIZONA_DRC2RMIX_INPUT_4_VOLUME 0x8DF
  723. #define ARIZONA_HPLP1MIX_INPUT_1_SOURCE 0x900
  724. #define ARIZONA_HPLP1MIX_INPUT_1_VOLUME 0x901
  725. #define ARIZONA_HPLP1MIX_INPUT_2_SOURCE 0x902
  726. #define ARIZONA_HPLP1MIX_INPUT_2_VOLUME 0x903
  727. #define ARIZONA_HPLP1MIX_INPUT_3_SOURCE 0x904
  728. #define ARIZONA_HPLP1MIX_INPUT_3_VOLUME 0x905
  729. #define ARIZONA_HPLP1MIX_INPUT_4_SOURCE 0x906
  730. #define ARIZONA_HPLP1MIX_INPUT_4_VOLUME 0x907
  731. #define ARIZONA_HPLP2MIX_INPUT_1_SOURCE 0x908
  732. #define ARIZONA_HPLP2MIX_INPUT_1_VOLUME 0x909
  733. #define ARIZONA_HPLP2MIX_INPUT_2_SOURCE 0x90A
  734. #define ARIZONA_HPLP2MIX_INPUT_2_VOLUME 0x90B
  735. #define ARIZONA_HPLP2MIX_INPUT_3_SOURCE 0x90C
  736. #define ARIZONA_HPLP2MIX_INPUT_3_VOLUME 0x90D
  737. #define ARIZONA_HPLP2MIX_INPUT_4_SOURCE 0x90E
  738. #define ARIZONA_HPLP2MIX_INPUT_4_VOLUME 0x90F
  739. #define ARIZONA_HPLP3MIX_INPUT_1_SOURCE 0x910
  740. #define ARIZONA_HPLP3MIX_INPUT_1_VOLUME 0x911
  741. #define ARIZONA_HPLP3MIX_INPUT_2_SOURCE 0x912
  742. #define ARIZONA_HPLP3MIX_INPUT_2_VOLUME 0x913
  743. #define ARIZONA_HPLP3MIX_INPUT_3_SOURCE 0x914
  744. #define ARIZONA_HPLP3MIX_INPUT_3_VOLUME 0x915
  745. #define ARIZONA_HPLP3MIX_INPUT_4_SOURCE 0x916
  746. #define ARIZONA_HPLP3MIX_INPUT_4_VOLUME 0x917
  747. #define ARIZONA_HPLP4MIX_INPUT_1_SOURCE 0x918
  748. #define ARIZONA_HPLP4MIX_INPUT_1_VOLUME 0x919
  749. #define ARIZONA_HPLP4MIX_INPUT_2_SOURCE 0x91A
  750. #define ARIZONA_HPLP4MIX_INPUT_2_VOLUME 0x91B
  751. #define ARIZONA_HPLP4MIX_INPUT_3_SOURCE 0x91C
  752. #define ARIZONA_HPLP4MIX_INPUT_3_VOLUME 0x91D
  753. #define ARIZONA_HPLP4MIX_INPUT_4_SOURCE 0x91E
  754. #define ARIZONA_HPLP4MIX_INPUT_4_VOLUME 0x91F
  755. #define ARIZONA_DSP1LMIX_INPUT_1_SOURCE 0x940
  756. #define ARIZONA_DSP1LMIX_INPUT_1_VOLUME 0x941
  757. #define ARIZONA_DSP1LMIX_INPUT_2_SOURCE 0x942
  758. #define ARIZONA_DSP1LMIX_INPUT_2_VOLUME 0x943
  759. #define ARIZONA_DSP1LMIX_INPUT_3_SOURCE 0x944
  760. #define ARIZONA_DSP1LMIX_INPUT_3_VOLUME 0x945
  761. #define ARIZONA_DSP1LMIX_INPUT_4_SOURCE 0x946
  762. #define ARIZONA_DSP1LMIX_INPUT_4_VOLUME 0x947
  763. #define ARIZONA_DSP1RMIX_INPUT_1_SOURCE 0x948
  764. #define ARIZONA_DSP1RMIX_INPUT_1_VOLUME 0x949
  765. #define ARIZONA_DSP1RMIX_INPUT_2_SOURCE 0x94A
  766. #define ARIZONA_DSP1RMIX_INPUT_2_VOLUME 0x94B
  767. #define ARIZONA_DSP1RMIX_INPUT_3_SOURCE 0x94C
  768. #define ARIZONA_DSP1RMIX_INPUT_3_VOLUME 0x94D
  769. #define ARIZONA_DSP1RMIX_INPUT_4_SOURCE 0x94E
  770. #define ARIZONA_DSP1RMIX_INPUT_4_VOLUME 0x94F
  771. #define ARIZONA_DSP1AUX1MIX_INPUT_1_SOURCE 0x950
  772. #define ARIZONA_DSP1AUX2MIX_INPUT_1_SOURCE 0x958
  773. #define ARIZONA_DSP1AUX3MIX_INPUT_1_SOURCE 0x960
  774. #define ARIZONA_DSP1AUX4MIX_INPUT_1_SOURCE 0x968
  775. #define ARIZONA_DSP1AUX5MIX_INPUT_1_SOURCE 0x970
  776. #define ARIZONA_DSP1AUX6MIX_INPUT_1_SOURCE 0x978
  777. #define ARIZONA_DSP2LMIX_INPUT_1_SOURCE 0x980
  778. #define ARIZONA_DSP2LMIX_INPUT_1_VOLUME 0x981
  779. #define ARIZONA_DSP2LMIX_INPUT_2_SOURCE 0x982
  780. #define ARIZONA_DSP2LMIX_INPUT_2_VOLUME 0x983
  781. #define ARIZONA_DSP2LMIX_INPUT_3_SOURCE 0x984
  782. #define ARIZONA_DSP2LMIX_INPUT_3_VOLUME 0x985
  783. #define ARIZONA_DSP2LMIX_INPUT_4_SOURCE 0x986
  784. #define ARIZONA_DSP2LMIX_INPUT_4_VOLUME 0x987
  785. #define ARIZONA_DSP2RMIX_INPUT_1_SOURCE 0x988
  786. #define ARIZONA_DSP2RMIX_INPUT_1_VOLUME 0x989
  787. #define ARIZONA_DSP2RMIX_INPUT_2_SOURCE 0x98A
  788. #define ARIZONA_DSP2RMIX_INPUT_2_VOLUME 0x98B
  789. #define ARIZONA_DSP2RMIX_INPUT_3_SOURCE 0x98C
  790. #define ARIZONA_DSP2RMIX_INPUT_3_VOLUME 0x98D
  791. #define ARIZONA_DSP2RMIX_INPUT_4_SOURCE 0x98E
  792. #define ARIZONA_DSP2RMIX_INPUT_4_VOLUME 0x98F
  793. #define ARIZONA_DSP2AUX1MIX_INPUT_1_SOURCE 0x990
  794. #define ARIZONA_DSP2AUX2MIX_INPUT_1_SOURCE 0x998
  795. #define ARIZONA_DSP2AUX3MIX_INPUT_1_SOURCE 0x9A0
  796. #define ARIZONA_DSP2AUX4MIX_INPUT_1_SOURCE 0x9A8
  797. #define ARIZONA_DSP2AUX5MIX_INPUT_1_SOURCE 0x9B0
  798. #define ARIZONA_DSP2AUX6MIX_INPUT_1_SOURCE 0x9B8
  799. #define ARIZONA_DSP3LMIX_INPUT_1_SOURCE 0x9C0
  800. #define ARIZONA_DSP3LMIX_INPUT_1_VOLUME 0x9C1
  801. #define ARIZONA_DSP3LMIX_INPUT_2_SOURCE 0x9C2
  802. #define ARIZONA_DSP3LMIX_INPUT_2_VOLUME 0x9C3
  803. #define ARIZONA_DSP3LMIX_INPUT_3_SOURCE 0x9C4
  804. #define ARIZONA_DSP3LMIX_INPUT_3_VOLUME 0x9C5
  805. #define ARIZONA_DSP3LMIX_INPUT_4_SOURCE 0x9C6
  806. #define ARIZONA_DSP3LMIX_INPUT_4_VOLUME 0x9C7
  807. #define ARIZONA_DSP3RMIX_INPUT_1_SOURCE 0x9C8
  808. #define ARIZONA_DSP3RMIX_INPUT_1_VOLUME 0x9C9
  809. #define ARIZONA_DSP3RMIX_INPUT_2_SOURCE 0x9CA
  810. #define ARIZONA_DSP3RMIX_INPUT_2_VOLUME 0x9CB
  811. #define ARIZONA_DSP3RMIX_INPUT_3_SOURCE 0x9CC
  812. #define ARIZONA_DSP3RMIX_INPUT_3_VOLUME 0x9CD
  813. #define ARIZONA_DSP3RMIX_INPUT_4_SOURCE 0x9CE
  814. #define ARIZONA_DSP3RMIX_INPUT_4_VOLUME 0x9CF
  815. #define ARIZONA_DSP3AUX1MIX_INPUT_1_SOURCE 0x9D0
  816. #define ARIZONA_DSP3AUX2MIX_INPUT_1_SOURCE 0x9D8
  817. #define ARIZONA_DSP3AUX3MIX_INPUT_1_SOURCE 0x9E0
  818. #define ARIZONA_DSP3AUX4MIX_INPUT_1_SOURCE 0x9E8
  819. #define ARIZONA_DSP3AUX5MIX_INPUT_1_SOURCE 0x9F0
  820. #define ARIZONA_DSP3AUX6MIX_INPUT_1_SOURCE 0x9F8
  821. #define ARIZONA_DSP4LMIX_INPUT_1_SOURCE 0xA00
  822. #define ARIZONA_DSP4LMIX_INPUT_1_VOLUME 0xA01
  823. #define ARIZONA_DSP4LMIX_INPUT_2_SOURCE 0xA02
  824. #define ARIZONA_DSP4LMIX_INPUT_2_VOLUME 0xA03
  825. #define ARIZONA_DSP4LMIX_INPUT_3_SOURCE 0xA04
  826. #define ARIZONA_DSP4LMIX_INPUT_3_VOLUME 0xA05
  827. #define ARIZONA_DSP4LMIX_INPUT_4_SOURCE 0xA06
  828. #define ARIZONA_DSP4LMIX_INPUT_4_VOLUME 0xA07
  829. #define ARIZONA_DSP4RMIX_INPUT_1_SOURCE 0xA08
  830. #define ARIZONA_DSP4RMIX_INPUT_1_VOLUME 0xA09
  831. #define ARIZONA_DSP4RMIX_INPUT_2_SOURCE 0xA0A
  832. #define ARIZONA_DSP4RMIX_INPUT_2_VOLUME 0xA0B
  833. #define ARIZONA_DSP4RMIX_INPUT_3_SOURCE 0xA0C
  834. #define ARIZONA_DSP4RMIX_INPUT_3_VOLUME 0xA0D
  835. #define ARIZONA_DSP4RMIX_INPUT_4_SOURCE 0xA0E
  836. #define ARIZONA_DSP4RMIX_INPUT_4_VOLUME 0xA0F
  837. #define ARIZONA_DSP4AUX1MIX_INPUT_1_SOURCE 0xA10
  838. #define ARIZONA_DSP4AUX2MIX_INPUT_1_SOURCE 0xA18
  839. #define ARIZONA_DSP4AUX3MIX_INPUT_1_SOURCE 0xA20
  840. #define ARIZONA_DSP4AUX4MIX_INPUT_1_SOURCE 0xA28
  841. #define ARIZONA_DSP4AUX5MIX_INPUT_1_SOURCE 0xA30
  842. #define ARIZONA_DSP4AUX6MIX_INPUT_1_SOURCE 0xA38
  843. #define ARIZONA_ASRC1LMIX_INPUT_1_SOURCE 0xA80
  844. #define ARIZONA_ASRC1RMIX_INPUT_1_SOURCE 0xA88
  845. #define ARIZONA_ASRC2LMIX_INPUT_1_SOURCE 0xA90
  846. #define ARIZONA_ASRC2RMIX_INPUT_1_SOURCE 0xA98
  847. #define ARIZONA_ISRC1DEC1MIX_INPUT_1_SOURCE 0xB00
  848. #define ARIZONA_ISRC1DEC2MIX_INPUT_1_SOURCE 0xB08
  849. #define ARIZONA_ISRC1DEC3MIX_INPUT_1_SOURCE 0xB10
  850. #define ARIZONA_ISRC1DEC4MIX_INPUT_1_SOURCE 0xB18
  851. #define ARIZONA_ISRC1INT1MIX_INPUT_1_SOURCE 0xB20
  852. #define ARIZONA_ISRC1INT2MIX_INPUT_1_SOURCE 0xB28
  853. #define ARIZONA_ISRC1INT3MIX_INPUT_1_SOURCE 0xB30
  854. #define ARIZONA_ISRC1INT4MIX_INPUT_1_SOURCE 0xB38
  855. #define ARIZONA_ISRC2DEC1MIX_INPUT_1_SOURCE 0xB40
  856. #define ARIZONA_ISRC2DEC2MIX_INPUT_1_SOURCE 0xB48
  857. #define ARIZONA_ISRC2INT1MIX_INPUT_1_SOURCE 0xB60
  858. #define ARIZONA_ISRC2INT2MIX_INPUT_1_SOURCE 0xB68
  859. #define ARIZONA_ISRC1INT3MIX_INPUT_1_SOURCE 0xB30
  860. #define ARIZONA_ISRC1INT4MIX_INPUT_1_SOURCE 0xB38
  861. #define ARIZONA_ISRC2DEC1MIX_INPUT_1_SOURCE 0xB40
  862. #define ARIZONA_ISRC2DEC2MIX_INPUT_1_SOURCE 0xB48
  863. #define ARIZONA_ISRC2DEC3MIX_INPUT_1_SOURCE 0xB50
  864. #define ARIZONA_ISRC2DEC4MIX_INPUT_1_SOURCE 0xB58
  865. #define ARIZONA_ISRC2INT1MIX_INPUT_1_SOURCE 0xB60
  866. #define ARIZONA_ISRC2INT2MIX_INPUT_1_SOURCE 0xB68
  867. #define ARIZONA_ISRC2INT3MIX_INPUT_1_SOURCE 0xB70
  868. #define ARIZONA_ISRC2INT4MIX_INPUT_1_SOURCE 0xB78
  869. #define ARIZONA_ISRC3DEC1MIX_INPUT_1_SOURCE 0xB80
  870. #define ARIZONA_ISRC3DEC2MIX_INPUT_1_SOURCE 0xB88
  871. #define ARIZONA_ISRC3DEC3MIX_INPUT_1_SOURCE 0xB90
  872. #define ARIZONA_ISRC3DEC4MIX_INPUT_1_SOURCE 0xB98
  873. #define ARIZONA_ISRC3INT1MIX_INPUT_1_SOURCE 0xBA0
  874. #define ARIZONA_ISRC3INT2MIX_INPUT_1_SOURCE 0xBA8
  875. #define ARIZONA_ISRC3INT3MIX_INPUT_1_SOURCE 0xBB0
  876. #define ARIZONA_ISRC3INT4MIX_INPUT_1_SOURCE 0xBB8
  877. #define ARIZONA_GPIO1_CTRL 0xC00
  878. #define ARIZONA_GPIO2_CTRL 0xC01
  879. #define ARIZONA_GPIO3_CTRL 0xC02
  880. #define ARIZONA_GPIO4_CTRL 0xC03
  881. #define ARIZONA_GPIO5_CTRL 0xC04
  882. #define ARIZONA_IRQ_CTRL_1 0xC0F
  883. #define ARIZONA_GPIO_DEBOUNCE_CONFIG 0xC10
  884. #define ARIZONA_GP_SWITCH_1 0xC18
  885. #define ARIZONA_MISC_PAD_CTRL_1 0xC20
  886. #define ARIZONA_MISC_PAD_CTRL_2 0xC21
  887. #define ARIZONA_MISC_PAD_CTRL_3 0xC22
  888. #define ARIZONA_MISC_PAD_CTRL_4 0xC23
  889. #define ARIZONA_MISC_PAD_CTRL_5 0xC24
  890. #define ARIZONA_MISC_PAD_CTRL_6 0xC25
  891. #define ARIZONA_MISC_PAD_CTRL_7 0xC30
  892. #define ARIZONA_MISC_PAD_CTRL_8 0xC31
  893. #define ARIZONA_MISC_PAD_CTRL_9 0xC32
  894. #define ARIZONA_MISC_PAD_CTRL_10 0xC33
  895. #define ARIZONA_MISC_PAD_CTRL_11 0xC34
  896. #define ARIZONA_MISC_PAD_CTRL_12 0xC35
  897. #define ARIZONA_MISC_PAD_CTRL_13 0xC36
  898. #define ARIZONA_MISC_PAD_CTRL_14 0xC37
  899. #define ARIZONA_MISC_PAD_CTRL_15 0xC38
  900. #define ARIZONA_MISC_PAD_CTRL_16 0xC39
  901. #define ARIZONA_MISC_PAD_CTRL_17 0xC3A
  902. #define ARIZONA_MISC_PAD_CTRL_18 0xC3B
  903. #define ARIZONA_INTERRUPT_STATUS_1 0xD00
  904. #define ARIZONA_INTERRUPT_STATUS_2 0xD01
  905. #define ARIZONA_INTERRUPT_STATUS_3 0xD02
  906. #define ARIZONA_INTERRUPT_STATUS_4 0xD03
  907. #define ARIZONA_INTERRUPT_STATUS_5 0xD04
  908. #define ARIZONA_INTERRUPT_STATUS_6 0xD05
  909. #define ARIZONA_INTERRUPT_STATUS_1_MASK 0xD08
  910. #define ARIZONA_INTERRUPT_STATUS_2_MASK 0xD09
  911. #define ARIZONA_INTERRUPT_STATUS_3_MASK 0xD0A
  912. #define ARIZONA_INTERRUPT_STATUS_4_MASK 0xD0B
  913. #define ARIZONA_INTERRUPT_STATUS_5_MASK 0xD0C
  914. #define ARIZONA_INTERRUPT_STATUS_6_MASK 0xD0D
  915. #define ARIZONA_INTERRUPT_CONTROL 0xD0F
  916. #define ARIZONA_IRQ2_STATUS_1 0xD10
  917. #define ARIZONA_IRQ2_STATUS_2 0xD11
  918. #define ARIZONA_IRQ2_STATUS_3 0xD12
  919. #define ARIZONA_IRQ2_STATUS_4 0xD13
  920. #define ARIZONA_IRQ2_STATUS_5 0xD14
  921. #define ARIZONA_IRQ2_STATUS_6 0xD15
  922. #define ARIZONA_IRQ2_STATUS_1_MASK 0xD18
  923. #define ARIZONA_IRQ2_STATUS_2_MASK 0xD19
  924. #define ARIZONA_IRQ2_STATUS_3_MASK 0xD1A
  925. #define ARIZONA_IRQ2_STATUS_4_MASK 0xD1B
  926. #define ARIZONA_IRQ2_STATUS_5_MASK 0xD1C
  927. #define ARIZONA_IRQ2_STATUS_6_MASK 0xD1D
  928. #define ARIZONA_IRQ2_CONTROL 0xD1F
  929. #define ARIZONA_INTERRUPT_RAW_STATUS_2 0xD20
  930. #define ARIZONA_INTERRUPT_RAW_STATUS_3 0xD21
  931. #define ARIZONA_INTERRUPT_RAW_STATUS_4 0xD22
  932. #define ARIZONA_INTERRUPT_RAW_STATUS_5 0xD23
  933. #define ARIZONA_INTERRUPT_RAW_STATUS_6 0xD24
  934. #define ARIZONA_INTERRUPT_RAW_STATUS_7 0xD25
  935. #define ARIZONA_INTERRUPT_RAW_STATUS_8 0xD26
  936. #define ARIZONA_INTERRUPT_RAW_STATUS_9 0xD28
  937. #define ARIZONA_IRQ_PIN_STATUS 0xD40
  938. #define ARIZONA_ADSP2_IRQ0 0xD41
  939. #define ARIZONA_AOD_WKUP_AND_TRIG 0xD50
  940. #define ARIZONA_AOD_IRQ1 0xD51
  941. #define ARIZONA_AOD_IRQ2 0xD52
  942. #define ARIZONA_AOD_IRQ_MASK_IRQ1 0xD53
  943. #define ARIZONA_AOD_IRQ_MASK_IRQ2 0xD54
  944. #define ARIZONA_AOD_IRQ_RAW_STATUS 0xD55
  945. #define ARIZONA_JACK_DETECT_DEBOUNCE 0xD56
  946. #define ARIZONA_FX_CTRL1 0xE00
  947. #define ARIZONA_FX_CTRL2 0xE01
  948. #define ARIZONA_EQ1_1 0xE10
  949. #define ARIZONA_EQ1_2 0xE11
  950. #define ARIZONA_EQ1_3 0xE12
  951. #define ARIZONA_EQ1_4 0xE13
  952. #define ARIZONA_EQ1_5 0xE14
  953. #define ARIZONA_EQ1_6 0xE15
  954. #define ARIZONA_EQ1_7 0xE16
  955. #define ARIZONA_EQ1_8 0xE17
  956. #define ARIZONA_EQ1_9 0xE18
  957. #define ARIZONA_EQ1_10 0xE19
  958. #define ARIZONA_EQ1_11 0xE1A
  959. #define ARIZONA_EQ1_12 0xE1B
  960. #define ARIZONA_EQ1_13 0xE1C
  961. #define ARIZONA_EQ1_14 0xE1D
  962. #define ARIZONA_EQ1_15 0xE1E
  963. #define ARIZONA_EQ1_16 0xE1F
  964. #define ARIZONA_EQ1_17 0xE20
  965. #define ARIZONA_EQ1_18 0xE21
  966. #define ARIZONA_EQ1_19 0xE22
  967. #define ARIZONA_EQ1_20 0xE23
  968. #define ARIZONA_EQ1_21 0xE24
  969. #define ARIZONA_EQ2_1 0xE26
  970. #define ARIZONA_EQ2_2 0xE27
  971. #define ARIZONA_EQ2_3 0xE28
  972. #define ARIZONA_EQ2_4 0xE29
  973. #define ARIZONA_EQ2_5 0xE2A
  974. #define ARIZONA_EQ2_6 0xE2B
  975. #define ARIZONA_EQ2_7 0xE2C
  976. #define ARIZONA_EQ2_8 0xE2D
  977. #define ARIZONA_EQ2_9 0xE2E
  978. #define ARIZONA_EQ2_10 0xE2F
  979. #define ARIZONA_EQ2_11 0xE30
  980. #define ARIZONA_EQ2_12 0xE31
  981. #define ARIZONA_EQ2_13 0xE32
  982. #define ARIZONA_EQ2_14 0xE33
  983. #define ARIZONA_EQ2_15 0xE34
  984. #define ARIZONA_EQ2_16 0xE35
  985. #define ARIZONA_EQ2_17 0xE36
  986. #define ARIZONA_EQ2_18 0xE37
  987. #define ARIZONA_EQ2_19 0xE38
  988. #define ARIZONA_EQ2_20 0xE39
  989. #define ARIZONA_EQ2_21 0xE3A
  990. #define ARIZONA_EQ3_1 0xE3C
  991. #define ARIZONA_EQ3_2 0xE3D
  992. #define ARIZONA_EQ3_3 0xE3E
  993. #define ARIZONA_EQ3_4 0xE3F
  994. #define ARIZONA_EQ3_5 0xE40
  995. #define ARIZONA_EQ3_6 0xE41
  996. #define ARIZONA_EQ3_7 0xE42
  997. #define ARIZONA_EQ3_8 0xE43
  998. #define ARIZONA_EQ3_9 0xE44
  999. #define ARIZONA_EQ3_10 0xE45
  1000. #define ARIZONA_EQ3_11 0xE46
  1001. #define ARIZONA_EQ3_12 0xE47
  1002. #define ARIZONA_EQ3_13 0xE48
  1003. #define ARIZONA_EQ3_14 0xE49
  1004. #define ARIZONA_EQ3_15 0xE4A
  1005. #define ARIZONA_EQ3_16 0xE4B
  1006. #define ARIZONA_EQ3_17 0xE4C
  1007. #define ARIZONA_EQ3_18 0xE4D
  1008. #define ARIZONA_EQ3_19 0xE4E
  1009. #define ARIZONA_EQ3_20 0xE4F
  1010. #define ARIZONA_EQ3_21 0xE50
  1011. #define ARIZONA_EQ4_1 0xE52
  1012. #define ARIZONA_EQ4_2 0xE53
  1013. #define ARIZONA_EQ4_3 0xE54
  1014. #define ARIZONA_EQ4_4 0xE55
  1015. #define ARIZONA_EQ4_5 0xE56
  1016. #define ARIZONA_EQ4_6 0xE57
  1017. #define ARIZONA_EQ4_7 0xE58
  1018. #define ARIZONA_EQ4_8 0xE59
  1019. #define ARIZONA_EQ4_9 0xE5A
  1020. #define ARIZONA_EQ4_10 0xE5B
  1021. #define ARIZONA_EQ4_11 0xE5C
  1022. #define ARIZONA_EQ4_12 0xE5D
  1023. #define ARIZONA_EQ4_13 0xE5E
  1024. #define ARIZONA_EQ4_14 0xE5F
  1025. #define ARIZONA_EQ4_15 0xE60
  1026. #define ARIZONA_EQ4_16 0xE61
  1027. #define ARIZONA_EQ4_17 0xE62
  1028. #define ARIZONA_EQ4_18 0xE63
  1029. #define ARIZONA_EQ4_19 0xE64
  1030. #define ARIZONA_EQ4_20 0xE65
  1031. #define ARIZONA_EQ4_21 0xE66
  1032. #define ARIZONA_DRC1_CTRL1 0xE80
  1033. #define ARIZONA_DRC1_CTRL2 0xE81
  1034. #define ARIZONA_DRC1_CTRL3 0xE82
  1035. #define ARIZONA_DRC1_CTRL4 0xE83
  1036. #define ARIZONA_DRC1_CTRL5 0xE84
  1037. #define ARIZONA_DRC2_CTRL1 0xE89
  1038. #define ARIZONA_DRC2_CTRL2 0xE8A
  1039. #define ARIZONA_DRC2_CTRL3 0xE8B
  1040. #define ARIZONA_DRC2_CTRL4 0xE8C
  1041. #define ARIZONA_DRC2_CTRL5 0xE8D
  1042. #define ARIZONA_HPLPF1_1 0xEC0
  1043. #define ARIZONA_HPLPF1_2 0xEC1
  1044. #define ARIZONA_HPLPF2_1 0xEC4
  1045. #define ARIZONA_HPLPF2_2 0xEC5
  1046. #define ARIZONA_HPLPF3_1 0xEC8
  1047. #define ARIZONA_HPLPF3_2 0xEC9
  1048. #define ARIZONA_HPLPF4_1 0xECC
  1049. #define ARIZONA_HPLPF4_2 0xECD
  1050. #define ARIZONA_ASRC_ENABLE 0xEE0
  1051. #define ARIZONA_ASRC_STATUS 0xEE1
  1052. #define ARIZONA_ASRC_RATE1 0xEE2
  1053. #define ARIZONA_ASRC_RATE2 0xEE3
  1054. #define ARIZONA_ISRC_1_CTRL_1 0xEF0
  1055. #define ARIZONA_ISRC_1_CTRL_2 0xEF1
  1056. #define ARIZONA_ISRC_1_CTRL_3 0xEF2
  1057. #define ARIZONA_ISRC_2_CTRL_1 0xEF3
  1058. #define ARIZONA_ISRC_2_CTRL_2 0xEF4
  1059. #define ARIZONA_ISRC_2_CTRL_3 0xEF5
  1060. #define ARIZONA_ISRC_3_CTRL_1 0xEF6
  1061. #define ARIZONA_ISRC_3_CTRL_2 0xEF7
  1062. #define ARIZONA_ISRC_3_CTRL_3 0xEF8
  1063. #define ARIZONA_CLOCK_CONTROL 0xF00
  1064. #define ARIZONA_ANC_SRC 0xF01
  1065. #define ARIZONA_DSP_STATUS 0xF02
  1066. #define ARIZONA_ANC_COEFF_START 0xF08
  1067. #define ARIZONA_ANC_COEFF_END 0xF12
  1068. #define ARIZONA_FCL_FILTER_CONTROL 0xF15
  1069. #define ARIZONA_FCL_ADC_REFORMATTER_CONTROL 0xF17
  1070. #define ARIZONA_FCL_COEFF_START 0xF18
  1071. #define ARIZONA_FCL_COEFF_END 0xF69
  1072. #define ARIZONA_FCR_FILTER_CONTROL 0xF70
  1073. #define ARIZONA_FCR_ADC_REFORMATTER_CONTROL 0xF72
  1074. #define ARIZONA_FCR_COEFF_START 0xF73
  1075. #define ARIZONA_FCR_COEFF_END 0xFC4
  1076. #define ARIZONA_DSP1_CONTROL_1 0x1100
  1077. #define ARIZONA_DSP1_CLOCKING_1 0x1101
  1078. #define ARIZONA_DSP1_STATUS_1 0x1104
  1079. #define ARIZONA_DSP1_STATUS_2 0x1105
  1080. #define ARIZONA_DSP1_STATUS_3 0x1106
  1081. #define ARIZONA_DSP1_STATUS_4 0x1107
  1082. #define ARIZONA_DSP1_WDMA_BUFFER_1 0x1110
  1083. #define ARIZONA_DSP1_WDMA_BUFFER_2 0x1111
  1084. #define ARIZONA_DSP1_WDMA_BUFFER_3 0x1112
  1085. #define ARIZONA_DSP1_WDMA_BUFFER_4 0x1113
  1086. #define ARIZONA_DSP1_WDMA_BUFFER_5 0x1114
  1087. #define ARIZONA_DSP1_WDMA_BUFFER_6 0x1115
  1088. #define ARIZONA_DSP1_WDMA_BUFFER_7 0x1116
  1089. #define ARIZONA_DSP1_WDMA_BUFFER_8 0x1117
  1090. #define ARIZONA_DSP1_RDMA_BUFFER_1 0x1120
  1091. #define ARIZONA_DSP1_RDMA_BUFFER_2 0x1121
  1092. #define ARIZONA_DSP1_RDMA_BUFFER_3 0x1122
  1093. #define ARIZONA_DSP1_RDMA_BUFFER_4 0x1123
  1094. #define ARIZONA_DSP1_RDMA_BUFFER_5 0x1124
  1095. #define ARIZONA_DSP1_RDMA_BUFFER_6 0x1125
  1096. #define ARIZONA_DSP1_WDMA_CONFIG_1 0x1130
  1097. #define ARIZONA_DSP1_WDMA_CONFIG_2 0x1131
  1098. #define ARIZONA_DSP1_WDMA_OFFSET_1 0x1132
  1099. #define ARIZONA_DSP1_RDMA_CONFIG_1 0x1134
  1100. #define ARIZONA_DSP1_RDMA_OFFSET_1 0x1135
  1101. #define ARIZONA_DSP1_EXTERNAL_START_SELECT_1 0x1138
  1102. #define ARIZONA_DSP1_SCRATCH_0 0x1140
  1103. #define ARIZONA_DSP1_SCRATCH_1 0x1141
  1104. #define ARIZONA_DSP1_SCRATCH_2 0x1142
  1105. #define ARIZONA_DSP1_SCRATCH_3 0x1143
  1106. #define ARIZONA_DSP2_CONTROL_1 0x1200
  1107. #define ARIZONA_DSP2_CLOCKING_1 0x1201
  1108. #define ARIZONA_DSP2_STATUS_1 0x1204
  1109. #define ARIZONA_DSP2_STATUS_2 0x1205
  1110. #define ARIZONA_DSP2_STATUS_3 0x1206
  1111. #define ARIZONA_DSP2_STATUS_4 0x1207
  1112. #define ARIZONA_DSP2_WDMA_BUFFER_1 0x1210
  1113. #define ARIZONA_DSP2_WDMA_BUFFER_2 0x1211
  1114. #define ARIZONA_DSP2_WDMA_BUFFER_3 0x1212
  1115. #define ARIZONA_DSP2_WDMA_BUFFER_4 0x1213
  1116. #define ARIZONA_DSP2_WDMA_BUFFER_5 0x1214
  1117. #define ARIZONA_DSP2_WDMA_BUFFER_6 0x1215
  1118. #define ARIZONA_DSP2_WDMA_BUFFER_7 0x1216
  1119. #define ARIZONA_DSP2_WDMA_BUFFER_8 0x1217
  1120. #define ARIZONA_DSP2_RDMA_BUFFER_1 0x1220
  1121. #define ARIZONA_DSP2_RDMA_BUFFER_2 0x1221
  1122. #define ARIZONA_DSP2_RDMA_BUFFER_3 0x1222
  1123. #define ARIZONA_DSP2_RDMA_BUFFER_4 0x1223
  1124. #define ARIZONA_DSP2_RDMA_BUFFER_5 0x1224
  1125. #define ARIZONA_DSP2_RDMA_BUFFER_6 0x1225
  1126. #define ARIZONA_DSP2_WDMA_CONFIG_1 0x1230
  1127. #define ARIZONA_DSP2_WDMA_CONFIG_2 0x1231
  1128. #define ARIZONA_DSP2_WDMA_OFFSET_1 0x1232
  1129. #define ARIZONA_DSP2_RDMA_CONFIG_1 0x1234
  1130. #define ARIZONA_DSP2_RDMA_OFFSET_1 0x1235
  1131. #define ARIZONA_DSP2_EXTERNAL_START_SELECT_1 0x1238
  1132. #define ARIZONA_DSP2_SCRATCH_0 0x1240
  1133. #define ARIZONA_DSP2_SCRATCH_1 0x1241
  1134. #define ARIZONA_DSP2_SCRATCH_2 0x1242
  1135. #define ARIZONA_DSP2_SCRATCH_3 0x1243
  1136. #define ARIZONA_DSP3_CONTROL_1 0x1300
  1137. #define ARIZONA_DSP3_CLOCKING_1 0x1301
  1138. #define ARIZONA_DSP3_STATUS_1 0x1304
  1139. #define ARIZONA_DSP3_STATUS_2 0x1305
  1140. #define ARIZONA_DSP3_STATUS_3 0x1306
  1141. #define ARIZONA_DSP3_STATUS_4 0x1307
  1142. #define ARIZONA_DSP3_WDMA_BUFFER_1 0x1310
  1143. #define ARIZONA_DSP3_WDMA_BUFFER_2 0x1311
  1144. #define ARIZONA_DSP3_WDMA_BUFFER_3 0x1312
  1145. #define ARIZONA_DSP3_WDMA_BUFFER_4 0x1313
  1146. #define ARIZONA_DSP3_WDMA_BUFFER_5 0x1314
  1147. #define ARIZONA_DSP3_WDMA_BUFFER_6 0x1315
  1148. #define ARIZONA_DSP3_WDMA_BUFFER_7 0x1316
  1149. #define ARIZONA_DSP3_WDMA_BUFFER_8 0x1317
  1150. #define ARIZONA_DSP3_RDMA_BUFFER_1 0x1320
  1151. #define ARIZONA_DSP3_RDMA_BUFFER_2 0x1321
  1152. #define ARIZONA_DSP3_RDMA_BUFFER_3 0x1322
  1153. #define ARIZONA_DSP3_RDMA_BUFFER_4 0x1323
  1154. #define ARIZONA_DSP3_RDMA_BUFFER_5 0x1324
  1155. #define ARIZONA_DSP3_RDMA_BUFFER_6 0x1325
  1156. #define ARIZONA_DSP3_WDMA_CONFIG_1 0x1330
  1157. #define ARIZONA_DSP3_WDMA_CONFIG_2 0x1331
  1158. #define ARIZONA_DSP3_WDMA_OFFSET_1 0x1332
  1159. #define ARIZONA_DSP3_RDMA_CONFIG_1 0x1334
  1160. #define ARIZONA_DSP3_RDMA_OFFSET_1 0x1335
  1161. #define ARIZONA_DSP3_EXTERNAL_START_SELECT_1 0x1338
  1162. #define ARIZONA_DSP3_SCRATCH_0 0x1340
  1163. #define ARIZONA_DSP3_SCRATCH_1 0x1341
  1164. #define ARIZONA_DSP3_SCRATCH_2 0x1342
  1165. #define ARIZONA_DSP3_SCRATCH_3 0x1343
  1166. #define ARIZONA_DSP4_CONTROL_1 0x1400
  1167. #define ARIZONA_DSP4_CLOCKING_1 0x1401
  1168. #define ARIZONA_DSP4_STATUS_1 0x1404
  1169. #define ARIZONA_DSP4_STATUS_2 0x1405
  1170. #define ARIZONA_DSP4_STATUS_3 0x1406
  1171. #define ARIZONA_DSP4_STATUS_4 0x1407
  1172. #define ARIZONA_DSP4_WDMA_BUFFER_1 0x1410
  1173. #define ARIZONA_DSP4_WDMA_BUFFER_2 0x1411
  1174. #define ARIZONA_DSP4_WDMA_BUFFER_3 0x1412
  1175. #define ARIZONA_DSP4_WDMA_BUFFER_4 0x1413
  1176. #define ARIZONA_DSP4_WDMA_BUFFER_5 0x1414
  1177. #define ARIZONA_DSP4_WDMA_BUFFER_6 0x1415
  1178. #define ARIZONA_DSP4_WDMA_BUFFER_7 0x1416
  1179. #define ARIZONA_DSP4_WDMA_BUFFER_8 0x1417
  1180. #define ARIZONA_DSP4_RDMA_BUFFER_1 0x1420
  1181. #define ARIZONA_DSP4_RDMA_BUFFER_2 0x1421
  1182. #define ARIZONA_DSP4_RDMA_BUFFER_3 0x1422
  1183. #define ARIZONA_DSP4_RDMA_BUFFER_4 0x1423
  1184. #define ARIZONA_DSP4_RDMA_BUFFER_5 0x1424
  1185. #define ARIZONA_DSP4_RDMA_BUFFER_6 0x1425
  1186. #define ARIZONA_DSP4_WDMA_CONFIG_1 0x1430
  1187. #define ARIZONA_DSP4_WDMA_CONFIG_2 0x1431
  1188. #define ARIZONA_DSP4_WDMA_OFFSET_1 0x1432
  1189. #define ARIZONA_DSP4_RDMA_CONFIG_1 0x1434
  1190. #define ARIZONA_DSP4_RDMA_OFFSET_1 0x1435
  1191. #define ARIZONA_DSP4_EXTERNAL_START_SELECT_1 0x1438
  1192. #define ARIZONA_DSP4_SCRATCH_0 0x1440
  1193. #define ARIZONA_DSP4_SCRATCH_1 0x1441
  1194. #define ARIZONA_DSP4_SCRATCH_2 0x1442
  1195. #define ARIZONA_DSP4_SCRATCH_3 0x1443
  1196. #define ARIZONA_FRF_COEFF_1 0x1700
  1197. #define ARIZONA_FRF_COEFF_2 0x1701
  1198. #define ARIZONA_FRF_COEFF_3 0x1702
  1199. #define ARIZONA_FRF_COEFF_4 0x1703
  1200. #define ARIZONA_V2_DAC_COMP_1 0x1704
  1201. #define ARIZONA_V2_DAC_COMP_2 0x1705
  1202. /*
  1203. * Field Definitions.
  1204. */
  1205. /*
  1206. * R0 (0x00) - software reset
  1207. */
  1208. #define ARIZONA_SW_RST_DEV_ID1_MASK 0xFFFF /* SW_RST_DEV_ID1 - [15:0] */
  1209. #define ARIZONA_SW_RST_DEV_ID1_SHIFT 0 /* SW_RST_DEV_ID1 - [15:0] */
  1210. #define ARIZONA_SW_RST_DEV_ID1_WIDTH 16 /* SW_RST_DEV_ID1 - [15:0] */
  1211. /*
  1212. * R1 (0x01) - Device Revision
  1213. */
  1214. #define ARIZONA_DEVICE_REVISION_MASK 0x00FF /* DEVICE_REVISION - [7:0] */
  1215. #define ARIZONA_DEVICE_REVISION_SHIFT 0 /* DEVICE_REVISION - [7:0] */
  1216. #define ARIZONA_DEVICE_REVISION_WIDTH 8 /* DEVICE_REVISION - [7:0] */
  1217. /*
  1218. * R8 (0x08) - Ctrl IF SPI CFG 1
  1219. */
  1220. #define ARIZONA_SPI_CFG 0x0010 /* SPI_CFG */
  1221. #define ARIZONA_SPI_CFG_MASK 0x0010 /* SPI_CFG */
  1222. #define ARIZONA_SPI_CFG_SHIFT 4 /* SPI_CFG */
  1223. #define ARIZONA_SPI_CFG_WIDTH 1 /* SPI_CFG */
  1224. #define ARIZONA_SPI_4WIRE 0x0008 /* SPI_4WIRE */
  1225. #define ARIZONA_SPI_4WIRE_MASK 0x0008 /* SPI_4WIRE */
  1226. #define ARIZONA_SPI_4WIRE_SHIFT 3 /* SPI_4WIRE */
  1227. #define ARIZONA_SPI_4WIRE_WIDTH 1 /* SPI_4WIRE */
  1228. #define ARIZONA_SPI_AUTO_INC_MASK 0x0003 /* SPI_AUTO_INC - [1:0] */
  1229. #define ARIZONA_SPI_AUTO_INC_SHIFT 0 /* SPI_AUTO_INC - [1:0] */
  1230. #define ARIZONA_SPI_AUTO_INC_WIDTH 2 /* SPI_AUTO_INC - [1:0] */
  1231. /*
  1232. * R9 (0x09) - Ctrl IF I2C1 CFG 1
  1233. */
  1234. #define ARIZONA_I2C1_AUTO_INC_MASK 0x0003 /* I2C1_AUTO_INC - [1:0] */
  1235. #define ARIZONA_I2C1_AUTO_INC_SHIFT 0 /* I2C1_AUTO_INC - [1:0] */
  1236. #define ARIZONA_I2C1_AUTO_INC_WIDTH 2 /* I2C1_AUTO_INC - [1:0] */
  1237. /*
  1238. * R13 (0x0D) - Ctrl IF Status 1
  1239. */
  1240. #define ARIZONA_I2C1_BUSY 0x0020 /* I2C1_BUSY */
  1241. #define ARIZONA_I2C1_BUSY_MASK 0x0020 /* I2C1_BUSY */
  1242. #define ARIZONA_I2C1_BUSY_SHIFT 5 /* I2C1_BUSY */
  1243. #define ARIZONA_I2C1_BUSY_WIDTH 1 /* I2C1_BUSY */
  1244. #define ARIZONA_SPI_BUSY 0x0010 /* SPI_BUSY */
  1245. #define ARIZONA_SPI_BUSY_MASK 0x0010 /* SPI_BUSY */
  1246. #define ARIZONA_SPI_BUSY_SHIFT 4 /* SPI_BUSY */
  1247. #define ARIZONA_SPI_BUSY_WIDTH 1 /* SPI_BUSY */
  1248. /*
  1249. * R22 (0x16) - Write Sequencer Ctrl 0
  1250. */
  1251. #define ARIZONA_WSEQ_ABORT 0x0800 /* WSEQ_ABORT */
  1252. #define ARIZONA_WSEQ_ABORT_MASK 0x0800 /* WSEQ_ABORT */
  1253. #define ARIZONA_WSEQ_ABORT_SHIFT 11 /* WSEQ_ABORT */
  1254. #define ARIZONA_WSEQ_ABORT_WIDTH 1 /* WSEQ_ABORT */
  1255. #define ARIZONA_WSEQ_START 0x0400 /* WSEQ_START */
  1256. #define ARIZONA_WSEQ_START_MASK 0x0400 /* WSEQ_START */
  1257. #define ARIZONA_WSEQ_START_SHIFT 10 /* WSEQ_START */
  1258. #define ARIZONA_WSEQ_START_WIDTH 1 /* WSEQ_START */
  1259. #define ARIZONA_WSEQ_ENA 0x0200 /* WSEQ_ENA */
  1260. #define ARIZONA_WSEQ_ENA_MASK 0x0200 /* WSEQ_ENA */
  1261. #define ARIZONA_WSEQ_ENA_SHIFT 9 /* WSEQ_ENA */
  1262. #define ARIZONA_WSEQ_ENA_WIDTH 1 /* WSEQ_ENA */
  1263. #define ARIZONA_WSEQ_START_INDEX_MASK 0x01FF /* WSEQ_START_INDEX - [8:0] */
  1264. #define ARIZONA_WSEQ_START_INDEX_SHIFT 0 /* WSEQ_START_INDEX - [8:0] */
  1265. #define ARIZONA_WSEQ_START_INDEX_WIDTH 9 /* WSEQ_START_INDEX - [8:0] */
  1266. /*
  1267. * R23 (0x17) - Write Sequencer Ctrl 1
  1268. */
  1269. #define ARIZONA_WSEQ_BUSY 0x0200 /* WSEQ_BUSY */
  1270. #define ARIZONA_WSEQ_BUSY_MASK 0x0200 /* WSEQ_BUSY */
  1271. #define ARIZONA_WSEQ_BUSY_SHIFT 9 /* WSEQ_BUSY */
  1272. #define ARIZONA_WSEQ_BUSY_WIDTH 1 /* WSEQ_BUSY */
  1273. #define ARIZONA_WSEQ_CURRENT_INDEX_MASK 0x01FF /* WSEQ_CURRENT_INDEX - [8:0] */
  1274. #define ARIZONA_WSEQ_CURRENT_INDEX_SHIFT 0 /* WSEQ_CURRENT_INDEX - [8:0] */
  1275. #define ARIZONA_WSEQ_CURRENT_INDEX_WIDTH 9 /* WSEQ_CURRENT_INDEX - [8:0] */
  1276. /*
  1277. * R24 (0x18) - Write Sequencer Ctrl 2
  1278. */
  1279. #define ARIZONA_LOAD_DEFAULTS 0x0002 /* LOAD_DEFAULTS */
  1280. #define ARIZONA_LOAD_DEFAULTS_MASK 0x0002 /* LOAD_DEFAULTS */
  1281. #define ARIZONA_LOAD_DEFAULTS_SHIFT 1 /* LOAD_DEFAULTS */
  1282. #define ARIZONA_LOAD_DEFAULTS_WIDTH 1 /* LOAD_DEFAULTS */
  1283. #define ARIZONA_WSEQ_LOAD_MEM 0x0001 /* WSEQ_LOAD_MEM */
  1284. #define ARIZONA_WSEQ_LOAD_MEM_MASK 0x0001 /* WSEQ_LOAD_MEM */
  1285. #define ARIZONA_WSEQ_LOAD_MEM_SHIFT 0 /* WSEQ_LOAD_MEM */
  1286. #define ARIZONA_WSEQ_LOAD_MEM_WIDTH 1 /* WSEQ_LOAD_MEM */
  1287. /*
  1288. * R26 (0x1A) - Write Sequencer PROM
  1289. */
  1290. #define ARIZONA_WSEQ_OTP_WRITE 0x0001 /* WSEQ_OTP_WRITE */
  1291. #define ARIZONA_WSEQ_OTP_WRITE_MASK 0x0001 /* WSEQ_OTP_WRITE */
  1292. #define ARIZONA_WSEQ_OTP_WRITE_SHIFT 0 /* WSEQ_OTP_WRITE */
  1293. #define ARIZONA_WSEQ_OTP_WRITE_WIDTH 1 /* WSEQ_OTP_WRITE */
  1294. /*
  1295. * R32 (0x20) - Tone Generator 1
  1296. */
  1297. #define ARIZONA_TONE_RATE_MASK 0x7800 /* TONE_RATE - [14:11] */
  1298. #define ARIZONA_TONE_RATE_SHIFT 11 /* TONE_RATE - [14:11] */
  1299. #define ARIZONA_TONE_RATE_WIDTH 4 /* TONE_RATE - [14:11] */
  1300. #define ARIZONA_TONE_OFFSET_MASK 0x0300 /* TONE_OFFSET - [9:8] */
  1301. #define ARIZONA_TONE_OFFSET_SHIFT 8 /* TONE_OFFSET - [9:8] */
  1302. #define ARIZONA_TONE_OFFSET_WIDTH 2 /* TONE_OFFSET - [9:8] */
  1303. #define ARIZONA_TONE2_OVD 0x0020 /* TONE2_OVD */
  1304. #define ARIZONA_TONE2_OVD_MASK 0x0020 /* TONE2_OVD */
  1305. #define ARIZONA_TONE2_OVD_SHIFT 5 /* TONE2_OVD */
  1306. #define ARIZONA_TONE2_OVD_WIDTH 1 /* TONE2_OVD */
  1307. #define ARIZONA_TONE1_OVD 0x0010 /* TONE1_OVD */
  1308. #define ARIZONA_TONE1_OVD_MASK 0x0010 /* TONE1_OVD */
  1309. #define ARIZONA_TONE1_OVD_SHIFT 4 /* TONE1_OVD */
  1310. #define ARIZONA_TONE1_OVD_WIDTH 1 /* TONE1_OVD */
  1311. #define ARIZONA_TONE2_ENA 0x0002 /* TONE2_ENA */
  1312. #define ARIZONA_TONE2_ENA_MASK 0x0002 /* TONE2_ENA */
  1313. #define ARIZONA_TONE2_ENA_SHIFT 1 /* TONE2_ENA */
  1314. #define ARIZONA_TONE2_ENA_WIDTH 1 /* TONE2_ENA */
  1315. #define ARIZONA_TONE1_ENA 0x0001 /* TONE1_ENA */
  1316. #define ARIZONA_TONE1_ENA_MASK 0x0001 /* TONE1_ENA */
  1317. #define ARIZONA_TONE1_ENA_SHIFT 0 /* TONE1_ENA */
  1318. #define ARIZONA_TONE1_ENA_WIDTH 1 /* TONE1_ENA */
  1319. /*
  1320. * R33 (0x21) - Tone Generator 2
  1321. */
  1322. #define ARIZONA_TONE1_LVL_0_MASK 0xFFFF /* TONE1_LVL - [15:0] */
  1323. #define ARIZONA_TONE1_LVL_0_SHIFT 0 /* TONE1_LVL - [15:0] */
  1324. #define ARIZONA_TONE1_LVL_0_WIDTH 16 /* TONE1_LVL - [15:0] */
  1325. /*
  1326. * R34 (0x22) - Tone Generator 3
  1327. */
  1328. #define ARIZONA_TONE1_LVL_MASK 0x00FF /* TONE1_LVL - [7:0] */
  1329. #define ARIZONA_TONE1_LVL_SHIFT 0 /* TONE1_LVL - [7:0] */
  1330. #define ARIZONA_TONE1_LVL_WIDTH 8 /* TONE1_LVL - [7:0] */
  1331. /*
  1332. * R35 (0x23) - Tone Generator 4
  1333. */
  1334. #define ARIZONA_TONE2_LVL_0_MASK 0xFFFF /* TONE2_LVL - [15:0] */
  1335. #define ARIZONA_TONE2_LVL_0_SHIFT 0 /* TONE2_LVL - [15:0] */
  1336. #define ARIZONA_TONE2_LVL_0_WIDTH 16 /* TONE2_LVL - [15:0] */
  1337. /*
  1338. * R36 (0x24) - Tone Generator 5
  1339. */
  1340. #define ARIZONA_TONE2_LVL_MASK 0x00FF /* TONE2_LVL - [7:0] */
  1341. #define ARIZONA_TONE2_LVL_SHIFT 0 /* TONE2_LVL - [7:0] */
  1342. #define ARIZONA_TONE2_LVL_WIDTH 8 /* TONE2_LVL - [7:0] */
  1343. /*
  1344. * R48 (0x30) - PWM Drive 1
  1345. */
  1346. #define ARIZONA_PWM_RATE_MASK 0x7800 /* PWM_RATE - [14:11] */
  1347. #define ARIZONA_PWM_RATE_SHIFT 11 /* PWM_RATE - [14:11] */
  1348. #define ARIZONA_PWM_RATE_WIDTH 4 /* PWM_RATE - [14:11] */
  1349. #define ARIZONA_PWM_CLK_SEL_MASK 0x0700 /* PWM_CLK_SEL - [10:8] */
  1350. #define ARIZONA_PWM_CLK_SEL_SHIFT 8 /* PWM_CLK_SEL - [10:8] */
  1351. #define ARIZONA_PWM_CLK_SEL_WIDTH 3 /* PWM_CLK_SEL - [10:8] */
  1352. #define ARIZONA_PWM2_OVD 0x0020 /* PWM2_OVD */
  1353. #define ARIZONA_PWM2_OVD_MASK 0x0020 /* PWM2_OVD */
  1354. #define ARIZONA_PWM2_OVD_SHIFT 5 /* PWM2_OVD */
  1355. #define ARIZONA_PWM2_OVD_WIDTH 1 /* PWM2_OVD */
  1356. #define ARIZONA_PWM1_OVD 0x0010 /* PWM1_OVD */
  1357. #define ARIZONA_PWM1_OVD_MASK 0x0010 /* PWM1_OVD */
  1358. #define ARIZONA_PWM1_OVD_SHIFT 4 /* PWM1_OVD */
  1359. #define ARIZONA_PWM1_OVD_WIDTH 1 /* PWM1_OVD */
  1360. #define ARIZONA_PWM2_ENA 0x0002 /* PWM2_ENA */
  1361. #define ARIZONA_PWM2_ENA_MASK 0x0002 /* PWM2_ENA */
  1362. #define ARIZONA_PWM2_ENA_SHIFT 1 /* PWM2_ENA */
  1363. #define ARIZONA_PWM2_ENA_WIDTH 1 /* PWM2_ENA */
  1364. #define ARIZONA_PWM1_ENA 0x0001 /* PWM1_ENA */
  1365. #define ARIZONA_PWM1_ENA_MASK 0x0001 /* PWM1_ENA */
  1366. #define ARIZONA_PWM1_ENA_SHIFT 0 /* PWM1_ENA */
  1367. #define ARIZONA_PWM1_ENA_WIDTH 1 /* PWM1_ENA */
  1368. /*
  1369. * R49 (0x31) - PWM Drive 2
  1370. */
  1371. #define ARIZONA_PWM1_LVL_MASK 0x03FF /* PWM1_LVL - [9:0] */
  1372. #define ARIZONA_PWM1_LVL_SHIFT 0 /* PWM1_LVL - [9:0] */
  1373. #define ARIZONA_PWM1_LVL_WIDTH 10 /* PWM1_LVL - [9:0] */
  1374. /*
  1375. * R50 (0x32) - PWM Drive 3
  1376. */
  1377. #define ARIZONA_PWM2_LVL_MASK 0x03FF /* PWM2_LVL - [9:0] */
  1378. #define ARIZONA_PWM2_LVL_SHIFT 0 /* PWM2_LVL - [9:0] */
  1379. #define ARIZONA_PWM2_LVL_WIDTH 10 /* PWM2_LVL - [9:0] */
  1380. /*
  1381. * R64 (0x40) - Wake control
  1382. */
  1383. #define ARIZONA_WKUP_MICD_CLAMP_FALL 0x0080 /* WKUP_MICD_CLAMP_FALL */
  1384. #define ARIZONA_WKUP_MICD_CLAMP_FALL_MASK 0x0080 /* WKUP_MICD_CLAMP_FALL */
  1385. #define ARIZONA_WKUP_MICD_CLAMP_FALL_SHIFT 7 /* WKUP_MICD_CLAMP_FALL */
  1386. #define ARIZONA_WKUP_MICD_CLAMP_FALL_WIDTH 1 /* WKUP_MICD_CLAMP_FALL */
  1387. #define ARIZONA_WKUP_MICD_CLAMP_RISE 0x0040 /* WKUP_MICD_CLAMP_RISE */
  1388. #define ARIZONA_WKUP_MICD_CLAMP_RISE_MASK 0x0040 /* WKUP_MICD_CLAMP_RISE */
  1389. #define ARIZONA_WKUP_MICD_CLAMP_RISE_SHIFT 6 /* WKUP_MICD_CLAMP_RISE */
  1390. #define ARIZONA_WKUP_MICD_CLAMP_RISE_WIDTH 1 /* WKUP_MICD_CLAMP_RISE */
  1391. #define ARIZONA_WKUP_GP5_FALL 0x0020 /* WKUP_GP5_FALL */
  1392. #define ARIZONA_WKUP_GP5_FALL_MASK 0x0020 /* WKUP_GP5_FALL */
  1393. #define ARIZONA_WKUP_GP5_FALL_SHIFT 5 /* WKUP_GP5_FALL */
  1394. #define ARIZONA_WKUP_GP5_FALL_WIDTH 1 /* WKUP_GP5_FALL */
  1395. #define ARIZONA_WKUP_GP5_RISE 0x0010 /* WKUP_GP5_RISE */
  1396. #define ARIZONA_WKUP_GP5_RISE_MASK 0x0010 /* WKUP_GP5_RISE */
  1397. #define ARIZONA_WKUP_GP5_RISE_SHIFT 4 /* WKUP_GP5_RISE */
  1398. #define ARIZONA_WKUP_GP5_RISE_WIDTH 1 /* WKUP_GP5_RISE */
  1399. #define ARIZONA_WKUP_JD1_FALL 0x0008 /* WKUP_JD1_FALL */
  1400. #define ARIZONA_WKUP_JD1_FALL_MASK 0x0008 /* WKUP_JD1_FALL */
  1401. #define ARIZONA_WKUP_JD1_FALL_SHIFT 3 /* WKUP_JD1_FALL */
  1402. #define ARIZONA_WKUP_JD1_FALL_WIDTH 1 /* WKUP_JD1_FALL */
  1403. #define ARIZONA_WKUP_JD1_RISE 0x0004 /* WKUP_JD1_RISE */
  1404. #define ARIZONA_WKUP_JD1_RISE_MASK 0x0004 /* WKUP_JD1_RISE */
  1405. #define ARIZONA_WKUP_JD1_RISE_SHIFT 2 /* WKUP_JD1_RISE */
  1406. #define ARIZONA_WKUP_JD1_RISE_WIDTH 1 /* WKUP_JD1_RISE */
  1407. #define ARIZONA_WKUP_JD2_FALL 0x0002 /* WKUP_JD2_FALL */
  1408. #define ARIZONA_WKUP_JD2_FALL_MASK 0x0002 /* WKUP_JD2_FALL */
  1409. #define ARIZONA_WKUP_JD2_FALL_SHIFT 1 /* WKUP_JD2_FALL */
  1410. #define ARIZONA_WKUP_JD2_FALL_WIDTH 1 /* WKUP_JD2_FALL */
  1411. #define ARIZONA_WKUP_JD2_RISE 0x0001 /* WKUP_JD2_RISE */
  1412. #define ARIZONA_WKUP_JD2_RISE_MASK 0x0001 /* WKUP_JD2_RISE */
  1413. #define ARIZONA_WKUP_JD2_RISE_SHIFT 0 /* WKUP_JD2_RISE */
  1414. #define ARIZONA_WKUP_JD2_RISE_WIDTH 1 /* WKUP_JD2_RISE */
  1415. /*
  1416. * R65 (0x41) - Sequence control
  1417. */
  1418. #define ARIZONA_WSEQ_ENA_GP5_FALL 0x0020 /* WSEQ_ENA_GP5_FALL */
  1419. #define ARIZONA_WSEQ_ENA_GP5_FALL_MASK 0x0020 /* WSEQ_ENA_GP5_FALL */
  1420. #define ARIZONA_WSEQ_ENA_GP5_FALL_SHIFT 5 /* WSEQ_ENA_GP5_FALL */
  1421. #define ARIZONA_WSEQ_ENA_GP5_FALL_WIDTH 1 /* WSEQ_ENA_GP5_FALL */
  1422. #define ARIZONA_WSEQ_ENA_GP5_RISE 0x0010 /* WSEQ_ENA_GP5_RISE */
  1423. #define ARIZONA_WSEQ_ENA_GP5_RISE_MASK 0x0010 /* WSEQ_ENA_GP5_RISE */
  1424. #define ARIZONA_WSEQ_ENA_GP5_RISE_SHIFT 4 /* WSEQ_ENA_GP5_RISE */
  1425. #define ARIZONA_WSEQ_ENA_GP5_RISE_WIDTH 1 /* WSEQ_ENA_GP5_RISE */
  1426. #define ARIZONA_WSEQ_ENA_JD1_FALL 0x0008 /* WSEQ_ENA_JD1_FALL */
  1427. #define ARIZONA_WSEQ_ENA_JD1_FALL_MASK 0x0008 /* WSEQ_ENA_JD1_FALL */
  1428. #define ARIZONA_WSEQ_ENA_JD1_FALL_SHIFT 3 /* WSEQ_ENA_JD1_FALL */
  1429. #define ARIZONA_WSEQ_ENA_JD1_FALL_WIDTH 1 /* WSEQ_ENA_JD1_FALL */
  1430. #define ARIZONA_WSEQ_ENA_JD1_RISE 0x0004 /* WSEQ_ENA_JD1_RISE */
  1431. #define ARIZONA_WSEQ_ENA_JD1_RISE_MASK 0x0004 /* WSEQ_ENA_JD1_RISE */
  1432. #define ARIZONA_WSEQ_ENA_JD1_RISE_SHIFT 2 /* WSEQ_ENA_JD1_RISE */
  1433. #define ARIZONA_WSEQ_ENA_JD1_RISE_WIDTH 1 /* WSEQ_ENA_JD1_RISE */
  1434. #define ARIZONA_WSEQ_ENA_JD2_FALL 0x0002 /* WSEQ_ENA_JD2_FALL */
  1435. #define ARIZONA_WSEQ_ENA_JD2_FALL_MASK 0x0002 /* WSEQ_ENA_JD2_FALL */
  1436. #define ARIZONA_WSEQ_ENA_JD2_FALL_SHIFT 1 /* WSEQ_ENA_JD2_FALL */
  1437. #define ARIZONA_WSEQ_ENA_JD2_FALL_WIDTH 1 /* WSEQ_ENA_JD2_FALL */
  1438. #define ARIZONA_WSEQ_ENA_JD2_RISE 0x0001 /* WSEQ_ENA_JD2_RISE */
  1439. #define ARIZONA_WSEQ_ENA_JD2_RISE_MASK 0x0001 /* WSEQ_ENA_JD2_RISE */
  1440. #define ARIZONA_WSEQ_ENA_JD2_RISE_SHIFT 0 /* WSEQ_ENA_JD2_RISE */
  1441. #define ARIZONA_WSEQ_ENA_JD2_RISE_WIDTH 1 /* WSEQ_ENA_JD2_RISE */
  1442. /*
  1443. * R66 (0x42) - Spare Triggers
  1444. */
  1445. #define ARIZONA_WS_TRG8 0x0080 /* WS_TRG8 */
  1446. #define ARIZONA_WS_TRG8_MASK 0x0080 /* WS_TRG8 */
  1447. #define ARIZONA_WS_TRG8_SHIFT 7 /* WS_TRG8 */
  1448. #define ARIZONA_WS_TRG8_WIDTH 1 /* WS_TRG8 */
  1449. #define ARIZONA_WS_TRG7 0x0040 /* WS_TRG7 */
  1450. #define ARIZONA_WS_TRG7_MASK 0x0040 /* WS_TRG7 */
  1451. #define ARIZONA_WS_TRG7_SHIFT 6 /* WS_TRG7 */
  1452. #define ARIZONA_WS_TRG7_WIDTH 1 /* WS_TRG7 */
  1453. #define ARIZONA_WS_TRG6 0x0020 /* WS_TRG6 */
  1454. #define ARIZONA_WS_TRG6_MASK 0x0020 /* WS_TRG6 */
  1455. #define ARIZONA_WS_TRG6_SHIFT 5 /* WS_TRG6 */
  1456. #define ARIZONA_WS_TRG6_WIDTH 1 /* WS_TRG6 */
  1457. #define ARIZONA_WS_TRG5 0x0010 /* WS_TRG5 */
  1458. #define ARIZONA_WS_TRG5_MASK 0x0010 /* WS_TRG5 */
  1459. #define ARIZONA_WS_TRG5_SHIFT 4 /* WS_TRG5 */
  1460. #define ARIZONA_WS_TRG5_WIDTH 1 /* WS_TRG5 */
  1461. #define ARIZONA_WS_TRG4 0x0008 /* WS_TRG4 */
  1462. #define ARIZONA_WS_TRG4_MASK 0x0008 /* WS_TRG4 */
  1463. #define ARIZONA_WS_TRG4_SHIFT 3 /* WS_TRG4 */
  1464. #define ARIZONA_WS_TRG4_WIDTH 1 /* WS_TRG4 */
  1465. #define ARIZONA_WS_TRG3 0x0004 /* WS_TRG3 */
  1466. #define ARIZONA_WS_TRG3_MASK 0x0004 /* WS_TRG3 */
  1467. #define ARIZONA_WS_TRG3_SHIFT 2 /* WS_TRG3 */
  1468. #define ARIZONA_WS_TRG3_WIDTH 1 /* WS_TRG3 */
  1469. #define ARIZONA_WS_TRG2 0x0002 /* WS_TRG2 */
  1470. #define ARIZONA_WS_TRG2_MASK 0x0002 /* WS_TRG2 */
  1471. #define ARIZONA_WS_TRG2_SHIFT 1 /* WS_TRG2 */
  1472. #define ARIZONA_WS_TRG2_WIDTH 1 /* WS_TRG2 */
  1473. #define ARIZONA_WS_TRG1 0x0001 /* WS_TRG1 */
  1474. #define ARIZONA_WS_TRG1_MASK 0x0001 /* WS_TRG1 */
  1475. #define ARIZONA_WS_TRG1_SHIFT 0 /* WS_TRG1 */
  1476. #define ARIZONA_WS_TRG1_WIDTH 1 /* WS_TRG1 */
  1477. /*
  1478. * R97 (0x61) - Sample Rate Sequence Select 1
  1479. */
  1480. #define ARIZONA_WSEQ_SAMPLE_RATE_DETECT_A_SEQ_ADDR_MASK 0x01FF /* WSEQ_SAMPLE_RATE_DETECT_A_SEQ_ADDR - [8:0] */
  1481. #define ARIZONA_WSEQ_SAMPLE_RATE_DETECT_A_SEQ_ADDR_SHIFT 0 /* WSEQ_SAMPLE_RATE_DETECT_A_SEQ_ADDR - [8:0] */
  1482. #define ARIZONA_WSEQ_SAMPLE_RATE_DETECT_A_SEQ_ADDR_WIDTH 9 /* WSEQ_SAMPLE_RATE_DETECT_A_SEQ_ADDR - [8:0] */
  1483. /*
  1484. * R98 (0x62) - Sample Rate Sequence Select 2
  1485. */
  1486. #define ARIZONA_WSEQ_SAMPLE_RATE_DETECT_B_SEQ_ADDR_MASK 0x01FF /* WSEQ_SAMPLE_RATE_DETECT_B_SEQ_ADDR - [8:0] */
  1487. #define ARIZONA_WSEQ_SAMPLE_RATE_DETECT_B_SEQ_ADDR_SHIFT 0 /* WSEQ_SAMPLE_RATE_DETECT_B_SEQ_ADDR - [8:0] */
  1488. #define ARIZONA_WSEQ_SAMPLE_RATE_DETECT_B_SEQ_ADDR_WIDTH 9 /* WSEQ_SAMPLE_RATE_DETECT_B_SEQ_ADDR - [8:0] */
  1489. /*
  1490. * R99 (0x63) - Sample Rate Sequence Select 3
  1491. */
  1492. #define ARIZONA_WSEQ_SAMPLE_RATE_DETECT_C_SEQ_ADDR_MASK 0x01FF /* WSEQ_SAMPLE_RATE_DETECT_C_SEQ_ADDR - [8:0] */
  1493. #define ARIZONA_WSEQ_SAMPLE_RATE_DETECT_C_SEQ_ADDR_SHIFT 0 /* WSEQ_SAMPLE_RATE_DETECT_C_SEQ_ADDR - [8:0] */
  1494. #define ARIZONA_WSEQ_SAMPLE_RATE_DETECT_C_SEQ_ADDR_WIDTH 9 /* WSEQ_SAMPLE_RATE_DETECT_C_SEQ_ADDR - [8:0] */
  1495. /*
  1496. * R100 (0x64) - Sample Rate Sequence Select 4
  1497. */
  1498. #define ARIZONA_WSEQ_SAMPLE_RATE_DETECT_D_SEQ_ADDR_MASK 0x01FF /* WSEQ_SAMPLE_RATE_DETECT_D_SEQ_ADDR - [8:0] */
  1499. #define ARIZONA_WSEQ_SAMPLE_RATE_DETECT_D_SEQ_ADDR_SHIFT 0 /* WSEQ_SAMPLE_RATE_DETECT_D_SEQ_ADDR - [8:0] */
  1500. #define ARIZONA_WSEQ_SAMPLE_RATE_DETECT_D_SEQ_ADDR_WIDTH 9 /* WSEQ_SAMPLE_RATE_DETECT_D_SEQ_ADDR - [8:0] */
  1501. /*
  1502. * R104 (0x68) - Always On Triggers Sequence Select 1
  1503. */
  1504. #define ARIZONA_WSEQ_GP5_RISE_SEQ_ADDR_MASK 0x01FF /* WSEQ_GP5_RISE_SEQ_ADDR - [8:0] */
  1505. #define ARIZONA_WSEQ_GP5_RISE_SEQ_ADDR_SHIFT 0 /* WSEQ_GP5_RISE_SEQ_ADDR - [8:0] */
  1506. #define ARIZONA_WSEQ_GP5_RISE_SEQ_ADDR_WIDTH 9 /* WSEQ_GP5_RISE_SEQ_ADDR - [8:0] */
  1507. /*
  1508. * R105 (0x69) - Always On Triggers Sequence Select 2
  1509. */
  1510. #define ARIZONA_WSEQ_GP5_FALL_SEQ_ADDR_MASK 0x01FF /* WSEQ_GP5_FALL_SEQ_ADDR - [8:0] */
  1511. #define ARIZONA_WSEQ_GP5_FALL_SEQ_ADDR_SHIFT 0 /* WSEQ_GP5_FALL_SEQ_ADDR - [8:0] */
  1512. #define ARIZONA_WSEQ_GP5_FALL_SEQ_ADDR_WIDTH 9 /* WSEQ_GP5_FALL_SEQ_ADDR - [8:0] */
  1513. /*
  1514. * R106 (0x6A) - Always On Triggers Sequence Select 3
  1515. */
  1516. #define ARIZONA_WSEQ_JD1_RISE_SEQ_ADDR_MASK 0x01FF /* WSEQ_JD1_RISE_SEQ_ADDR - [8:0] */
  1517. #define ARIZONA_WSEQ_JD1_RISE_SEQ_ADDR_SHIFT 0 /* WSEQ_JD1_RISE_SEQ_ADDR - [8:0] */
  1518. #define ARIZONA_WSEQ_JD1_RISE_SEQ_ADDR_WIDTH 9 /* WSEQ_JD1_RISE_SEQ_ADDR - [8:0] */
  1519. /*
  1520. * R107 (0x6B) - Always On Triggers Sequence Select 4
  1521. */
  1522. #define ARIZONA_WSEQ_JD1_FALL_SEQ_ADDR_MASK 0x01FF /* WSEQ_JD1_FALL_SEQ_ADDR - [8:0] */
  1523. #define ARIZONA_WSEQ_JD1_FALL_SEQ_ADDR_SHIFT 0 /* WSEQ_JD1_FALL_SEQ_ADDR - [8:0] */
  1524. #define ARIZONA_WSEQ_JD1_FALL_SEQ_ADDR_WIDTH 9 /* WSEQ_JD1_FALL_SEQ_ADDR - [8:0] */
  1525. /*
  1526. * R108 (0x6C) - Always On Triggers Sequence Select 5
  1527. */
  1528. #define ARIZONA_WSEQ_JD2_RISE_SEQ_ADDR_MASK 0x01FF /* WSEQ_JD2_RISE_SEQ_ADDR - [8:0] */
  1529. #define ARIZONA_WSEQ_JD2_RISE_SEQ_ADDR_SHIFT 0 /* WSEQ_JD2_RISE_SEQ_ADDR - [8:0] */
  1530. #define ARIZONA_WSEQ_JD2_RISE_SEQ_ADDR_WIDTH 9 /* WSEQ_JD2_RISE_SEQ_ADDR - [8:0] */
  1531. /*
  1532. * R109 (0x6D) - Always On Triggers Sequence Select 6
  1533. */
  1534. #define ARIZONA_WSEQ_JD2_FALL_SEQ_ADDR_MASK 0x01FF /* WSEQ_JD2_FALL_SEQ_ADDR - [8:0] */
  1535. #define ARIZONA_WSEQ_JD2_FALL_SEQ_ADDR_SHIFT 0 /* WSEQ_JD2_FALL_SEQ_ADDR - [8:0] */
  1536. #define ARIZONA_WSEQ_JD2_FALL_SEQ_ADDR_WIDTH 9 /* WSEQ_JD2_FALL_SEQ_ADDR - [8:0] */
  1537. /*
  1538. * R112 (0x70) - Comfort Noise Generator
  1539. */
  1540. #define ARIZONA_NOISE_GEN_RATE_MASK 0x7800 /* NOISE_GEN_RATE - [14:11] */
  1541. #define ARIZONA_NOISE_GEN_RATE_SHIFT 11 /* NOISE_GEN_RATE - [14:11] */
  1542. #define ARIZONA_NOISE_GEN_RATE_WIDTH 4 /* NOISE_GEN_RATE - [14:11] */
  1543. #define ARIZONA_NOISE_GEN_ENA 0x0020 /* NOISE_GEN_ENA */
  1544. #define ARIZONA_NOISE_GEN_ENA_MASK 0x0020 /* NOISE_GEN_ENA */
  1545. #define ARIZONA_NOISE_GEN_ENA_SHIFT 5 /* NOISE_GEN_ENA */
  1546. #define ARIZONA_NOISE_GEN_ENA_WIDTH 1 /* NOISE_GEN_ENA */
  1547. #define ARIZONA_NOISE_GEN_GAIN_MASK 0x001F /* NOISE_GEN_GAIN - [4:0] */
  1548. #define ARIZONA_NOISE_GEN_GAIN_SHIFT 0 /* NOISE_GEN_GAIN - [4:0] */
  1549. #define ARIZONA_NOISE_GEN_GAIN_WIDTH 5 /* NOISE_GEN_GAIN - [4:0] */
  1550. /*
  1551. * R144 (0x90) - Haptics Control 1
  1552. */
  1553. #define ARIZONA_HAP_RATE_MASK 0x7800 /* HAP_RATE - [14:11] */
  1554. #define ARIZONA_HAP_RATE_SHIFT 11 /* HAP_RATE - [14:11] */
  1555. #define ARIZONA_HAP_RATE_WIDTH 4 /* HAP_RATE - [14:11] */
  1556. #define ARIZONA_ONESHOT_TRIG 0x0010 /* ONESHOT_TRIG */
  1557. #define ARIZONA_ONESHOT_TRIG_MASK 0x0010 /* ONESHOT_TRIG */
  1558. #define ARIZONA_ONESHOT_TRIG_SHIFT 4 /* ONESHOT_TRIG */
  1559. #define ARIZONA_ONESHOT_TRIG_WIDTH 1 /* ONESHOT_TRIG */
  1560. #define ARIZONA_HAP_CTRL_MASK 0x000C /* HAP_CTRL - [3:2] */
  1561. #define ARIZONA_HAP_CTRL_SHIFT 2 /* HAP_CTRL - [3:2] */
  1562. #define ARIZONA_HAP_CTRL_WIDTH 2 /* HAP_CTRL - [3:2] */
  1563. #define ARIZONA_HAP_ACT 0x0002 /* HAP_ACT */
  1564. #define ARIZONA_HAP_ACT_MASK 0x0002 /* HAP_ACT */
  1565. #define ARIZONA_HAP_ACT_SHIFT 1 /* HAP_ACT */
  1566. #define ARIZONA_HAP_ACT_WIDTH 1 /* HAP_ACT */
  1567. /*
  1568. * R145 (0x91) - Haptics Control 2
  1569. */
  1570. #define ARIZONA_LRA_FREQ_MASK 0x7FFF /* LRA_FREQ - [14:0] */
  1571. #define ARIZONA_LRA_FREQ_SHIFT 0 /* LRA_FREQ - [14:0] */
  1572. #define ARIZONA_LRA_FREQ_WIDTH 15 /* LRA_FREQ - [14:0] */
  1573. /*
  1574. * R146 (0x92) - Haptics phase 1 intensity
  1575. */
  1576. #define ARIZONA_PHASE1_INTENSITY_MASK 0x00FF /* PHASE1_INTENSITY - [7:0] */
  1577. #define ARIZONA_PHASE1_INTENSITY_SHIFT 0 /* PHASE1_INTENSITY - [7:0] */
  1578. #define ARIZONA_PHASE1_INTENSITY_WIDTH 8 /* PHASE1_INTENSITY - [7:0] */
  1579. /*
  1580. * R147 (0x93) - Haptics phase 1 duration
  1581. */
  1582. #define ARIZONA_PHASE1_DURATION_MASK 0x01FF /* PHASE1_DURATION - [8:0] */
  1583. #define ARIZONA_PHASE1_DURATION_SHIFT 0 /* PHASE1_DURATION - [8:0] */
  1584. #define ARIZONA_PHASE1_DURATION_WIDTH 9 /* PHASE1_DURATION - [8:0] */
  1585. /*
  1586. * R148 (0x94) - Haptics phase 2 intensity
  1587. */
  1588. #define ARIZONA_PHASE2_INTENSITY_MASK 0x00FF /* PHASE2_INTENSITY - [7:0] */
  1589. #define ARIZONA_PHASE2_INTENSITY_SHIFT 0 /* PHASE2_INTENSITY - [7:0] */
  1590. #define ARIZONA_PHASE2_INTENSITY_WIDTH 8 /* PHASE2_INTENSITY - [7:0] */
  1591. /*
  1592. * R149 (0x95) - Haptics phase 2 duration
  1593. */
  1594. #define ARIZONA_PHASE2_DURATION_MASK 0x07FF /* PHASE2_DURATION - [10:0] */
  1595. #define ARIZONA_PHASE2_DURATION_SHIFT 0 /* PHASE2_DURATION - [10:0] */
  1596. #define ARIZONA_PHASE2_DURATION_WIDTH 11 /* PHASE2_DURATION - [10:0] */
  1597. /*
  1598. * R150 (0x96) - Haptics phase 3 intensity
  1599. */
  1600. #define ARIZONA_PHASE3_INTENSITY_MASK 0x00FF /* PHASE3_INTENSITY - [7:0] */
  1601. #define ARIZONA_PHASE3_INTENSITY_SHIFT 0 /* PHASE3_INTENSITY - [7:0] */
  1602. #define ARIZONA_PHASE3_INTENSITY_WIDTH 8 /* PHASE3_INTENSITY - [7:0] */
  1603. /*
  1604. * R151 (0x97) - Haptics phase 3 duration
  1605. */
  1606. #define ARIZONA_PHASE3_DURATION_MASK 0x01FF /* PHASE3_DURATION - [8:0] */
  1607. #define ARIZONA_PHASE3_DURATION_SHIFT 0 /* PHASE3_DURATION - [8:0] */
  1608. #define ARIZONA_PHASE3_DURATION_WIDTH 9 /* PHASE3_DURATION - [8:0] */
  1609. /*
  1610. * R152 (0x98) - Haptics Status
  1611. */
  1612. #define ARIZONA_ONESHOT_STS 0x0001 /* ONESHOT_STS */
  1613. #define ARIZONA_ONESHOT_STS_MASK 0x0001 /* ONESHOT_STS */
  1614. #define ARIZONA_ONESHOT_STS_SHIFT 0 /* ONESHOT_STS */
  1615. #define ARIZONA_ONESHOT_STS_WIDTH 1 /* ONESHOT_STS */
  1616. /*
  1617. * R256 (0x100) - Clock 32k 1
  1618. */
  1619. #define ARIZONA_CLK_32K_ENA 0x0040 /* CLK_32K_ENA */
  1620. #define ARIZONA_CLK_32K_ENA_MASK 0x0040 /* CLK_32K_ENA */
  1621. #define ARIZONA_CLK_32K_ENA_SHIFT 6 /* CLK_32K_ENA */
  1622. #define ARIZONA_CLK_32K_ENA_WIDTH 1 /* CLK_32K_ENA */
  1623. #define ARIZONA_CLK_32K_SRC_MASK 0x0003 /* CLK_32K_SRC - [1:0] */
  1624. #define ARIZONA_CLK_32K_SRC_SHIFT 0 /* CLK_32K_SRC - [1:0] */
  1625. #define ARIZONA_CLK_32K_SRC_WIDTH 2 /* CLK_32K_SRC - [1:0] */
  1626. /*
  1627. * R257 (0x101) - System Clock 1
  1628. */
  1629. #define ARIZONA_SYSCLK_FRAC 0x8000 /* SYSCLK_FRAC */
  1630. #define ARIZONA_SYSCLK_FRAC_MASK 0x8000 /* SYSCLK_FRAC */
  1631. #define ARIZONA_SYSCLK_FRAC_SHIFT 15 /* SYSCLK_FRAC */
  1632. #define ARIZONA_SYSCLK_FRAC_WIDTH 1 /* SYSCLK_FRAC */
  1633. #define ARIZONA_SYSCLK_FREQ_MASK 0x0700 /* SYSCLK_FREQ - [10:8] */
  1634. #define ARIZONA_SYSCLK_FREQ_SHIFT 8 /* SYSCLK_FREQ - [10:8] */
  1635. #define ARIZONA_SYSCLK_FREQ_WIDTH 3 /* SYSCLK_FREQ - [10:8] */
  1636. #define ARIZONA_SYSCLK_ENA 0x0040 /* SYSCLK_ENA */
  1637. #define ARIZONA_SYSCLK_ENA_MASK 0x0040 /* SYSCLK_ENA */
  1638. #define ARIZONA_SYSCLK_ENA_SHIFT 6 /* SYSCLK_ENA */
  1639. #define ARIZONA_SYSCLK_ENA_WIDTH 1 /* SYSCLK_ENA */
  1640. #define ARIZONA_SYSCLK_SRC_MASK 0x000F /* SYSCLK_SRC - [3:0] */
  1641. #define ARIZONA_SYSCLK_SRC_SHIFT 0 /* SYSCLK_SRC - [3:0] */
  1642. #define ARIZONA_SYSCLK_SRC_WIDTH 4 /* SYSCLK_SRC - [3:0] */
  1643. /*
  1644. * R258 (0x102) - Sample rate 1
  1645. */
  1646. #define ARIZONA_SAMPLE_RATE_1_MASK 0x001F /* SAMPLE_RATE_1 - [4:0] */
  1647. #define ARIZONA_SAMPLE_RATE_1_SHIFT 0 /* SAMPLE_RATE_1 - [4:0] */
  1648. #define ARIZONA_SAMPLE_RATE_1_WIDTH 5 /* SAMPLE_RATE_1 - [4:0] */
  1649. /*
  1650. * R259 (0x103) - Sample rate 2
  1651. */
  1652. #define ARIZONA_SAMPLE_RATE_2_MASK 0x001F /* SAMPLE_RATE_2 - [4:0] */
  1653. #define ARIZONA_SAMPLE_RATE_2_SHIFT 0 /* SAMPLE_RATE_2 - [4:0] */
  1654. #define ARIZONA_SAMPLE_RATE_2_WIDTH 5 /* SAMPLE_RATE_2 - [4:0] */
  1655. /*
  1656. * R260 (0x104) - Sample rate 3
  1657. */
  1658. #define ARIZONA_SAMPLE_RATE_3_MASK 0x001F /* SAMPLE_RATE_3 - [4:0] */
  1659. #define ARIZONA_SAMPLE_RATE_3_SHIFT 0 /* SAMPLE_RATE_3 - [4:0] */
  1660. #define ARIZONA_SAMPLE_RATE_3_WIDTH 5 /* SAMPLE_RATE_3 - [4:0] */
  1661. /*
  1662. * R266 (0x10A) - Sample rate 1 status
  1663. */
  1664. #define ARIZONA_SAMPLE_RATE_1_STS_MASK 0x001F /* SAMPLE_RATE_1_STS - [4:0] */
  1665. #define ARIZONA_SAMPLE_RATE_1_STS_SHIFT 0 /* SAMPLE_RATE_1_STS - [4:0] */
  1666. #define ARIZONA_SAMPLE_RATE_1_STS_WIDTH 5 /* SAMPLE_RATE_1_STS - [4:0] */
  1667. /*
  1668. * R267 (0x10B) - Sample rate 2 status
  1669. */
  1670. #define ARIZONA_SAMPLE_RATE_2_STS_MASK 0x001F /* SAMPLE_RATE_2_STS - [4:0] */
  1671. #define ARIZONA_SAMPLE_RATE_2_STS_SHIFT 0 /* SAMPLE_RATE_2_STS - [4:0] */
  1672. #define ARIZONA_SAMPLE_RATE_2_STS_WIDTH 5 /* SAMPLE_RATE_2_STS - [4:0] */
  1673. /*
  1674. * R268 (0x10C) - Sample rate 3 status
  1675. */
  1676. #define ARIZONA_SAMPLE_RATE_3_STS_MASK 0x001F /* SAMPLE_RATE_3_STS - [4:0] */
  1677. #define ARIZONA_SAMPLE_RATE_3_STS_SHIFT 0 /* SAMPLE_RATE_3_STS - [4:0] */
  1678. #define ARIZONA_SAMPLE_RATE_3_STS_WIDTH 5 /* SAMPLE_RATE_3_STS - [4:0] */
  1679. /*
  1680. * R274 (0x112) - Async clock 1
  1681. */
  1682. #define ARIZONA_ASYNC_CLK_FREQ_MASK 0x0700 /* ASYNC_CLK_FREQ - [10:8] */
  1683. #define ARIZONA_ASYNC_CLK_FREQ_SHIFT 8 /* ASYNC_CLK_FREQ - [10:8] */
  1684. #define ARIZONA_ASYNC_CLK_FREQ_WIDTH 3 /* ASYNC_CLK_FREQ - [10:8] */
  1685. #define ARIZONA_ASYNC_CLK_ENA 0x0040 /* ASYNC_CLK_ENA */
  1686. #define ARIZONA_ASYNC_CLK_ENA_MASK 0x0040 /* ASYNC_CLK_ENA */
  1687. #define ARIZONA_ASYNC_CLK_ENA_SHIFT 6 /* ASYNC_CLK_ENA */
  1688. #define ARIZONA_ASYNC_CLK_ENA_WIDTH 1 /* ASYNC_CLK_ENA */
  1689. #define ARIZONA_ASYNC_CLK_SRC_MASK 0x000F /* ASYNC_CLK_SRC - [3:0] */
  1690. #define ARIZONA_ASYNC_CLK_SRC_SHIFT 0 /* ASYNC_CLK_SRC - [3:0] */
  1691. #define ARIZONA_ASYNC_CLK_SRC_WIDTH 4 /* ASYNC_CLK_SRC - [3:0] */
  1692. /*
  1693. * R275 (0x113) - Async sample rate 1
  1694. */
  1695. #define ARIZONA_ASYNC_SAMPLE_RATE_1_MASK 0x001F /* ASYNC_SAMPLE_RATE_1 - [4:0] */
  1696. #define ARIZONA_ASYNC_SAMPLE_RATE_1_SHIFT 0 /* ASYNC_SAMPLE_RATE_1 - [4:0] */
  1697. #define ARIZONA_ASYNC_SAMPLE_RATE_1_WIDTH 5 /* ASYNC_SAMPLE_RATE_1 - [4:0] */
  1698. /*
  1699. * R276 (0x114) - Async sample rate 2
  1700. */
  1701. #define ARIZONA_ASYNC_SAMPLE_RATE_2_MASK 0x001F /* ASYNC_SAMPLE_RATE_2 - [4:0] */
  1702. #define ARIZONA_ASYNC_SAMPLE_RATE_2_SHIFT 0 /* ASYNC_SAMPLE_RATE_2 - [4:0] */
  1703. #define ARIZONA_ASYNC_SAMPLE_RATE_2_WIDTH 5 /* ASYNC_SAMPLE_RATE_2 - [4:0] */
  1704. /*
  1705. * R283 (0x11B) - Async sample rate 1 status
  1706. */
  1707. #define ARIZONA_ASYNC_SAMPLE_RATE_1_STS_MASK 0x001F /* ASYNC_SAMPLE_RATE_1_STS - [4:0] */
  1708. #define ARIZONA_ASYNC_SAMPLE_RATE_1_STS_SHIFT 0 /* ASYNC_SAMPLE_RATE_1_STS - [4:0] */
  1709. #define ARIZONA_ASYNC_SAMPLE_RATE_1_STS_WIDTH 5 /* ASYNC_SAMPLE_RATE_1_STS - [4:0] */
  1710. /*
  1711. * R284 (0x11C) - Async sample rate 2 status
  1712. */
  1713. #define ARIZONA_ASYNC_SAMPLE_RATE_2_STS_MASK 0x001F /* ASYNC_SAMPLE_RATE_2_STS - [4:0] */
  1714. #define ARIZONA_ASYNC_SAMPLE_RATE_2_STS_SHIFT 0 /* ASYNC_SAMPLE_RATE_2_STS - [4:0] */
  1715. #define ARIZONA_ASYNC_SAMPLE_RATE_2_STS_WIDTH 5 /* ASYNC_SAMPLE_RATE_2_STS - [4:0] */
  1716. /*
  1717. * R329 (0x149) - Output system clock
  1718. */
  1719. #define ARIZONA_OPCLK_ENA 0x8000 /* OPCLK_ENA */
  1720. #define ARIZONA_OPCLK_ENA_MASK 0x8000 /* OPCLK_ENA */
  1721. #define ARIZONA_OPCLK_ENA_SHIFT 15 /* OPCLK_ENA */
  1722. #define ARIZONA_OPCLK_ENA_WIDTH 1 /* OPCLK_ENA */
  1723. #define ARIZONA_OPCLK_DIV_MASK 0x00F8 /* OPCLK_DIV - [7:3] */
  1724. #define ARIZONA_OPCLK_DIV_SHIFT 3 /* OPCLK_DIV - [7:3] */
  1725. #define ARIZONA_OPCLK_DIV_WIDTH 5 /* OPCLK_DIV - [7:3] */
  1726. #define ARIZONA_OPCLK_SEL_MASK 0x0007 /* OPCLK_SEL - [2:0] */
  1727. #define ARIZONA_OPCLK_SEL_SHIFT 0 /* OPCLK_SEL - [2:0] */
  1728. #define ARIZONA_OPCLK_SEL_WIDTH 3 /* OPCLK_SEL - [2:0] */
  1729. /*
  1730. * R330 (0x14A) - Output async clock
  1731. */
  1732. #define ARIZONA_OPCLK_ASYNC_ENA 0x8000 /* OPCLK_ASYNC_ENA */
  1733. #define ARIZONA_OPCLK_ASYNC_ENA_MASK 0x8000 /* OPCLK_ASYNC_ENA */
  1734. #define ARIZONA_OPCLK_ASYNC_ENA_SHIFT 15 /* OPCLK_ASYNC_ENA */
  1735. #define ARIZONA_OPCLK_ASYNC_ENA_WIDTH 1 /* OPCLK_ASYNC_ENA */
  1736. #define ARIZONA_OPCLK_ASYNC_DIV_MASK 0x00F8 /* OPCLK_ASYNC_DIV - [7:3] */
  1737. #define ARIZONA_OPCLK_ASYNC_DIV_SHIFT 3 /* OPCLK_ASYNC_DIV - [7:3] */
  1738. #define ARIZONA_OPCLK_ASYNC_DIV_WIDTH 5 /* OPCLK_ASYNC_DIV - [7:3] */
  1739. #define ARIZONA_OPCLK_ASYNC_SEL_MASK 0x0007 /* OPCLK_ASYNC_SEL - [2:0] */
  1740. #define ARIZONA_OPCLK_ASYNC_SEL_SHIFT 0 /* OPCLK_ASYNC_SEL - [2:0] */
  1741. #define ARIZONA_OPCLK_ASYNC_SEL_WIDTH 3 /* OPCLK_ASYNC_SEL - [2:0] */
  1742. /*
  1743. * R338 (0x152) - Rate Estimator 1
  1744. */
  1745. #define ARIZONA_TRIG_ON_STARTUP 0x0010 /* TRIG_ON_STARTUP */
  1746. #define ARIZONA_TRIG_ON_STARTUP_MASK 0x0010 /* TRIG_ON_STARTUP */
  1747. #define ARIZONA_TRIG_ON_STARTUP_SHIFT 4 /* TRIG_ON_STARTUP */
  1748. #define ARIZONA_TRIG_ON_STARTUP_WIDTH 1 /* TRIG_ON_STARTUP */
  1749. #define ARIZONA_LRCLK_SRC_MASK 0x000E /* LRCLK_SRC - [3:1] */
  1750. #define ARIZONA_LRCLK_SRC_SHIFT 1 /* LRCLK_SRC - [3:1] */
  1751. #define ARIZONA_LRCLK_SRC_WIDTH 3 /* LRCLK_SRC - [3:1] */
  1752. #define ARIZONA_RATE_EST_ENA 0x0001 /* RATE_EST_ENA */
  1753. #define ARIZONA_RATE_EST_ENA_MASK 0x0001 /* RATE_EST_ENA */
  1754. #define ARIZONA_RATE_EST_ENA_SHIFT 0 /* RATE_EST_ENA */
  1755. #define ARIZONA_RATE_EST_ENA_WIDTH 1 /* RATE_EST_ENA */
  1756. /*
  1757. * R339 (0x153) - Rate Estimator 2
  1758. */
  1759. #define ARIZONA_SAMPLE_RATE_DETECT_A_MASK 0x001F /* SAMPLE_RATE_DETECT_A - [4:0] */
  1760. #define ARIZONA_SAMPLE_RATE_DETECT_A_SHIFT 0 /* SAMPLE_RATE_DETECT_A - [4:0] */
  1761. #define ARIZONA_SAMPLE_RATE_DETECT_A_WIDTH 5 /* SAMPLE_RATE_DETECT_A - [4:0] */
  1762. /*
  1763. * R340 (0x154) - Rate Estimator 3
  1764. */
  1765. #define ARIZONA_SAMPLE_RATE_DETECT_B_MASK 0x001F /* SAMPLE_RATE_DETECT_B - [4:0] */
  1766. #define ARIZONA_SAMPLE_RATE_DETECT_B_SHIFT 0 /* SAMPLE_RATE_DETECT_B - [4:0] */
  1767. #define ARIZONA_SAMPLE_RATE_DETECT_B_WIDTH 5 /* SAMPLE_RATE_DETECT_B - [4:0] */
  1768. /*
  1769. * R341 (0x155) - Rate Estimator 4
  1770. */
  1771. #define ARIZONA_SAMPLE_RATE_DETECT_C_MASK 0x001F /* SAMPLE_RATE_DETECT_C - [4:0] */
  1772. #define ARIZONA_SAMPLE_RATE_DETECT_C_SHIFT 0 /* SAMPLE_RATE_DETECT_C - [4:0] */
  1773. #define ARIZONA_SAMPLE_RATE_DETECT_C_WIDTH 5 /* SAMPLE_RATE_DETECT_C - [4:0] */
  1774. /*
  1775. * R342 (0x156) - Rate Estimator 5
  1776. */
  1777. #define ARIZONA_SAMPLE_RATE_DETECT_D_MASK 0x001F /* SAMPLE_RATE_DETECT_D - [4:0] */
  1778. #define ARIZONA_SAMPLE_RATE_DETECT_D_SHIFT 0 /* SAMPLE_RATE_DETECT_D - [4:0] */
  1779. #define ARIZONA_SAMPLE_RATE_DETECT_D_WIDTH 5 /* SAMPLE_RATE_DETECT_D - [4:0] */
  1780. /*
  1781. * R353 (0x161) - Dynamic Frequency Scaling 1
  1782. */
  1783. #define ARIZONA_SUBSYS_MAX_FREQ 0x0001 /* SUBSYS_MAX_FREQ */
  1784. #define ARIZONA_SUBSYS_MAX_FREQ_SHIFT 0 /* SUBSYS_MAX_FREQ */
  1785. #define ARIZONA_SUBSYS_MAX_FREQ_WIDTH 1 /* SUBSYS_MAX_FREQ */
  1786. /*
  1787. * R369 (0x171) - FLL1 Control 1
  1788. */
  1789. #define ARIZONA_FLL1_FREERUN 0x0002 /* FLL1_FREERUN */
  1790. #define ARIZONA_FLL1_FREERUN_MASK 0x0002 /* FLL1_FREERUN */
  1791. #define ARIZONA_FLL1_FREERUN_SHIFT 1 /* FLL1_FREERUN */
  1792. #define ARIZONA_FLL1_FREERUN_WIDTH 1 /* FLL1_FREERUN */
  1793. #define ARIZONA_FLL1_ENA 0x0001 /* FLL1_ENA */
  1794. #define ARIZONA_FLL1_ENA_MASK 0x0001 /* FLL1_ENA */
  1795. #define ARIZONA_FLL1_ENA_SHIFT 0 /* FLL1_ENA */
  1796. #define ARIZONA_FLL1_ENA_WIDTH 1 /* FLL1_ENA */
  1797. /*
  1798. * R370 (0x172) - FLL1 Control 2
  1799. */
  1800. #define ARIZONA_FLL1_CTRL_UPD 0x8000 /* FLL1_CTRL_UPD */
  1801. #define ARIZONA_FLL1_CTRL_UPD_MASK 0x8000 /* FLL1_CTRL_UPD */
  1802. #define ARIZONA_FLL1_CTRL_UPD_SHIFT 15 /* FLL1_CTRL_UPD */
  1803. #define ARIZONA_FLL1_CTRL_UPD_WIDTH 1 /* FLL1_CTRL_UPD */
  1804. #define ARIZONA_FLL1_N_MASK 0x03FF /* FLL1_N - [9:0] */
  1805. #define ARIZONA_FLL1_N_SHIFT 0 /* FLL1_N - [9:0] */
  1806. #define ARIZONA_FLL1_N_WIDTH 10 /* FLL1_N - [9:0] */
  1807. /*
  1808. * R371 (0x173) - FLL1 Control 3
  1809. */
  1810. #define ARIZONA_FLL1_THETA_MASK 0xFFFF /* FLL1_THETA - [15:0] */
  1811. #define ARIZONA_FLL1_THETA_SHIFT 0 /* FLL1_THETA - [15:0] */
  1812. #define ARIZONA_FLL1_THETA_WIDTH 16 /* FLL1_THETA - [15:0] */
  1813. /*
  1814. * R372 (0x174) - FLL1 Control 4
  1815. */
  1816. #define ARIZONA_FLL1_LAMBDA_MASK 0xFFFF /* FLL1_LAMBDA - [15:0] */
  1817. #define ARIZONA_FLL1_LAMBDA_SHIFT 0 /* FLL1_LAMBDA - [15:0] */
  1818. #define ARIZONA_FLL1_LAMBDA_WIDTH 16 /* FLL1_LAMBDA - [15:0] */
  1819. /*
  1820. * R373 (0x175) - FLL1 Control 5
  1821. */
  1822. #define ARIZONA_FLL1_FRATIO_MASK 0x0F00 /* FLL1_FRATIO - [11:8] */
  1823. #define ARIZONA_FLL1_FRATIO_SHIFT 8 /* FLL1_FRATIO - [11:8] */
  1824. #define ARIZONA_FLL1_FRATIO_WIDTH 4 /* FLL1_FRATIO - [11:8] */
  1825. #define ARIZONA_FLL1_OUTDIV_MASK 0x000E /* FLL1_OUTDIV - [3:1] */
  1826. #define ARIZONA_FLL1_OUTDIV_SHIFT 1 /* FLL1_OUTDIV - [3:1] */
  1827. #define ARIZONA_FLL1_OUTDIV_WIDTH 3 /* FLL1_OUTDIV - [3:1] */
  1828. /*
  1829. * R374 (0x176) - FLL1 Control 6
  1830. */
  1831. #define ARIZONA_FLL1_CLK_REF_DIV_MASK 0x00C0 /* FLL1_CLK_REF_DIV - [7:6] */
  1832. #define ARIZONA_FLL1_CLK_REF_DIV_SHIFT 6 /* FLL1_CLK_REF_DIV - [7:6] */
  1833. #define ARIZONA_FLL1_CLK_REF_DIV_WIDTH 2 /* FLL1_CLK_REF_DIV - [7:6] */
  1834. #define ARIZONA_FLL1_CLK_REF_SRC_MASK 0x000F /* FLL1_CLK_REF_SRC - [3:0] */
  1835. #define ARIZONA_FLL1_CLK_REF_SRC_SHIFT 0 /* FLL1_CLK_REF_SRC - [3:0] */
  1836. #define ARIZONA_FLL1_CLK_REF_SRC_WIDTH 4 /* FLL1_CLK_REF_SRC - [3:0] */
  1837. /*
  1838. * R375 (0x177) - FLL1 Loop Filter Test 1
  1839. */
  1840. #define ARIZONA_FLL1_FRC_INTEG_UPD 0x8000 /* FLL1_FRC_INTEG_UPD */
  1841. #define ARIZONA_FLL1_FRC_INTEG_UPD_MASK 0x8000 /* FLL1_FRC_INTEG_UPD */
  1842. #define ARIZONA_FLL1_FRC_INTEG_UPD_SHIFT 15 /* FLL1_FRC_INTEG_UPD */
  1843. #define ARIZONA_FLL1_FRC_INTEG_UPD_WIDTH 1 /* FLL1_FRC_INTEG_UPD */
  1844. #define ARIZONA_FLL1_FRC_INTEG_VAL_MASK 0x0FFF /* FLL1_FRC_INTEG_VAL - [11:0] */
  1845. #define ARIZONA_FLL1_FRC_INTEG_VAL_SHIFT 0 /* FLL1_FRC_INTEG_VAL - [11:0] */
  1846. #define ARIZONA_FLL1_FRC_INTEG_VAL_WIDTH 12 /* FLL1_FRC_INTEG_VAL - [11:0] */
  1847. /*
  1848. * R377 (0x179) - FLL1 Control 7
  1849. */
  1850. #define ARIZONA_FLL1_GAIN_MASK 0x003c /* FLL1_GAIN */
  1851. #define ARIZONA_FLL1_GAIN_SHIFT 2 /* FLL1_GAIN */
  1852. #define ARIZONA_FLL1_GAIN_WIDTH 4 /* FLL1_GAIN */
  1853. /*
  1854. * R385 (0x181) - FLL1 Synchroniser 1
  1855. */
  1856. #define ARIZONA_FLL1_SYNC_ENA 0x0001 /* FLL1_SYNC_ENA */
  1857. #define ARIZONA_FLL1_SYNC_ENA_MASK 0x0001 /* FLL1_SYNC_ENA */
  1858. #define ARIZONA_FLL1_SYNC_ENA_SHIFT 0 /* FLL1_SYNC_ENA */
  1859. #define ARIZONA_FLL1_SYNC_ENA_WIDTH 1 /* FLL1_SYNC_ENA */
  1860. /*
  1861. * R386 (0x182) - FLL1 Synchroniser 2
  1862. */
  1863. #define ARIZONA_FLL1_SYNC_N_MASK 0x03FF /* FLL1_SYNC_N - [9:0] */
  1864. #define ARIZONA_FLL1_SYNC_N_SHIFT 0 /* FLL1_SYNC_N - [9:0] */
  1865. #define ARIZONA_FLL1_SYNC_N_WIDTH 10 /* FLL1_SYNC_N - [9:0] */
  1866. /*
  1867. * R387 (0x183) - FLL1 Synchroniser 3
  1868. */
  1869. #define ARIZONA_FLL1_SYNC_THETA_MASK 0xFFFF /* FLL1_SYNC_THETA - [15:0] */
  1870. #define ARIZONA_FLL1_SYNC_THETA_SHIFT 0 /* FLL1_SYNC_THETA - [15:0] */
  1871. #define ARIZONA_FLL1_SYNC_THETA_WIDTH 16 /* FLL1_SYNC_THETA - [15:0] */
  1872. /*
  1873. * R388 (0x184) - FLL1 Synchroniser 4
  1874. */
  1875. #define ARIZONA_FLL1_SYNC_LAMBDA_MASK 0xFFFF /* FLL1_SYNC_LAMBDA - [15:0] */
  1876. #define ARIZONA_FLL1_SYNC_LAMBDA_SHIFT 0 /* FLL1_SYNC_LAMBDA - [15:0] */
  1877. #define ARIZONA_FLL1_SYNC_LAMBDA_WIDTH 16 /* FLL1_SYNC_LAMBDA - [15:0] */
  1878. /*
  1879. * R389 (0x185) - FLL1 Synchroniser 5
  1880. */
  1881. #define ARIZONA_FLL1_SYNC_FRATIO_MASK 0x0700 /* FLL1_SYNC_FRATIO - [10:8] */
  1882. #define ARIZONA_FLL1_SYNC_FRATIO_SHIFT 8 /* FLL1_SYNC_FRATIO - [10:8] */
  1883. #define ARIZONA_FLL1_SYNC_FRATIO_WIDTH 3 /* FLL1_SYNC_FRATIO - [10:8] */
  1884. /*
  1885. * R390 (0x186) - FLL1 Synchroniser 6
  1886. */
  1887. #define ARIZONA_FLL1_CLK_SYNC_DIV_MASK 0x00C0 /* FLL1_CLK_SYNC_DIV - [7:6] */
  1888. #define ARIZONA_FLL1_CLK_SYNC_DIV_SHIFT 6 /* FLL1_CLK_SYNC_DIV - [7:6] */
  1889. #define ARIZONA_FLL1_CLK_SYNC_DIV_WIDTH 2 /* FLL1_CLK_SYNC_DIV - [7:6] */
  1890. #define ARIZONA_FLL1_CLK_SYNC_SRC_MASK 0x000F /* FLL1_CLK_SYNC_SRC - [3:0] */
  1891. #define ARIZONA_FLL1_CLK_SYNC_SRC_SHIFT 0 /* FLL1_CLK_SYNC_SRC - [3:0] */
  1892. #define ARIZONA_FLL1_CLK_SYNC_SRC_WIDTH 4 /* FLL1_CLK_SYNC_SRC - [3:0] */
  1893. /*
  1894. * R391 (0x187) - FLL1 Synchroniser 7
  1895. */
  1896. #define ARIZONA_FLL1_SYNC_GAIN_MASK 0x003c /* FLL1_SYNC_GAIN */
  1897. #define ARIZONA_FLL1_SYNC_GAIN_SHIFT 2 /* FLL1_SYNC_GAIN */
  1898. #define ARIZONA_FLL1_SYNC_GAIN_WIDTH 4 /* FLL1_SYNC_GAIN */
  1899. #define ARIZONA_FLL1_SYNC_BW 0x0001 /* FLL1_SYNC_BW */
  1900. #define ARIZONA_FLL1_SYNC_BW_MASK 0x0001 /* FLL1_SYNC_BW */
  1901. #define ARIZONA_FLL1_SYNC_BW_SHIFT 0 /* FLL1_SYNC_BW */
  1902. #define ARIZONA_FLL1_SYNC_BW_WIDTH 1 /* FLL1_SYNC_BW */
  1903. /*
  1904. * R393 (0x189) - FLL1 Spread Spectrum
  1905. */
  1906. #define ARIZONA_FLL1_SS_AMPL_MASK 0x0030 /* FLL1_SS_AMPL - [5:4] */
  1907. #define ARIZONA_FLL1_SS_AMPL_SHIFT 4 /* FLL1_SS_AMPL - [5:4] */
  1908. #define ARIZONA_FLL1_SS_AMPL_WIDTH 2 /* FLL1_SS_AMPL - [5:4] */
  1909. #define ARIZONA_FLL1_SS_FREQ_MASK 0x000C /* FLL1_SS_FREQ - [3:2] */
  1910. #define ARIZONA_FLL1_SS_FREQ_SHIFT 2 /* FLL1_SS_FREQ - [3:2] */
  1911. #define ARIZONA_FLL1_SS_FREQ_WIDTH 2 /* FLL1_SS_FREQ - [3:2] */
  1912. #define ARIZONA_FLL1_SS_SEL_MASK 0x0003 /* FLL1_SS_SEL - [1:0] */
  1913. #define ARIZONA_FLL1_SS_SEL_SHIFT 0 /* FLL1_SS_SEL - [1:0] */
  1914. #define ARIZONA_FLL1_SS_SEL_WIDTH 2 /* FLL1_SS_SEL - [1:0] */
  1915. /*
  1916. * R394 (0x18A) - FLL1 GPIO Clock
  1917. */
  1918. #define ARIZONA_FLL1_GPDIV_MASK 0x00FE /* FLL1_GPDIV - [7:1] */
  1919. #define ARIZONA_FLL1_GPDIV_SHIFT 1 /* FLL1_GPDIV - [7:1] */
  1920. #define ARIZONA_FLL1_GPDIV_WIDTH 7 /* FLL1_GPDIV - [7:1] */
  1921. #define ARIZONA_FLL1_GPDIV_ENA 0x0001 /* FLL1_GPDIV_ENA */
  1922. #define ARIZONA_FLL1_GPDIV_ENA_MASK 0x0001 /* FLL1_GPDIV_ENA */
  1923. #define ARIZONA_FLL1_GPDIV_ENA_SHIFT 0 /* FLL1_GPDIV_ENA */
  1924. #define ARIZONA_FLL1_GPDIV_ENA_WIDTH 1 /* FLL1_GPDIV_ENA */
  1925. /*
  1926. * R401 (0x191) - FLL2 Control 1
  1927. */
  1928. #define ARIZONA_FLL2_FREERUN 0x0002 /* FLL2_FREERUN */
  1929. #define ARIZONA_FLL2_FREERUN_MASK 0x0002 /* FLL2_FREERUN */
  1930. #define ARIZONA_FLL2_FREERUN_SHIFT 1 /* FLL2_FREERUN */
  1931. #define ARIZONA_FLL2_FREERUN_WIDTH 1 /* FLL2_FREERUN */
  1932. #define ARIZONA_FLL2_ENA 0x0001 /* FLL2_ENA */
  1933. #define ARIZONA_FLL2_ENA_MASK 0x0001 /* FLL2_ENA */
  1934. #define ARIZONA_FLL2_ENA_SHIFT 0 /* FLL2_ENA */
  1935. #define ARIZONA_FLL2_ENA_WIDTH 1 /* FLL2_ENA */
  1936. /*
  1937. * R402 (0x192) - FLL2 Control 2
  1938. */
  1939. #define ARIZONA_FLL2_CTRL_UPD 0x8000 /* FLL2_CTRL_UPD */
  1940. #define ARIZONA_FLL2_CTRL_UPD_MASK 0x8000 /* FLL2_CTRL_UPD */
  1941. #define ARIZONA_FLL2_CTRL_UPD_SHIFT 15 /* FLL2_CTRL_UPD */
  1942. #define ARIZONA_FLL2_CTRL_UPD_WIDTH 1 /* FLL2_CTRL_UPD */
  1943. #define ARIZONA_FLL2_N_MASK 0x03FF /* FLL2_N - [9:0] */
  1944. #define ARIZONA_FLL2_N_SHIFT 0 /* FLL2_N - [9:0] */
  1945. #define ARIZONA_FLL2_N_WIDTH 10 /* FLL2_N - [9:0] */
  1946. /*
  1947. * R403 (0x193) - FLL2 Control 3
  1948. */
  1949. #define ARIZONA_FLL2_THETA_MASK 0xFFFF /* FLL2_THETA - [15:0] */
  1950. #define ARIZONA_FLL2_THETA_SHIFT 0 /* FLL2_THETA - [15:0] */
  1951. #define ARIZONA_FLL2_THETA_WIDTH 16 /* FLL2_THETA - [15:0] */
  1952. /*
  1953. * R404 (0x194) - FLL2 Control 4
  1954. */
  1955. #define ARIZONA_FLL2_LAMBDA_MASK 0xFFFF /* FLL2_LAMBDA - [15:0] */
  1956. #define ARIZONA_FLL2_LAMBDA_SHIFT 0 /* FLL2_LAMBDA - [15:0] */
  1957. #define ARIZONA_FLL2_LAMBDA_WIDTH 16 /* FLL2_LAMBDA - [15:0] */
  1958. /*
  1959. * R405 (0x195) - FLL2 Control 5
  1960. */
  1961. #define ARIZONA_FLL2_FRATIO_MASK 0x0700 /* FLL2_FRATIO - [10:8] */
  1962. #define ARIZONA_FLL2_FRATIO_SHIFT 8 /* FLL2_FRATIO - [10:8] */
  1963. #define ARIZONA_FLL2_FRATIO_WIDTH 3 /* FLL2_FRATIO - [10:8] */
  1964. #define ARIZONA_FLL2_OUTDIV_MASK 0x000E /* FLL2_OUTDIV - [3:1] */
  1965. #define ARIZONA_FLL2_OUTDIV_SHIFT 1 /* FLL2_OUTDIV - [3:1] */
  1966. #define ARIZONA_FLL2_OUTDIV_WIDTH 3 /* FLL2_OUTDIV - [3:1] */
  1967. /*
  1968. * R406 (0x196) - FLL2 Control 6
  1969. */
  1970. #define ARIZONA_FLL2_CLK_REF_DIV_MASK 0x00C0 /* FLL2_CLK_REF_DIV - [7:6] */
  1971. #define ARIZONA_FLL2_CLK_REF_DIV_SHIFT 6 /* FLL2_CLK_REF_DIV - [7:6] */
  1972. #define ARIZONA_FLL2_CLK_REF_DIV_WIDTH 2 /* FLL2_CLK_REF_DIV - [7:6] */
  1973. #define ARIZONA_FLL2_CLK_REF_SRC_MASK 0x000F /* FLL2_CLK_REF_SRC - [3:0] */
  1974. #define ARIZONA_FLL2_CLK_REF_SRC_SHIFT 0 /* FLL2_CLK_REF_SRC - [3:0] */
  1975. #define ARIZONA_FLL2_CLK_REF_SRC_WIDTH 4 /* FLL2_CLK_REF_SRC - [3:0] */
  1976. /*
  1977. * R407 (0x197) - FLL2 Loop Filter Test 1
  1978. */
  1979. #define ARIZONA_FLL2_FRC_INTEG_UPD 0x8000 /* FLL2_FRC_INTEG_UPD */
  1980. #define ARIZONA_FLL2_FRC_INTEG_UPD_MASK 0x8000 /* FLL2_FRC_INTEG_UPD */
  1981. #define ARIZONA_FLL2_FRC_INTEG_UPD_SHIFT 15 /* FLL2_FRC_INTEG_UPD */
  1982. #define ARIZONA_FLL2_FRC_INTEG_UPD_WIDTH 1 /* FLL2_FRC_INTEG_UPD */
  1983. #define ARIZONA_FLL2_FRC_INTEG_VAL_MASK 0x0FFF /* FLL2_FRC_INTEG_VAL - [11:0] */
  1984. #define ARIZONA_FLL2_FRC_INTEG_VAL_SHIFT 0 /* FLL2_FRC_INTEG_VAL - [11:0] */
  1985. #define ARIZONA_FLL2_FRC_INTEG_VAL_WIDTH 12 /* FLL2_FRC_INTEG_VAL - [11:0] */
  1986. /*
  1987. * R409 (0x199) - FLL2 Control 7
  1988. */
  1989. #define ARIZONA_FLL2_GAIN_MASK 0x003c /* FLL2_GAIN */
  1990. #define ARIZONA_FLL2_GAIN_SHIFT 2 /* FLL2_GAIN */
  1991. #define ARIZONA_FLL2_GAIN_WIDTH 4 /* FLL2_GAIN */
  1992. /*
  1993. * R417 (0x1A1) - FLL2 Synchroniser 1
  1994. */
  1995. #define ARIZONA_FLL2_SYNC_ENA 0x0001 /* FLL2_SYNC_ENA */
  1996. #define ARIZONA_FLL2_SYNC_ENA_MASK 0x0001 /* FLL2_SYNC_ENA */
  1997. #define ARIZONA_FLL2_SYNC_ENA_SHIFT 0 /* FLL2_SYNC_ENA */
  1998. #define ARIZONA_FLL2_SYNC_ENA_WIDTH 1 /* FLL2_SYNC_ENA */
  1999. /*
  2000. * R418 (0x1A2) - FLL2 Synchroniser 2
  2001. */
  2002. #define ARIZONA_FLL2_SYNC_N_MASK 0x03FF /* FLL2_SYNC_N - [9:0] */
  2003. #define ARIZONA_FLL2_SYNC_N_SHIFT 0 /* FLL2_SYNC_N - [9:0] */
  2004. #define ARIZONA_FLL2_SYNC_N_WIDTH 10 /* FLL2_SYNC_N - [9:0] */
  2005. /*
  2006. * R419 (0x1A3) - FLL2 Synchroniser 3
  2007. */
  2008. #define ARIZONA_FLL2_SYNC_THETA_MASK 0xFFFF /* FLL2_SYNC_THETA - [15:0] */
  2009. #define ARIZONA_FLL2_SYNC_THETA_SHIFT 0 /* FLL2_SYNC_THETA - [15:0] */
  2010. #define ARIZONA_FLL2_SYNC_THETA_WIDTH 16 /* FLL2_SYNC_THETA - [15:0] */
  2011. /*
  2012. * R420 (0x1A4) - FLL2 Synchroniser 4
  2013. */
  2014. #define ARIZONA_FLL2_SYNC_LAMBDA_MASK 0xFFFF /* FLL2_SYNC_LAMBDA - [15:0] */
  2015. #define ARIZONA_FLL2_SYNC_LAMBDA_SHIFT 0 /* FLL2_SYNC_LAMBDA - [15:0] */
  2016. #define ARIZONA_FLL2_SYNC_LAMBDA_WIDTH 16 /* FLL2_SYNC_LAMBDA - [15:0] */
  2017. /*
  2018. * R421 (0x1A5) - FLL2 Synchroniser 5
  2019. */
  2020. #define ARIZONA_FLL2_SYNC_FRATIO_MASK 0x0700 /* FLL2_SYNC_FRATIO - [10:8] */
  2021. #define ARIZONA_FLL2_SYNC_FRATIO_SHIFT 8 /* FLL2_SYNC_FRATIO - [10:8] */
  2022. #define ARIZONA_FLL2_SYNC_FRATIO_WIDTH 3 /* FLL2_SYNC_FRATIO - [10:8] */
  2023. /*
  2024. * R422 (0x1A6) - FLL2 Synchroniser 6
  2025. */
  2026. #define ARIZONA_FLL2_CLK_SYNC_DIV_MASK 0x00C0 /* FLL2_CLK_SYNC_DIV - [7:6] */
  2027. #define ARIZONA_FLL2_CLK_SYNC_DIV_SHIFT 6 /* FLL2_CLK_SYNC_DIV - [7:6] */
  2028. #define ARIZONA_FLL2_CLK_SYNC_DIV_WIDTH 2 /* FLL2_CLK_SYNC_DIV - [7:6] */
  2029. #define ARIZONA_FLL2_CLK_SYNC_SRC_MASK 0x000F /* FLL2_CLK_SYNC_SRC - [3:0] */
  2030. #define ARIZONA_FLL2_CLK_SYNC_SRC_SHIFT 0 /* FLL2_CLK_SYNC_SRC - [3:0] */
  2031. #define ARIZONA_FLL2_CLK_SYNC_SRC_WIDTH 4 /* FLL2_CLK_SYNC_SRC - [3:0] */
  2032. /*
  2033. * R423 (0x1A7) - FLL2 Synchroniser 7
  2034. */
  2035. #define ARIZONA_FLL2_SYNC_GAIN_MASK 0x003c /* FLL2_SYNC_GAIN */
  2036. #define ARIZONA_FLL2_SYNC_GAIN_SHIFT 2 /* FLL2_SYNC_GAIN */
  2037. #define ARIZONA_FLL2_SYNC_GAIN_WIDTH 4 /* FLL2_SYNC_GAIN */
  2038. #define ARIZONA_FLL2_SYNC_BW 0x0001 /* FLL2_SYNC_BW */
  2039. #define ARIZONA_FLL2_SYNC_BW_MASK 0x0001 /* FLL2_SYNC_BW */
  2040. #define ARIZONA_FLL2_SYNC_BW_SHIFT 0 /* FLL2_SYNC_BW */
  2041. #define ARIZONA_FLL2_SYNC_BW_WIDTH 1 /* FLL2_SYNC_BW */
  2042. /*
  2043. * R425 (0x1A9) - FLL2 Spread Spectrum
  2044. */
  2045. #define ARIZONA_FLL2_SS_AMPL_MASK 0x0030 /* FLL2_SS_AMPL - [5:4] */
  2046. #define ARIZONA_FLL2_SS_AMPL_SHIFT 4 /* FLL2_SS_AMPL - [5:4] */
  2047. #define ARIZONA_FLL2_SS_AMPL_WIDTH 2 /* FLL2_SS_AMPL - [5:4] */
  2048. #define ARIZONA_FLL2_SS_FREQ_MASK 0x000C /* FLL2_SS_FREQ - [3:2] */
  2049. #define ARIZONA_FLL2_SS_FREQ_SHIFT 2 /* FLL2_SS_FREQ - [3:2] */
  2050. #define ARIZONA_FLL2_SS_FREQ_WIDTH 2 /* FLL2_SS_FREQ - [3:2] */
  2051. #define ARIZONA_FLL2_SS_SEL_MASK 0x0003 /* FLL2_SS_SEL - [1:0] */
  2052. #define ARIZONA_FLL2_SS_SEL_SHIFT 0 /* FLL2_SS_SEL - [1:0] */
  2053. #define ARIZONA_FLL2_SS_SEL_WIDTH 2 /* FLL2_SS_SEL - [1:0] */
  2054. /*
  2055. * R426 (0x1AA) - FLL2 GPIO Clock
  2056. */
  2057. #define ARIZONA_FLL2_GPDIV_MASK 0x00FE /* FLL2_GPDIV - [7:1] */
  2058. #define ARIZONA_FLL2_GPDIV_SHIFT 1 /* FLL2_GPDIV - [7:1] */
  2059. #define ARIZONA_FLL2_GPDIV_WIDTH 7 /* FLL2_GPDIV - [7:1] */
  2060. #define ARIZONA_FLL2_GPDIV_ENA 0x0001 /* FLL2_GPDIV_ENA */
  2061. #define ARIZONA_FLL2_GPDIV_ENA_MASK 0x0001 /* FLL2_GPDIV_ENA */
  2062. #define ARIZONA_FLL2_GPDIV_ENA_SHIFT 0 /* FLL2_GPDIV_ENA */
  2063. #define ARIZONA_FLL2_GPDIV_ENA_WIDTH 1 /* FLL2_GPDIV_ENA */
  2064. /*
  2065. * R512 (0x200) - Mic Charge Pump 1
  2066. */
  2067. #define ARIZONA_CPMIC_DISCH 0x0004 /* CPMIC_DISCH */
  2068. #define ARIZONA_CPMIC_DISCH_MASK 0x0004 /* CPMIC_DISCH */
  2069. #define ARIZONA_CPMIC_DISCH_SHIFT 2 /* CPMIC_DISCH */
  2070. #define ARIZONA_CPMIC_DISCH_WIDTH 1 /* CPMIC_DISCH */
  2071. #define ARIZONA_CPMIC_BYPASS 0x0002 /* CPMIC_BYPASS */
  2072. #define ARIZONA_CPMIC_BYPASS_MASK 0x0002 /* CPMIC_BYPASS */
  2073. #define ARIZONA_CPMIC_BYPASS_SHIFT 1 /* CPMIC_BYPASS */
  2074. #define ARIZONA_CPMIC_BYPASS_WIDTH 1 /* CPMIC_BYPASS */
  2075. #define ARIZONA_CPMIC_ENA 0x0001 /* CPMIC_ENA */
  2076. #define ARIZONA_CPMIC_ENA_MASK 0x0001 /* CPMIC_ENA */
  2077. #define ARIZONA_CPMIC_ENA_SHIFT 0 /* CPMIC_ENA */
  2078. #define ARIZONA_CPMIC_ENA_WIDTH 1 /* CPMIC_ENA */
  2079. /*
  2080. * R528 (0x210) - LDO1 Control 1
  2081. */
  2082. #define ARIZONA_LDO1_VSEL_MASK 0x07E0 /* LDO1_VSEL - [10:5] */
  2083. #define ARIZONA_LDO1_VSEL_SHIFT 5 /* LDO1_VSEL - [10:5] */
  2084. #define ARIZONA_LDO1_VSEL_WIDTH 6 /* LDO1_VSEL - [10:5] */
  2085. #define ARIZONA_LDO1_FAST 0x0010 /* LDO1_FAST */
  2086. #define ARIZONA_LDO1_FAST_MASK 0x0010 /* LDO1_FAST */
  2087. #define ARIZONA_LDO1_FAST_SHIFT 4 /* LDO1_FAST */
  2088. #define ARIZONA_LDO1_FAST_WIDTH 1 /* LDO1_FAST */
  2089. #define ARIZONA_LDO1_DISCH 0x0004 /* LDO1_DISCH */
  2090. #define ARIZONA_LDO1_DISCH_MASK 0x0004 /* LDO1_DISCH */
  2091. #define ARIZONA_LDO1_DISCH_SHIFT 2 /* LDO1_DISCH */
  2092. #define ARIZONA_LDO1_DISCH_WIDTH 1 /* LDO1_DISCH */
  2093. #define ARIZONA_LDO1_BYPASS 0x0002 /* LDO1_BYPASS */
  2094. #define ARIZONA_LDO1_BYPASS_MASK 0x0002 /* LDO1_BYPASS */
  2095. #define ARIZONA_LDO1_BYPASS_SHIFT 1 /* LDO1_BYPASS */
  2096. #define ARIZONA_LDO1_BYPASS_WIDTH 1 /* LDO1_BYPASS */
  2097. #define ARIZONA_LDO1_ENA 0x0001 /* LDO1_ENA */
  2098. #define ARIZONA_LDO1_ENA_MASK 0x0001 /* LDO1_ENA */
  2099. #define ARIZONA_LDO1_ENA_SHIFT 0 /* LDO1_ENA */
  2100. #define ARIZONA_LDO1_ENA_WIDTH 1 /* LDO1_ENA */
  2101. /*
  2102. * R530 (0x212) - LDO1 Control 2
  2103. */
  2104. #define ARIZONA_LDO1_HI_PWR 0x0001 /* LDO1_HI_PWR */
  2105. #define ARIZONA_LDO1_HI_PWR_SHIFT 0 /* LDO1_HI_PWR */
  2106. #define ARIZONA_LDO1_HI_PWR_WIDTH 1 /* LDO1_HI_PWR */
  2107. /*
  2108. * R531 (0x213) - LDO2 Control 1
  2109. */
  2110. #define ARIZONA_LDO2_VSEL_MASK 0x07E0 /* LDO2_VSEL - [10:5] */
  2111. #define ARIZONA_LDO2_VSEL_SHIFT 5 /* LDO2_VSEL - [10:5] */
  2112. #define ARIZONA_LDO2_VSEL_WIDTH 6 /* LDO2_VSEL - [10:5] */
  2113. #define ARIZONA_LDO2_FAST 0x0010 /* LDO2_FAST */
  2114. #define ARIZONA_LDO2_FAST_MASK 0x0010 /* LDO2_FAST */
  2115. #define ARIZONA_LDO2_FAST_SHIFT 4 /* LDO2_FAST */
  2116. #define ARIZONA_LDO2_FAST_WIDTH 1 /* LDO2_FAST */
  2117. #define ARIZONA_LDO2_DISCH 0x0004 /* LDO2_DISCH */
  2118. #define ARIZONA_LDO2_DISCH_MASK 0x0004 /* LDO2_DISCH */
  2119. #define ARIZONA_LDO2_DISCH_SHIFT 2 /* LDO2_DISCH */
  2120. #define ARIZONA_LDO2_DISCH_WIDTH 1 /* LDO2_DISCH */
  2121. #define ARIZONA_LDO2_BYPASS 0x0002 /* LDO2_BYPASS */
  2122. #define ARIZONA_LDO2_BYPASS_MASK 0x0002 /* LDO2_BYPASS */
  2123. #define ARIZONA_LDO2_BYPASS_SHIFT 1 /* LDO2_BYPASS */
  2124. #define ARIZONA_LDO2_BYPASS_WIDTH 1 /* LDO2_BYPASS */
  2125. #define ARIZONA_LDO2_ENA 0x0001 /* LDO2_ENA */
  2126. #define ARIZONA_LDO2_ENA_MASK 0x0001 /* LDO2_ENA */
  2127. #define ARIZONA_LDO2_ENA_SHIFT 0 /* LDO2_ENA */
  2128. #define ARIZONA_LDO2_ENA_WIDTH 1 /* LDO2_ENA */
  2129. /*
  2130. * R536 (0x218) - Mic Bias Ctrl 1
  2131. */
  2132. #define ARIZONA_MICB1_EXT_CAP 0x8000 /* MICB1_EXT_CAP */
  2133. #define ARIZONA_MICB1_EXT_CAP_MASK 0x8000 /* MICB1_EXT_CAP */
  2134. #define ARIZONA_MICB1_EXT_CAP_SHIFT 15 /* MICB1_EXT_CAP */
  2135. #define ARIZONA_MICB1_EXT_CAP_WIDTH 1 /* MICB1_EXT_CAP */
  2136. #define ARIZONA_MICB1_LVL_MASK 0x01E0 /* MICB1_LVL - [8:5] */
  2137. #define ARIZONA_MICB1_LVL_SHIFT 5 /* MICB1_LVL - [8:5] */
  2138. #define ARIZONA_MICB1_LVL_WIDTH 4 /* MICB1_LVL - [8:5] */
  2139. #define ARIZONA_MICB1_FAST 0x0010 /* MICB1_FAST */
  2140. #define ARIZONA_MICB1_FAST_MASK 0x0010 /* MICB1_FAST */
  2141. #define ARIZONA_MICB1_FAST_SHIFT 4 /* MICB1_FAST */
  2142. #define ARIZONA_MICB1_FAST_WIDTH 1 /* MICB1_FAST */
  2143. #define ARIZONA_MICB1_RATE 0x0008 /* MICB1_RATE */
  2144. #define ARIZONA_MICB1_RATE_MASK 0x0008 /* MICB1_RATE */
  2145. #define ARIZONA_MICB1_RATE_SHIFT 3 /* MICB1_RATE */
  2146. #define ARIZONA_MICB1_RATE_WIDTH 1 /* MICB1_RATE */
  2147. #define ARIZONA_MICB1_DISCH 0x0004 /* MICB1_DISCH */
  2148. #define ARIZONA_MICB1_DISCH_MASK 0x0004 /* MICB1_DISCH */
  2149. #define ARIZONA_MICB1_DISCH_SHIFT 2 /* MICB1_DISCH */
  2150. #define ARIZONA_MICB1_DISCH_WIDTH 1 /* MICB1_DISCH */
  2151. #define ARIZONA_MICB1_BYPASS 0x0002 /* MICB1_BYPASS */
  2152. #define ARIZONA_MICB1_BYPASS_MASK 0x0002 /* MICB1_BYPASS */
  2153. #define ARIZONA_MICB1_BYPASS_SHIFT 1 /* MICB1_BYPASS */
  2154. #define ARIZONA_MICB1_BYPASS_WIDTH 1 /* MICB1_BYPASS */
  2155. #define ARIZONA_MICB1_ENA 0x0001 /* MICB1_ENA */
  2156. #define ARIZONA_MICB1_ENA_MASK 0x0001 /* MICB1_ENA */
  2157. #define ARIZONA_MICB1_ENA_SHIFT 0 /* MICB1_ENA */
  2158. #define ARIZONA_MICB1_ENA_WIDTH 1 /* MICB1_ENA */
  2159. /*
  2160. * R537 (0x219) - Mic Bias Ctrl 2
  2161. */
  2162. #define ARIZONA_MICB2_EXT_CAP 0x8000 /* MICB2_EXT_CAP */
  2163. #define ARIZONA_MICB2_EXT_CAP_MASK 0x8000 /* MICB2_EXT_CAP */
  2164. #define ARIZONA_MICB2_EXT_CAP_SHIFT 15 /* MICB2_EXT_CAP */
  2165. #define ARIZONA_MICB2_EXT_CAP_WIDTH 1 /* MICB2_EXT_CAP */
  2166. #define ARIZONA_MICB2_LVL_MASK 0x01E0 /* MICB2_LVL - [8:5] */
  2167. #define ARIZONA_MICB2_LVL_SHIFT 5 /* MICB2_LVL - [8:5] */
  2168. #define ARIZONA_MICB2_LVL_WIDTH 4 /* MICB2_LVL - [8:5] */
  2169. #define ARIZONA_MICB2_FAST 0x0010 /* MICB2_FAST */
  2170. #define ARIZONA_MICB2_FAST_MASK 0x0010 /* MICB2_FAST */
  2171. #define ARIZONA_MICB2_FAST_SHIFT 4 /* MICB2_FAST */
  2172. #define ARIZONA_MICB2_FAST_WIDTH 1 /* MICB2_FAST */
  2173. #define ARIZONA_MICB2_RATE 0x0008 /* MICB2_RATE */
  2174. #define ARIZONA_MICB2_RATE_MASK 0x0008 /* MICB2_RATE */
  2175. #define ARIZONA_MICB2_RATE_SHIFT 3 /* MICB2_RATE */
  2176. #define ARIZONA_MICB2_RATE_WIDTH 1 /* MICB2_RATE */
  2177. #define ARIZONA_MICB2_DISCH 0x0004 /* MICB2_DISCH */
  2178. #define ARIZONA_MICB2_DISCH_MASK 0x0004 /* MICB2_DISCH */
  2179. #define ARIZONA_MICB2_DISCH_SHIFT 2 /* MICB2_DISCH */
  2180. #define ARIZONA_MICB2_DISCH_WIDTH 1 /* MICB2_DISCH */
  2181. #define ARIZONA_MICB2_BYPASS 0x0002 /* MICB2_BYPASS */
  2182. #define ARIZONA_MICB2_BYPASS_MASK 0x0002 /* MICB2_BYPASS */
  2183. #define ARIZONA_MICB2_BYPASS_SHIFT 1 /* MICB2_BYPASS */
  2184. #define ARIZONA_MICB2_BYPASS_WIDTH 1 /* MICB2_BYPASS */
  2185. #define ARIZONA_MICB2_ENA 0x0001 /* MICB2_ENA */
  2186. #define ARIZONA_MICB2_ENA_MASK 0x0001 /* MICB2_ENA */
  2187. #define ARIZONA_MICB2_ENA_SHIFT 0 /* MICB2_ENA */
  2188. #define ARIZONA_MICB2_ENA_WIDTH 1 /* MICB2_ENA */
  2189. /*
  2190. * R538 (0x21A) - Mic Bias Ctrl 3
  2191. */
  2192. #define ARIZONA_MICB3_EXT_CAP 0x8000 /* MICB3_EXT_CAP */
  2193. #define ARIZONA_MICB3_EXT_CAP_MASK 0x8000 /* MICB3_EXT_CAP */
  2194. #define ARIZONA_MICB3_EXT_CAP_SHIFT 15 /* MICB3_EXT_CAP */
  2195. #define ARIZONA_MICB3_EXT_CAP_WIDTH 1 /* MICB3_EXT_CAP */
  2196. #define ARIZONA_MICB3_LVL_MASK 0x01E0 /* MICB3_LVL - [8:5] */
  2197. #define ARIZONA_MICB3_LVL_SHIFT 5 /* MICB3_LVL - [8:5] */
  2198. #define ARIZONA_MICB3_LVL_WIDTH 4 /* MICB3_LVL - [8:5] */
  2199. #define ARIZONA_MICB3_FAST 0x0010 /* MICB3_FAST */
  2200. #define ARIZONA_MICB3_FAST_MASK 0x0010 /* MICB3_FAST */
  2201. #define ARIZONA_MICB3_FAST_SHIFT 4 /* MICB3_FAST */
  2202. #define ARIZONA_MICB3_FAST_WIDTH 1 /* MICB3_FAST */
  2203. #define ARIZONA_MICB3_RATE 0x0008 /* MICB3_RATE */
  2204. #define ARIZONA_MICB3_RATE_MASK 0x0008 /* MICB3_RATE */
  2205. #define ARIZONA_MICB3_RATE_SHIFT 3 /* MICB3_RATE */
  2206. #define ARIZONA_MICB3_RATE_WIDTH 1 /* MICB3_RATE */
  2207. #define ARIZONA_MICB3_DISCH 0x0004 /* MICB3_DISCH */
  2208. #define ARIZONA_MICB3_DISCH_MASK 0x0004 /* MICB3_DISCH */
  2209. #define ARIZONA_MICB3_DISCH_SHIFT 2 /* MICB3_DISCH */
  2210. #define ARIZONA_MICB3_DISCH_WIDTH 1 /* MICB3_DISCH */
  2211. #define ARIZONA_MICB3_BYPASS 0x0002 /* MICB3_BYPASS */
  2212. #define ARIZONA_MICB3_BYPASS_MASK 0x0002 /* MICB3_BYPASS */
  2213. #define ARIZONA_MICB3_BYPASS_SHIFT 1 /* MICB3_BYPASS */
  2214. #define ARIZONA_MICB3_BYPASS_WIDTH 1 /* MICB3_BYPASS */
  2215. #define ARIZONA_MICB3_ENA 0x0001 /* MICB3_ENA */
  2216. #define ARIZONA_MICB3_ENA_MASK 0x0001 /* MICB3_ENA */
  2217. #define ARIZONA_MICB3_ENA_SHIFT 0 /* MICB3_ENA */
  2218. #define ARIZONA_MICB3_ENA_WIDTH 1 /* MICB3_ENA */
  2219. /*
  2220. * R549 (0x225) - HP Ctrl 1L
  2221. */
  2222. #define ARIZONA_RMV_SHRT_HP1L 0x4000 /* RMV_SHRT_HP1L */
  2223. #define ARIZONA_RMV_SHRT_HP1L_MASK 0x4000 /* RMV_SHRT_HP1L */
  2224. #define ARIZONA_RMV_SHRT_HP1L_SHIFT 14 /* RMV_SHRT_HP1L */
  2225. #define ARIZONA_RMV_SHRT_HP1L_WIDTH 1 /* RMV_SHRT_HP1L */
  2226. #define ARIZONA_HP1L_FLWR 0x0004 /* HP1L_FLWR */
  2227. #define ARIZONA_HP1L_FLWR_MASK 0x0004 /* HP1L_FLWR */
  2228. #define ARIZONA_HP1L_FLWR_SHIFT 2 /* HP1L_FLWR */
  2229. #define ARIZONA_HP1L_FLWR_WIDTH 1 /* HP1L_FLWR */
  2230. #define ARIZONA_HP1L_SHRTI 0x0002 /* HP1L_SHRTI */
  2231. #define ARIZONA_HP1L_SHRTI_MASK 0x0002 /* HP1L_SHRTI */
  2232. #define ARIZONA_HP1L_SHRTI_SHIFT 1 /* HP1L_SHRTI */
  2233. #define ARIZONA_HP1L_SHRTI_WIDTH 1 /* HP1L_SHRTI */
  2234. #define ARIZONA_HP1L_SHRTO 0x0001 /* HP1L_SHRTO */
  2235. #define ARIZONA_HP1L_SHRTO_MASK 0x0001 /* HP1L_SHRTO */
  2236. #define ARIZONA_HP1L_SHRTO_SHIFT 0 /* HP1L_SHRTO */
  2237. #define ARIZONA_HP1L_SHRTO_WIDTH 1 /* HP1L_SHRTO */
  2238. /*
  2239. * R550 (0x226) - HP Ctrl 1R
  2240. */
  2241. #define ARIZONA_RMV_SHRT_HP1R 0x4000 /* RMV_SHRT_HP1R */
  2242. #define ARIZONA_RMV_SHRT_HP1R_MASK 0x4000 /* RMV_SHRT_HP1R */
  2243. #define ARIZONA_RMV_SHRT_HP1R_SHIFT 14 /* RMV_SHRT_HP1R */
  2244. #define ARIZONA_RMV_SHRT_HP1R_WIDTH 1 /* RMV_SHRT_HP1R */
  2245. #define ARIZONA_HP1R_FLWR 0x0004 /* HP1R_FLWR */
  2246. #define ARIZONA_HP1R_FLWR_MASK 0x0004 /* HP1R_FLWR */
  2247. #define ARIZONA_HP1R_FLWR_SHIFT 2 /* HP1R_FLWR */
  2248. #define ARIZONA_HP1R_FLWR_WIDTH 1 /* HP1R_FLWR */
  2249. #define ARIZONA_HP1R_SHRTI 0x0002 /* HP1R_SHRTI */
  2250. #define ARIZONA_HP1R_SHRTI_MASK 0x0002 /* HP1R_SHRTI */
  2251. #define ARIZONA_HP1R_SHRTI_SHIFT 1 /* HP1R_SHRTI */
  2252. #define ARIZONA_HP1R_SHRTI_WIDTH 1 /* HP1R_SHRTI */
  2253. #define ARIZONA_HP1R_SHRTO 0x0001 /* HP1R_SHRTO */
  2254. #define ARIZONA_HP1R_SHRTO_MASK 0x0001 /* HP1R_SHRTO */
  2255. #define ARIZONA_HP1R_SHRTO_SHIFT 0 /* HP1R_SHRTO */
  2256. #define ARIZONA_HP1R_SHRTO_WIDTH 1 /* HP1R_SHRTO */
  2257. /*
  2258. * R659 (0x293) - Accessory Detect Mode 1
  2259. */
  2260. #define ARIZONA_ACCDET_SRC 0x2000 /* ACCDET_SRC */
  2261. #define ARIZONA_ACCDET_SRC_MASK 0x2000 /* ACCDET_SRC */
  2262. #define ARIZONA_ACCDET_SRC_SHIFT 13 /* ACCDET_SRC */
  2263. #define ARIZONA_ACCDET_SRC_WIDTH 1 /* ACCDET_SRC */
  2264. #define ARIZONA_ACCDET_MODE_MASK 0x0007 /* ACCDET_MODE - [2:0] */
  2265. #define ARIZONA_ACCDET_MODE_SHIFT 0 /* ACCDET_MODE - [2:0] */
  2266. #define ARIZONA_ACCDET_MODE_WIDTH 3 /* ACCDET_MODE - [2:0] */
  2267. /*
  2268. * R667 (0x29B) - Headphone Detect 1
  2269. */
  2270. #define ARIZONA_HP_IMPEDANCE_RANGE_MASK 0x0600 /* HP_IMPEDANCE_RANGE - [10:9] */
  2271. #define ARIZONA_HP_IMPEDANCE_RANGE_SHIFT 9 /* HP_IMPEDANCE_RANGE - [10:9] */
  2272. #define ARIZONA_HP_IMPEDANCE_RANGE_WIDTH 2 /* HP_IMPEDANCE_RANGE - [10:9] */
  2273. #define ARIZONA_HP_STEP_SIZE 0x0100 /* HP_STEP_SIZE */
  2274. #define ARIZONA_HP_STEP_SIZE_MASK 0x0100 /* HP_STEP_SIZE */
  2275. #define ARIZONA_HP_STEP_SIZE_SHIFT 8 /* HP_STEP_SIZE */
  2276. #define ARIZONA_HP_STEP_SIZE_WIDTH 1 /* HP_STEP_SIZE */
  2277. #define ARIZONA_HP_HOLDTIME_MASK 0x00E0 /* HP_HOLDTIME - [7:5] */
  2278. #define ARIZONA_HP_HOLDTIME_SHIFT 5 /* HP_HOLDTIME - [7:5] */
  2279. #define ARIZONA_HP_HOLDTIME_WIDTH 3 /* HP_HOLDTIME - [7:5] */
  2280. #define ARIZONA_HP_CLK_DIV_MASK 0x0018 /* HP_CLK_DIV - [4:3] */
  2281. #define ARIZONA_HP_CLK_DIV_SHIFT 3 /* HP_CLK_DIV - [4:3] */
  2282. #define ARIZONA_HP_CLK_DIV_WIDTH 2 /* HP_CLK_DIV - [4:3] */
  2283. #define ARIZONA_HP_IDAC_STEER 0x0004 /* HP_IDAC_STEER */
  2284. #define ARIZONA_HP_IDAC_STEER_MASK 0x0004 /* HP_IDAC_STEER */
  2285. #define ARIZONA_HP_IDAC_STEER_SHIFT 2 /* HP_IDAC_STEER */
  2286. #define ARIZONA_HP_IDAC_STEER_WIDTH 1 /* HP_IDAC_STEER */
  2287. #define WM8998_HP_RATE_MASK 0x0006 /* HP_RATE - [2:1] */
  2288. #define WM8998_HP_RATE_SHIFT 1 /* HP_RATE - [2:1] */
  2289. #define WM8998_HP_RATE_WIDTH 2 /* HP_RATE - [2:1] */
  2290. #define ARIZONA_HP_RATE 0x0002 /* HP_RATE */
  2291. #define ARIZONA_HP_RATE_MASK 0x0002 /* HP_RATE */
  2292. #define ARIZONA_HP_RATE_SHIFT 1 /* HP_RATE */
  2293. #define ARIZONA_HP_RATE_WIDTH 1 /* HP_RATE */
  2294. #define ARIZONA_HP_POLL 0x0001 /* HP_POLL */
  2295. #define ARIZONA_HP_POLL_MASK 0x0001 /* HP_POLL */
  2296. #define ARIZONA_HP_POLL_SHIFT 0 /* HP_POLL */
  2297. #define ARIZONA_HP_POLL_WIDTH 1 /* HP_POLL */
  2298. /*
  2299. * R668 (0x29C) - Headphone Detect 2
  2300. */
  2301. #define ARIZONA_HP_DONE 0x0080 /* HP_DONE */
  2302. #define ARIZONA_HP_DONE_MASK 0x0080 /* HP_DONE */
  2303. #define ARIZONA_HP_DONE_SHIFT 7 /* HP_DONE */
  2304. #define ARIZONA_HP_DONE_WIDTH 1 /* HP_DONE */
  2305. #define ARIZONA_HP_LVL_MASK 0x007F /* HP_LVL - [6:0] */
  2306. #define ARIZONA_HP_LVL_SHIFT 0 /* HP_LVL - [6:0] */
  2307. #define ARIZONA_HP_LVL_WIDTH 7 /* HP_LVL - [6:0] */
  2308. #define ARIZONA_HP_DONE_B 0x8000 /* HP_DONE */
  2309. #define ARIZONA_HP_DONE_B_MASK 0x8000 /* HP_DONE */
  2310. #define ARIZONA_HP_DONE_B_SHIFT 15 /* HP_DONE */
  2311. #define ARIZONA_HP_DONE_B_WIDTH 1 /* HP_DONE */
  2312. #define ARIZONA_HP_LVL_B_MASK 0x7FFF /* HP_LVL - [14:0] */
  2313. #define ARIZONA_HP_LVL_B_SHIFT 0 /* HP_LVL - [14:0] */
  2314. #define ARIZONA_HP_LVL_B_WIDTH 15 /* HP_LVL - [14:0] */
  2315. /*
  2316. * R674 (0x2A2) - MICD clamp control
  2317. */
  2318. #define ARIZONA_MICD_CLAMP_MODE_MASK 0x000F /* MICD_CLAMP_MODE - [3:0] */
  2319. #define ARIZONA_MICD_CLAMP_MODE_SHIFT 0 /* MICD_CLAMP_MODE - [3:0] */
  2320. #define ARIZONA_MICD_CLAMP_MODE_WIDTH 4 /* MICD_CLAMP_MODE - [3:0] */
  2321. /*
  2322. * R675 (0x2A3) - Mic Detect 1
  2323. */
  2324. #define ARIZONA_MICD_BIAS_STARTTIME_MASK 0xF000 /* MICD_BIAS_STARTTIME - [15:12] */
  2325. #define ARIZONA_MICD_BIAS_STARTTIME_SHIFT 12 /* MICD_BIAS_STARTTIME - [15:12] */
  2326. #define ARIZONA_MICD_BIAS_STARTTIME_WIDTH 4 /* MICD_BIAS_STARTTIME - [15:12] */
  2327. #define ARIZONA_MICD_RATE_MASK 0x0F00 /* MICD_RATE - [11:8] */
  2328. #define ARIZONA_MICD_RATE_SHIFT 8 /* MICD_RATE - [11:8] */
  2329. #define ARIZONA_MICD_RATE_WIDTH 4 /* MICD_RATE - [11:8] */
  2330. #define ARIZONA_MICD_BIAS_SRC_MASK 0x0030 /* MICD_BIAS_SRC - [5:4] */
  2331. #define ARIZONA_MICD_BIAS_SRC_SHIFT 4 /* MICD_BIAS_SRC - [5:4] */
  2332. #define ARIZONA_MICD_BIAS_SRC_WIDTH 2 /* MICD_BIAS_SRC - [5:4] */
  2333. #define ARIZONA_MICD_DBTIME 0x0002 /* MICD_DBTIME */
  2334. #define ARIZONA_MICD_DBTIME_MASK 0x0002 /* MICD_DBTIME */
  2335. #define ARIZONA_MICD_DBTIME_SHIFT 1 /* MICD_DBTIME */
  2336. #define ARIZONA_MICD_DBTIME_WIDTH 1 /* MICD_DBTIME */
  2337. #define ARIZONA_MICD_ENA 0x0001 /* MICD_ENA */
  2338. #define ARIZONA_MICD_ENA_MASK 0x0001 /* MICD_ENA */
  2339. #define ARIZONA_MICD_ENA_SHIFT 0 /* MICD_ENA */
  2340. #define ARIZONA_MICD_ENA_WIDTH 1 /* MICD_ENA */
  2341. /*
  2342. * R676 (0x2A4) - Mic Detect 2
  2343. */
  2344. #define ARIZONA_MICD_LVL_SEL_MASK 0x00FF /* MICD_LVL_SEL - [7:0] */
  2345. #define ARIZONA_MICD_LVL_SEL_SHIFT 0 /* MICD_LVL_SEL - [7:0] */
  2346. #define ARIZONA_MICD_LVL_SEL_WIDTH 8 /* MICD_LVL_SEL - [7:0] */
  2347. /*
  2348. * R677 (0x2A5) - Mic Detect 3
  2349. */
  2350. #define ARIZONA_MICD_LVL_0 0x0004 /* MICD_LVL - [2] */
  2351. #define ARIZONA_MICD_LVL_1 0x0008 /* MICD_LVL - [3] */
  2352. #define ARIZONA_MICD_LVL_2 0x0010 /* MICD_LVL - [4] */
  2353. #define ARIZONA_MICD_LVL_3 0x0020 /* MICD_LVL - [5] */
  2354. #define ARIZONA_MICD_LVL_4 0x0040 /* MICD_LVL - [6] */
  2355. #define ARIZONA_MICD_LVL_5 0x0080 /* MICD_LVL - [7] */
  2356. #define ARIZONA_MICD_LVL_6 0x0100 /* MICD_LVL - [8] */
  2357. #define ARIZONA_MICD_LVL_7 0x0200 /* MICD_LVL - [9] */
  2358. #define ARIZONA_MICD_LVL_8 0x0400 /* MICD_LVL - [10] */
  2359. #define ARIZONA_MICD_LVL_MASK 0x07FC /* MICD_LVL - [10:2] */
  2360. #define ARIZONA_MICD_LVL_SHIFT 2 /* MICD_LVL - [10:2] */
  2361. #define ARIZONA_MICD_LVL_WIDTH 9 /* MICD_LVL - [10:2] */
  2362. #define ARIZONA_MICD_VALID 0x0002 /* MICD_VALID */
  2363. #define ARIZONA_MICD_VALID_MASK 0x0002 /* MICD_VALID */
  2364. #define ARIZONA_MICD_VALID_SHIFT 1 /* MICD_VALID */
  2365. #define ARIZONA_MICD_VALID_WIDTH 1 /* MICD_VALID */
  2366. #define ARIZONA_MICD_STS 0x0001 /* MICD_STS */
  2367. #define ARIZONA_MICD_STS_MASK 0x0001 /* MICD_STS */
  2368. #define ARIZONA_MICD_STS_SHIFT 0 /* MICD_STS */
  2369. #define ARIZONA_MICD_STS_WIDTH 1 /* MICD_STS */
  2370. /*
  2371. * R683 (0x2AB) - Mic Detect 4
  2372. */
  2373. #define ARIZONA_MICDET_ADCVAL_DIFF_MASK 0xFF00 /* MICDET_ADCVAL_DIFF - [15:8] */
  2374. #define ARIZONA_MICDET_ADCVAL_DIFF_SHIFT 8 /* MICDET_ADCVAL_DIFF - [15:8] */
  2375. #define ARIZONA_MICDET_ADCVAL_DIFF_WIDTH 8 /* MICDET_ADCVAL_DIFF - [15:8] */
  2376. #define ARIZONA_MICDET_ADCVAL_MASK 0x007F /* MICDET_ADCVAL - [15:8] */
  2377. #define ARIZONA_MICDET_ADCVAL_SHIFT 0 /* MICDET_ADCVAL - [15:8] */
  2378. #define ARIZONA_MICDET_ADCVAL_WIDTH 7 /* MICDET_ADCVAL - [15:8] */
  2379. /*
  2380. * R707 (0x2C3) - Mic noise mix control 1
  2381. */
  2382. #define ARIZONA_MICMUTE_RATE_MASK 0x7800 /* MICMUTE_RATE - [14:11] */
  2383. #define ARIZONA_MICMUTE_RATE_SHIFT 11 /* MICMUTE_RATE - [14:11] */
  2384. #define ARIZONA_MICMUTE_RATE_WIDTH 4 /* MICMUTE_RATE - [14:11] */
  2385. #define ARIZONA_MICMUTE_MIX_ENA 0x0040 /* MICMUTE_MIX_ENA */
  2386. #define ARIZONA_MICMUTE_MIX_ENA_MASK 0x0040 /* MICMUTE_MIX_ENA */
  2387. #define ARIZONA_MICMUTE_MIX_ENA_SHIFT 6 /* MICMUTE_MIX_ENA */
  2388. #define ARIZONA_MICMUTE_MIX_ENA_WIDTH 1 /* MICMUTE_MIX_ENA */
  2389. /*
  2390. * R715 (0x2CB) - Isolation control
  2391. */
  2392. #define ARIZONA_ISOLATE_DCVDD1 0x0001 /* ISOLATE_DCVDD1 */
  2393. #define ARIZONA_ISOLATE_DCVDD1_MASK 0x0001 /* ISOLATE_DCVDD1 */
  2394. #define ARIZONA_ISOLATE_DCVDD1_SHIFT 0 /* ISOLATE_DCVDD1 */
  2395. #define ARIZONA_ISOLATE_DCVDD1_WIDTH 1 /* ISOLATE_DCVDD1 */
  2396. /*
  2397. * R723 (0x2D3) - Jack detect analogue
  2398. */
  2399. #define ARIZONA_JD2_ENA 0x0002 /* JD2_ENA */
  2400. #define ARIZONA_JD2_ENA_MASK 0x0002 /* JD2_ENA */
  2401. #define ARIZONA_JD2_ENA_SHIFT 1 /* JD2_ENA */
  2402. #define ARIZONA_JD2_ENA_WIDTH 1 /* JD2_ENA */
  2403. #define ARIZONA_JD1_ENA 0x0001 /* JD1_ENA */
  2404. #define ARIZONA_JD1_ENA_MASK 0x0001 /* JD1_ENA */
  2405. #define ARIZONA_JD1_ENA_SHIFT 0 /* JD1_ENA */
  2406. #define ARIZONA_JD1_ENA_WIDTH 1 /* JD1_ENA */
  2407. /*
  2408. * R768 (0x300) - Input Enables
  2409. */
  2410. #define ARIZONA_IN4L_ENA 0x0080 /* IN4L_ENA */
  2411. #define ARIZONA_IN4L_ENA_MASK 0x0080 /* IN4L_ENA */
  2412. #define ARIZONA_IN4L_ENA_SHIFT 7 /* IN4L_ENA */
  2413. #define ARIZONA_IN4L_ENA_WIDTH 1 /* IN4L_ENA */
  2414. #define ARIZONA_IN4R_ENA 0x0040 /* IN4R_ENA */
  2415. #define ARIZONA_IN4R_ENA_MASK 0x0040 /* IN4R_ENA */
  2416. #define ARIZONA_IN4R_ENA_SHIFT 6 /* IN4R_ENA */
  2417. #define ARIZONA_IN4R_ENA_WIDTH 1 /* IN4R_ENA */
  2418. #define ARIZONA_IN3L_ENA 0x0020 /* IN3L_ENA */
  2419. #define ARIZONA_IN3L_ENA_MASK 0x0020 /* IN3L_ENA */
  2420. #define ARIZONA_IN3L_ENA_SHIFT 5 /* IN3L_ENA */
  2421. #define ARIZONA_IN3L_ENA_WIDTH 1 /* IN3L_ENA */
  2422. #define ARIZONA_IN3R_ENA 0x0010 /* IN3R_ENA */
  2423. #define ARIZONA_IN3R_ENA_MASK 0x0010 /* IN3R_ENA */
  2424. #define ARIZONA_IN3R_ENA_SHIFT 4 /* IN3R_ENA */
  2425. #define ARIZONA_IN3R_ENA_WIDTH 1 /* IN3R_ENA */
  2426. #define ARIZONA_IN2L_ENA 0x0008 /* IN2L_ENA */
  2427. #define ARIZONA_IN2L_ENA_MASK 0x0008 /* IN2L_ENA */
  2428. #define ARIZONA_IN2L_ENA_SHIFT 3 /* IN2L_ENA */
  2429. #define ARIZONA_IN2L_ENA_WIDTH 1 /* IN2L_ENA */
  2430. #define ARIZONA_IN2R_ENA 0x0004 /* IN2R_ENA */
  2431. #define ARIZONA_IN2R_ENA_MASK 0x0004 /* IN2R_ENA */
  2432. #define ARIZONA_IN2R_ENA_SHIFT 2 /* IN2R_ENA */
  2433. #define ARIZONA_IN2R_ENA_WIDTH 1 /* IN2R_ENA */
  2434. #define ARIZONA_IN1L_ENA 0x0002 /* IN1L_ENA */
  2435. #define ARIZONA_IN1L_ENA_MASK 0x0002 /* IN1L_ENA */
  2436. #define ARIZONA_IN1L_ENA_SHIFT 1 /* IN1L_ENA */
  2437. #define ARIZONA_IN1L_ENA_WIDTH 1 /* IN1L_ENA */
  2438. #define ARIZONA_IN1R_ENA 0x0001 /* IN1R_ENA */
  2439. #define ARIZONA_IN1R_ENA_MASK 0x0001 /* IN1R_ENA */
  2440. #define ARIZONA_IN1R_ENA_SHIFT 0 /* IN1R_ENA */
  2441. #define ARIZONA_IN1R_ENA_WIDTH 1 /* IN1R_ENA */
  2442. /*
  2443. * R776 (0x308) - Input Rate
  2444. */
  2445. #define ARIZONA_IN_RATE_MASK 0x7800 /* IN_RATE - [14:11] */
  2446. #define ARIZONA_IN_RATE_SHIFT 11 /* IN_RATE - [14:11] */
  2447. #define ARIZONA_IN_RATE_WIDTH 4 /* IN_RATE - [14:11] */
  2448. /*
  2449. * R777 (0x309) - Input Volume Ramp
  2450. */
  2451. #define ARIZONA_IN_VD_RAMP_MASK 0x0070 /* IN_VD_RAMP - [6:4] */
  2452. #define ARIZONA_IN_VD_RAMP_SHIFT 4 /* IN_VD_RAMP - [6:4] */
  2453. #define ARIZONA_IN_VD_RAMP_WIDTH 3 /* IN_VD_RAMP - [6:4] */
  2454. #define ARIZONA_IN_VI_RAMP_MASK 0x0007 /* IN_VI_RAMP - [2:0] */
  2455. #define ARIZONA_IN_VI_RAMP_SHIFT 0 /* IN_VI_RAMP - [2:0] */
  2456. #define ARIZONA_IN_VI_RAMP_WIDTH 3 /* IN_VI_RAMP - [2:0] */
  2457. /*
  2458. * R780 (0x30C) - HPF Control
  2459. */
  2460. #define ARIZONA_IN_HPF_CUT_MASK 0x0007 /* IN_HPF_CUT [2:0] */
  2461. #define ARIZONA_IN_HPF_CUT_SHIFT 0 /* IN_HPF_CUT [2:0] */
  2462. #define ARIZONA_IN_HPF_CUT_WIDTH 3 /* IN_HPF_CUT [2:0] */
  2463. /*
  2464. * R784 (0x310) - IN1L Control
  2465. */
  2466. #define ARIZONA_IN1L_HPF_MASK 0x8000 /* IN1L_HPF - [15] */
  2467. #define ARIZONA_IN1L_HPF_SHIFT 15 /* IN1L_HPF - [15] */
  2468. #define ARIZONA_IN1L_HPF_WIDTH 1 /* IN1L_HPF - [15] */
  2469. #define ARIZONA_IN1_OSR_MASK 0x6000 /* IN1_OSR - [14:13] */
  2470. #define ARIZONA_IN1_OSR_SHIFT 13 /* IN1_OSR - [14:13] */
  2471. #define ARIZONA_IN1_OSR_WIDTH 2 /* IN1_OSR - [14:13] */
  2472. #define ARIZONA_IN1_DMIC_SUP_MASK 0x1800 /* IN1_DMIC_SUP - [12:11] */
  2473. #define ARIZONA_IN1_DMIC_SUP_SHIFT 11 /* IN1_DMIC_SUP - [12:11] */
  2474. #define ARIZONA_IN1_DMIC_SUP_WIDTH 2 /* IN1_DMIC_SUP - [12:11] */
  2475. #define ARIZONA_IN1_MODE_MASK 0x0400 /* IN1_MODE - [10] */
  2476. #define ARIZONA_IN1_MODE_SHIFT 10 /* IN1_MODE - [10] */
  2477. #define ARIZONA_IN1_MODE_WIDTH 1 /* IN1_MODE - [10] */
  2478. #define ARIZONA_IN1_SINGLE_ENDED_MASK 0x0200 /* IN1_MODE - [9] */
  2479. #define ARIZONA_IN1_SINGLE_ENDED_SHIFT 9 /* IN1_MODE - [9] */
  2480. #define ARIZONA_IN1_SINGLE_ENDED_WIDTH 1 /* IN1_MODE - [9] */
  2481. #define ARIZONA_IN1L_PGA_VOL_MASK 0x00FE /* IN1L_PGA_VOL - [7:1] */
  2482. #define ARIZONA_IN1L_PGA_VOL_SHIFT 1 /* IN1L_PGA_VOL - [7:1] */
  2483. #define ARIZONA_IN1L_PGA_VOL_WIDTH 7 /* IN1L_PGA_VOL - [7:1] */
  2484. /*
  2485. * R785 (0x311) - ADC Digital Volume 1L
  2486. */
  2487. #define ARIZONA_IN1L_SRC_MASK 0x4000 /* IN1L_SRC - [14] */
  2488. #define ARIZONA_IN1L_SRC_SHIFT 14 /* IN1L_SRC - [14] */
  2489. #define ARIZONA_IN1L_SRC_WIDTH 1 /* IN1L_SRC - [14] */
  2490. #define ARIZONA_IN1L_SRC_SE_MASK 0x2000 /* IN1L_SRC - [13] */
  2491. #define ARIZONA_IN1L_SRC_SE_SHIFT 13 /* IN1L_SRC - [13] */
  2492. #define ARIZONA_IN1L_SRC_SE_WIDTH 1 /* IN1L_SRC - [13] */
  2493. #define ARIZONA_IN_VU 0x0200 /* IN_VU */
  2494. #define ARIZONA_IN_VU_MASK 0x0200 /* IN_VU */
  2495. #define ARIZONA_IN_VU_SHIFT 9 /* IN_VU */
  2496. #define ARIZONA_IN_VU_WIDTH 1 /* IN_VU */
  2497. #define ARIZONA_IN1L_MUTE 0x0100 /* IN1L_MUTE */
  2498. #define ARIZONA_IN1L_MUTE_MASK 0x0100 /* IN1L_MUTE */
  2499. #define ARIZONA_IN1L_MUTE_SHIFT 8 /* IN1L_MUTE */
  2500. #define ARIZONA_IN1L_MUTE_WIDTH 1 /* IN1L_MUTE */
  2501. #define ARIZONA_IN1L_DIG_VOL_MASK 0x00FF /* IN1L_DIG_VOL - [7:0] */
  2502. #define ARIZONA_IN1L_DIG_VOL_SHIFT 0 /* IN1L_DIG_VOL - [7:0] */
  2503. #define ARIZONA_IN1L_DIG_VOL_WIDTH 8 /* IN1L_DIG_VOL - [7:0] */
  2504. /*
  2505. * R786 (0x312) - DMIC1L Control
  2506. */
  2507. #define ARIZONA_IN1_DMICL_DLY_MASK 0x003F /* IN1_DMICL_DLY - [5:0] */
  2508. #define ARIZONA_IN1_DMICL_DLY_SHIFT 0 /* IN1_DMICL_DLY - [5:0] */
  2509. #define ARIZONA_IN1_DMICL_DLY_WIDTH 6 /* IN1_DMICL_DLY - [5:0] */
  2510. /*
  2511. * R788 (0x314) - IN1R Control
  2512. */
  2513. #define ARIZONA_IN1R_HPF_MASK 0x8000 /* IN1R_HPF - [15] */
  2514. #define ARIZONA_IN1R_HPF_SHIFT 15 /* IN1R_HPF - [15] */
  2515. #define ARIZONA_IN1R_HPF_WIDTH 1 /* IN1R_HPF - [15] */
  2516. #define ARIZONA_IN1R_PGA_VOL_MASK 0x00FE /* IN1R_PGA_VOL - [7:1] */
  2517. #define ARIZONA_IN1R_PGA_VOL_SHIFT 1 /* IN1R_PGA_VOL - [7:1] */
  2518. #define ARIZONA_IN1R_PGA_VOL_WIDTH 7 /* IN1R_PGA_VOL - [7:1] */
  2519. /*
  2520. * R789 (0x315) - ADC Digital Volume 1R
  2521. */
  2522. #define ARIZONA_IN1R_SRC_MASK 0x4000 /* IN1R_SRC - [14] */
  2523. #define ARIZONA_IN1R_SRC_SHIFT 14 /* IN1R_SRC - [14] */
  2524. #define ARIZONA_IN1R_SRC_WIDTH 1 /* IN1R_SRC - [14] */
  2525. #define ARIZONA_IN1R_SRC_SE_MASK 0x2000 /* IN1R_SRC - [13] */
  2526. #define ARIZONA_IN1R_SRC_SE_SHIFT 13 /* IN1R_SRC - [13] */
  2527. #define ARIZONA_IN1R_SRC_SE_WIDTH 1 /* IN1R_SRC - [13] */
  2528. #define ARIZONA_IN_VU 0x0200 /* IN_VU */
  2529. #define ARIZONA_IN_VU_MASK 0x0200 /* IN_VU */
  2530. #define ARIZONA_IN_VU_SHIFT 9 /* IN_VU */
  2531. #define ARIZONA_IN_VU_WIDTH 1 /* IN_VU */
  2532. #define ARIZONA_IN1R_MUTE 0x0100 /* IN1R_MUTE */
  2533. #define ARIZONA_IN1R_MUTE_MASK 0x0100 /* IN1R_MUTE */
  2534. #define ARIZONA_IN1R_MUTE_SHIFT 8 /* IN1R_MUTE */
  2535. #define ARIZONA_IN1R_MUTE_WIDTH 1 /* IN1R_MUTE */
  2536. #define ARIZONA_IN1R_DIG_VOL_MASK 0x00FF /* IN1R_DIG_VOL - [7:0] */
  2537. #define ARIZONA_IN1R_DIG_VOL_SHIFT 0 /* IN1R_DIG_VOL - [7:0] */
  2538. #define ARIZONA_IN1R_DIG_VOL_WIDTH 8 /* IN1R_DIG_VOL - [7:0] */
  2539. /*
  2540. * R790 (0x316) - DMIC1R Control
  2541. */
  2542. #define ARIZONA_IN1_DMICR_DLY_MASK 0x003F /* IN1_DMICR_DLY - [5:0] */
  2543. #define ARIZONA_IN1_DMICR_DLY_SHIFT 0 /* IN1_DMICR_DLY - [5:0] */
  2544. #define ARIZONA_IN1_DMICR_DLY_WIDTH 6 /* IN1_DMICR_DLY - [5:0] */
  2545. /*
  2546. * R792 (0x318) - IN2L Control
  2547. */
  2548. #define ARIZONA_IN2L_HPF_MASK 0x8000 /* IN2L_HPF - [15] */
  2549. #define ARIZONA_IN2L_HPF_SHIFT 15 /* IN2L_HPF - [15] */
  2550. #define ARIZONA_IN2L_HPF_WIDTH 1 /* IN2L_HPF - [15] */
  2551. #define ARIZONA_IN2_OSR_MASK 0x6000 /* IN2_OSR - [14:13] */
  2552. #define ARIZONA_IN2_OSR_SHIFT 13 /* IN2_OSR - [14:13] */
  2553. #define ARIZONA_IN2_OSR_WIDTH 2 /* IN2_OSR - [14:13] */
  2554. #define ARIZONA_IN2_DMIC_SUP_MASK 0x1800 /* IN2_DMIC_SUP - [12:11] */
  2555. #define ARIZONA_IN2_DMIC_SUP_SHIFT 11 /* IN2_DMIC_SUP - [12:11] */
  2556. #define ARIZONA_IN2_DMIC_SUP_WIDTH 2 /* IN2_DMIC_SUP - [12:11] */
  2557. #define ARIZONA_IN2_MODE_MASK 0x0400 /* IN2_MODE - [10] */
  2558. #define ARIZONA_IN2_MODE_SHIFT 10 /* IN2_MODE - [10] */
  2559. #define ARIZONA_IN2_MODE_WIDTH 1 /* IN2_MODE - [10] */
  2560. #define ARIZONA_IN2_SINGLE_ENDED_MASK 0x0200 /* IN2_MODE - [9] */
  2561. #define ARIZONA_IN2_SINGLE_ENDED_SHIFT 9 /* IN2_MODE - [9] */
  2562. #define ARIZONA_IN2_SINGLE_ENDED_WIDTH 1 /* IN2_MODE - [9] */
  2563. #define ARIZONA_IN2L_PGA_VOL_MASK 0x00FE /* IN2L_PGA_VOL - [7:1] */
  2564. #define ARIZONA_IN2L_PGA_VOL_SHIFT 1 /* IN2L_PGA_VOL - [7:1] */
  2565. #define ARIZONA_IN2L_PGA_VOL_WIDTH 7 /* IN2L_PGA_VOL - [7:1] */
  2566. /*
  2567. * R793 (0x319) - ADC Digital Volume 2L
  2568. */
  2569. #define ARIZONA_IN2L_SRC_MASK 0x4000 /* IN2L_SRC - [14] */
  2570. #define ARIZONA_IN2L_SRC_SHIFT 14 /* IN2L_SRC - [14] */
  2571. #define ARIZONA_IN2L_SRC_WIDTH 1 /* IN2L_SRC - [14] */
  2572. #define ARIZONA_IN2L_SRC_SE_MASK 0x2000 /* IN2L_SRC - [13] */
  2573. #define ARIZONA_IN2L_SRC_SE_SHIFT 13 /* IN2L_SRC - [13] */
  2574. #define ARIZONA_IN2L_SRC_SE_WIDTH 1 /* IN2L_SRC - [13] */
  2575. #define ARIZONA_IN_VU 0x0200 /* IN_VU */
  2576. #define ARIZONA_IN_VU_MASK 0x0200 /* IN_VU */
  2577. #define ARIZONA_IN_VU_SHIFT 9 /* IN_VU */
  2578. #define ARIZONA_IN_VU_WIDTH 1 /* IN_VU */
  2579. #define ARIZONA_IN2L_MUTE 0x0100 /* IN2L_MUTE */
  2580. #define ARIZONA_IN2L_MUTE_MASK 0x0100 /* IN2L_MUTE */
  2581. #define ARIZONA_IN2L_MUTE_SHIFT 8 /* IN2L_MUTE */
  2582. #define ARIZONA_IN2L_MUTE_WIDTH 1 /* IN2L_MUTE */
  2583. #define ARIZONA_IN2L_DIG_VOL_MASK 0x00FF /* IN2L_DIG_VOL - [7:0] */
  2584. #define ARIZONA_IN2L_DIG_VOL_SHIFT 0 /* IN2L_DIG_VOL - [7:0] */
  2585. #define ARIZONA_IN2L_DIG_VOL_WIDTH 8 /* IN2L_DIG_VOL - [7:0] */
  2586. /*
  2587. * R794 (0x31A) - DMIC2L Control
  2588. */
  2589. #define ARIZONA_IN2_DMICL_DLY_MASK 0x003F /* IN2_DMICL_DLY - [5:0] */
  2590. #define ARIZONA_IN2_DMICL_DLY_SHIFT 0 /* IN2_DMICL_DLY - [5:0] */
  2591. #define ARIZONA_IN2_DMICL_DLY_WIDTH 6 /* IN2_DMICL_DLY - [5:0] */
  2592. /*
  2593. * R796 (0x31C) - IN2R Control
  2594. */
  2595. #define ARIZONA_IN2R_HPF_MASK 0x8000 /* IN2R_HPF - [15] */
  2596. #define ARIZONA_IN2R_HPF_SHIFT 15 /* IN2R_HPF - [15] */
  2597. #define ARIZONA_IN2R_HPF_WIDTH 1 /* IN2R_HPF - [15] */
  2598. #define ARIZONA_IN2R_PGA_VOL_MASK 0x00FE /* IN2R_PGA_VOL - [7:1] */
  2599. #define ARIZONA_IN2R_PGA_VOL_SHIFT 1 /* IN2R_PGA_VOL - [7:1] */
  2600. #define ARIZONA_IN2R_PGA_VOL_WIDTH 7 /* IN2R_PGA_VOL - [7:1] */
  2601. /*
  2602. * R797 (0x31D) - ADC Digital Volume 2R
  2603. */
  2604. #define ARIZONA_IN_VU 0x0200 /* IN_VU */
  2605. #define ARIZONA_IN_VU_MASK 0x0200 /* IN_VU */
  2606. #define ARIZONA_IN_VU_SHIFT 9 /* IN_VU */
  2607. #define ARIZONA_IN_VU_WIDTH 1 /* IN_VU */
  2608. #define ARIZONA_IN2R_MUTE 0x0100 /* IN2R_MUTE */
  2609. #define ARIZONA_IN2R_MUTE_MASK 0x0100 /* IN2R_MUTE */
  2610. #define ARIZONA_IN2R_MUTE_SHIFT 8 /* IN2R_MUTE */
  2611. #define ARIZONA_IN2R_MUTE_WIDTH 1 /* IN2R_MUTE */
  2612. #define ARIZONA_IN2R_DIG_VOL_MASK 0x00FF /* IN2R_DIG_VOL - [7:0] */
  2613. #define ARIZONA_IN2R_DIG_VOL_SHIFT 0 /* IN2R_DIG_VOL - [7:0] */
  2614. #define ARIZONA_IN2R_DIG_VOL_WIDTH 8 /* IN2R_DIG_VOL - [7:0] */
  2615. /*
  2616. * R798 (0x31E) - DMIC2R Control
  2617. */
  2618. #define ARIZONA_IN2_DMICR_DLY_MASK 0x003F /* IN2_DMICR_DLY - [5:0] */
  2619. #define ARIZONA_IN2_DMICR_DLY_SHIFT 0 /* IN2_DMICR_DLY - [5:0] */
  2620. #define ARIZONA_IN2_DMICR_DLY_WIDTH 6 /* IN2_DMICR_DLY - [5:0] */
  2621. /*
  2622. * R800 (0x320) - IN3L Control
  2623. */
  2624. #define ARIZONA_IN3L_HPF_MASK 0x8000 /* IN3L_HPF - [15] */
  2625. #define ARIZONA_IN3L_HPF_SHIFT 15 /* IN3L_HPF - [15] */
  2626. #define ARIZONA_IN3L_HPF_WIDTH 1 /* IN3L_HPF - [15] */
  2627. #define ARIZONA_IN3_OSR_MASK 0x6000 /* IN3_OSR - [14:13] */
  2628. #define ARIZONA_IN3_OSR_SHIFT 13 /* IN3_OSR - [14:13] */
  2629. #define ARIZONA_IN3_OSR_WIDTH 2 /* IN3_OSR - [14:13] */
  2630. #define ARIZONA_IN3_DMIC_SUP_MASK 0x1800 /* IN3_DMIC_SUP - [12:11] */
  2631. #define ARIZONA_IN3_DMIC_SUP_SHIFT 11 /* IN3_DMIC_SUP - [12:11] */
  2632. #define ARIZONA_IN3_DMIC_SUP_WIDTH 2 /* IN3_DMIC_SUP - [12:11] */
  2633. #define ARIZONA_IN3_MODE_MASK 0x0400 /* IN3_MODE - [10] */
  2634. #define ARIZONA_IN3_MODE_SHIFT 10 /* IN3_MODE - [10] */
  2635. #define ARIZONA_IN3_MODE_WIDTH 1 /* IN3_MODE - [10] */
  2636. #define ARIZONA_IN3_SINGLE_ENDED_MASK 0x0200 /* IN3_MODE - [9] */
  2637. #define ARIZONA_IN3_SINGLE_ENDED_SHIFT 9 /* IN3_MODE - [9] */
  2638. #define ARIZONA_IN3_SINGLE_ENDED_WIDTH 1 /* IN3_MODE - [9] */
  2639. #define ARIZONA_IN3L_PGA_VOL_MASK 0x00FE /* IN3L_PGA_VOL - [7:1] */
  2640. #define ARIZONA_IN3L_PGA_VOL_SHIFT 1 /* IN3L_PGA_VOL - [7:1] */
  2641. #define ARIZONA_IN3L_PGA_VOL_WIDTH 7 /* IN3L_PGA_VOL - [7:1] */
  2642. /*
  2643. * R801 (0x321) - ADC Digital Volume 3L
  2644. */
  2645. #define ARIZONA_IN_VU 0x0200 /* IN_VU */
  2646. #define ARIZONA_IN_VU_MASK 0x0200 /* IN_VU */
  2647. #define ARIZONA_IN_VU_SHIFT 9 /* IN_VU */
  2648. #define ARIZONA_IN_VU_WIDTH 1 /* IN_VU */
  2649. #define ARIZONA_IN3L_MUTE 0x0100 /* IN3L_MUTE */
  2650. #define ARIZONA_IN3L_MUTE_MASK 0x0100 /* IN3L_MUTE */
  2651. #define ARIZONA_IN3L_MUTE_SHIFT 8 /* IN3L_MUTE */
  2652. #define ARIZONA_IN3L_MUTE_WIDTH 1 /* IN3L_MUTE */
  2653. #define ARIZONA_IN3L_DIG_VOL_MASK 0x00FF /* IN3L_DIG_VOL - [7:0] */
  2654. #define ARIZONA_IN3L_DIG_VOL_SHIFT 0 /* IN3L_DIG_VOL - [7:0] */
  2655. #define ARIZONA_IN3L_DIG_VOL_WIDTH 8 /* IN3L_DIG_VOL - [7:0] */
  2656. /*
  2657. * R802 (0x322) - DMIC3L Control
  2658. */
  2659. #define ARIZONA_IN3_DMICL_DLY_MASK 0x003F /* IN3_DMICL_DLY - [5:0] */
  2660. #define ARIZONA_IN3_DMICL_DLY_SHIFT 0 /* IN3_DMICL_DLY - [5:0] */
  2661. #define ARIZONA_IN3_DMICL_DLY_WIDTH 6 /* IN3_DMICL_DLY - [5:0] */
  2662. /*
  2663. * R804 (0x324) - IN3R Control
  2664. */
  2665. #define ARIZONA_IN3R_HPF_MASK 0x8000 /* IN3R_HPF - [15] */
  2666. #define ARIZONA_IN3R_HPF_SHIFT 15 /* IN3R_HPF - [15] */
  2667. #define ARIZONA_IN3R_HPF_WIDTH 1 /* IN3R_HPF - [15] */
  2668. #define ARIZONA_IN3R_PGA_VOL_MASK 0x00FE /* IN3R_PGA_VOL - [7:1] */
  2669. #define ARIZONA_IN3R_PGA_VOL_SHIFT 1 /* IN3R_PGA_VOL - [7:1] */
  2670. #define ARIZONA_IN3R_PGA_VOL_WIDTH 7 /* IN3R_PGA_VOL - [7:1] */
  2671. /*
  2672. * R805 (0x325) - ADC Digital Volume 3R
  2673. */
  2674. #define ARIZONA_IN_VU 0x0200 /* IN_VU */
  2675. #define ARIZONA_IN_VU_MASK 0x0200 /* IN_VU */
  2676. #define ARIZONA_IN_VU_SHIFT 9 /* IN_VU */
  2677. #define ARIZONA_IN_VU_WIDTH 1 /* IN_VU */
  2678. #define ARIZONA_IN3R_MUTE 0x0100 /* IN3R_MUTE */
  2679. #define ARIZONA_IN3R_MUTE_MASK 0x0100 /* IN3R_MUTE */
  2680. #define ARIZONA_IN3R_MUTE_SHIFT 8 /* IN3R_MUTE */
  2681. #define ARIZONA_IN3R_MUTE_WIDTH 1 /* IN3R_MUTE */
  2682. #define ARIZONA_IN3R_DIG_VOL_MASK 0x00FF /* IN3R_DIG_VOL - [7:0] */
  2683. #define ARIZONA_IN3R_DIG_VOL_SHIFT 0 /* IN3R_DIG_VOL - [7:0] */
  2684. #define ARIZONA_IN3R_DIG_VOL_WIDTH 8 /* IN3R_DIG_VOL - [7:0] */
  2685. /*
  2686. * R806 (0x326) - DMIC3R Control
  2687. */
  2688. #define ARIZONA_IN3_DMICR_DLY_MASK 0x003F /* IN3_DMICR_DLY - [5:0] */
  2689. #define ARIZONA_IN3_DMICR_DLY_SHIFT 0 /* IN3_DMICR_DLY - [5:0] */
  2690. #define ARIZONA_IN3_DMICR_DLY_WIDTH 6 /* IN3_DMICR_DLY - [5:0] */
  2691. /*
  2692. * R808 (0x328) - IN4 Control
  2693. */
  2694. #define ARIZONA_IN4L_HPF_MASK 0x8000 /* IN4L_HPF - [15] */
  2695. #define ARIZONA_IN4L_HPF_SHIFT 15 /* IN4L_HPF - [15] */
  2696. #define ARIZONA_IN4L_HPF_WIDTH 1 /* IN4L_HPF - [15] */
  2697. #define ARIZONA_IN4_OSR_MASK 0x6000 /* IN4_OSR - [14:13] */
  2698. #define ARIZONA_IN4_OSR_SHIFT 13 /* IN4_OSR - [14:13] */
  2699. #define ARIZONA_IN4_OSR_WIDTH 2 /* IN4_OSR - [14:13] */
  2700. #define ARIZONA_IN4_DMIC_SUP_MASK 0x1800 /* IN4_DMIC_SUP - [12:11] */
  2701. #define ARIZONA_IN4_DMIC_SUP_SHIFT 11 /* IN4_DMIC_SUP - [12:11] */
  2702. #define ARIZONA_IN4_DMIC_SUP_WIDTH 2 /* IN4_DMIC_SUP - [12:11] */
  2703. /*
  2704. * R809 (0x329) - ADC Digital Volume 4L
  2705. */
  2706. #define ARIZONA_IN_VU 0x0200 /* IN_VU */
  2707. #define ARIZONA_IN_VU_MASK 0x0200 /* IN_VU */
  2708. #define ARIZONA_IN_VU_SHIFT 9 /* IN_VU */
  2709. #define ARIZONA_IN_VU_WIDTH 1 /* IN_VU */
  2710. #define ARIZONA_IN4L_MUTE 0x0100 /* IN4L_MUTE */
  2711. #define ARIZONA_IN4L_MUTE_MASK 0x0100 /* IN4L_MUTE */
  2712. #define ARIZONA_IN4L_MUTE_SHIFT 8 /* IN4L_MUTE */
  2713. #define ARIZONA_IN4L_MUTE_WIDTH 1 /* IN4L_MUTE */
  2714. #define ARIZONA_IN4L_DIG_VOL_MASK 0x00FF /* IN4L_DIG_VOL - [7:0] */
  2715. #define ARIZONA_IN4L_DIG_VOL_SHIFT 0 /* IN4L_DIG_VOL - [7:0] */
  2716. #define ARIZONA_IN4L_DIG_VOL_WIDTH 8 /* IN4L_DIG_VOL - [7:0] */
  2717. /*
  2718. * R810 (0x32A) - DMIC4L Control
  2719. */
  2720. #define ARIZONA_IN4L_DMIC_DLY_MASK 0x003F /* IN4L_DMIC_DLY - [5:0] */
  2721. #define ARIZONA_IN4L_DMIC_DLY_SHIFT 0 /* IN4L_DMIC_DLY - [5:0] */
  2722. #define ARIZONA_IN4L_DMIC_DLY_WIDTH 6 /* IN4L_DMIC_DLY - [5:0] */
  2723. /*
  2724. * R812 (0x32C) - IN4R Control
  2725. */
  2726. #define ARIZONA_IN4R_HPF_MASK 0x8000 /* IN4R_HPF - [15] */
  2727. #define ARIZONA_IN4R_HPF_SHIFT 15 /* IN4R_HPF - [15] */
  2728. #define ARIZONA_IN4R_HPF_WIDTH 1 /* IN4R_HPF - [15] */
  2729. /*
  2730. * R813 (0x32D) - ADC Digital Volume 4R
  2731. */
  2732. #define ARIZONA_IN_VU 0x0200 /* IN_VU */
  2733. #define ARIZONA_IN_VU_MASK 0x0200 /* IN_VU */
  2734. #define ARIZONA_IN_VU_SHIFT 9 /* IN_VU */
  2735. #define ARIZONA_IN_VU_WIDTH 1 /* IN_VU */
  2736. #define ARIZONA_IN4R_MUTE 0x0100 /* IN4R_MUTE */
  2737. #define ARIZONA_IN4R_MUTE_MASK 0x0100 /* IN4R_MUTE */
  2738. #define ARIZONA_IN4R_MUTE_SHIFT 8 /* IN4R_MUTE */
  2739. #define ARIZONA_IN4R_MUTE_WIDTH 1 /* IN4R_MUTE */
  2740. #define ARIZONA_IN4R_DIG_VOL_MASK 0x00FF /* IN4R_DIG_VOL - [7:0] */
  2741. #define ARIZONA_IN4R_DIG_VOL_SHIFT 0 /* IN4R_DIG_VOL - [7:0] */
  2742. #define ARIZONA_IN4R_DIG_VOL_WIDTH 8 /* IN4R_DIG_VOL - [7:0] */
  2743. /*
  2744. * R814 (0x32E) - DMIC4R Control
  2745. */
  2746. #define ARIZONA_IN4R_DMIC_DLY_MASK 0x003F /* IN4R_DMIC_DLY - [5:0] */
  2747. #define ARIZONA_IN4R_DMIC_DLY_SHIFT 0 /* IN4R_DMIC_DLY - [5:0] */
  2748. #define ARIZONA_IN4R_DMIC_DLY_WIDTH 6 /* IN4R_DMIC_DLY - [5:0] */
  2749. /*
  2750. * R1024 (0x400) - Output Enables 1
  2751. */
  2752. #define ARIZONA_OUT6L_ENA 0x0800 /* OUT6L_ENA */
  2753. #define ARIZONA_OUT6L_ENA_MASK 0x0800 /* OUT6L_ENA */
  2754. #define ARIZONA_OUT6L_ENA_SHIFT 11 /* OUT6L_ENA */
  2755. #define ARIZONA_OUT6L_ENA_WIDTH 1 /* OUT6L_ENA */
  2756. #define ARIZONA_OUT6R_ENA 0x0400 /* OUT6R_ENA */
  2757. #define ARIZONA_OUT6R_ENA_MASK 0x0400 /* OUT6R_ENA */
  2758. #define ARIZONA_OUT6R_ENA_SHIFT 10 /* OUT6R_ENA */
  2759. #define ARIZONA_OUT6R_ENA_WIDTH 1 /* OUT6R_ENA */
  2760. #define ARIZONA_OUT5L_ENA 0x0200 /* OUT5L_ENA */
  2761. #define ARIZONA_OUT5L_ENA_MASK 0x0200 /* OUT5L_ENA */
  2762. #define ARIZONA_OUT5L_ENA_SHIFT 9 /* OUT5L_ENA */
  2763. #define ARIZONA_OUT5L_ENA_WIDTH 1 /* OUT5L_ENA */
  2764. #define ARIZONA_OUT5R_ENA 0x0100 /* OUT5R_ENA */
  2765. #define ARIZONA_OUT5R_ENA_MASK 0x0100 /* OUT5R_ENA */
  2766. #define ARIZONA_OUT5R_ENA_SHIFT 8 /* OUT5R_ENA */
  2767. #define ARIZONA_OUT5R_ENA_WIDTH 1 /* OUT5R_ENA */
  2768. #define ARIZONA_OUT4L_ENA 0x0080 /* OUT4L_ENA */
  2769. #define ARIZONA_OUT4L_ENA_MASK 0x0080 /* OUT4L_ENA */
  2770. #define ARIZONA_OUT4L_ENA_SHIFT 7 /* OUT4L_ENA */
  2771. #define ARIZONA_OUT4L_ENA_WIDTH 1 /* OUT4L_ENA */
  2772. #define ARIZONA_OUT4R_ENA 0x0040 /* OUT4R_ENA */
  2773. #define ARIZONA_OUT4R_ENA_MASK 0x0040 /* OUT4R_ENA */
  2774. #define ARIZONA_OUT4R_ENA_SHIFT 6 /* OUT4R_ENA */
  2775. #define ARIZONA_OUT4R_ENA_WIDTH 1 /* OUT4R_ENA */
  2776. #define ARIZONA_OUT3L_ENA 0x0020 /* OUT3L_ENA */
  2777. #define ARIZONA_OUT3L_ENA_MASK 0x0020 /* OUT3L_ENA */
  2778. #define ARIZONA_OUT3L_ENA_SHIFT 5 /* OUT3L_ENA */
  2779. #define ARIZONA_OUT3L_ENA_WIDTH 1 /* OUT3L_ENA */
  2780. #define ARIZONA_OUT3R_ENA 0x0010 /* OUT3R_ENA */
  2781. #define ARIZONA_OUT3R_ENA_MASK 0x0010 /* OUT3R_ENA */
  2782. #define ARIZONA_OUT3R_ENA_SHIFT 4 /* OUT3R_ENA */
  2783. #define ARIZONA_OUT3R_ENA_WIDTH 1 /* OUT3R_ENA */
  2784. #define ARIZONA_OUT2L_ENA 0x0008 /* OUT2L_ENA */
  2785. #define ARIZONA_OUT2L_ENA_MASK 0x0008 /* OUT2L_ENA */
  2786. #define ARIZONA_OUT2L_ENA_SHIFT 3 /* OUT2L_ENA */
  2787. #define ARIZONA_OUT2L_ENA_WIDTH 1 /* OUT2L_ENA */
  2788. #define ARIZONA_OUT2R_ENA 0x0004 /* OUT2R_ENA */
  2789. #define ARIZONA_OUT2R_ENA_MASK 0x0004 /* OUT2R_ENA */
  2790. #define ARIZONA_OUT2R_ENA_SHIFT 2 /* OUT2R_ENA */
  2791. #define ARIZONA_OUT2R_ENA_WIDTH 1 /* OUT2R_ENA */
  2792. #define ARIZONA_OUT1L_ENA 0x0002 /* OUT1L_ENA */
  2793. #define ARIZONA_OUT1L_ENA_MASK 0x0002 /* OUT1L_ENA */
  2794. #define ARIZONA_OUT1L_ENA_SHIFT 1 /* OUT1L_ENA */
  2795. #define ARIZONA_OUT1L_ENA_WIDTH 1 /* OUT1L_ENA */
  2796. #define ARIZONA_OUT1R_ENA 0x0001 /* OUT1R_ENA */
  2797. #define ARIZONA_OUT1R_ENA_MASK 0x0001 /* OUT1R_ENA */
  2798. #define ARIZONA_OUT1R_ENA_SHIFT 0 /* OUT1R_ENA */
  2799. #define ARIZONA_OUT1R_ENA_WIDTH 1 /* OUT1R_ENA */
  2800. /*
  2801. * R1025 (0x401) - Output Status 1
  2802. */
  2803. #define ARIZONA_OUT6L_ENA_STS 0x0800 /* OUT6L_ENA_STS */
  2804. #define ARIZONA_OUT6L_ENA_STS_MASK 0x0800 /* OUT6L_ENA_STS */
  2805. #define ARIZONA_OUT6L_ENA_STS_SHIFT 11 /* OUT6L_ENA_STS */
  2806. #define ARIZONA_OUT6L_ENA_STS_WIDTH 1 /* OUT6L_ENA_STS */
  2807. #define ARIZONA_OUT6R_ENA_STS 0x0400 /* OUT6R_ENA_STS */
  2808. #define ARIZONA_OUT6R_ENA_STS_MASK 0x0400 /* OUT6R_ENA_STS */
  2809. #define ARIZONA_OUT6R_ENA_STS_SHIFT 10 /* OUT6R_ENA_STS */
  2810. #define ARIZONA_OUT6R_ENA_STS_WIDTH 1 /* OUT6R_ENA_STS */
  2811. #define ARIZONA_OUT5L_ENA_STS 0x0200 /* OUT5L_ENA_STS */
  2812. #define ARIZONA_OUT5L_ENA_STS_MASK 0x0200 /* OUT5L_ENA_STS */
  2813. #define ARIZONA_OUT5L_ENA_STS_SHIFT 9 /* OUT5L_ENA_STS */
  2814. #define ARIZONA_OUT5L_ENA_STS_WIDTH 1 /* OUT5L_ENA_STS */
  2815. #define ARIZONA_OUT5R_ENA_STS 0x0100 /* OUT5R_ENA_STS */
  2816. #define ARIZONA_OUT5R_ENA_STS_MASK 0x0100 /* OUT5R_ENA_STS */
  2817. #define ARIZONA_OUT5R_ENA_STS_SHIFT 8 /* OUT5R_ENA_STS */
  2818. #define ARIZONA_OUT5R_ENA_STS_WIDTH 1 /* OUT5R_ENA_STS */
  2819. #define ARIZONA_OUT4L_ENA_STS 0x0080 /* OUT4L_ENA_STS */
  2820. #define ARIZONA_OUT4L_ENA_STS_MASK 0x0080 /* OUT4L_ENA_STS */
  2821. #define ARIZONA_OUT4L_ENA_STS_SHIFT 7 /* OUT4L_ENA_STS */
  2822. #define ARIZONA_OUT4L_ENA_STS_WIDTH 1 /* OUT4L_ENA_STS */
  2823. #define ARIZONA_OUT4R_ENA_STS 0x0040 /* OUT4R_ENA_STS */
  2824. #define ARIZONA_OUT4R_ENA_STS_MASK 0x0040 /* OUT4R_ENA_STS */
  2825. #define ARIZONA_OUT4R_ENA_STS_SHIFT 6 /* OUT4R_ENA_STS */
  2826. #define ARIZONA_OUT4R_ENA_STS_WIDTH 1 /* OUT4R_ENA_STS */
  2827. /*
  2828. * R1032 (0x408) - Output Rate 1
  2829. */
  2830. #define ARIZONA_OUT_RATE_MASK 0x7800 /* OUT_RATE - [14:11] */
  2831. #define ARIZONA_OUT_RATE_SHIFT 11 /* OUT_RATE - [14:11] */
  2832. #define ARIZONA_OUT_RATE_WIDTH 4 /* OUT_RATE - [14:11] */
  2833. /*
  2834. * R1033 (0x409) - Output Volume Ramp
  2835. */
  2836. #define ARIZONA_OUT_VD_RAMP_MASK 0x0070 /* OUT_VD_RAMP - [6:4] */
  2837. #define ARIZONA_OUT_VD_RAMP_SHIFT 4 /* OUT_VD_RAMP - [6:4] */
  2838. #define ARIZONA_OUT_VD_RAMP_WIDTH 3 /* OUT_VD_RAMP - [6:4] */
  2839. #define ARIZONA_OUT_VI_RAMP_MASK 0x0007 /* OUT_VI_RAMP - [2:0] */
  2840. #define ARIZONA_OUT_VI_RAMP_SHIFT 0 /* OUT_VI_RAMP - [2:0] */
  2841. #define ARIZONA_OUT_VI_RAMP_WIDTH 3 /* OUT_VI_RAMP - [2:0] */
  2842. /*
  2843. * R1040 (0x410) - Output Path Config 1L
  2844. */
  2845. #define ARIZONA_OUT1_LP_MODE 0x8000 /* OUT1_LP_MODE */
  2846. #define ARIZONA_OUT1_LP_MODE_MASK 0x8000 /* OUT1_LP_MODE */
  2847. #define ARIZONA_OUT1_LP_MODE_SHIFT 15 /* OUT1_LP_MODE */
  2848. #define ARIZONA_OUT1_LP_MODE_WIDTH 1 /* OUT1_LP_MODE */
  2849. #define ARIZONA_OUT1_OSR 0x2000 /* OUT1_OSR */
  2850. #define ARIZONA_OUT1_OSR_MASK 0x2000 /* OUT1_OSR */
  2851. #define ARIZONA_OUT1_OSR_SHIFT 13 /* OUT1_OSR */
  2852. #define ARIZONA_OUT1_OSR_WIDTH 1 /* OUT1_OSR */
  2853. #define ARIZONA_OUT1_MONO 0x1000 /* OUT1_MONO */
  2854. #define ARIZONA_OUT1_MONO_MASK 0x1000 /* OUT1_MONO */
  2855. #define ARIZONA_OUT1_MONO_SHIFT 12 /* OUT1_MONO */
  2856. #define ARIZONA_OUT1_MONO_WIDTH 1 /* OUT1_MONO */
  2857. #define ARIZONA_OUT1L_ANC_SRC_MASK 0x0C00 /* OUT1L_ANC_SRC - [11:10] */
  2858. #define ARIZONA_OUT1L_ANC_SRC_SHIFT 10 /* OUT1L_ANC_SRC - [11:10] */
  2859. #define ARIZONA_OUT1L_ANC_SRC_WIDTH 2 /* OUT1L_ANC_SRC - [11:10] */
  2860. #define ARIZONA_OUT1L_PGA_VOL_MASK 0x00FE /* OUT1L_PGA_VOL - [7:1] */
  2861. #define ARIZONA_OUT1L_PGA_VOL_SHIFT 1 /* OUT1L_PGA_VOL - [7:1] */
  2862. #define ARIZONA_OUT1L_PGA_VOL_WIDTH 7 /* OUT1L_PGA_VOL - [7:1] */
  2863. /*
  2864. * R1041 (0x411) - DAC Digital Volume 1L
  2865. */
  2866. #define ARIZONA_OUT_VU 0x0200 /* OUT_VU */
  2867. #define ARIZONA_OUT_VU_MASK 0x0200 /* OUT_VU */
  2868. #define ARIZONA_OUT_VU_SHIFT 9 /* OUT_VU */
  2869. #define ARIZONA_OUT_VU_WIDTH 1 /* OUT_VU */
  2870. #define ARIZONA_OUT1L_MUTE 0x0100 /* OUT1L_MUTE */
  2871. #define ARIZONA_OUT1L_MUTE_MASK 0x0100 /* OUT1L_MUTE */
  2872. #define ARIZONA_OUT1L_MUTE_SHIFT 8 /* OUT1L_MUTE */
  2873. #define ARIZONA_OUT1L_MUTE_WIDTH 1 /* OUT1L_MUTE */
  2874. #define ARIZONA_OUT1L_VOL_MASK 0x00FF /* OUT1L_VOL - [7:0] */
  2875. #define ARIZONA_OUT1L_VOL_SHIFT 0 /* OUT1L_VOL - [7:0] */
  2876. #define ARIZONA_OUT1L_VOL_WIDTH 8 /* OUT1L_VOL - [7:0] */
  2877. /*
  2878. * R1042 (0x412) - DAC Volume Limit 1L
  2879. */
  2880. #define ARIZONA_OUT1L_VOL_LIM_MASK 0x00FF /* OUT1L_VOL_LIM - [7:0] */
  2881. #define ARIZONA_OUT1L_VOL_LIM_SHIFT 0 /* OUT1L_VOL_LIM - [7:0] */
  2882. #define ARIZONA_OUT1L_VOL_LIM_WIDTH 8 /* OUT1L_VOL_LIM - [7:0] */
  2883. /*
  2884. * R1043 (0x413) - Noise Gate Select 1L
  2885. */
  2886. #define ARIZONA_OUT1L_NGATE_SRC_MASK 0x0FFF /* OUT1L_NGATE_SRC - [11:0] */
  2887. #define ARIZONA_OUT1L_NGATE_SRC_SHIFT 0 /* OUT1L_NGATE_SRC - [11:0] */
  2888. #define ARIZONA_OUT1L_NGATE_SRC_WIDTH 12 /* OUT1L_NGATE_SRC - [11:0] */
  2889. /*
  2890. * R1044 (0x414) - Output Path Config 1R
  2891. */
  2892. #define ARIZONA_OUT1R_ANC_SRC_MASK 0x0C00 /* OUT1R_ANC_SRC - [11:10] */
  2893. #define ARIZONA_OUT1R_ANC_SRC_SHIFT 10 /* OUT1R_ANC_SRC - [11:10] */
  2894. #define ARIZONA_OUT1R_ANC_SRC_WIDTH 2 /* OUT1R_ANC_SRC - [11:10] */
  2895. #define ARIZONA_OUT1R_PGA_VOL_MASK 0x00FE /* OUT1R_PGA_VOL - [7:1] */
  2896. #define ARIZONA_OUT1R_PGA_VOL_SHIFT 1 /* OUT1R_PGA_VOL - [7:1] */
  2897. #define ARIZONA_OUT1R_PGA_VOL_WIDTH 7 /* OUT1R_PGA_VOL - [7:1] */
  2898. /*
  2899. * R1045 (0x415) - DAC Digital Volume 1R
  2900. */
  2901. #define ARIZONA_OUT_VU 0x0200 /* OUT_VU */
  2902. #define ARIZONA_OUT_VU_MASK 0x0200 /* OUT_VU */
  2903. #define ARIZONA_OUT_VU_SHIFT 9 /* OUT_VU */
  2904. #define ARIZONA_OUT_VU_WIDTH 1 /* OUT_VU */
  2905. #define ARIZONA_OUT1R_MUTE 0x0100 /* OUT1R_MUTE */
  2906. #define ARIZONA_OUT1R_MUTE_MASK 0x0100 /* OUT1R_MUTE */
  2907. #define ARIZONA_OUT1R_MUTE_SHIFT 8 /* OUT1R_MUTE */
  2908. #define ARIZONA_OUT1R_MUTE_WIDTH 1 /* OUT1R_MUTE */
  2909. #define ARIZONA_OUT1R_VOL_MASK 0x00FF /* OUT1R_VOL - [7:0] */
  2910. #define ARIZONA_OUT1R_VOL_SHIFT 0 /* OUT1R_VOL - [7:0] */
  2911. #define ARIZONA_OUT1R_VOL_WIDTH 8 /* OUT1R_VOL - [7:0] */
  2912. /*
  2913. * R1046 (0x416) - DAC Volume Limit 1R
  2914. */
  2915. #define ARIZONA_OUT1R_VOL_LIM_MASK 0x00FF /* OUT1R_VOL_LIM - [7:0] */
  2916. #define ARIZONA_OUT1R_VOL_LIM_SHIFT 0 /* OUT1R_VOL_LIM - [7:0] */
  2917. #define ARIZONA_OUT1R_VOL_LIM_WIDTH 8 /* OUT1R_VOL_LIM - [7:0] */
  2918. /*
  2919. * R1047 (0x417) - Noise Gate Select 1R
  2920. */
  2921. #define ARIZONA_OUT1R_NGATE_SRC_MASK 0x0FFF /* OUT1R_NGATE_SRC - [11:0] */
  2922. #define ARIZONA_OUT1R_NGATE_SRC_SHIFT 0 /* OUT1R_NGATE_SRC - [11:0] */
  2923. #define ARIZONA_OUT1R_NGATE_SRC_WIDTH 12 /* OUT1R_NGATE_SRC - [11:0] */
  2924. /*
  2925. * R1048 (0x418) - Output Path Config 2L
  2926. */
  2927. #define ARIZONA_OUT2_LP_MODE 0x8000 /* OUT2_LP_MODE */
  2928. #define ARIZONA_OUT2_LP_MODE_MASK 0x8000 /* OUT2_LP_MODE */
  2929. #define ARIZONA_OUT2_LP_MODE_SHIFT 15 /* OUT2_LP_MODE */
  2930. #define ARIZONA_OUT2_LP_MODE_WIDTH 1 /* OUT2_LP_MODE */
  2931. #define ARIZONA_OUT2_OSR 0x2000 /* OUT2_OSR */
  2932. #define ARIZONA_OUT2_OSR_MASK 0x2000 /* OUT2_OSR */
  2933. #define ARIZONA_OUT2_OSR_SHIFT 13 /* OUT2_OSR */
  2934. #define ARIZONA_OUT2_OSR_WIDTH 1 /* OUT2_OSR */
  2935. #define ARIZONA_OUT2_MONO 0x1000 /* OUT2_MONO */
  2936. #define ARIZONA_OUT2_MONO_MASK 0x1000 /* OUT2_MONO */
  2937. #define ARIZONA_OUT2_MONO_SHIFT 12 /* OUT2_MONO */
  2938. #define ARIZONA_OUT2_MONO_WIDTH 1 /* OUT2_MONO */
  2939. #define ARIZONA_OUT2L_ANC_SRC_MASK 0x0C00 /* OUT2L_ANC_SRC - [11:10] */
  2940. #define ARIZONA_OUT2L_ANC_SRC_SHIFT 10 /* OUT2L_ANC_SRC - [11:10] */
  2941. #define ARIZONA_OUT2L_ANC_SRC_WIDTH 2 /* OUT2L_ANC_SRC - [11:10] */
  2942. #define ARIZONA_OUT2L_PGA_VOL_MASK 0x00FE /* OUT2L_PGA_VOL - [7:1] */
  2943. #define ARIZONA_OUT2L_PGA_VOL_SHIFT 1 /* OUT2L_PGA_VOL - [7:1] */
  2944. #define ARIZONA_OUT2L_PGA_VOL_WIDTH 7 /* OUT2L_PGA_VOL - [7:1] */
  2945. /*
  2946. * R1049 (0x419) - DAC Digital Volume 2L
  2947. */
  2948. #define ARIZONA_OUT_VU 0x0200 /* OUT_VU */
  2949. #define ARIZONA_OUT_VU_MASK 0x0200 /* OUT_VU */
  2950. #define ARIZONA_OUT_VU_SHIFT 9 /* OUT_VU */
  2951. #define ARIZONA_OUT_VU_WIDTH 1 /* OUT_VU */
  2952. #define ARIZONA_OUT2L_MUTE 0x0100 /* OUT2L_MUTE */
  2953. #define ARIZONA_OUT2L_MUTE_MASK 0x0100 /* OUT2L_MUTE */
  2954. #define ARIZONA_OUT2L_MUTE_SHIFT 8 /* OUT2L_MUTE */
  2955. #define ARIZONA_OUT2L_MUTE_WIDTH 1 /* OUT2L_MUTE */
  2956. #define ARIZONA_OUT2L_VOL_MASK 0x00FF /* OUT2L_VOL - [7:0] */
  2957. #define ARIZONA_OUT2L_VOL_SHIFT 0 /* OUT2L_VOL - [7:0] */
  2958. #define ARIZONA_OUT2L_VOL_WIDTH 8 /* OUT2L_VOL - [7:0] */
  2959. /*
  2960. * R1050 (0x41A) - DAC Volume Limit 2L
  2961. */
  2962. #define ARIZONA_OUT2L_VOL_LIM_MASK 0x00FF /* OUT2L_VOL_LIM - [7:0] */
  2963. #define ARIZONA_OUT2L_VOL_LIM_SHIFT 0 /* OUT2L_VOL_LIM - [7:0] */
  2964. #define ARIZONA_OUT2L_VOL_LIM_WIDTH 8 /* OUT2L_VOL_LIM - [7:0] */
  2965. /*
  2966. * R1051 (0x41B) - Noise Gate Select 2L
  2967. */
  2968. #define ARIZONA_OUT2L_NGATE_SRC_MASK 0x0FFF /* OUT2L_NGATE_SRC - [11:0] */
  2969. #define ARIZONA_OUT2L_NGATE_SRC_SHIFT 0 /* OUT2L_NGATE_SRC - [11:0] */
  2970. #define ARIZONA_OUT2L_NGATE_SRC_WIDTH 12 /* OUT2L_NGATE_SRC - [11:0] */
  2971. /*
  2972. * R1052 (0x41C) - Output Path Config 2R
  2973. */
  2974. #define ARIZONA_OUT2R_ANC_SRC_MASK 0x0C00 /* OUT2R_ANC_SRC - [11:10] */
  2975. #define ARIZONA_OUT2R_ANC_SRC_SHIFT 10 /* OUT2R_ANC_SRC - [11:10] */
  2976. #define ARIZONA_OUT2R_ANC_SRC_WIDTH 2 /* OUT2R_ANC_SRC - [11:10] */
  2977. #define ARIZONA_OUT2R_PGA_VOL_MASK 0x00FE /* OUT2R_PGA_VOL - [7:1] */
  2978. #define ARIZONA_OUT2R_PGA_VOL_SHIFT 1 /* OUT2R_PGA_VOL - [7:1] */
  2979. #define ARIZONA_OUT2R_PGA_VOL_WIDTH 7 /* OUT2R_PGA_VOL - [7:1] */
  2980. /*
  2981. * R1053 (0x41D) - DAC Digital Volume 2R
  2982. */
  2983. #define ARIZONA_OUT_VU 0x0200 /* OUT_VU */
  2984. #define ARIZONA_OUT_VU_MASK 0x0200 /* OUT_VU */
  2985. #define ARIZONA_OUT_VU_SHIFT 9 /* OUT_VU */
  2986. #define ARIZONA_OUT_VU_WIDTH 1 /* OUT_VU */
  2987. #define ARIZONA_OUT2R_MUTE 0x0100 /* OUT2R_MUTE */
  2988. #define ARIZONA_OUT2R_MUTE_MASK 0x0100 /* OUT2R_MUTE */
  2989. #define ARIZONA_OUT2R_MUTE_SHIFT 8 /* OUT2R_MUTE */
  2990. #define ARIZONA_OUT2R_MUTE_WIDTH 1 /* OUT2R_MUTE */
  2991. #define ARIZONA_OUT2R_VOL_MASK 0x00FF /* OUT2R_VOL - [7:0] */
  2992. #define ARIZONA_OUT2R_VOL_SHIFT 0 /* OUT2R_VOL - [7:0] */
  2993. #define ARIZONA_OUT2R_VOL_WIDTH 8 /* OUT2R_VOL - [7:0] */
  2994. /*
  2995. * R1054 (0x41E) - DAC Volume Limit 2R
  2996. */
  2997. #define ARIZONA_OUT2R_VOL_LIM_MASK 0x00FF /* OUT2R_VOL_LIM - [7:0] */
  2998. #define ARIZONA_OUT2R_VOL_LIM_SHIFT 0 /* OUT2R_VOL_LIM - [7:0] */
  2999. #define ARIZONA_OUT2R_VOL_LIM_WIDTH 8 /* OUT2R_VOL_LIM - [7:0] */
  3000. /*
  3001. * R1055 (0x41F) - Noise Gate Select 2R
  3002. */
  3003. #define ARIZONA_OUT2R_NGATE_SRC_MASK 0x0FFF /* OUT2R_NGATE_SRC - [11:0] */
  3004. #define ARIZONA_OUT2R_NGATE_SRC_SHIFT 0 /* OUT2R_NGATE_SRC - [11:0] */
  3005. #define ARIZONA_OUT2R_NGATE_SRC_WIDTH 12 /* OUT2R_NGATE_SRC - [11:0] */
  3006. /*
  3007. * R1056 (0x420) - Output Path Config 3L
  3008. */
  3009. #define ARIZONA_OUT3_LP_MODE 0x8000 /* OUT3_LP_MODE */
  3010. #define ARIZONA_OUT3_LP_MODE_MASK 0x8000 /* OUT3_LP_MODE */
  3011. #define ARIZONA_OUT3_LP_MODE_SHIFT 15 /* OUT3_LP_MODE */
  3012. #define ARIZONA_OUT3_LP_MODE_WIDTH 1 /* OUT3_LP_MODE */
  3013. #define ARIZONA_OUT3_OSR 0x2000 /* OUT3_OSR */
  3014. #define ARIZONA_OUT3_OSR_MASK 0x2000 /* OUT3_OSR */
  3015. #define ARIZONA_OUT3_OSR_SHIFT 13 /* OUT3_OSR */
  3016. #define ARIZONA_OUT3_OSR_WIDTH 1 /* OUT3_OSR */
  3017. #define ARIZONA_OUT3_MONO 0x1000 /* OUT3_MONO */
  3018. #define ARIZONA_OUT3_MONO_MASK 0x1000 /* OUT3_MONO */
  3019. #define ARIZONA_OUT3_MONO_SHIFT 12 /* OUT3_MONO */
  3020. #define ARIZONA_OUT3_MONO_WIDTH 1 /* OUT3_MONO */
  3021. #define ARIZONA_OUT3L_ANC_SRC_MASK 0x0C00 /* OUT3L_ANC_SRC - [11:10] */
  3022. #define ARIZONA_OUT3L_ANC_SRC_SHIFT 10 /* OUT3L_ANC_SRC - [11:10] */
  3023. #define ARIZONA_OUT3L_ANC_SRC_WIDTH 2 /* OUT3L_ANC_SRC - [11:10] */
  3024. #define ARIZONA_OUT3L_PGA_VOL_MASK 0x00FE /* OUT3L_PGA_VOL - [7:1] */
  3025. #define ARIZONA_OUT3L_PGA_VOL_SHIFT 1 /* OUT3L_PGA_VOL - [7:1] */
  3026. #define ARIZONA_OUT3L_PGA_VOL_WIDTH 7 /* OUT3L_PGA_VOL - [7:1] */
  3027. /*
  3028. * R1057 (0x421) - DAC Digital Volume 3L
  3029. */
  3030. #define ARIZONA_OUT_VU 0x0200 /* OUT_VU */
  3031. #define ARIZONA_OUT_VU_MASK 0x0200 /* OUT_VU */
  3032. #define ARIZONA_OUT_VU_SHIFT 9 /* OUT_VU */
  3033. #define ARIZONA_OUT_VU_WIDTH 1 /* OUT_VU */
  3034. #define ARIZONA_OUT3L_MUTE 0x0100 /* OUT3L_MUTE */
  3035. #define ARIZONA_OUT3L_MUTE_MASK 0x0100 /* OUT3L_MUTE */
  3036. #define ARIZONA_OUT3L_MUTE_SHIFT 8 /* OUT3L_MUTE */
  3037. #define ARIZONA_OUT3L_MUTE_WIDTH 1 /* OUT3L_MUTE */
  3038. #define ARIZONA_OUT3L_VOL_MASK 0x00FF /* OUT3L_VOL - [7:0] */
  3039. #define ARIZONA_OUT3L_VOL_SHIFT 0 /* OUT3L_VOL - [7:0] */
  3040. #define ARIZONA_OUT3L_VOL_WIDTH 8 /* OUT3L_VOL - [7:0] */
  3041. /*
  3042. * R1058 (0x422) - DAC Volume Limit 3L
  3043. */
  3044. #define ARIZONA_OUT3L_VOL_LIM_MASK 0x00FF /* OUT3L_VOL_LIM - [7:0] */
  3045. #define ARIZONA_OUT3L_VOL_LIM_SHIFT 0 /* OUT3L_VOL_LIM - [7:0] */
  3046. #define ARIZONA_OUT3L_VOL_LIM_WIDTH 8 /* OUT3L_VOL_LIM - [7:0] */
  3047. /*
  3048. * R1059 (0x423) - Noise Gate Select 3L
  3049. */
  3050. #define ARIZONA_OUT3_NGATE_SRC_MASK 0x0FFF /* OUT3_NGATE_SRC - [11:0] */
  3051. #define ARIZONA_OUT3_NGATE_SRC_SHIFT 0 /* OUT3_NGATE_SRC - [11:0] */
  3052. #define ARIZONA_OUT3_NGATE_SRC_WIDTH 12 /* OUT3_NGATE_SRC - [11:0] */
  3053. /*
  3054. * R1060 (0x424) - Output Path Config 3R
  3055. */
  3056. #define ARIZONA_OUT3R_PGA_VOL_MASK 0x00FE /* OUT3R_PGA_VOL - [7:1] */
  3057. #define ARIZONA_OUT3R_PGA_VOL_SHIFT 1 /* OUT3R_PGA_VOL - [7:1] */
  3058. #define ARIZONA_OUT3R_PGA_VOL_WIDTH 7 /* OUT3R_PGA_VOL - [7:1] */
  3059. /*
  3060. * R1061 (0x425) - DAC Digital Volume 3R
  3061. */
  3062. #define ARIZONA_OUT_VU 0x0200 /* OUT_VU */
  3063. #define ARIZONA_OUT_VU_MASK 0x0200 /* OUT_VU */
  3064. #define ARIZONA_OUT_VU_SHIFT 9 /* OUT_VU */
  3065. #define ARIZONA_OUT_VU_WIDTH 1 /* OUT_VU */
  3066. #define ARIZONA_OUT3R_MUTE 0x0100 /* OUT3R_MUTE */
  3067. #define ARIZONA_OUT3R_MUTE_MASK 0x0100 /* OUT3R_MUTE */
  3068. #define ARIZONA_OUT3R_MUTE_SHIFT 8 /* OUT3R_MUTE */
  3069. #define ARIZONA_OUT3R_MUTE_WIDTH 1 /* OUT3R_MUTE */
  3070. #define ARIZONA_OUT3R_VOL_MASK 0x00FF /* OUT3R_VOL - [7:0] */
  3071. #define ARIZONA_OUT3R_VOL_SHIFT 0 /* OUT3R_VOL - [7:0] */
  3072. #define ARIZONA_OUT3R_VOL_WIDTH 8 /* OUT3R_VOL - [7:0] */
  3073. /*
  3074. * R1062 (0x426) - DAC Volume Limit 3R
  3075. */
  3076. #define ARIZONA_OUT3R_ANC_SRC_MASK 0x0C00 /* OUT3R_ANC_SRC - [11:10] */
  3077. #define ARIZONA_OUT3R_ANC_SRC_SHIFT 10 /* OUT3R_ANC_SRC - [11:10] */
  3078. #define ARIZONA_OUT3R_ANC_SRC_WIDTH 2 /* OUT3R_ANC_SRC - [11:10] */
  3079. #define ARIZONA_OUT3R_VOL_LIM_MASK 0x00FF /* OUT3R_VOL_LIM - [7:0] */
  3080. #define ARIZONA_OUT3R_VOL_LIM_SHIFT 0 /* OUT3R_VOL_LIM - [7:0] */
  3081. #define ARIZONA_OUT3R_VOL_LIM_WIDTH 8 /* OUT3R_VOL_LIM - [7:0] */
  3082. /*
  3083. * R1064 (0x428) - Output Path Config 4L
  3084. */
  3085. #define ARIZONA_OUT4_OSR 0x2000 /* OUT4_OSR */
  3086. #define ARIZONA_OUT4_OSR_MASK 0x2000 /* OUT4_OSR */
  3087. #define ARIZONA_OUT4_OSR_SHIFT 13 /* OUT4_OSR */
  3088. #define ARIZONA_OUT4_OSR_WIDTH 1 /* OUT4_OSR */
  3089. #define ARIZONA_OUT4L_ANC_SRC_MASK 0x0C00 /* OUT4L_ANC_SRC - [11:10] */
  3090. #define ARIZONA_OUT4L_ANC_SRC_SHIFT 10 /* OUT4L_ANC_SRC - [11:10] */
  3091. #define ARIZONA_OUT4L_ANC_SRC_WIDTH 2 /* OUT4L_ANC_SRC - [11:10] */
  3092. /*
  3093. * R1065 (0x429) - DAC Digital Volume 4L
  3094. */
  3095. #define ARIZONA_OUT_VU 0x0200 /* OUT_VU */
  3096. #define ARIZONA_OUT_VU_MASK 0x0200 /* OUT_VU */
  3097. #define ARIZONA_OUT_VU_SHIFT 9 /* OUT_VU */
  3098. #define ARIZONA_OUT_VU_WIDTH 1 /* OUT_VU */
  3099. #define ARIZONA_OUT4L_MUTE 0x0100 /* OUT4L_MUTE */
  3100. #define ARIZONA_OUT4L_MUTE_MASK 0x0100 /* OUT4L_MUTE */
  3101. #define ARIZONA_OUT4L_MUTE_SHIFT 8 /* OUT4L_MUTE */
  3102. #define ARIZONA_OUT4L_MUTE_WIDTH 1 /* OUT4L_MUTE */
  3103. #define ARIZONA_OUT4L_VOL_MASK 0x00FF /* OUT4L_VOL - [7:0] */
  3104. #define ARIZONA_OUT4L_VOL_SHIFT 0 /* OUT4L_VOL - [7:0] */
  3105. #define ARIZONA_OUT4L_VOL_WIDTH 8 /* OUT4L_VOL - [7:0] */
  3106. /*
  3107. * R1066 (0x42A) - Out Volume 4L
  3108. */
  3109. #define ARIZONA_OUT4L_VOL_LIM_MASK 0x00FF /* OUT4L_VOL_LIM - [7:0] */
  3110. #define ARIZONA_OUT4L_VOL_LIM_SHIFT 0 /* OUT4L_VOL_LIM - [7:0] */
  3111. #define ARIZONA_OUT4L_VOL_LIM_WIDTH 8 /* OUT4L_VOL_LIM - [7:0] */
  3112. /*
  3113. * R1067 (0x42B) - Noise Gate Select 4L
  3114. */
  3115. #define ARIZONA_OUT4L_NGATE_SRC_MASK 0x0FFF /* OUT4L_NGATE_SRC - [11:0] */
  3116. #define ARIZONA_OUT4L_NGATE_SRC_SHIFT 0 /* OUT4L_NGATE_SRC - [11:0] */
  3117. #define ARIZONA_OUT4L_NGATE_SRC_WIDTH 12 /* OUT4L_NGATE_SRC - [11:0] */
  3118. /*
  3119. * R1068 (0x42C) - Output Path Config 4R
  3120. */
  3121. #define ARIZONA_OUT4R_ANC_SRC_MASK 0x0C00 /* OUT4R_ANC_SRC - [11:10] */
  3122. #define ARIZONA_OUT4R_ANC_SRC_SHIFT 10 /* OUT4R_ANC_SRC - [11:10] */
  3123. #define ARIZONA_OUT4R_ANC_SRC_WIDTH 2 /* OUT4R_ANC_SRC - [11:10] */
  3124. /*
  3125. * R1069 (0x42D) - DAC Digital Volume 4R
  3126. */
  3127. #define ARIZONA_OUT_VU 0x0200 /* OUT_VU */
  3128. #define ARIZONA_OUT_VU_MASK 0x0200 /* OUT_VU */
  3129. #define ARIZONA_OUT_VU_SHIFT 9 /* OUT_VU */
  3130. #define ARIZONA_OUT_VU_WIDTH 1 /* OUT_VU */
  3131. #define ARIZONA_OUT4R_MUTE 0x0100 /* OUT4R_MUTE */
  3132. #define ARIZONA_OUT4R_MUTE_MASK 0x0100 /* OUT4R_MUTE */
  3133. #define ARIZONA_OUT4R_MUTE_SHIFT 8 /* OUT4R_MUTE */
  3134. #define ARIZONA_OUT4R_MUTE_WIDTH 1 /* OUT4R_MUTE */
  3135. #define ARIZONA_OUT4R_VOL_MASK 0x00FF /* OUT4R_VOL - [7:0] */
  3136. #define ARIZONA_OUT4R_VOL_SHIFT 0 /* OUT4R_VOL - [7:0] */
  3137. #define ARIZONA_OUT4R_VOL_WIDTH 8 /* OUT4R_VOL - [7:0] */
  3138. /*
  3139. * R1070 (0x42E) - Out Volume 4R
  3140. */
  3141. #define ARIZONA_OUT4R_VOL_LIM_MASK 0x00FF /* OUT4R_VOL_LIM - [7:0] */
  3142. #define ARIZONA_OUT4R_VOL_LIM_SHIFT 0 /* OUT4R_VOL_LIM - [7:0] */
  3143. #define ARIZONA_OUT4R_VOL_LIM_WIDTH 8 /* OUT4R_VOL_LIM - [7:0] */
  3144. /*
  3145. * R1071 (0x42F) - Noise Gate Select 4R
  3146. */
  3147. #define ARIZONA_OUT4R_NGATE_SRC_MASK 0x0FFF /* OUT4R_NGATE_SRC - [11:0] */
  3148. #define ARIZONA_OUT4R_NGATE_SRC_SHIFT 0 /* OUT4R_NGATE_SRC - [11:0] */
  3149. #define ARIZONA_OUT4R_NGATE_SRC_WIDTH 12 /* OUT4R_NGATE_SRC - [11:0] */
  3150. /*
  3151. * R1072 (0x430) - Output Path Config 5L
  3152. */
  3153. #define ARIZONA_OUT5_OSR 0x2000 /* OUT5_OSR */
  3154. #define ARIZONA_OUT5_OSR_MASK 0x2000 /* OUT5_OSR */
  3155. #define ARIZONA_OUT5_OSR_SHIFT 13 /* OUT5_OSR */
  3156. #define ARIZONA_OUT5_OSR_WIDTH 1 /* OUT5_OSR */
  3157. #define ARIZONA_OUT5L_ANC_SRC_MASK 0x0C00 /* OUT5L_ANC_SRC - [11:10] */
  3158. #define ARIZONA_OUT5L_ANC_SRC_SHIFT 10 /* OUT5L_ANC_SRC - [11:10] */
  3159. #define ARIZONA_OUT5L_ANC_SRC_WIDTH 2 /* OUT5L_ANC_SRC - [11:10] */
  3160. /*
  3161. * R1073 (0x431) - DAC Digital Volume 5L
  3162. */
  3163. #define ARIZONA_OUT_VU 0x0200 /* OUT_VU */
  3164. #define ARIZONA_OUT_VU_MASK 0x0200 /* OUT_VU */
  3165. #define ARIZONA_OUT_VU_SHIFT 9 /* OUT_VU */
  3166. #define ARIZONA_OUT_VU_WIDTH 1 /* OUT_VU */
  3167. #define ARIZONA_OUT5L_MUTE 0x0100 /* OUT5L_MUTE */
  3168. #define ARIZONA_OUT5L_MUTE_MASK 0x0100 /* OUT5L_MUTE */
  3169. #define ARIZONA_OUT5L_MUTE_SHIFT 8 /* OUT5L_MUTE */
  3170. #define ARIZONA_OUT5L_MUTE_WIDTH 1 /* OUT5L_MUTE */
  3171. #define ARIZONA_OUT5L_VOL_MASK 0x00FF /* OUT5L_VOL - [7:0] */
  3172. #define ARIZONA_OUT5L_VOL_SHIFT 0 /* OUT5L_VOL - [7:0] */
  3173. #define ARIZONA_OUT5L_VOL_WIDTH 8 /* OUT5L_VOL - [7:0] */
  3174. /*
  3175. * R1074 (0x432) - DAC Volume Limit 5L
  3176. */
  3177. #define ARIZONA_OUT5L_VOL_LIM_MASK 0x00FF /* OUT5L_VOL_LIM - [7:0] */
  3178. #define ARIZONA_OUT5L_VOL_LIM_SHIFT 0 /* OUT5L_VOL_LIM - [7:0] */
  3179. #define ARIZONA_OUT5L_VOL_LIM_WIDTH 8 /* OUT5L_VOL_LIM - [7:0] */
  3180. /*
  3181. * R1075 (0x433) - Noise Gate Select 5L
  3182. */
  3183. #define ARIZONA_OUT5L_NGATE_SRC_MASK 0x0FFF /* OUT5L_NGATE_SRC - [11:0] */
  3184. #define ARIZONA_OUT5L_NGATE_SRC_SHIFT 0 /* OUT5L_NGATE_SRC - [11:0] */
  3185. #define ARIZONA_OUT5L_NGATE_SRC_WIDTH 12 /* OUT5L_NGATE_SRC - [11:0] */
  3186. /*
  3187. * R1076 (0x434) - Output Path Config 5R
  3188. */
  3189. #define ARIZONA_OUT5R_ANC_SRC_MASK 0x0C00 /* OUT5R_ANC_SRC - [11:10] */
  3190. #define ARIZONA_OUT5R_ANC_SRC_SHIFT 10 /* OUT5R_ANC_SRC - [11:10] */
  3191. #define ARIZONA_OUT5R_ANC_SRC_WIDTH 2 /* OUT5R_ANC_SRC - [11:10] */
  3192. /*
  3193. * R1077 (0x435) - DAC Digital Volume 5R
  3194. */
  3195. #define ARIZONA_OUT_VU 0x0200 /* OUT_VU */
  3196. #define ARIZONA_OUT_VU_MASK 0x0200 /* OUT_VU */
  3197. #define ARIZONA_OUT_VU_SHIFT 9 /* OUT_VU */
  3198. #define ARIZONA_OUT_VU_WIDTH 1 /* OUT_VU */
  3199. #define ARIZONA_OUT5R_MUTE 0x0100 /* OUT5R_MUTE */
  3200. #define ARIZONA_OUT5R_MUTE_MASK 0x0100 /* OUT5R_MUTE */
  3201. #define ARIZONA_OUT5R_MUTE_SHIFT 8 /* OUT5R_MUTE */
  3202. #define ARIZONA_OUT5R_MUTE_WIDTH 1 /* OUT5R_MUTE */
  3203. #define ARIZONA_OUT5R_VOL_MASK 0x00FF /* OUT5R_VOL - [7:0] */
  3204. #define ARIZONA_OUT5R_VOL_SHIFT 0 /* OUT5R_VOL - [7:0] */
  3205. #define ARIZONA_OUT5R_VOL_WIDTH 8 /* OUT5R_VOL - [7:0] */
  3206. /*
  3207. * R1078 (0x436) - DAC Volume Limit 5R
  3208. */
  3209. #define ARIZONA_OUT5R_VOL_LIM_MASK 0x00FF /* OUT5R_VOL_LIM - [7:0] */
  3210. #define ARIZONA_OUT5R_VOL_LIM_SHIFT 0 /* OUT5R_VOL_LIM - [7:0] */
  3211. #define ARIZONA_OUT5R_VOL_LIM_WIDTH 8 /* OUT5R_VOL_LIM - [7:0] */
  3212. /*
  3213. * R1079 (0x437) - Noise Gate Select 5R
  3214. */
  3215. #define ARIZONA_OUT5R_NGATE_SRC_MASK 0x0FFF /* OUT5R_NGATE_SRC - [11:0] */
  3216. #define ARIZONA_OUT5R_NGATE_SRC_SHIFT 0 /* OUT5R_NGATE_SRC - [11:0] */
  3217. #define ARIZONA_OUT5R_NGATE_SRC_WIDTH 12 /* OUT5R_NGATE_SRC - [11:0] */
  3218. /*
  3219. * R1080 (0x438) - Output Path Config 6L
  3220. */
  3221. #define ARIZONA_OUT6_OSR 0x2000 /* OUT6_OSR */
  3222. #define ARIZONA_OUT6_OSR_MASK 0x2000 /* OUT6_OSR */
  3223. #define ARIZONA_OUT6_OSR_SHIFT 13 /* OUT6_OSR */
  3224. #define ARIZONA_OUT6_OSR_WIDTH 1 /* OUT6_OSR */
  3225. #define ARIZONA_OUT6L_ANC_SRC_MASK 0x0C00 /* OUT6L_ANC_SRC - [11:10] */
  3226. #define ARIZONA_OUT6L_ANC_SRC_SHIFT 10 /* OUT6L_ANC_SRC - [11:10] */
  3227. #define ARIZONA_OUT6L_ANC_SRC_WIDTH 2 /* OUT6L_ANC_SRC - [11:10] */
  3228. /*
  3229. * R1081 (0x439) - DAC Digital Volume 6L
  3230. */
  3231. #define ARIZONA_OUT_VU 0x0200 /* OUT_VU */
  3232. #define ARIZONA_OUT_VU_MASK 0x0200 /* OUT_VU */
  3233. #define ARIZONA_OUT_VU_SHIFT 9 /* OUT_VU */
  3234. #define ARIZONA_OUT_VU_WIDTH 1 /* OUT_VU */
  3235. #define ARIZONA_OUT6L_MUTE 0x0100 /* OUT6L_MUTE */
  3236. #define ARIZONA_OUT6L_MUTE_MASK 0x0100 /* OUT6L_MUTE */
  3237. #define ARIZONA_OUT6L_MUTE_SHIFT 8 /* OUT6L_MUTE */
  3238. #define ARIZONA_OUT6L_MUTE_WIDTH 1 /* OUT6L_MUTE */
  3239. #define ARIZONA_OUT6L_VOL_MASK 0x00FF /* OUT6L_VOL - [7:0] */
  3240. #define ARIZONA_OUT6L_VOL_SHIFT 0 /* OUT6L_VOL - [7:0] */
  3241. #define ARIZONA_OUT6L_VOL_WIDTH 8 /* OUT6L_VOL - [7:0] */
  3242. /*
  3243. * R1082 (0x43A) - DAC Volume Limit 6L
  3244. */
  3245. #define ARIZONA_OUT6L_VOL_LIM_MASK 0x00FF /* OUT6L_VOL_LIM - [7:0] */
  3246. #define ARIZONA_OUT6L_VOL_LIM_SHIFT 0 /* OUT6L_VOL_LIM - [7:0] */
  3247. #define ARIZONA_OUT6L_VOL_LIM_WIDTH 8 /* OUT6L_VOL_LIM - [7:0] */
  3248. /*
  3249. * R1083 (0x43B) - Noise Gate Select 6L
  3250. */
  3251. #define ARIZONA_OUT6L_NGATE_SRC_MASK 0x0FFF /* OUT6L_NGATE_SRC - [11:0] */
  3252. #define ARIZONA_OUT6L_NGATE_SRC_SHIFT 0 /* OUT6L_NGATE_SRC - [11:0] */
  3253. #define ARIZONA_OUT6L_NGATE_SRC_WIDTH 12 /* OUT6L_NGATE_SRC - [11:0] */
  3254. /*
  3255. * R1084 (0x43C) - Output Path Config 6R
  3256. */
  3257. #define ARIZONA_OUT6R_ANC_SRC_MASK 0x0C00 /* OUT6R_ANC_SRC - [11:10] */
  3258. #define ARIZONA_OUT6R_ANC_SRC_SHIFT 10 /* OUT6R_ANC_SRC - [11:10] */
  3259. #define ARIZONA_OUT6R_ANC_SRC_WIDTH 2 /* OUT6R_ANC_SRC - [11:10] */
  3260. /*
  3261. * R1085 (0x43D) - DAC Digital Volume 6R
  3262. */
  3263. #define ARIZONA_OUT_VU 0x0200 /* OUT_VU */
  3264. #define ARIZONA_OUT_VU_MASK 0x0200 /* OUT_VU */
  3265. #define ARIZONA_OUT_VU_SHIFT 9 /* OUT_VU */
  3266. #define ARIZONA_OUT_VU_WIDTH 1 /* OUT_VU */
  3267. #define ARIZONA_OUT6R_MUTE 0x0100 /* OUT6R_MUTE */
  3268. #define ARIZONA_OUT6R_MUTE_MASK 0x0100 /* OUT6R_MUTE */
  3269. #define ARIZONA_OUT6R_MUTE_SHIFT 8 /* OUT6R_MUTE */
  3270. #define ARIZONA_OUT6R_MUTE_WIDTH 1 /* OUT6R_MUTE */
  3271. #define ARIZONA_OUT6R_VOL_MASK 0x00FF /* OUT6R_VOL - [7:0] */
  3272. #define ARIZONA_OUT6R_VOL_SHIFT 0 /* OUT6R_VOL - [7:0] */
  3273. #define ARIZONA_OUT6R_VOL_WIDTH 8 /* OUT6R_VOL - [7:0] */
  3274. /*
  3275. * R1086 (0x43E) - DAC Volume Limit 6R
  3276. */
  3277. #define ARIZONA_OUT6R_VOL_LIM_MASK 0x00FF /* OUT6R_VOL_LIM - [7:0] */
  3278. #define ARIZONA_OUT6R_VOL_LIM_SHIFT 0 /* OUT6R_VOL_LIM - [7:0] */
  3279. #define ARIZONA_OUT6R_VOL_LIM_WIDTH 8 /* OUT6R_VOL_LIM - [7:0] */
  3280. /*
  3281. * R1087 (0x43F) - Noise Gate Select 6R
  3282. */
  3283. #define ARIZONA_OUT6R_NGATE_SRC_MASK 0x0FFF /* OUT6R_NGATE_SRC - [11:0] */
  3284. #define ARIZONA_OUT6R_NGATE_SRC_SHIFT 0 /* OUT6R_NGATE_SRC - [11:0] */
  3285. #define ARIZONA_OUT6R_NGATE_SRC_WIDTH 12 /* OUT6R_NGATE_SRC - [11:0] */
  3286. /*
  3287. * R1088 (0x440) - DRE Enable
  3288. */
  3289. #define ARIZONA_DRE3R_ENA 0x0020 /* DRE3R_ENA */
  3290. #define ARIZONA_DRE3R_ENA_MASK 0x0020 /* DRE3R_ENA */
  3291. #define ARIZONA_DRE3R_ENA_SHIFT 5 /* DRE3R_ENA */
  3292. #define ARIZONA_DRE3R_ENA_WIDTH 1 /* DRE3R_ENA */
  3293. #define ARIZONA_DRE3L_ENA 0x0010 /* DRE3L_ENA */
  3294. #define ARIZONA_DRE3L_ENA_MASK 0x0010 /* DRE3L_ENA */
  3295. #define ARIZONA_DRE3L_ENA_SHIFT 4 /* DRE3L_ENA */
  3296. #define ARIZONA_DRE3L_ENA_WIDTH 1 /* DRE3L_ENA */
  3297. #define ARIZONA_DRE2R_ENA 0x0008 /* DRE2R_ENA */
  3298. #define ARIZONA_DRE2R_ENA_MASK 0x0008 /* DRE2R_ENA */
  3299. #define ARIZONA_DRE2R_ENA_SHIFT 3 /* DRE2R_ENA */
  3300. #define ARIZONA_DRE2R_ENA_WIDTH 1 /* DRE2R_ENA */
  3301. #define ARIZONA_DRE2L_ENA 0x0004 /* DRE2L_ENA */
  3302. #define ARIZONA_DRE2L_ENA_MASK 0x0004 /* DRE2L_ENA */
  3303. #define ARIZONA_DRE2L_ENA_SHIFT 2 /* DRE2L_ENA */
  3304. #define ARIZONA_DRE2L_ENA_WIDTH 1 /* DRE2L_ENA */
  3305. #define ARIZONA_DRE1R_ENA 0x0002 /* DRE1R_ENA */
  3306. #define ARIZONA_DRE1R_ENA_MASK 0x0002 /* DRE1R_ENA */
  3307. #define ARIZONA_DRE1R_ENA_SHIFT 1 /* DRE1R_ENA */
  3308. #define ARIZONA_DRE1R_ENA_WIDTH 1 /* DRE1R_ENA */
  3309. #define ARIZONA_DRE1L_ENA 0x0001 /* DRE1L_ENA */
  3310. #define ARIZONA_DRE1L_ENA_MASK 0x0001 /* DRE1L_ENA */
  3311. #define ARIZONA_DRE1L_ENA_SHIFT 0 /* DRE1L_ENA */
  3312. #define ARIZONA_DRE1L_ENA_WIDTH 1 /* DRE1L_ENA */
  3313. /*
  3314. * R1088 (0x440) - DRE Enable (WM8998)
  3315. */
  3316. #define WM8998_DRE3L_ENA 0x0020 /* DRE3L_ENA */
  3317. #define WM8998_DRE3L_ENA_MASK 0x0020 /* DRE3L_ENA */
  3318. #define WM8998_DRE3L_ENA_SHIFT 5 /* DRE3L_ENA */
  3319. #define WM8998_DRE3L_ENA_WIDTH 1 /* DRE3L_ENA */
  3320. #define WM8998_DRE2L_ENA 0x0008 /* DRE2L_ENA */
  3321. #define WM8998_DRE2L_ENA_MASK 0x0008 /* DRE2L_ENA */
  3322. #define WM8998_DRE2L_ENA_SHIFT 3 /* DRE2L_ENA */
  3323. #define WM8998_DRE2L_ENA_WIDTH 1 /* DRE2L_ENA */
  3324. #define WM8998_DRE2R_ENA 0x0004 /* DRE2R_ENA */
  3325. #define WM8998_DRE2R_ENA_MASK 0x0004 /* DRE2R_ENA */
  3326. #define WM8998_DRE2R_ENA_SHIFT 2 /* DRE2R_ENA */
  3327. #define WM8998_DRE2R_ENA_WIDTH 1 /* DRE2R_ENA */
  3328. #define WM8998_DRE1L_ENA 0x0002 /* DRE1L_ENA */
  3329. #define WM8998_DRE1L_ENA_MASK 0x0002 /* DRE1L_ENA */
  3330. #define WM8998_DRE1L_ENA_SHIFT 1 /* DRE1L_ENA */
  3331. #define WM8998_DRE1L_ENA_WIDTH 1 /* DRE1L_ENA */
  3332. #define WM8998_DRE1R_ENA 0x0001 /* DRE1R_ENA */
  3333. #define WM8998_DRE1R_ENA_MASK 0x0001 /* DRE1R_ENA */
  3334. #define WM8998_DRE1R_ENA_SHIFT 0 /* DRE1R_ENA */
  3335. #define WM8998_DRE1R_ENA_WIDTH 1 /* DRE1R_ENA */
  3336. /*
  3337. * R1089 (0x441) - DRE Control 1
  3338. */
  3339. #define ARIZONA_DRE_ENV_TC_FAST_MASK 0x0F00 /* DRE_ENV_TC_FAST - [11:8] */
  3340. #define ARIZONA_DRE_ENV_TC_FAST_SHIFT 8 /* DRE_ENV_TC_FAST - [11:8] */
  3341. #define ARIZONA_DRE_ENV_TC_FAST_WIDTH 4 /* DRE_ENV_TC_FAST - [11:8] */
  3342. /*
  3343. * R1090 (0x442) - DRE Control 2
  3344. */
  3345. #define ARIZONA_DRE_T_LOW_MASK 0x3F00 /* DRE_T_LOW - [13:8] */
  3346. #define ARIZONA_DRE_T_LOW_SHIFT 8 /* DRE_T_LOW - [13:8] */
  3347. #define ARIZONA_DRE_T_LOW_WIDTH 6 /* DRE_T_LOW - [13:8] */
  3348. #define ARIZONA_DRE_ALOG_VOL_DELAY_MASK 0x000F /* DRE_ALOG_VOL_DELAY - [3:0] */
  3349. #define ARIZONA_DRE_ALOG_VOL_DELAY_SHIFT 0 /* DRE_ALOG_VOL_DELAY - [3:0] */
  3350. #define ARIZONA_DRE_ALOG_VOL_DELAY_WIDTH 4 /* DRE_ALOG_VOL_DELAY - [3:0] */
  3351. /*
  3352. * R1091 (0x443) - DRE Control 3
  3353. */
  3354. #define ARIZONA_DRE_GAIN_SHIFT_MASK 0xC000 /* DRE_GAIN_SHIFT - [15:14] */
  3355. #define ARIZONA_DRE_GAIN_SHIFT_SHIFT 14 /* DRE_GAIN_SHIFT - [15:14] */
  3356. #define ARIZONA_DRE_GAIN_SHIFT_WIDTH 2 /* DRE_GAIN_SHIFT - [15:14] */
  3357. #define ARIZONA_DRE_LOW_LEVEL_ABS_MASK 0x000F /* LOW_LEVEL_ABS - [3:0] */
  3358. #define ARIZONA_DRE_LOW_LEVEL_ABS_SHIFT 0 /* LOW_LEVEL_ABS - [3:0] */
  3359. #define ARIZONA_DRE_LOW_LEVEL_ABS_WIDTH 4 /* LOW_LEVEL_ABS - [3:0] */
  3360. /* R486 (0x448) - EDRE_Enable
  3361. */
  3362. #define ARIZONA_EDRE_OUT4L_THR2_ENA 0x0200 /* EDRE_OUT4L_THR2_ENA */
  3363. #define ARIZONA_EDRE_OUT4L_THR2_ENA_MASK 0x0200 /* EDRE_OUT4L_THR2_ENA */
  3364. #define ARIZONA_EDRE_OUT4L_THR2_ENA_SHIFT 9 /* EDRE_OUT4L_THR2_ENA */
  3365. #define ARIZONA_EDRE_OUT4L_THR2_ENA_WIDTH 1 /* EDRE_OUT4L_THR2_ENA */
  3366. #define ARIZONA_EDRE_OUT4R_THR2_ENA 0x0100 /* EDRE_OUT4R_THR2_ENA */
  3367. #define ARIZONA_EDRE_OUT4R_THR2_ENA_MASK 0x0100 /* EDRE_OUT4R_THR2_ENA */
  3368. #define ARIZONA_EDRE_OUT4R_THR2_ENA_SHIFT 8 /* EDRE_OUT4R_THR2_ENA */
  3369. #define ARIZONA_EDRE_OUT4R_THR2_ENA_WIDTH 1 /* EDRE_OUT4R_THR2_ENA */
  3370. #define ARIZONA_EDRE_OUT4L_THR1_ENA 0x0080 /* EDRE_OUT4L_THR1_ENA */
  3371. #define ARIZONA_EDRE_OUT4L_THR1_ENA_MASK 0x0080 /* EDRE_OUT4L_THR1_ENA */
  3372. #define ARIZONA_EDRE_OUT4L_THR1_ENA_SHIFT 7 /* EDRE_OUT4L_THR1_ENA */
  3373. #define ARIZONA_EDRE_OUT4L_THR1_ENA_WIDTH 1 /* EDRE_OUT4L_THR1_ENA */
  3374. #define ARIZONA_EDRE_OUT4R_THR1_ENA 0x0040 /* EDRE_OUT4R_THR1_ENA */
  3375. #define ARIZONA_EDRE_OUT4R_THR1_ENA_MASK 0x0040 /* EDRE_OUT4R_THR1_ENA */
  3376. #define ARIZONA_EDRE_OUT4R_THR1_ENA_SHIFT 6 /* EDRE_OUT4R_THR1_ENA */
  3377. #define ARIZONA_EDRE_OUT4R_THR1_ENA_WIDTH 1 /* EDRE_OUT4R_THR1_ENA */
  3378. #define ARIZONA_EDRE_OUT3L_THR1_ENA 0x0020 /* EDRE_OUT3L_THR1_ENA */
  3379. #define ARIZONA_EDRE_OUT3L_THR1_ENA_MASK 0x0020 /* EDRE_OUT3L_THR1_ENA */
  3380. #define ARIZONA_EDRE_OUT3L_THR1_ENA_SHIFT 5 /* EDRE_OUT3L_THR1_ENA */
  3381. #define ARIZONA_EDRE_OUT3L_THR1_ENA_WIDTH 1 /* EDRE_OUT3L_THR1_ENA */
  3382. #define ARIZONA_EDRE_OUT3R_THR1_ENA 0x0010 /* EDRE_OUT3R_THR1_ENA */
  3383. #define ARIZONA_EDRE_OUT3R_THR1_ENA_MASK 0x0010 /* EDRE_OUT3R_THR1_ENA */
  3384. #define ARIZONA_EDRE_OUT3R_THR1_ENA_SHIFT 4 /* EDRE_OUT3R_THR1_ENA */
  3385. #define ARIZONA_EDRE_OUT3R_THR1_ENA_WIDTH 1 /* EDRE_OUT3R_THR1_ENA */
  3386. #define ARIZONA_EDRE_OUT2L_THR1_ENA 0x0008 /* EDRE_OUT2L_THR1_ENA */
  3387. #define ARIZONA_EDRE_OUT2L_THR1_ENA_MASK 0x0008 /* EDRE_OUT2L_THR1_ENA */
  3388. #define ARIZONA_EDRE_OUT2L_THR1_ENA_SHIFT 3 /* EDRE_OUT2L_THR1_ENA */
  3389. #define ARIZONA_EDRE_OUT2L_THR1_ENA_WIDTH 1 /* EDRE_OUT2L_THR1_ENA */
  3390. #define ARIZONA_EDRE_OUT2R_THR1_ENA 0x0004 /* EDRE_OUT2R_THR1_ENA */
  3391. #define ARIZONA_EDRE_OUT2R_THR1_ENA_MASK 0x0004 /* EDRE_OUT2R_THR1_ENA */
  3392. #define ARIZONA_EDRE_OUT2R_THR1_ENA_SHIFT 2 /* EDRE_OUT2R_THR1_ENA */
  3393. #define ARIZONA_EDRE_OUT2R_THR1_ENA_WIDTH 1 /* EDRE_OUT2R_THR1_ENA */
  3394. #define ARIZONA_EDRE_OUT1L_THR1_ENA 0x0002 /* EDRE_OUT1L_THR1_ENA */
  3395. #define ARIZONA_EDRE_OUT1L_THR1_ENA_MASK 0x0002 /* EDRE_OUT1L_THR1_ENA */
  3396. #define ARIZONA_EDRE_OUT1L_THR1_ENA_SHIFT 1 /* EDRE_OUT1L_THR1_ENA */
  3397. #define ARIZONA_EDRE_OUT1L_THR1_ENA_WIDTH 1 /* EDRE_OUT1L_THR1_ENA */
  3398. #define ARIZONA_EDRE_OUT1R_THR1_ENA 0x0001 /* EDRE_OUT1R_THR1_ENA */
  3399. #define ARIZONA_EDRE_OUT1R_THR1_ENA_MASK 0x0001 /* EDRE_OUT1R_THR1_ENA */
  3400. #define ARIZONA_EDRE_OUT1R_THR1_ENA_SHIFT 0 /* EDRE_OUT1R_THR1_ENA */
  3401. #define ARIZONA_EDRE_OUT1R_THR1_ENA_WIDTH 1 /* EDRE_OUT1R_THR1_ENA */
  3402. /*
  3403. * R1104 (0x450) - DAC AEC Control 1
  3404. */
  3405. #define ARIZONA_AEC_LOOPBACK_SRC_MASK 0x003C /* AEC_LOOPBACK_SRC - [5:2] */
  3406. #define ARIZONA_AEC_LOOPBACK_SRC_SHIFT 2 /* AEC_LOOPBACK_SRC - [5:2] */
  3407. #define ARIZONA_AEC_LOOPBACK_SRC_WIDTH 4 /* AEC_LOOPBACK_SRC - [5:2] */
  3408. #define ARIZONA_AEC_ENA_STS 0x0002 /* AEC_ENA_STS */
  3409. #define ARIZONA_AEC_ENA_STS_MASK 0x0002 /* AEC_ENA_STS */
  3410. #define ARIZONA_AEC_ENA_STS_SHIFT 1 /* AEC_ENA_STS */
  3411. #define ARIZONA_AEC_ENA_STS_WIDTH 1 /* AEC_ENA_STS */
  3412. #define ARIZONA_AEC_LOOPBACK_ENA 0x0001 /* AEC_LOOPBACK_ENA */
  3413. #define ARIZONA_AEC_LOOPBACK_ENA_MASK 0x0001 /* AEC_LOOPBACK_ENA */
  3414. #define ARIZONA_AEC_LOOPBACK_ENA_SHIFT 0 /* AEC_LOOPBACK_ENA */
  3415. #define ARIZONA_AEC_LOOPBACK_ENA_WIDTH 1 /* AEC_LOOPBACK_ENA */
  3416. /*
  3417. * R1112 (0x458) - Noise Gate Control
  3418. */
  3419. #define ARIZONA_NGATE_HOLD_MASK 0x0030 /* NGATE_HOLD - [5:4] */
  3420. #define ARIZONA_NGATE_HOLD_SHIFT 4 /* NGATE_HOLD - [5:4] */
  3421. #define ARIZONA_NGATE_HOLD_WIDTH 2 /* NGATE_HOLD - [5:4] */
  3422. #define ARIZONA_NGATE_THR_MASK 0x000E /* NGATE_THR - [3:1] */
  3423. #define ARIZONA_NGATE_THR_SHIFT 1 /* NGATE_THR - [3:1] */
  3424. #define ARIZONA_NGATE_THR_WIDTH 3 /* NGATE_THR - [3:1] */
  3425. #define ARIZONA_NGATE_ENA 0x0001 /* NGATE_ENA */
  3426. #define ARIZONA_NGATE_ENA_MASK 0x0001 /* NGATE_ENA */
  3427. #define ARIZONA_NGATE_ENA_SHIFT 0 /* NGATE_ENA */
  3428. #define ARIZONA_NGATE_ENA_WIDTH 1 /* NGATE_ENA */
  3429. /*
  3430. * R1168 (0x490) - PDM SPK1 CTRL 1
  3431. */
  3432. #define ARIZONA_SPK1R_MUTE 0x2000 /* SPK1R_MUTE */
  3433. #define ARIZONA_SPK1R_MUTE_MASK 0x2000 /* SPK1R_MUTE */
  3434. #define ARIZONA_SPK1R_MUTE_SHIFT 13 /* SPK1R_MUTE */
  3435. #define ARIZONA_SPK1R_MUTE_WIDTH 1 /* SPK1R_MUTE */
  3436. #define ARIZONA_SPK1L_MUTE 0x1000 /* SPK1L_MUTE */
  3437. #define ARIZONA_SPK1L_MUTE_MASK 0x1000 /* SPK1L_MUTE */
  3438. #define ARIZONA_SPK1L_MUTE_SHIFT 12 /* SPK1L_MUTE */
  3439. #define ARIZONA_SPK1L_MUTE_WIDTH 1 /* SPK1L_MUTE */
  3440. #define ARIZONA_SPK1_MUTE_ENDIAN 0x0100 /* SPK1_MUTE_ENDIAN */
  3441. #define ARIZONA_SPK1_MUTE_ENDIAN_MASK 0x0100 /* SPK1_MUTE_ENDIAN */
  3442. #define ARIZONA_SPK1_MUTE_ENDIAN_SHIFT 8 /* SPK1_MUTE_ENDIAN */
  3443. #define ARIZONA_SPK1_MUTE_ENDIAN_WIDTH 1 /* SPK1_MUTE_ENDIAN */
  3444. #define ARIZONA_SPK1_MUTE_SEQ1_MASK 0x00FF /* SPK1_MUTE_SEQ1 - [7:0] */
  3445. #define ARIZONA_SPK1_MUTE_SEQ1_SHIFT 0 /* SPK1_MUTE_SEQ1 - [7:0] */
  3446. #define ARIZONA_SPK1_MUTE_SEQ1_WIDTH 8 /* SPK1_MUTE_SEQ1 - [7:0] */
  3447. /*
  3448. * R1169 (0x491) - PDM SPK1 CTRL 2
  3449. */
  3450. #define ARIZONA_SPK1_FMT 0x0001 /* SPK1_FMT */
  3451. #define ARIZONA_SPK1_FMT_MASK 0x0001 /* SPK1_FMT */
  3452. #define ARIZONA_SPK1_FMT_SHIFT 0 /* SPK1_FMT */
  3453. #define ARIZONA_SPK1_FMT_WIDTH 1 /* SPK1_FMT */
  3454. /*
  3455. * R1170 (0x492) - PDM SPK2 CTRL 1
  3456. */
  3457. #define ARIZONA_SPK2R_MUTE 0x2000 /* SPK2R_MUTE */
  3458. #define ARIZONA_SPK2R_MUTE_MASK 0x2000 /* SPK2R_MUTE */
  3459. #define ARIZONA_SPK2R_MUTE_SHIFT 13 /* SPK2R_MUTE */
  3460. #define ARIZONA_SPK2R_MUTE_WIDTH 1 /* SPK2R_MUTE */
  3461. #define ARIZONA_SPK2L_MUTE 0x1000 /* SPK2L_MUTE */
  3462. #define ARIZONA_SPK2L_MUTE_MASK 0x1000 /* SPK2L_MUTE */
  3463. #define ARIZONA_SPK2L_MUTE_SHIFT 12 /* SPK2L_MUTE */
  3464. #define ARIZONA_SPK2L_MUTE_WIDTH 1 /* SPK2L_MUTE */
  3465. #define ARIZONA_SPK2_MUTE_ENDIAN 0x0100 /* SPK2_MUTE_ENDIAN */
  3466. #define ARIZONA_SPK2_MUTE_ENDIAN_MASK 0x0100 /* SPK2_MUTE_ENDIAN */
  3467. #define ARIZONA_SPK2_MUTE_ENDIAN_SHIFT 8 /* SPK2_MUTE_ENDIAN */
  3468. #define ARIZONA_SPK2_MUTE_ENDIAN_WIDTH 1 /* SPK2_MUTE_ENDIAN */
  3469. #define ARIZONA_SPK2_MUTE_SEQ_MASK 0x00FF /* SPK2_MUTE_SEQ - [7:0] */
  3470. #define ARIZONA_SPK2_MUTE_SEQ_SHIFT 0 /* SPK2_MUTE_SEQ - [7:0] */
  3471. #define ARIZONA_SPK2_MUTE_SEQ_WIDTH 8 /* SPK2_MUTE_SEQ - [7:0] */
  3472. /*
  3473. * R1171 (0x493) - PDM SPK2 CTRL 2
  3474. */
  3475. #define ARIZONA_SPK2_FMT 0x0001 /* SPK2_FMT */
  3476. #define ARIZONA_SPK2_FMT_MASK 0x0001 /* SPK2_FMT */
  3477. #define ARIZONA_SPK2_FMT_SHIFT 0 /* SPK2_FMT */
  3478. #define ARIZONA_SPK2_FMT_WIDTH 1 /* SPK2_FMT */
  3479. /*
  3480. * R1184 (0x4A0) - HP1 Short Circuit Ctrl
  3481. */
  3482. #define ARIZONA_HP1_SC_ENA 0x1000 /* HP1_SC_ENA */
  3483. #define ARIZONA_HP1_SC_ENA_MASK 0x1000 /* HP1_SC_ENA */
  3484. #define ARIZONA_HP1_SC_ENA_SHIFT 12 /* HP1_SC_ENA */
  3485. #define ARIZONA_HP1_SC_ENA_WIDTH 1 /* HP1_SC_ENA */
  3486. /*
  3487. * R1185 (0x4A1) - HP2 Short Circuit Ctrl
  3488. */
  3489. #define ARIZONA_HP2_SC_ENA 0x1000 /* HP2_SC_ENA */
  3490. #define ARIZONA_HP2_SC_ENA_MASK 0x1000 /* HP2_SC_ENA */
  3491. #define ARIZONA_HP2_SC_ENA_SHIFT 12 /* HP2_SC_ENA */
  3492. #define ARIZONA_HP2_SC_ENA_WIDTH 1 /* HP2_SC_ENA */
  3493. /*
  3494. * R1186 (0x4A2) - HP3 Short Circuit Ctrl
  3495. */
  3496. #define ARIZONA_HP3_SC_ENA 0x1000 /* HP3_SC_ENA */
  3497. #define ARIZONA_HP3_SC_ENA_MASK 0x1000 /* HP3_SC_ENA */
  3498. #define ARIZONA_HP3_SC_ENA_SHIFT 12 /* HP3_SC_ENA */
  3499. #define ARIZONA_HP3_SC_ENA_WIDTH 1 /* HP3_SC_ENA */
  3500. /*
  3501. * R1188 (0x4A4) HP Test Ctrl 1
  3502. */
  3503. #define ARIZONA_HP1_TST_CAP_SEL_MASK 0x0003 /* HP1_TST_CAP_SEL - [1:0] */
  3504. #define ARIZONA_HP1_TST_CAP_SEL_SHIFT 0 /* HP1_TST_CAP_SEL - [1:0] */
  3505. #define ARIZONA_HP1_TST_CAP_SEL_WIDTH 2 /* HP1_TST_CAP_SEL - [1:0] */
  3506. /*
  3507. * R1244 (0x4DC) - DAC comp 1
  3508. */
  3509. #define ARIZONA_OUT_COMP_COEFF_MASK 0xFFFF /* OUT_COMP_COEFF - [15:0] */
  3510. #define ARIZONA_OUT_COMP_COEFF_SHIFT 0 /* OUT_COMP_COEFF - [15:0] */
  3511. #define ARIZONA_OUT_COMP_COEFF_WIDTH 16 /* OUT_COMP_COEFF - [15:0] */
  3512. /*
  3513. * R1245 (0x4DD) - DAC comp 2
  3514. */
  3515. #define ARIZONA_OUT_COMP_COEFF_1 0x0002 /* OUT_COMP_COEFF */
  3516. #define ARIZONA_OUT_COMP_COEFF_1_MASK 0x0002 /* OUT_COMP_COEFF */
  3517. #define ARIZONA_OUT_COMP_COEFF_1_SHIFT 1 /* OUT_COMP_COEFF */
  3518. #define ARIZONA_OUT_COMP_COEFF_1_WIDTH 1 /* OUT_COMP_COEFF */
  3519. #define ARIZONA_OUT_COMP_COEFF_SEL 0x0001 /* OUT_COMP_COEFF_SEL */
  3520. #define ARIZONA_OUT_COMP_COEFF_SEL_MASK 0x0001 /* OUT_COMP_COEFF_SEL */
  3521. #define ARIZONA_OUT_COMP_COEFF_SEL_SHIFT 0 /* OUT_COMP_COEFF_SEL */
  3522. #define ARIZONA_OUT_COMP_COEFF_SEL_WIDTH 1 /* OUT_COMP_COEFF_SEL */
  3523. /*
  3524. * R1246 (0x4DE) - DAC comp 3
  3525. */
  3526. #define ARIZONA_AEC_COMP_COEFF_MASK 0xFFFF /* AEC_COMP_COEFF - [15:0] */
  3527. #define ARIZONA_AEC_COMP_COEFF_SHIFT 0 /* AEC_COMP_COEFF - [15:0] */
  3528. #define ARIZONA_AEC_COMP_COEFF_WIDTH 16 /* AEC_COMP_COEFF - [15:0] */
  3529. /*
  3530. * R1247 (0x4DF) - DAC comp 4
  3531. */
  3532. #define ARIZONA_AEC_COMP_COEFF_1 0x0002 /* AEC_COMP_COEFF */
  3533. #define ARIZONA_AEC_COMP_COEFF_1_MASK 0x0002 /* AEC_COMP_COEFF */
  3534. #define ARIZONA_AEC_COMP_COEFF_1_SHIFT 1 /* AEC_COMP_COEFF */
  3535. #define ARIZONA_AEC_COMP_COEFF_1_WIDTH 1 /* AEC_COMP_COEFF */
  3536. #define ARIZONA_AEC_COMP_COEFF_SEL 0x0001 /* AEC_COMP_COEFF_SEL */
  3537. #define ARIZONA_AEC_COMP_COEFF_SEL_MASK 0x0001 /* AEC_COMP_COEFF_SEL */
  3538. #define ARIZONA_AEC_COMP_COEFF_SEL_SHIFT 0 /* AEC_COMP_COEFF_SEL */
  3539. #define ARIZONA_AEC_COMP_COEFF_SEL_WIDTH 1 /* AEC_COMP_COEFF_SEL */
  3540. /*
  3541. * R1280 (0x500) - AIF1 BCLK Ctrl
  3542. */
  3543. #define ARIZONA_AIF1_BCLK_INV 0x0080 /* AIF1_BCLK_INV */
  3544. #define ARIZONA_AIF1_BCLK_INV_MASK 0x0080 /* AIF1_BCLK_INV */
  3545. #define ARIZONA_AIF1_BCLK_INV_SHIFT 7 /* AIF1_BCLK_INV */
  3546. #define ARIZONA_AIF1_BCLK_INV_WIDTH 1 /* AIF1_BCLK_INV */
  3547. #define ARIZONA_AIF1_BCLK_FRC 0x0040 /* AIF1_BCLK_FRC */
  3548. #define ARIZONA_AIF1_BCLK_FRC_MASK 0x0040 /* AIF1_BCLK_FRC */
  3549. #define ARIZONA_AIF1_BCLK_FRC_SHIFT 6 /* AIF1_BCLK_FRC */
  3550. #define ARIZONA_AIF1_BCLK_FRC_WIDTH 1 /* AIF1_BCLK_FRC */
  3551. #define ARIZONA_AIF1_BCLK_MSTR 0x0020 /* AIF1_BCLK_MSTR */
  3552. #define ARIZONA_AIF1_BCLK_MSTR_MASK 0x0020 /* AIF1_BCLK_MSTR */
  3553. #define ARIZONA_AIF1_BCLK_MSTR_SHIFT 5 /* AIF1_BCLK_MSTR */
  3554. #define ARIZONA_AIF1_BCLK_MSTR_WIDTH 1 /* AIF1_BCLK_MSTR */
  3555. #define ARIZONA_AIF1_BCLK_FREQ_MASK 0x001F /* AIF1_BCLK_FREQ - [4:0] */
  3556. #define ARIZONA_AIF1_BCLK_FREQ_SHIFT 0 /* AIF1_BCLK_FREQ - [4:0] */
  3557. #define ARIZONA_AIF1_BCLK_FREQ_WIDTH 5 /* AIF1_BCLK_FREQ - [4:0] */
  3558. /*
  3559. * R1281 (0x501) - AIF1 Tx Pin Ctrl
  3560. */
  3561. #define ARIZONA_AIF1TX_DAT_TRI 0x0020 /* AIF1TX_DAT_TRI */
  3562. #define ARIZONA_AIF1TX_DAT_TRI_MASK 0x0020 /* AIF1TX_DAT_TRI */
  3563. #define ARIZONA_AIF1TX_DAT_TRI_SHIFT 5 /* AIF1TX_DAT_TRI */
  3564. #define ARIZONA_AIF1TX_DAT_TRI_WIDTH 1 /* AIF1TX_DAT_TRI */
  3565. #define ARIZONA_AIF1TX_LRCLK_SRC 0x0008 /* AIF1TX_LRCLK_SRC */
  3566. #define ARIZONA_AIF1TX_LRCLK_SRC_MASK 0x0008 /* AIF1TX_LRCLK_SRC */
  3567. #define ARIZONA_AIF1TX_LRCLK_SRC_SHIFT 3 /* AIF1TX_LRCLK_SRC */
  3568. #define ARIZONA_AIF1TX_LRCLK_SRC_WIDTH 1 /* AIF1TX_LRCLK_SRC */
  3569. #define ARIZONA_AIF1TX_LRCLK_INV 0x0004 /* AIF1TX_LRCLK_INV */
  3570. #define ARIZONA_AIF1TX_LRCLK_INV_MASK 0x0004 /* AIF1TX_LRCLK_INV */
  3571. #define ARIZONA_AIF1TX_LRCLK_INV_SHIFT 2 /* AIF1TX_LRCLK_INV */
  3572. #define ARIZONA_AIF1TX_LRCLK_INV_WIDTH 1 /* AIF1TX_LRCLK_INV */
  3573. #define ARIZONA_AIF1TX_LRCLK_FRC 0x0002 /* AIF1TX_LRCLK_FRC */
  3574. #define ARIZONA_AIF1TX_LRCLK_FRC_MASK 0x0002 /* AIF1TX_LRCLK_FRC */
  3575. #define ARIZONA_AIF1TX_LRCLK_FRC_SHIFT 1 /* AIF1TX_LRCLK_FRC */
  3576. #define ARIZONA_AIF1TX_LRCLK_FRC_WIDTH 1 /* AIF1TX_LRCLK_FRC */
  3577. #define ARIZONA_AIF1TX_LRCLK_MSTR 0x0001 /* AIF1TX_LRCLK_MSTR */
  3578. #define ARIZONA_AIF1TX_LRCLK_MSTR_MASK 0x0001 /* AIF1TX_LRCLK_MSTR */
  3579. #define ARIZONA_AIF1TX_LRCLK_MSTR_SHIFT 0 /* AIF1TX_LRCLK_MSTR */
  3580. #define ARIZONA_AIF1TX_LRCLK_MSTR_WIDTH 1 /* AIF1TX_LRCLK_MSTR */
  3581. /*
  3582. * R1282 (0x502) - AIF1 Rx Pin Ctrl
  3583. */
  3584. #define ARIZONA_AIF1RX_LRCLK_INV 0x0004 /* AIF1RX_LRCLK_INV */
  3585. #define ARIZONA_AIF1RX_LRCLK_INV_MASK 0x0004 /* AIF1RX_LRCLK_INV */
  3586. #define ARIZONA_AIF1RX_LRCLK_INV_SHIFT 2 /* AIF1RX_LRCLK_INV */
  3587. #define ARIZONA_AIF1RX_LRCLK_INV_WIDTH 1 /* AIF1RX_LRCLK_INV */
  3588. #define ARIZONA_AIF1RX_LRCLK_FRC 0x0002 /* AIF1RX_LRCLK_FRC */
  3589. #define ARIZONA_AIF1RX_LRCLK_FRC_MASK 0x0002 /* AIF1RX_LRCLK_FRC */
  3590. #define ARIZONA_AIF1RX_LRCLK_FRC_SHIFT 1 /* AIF1RX_LRCLK_FRC */
  3591. #define ARIZONA_AIF1RX_LRCLK_FRC_WIDTH 1 /* AIF1RX_LRCLK_FRC */
  3592. #define ARIZONA_AIF1RX_LRCLK_MSTR 0x0001 /* AIF1RX_LRCLK_MSTR */
  3593. #define ARIZONA_AIF1RX_LRCLK_MSTR_MASK 0x0001 /* AIF1RX_LRCLK_MSTR */
  3594. #define ARIZONA_AIF1RX_LRCLK_MSTR_SHIFT 0 /* AIF1RX_LRCLK_MSTR */
  3595. #define ARIZONA_AIF1RX_LRCLK_MSTR_WIDTH 1 /* AIF1RX_LRCLK_MSTR */
  3596. /*
  3597. * R1283 (0x503) - AIF1 Rate Ctrl
  3598. */
  3599. #define ARIZONA_AIF1_RATE_MASK 0x7800 /* AIF1_RATE - [14:11] */
  3600. #define ARIZONA_AIF1_RATE_SHIFT 11 /* AIF1_RATE - [14:11] */
  3601. #define ARIZONA_AIF1_RATE_WIDTH 4 /* AIF1_RATE - [14:11] */
  3602. #define ARIZONA_AIF1_TRI 0x0040 /* AIF1_TRI */
  3603. #define ARIZONA_AIF1_TRI_MASK 0x0040 /* AIF1_TRI */
  3604. #define ARIZONA_AIF1_TRI_SHIFT 6 /* AIF1_TRI */
  3605. #define ARIZONA_AIF1_TRI_WIDTH 1 /* AIF1_TRI */
  3606. /*
  3607. * R1284 (0x504) - AIF1 Format
  3608. */
  3609. #define ARIZONA_AIF1_FMT_MASK 0x0007 /* AIF1_FMT - [2:0] */
  3610. #define ARIZONA_AIF1_FMT_SHIFT 0 /* AIF1_FMT - [2:0] */
  3611. #define ARIZONA_AIF1_FMT_WIDTH 3 /* AIF1_FMT - [2:0] */
  3612. /*
  3613. * R1285 (0x505) - AIF1 Tx BCLK Rate
  3614. */
  3615. #define ARIZONA_AIF1TX_BCPF_MASK 0x1FFF /* AIF1TX_BCPF - [12:0] */
  3616. #define ARIZONA_AIF1TX_BCPF_SHIFT 0 /* AIF1TX_BCPF - [12:0] */
  3617. #define ARIZONA_AIF1TX_BCPF_WIDTH 13 /* AIF1TX_BCPF - [12:0] */
  3618. /*
  3619. * R1286 (0x506) - AIF1 Rx BCLK Rate
  3620. */
  3621. #define ARIZONA_AIF1RX_BCPF_MASK 0x1FFF /* AIF1RX_BCPF - [12:0] */
  3622. #define ARIZONA_AIF1RX_BCPF_SHIFT 0 /* AIF1RX_BCPF - [12:0] */
  3623. #define ARIZONA_AIF1RX_BCPF_WIDTH 13 /* AIF1RX_BCPF - [12:0] */
  3624. /*
  3625. * R1287 (0x507) - AIF1 Frame Ctrl 1
  3626. */
  3627. #define ARIZONA_AIF1TX_WL_MASK 0x3F00 /* AIF1TX_WL - [13:8] */
  3628. #define ARIZONA_AIF1TX_WL_SHIFT 8 /* AIF1TX_WL - [13:8] */
  3629. #define ARIZONA_AIF1TX_WL_WIDTH 6 /* AIF1TX_WL - [13:8] */
  3630. #define ARIZONA_AIF1TX_SLOT_LEN_MASK 0x00FF /* AIF1TX_SLOT_LEN - [7:0] */
  3631. #define ARIZONA_AIF1TX_SLOT_LEN_SHIFT 0 /* AIF1TX_SLOT_LEN - [7:0] */
  3632. #define ARIZONA_AIF1TX_SLOT_LEN_WIDTH 8 /* AIF1TX_SLOT_LEN - [7:0] */
  3633. /*
  3634. * R1288 (0x508) - AIF1 Frame Ctrl 2
  3635. */
  3636. #define ARIZONA_AIF1RX_WL_MASK 0x3F00 /* AIF1RX_WL - [13:8] */
  3637. #define ARIZONA_AIF1RX_WL_SHIFT 8 /* AIF1RX_WL - [13:8] */
  3638. #define ARIZONA_AIF1RX_WL_WIDTH 6 /* AIF1RX_WL - [13:8] */
  3639. #define ARIZONA_AIF1RX_SLOT_LEN_MASK 0x00FF /* AIF1RX_SLOT_LEN - [7:0] */
  3640. #define ARIZONA_AIF1RX_SLOT_LEN_SHIFT 0 /* AIF1RX_SLOT_LEN - [7:0] */
  3641. #define ARIZONA_AIF1RX_SLOT_LEN_WIDTH 8 /* AIF1RX_SLOT_LEN - [7:0] */
  3642. /*
  3643. * R1289 (0x509) - AIF1 Frame Ctrl 3
  3644. */
  3645. #define ARIZONA_AIF1TX1_SLOT_MASK 0x003F /* AIF1TX1_SLOT - [5:0] */
  3646. #define ARIZONA_AIF1TX1_SLOT_SHIFT 0 /* AIF1TX1_SLOT - [5:0] */
  3647. #define ARIZONA_AIF1TX1_SLOT_WIDTH 6 /* AIF1TX1_SLOT - [5:0] */
  3648. /*
  3649. * R1290 (0x50A) - AIF1 Frame Ctrl 4
  3650. */
  3651. #define ARIZONA_AIF1TX2_SLOT_MASK 0x003F /* AIF1TX2_SLOT - [5:0] */
  3652. #define ARIZONA_AIF1TX2_SLOT_SHIFT 0 /* AIF1TX2_SLOT - [5:0] */
  3653. #define ARIZONA_AIF1TX2_SLOT_WIDTH 6 /* AIF1TX2_SLOT - [5:0] */
  3654. /*
  3655. * R1291 (0x50B) - AIF1 Frame Ctrl 5
  3656. */
  3657. #define ARIZONA_AIF1TX3_SLOT_MASK 0x003F /* AIF1TX3_SLOT - [5:0] */
  3658. #define ARIZONA_AIF1TX3_SLOT_SHIFT 0 /* AIF1TX3_SLOT - [5:0] */
  3659. #define ARIZONA_AIF1TX3_SLOT_WIDTH 6 /* AIF1TX3_SLOT - [5:0] */
  3660. /*
  3661. * R1292 (0x50C) - AIF1 Frame Ctrl 6
  3662. */
  3663. #define ARIZONA_AIF1TX4_SLOT_MASK 0x003F /* AIF1TX4_SLOT - [5:0] */
  3664. #define ARIZONA_AIF1TX4_SLOT_SHIFT 0 /* AIF1TX4_SLOT - [5:0] */
  3665. #define ARIZONA_AIF1TX4_SLOT_WIDTH 6 /* AIF1TX4_SLOT - [5:0] */
  3666. /*
  3667. * R1293 (0x50D) - AIF1 Frame Ctrl 7
  3668. */
  3669. #define ARIZONA_AIF1TX5_SLOT_MASK 0x003F /* AIF1TX5_SLOT - [5:0] */
  3670. #define ARIZONA_AIF1TX5_SLOT_SHIFT 0 /* AIF1TX5_SLOT - [5:0] */
  3671. #define ARIZONA_AIF1TX5_SLOT_WIDTH 6 /* AIF1TX5_SLOT - [5:0] */
  3672. /*
  3673. * R1294 (0x50E) - AIF1 Frame Ctrl 8
  3674. */
  3675. #define ARIZONA_AIF1TX6_SLOT_MASK 0x003F /* AIF1TX6_SLOT - [5:0] */
  3676. #define ARIZONA_AIF1TX6_SLOT_SHIFT 0 /* AIF1TX6_SLOT - [5:0] */
  3677. #define ARIZONA_AIF1TX6_SLOT_WIDTH 6 /* AIF1TX6_SLOT - [5:0] */
  3678. /*
  3679. * R1295 (0x50F) - AIF1 Frame Ctrl 9
  3680. */
  3681. #define ARIZONA_AIF1TX7_SLOT_MASK 0x003F /* AIF1TX7_SLOT - [5:0] */
  3682. #define ARIZONA_AIF1TX7_SLOT_SHIFT 0 /* AIF1TX7_SLOT - [5:0] */
  3683. #define ARIZONA_AIF1TX7_SLOT_WIDTH 6 /* AIF1TX7_SLOT - [5:0] */
  3684. /*
  3685. * R1296 (0x510) - AIF1 Frame Ctrl 10
  3686. */
  3687. #define ARIZONA_AIF1TX8_SLOT_MASK 0x003F /* AIF1TX8_SLOT - [5:0] */
  3688. #define ARIZONA_AIF1TX8_SLOT_SHIFT 0 /* AIF1TX8_SLOT - [5:0] */
  3689. #define ARIZONA_AIF1TX8_SLOT_WIDTH 6 /* AIF1TX8_SLOT - [5:0] */
  3690. /*
  3691. * R1297 (0x511) - AIF1 Frame Ctrl 11
  3692. */
  3693. #define ARIZONA_AIF1RX1_SLOT_MASK 0x003F /* AIF1RX1_SLOT - [5:0] */
  3694. #define ARIZONA_AIF1RX1_SLOT_SHIFT 0 /* AIF1RX1_SLOT - [5:0] */
  3695. #define ARIZONA_AIF1RX1_SLOT_WIDTH 6 /* AIF1RX1_SLOT - [5:0] */
  3696. /*
  3697. * R1298 (0x512) - AIF1 Frame Ctrl 12
  3698. */
  3699. #define ARIZONA_AIF1RX2_SLOT_MASK 0x003F /* AIF1RX2_SLOT - [5:0] */
  3700. #define ARIZONA_AIF1RX2_SLOT_SHIFT 0 /* AIF1RX2_SLOT - [5:0] */
  3701. #define ARIZONA_AIF1RX2_SLOT_WIDTH 6 /* AIF1RX2_SLOT - [5:0] */
  3702. /*
  3703. * R1299 (0x513) - AIF1 Frame Ctrl 13
  3704. */
  3705. #define ARIZONA_AIF1RX3_SLOT_MASK 0x003F /* AIF1RX3_SLOT - [5:0] */
  3706. #define ARIZONA_AIF1RX3_SLOT_SHIFT 0 /* AIF1RX3_SLOT - [5:0] */
  3707. #define ARIZONA_AIF1RX3_SLOT_WIDTH 6 /* AIF1RX3_SLOT - [5:0] */
  3708. /*
  3709. * R1300 (0x514) - AIF1 Frame Ctrl 14
  3710. */
  3711. #define ARIZONA_AIF1RX4_SLOT_MASK 0x003F /* AIF1RX4_SLOT - [5:0] */
  3712. #define ARIZONA_AIF1RX4_SLOT_SHIFT 0 /* AIF1RX4_SLOT - [5:0] */
  3713. #define ARIZONA_AIF1RX4_SLOT_WIDTH 6 /* AIF1RX4_SLOT - [5:0] */
  3714. /*
  3715. * R1301 (0x515) - AIF1 Frame Ctrl 15
  3716. */
  3717. #define ARIZONA_AIF1RX5_SLOT_MASK 0x003F /* AIF1RX5_SLOT - [5:0] */
  3718. #define ARIZONA_AIF1RX5_SLOT_SHIFT 0 /* AIF1RX5_SLOT - [5:0] */
  3719. #define ARIZONA_AIF1RX5_SLOT_WIDTH 6 /* AIF1RX5_SLOT - [5:0] */
  3720. /*
  3721. * R1302 (0x516) - AIF1 Frame Ctrl 16
  3722. */
  3723. #define ARIZONA_AIF1RX6_SLOT_MASK 0x003F /* AIF1RX6_SLOT - [5:0] */
  3724. #define ARIZONA_AIF1RX6_SLOT_SHIFT 0 /* AIF1RX6_SLOT - [5:0] */
  3725. #define ARIZONA_AIF1RX6_SLOT_WIDTH 6 /* AIF1RX6_SLOT - [5:0] */
  3726. /*
  3727. * R1303 (0x517) - AIF1 Frame Ctrl 17
  3728. */
  3729. #define ARIZONA_AIF1RX7_SLOT_MASK 0x003F /* AIF1RX7_SLOT - [5:0] */
  3730. #define ARIZONA_AIF1RX7_SLOT_SHIFT 0 /* AIF1RX7_SLOT - [5:0] */
  3731. #define ARIZONA_AIF1RX7_SLOT_WIDTH 6 /* AIF1RX7_SLOT - [5:0] */
  3732. /*
  3733. * R1304 (0x518) - AIF1 Frame Ctrl 18
  3734. */
  3735. #define ARIZONA_AIF1RX8_SLOT_MASK 0x003F /* AIF1RX8_SLOT - [5:0] */
  3736. #define ARIZONA_AIF1RX8_SLOT_SHIFT 0 /* AIF1RX8_SLOT - [5:0] */
  3737. #define ARIZONA_AIF1RX8_SLOT_WIDTH 6 /* AIF1RX8_SLOT - [5:0] */
  3738. /*
  3739. * R1305 (0x519) - AIF1 Tx Enables
  3740. */
  3741. #define ARIZONA_AIF1TX8_ENA 0x0080 /* AIF1TX8_ENA */
  3742. #define ARIZONA_AIF1TX8_ENA_MASK 0x0080 /* AIF1TX8_ENA */
  3743. #define ARIZONA_AIF1TX8_ENA_SHIFT 7 /* AIF1TX8_ENA */
  3744. #define ARIZONA_AIF1TX8_ENA_WIDTH 1 /* AIF1TX8_ENA */
  3745. #define ARIZONA_AIF1TX7_ENA 0x0040 /* AIF1TX7_ENA */
  3746. #define ARIZONA_AIF1TX7_ENA_MASK 0x0040 /* AIF1TX7_ENA */
  3747. #define ARIZONA_AIF1TX7_ENA_SHIFT 6 /* AIF1TX7_ENA */
  3748. #define ARIZONA_AIF1TX7_ENA_WIDTH 1 /* AIF1TX7_ENA */
  3749. #define ARIZONA_AIF1TX6_ENA 0x0020 /* AIF1TX6_ENA */
  3750. #define ARIZONA_AIF1TX6_ENA_MASK 0x0020 /* AIF1TX6_ENA */
  3751. #define ARIZONA_AIF1TX6_ENA_SHIFT 5 /* AIF1TX6_ENA */
  3752. #define ARIZONA_AIF1TX6_ENA_WIDTH 1 /* AIF1TX6_ENA */
  3753. #define ARIZONA_AIF1TX5_ENA 0x0010 /* AIF1TX5_ENA */
  3754. #define ARIZONA_AIF1TX5_ENA_MASK 0x0010 /* AIF1TX5_ENA */
  3755. #define ARIZONA_AIF1TX5_ENA_SHIFT 4 /* AIF1TX5_ENA */
  3756. #define ARIZONA_AIF1TX5_ENA_WIDTH 1 /* AIF1TX5_ENA */
  3757. #define ARIZONA_AIF1TX4_ENA 0x0008 /* AIF1TX4_ENA */
  3758. #define ARIZONA_AIF1TX4_ENA_MASK 0x0008 /* AIF1TX4_ENA */
  3759. #define ARIZONA_AIF1TX4_ENA_SHIFT 3 /* AIF1TX4_ENA */
  3760. #define ARIZONA_AIF1TX4_ENA_WIDTH 1 /* AIF1TX4_ENA */
  3761. #define ARIZONA_AIF1TX3_ENA 0x0004 /* AIF1TX3_ENA */
  3762. #define ARIZONA_AIF1TX3_ENA_MASK 0x0004 /* AIF1TX3_ENA */
  3763. #define ARIZONA_AIF1TX3_ENA_SHIFT 2 /* AIF1TX3_ENA */
  3764. #define ARIZONA_AIF1TX3_ENA_WIDTH 1 /* AIF1TX3_ENA */
  3765. #define ARIZONA_AIF1TX2_ENA 0x0002 /* AIF1TX2_ENA */
  3766. #define ARIZONA_AIF1TX2_ENA_MASK 0x0002 /* AIF1TX2_ENA */
  3767. #define ARIZONA_AIF1TX2_ENA_SHIFT 1 /* AIF1TX2_ENA */
  3768. #define ARIZONA_AIF1TX2_ENA_WIDTH 1 /* AIF1TX2_ENA */
  3769. #define ARIZONA_AIF1TX1_ENA 0x0001 /* AIF1TX1_ENA */
  3770. #define ARIZONA_AIF1TX1_ENA_MASK 0x0001 /* AIF1TX1_ENA */
  3771. #define ARIZONA_AIF1TX1_ENA_SHIFT 0 /* AIF1TX1_ENA */
  3772. #define ARIZONA_AIF1TX1_ENA_WIDTH 1 /* AIF1TX1_ENA */
  3773. /*
  3774. * R1306 (0x51A) - AIF1 Rx Enables
  3775. */
  3776. #define ARIZONA_AIF1RX8_ENA 0x0080 /* AIF1RX8_ENA */
  3777. #define ARIZONA_AIF1RX8_ENA_MASK 0x0080 /* AIF1RX8_ENA */
  3778. #define ARIZONA_AIF1RX8_ENA_SHIFT 7 /* AIF1RX8_ENA */
  3779. #define ARIZONA_AIF1RX8_ENA_WIDTH 1 /* AIF1RX8_ENA */
  3780. #define ARIZONA_AIF1RX7_ENA 0x0040 /* AIF1RX7_ENA */
  3781. #define ARIZONA_AIF1RX7_ENA_MASK 0x0040 /* AIF1RX7_ENA */
  3782. #define ARIZONA_AIF1RX7_ENA_SHIFT 6 /* AIF1RX7_ENA */
  3783. #define ARIZONA_AIF1RX7_ENA_WIDTH 1 /* AIF1RX7_ENA */
  3784. #define ARIZONA_AIF1RX6_ENA 0x0020 /* AIF1RX6_ENA */
  3785. #define ARIZONA_AIF1RX6_ENA_MASK 0x0020 /* AIF1RX6_ENA */
  3786. #define ARIZONA_AIF1RX6_ENA_SHIFT 5 /* AIF1RX6_ENA */
  3787. #define ARIZONA_AIF1RX6_ENA_WIDTH 1 /* AIF1RX6_ENA */
  3788. #define ARIZONA_AIF1RX5_ENA 0x0010 /* AIF1RX5_ENA */
  3789. #define ARIZONA_AIF1RX5_ENA_MASK 0x0010 /* AIF1RX5_ENA */
  3790. #define ARIZONA_AIF1RX5_ENA_SHIFT 4 /* AIF1RX5_ENA */
  3791. #define ARIZONA_AIF1RX5_ENA_WIDTH 1 /* AIF1RX5_ENA */
  3792. #define ARIZONA_AIF1RX4_ENA 0x0008 /* AIF1RX4_ENA */
  3793. #define ARIZONA_AIF1RX4_ENA_MASK 0x0008 /* AIF1RX4_ENA */
  3794. #define ARIZONA_AIF1RX4_ENA_SHIFT 3 /* AIF1RX4_ENA */
  3795. #define ARIZONA_AIF1RX4_ENA_WIDTH 1 /* AIF1RX4_ENA */
  3796. #define ARIZONA_AIF1RX3_ENA 0x0004 /* AIF1RX3_ENA */
  3797. #define ARIZONA_AIF1RX3_ENA_MASK 0x0004 /* AIF1RX3_ENA */
  3798. #define ARIZONA_AIF1RX3_ENA_SHIFT 2 /* AIF1RX3_ENA */
  3799. #define ARIZONA_AIF1RX3_ENA_WIDTH 1 /* AIF1RX3_ENA */
  3800. #define ARIZONA_AIF1RX2_ENA 0x0002 /* AIF1RX2_ENA */
  3801. #define ARIZONA_AIF1RX2_ENA_MASK 0x0002 /* AIF1RX2_ENA */
  3802. #define ARIZONA_AIF1RX2_ENA_SHIFT 1 /* AIF1RX2_ENA */
  3803. #define ARIZONA_AIF1RX2_ENA_WIDTH 1 /* AIF1RX2_ENA */
  3804. #define ARIZONA_AIF1RX1_ENA 0x0001 /* AIF1RX1_ENA */
  3805. #define ARIZONA_AIF1RX1_ENA_MASK 0x0001 /* AIF1RX1_ENA */
  3806. #define ARIZONA_AIF1RX1_ENA_SHIFT 0 /* AIF1RX1_ENA */
  3807. #define ARIZONA_AIF1RX1_ENA_WIDTH 1 /* AIF1RX1_ENA */
  3808. /*
  3809. * R1307 (0x51B) - AIF1 Force Write
  3810. */
  3811. #define ARIZONA_AIF1_FRC_WR 0x0001 /* AIF1_FRC_WR */
  3812. #define ARIZONA_AIF1_FRC_WR_MASK 0x0001 /* AIF1_FRC_WR */
  3813. #define ARIZONA_AIF1_FRC_WR_SHIFT 0 /* AIF1_FRC_WR */
  3814. #define ARIZONA_AIF1_FRC_WR_WIDTH 1 /* AIF1_FRC_WR */
  3815. /*
  3816. * R1344 (0x540) - AIF2 BCLK Ctrl
  3817. */
  3818. #define ARIZONA_AIF2_BCLK_INV 0x0080 /* AIF2_BCLK_INV */
  3819. #define ARIZONA_AIF2_BCLK_INV_MASK 0x0080 /* AIF2_BCLK_INV */
  3820. #define ARIZONA_AIF2_BCLK_INV_SHIFT 7 /* AIF2_BCLK_INV */
  3821. #define ARIZONA_AIF2_BCLK_INV_WIDTH 1 /* AIF2_BCLK_INV */
  3822. #define ARIZONA_AIF2_BCLK_FRC 0x0040 /* AIF2_BCLK_FRC */
  3823. #define ARIZONA_AIF2_BCLK_FRC_MASK 0x0040 /* AIF2_BCLK_FRC */
  3824. #define ARIZONA_AIF2_BCLK_FRC_SHIFT 6 /* AIF2_BCLK_FRC */
  3825. #define ARIZONA_AIF2_BCLK_FRC_WIDTH 1 /* AIF2_BCLK_FRC */
  3826. #define ARIZONA_AIF2_BCLK_MSTR 0x0020 /* AIF2_BCLK_MSTR */
  3827. #define ARIZONA_AIF2_BCLK_MSTR_MASK 0x0020 /* AIF2_BCLK_MSTR */
  3828. #define ARIZONA_AIF2_BCLK_MSTR_SHIFT 5 /* AIF2_BCLK_MSTR */
  3829. #define ARIZONA_AIF2_BCLK_MSTR_WIDTH 1 /* AIF2_BCLK_MSTR */
  3830. #define ARIZONA_AIF2_BCLK_FREQ_MASK 0x001F /* AIF2_BCLK_FREQ - [4:0] */
  3831. #define ARIZONA_AIF2_BCLK_FREQ_SHIFT 0 /* AIF2_BCLK_FREQ - [4:0] */
  3832. #define ARIZONA_AIF2_BCLK_FREQ_WIDTH 5 /* AIF2_BCLK_FREQ - [4:0] */
  3833. /*
  3834. * R1345 (0x541) - AIF2 Tx Pin Ctrl
  3835. */
  3836. #define ARIZONA_AIF2TX_DAT_TRI 0x0020 /* AIF2TX_DAT_TRI */
  3837. #define ARIZONA_AIF2TX_DAT_TRI_MASK 0x0020 /* AIF2TX_DAT_TRI */
  3838. #define ARIZONA_AIF2TX_DAT_TRI_SHIFT 5 /* AIF2TX_DAT_TRI */
  3839. #define ARIZONA_AIF2TX_DAT_TRI_WIDTH 1 /* AIF2TX_DAT_TRI */
  3840. #define ARIZONA_AIF2TX_LRCLK_SRC 0x0008 /* AIF2TX_LRCLK_SRC */
  3841. #define ARIZONA_AIF2TX_LRCLK_SRC_MASK 0x0008 /* AIF2TX_LRCLK_SRC */
  3842. #define ARIZONA_AIF2TX_LRCLK_SRC_SHIFT 3 /* AIF2TX_LRCLK_SRC */
  3843. #define ARIZONA_AIF2TX_LRCLK_SRC_WIDTH 1 /* AIF2TX_LRCLK_SRC */
  3844. #define ARIZONA_AIF2TX_LRCLK_INV 0x0004 /* AIF2TX_LRCLK_INV */
  3845. #define ARIZONA_AIF2TX_LRCLK_INV_MASK 0x0004 /* AIF2TX_LRCLK_INV */
  3846. #define ARIZONA_AIF2TX_LRCLK_INV_SHIFT 2 /* AIF2TX_LRCLK_INV */
  3847. #define ARIZONA_AIF2TX_LRCLK_INV_WIDTH 1 /* AIF2TX_LRCLK_INV */
  3848. #define ARIZONA_AIF2TX_LRCLK_FRC 0x0002 /* AIF2TX_LRCLK_FRC */
  3849. #define ARIZONA_AIF2TX_LRCLK_FRC_MASK 0x0002 /* AIF2TX_LRCLK_FRC */
  3850. #define ARIZONA_AIF2TX_LRCLK_FRC_SHIFT 1 /* AIF2TX_LRCLK_FRC */
  3851. #define ARIZONA_AIF2TX_LRCLK_FRC_WIDTH 1 /* AIF2TX_LRCLK_FRC */
  3852. #define ARIZONA_AIF2TX_LRCLK_MSTR 0x0001 /* AIF2TX_LRCLK_MSTR */
  3853. #define ARIZONA_AIF2TX_LRCLK_MSTR_MASK 0x0001 /* AIF2TX_LRCLK_MSTR */
  3854. #define ARIZONA_AIF2TX_LRCLK_MSTR_SHIFT 0 /* AIF2TX_LRCLK_MSTR */
  3855. #define ARIZONA_AIF2TX_LRCLK_MSTR_WIDTH 1 /* AIF2TX_LRCLK_MSTR */
  3856. /*
  3857. * R1346 (0x542) - AIF2 Rx Pin Ctrl
  3858. */
  3859. #define ARIZONA_AIF2RX_LRCLK_INV 0x0004 /* AIF2RX_LRCLK_INV */
  3860. #define ARIZONA_AIF2RX_LRCLK_INV_MASK 0x0004 /* AIF2RX_LRCLK_INV */
  3861. #define ARIZONA_AIF2RX_LRCLK_INV_SHIFT 2 /* AIF2RX_LRCLK_INV */
  3862. #define ARIZONA_AIF2RX_LRCLK_INV_WIDTH 1 /* AIF2RX_LRCLK_INV */
  3863. #define ARIZONA_AIF2RX_LRCLK_FRC 0x0002 /* AIF2RX_LRCLK_FRC */
  3864. #define ARIZONA_AIF2RX_LRCLK_FRC_MASK 0x0002 /* AIF2RX_LRCLK_FRC */
  3865. #define ARIZONA_AIF2RX_LRCLK_FRC_SHIFT 1 /* AIF2RX_LRCLK_FRC */
  3866. #define ARIZONA_AIF2RX_LRCLK_FRC_WIDTH 1 /* AIF2RX_LRCLK_FRC */
  3867. #define ARIZONA_AIF2RX_LRCLK_MSTR 0x0001 /* AIF2RX_LRCLK_MSTR */
  3868. #define ARIZONA_AIF2RX_LRCLK_MSTR_MASK 0x0001 /* AIF2RX_LRCLK_MSTR */
  3869. #define ARIZONA_AIF2RX_LRCLK_MSTR_SHIFT 0 /* AIF2RX_LRCLK_MSTR */
  3870. #define ARIZONA_AIF2RX_LRCLK_MSTR_WIDTH 1 /* AIF2RX_LRCLK_MSTR */
  3871. /*
  3872. * R1347 (0x543) - AIF2 Rate Ctrl
  3873. */
  3874. #define ARIZONA_AIF2_RATE_MASK 0x7800 /* AIF2_RATE - [14:11] */
  3875. #define ARIZONA_AIF2_RATE_SHIFT 11 /* AIF2_RATE - [14:11] */
  3876. #define ARIZONA_AIF2_RATE_WIDTH 4 /* AIF2_RATE - [14:11] */
  3877. #define ARIZONA_AIF2_TRI 0x0040 /* AIF2_TRI */
  3878. #define ARIZONA_AIF2_TRI_MASK 0x0040 /* AIF2_TRI */
  3879. #define ARIZONA_AIF2_TRI_SHIFT 6 /* AIF2_TRI */
  3880. #define ARIZONA_AIF2_TRI_WIDTH 1 /* AIF2_TRI */
  3881. /*
  3882. * R1348 (0x544) - AIF2 Format
  3883. */
  3884. #define ARIZONA_AIF2_FMT_MASK 0x0007 /* AIF2_FMT - [2:0] */
  3885. #define ARIZONA_AIF2_FMT_SHIFT 0 /* AIF2_FMT - [2:0] */
  3886. #define ARIZONA_AIF2_FMT_WIDTH 3 /* AIF2_FMT - [2:0] */
  3887. /*
  3888. * R1349 (0x545) - AIF2 Tx BCLK Rate
  3889. */
  3890. #define ARIZONA_AIF2TX_BCPF_MASK 0x1FFF /* AIF2TX_BCPF - [12:0] */
  3891. #define ARIZONA_AIF2TX_BCPF_SHIFT 0 /* AIF2TX_BCPF - [12:0] */
  3892. #define ARIZONA_AIF2TX_BCPF_WIDTH 13 /* AIF2TX_BCPF - [12:0] */
  3893. /*
  3894. * R1350 (0x546) - AIF2 Rx BCLK Rate
  3895. */
  3896. #define ARIZONA_AIF2RX_BCPF_MASK 0x1FFF /* AIF2RX_BCPF - [12:0] */
  3897. #define ARIZONA_AIF2RX_BCPF_SHIFT 0 /* AIF2RX_BCPF - [12:0] */
  3898. #define ARIZONA_AIF2RX_BCPF_WIDTH 13 /* AIF2RX_BCPF - [12:0] */
  3899. /*
  3900. * R1351 (0x547) - AIF2 Frame Ctrl 1
  3901. */
  3902. #define ARIZONA_AIF2TX_WL_MASK 0x3F00 /* AIF2TX_WL - [13:8] */
  3903. #define ARIZONA_AIF2TX_WL_SHIFT 8 /* AIF2TX_WL - [13:8] */
  3904. #define ARIZONA_AIF2TX_WL_WIDTH 6 /* AIF2TX_WL - [13:8] */
  3905. #define ARIZONA_AIF2TX_SLOT_LEN_MASK 0x00FF /* AIF2TX_SLOT_LEN - [7:0] */
  3906. #define ARIZONA_AIF2TX_SLOT_LEN_SHIFT 0 /* AIF2TX_SLOT_LEN - [7:0] */
  3907. #define ARIZONA_AIF2TX_SLOT_LEN_WIDTH 8 /* AIF2TX_SLOT_LEN - [7:0] */
  3908. /*
  3909. * R1352 (0x548) - AIF2 Frame Ctrl 2
  3910. */
  3911. #define ARIZONA_AIF2RX_WL_MASK 0x3F00 /* AIF2RX_WL - [13:8] */
  3912. #define ARIZONA_AIF2RX_WL_SHIFT 8 /* AIF2RX_WL - [13:8] */
  3913. #define ARIZONA_AIF2RX_WL_WIDTH 6 /* AIF2RX_WL - [13:8] */
  3914. #define ARIZONA_AIF2RX_SLOT_LEN_MASK 0x00FF /* AIF2RX_SLOT_LEN - [7:0] */
  3915. #define ARIZONA_AIF2RX_SLOT_LEN_SHIFT 0 /* AIF2RX_SLOT_LEN - [7:0] */
  3916. #define ARIZONA_AIF2RX_SLOT_LEN_WIDTH 8 /* AIF2RX_SLOT_LEN - [7:0] */
  3917. /*
  3918. * R1353 (0x549) - AIF2 Frame Ctrl 3
  3919. */
  3920. #define ARIZONA_AIF2TX1_SLOT_MASK 0x003F /* AIF2TX1_SLOT - [5:0] */
  3921. #define ARIZONA_AIF2TX1_SLOT_SHIFT 0 /* AIF2TX1_SLOT - [5:0] */
  3922. #define ARIZONA_AIF2TX1_SLOT_WIDTH 6 /* AIF2TX1_SLOT - [5:0] */
  3923. /*
  3924. * R1354 (0x54A) - AIF2 Frame Ctrl 4
  3925. */
  3926. #define ARIZONA_AIF2TX2_SLOT_MASK 0x003F /* AIF2TX2_SLOT - [5:0] */
  3927. #define ARIZONA_AIF2TX2_SLOT_SHIFT 0 /* AIF2TX2_SLOT - [5:0] */
  3928. #define ARIZONA_AIF2TX2_SLOT_WIDTH 6 /* AIF2TX2_SLOT - [5:0] */
  3929. /*
  3930. * R1355 (0x54B) - AIF2 Frame Ctrl 5
  3931. */
  3932. #define ARIZONA_AIF2TX3_SLOT_MASK 0x003F /* AIF2TX3_SLOT - [5:0] */
  3933. #define ARIZONA_AIF2TX3_SLOT_SHIFT 0 /* AIF2TX3_SLOT - [5:0] */
  3934. #define ARIZONA_AIF2TX3_SLOT_WIDTH 6 /* AIF2TX3_SLOT - [5:0] */
  3935. /*
  3936. * R1356 (0x54C) - AIF2 Frame Ctrl 6
  3937. */
  3938. #define ARIZONA_AIF2TX4_SLOT_MASK 0x003F /* AIF2TX4_SLOT - [5:0] */
  3939. #define ARIZONA_AIF2TX4_SLOT_SHIFT 0 /* AIF2TX4_SLOT - [5:0] */
  3940. #define ARIZONA_AIF2TX4_SLOT_WIDTH 6 /* AIF2TX4_SLOT - [5:0] */
  3941. /*
  3942. * R1357 (0x54D) - AIF2 Frame Ctrl 7
  3943. */
  3944. #define ARIZONA_AIF2TX5_SLOT_MASK 0x003F /* AIF2TX5_SLOT - [5:0] */
  3945. #define ARIZONA_AIF2TX5_SLOT_SHIFT 0 /* AIF2TX5_SLOT - [5:0] */
  3946. #define ARIZONA_AIF2TX5_SLOT_WIDTH 6 /* AIF2TX5_SLOT - [5:0] */
  3947. /*
  3948. * R1358 (0x54E) - AIF2 Frame Ctrl 8
  3949. */
  3950. #define ARIZONA_AIF2TX6_SLOT_MASK 0x003F /* AIF2TX6_SLOT - [5:0] */
  3951. #define ARIZONA_AIF2TX6_SLOT_SHIFT 0 /* AIF2TX6_SLOT - [5:0] */
  3952. #define ARIZONA_AIF2TX6_SLOT_WIDTH 6 /* AIF2TX6_SLOT - [5:0] */
  3953. /*
  3954. * R1361 (0x551) - AIF2 Frame Ctrl 11
  3955. */
  3956. #define ARIZONA_AIF2RX1_SLOT_MASK 0x003F /* AIF2RX1_SLOT - [5:0] */
  3957. #define ARIZONA_AIF2RX1_SLOT_SHIFT 0 /* AIF2RX1_SLOT - [5:0] */
  3958. #define ARIZONA_AIF2RX1_SLOT_WIDTH 6 /* AIF2RX1_SLOT - [5:0] */
  3959. /*
  3960. * R1362 (0x552) - AIF2 Frame Ctrl 12
  3961. */
  3962. #define ARIZONA_AIF2RX2_SLOT_MASK 0x003F /* AIF2RX2_SLOT - [5:0] */
  3963. #define ARIZONA_AIF2RX2_SLOT_SHIFT 0 /* AIF2RX2_SLOT - [5:0] */
  3964. #define ARIZONA_AIF2RX2_SLOT_WIDTH 6 /* AIF2RX2_SLOT - [5:0] */
  3965. /*
  3966. * R1363 (0x553) - AIF2 Frame Ctrl 13
  3967. */
  3968. #define ARIZONA_AIF2RX3_SLOT_MASK 0x003F /* AIF2RX3_SLOT - [5:0] */
  3969. #define ARIZONA_AIF2RX3_SLOT_SHIFT 0 /* AIF2RX3_SLOT - [5:0] */
  3970. #define ARIZONA_AIF2RX3_SLOT_WIDTH 6 /* AIF2RX3_SLOT - [5:0] */
  3971. /*
  3972. * R1364 (0x554) - AIF2 Frame Ctrl 14
  3973. */
  3974. #define ARIZONA_AIF2RX4_SLOT_MASK 0x003F /* AIF2RX4_SLOT - [5:0] */
  3975. #define ARIZONA_AIF2RX4_SLOT_SHIFT 0 /* AIF2RX4_SLOT - [5:0] */
  3976. #define ARIZONA_AIF2RX4_SLOT_WIDTH 6 /* AIF2RX4_SLOT - [5:0] */
  3977. /*
  3978. * R1365 (0x555) - AIF2 Frame Ctrl 15
  3979. */
  3980. #define ARIZONA_AIF2RX5_SLOT_MASK 0x003F /* AIF2RX5_SLOT - [5:0] */
  3981. #define ARIZONA_AIF2RX5_SLOT_SHIFT 0 /* AIF2RX5_SLOT - [5:0] */
  3982. #define ARIZONA_AIF2RX5_SLOT_WIDTH 6 /* AIF2RX5_SLOT - [5:0] */
  3983. /*
  3984. * R1366 (0x556) - AIF2 Frame Ctrl 16
  3985. */
  3986. #define ARIZONA_AIF2RX6_SLOT_MASK 0x003F /* AIF2RX6_SLOT - [5:0] */
  3987. #define ARIZONA_AIF2RX6_SLOT_SHIFT 0 /* AIF2RX6_SLOT - [5:0] */
  3988. #define ARIZONA_AIF2RX6_SLOT_WIDTH 6 /* AIF2RX6_SLOT - [5:0] */
  3989. /*
  3990. * R1369 (0x559) - AIF2 Tx Enables
  3991. */
  3992. #define ARIZONA_AIF2TX6_ENA 0x0020 /* AIF2TX6_ENA */
  3993. #define ARIZONA_AIF2TX6_ENA_MASK 0x0020 /* AIF2TX6_ENA */
  3994. #define ARIZONA_AIF2TX6_ENA_SHIFT 5 /* AIF2TX6_ENA */
  3995. #define ARIZONA_AIF2TX6_ENA_WIDTH 1 /* AIF2TX6_ENA */
  3996. #define ARIZONA_AIF2TX5_ENA 0x0010 /* AIF2TX5_ENA */
  3997. #define ARIZONA_AIF2TX5_ENA_MASK 0x0010 /* AIF2TX5_ENA */
  3998. #define ARIZONA_AIF2TX5_ENA_SHIFT 4 /* AIF2TX5_ENA */
  3999. #define ARIZONA_AIF2TX5_ENA_WIDTH 1 /* AIF2TX5_ENA */
  4000. #define ARIZONA_AIF2TX4_ENA 0x0008 /* AIF2TX4_ENA */
  4001. #define ARIZONA_AIF2TX4_ENA_MASK 0x0008 /* AIF2TX4_ENA */
  4002. #define ARIZONA_AIF2TX4_ENA_SHIFT 3 /* AIF2TX4_ENA */
  4003. #define ARIZONA_AIF2TX4_ENA_WIDTH 1 /* AIF2TX4_ENA */
  4004. #define ARIZONA_AIF2TX3_ENA 0x0004 /* AIF2TX3_ENA */
  4005. #define ARIZONA_AIF2TX3_ENA_MASK 0x0004 /* AIF2TX3_ENA */
  4006. #define ARIZONA_AIF2TX3_ENA_SHIFT 2 /* AIF2TX3_ENA */
  4007. #define ARIZONA_AIF2TX3_ENA_WIDTH 1 /* AIF2TX3_ENA */
  4008. #define ARIZONA_AIF2TX2_ENA 0x0002 /* AIF2TX2_ENA */
  4009. #define ARIZONA_AIF2TX2_ENA_MASK 0x0002 /* AIF2TX2_ENA */
  4010. #define ARIZONA_AIF2TX2_ENA_SHIFT 1 /* AIF2TX2_ENA */
  4011. #define ARIZONA_AIF2TX2_ENA_WIDTH 1 /* AIF2TX2_ENA */
  4012. #define ARIZONA_AIF2TX1_ENA 0x0001 /* AIF2TX1_ENA */
  4013. #define ARIZONA_AIF2TX1_ENA_MASK 0x0001 /* AIF2TX1_ENA */
  4014. #define ARIZONA_AIF2TX1_ENA_SHIFT 0 /* AIF2TX1_ENA */
  4015. #define ARIZONA_AIF2TX1_ENA_WIDTH 1 /* AIF2TX1_ENA */
  4016. /*
  4017. * R1370 (0x55A) - AIF2 Rx Enables
  4018. */
  4019. #define ARIZONA_AIF2RX6_ENA 0x0020 /* AIF2RX6_ENA */
  4020. #define ARIZONA_AIF2RX6_ENA_MASK 0x0020 /* AIF2RX6_ENA */
  4021. #define ARIZONA_AIF2RX6_ENA_SHIFT 5 /* AIF2RX6_ENA */
  4022. #define ARIZONA_AIF2RX6_ENA_WIDTH 1 /* AIF2RX6_ENA */
  4023. #define ARIZONA_AIF2RX5_ENA 0x0010 /* AIF2RX5_ENA */
  4024. #define ARIZONA_AIF2RX5_ENA_MASK 0x0010 /* AIF2RX5_ENA */
  4025. #define ARIZONA_AIF2RX5_ENA_SHIFT 4 /* AIF2RX5_ENA */
  4026. #define ARIZONA_AIF2RX5_ENA_WIDTH 1 /* AIF2RX5_ENA */
  4027. #define ARIZONA_AIF2RX4_ENA 0x0008 /* AIF2RX4_ENA */
  4028. #define ARIZONA_AIF2RX4_ENA_MASK 0x0008 /* AIF2RX4_ENA */
  4029. #define ARIZONA_AIF2RX4_ENA_SHIFT 3 /* AIF2RX4_ENA */
  4030. #define ARIZONA_AIF2RX4_ENA_WIDTH 1 /* AIF2RX4_ENA */
  4031. #define ARIZONA_AIF2RX3_ENA 0x0004 /* AIF2RX3_ENA */
  4032. #define ARIZONA_AIF2RX3_ENA_MASK 0x0004 /* AIF2RX3_ENA */
  4033. #define ARIZONA_AIF2RX3_ENA_SHIFT 2 /* AIF2RX3_ENA */
  4034. #define ARIZONA_AIF2RX3_ENA_WIDTH 1 /* AIF2RX3_ENA */
  4035. #define ARIZONA_AIF2RX2_ENA 0x0002 /* AIF2RX2_ENA */
  4036. #define ARIZONA_AIF2RX2_ENA_MASK 0x0002 /* AIF2RX2_ENA */
  4037. #define ARIZONA_AIF2RX2_ENA_SHIFT 1 /* AIF2RX2_ENA */
  4038. #define ARIZONA_AIF2RX2_ENA_WIDTH 1 /* AIF2RX2_ENA */
  4039. #define ARIZONA_AIF2RX1_ENA 0x0001 /* AIF2RX1_ENA */
  4040. #define ARIZONA_AIF2RX1_ENA_MASK 0x0001 /* AIF2RX1_ENA */
  4041. #define ARIZONA_AIF2RX1_ENA_SHIFT 0 /* AIF2RX1_ENA */
  4042. #define ARIZONA_AIF2RX1_ENA_WIDTH 1 /* AIF2RX1_ENA */
  4043. /*
  4044. * R1371 (0x55B) - AIF2 Force Write
  4045. */
  4046. #define ARIZONA_AIF2_FRC_WR 0x0001 /* AIF2_FRC_WR */
  4047. #define ARIZONA_AIF2_FRC_WR_MASK 0x0001 /* AIF2_FRC_WR */
  4048. #define ARIZONA_AIF2_FRC_WR_SHIFT 0 /* AIF2_FRC_WR */
  4049. #define ARIZONA_AIF2_FRC_WR_WIDTH 1 /* AIF2_FRC_WR */
  4050. /*
  4051. * R1408 (0x580) - AIF3 BCLK Ctrl
  4052. */
  4053. #define ARIZONA_AIF3_BCLK_INV 0x0080 /* AIF3_BCLK_INV */
  4054. #define ARIZONA_AIF3_BCLK_INV_MASK 0x0080 /* AIF3_BCLK_INV */
  4055. #define ARIZONA_AIF3_BCLK_INV_SHIFT 7 /* AIF3_BCLK_INV */
  4056. #define ARIZONA_AIF3_BCLK_INV_WIDTH 1 /* AIF3_BCLK_INV */
  4057. #define ARIZONA_AIF3_BCLK_FRC 0x0040 /* AIF3_BCLK_FRC */
  4058. #define ARIZONA_AIF3_BCLK_FRC_MASK 0x0040 /* AIF3_BCLK_FRC */
  4059. #define ARIZONA_AIF3_BCLK_FRC_SHIFT 6 /* AIF3_BCLK_FRC */
  4060. #define ARIZONA_AIF3_BCLK_FRC_WIDTH 1 /* AIF3_BCLK_FRC */
  4061. #define ARIZONA_AIF3_BCLK_MSTR 0x0020 /* AIF3_BCLK_MSTR */
  4062. #define ARIZONA_AIF3_BCLK_MSTR_MASK 0x0020 /* AIF3_BCLK_MSTR */
  4063. #define ARIZONA_AIF3_BCLK_MSTR_SHIFT 5 /* AIF3_BCLK_MSTR */
  4064. #define ARIZONA_AIF3_BCLK_MSTR_WIDTH 1 /* AIF3_BCLK_MSTR */
  4065. #define ARIZONA_AIF3_BCLK_FREQ_MASK 0x001F /* AIF3_BCLK_FREQ - [4:0] */
  4066. #define ARIZONA_AIF3_BCLK_FREQ_SHIFT 0 /* AIF3_BCLK_FREQ - [4:0] */
  4067. #define ARIZONA_AIF3_BCLK_FREQ_WIDTH 5 /* AIF3_BCLK_FREQ - [4:0] */
  4068. /*
  4069. * R1409 (0x581) - AIF3 Tx Pin Ctrl
  4070. */
  4071. #define ARIZONA_AIF3TX_DAT_TRI 0x0020 /* AIF3TX_DAT_TRI */
  4072. #define ARIZONA_AIF3TX_DAT_TRI_MASK 0x0020 /* AIF3TX_DAT_TRI */
  4073. #define ARIZONA_AIF3TX_DAT_TRI_SHIFT 5 /* AIF3TX_DAT_TRI */
  4074. #define ARIZONA_AIF3TX_DAT_TRI_WIDTH 1 /* AIF3TX_DAT_TRI */
  4075. #define ARIZONA_AIF3TX_LRCLK_SRC 0x0008 /* AIF3TX_LRCLK_SRC */
  4076. #define ARIZONA_AIF3TX_LRCLK_SRC_MASK 0x0008 /* AIF3TX_LRCLK_SRC */
  4077. #define ARIZONA_AIF3TX_LRCLK_SRC_SHIFT 3 /* AIF3TX_LRCLK_SRC */
  4078. #define ARIZONA_AIF3TX_LRCLK_SRC_WIDTH 1 /* AIF3TX_LRCLK_SRC */
  4079. #define ARIZONA_AIF3TX_LRCLK_INV 0x0004 /* AIF3TX_LRCLK_INV */
  4080. #define ARIZONA_AIF3TX_LRCLK_INV_MASK 0x0004 /* AIF3TX_LRCLK_INV */
  4081. #define ARIZONA_AIF3TX_LRCLK_INV_SHIFT 2 /* AIF3TX_LRCLK_INV */
  4082. #define ARIZONA_AIF3TX_LRCLK_INV_WIDTH 1 /* AIF3TX_LRCLK_INV */
  4083. #define ARIZONA_AIF3TX_LRCLK_FRC 0x0002 /* AIF3TX_LRCLK_FRC */
  4084. #define ARIZONA_AIF3TX_LRCLK_FRC_MASK 0x0002 /* AIF3TX_LRCLK_FRC */
  4085. #define ARIZONA_AIF3TX_LRCLK_FRC_SHIFT 1 /* AIF3TX_LRCLK_FRC */
  4086. #define ARIZONA_AIF3TX_LRCLK_FRC_WIDTH 1 /* AIF3TX_LRCLK_FRC */
  4087. #define ARIZONA_AIF3TX_LRCLK_MSTR 0x0001 /* AIF3TX_LRCLK_MSTR */
  4088. #define ARIZONA_AIF3TX_LRCLK_MSTR_MASK 0x0001 /* AIF3TX_LRCLK_MSTR */
  4089. #define ARIZONA_AIF3TX_LRCLK_MSTR_SHIFT 0 /* AIF3TX_LRCLK_MSTR */
  4090. #define ARIZONA_AIF3TX_LRCLK_MSTR_WIDTH 1 /* AIF3TX_LRCLK_MSTR */
  4091. /*
  4092. * R1410 (0x582) - AIF3 Rx Pin Ctrl
  4093. */
  4094. #define ARIZONA_AIF3RX_LRCLK_INV 0x0004 /* AIF3RX_LRCLK_INV */
  4095. #define ARIZONA_AIF3RX_LRCLK_INV_MASK 0x0004 /* AIF3RX_LRCLK_INV */
  4096. #define ARIZONA_AIF3RX_LRCLK_INV_SHIFT 2 /* AIF3RX_LRCLK_INV */
  4097. #define ARIZONA_AIF3RX_LRCLK_INV_WIDTH 1 /* AIF3RX_LRCLK_INV */
  4098. #define ARIZONA_AIF3RX_LRCLK_FRC 0x0002 /* AIF3RX_LRCLK_FRC */
  4099. #define ARIZONA_AIF3RX_LRCLK_FRC_MASK 0x0002 /* AIF3RX_LRCLK_FRC */
  4100. #define ARIZONA_AIF3RX_LRCLK_FRC_SHIFT 1 /* AIF3RX_LRCLK_FRC */
  4101. #define ARIZONA_AIF3RX_LRCLK_FRC_WIDTH 1 /* AIF3RX_LRCLK_FRC */
  4102. #define ARIZONA_AIF3RX_LRCLK_MSTR 0x0001 /* AIF3RX_LRCLK_MSTR */
  4103. #define ARIZONA_AIF3RX_LRCLK_MSTR_MASK 0x0001 /* AIF3RX_LRCLK_MSTR */
  4104. #define ARIZONA_AIF3RX_LRCLK_MSTR_SHIFT 0 /* AIF3RX_LRCLK_MSTR */
  4105. #define ARIZONA_AIF3RX_LRCLK_MSTR_WIDTH 1 /* AIF3RX_LRCLK_MSTR */
  4106. /*
  4107. * R1411 (0x583) - AIF3 Rate Ctrl
  4108. */
  4109. #define ARIZONA_AIF3_RATE_MASK 0x7800 /* AIF3_RATE - [14:11] */
  4110. #define ARIZONA_AIF3_RATE_SHIFT 11 /* AIF3_RATE - [14:11] */
  4111. #define ARIZONA_AIF3_RATE_WIDTH 4 /* AIF3_RATE - [14:11] */
  4112. #define ARIZONA_AIF3_TRI 0x0040 /* AIF3_TRI */
  4113. #define ARIZONA_AIF3_TRI_MASK 0x0040 /* AIF3_TRI */
  4114. #define ARIZONA_AIF3_TRI_SHIFT 6 /* AIF3_TRI */
  4115. #define ARIZONA_AIF3_TRI_WIDTH 1 /* AIF3_TRI */
  4116. /*
  4117. * R1412 (0x584) - AIF3 Format
  4118. */
  4119. #define ARIZONA_AIF3_FMT_MASK 0x0007 /* AIF3_FMT - [2:0] */
  4120. #define ARIZONA_AIF3_FMT_SHIFT 0 /* AIF3_FMT - [2:0] */
  4121. #define ARIZONA_AIF3_FMT_WIDTH 3 /* AIF3_FMT - [2:0] */
  4122. /*
  4123. * R1413 (0x585) - AIF3 Tx BCLK Rate
  4124. */
  4125. #define ARIZONA_AIF3TX_BCPF_MASK 0x1FFF /* AIF3TX_BCPF - [12:0] */
  4126. #define ARIZONA_AIF3TX_BCPF_SHIFT 0 /* AIF3TX_BCPF - [12:0] */
  4127. #define ARIZONA_AIF3TX_BCPF_WIDTH 13 /* AIF3TX_BCPF - [12:0] */
  4128. /*
  4129. * R1414 (0x586) - AIF3 Rx BCLK Rate
  4130. */
  4131. #define ARIZONA_AIF3RX_BCPF_MASK 0x1FFF /* AIF3RX_BCPF - [12:0] */
  4132. #define ARIZONA_AIF3RX_BCPF_SHIFT 0 /* AIF3RX_BCPF - [12:0] */
  4133. #define ARIZONA_AIF3RX_BCPF_WIDTH 13 /* AIF3RX_BCPF - [12:0] */
  4134. /*
  4135. * R1415 (0x587) - AIF3 Frame Ctrl 1
  4136. */
  4137. #define ARIZONA_AIF3TX_WL_MASK 0x3F00 /* AIF3TX_WL - [13:8] */
  4138. #define ARIZONA_AIF3TX_WL_SHIFT 8 /* AIF3TX_WL - [13:8] */
  4139. #define ARIZONA_AIF3TX_WL_WIDTH 6 /* AIF3TX_WL - [13:8] */
  4140. #define ARIZONA_AIF3TX_SLOT_LEN_MASK 0x00FF /* AIF3TX_SLOT_LEN - [7:0] */
  4141. #define ARIZONA_AIF3TX_SLOT_LEN_SHIFT 0 /* AIF3TX_SLOT_LEN - [7:0] */
  4142. #define ARIZONA_AIF3TX_SLOT_LEN_WIDTH 8 /* AIF3TX_SLOT_LEN - [7:0] */
  4143. /*
  4144. * R1416 (0x588) - AIF3 Frame Ctrl 2
  4145. */
  4146. #define ARIZONA_AIF3RX_WL_MASK 0x3F00 /* AIF3RX_WL - [13:8] */
  4147. #define ARIZONA_AIF3RX_WL_SHIFT 8 /* AIF3RX_WL - [13:8] */
  4148. #define ARIZONA_AIF3RX_WL_WIDTH 6 /* AIF3RX_WL - [13:8] */
  4149. #define ARIZONA_AIF3RX_SLOT_LEN_MASK 0x00FF /* AIF3RX_SLOT_LEN - [7:0] */
  4150. #define ARIZONA_AIF3RX_SLOT_LEN_SHIFT 0 /* AIF3RX_SLOT_LEN - [7:0] */
  4151. #define ARIZONA_AIF3RX_SLOT_LEN_WIDTH 8 /* AIF3RX_SLOT_LEN - [7:0] */
  4152. /*
  4153. * R1417 (0x589) - AIF3 Frame Ctrl 3
  4154. */
  4155. #define ARIZONA_AIF3TX1_SLOT_MASK 0x003F /* AIF3TX1_SLOT - [5:0] */
  4156. #define ARIZONA_AIF3TX1_SLOT_SHIFT 0 /* AIF3TX1_SLOT - [5:0] */
  4157. #define ARIZONA_AIF3TX1_SLOT_WIDTH 6 /* AIF3TX1_SLOT - [5:0] */
  4158. /*
  4159. * R1418 (0x58A) - AIF3 Frame Ctrl 4
  4160. */
  4161. #define ARIZONA_AIF3TX2_SLOT_MASK 0x003F /* AIF3TX2_SLOT - [5:0] */
  4162. #define ARIZONA_AIF3TX2_SLOT_SHIFT 0 /* AIF3TX2_SLOT - [5:0] */
  4163. #define ARIZONA_AIF3TX2_SLOT_WIDTH 6 /* AIF3TX2_SLOT - [5:0] */
  4164. /*
  4165. * R1425 (0x591) - AIF3 Frame Ctrl 11
  4166. */
  4167. #define ARIZONA_AIF3RX1_SLOT_MASK 0x003F /* AIF3RX1_SLOT - [5:0] */
  4168. #define ARIZONA_AIF3RX1_SLOT_SHIFT 0 /* AIF3RX1_SLOT - [5:0] */
  4169. #define ARIZONA_AIF3RX1_SLOT_WIDTH 6 /* AIF3RX1_SLOT - [5:0] */
  4170. /*
  4171. * R1426 (0x592) - AIF3 Frame Ctrl 12
  4172. */
  4173. #define ARIZONA_AIF3RX2_SLOT_MASK 0x003F /* AIF3RX2_SLOT - [5:0] */
  4174. #define ARIZONA_AIF3RX2_SLOT_SHIFT 0 /* AIF3RX2_SLOT - [5:0] */
  4175. #define ARIZONA_AIF3RX2_SLOT_WIDTH 6 /* AIF3RX2_SLOT - [5:0] */
  4176. /*
  4177. * R1433 (0x599) - AIF3 Tx Enables
  4178. */
  4179. #define ARIZONA_AIF3TX2_ENA 0x0002 /* AIF3TX2_ENA */
  4180. #define ARIZONA_AIF3TX2_ENA_MASK 0x0002 /* AIF3TX2_ENA */
  4181. #define ARIZONA_AIF3TX2_ENA_SHIFT 1 /* AIF3TX2_ENA */
  4182. #define ARIZONA_AIF3TX2_ENA_WIDTH 1 /* AIF3TX2_ENA */
  4183. #define ARIZONA_AIF3TX1_ENA 0x0001 /* AIF3TX1_ENA */
  4184. #define ARIZONA_AIF3TX1_ENA_MASK 0x0001 /* AIF3TX1_ENA */
  4185. #define ARIZONA_AIF3TX1_ENA_SHIFT 0 /* AIF3TX1_ENA */
  4186. #define ARIZONA_AIF3TX1_ENA_WIDTH 1 /* AIF3TX1_ENA */
  4187. /*
  4188. * R1434 (0x59A) - AIF3 Rx Enables
  4189. */
  4190. #define ARIZONA_AIF3RX2_ENA 0x0002 /* AIF3RX2_ENA */
  4191. #define ARIZONA_AIF3RX2_ENA_MASK 0x0002 /* AIF3RX2_ENA */
  4192. #define ARIZONA_AIF3RX2_ENA_SHIFT 1 /* AIF3RX2_ENA */
  4193. #define ARIZONA_AIF3RX2_ENA_WIDTH 1 /* AIF3RX2_ENA */
  4194. #define ARIZONA_AIF3RX1_ENA 0x0001 /* AIF3RX1_ENA */
  4195. #define ARIZONA_AIF3RX1_ENA_MASK 0x0001 /* AIF3RX1_ENA */
  4196. #define ARIZONA_AIF3RX1_ENA_SHIFT 0 /* AIF3RX1_ENA */
  4197. #define ARIZONA_AIF3RX1_ENA_WIDTH 1 /* AIF3RX1_ENA */
  4198. /*
  4199. * R1435 (0x59B) - AIF3 Force Write
  4200. */
  4201. #define ARIZONA_AIF3_FRC_WR 0x0001 /* AIF3_FRC_WR */
  4202. #define ARIZONA_AIF3_FRC_WR_MASK 0x0001 /* AIF3_FRC_WR */
  4203. #define ARIZONA_AIF3_FRC_WR_SHIFT 0 /* AIF3_FRC_WR */
  4204. #define ARIZONA_AIF3_FRC_WR_WIDTH 1 /* AIF3_FRC_WR */
  4205. /*
  4206. * R1474 (0x5C2) - SPD1 TX Control
  4207. */
  4208. #define ARIZONA_SPD1_VAL2 0x2000 /* SPD1_VAL2 */
  4209. #define ARIZONA_SPD1_VAL2_MASK 0x2000 /* SPD1_VAL2 */
  4210. #define ARIZONA_SPD1_VAL2_SHIFT 13 /* SPD1_VAL2 */
  4211. #define ARIZONA_SPD1_VAL2_WIDTH 1 /* SPD1_VAL2 */
  4212. #define ARIZONA_SPD1_VAL1 0x1000 /* SPD1_VAL1 */
  4213. #define ARIZONA_SPD1_VAL1_MASK 0x1000 /* SPD1_VAL1 */
  4214. #define ARIZONA_SPD1_VAL1_SHIFT 12 /* SPD1_VAL1 */
  4215. #define ARIZONA_SPD1_VAL1_WIDTH 1 /* SPD1_VAL1 */
  4216. #define ARIZONA_SPD1_RATE_MASK 0x00F0 /* SPD1_RATE */
  4217. #define ARIZONA_SPD1_RATE_SHIFT 4 /* SPD1_RATE */
  4218. #define ARIZONA_SPD1_RATE_WIDTH 4 /* SPD1_RATE */
  4219. #define ARIZONA_SPD1_ENA 0x0001 /* SPD1_ENA */
  4220. #define ARIZONA_SPD1_ENA_MASK 0x0001 /* SPD1_ENA */
  4221. #define ARIZONA_SPD1_ENA_SHIFT 0 /* SPD1_ENA */
  4222. #define ARIZONA_SPD1_ENA_WIDTH 1 /* SPD1_ENA */
  4223. /*
  4224. * R1475 (0x5C3) - SPD1 TX Channel Status 1
  4225. */
  4226. #define ARIZONA_SPD1_CATCODE_MASK 0xFF00 /* SPD1_CATCODE */
  4227. #define ARIZONA_SPD1_CATCODE_SHIFT 8 /* SPD1_CATCODE */
  4228. #define ARIZONA_SPD1_CATCODE_WIDTH 8 /* SPD1_CATCODE */
  4229. #define ARIZONA_SPD1_CHSTMODE_MASK 0x00C0 /* SPD1_CHSTMODE */
  4230. #define ARIZONA_SPD1_CHSTMODE_SHIFT 6 /* SPD1_CHSTMODE */
  4231. #define ARIZONA_SPD1_CHSTMODE_WIDTH 2 /* SPD1_CHSTMODE */
  4232. #define ARIZONA_SPD1_PREEMPH_MASK 0x0038 /* SPD1_PREEMPH */
  4233. #define ARIZONA_SPD1_PREEMPH_SHIFT 3 /* SPD1_PREEMPH */
  4234. #define ARIZONA_SPD1_PREEMPH_WIDTH 3 /* SPD1_PREEMPH */
  4235. #define ARIZONA_SPD1_NOCOPY 0x0004 /* SPD1_NOCOPY */
  4236. #define ARIZONA_SPD1_NOCOPY_MASK 0x0004 /* SPD1_NOCOPY */
  4237. #define ARIZONA_SPD1_NOCOPY_SHIFT 2 /* SPD1_NOCOPY */
  4238. #define ARIZONA_SPD1_NOCOPY_WIDTH 1 /* SPD1_NOCOPY */
  4239. #define ARIZONA_SPD1_NOAUDIO 0x0002 /* SPD1_NOAUDIO */
  4240. #define ARIZONA_SPD1_NOAUDIO_MASK 0x0002 /* SPD1_NOAUDIO */
  4241. #define ARIZONA_SPD1_NOAUDIO_SHIFT 1 /* SPD1_NOAUDIO */
  4242. #define ARIZONA_SPD1_NOAUDIO_WIDTH 1 /* SPD1_NOAUDIO */
  4243. #define ARIZONA_SPD1_PRO 0x0001 /* SPD1_PRO */
  4244. #define ARIZONA_SPD1_PRO_MASK 0x0001 /* SPD1_PRO */
  4245. #define ARIZONA_SPD1_PRO_SHIFT 0 /* SPD1_PRO */
  4246. #define ARIZONA_SPD1_PRO_WIDTH 1 /* SPD1_PRO */
  4247. /*
  4248. * R1475 (0x5C4) - SPD1 TX Channel Status 2
  4249. */
  4250. #define ARIZONA_SPD1_FREQ_MASK 0xF000 /* SPD1_FREQ */
  4251. #define ARIZONA_SPD1_FREQ_SHIFT 12 /* SPD1_FREQ */
  4252. #define ARIZONA_SPD1_FREQ_WIDTH 4 /* SPD1_FREQ */
  4253. #define ARIZONA_SPD1_CHNUM2_MASK 0x0F00 /* SPD1_CHNUM2 */
  4254. #define ARIZONA_SPD1_CHNUM2_SHIFT 8 /* SPD1_CHNUM2 */
  4255. #define ARIZONA_SPD1_CHNUM2_WIDTH 4 /* SPD1_CHNUM2 */
  4256. #define ARIZONA_SPD1_CHNUM1_MASK 0x00F0 /* SPD1_CHNUM1 */
  4257. #define ARIZONA_SPD1_CHNUM1_SHIFT 4 /* SPD1_CHNUM1 */
  4258. #define ARIZONA_SPD1_CHNUM1_WIDTH 4 /* SPD1_CHNUM1 */
  4259. #define ARIZONA_SPD1_SRCNUM_MASK 0x000F /* SPD1_SRCNUM */
  4260. #define ARIZONA_SPD1_SRCNUM_SHIFT 0 /* SPD1_SRCNUM */
  4261. #define ARIZONA_SPD1_SRCNUM_WIDTH 4 /* SPD1_SRCNUM */
  4262. /*
  4263. * R1475 (0x5C5) - SPD1 TX Channel Status 3
  4264. */
  4265. #define ARIZONA_SPD1_ORGSAMP_MASK 0x0F00 /* SPD1_ORGSAMP */
  4266. #define ARIZONA_SPD1_ORGSAMP_SHIFT 8 /* SPD1_ORGSAMP */
  4267. #define ARIZONA_SPD1_ORGSAMP_WIDTH 4 /* SPD1_ORGSAMP */
  4268. #define ARIZONA_SPD1_TXWL_MASK 0x00E0 /* SPD1_TXWL */
  4269. #define ARIZONA_SPD1_TXWL_SHIFT 5 /* SPD1_TXWL */
  4270. #define ARIZONA_SPD1_TXWL_WIDTH 3 /* SPD1_TXWL */
  4271. #define ARIZONA_SPD1_MAXWL 0x0010 /* SPD1_MAXWL */
  4272. #define ARIZONA_SPD1_MAXWL_MASK 0x0010 /* SPD1_MAXWL */
  4273. #define ARIZONA_SPD1_MAXWL_SHIFT 4 /* SPD1_MAXWL */
  4274. #define ARIZONA_SPD1_MAXWL_WIDTH 1 /* SPD1_MAXWL */
  4275. #define ARIZONA_SPD1_CS31_30_MASK 0x000C /* SPD1_CS31_30 */
  4276. #define ARIZONA_SPD1_CS31_30_SHIFT 2 /* SPD1_CS31_30 */
  4277. #define ARIZONA_SPD1_CS31_30_WIDTH 2 /* SPD1_CS31_30 */
  4278. #define ARIZONA_SPD1_CLKACU_MASK 0x0003 /* SPD1_CLKACU */
  4279. #define ARIZONA_SPD1_CLKACU_SHIFT 2 /* SPD1_CLKACU */
  4280. #define ARIZONA_SPD1_CLKACU_WIDTH 0 /* SPD1_CLKACU */
  4281. /*
  4282. * R1507 (0x5E3) - SLIMbus Framer Ref Gear
  4283. */
  4284. #define ARIZONA_SLIMCLK_SRC 0x0010 /* SLIMCLK_SRC */
  4285. #define ARIZONA_SLIMCLK_SRC_MASK 0x0010 /* SLIMCLK_SRC */
  4286. #define ARIZONA_SLIMCLK_SRC_SHIFT 4 /* SLIMCLK_SRC */
  4287. #define ARIZONA_SLIMCLK_SRC_WIDTH 1 /* SLIMCLK_SRC */
  4288. #define ARIZONA_FRAMER_REF_GEAR_MASK 0x000F /* FRAMER_REF_GEAR - [3:0] */
  4289. #define ARIZONA_FRAMER_REF_GEAR_SHIFT 0 /* FRAMER_REF_GEAR - [3:0] */
  4290. #define ARIZONA_FRAMER_REF_GEAR_WIDTH 4 /* FRAMER_REF_GEAR - [3:0] */
  4291. /*
  4292. * R1509 (0x5E5) - SLIMbus Rates 1
  4293. */
  4294. #define ARIZONA_SLIMRX2_RATE_MASK 0x7800 /* SLIMRX2_RATE - [14:11] */
  4295. #define ARIZONA_SLIMRX2_RATE_SHIFT 11 /* SLIMRX2_RATE - [14:11] */
  4296. #define ARIZONA_SLIMRX2_RATE_WIDTH 4 /* SLIMRX2_RATE - [14:11] */
  4297. #define ARIZONA_SLIMRX1_RATE_MASK 0x0078 /* SLIMRX1_RATE - [6:3] */
  4298. #define ARIZONA_SLIMRX1_RATE_SHIFT 3 /* SLIMRX1_RATE - [6:3] */
  4299. #define ARIZONA_SLIMRX1_RATE_WIDTH 4 /* SLIMRX1_RATE - [6:3] */
  4300. /*
  4301. * R1510 (0x5E6) - SLIMbus Rates 2
  4302. */
  4303. #define ARIZONA_SLIMRX4_RATE_MASK 0x7800 /* SLIMRX4_RATE - [14:11] */
  4304. #define ARIZONA_SLIMRX4_RATE_SHIFT 11 /* SLIMRX4_RATE - [14:11] */
  4305. #define ARIZONA_SLIMRX4_RATE_WIDTH 4 /* SLIMRX4_RATE - [14:11] */
  4306. #define ARIZONA_SLIMRX3_RATE_MASK 0x0078 /* SLIMRX3_RATE - [6:3] */
  4307. #define ARIZONA_SLIMRX3_RATE_SHIFT 3 /* SLIMRX3_RATE - [6:3] */
  4308. #define ARIZONA_SLIMRX3_RATE_WIDTH 4 /* SLIMRX3_RATE - [6:3] */
  4309. /*
  4310. * R1511 (0x5E7) - SLIMbus Rates 3
  4311. */
  4312. #define ARIZONA_SLIMRX6_RATE_MASK 0x7800 /* SLIMRX6_RATE - [14:11] */
  4313. #define ARIZONA_SLIMRX6_RATE_SHIFT 11 /* SLIMRX6_RATE - [14:11] */
  4314. #define ARIZONA_SLIMRX6_RATE_WIDTH 4 /* SLIMRX6_RATE - [14:11] */
  4315. #define ARIZONA_SLIMRX5_RATE_MASK 0x0078 /* SLIMRX5_RATE - [6:3] */
  4316. #define ARIZONA_SLIMRX5_RATE_SHIFT 3 /* SLIMRX5_RATE - [6:3] */
  4317. #define ARIZONA_SLIMRX5_RATE_WIDTH 4 /* SLIMRX5_RATE - [6:3] */
  4318. /*
  4319. * R1512 (0x5E8) - SLIMbus Rates 4
  4320. */
  4321. #define ARIZONA_SLIMRX8_RATE_MASK 0x7800 /* SLIMRX8_RATE - [14:11] */
  4322. #define ARIZONA_SLIMRX8_RATE_SHIFT 11 /* SLIMRX8_RATE - [14:11] */
  4323. #define ARIZONA_SLIMRX8_RATE_WIDTH 4 /* SLIMRX8_RATE - [14:11] */
  4324. #define ARIZONA_SLIMRX7_RATE_MASK 0x0078 /* SLIMRX7_RATE - [6:3] */
  4325. #define ARIZONA_SLIMRX7_RATE_SHIFT 3 /* SLIMRX7_RATE - [6:3] */
  4326. #define ARIZONA_SLIMRX7_RATE_WIDTH 4 /* SLIMRX7_RATE - [6:3] */
  4327. /*
  4328. * R1513 (0x5E9) - SLIMbus Rates 5
  4329. */
  4330. #define ARIZONA_SLIMTX2_RATE_MASK 0x7800 /* SLIMTX2_RATE - [14:11] */
  4331. #define ARIZONA_SLIMTX2_RATE_SHIFT 11 /* SLIMTX2_RATE - [14:11] */
  4332. #define ARIZONA_SLIMTX2_RATE_WIDTH 4 /* SLIMTX2_RATE - [14:11] */
  4333. #define ARIZONA_SLIMTX1_RATE_MASK 0x0078 /* SLIMTX1_RATE - [6:3] */
  4334. #define ARIZONA_SLIMTX1_RATE_SHIFT 3 /* SLIMTX1_RATE - [6:3] */
  4335. #define ARIZONA_SLIMTX1_RATE_WIDTH 4 /* SLIMTX1_RATE - [6:3] */
  4336. /*
  4337. * R1514 (0x5EA) - SLIMbus Rates 6
  4338. */
  4339. #define ARIZONA_SLIMTX4_RATE_MASK 0x7800 /* SLIMTX4_RATE - [14:11] */
  4340. #define ARIZONA_SLIMTX4_RATE_SHIFT 11 /* SLIMTX4_RATE - [14:11] */
  4341. #define ARIZONA_SLIMTX4_RATE_WIDTH 4 /* SLIMTX4_RATE - [14:11] */
  4342. #define ARIZONA_SLIMTX3_RATE_MASK 0x0078 /* SLIMTX3_RATE - [6:3] */
  4343. #define ARIZONA_SLIMTX3_RATE_SHIFT 3 /* SLIMTX3_RATE - [6:3] */
  4344. #define ARIZONA_SLIMTX3_RATE_WIDTH 4 /* SLIMTX3_RATE - [6:3] */
  4345. /*
  4346. * R1515 (0x5EB) - SLIMbus Rates 7
  4347. */
  4348. #define ARIZONA_SLIMTX6_RATE_MASK 0x7800 /* SLIMTX6_RATE - [14:11] */
  4349. #define ARIZONA_SLIMTX6_RATE_SHIFT 11 /* SLIMTX6_RATE - [14:11] */
  4350. #define ARIZONA_SLIMTX6_RATE_WIDTH 4 /* SLIMTX6_RATE - [14:11] */
  4351. #define ARIZONA_SLIMTX5_RATE_MASK 0x0078 /* SLIMTX5_RATE - [6:3] */
  4352. #define ARIZONA_SLIMTX5_RATE_SHIFT 3 /* SLIMTX5_RATE - [6:3] */
  4353. #define ARIZONA_SLIMTX5_RATE_WIDTH 4 /* SLIMTX5_RATE - [6:3] */
  4354. /*
  4355. * R1516 (0x5EC) - SLIMbus Rates 8
  4356. */
  4357. #define ARIZONA_SLIMTX8_RATE_MASK 0x7800 /* SLIMTX8_RATE - [14:11] */
  4358. #define ARIZONA_SLIMTX8_RATE_SHIFT 11 /* SLIMTX8_RATE - [14:11] */
  4359. #define ARIZONA_SLIMTX8_RATE_WIDTH 4 /* SLIMTX8_RATE - [14:11] */
  4360. #define ARIZONA_SLIMTX7_RATE_MASK 0x0078 /* SLIMTX7_RATE - [6:3] */
  4361. #define ARIZONA_SLIMTX7_RATE_SHIFT 3 /* SLIMTX7_RATE - [6:3] */
  4362. #define ARIZONA_SLIMTX7_RATE_WIDTH 4 /* SLIMTX7_RATE - [6:3] */
  4363. /*
  4364. * R1525 (0x5F5) - SLIMbus RX Channel Enable
  4365. */
  4366. #define ARIZONA_SLIMRX8_ENA 0x0080 /* SLIMRX8_ENA */
  4367. #define ARIZONA_SLIMRX8_ENA_MASK 0x0080 /* SLIMRX8_ENA */
  4368. #define ARIZONA_SLIMRX8_ENA_SHIFT 7 /* SLIMRX8_ENA */
  4369. #define ARIZONA_SLIMRX8_ENA_WIDTH 1 /* SLIMRX8_ENA */
  4370. #define ARIZONA_SLIMRX7_ENA 0x0040 /* SLIMRX7_ENA */
  4371. #define ARIZONA_SLIMRX7_ENA_MASK 0x0040 /* SLIMRX7_ENA */
  4372. #define ARIZONA_SLIMRX7_ENA_SHIFT 6 /* SLIMRX7_ENA */
  4373. #define ARIZONA_SLIMRX7_ENA_WIDTH 1 /* SLIMRX7_ENA */
  4374. #define ARIZONA_SLIMRX6_ENA 0x0020 /* SLIMRX6_ENA */
  4375. #define ARIZONA_SLIMRX6_ENA_MASK 0x0020 /* SLIMRX6_ENA */
  4376. #define ARIZONA_SLIMRX6_ENA_SHIFT 5 /* SLIMRX6_ENA */
  4377. #define ARIZONA_SLIMRX6_ENA_WIDTH 1 /* SLIMRX6_ENA */
  4378. #define ARIZONA_SLIMRX5_ENA 0x0010 /* SLIMRX5_ENA */
  4379. #define ARIZONA_SLIMRX5_ENA_MASK 0x0010 /* SLIMRX5_ENA */
  4380. #define ARIZONA_SLIMRX5_ENA_SHIFT 4 /* SLIMRX5_ENA */
  4381. #define ARIZONA_SLIMRX5_ENA_WIDTH 1 /* SLIMRX5_ENA */
  4382. #define ARIZONA_SLIMRX4_ENA 0x0008 /* SLIMRX4_ENA */
  4383. #define ARIZONA_SLIMRX4_ENA_MASK 0x0008 /* SLIMRX4_ENA */
  4384. #define ARIZONA_SLIMRX4_ENA_SHIFT 3 /* SLIMRX4_ENA */
  4385. #define ARIZONA_SLIMRX4_ENA_WIDTH 1 /* SLIMRX4_ENA */
  4386. #define ARIZONA_SLIMRX3_ENA 0x0004 /* SLIMRX3_ENA */
  4387. #define ARIZONA_SLIMRX3_ENA_MASK 0x0004 /* SLIMRX3_ENA */
  4388. #define ARIZONA_SLIMRX3_ENA_SHIFT 2 /* SLIMRX3_ENA */
  4389. #define ARIZONA_SLIMRX3_ENA_WIDTH 1 /* SLIMRX3_ENA */
  4390. #define ARIZONA_SLIMRX2_ENA 0x0002 /* SLIMRX2_ENA */
  4391. #define ARIZONA_SLIMRX2_ENA_MASK 0x0002 /* SLIMRX2_ENA */
  4392. #define ARIZONA_SLIMRX2_ENA_SHIFT 1 /* SLIMRX2_ENA */
  4393. #define ARIZONA_SLIMRX2_ENA_WIDTH 1 /* SLIMRX2_ENA */
  4394. #define ARIZONA_SLIMRX1_ENA 0x0001 /* SLIMRX1_ENA */
  4395. #define ARIZONA_SLIMRX1_ENA_MASK 0x0001 /* SLIMRX1_ENA */
  4396. #define ARIZONA_SLIMRX1_ENA_SHIFT 0 /* SLIMRX1_ENA */
  4397. #define ARIZONA_SLIMRX1_ENA_WIDTH 1 /* SLIMRX1_ENA */
  4398. /*
  4399. * R1526 (0x5F6) - SLIMbus TX Channel Enable
  4400. */
  4401. #define ARIZONA_SLIMTX8_ENA 0x0080 /* SLIMTX8_ENA */
  4402. #define ARIZONA_SLIMTX8_ENA_MASK 0x0080 /* SLIMTX8_ENA */
  4403. #define ARIZONA_SLIMTX8_ENA_SHIFT 7 /* SLIMTX8_ENA */
  4404. #define ARIZONA_SLIMTX8_ENA_WIDTH 1 /* SLIMTX8_ENA */
  4405. #define ARIZONA_SLIMTX7_ENA 0x0040 /* SLIMTX7_ENA */
  4406. #define ARIZONA_SLIMTX7_ENA_MASK 0x0040 /* SLIMTX7_ENA */
  4407. #define ARIZONA_SLIMTX7_ENA_SHIFT 6 /* SLIMTX7_ENA */
  4408. #define ARIZONA_SLIMTX7_ENA_WIDTH 1 /* SLIMTX7_ENA */
  4409. #define ARIZONA_SLIMTX6_ENA 0x0020 /* SLIMTX6_ENA */
  4410. #define ARIZONA_SLIMTX6_ENA_MASK 0x0020 /* SLIMTX6_ENA */
  4411. #define ARIZONA_SLIMTX6_ENA_SHIFT 5 /* SLIMTX6_ENA */
  4412. #define ARIZONA_SLIMTX6_ENA_WIDTH 1 /* SLIMTX6_ENA */
  4413. #define ARIZONA_SLIMTX5_ENA 0x0010 /* SLIMTX5_ENA */
  4414. #define ARIZONA_SLIMTX5_ENA_MASK 0x0010 /* SLIMTX5_ENA */
  4415. #define ARIZONA_SLIMTX5_ENA_SHIFT 4 /* SLIMTX5_ENA */
  4416. #define ARIZONA_SLIMTX5_ENA_WIDTH 1 /* SLIMTX5_ENA */
  4417. #define ARIZONA_SLIMTX4_ENA 0x0008 /* SLIMTX4_ENA */
  4418. #define ARIZONA_SLIMTX4_ENA_MASK 0x0008 /* SLIMTX4_ENA */
  4419. #define ARIZONA_SLIMTX4_ENA_SHIFT 3 /* SLIMTX4_ENA */
  4420. #define ARIZONA_SLIMTX4_ENA_WIDTH 1 /* SLIMTX4_ENA */
  4421. #define ARIZONA_SLIMTX3_ENA 0x0004 /* SLIMTX3_ENA */
  4422. #define ARIZONA_SLIMTX3_ENA_MASK 0x0004 /* SLIMTX3_ENA */
  4423. #define ARIZONA_SLIMTX3_ENA_SHIFT 2 /* SLIMTX3_ENA */
  4424. #define ARIZONA_SLIMTX3_ENA_WIDTH 1 /* SLIMTX3_ENA */
  4425. #define ARIZONA_SLIMTX2_ENA 0x0002 /* SLIMTX2_ENA */
  4426. #define ARIZONA_SLIMTX2_ENA_MASK 0x0002 /* SLIMTX2_ENA */
  4427. #define ARIZONA_SLIMTX2_ENA_SHIFT 1 /* SLIMTX2_ENA */
  4428. #define ARIZONA_SLIMTX2_ENA_WIDTH 1 /* SLIMTX2_ENA */
  4429. #define ARIZONA_SLIMTX1_ENA 0x0001 /* SLIMTX1_ENA */
  4430. #define ARIZONA_SLIMTX1_ENA_MASK 0x0001 /* SLIMTX1_ENA */
  4431. #define ARIZONA_SLIMTX1_ENA_SHIFT 0 /* SLIMTX1_ENA */
  4432. #define ARIZONA_SLIMTX1_ENA_WIDTH 1 /* SLIMTX1_ENA */
  4433. /*
  4434. * R1527 (0x5F7) - SLIMbus RX Port Status
  4435. */
  4436. #define ARIZONA_SLIMRX8_PORT_STS 0x0080 /* SLIMRX8_PORT_STS */
  4437. #define ARIZONA_SLIMRX8_PORT_STS_MASK 0x0080 /* SLIMRX8_PORT_STS */
  4438. #define ARIZONA_SLIMRX8_PORT_STS_SHIFT 7 /* SLIMRX8_PORT_STS */
  4439. #define ARIZONA_SLIMRX8_PORT_STS_WIDTH 1 /* SLIMRX8_PORT_STS */
  4440. #define ARIZONA_SLIMRX7_PORT_STS 0x0040 /* SLIMRX7_PORT_STS */
  4441. #define ARIZONA_SLIMRX7_PORT_STS_MASK 0x0040 /* SLIMRX7_PORT_STS */
  4442. #define ARIZONA_SLIMRX7_PORT_STS_SHIFT 6 /* SLIMRX7_PORT_STS */
  4443. #define ARIZONA_SLIMRX7_PORT_STS_WIDTH 1 /* SLIMRX7_PORT_STS */
  4444. #define ARIZONA_SLIMRX6_PORT_STS 0x0020 /* SLIMRX6_PORT_STS */
  4445. #define ARIZONA_SLIMRX6_PORT_STS_MASK 0x0020 /* SLIMRX6_PORT_STS */
  4446. #define ARIZONA_SLIMRX6_PORT_STS_SHIFT 5 /* SLIMRX6_PORT_STS */
  4447. #define ARIZONA_SLIMRX6_PORT_STS_WIDTH 1 /* SLIMRX6_PORT_STS */
  4448. #define ARIZONA_SLIMRX5_PORT_STS 0x0010 /* SLIMRX5_PORT_STS */
  4449. #define ARIZONA_SLIMRX5_PORT_STS_MASK 0x0010 /* SLIMRX5_PORT_STS */
  4450. #define ARIZONA_SLIMRX5_PORT_STS_SHIFT 4 /* SLIMRX5_PORT_STS */
  4451. #define ARIZONA_SLIMRX5_PORT_STS_WIDTH 1 /* SLIMRX5_PORT_STS */
  4452. #define ARIZONA_SLIMRX4_PORT_STS 0x0008 /* SLIMRX4_PORT_STS */
  4453. #define ARIZONA_SLIMRX4_PORT_STS_MASK 0x0008 /* SLIMRX4_PORT_STS */
  4454. #define ARIZONA_SLIMRX4_PORT_STS_SHIFT 3 /* SLIMRX4_PORT_STS */
  4455. #define ARIZONA_SLIMRX4_PORT_STS_WIDTH 1 /* SLIMRX4_PORT_STS */
  4456. #define ARIZONA_SLIMRX3_PORT_STS 0x0004 /* SLIMRX3_PORT_STS */
  4457. #define ARIZONA_SLIMRX3_PORT_STS_MASK 0x0004 /* SLIMRX3_PORT_STS */
  4458. #define ARIZONA_SLIMRX3_PORT_STS_SHIFT 2 /* SLIMRX3_PORT_STS */
  4459. #define ARIZONA_SLIMRX3_PORT_STS_WIDTH 1 /* SLIMRX3_PORT_STS */
  4460. #define ARIZONA_SLIMRX2_PORT_STS 0x0002 /* SLIMRX2_PORT_STS */
  4461. #define ARIZONA_SLIMRX2_PORT_STS_MASK 0x0002 /* SLIMRX2_PORT_STS */
  4462. #define ARIZONA_SLIMRX2_PORT_STS_SHIFT 1 /* SLIMRX2_PORT_STS */
  4463. #define ARIZONA_SLIMRX2_PORT_STS_WIDTH 1 /* SLIMRX2_PORT_STS */
  4464. #define ARIZONA_SLIMRX1_PORT_STS 0x0001 /* SLIMRX1_PORT_STS */
  4465. #define ARIZONA_SLIMRX1_PORT_STS_MASK 0x0001 /* SLIMRX1_PORT_STS */
  4466. #define ARIZONA_SLIMRX1_PORT_STS_SHIFT 0 /* SLIMRX1_PORT_STS */
  4467. #define ARIZONA_SLIMRX1_PORT_STS_WIDTH 1 /* SLIMRX1_PORT_STS */
  4468. /*
  4469. * R1528 (0x5F8) - SLIMbus TX Port Status
  4470. */
  4471. #define ARIZONA_SLIMTX8_PORT_STS 0x0080 /* SLIMTX8_PORT_STS */
  4472. #define ARIZONA_SLIMTX8_PORT_STS_MASK 0x0080 /* SLIMTX8_PORT_STS */
  4473. #define ARIZONA_SLIMTX8_PORT_STS_SHIFT 7 /* SLIMTX8_PORT_STS */
  4474. #define ARIZONA_SLIMTX8_PORT_STS_WIDTH 1 /* SLIMTX8_PORT_STS */
  4475. #define ARIZONA_SLIMTX7_PORT_STS 0x0040 /* SLIMTX7_PORT_STS */
  4476. #define ARIZONA_SLIMTX7_PORT_STS_MASK 0x0040 /* SLIMTX7_PORT_STS */
  4477. #define ARIZONA_SLIMTX7_PORT_STS_SHIFT 6 /* SLIMTX7_PORT_STS */
  4478. #define ARIZONA_SLIMTX7_PORT_STS_WIDTH 1 /* SLIMTX7_PORT_STS */
  4479. #define ARIZONA_SLIMTX6_PORT_STS 0x0020 /* SLIMTX6_PORT_STS */
  4480. #define ARIZONA_SLIMTX6_PORT_STS_MASK 0x0020 /* SLIMTX6_PORT_STS */
  4481. #define ARIZONA_SLIMTX6_PORT_STS_SHIFT 5 /* SLIMTX6_PORT_STS */
  4482. #define ARIZONA_SLIMTX6_PORT_STS_WIDTH 1 /* SLIMTX6_PORT_STS */
  4483. #define ARIZONA_SLIMTX5_PORT_STS 0x0010 /* SLIMTX5_PORT_STS */
  4484. #define ARIZONA_SLIMTX5_PORT_STS_MASK 0x0010 /* SLIMTX5_PORT_STS */
  4485. #define ARIZONA_SLIMTX5_PORT_STS_SHIFT 4 /* SLIMTX5_PORT_STS */
  4486. #define ARIZONA_SLIMTX5_PORT_STS_WIDTH 1 /* SLIMTX5_PORT_STS */
  4487. #define ARIZONA_SLIMTX4_PORT_STS 0x0008 /* SLIMTX4_PORT_STS */
  4488. #define ARIZONA_SLIMTX4_PORT_STS_MASK 0x0008 /* SLIMTX4_PORT_STS */
  4489. #define ARIZONA_SLIMTX4_PORT_STS_SHIFT 3 /* SLIMTX4_PORT_STS */
  4490. #define ARIZONA_SLIMTX4_PORT_STS_WIDTH 1 /* SLIMTX4_PORT_STS */
  4491. #define ARIZONA_SLIMTX3_PORT_STS 0x0004 /* SLIMTX3_PORT_STS */
  4492. #define ARIZONA_SLIMTX3_PORT_STS_MASK 0x0004 /* SLIMTX3_PORT_STS */
  4493. #define ARIZONA_SLIMTX3_PORT_STS_SHIFT 2 /* SLIMTX3_PORT_STS */
  4494. #define ARIZONA_SLIMTX3_PORT_STS_WIDTH 1 /* SLIMTX3_PORT_STS */
  4495. #define ARIZONA_SLIMTX2_PORT_STS 0x0002 /* SLIMTX2_PORT_STS */
  4496. #define ARIZONA_SLIMTX2_PORT_STS_MASK 0x0002 /* SLIMTX2_PORT_STS */
  4497. #define ARIZONA_SLIMTX2_PORT_STS_SHIFT 1 /* SLIMTX2_PORT_STS */
  4498. #define ARIZONA_SLIMTX2_PORT_STS_WIDTH 1 /* SLIMTX2_PORT_STS */
  4499. #define ARIZONA_SLIMTX1_PORT_STS 0x0001 /* SLIMTX1_PORT_STS */
  4500. #define ARIZONA_SLIMTX1_PORT_STS_MASK 0x0001 /* SLIMTX1_PORT_STS */
  4501. #define ARIZONA_SLIMTX1_PORT_STS_SHIFT 0 /* SLIMTX1_PORT_STS */
  4502. #define ARIZONA_SLIMTX1_PORT_STS_WIDTH 1 /* SLIMTX1_PORT_STS */
  4503. /*
  4504. * R3087 (0xC0F) - IRQ CTRL 1
  4505. */
  4506. #define ARIZONA_IRQ_POL 0x0400 /* IRQ_POL */
  4507. #define ARIZONA_IRQ_POL_MASK 0x0400 /* IRQ_POL */
  4508. #define ARIZONA_IRQ_POL_SHIFT 10 /* IRQ_POL */
  4509. #define ARIZONA_IRQ_POL_WIDTH 1 /* IRQ_POL */
  4510. #define ARIZONA_IRQ_OP_CFG 0x0200 /* IRQ_OP_CFG */
  4511. #define ARIZONA_IRQ_OP_CFG_MASK 0x0200 /* IRQ_OP_CFG */
  4512. #define ARIZONA_IRQ_OP_CFG_SHIFT 9 /* IRQ_OP_CFG */
  4513. #define ARIZONA_IRQ_OP_CFG_WIDTH 1 /* IRQ_OP_CFG */
  4514. /*
  4515. * R3088 (0xC10) - GPIO Debounce Config
  4516. */
  4517. #define ARIZONA_GP_DBTIME_MASK 0xF000 /* GP_DBTIME - [15:12] */
  4518. #define ARIZONA_GP_DBTIME_SHIFT 12 /* GP_DBTIME - [15:12] */
  4519. #define ARIZONA_GP_DBTIME_WIDTH 4 /* GP_DBTIME - [15:12] */
  4520. /*
  4521. * R3096 (0xC18) - GP Switch 1
  4522. */
  4523. #define ARIZONA_SW1_MODE_MASK 0x0003 /* SW1_MODE - [1:0] */
  4524. #define ARIZONA_SW1_MODE_SHIFT 0 /* SW1_MODE - [1:0] */
  4525. #define ARIZONA_SW1_MODE_WIDTH 2 /* SW1_MODE - [1:0] */
  4526. /*
  4527. * R3104 (0xC20) - Misc Pad Ctrl 1
  4528. */
  4529. #define ARIZONA_LDO1ENA_PD 0x8000 /* LDO1ENA_PD */
  4530. #define ARIZONA_LDO1ENA_PD_MASK 0x8000 /* LDO1ENA_PD */
  4531. #define ARIZONA_LDO1ENA_PD_SHIFT 15 /* LDO1ENA_PD */
  4532. #define ARIZONA_LDO1ENA_PD_WIDTH 1 /* LDO1ENA_PD */
  4533. #define ARIZONA_MCLK2_PD 0x2000 /* MCLK2_PD */
  4534. #define ARIZONA_MCLK2_PD_MASK 0x2000 /* MCLK2_PD */
  4535. #define ARIZONA_MCLK2_PD_SHIFT 13 /* MCLK2_PD */
  4536. #define ARIZONA_MCLK2_PD_WIDTH 1 /* MCLK2_PD */
  4537. #define ARIZONA_RSTB_PU 0x0002 /* RSTB_PU */
  4538. #define ARIZONA_RSTB_PU_MASK 0x0002 /* RSTB_PU */
  4539. #define ARIZONA_RSTB_PU_SHIFT 1 /* RSTB_PU */
  4540. #define ARIZONA_RSTB_PU_WIDTH 1 /* RSTB_PU */
  4541. /*
  4542. * R3105 (0xC21) - Misc Pad Ctrl 2
  4543. */
  4544. #define ARIZONA_MCLK1_PD 0x1000 /* MCLK1_PD */
  4545. #define ARIZONA_MCLK1_PD_MASK 0x1000 /* MCLK1_PD */
  4546. #define ARIZONA_MCLK1_PD_SHIFT 12 /* MCLK1_PD */
  4547. #define ARIZONA_MCLK1_PD_WIDTH 1 /* MCLK1_PD */
  4548. #define ARIZONA_MICD_PD 0x0100 /* MICD_PD */
  4549. #define ARIZONA_MICD_PD_MASK 0x0100 /* MICD_PD */
  4550. #define ARIZONA_MICD_PD_SHIFT 8 /* MICD_PD */
  4551. #define ARIZONA_MICD_PD_WIDTH 1 /* MICD_PD */
  4552. #define ARIZONA_ADDR_PD 0x0001 /* ADDR_PD */
  4553. #define ARIZONA_ADDR_PD_MASK 0x0001 /* ADDR_PD */
  4554. #define ARIZONA_ADDR_PD_SHIFT 0 /* ADDR_PD */
  4555. #define ARIZONA_ADDR_PD_WIDTH 1 /* ADDR_PD */
  4556. /*
  4557. * R3106 (0xC22) - Misc Pad Ctrl 3
  4558. */
  4559. #define ARIZONA_DMICDAT4_PD 0x0008 /* DMICDAT4_PD */
  4560. #define ARIZONA_DMICDAT4_PD_MASK 0x0008 /* DMICDAT4_PD */
  4561. #define ARIZONA_DMICDAT4_PD_SHIFT 3 /* DMICDAT4_PD */
  4562. #define ARIZONA_DMICDAT4_PD_WIDTH 1 /* DMICDAT4_PD */
  4563. #define ARIZONA_DMICDAT3_PD 0x0004 /* DMICDAT3_PD */
  4564. #define ARIZONA_DMICDAT3_PD_MASK 0x0004 /* DMICDAT3_PD */
  4565. #define ARIZONA_DMICDAT3_PD_SHIFT 2 /* DMICDAT3_PD */
  4566. #define ARIZONA_DMICDAT3_PD_WIDTH 1 /* DMICDAT3_PD */
  4567. #define ARIZONA_DMICDAT2_PD 0x0002 /* DMICDAT2_PD */
  4568. #define ARIZONA_DMICDAT2_PD_MASK 0x0002 /* DMICDAT2_PD */
  4569. #define ARIZONA_DMICDAT2_PD_SHIFT 1 /* DMICDAT2_PD */
  4570. #define ARIZONA_DMICDAT2_PD_WIDTH 1 /* DMICDAT2_PD */
  4571. #define ARIZONA_DMICDAT1_PD 0x0001 /* DMICDAT1_PD */
  4572. #define ARIZONA_DMICDAT1_PD_MASK 0x0001 /* DMICDAT1_PD */
  4573. #define ARIZONA_DMICDAT1_PD_SHIFT 0 /* DMICDAT1_PD */
  4574. #define ARIZONA_DMICDAT1_PD_WIDTH 1 /* DMICDAT1_PD */
  4575. /*
  4576. * R3107 (0xC23) - Misc Pad Ctrl 4
  4577. */
  4578. #define ARIZONA_AIF1RXLRCLK_PU 0x0020 /* AIF1RXLRCLK_PU */
  4579. #define ARIZONA_AIF1RXLRCLK_PU_MASK 0x0020 /* AIF1RXLRCLK_PU */
  4580. #define ARIZONA_AIF1RXLRCLK_PU_SHIFT 5 /* AIF1RXLRCLK_PU */
  4581. #define ARIZONA_AIF1RXLRCLK_PU_WIDTH 1 /* AIF1RXLRCLK_PU */
  4582. #define ARIZONA_AIF1RXLRCLK_PD 0x0010 /* AIF1RXLRCLK_PD */
  4583. #define ARIZONA_AIF1RXLRCLK_PD_MASK 0x0010 /* AIF1RXLRCLK_PD */
  4584. #define ARIZONA_AIF1RXLRCLK_PD_SHIFT 4 /* AIF1RXLRCLK_PD */
  4585. #define ARIZONA_AIF1RXLRCLK_PD_WIDTH 1 /* AIF1RXLRCLK_PD */
  4586. #define ARIZONA_AIF1BCLK_PU 0x0008 /* AIF1BCLK_PU */
  4587. #define ARIZONA_AIF1BCLK_PU_MASK 0x0008 /* AIF1BCLK_PU */
  4588. #define ARIZONA_AIF1BCLK_PU_SHIFT 3 /* AIF1BCLK_PU */
  4589. #define ARIZONA_AIF1BCLK_PU_WIDTH 1 /* AIF1BCLK_PU */
  4590. #define ARIZONA_AIF1BCLK_PD 0x0004 /* AIF1BCLK_PD */
  4591. #define ARIZONA_AIF1BCLK_PD_MASK 0x0004 /* AIF1BCLK_PD */
  4592. #define ARIZONA_AIF1BCLK_PD_SHIFT 2 /* AIF1BCLK_PD */
  4593. #define ARIZONA_AIF1BCLK_PD_WIDTH 1 /* AIF1BCLK_PD */
  4594. #define ARIZONA_AIF1RXDAT_PU 0x0002 /* AIF1RXDAT_PU */
  4595. #define ARIZONA_AIF1RXDAT_PU_MASK 0x0002 /* AIF1RXDAT_PU */
  4596. #define ARIZONA_AIF1RXDAT_PU_SHIFT 1 /* AIF1RXDAT_PU */
  4597. #define ARIZONA_AIF1RXDAT_PU_WIDTH 1 /* AIF1RXDAT_PU */
  4598. #define ARIZONA_AIF1RXDAT_PD 0x0001 /* AIF1RXDAT_PD */
  4599. #define ARIZONA_AIF1RXDAT_PD_MASK 0x0001 /* AIF1RXDAT_PD */
  4600. #define ARIZONA_AIF1RXDAT_PD_SHIFT 0 /* AIF1RXDAT_PD */
  4601. #define ARIZONA_AIF1RXDAT_PD_WIDTH 1 /* AIF1RXDAT_PD */
  4602. /*
  4603. * R3108 (0xC24) - Misc Pad Ctrl 5
  4604. */
  4605. #define ARIZONA_AIF2RXLRCLK_PU 0x0020 /* AIF2RXLRCLK_PU */
  4606. #define ARIZONA_AIF2RXLRCLK_PU_MASK 0x0020 /* AIF2RXLRCLK_PU */
  4607. #define ARIZONA_AIF2RXLRCLK_PU_SHIFT 5 /* AIF2RXLRCLK_PU */
  4608. #define ARIZONA_AIF2RXLRCLK_PU_WIDTH 1 /* AIF2RXLRCLK_PU */
  4609. #define ARIZONA_AIF2RXLRCLK_PD 0x0010 /* AIF2RXLRCLK_PD */
  4610. #define ARIZONA_AIF2RXLRCLK_PD_MASK 0x0010 /* AIF2RXLRCLK_PD */
  4611. #define ARIZONA_AIF2RXLRCLK_PD_SHIFT 4 /* AIF2RXLRCLK_PD */
  4612. #define ARIZONA_AIF2RXLRCLK_PD_WIDTH 1 /* AIF2RXLRCLK_PD */
  4613. #define ARIZONA_AIF2BCLK_PU 0x0008 /* AIF2BCLK_PU */
  4614. #define ARIZONA_AIF2BCLK_PU_MASK 0x0008 /* AIF2BCLK_PU */
  4615. #define ARIZONA_AIF2BCLK_PU_SHIFT 3 /* AIF2BCLK_PU */
  4616. #define ARIZONA_AIF2BCLK_PU_WIDTH 1 /* AIF2BCLK_PU */
  4617. #define ARIZONA_AIF2BCLK_PD 0x0004 /* AIF2BCLK_PD */
  4618. #define ARIZONA_AIF2BCLK_PD_MASK 0x0004 /* AIF2BCLK_PD */
  4619. #define ARIZONA_AIF2BCLK_PD_SHIFT 2 /* AIF2BCLK_PD */
  4620. #define ARIZONA_AIF2BCLK_PD_WIDTH 1 /* AIF2BCLK_PD */
  4621. #define ARIZONA_AIF2RXDAT_PU 0x0002 /* AIF2RXDAT_PU */
  4622. #define ARIZONA_AIF2RXDAT_PU_MASK 0x0002 /* AIF2RXDAT_PU */
  4623. #define ARIZONA_AIF2RXDAT_PU_SHIFT 1 /* AIF2RXDAT_PU */
  4624. #define ARIZONA_AIF2RXDAT_PU_WIDTH 1 /* AIF2RXDAT_PU */
  4625. #define ARIZONA_AIF2RXDAT_PD 0x0001 /* AIF2RXDAT_PD */
  4626. #define ARIZONA_AIF2RXDAT_PD_MASK 0x0001 /* AIF2RXDAT_PD */
  4627. #define ARIZONA_AIF2RXDAT_PD_SHIFT 0 /* AIF2RXDAT_PD */
  4628. #define ARIZONA_AIF2RXDAT_PD_WIDTH 1 /* AIF2RXDAT_PD */
  4629. /*
  4630. * R3109 (0xC25) - Misc Pad Ctrl 6
  4631. */
  4632. #define ARIZONA_AIF3RXLRCLK_PU 0x0020 /* AIF3RXLRCLK_PU */
  4633. #define ARIZONA_AIF3RXLRCLK_PU_MASK 0x0020 /* AIF3RXLRCLK_PU */
  4634. #define ARIZONA_AIF3RXLRCLK_PU_SHIFT 5 /* AIF3RXLRCLK_PU */
  4635. #define ARIZONA_AIF3RXLRCLK_PU_WIDTH 1 /* AIF3RXLRCLK_PU */
  4636. #define ARIZONA_AIF3RXLRCLK_PD 0x0010 /* AIF3RXLRCLK_PD */
  4637. #define ARIZONA_AIF3RXLRCLK_PD_MASK 0x0010 /* AIF3RXLRCLK_PD */
  4638. #define ARIZONA_AIF3RXLRCLK_PD_SHIFT 4 /* AIF3RXLRCLK_PD */
  4639. #define ARIZONA_AIF3RXLRCLK_PD_WIDTH 1 /* AIF3RXLRCLK_PD */
  4640. #define ARIZONA_AIF3BCLK_PU 0x0008 /* AIF3BCLK_PU */
  4641. #define ARIZONA_AIF3BCLK_PU_MASK 0x0008 /* AIF3BCLK_PU */
  4642. #define ARIZONA_AIF3BCLK_PU_SHIFT 3 /* AIF3BCLK_PU */
  4643. #define ARIZONA_AIF3BCLK_PU_WIDTH 1 /* AIF3BCLK_PU */
  4644. #define ARIZONA_AIF3BCLK_PD 0x0004 /* AIF3BCLK_PD */
  4645. #define ARIZONA_AIF3BCLK_PD_MASK 0x0004 /* AIF3BCLK_PD */
  4646. #define ARIZONA_AIF3BCLK_PD_SHIFT 2 /* AIF3BCLK_PD */
  4647. #define ARIZONA_AIF3BCLK_PD_WIDTH 1 /* AIF3BCLK_PD */
  4648. #define ARIZONA_AIF3RXDAT_PU 0x0002 /* AIF3RXDAT_PU */
  4649. #define ARIZONA_AIF3RXDAT_PU_MASK 0x0002 /* AIF3RXDAT_PU */
  4650. #define ARIZONA_AIF3RXDAT_PU_SHIFT 1 /* AIF3RXDAT_PU */
  4651. #define ARIZONA_AIF3RXDAT_PU_WIDTH 1 /* AIF3RXDAT_PU */
  4652. #define ARIZONA_AIF3RXDAT_PD 0x0001 /* AIF3RXDAT_PD */
  4653. #define ARIZONA_AIF3RXDAT_PD_MASK 0x0001 /* AIF3RXDAT_PD */
  4654. #define ARIZONA_AIF3RXDAT_PD_SHIFT 0 /* AIF3RXDAT_PD */
  4655. #define ARIZONA_AIF3RXDAT_PD_WIDTH 1 /* AIF3RXDAT_PD */
  4656. /*
  4657. * R3328 (0xD00) - Interrupt Status 1
  4658. */
  4659. #define ARIZONA_GP4_EINT1 0x0008 /* GP4_EINT1 */
  4660. #define ARIZONA_GP4_EINT1_MASK 0x0008 /* GP4_EINT1 */
  4661. #define ARIZONA_GP4_EINT1_SHIFT 3 /* GP4_EINT1 */
  4662. #define ARIZONA_GP4_EINT1_WIDTH 1 /* GP4_EINT1 */
  4663. #define ARIZONA_GP3_EINT1 0x0004 /* GP3_EINT1 */
  4664. #define ARIZONA_GP3_EINT1_MASK 0x0004 /* GP3_EINT1 */
  4665. #define ARIZONA_GP3_EINT1_SHIFT 2 /* GP3_EINT1 */
  4666. #define ARIZONA_GP3_EINT1_WIDTH 1 /* GP3_EINT1 */
  4667. #define ARIZONA_GP2_EINT1 0x0002 /* GP2_EINT1 */
  4668. #define ARIZONA_GP2_EINT1_MASK 0x0002 /* GP2_EINT1 */
  4669. #define ARIZONA_GP2_EINT1_SHIFT 1 /* GP2_EINT1 */
  4670. #define ARIZONA_GP2_EINT1_WIDTH 1 /* GP2_EINT1 */
  4671. #define ARIZONA_GP1_EINT1 0x0001 /* GP1_EINT1 */
  4672. #define ARIZONA_GP1_EINT1_MASK 0x0001 /* GP1_EINT1 */
  4673. #define ARIZONA_GP1_EINT1_SHIFT 0 /* GP1_EINT1 */
  4674. #define ARIZONA_GP1_EINT1_WIDTH 1 /* GP1_EINT1 */
  4675. /*
  4676. * R3329 (0xD01) - Interrupt Status 2
  4677. */
  4678. #define ARIZONA_DSP4_RAM_RDY_EINT1 0x0800 /* DSP4_RAM_RDY_EINT1 */
  4679. #define ARIZONA_DSP4_RAM_RDY_EINT1_MASK 0x0800 /* DSP4_RAM_RDY_EINT1 */
  4680. #define ARIZONA_DSP4_RAM_RDY_EINT1_SHIFT 11 /* DSP4_RAM_RDY_EINT1 */
  4681. #define ARIZONA_DSP4_RAM_RDY_EINT1_WIDTH 1 /* DSP4_RAM_RDY_EINT1 */
  4682. #define ARIZONA_DSP3_RAM_RDY_EINT1 0x0400 /* DSP3_RAM_RDY_EINT1 */
  4683. #define ARIZONA_DSP3_RAM_RDY_EINT1_MASK 0x0400 /* DSP3_RAM_RDY_EINT1 */
  4684. #define ARIZONA_DSP3_RAM_RDY_EINT1_SHIFT 10 /* DSP3_RAM_RDY_EINT1 */
  4685. #define ARIZONA_DSP3_RAM_RDY_EINT1_WIDTH 1 /* DSP3_RAM_RDY_EINT1 */
  4686. #define ARIZONA_DSP2_RAM_RDY_EINT1 0x0200 /* DSP2_RAM_RDY_EINT1 */
  4687. #define ARIZONA_DSP2_RAM_RDY_EINT1_MASK 0x0200 /* DSP2_RAM_RDY_EINT1 */
  4688. #define ARIZONA_DSP2_RAM_RDY_EINT1_SHIFT 9 /* DSP2_RAM_RDY_EINT1 */
  4689. #define ARIZONA_DSP2_RAM_RDY_EINT1_WIDTH 1 /* DSP2_RAM_RDY_EINT1 */
  4690. #define ARIZONA_DSP1_RAM_RDY_EINT1 0x0100 /* DSP1_RAM_RDY_EINT1 */
  4691. #define ARIZONA_DSP1_RAM_RDY_EINT1_MASK 0x0100 /* DSP1_RAM_RDY_EINT1 */
  4692. #define ARIZONA_DSP1_RAM_RDY_EINT1_SHIFT 8 /* DSP1_RAM_RDY_EINT1 */
  4693. #define ARIZONA_DSP1_RAM_RDY_EINT1_WIDTH 1 /* DSP1_RAM_RDY_EINT1 */
  4694. #define ARIZONA_DSP_IRQ8_EINT1 0x0080 /* DSP_IRQ8_EINT1 */
  4695. #define ARIZONA_DSP_IRQ8_EINT1_MASK 0x0080 /* DSP_IRQ8_EINT1 */
  4696. #define ARIZONA_DSP_IRQ8_EINT1_SHIFT 7 /* DSP_IRQ8_EINT1 */
  4697. #define ARIZONA_DSP_IRQ8_EINT1_WIDTH 1 /* DSP_IRQ8_EINT1 */
  4698. #define ARIZONA_DSP_IRQ7_EINT1 0x0040 /* DSP_IRQ7_EINT1 */
  4699. #define ARIZONA_DSP_IRQ7_EINT1_MASK 0x0040 /* DSP_IRQ7_EINT1 */
  4700. #define ARIZONA_DSP_IRQ7_EINT1_SHIFT 6 /* DSP_IRQ7_EINT1 */
  4701. #define ARIZONA_DSP_IRQ7_EINT1_WIDTH 1 /* DSP_IRQ7_EINT1 */
  4702. #define ARIZONA_DSP_IRQ6_EINT1 0x0020 /* DSP_IRQ6_EINT1 */
  4703. #define ARIZONA_DSP_IRQ6_EINT1_MASK 0x0020 /* DSP_IRQ6_EINT1 */
  4704. #define ARIZONA_DSP_IRQ6_EINT1_SHIFT 5 /* DSP_IRQ6_EINT1 */
  4705. #define ARIZONA_DSP_IRQ6_EINT1_WIDTH 1 /* DSP_IRQ6_EINT1 */
  4706. #define ARIZONA_DSP_IRQ5_EINT1 0x0010 /* DSP_IRQ5_EINT1 */
  4707. #define ARIZONA_DSP_IRQ5_EINT1_MASK 0x0010 /* DSP_IRQ5_EINT1 */
  4708. #define ARIZONA_DSP_IRQ5_EINT1_SHIFT 4 /* DSP_IRQ5_EINT1 */
  4709. #define ARIZONA_DSP_IRQ5_EINT1_WIDTH 1 /* DSP_IRQ5_EINT1 */
  4710. #define ARIZONA_DSP_IRQ4_EINT1 0x0008 /* DSP_IRQ4_EINT1 */
  4711. #define ARIZONA_DSP_IRQ4_EINT1_MASK 0x0008 /* DSP_IRQ4_EINT1 */
  4712. #define ARIZONA_DSP_IRQ4_EINT1_SHIFT 3 /* DSP_IRQ4_EINT1 */
  4713. #define ARIZONA_DSP_IRQ4_EINT1_WIDTH 1 /* DSP_IRQ4_EINT1 */
  4714. #define ARIZONA_DSP_IRQ3_EINT1 0x0004 /* DSP_IRQ3_EINT1 */
  4715. #define ARIZONA_DSP_IRQ3_EINT1_MASK 0x0004 /* DSP_IRQ3_EINT1 */
  4716. #define ARIZONA_DSP_IRQ3_EINT1_SHIFT 2 /* DSP_IRQ3_EINT1 */
  4717. #define ARIZONA_DSP_IRQ3_EINT1_WIDTH 1 /* DSP_IRQ3_EINT1 */
  4718. #define ARIZONA_DSP_IRQ2_EINT1 0x0002 /* DSP_IRQ2_EINT1 */
  4719. #define ARIZONA_DSP_IRQ2_EINT1_MASK 0x0002 /* DSP_IRQ2_EINT1 */
  4720. #define ARIZONA_DSP_IRQ2_EINT1_SHIFT 1 /* DSP_IRQ2_EINT1 */
  4721. #define ARIZONA_DSP_IRQ2_EINT1_WIDTH 1 /* DSP_IRQ2_EINT1 */
  4722. #define ARIZONA_DSP_IRQ1_EINT1 0x0001 /* DSP_IRQ1_EINT1 */
  4723. #define ARIZONA_DSP_IRQ1_EINT1_MASK 0x0001 /* DSP_IRQ1_EINT1 */
  4724. #define ARIZONA_DSP_IRQ1_EINT1_SHIFT 0 /* DSP_IRQ1_EINT1 */
  4725. #define ARIZONA_DSP_IRQ1_EINT1_WIDTH 1 /* DSP_IRQ1_EINT1 */
  4726. /*
  4727. * R3330 (0xD02) - Interrupt Status 3
  4728. */
  4729. #define ARIZONA_SPK_OVERHEAT_WARN_EINT1 0x8000 /* SPK_OVERHEAT_WARN_EINT1 */
  4730. #define ARIZONA_SPK_OVERHEAT_WARN_EINT1_MASK 0x8000 /* SPK_OVERHEAD_WARN_EINT1 */
  4731. #define ARIZONA_SPK_OVERHEAT_WARN_EINT1_SHIFT 15 /* SPK_OVERHEAT_WARN_EINT1 */
  4732. #define ARIZONA_SPK_OVERHEAT_WARN_EINT1_WIDTH 1 /* SPK_OVERHEAT_WARN_EINT1 */
  4733. #define ARIZONA_SPK_OVERHEAT_EINT1 0x4000 /* SPK_OVERHEAT_EINT1 */
  4734. #define ARIZONA_SPK_OVERHEAT_EINT1_MASK 0x4000 /* SPK_OVERHEAT_EINT1 */
  4735. #define ARIZONA_SPK_OVERHEAT_EINT1_SHIFT 14 /* SPK_OVERHEAT_EINT1 */
  4736. #define ARIZONA_SPK_OVERHEAT_EINT1_WIDTH 1 /* SPK_OVERHEAT_EINT1 */
  4737. #define ARIZONA_HPDET_EINT1 0x2000 /* HPDET_EINT1 */
  4738. #define ARIZONA_HPDET_EINT1_MASK 0x2000 /* HPDET_EINT1 */
  4739. #define ARIZONA_HPDET_EINT1_SHIFT 13 /* HPDET_EINT1 */
  4740. #define ARIZONA_HPDET_EINT1_WIDTH 1 /* HPDET_EINT1 */
  4741. #define ARIZONA_MICDET_EINT1 0x1000 /* MICDET_EINT1 */
  4742. #define ARIZONA_MICDET_EINT1_MASK 0x1000 /* MICDET_EINT1 */
  4743. #define ARIZONA_MICDET_EINT1_SHIFT 12 /* MICDET_EINT1 */
  4744. #define ARIZONA_MICDET_EINT1_WIDTH 1 /* MICDET_EINT1 */
  4745. #define ARIZONA_WSEQ_DONE_EINT1 0x0800 /* WSEQ_DONE_EINT1 */
  4746. #define ARIZONA_WSEQ_DONE_EINT1_MASK 0x0800 /* WSEQ_DONE_EINT1 */
  4747. #define ARIZONA_WSEQ_DONE_EINT1_SHIFT 11 /* WSEQ_DONE_EINT1 */
  4748. #define ARIZONA_WSEQ_DONE_EINT1_WIDTH 1 /* WSEQ_DONE_EINT1 */
  4749. #define ARIZONA_DRC2_SIG_DET_EINT1 0x0400 /* DRC2_SIG_DET_EINT1 */
  4750. #define ARIZONA_DRC2_SIG_DET_EINT1_MASK 0x0400 /* DRC2_SIG_DET_EINT1 */
  4751. #define ARIZONA_DRC2_SIG_DET_EINT1_SHIFT 10 /* DRC2_SIG_DET_EINT1 */
  4752. #define ARIZONA_DRC2_SIG_DET_EINT1_WIDTH 1 /* DRC2_SIG_DET_EINT1 */
  4753. #define ARIZONA_DRC1_SIG_DET_EINT1 0x0200 /* DRC1_SIG_DET_EINT1 */
  4754. #define ARIZONA_DRC1_SIG_DET_EINT1_MASK 0x0200 /* DRC1_SIG_DET_EINT1 */
  4755. #define ARIZONA_DRC1_SIG_DET_EINT1_SHIFT 9 /* DRC1_SIG_DET_EINT1 */
  4756. #define ARIZONA_DRC1_SIG_DET_EINT1_WIDTH 1 /* DRC1_SIG_DET_EINT1 */
  4757. #define ARIZONA_ASRC2_LOCK_EINT1 0x0100 /* ASRC2_LOCK_EINT1 */
  4758. #define ARIZONA_ASRC2_LOCK_EINT1_MASK 0x0100 /* ASRC2_LOCK_EINT1 */
  4759. #define ARIZONA_ASRC2_LOCK_EINT1_SHIFT 8 /* ASRC2_LOCK_EINT1 */
  4760. #define ARIZONA_ASRC2_LOCK_EINT1_WIDTH 1 /* ASRC2_LOCK_EINT1 */
  4761. #define ARIZONA_ASRC1_LOCK_EINT1 0x0080 /* ASRC1_LOCK_EINT1 */
  4762. #define ARIZONA_ASRC1_LOCK_EINT1_MASK 0x0080 /* ASRC1_LOCK_EINT1 */
  4763. #define ARIZONA_ASRC1_LOCK_EINT1_SHIFT 7 /* ASRC1_LOCK_EINT1 */
  4764. #define ARIZONA_ASRC1_LOCK_EINT1_WIDTH 1 /* ASRC1_LOCK_EINT1 */
  4765. #define ARIZONA_UNDERCLOCKED_EINT1 0x0040 /* UNDERCLOCKED_EINT1 */
  4766. #define ARIZONA_UNDERCLOCKED_EINT1_MASK 0x0040 /* UNDERCLOCKED_EINT1 */
  4767. #define ARIZONA_UNDERCLOCKED_EINT1_SHIFT 6 /* UNDERCLOCKED_EINT1 */
  4768. #define ARIZONA_UNDERCLOCKED_EINT1_WIDTH 1 /* UNDERCLOCKED_EINT1 */
  4769. #define ARIZONA_OVERCLOCKED_EINT1 0x0020 /* OVERCLOCKED_EINT1 */
  4770. #define ARIZONA_OVERCLOCKED_EINT1_MASK 0x0020 /* OVERCLOCKED_EINT1 */
  4771. #define ARIZONA_OVERCLOCKED_EINT1_SHIFT 5 /* OVERCLOCKED_EINT1 */
  4772. #define ARIZONA_OVERCLOCKED_EINT1_WIDTH 1 /* OVERCLOCKED_EINT1 */
  4773. #define ARIZONA_FLL2_LOCK_EINT1 0x0008 /* FLL2_LOCK_EINT1 */
  4774. #define ARIZONA_FLL2_LOCK_EINT1_MASK 0x0008 /* FLL2_LOCK_EINT1 */
  4775. #define ARIZONA_FLL2_LOCK_EINT1_SHIFT 3 /* FLL2_LOCK_EINT1 */
  4776. #define ARIZONA_FLL2_LOCK_EINT1_WIDTH 1 /* FLL2_LOCK_EINT1 */
  4777. #define ARIZONA_FLL1_LOCK_EINT1 0x0004 /* FLL1_LOCK_EINT1 */
  4778. #define ARIZONA_FLL1_LOCK_EINT1_MASK 0x0004 /* FLL1_LOCK_EINT1 */
  4779. #define ARIZONA_FLL1_LOCK_EINT1_SHIFT 2 /* FLL1_LOCK_EINT1 */
  4780. #define ARIZONA_FLL1_LOCK_EINT1_WIDTH 1 /* FLL1_LOCK_EINT1 */
  4781. #define ARIZONA_CLKGEN_ERR_EINT1 0x0002 /* CLKGEN_ERR_EINT1 */
  4782. #define ARIZONA_CLKGEN_ERR_EINT1_MASK 0x0002 /* CLKGEN_ERR_EINT1 */
  4783. #define ARIZONA_CLKGEN_ERR_EINT1_SHIFT 1 /* CLKGEN_ERR_EINT1 */
  4784. #define ARIZONA_CLKGEN_ERR_EINT1_WIDTH 1 /* CLKGEN_ERR_EINT1 */
  4785. #define ARIZONA_CLKGEN_ERR_ASYNC_EINT1 0x0001 /* CLKGEN_ERR_ASYNC_EINT1 */
  4786. #define ARIZONA_CLKGEN_ERR_ASYNC_EINT1_MASK 0x0001 /* CLKGEN_ERR_ASYNC_EINT1 */
  4787. #define ARIZONA_CLKGEN_ERR_ASYNC_EINT1_SHIFT 0 /* CLKGEN_ERR_ASYNC_EINT1 */
  4788. #define ARIZONA_CLKGEN_ERR_ASYNC_EINT1_WIDTH 1 /* CLKGEN_ERR_ASYNC_EINT1 */
  4789. /*
  4790. * R3331 (0xD03) - Interrupt Status 4
  4791. */
  4792. #define ARIZONA_ASRC_CFG_ERR_EINT1 0x8000 /* ASRC_CFG_ERR_EINT1 */
  4793. #define ARIZONA_ASRC_CFG_ERR_EINT1_MASK 0x8000 /* ASRC_CFG_ERR_EINT1 */
  4794. #define ARIZONA_ASRC_CFG_ERR_EINT1_SHIFT 15 /* ASRC_CFG_ERR_EINT1 */
  4795. #define ARIZONA_ASRC_CFG_ERR_EINT1_WIDTH 1 /* ASRC_CFG_ERR_EINT1 */
  4796. #define ARIZONA_AIF3_ERR_EINT1 0x4000 /* AIF3_ERR_EINT1 */
  4797. #define ARIZONA_AIF3_ERR_EINT1_MASK 0x4000 /* AIF3_ERR_EINT1 */
  4798. #define ARIZONA_AIF3_ERR_EINT1_SHIFT 14 /* AIF3_ERR_EINT1 */
  4799. #define ARIZONA_AIF3_ERR_EINT1_WIDTH 1 /* AIF3_ERR_EINT1 */
  4800. #define ARIZONA_AIF2_ERR_EINT1 0x2000 /* AIF2_ERR_EINT1 */
  4801. #define ARIZONA_AIF2_ERR_EINT1_MASK 0x2000 /* AIF2_ERR_EINT1 */
  4802. #define ARIZONA_AIF2_ERR_EINT1_SHIFT 13 /* AIF2_ERR_EINT1 */
  4803. #define ARIZONA_AIF2_ERR_EINT1_WIDTH 1 /* AIF2_ERR_EINT1 */
  4804. #define ARIZONA_AIF1_ERR_EINT1 0x1000 /* AIF1_ERR_EINT1 */
  4805. #define ARIZONA_AIF1_ERR_EINT1_MASK 0x1000 /* AIF1_ERR_EINT1 */
  4806. #define ARIZONA_AIF1_ERR_EINT1_SHIFT 12 /* AIF1_ERR_EINT1 */
  4807. #define ARIZONA_AIF1_ERR_EINT1_WIDTH 1 /* AIF1_ERR_EINT1 */
  4808. #define ARIZONA_CTRLIF_ERR_EINT1 0x0800 /* CTRLIF_ERR_EINT1 */
  4809. #define ARIZONA_CTRLIF_ERR_EINT1_MASK 0x0800 /* CTRLIF_ERR_EINT1 */
  4810. #define ARIZONA_CTRLIF_ERR_EINT1_SHIFT 11 /* CTRLIF_ERR_EINT1 */
  4811. #define ARIZONA_CTRLIF_ERR_EINT1_WIDTH 1 /* CTRLIF_ERR_EINT1 */
  4812. #define ARIZONA_MIXER_DROPPED_SAMPLE_EINT1 0x0400 /* MIXER_DROPPED_SAMPLE_EINT1 */
  4813. #define ARIZONA_MIXER_DROPPED_SAMPLE_EINT1_MASK 0x0400 /* MIXER_DROPPED_SAMPLE_EINT1 */
  4814. #define ARIZONA_MIXER_DROPPED_SAMPLE_EINT1_SHIFT 10 /* MIXER_DROPPED_SAMPLE_EINT1 */
  4815. #define ARIZONA_MIXER_DROPPED_SAMPLE_EINT1_WIDTH 1 /* MIXER_DROPPED_SAMPLE_EINT1 */
  4816. #define ARIZONA_ASYNC_CLK_ENA_LOW_EINT1 0x0200 /* ASYNC_CLK_ENA_LOW_EINT1 */
  4817. #define ARIZONA_ASYNC_CLK_ENA_LOW_EINT1_MASK 0x0200 /* ASYNC_CLK_ENA_LOW_EINT1 */
  4818. #define ARIZONA_ASYNC_CLK_ENA_LOW_EINT1_SHIFT 9 /* ASYNC_CLK_ENA_LOW_EINT1 */
  4819. #define ARIZONA_ASYNC_CLK_ENA_LOW_EINT1_WIDTH 1 /* ASYNC_CLK_ENA_LOW_EINT1 */
  4820. #define ARIZONA_SYSCLK_ENA_LOW_EINT1 0x0100 /* SYSCLK_ENA_LOW_EINT1 */
  4821. #define ARIZONA_SYSCLK_ENA_LOW_EINT1_MASK 0x0100 /* SYSCLK_ENA_LOW_EINT1 */
  4822. #define ARIZONA_SYSCLK_ENA_LOW_EINT1_SHIFT 8 /* SYSCLK_ENA_LOW_EINT1 */
  4823. #define ARIZONA_SYSCLK_ENA_LOW_EINT1_WIDTH 1 /* SYSCLK_ENA_LOW_EINT1 */
  4824. #define ARIZONA_ISRC1_CFG_ERR_EINT1 0x0080 /* ISRC1_CFG_ERR_EINT1 */
  4825. #define ARIZONA_ISRC1_CFG_ERR_EINT1_MASK 0x0080 /* ISRC1_CFG_ERR_EINT1 */
  4826. #define ARIZONA_ISRC1_CFG_ERR_EINT1_SHIFT 7 /* ISRC1_CFG_ERR_EINT1 */
  4827. #define ARIZONA_ISRC1_CFG_ERR_EINT1_WIDTH 1 /* ISRC1_CFG_ERR_EINT1 */
  4828. #define ARIZONA_ISRC2_CFG_ERR_EINT1 0x0040 /* ISRC2_CFG_ERR_EINT1 */
  4829. #define ARIZONA_ISRC2_CFG_ERR_EINT1_MASK 0x0040 /* ISRC2_CFG_ERR_EINT1 */
  4830. #define ARIZONA_ISRC2_CFG_ERR_EINT1_SHIFT 6 /* ISRC2_CFG_ERR_EINT1 */
  4831. #define ARIZONA_ISRC2_CFG_ERR_EINT1_WIDTH 1 /* ISRC2_CFG_ERR_EINT1 */
  4832. #define ARIZONA_HP3R_DONE_EINT1 0x0020 /* HP3R_DONE_EINT1 */
  4833. #define ARIZONA_HP3R_DONE_EINT1_MASK 0x0020 /* HP3R_DONE_EINT1 */
  4834. #define ARIZONA_HP3R_DONE_EINT1_SHIFT 5 /* HP3R_DONE_EINT1 */
  4835. #define ARIZONA_HP3R_DONE_EINT1_WIDTH 1 /* HP3R_DONE_EINT1 */
  4836. #define ARIZONA_HP3L_DONE_EINT1 0x0010 /* HP3L_DONE_EINT1 */
  4837. #define ARIZONA_HP3L_DONE_EINT1_MASK 0x0010 /* HP3L_DONE_EINT1 */
  4838. #define ARIZONA_HP3L_DONE_EINT1_SHIFT 4 /* HP3L_DONE_EINT1 */
  4839. #define ARIZONA_HP3L_DONE_EINT1_WIDTH 1 /* HP3L_DONE_EINT1 */
  4840. #define ARIZONA_HP2R_DONE_EINT1 0x0008 /* HP2R_DONE_EINT1 */
  4841. #define ARIZONA_HP2R_DONE_EINT1_MASK 0x0008 /* HP2R_DONE_EINT1 */
  4842. #define ARIZONA_HP2R_DONE_EINT1_SHIFT 3 /* HP2R_DONE_EINT1 */
  4843. #define ARIZONA_HP2R_DONE_EINT1_WIDTH 1 /* HP2R_DONE_EINT1 */
  4844. #define ARIZONA_HP2L_DONE_EINT1 0x0004 /* HP2L_DONE_EINT1 */
  4845. #define ARIZONA_HP2L_DONE_EINT1_MASK 0x0004 /* HP2L_DONE_EINT1 */
  4846. #define ARIZONA_HP2L_DONE_EINT1_SHIFT 2 /* HP2L_DONE_EINT1 */
  4847. #define ARIZONA_HP2L_DONE_EINT1_WIDTH 1 /* HP2L_DONE_EINT1 */
  4848. #define ARIZONA_HP1R_DONE_EINT1 0x0002 /* HP1R_DONE_EINT1 */
  4849. #define ARIZONA_HP1R_DONE_EINT1_MASK 0x0002 /* HP1R_DONE_EINT1 */
  4850. #define ARIZONA_HP1R_DONE_EINT1_SHIFT 1 /* HP1R_DONE_EINT1 */
  4851. #define ARIZONA_HP1R_DONE_EINT1_WIDTH 1 /* HP1R_DONE_EINT1 */
  4852. #define ARIZONA_HP1L_DONE_EINT1 0x0001 /* HP1L_DONE_EINT1 */
  4853. #define ARIZONA_HP1L_DONE_EINT1_MASK 0x0001 /* HP1L_DONE_EINT1 */
  4854. #define ARIZONA_HP1L_DONE_EINT1_SHIFT 0 /* HP1L_DONE_EINT1 */
  4855. #define ARIZONA_HP1L_DONE_EINT1_WIDTH 1 /* HP1L_DONE_EINT1 */
  4856. /*
  4857. * R3331 (0xD03) - Interrupt Status 4 (Alternate layout)
  4858. *
  4859. * Alternate layout used on later devices, note only fields that have moved
  4860. * are specified
  4861. */
  4862. #define ARIZONA_V2_AIF3_ERR_EINT1 0x8000 /* AIF3_ERR_EINT1 */
  4863. #define ARIZONA_V2_AIF3_ERR_EINT1_MASK 0x8000 /* AIF3_ERR_EINT1 */
  4864. #define ARIZONA_V2_AIF3_ERR_EINT1_SHIFT 15 /* AIF3_ERR_EINT1 */
  4865. #define ARIZONA_V2_AIF3_ERR_EINT1_WIDTH 1 /* AIF3_ERR_EINT1 */
  4866. #define ARIZONA_V2_AIF2_ERR_EINT1 0x4000 /* AIF2_ERR_EINT1 */
  4867. #define ARIZONA_V2_AIF2_ERR_EINT1_MASK 0x4000 /* AIF2_ERR_EINT1 */
  4868. #define ARIZONA_V2_AIF2_ERR_EINT1_SHIFT 14 /* AIF2_ERR_EINT1 */
  4869. #define ARIZONA_V2_AIF2_ERR_EINT1_WIDTH 1 /* AIF2_ERR_EINT1 */
  4870. #define ARIZONA_V2_AIF1_ERR_EINT1 0x2000 /* AIF1_ERR_EINT1 */
  4871. #define ARIZONA_V2_AIF1_ERR_EINT1_MASK 0x2000 /* AIF1_ERR_EINT1 */
  4872. #define ARIZONA_V2_AIF1_ERR_EINT1_SHIFT 13 /* AIF1_ERR_EINT1 */
  4873. #define ARIZONA_V2_AIF1_ERR_EINT1_WIDTH 1 /* AIF1_ERR_EINT1 */
  4874. #define ARIZONA_V2_CTRLIF_ERR_EINT1 0x1000 /* CTRLIF_ERR_EINT1 */
  4875. #define ARIZONA_V2_CTRLIF_ERR_EINT1_MASK 0x1000 /* CTRLIF_ERR_EINT1 */
  4876. #define ARIZONA_V2_CTRLIF_ERR_EINT1_SHIFT 12 /* CTRLIF_ERR_EINT1 */
  4877. #define ARIZONA_V2_CTRLIF_ERR_EINT1_WIDTH 1 /* CTRLIF_ERR_EINT1 */
  4878. #define ARIZONA_V2_MIXER_DROPPED_SAMPLE_EINT1 0x0800 /* MIXER_DROPPED_SAMPLE_EINT1 */
  4879. #define ARIZONA_V2_MIXER_DROPPED_SAMPLE_EINT1_MASK 0x0800 /* MIXER_DROPPED_SAMPLE_EINT1 */
  4880. #define ARIZONA_V2_MIXER_DROPPED_SAMPLE_EINT1_SHIFT 11 /* MIXER_DROPPED_SAMPLE_EINT1 */
  4881. #define ARIZONA_V2_MIXER_DROPPED_SAMPLE_EINT1_WIDTH 1 /* MIXER_DROPPED_SAMPLE_EINT1 */
  4882. #define ARIZONA_V2_ASYNC_CLK_ENA_LOW_EINT1 0x0400 /* ASYNC_CLK_ENA_LOW_EINT1 */
  4883. #define ARIZONA_V2_ASYNC_CLK_ENA_LOW_EINT1_MASK 0x0400 /* ASYNC_CLK_ENA_LOW_EINT1 */
  4884. #define ARIZONA_V2_ASYNC_CLK_ENA_LOW_EINT1_SHIFT 10 /* ASYNC_CLK_ENA_LOW_EINT1 */
  4885. #define ARIZONA_V2_ASYNC_CLK_ENA_LOW_EINT1_WIDTH 1 /* ASYNC_CLK_ENA_LOW_EINT1 */
  4886. #define ARIZONA_V2_SYSCLK_ENA_LOW_EINT1 0x0200 /* SYSCLK_ENA_LOW_EINT1 */
  4887. #define ARIZONA_V2_SYSCLK_ENA_LOW_EINT1_MASK 0x0200 /* SYSCLK_ENA_LOW_EINT1 */
  4888. #define ARIZONA_V2_SYSCLK_ENA_LOW_EINT1_SHIFT 9 /* SYSCLK_ENA_LOW_EINT1 */
  4889. #define ARIZONA_V2_SYSCLK_ENA_LOW_EINT1_WIDTH 1 /* SYSCLK_ENA_LOW_EINT1 */
  4890. #define ARIZONA_V2_ISRC1_CFG_ERR_EINT1 0x0100 /* ISRC1_CFG_ERR_EINT1 */
  4891. #define ARIZONA_V2_ISRC1_CFG_ERR_EINT1_MASK 0x0100 /* ISRC1_CFG_ERR_EINT1 */
  4892. #define ARIZONA_V2_ISRC1_CFG_ERR_EINT1_SHIFT 8 /* ISRC1_CFG_ERR_EINT1 */
  4893. #define ARIZONA_V2_ISRC1_CFG_ERR_EINT1_WIDTH 1 /* ISRC1_CFG_ERR_EINT1 */
  4894. #define ARIZONA_V2_ISRC2_CFG_ERR_EINT1 0x0080 /* ISRC2_CFG_ERR_EINT1 */
  4895. #define ARIZONA_V2_ISRC2_CFG_ERR_EINT1_MASK 0x0080 /* ISRC2_CFG_ERR_EINT1 */
  4896. #define ARIZONA_V2_ISRC2_CFG_ERR_EINT1_SHIFT 7 /* ISRC2_CFG_ERR_EINT1 */
  4897. #define ARIZONA_V2_ISRC2_CFG_ERR_EINT1_WIDTH 1 /* ISRC2_CFG_ERR_EINT1 */
  4898. #define ARIZONA_V2_ISRC3_CFG_ERR_EINT1 0x0040 /* ISRC3_CFG_ERR_EINT1 */
  4899. #define ARIZONA_V2_ISRC3_CFG_ERR_EINT1_MASK 0x0040 /* ISRC3_CFG_ERR_EINT1 */
  4900. #define ARIZONA_V2_ISRC3_CFG_ERR_EINT1_SHIFT 6 /* ISRC3_CFG_ERR_EINT1 */
  4901. #define ARIZONA_V2_ISRC3_CFG_ERR_EINT1_WIDTH 1 /* ISRC3_CFG_ERR_EINT1 */
  4902. /*
  4903. * R3332 (0xD04) - Interrupt Status 5
  4904. */
  4905. #define ARIZONA_BOOT_DONE_EINT1 0x0100 /* BOOT_DONE_EINT1 */
  4906. #define ARIZONA_BOOT_DONE_EINT1_MASK 0x0100 /* BOOT_DONE_EINT1 */
  4907. #define ARIZONA_BOOT_DONE_EINT1_SHIFT 8 /* BOOT_DONE_EINT1 */
  4908. #define ARIZONA_BOOT_DONE_EINT1_WIDTH 1 /* BOOT_DONE_EINT1 */
  4909. #define ARIZONA_DCS_DAC_DONE_EINT1 0x0080 /* DCS_DAC_DONE_EINT1 */
  4910. #define ARIZONA_DCS_DAC_DONE_EINT1_MASK 0x0080 /* DCS_DAC_DONE_EINT1 */
  4911. #define ARIZONA_DCS_DAC_DONE_EINT1_SHIFT 7 /* DCS_DAC_DONE_EINT1 */
  4912. #define ARIZONA_DCS_DAC_DONE_EINT1_WIDTH 1 /* DCS_DAC_DONE_EINT1 */
  4913. #define ARIZONA_DCS_HP_DONE_EINT1 0x0040 /* DCS_HP_DONE_EINT1 */
  4914. #define ARIZONA_DCS_HP_DONE_EINT1_MASK 0x0040 /* DCS_HP_DONE_EINT1 */
  4915. #define ARIZONA_DCS_HP_DONE_EINT1_SHIFT 6 /* DCS_HP_DONE_EINT1 */
  4916. #define ARIZONA_DCS_HP_DONE_EINT1_WIDTH 1 /* DCS_HP_DONE_EINT1 */
  4917. #define ARIZONA_FLL2_CLOCK_OK_EINT1 0x0002 /* FLL2_CLOCK_OK_EINT1 */
  4918. #define ARIZONA_FLL2_CLOCK_OK_EINT1_MASK 0x0002 /* FLL2_CLOCK_OK_EINT1 */
  4919. #define ARIZONA_FLL2_CLOCK_OK_EINT1_SHIFT 1 /* FLL2_CLOCK_OK_EINT1 */
  4920. #define ARIZONA_FLL2_CLOCK_OK_EINT1_WIDTH 1 /* FLL2_CLOCK_OK_EINT1 */
  4921. #define ARIZONA_FLL1_CLOCK_OK_EINT1 0x0001 /* FLL1_CLOCK_OK_EINT1 */
  4922. #define ARIZONA_FLL1_CLOCK_OK_EINT1_MASK 0x0001 /* FLL1_CLOCK_OK_EINT1 */
  4923. #define ARIZONA_FLL1_CLOCK_OK_EINT1_SHIFT 0 /* FLL1_CLOCK_OK_EINT1 */
  4924. #define ARIZONA_FLL1_CLOCK_OK_EINT1_WIDTH 1 /* FLL1_CLOCK_OK_EINT1 */
  4925. /*
  4926. * R3332 (0xD05) - Interrupt Status 5 (Alternate layout)
  4927. *
  4928. * Alternate layout used on later devices, note only fields that have moved
  4929. * are specified
  4930. */
  4931. #define ARIZONA_V2_ASRC_CFG_ERR_EINT1 0x0008 /* ASRC_CFG_ERR_EINT1 */
  4932. #define ARIZONA_V2_ASRC_CFG_ERR_EINT1_MASK 0x0008 /* ASRC_CFG_ERR_EINT1 */
  4933. #define ARIZONA_V2_ASRC_CFG_ERR_EINT1_SHIFT 3 /* ASRC_CFG_ERR_EINT1 */
  4934. #define ARIZONA_V2_ASRC_CFG_ERR_EINT1_WIDTH 1 /* ASRC_CFG_ERR_EINT1 */
  4935. /*
  4936. * R3333 (0xD05) - Interrupt Status 6
  4937. */
  4938. #define ARIZONA_DSP_SHARED_WR_COLL_EINT1 0x8000 /* DSP_SHARED_WR_COLL_EINT1 */
  4939. #define ARIZONA_DSP_SHARED_WR_COLL_EINT1_MASK 0x8000 /* DSP_SHARED_WR_COLL_EINT1 */
  4940. #define ARIZONA_DSP_SHARED_WR_COLL_EINT1_SHIFT 15 /* DSP_SHARED_WR_COLL_EINT1 */
  4941. #define ARIZONA_DSP_SHARED_WR_COLL_EINT1_WIDTH 1 /* DSP_SHARED_WR_COLL_EINT1 */
  4942. #define ARIZONA_SPK_SHUTDOWN_EINT1 0x4000 /* SPK_SHUTDOWN_EINT1 */
  4943. #define ARIZONA_SPK_SHUTDOWN_EINT1_MASK 0x4000 /* SPK_SHUTDOWN_EINT1 */
  4944. #define ARIZONA_SPK_SHUTDOWN_EINT1_SHIFT 14 /* SPK_SHUTDOWN_EINT1 */
  4945. #define ARIZONA_SPK_SHUTDOWN_EINT1_WIDTH 1 /* SPK_SHUTDOWN_EINT1 */
  4946. #define ARIZONA_SPK1R_SHORT_EINT1 0x2000 /* SPK1R_SHORT_EINT1 */
  4947. #define ARIZONA_SPK1R_SHORT_EINT1_MASK 0x2000 /* SPK1R_SHORT_EINT1 */
  4948. #define ARIZONA_SPK1R_SHORT_EINT1_SHIFT 13 /* SPK1R_SHORT_EINT1 */
  4949. #define ARIZONA_SPK1R_SHORT_EINT1_WIDTH 1 /* SPK1R_SHORT_EINT1 */
  4950. #define ARIZONA_SPK1L_SHORT_EINT1 0x1000 /* SPK1L_SHORT_EINT1 */
  4951. #define ARIZONA_SPK1L_SHORT_EINT1_MASK 0x1000 /* SPK1L_SHORT_EINT1 */
  4952. #define ARIZONA_SPK1L_SHORT_EINT1_SHIFT 12 /* SPK1L_SHORT_EINT1 */
  4953. #define ARIZONA_SPK1L_SHORT_EINT1_WIDTH 1 /* SPK1L_SHORT_EINT1 */
  4954. #define ARIZONA_HP3R_SC_NEG_EINT1 0x0800 /* HP3R_SC_NEG_EINT1 */
  4955. #define ARIZONA_HP3R_SC_NEG_EINT1_MASK 0x0800 /* HP3R_SC_NEG_EINT1 */
  4956. #define ARIZONA_HP3R_SC_NEG_EINT1_SHIFT 11 /* HP3R_SC_NEG_EINT1 */
  4957. #define ARIZONA_HP3R_SC_NEG_EINT1_WIDTH 1 /* HP3R_SC_NEG_EINT1 */
  4958. #define ARIZONA_HP3R_SC_POS_EINT1 0x0400 /* HP3R_SC_POS_EINT1 */
  4959. #define ARIZONA_HP3R_SC_POS_EINT1_MASK 0x0400 /* HP3R_SC_POS_EINT1 */
  4960. #define ARIZONA_HP3R_SC_POS_EINT1_SHIFT 10 /* HP3R_SC_POS_EINT1 */
  4961. #define ARIZONA_HP3R_SC_POS_EINT1_WIDTH 1 /* HP3R_SC_POS_EINT1 */
  4962. #define ARIZONA_HP3L_SC_NEG_EINT1 0x0200 /* HP3L_SC_NEG_EINT1 */
  4963. #define ARIZONA_HP3L_SC_NEG_EINT1_MASK 0x0200 /* HP3L_SC_NEG_EINT1 */
  4964. #define ARIZONA_HP3L_SC_NEG_EINT1_SHIFT 9 /* HP3L_SC_NEG_EINT1 */
  4965. #define ARIZONA_HP3L_SC_NEG_EINT1_WIDTH 1 /* HP3L_SC_NEG_EINT1 */
  4966. #define ARIZONA_HP3L_SC_POS_EINT1 0x0100 /* HP3L_SC_POS_EINT1 */
  4967. #define ARIZONA_HP3L_SC_POS_EINT1_MASK 0x0100 /* HP3L_SC_POS_EINT1 */
  4968. #define ARIZONA_HP3L_SC_POS_EINT1_SHIFT 8 /* HP3L_SC_POS_EINT1 */
  4969. #define ARIZONA_HP3L_SC_POS_EINT1_WIDTH 1 /* HP3L_SC_POS_EINT1 */
  4970. #define ARIZONA_HP2R_SC_NEG_EINT1 0x0080 /* HP2R_SC_NEG_EINT1 */
  4971. #define ARIZONA_HP2R_SC_NEG_EINT1_MASK 0x0080 /* HP2R_SC_NEG_EINT1 */
  4972. #define ARIZONA_HP2R_SC_NEG_EINT1_SHIFT 7 /* HP2R_SC_NEG_EINT1 */
  4973. #define ARIZONA_HP2R_SC_NEG_EINT1_WIDTH 1 /* HP2R_SC_NEG_EINT1 */
  4974. #define ARIZONA_HP2R_SC_POS_EINT1 0x0040 /* HP2R_SC_POS_EINT1 */
  4975. #define ARIZONA_HP2R_SC_POS_EINT1_MASK 0x0040 /* HP2R_SC_POS_EINT1 */
  4976. #define ARIZONA_HP2R_SC_POS_EINT1_SHIFT 6 /* HP2R_SC_POS_EINT1 */
  4977. #define ARIZONA_HP2R_SC_POS_EINT1_WIDTH 1 /* HP2R_SC_POS_EINT1 */
  4978. #define ARIZONA_HP2L_SC_NEG_EINT1 0x0020 /* HP2L_SC_NEG_EINT1 */
  4979. #define ARIZONA_HP2L_SC_NEG_EINT1_MASK 0x0020 /* HP2L_SC_NEG_EINT1 */
  4980. #define ARIZONA_HP2L_SC_NEG_EINT1_SHIFT 5 /* HP2L_SC_NEG_EINT1 */
  4981. #define ARIZONA_HP2L_SC_NEG_EINT1_WIDTH 1 /* HP2L_SC_NEG_EINT1 */
  4982. #define ARIZONA_HP2L_SC_POS_EINT1 0x0010 /* HP2L_SC_POS_EINT1 */
  4983. #define ARIZONA_HP2L_SC_POS_EINT1_MASK 0x0010 /* HP2L_SC_POS_EINT1 */
  4984. #define ARIZONA_HP2L_SC_POS_EINT1_SHIFT 4 /* HP2L_SC_POS_EINT1 */
  4985. #define ARIZONA_HP2L_SC_POS_EINT1_WIDTH 1 /* HP2L_SC_POS_EINT1 */
  4986. #define ARIZONA_HP1R_SC_NEG_EINT1 0x0008 /* HP1R_SC_NEG_EINT1 */
  4987. #define ARIZONA_HP1R_SC_NEG_EINT1_MASK 0x0008 /* HP1R_SC_NEG_EINT1 */
  4988. #define ARIZONA_HP1R_SC_NEG_EINT1_SHIFT 3 /* HP1R_SC_NEG_EINT1 */
  4989. #define ARIZONA_HP1R_SC_NEG_EINT1_WIDTH 1 /* HP1R_SC_NEG_EINT1 */
  4990. #define ARIZONA_HP1R_SC_POS_EINT1 0x0004 /* HP1R_SC_POS_EINT1 */
  4991. #define ARIZONA_HP1R_SC_POS_EINT1_MASK 0x0004 /* HP1R_SC_POS_EINT1 */
  4992. #define ARIZONA_HP1R_SC_POS_EINT1_SHIFT 2 /* HP1R_SC_POS_EINT1 */
  4993. #define ARIZONA_HP1R_SC_POS_EINT1_WIDTH 1 /* HP1R_SC_POS_EINT1 */
  4994. #define ARIZONA_HP1L_SC_NEG_EINT1 0x0002 /* HP1L_SC_NEG_EINT1 */
  4995. #define ARIZONA_HP1L_SC_NEG_EINT1_MASK 0x0002 /* HP1L_SC_NEG_EINT1 */
  4996. #define ARIZONA_HP1L_SC_NEG_EINT1_SHIFT 1 /* HP1L_SC_NEG_EINT1 */
  4997. #define ARIZONA_HP1L_SC_NEG_EINT1_WIDTH 1 /* HP1L_SC_NEG_EINT1 */
  4998. #define ARIZONA_HP1L_SC_POS_EINT1 0x0001 /* HP1L_SC_POS_EINT1 */
  4999. #define ARIZONA_HP1L_SC_POS_EINT1_MASK 0x0001 /* HP1L_SC_POS_EINT1 */
  5000. #define ARIZONA_HP1L_SC_POS_EINT1_SHIFT 0 /* HP1L_SC_POS_EINT1 */
  5001. #define ARIZONA_HP1L_SC_POS_EINT1_WIDTH 1 /* HP1L_SC_POS_EINT1 */
  5002. /*
  5003. * R3336 (0xD08) - Interrupt Status 1 Mask
  5004. */
  5005. #define ARIZONA_IM_GP4_EINT1 0x0008 /* IM_GP4_EINT1 */
  5006. #define ARIZONA_IM_GP4_EINT1_MASK 0x0008 /* IM_GP4_EINT1 */
  5007. #define ARIZONA_IM_GP4_EINT1_SHIFT 3 /* IM_GP4_EINT1 */
  5008. #define ARIZONA_IM_GP4_EINT1_WIDTH 1 /* IM_GP4_EINT1 */
  5009. #define ARIZONA_IM_GP3_EINT1 0x0004 /* IM_GP3_EINT1 */
  5010. #define ARIZONA_IM_GP3_EINT1_MASK 0x0004 /* IM_GP3_EINT1 */
  5011. #define ARIZONA_IM_GP3_EINT1_SHIFT 2 /* IM_GP3_EINT1 */
  5012. #define ARIZONA_IM_GP3_EINT1_WIDTH 1 /* IM_GP3_EINT1 */
  5013. #define ARIZONA_IM_GP2_EINT1 0x0002 /* IM_GP2_EINT1 */
  5014. #define ARIZONA_IM_GP2_EINT1_MASK 0x0002 /* IM_GP2_EINT1 */
  5015. #define ARIZONA_IM_GP2_EINT1_SHIFT 1 /* IM_GP2_EINT1 */
  5016. #define ARIZONA_IM_GP2_EINT1_WIDTH 1 /* IM_GP2_EINT1 */
  5017. #define ARIZONA_IM_GP1_EINT1 0x0001 /* IM_GP1_EINT1 */
  5018. #define ARIZONA_IM_GP1_EINT1_MASK 0x0001 /* IM_GP1_EINT1 */
  5019. #define ARIZONA_IM_GP1_EINT1_SHIFT 0 /* IM_GP1_EINT1 */
  5020. #define ARIZONA_IM_GP1_EINT1_WIDTH 1 /* IM_GP1_EINT1 */
  5021. /*
  5022. * R3337 (0xD09) - Interrupt Status 2 Mask
  5023. */
  5024. #define ARIZONA_IM_DSP1_RAM_RDY_EINT1 0x0100 /* IM_DSP1_RAM_RDY_EINT1 */
  5025. #define ARIZONA_IM_DSP1_RAM_RDY_EINT1_MASK 0x0100 /* IM_DSP1_RAM_RDY_EINT1 */
  5026. #define ARIZONA_IM_DSP1_RAM_RDY_EINT1_SHIFT 8 /* IM_DSP1_RAM_RDY_EINT1 */
  5027. #define ARIZONA_IM_DSP1_RAM_RDY_EINT1_WIDTH 1 /* IM_DSP1_RAM_RDY_EINT1 */
  5028. #define ARIZONA_IM_DSP_IRQ2_EINT1 0x0002 /* IM_DSP_IRQ2_EINT1 */
  5029. #define ARIZONA_IM_DSP_IRQ2_EINT1_MASK 0x0002 /* IM_DSP_IRQ2_EINT1 */
  5030. #define ARIZONA_IM_DSP_IRQ2_EINT1_SHIFT 1 /* IM_DSP_IRQ2_EINT1 */
  5031. #define ARIZONA_IM_DSP_IRQ2_EINT1_WIDTH 1 /* IM_DSP_IRQ2_EINT1 */
  5032. #define ARIZONA_IM_DSP_IRQ1_EINT1 0x0001 /* IM_DSP_IRQ1_EINT1 */
  5033. #define ARIZONA_IM_DSP_IRQ1_EINT1_MASK 0x0001 /* IM_DSP_IRQ1_EINT1 */
  5034. #define ARIZONA_IM_DSP_IRQ1_EINT1_SHIFT 0 /* IM_DSP_IRQ1_EINT1 */
  5035. #define ARIZONA_IM_DSP_IRQ1_EINT1_WIDTH 1 /* IM_DSP_IRQ1_EINT1 */
  5036. /*
  5037. * R3338 (0xD0A) - Interrupt Status 3 Mask
  5038. */
  5039. #define ARIZONA_IM_SPK_OVERHEAT_WARN_EINT1 0x8000 /* IM_SPK_OVERHEAT_WARN_EINT1 */
  5040. #define ARIZONA_IM_SPK_OVERHEAT_WARN_EINT1_MASK 0x8000 /* IM_SPK_OVERHEAT_WARN_EINT1 */
  5041. #define ARIZONA_IM_SPK_OVERHEAT_WARN_EINT1_SHIFT 15 /* IM_SPK_OVERHEAT_WARN_EINT1 */
  5042. #define ARIZONA_IM_SPK_OVERHEAT_WARN_EINT1_WIDTH 1 /* IM_SPK_OVERHEAT_WARN_EINT1 */
  5043. #define ARIZONA_IM_SPK_OVERHEAT_EINT1 0x4000 /* IM_SPK_OVERHEAT_EINT1 */
  5044. #define ARIZONA_IM_SPK_OVERHEAT_EINT1_MASK 0x4000 /* IM_SPK_OVERHEAT_EINT1 */
  5045. #define ARIZONA_IM_SPK_OVERHEAT_EINT1_SHIFT 14 /* IM_SPK_OVERHEAT_EINT1 */
  5046. #define ARIZONA_IM_SPK_OVERHEAT_EINT1_WIDTH 1 /* IM_SPK_OVERHEAT_EINT1 */
  5047. #define ARIZONA_IM_HPDET_EINT1 0x2000 /* IM_HPDET_EINT1 */
  5048. #define ARIZONA_IM_HPDET_EINT1_MASK 0x2000 /* IM_HPDET_EINT1 */
  5049. #define ARIZONA_IM_HPDET_EINT1_SHIFT 13 /* IM_HPDET_EINT1 */
  5050. #define ARIZONA_IM_HPDET_EINT1_WIDTH 1 /* IM_HPDET_EINT1 */
  5051. #define ARIZONA_IM_MICDET_EINT1 0x1000 /* IM_MICDET_EINT1 */
  5052. #define ARIZONA_IM_MICDET_EINT1_MASK 0x1000 /* IM_MICDET_EINT1 */
  5053. #define ARIZONA_IM_MICDET_EINT1_SHIFT 12 /* IM_MICDET_EINT1 */
  5054. #define ARIZONA_IM_MICDET_EINT1_WIDTH 1 /* IM_MICDET_EINT1 */
  5055. #define ARIZONA_IM_WSEQ_DONE_EINT1 0x0800 /* IM_WSEQ_DONE_EINT1 */
  5056. #define ARIZONA_IM_WSEQ_DONE_EINT1_MASK 0x0800 /* IM_WSEQ_DONE_EINT1 */
  5057. #define ARIZONA_IM_WSEQ_DONE_EINT1_SHIFT 11 /* IM_WSEQ_DONE_EINT1 */
  5058. #define ARIZONA_IM_WSEQ_DONE_EINT1_WIDTH 1 /* IM_WSEQ_DONE_EINT1 */
  5059. #define ARIZONA_IM_DRC2_SIG_DET_EINT1 0x0400 /* IM_DRC2_SIG_DET_EINT1 */
  5060. #define ARIZONA_IM_DRC2_SIG_DET_EINT1_MASK 0x0400 /* IM_DRC2_SIG_DET_EINT1 */
  5061. #define ARIZONA_IM_DRC2_SIG_DET_EINT1_SHIFT 10 /* IM_DRC2_SIG_DET_EINT1 */
  5062. #define ARIZONA_IM_DRC2_SIG_DET_EINT1_WIDTH 1 /* IM_DRC2_SIG_DET_EINT1 */
  5063. #define ARIZONA_IM_DRC1_SIG_DET_EINT1 0x0200 /* IM_DRC1_SIG_DET_EINT1 */
  5064. #define ARIZONA_IM_DRC1_SIG_DET_EINT1_MASK 0x0200 /* IM_DRC1_SIG_DET_EINT1 */
  5065. #define ARIZONA_IM_DRC1_SIG_DET_EINT1_SHIFT 9 /* IM_DRC1_SIG_DET_EINT1 */
  5066. #define ARIZONA_IM_DRC1_SIG_DET_EINT1_WIDTH 1 /* IM_DRC1_SIG_DET_EINT1 */
  5067. #define ARIZONA_IM_ASRC2_LOCK_EINT1 0x0100 /* IM_ASRC2_LOCK_EINT1 */
  5068. #define ARIZONA_IM_ASRC2_LOCK_EINT1_MASK 0x0100 /* IM_ASRC2_LOCK_EINT1 */
  5069. #define ARIZONA_IM_ASRC2_LOCK_EINT1_SHIFT 8 /* IM_ASRC2_LOCK_EINT1 */
  5070. #define ARIZONA_IM_ASRC2_LOCK_EINT1_WIDTH 1 /* IM_ASRC2_LOCK_EINT1 */
  5071. #define ARIZONA_IM_ASRC1_LOCK_EINT1 0x0080 /* IM_ASRC1_LOCK_EINT1 */
  5072. #define ARIZONA_IM_ASRC1_LOCK_EINT1_MASK 0x0080 /* IM_ASRC1_LOCK_EINT1 */
  5073. #define ARIZONA_IM_ASRC1_LOCK_EINT1_SHIFT 7 /* IM_ASRC1_LOCK_EINT1 */
  5074. #define ARIZONA_IM_ASRC1_LOCK_EINT1_WIDTH 1 /* IM_ASRC1_LOCK_EINT1 */
  5075. #define ARIZONA_IM_UNDERCLOCKED_EINT1 0x0040 /* IM_UNDERCLOCKED_EINT1 */
  5076. #define ARIZONA_IM_UNDERCLOCKED_EINT1_MASK 0x0040 /* IM_UNDERCLOCKED_EINT1 */
  5077. #define ARIZONA_IM_UNDERCLOCKED_EINT1_SHIFT 6 /* IM_UNDERCLOCKED_EINT1 */
  5078. #define ARIZONA_IM_UNDERCLOCKED_EINT1_WIDTH 1 /* IM_UNDERCLOCKED_EINT1 */
  5079. #define ARIZONA_IM_OVERCLOCKED_EINT1 0x0020 /* IM_OVERCLOCKED_EINT1 */
  5080. #define ARIZONA_IM_OVERCLOCKED_EINT1_MASK 0x0020 /* IM_OVERCLOCKED_EINT1 */
  5081. #define ARIZONA_IM_OVERCLOCKED_EINT1_SHIFT 5 /* IM_OVERCLOCKED_EINT1 */
  5082. #define ARIZONA_IM_OVERCLOCKED_EINT1_WIDTH 1 /* IM_OVERCLOCKED_EINT1 */
  5083. #define ARIZONA_IM_FLL2_LOCK_EINT1 0x0008 /* IM_FLL2_LOCK_EINT1 */
  5084. #define ARIZONA_IM_FLL2_LOCK_EINT1_MASK 0x0008 /* IM_FLL2_LOCK_EINT1 */
  5085. #define ARIZONA_IM_FLL2_LOCK_EINT1_SHIFT 3 /* IM_FLL2_LOCK_EINT1 */
  5086. #define ARIZONA_IM_FLL2_LOCK_EINT1_WIDTH 1 /* IM_FLL2_LOCK_EINT1 */
  5087. #define ARIZONA_IM_FLL1_LOCK_EINT1 0x0004 /* IM_FLL1_LOCK_EINT1 */
  5088. #define ARIZONA_IM_FLL1_LOCK_EINT1_MASK 0x0004 /* IM_FLL1_LOCK_EINT1 */
  5089. #define ARIZONA_IM_FLL1_LOCK_EINT1_SHIFT 2 /* IM_FLL1_LOCK_EINT1 */
  5090. #define ARIZONA_IM_FLL1_LOCK_EINT1_WIDTH 1 /* IM_FLL1_LOCK_EINT1 */
  5091. #define ARIZONA_IM_CLKGEN_ERR_EINT1 0x0002 /* IM_CLKGEN_ERR_EINT1 */
  5092. #define ARIZONA_IM_CLKGEN_ERR_EINT1_MASK 0x0002 /* IM_CLKGEN_ERR_EINT1 */
  5093. #define ARIZONA_IM_CLKGEN_ERR_EINT1_SHIFT 1 /* IM_CLKGEN_ERR_EINT1 */
  5094. #define ARIZONA_IM_CLKGEN_ERR_EINT1_WIDTH 1 /* IM_CLKGEN_ERR_EINT1 */
  5095. #define ARIZONA_IM_CLKGEN_ERR_ASYNC_EINT1 0x0001 /* IM_CLKGEN_ERR_ASYNC_EINT1 */
  5096. #define ARIZONA_IM_CLKGEN_ERR_ASYNC_EINT1_MASK 0x0001 /* IM_CLKGEN_ERR_ASYNC_EINT1 */
  5097. #define ARIZONA_IM_CLKGEN_ERR_ASYNC_EINT1_SHIFT 0 /* IM_CLKGEN_ERR_ASYNC_EINT1 */
  5098. #define ARIZONA_IM_CLKGEN_ERR_ASYNC_EINT1_WIDTH 1 /* IM_CLKGEN_ERR_ASYNC_EINT1 */
  5099. /*
  5100. * R3339 (0xD0B) - Interrupt Status 4 Mask
  5101. */
  5102. #define ARIZONA_IM_ASRC_CFG_ERR_EINT1 0x8000 /* IM_ASRC_CFG_ERR_EINT1 */
  5103. #define ARIZONA_IM_ASRC_CFG_ERR_EINT1_MASK 0x8000 /* IM_ASRC_CFG_ERR_EINT1 */
  5104. #define ARIZONA_IM_ASRC_CFG_ERR_EINT1_SHIFT 15 /* IM_ASRC_CFG_ERR_EINT1 */
  5105. #define ARIZONA_IM_ASRC_CFG_ERR_EINT1_WIDTH 1 /* IM_ASRC_CFG_ERR_EINT1 */
  5106. #define ARIZONA_IM_AIF3_ERR_EINT1 0x4000 /* IM_AIF3_ERR_EINT1 */
  5107. #define ARIZONA_IM_AIF3_ERR_EINT1_MASK 0x4000 /* IM_AIF3_ERR_EINT1 */
  5108. #define ARIZONA_IM_AIF3_ERR_EINT1_SHIFT 14 /* IM_AIF3_ERR_EINT1 */
  5109. #define ARIZONA_IM_AIF3_ERR_EINT1_WIDTH 1 /* IM_AIF3_ERR_EINT1 */
  5110. #define ARIZONA_IM_AIF2_ERR_EINT1 0x2000 /* IM_AIF2_ERR_EINT1 */
  5111. #define ARIZONA_IM_AIF2_ERR_EINT1_MASK 0x2000 /* IM_AIF2_ERR_EINT1 */
  5112. #define ARIZONA_IM_AIF2_ERR_EINT1_SHIFT 13 /* IM_AIF2_ERR_EINT1 */
  5113. #define ARIZONA_IM_AIF2_ERR_EINT1_WIDTH 1 /* IM_AIF2_ERR_EINT1 */
  5114. #define ARIZONA_IM_AIF1_ERR_EINT1 0x1000 /* IM_AIF1_ERR_EINT1 */
  5115. #define ARIZONA_IM_AIF1_ERR_EINT1_MASK 0x1000 /* IM_AIF1_ERR_EINT1 */
  5116. #define ARIZONA_IM_AIF1_ERR_EINT1_SHIFT 12 /* IM_AIF1_ERR_EINT1 */
  5117. #define ARIZONA_IM_AIF1_ERR_EINT1_WIDTH 1 /* IM_AIF1_ERR_EINT1 */
  5118. #define ARIZONA_IM_CTRLIF_ERR_EINT1 0x0800 /* IM_CTRLIF_ERR_EINT1 */
  5119. #define ARIZONA_IM_CTRLIF_ERR_EINT1_MASK 0x0800 /* IM_CTRLIF_ERR_EINT1 */
  5120. #define ARIZONA_IM_CTRLIF_ERR_EINT1_SHIFT 11 /* IM_CTRLIF_ERR_EINT1 */
  5121. #define ARIZONA_IM_CTRLIF_ERR_EINT1_WIDTH 1 /* IM_CTRLIF_ERR_EINT1 */
  5122. #define ARIZONA_IM_MIXER_DROPPED_SAMPLE_EINT1 0x0400 /* IM_MIXER_DROPPED_SAMPLE_EINT1 */
  5123. #define ARIZONA_IM_MIXER_DROPPED_SAMPLE_EINT1_MASK 0x0400 /* IM_MIXER_DROPPED_SAMPLE_EINT1 */
  5124. #define ARIZONA_IM_MIXER_DROPPED_SAMPLE_EINT1_SHIFT 10 /* IM_MIXER_DROPPED_SAMPLE_EINT1 */
  5125. #define ARIZONA_IM_MIXER_DROPPED_SAMPLE_EINT1_WIDTH 1 /* IM_MIXER_DROPPED_SAMPLE_EINT1 */
  5126. #define ARIZONA_IM_ASYNC_CLK_ENA_LOW_EINT1 0x0200 /* IM_ASYNC_CLK_ENA_LOW_EINT1 */
  5127. #define ARIZONA_IM_ASYNC_CLK_ENA_LOW_EINT1_MASK 0x0200 /* IM_ASYNC_CLK_ENA_LOW_EINT1 */
  5128. #define ARIZONA_IM_ASYNC_CLK_ENA_LOW_EINT1_SHIFT 9 /* IM_ASYNC_CLK_ENA_LOW_EINT1 */
  5129. #define ARIZONA_IM_ASYNC_CLK_ENA_LOW_EINT1_WIDTH 1 /* IM_ASYNC_CLK_ENA_LOW_EINT1 */
  5130. #define ARIZONA_IM_SYSCLK_ENA_LOW_EINT1 0x0100 /* IM_SYSCLK_ENA_LOW_EINT1 */
  5131. #define ARIZONA_IM_SYSCLK_ENA_LOW_EINT1_MASK 0x0100 /* IM_SYSCLK_ENA_LOW_EINT1 */
  5132. #define ARIZONA_IM_SYSCLK_ENA_LOW_EINT1_SHIFT 8 /* IM_SYSCLK_ENA_LOW_EINT1 */
  5133. #define ARIZONA_IM_SYSCLK_ENA_LOW_EINT1_WIDTH 1 /* IM_SYSCLK_ENA_LOW_EINT1 */
  5134. #define ARIZONA_IM_ISRC1_CFG_ERR_EINT1 0x0080 /* IM_ISRC1_CFG_ERR_EINT1 */
  5135. #define ARIZONA_IM_ISRC1_CFG_ERR_EINT1_MASK 0x0080 /* IM_ISRC1_CFG_ERR_EINT1 */
  5136. #define ARIZONA_IM_ISRC1_CFG_ERR_EINT1_SHIFT 7 /* IM_ISRC1_CFG_ERR_EINT1 */
  5137. #define ARIZONA_IM_ISRC1_CFG_ERR_EINT1_WIDTH 1 /* IM_ISRC1_CFG_ERR_EINT1 */
  5138. #define ARIZONA_IM_ISRC2_CFG_ERR_EINT1 0x0040 /* IM_ISRC2_CFG_ERR_EINT1 */
  5139. #define ARIZONA_IM_ISRC2_CFG_ERR_EINT1_MASK 0x0040 /* IM_ISRC2_CFG_ERR_EINT1 */
  5140. #define ARIZONA_IM_ISRC2_CFG_ERR_EINT1_SHIFT 6 /* IM_ISRC2_CFG_ERR_EINT1 */
  5141. #define ARIZONA_IM_ISRC2_CFG_ERR_EINT1_WIDTH 1 /* IM_ISRC2_CFG_ERR_EINT1 */
  5142. #define ARIZONA_IM_HP3R_DONE_EINT1 0x0020 /* IM_HP3R_DONE_EINT1 */
  5143. #define ARIZONA_IM_HP3R_DONE_EINT1_MASK 0x0020 /* IM_HP3R_DONE_EINT1 */
  5144. #define ARIZONA_IM_HP3R_DONE_EINT1_SHIFT 5 /* IM_HP3R_DONE_EINT1 */
  5145. #define ARIZONA_IM_HP3R_DONE_EINT1_WIDTH 1 /* IM_HP3R_DONE_EINT1 */
  5146. #define ARIZONA_IM_HP3L_DONE_EINT1 0x0010 /* IM_HP3L_DONE_EINT1 */
  5147. #define ARIZONA_IM_HP3L_DONE_EINT1_MASK 0x0010 /* IM_HP3L_DONE_EINT1 */
  5148. #define ARIZONA_IM_HP3L_DONE_EINT1_SHIFT 4 /* IM_HP3L_DONE_EINT1 */
  5149. #define ARIZONA_IM_HP3L_DONE_EINT1_WIDTH 1 /* IM_HP3L_DONE_EINT1 */
  5150. #define ARIZONA_IM_HP2R_DONE_EINT1 0x0008 /* IM_HP2R_DONE_EINT1 */
  5151. #define ARIZONA_IM_HP2R_DONE_EINT1_MASK 0x0008 /* IM_HP2R_DONE_EINT1 */
  5152. #define ARIZONA_IM_HP2R_DONE_EINT1_SHIFT 3 /* IM_HP2R_DONE_EINT1 */
  5153. #define ARIZONA_IM_HP2R_DONE_EINT1_WIDTH 1 /* IM_HP2R_DONE_EINT1 */
  5154. #define ARIZONA_IM_HP2L_DONE_EINT1 0x0004 /* IM_HP2L_DONE_EINT1 */
  5155. #define ARIZONA_IM_HP2L_DONE_EINT1_MASK 0x0004 /* IM_HP2L_DONE_EINT1 */
  5156. #define ARIZONA_IM_HP2L_DONE_EINT1_SHIFT 2 /* IM_HP2L_DONE_EINT1 */
  5157. #define ARIZONA_IM_HP2L_DONE_EINT1_WIDTH 1 /* IM_HP2L_DONE_EINT1 */
  5158. #define ARIZONA_IM_HP1R_DONE_EINT1 0x0002 /* IM_HP1R_DONE_EINT1 */
  5159. #define ARIZONA_IM_HP1R_DONE_EINT1_MASK 0x0002 /* IM_HP1R_DONE_EINT1 */
  5160. #define ARIZONA_IM_HP1R_DONE_EINT1_SHIFT 1 /* IM_HP1R_DONE_EINT1 */
  5161. #define ARIZONA_IM_HP1R_DONE_EINT1_WIDTH 1 /* IM_HP1R_DONE_EINT1 */
  5162. #define ARIZONA_IM_HP1L_DONE_EINT1 0x0001 /* IM_HP1L_DONE_EINT1 */
  5163. #define ARIZONA_IM_HP1L_DONE_EINT1_MASK 0x0001 /* IM_HP1L_DONE_EINT1 */
  5164. #define ARIZONA_IM_HP1L_DONE_EINT1_SHIFT 0 /* IM_HP1L_DONE_EINT1 */
  5165. #define ARIZONA_IM_HP1L_DONE_EINT1_WIDTH 1 /* IM_HP1L_DONE_EINT1 */
  5166. /*
  5167. * R3339 (0xD0B) - Interrupt Status 4 Mask (Alternate layout)
  5168. *
  5169. * Alternate layout used on later devices, note only fields that have moved
  5170. * are specified
  5171. */
  5172. #define ARIZONA_V2_IM_AIF3_ERR_EINT1 0x8000 /* IM_AIF3_ERR_EINT1 */
  5173. #define ARIZONA_V2_IM_AIF3_ERR_EINT1_MASK 0x8000 /* IM_AIF3_ERR_EINT1 */
  5174. #define ARIZONA_V2_IM_AIF3_ERR_EINT1_SHIFT 15 /* IM_AIF3_ERR_EINT1 */
  5175. #define ARIZONA_V2_IM_AIF3_ERR_EINT1_WIDTH 1 /* IM_AIF3_ERR_EINT1 */
  5176. #define ARIZONA_V2_IM_AIF2_ERR_EINT1 0x4000 /* IM_AIF2_ERR_EINT1 */
  5177. #define ARIZONA_V2_IM_AIF2_ERR_EINT1_MASK 0x4000 /* IM_AIF2_ERR_EINT1 */
  5178. #define ARIZONA_V2_IM_AIF2_ERR_EINT1_SHIFT 14 /* IM_AIF2_ERR_EINT1 */
  5179. #define ARIZONA_V2_IM_AIF2_ERR_EINT1_WIDTH 1 /* IM_AIF2_ERR_EINT1 */
  5180. #define ARIZONA_V2_IM_AIF1_ERR_EINT1 0x2000 /* IM_AIF1_ERR_EINT1 */
  5181. #define ARIZONA_V2_IM_AIF1_ERR_EINT1_MASK 0x2000 /* IM_AIF1_ERR_EINT1 */
  5182. #define ARIZONA_V2_IM_AIF1_ERR_EINT1_SHIFT 13 /* IM_AIF1_ERR_EINT1 */
  5183. #define ARIZONA_V2_IM_AIF1_ERR_EINT1_WIDTH 1 /* IM_AIF1_ERR_EINT1 */
  5184. #define ARIZONA_V2_IM_CTRLIF_ERR_EINT1 0x1000 /* IM_CTRLIF_ERR_EINT1 */
  5185. #define ARIZONA_V2_IM_CTRLIF_ERR_EINT1_MASK 0x1000 /* IM_CTRLIF_ERR_EINT1 */
  5186. #define ARIZONA_V2_IM_CTRLIF_ERR_EINT1_SHIFT 12 /* IM_CTRLIF_ERR_EINT1 */
  5187. #define ARIZONA_V2_IM_CTRLIF_ERR_EINT1_WIDTH 1 /* IM_CTRLIF_ERR_EINT1 */
  5188. #define ARIZONA_V2_IM_MIXER_DROPPED_SAMPLE_EINT1 0x0800 /* IM_MIXER_DROPPED_SAMPLE_EINT1 */
  5189. #define ARIZONA_V2_IM_MIXER_DROPPED_SAMPLE_EINT1_MASK 0x0800 /* IM_MIXER_DROPPED_SAMPLE_EINT1 */
  5190. #define ARIZONA_V2_IM_MIXER_DROPPED_SAMPLE_EINT1_SHIFT 11 /* IM_MIXER_DROPPED_SAMPLE_EINT1 */
  5191. #define ARIZONA_V2_IM_MIXER_DROPPED_SAMPLE_EINT1_WIDTH 1 /* IM_MIXER_DROPPED_SAMPLE_EINT1 */
  5192. #define ARIZONA_V2_IM_ASYNC_CLK_ENA_LOW_EINT1 0x0400 /* IM_ASYNC_CLK_ENA_LOW_EINT1 */
  5193. #define ARIZONA_V2_IM_ASYNC_CLK_ENA_LOW_EINT1_MASK 0x0400 /* IM_ASYNC_CLK_ENA_LOW_EINT1 */
  5194. #define ARIZONA_V2_IM_ASYNC_CLK_ENA_LOW_EINT1_SHIFT 10 /* IM_ASYNC_CLK_ENA_LOW_EINT1 */
  5195. #define ARIZONA_V2_IM_ASYNC_CLK_ENA_LOW_EINT1_WIDTH 1 /* IM_ASYNC_CLK_ENA_LOW_EINT1 */
  5196. #define ARIZONA_V2_IM_SYSCLK_ENA_LOW_EINT1 0x0200 /* IM_SYSCLK_ENA_LOW_EINT1 */
  5197. #define ARIZONA_V2_IM_SYSCLK_ENA_LOW_EINT1_MASK 0x0200 /* IM_SYSCLK_ENA_LOW_EINT1 */
  5198. #define ARIZONA_V2_IM_SYSCLK_ENA_LOW_EINT1_SHIFT 9 /* IM_SYSCLK_ENA_LOW_EINT1 */
  5199. #define ARIZONA_V2_IM_SYSCLK_ENA_LOW_EINT1_WIDTH 1 /* IM_SYSCLK_ENA_LOW_EINT1 */
  5200. #define ARIZONA_V2_IM_ISRC1_CFG_ERR_EINT1 0x0100 /* IM_ISRC1_CFG_ERR_EINT1 */
  5201. #define ARIZONA_V2_IM_ISRC1_CFG_ERR_EINT1_MASK 0x0100 /* IM_ISRC1_CFG_ERR_EINT1 */
  5202. #define ARIZONA_V2_IM_ISRC1_CFG_ERR_EINT1_SHIFT 8 /* IM_ISRC1_CFG_ERR_EINT1 */
  5203. #define ARIZONA_V2_IM_ISRC1_CFG_ERR_EINT1_WIDTH 1 /* IM_ISRC1_CFG_ERR_EINT1 */
  5204. #define ARIZONA_V2_IM_ISRC2_CFG_ERR_EINT1 0x0080 /* IM_ISRC2_CFG_ERR_EINT1 */
  5205. #define ARIZONA_V2_IM_ISRC2_CFG_ERR_EINT1_MASK 0x0080 /* IM_ISRC2_CFG_ERR_EINT1 */
  5206. #define ARIZONA_V2_IM_ISRC2_CFG_ERR_EINT1_SHIFT 7 /* IM_ISRC2_CFG_ERR_EINT1 */
  5207. #define ARIZONA_V2_IM_ISRC2_CFG_ERR_EINT1_WIDTH 1 /* IM_ISRC2_CFG_ERR_EINT1 */
  5208. #define ARIZONA_V2_IM_ISRC3_CFG_ERR_EINT1 0x0040 /* IM_ISRC3_CFG_ERR_EINT1 */
  5209. #define ARIZONA_V2_IM_ISRC3_CFG_ERR_EINT1_MASK 0x0040 /* IM_ISRC3_CFG_ERR_EINT1 */
  5210. #define ARIZONA_V2_IM_ISRC3_CFG_ERR_EINT1_SHIFT 6 /* IM_ISRC3_CFG_ERR_EINT1 */
  5211. #define ARIZONA_V2_IM_ISRC3_CFG_ERR_EINT1_WIDTH 1 /* IM_ISRC3_CFG_ERR_EINT1 */
  5212. /*
  5213. * R3340 (0xD0C) - Interrupt Status 5 Mask
  5214. */
  5215. #define ARIZONA_IM_BOOT_DONE_EINT1 0x0100 /* IM_BOOT_DONE_EINT1 */
  5216. #define ARIZONA_IM_BOOT_DONE_EINT1_MASK 0x0100 /* IM_BOOT_DONE_EINT1 */
  5217. #define ARIZONA_IM_BOOT_DONE_EINT1_SHIFT 8 /* IM_BOOT_DONE_EINT1 */
  5218. #define ARIZONA_IM_BOOT_DONE_EINT1_WIDTH 1 /* IM_BOOT_DONE_EINT1 */
  5219. #define ARIZONA_IM_DCS_DAC_DONE_EINT1 0x0080 /* IM_DCS_DAC_DONE_EINT1 */
  5220. #define ARIZONA_IM_DCS_DAC_DONE_EINT1_MASK 0x0080 /* IM_DCS_DAC_DONE_EINT1 */
  5221. #define ARIZONA_IM_DCS_DAC_DONE_EINT1_SHIFT 7 /* IM_DCS_DAC_DONE_EINT1 */
  5222. #define ARIZONA_IM_DCS_DAC_DONE_EINT1_WIDTH 1 /* IM_DCS_DAC_DONE_EINT1 */
  5223. #define ARIZONA_IM_DCS_HP_DONE_EINT1 0x0040 /* IM_DCS_HP_DONE_EINT1 */
  5224. #define ARIZONA_IM_DCS_HP_DONE_EINT1_MASK 0x0040 /* IM_DCS_HP_DONE_EINT1 */
  5225. #define ARIZONA_IM_DCS_HP_DONE_EINT1_SHIFT 6 /* IM_DCS_HP_DONE_EINT1 */
  5226. #define ARIZONA_IM_DCS_HP_DONE_EINT1_WIDTH 1 /* IM_DCS_HP_DONE_EINT1 */
  5227. #define ARIZONA_IM_FLL2_CLOCK_OK_EINT1 0x0002 /* IM_FLL2_CLOCK_OK_EINT1 */
  5228. #define ARIZONA_IM_FLL2_CLOCK_OK_EINT1_MASK 0x0002 /* IM_FLL2_CLOCK_OK_EINT1 */
  5229. #define ARIZONA_IM_FLL2_CLOCK_OK_EINT1_SHIFT 1 /* IM_FLL2_CLOCK_OK_EINT1 */
  5230. #define ARIZONA_IM_FLL2_CLOCK_OK_EINT1_WIDTH 1 /* IM_FLL2_CLOCK_OK_EINT1 */
  5231. #define ARIZONA_IM_FLL1_CLOCK_OK_EINT1 0x0001 /* IM_FLL1_CLOCK_OK_EINT1 */
  5232. #define ARIZONA_IM_FLL1_CLOCK_OK_EINT1_MASK 0x0001 /* IM_FLL1_CLOCK_OK_EINT1 */
  5233. #define ARIZONA_IM_FLL1_CLOCK_OK_EINT1_SHIFT 0 /* IM_FLL1_CLOCK_OK_EINT1 */
  5234. #define ARIZONA_IM_FLL1_CLOCK_OK_EINT1_WIDTH 1 /* IM_FLL1_CLOCK_OK_EINT1 */
  5235. /*
  5236. * R3340 (0xD0C) - Interrupt Status 5 Mask (Alternate layout)
  5237. *
  5238. * Alternate layout used on later devices, note only fields that have moved
  5239. * are specified
  5240. */
  5241. #define ARIZONA_V2_IM_ASRC_CFG_ERR_EINT1 0x0008 /* IM_ASRC_CFG_ERR_EINT1 */
  5242. #define ARIZONA_V2_IM_ASRC_CFG_ERR_EINT1_MASK 0x0008 /* IM_ASRC_CFG_ERR_EINT1 */
  5243. #define ARIZONA_V2_IM_ASRC_CFG_ERR_EINT1_SHIFT 3 /* IM_ASRC_CFG_ERR_EINT1 */
  5244. #define ARIZONA_V2_IM_ASRC_CFG_ERR_EINT1_WIDTH 1 /* IM_ASRC_CFG_ERR_EINT1 */
  5245. /*
  5246. * R3341 (0xD0D) - Interrupt Status 6 Mask
  5247. */
  5248. #define ARIZONA_IM_DSP_SHARED_WR_COLL_EINT1 0x8000 /* IM_DSP_SHARED_WR_COLL_EINT1 */
  5249. #define ARIZONA_IM_DSP_SHARED_WR_COLL_EINT1_MASK 0x8000 /* IM_DSP_SHARED_WR_COLL_EINT1 */
  5250. #define ARIZONA_IM_DSP_SHARED_WR_COLL_EINT1_SHIFT 15 /* IM_DSP_SHARED_WR_COLL_EINT1 */
  5251. #define ARIZONA_IM_DSP_SHARED_WR_COLL_EINT1_WIDTH 1 /* IM_DSP_SHARED_WR_COLL_EINT1 */
  5252. #define ARIZONA_IM_SPK_SHUTDOWN_EINT1 0x4000 /* IM_SPK_SHUTDOWN_EINT1 */
  5253. #define ARIZONA_IM_SPK_SHUTDOWN_EINT1_MASK 0x4000 /* IM_SPK_SHUTDOWN_EINT1 */
  5254. #define ARIZONA_IM_SPK_SHUTDOWN_EINT1_SHIFT 14 /* IM_SPK_SHUTDOWN_EINT1 */
  5255. #define ARIZONA_IM_SPK_SHUTDOWN_EINT1_WIDTH 1 /* IM_SPK_SHUTDOWN_EINT1 */
  5256. #define ARIZONA_IM_SPK1R_SHORT_EINT1 0x2000 /* IM_SPK1R_SHORT_EINT1 */
  5257. #define ARIZONA_IM_SPK1R_SHORT_EINT1_MASK 0x2000 /* IM_SPK1R_SHORT_EINT1 */
  5258. #define ARIZONA_IM_SPK1R_SHORT_EINT1_SHIFT 13 /* IM_SPK1R_SHORT_EINT1 */
  5259. #define ARIZONA_IM_SPK1R_SHORT_EINT1_WIDTH 1 /* IM_SPK1R_SHORT_EINT1 */
  5260. #define ARIZONA_IM_SPK1L_SHORT_EINT1 0x1000 /* IM_SPK1L_SHORT_EINT1 */
  5261. #define ARIZONA_IM_SPK1L_SHORT_EINT1_MASK 0x1000 /* IM_SPK1L_SHORT_EINT1 */
  5262. #define ARIZONA_IM_SPK1L_SHORT_EINT1_SHIFT 12 /* IM_SPK1L_SHORT_EINT1 */
  5263. #define ARIZONA_IM_SPK1L_SHORT_EINT1_WIDTH 1 /* IM_SPK1L_SHORT_EINT1 */
  5264. #define ARIZONA_IM_HP3R_SC_NEG_EINT1 0x0800 /* IM_HP3R_SC_NEG_EINT1 */
  5265. #define ARIZONA_IM_HP3R_SC_NEG_EINT1_MASK 0x0800 /* IM_HP3R_SC_NEG_EINT1 */
  5266. #define ARIZONA_IM_HP3R_SC_NEG_EINT1_SHIFT 11 /* IM_HP3R_SC_NEG_EINT1 */
  5267. #define ARIZONA_IM_HP3R_SC_NEG_EINT1_WIDTH 1 /* IM_HP3R_SC_NEG_EINT1 */
  5268. #define ARIZONA_IM_HP3R_SC_POS_EINT1 0x0400 /* IM_HP3R_SC_POS_EINT1 */
  5269. #define ARIZONA_IM_HP3R_SC_POS_EINT1_MASK 0x0400 /* IM_HP3R_SC_POS_EINT1 */
  5270. #define ARIZONA_IM_HP3R_SC_POS_EINT1_SHIFT 10 /* IM_HP3R_SC_POS_EINT1 */
  5271. #define ARIZONA_IM_HP3R_SC_POS_EINT1_WIDTH 1 /* IM_HP3R_SC_POS_EINT1 */
  5272. #define ARIZONA_IM_HP3L_SC_NEG_EINT1 0x0200 /* IM_HP3L_SC_NEG_EINT1 */
  5273. #define ARIZONA_IM_HP3L_SC_NEG_EINT1_MASK 0x0200 /* IM_HP3L_SC_NEG_EINT1 */
  5274. #define ARIZONA_IM_HP3L_SC_NEG_EINT1_SHIFT 9 /* IM_HP3L_SC_NEG_EINT1 */
  5275. #define ARIZONA_IM_HP3L_SC_NEG_EINT1_WIDTH 1 /* IM_HP3L_SC_NEG_EINT1 */
  5276. #define ARIZONA_IM_HP3L_SC_POS_EINT1 0x0100 /* IM_HP3L_SC_POS_EINT1 */
  5277. #define ARIZONA_IM_HP3L_SC_POS_EINT1_MASK 0x0100 /* IM_HP3L_SC_POS_EINT1 */
  5278. #define ARIZONA_IM_HP3L_SC_POS_EINT1_SHIFT 8 /* IM_HP3L_SC_POS_EINT1 */
  5279. #define ARIZONA_IM_HP3L_SC_POS_EINT1_WIDTH 1 /* IM_HP3L_SC_POS_EINT1 */
  5280. #define ARIZONA_IM_HP2R_SC_NEG_EINT1 0x0080 /* IM_HP2R_SC_NEG_EINT1 */
  5281. #define ARIZONA_IM_HP2R_SC_NEG_EINT1_MASK 0x0080 /* IM_HP2R_SC_NEG_EINT1 */
  5282. #define ARIZONA_IM_HP2R_SC_NEG_EINT1_SHIFT 7 /* IM_HP2R_SC_NEG_EINT1 */
  5283. #define ARIZONA_IM_HP2R_SC_NEG_EINT1_WIDTH 1 /* IM_HP2R_SC_NEG_EINT1 */
  5284. #define ARIZONA_IM_HP2R_SC_POS_EINT1 0x0040 /* IM_HP2R_SC_POS_EINT1 */
  5285. #define ARIZONA_IM_HP2R_SC_POS_EINT1_MASK 0x0040 /* IM_HP2R_SC_POS_EINT1 */
  5286. #define ARIZONA_IM_HP2R_SC_POS_EINT1_SHIFT 6 /* IM_HP2R_SC_POS_EINT1 */
  5287. #define ARIZONA_IM_HP2R_SC_POS_EINT1_WIDTH 1 /* IM_HP2R_SC_POS_EINT1 */
  5288. #define ARIZONA_IM_HP2L_SC_NEG_EINT1 0x0020 /* IM_HP2L_SC_NEG_EINT1 */
  5289. #define ARIZONA_IM_HP2L_SC_NEG_EINT1_MASK 0x0020 /* IM_HP2L_SC_NEG_EINT1 */
  5290. #define ARIZONA_IM_HP2L_SC_NEG_EINT1_SHIFT 5 /* IM_HP2L_SC_NEG_EINT1 */
  5291. #define ARIZONA_IM_HP2L_SC_NEG_EINT1_WIDTH 1 /* IM_HP2L_SC_NEG_EINT1 */
  5292. #define ARIZONA_IM_HP2L_SC_POS_EINT1 0x0010 /* IM_HP2L_SC_POS_EINT1 */
  5293. #define ARIZONA_IM_HP2L_SC_POS_EINT1_MASK 0x0010 /* IM_HP2L_SC_POS_EINT1 */
  5294. #define ARIZONA_IM_HP2L_SC_POS_EINT1_SHIFT 4 /* IM_HP2L_SC_POS_EINT1 */
  5295. #define ARIZONA_IM_HP2L_SC_POS_EINT1_WIDTH 1 /* IM_HP2L_SC_POS_EINT1 */
  5296. #define ARIZONA_IM_HP1R_SC_NEG_EINT1 0x0008 /* IM_HP1R_SC_NEG_EINT1 */
  5297. #define ARIZONA_IM_HP1R_SC_NEG_EINT1_MASK 0x0008 /* IM_HP1R_SC_NEG_EINT1 */
  5298. #define ARIZONA_IM_HP1R_SC_NEG_EINT1_SHIFT 3 /* IM_HP1R_SC_NEG_EINT1 */
  5299. #define ARIZONA_IM_HP1R_SC_NEG_EINT1_WIDTH 1 /* IM_HP1R_SC_NEG_EINT1 */
  5300. #define ARIZONA_IM_HP1R_SC_POS_EINT1 0x0004 /* IM_HP1R_SC_POS_EINT1 */
  5301. #define ARIZONA_IM_HP1R_SC_POS_EINT1_MASK 0x0004 /* IM_HP1R_SC_POS_EINT1 */
  5302. #define ARIZONA_IM_HP1R_SC_POS_EINT1_SHIFT 2 /* IM_HP1R_SC_POS_EINT1 */
  5303. #define ARIZONA_IM_HP1R_SC_POS_EINT1_WIDTH 1 /* IM_HP1R_SC_POS_EINT1 */
  5304. #define ARIZONA_IM_HP1L_SC_NEG_EINT1 0x0002 /* IM_HP1L_SC_NEG_EINT1 */
  5305. #define ARIZONA_IM_HP1L_SC_NEG_EINT1_MASK 0x0002 /* IM_HP1L_SC_NEG_EINT1 */
  5306. #define ARIZONA_IM_HP1L_SC_NEG_EINT1_SHIFT 1 /* IM_HP1L_SC_NEG_EINT1 */
  5307. #define ARIZONA_IM_HP1L_SC_NEG_EINT1_WIDTH 1 /* IM_HP1L_SC_NEG_EINT1 */
  5308. #define ARIZONA_IM_HP1L_SC_POS_EINT1 0x0001 /* IM_HP1L_SC_POS_EINT1 */
  5309. #define ARIZONA_IM_HP1L_SC_POS_EINT1_MASK 0x0001 /* IM_HP1L_SC_POS_EINT1 */
  5310. #define ARIZONA_IM_HP1L_SC_POS_EINT1_SHIFT 0 /* IM_HP1L_SC_POS_EINT1 */
  5311. #define ARIZONA_IM_HP1L_SC_POS_EINT1_WIDTH 1 /* IM_HP1L_SC_POS_EINT1 */
  5312. /*
  5313. * R3343 (0xD0F) - Interrupt Control
  5314. */
  5315. #define ARIZONA_IM_IRQ1 0x0001 /* IM_IRQ1 */
  5316. #define ARIZONA_IM_IRQ1_MASK 0x0001 /* IM_IRQ1 */
  5317. #define ARIZONA_IM_IRQ1_SHIFT 0 /* IM_IRQ1 */
  5318. #define ARIZONA_IM_IRQ1_WIDTH 1 /* IM_IRQ1 */
  5319. /*
  5320. * R3344 (0xD10) - IRQ2 Status 1
  5321. */
  5322. #define ARIZONA_GP4_EINT2 0x0008 /* GP4_EINT2 */
  5323. #define ARIZONA_GP4_EINT2_MASK 0x0008 /* GP4_EINT2 */
  5324. #define ARIZONA_GP4_EINT2_SHIFT 3 /* GP4_EINT2 */
  5325. #define ARIZONA_GP4_EINT2_WIDTH 1 /* GP4_EINT2 */
  5326. #define ARIZONA_GP3_EINT2 0x0004 /* GP3_EINT2 */
  5327. #define ARIZONA_GP3_EINT2_MASK 0x0004 /* GP3_EINT2 */
  5328. #define ARIZONA_GP3_EINT2_SHIFT 2 /* GP3_EINT2 */
  5329. #define ARIZONA_GP3_EINT2_WIDTH 1 /* GP3_EINT2 */
  5330. #define ARIZONA_GP2_EINT2 0x0002 /* GP2_EINT2 */
  5331. #define ARIZONA_GP2_EINT2_MASK 0x0002 /* GP2_EINT2 */
  5332. #define ARIZONA_GP2_EINT2_SHIFT 1 /* GP2_EINT2 */
  5333. #define ARIZONA_GP2_EINT2_WIDTH 1 /* GP2_EINT2 */
  5334. #define ARIZONA_GP1_EINT2 0x0001 /* GP1_EINT2 */
  5335. #define ARIZONA_GP1_EINT2_MASK 0x0001 /* GP1_EINT2 */
  5336. #define ARIZONA_GP1_EINT2_SHIFT 0 /* GP1_EINT2 */
  5337. #define ARIZONA_GP1_EINT2_WIDTH 1 /* GP1_EINT2 */
  5338. /*
  5339. * R3345 (0xD11) - IRQ2 Status 2
  5340. */
  5341. #define ARIZONA_DSP1_RAM_RDY_EINT2 0x0100 /* DSP1_RAM_RDY_EINT2 */
  5342. #define ARIZONA_DSP1_RAM_RDY_EINT2_MASK 0x0100 /* DSP1_RAM_RDY_EINT2 */
  5343. #define ARIZONA_DSP1_RAM_RDY_EINT2_SHIFT 8 /* DSP1_RAM_RDY_EINT2 */
  5344. #define ARIZONA_DSP1_RAM_RDY_EINT2_WIDTH 1 /* DSP1_RAM_RDY_EINT2 */
  5345. #define ARIZONA_DSP_IRQ2_EINT2 0x0002 /* DSP_IRQ2_EINT2 */
  5346. #define ARIZONA_DSP_IRQ2_EINT2_MASK 0x0002 /* DSP_IRQ2_EINT2 */
  5347. #define ARIZONA_DSP_IRQ2_EINT2_SHIFT 1 /* DSP_IRQ2_EINT2 */
  5348. #define ARIZONA_DSP_IRQ2_EINT2_WIDTH 1 /* DSP_IRQ2_EINT2 */
  5349. #define ARIZONA_DSP_IRQ1_EINT2 0x0001 /* DSP_IRQ1_EINT2 */
  5350. #define ARIZONA_DSP_IRQ1_EINT2_MASK 0x0001 /* DSP_IRQ1_EINT2 */
  5351. #define ARIZONA_DSP_IRQ1_EINT2_SHIFT 0 /* DSP_IRQ1_EINT2 */
  5352. #define ARIZONA_DSP_IRQ1_EINT2_WIDTH 1 /* DSP_IRQ1_EINT2 */
  5353. /*
  5354. * R3346 (0xD12) - IRQ2 Status 3
  5355. */
  5356. #define ARIZONA_SPK_OVERHEAT_WARN_EINT2 0x8000 /* SPK_OVERHEAT_WARN_EINT2 */
  5357. #define ARIZONA_SPK_OVERHEAT_WARN_EINT2_MASK 0x8000 /* SPK_OVERHEAT_WARN_EINT2 */
  5358. #define ARIZONA_SPK_OVERHEAT_WARN_EINT2_SHIFT 15 /* SPK_OVERHEAT_WARN_EINT2 */
  5359. #define ARIZONA_SPK_OVERHEAT_WARN_EINT2_WIDTH 1 /* SPK_OVERHEAT_WARN_EINT2 */
  5360. #define ARIZONA_SPK_OVERHEAT_EINT2 0x4000 /* SPK_OVERHEAT_EINT2 */
  5361. #define ARIZONA_SPK_OVERHEAT_EINT2_MASK 0x4000 /* SPK_OVERHEAT_EINT2 */
  5362. #define ARIZONA_SPK_OVERHEAT_EINT2_SHIFT 14 /* SPK_OVERHEAT_EINT2 */
  5363. #define ARIZONA_SPK_OVERHEAT_EINT2_WIDTH 1 /* SPK_OVERHEAT_EINT2 */
  5364. #define ARIZONA_HPDET_EINT2 0x2000 /* HPDET_EINT2 */
  5365. #define ARIZONA_HPDET_EINT2_MASK 0x2000 /* HPDET_EINT2 */
  5366. #define ARIZONA_HPDET_EINT2_SHIFT 13 /* HPDET_EINT2 */
  5367. #define ARIZONA_HPDET_EINT2_WIDTH 1 /* HPDET_EINT2 */
  5368. #define ARIZONA_MICDET_EINT2 0x1000 /* MICDET_EINT2 */
  5369. #define ARIZONA_MICDET_EINT2_MASK 0x1000 /* MICDET_EINT2 */
  5370. #define ARIZONA_MICDET_EINT2_SHIFT 12 /* MICDET_EINT2 */
  5371. #define ARIZONA_MICDET_EINT2_WIDTH 1 /* MICDET_EINT2 */
  5372. #define ARIZONA_WSEQ_DONE_EINT2 0x0800 /* WSEQ_DONE_EINT2 */
  5373. #define ARIZONA_WSEQ_DONE_EINT2_MASK 0x0800 /* WSEQ_DONE_EINT2 */
  5374. #define ARIZONA_WSEQ_DONE_EINT2_SHIFT 11 /* WSEQ_DONE_EINT2 */
  5375. #define ARIZONA_WSEQ_DONE_EINT2_WIDTH 1 /* WSEQ_DONE_EINT2 */
  5376. #define ARIZONA_DRC2_SIG_DET_EINT2 0x0400 /* DRC2_SIG_DET_EINT2 */
  5377. #define ARIZONA_DRC2_SIG_DET_EINT2_MASK 0x0400 /* DRC2_SIG_DET_EINT2 */
  5378. #define ARIZONA_DRC2_SIG_DET_EINT2_SHIFT 10 /* DRC2_SIG_DET_EINT2 */
  5379. #define ARIZONA_DRC2_SIG_DET_EINT2_WIDTH 1 /* DRC2_SIG_DET_EINT2 */
  5380. #define ARIZONA_DRC1_SIG_DET_EINT2 0x0200 /* DRC1_SIG_DET_EINT2 */
  5381. #define ARIZONA_DRC1_SIG_DET_EINT2_MASK 0x0200 /* DRC1_SIG_DET_EINT2 */
  5382. #define ARIZONA_DRC1_SIG_DET_EINT2_SHIFT 9 /* DRC1_SIG_DET_EINT2 */
  5383. #define ARIZONA_DRC1_SIG_DET_EINT2_WIDTH 1 /* DRC1_SIG_DET_EINT2 */
  5384. #define ARIZONA_ASRC2_LOCK_EINT2 0x0100 /* ASRC2_LOCK_EINT2 */
  5385. #define ARIZONA_ASRC2_LOCK_EINT2_MASK 0x0100 /* ASRC2_LOCK_EINT2 */
  5386. #define ARIZONA_ASRC2_LOCK_EINT2_SHIFT 8 /* ASRC2_LOCK_EINT2 */
  5387. #define ARIZONA_ASRC2_LOCK_EINT2_WIDTH 1 /* ASRC2_LOCK_EINT2 */
  5388. #define ARIZONA_ASRC1_LOCK_EINT2 0x0080 /* ASRC1_LOCK_EINT2 */
  5389. #define ARIZONA_ASRC1_LOCK_EINT2_MASK 0x0080 /* ASRC1_LOCK_EINT2 */
  5390. #define ARIZONA_ASRC1_LOCK_EINT2_SHIFT 7 /* ASRC1_LOCK_EINT2 */
  5391. #define ARIZONA_ASRC1_LOCK_EINT2_WIDTH 1 /* ASRC1_LOCK_EINT2 */
  5392. #define ARIZONA_UNDERCLOCKED_EINT2 0x0040 /* UNDERCLOCKED_EINT2 */
  5393. #define ARIZONA_UNDERCLOCKED_EINT2_MASK 0x0040 /* UNDERCLOCKED_EINT2 */
  5394. #define ARIZONA_UNDERCLOCKED_EINT2_SHIFT 6 /* UNDERCLOCKED_EINT2 */
  5395. #define ARIZONA_UNDERCLOCKED_EINT2_WIDTH 1 /* UNDERCLOCKED_EINT2 */
  5396. #define ARIZONA_OVERCLOCKED_EINT2 0x0020 /* OVERCLOCKED_EINT2 */
  5397. #define ARIZONA_OVERCLOCKED_EINT2_MASK 0x0020 /* OVERCLOCKED_EINT2 */
  5398. #define ARIZONA_OVERCLOCKED_EINT2_SHIFT 5 /* OVERCLOCKED_EINT2 */
  5399. #define ARIZONA_OVERCLOCKED_EINT2_WIDTH 1 /* OVERCLOCKED_EINT2 */
  5400. #define ARIZONA_FLL2_LOCK_EINT2 0x0008 /* FLL2_LOCK_EINT2 */
  5401. #define ARIZONA_FLL2_LOCK_EINT2_MASK 0x0008 /* FLL2_LOCK_EINT2 */
  5402. #define ARIZONA_FLL2_LOCK_EINT2_SHIFT 3 /* FLL2_LOCK_EINT2 */
  5403. #define ARIZONA_FLL2_LOCK_EINT2_WIDTH 1 /* FLL2_LOCK_EINT2 */
  5404. #define ARIZONA_FLL1_LOCK_EINT2 0x0004 /* FLL1_LOCK_EINT2 */
  5405. #define ARIZONA_FLL1_LOCK_EINT2_MASK 0x0004 /* FLL1_LOCK_EINT2 */
  5406. #define ARIZONA_FLL1_LOCK_EINT2_SHIFT 2 /* FLL1_LOCK_EINT2 */
  5407. #define ARIZONA_FLL1_LOCK_EINT2_WIDTH 1 /* FLL1_LOCK_EINT2 */
  5408. #define ARIZONA_CLKGEN_ERR_EINT2 0x0002 /* CLKGEN_ERR_EINT2 */
  5409. #define ARIZONA_CLKGEN_ERR_EINT2_MASK 0x0002 /* CLKGEN_ERR_EINT2 */
  5410. #define ARIZONA_CLKGEN_ERR_EINT2_SHIFT 1 /* CLKGEN_ERR_EINT2 */
  5411. #define ARIZONA_CLKGEN_ERR_EINT2_WIDTH 1 /* CLKGEN_ERR_EINT2 */
  5412. #define ARIZONA_CLKGEN_ERR_ASYNC_EINT2 0x0001 /* CLKGEN_ERR_ASYNC_EINT2 */
  5413. #define ARIZONA_CLKGEN_ERR_ASYNC_EINT2_MASK 0x0001 /* CLKGEN_ERR_ASYNC_EINT2 */
  5414. #define ARIZONA_CLKGEN_ERR_ASYNC_EINT2_SHIFT 0 /* CLKGEN_ERR_ASYNC_EINT2 */
  5415. #define ARIZONA_CLKGEN_ERR_ASYNC_EINT2_WIDTH 1 /* CLKGEN_ERR_ASYNC_EINT2 */
  5416. /*
  5417. * R3347 (0xD13) - IRQ2 Status 4
  5418. */
  5419. #define ARIZONA_ASRC_CFG_ERR_EINT2 0x8000 /* ASRC_CFG_ERR_EINT2 */
  5420. #define ARIZONA_ASRC_CFG_ERR_EINT2_MASK 0x8000 /* ASRC_CFG_ERR_EINT2 */
  5421. #define ARIZONA_ASRC_CFG_ERR_EINT2_SHIFT 15 /* ASRC_CFG_ERR_EINT2 */
  5422. #define ARIZONA_ASRC_CFG_ERR_EINT2_WIDTH 1 /* ASRC_CFG_ERR_EINT2 */
  5423. #define ARIZONA_AIF3_ERR_EINT2 0x4000 /* AIF3_ERR_EINT2 */
  5424. #define ARIZONA_AIF3_ERR_EINT2_MASK 0x4000 /* AIF3_ERR_EINT2 */
  5425. #define ARIZONA_AIF3_ERR_EINT2_SHIFT 14 /* AIF3_ERR_EINT2 */
  5426. #define ARIZONA_AIF3_ERR_EINT2_WIDTH 1 /* AIF3_ERR_EINT2 */
  5427. #define ARIZONA_AIF2_ERR_EINT2 0x2000 /* AIF2_ERR_EINT2 */
  5428. #define ARIZONA_AIF2_ERR_EINT2_MASK 0x2000 /* AIF2_ERR_EINT2 */
  5429. #define ARIZONA_AIF2_ERR_EINT2_SHIFT 13 /* AIF2_ERR_EINT2 */
  5430. #define ARIZONA_AIF2_ERR_EINT2_WIDTH 1 /* AIF2_ERR_EINT2 */
  5431. #define ARIZONA_AIF1_ERR_EINT2 0x1000 /* AIF1_ERR_EINT2 */
  5432. #define ARIZONA_AIF1_ERR_EINT2_MASK 0x1000 /* AIF1_ERR_EINT2 */
  5433. #define ARIZONA_AIF1_ERR_EINT2_SHIFT 12 /* AIF1_ERR_EINT2 */
  5434. #define ARIZONA_AIF1_ERR_EINT2_WIDTH 1 /* AIF1_ERR_EINT2 */
  5435. #define ARIZONA_CTRLIF_ERR_EINT2 0x0800 /* CTRLIF_ERR_EINT2 */
  5436. #define ARIZONA_CTRLIF_ERR_EINT2_MASK 0x0800 /* CTRLIF_ERR_EINT2 */
  5437. #define ARIZONA_CTRLIF_ERR_EINT2_SHIFT 11 /* CTRLIF_ERR_EINT2 */
  5438. #define ARIZONA_CTRLIF_ERR_EINT2_WIDTH 1 /* CTRLIF_ERR_EINT2 */
  5439. #define ARIZONA_MIXER_DROPPED_SAMPLE_EINT2 0x0400 /* MIXER_DROPPED_SAMPLE_EINT2 */
  5440. #define ARIZONA_MIXER_DROPPED_SAMPLE_EINT2_MASK 0x0400 /* MIXER_DROPPED_SAMPLE_EINT2 */
  5441. #define ARIZONA_MIXER_DROPPED_SAMPLE_EINT2_SHIFT 10 /* MIXER_DROPPED_SAMPLE_EINT2 */
  5442. #define ARIZONA_MIXER_DROPPED_SAMPLE_EINT2_WIDTH 1 /* MIXER_DROPPED_SAMPLE_EINT2 */
  5443. #define ARIZONA_ASYNC_CLK_ENA_LOW_EINT2 0x0200 /* ASYNC_CLK_ENA_LOW_EINT2 */
  5444. #define ARIZONA_ASYNC_CLK_ENA_LOW_EINT2_MASK 0x0200 /* ASYNC_CLK_ENA_LOW_EINT2 */
  5445. #define ARIZONA_ASYNC_CLK_ENA_LOW_EINT2_SHIFT 9 /* ASYNC_CLK_ENA_LOW_EINT2 */
  5446. #define ARIZONA_ASYNC_CLK_ENA_LOW_EINT2_WIDTH 1 /* ASYNC_CLK_ENA_LOW_EINT2 */
  5447. #define ARIZONA_SYSCLK_ENA_LOW_EINT2 0x0100 /* SYSCLK_ENA_LOW_EINT2 */
  5448. #define ARIZONA_SYSCLK_ENA_LOW_EINT2_MASK 0x0100 /* SYSCLK_ENA_LOW_EINT2 */
  5449. #define ARIZONA_SYSCLK_ENA_LOW_EINT2_SHIFT 8 /* SYSCLK_ENA_LOW_EINT2 */
  5450. #define ARIZONA_SYSCLK_ENA_LOW_EINT2_WIDTH 1 /* SYSCLK_ENA_LOW_EINT2 */
  5451. #define ARIZONA_ISRC1_CFG_ERR_EINT2 0x0080 /* ISRC1_CFG_ERR_EINT2 */
  5452. #define ARIZONA_ISRC1_CFG_ERR_EINT2_MASK 0x0080 /* ISRC1_CFG_ERR_EINT2 */
  5453. #define ARIZONA_ISRC1_CFG_ERR_EINT2_SHIFT 7 /* ISRC1_CFG_ERR_EINT2 */
  5454. #define ARIZONA_ISRC1_CFG_ERR_EINT2_WIDTH 1 /* ISRC1_CFG_ERR_EINT2 */
  5455. #define ARIZONA_ISRC2_CFG_ERR_EINT2 0x0040 /* ISRC2_CFG_ERR_EINT2 */
  5456. #define ARIZONA_ISRC2_CFG_ERR_EINT2_MASK 0x0040 /* ISRC2_CFG_ERR_EINT2 */
  5457. #define ARIZONA_ISRC2_CFG_ERR_EINT2_SHIFT 6 /* ISRC2_CFG_ERR_EINT2 */
  5458. #define ARIZONA_ISRC2_CFG_ERR_EINT2_WIDTH 1 /* ISRC2_CFG_ERR_EINT2 */
  5459. #define ARIZONA_HP3R_DONE_EINT2 0x0020 /* HP3R_DONE_EINT2 */
  5460. #define ARIZONA_HP3R_DONE_EINT2_MASK 0x0020 /* HP3R_DONE_EINT2 */
  5461. #define ARIZONA_HP3R_DONE_EINT2_SHIFT 5 /* HP3R_DONE_EINT2 */
  5462. #define ARIZONA_HP3R_DONE_EINT2_WIDTH 1 /* HP3R_DONE_EINT2 */
  5463. #define ARIZONA_HP3L_DONE_EINT2 0x0010 /* HP3L_DONE_EINT2 */
  5464. #define ARIZONA_HP3L_DONE_EINT2_MASK 0x0010 /* HP3L_DONE_EINT2 */
  5465. #define ARIZONA_HP3L_DONE_EINT2_SHIFT 4 /* HP3L_DONE_EINT2 */
  5466. #define ARIZONA_HP3L_DONE_EINT2_WIDTH 1 /* HP3L_DONE_EINT2 */
  5467. #define ARIZONA_HP2R_DONE_EINT2 0x0008 /* HP2R_DONE_EINT2 */
  5468. #define ARIZONA_HP2R_DONE_EINT2_MASK 0x0008 /* HP2R_DONE_EINT2 */
  5469. #define ARIZONA_HP2R_DONE_EINT2_SHIFT 3 /* HP2R_DONE_EINT2 */
  5470. #define ARIZONA_HP2R_DONE_EINT2_WIDTH 1 /* HP2R_DONE_EINT2 */
  5471. #define ARIZONA_HP2L_DONE_EINT2 0x0004 /* HP2L_DONE_EINT2 */
  5472. #define ARIZONA_HP2L_DONE_EINT2_MASK 0x0004 /* HP2L_DONE_EINT2 */
  5473. #define ARIZONA_HP2L_DONE_EINT2_SHIFT 2 /* HP2L_DONE_EINT2 */
  5474. #define ARIZONA_HP2L_DONE_EINT2_WIDTH 1 /* HP2L_DONE_EINT2 */
  5475. #define ARIZONA_HP1R_DONE_EINT2 0x0002 /* HP1R_DONE_EINT2 */
  5476. #define ARIZONA_HP1R_DONE_EINT2_MASK 0x0002 /* HP1R_DONE_EINT2 */
  5477. #define ARIZONA_HP1R_DONE_EINT2_SHIFT 1 /* HP1R_DONE_EINT2 */
  5478. #define ARIZONA_HP1R_DONE_EINT2_WIDTH 1 /* HP1R_DONE_EINT2 */
  5479. #define ARIZONA_HP1L_DONE_EINT2 0x0001 /* HP1L_DONE_EINT2 */
  5480. #define ARIZONA_HP1L_DONE_EINT2_MASK 0x0001 /* HP1L_DONE_EINT2 */
  5481. #define ARIZONA_HP1L_DONE_EINT2_SHIFT 0 /* HP1L_DONE_EINT2 */
  5482. #define ARIZONA_HP1L_DONE_EINT2_WIDTH 1 /* HP1L_DONE_EINT2 */
  5483. /*
  5484. * R3347 (0xD13) - IRQ2 Status 4 (Alternate layout)
  5485. *
  5486. * Alternate layout used on later devices, note only fields that have moved
  5487. * are specified
  5488. */
  5489. #define ARIZONA_V2_AIF3_ERR_EINT2 0x8000 /* AIF3_ERR_EINT2 */
  5490. #define ARIZONA_V2_AIF3_ERR_EINT2_MASK 0x8000 /* AIF3_ERR_EINT2 */
  5491. #define ARIZONA_V2_AIF3_ERR_EINT2_SHIFT 15 /* AIF3_ERR_EINT2 */
  5492. #define ARIZONA_V2_AIF3_ERR_EINT2_WIDTH 1 /* AIF3_ERR_EINT2 */
  5493. #define ARIZONA_V2_AIF2_ERR_EINT2 0x4000 /* AIF2_ERR_EINT2 */
  5494. #define ARIZONA_V2_AIF2_ERR_EINT2_MASK 0x4000 /* AIF2_ERR_EINT2 */
  5495. #define ARIZONA_V2_AIF2_ERR_EINT2_SHIFT 14 /* AIF2_ERR_EINT2 */
  5496. #define ARIZONA_V2_AIF2_ERR_EINT2_WIDTH 1 /* AIF2_ERR_EINT2 */
  5497. #define ARIZONA_V2_AIF1_ERR_EINT2 0x2000 /* AIF1_ERR_EINT2 */
  5498. #define ARIZONA_V2_AIF1_ERR_EINT2_MASK 0x2000 /* AIF1_ERR_EINT2 */
  5499. #define ARIZONA_V2_AIF1_ERR_EINT2_SHIFT 13 /* AIF1_ERR_EINT2 */
  5500. #define ARIZONA_V2_AIF1_ERR_EINT2_WIDTH 1 /* AIF1_ERR_EINT2 */
  5501. #define ARIZONA_V2_CTRLIF_ERR_EINT2 0x1000 /* CTRLIF_ERR_EINT2 */
  5502. #define ARIZONA_V2_CTRLIF_ERR_EINT2_MASK 0x1000 /* CTRLIF_ERR_EINT2 */
  5503. #define ARIZONA_V2_CTRLIF_ERR_EINT2_SHIFT 12 /* CTRLIF_ERR_EINT2 */
  5504. #define ARIZONA_V2_CTRLIF_ERR_EINT2_WIDTH 1 /* CTRLIF_ERR_EINT2 */
  5505. #define ARIZONA_V2_MIXER_DROPPED_SAMPLE_EINT2 0x0800 /* MIXER_DROPPED_SAMPLE_EINT2 */
  5506. #define ARIZONA_V2_MIXER_DROPPED_SAMPLE_EINT2_MASK 0x0800 /* MIXER_DROPPED_SAMPLE_EINT2 */
  5507. #define ARIZONA_V2_MIXER_DROPPED_SAMPLE_EINT2_SHIFT 11 /* MIXER_DROPPED_SAMPLE_EINT2 */
  5508. #define ARIZONA_V2_MIXER_DROPPED_SAMPLE_EINT2_WIDTH 1 /* MIXER_DROPPED_SAMPLE_EINT2 */
  5509. #define ARIZONA_V2_ASYNC_CLK_ENA_LOW_EINT2 0x0400 /* ASYNC_CLK_ENA_LOW_EINT2 */
  5510. #define ARIZONA_V2_ASYNC_CLK_ENA_LOW_EINT2_MASK 0x0400 /* ASYNC_CLK_ENA_LOW_EINT2 */
  5511. #define ARIZONA_V2_ASYNC_CLK_ENA_LOW_EINT2_SHIFT 10 /* ASYNC_CLK_ENA_LOW_EINT2 */
  5512. #define ARIZONA_V2_ASYNC_CLK_ENA_LOW_EINT2_WIDTH 1 /* ASYNC_CLK_ENA_LOW_EINT2 */
  5513. #define ARIZONA_V2_SYSCLK_ENA_LOW_EINT2 0x0200 /* SYSCLK_ENA_LOW_EINT2 */
  5514. #define ARIZONA_V2_SYSCLK_ENA_LOW_EINT2_MASK 0x0200 /* SYSCLK_ENA_LOW_EINT2 */
  5515. #define ARIZONA_V2_SYSCLK_ENA_LOW_EINT2_SHIFT 9 /* SYSCLK_ENA_LOW_EINT2 */
  5516. #define ARIZONA_V2_SYSCLK_ENA_LOW_EINT2_WIDTH 1 /* SYSCLK_ENA_LOW_EINT2 */
  5517. #define ARIZONA_V2_ISRC1_CFG_ERR_EINT2 0x0100 /* ISRC1_CFG_ERR_EINT2 */
  5518. #define ARIZONA_V2_ISRC1_CFG_ERR_EINT2_MASK 0x0100 /* ISRC1_CFG_ERR_EINT2 */
  5519. #define ARIZONA_V2_ISRC1_CFG_ERR_EINT2_SHIFT 8 /* ISRC1_CFG_ERR_EINT2 */
  5520. #define ARIZONA_V2_ISRC1_CFG_ERR_EINT2_WIDTH 1 /* ISRC1_CFG_ERR_EINT2 */
  5521. #define ARIZONA_V2_ISRC2_CFG_ERR_EINT2 0x0080 /* ISRC2_CFG_ERR_EINT2 */
  5522. #define ARIZONA_V2_ISRC2_CFG_ERR_EINT2_MASK 0x0080 /* ISRC2_CFG_ERR_EINT2 */
  5523. #define ARIZONA_V2_ISRC2_CFG_ERR_EINT2_SHIFT 7 /* ISRC2_CFG_ERR_EINT2 */
  5524. #define ARIZONA_V2_ISRC2_CFG_ERR_EINT2_WIDTH 1 /* ISRC2_CFG_ERR_EINT2 */
  5525. #define ARIZONA_V2_ISRC3_CFG_ERR_EINT2 0x0040 /* ISRC3_CFG_ERR_EINT2 */
  5526. #define ARIZONA_V2_ISRC3_CFG_ERR_EINT2_MASK 0x0040 /* ISRC3_CFG_ERR_EINT2 */
  5527. #define ARIZONA_V2_ISRC3_CFG_ERR_EINT2_SHIFT 6 /* ISRC3_CFG_ERR_EINT2 */
  5528. #define ARIZONA_V2_ISRC3_CFG_ERR_EINT2_WIDTH 1 /* ISRC3_CFG_ERR_EINT2 */
  5529. /*
  5530. * R3348 (0xD14) - IRQ2 Status 5
  5531. */
  5532. #define ARIZONA_BOOT_DONE_EINT2 0x0100 /* BOOT_DONE_EINT2 */
  5533. #define ARIZONA_BOOT_DONE_EINT2_MASK 0x0100 /* BOOT_DONE_EINT2 */
  5534. #define ARIZONA_BOOT_DONE_EINT2_SHIFT 8 /* BOOT_DONE_EINT2 */
  5535. #define ARIZONA_BOOT_DONE_EINT2_WIDTH 1 /* BOOT_DONE_EINT2 */
  5536. #define ARIZONA_DCS_DAC_DONE_EINT2 0x0080 /* DCS_DAC_DONE_EINT2 */
  5537. #define ARIZONA_DCS_DAC_DONE_EINT2_MASK 0x0080 /* DCS_DAC_DONE_EINT2 */
  5538. #define ARIZONA_DCS_DAC_DONE_EINT2_SHIFT 7 /* DCS_DAC_DONE_EINT2 */
  5539. #define ARIZONA_DCS_DAC_DONE_EINT2_WIDTH 1 /* DCS_DAC_DONE_EINT2 */
  5540. #define ARIZONA_DCS_HP_DONE_EINT2 0x0040 /* DCS_HP_DONE_EINT2 */
  5541. #define ARIZONA_DCS_HP_DONE_EINT2_MASK 0x0040 /* DCS_HP_DONE_EINT2 */
  5542. #define ARIZONA_DCS_HP_DONE_EINT2_SHIFT 6 /* DCS_HP_DONE_EINT2 */
  5543. #define ARIZONA_DCS_HP_DONE_EINT2_WIDTH 1 /* DCS_HP_DONE_EINT2 */
  5544. #define ARIZONA_FLL2_CLOCK_OK_EINT2 0x0002 /* FLL2_CLOCK_OK_EINT2 */
  5545. #define ARIZONA_FLL2_CLOCK_OK_EINT2_MASK 0x0002 /* FLL2_CLOCK_OK_EINT2 */
  5546. #define ARIZONA_FLL2_CLOCK_OK_EINT2_SHIFT 1 /* FLL2_CLOCK_OK_EINT2 */
  5547. #define ARIZONA_FLL2_CLOCK_OK_EINT2_WIDTH 1 /* FLL2_CLOCK_OK_EINT2 */
  5548. #define ARIZONA_FLL1_CLOCK_OK_EINT2 0x0001 /* FLL1_CLOCK_OK_EINT2 */
  5549. #define ARIZONA_FLL1_CLOCK_OK_EINT2_MASK 0x0001 /* FLL1_CLOCK_OK_EINT2 */
  5550. #define ARIZONA_FLL1_CLOCK_OK_EINT2_SHIFT 0 /* FLL1_CLOCK_OK_EINT2 */
  5551. #define ARIZONA_FLL1_CLOCK_OK_EINT2_WIDTH 1 /* FLL1_CLOCK_OK_EINT2 */
  5552. /*
  5553. * R3348 (0xD14) - IRQ2 Status 5 (Alternate layout)
  5554. *
  5555. * Alternate layout used on later devices, note only fields that have moved
  5556. * are specified
  5557. */
  5558. #define ARIZONA_V2_ASRC_CFG_ERR_EINT2 0x0008 /* ASRC_CFG_ERR_EINT2 */
  5559. #define ARIZONA_V2_ASRC_CFG_ERR_EINT2_MASK 0x0008 /* ASRC_CFG_ERR_EINT2 */
  5560. #define ARIZONA_V2_ASRC_CFG_ERR_EINT2_SHIFT 3 /* ASRC_CFG_ERR_EINT2 */
  5561. #define ARIZONA_V2_ASRC_CFG_ERR_EINT2_WIDTH 1 /* ASRC_CFG_ERR_EINT2 */
  5562. /*
  5563. * R3349 (0xD15) - IRQ2 Status 6
  5564. */
  5565. #define ARIZONA_DSP_SHARED_WR_COLL_EINT2 0x8000 /* DSP_SHARED_WR_COLL_EINT2 */
  5566. #define ARIZONA_DSP_SHARED_WR_COLL_EINT2_MASK 0x8000 /* DSP_SHARED_WR_COLL_EINT2 */
  5567. #define ARIZONA_DSP_SHARED_WR_COLL_EINT2_SHIFT 15 /* DSP_SHARED_WR_COLL_EINT2 */
  5568. #define ARIZONA_DSP_SHARED_WR_COLL_EINT2_WIDTH 1 /* DSP_SHARED_WR_COLL_EINT2 */
  5569. #define ARIZONA_SPK_SHUTDOWN_EINT2 0x4000 /* SPK_SHUTDOWN_EINT2 */
  5570. #define ARIZONA_SPK_SHUTDOWN_EINT2_MASK 0x4000 /* SPK_SHUTDOWN_EINT2 */
  5571. #define ARIZONA_SPK_SHUTDOWN_EINT2_SHIFT 14 /* SPK_SHUTDOWN_EINT2 */
  5572. #define ARIZONA_SPK_SHUTDOWN_EINT2_WIDTH 1 /* SPK_SHUTDOWN_EINT2 */
  5573. #define ARIZONA_SPK1R_SHORT_EINT2 0x2000 /* SPK1R_SHORT_EINT2 */
  5574. #define ARIZONA_SPK1R_SHORT_EINT2_MASK 0x2000 /* SPK1R_SHORT_EINT2 */
  5575. #define ARIZONA_SPK1R_SHORT_EINT2_SHIFT 13 /* SPK1R_SHORT_EINT2 */
  5576. #define ARIZONA_SPK1R_SHORT_EINT2_WIDTH 1 /* SPK1R_SHORT_EINT2 */
  5577. #define ARIZONA_SPK1L_SHORT_EINT2 0x1000 /* SPK1L_SHORT_EINT2 */
  5578. #define ARIZONA_SPK1L_SHORT_EINT2_MASK 0x1000 /* SPK1L_SHORT_EINT2 */
  5579. #define ARIZONA_SPK1L_SHORT_EINT2_SHIFT 12 /* SPK1L_SHORT_EINT2 */
  5580. #define ARIZONA_SPK1L_SHORT_EINT2_WIDTH 1 /* SPK1L_SHORT_EINT2 */
  5581. #define ARIZONA_HP3R_SC_NEG_EINT2 0x0800 /* HP3R_SC_NEG_EINT2 */
  5582. #define ARIZONA_HP3R_SC_NEG_EINT2_MASK 0x0800 /* HP3R_SC_NEG_EINT2 */
  5583. #define ARIZONA_HP3R_SC_NEG_EINT2_SHIFT 11 /* HP3R_SC_NEG_EINT2 */
  5584. #define ARIZONA_HP3R_SC_NEG_EINT2_WIDTH 1 /* HP3R_SC_NEG_EINT2 */
  5585. #define ARIZONA_HP3R_SC_POS_EINT2 0x0400 /* HP3R_SC_POS_EINT2 */
  5586. #define ARIZONA_HP3R_SC_POS_EINT2_MASK 0x0400 /* HP3R_SC_POS_EINT2 */
  5587. #define ARIZONA_HP3R_SC_POS_EINT2_SHIFT 10 /* HP3R_SC_POS_EINT2 */
  5588. #define ARIZONA_HP3R_SC_POS_EINT2_WIDTH 1 /* HP3R_SC_POS_EINT2 */
  5589. #define ARIZONA_HP3L_SC_NEG_EINT2 0x0200 /* HP3L_SC_NEG_EINT2 */
  5590. #define ARIZONA_HP3L_SC_NEG_EINT2_MASK 0x0200 /* HP3L_SC_NEG_EINT2 */
  5591. #define ARIZONA_HP3L_SC_NEG_EINT2_SHIFT 9 /* HP3L_SC_NEG_EINT2 */
  5592. #define ARIZONA_HP3L_SC_NEG_EINT2_WIDTH 1 /* HP3L_SC_NEG_EINT2 */
  5593. #define ARIZONA_HP3L_SC_POS_EINT2 0x0100 /* HP3L_SC_POS_EINT2 */
  5594. #define ARIZONA_HP3L_SC_POS_EINT2_MASK 0x0100 /* HP3L_SC_POS_EINT2 */
  5595. #define ARIZONA_HP3L_SC_POS_EINT2_SHIFT 8 /* HP3L_SC_POS_EINT2 */
  5596. #define ARIZONA_HP3L_SC_POS_EINT2_WIDTH 1 /* HP3L_SC_POS_EINT2 */
  5597. #define ARIZONA_HP2R_SC_NEG_EINT2 0x0080 /* HP2R_SC_NEG_EINT2 */
  5598. #define ARIZONA_HP2R_SC_NEG_EINT2_MASK 0x0080 /* HP2R_SC_NEG_EINT2 */
  5599. #define ARIZONA_HP2R_SC_NEG_EINT2_SHIFT 7 /* HP2R_SC_NEG_EINT2 */
  5600. #define ARIZONA_HP2R_SC_NEG_EINT2_WIDTH 1 /* HP2R_SC_NEG_EINT2 */
  5601. #define ARIZONA_HP2R_SC_POS_EINT2 0x0040 /* HP2R_SC_POS_EINT2 */
  5602. #define ARIZONA_HP2R_SC_POS_EINT2_MASK 0x0040 /* HP2R_SC_POS_EINT2 */
  5603. #define ARIZONA_HP2R_SC_POS_EINT2_SHIFT 6 /* HP2R_SC_POS_EINT2 */
  5604. #define ARIZONA_HP2R_SC_POS_EINT2_WIDTH 1 /* HP2R_SC_POS_EINT2 */
  5605. #define ARIZONA_HP2L_SC_NEG_EINT2 0x0020 /* HP2L_SC_NEG_EINT2 */
  5606. #define ARIZONA_HP2L_SC_NEG_EINT2_MASK 0x0020 /* HP2L_SC_NEG_EINT2 */
  5607. #define ARIZONA_HP2L_SC_NEG_EINT2_SHIFT 5 /* HP2L_SC_NEG_EINT2 */
  5608. #define ARIZONA_HP2L_SC_NEG_EINT2_WIDTH 1 /* HP2L_SC_NEG_EINT2 */
  5609. #define ARIZONA_HP2L_SC_POS_EINT2 0x0010 /* HP2L_SC_POS_EINT2 */
  5610. #define ARIZONA_HP2L_SC_POS_EINT2_MASK 0x0010 /* HP2L_SC_POS_EINT2 */
  5611. #define ARIZONA_HP2L_SC_POS_EINT2_SHIFT 4 /* HP2L_SC_POS_EINT2 */
  5612. #define ARIZONA_HP2L_SC_POS_EINT2_WIDTH 1 /* HP2L_SC_POS_EINT2 */
  5613. #define ARIZONA_HP1R_SC_NEG_EINT2 0x0008 /* HP1R_SC_NEG_EINT2 */
  5614. #define ARIZONA_HP1R_SC_NEG_EINT2_MASK 0x0008 /* HP1R_SC_NEG_EINT2 */
  5615. #define ARIZONA_HP1R_SC_NEG_EINT2_SHIFT 3 /* HP1R_SC_NEG_EINT2 */
  5616. #define ARIZONA_HP1R_SC_NEG_EINT2_WIDTH 1 /* HP1R_SC_NEG_EINT2 */
  5617. #define ARIZONA_HP1R_SC_POS_EINT2 0x0004 /* HP1R_SC_POS_EINT2 */
  5618. #define ARIZONA_HP1R_SC_POS_EINT2_MASK 0x0004 /* HP1R_SC_POS_EINT2 */
  5619. #define ARIZONA_HP1R_SC_POS_EINT2_SHIFT 2 /* HP1R_SC_POS_EINT2 */
  5620. #define ARIZONA_HP1R_SC_POS_EINT2_WIDTH 1 /* HP1R_SC_POS_EINT2 */
  5621. #define ARIZONA_HP1L_SC_NEG_EINT2 0x0002 /* HP1L_SC_NEG_EINT2 */
  5622. #define ARIZONA_HP1L_SC_NEG_EINT2_MASK 0x0002 /* HP1L_SC_NEG_EINT2 */
  5623. #define ARIZONA_HP1L_SC_NEG_EINT2_SHIFT 1 /* HP1L_SC_NEG_EINT2 */
  5624. #define ARIZONA_HP1L_SC_NEG_EINT2_WIDTH 1 /* HP1L_SC_NEG_EINT2 */
  5625. #define ARIZONA_HP1L_SC_POS_EINT2 0x0001 /* HP1L_SC_POS_EINT2 */
  5626. #define ARIZONA_HP1L_SC_POS_EINT2_MASK 0x0001 /* HP1L_SC_POS_EINT2 */
  5627. #define ARIZONA_HP1L_SC_POS_EINT2_SHIFT 0 /* HP1L_SC_POS_EINT2 */
  5628. #define ARIZONA_HP1L_SC_POS_EINT2_WIDTH 1 /* HP1L_SC_POS_EINT2 */
  5629. /*
  5630. * R3352 (0xD18) - IRQ2 Status 1 Mask
  5631. */
  5632. #define ARIZONA_IM_GP4_EINT2 0x0008 /* IM_GP4_EINT2 */
  5633. #define ARIZONA_IM_GP4_EINT2_MASK 0x0008 /* IM_GP4_EINT2 */
  5634. #define ARIZONA_IM_GP4_EINT2_SHIFT 3 /* IM_GP4_EINT2 */
  5635. #define ARIZONA_IM_GP4_EINT2_WIDTH 1 /* IM_GP4_EINT2 */
  5636. #define ARIZONA_IM_GP3_EINT2 0x0004 /* IM_GP3_EINT2 */
  5637. #define ARIZONA_IM_GP3_EINT2_MASK 0x0004 /* IM_GP3_EINT2 */
  5638. #define ARIZONA_IM_GP3_EINT2_SHIFT 2 /* IM_GP3_EINT2 */
  5639. #define ARIZONA_IM_GP3_EINT2_WIDTH 1 /* IM_GP3_EINT2 */
  5640. #define ARIZONA_IM_GP2_EINT2 0x0002 /* IM_GP2_EINT2 */
  5641. #define ARIZONA_IM_GP2_EINT2_MASK 0x0002 /* IM_GP2_EINT2 */
  5642. #define ARIZONA_IM_GP2_EINT2_SHIFT 1 /* IM_GP2_EINT2 */
  5643. #define ARIZONA_IM_GP2_EINT2_WIDTH 1 /* IM_GP2_EINT2 */
  5644. #define ARIZONA_IM_GP1_EINT2 0x0001 /* IM_GP1_EINT2 */
  5645. #define ARIZONA_IM_GP1_EINT2_MASK 0x0001 /* IM_GP1_EINT2 */
  5646. #define ARIZONA_IM_GP1_EINT2_SHIFT 0 /* IM_GP1_EINT2 */
  5647. #define ARIZONA_IM_GP1_EINT2_WIDTH 1 /* IM_GP1_EINT2 */
  5648. /*
  5649. * R3353 (0xD19) - IRQ2 Status 2 Mask
  5650. */
  5651. #define ARIZONA_IM_DSP1_RAM_RDY_EINT2 0x0100 /* IM_DSP1_RAM_RDY_EINT2 */
  5652. #define ARIZONA_IM_DSP1_RAM_RDY_EINT2_MASK 0x0100 /* IM_DSP1_RAM_RDY_EINT2 */
  5653. #define ARIZONA_IM_DSP1_RAM_RDY_EINT2_SHIFT 8 /* IM_DSP1_RAM_RDY_EINT2 */
  5654. #define ARIZONA_IM_DSP1_RAM_RDY_EINT2_WIDTH 1 /* IM_DSP1_RAM_RDY_EINT2 */
  5655. #define ARIZONA_IM_DSP_IRQ2_EINT2 0x0002 /* IM_DSP_IRQ2_EINT2 */
  5656. #define ARIZONA_IM_DSP_IRQ2_EINT2_MASK 0x0002 /* IM_DSP_IRQ2_EINT2 */
  5657. #define ARIZONA_IM_DSP_IRQ2_EINT2_SHIFT 1 /* IM_DSP_IRQ2_EINT2 */
  5658. #define ARIZONA_IM_DSP_IRQ2_EINT2_WIDTH 1 /* IM_DSP_IRQ2_EINT2 */
  5659. #define ARIZONA_IM_DSP_IRQ1_EINT2 0x0001 /* IM_DSP_IRQ1_EINT2 */
  5660. #define ARIZONA_IM_DSP_IRQ1_EINT2_MASK 0x0001 /* IM_DSP_IRQ1_EINT2 */
  5661. #define ARIZONA_IM_DSP_IRQ1_EINT2_SHIFT 0 /* IM_DSP_IRQ1_EINT2 */
  5662. #define ARIZONA_IM_DSP_IRQ1_EINT2_WIDTH 1 /* IM_DSP_IRQ1_EINT2 */
  5663. /*
  5664. * R3354 (0xD1A) - IRQ2 Status 3 Mask
  5665. */
  5666. #define ARIZONA_IM_SPK_OVERHEAT_WARN_EINT2 0x8000 /* IM_SPK_OVERHEAT_WARN_EINT2 */
  5667. #define ARIZONA_IM_SPK_OVERHEAT_WARN_EINT2_MASK 0x8000 /* IM_SPK_OVERHEAT_WARN_EINT2 */
  5668. #define ARIZONA_IM_SPK_OVERHEAT_WARN_EINT2_SHIFT 15 /* IM_SPK_OVERHEAT_WARN_EINT2 */
  5669. #define ARIZONA_IM_SPK_OVERHEAT_WARN_EINT2_WIDTH 1 /* IM_SPK_OVERHEAT_WARN_EINT2 */
  5670. #define ARIZONA_IM_SPK_OVERHEAT_EINT2 0x4000 /* IM_SPK_OVERHEAT_EINT2 */
  5671. #define ARIZONA_IM_SPK_OVERHEAT_EINT2_MASK 0x4000 /* IM_SPK_OVERHEAT_EINT2 */
  5672. #define ARIZONA_IM_SPK_OVERHEAT_EINT2_SHIFT 14 /* IM_SPK_OVERHEAT_EINT2 */
  5673. #define ARIZONA_IM_SPK_OVERHEAT_EINT2_WIDTH 1 /* IM_SPK_OVERHEAT_EINT2 */
  5674. #define ARIZONA_IM_HPDET_EINT2 0x2000 /* IM_HPDET_EINT2 */
  5675. #define ARIZONA_IM_HPDET_EINT2_MASK 0x2000 /* IM_HPDET_EINT2 */
  5676. #define ARIZONA_IM_HPDET_EINT2_SHIFT 13 /* IM_HPDET_EINT2 */
  5677. #define ARIZONA_IM_HPDET_EINT2_WIDTH 1 /* IM_HPDET_EINT2 */
  5678. #define ARIZONA_IM_MICDET_EINT2 0x1000 /* IM_MICDET_EINT2 */
  5679. #define ARIZONA_IM_MICDET_EINT2_MASK 0x1000 /* IM_MICDET_EINT2 */
  5680. #define ARIZONA_IM_MICDET_EINT2_SHIFT 12 /* IM_MICDET_EINT2 */
  5681. #define ARIZONA_IM_MICDET_EINT2_WIDTH 1 /* IM_MICDET_EINT2 */
  5682. #define ARIZONA_IM_WSEQ_DONE_EINT2 0x0800 /* IM_WSEQ_DONE_EINT2 */
  5683. #define ARIZONA_IM_WSEQ_DONE_EINT2_MASK 0x0800 /* IM_WSEQ_DONE_EINT2 */
  5684. #define ARIZONA_IM_WSEQ_DONE_EINT2_SHIFT 11 /* IM_WSEQ_DONE_EINT2 */
  5685. #define ARIZONA_IM_WSEQ_DONE_EINT2_WIDTH 1 /* IM_WSEQ_DONE_EINT2 */
  5686. #define ARIZONA_IM_DRC2_SIG_DET_EINT2 0x0400 /* IM_DRC2_SIG_DET_EINT2 */
  5687. #define ARIZONA_IM_DRC2_SIG_DET_EINT2_MASK 0x0400 /* IM_DRC2_SIG_DET_EINT2 */
  5688. #define ARIZONA_IM_DRC2_SIG_DET_EINT2_SHIFT 10 /* IM_DRC2_SIG_DET_EINT2 */
  5689. #define ARIZONA_IM_DRC2_SIG_DET_EINT2_WIDTH 1 /* IM_DRC2_SIG_DET_EINT2 */
  5690. #define ARIZONA_IM_DRC1_SIG_DET_EINT2 0x0200 /* IM_DRC1_SIG_DET_EINT2 */
  5691. #define ARIZONA_IM_DRC1_SIG_DET_EINT2_MASK 0x0200 /* IM_DRC1_SIG_DET_EINT2 */
  5692. #define ARIZONA_IM_DRC1_SIG_DET_EINT2_SHIFT 9 /* IM_DRC1_SIG_DET_EINT2 */
  5693. #define ARIZONA_IM_DRC1_SIG_DET_EINT2_WIDTH 1 /* IM_DRC1_SIG_DET_EINT2 */
  5694. #define ARIZONA_IM_ASRC2_LOCK_EINT2 0x0100 /* IM_ASRC2_LOCK_EINT2 */
  5695. #define ARIZONA_IM_ASRC2_LOCK_EINT2_MASK 0x0100 /* IM_ASRC2_LOCK_EINT2 */
  5696. #define ARIZONA_IM_ASRC2_LOCK_EINT2_SHIFT 8 /* IM_ASRC2_LOCK_EINT2 */
  5697. #define ARIZONA_IM_ASRC2_LOCK_EINT2_WIDTH 1 /* IM_ASRC2_LOCK_EINT2 */
  5698. #define ARIZONA_IM_ASRC1_LOCK_EINT2 0x0080 /* IM_ASRC1_LOCK_EINT2 */
  5699. #define ARIZONA_IM_ASRC1_LOCK_EINT2_MASK 0x0080 /* IM_ASRC1_LOCK_EINT2 */
  5700. #define ARIZONA_IM_ASRC1_LOCK_EINT2_SHIFT 7 /* IM_ASRC1_LOCK_EINT2 */
  5701. #define ARIZONA_IM_ASRC1_LOCK_EINT2_WIDTH 1 /* IM_ASRC1_LOCK_EINT2 */
  5702. #define ARIZONA_IM_UNDERCLOCKED_EINT2 0x0040 /* IM_UNDERCLOCKED_EINT2 */
  5703. #define ARIZONA_IM_UNDERCLOCKED_EINT2_MASK 0x0040 /* IM_UNDERCLOCKED_EINT2 */
  5704. #define ARIZONA_IM_UNDERCLOCKED_EINT2_SHIFT 6 /* IM_UNDERCLOCKED_EINT2 */
  5705. #define ARIZONA_IM_UNDERCLOCKED_EINT2_WIDTH 1 /* IM_UNDERCLOCKED_EINT2 */
  5706. #define ARIZONA_IM_OVERCLOCKED_EINT2 0x0020 /* IM_OVERCLOCKED_EINT2 */
  5707. #define ARIZONA_IM_OVERCLOCKED_EINT2_MASK 0x0020 /* IM_OVERCLOCKED_EINT2 */
  5708. #define ARIZONA_IM_OVERCLOCKED_EINT2_SHIFT 5 /* IM_OVERCLOCKED_EINT2 */
  5709. #define ARIZONA_IM_OVERCLOCKED_EINT2_WIDTH 1 /* IM_OVERCLOCKED_EINT2 */
  5710. #define ARIZONA_IM_FLL2_LOCK_EINT2 0x0008 /* IM_FLL2_LOCK_EINT2 */
  5711. #define ARIZONA_IM_FLL2_LOCK_EINT2_MASK 0x0008 /* IM_FLL2_LOCK_EINT2 */
  5712. #define ARIZONA_IM_FLL2_LOCK_EINT2_SHIFT 3 /* IM_FLL2_LOCK_EINT2 */
  5713. #define ARIZONA_IM_FLL2_LOCK_EINT2_WIDTH 1 /* IM_FLL2_LOCK_EINT2 */
  5714. #define ARIZONA_IM_FLL1_LOCK_EINT2 0x0004 /* IM_FLL1_LOCK_EINT2 */
  5715. #define ARIZONA_IM_FLL1_LOCK_EINT2_MASK 0x0004 /* IM_FLL1_LOCK_EINT2 */
  5716. #define ARIZONA_IM_FLL1_LOCK_EINT2_SHIFT 2 /* IM_FLL1_LOCK_EINT2 */
  5717. #define ARIZONA_IM_FLL1_LOCK_EINT2_WIDTH 1 /* IM_FLL1_LOCK_EINT2 */
  5718. #define ARIZONA_IM_CLKGEN_ERR_EINT2 0x0002 /* IM_CLKGEN_ERR_EINT2 */
  5719. #define ARIZONA_IM_CLKGEN_ERR_EINT2_MASK 0x0002 /* IM_CLKGEN_ERR_EINT2 */
  5720. #define ARIZONA_IM_CLKGEN_ERR_EINT2_SHIFT 1 /* IM_CLKGEN_ERR_EINT2 */
  5721. #define ARIZONA_IM_CLKGEN_ERR_EINT2_WIDTH 1 /* IM_CLKGEN_ERR_EINT2 */
  5722. #define ARIZONA_IM_CLKGEN_ERR_ASYNC_EINT2 0x0001 /* IM_CLKGEN_ERR_ASYNC_EINT2 */
  5723. #define ARIZONA_IM_CLKGEN_ERR_ASYNC_EINT2_MASK 0x0001 /* IM_CLKGEN_ERR_ASYNC_EINT2 */
  5724. #define ARIZONA_IM_CLKGEN_ERR_ASYNC_EINT2_SHIFT 0 /* IM_CLKGEN_ERR_ASYNC_EINT2 */
  5725. #define ARIZONA_IM_CLKGEN_ERR_ASYNC_EINT2_WIDTH 1 /* IM_CLKGEN_ERR_ASYNC_EINT2 */
  5726. /*
  5727. * R3355 (0xD1B) - IRQ2 Status 4 Mask
  5728. */
  5729. #define ARIZONA_IM_ASRC_CFG_ERR_EINT2 0x8000 /* IM_ASRC_CFG_ERR_EINT2 */
  5730. #define ARIZONA_IM_ASRC_CFG_ERR_EINT2_MASK 0x8000 /* IM_ASRC_CFG_ERR_EINT2 */
  5731. #define ARIZONA_IM_ASRC_CFG_ERR_EINT2_SHIFT 15 /* IM_ASRC_CFG_ERR_EINT2 */
  5732. #define ARIZONA_IM_ASRC_CFG_ERR_EINT2_WIDTH 1 /* IM_ASRC_CFG_ERR_EINT2 */
  5733. #define ARIZONA_IM_AIF3_ERR_EINT2 0x4000 /* IM_AIF3_ERR_EINT2 */
  5734. #define ARIZONA_IM_AIF3_ERR_EINT2_MASK 0x4000 /* IM_AIF3_ERR_EINT2 */
  5735. #define ARIZONA_IM_AIF3_ERR_EINT2_SHIFT 14 /* IM_AIF3_ERR_EINT2 */
  5736. #define ARIZONA_IM_AIF3_ERR_EINT2_WIDTH 1 /* IM_AIF3_ERR_EINT2 */
  5737. #define ARIZONA_IM_AIF2_ERR_EINT2 0x2000 /* IM_AIF2_ERR_EINT2 */
  5738. #define ARIZONA_IM_AIF2_ERR_EINT2_MASK 0x2000 /* IM_AIF2_ERR_EINT2 */
  5739. #define ARIZONA_IM_AIF2_ERR_EINT2_SHIFT 13 /* IM_AIF2_ERR_EINT2 */
  5740. #define ARIZONA_IM_AIF2_ERR_EINT2_WIDTH 1 /* IM_AIF2_ERR_EINT2 */
  5741. #define ARIZONA_IM_AIF1_ERR_EINT2 0x1000 /* IM_AIF1_ERR_EINT2 */
  5742. #define ARIZONA_IM_AIF1_ERR_EINT2_MASK 0x1000 /* IM_AIF1_ERR_EINT2 */
  5743. #define ARIZONA_IM_AIF1_ERR_EINT2_SHIFT 12 /* IM_AIF1_ERR_EINT2 */
  5744. #define ARIZONA_IM_AIF1_ERR_EINT2_WIDTH 1 /* IM_AIF1_ERR_EINT2 */
  5745. #define ARIZONA_IM_CTRLIF_ERR_EINT2 0x0800 /* IM_CTRLIF_ERR_EINT2 */
  5746. #define ARIZONA_IM_CTRLIF_ERR_EINT2_MASK 0x0800 /* IM_CTRLIF_ERR_EINT2 */
  5747. #define ARIZONA_IM_CTRLIF_ERR_EINT2_SHIFT 11 /* IM_CTRLIF_ERR_EINT2 */
  5748. #define ARIZONA_IM_CTRLIF_ERR_EINT2_WIDTH 1 /* IM_CTRLIF_ERR_EINT2 */
  5749. #define ARIZONA_IM_MIXER_DROPPED_SAMPLE_EINT2 0x0400 /* IM_MIXER_DROPPED_SAMPLE_EINT2 */
  5750. #define ARIZONA_IM_MIXER_DROPPED_SAMPLE_EINT2_MASK 0x0400 /* IM_MIXER_DROPPED_SAMPLE_EINT2 */
  5751. #define ARIZONA_IM_MIXER_DROPPED_SAMPLE_EINT2_SHIFT 10 /* IM_MIXER_DROPPED_SAMPLE_EINT2 */
  5752. #define ARIZONA_IM_MIXER_DROPPED_SAMPLE_EINT2_WIDTH 1 /* IM_MIXER_DROPPED_SAMPLE_EINT2 */
  5753. #define ARIZONA_IM_ASYNC_CLK_ENA_LOW_EINT2 0x0200 /* IM_ASYNC_CLK_ENA_LOW_EINT2 */
  5754. #define ARIZONA_IM_ASYNC_CLK_ENA_LOW_EINT2_MASK 0x0200 /* IM_ASYNC_CLK_ENA_LOW_EINT2 */
  5755. #define ARIZONA_IM_ASYNC_CLK_ENA_LOW_EINT2_SHIFT 9 /* IM_ASYNC_CLK_ENA_LOW_EINT2 */
  5756. #define ARIZONA_IM_ASYNC_CLK_ENA_LOW_EINT2_WIDTH 1 /* IM_ASYNC_CLK_ENA_LOW_EINT2 */
  5757. #define ARIZONA_IM_SYSCLK_ENA_LOW_EINT2 0x0100 /* IM_SYSCLK_ENA_LOW_EINT2 */
  5758. #define ARIZONA_IM_SYSCLK_ENA_LOW_EINT2_MASK 0x0100 /* IM_SYSCLK_ENA_LOW_EINT2 */
  5759. #define ARIZONA_IM_SYSCLK_ENA_LOW_EINT2_SHIFT 8 /* IM_SYSCLK_ENA_LOW_EINT2 */
  5760. #define ARIZONA_IM_SYSCLK_ENA_LOW_EINT2_WIDTH 1 /* IM_SYSCLK_ENA_LOW_EINT2 */
  5761. #define ARIZONA_IM_ISRC1_CFG_ERR_EINT2 0x0080 /* IM_ISRC1_CFG_ERR_EINT2 */
  5762. #define ARIZONA_IM_ISRC1_CFG_ERR_EINT2_MASK 0x0080 /* IM_ISRC1_CFG_ERR_EINT2 */
  5763. #define ARIZONA_IM_ISRC1_CFG_ERR_EINT2_SHIFT 7 /* IM_ISRC1_CFG_ERR_EINT2 */
  5764. #define ARIZONA_IM_ISRC1_CFG_ERR_EINT2_WIDTH 1 /* IM_ISRC1_CFG_ERR_EINT2 */
  5765. #define ARIZONA_IM_ISRC2_CFG_ERR_EINT2 0x0040 /* IM_ISRC2_CFG_ERR_EINT2 */
  5766. #define ARIZONA_IM_ISRC2_CFG_ERR_EINT2_MASK 0x0040 /* IM_ISRC2_CFG_ERR_EINT2 */
  5767. #define ARIZONA_IM_ISRC2_CFG_ERR_EINT2_SHIFT 6 /* IM_ISRC2_CFG_ERR_EINT2 */
  5768. #define ARIZONA_IM_ISRC2_CFG_ERR_EINT2_WIDTH 1 /* IM_ISRC2_CFG_ERR_EINT2 */
  5769. #define ARIZONA_IM_HP3R_DONE_EINT2 0x0020 /* IM_HP3R_DONE_EINT2 */
  5770. #define ARIZONA_IM_HP3R_DONE_EINT2_MASK 0x0020 /* IM_HP3R_DONE_EINT2 */
  5771. #define ARIZONA_IM_HP3R_DONE_EINT2_SHIFT 5 /* IM_HP3R_DONE_EINT2 */
  5772. #define ARIZONA_IM_HP3R_DONE_EINT2_WIDTH 1 /* IM_HP3R_DONE_EINT2 */
  5773. #define ARIZONA_IM_HP3L_DONE_EINT2 0x0010 /* IM_HP3L_DONE_EINT2 */
  5774. #define ARIZONA_IM_HP3L_DONE_EINT2_MASK 0x0010 /* IM_HP3L_DONE_EINT2 */
  5775. #define ARIZONA_IM_HP3L_DONE_EINT2_SHIFT 4 /* IM_HP3L_DONE_EINT2 */
  5776. #define ARIZONA_IM_HP3L_DONE_EINT2_WIDTH 1 /* IM_HP3L_DONE_EINT2 */
  5777. #define ARIZONA_IM_HP2R_DONE_EINT2 0x0008 /* IM_HP2R_DONE_EINT2 */
  5778. #define ARIZONA_IM_HP2R_DONE_EINT2_MASK 0x0008 /* IM_HP2R_DONE_EINT2 */
  5779. #define ARIZONA_IM_HP2R_DONE_EINT2_SHIFT 3 /* IM_HP2R_DONE_EINT2 */
  5780. #define ARIZONA_IM_HP2R_DONE_EINT2_WIDTH 1 /* IM_HP2R_DONE_EINT2 */
  5781. #define ARIZONA_IM_HP2L_DONE_EINT2 0x0004 /* IM_HP2L_DONE_EINT2 */
  5782. #define ARIZONA_IM_HP2L_DONE_EINT2_MASK 0x0004 /* IM_HP2L_DONE_EINT2 */
  5783. #define ARIZONA_IM_HP2L_DONE_EINT2_SHIFT 2 /* IM_HP2L_DONE_EINT2 */
  5784. #define ARIZONA_IM_HP2L_DONE_EINT2_WIDTH 1 /* IM_HP2L_DONE_EINT2 */
  5785. #define ARIZONA_IM_HP1R_DONE_EINT2 0x0002 /* IM_HP1R_DONE_EINT2 */
  5786. #define ARIZONA_IM_HP1R_DONE_EINT2_MASK 0x0002 /* IM_HP1R_DONE_EINT2 */
  5787. #define ARIZONA_IM_HP1R_DONE_EINT2_SHIFT 1 /* IM_HP1R_DONE_EINT2 */
  5788. #define ARIZONA_IM_HP1R_DONE_EINT2_WIDTH 1 /* IM_HP1R_DONE_EINT2 */
  5789. #define ARIZONA_IM_HP1L_DONE_EINT2 0x0001 /* IM_HP1L_DONE_EINT2 */
  5790. #define ARIZONA_IM_HP1L_DONE_EINT2_MASK 0x0001 /* IM_HP1L_DONE_EINT2 */
  5791. #define ARIZONA_IM_HP1L_DONE_EINT2_SHIFT 0 /* IM_HP1L_DONE_EINT2 */
  5792. #define ARIZONA_IM_HP1L_DONE_EINT2_WIDTH 1 /* IM_HP1L_DONE_EINT2 */
  5793. /*
  5794. * R3355 (0xD1B) - IRQ2 Status 4 Mask (Alternate layout)
  5795. *
  5796. * Alternate layout used on later devices, note only fields that have moved
  5797. * are specified
  5798. */
  5799. #define ARIZONA_V2_IM_AIF3_ERR_EINT2 0x8000 /* IM_AIF3_ERR_EINT2 */
  5800. #define ARIZONA_V2_IM_AIF3_ERR_EINT2_MASK 0x8000 /* IM_AIF3_ERR_EINT2 */
  5801. #define ARIZONA_V2_IM_AIF3_ERR_EINT2_SHIFT 15 /* IM_AIF3_ERR_EINT2 */
  5802. #define ARIZONA_V2_IM_AIF3_ERR_EINT2_WIDTH 1 /* IM_AIF3_ERR_EINT2 */
  5803. #define ARIZONA_V2_IM_AIF2_ERR_EINT2 0x4000 /* IM_AIF2_ERR_EINT2 */
  5804. #define ARIZONA_V2_IM_AIF2_ERR_EINT2_MASK 0x4000 /* IM_AIF2_ERR_EINT2 */
  5805. #define ARIZONA_V2_IM_AIF2_ERR_EINT2_SHIFT 14 /* IM_AIF2_ERR_EINT2 */
  5806. #define ARIZONA_V2_IM_AIF2_ERR_EINT2_WIDTH 1 /* IM_AIF2_ERR_EINT2 */
  5807. #define ARIZONA_V2_IM_AIF1_ERR_EINT2 0x2000 /* IM_AIF1_ERR_EINT2 */
  5808. #define ARIZONA_V2_IM_AIF1_ERR_EINT2_MASK 0x2000 /* IM_AIF1_ERR_EINT2 */
  5809. #define ARIZONA_V2_IM_AIF1_ERR_EINT2_SHIFT 13 /* IM_AIF1_ERR_EINT2 */
  5810. #define ARIZONA_V2_IM_AIF1_ERR_EINT2_WIDTH 1 /* IM_AIF1_ERR_EINT2 */
  5811. #define ARIZONA_V2_IM_CTRLIF_ERR_EINT2 0x1000 /* IM_CTRLIF_ERR_EINT2 */
  5812. #define ARIZONA_V2_IM_CTRLIF_ERR_EINT2_MASK 0x1000 /* IM_CTRLIF_ERR_EINT2 */
  5813. #define ARIZONA_V2_IM_CTRLIF_ERR_EINT2_SHIFT 12 /* IM_CTRLIF_ERR_EINT2 */
  5814. #define ARIZONA_V2_IM_CTRLIF_ERR_EINT2_WIDTH 1 /* IM_CTRLIF_ERR_EINT2 */
  5815. #define ARIZONA_V2_IM_MIXER_DROPPED_SAMPLE_EINT2 0x0800 /* IM_MIXER_DROPPED_SAMPLE_EINT2 */
  5816. #define ARIZONA_V2_IM_MIXER_DROPPED_SAMPLE_EINT2_MASK 0x0800 /* IM_MIXER_DROPPED_SAMPLE_EINT2 */
  5817. #define ARIZONA_V2_IM_MIXER_DROPPED_SAMPLE_EINT2_SHIFT 11 /* IM_MIXER_DROPPED_SAMPLE_EINT2 */
  5818. #define ARIZONA_V2_IM_MIXER_DROPPED_SAMPLE_EINT2_WIDTH 1 /* IM_MIXER_DROPPED_SAMPLE_EINT2 */
  5819. #define ARIZONA_V2_IM_ASYNC_CLK_ENA_LOW_EINT2 0x0400 /* IM_ASYNC_CLK_ENA_LOW_EINT2 */
  5820. #define ARIZONA_V2_IM_ASYNC_CLK_ENA_LOW_EINT2_MASK 0x0400 /* IM_ASYNC_CLK_ENA_LOW_EINT2 */
  5821. #define ARIZONA_V2_IM_ASYNC_CLK_ENA_LOW_EINT2_SHIFT 10 /* IM_ASYNC_CLK_ENA_LOW_EINT2 */
  5822. #define ARIZONA_V2_IM_ASYNC_CLK_ENA_LOW_EINT2_WIDTH 1 /* IM_ASYNC_CLK_ENA_LOW_EINT2 */
  5823. #define ARIZONA_V2_IM_SYSCLK_ENA_LOW_EINT2 0x0200 /* IM_SYSCLK_ENA_LOW_EINT2 */
  5824. #define ARIZONA_V2_IM_SYSCLK_ENA_LOW_EINT2_MASK 0x0200 /* IM_SYSCLK_ENA_LOW_EINT2 */
  5825. #define ARIZONA_V2_IM_SYSCLK_ENA_LOW_EINT2_SHIFT 9 /* IM_SYSCLK_ENA_LOW_EINT2 */
  5826. #define ARIZONA_V2_IM_SYSCLK_ENA_LOW_EINT2_WIDTH 1 /* IM_SYSCLK_ENA_LOW_EINT2 */
  5827. #define ARIZONA_V2_IM_ISRC1_CFG_ERR_EINT2 0x0100 /* IM_ISRC1_CFG_ERR_EINT2 */
  5828. #define ARIZONA_V2_IM_ISRC1_CFG_ERR_EINT2_MASK 0x0100 /* IM_ISRC1_CFG_ERR_EINT2 */
  5829. #define ARIZONA_V2_IM_ISRC1_CFG_ERR_EINT2_SHIFT 8 /* IM_ISRC1_CFG_ERR_EINT2 */
  5830. #define ARIZONA_V2_IM_ISRC1_CFG_ERR_EINT2_WIDTH 1 /* IM_ISRC1_CFG_ERR_EINT2 */
  5831. #define ARIZONA_V2_IM_ISRC2_CFG_ERR_EINT2 0x0080 /* IM_ISRC2_CFG_ERR_EINT2 */
  5832. #define ARIZONA_V2_IM_ISRC2_CFG_ERR_EINT2_MASK 0x0080 /* IM_ISRC2_CFG_ERR_EINT2 */
  5833. #define ARIZONA_V2_IM_ISRC2_CFG_ERR_EINT2_SHIFT 7 /* IM_ISRC2_CFG_ERR_EINT2 */
  5834. #define ARIZONA_V2_IM_ISRC2_CFG_ERR_EINT2_WIDTH 1 /* IM_ISRC2_CFG_ERR_EINT2 */
  5835. #define ARIZONA_V2_IM_ISRC3_CFG_ERR_EINT2 0x0040 /* IM_ISRC3_CFG_ERR_EINT2 */
  5836. #define ARIZONA_V2_IM_ISRC3_CFG_ERR_EINT2_MASK 0x0040 /* IM_ISRC3_CFG_ERR_EINT2 */
  5837. #define ARIZONA_V2_IM_ISRC3_CFG_ERR_EINT2_SHIFT 6 /* IM_ISRC3_CFG_ERR_EINT2 */
  5838. #define ARIZONA_V2_IM_ISRC3_CFG_ERR_EINT2_WIDTH 1 /* IM_ISRC3_CFG_ERR_EINT2 */
  5839. /*
  5840. * R3356 (0xD1C) - IRQ2 Status 5 Mask
  5841. */
  5842. #define ARIZONA_IM_BOOT_DONE_EINT2 0x0100 /* IM_BOOT_DONE_EINT2 */
  5843. #define ARIZONA_IM_BOOT_DONE_EINT2_MASK 0x0100 /* IM_BOOT_DONE_EINT2 */
  5844. #define ARIZONA_IM_BOOT_DONE_EINT2_SHIFT 8 /* IM_BOOT_DONE_EINT2 */
  5845. #define ARIZONA_IM_BOOT_DONE_EINT2_WIDTH 1 /* IM_BOOT_DONE_EINT2 */
  5846. #define ARIZONA_IM_DCS_DAC_DONE_EINT2 0x0080 /* IM_DCS_DAC_DONE_EINT2 */
  5847. #define ARIZONA_IM_DCS_DAC_DONE_EINT2_MASK 0x0080 /* IM_DCS_DAC_DONE_EINT2 */
  5848. #define ARIZONA_IM_DCS_DAC_DONE_EINT2_SHIFT 7 /* IM_DCS_DAC_DONE_EINT2 */
  5849. #define ARIZONA_IM_DCS_DAC_DONE_EINT2_WIDTH 1 /* IM_DCS_DAC_DONE_EINT2 */
  5850. #define ARIZONA_IM_DCS_HP_DONE_EINT2 0x0040 /* IM_DCS_HP_DONE_EINT2 */
  5851. #define ARIZONA_IM_DCS_HP_DONE_EINT2_MASK 0x0040 /* IM_DCS_HP_DONE_EINT2 */
  5852. #define ARIZONA_IM_DCS_HP_DONE_EINT2_SHIFT 6 /* IM_DCS_HP_DONE_EINT2 */
  5853. #define ARIZONA_IM_DCS_HP_DONE_EINT2_WIDTH 1 /* IM_DCS_HP_DONE_EINT2 */
  5854. #define ARIZONA_IM_FLL2_CLOCK_OK_EINT2 0x0002 /* IM_FLL2_CLOCK_OK_EINT2 */
  5855. #define ARIZONA_IM_FLL2_CLOCK_OK_EINT2_MASK 0x0002 /* IM_FLL2_CLOCK_OK_EINT2 */
  5856. #define ARIZONA_IM_FLL2_CLOCK_OK_EINT2_SHIFT 1 /* IM_FLL2_CLOCK_OK_EINT2 */
  5857. #define ARIZONA_IM_FLL2_CLOCK_OK_EINT2_WIDTH 1 /* IM_FLL2_CLOCK_OK_EINT2 */
  5858. #define ARIZONA_IM_FLL1_CLOCK_OK_EINT2 0x0001 /* IM_FLL1_CLOCK_OK_EINT2 */
  5859. #define ARIZONA_IM_FLL1_CLOCK_OK_EINT2_MASK 0x0001 /* IM_FLL1_CLOCK_OK_EINT2 */
  5860. #define ARIZONA_IM_FLL1_CLOCK_OK_EINT2_SHIFT 0 /* IM_FLL1_CLOCK_OK_EINT2 */
  5861. #define ARIZONA_IM_FLL1_CLOCK_OK_EINT2_WIDTH 1 /* IM_FLL1_CLOCK_OK_EINT2 */
  5862. /*
  5863. * R3340 (0xD0C) - Interrupt Status 5 Mask (Alternate layout)
  5864. *
  5865. * Alternate layout used on later devices, note only fields that have moved
  5866. * are specified
  5867. */
  5868. #define ARIZONA_V2_IM_ASRC_CFG_ERR_EINT2 0x0008 /* IM_ASRC_CFG_ERR_EINT2 */
  5869. #define ARIZONA_V2_IM_ASRC_CFG_ERR_EINT2_MASK 0x0008 /* IM_ASRC_CFG_ERR_EINT2 */
  5870. #define ARIZONA_V2_IM_ASRC_CFG_ERR_EINT2_SHIFT 3 /* IM_ASRC_CFG_ERR_EINT2 */
  5871. #define ARIZONA_V2_IM_ASRC_CFG_ERR_EINT2_WIDTH 1 /* IM_ASRC_CFG_ERR_EINT2 */
  5872. /*
  5873. * R3357 (0xD1D) - IRQ2 Status 6 Mask
  5874. */
  5875. #define ARIZONA_IM_DSP_SHARED_WR_COLL_EINT2 0x8000 /* IM_DSP_SHARED_WR_COLL_EINT2 */
  5876. #define ARIZONA_IM_DSP_SHARED_WR_COLL_EINT2_MASK 0x8000 /* IM_DSP_SHARED_WR_COLL_EINT2 */
  5877. #define ARIZONA_IM_DSP_SHARED_WR_COLL_EINT2_SHIFT 15 /* IM_DSP_SHARED_WR_COLL_EINT2 */
  5878. #define ARIZONA_IM_DSP_SHARED_WR_COLL_EINT2_WIDTH 1 /* IM_DSP_SHARED_WR_COLL_EINT2 */
  5879. #define ARIZONA_IM_SPK_SHUTDOWN_EINT2 0x4000 /* IM_SPK_SHUTDOWN_EINT2 */
  5880. #define ARIZONA_IM_SPK_SHUTDOWN_EINT2_MASK 0x4000 /* IM_SPK_SHUTDOWN_EINT2 */
  5881. #define ARIZONA_IM_SPK_SHUTDOWN_EINT2_SHIFT 14 /* IM_SPK_SHUTDOWN_EINT2 */
  5882. #define ARIZONA_IM_SPK_SHUTDOWN_EINT2_WIDTH 1 /* IM_SPK_SHUTDOWN_EINT2 */
  5883. #define ARIZONA_IM_SPK1R_SHORT_EINT2 0x2000 /* IM_SPK1R_SHORT_EINT2 */
  5884. #define ARIZONA_IM_SPK1R_SHORT_EINT2_MASK 0x2000 /* IM_SPK1R_SHORT_EINT2 */
  5885. #define ARIZONA_IM_SPK1R_SHORT_EINT2_SHIFT 13 /* IM_SPK1R_SHORT_EINT2 */
  5886. #define ARIZONA_IM_SPK1R_SHORT_EINT2_WIDTH 1 /* IM_SPK1R_SHORT_EINT2 */
  5887. #define ARIZONA_IM_SPK1L_SHORT_EINT2 0x1000 /* IM_SPK1L_SHORT_EINT2 */
  5888. #define ARIZONA_IM_SPK1L_SHORT_EINT2_MASK 0x1000 /* IM_SPK1L_SHORT_EINT2 */
  5889. #define ARIZONA_IM_SPK1L_SHORT_EINT2_SHIFT 12 /* IM_SPK1L_SHORT_EINT2 */
  5890. #define ARIZONA_IM_SPK1L_SHORT_EINT2_WIDTH 1 /* IM_SPK1L_SHORT_EINT2 */
  5891. #define ARIZONA_IM_HP3R_SC_NEG_EINT2 0x0800 /* IM_HP3R_SC_NEG_EINT2 */
  5892. #define ARIZONA_IM_HP3R_SC_NEG_EINT2_MASK 0x0800 /* IM_HP3R_SC_NEG_EINT2 */
  5893. #define ARIZONA_IM_HP3R_SC_NEG_EINT2_SHIFT 11 /* IM_HP3R_SC_NEG_EINT2 */
  5894. #define ARIZONA_IM_HP3R_SC_NEG_EINT2_WIDTH 1 /* IM_HP3R_SC_NEG_EINT2 */
  5895. #define ARIZONA_IM_HP3R_SC_POS_EINT2 0x0400 /* IM_HP3R_SC_POS_EINT2 */
  5896. #define ARIZONA_IM_HP3R_SC_POS_EINT2_MASK 0x0400 /* IM_HP3R_SC_POS_EINT2 */
  5897. #define ARIZONA_IM_HP3R_SC_POS_EINT2_SHIFT 10 /* IM_HP3R_SC_POS_EINT2 */
  5898. #define ARIZONA_IM_HP3R_SC_POS_EINT2_WIDTH 1 /* IM_HP3R_SC_POS_EINT2 */
  5899. #define ARIZONA_IM_HP3L_SC_NEG_EINT2 0x0200 /* IM_HP3L_SC_NEG_EINT2 */
  5900. #define ARIZONA_IM_HP3L_SC_NEG_EINT2_MASK 0x0200 /* IM_HP3L_SC_NEG_EINT2 */
  5901. #define ARIZONA_IM_HP3L_SC_NEG_EINT2_SHIFT 9 /* IM_HP3L_SC_NEG_EINT2 */
  5902. #define ARIZONA_IM_HP3L_SC_NEG_EINT2_WIDTH 1 /* IM_HP3L_SC_NEG_EINT2 */
  5903. #define ARIZONA_IM_HP3L_SC_POS_EINT2 0x0100 /* IM_HP3L_SC_POS_EINT2 */
  5904. #define ARIZONA_IM_HP3L_SC_POS_EINT2_MASK 0x0100 /* IM_HP3L_SC_POS_EINT2 */
  5905. #define ARIZONA_IM_HP3L_SC_POS_EINT2_SHIFT 8 /* IM_HP3L_SC_POS_EINT2 */
  5906. #define ARIZONA_IM_HP3L_SC_POS_EINT2_WIDTH 1 /* IM_HP3L_SC_POS_EINT2 */
  5907. #define ARIZONA_IM_HP2R_SC_NEG_EINT2 0x0080 /* IM_HP2R_SC_NEG_EINT2 */
  5908. #define ARIZONA_IM_HP2R_SC_NEG_EINT2_MASK 0x0080 /* IM_HP2R_SC_NEG_EINT2 */
  5909. #define ARIZONA_IM_HP2R_SC_NEG_EINT2_SHIFT 7 /* IM_HP2R_SC_NEG_EINT2 */
  5910. #define ARIZONA_IM_HP2R_SC_NEG_EINT2_WIDTH 1 /* IM_HP2R_SC_NEG_EINT2 */
  5911. #define ARIZONA_IM_HP2R_SC_POS_EINT2 0x0040 /* IM_HP2R_SC_POS_EINT2 */
  5912. #define ARIZONA_IM_HP2R_SC_POS_EINT2_MASK 0x0040 /* IM_HP2R_SC_POS_EINT2 */
  5913. #define ARIZONA_IM_HP2R_SC_POS_EINT2_SHIFT 6 /* IM_HP2R_SC_POS_EINT2 */
  5914. #define ARIZONA_IM_HP2R_SC_POS_EINT2_WIDTH 1 /* IM_HP2R_SC_POS_EINT2 */
  5915. #define ARIZONA_IM_HP2L_SC_NEG_EINT2 0x0020 /* IM_HP2L_SC_NEG_EINT2 */
  5916. #define ARIZONA_IM_HP2L_SC_NEG_EINT2_MASK 0x0020 /* IM_HP2L_SC_NEG_EINT2 */
  5917. #define ARIZONA_IM_HP2L_SC_NEG_EINT2_SHIFT 5 /* IM_HP2L_SC_NEG_EINT2 */
  5918. #define ARIZONA_IM_HP2L_SC_NEG_EINT2_WIDTH 1 /* IM_HP2L_SC_NEG_EINT2 */
  5919. #define ARIZONA_IM_HP2L_SC_POS_EINT2 0x0010 /* IM_HP2L_SC_POS_EINT2 */
  5920. #define ARIZONA_IM_HP2L_SC_POS_EINT2_MASK 0x0010 /* IM_HP2L_SC_POS_EINT2 */
  5921. #define ARIZONA_IM_HP2L_SC_POS_EINT2_SHIFT 4 /* IM_HP2L_SC_POS_EINT2 */
  5922. #define ARIZONA_IM_HP2L_SC_POS_EINT2_WIDTH 1 /* IM_HP2L_SC_POS_EINT2 */
  5923. #define ARIZONA_IM_HP1R_SC_NEG_EINT2 0x0008 /* IM_HP1R_SC_NEG_EINT2 */
  5924. #define ARIZONA_IM_HP1R_SC_NEG_EINT2_MASK 0x0008 /* IM_HP1R_SC_NEG_EINT2 */
  5925. #define ARIZONA_IM_HP1R_SC_NEG_EINT2_SHIFT 3 /* IM_HP1R_SC_NEG_EINT2 */
  5926. #define ARIZONA_IM_HP1R_SC_NEG_EINT2_WIDTH 1 /* IM_HP1R_SC_NEG_EINT2 */
  5927. #define ARIZONA_IM_HP1R_SC_POS_EINT2 0x0004 /* IM_HP1R_SC_POS_EINT2 */
  5928. #define ARIZONA_IM_HP1R_SC_POS_EINT2_MASK 0x0004 /* IM_HP1R_SC_POS_EINT2 */
  5929. #define ARIZONA_IM_HP1R_SC_POS_EINT2_SHIFT 2 /* IM_HP1R_SC_POS_EINT2 */
  5930. #define ARIZONA_IM_HP1R_SC_POS_EINT2_WIDTH 1 /* IM_HP1R_SC_POS_EINT2 */
  5931. #define ARIZONA_IM_HP1L_SC_NEG_EINT2 0x0002 /* IM_HP1L_SC_NEG_EINT2 */
  5932. #define ARIZONA_IM_HP1L_SC_NEG_EINT2_MASK 0x0002 /* IM_HP1L_SC_NEG_EINT2 */
  5933. #define ARIZONA_IM_HP1L_SC_NEG_EINT2_SHIFT 1 /* IM_HP1L_SC_NEG_EINT2 */
  5934. #define ARIZONA_IM_HP1L_SC_NEG_EINT2_WIDTH 1 /* IM_HP1L_SC_NEG_EINT2 */
  5935. #define ARIZONA_IM_HP1L_SC_POS_EINT2 0x0001 /* IM_HP1L_SC_POS_EINT2 */
  5936. #define ARIZONA_IM_HP1L_SC_POS_EINT2_MASK 0x0001 /* IM_HP1L_SC_POS_EINT2 */
  5937. #define ARIZONA_IM_HP1L_SC_POS_EINT2_SHIFT 0 /* IM_HP1L_SC_POS_EINT2 */
  5938. #define ARIZONA_IM_HP1L_SC_POS_EINT2_WIDTH 1 /* IM_HP1L_SC_POS_EINT2 */
  5939. /*
  5940. * R3359 (0xD1F) - IRQ2 Control
  5941. */
  5942. #define ARIZONA_IM_IRQ2 0x0001 /* IM_IRQ2 */
  5943. #define ARIZONA_IM_IRQ2_MASK 0x0001 /* IM_IRQ2 */
  5944. #define ARIZONA_IM_IRQ2_SHIFT 0 /* IM_IRQ2 */
  5945. #define ARIZONA_IM_IRQ2_WIDTH 1 /* IM_IRQ2 */
  5946. /*
  5947. * R3360 (0xD20) - Interrupt Raw Status 2
  5948. */
  5949. #define ARIZONA_DSP1_RAM_RDY_STS 0x0100 /* DSP1_RAM_RDY_STS */
  5950. #define ARIZONA_DSP1_RAM_RDY_STS_MASK 0x0100 /* DSP1_RAM_RDY_STS */
  5951. #define ARIZONA_DSP1_RAM_RDY_STS_SHIFT 8 /* DSP1_RAM_RDY_STS */
  5952. #define ARIZONA_DSP1_RAM_RDY_STS_WIDTH 1 /* DSP1_RAM_RDY_STS */
  5953. #define ARIZONA_DSP_IRQ2_STS 0x0002 /* DSP_IRQ2_STS */
  5954. #define ARIZONA_DSP_IRQ2_STS_MASK 0x0002 /* DSP_IRQ2_STS */
  5955. #define ARIZONA_DSP_IRQ2_STS_SHIFT 1 /* DSP_IRQ2_STS */
  5956. #define ARIZONA_DSP_IRQ2_STS_WIDTH 1 /* DSP_IRQ2_STS */
  5957. #define ARIZONA_DSP_IRQ1_STS 0x0001 /* DSP_IRQ1_STS */
  5958. #define ARIZONA_DSP_IRQ1_STS_MASK 0x0001 /* DSP_IRQ1_STS */
  5959. #define ARIZONA_DSP_IRQ1_STS_SHIFT 0 /* DSP_IRQ1_STS */
  5960. #define ARIZONA_DSP_IRQ1_STS_WIDTH 1 /* DSP_IRQ1_STS */
  5961. /*
  5962. * R3361 (0xD21) - Interrupt Raw Status 3
  5963. */
  5964. #define ARIZONA_SPK_OVERHEAT_WARN_STS 0x8000 /* SPK_OVERHEAT_WARN_STS */
  5965. #define ARIZONA_SPK_OVERHEAT_WARN_STS_MASK 0x8000 /* SPK_OVERHEAT_WARN_STS */
  5966. #define ARIZONA_SPK_OVERHEAT_WARN_STS_SHIFT 15 /* SPK_OVERHEAT_WARN_STS */
  5967. #define ARIZONA_SPK_OVERHEAT_WARN_STS_WIDTH 1 /* SPK_OVERHEAT_WARN_STS */
  5968. #define ARIZONA_SPK_OVERHEAT_STS 0x4000 /* SPK_OVERHEAT_STS */
  5969. #define ARIZONA_SPK_OVERHEAT_STS_MASK 0x4000 /* SPK_OVERHEAT_STS */
  5970. #define ARIZONA_SPK_OVERHEAT_STS_SHIFT 14 /* SPK_OVERHEAT_STS */
  5971. #define ARIZONA_SPK_OVERHEAT_STS_WIDTH 1 /* SPK_OVERHEAT_STS */
  5972. #define ARIZONA_HPDET_STS 0x2000 /* HPDET_STS */
  5973. #define ARIZONA_HPDET_STS_MASK 0x2000 /* HPDET_STS */
  5974. #define ARIZONA_HPDET_STS_SHIFT 13 /* HPDET_STS */
  5975. #define ARIZONA_HPDET_STS_WIDTH 1 /* HPDET_STS */
  5976. #define ARIZONA_MICDET_STS 0x1000 /* MICDET_STS */
  5977. #define ARIZONA_MICDET_STS_MASK 0x1000 /* MICDET_STS */
  5978. #define ARIZONA_MICDET_STS_SHIFT 12 /* MICDET_STS */
  5979. #define ARIZONA_MICDET_STS_WIDTH 1 /* MICDET_STS */
  5980. #define ARIZONA_WSEQ_DONE_STS 0x0800 /* WSEQ_DONE_STS */
  5981. #define ARIZONA_WSEQ_DONE_STS_MASK 0x0800 /* WSEQ_DONE_STS */
  5982. #define ARIZONA_WSEQ_DONE_STS_SHIFT 11 /* WSEQ_DONE_STS */
  5983. #define ARIZONA_WSEQ_DONE_STS_WIDTH 1 /* WSEQ_DONE_STS */
  5984. #define ARIZONA_DRC2_SIG_DET_STS 0x0400 /* DRC2_SIG_DET_STS */
  5985. #define ARIZONA_DRC2_SIG_DET_STS_MASK 0x0400 /* DRC2_SIG_DET_STS */
  5986. #define ARIZONA_DRC2_SIG_DET_STS_SHIFT 10 /* DRC2_SIG_DET_STS */
  5987. #define ARIZONA_DRC2_SIG_DET_STS_WIDTH 1 /* DRC2_SIG_DET_STS */
  5988. #define ARIZONA_DRC1_SIG_DET_STS 0x0200 /* DRC1_SIG_DET_STS */
  5989. #define ARIZONA_DRC1_SIG_DET_STS_MASK 0x0200 /* DRC1_SIG_DET_STS */
  5990. #define ARIZONA_DRC1_SIG_DET_STS_SHIFT 9 /* DRC1_SIG_DET_STS */
  5991. #define ARIZONA_DRC1_SIG_DET_STS_WIDTH 1 /* DRC1_SIG_DET_STS */
  5992. #define ARIZONA_ASRC2_LOCK_STS 0x0100 /* ASRC2_LOCK_STS */
  5993. #define ARIZONA_ASRC2_LOCK_STS_MASK 0x0100 /* ASRC2_LOCK_STS */
  5994. #define ARIZONA_ASRC2_LOCK_STS_SHIFT 8 /* ASRC2_LOCK_STS */
  5995. #define ARIZONA_ASRC2_LOCK_STS_WIDTH 1 /* ASRC2_LOCK_STS */
  5996. #define ARIZONA_ASRC1_LOCK_STS 0x0080 /* ASRC1_LOCK_STS */
  5997. #define ARIZONA_ASRC1_LOCK_STS_MASK 0x0080 /* ASRC1_LOCK_STS */
  5998. #define ARIZONA_ASRC1_LOCK_STS_SHIFT 7 /* ASRC1_LOCK_STS */
  5999. #define ARIZONA_ASRC1_LOCK_STS_WIDTH 1 /* ASRC1_LOCK_STS */
  6000. #define ARIZONA_UNDERCLOCKED_STS 0x0040 /* UNDERCLOCKED_STS */
  6001. #define ARIZONA_UNDERCLOCKED_STS_MASK 0x0040 /* UNDERCLOCKED_STS */
  6002. #define ARIZONA_UNDERCLOCKED_STS_SHIFT 6 /* UNDERCLOCKED_STS */
  6003. #define ARIZONA_UNDERCLOCKED_STS_WIDTH 1 /* UNDERCLOCKED_STS */
  6004. #define ARIZONA_OVERCLOCKED_STS 0x0020 /* OVERCLOCKED_STS */
  6005. #define ARIZONA_OVERCLOCKED_STS_MASK 0x0020 /* OVERCLOCKED_STS */
  6006. #define ARIZONA_OVERCLOCKED_STS_SHIFT 5 /* OVERCLOCKED_STS */
  6007. #define ARIZONA_OVERCLOCKED_STS_WIDTH 1 /* OVERCLOCKED_STS */
  6008. #define ARIZONA_FLL2_LOCK_STS 0x0008 /* FLL2_LOCK_STS */
  6009. #define ARIZONA_FLL2_LOCK_STS_MASK 0x0008 /* FLL2_LOCK_STS */
  6010. #define ARIZONA_FLL2_LOCK_STS_SHIFT 3 /* FLL2_LOCK_STS */
  6011. #define ARIZONA_FLL2_LOCK_STS_WIDTH 1 /* FLL2_LOCK_STS */
  6012. #define ARIZONA_FLL1_LOCK_STS 0x0004 /* FLL1_LOCK_STS */
  6013. #define ARIZONA_FLL1_LOCK_STS_MASK 0x0004 /* FLL1_LOCK_STS */
  6014. #define ARIZONA_FLL1_LOCK_STS_SHIFT 2 /* FLL1_LOCK_STS */
  6015. #define ARIZONA_FLL1_LOCK_STS_WIDTH 1 /* FLL1_LOCK_STS */
  6016. #define ARIZONA_CLKGEN_ERR_STS 0x0002 /* CLKGEN_ERR_STS */
  6017. #define ARIZONA_CLKGEN_ERR_STS_MASK 0x0002 /* CLKGEN_ERR_STS */
  6018. #define ARIZONA_CLKGEN_ERR_STS_SHIFT 1 /* CLKGEN_ERR_STS */
  6019. #define ARIZONA_CLKGEN_ERR_STS_WIDTH 1 /* CLKGEN_ERR_STS */
  6020. #define ARIZONA_CLKGEN_ERR_ASYNC_STS 0x0001 /* CLKGEN_ERR_ASYNC_STS */
  6021. #define ARIZONA_CLKGEN_ERR_ASYNC_STS_MASK 0x0001 /* CLKGEN_ERR_ASYNC_STS */
  6022. #define ARIZONA_CLKGEN_ERR_ASYNC_STS_SHIFT 0 /* CLKGEN_ERR_ASYNC_STS */
  6023. #define ARIZONA_CLKGEN_ERR_ASYNC_STS_WIDTH 1 /* CLKGEN_ERR_ASYNC_STS */
  6024. /*
  6025. * R3362 (0xD22) - Interrupt Raw Status 4
  6026. */
  6027. #define ARIZONA_ASRC_CFG_ERR_STS 0x8000 /* ASRC_CFG_ERR_STS */
  6028. #define ARIZONA_ASRC_CFG_ERR_STS_MASK 0x8000 /* ASRC_CFG_ERR_STS */
  6029. #define ARIZONA_ASRC_CFG_ERR_STS_SHIFT 15 /* ASRC_CFG_ERR_STS */
  6030. #define ARIZONA_ASRC_CFG_ERR_STS_WIDTH 1 /* ASRC_CFG_ERR_STS */
  6031. #define ARIZONA_AIF3_ERR_STS 0x4000 /* AIF3_ERR_STS */
  6032. #define ARIZONA_AIF3_ERR_STS_MASK 0x4000 /* AIF3_ERR_STS */
  6033. #define ARIZONA_AIF3_ERR_STS_SHIFT 14 /* AIF3_ERR_STS */
  6034. #define ARIZONA_AIF3_ERR_STS_WIDTH 1 /* AIF3_ERR_STS */
  6035. #define ARIZONA_AIF2_ERR_STS 0x2000 /* AIF2_ERR_STS */
  6036. #define ARIZONA_AIF2_ERR_STS_MASK 0x2000 /* AIF2_ERR_STS */
  6037. #define ARIZONA_AIF2_ERR_STS_SHIFT 13 /* AIF2_ERR_STS */
  6038. #define ARIZONA_AIF2_ERR_STS_WIDTH 1 /* AIF2_ERR_STS */
  6039. #define ARIZONA_AIF1_ERR_STS 0x1000 /* AIF1_ERR_STS */
  6040. #define ARIZONA_AIF1_ERR_STS_MASK 0x1000 /* AIF1_ERR_STS */
  6041. #define ARIZONA_AIF1_ERR_STS_SHIFT 12 /* AIF1_ERR_STS */
  6042. #define ARIZONA_AIF1_ERR_STS_WIDTH 1 /* AIF1_ERR_STS */
  6043. #define ARIZONA_CTRLIF_ERR_STS 0x0800 /* CTRLIF_ERR_STS */
  6044. #define ARIZONA_CTRLIF_ERR_STS_MASK 0x0800 /* CTRLIF_ERR_STS */
  6045. #define ARIZONA_CTRLIF_ERR_STS_SHIFT 11 /* CTRLIF_ERR_STS */
  6046. #define ARIZONA_CTRLIF_ERR_STS_WIDTH 1 /* CTRLIF_ERR_STS */
  6047. #define ARIZONA_MIXER_DROPPED_SAMPLE_STS 0x0400 /* MIXER_DROPPED_SAMPLE_STS */
  6048. #define ARIZONA_MIXER_DROPPED_SAMPLE_STS_MASK 0x0400 /* MIXER_DROPPED_SAMPLE_STS */
  6049. #define ARIZONA_MIXER_DROPPED_SAMPLE_STS_SHIFT 10 /* MIXER_DROPPED_SAMPLE_STS */
  6050. #define ARIZONA_MIXER_DROPPED_SAMPLE_STS_WIDTH 1 /* MIXER_DROPPED_SAMPLE_STS */
  6051. #define ARIZONA_ASYNC_CLK_ENA_LOW_STS 0x0200 /* ASYNC_CLK_ENA_LOW_STS */
  6052. #define ARIZONA_ASYNC_CLK_ENA_LOW_STS_MASK 0x0200 /* ASYNC_CLK_ENA_LOW_STS */
  6053. #define ARIZONA_ASYNC_CLK_ENA_LOW_STS_SHIFT 9 /* ASYNC_CLK_ENA_LOW_STS */
  6054. #define ARIZONA_ASYNC_CLK_ENA_LOW_STS_WIDTH 1 /* ASYNC_CLK_ENA_LOW_STS */
  6055. #define ARIZONA_SYSCLK_ENA_LOW_STS 0x0100 /* SYSCLK_ENA_LOW_STS */
  6056. #define ARIZONA_SYSCLK_ENA_LOW_STS_MASK 0x0100 /* SYSCLK_ENA_LOW_STS */
  6057. #define ARIZONA_SYSCLK_ENA_LOW_STS_SHIFT 8 /* SYSCLK_ENA_LOW_STS */
  6058. #define ARIZONA_SYSCLK_ENA_LOW_STS_WIDTH 1 /* SYSCLK_ENA_LOW_STS */
  6059. #define ARIZONA_ISRC1_CFG_ERR_STS 0x0080 /* ISRC1_CFG_ERR_STS */
  6060. #define ARIZONA_ISRC1_CFG_ERR_STS_MASK 0x0080 /* ISRC1_CFG_ERR_STS */
  6061. #define ARIZONA_ISRC1_CFG_ERR_STS_SHIFT 7 /* ISRC1_CFG_ERR_STS */
  6062. #define ARIZONA_ISRC1_CFG_ERR_STS_WIDTH 1 /* ISRC1_CFG_ERR_STS */
  6063. #define ARIZONA_ISRC2_CFG_ERR_STS 0x0040 /* ISRC2_CFG_ERR_STS */
  6064. #define ARIZONA_ISRC2_CFG_ERR_STS_MASK 0x0040 /* ISRC2_CFG_ERR_STS */
  6065. #define ARIZONA_ISRC2_CFG_ERR_STS_SHIFT 6 /* ISRC2_CFG_ERR_STS */
  6066. #define ARIZONA_ISRC2_CFG_ERR_STS_WIDTH 1 /* ISRC2_CFG_ERR_STS */
  6067. #define ARIZONA_HP3R_DONE_STS 0x0020 /* HP3R_DONE_STS */
  6068. #define ARIZONA_HP3R_DONE_STS_MASK 0x0020 /* HP3R_DONE_STS */
  6069. #define ARIZONA_HP3R_DONE_STS_SHIFT 5 /* HP3R_DONE_STS */
  6070. #define ARIZONA_HP3R_DONE_STS_WIDTH 1 /* HP3R_DONE_STS */
  6071. #define ARIZONA_HP3L_DONE_STS 0x0010 /* HP3L_DONE_STS */
  6072. #define ARIZONA_HP3L_DONE_STS_MASK 0x0010 /* HP3L_DONE_STS */
  6073. #define ARIZONA_HP3L_DONE_STS_SHIFT 4 /* HP3L_DONE_STS */
  6074. #define ARIZONA_HP3L_DONE_STS_WIDTH 1 /* HP3L_DONE_STS */
  6075. #define ARIZONA_HP2R_DONE_STS 0x0008 /* HP2R_DONE_STS */
  6076. #define ARIZONA_HP2R_DONE_STS_MASK 0x0008 /* HP2R_DONE_STS */
  6077. #define ARIZONA_HP2R_DONE_STS_SHIFT 3 /* HP2R_DONE_STS */
  6078. #define ARIZONA_HP2R_DONE_STS_WIDTH 1 /* HP2R_DONE_STS */
  6079. #define ARIZONA_HP2L_DONE_STS 0x0004 /* HP2L_DONE_STS */
  6080. #define ARIZONA_HP2L_DONE_STS_MASK 0x0004 /* HP2L_DONE_STS */
  6081. #define ARIZONA_HP2L_DONE_STS_SHIFT 2 /* HP2L_DONE_STS */
  6082. #define ARIZONA_HP2L_DONE_STS_WIDTH 1 /* HP2L_DONE_STS */
  6083. #define ARIZONA_HP1R_DONE_STS 0x0002 /* HP1R_DONE_STS */
  6084. #define ARIZONA_HP1R_DONE_STS_MASK 0x0002 /* HP1R_DONE_STS */
  6085. #define ARIZONA_HP1R_DONE_STS_SHIFT 1 /* HP1R_DONE_STS */
  6086. #define ARIZONA_HP1R_DONE_STS_WIDTH 1 /* HP1R_DONE_STS */
  6087. #define ARIZONA_HP1L_DONE_STS 0x0001 /* HP1L_DONE_STS */
  6088. #define ARIZONA_HP1L_DONE_STS_MASK 0x0001 /* HP1L_DONE_STS */
  6089. #define ARIZONA_HP1L_DONE_STS_SHIFT 0 /* HP1L_DONE_STS */
  6090. #define ARIZONA_HP1L_DONE_STS_WIDTH 1 /* HP1L_DONE_STS */
  6091. /*
  6092. * R3363 (0xD23) - Interrupt Raw Status 5
  6093. */
  6094. #define ARIZONA_BOOT_DONE_STS 0x0100 /* BOOT_DONE_STS */
  6095. #define ARIZONA_BOOT_DONE_STS_MASK 0x0100 /* BOOT_DONE_STS */
  6096. #define ARIZONA_BOOT_DONE_STS_SHIFT 8 /* BOOT_DONE_STS */
  6097. #define ARIZONA_BOOT_DONE_STS_WIDTH 1 /* BOOT_DONE_STS */
  6098. #define ARIZONA_DCS_DAC_DONE_STS 0x0080 /* DCS_DAC_DONE_STS */
  6099. #define ARIZONA_DCS_DAC_DONE_STS_MASK 0x0080 /* DCS_DAC_DONE_STS */
  6100. #define ARIZONA_DCS_DAC_DONE_STS_SHIFT 7 /* DCS_DAC_DONE_STS */
  6101. #define ARIZONA_DCS_DAC_DONE_STS_WIDTH 1 /* DCS_DAC_DONE_STS */
  6102. #define ARIZONA_DCS_HP_DONE_STS 0x0040 /* DCS_HP_DONE_STS */
  6103. #define ARIZONA_DCS_HP_DONE_STS_MASK 0x0040 /* DCS_HP_DONE_STS */
  6104. #define ARIZONA_DCS_HP_DONE_STS_SHIFT 6 /* DCS_HP_DONE_STS */
  6105. #define ARIZONA_DCS_HP_DONE_STS_WIDTH 1 /* DCS_HP_DONE_STS */
  6106. #define ARIZONA_FLL2_CLOCK_OK_STS 0x0002 /* FLL2_CLOCK_OK_STS */
  6107. #define ARIZONA_FLL2_CLOCK_OK_STS_MASK 0x0002 /* FLL2_CLOCK_OK_STS */
  6108. #define ARIZONA_FLL2_CLOCK_OK_STS_SHIFT 1 /* FLL2_CLOCK_OK_STS */
  6109. #define ARIZONA_FLL2_CLOCK_OK_STS_WIDTH 1 /* FLL2_CLOCK_OK_STS */
  6110. #define ARIZONA_FLL1_CLOCK_OK_STS 0x0001 /* FLL1_CLOCK_OK_STS */
  6111. #define ARIZONA_FLL1_CLOCK_OK_STS_MASK 0x0001 /* FLL1_CLOCK_OK_STS */
  6112. #define ARIZONA_FLL1_CLOCK_OK_STS_SHIFT 0 /* FLL1_CLOCK_OK_STS */
  6113. #define ARIZONA_FLL1_CLOCK_OK_STS_WIDTH 1 /* FLL1_CLOCK_OK_STS */
  6114. /*
  6115. * R3364 (0xD24) - Interrupt Raw Status 6
  6116. */
  6117. #define ARIZONA_PWM_OVERCLOCKED_STS 0x2000 /* PWM_OVERCLOCKED_STS */
  6118. #define ARIZONA_PWM_OVERCLOCKED_STS_MASK 0x2000 /* PWM_OVERCLOCKED_STS */
  6119. #define ARIZONA_PWM_OVERCLOCKED_STS_SHIFT 13 /* PWM_OVERCLOCKED_STS */
  6120. #define ARIZONA_PWM_OVERCLOCKED_STS_WIDTH 1 /* PWM_OVERCLOCKED_STS */
  6121. #define ARIZONA_FX_CORE_OVERCLOCKED_STS 0x1000 /* FX_CORE_OVERCLOCKED_STS */
  6122. #define ARIZONA_FX_CORE_OVERCLOCKED_STS_MASK 0x1000 /* FX_CORE_OVERCLOCKED_STS */
  6123. #define ARIZONA_FX_CORE_OVERCLOCKED_STS_SHIFT 12 /* FX_CORE_OVERCLOCKED_STS */
  6124. #define ARIZONA_FX_CORE_OVERCLOCKED_STS_WIDTH 1 /* FX_CORE_OVERCLOCKED_STS */
  6125. #define ARIZONA_DAC_SYS_OVERCLOCKED_STS 0x0400 /* DAC_SYS_OVERCLOCKED_STS */
  6126. #define ARIZONA_DAC_SYS_OVERCLOCKED_STS_MASK 0x0400 /* DAC_SYS_OVERCLOCKED_STS */
  6127. #define ARIZONA_DAC_SYS_OVERCLOCKED_STS_SHIFT 10 /* DAC_SYS_OVERCLOCKED_STS */
  6128. #define ARIZONA_DAC_SYS_OVERCLOCKED_STS_WIDTH 1 /* DAC_SYS_OVERCLOCKED_STS */
  6129. #define ARIZONA_DAC_WARP_OVERCLOCKED_STS 0x0200 /* DAC_WARP_OVERCLOCKED_STS */
  6130. #define ARIZONA_DAC_WARP_OVERCLOCKED_STS_MASK 0x0200 /* DAC_WARP_OVERCLOCKED_STS */
  6131. #define ARIZONA_DAC_WARP_OVERCLOCKED_STS_SHIFT 9 /* DAC_WARP_OVERCLOCKED_STS */
  6132. #define ARIZONA_DAC_WARP_OVERCLOCKED_STS_WIDTH 1 /* DAC_WARP_OVERCLOCKED_STS */
  6133. #define ARIZONA_ADC_OVERCLOCKED_STS 0x0100 /* ADC_OVERCLOCKED_STS */
  6134. #define ARIZONA_ADC_OVERCLOCKED_STS_MASK 0x0100 /* ADC_OVERCLOCKED_STS */
  6135. #define ARIZONA_ADC_OVERCLOCKED_STS_SHIFT 8 /* ADC_OVERCLOCKED_STS */
  6136. #define ARIZONA_ADC_OVERCLOCKED_STS_WIDTH 1 /* ADC_OVERCLOCKED_STS */
  6137. #define ARIZONA_MIXER_OVERCLOCKED_STS 0x0080 /* MIXER_OVERCLOCKED_STS */
  6138. #define ARIZONA_MIXER_OVERCLOCKED_STS_MASK 0x0080 /* MIXER_OVERCLOCKED_STS */
  6139. #define ARIZONA_MIXER_OVERCLOCKED_STS_SHIFT 7 /* MIXER_OVERCLOCKED_STS */
  6140. #define ARIZONA_MIXER_OVERCLOCKED_STS_WIDTH 1 /* MIXER_OVERCLOCKED_STS */
  6141. #define ARIZONA_AIF3_ASYNC_OVERCLOCKED_STS 0x0040 /* AIF3_ASYNC_OVERCLOCKED_STS */
  6142. #define ARIZONA_AIF3_ASYNC_OVERCLOCKED_STS_MASK 0x0040 /* AIF3_ASYNC_OVERCLOCKED_STS */
  6143. #define ARIZONA_AIF3_ASYNC_OVERCLOCKED_STS_SHIFT 6 /* AIF3_ASYNC_OVERCLOCKED_STS */
  6144. #define ARIZONA_AIF3_ASYNC_OVERCLOCKED_STS_WIDTH 1 /* AIF3_ASYNC_OVERCLOCKED_STS */
  6145. #define ARIZONA_AIF2_ASYNC_OVERCLOCKED_STS 0x0020 /* AIF2_ASYNC_OVERCLOCKED_STS */
  6146. #define ARIZONA_AIF2_ASYNC_OVERCLOCKED_STS_MASK 0x0020 /* AIF2_ASYNC_OVERCLOCKED_STS */
  6147. #define ARIZONA_AIF2_ASYNC_OVERCLOCKED_STS_SHIFT 5 /* AIF2_ASYNC_OVERCLOCKED_STS */
  6148. #define ARIZONA_AIF2_ASYNC_OVERCLOCKED_STS_WIDTH 1 /* AIF2_ASYNC_OVERCLOCKED_STS */
  6149. #define ARIZONA_AIF1_ASYNC_OVERCLOCKED_STS 0x0010 /* AIF1_ASYNC_OVERCLOCKED_STS */
  6150. #define ARIZONA_AIF1_ASYNC_OVERCLOCKED_STS_MASK 0x0010 /* AIF1_ASYNC_OVERCLOCKED_STS */
  6151. #define ARIZONA_AIF1_ASYNC_OVERCLOCKED_STS_SHIFT 4 /* AIF1_ASYNC_OVERCLOCKED_STS */
  6152. #define ARIZONA_AIF1_ASYNC_OVERCLOCKED_STS_WIDTH 1 /* AIF1_ASYNC_OVERCLOCKED_STS */
  6153. #define ARIZONA_AIF3_SYNC_OVERCLOCKED_STS 0x0008 /* AIF3_SYNC_OVERCLOCKED_STS */
  6154. #define ARIZONA_AIF3_SYNC_OVERCLOCKED_STS_MASK 0x0008 /* AIF3_SYNC_OVERCLOCKED_STS */
  6155. #define ARIZONA_AIF3_SYNC_OVERCLOCKED_STS_SHIFT 3 /* AIF3_SYNC_OVERCLOCKED_STS */
  6156. #define ARIZONA_AIF3_SYNC_OVERCLOCKED_STS_WIDTH 1 /* AIF3_SYNC_OVERCLOCKED_STS */
  6157. #define ARIZONA_AIF2_SYNC_OVERCLOCKED_STS 0x0004 /* AIF2_SYNC_OVERCLOCKED_STS */
  6158. #define ARIZONA_AIF2_SYNC_OVERCLOCKED_STS_MASK 0x0004 /* AIF2_SYNC_OVERCLOCKED_STS */
  6159. #define ARIZONA_AIF2_SYNC_OVERCLOCKED_STS_SHIFT 2 /* AIF2_SYNC_OVERCLOCKED_STS */
  6160. #define ARIZONA_AIF2_SYNC_OVERCLOCKED_STS_WIDTH 1 /* AIF2_SYNC_OVERCLOCKED_STS */
  6161. #define ARIZONA_AIF1_SYNC_OVERCLOCKED_STS 0x0002 /* AIF1_SYNC_OVERCLOCKED_STS */
  6162. #define ARIZONA_AIF1_SYNC_OVERCLOCKED_STS_MASK 0x0002 /* AIF1_SYNC_OVERCLOCKED_STS */
  6163. #define ARIZONA_AIF1_SYNC_OVERCLOCKED_STS_SHIFT 1 /* AIF1_SYNC_OVERCLOCKED_STS */
  6164. #define ARIZONA_AIF1_SYNC_OVERCLOCKED_STS_WIDTH 1 /* AIF1_SYNC_OVERCLOCKED_STS */
  6165. #define ARIZONA_PAD_CTRL_OVERCLOCKED_STS 0x0001 /* PAD_CTRL_OVERCLOCKED_STS */
  6166. #define ARIZONA_PAD_CTRL_OVERCLOCKED_STS_MASK 0x0001 /* PAD_CTRL_OVERCLOCKED_STS */
  6167. #define ARIZONA_PAD_CTRL_OVERCLOCKED_STS_SHIFT 0 /* PAD_CTRL_OVERCLOCKED_STS */
  6168. #define ARIZONA_PAD_CTRL_OVERCLOCKED_STS_WIDTH 1 /* PAD_CTRL_OVERCLOCKED_STS */
  6169. /*
  6170. * R3365 (0xD25) - Interrupt Raw Status 7
  6171. */
  6172. #define ARIZONA_SLIMBUS_SUBSYS_OVERCLOCKED_STS 0x8000 /* SLIMBUS_SUBSYS_OVERCLOCKED_STS */
  6173. #define ARIZONA_SLIMBUS_SUBSYS_OVERCLOCKED_STS_MASK 0x8000 /* SLIMBUS_SUBSYS_OVERCLOCKED_STS */
  6174. #define ARIZONA_SLIMBUS_SUBSYS_OVERCLOCKED_STS_SHIFT 15 /* SLIMBUS_SUBSYS_OVERCLOCKED_STS */
  6175. #define ARIZONA_SLIMBUS_SUBSYS_OVERCLOCKED_STS_WIDTH 1 /* SLIMBUS_SUBSYS_OVERCLOCKED_STS */
  6176. #define ARIZONA_SLIMBUS_ASYNC_OVERCLOCKED_STS 0x4000 /* SLIMBUS_ASYNC_OVERCLOCKED_STS */
  6177. #define ARIZONA_SLIMBUS_ASYNC_OVERCLOCKED_STS_MASK 0x4000 /* SLIMBUS_ASYNC_OVERCLOCKED_STS */
  6178. #define ARIZONA_SLIMBUS_ASYNC_OVERCLOCKED_STS_SHIFT 14 /* SLIMBUS_ASYNC_OVERCLOCKED_STS */
  6179. #define ARIZONA_SLIMBUS_ASYNC_OVERCLOCKED_STS_WIDTH 1 /* SLIMBUS_ASYNC_OVERCLOCKED_STS */
  6180. #define ARIZONA_SLIMBUS_SYNC_OVERCLOCKED_STS 0x2000 /* SLIMBUS_SYNC_OVERCLOCKED_STS */
  6181. #define ARIZONA_SLIMBUS_SYNC_OVERCLOCKED_STS_MASK 0x2000 /* SLIMBUS_SYNC_OVERCLOCKED_STS */
  6182. #define ARIZONA_SLIMBUS_SYNC_OVERCLOCKED_STS_SHIFT 13 /* SLIMBUS_SYNC_OVERCLOCKED_STS */
  6183. #define ARIZONA_SLIMBUS_SYNC_OVERCLOCKED_STS_WIDTH 1 /* SLIMBUS_SYNC_OVERCLOCKED_STS */
  6184. #define ARIZONA_ASRC_ASYNC_SYS_OVERCLOCKED_STS 0x1000 /* ASRC_ASYNC_SYS_OVERCLOCKED_STS */
  6185. #define ARIZONA_ASRC_ASYNC_SYS_OVERCLOCKED_STS_MASK 0x1000 /* ASRC_ASYNC_SYS_OVERCLOCKED_STS */
  6186. #define ARIZONA_ASRC_ASYNC_SYS_OVERCLOCKED_STS_SHIFT 12 /* ASRC_ASYNC_SYS_OVERCLOCKED_STS */
  6187. #define ARIZONA_ASRC_ASYNC_SYS_OVERCLOCKED_STS_WIDTH 1 /* ASRC_ASYNC_SYS_OVERCLOCKED_STS */
  6188. #define ARIZONA_ASRC_ASYNC_WARP_OVERCLOCKED_STS 0x0800 /* ASRC_ASYNC_WARP_OVERCLOCKED_STS */
  6189. #define ARIZONA_ASRC_ASYNC_WARP_OVERCLOCKED_STS_MASK 0x0800 /* ASRC_ASYNC_WARP_OVERCLOCKED_STS */
  6190. #define ARIZONA_ASRC_ASYNC_WARP_OVERCLOCKED_STS_SHIFT 11 /* ASRC_ASYNC_WARP_OVERCLOCKED_STS */
  6191. #define ARIZONA_ASRC_ASYNC_WARP_OVERCLOCKED_STS_WIDTH 1 /* ASRC_ASYNC_WARP_OVERCLOCKED_STS */
  6192. #define ARIZONA_ASRC_SYNC_SYS_OVERCLOCKED_STS 0x0400 /* ASRC_SYNC_SYS_OVERCLOCKED_STS */
  6193. #define ARIZONA_ASRC_SYNC_SYS_OVERCLOCKED_STS_MASK 0x0400 /* ASRC_SYNC_SYS_OVERCLOCKED_STS */
  6194. #define ARIZONA_ASRC_SYNC_SYS_OVERCLOCKED_STS_SHIFT 10 /* ASRC_SYNC_SYS_OVERCLOCKED_STS */
  6195. #define ARIZONA_ASRC_SYNC_SYS_OVERCLOCKED_STS_WIDTH 1 /* ASRC_SYNC_SYS_OVERCLOCKED_STS */
  6196. #define ARIZONA_ASRC_SYNC_WARP_OVERCLOCKED_STS 0x0200 /* ASRC_SYNC_WARP_OVERCLOCKED_STS */
  6197. #define ARIZONA_ASRC_SYNC_WARP_OVERCLOCKED_STS_MASK 0x0200 /* ASRC_SYNC_WARP_OVERCLOCKED_STS */
  6198. #define ARIZONA_ASRC_SYNC_WARP_OVERCLOCKED_STS_SHIFT 9 /* ASRC_SYNC_WARP_OVERCLOCKED_STS */
  6199. #define ARIZONA_ASRC_SYNC_WARP_OVERCLOCKED_STS_WIDTH 1 /* ASRC_SYNC_WARP_OVERCLOCKED_STS */
  6200. #define ARIZONA_ADSP2_1_OVERCLOCKED_STS 0x0008 /* ADSP2_1_OVERCLOCKED_STS */
  6201. #define ARIZONA_ADSP2_1_OVERCLOCKED_STS_MASK 0x0008 /* ADSP2_1_OVERCLOCKED_STS */
  6202. #define ARIZONA_ADSP2_1_OVERCLOCKED_STS_SHIFT 3 /* ADSP2_1_OVERCLOCKED_STS */
  6203. #define ARIZONA_ADSP2_1_OVERCLOCKED_STS_WIDTH 1 /* ADSP2_1_OVERCLOCKED_STS */
  6204. #define ARIZONA_ISRC3_OVERCLOCKED_STS 0x0004 /* ISRC3_OVERCLOCKED_STS */
  6205. #define ARIZONA_ISRC3_OVERCLOCKED_STS_MASK 0x0004 /* ISRC3_OVERCLOCKED_STS */
  6206. #define ARIZONA_ISRC3_OVERCLOCKED_STS_SHIFT 2 /* ISRC3_OVERCLOCKED_STS */
  6207. #define ARIZONA_ISRC3_OVERCLOCKED_STS_WIDTH 1 /* ISRC3_OVERCLOCKED_STS */
  6208. #define ARIZONA_ISRC2_OVERCLOCKED_STS 0x0002 /* ISRC2_OVERCLOCKED_STS */
  6209. #define ARIZONA_ISRC2_OVERCLOCKED_STS_MASK 0x0002 /* ISRC2_OVERCLOCKED_STS */
  6210. #define ARIZONA_ISRC2_OVERCLOCKED_STS_SHIFT 1 /* ISRC2_OVERCLOCKED_STS */
  6211. #define ARIZONA_ISRC2_OVERCLOCKED_STS_WIDTH 1 /* ISRC2_OVERCLOCKED_STS */
  6212. #define ARIZONA_ISRC1_OVERCLOCKED_STS 0x0001 /* ISRC1_OVERCLOCKED_STS */
  6213. #define ARIZONA_ISRC1_OVERCLOCKED_STS_MASK 0x0001 /* ISRC1_OVERCLOCKED_STS */
  6214. #define ARIZONA_ISRC1_OVERCLOCKED_STS_SHIFT 0 /* ISRC1_OVERCLOCKED_STS */
  6215. #define ARIZONA_ISRC1_OVERCLOCKED_STS_WIDTH 1 /* ISRC1_OVERCLOCKED_STS */
  6216. /*
  6217. * R3366 (0xD26) - Interrupt Raw Status 8
  6218. */
  6219. #define ARIZONA_SPDIF_OVERCLOCKED_STS 0x8000 /* SPDIF_OVERCLOCKED_STS */
  6220. #define ARIZONA_SPDIF_OVERCLOCKED_STS_MASK 0x8000 /* SPDIF_OVERCLOCKED_STS */
  6221. #define ARIZONA_SPDIF_OVERCLOCKED_STS_SHIFT 15 /* SPDIF_OVERCLOCKED_STS */
  6222. #define ARIZONA_SPDIF_OVERCLOCKED_STS_WIDTH 1 /* SPDIF_OVERCLOCKED_STS */
  6223. #define ARIZONA_AIF3_UNDERCLOCKED_STS 0x0400 /* AIF3_UNDERCLOCKED_STS */
  6224. #define ARIZONA_AIF3_UNDERCLOCKED_STS_MASK 0x0400 /* AIF3_UNDERCLOCKED_STS */
  6225. #define ARIZONA_AIF3_UNDERCLOCKED_STS_SHIFT 10 /* AIF3_UNDERCLOCKED_STS */
  6226. #define ARIZONA_AIF3_UNDERCLOCKED_STS_WIDTH 1 /* AIF3_UNDERCLOCKED_STS */
  6227. #define ARIZONA_AIF2_UNDERCLOCKED_STS 0x0200 /* AIF2_UNDERCLOCKED_STS */
  6228. #define ARIZONA_AIF2_UNDERCLOCKED_STS_MASK 0x0200 /* AIF2_UNDERCLOCKED_STS */
  6229. #define ARIZONA_AIF2_UNDERCLOCKED_STS_SHIFT 9 /* AIF2_UNDERCLOCKED_STS */
  6230. #define ARIZONA_AIF2_UNDERCLOCKED_STS_WIDTH 1 /* AIF2_UNDERCLOCKED_STS */
  6231. #define ARIZONA_AIF1_UNDERCLOCKED_STS 0x0100 /* AIF1_UNDERCLOCKED_STS */
  6232. #define ARIZONA_AIF1_UNDERCLOCKED_STS_MASK 0x0100 /* AIF1_UNDERCLOCKED_STS */
  6233. #define ARIZONA_AIF1_UNDERCLOCKED_STS_SHIFT 8 /* AIF1_UNDERCLOCKED_STS */
  6234. #define ARIZONA_AIF1_UNDERCLOCKED_STS_WIDTH 1 /* AIF1_UNDERCLOCKED_STS */
  6235. #define ARIZONA_ISRC3_UNDERCLOCKED_STS 0x0080 /* ISRC3_UNDERCLOCKED_STS */
  6236. #define ARIZONA_ISRC3_UNDERCLOCKED_STS_MASK 0x0080 /* ISRC3_UNDERCLOCKED_STS */
  6237. #define ARIZONA_ISRC3_UNDERCLOCKED_STS_SHIFT 7 /* ISRC3_UNDERCLOCKED_STS */
  6238. #define ARIZONA_ISRC3_UNDERCLOCKED_STS_WIDTH 1 /* ISRC3_UNDERCLOCKED_STS */
  6239. #define ARIZONA_ISRC2_UNDERCLOCKED_STS 0x0040 /* ISRC2_UNDERCLOCKED_STS */
  6240. #define ARIZONA_ISRC2_UNDERCLOCKED_STS_MASK 0x0040 /* ISRC2_UNDERCLOCKED_STS */
  6241. #define ARIZONA_ISRC2_UNDERCLOCKED_STS_SHIFT 6 /* ISRC2_UNDERCLOCKED_STS */
  6242. #define ARIZONA_ISRC2_UNDERCLOCKED_STS_WIDTH 1 /* ISRC2_UNDERCLOCKED_STS */
  6243. #define ARIZONA_ISRC1_UNDERCLOCKED_STS 0x0020 /* ISRC1_UNDERCLOCKED_STS */
  6244. #define ARIZONA_ISRC1_UNDERCLOCKED_STS_MASK 0x0020 /* ISRC1_UNDERCLOCKED_STS */
  6245. #define ARIZONA_ISRC1_UNDERCLOCKED_STS_SHIFT 5 /* ISRC1_UNDERCLOCKED_STS */
  6246. #define ARIZONA_ISRC1_UNDERCLOCKED_STS_WIDTH 1 /* ISRC1_UNDERCLOCKED_STS */
  6247. #define ARIZONA_FX_UNDERCLOCKED_STS 0x0010 /* FX_UNDERCLOCKED_STS */
  6248. #define ARIZONA_FX_UNDERCLOCKED_STS_MASK 0x0010 /* FX_UNDERCLOCKED_STS */
  6249. #define ARIZONA_FX_UNDERCLOCKED_STS_SHIFT 4 /* FX_UNDERCLOCKED_STS */
  6250. #define ARIZONA_FX_UNDERCLOCKED_STS_WIDTH 1 /* FX_UNDERCLOCKED_STS */
  6251. #define ARIZONA_ASRC_UNDERCLOCKED_STS 0x0008 /* ASRC_UNDERCLOCKED_STS */
  6252. #define ARIZONA_ASRC_UNDERCLOCKED_STS_MASK 0x0008 /* ASRC_UNDERCLOCKED_STS */
  6253. #define ARIZONA_ASRC_UNDERCLOCKED_STS_SHIFT 3 /* ASRC_UNDERCLOCKED_STS */
  6254. #define ARIZONA_ASRC_UNDERCLOCKED_STS_WIDTH 1 /* ASRC_UNDERCLOCKED_STS */
  6255. #define ARIZONA_DAC_UNDERCLOCKED_STS 0x0004 /* DAC_UNDERCLOCKED_STS */
  6256. #define ARIZONA_DAC_UNDERCLOCKED_STS_MASK 0x0004 /* DAC_UNDERCLOCKED_STS */
  6257. #define ARIZONA_DAC_UNDERCLOCKED_STS_SHIFT 2 /* DAC_UNDERCLOCKED_STS */
  6258. #define ARIZONA_DAC_UNDERCLOCKED_STS_WIDTH 1 /* DAC_UNDERCLOCKED_STS */
  6259. #define ARIZONA_ADC_UNDERCLOCKED_STS 0x0002 /* ADC_UNDERCLOCKED_STS */
  6260. #define ARIZONA_ADC_UNDERCLOCKED_STS_MASK 0x0002 /* ADC_UNDERCLOCKED_STS */
  6261. #define ARIZONA_ADC_UNDERCLOCKED_STS_SHIFT 1 /* ADC_UNDERCLOCKED_STS */
  6262. #define ARIZONA_ADC_UNDERCLOCKED_STS_WIDTH 1 /* ADC_UNDERCLOCKED_STS */
  6263. #define ARIZONA_MIXER_UNDERCLOCKED_STS 0x0001 /* MIXER_UNDERCLOCKED_STS */
  6264. #define ARIZONA_MIXER_UNDERCLOCKED_STS_MASK 0x0001 /* MIXER_UNDERCLOCKED_STS */
  6265. #define ARIZONA_MIXER_UNDERCLOCKED_STS_SHIFT 0 /* MIXER_UNDERCLOCKED_STS */
  6266. #define ARIZONA_MIXER_UNDERCLOCKED_STS_WIDTH 1 /* MIXER_UNDERCLOCKED_STS */
  6267. /*
  6268. * R3368 (0xD28) - Interrupt Raw Status 9
  6269. */
  6270. #define ARIZONA_DSP_SHARED_WR_COLL_STS 0x8000 /* DSP_SHARED_WR_COLL_STS */
  6271. #define ARIZONA_DSP_SHARED_WR_COLL_STS_MASK 0x8000 /* DSP_SHARED_WR_COLL_STS */
  6272. #define ARIZONA_DSP_SHARED_WR_COLL_STS_SHIFT 15 /* DSP_SHARED_WR_COLL_STS */
  6273. #define ARIZONA_DSP_SHARED_WR_COLL_STS_WIDTH 1 /* DSP_SHARED_WR_COLL_STS */
  6274. #define ARIZONA_SPK_SHUTDOWN_STS 0x4000 /* SPK_SHUTDOWN_STS */
  6275. #define ARIZONA_SPK_SHUTDOWN_STS_MASK 0x4000 /* SPK_SHUTDOWN_STS */
  6276. #define ARIZONA_SPK_SHUTDOWN_STS_SHIFT 14 /* SPK_SHUTDOWN_STS */
  6277. #define ARIZONA_SPK_SHUTDOWN_STS_WIDTH 1 /* SPK_SHUTDOWN_STS */
  6278. #define ARIZONA_SPK1R_SHORT_STS 0x2000 /* SPK1R_SHORT_STS */
  6279. #define ARIZONA_SPK1R_SHORT_STS_MASK 0x2000 /* SPK1R_SHORT_STS */
  6280. #define ARIZONA_SPK1R_SHORT_STS_SHIFT 13 /* SPK1R_SHORT_STS */
  6281. #define ARIZONA_SPK1R_SHORT_STS_WIDTH 1 /* SPK1R_SHORT_STS */
  6282. #define ARIZONA_SPK1L_SHORT_STS 0x1000 /* SPK1L_SHORT_STS */
  6283. #define ARIZONA_SPK1L_SHORT_STS_MASK 0x1000 /* SPK1L_SHORT_STS */
  6284. #define ARIZONA_SPK1L_SHORT_STS_SHIFT 12 /* SPK1L_SHORT_STS */
  6285. #define ARIZONA_SPK1L_SHORT_STS_WIDTH 1 /* SPK1L_SHORT_STS */
  6286. #define ARIZONA_HP3R_SC_NEG_STS 0x0800 /* HP3R_SC_NEG_STS */
  6287. #define ARIZONA_HP3R_SC_NEG_STS_MASK 0x0800 /* HP3R_SC_NEG_STS */
  6288. #define ARIZONA_HP3R_SC_NEG_STS_SHIFT 11 /* HP3R_SC_NEG_STS */
  6289. #define ARIZONA_HP3R_SC_NEG_STS_WIDTH 1 /* HP3R_SC_NEG_STS */
  6290. #define ARIZONA_HP3R_SC_POS_STS 0x0400 /* HP3R_SC_POS_STS */
  6291. #define ARIZONA_HP3R_SC_POS_STS_MASK 0x0400 /* HP3R_SC_POS_STS */
  6292. #define ARIZONA_HP3R_SC_POS_STS_SHIFT 10 /* HP3R_SC_POS_STS */
  6293. #define ARIZONA_HP3R_SC_POS_STS_WIDTH 1 /* HP3R_SC_POS_STS */
  6294. #define ARIZONA_HP3L_SC_NEG_STS 0x0200 /* HP3L_SC_NEG_STS */
  6295. #define ARIZONA_HP3L_SC_NEG_STS_MASK 0x0200 /* HP3L_SC_NEG_STS */
  6296. #define ARIZONA_HP3L_SC_NEG_STS_SHIFT 9 /* HP3L_SC_NEG_STS */
  6297. #define ARIZONA_HP3L_SC_NEG_STS_WIDTH 1 /* HP3L_SC_NEG_STS */
  6298. #define ARIZONA_HP3L_SC_POS_STS 0x0100 /* HP3L_SC_POS_STS */
  6299. #define ARIZONA_HP3L_SC_POS_STS_MASK 0x0100 /* HP3L_SC_POS_STS */
  6300. #define ARIZONA_HP3L_SC_POS_STS_SHIFT 8 /* HP3L_SC_POS_STS */
  6301. #define ARIZONA_HP3L_SC_POS_STS_WIDTH 1 /* HP3L_SC_POS_STS */
  6302. #define ARIZONA_HP2R_SC_NEG_STS 0x0080 /* HP2R_SC_NEG_STS */
  6303. #define ARIZONA_HP2R_SC_NEG_STS_MASK 0x0080 /* HP2R_SC_NEG_STS */
  6304. #define ARIZONA_HP2R_SC_NEG_STS_SHIFT 7 /* HP2R_SC_NEG_STS */
  6305. #define ARIZONA_HP2R_SC_NEG_STS_WIDTH 1 /* HP2R_SC_NEG_STS */
  6306. #define ARIZONA_HP2R_SC_POS_STS 0x0040 /* HP2R_SC_POS_STS */
  6307. #define ARIZONA_HP2R_SC_POS_STS_MASK 0x0040 /* HP2R_SC_POS_STS */
  6308. #define ARIZONA_HP2R_SC_POS_STS_SHIFT 6 /* HP2R_SC_POS_STS */
  6309. #define ARIZONA_HP2R_SC_POS_STS_WIDTH 1 /* HP2R_SC_POS_STS */
  6310. #define ARIZONA_HP2L_SC_NEG_STS 0x0020 /* HP2L_SC_NEG_STS */
  6311. #define ARIZONA_HP2L_SC_NEG_STS_MASK 0x0020 /* HP2L_SC_NEG_STS */
  6312. #define ARIZONA_HP2L_SC_NEG_STS_SHIFT 5 /* HP2L_SC_NEG_STS */
  6313. #define ARIZONA_HP2L_SC_NEG_STS_WIDTH 1 /* HP2L_SC_NEG_STS */
  6314. #define ARIZONA_HP2L_SC_POS_STS 0x0010 /* HP2L_SC_POS_STS */
  6315. #define ARIZONA_HP2L_SC_POS_STS_MASK 0x0010 /* HP2L_SC_POS_STS */
  6316. #define ARIZONA_HP2L_SC_POS_STS_SHIFT 4 /* HP2L_SC_POS_STS */
  6317. #define ARIZONA_HP2L_SC_POS_STS_WIDTH 1 /* HP2L_SC_POS_STS */
  6318. #define ARIZONA_HP1R_SC_NEG_STS 0x0008 /* HP1R_SC_NEG_STS */
  6319. #define ARIZONA_HP1R_SC_NEG_STS_MASK 0x0008 /* HP1R_SC_NEG_STS */
  6320. #define ARIZONA_HP1R_SC_NEG_STS_SHIFT 3 /* HP1R_SC_NEG_STS */
  6321. #define ARIZONA_HP1R_SC_NEG_STS_WIDTH 1 /* HP1R_SC_NEG_STS */
  6322. #define ARIZONA_HP1R_SC_POS_STS 0x0004 /* HP1R_SC_POS_STS */
  6323. #define ARIZONA_HP1R_SC_POS_STS_MASK 0x0004 /* HP1R_SC_POS_STS */
  6324. #define ARIZONA_HP1R_SC_POS_STS_SHIFT 2 /* HP1R_SC_POS_STS */
  6325. #define ARIZONA_HP1R_SC_POS_STS_WIDTH 1 /* HP1R_SC_POS_STS */
  6326. #define ARIZONA_HP1L_SC_NEG_STS 0x0002 /* HP1L_SC_NEG_STS */
  6327. #define ARIZONA_HP1L_SC_NEG_STS_MASK 0x0002 /* HP1L_SC_NEG_STS */
  6328. #define ARIZONA_HP1L_SC_NEG_STS_SHIFT 1 /* HP1L_SC_NEG_STS */
  6329. #define ARIZONA_HP1L_SC_NEG_STS_WIDTH 1 /* HP1L_SC_NEG_STS */
  6330. #define ARIZONA_HP1L_SC_POS_STS 0x0001 /* HP1L_SC_POS_STS */
  6331. #define ARIZONA_HP1L_SC_POS_STS_MASK 0x0001 /* HP1L_SC_POS_STS */
  6332. #define ARIZONA_HP1L_SC_POS_STS_SHIFT 0 /* HP1L_SC_POS_STS */
  6333. #define ARIZONA_HP1L_SC_POS_STS_WIDTH 1 /* HP1L_SC_POS_STS */
  6334. /*
  6335. * R3392 (0xD40) - IRQ Pin Status
  6336. */
  6337. #define ARIZONA_IRQ2_STS 0x0002 /* IRQ2_STS */
  6338. #define ARIZONA_IRQ2_STS_MASK 0x0002 /* IRQ2_STS */
  6339. #define ARIZONA_IRQ2_STS_SHIFT 1 /* IRQ2_STS */
  6340. #define ARIZONA_IRQ2_STS_WIDTH 1 /* IRQ2_STS */
  6341. #define ARIZONA_IRQ1_STS 0x0001 /* IRQ1_STS */
  6342. #define ARIZONA_IRQ1_STS_MASK 0x0001 /* IRQ1_STS */
  6343. #define ARIZONA_IRQ1_STS_SHIFT 0 /* IRQ1_STS */
  6344. #define ARIZONA_IRQ1_STS_WIDTH 1 /* IRQ1_STS */
  6345. /*
  6346. * R3393 (0xD41) - ADSP2 IRQ0
  6347. */
  6348. #define ARIZONA_DSP_IRQ2 0x0002 /* DSP_IRQ2 */
  6349. #define ARIZONA_DSP_IRQ2_MASK 0x0002 /* DSP_IRQ2 */
  6350. #define ARIZONA_DSP_IRQ2_SHIFT 1 /* DSP_IRQ2 */
  6351. #define ARIZONA_DSP_IRQ2_WIDTH 1 /* DSP_IRQ2 */
  6352. #define ARIZONA_DSP_IRQ1 0x0001 /* DSP_IRQ1 */
  6353. #define ARIZONA_DSP_IRQ1_MASK 0x0001 /* DSP_IRQ1 */
  6354. #define ARIZONA_DSP_IRQ1_SHIFT 0 /* DSP_IRQ1 */
  6355. #define ARIZONA_DSP_IRQ1_WIDTH 1 /* DSP_IRQ1 */
  6356. /*
  6357. * R3408 (0xD50) - AOD wkup and trig
  6358. */
  6359. #define ARIZONA_MICD_CLAMP_FALL_TRIG_STS 0x0080 /* MICD_CLAMP_FALL_TRIG_STS */
  6360. #define ARIZONA_MICD_CLAMP_FALL_TRIG_STS_MASK 0x0080 /* MICD_CLAMP_FALL_TRIG_STS */
  6361. #define ARIZONA_MICD_CLAMP_FALL_TRIG_STS_SHIFT 7 /* MICD_CLAMP_FALL_TRIG_STS */
  6362. #define ARIZONA_MICD_CLAMP_FALL_TRIG_STS_WIDTH 1 /* MICD_CLAMP_FALL_TRIG_STS */
  6363. #define ARIZONA_MICD_CLAMP_RISE_TRIG_STS 0x0040 /* MICD_CLAMP_RISE_TRIG_STS */
  6364. #define ARIZONA_MICD_CLAMP_RISE_TRIG_STS_MASK 0x0040 /* MICD_CLAMP_RISE_TRIG_STS */
  6365. #define ARIZONA_MICD_CLAMP_RISE_TRIG_STS_SHIFT 6 /* MICD_CLAMP_RISE_TRIG_STS */
  6366. #define ARIZONA_MICD_CLAMP_RISE_TRIG_STS_WIDTH 1 /* MICD_CLAMP_RISE_TRIG_STS */
  6367. #define ARIZONA_GP5_FALL_TRIG_STS 0x0020 /* GP5_FALL_TRIG_STS */
  6368. #define ARIZONA_GP5_FALL_TRIG_STS_MASK 0x0020 /* GP5_FALL_TRIG_STS */
  6369. #define ARIZONA_GP5_FALL_TRIG_STS_SHIFT 5 /* GP5_FALL_TRIG_STS */
  6370. #define ARIZONA_GP5_FALL_TRIG_STS_WIDTH 1 /* GP5_FALL_TRIG_STS */
  6371. #define ARIZONA_GP5_RISE_TRIG_STS 0x0010 /* GP5_RISE_TRIG_STS */
  6372. #define ARIZONA_GP5_RISE_TRIG_STS_MASK 0x0010 /* GP5_RISE_TRIG_STS */
  6373. #define ARIZONA_GP5_RISE_TRIG_STS_SHIFT 4 /* GP5_RISE_TRIG_STS */
  6374. #define ARIZONA_GP5_RISE_TRIG_STS_WIDTH 1 /* GP5_RISE_TRIG_STS */
  6375. #define ARIZONA_JD1_FALL_TRIG_STS 0x0008 /* JD1_FALL_TRIG_STS */
  6376. #define ARIZONA_JD1_FALL_TRIG_STS_MASK 0x0008 /* JD1_FALL_TRIG_STS */
  6377. #define ARIZONA_JD1_FALL_TRIG_STS_SHIFT 3 /* JD1_FALL_TRIG_STS */
  6378. #define ARIZONA_JD1_FALL_TRIG_STS_WIDTH 1 /* JD1_FALL_TRIG_STS */
  6379. #define ARIZONA_JD1_RISE_TRIG_STS 0x0004 /* JD1_RISE_TRIG_STS */
  6380. #define ARIZONA_JD1_RISE_TRIG_STS_MASK 0x0004 /* JD1_RISE_TRIG_STS */
  6381. #define ARIZONA_JD1_RISE_TRIG_STS_SHIFT 2 /* JD1_RISE_TRIG_STS */
  6382. #define ARIZONA_JD1_RISE_TRIG_STS_WIDTH 1 /* JD1_RISE_TRIG_STS */
  6383. #define ARIZONA_JD2_FALL_TRIG_STS 0x0002 /* JD2_FALL_TRIG_STS */
  6384. #define ARIZONA_JD2_FALL_TRIG_STS_MASK 0x0002 /* JD2_FALL_TRIG_STS */
  6385. #define ARIZONA_JD2_FALL_TRIG_STS_SHIFT 1 /* JD2_FALL_TRIG_STS */
  6386. #define ARIZONA_JD2_FALL_TRIG_STS_WIDTH 1 /* JD2_FALL_TRIG_STS */
  6387. #define ARIZONA_JD2_RISE_TRIG_STS 0x0001 /* JD2_RISE_TRIG_STS */
  6388. #define ARIZONA_JD2_RISE_TRIG_STS_MASK 0x0001 /* JD2_RISE_TRIG_STS */
  6389. #define ARIZONA_JD2_RISE_TRIG_STS_SHIFT 0 /* JD2_RISE_TRIG_STS */
  6390. #define ARIZONA_JD2_RISE_TRIG_STS_WIDTH 1 /* JD2_RISE_TRIG_STS */
  6391. /*
  6392. * R3409 (0xD51) - AOD IRQ1
  6393. */
  6394. #define ARIZONA_MICD_CLAMP_FALL_EINT1 0x0080 /* MICD_CLAMP_FALL_EINT1 */
  6395. #define ARIZONA_MICD_CLAMP_FALL_EINT1_MASK 0x0080 /* MICD_CLAMP_FALL_EINT1 */
  6396. #define ARIZONA_MICD_CLAMP_FALL_EINT1_SHIFT 7 /* MICD_CLAMP_FALL_EINT1 */
  6397. #define ARIZONA_MICD_CLAMP_RISE_EINT1 0x0040 /* MICD_CLAMP_RISE_EINT1 */
  6398. #define ARIZONA_MICD_CLAMP_RISE_EINT1_MASK 0x0040 /* MICD_CLAMP_RISE_EINT1 */
  6399. #define ARIZONA_MICD_CLAMP_RISE_EINT1_SHIFT 6 /* MICD_CLAMP_RISE_EINT1 */
  6400. #define ARIZONA_GP5_FALL_EINT1 0x0020 /* GP5_FALL_EINT1 */
  6401. #define ARIZONA_GP5_FALL_EINT1_MASK 0x0020 /* GP5_FALL_EINT1 */
  6402. #define ARIZONA_GP5_FALL_EINT1_SHIFT 5 /* GP5_FALL_EINT1 */
  6403. #define ARIZONA_GP5_FALL_EINT1_WIDTH 1 /* GP5_FALL_EINT1 */
  6404. #define ARIZONA_GP5_RISE_EINT1 0x0010 /* GP5_RISE_EINT1 */
  6405. #define ARIZONA_GP5_RISE_EINT1_MASK 0x0010 /* GP5_RISE_EINT1 */
  6406. #define ARIZONA_GP5_RISE_EINT1_SHIFT 4 /* GP5_RISE_EINT1 */
  6407. #define ARIZONA_GP5_RISE_EINT1_WIDTH 1 /* GP5_RISE_EINT1 */
  6408. #define ARIZONA_JD1_FALL_EINT1 0x0008 /* JD1_FALL_EINT1 */
  6409. #define ARIZONA_JD1_FALL_EINT1_MASK 0x0008 /* JD1_FALL_EINT1 */
  6410. #define ARIZONA_JD1_FALL_EINT1_SHIFT 3 /* JD1_FALL_EINT1 */
  6411. #define ARIZONA_JD1_FALL_EINT1_WIDTH 1 /* JD1_FALL_EINT1 */
  6412. #define ARIZONA_JD1_RISE_EINT1 0x0004 /* JD1_RISE_EINT1 */
  6413. #define ARIZONA_JD1_RISE_EINT1_MASK 0x0004 /* JD1_RISE_EINT1 */
  6414. #define ARIZONA_JD1_RISE_EINT1_SHIFT 2 /* JD1_RISE_EINT1 */
  6415. #define ARIZONA_JD1_RISE_EINT1_WIDTH 1 /* JD1_RISE_EINT1 */
  6416. #define ARIZONA_JD2_FALL_EINT1 0x0002 /* JD2_FALL_EINT1 */
  6417. #define ARIZONA_JD2_FALL_EINT1_MASK 0x0002 /* JD2_FALL_EINT1 */
  6418. #define ARIZONA_JD2_FALL_EINT1_SHIFT 1 /* JD2_FALL_EINT1 */
  6419. #define ARIZONA_JD2_FALL_EINT1_WIDTH 1 /* JD2_FALL_EINT1 */
  6420. #define ARIZONA_JD2_RISE_EINT1 0x0001 /* JD2_RISE_EINT1 */
  6421. #define ARIZONA_JD2_RISE_EINT1_MASK 0x0001 /* JD2_RISE_EINT1 */
  6422. #define ARIZONA_JD2_RISE_EINT1_SHIFT 0 /* JD2_RISE_EINT1 */
  6423. #define ARIZONA_JD2_RISE_EINT1_WIDTH 1 /* JD2_RISE_EINT1 */
  6424. /*
  6425. * R3410 (0xD52) - AOD IRQ2
  6426. */
  6427. #define ARIZONA_MICD_CLAMP_FALL_EINT2 0x0080 /* MICD_CLAMP_FALL_EINT2 */
  6428. #define ARIZONA_MICD_CLAMP_FALL_EINT2_MASK 0x0080 /* MICD_CLAMP_FALL_EINT2 */
  6429. #define ARIZONA_MICD_CLAMP_FALL_EINT2_SHIFT 7 /* MICD_CLAMP_FALL_EINT2 */
  6430. #define ARIZONA_MICD_CLAMP_RISE_EINT2 0x0040 /* MICD_CLAMP_RISE_EINT2 */
  6431. #define ARIZONA_MICD_CLAMP_RISE_EINT2_MASK 0x0040 /* MICD_CLAMP_RISE_EINT2 */
  6432. #define ARIZONA_MICD_CLAMP_RISE_EINT2_SHIFT 6 /* MICD_CLAMP_RISE_EINT2 */
  6433. #define ARIZONA_GP5_FALL_EINT2 0x0020 /* GP5_FALL_EINT2 */
  6434. #define ARIZONA_GP5_FALL_EINT2_MASK 0x0020 /* GP5_FALL_EINT2 */
  6435. #define ARIZONA_GP5_FALL_EINT2_SHIFT 5 /* GP5_FALL_EINT2 */
  6436. #define ARIZONA_GP5_FALL_EINT2_WIDTH 1 /* GP5_FALL_EINT2 */
  6437. #define ARIZONA_GP5_RISE_EINT2 0x0010 /* GP5_RISE_EINT2 */
  6438. #define ARIZONA_GP5_RISE_EINT2_MASK 0x0010 /* GP5_RISE_EINT2 */
  6439. #define ARIZONA_GP5_RISE_EINT2_SHIFT 4 /* GP5_RISE_EINT2 */
  6440. #define ARIZONA_GP5_RISE_EINT2_WIDTH 1 /* GP5_RISE_EINT2 */
  6441. #define ARIZONA_JD1_FALL_EINT2 0x0008 /* JD1_FALL_EINT2 */
  6442. #define ARIZONA_JD1_FALL_EINT2_MASK 0x0008 /* JD1_FALL_EINT2 */
  6443. #define ARIZONA_JD1_FALL_EINT2_SHIFT 3 /* JD1_FALL_EINT2 */
  6444. #define ARIZONA_JD1_FALL_EINT2_WIDTH 1 /* JD1_FALL_EINT2 */
  6445. #define ARIZONA_JD1_RISE_EINT2 0x0004 /* JD1_RISE_EINT2 */
  6446. #define ARIZONA_JD1_RISE_EINT2_MASK 0x0004 /* JD1_RISE_EINT2 */
  6447. #define ARIZONA_JD1_RISE_EINT2_SHIFT 2 /* JD1_RISE_EINT2 */
  6448. #define ARIZONA_JD1_RISE_EINT2_WIDTH 1 /* JD1_RISE_EINT2 */
  6449. #define ARIZONA_JD2_FALL_EINT2 0x0002 /* JD2_FALL_EINT2 */
  6450. #define ARIZONA_JD2_FALL_EINT2_MASK 0x0002 /* JD2_FALL_EINT2 */
  6451. #define ARIZONA_JD2_FALL_EINT2_SHIFT 1 /* JD2_FALL_EINT2 */
  6452. #define ARIZONA_JD2_FALL_EINT2_WIDTH 1 /* JD2_FALL_EINT2 */
  6453. #define ARIZONA_JD2_RISE_EINT2 0x0001 /* JD2_RISE_EINT2 */
  6454. #define ARIZONA_JD2_RISE_EINT2_MASK 0x0001 /* JD2_RISE_EINT2 */
  6455. #define ARIZONA_JD2_RISE_EINT2_SHIFT 0 /* JD2_RISE_EINT2 */
  6456. #define ARIZONA_JD2_RISE_EINT2_WIDTH 1 /* JD2_RISE_EINT2 */
  6457. /*
  6458. * R3411 (0xD53) - AOD IRQ Mask IRQ1
  6459. */
  6460. #define ARIZONA_IM_GP5_FALL_EINT1 0x0020 /* IM_GP5_FALL_EINT1 */
  6461. #define ARIZONA_IM_GP5_FALL_EINT1_MASK 0x0020 /* IM_GP5_FALL_EINT1 */
  6462. #define ARIZONA_IM_GP5_FALL_EINT1_SHIFT 5 /* IM_GP5_FALL_EINT1 */
  6463. #define ARIZONA_IM_GP5_FALL_EINT1_WIDTH 1 /* IM_GP5_FALL_EINT1 */
  6464. #define ARIZONA_IM_GP5_RISE_EINT1 0x0010 /* IM_GP5_RISE_EINT1 */
  6465. #define ARIZONA_IM_GP5_RISE_EINT1_MASK 0x0010 /* IM_GP5_RISE_EINT1 */
  6466. #define ARIZONA_IM_GP5_RISE_EINT1_SHIFT 4 /* IM_GP5_RISE_EINT1 */
  6467. #define ARIZONA_IM_GP5_RISE_EINT1_WIDTH 1 /* IM_GP5_RISE_EINT1 */
  6468. #define ARIZONA_IM_JD1_FALL_EINT1 0x0008 /* IM_JD1_FALL_EINT1 */
  6469. #define ARIZONA_IM_JD1_FALL_EINT1_MASK 0x0008 /* IM_JD1_FALL_EINT1 */
  6470. #define ARIZONA_IM_JD1_FALL_EINT1_SHIFT 3 /* IM_JD1_FALL_EINT1 */
  6471. #define ARIZONA_IM_JD1_FALL_EINT1_WIDTH 1 /* IM_JD1_FALL_EINT1 */
  6472. #define ARIZONA_IM_JD1_RISE_EINT1 0x0004 /* IM_JD1_RISE_EINT1 */
  6473. #define ARIZONA_IM_JD1_RISE_EINT1_MASK 0x0004 /* IM_JD1_RISE_EINT1 */
  6474. #define ARIZONA_IM_JD1_RISE_EINT1_SHIFT 2 /* IM_JD1_RISE_EINT1 */
  6475. #define ARIZONA_IM_JD1_RISE_EINT1_WIDTH 1 /* IM_JD1_RISE_EINT1 */
  6476. #define ARIZONA_IM_JD2_FALL_EINT1 0x0002 /* IM_JD2_FALL_EINT1 */
  6477. #define ARIZONA_IM_JD2_FALL_EINT1_MASK 0x0002 /* IM_JD2_FALL_EINT1 */
  6478. #define ARIZONA_IM_JD2_FALL_EINT1_SHIFT 1 /* IM_JD2_FALL_EINT1 */
  6479. #define ARIZONA_IM_JD2_FALL_EINT1_WIDTH 1 /* IM_JD2_FALL_EINT1 */
  6480. #define ARIZONA_IM_JD2_RISE_EINT1 0x0001 /* IM_JD2_RISE_EINT1 */
  6481. #define ARIZONA_IM_JD2_RISE_EINT1_MASK 0x0001 /* IM_JD2_RISE_EINT1 */
  6482. #define ARIZONA_IM_JD2_RISE_EINT1_SHIFT 0 /* IM_JD2_RISE_EINT1 */
  6483. #define ARIZONA_IM_JD2_RISE_EINT1_WIDTH 1 /* IM_JD2_RISE_EINT1 */
  6484. /*
  6485. * R3412 (0xD54) - AOD IRQ Mask IRQ2
  6486. */
  6487. #define ARIZONA_IM_GP5_FALL_EINT2 0x0020 /* IM_GP5_FALL_EINT2 */
  6488. #define ARIZONA_IM_GP5_FALL_EINT2_MASK 0x0020 /* IM_GP5_FALL_EINT2 */
  6489. #define ARIZONA_IM_GP5_FALL_EINT2_SHIFT 5 /* IM_GP5_FALL_EINT2 */
  6490. #define ARIZONA_IM_GP5_FALL_EINT2_WIDTH 1 /* IM_GP5_FALL_EINT2 */
  6491. #define ARIZONA_IM_GP5_RISE_EINT2 0x0010 /* IM_GP5_RISE_EINT2 */
  6492. #define ARIZONA_IM_GP5_RISE_EINT2_MASK 0x0010 /* IM_GP5_RISE_EINT2 */
  6493. #define ARIZONA_IM_GP5_RISE_EINT2_SHIFT 4 /* IM_GP5_RISE_EINT2 */
  6494. #define ARIZONA_IM_GP5_RISE_EINT2_WIDTH 1 /* IM_GP5_RISE_EINT2 */
  6495. #define ARIZONA_IM_JD1_FALL_EINT2 0x0008 /* IM_JD1_FALL_EINT2 */
  6496. #define ARIZONA_IM_JD1_FALL_EINT2_MASK 0x0008 /* IM_JD1_FALL_EINT2 */
  6497. #define ARIZONA_IM_JD1_FALL_EINT2_SHIFT 3 /* IM_JD1_FALL_EINT2 */
  6498. #define ARIZONA_IM_JD1_FALL_EINT2_WIDTH 1 /* IM_JD1_FALL_EINT2 */
  6499. #define ARIZONA_IM_JD1_RISE_EINT2 0x0004 /* IM_JD1_RISE_EINT2 */
  6500. #define ARIZONA_IM_JD1_RISE_EINT2_MASK 0x0004 /* IM_JD1_RISE_EINT2 */
  6501. #define ARIZONA_IM_JD1_RISE_EINT2_SHIFT 2 /* IM_JD1_RISE_EINT2 */
  6502. #define ARIZONA_IM_JD1_RISE_EINT2_WIDTH 1 /* IM_JD1_RISE_EINT2 */
  6503. #define ARIZONA_IM_JD2_FALL_EINT2 0x0002 /* IM_JD2_FALL_EINT2 */
  6504. #define ARIZONA_IM_JD2_FALL_EINT2_MASK 0x0002 /* IM_JD2_FALL_EINT2 */
  6505. #define ARIZONA_IM_JD2_FALL_EINT2_SHIFT 1 /* IM_JD2_FALL_EINT2 */
  6506. #define ARIZONA_IM_JD2_FALL_EINT2_WIDTH 1 /* IM_JD2_FALL_EINT2 */
  6507. #define ARIZONA_IM_JD2_RISE_EINT2 0x0001 /* IM_JD2_RISE_EINT2 */
  6508. #define ARIZONA_IM_JD2_RISE_EINT2_MASK 0x0001 /* IM_JD2_RISE_EINT2 */
  6509. #define ARIZONA_IM_JD2_RISE_EINT2_SHIFT 0 /* IM_JD2_RISE_EINT2 */
  6510. #define ARIZONA_IM_JD2_RISE_EINT2_WIDTH 1 /* IM_JD2_RISE_EINT2 */
  6511. /*
  6512. * R3413 (0xD55) - AOD IRQ Raw Status
  6513. */
  6514. #define ARIZONA_MICD_CLAMP_STS 0x0008 /* MICD_CLAMP_STS */
  6515. #define ARIZONA_MICD_CLAMP_STS_MASK 0x0008 /* MICD_CLAMP_STS */
  6516. #define ARIZONA_MICD_CLAMP_STS_SHIFT 3 /* MICD_CLAMP_STS */
  6517. #define ARIZONA_MICD_CLAMP_STS_WIDTH 1 /* MICD_CLAMP_STS */
  6518. #define ARIZONA_GP5_STS 0x0004 /* GP5_STS */
  6519. #define ARIZONA_GP5_STS_MASK 0x0004 /* GP5_STS */
  6520. #define ARIZONA_GP5_STS_SHIFT 2 /* GP5_STS */
  6521. #define ARIZONA_GP5_STS_WIDTH 1 /* GP5_STS */
  6522. #define ARIZONA_JD2_STS 0x0002 /* JD2_STS */
  6523. #define ARIZONA_JD2_STS_MASK 0x0002 /* JD2_STS */
  6524. #define ARIZONA_JD2_STS_SHIFT 1 /* JD2_STS */
  6525. #define ARIZONA_JD2_STS_WIDTH 1 /* JD2_STS */
  6526. #define ARIZONA_JD1_STS 0x0001 /* JD1_STS */
  6527. #define ARIZONA_JD1_STS_MASK 0x0001 /* JD1_STS */
  6528. #define ARIZONA_JD1_STS_SHIFT 0 /* JD1_STS */
  6529. #define ARIZONA_JD1_STS_WIDTH 1 /* JD1_STS */
  6530. /*
  6531. * R3414 (0xD56) - Jack detect debounce
  6532. */
  6533. #define ARIZONA_MICD_CLAMP_DB 0x0008 /* MICD_CLAMP_DB */
  6534. #define ARIZONA_MICD_CLAMP_DB_MASK 0x0008 /* MICD_CLAMP_DB */
  6535. #define ARIZONA_MICD_CLAMP_DB_SHIFT 3 /* MICD_CLAMP_DB */
  6536. #define ARIZONA_MICD_CLAMP_DB_WIDTH 1 /* MICD_CLAMP_DB */
  6537. #define ARIZONA_JD2_DB 0x0002 /* JD2_DB */
  6538. #define ARIZONA_JD2_DB_MASK 0x0002 /* JD2_DB */
  6539. #define ARIZONA_JD2_DB_SHIFT 1 /* JD2_DB */
  6540. #define ARIZONA_JD2_DB_WIDTH 1 /* JD2_DB */
  6541. #define ARIZONA_JD1_DB 0x0001 /* JD1_DB */
  6542. #define ARIZONA_JD1_DB_MASK 0x0001 /* JD1_DB */
  6543. #define ARIZONA_JD1_DB_SHIFT 0 /* JD1_DB */
  6544. #define ARIZONA_JD1_DB_WIDTH 1 /* JD1_DB */
  6545. /*
  6546. * R3584 (0xE00) - FX_Ctrl1
  6547. */
  6548. #define ARIZONA_FX_RATE_MASK 0x7800 /* FX_RATE - [14:11] */
  6549. #define ARIZONA_FX_RATE_SHIFT 11 /* FX_RATE - [14:11] */
  6550. #define ARIZONA_FX_RATE_WIDTH 4 /* FX_RATE - [14:11] */
  6551. /*
  6552. * R3585 (0xE01) - FX_Ctrl2
  6553. */
  6554. #define ARIZONA_FX_STS_MASK 0xFFF0 /* FX_STS - [15:4] */
  6555. #define ARIZONA_FX_STS_SHIFT 4 /* FX_STS - [15:4] */
  6556. #define ARIZONA_FX_STS_WIDTH 12 /* FX_STS - [15:4] */
  6557. /*
  6558. * R3600 (0xE10) - EQ1_1
  6559. */
  6560. #define ARIZONA_EQ1_B1_GAIN_MASK 0xF800 /* EQ1_B1_GAIN - [15:11] */
  6561. #define ARIZONA_EQ1_B1_GAIN_SHIFT 11 /* EQ1_B1_GAIN - [15:11] */
  6562. #define ARIZONA_EQ1_B1_GAIN_WIDTH 5 /* EQ1_B1_GAIN - [15:11] */
  6563. #define ARIZONA_EQ1_B2_GAIN_MASK 0x07C0 /* EQ1_B2_GAIN - [10:6] */
  6564. #define ARIZONA_EQ1_B2_GAIN_SHIFT 6 /* EQ1_B2_GAIN - [10:6] */
  6565. #define ARIZONA_EQ1_B2_GAIN_WIDTH 5 /* EQ1_B2_GAIN - [10:6] */
  6566. #define ARIZONA_EQ1_B3_GAIN_MASK 0x003E /* EQ1_B3_GAIN - [5:1] */
  6567. #define ARIZONA_EQ1_B3_GAIN_SHIFT 1 /* EQ1_B3_GAIN - [5:1] */
  6568. #define ARIZONA_EQ1_B3_GAIN_WIDTH 5 /* EQ1_B3_GAIN - [5:1] */
  6569. #define ARIZONA_EQ1_ENA 0x0001 /* EQ1_ENA */
  6570. #define ARIZONA_EQ1_ENA_MASK 0x0001 /* EQ1_ENA */
  6571. #define ARIZONA_EQ1_ENA_SHIFT 0 /* EQ1_ENA */
  6572. #define ARIZONA_EQ1_ENA_WIDTH 1 /* EQ1_ENA */
  6573. /*
  6574. * R3601 (0xE11) - EQ1_2
  6575. */
  6576. #define ARIZONA_EQ1_B4_GAIN_MASK 0xF800 /* EQ1_B4_GAIN - [15:11] */
  6577. #define ARIZONA_EQ1_B4_GAIN_SHIFT 11 /* EQ1_B4_GAIN - [15:11] */
  6578. #define ARIZONA_EQ1_B4_GAIN_WIDTH 5 /* EQ1_B4_GAIN - [15:11] */
  6579. #define ARIZONA_EQ1_B5_GAIN_MASK 0x07C0 /* EQ1_B5_GAIN - [10:6] */
  6580. #define ARIZONA_EQ1_B5_GAIN_SHIFT 6 /* EQ1_B5_GAIN - [10:6] */
  6581. #define ARIZONA_EQ1_B5_GAIN_WIDTH 5 /* EQ1_B5_GAIN - [10:6] */
  6582. #define ARIZONA_EQ1_B1_MODE 0x0001 /* EQ1_B1_MODE */
  6583. #define ARIZONA_EQ1_B1_MODE_MASK 0x0001 /* EQ1_B1_MODE */
  6584. #define ARIZONA_EQ1_B1_MODE_SHIFT 0 /* EQ1_B1_MODE */
  6585. #define ARIZONA_EQ1_B1_MODE_WIDTH 1 /* EQ1_B1_MODE */
  6586. /*
  6587. * R3602 (0xE12) - EQ1_3
  6588. */
  6589. #define ARIZONA_EQ1_B1_A_MASK 0xFFFF /* EQ1_B1_A - [15:0] */
  6590. #define ARIZONA_EQ1_B1_A_SHIFT 0 /* EQ1_B1_A - [15:0] */
  6591. #define ARIZONA_EQ1_B1_A_WIDTH 16 /* EQ1_B1_A - [15:0] */
  6592. /*
  6593. * R3603 (0xE13) - EQ1_4
  6594. */
  6595. #define ARIZONA_EQ1_B1_B_MASK 0xFFFF /* EQ1_B1_B - [15:0] */
  6596. #define ARIZONA_EQ1_B1_B_SHIFT 0 /* EQ1_B1_B - [15:0] */
  6597. #define ARIZONA_EQ1_B1_B_WIDTH 16 /* EQ1_B1_B - [15:0] */
  6598. /*
  6599. * R3604 (0xE14) - EQ1_5
  6600. */
  6601. #define ARIZONA_EQ1_B1_PG_MASK 0xFFFF /* EQ1_B1_PG - [15:0] */
  6602. #define ARIZONA_EQ1_B1_PG_SHIFT 0 /* EQ1_B1_PG - [15:0] */
  6603. #define ARIZONA_EQ1_B1_PG_WIDTH 16 /* EQ1_B1_PG - [15:0] */
  6604. /*
  6605. * R3605 (0xE15) - EQ1_6
  6606. */
  6607. #define ARIZONA_EQ1_B2_A_MASK 0xFFFF /* EQ1_B2_A - [15:0] */
  6608. #define ARIZONA_EQ1_B2_A_SHIFT 0 /* EQ1_B2_A - [15:0] */
  6609. #define ARIZONA_EQ1_B2_A_WIDTH 16 /* EQ1_B2_A - [15:0] */
  6610. /*
  6611. * R3606 (0xE16) - EQ1_7
  6612. */
  6613. #define ARIZONA_EQ1_B2_B_MASK 0xFFFF /* EQ1_B2_B - [15:0] */
  6614. #define ARIZONA_EQ1_B2_B_SHIFT 0 /* EQ1_B2_B - [15:0] */
  6615. #define ARIZONA_EQ1_B2_B_WIDTH 16 /* EQ1_B2_B - [15:0] */
  6616. /*
  6617. * R3607 (0xE17) - EQ1_8
  6618. */
  6619. #define ARIZONA_EQ1_B2_C_MASK 0xFFFF /* EQ1_B2_C - [15:0] */
  6620. #define ARIZONA_EQ1_B2_C_SHIFT 0 /* EQ1_B2_C - [15:0] */
  6621. #define ARIZONA_EQ1_B2_C_WIDTH 16 /* EQ1_B2_C - [15:0] */
  6622. /*
  6623. * R3608 (0xE18) - EQ1_9
  6624. */
  6625. #define ARIZONA_EQ1_B2_PG_MASK 0xFFFF /* EQ1_B2_PG - [15:0] */
  6626. #define ARIZONA_EQ1_B2_PG_SHIFT 0 /* EQ1_B2_PG - [15:0] */
  6627. #define ARIZONA_EQ1_B2_PG_WIDTH 16 /* EQ1_B2_PG - [15:0] */
  6628. /*
  6629. * R3609 (0xE19) - EQ1_10
  6630. */
  6631. #define ARIZONA_EQ1_B3_A_MASK 0xFFFF /* EQ1_B3_A - [15:0] */
  6632. #define ARIZONA_EQ1_B3_A_SHIFT 0 /* EQ1_B3_A - [15:0] */
  6633. #define ARIZONA_EQ1_B3_A_WIDTH 16 /* EQ1_B3_A - [15:0] */
  6634. /*
  6635. * R3610 (0xE1A) - EQ1_11
  6636. */
  6637. #define ARIZONA_EQ1_B3_B_MASK 0xFFFF /* EQ1_B3_B - [15:0] */
  6638. #define ARIZONA_EQ1_B3_B_SHIFT 0 /* EQ1_B3_B - [15:0] */
  6639. #define ARIZONA_EQ1_B3_B_WIDTH 16 /* EQ1_B3_B - [15:0] */
  6640. /*
  6641. * R3611 (0xE1B) - EQ1_12
  6642. */
  6643. #define ARIZONA_EQ1_B3_C_MASK 0xFFFF /* EQ1_B3_C - [15:0] */
  6644. #define ARIZONA_EQ1_B3_C_SHIFT 0 /* EQ1_B3_C - [15:0] */
  6645. #define ARIZONA_EQ1_B3_C_WIDTH 16 /* EQ1_B3_C - [15:0] */
  6646. /*
  6647. * R3612 (0xE1C) - EQ1_13
  6648. */
  6649. #define ARIZONA_EQ1_B3_PG_MASK 0xFFFF /* EQ1_B3_PG - [15:0] */
  6650. #define ARIZONA_EQ1_B3_PG_SHIFT 0 /* EQ1_B3_PG - [15:0] */
  6651. #define ARIZONA_EQ1_B3_PG_WIDTH 16 /* EQ1_B3_PG - [15:0] */
  6652. /*
  6653. * R3613 (0xE1D) - EQ1_14
  6654. */
  6655. #define ARIZONA_EQ1_B4_A_MASK 0xFFFF /* EQ1_B4_A - [15:0] */
  6656. #define ARIZONA_EQ1_B4_A_SHIFT 0 /* EQ1_B4_A - [15:0] */
  6657. #define ARIZONA_EQ1_B4_A_WIDTH 16 /* EQ1_B4_A - [15:0] */
  6658. /*
  6659. * R3614 (0xE1E) - EQ1_15
  6660. */
  6661. #define ARIZONA_EQ1_B4_B_MASK 0xFFFF /* EQ1_B4_B - [15:0] */
  6662. #define ARIZONA_EQ1_B4_B_SHIFT 0 /* EQ1_B4_B - [15:0] */
  6663. #define ARIZONA_EQ1_B4_B_WIDTH 16 /* EQ1_B4_B - [15:0] */
  6664. /*
  6665. * R3615 (0xE1F) - EQ1_16
  6666. */
  6667. #define ARIZONA_EQ1_B4_C_MASK 0xFFFF /* EQ1_B4_C - [15:0] */
  6668. #define ARIZONA_EQ1_B4_C_SHIFT 0 /* EQ1_B4_C - [15:0] */
  6669. #define ARIZONA_EQ1_B4_C_WIDTH 16 /* EQ1_B4_C - [15:0] */
  6670. /*
  6671. * R3616 (0xE20) - EQ1_17
  6672. */
  6673. #define ARIZONA_EQ1_B4_PG_MASK 0xFFFF /* EQ1_B4_PG - [15:0] */
  6674. #define ARIZONA_EQ1_B4_PG_SHIFT 0 /* EQ1_B4_PG - [15:0] */
  6675. #define ARIZONA_EQ1_B4_PG_WIDTH 16 /* EQ1_B4_PG - [15:0] */
  6676. /*
  6677. * R3617 (0xE21) - EQ1_18
  6678. */
  6679. #define ARIZONA_EQ1_B5_A_MASK 0xFFFF /* EQ1_B5_A - [15:0] */
  6680. #define ARIZONA_EQ1_B5_A_SHIFT 0 /* EQ1_B5_A - [15:0] */
  6681. #define ARIZONA_EQ1_B5_A_WIDTH 16 /* EQ1_B5_A - [15:0] */
  6682. /*
  6683. * R3618 (0xE22) - EQ1_19
  6684. */
  6685. #define ARIZONA_EQ1_B5_B_MASK 0xFFFF /* EQ1_B5_B - [15:0] */
  6686. #define ARIZONA_EQ1_B5_B_SHIFT 0 /* EQ1_B5_B - [15:0] */
  6687. #define ARIZONA_EQ1_B5_B_WIDTH 16 /* EQ1_B5_B - [15:0] */
  6688. /*
  6689. * R3619 (0xE23) - EQ1_20
  6690. */
  6691. #define ARIZONA_EQ1_B5_PG_MASK 0xFFFF /* EQ1_B5_PG - [15:0] */
  6692. #define ARIZONA_EQ1_B5_PG_SHIFT 0 /* EQ1_B5_PG - [15:0] */
  6693. #define ARIZONA_EQ1_B5_PG_WIDTH 16 /* EQ1_B5_PG - [15:0] */
  6694. /*
  6695. * R3620 (0xE24) - EQ1_21
  6696. */
  6697. #define ARIZONA_EQ1_B1_C_MASK 0xFFFF /* EQ1_B1_C - [15:0] */
  6698. #define ARIZONA_EQ1_B1_C_SHIFT 0 /* EQ1_B1_C - [15:0] */
  6699. #define ARIZONA_EQ1_B1_C_WIDTH 16 /* EQ1_B1_C - [15:0] */
  6700. /*
  6701. * R3622 (0xE26) - EQ2_1
  6702. */
  6703. #define ARIZONA_EQ2_B1_GAIN_MASK 0xF800 /* EQ2_B1_GAIN - [15:11] */
  6704. #define ARIZONA_EQ2_B1_GAIN_SHIFT 11 /* EQ2_B1_GAIN - [15:11] */
  6705. #define ARIZONA_EQ2_B1_GAIN_WIDTH 5 /* EQ2_B1_GAIN - [15:11] */
  6706. #define ARIZONA_EQ2_B2_GAIN_MASK 0x07C0 /* EQ2_B2_GAIN - [10:6] */
  6707. #define ARIZONA_EQ2_B2_GAIN_SHIFT 6 /* EQ2_B2_GAIN - [10:6] */
  6708. #define ARIZONA_EQ2_B2_GAIN_WIDTH 5 /* EQ2_B2_GAIN - [10:6] */
  6709. #define ARIZONA_EQ2_B3_GAIN_MASK 0x003E /* EQ2_B3_GAIN - [5:1] */
  6710. #define ARIZONA_EQ2_B3_GAIN_SHIFT 1 /* EQ2_B3_GAIN - [5:1] */
  6711. #define ARIZONA_EQ2_B3_GAIN_WIDTH 5 /* EQ2_B3_GAIN - [5:1] */
  6712. #define ARIZONA_EQ2_ENA 0x0001 /* EQ2_ENA */
  6713. #define ARIZONA_EQ2_ENA_MASK 0x0001 /* EQ2_ENA */
  6714. #define ARIZONA_EQ2_ENA_SHIFT 0 /* EQ2_ENA */
  6715. #define ARIZONA_EQ2_ENA_WIDTH 1 /* EQ2_ENA */
  6716. /*
  6717. * R3623 (0xE27) - EQ2_2
  6718. */
  6719. #define ARIZONA_EQ2_B4_GAIN_MASK 0xF800 /* EQ2_B4_GAIN - [15:11] */
  6720. #define ARIZONA_EQ2_B4_GAIN_SHIFT 11 /* EQ2_B4_GAIN - [15:11] */
  6721. #define ARIZONA_EQ2_B4_GAIN_WIDTH 5 /* EQ2_B4_GAIN - [15:11] */
  6722. #define ARIZONA_EQ2_B5_GAIN_MASK 0x07C0 /* EQ2_B5_GAIN - [10:6] */
  6723. #define ARIZONA_EQ2_B5_GAIN_SHIFT 6 /* EQ2_B5_GAIN - [10:6] */
  6724. #define ARIZONA_EQ2_B5_GAIN_WIDTH 5 /* EQ2_B5_GAIN - [10:6] */
  6725. #define ARIZONA_EQ2_B1_MODE 0x0001 /* EQ2_B1_MODE */
  6726. #define ARIZONA_EQ2_B1_MODE_MASK 0x0001 /* EQ2_B1_MODE */
  6727. #define ARIZONA_EQ2_B1_MODE_SHIFT 0 /* EQ2_B1_MODE */
  6728. #define ARIZONA_EQ2_B1_MODE_WIDTH 1 /* EQ2_B1_MODE */
  6729. /*
  6730. * R3624 (0xE28) - EQ2_3
  6731. */
  6732. #define ARIZONA_EQ2_B1_A_MASK 0xFFFF /* EQ2_B1_A - [15:0] */
  6733. #define ARIZONA_EQ2_B1_A_SHIFT 0 /* EQ2_B1_A - [15:0] */
  6734. #define ARIZONA_EQ2_B1_A_WIDTH 16 /* EQ2_B1_A - [15:0] */
  6735. /*
  6736. * R3625 (0xE29) - EQ2_4
  6737. */
  6738. #define ARIZONA_EQ2_B1_B_MASK 0xFFFF /* EQ2_B1_B - [15:0] */
  6739. #define ARIZONA_EQ2_B1_B_SHIFT 0 /* EQ2_B1_B - [15:0] */
  6740. #define ARIZONA_EQ2_B1_B_WIDTH 16 /* EQ2_B1_B - [15:0] */
  6741. /*
  6742. * R3626 (0xE2A) - EQ2_5
  6743. */
  6744. #define ARIZONA_EQ2_B1_PG_MASK 0xFFFF /* EQ2_B1_PG - [15:0] */
  6745. #define ARIZONA_EQ2_B1_PG_SHIFT 0 /* EQ2_B1_PG - [15:0] */
  6746. #define ARIZONA_EQ2_B1_PG_WIDTH 16 /* EQ2_B1_PG - [15:0] */
  6747. /*
  6748. * R3627 (0xE2B) - EQ2_6
  6749. */
  6750. #define ARIZONA_EQ2_B2_A_MASK 0xFFFF /* EQ2_B2_A - [15:0] */
  6751. #define ARIZONA_EQ2_B2_A_SHIFT 0 /* EQ2_B2_A - [15:0] */
  6752. #define ARIZONA_EQ2_B2_A_WIDTH 16 /* EQ2_B2_A - [15:0] */
  6753. /*
  6754. * R3628 (0xE2C) - EQ2_7
  6755. */
  6756. #define ARIZONA_EQ2_B2_B_MASK 0xFFFF /* EQ2_B2_B - [15:0] */
  6757. #define ARIZONA_EQ2_B2_B_SHIFT 0 /* EQ2_B2_B - [15:0] */
  6758. #define ARIZONA_EQ2_B2_B_WIDTH 16 /* EQ2_B2_B - [15:0] */
  6759. /*
  6760. * R3629 (0xE2D) - EQ2_8
  6761. */
  6762. #define ARIZONA_EQ2_B2_C_MASK 0xFFFF /* EQ2_B2_C - [15:0] */
  6763. #define ARIZONA_EQ2_B2_C_SHIFT 0 /* EQ2_B2_C - [15:0] */
  6764. #define ARIZONA_EQ2_B2_C_WIDTH 16 /* EQ2_B2_C - [15:0] */
  6765. /*
  6766. * R3630 (0xE2E) - EQ2_9
  6767. */
  6768. #define ARIZONA_EQ2_B2_PG_MASK 0xFFFF /* EQ2_B2_PG - [15:0] */
  6769. #define ARIZONA_EQ2_B2_PG_SHIFT 0 /* EQ2_B2_PG - [15:0] */
  6770. #define ARIZONA_EQ2_B2_PG_WIDTH 16 /* EQ2_B2_PG - [15:0] */
  6771. /*
  6772. * R3631 (0xE2F) - EQ2_10
  6773. */
  6774. #define ARIZONA_EQ2_B3_A_MASK 0xFFFF /* EQ2_B3_A - [15:0] */
  6775. #define ARIZONA_EQ2_B3_A_SHIFT 0 /* EQ2_B3_A - [15:0] */
  6776. #define ARIZONA_EQ2_B3_A_WIDTH 16 /* EQ2_B3_A - [15:0] */
  6777. /*
  6778. * R3632 (0xE30) - EQ2_11
  6779. */
  6780. #define ARIZONA_EQ2_B3_B_MASK 0xFFFF /* EQ2_B3_B - [15:0] */
  6781. #define ARIZONA_EQ2_B3_B_SHIFT 0 /* EQ2_B3_B - [15:0] */
  6782. #define ARIZONA_EQ2_B3_B_WIDTH 16 /* EQ2_B3_B - [15:0] */
  6783. /*
  6784. * R3633 (0xE31) - EQ2_12
  6785. */
  6786. #define ARIZONA_EQ2_B3_C_MASK 0xFFFF /* EQ2_B3_C - [15:0] */
  6787. #define ARIZONA_EQ2_B3_C_SHIFT 0 /* EQ2_B3_C - [15:0] */
  6788. #define ARIZONA_EQ2_B3_C_WIDTH 16 /* EQ2_B3_C - [15:0] */
  6789. /*
  6790. * R3634 (0xE32) - EQ2_13
  6791. */
  6792. #define ARIZONA_EQ2_B3_PG_MASK 0xFFFF /* EQ2_B3_PG - [15:0] */
  6793. #define ARIZONA_EQ2_B3_PG_SHIFT 0 /* EQ2_B3_PG - [15:0] */
  6794. #define ARIZONA_EQ2_B3_PG_WIDTH 16 /* EQ2_B3_PG - [15:0] */
  6795. /*
  6796. * R3635 (0xE33) - EQ2_14
  6797. */
  6798. #define ARIZONA_EQ2_B4_A_MASK 0xFFFF /* EQ2_B4_A - [15:0] */
  6799. #define ARIZONA_EQ2_B4_A_SHIFT 0 /* EQ2_B4_A - [15:0] */
  6800. #define ARIZONA_EQ2_B4_A_WIDTH 16 /* EQ2_B4_A - [15:0] */
  6801. /*
  6802. * R3636 (0xE34) - EQ2_15
  6803. */
  6804. #define ARIZONA_EQ2_B4_B_MASK 0xFFFF /* EQ2_B4_B - [15:0] */
  6805. #define ARIZONA_EQ2_B4_B_SHIFT 0 /* EQ2_B4_B - [15:0] */
  6806. #define ARIZONA_EQ2_B4_B_WIDTH 16 /* EQ2_B4_B - [15:0] */
  6807. /*
  6808. * R3637 (0xE35) - EQ2_16
  6809. */
  6810. #define ARIZONA_EQ2_B4_C_MASK 0xFFFF /* EQ2_B4_C - [15:0] */
  6811. #define ARIZONA_EQ2_B4_C_SHIFT 0 /* EQ2_B4_C - [15:0] */
  6812. #define ARIZONA_EQ2_B4_C_WIDTH 16 /* EQ2_B4_C - [15:0] */
  6813. /*
  6814. * R3638 (0xE36) - EQ2_17
  6815. */
  6816. #define ARIZONA_EQ2_B4_PG_MASK 0xFFFF /* EQ2_B4_PG - [15:0] */
  6817. #define ARIZONA_EQ2_B4_PG_SHIFT 0 /* EQ2_B4_PG - [15:0] */
  6818. #define ARIZONA_EQ2_B4_PG_WIDTH 16 /* EQ2_B4_PG - [15:0] */
  6819. /*
  6820. * R3639 (0xE37) - EQ2_18
  6821. */
  6822. #define ARIZONA_EQ2_B5_A_MASK 0xFFFF /* EQ2_B5_A - [15:0] */
  6823. #define ARIZONA_EQ2_B5_A_SHIFT 0 /* EQ2_B5_A - [15:0] */
  6824. #define ARIZONA_EQ2_B5_A_WIDTH 16 /* EQ2_B5_A - [15:0] */
  6825. /*
  6826. * R3640 (0xE38) - EQ2_19
  6827. */
  6828. #define ARIZONA_EQ2_B5_B_MASK 0xFFFF /* EQ2_B5_B - [15:0] */
  6829. #define ARIZONA_EQ2_B5_B_SHIFT 0 /* EQ2_B5_B - [15:0] */
  6830. #define ARIZONA_EQ2_B5_B_WIDTH 16 /* EQ2_B5_B - [15:0] */
  6831. /*
  6832. * R3641 (0xE39) - EQ2_20
  6833. */
  6834. #define ARIZONA_EQ2_B5_PG_MASK 0xFFFF /* EQ2_B5_PG - [15:0] */
  6835. #define ARIZONA_EQ2_B5_PG_SHIFT 0 /* EQ2_B5_PG - [15:0] */
  6836. #define ARIZONA_EQ2_B5_PG_WIDTH 16 /* EQ2_B5_PG - [15:0] */
  6837. /*
  6838. * R3642 (0xE3A) - EQ2_21
  6839. */
  6840. #define ARIZONA_EQ2_B1_C_MASK 0xFFFF /* EQ2_B1_C - [15:0] */
  6841. #define ARIZONA_EQ2_B1_C_SHIFT 0 /* EQ2_B1_C - [15:0] */
  6842. #define ARIZONA_EQ2_B1_C_WIDTH 16 /* EQ2_B1_C - [15:0] */
  6843. /*
  6844. * R3644 (0xE3C) - EQ3_1
  6845. */
  6846. #define ARIZONA_EQ3_B1_GAIN_MASK 0xF800 /* EQ3_B1_GAIN - [15:11] */
  6847. #define ARIZONA_EQ3_B1_GAIN_SHIFT 11 /* EQ3_B1_GAIN - [15:11] */
  6848. #define ARIZONA_EQ3_B1_GAIN_WIDTH 5 /* EQ3_B1_GAIN - [15:11] */
  6849. #define ARIZONA_EQ3_B2_GAIN_MASK 0x07C0 /* EQ3_B2_GAIN - [10:6] */
  6850. #define ARIZONA_EQ3_B2_GAIN_SHIFT 6 /* EQ3_B2_GAIN - [10:6] */
  6851. #define ARIZONA_EQ3_B2_GAIN_WIDTH 5 /* EQ3_B2_GAIN - [10:6] */
  6852. #define ARIZONA_EQ3_B3_GAIN_MASK 0x003E /* EQ3_B3_GAIN - [5:1] */
  6853. #define ARIZONA_EQ3_B3_GAIN_SHIFT 1 /* EQ3_B3_GAIN - [5:1] */
  6854. #define ARIZONA_EQ3_B3_GAIN_WIDTH 5 /* EQ3_B3_GAIN - [5:1] */
  6855. #define ARIZONA_EQ3_ENA 0x0001 /* EQ3_ENA */
  6856. #define ARIZONA_EQ3_ENA_MASK 0x0001 /* EQ3_ENA */
  6857. #define ARIZONA_EQ3_ENA_SHIFT 0 /* EQ3_ENA */
  6858. #define ARIZONA_EQ3_ENA_WIDTH 1 /* EQ3_ENA */
  6859. /*
  6860. * R3645 (0xE3D) - EQ3_2
  6861. */
  6862. #define ARIZONA_EQ3_B4_GAIN_MASK 0xF800 /* EQ3_B4_GAIN - [15:11] */
  6863. #define ARIZONA_EQ3_B4_GAIN_SHIFT 11 /* EQ3_B4_GAIN - [15:11] */
  6864. #define ARIZONA_EQ3_B4_GAIN_WIDTH 5 /* EQ3_B4_GAIN - [15:11] */
  6865. #define ARIZONA_EQ3_B5_GAIN_MASK 0x07C0 /* EQ3_B5_GAIN - [10:6] */
  6866. #define ARIZONA_EQ3_B5_GAIN_SHIFT 6 /* EQ3_B5_GAIN - [10:6] */
  6867. #define ARIZONA_EQ3_B5_GAIN_WIDTH 5 /* EQ3_B5_GAIN - [10:6] */
  6868. #define ARIZONA_EQ3_B1_MODE 0x0001 /* EQ3_B1_MODE */
  6869. #define ARIZONA_EQ3_B1_MODE_MASK 0x0001 /* EQ3_B1_MODE */
  6870. #define ARIZONA_EQ3_B1_MODE_SHIFT 0 /* EQ3_B1_MODE */
  6871. #define ARIZONA_EQ3_B1_MODE_WIDTH 1 /* EQ3_B1_MODE */
  6872. /*
  6873. * R3646 (0xE3E) - EQ3_3
  6874. */
  6875. #define ARIZONA_EQ3_B1_A_MASK 0xFFFF /* EQ3_B1_A - [15:0] */
  6876. #define ARIZONA_EQ3_B1_A_SHIFT 0 /* EQ3_B1_A - [15:0] */
  6877. #define ARIZONA_EQ3_B1_A_WIDTH 16 /* EQ3_B1_A - [15:0] */
  6878. /*
  6879. * R3647 (0xE3F) - EQ3_4
  6880. */
  6881. #define ARIZONA_EQ3_B1_B_MASK 0xFFFF /* EQ3_B1_B - [15:0] */
  6882. #define ARIZONA_EQ3_B1_B_SHIFT 0 /* EQ3_B1_B - [15:0] */
  6883. #define ARIZONA_EQ3_B1_B_WIDTH 16 /* EQ3_B1_B - [15:0] */
  6884. /*
  6885. * R3648 (0xE40) - EQ3_5
  6886. */
  6887. #define ARIZONA_EQ3_B1_PG_MASK 0xFFFF /* EQ3_B1_PG - [15:0] */
  6888. #define ARIZONA_EQ3_B1_PG_SHIFT 0 /* EQ3_B1_PG - [15:0] */
  6889. #define ARIZONA_EQ3_B1_PG_WIDTH 16 /* EQ3_B1_PG - [15:0] */
  6890. /*
  6891. * R3649 (0xE41) - EQ3_6
  6892. */
  6893. #define ARIZONA_EQ3_B2_A_MASK 0xFFFF /* EQ3_B2_A - [15:0] */
  6894. #define ARIZONA_EQ3_B2_A_SHIFT 0 /* EQ3_B2_A - [15:0] */
  6895. #define ARIZONA_EQ3_B2_A_WIDTH 16 /* EQ3_B2_A - [15:0] */
  6896. /*
  6897. * R3650 (0xE42) - EQ3_7
  6898. */
  6899. #define ARIZONA_EQ3_B2_B_MASK 0xFFFF /* EQ3_B2_B - [15:0] */
  6900. #define ARIZONA_EQ3_B2_B_SHIFT 0 /* EQ3_B2_B - [15:0] */
  6901. #define ARIZONA_EQ3_B2_B_WIDTH 16 /* EQ3_B2_B - [15:0] */
  6902. /*
  6903. * R3651 (0xE43) - EQ3_8
  6904. */
  6905. #define ARIZONA_EQ3_B2_C_MASK 0xFFFF /* EQ3_B2_C - [15:0] */
  6906. #define ARIZONA_EQ3_B2_C_SHIFT 0 /* EQ3_B2_C - [15:0] */
  6907. #define ARIZONA_EQ3_B2_C_WIDTH 16 /* EQ3_B2_C - [15:0] */
  6908. /*
  6909. * R3652 (0xE44) - EQ3_9
  6910. */
  6911. #define ARIZONA_EQ3_B2_PG_MASK 0xFFFF /* EQ3_B2_PG - [15:0] */
  6912. #define ARIZONA_EQ3_B2_PG_SHIFT 0 /* EQ3_B2_PG - [15:0] */
  6913. #define ARIZONA_EQ3_B2_PG_WIDTH 16 /* EQ3_B2_PG - [15:0] */
  6914. /*
  6915. * R3653 (0xE45) - EQ3_10
  6916. */
  6917. #define ARIZONA_EQ3_B3_A_MASK 0xFFFF /* EQ3_B3_A - [15:0] */
  6918. #define ARIZONA_EQ3_B3_A_SHIFT 0 /* EQ3_B3_A - [15:0] */
  6919. #define ARIZONA_EQ3_B3_A_WIDTH 16 /* EQ3_B3_A - [15:0] */
  6920. /*
  6921. * R3654 (0xE46) - EQ3_11
  6922. */
  6923. #define ARIZONA_EQ3_B3_B_MASK 0xFFFF /* EQ3_B3_B - [15:0] */
  6924. #define ARIZONA_EQ3_B3_B_SHIFT 0 /* EQ3_B3_B - [15:0] */
  6925. #define ARIZONA_EQ3_B3_B_WIDTH 16 /* EQ3_B3_B - [15:0] */
  6926. /*
  6927. * R3655 (0xE47) - EQ3_12
  6928. */
  6929. #define ARIZONA_EQ3_B3_C_MASK 0xFFFF /* EQ3_B3_C - [15:0] */
  6930. #define ARIZONA_EQ3_B3_C_SHIFT 0 /* EQ3_B3_C - [15:0] */
  6931. #define ARIZONA_EQ3_B3_C_WIDTH 16 /* EQ3_B3_C - [15:0] */
  6932. /*
  6933. * R3656 (0xE48) - EQ3_13
  6934. */
  6935. #define ARIZONA_EQ3_B3_PG_MASK 0xFFFF /* EQ3_B3_PG - [15:0] */
  6936. #define ARIZONA_EQ3_B3_PG_SHIFT 0 /* EQ3_B3_PG - [15:0] */
  6937. #define ARIZONA_EQ3_B3_PG_WIDTH 16 /* EQ3_B3_PG - [15:0] */
  6938. /*
  6939. * R3657 (0xE49) - EQ3_14
  6940. */
  6941. #define ARIZONA_EQ3_B4_A_MASK 0xFFFF /* EQ3_B4_A - [15:0] */
  6942. #define ARIZONA_EQ3_B4_A_SHIFT 0 /* EQ3_B4_A - [15:0] */
  6943. #define ARIZONA_EQ3_B4_A_WIDTH 16 /* EQ3_B4_A - [15:0] */
  6944. /*
  6945. * R3658 (0xE4A) - EQ3_15
  6946. */
  6947. #define ARIZONA_EQ3_B4_B_MASK 0xFFFF /* EQ3_B4_B - [15:0] */
  6948. #define ARIZONA_EQ3_B4_B_SHIFT 0 /* EQ3_B4_B - [15:0] */
  6949. #define ARIZONA_EQ3_B4_B_WIDTH 16 /* EQ3_B4_B - [15:0] */
  6950. /*
  6951. * R3659 (0xE4B) - EQ3_16
  6952. */
  6953. #define ARIZONA_EQ3_B4_C_MASK 0xFFFF /* EQ3_B4_C - [15:0] */
  6954. #define ARIZONA_EQ3_B4_C_SHIFT 0 /* EQ3_B4_C - [15:0] */
  6955. #define ARIZONA_EQ3_B4_C_WIDTH 16 /* EQ3_B4_C - [15:0] */
  6956. /*
  6957. * R3660 (0xE4C) - EQ3_17
  6958. */
  6959. #define ARIZONA_EQ3_B4_PG_MASK 0xFFFF /* EQ3_B4_PG - [15:0] */
  6960. #define ARIZONA_EQ3_B4_PG_SHIFT 0 /* EQ3_B4_PG - [15:0] */
  6961. #define ARIZONA_EQ3_B4_PG_WIDTH 16 /* EQ3_B4_PG - [15:0] */
  6962. /*
  6963. * R3661 (0xE4D) - EQ3_18
  6964. */
  6965. #define ARIZONA_EQ3_B5_A_MASK 0xFFFF /* EQ3_B5_A - [15:0] */
  6966. #define ARIZONA_EQ3_B5_A_SHIFT 0 /* EQ3_B5_A - [15:0] */
  6967. #define ARIZONA_EQ3_B5_A_WIDTH 16 /* EQ3_B5_A - [15:0] */
  6968. /*
  6969. * R3662 (0xE4E) - EQ3_19
  6970. */
  6971. #define ARIZONA_EQ3_B5_B_MASK 0xFFFF /* EQ3_B5_B - [15:0] */
  6972. #define ARIZONA_EQ3_B5_B_SHIFT 0 /* EQ3_B5_B - [15:0] */
  6973. #define ARIZONA_EQ3_B5_B_WIDTH 16 /* EQ3_B5_B - [15:0] */
  6974. /*
  6975. * R3663 (0xE4F) - EQ3_20
  6976. */
  6977. #define ARIZONA_EQ3_B5_PG_MASK 0xFFFF /* EQ3_B5_PG - [15:0] */
  6978. #define ARIZONA_EQ3_B5_PG_SHIFT 0 /* EQ3_B5_PG - [15:0] */
  6979. #define ARIZONA_EQ3_B5_PG_WIDTH 16 /* EQ3_B5_PG - [15:0] */
  6980. /*
  6981. * R3664 (0xE50) - EQ3_21
  6982. */
  6983. #define ARIZONA_EQ3_B1_C_MASK 0xFFFF /* EQ3_B1_C - [15:0] */
  6984. #define ARIZONA_EQ3_B1_C_SHIFT 0 /* EQ3_B1_C - [15:0] */
  6985. #define ARIZONA_EQ3_B1_C_WIDTH 16 /* EQ3_B1_C - [15:0] */
  6986. /*
  6987. * R3666 (0xE52) - EQ4_1
  6988. */
  6989. #define ARIZONA_EQ4_B1_GAIN_MASK 0xF800 /* EQ4_B1_GAIN - [15:11] */
  6990. #define ARIZONA_EQ4_B1_GAIN_SHIFT 11 /* EQ4_B1_GAIN - [15:11] */
  6991. #define ARIZONA_EQ4_B1_GAIN_WIDTH 5 /* EQ4_B1_GAIN - [15:11] */
  6992. #define ARIZONA_EQ4_B2_GAIN_MASK 0x07C0 /* EQ4_B2_GAIN - [10:6] */
  6993. #define ARIZONA_EQ4_B2_GAIN_SHIFT 6 /* EQ4_B2_GAIN - [10:6] */
  6994. #define ARIZONA_EQ4_B2_GAIN_WIDTH 5 /* EQ4_B2_GAIN - [10:6] */
  6995. #define ARIZONA_EQ4_B3_GAIN_MASK 0x003E /* EQ4_B3_GAIN - [5:1] */
  6996. #define ARIZONA_EQ4_B3_GAIN_SHIFT 1 /* EQ4_B3_GAIN - [5:1] */
  6997. #define ARIZONA_EQ4_B3_GAIN_WIDTH 5 /* EQ4_B3_GAIN - [5:1] */
  6998. #define ARIZONA_EQ4_ENA 0x0001 /* EQ4_ENA */
  6999. #define ARIZONA_EQ4_ENA_MASK 0x0001 /* EQ4_ENA */
  7000. #define ARIZONA_EQ4_ENA_SHIFT 0 /* EQ4_ENA */
  7001. #define ARIZONA_EQ4_ENA_WIDTH 1 /* EQ4_ENA */
  7002. /*
  7003. * R3667 (0xE53) - EQ4_2
  7004. */
  7005. #define ARIZONA_EQ4_B4_GAIN_MASK 0xF800 /* EQ4_B4_GAIN - [15:11] */
  7006. #define ARIZONA_EQ4_B4_GAIN_SHIFT 11 /* EQ4_B4_GAIN - [15:11] */
  7007. #define ARIZONA_EQ4_B4_GAIN_WIDTH 5 /* EQ4_B4_GAIN - [15:11] */
  7008. #define ARIZONA_EQ4_B5_GAIN_MASK 0x07C0 /* EQ4_B5_GAIN - [10:6] */
  7009. #define ARIZONA_EQ4_B5_GAIN_SHIFT 6 /* EQ4_B5_GAIN - [10:6] */
  7010. #define ARIZONA_EQ4_B5_GAIN_WIDTH 5 /* EQ4_B5_GAIN - [10:6] */
  7011. #define ARIZONA_EQ4_B1_MODE 0x0001 /* EQ4_B1_MODE */
  7012. #define ARIZONA_EQ4_B1_MODE_MASK 0x0001 /* EQ4_B1_MODE */
  7013. #define ARIZONA_EQ4_B1_MODE_SHIFT 0 /* EQ4_B1_MODE */
  7014. #define ARIZONA_EQ4_B1_MODE_WIDTH 1 /* EQ4_B1_MODE */
  7015. /*
  7016. * R3668 (0xE54) - EQ4_3
  7017. */
  7018. #define ARIZONA_EQ4_B1_A_MASK 0xFFFF /* EQ4_B1_A - [15:0] */
  7019. #define ARIZONA_EQ4_B1_A_SHIFT 0 /* EQ4_B1_A - [15:0] */
  7020. #define ARIZONA_EQ4_B1_A_WIDTH 16 /* EQ4_B1_A - [15:0] */
  7021. /*
  7022. * R3669 (0xE55) - EQ4_4
  7023. */
  7024. #define ARIZONA_EQ4_B1_B_MASK 0xFFFF /* EQ4_B1_B - [15:0] */
  7025. #define ARIZONA_EQ4_B1_B_SHIFT 0 /* EQ4_B1_B - [15:0] */
  7026. #define ARIZONA_EQ4_B1_B_WIDTH 16 /* EQ4_B1_B - [15:0] */
  7027. /*
  7028. * R3670 (0xE56) - EQ4_5
  7029. */
  7030. #define ARIZONA_EQ4_B1_PG_MASK 0xFFFF /* EQ4_B1_PG - [15:0] */
  7031. #define ARIZONA_EQ4_B1_PG_SHIFT 0 /* EQ4_B1_PG - [15:0] */
  7032. #define ARIZONA_EQ4_B1_PG_WIDTH 16 /* EQ4_B1_PG - [15:0] */
  7033. /*
  7034. * R3671 (0xE57) - EQ4_6
  7035. */
  7036. #define ARIZONA_EQ4_B2_A_MASK 0xFFFF /* EQ4_B2_A - [15:0] */
  7037. #define ARIZONA_EQ4_B2_A_SHIFT 0 /* EQ4_B2_A - [15:0] */
  7038. #define ARIZONA_EQ4_B2_A_WIDTH 16 /* EQ4_B2_A - [15:0] */
  7039. /*
  7040. * R3672 (0xE58) - EQ4_7
  7041. */
  7042. #define ARIZONA_EQ4_B2_B_MASK 0xFFFF /* EQ4_B2_B - [15:0] */
  7043. #define ARIZONA_EQ4_B2_B_SHIFT 0 /* EQ4_B2_B - [15:0] */
  7044. #define ARIZONA_EQ4_B2_B_WIDTH 16 /* EQ4_B2_B - [15:0] */
  7045. /*
  7046. * R3673 (0xE59) - EQ4_8
  7047. */
  7048. #define ARIZONA_EQ4_B2_C_MASK 0xFFFF /* EQ4_B2_C - [15:0] */
  7049. #define ARIZONA_EQ4_B2_C_SHIFT 0 /* EQ4_B2_C - [15:0] */
  7050. #define ARIZONA_EQ4_B2_C_WIDTH 16 /* EQ4_B2_C - [15:0] */
  7051. /*
  7052. * R3674 (0xE5A) - EQ4_9
  7053. */
  7054. #define ARIZONA_EQ4_B2_PG_MASK 0xFFFF /* EQ4_B2_PG - [15:0] */
  7055. #define ARIZONA_EQ4_B2_PG_SHIFT 0 /* EQ4_B2_PG - [15:0] */
  7056. #define ARIZONA_EQ4_B2_PG_WIDTH 16 /* EQ4_B2_PG - [15:0] */
  7057. /*
  7058. * R3675 (0xE5B) - EQ4_10
  7059. */
  7060. #define ARIZONA_EQ4_B3_A_MASK 0xFFFF /* EQ4_B3_A - [15:0] */
  7061. #define ARIZONA_EQ4_B3_A_SHIFT 0 /* EQ4_B3_A - [15:0] */
  7062. #define ARIZONA_EQ4_B3_A_WIDTH 16 /* EQ4_B3_A - [15:0] */
  7063. /*
  7064. * R3676 (0xE5C) - EQ4_11
  7065. */
  7066. #define ARIZONA_EQ4_B3_B_MASK 0xFFFF /* EQ4_B3_B - [15:0] */
  7067. #define ARIZONA_EQ4_B3_B_SHIFT 0 /* EQ4_B3_B - [15:0] */
  7068. #define ARIZONA_EQ4_B3_B_WIDTH 16 /* EQ4_B3_B - [15:0] */
  7069. /*
  7070. * R3677 (0xE5D) - EQ4_12
  7071. */
  7072. #define ARIZONA_EQ4_B3_C_MASK 0xFFFF /* EQ4_B3_C - [15:0] */
  7073. #define ARIZONA_EQ4_B3_C_SHIFT 0 /* EQ4_B3_C - [15:0] */
  7074. #define ARIZONA_EQ4_B3_C_WIDTH 16 /* EQ4_B3_C - [15:0] */
  7075. /*
  7076. * R3678 (0xE5E) - EQ4_13
  7077. */
  7078. #define ARIZONA_EQ4_B3_PG_MASK 0xFFFF /* EQ4_B3_PG - [15:0] */
  7079. #define ARIZONA_EQ4_B3_PG_SHIFT 0 /* EQ4_B3_PG - [15:0] */
  7080. #define ARIZONA_EQ4_B3_PG_WIDTH 16 /* EQ4_B3_PG - [15:0] */
  7081. /*
  7082. * R3679 (0xE5F) - EQ4_14
  7083. */
  7084. #define ARIZONA_EQ4_B4_A_MASK 0xFFFF /* EQ4_B4_A - [15:0] */
  7085. #define ARIZONA_EQ4_B4_A_SHIFT 0 /* EQ4_B4_A - [15:0] */
  7086. #define ARIZONA_EQ4_B4_A_WIDTH 16 /* EQ4_B4_A - [15:0] */
  7087. /*
  7088. * R3680 (0xE60) - EQ4_15
  7089. */
  7090. #define ARIZONA_EQ4_B4_B_MASK 0xFFFF /* EQ4_B4_B - [15:0] */
  7091. #define ARIZONA_EQ4_B4_B_SHIFT 0 /* EQ4_B4_B - [15:0] */
  7092. #define ARIZONA_EQ4_B4_B_WIDTH 16 /* EQ4_B4_B - [15:0] */
  7093. /*
  7094. * R3681 (0xE61) - EQ4_16
  7095. */
  7096. #define ARIZONA_EQ4_B4_C_MASK 0xFFFF /* EQ4_B4_C - [15:0] */
  7097. #define ARIZONA_EQ4_B4_C_SHIFT 0 /* EQ4_B4_C - [15:0] */
  7098. #define ARIZONA_EQ4_B4_C_WIDTH 16 /* EQ4_B4_C - [15:0] */
  7099. /*
  7100. * R3682 (0xE62) - EQ4_17
  7101. */
  7102. #define ARIZONA_EQ4_B4_PG_MASK 0xFFFF /* EQ4_B4_PG - [15:0] */
  7103. #define ARIZONA_EQ4_B4_PG_SHIFT 0 /* EQ4_B4_PG - [15:0] */
  7104. #define ARIZONA_EQ4_B4_PG_WIDTH 16 /* EQ4_B4_PG - [15:0] */
  7105. /*
  7106. * R3683 (0xE63) - EQ4_18
  7107. */
  7108. #define ARIZONA_EQ4_B5_A_MASK 0xFFFF /* EQ4_B5_A - [15:0] */
  7109. #define ARIZONA_EQ4_B5_A_SHIFT 0 /* EQ4_B5_A - [15:0] */
  7110. #define ARIZONA_EQ4_B5_A_WIDTH 16 /* EQ4_B5_A - [15:0] */
  7111. /*
  7112. * R3684 (0xE64) - EQ4_19
  7113. */
  7114. #define ARIZONA_EQ4_B5_B_MASK 0xFFFF /* EQ4_B5_B - [15:0] */
  7115. #define ARIZONA_EQ4_B5_B_SHIFT 0 /* EQ4_B5_B - [15:0] */
  7116. #define ARIZONA_EQ4_B5_B_WIDTH 16 /* EQ4_B5_B - [15:0] */
  7117. /*
  7118. * R3685 (0xE65) - EQ4_20
  7119. */
  7120. #define ARIZONA_EQ4_B5_PG_MASK 0xFFFF /* EQ4_B5_PG - [15:0] */
  7121. #define ARIZONA_EQ4_B5_PG_SHIFT 0 /* EQ4_B5_PG - [15:0] */
  7122. #define ARIZONA_EQ4_B5_PG_WIDTH 16 /* EQ4_B5_PG - [15:0] */
  7123. /*
  7124. * R3686 (0xE66) - EQ4_21
  7125. */
  7126. #define ARIZONA_EQ4_B1_C_MASK 0xFFFF /* EQ4_B1_C - [15:0] */
  7127. #define ARIZONA_EQ4_B1_C_SHIFT 0 /* EQ4_B1_C - [15:0] */
  7128. #define ARIZONA_EQ4_B1_C_WIDTH 16 /* EQ4_B1_C - [15:0] */
  7129. /*
  7130. * R3712 (0xE80) - DRC1 ctrl1
  7131. */
  7132. #define ARIZONA_DRC1_SIG_DET_RMS_MASK 0xF800 /* DRC1_SIG_DET_RMS - [15:11] */
  7133. #define ARIZONA_DRC1_SIG_DET_RMS_SHIFT 11 /* DRC1_SIG_DET_RMS - [15:11] */
  7134. #define ARIZONA_DRC1_SIG_DET_RMS_WIDTH 5 /* DRC1_SIG_DET_RMS - [15:11] */
  7135. #define ARIZONA_DRC1_SIG_DET_PK_MASK 0x0600 /* DRC1_SIG_DET_PK - [10:9] */
  7136. #define ARIZONA_DRC1_SIG_DET_PK_SHIFT 9 /* DRC1_SIG_DET_PK - [10:9] */
  7137. #define ARIZONA_DRC1_SIG_DET_PK_WIDTH 2 /* DRC1_SIG_DET_PK - [10:9] */
  7138. #define ARIZONA_DRC1_NG_ENA 0x0100 /* DRC1_NG_ENA */
  7139. #define ARIZONA_DRC1_NG_ENA_MASK 0x0100 /* DRC1_NG_ENA */
  7140. #define ARIZONA_DRC1_NG_ENA_SHIFT 8 /* DRC1_NG_ENA */
  7141. #define ARIZONA_DRC1_NG_ENA_WIDTH 1 /* DRC1_NG_ENA */
  7142. #define ARIZONA_DRC1_SIG_DET_MODE 0x0080 /* DRC1_SIG_DET_MODE */
  7143. #define ARIZONA_DRC1_SIG_DET_MODE_MASK 0x0080 /* DRC1_SIG_DET_MODE */
  7144. #define ARIZONA_DRC1_SIG_DET_MODE_SHIFT 7 /* DRC1_SIG_DET_MODE */
  7145. #define ARIZONA_DRC1_SIG_DET_MODE_WIDTH 1 /* DRC1_SIG_DET_MODE */
  7146. #define ARIZONA_DRC1_SIG_DET 0x0040 /* DRC1_SIG_DET */
  7147. #define ARIZONA_DRC1_SIG_DET_MASK 0x0040 /* DRC1_SIG_DET */
  7148. #define ARIZONA_DRC1_SIG_DET_SHIFT 6 /* DRC1_SIG_DET */
  7149. #define ARIZONA_DRC1_SIG_DET_WIDTH 1 /* DRC1_SIG_DET */
  7150. #define ARIZONA_DRC1_KNEE2_OP_ENA 0x0020 /* DRC1_KNEE2_OP_ENA */
  7151. #define ARIZONA_DRC1_KNEE2_OP_ENA_MASK 0x0020 /* DRC1_KNEE2_OP_ENA */
  7152. #define ARIZONA_DRC1_KNEE2_OP_ENA_SHIFT 5 /* DRC1_KNEE2_OP_ENA */
  7153. #define ARIZONA_DRC1_KNEE2_OP_ENA_WIDTH 1 /* DRC1_KNEE2_OP_ENA */
  7154. #define ARIZONA_DRC1_QR 0x0010 /* DRC1_QR */
  7155. #define ARIZONA_DRC1_QR_MASK 0x0010 /* DRC1_QR */
  7156. #define ARIZONA_DRC1_QR_SHIFT 4 /* DRC1_QR */
  7157. #define ARIZONA_DRC1_QR_WIDTH 1 /* DRC1_QR */
  7158. #define ARIZONA_DRC1_ANTICLIP 0x0008 /* DRC1_ANTICLIP */
  7159. #define ARIZONA_DRC1_ANTICLIP_MASK 0x0008 /* DRC1_ANTICLIP */
  7160. #define ARIZONA_DRC1_ANTICLIP_SHIFT 3 /* DRC1_ANTICLIP */
  7161. #define ARIZONA_DRC1_ANTICLIP_WIDTH 1 /* DRC1_ANTICLIP */
  7162. #define ARIZONA_DRC1L_ENA 0x0002 /* DRC1L_ENA */
  7163. #define ARIZONA_DRC1L_ENA_MASK 0x0002 /* DRC1L_ENA */
  7164. #define ARIZONA_DRC1L_ENA_SHIFT 1 /* DRC1L_ENA */
  7165. #define ARIZONA_DRC1L_ENA_WIDTH 1 /* DRC1L_ENA */
  7166. #define ARIZONA_DRC1R_ENA 0x0001 /* DRC1R_ENA */
  7167. #define ARIZONA_DRC1R_ENA_MASK 0x0001 /* DRC1R_ENA */
  7168. #define ARIZONA_DRC1R_ENA_SHIFT 0 /* DRC1R_ENA */
  7169. #define ARIZONA_DRC1R_ENA_WIDTH 1 /* DRC1R_ENA */
  7170. /*
  7171. * R3713 (0xE81) - DRC1 ctrl2
  7172. */
  7173. #define ARIZONA_DRC1_ATK_MASK 0x1E00 /* DRC1_ATK - [12:9] */
  7174. #define ARIZONA_DRC1_ATK_SHIFT 9 /* DRC1_ATK - [12:9] */
  7175. #define ARIZONA_DRC1_ATK_WIDTH 4 /* DRC1_ATK - [12:9] */
  7176. #define ARIZONA_DRC1_DCY_MASK 0x01E0 /* DRC1_DCY - [8:5] */
  7177. #define ARIZONA_DRC1_DCY_SHIFT 5 /* DRC1_DCY - [8:5] */
  7178. #define ARIZONA_DRC1_DCY_WIDTH 4 /* DRC1_DCY - [8:5] */
  7179. #define ARIZONA_DRC1_MINGAIN_MASK 0x001C /* DRC1_MINGAIN - [4:2] */
  7180. #define ARIZONA_DRC1_MINGAIN_SHIFT 2 /* DRC1_MINGAIN - [4:2] */
  7181. #define ARIZONA_DRC1_MINGAIN_WIDTH 3 /* DRC1_MINGAIN - [4:2] */
  7182. #define ARIZONA_DRC1_MAXGAIN_MASK 0x0003 /* DRC1_MAXGAIN - [1:0] */
  7183. #define ARIZONA_DRC1_MAXGAIN_SHIFT 0 /* DRC1_MAXGAIN - [1:0] */
  7184. #define ARIZONA_DRC1_MAXGAIN_WIDTH 2 /* DRC1_MAXGAIN - [1:0] */
  7185. /*
  7186. * R3714 (0xE82) - DRC1 ctrl3
  7187. */
  7188. #define ARIZONA_DRC1_NG_MINGAIN_MASK 0xF000 /* DRC1_NG_MINGAIN - [15:12] */
  7189. #define ARIZONA_DRC1_NG_MINGAIN_SHIFT 12 /* DRC1_NG_MINGAIN - [15:12] */
  7190. #define ARIZONA_DRC1_NG_MINGAIN_WIDTH 4 /* DRC1_NG_MINGAIN - [15:12] */
  7191. #define ARIZONA_DRC1_NG_EXP_MASK 0x0C00 /* DRC1_NG_EXP - [11:10] */
  7192. #define ARIZONA_DRC1_NG_EXP_SHIFT 10 /* DRC1_NG_EXP - [11:10] */
  7193. #define ARIZONA_DRC1_NG_EXP_WIDTH 2 /* DRC1_NG_EXP - [11:10] */
  7194. #define ARIZONA_DRC1_QR_THR_MASK 0x0300 /* DRC1_QR_THR - [9:8] */
  7195. #define ARIZONA_DRC1_QR_THR_SHIFT 8 /* DRC1_QR_THR - [9:8] */
  7196. #define ARIZONA_DRC1_QR_THR_WIDTH 2 /* DRC1_QR_THR - [9:8] */
  7197. #define ARIZONA_DRC1_QR_DCY_MASK 0x00C0 /* DRC1_QR_DCY - [7:6] */
  7198. #define ARIZONA_DRC1_QR_DCY_SHIFT 6 /* DRC1_QR_DCY - [7:6] */
  7199. #define ARIZONA_DRC1_QR_DCY_WIDTH 2 /* DRC1_QR_DCY - [7:6] */
  7200. #define ARIZONA_DRC1_HI_COMP_MASK 0x0038 /* DRC1_HI_COMP - [5:3] */
  7201. #define ARIZONA_DRC1_HI_COMP_SHIFT 3 /* DRC1_HI_COMP - [5:3] */
  7202. #define ARIZONA_DRC1_HI_COMP_WIDTH 3 /* DRC1_HI_COMP - [5:3] */
  7203. #define ARIZONA_DRC1_LO_COMP_MASK 0x0007 /* DRC1_LO_COMP - [2:0] */
  7204. #define ARIZONA_DRC1_LO_COMP_SHIFT 0 /* DRC1_LO_COMP - [2:0] */
  7205. #define ARIZONA_DRC1_LO_COMP_WIDTH 3 /* DRC1_LO_COMP - [2:0] */
  7206. /*
  7207. * R3715 (0xE83) - DRC1 ctrl4
  7208. */
  7209. #define ARIZONA_DRC1_KNEE_IP_MASK 0x07E0 /* DRC1_KNEE_IP - [10:5] */
  7210. #define ARIZONA_DRC1_KNEE_IP_SHIFT 5 /* DRC1_KNEE_IP - [10:5] */
  7211. #define ARIZONA_DRC1_KNEE_IP_WIDTH 6 /* DRC1_KNEE_IP - [10:5] */
  7212. #define ARIZONA_DRC1_KNEE_OP_MASK 0x001F /* DRC1_KNEE_OP - [4:0] */
  7213. #define ARIZONA_DRC1_KNEE_OP_SHIFT 0 /* DRC1_KNEE_OP - [4:0] */
  7214. #define ARIZONA_DRC1_KNEE_OP_WIDTH 5 /* DRC1_KNEE_OP - [4:0] */
  7215. /*
  7216. * R3716 (0xE84) - DRC1 ctrl5
  7217. */
  7218. #define ARIZONA_DRC1_KNEE2_IP_MASK 0x03E0 /* DRC1_KNEE2_IP - [9:5] */
  7219. #define ARIZONA_DRC1_KNEE2_IP_SHIFT 5 /* DRC1_KNEE2_IP - [9:5] */
  7220. #define ARIZONA_DRC1_KNEE2_IP_WIDTH 5 /* DRC1_KNEE2_IP - [9:5] */
  7221. #define ARIZONA_DRC1_KNEE2_OP_MASK 0x001F /* DRC1_KNEE2_OP - [4:0] */
  7222. #define ARIZONA_DRC1_KNEE2_OP_SHIFT 0 /* DRC1_KNEE2_OP - [4:0] */
  7223. #define ARIZONA_DRC1_KNEE2_OP_WIDTH 5 /* DRC1_KNEE2_OP - [4:0] */
  7224. /*
  7225. * R3721 (0xE89) - DRC2 ctrl1
  7226. */
  7227. #define ARIZONA_DRC2_SIG_DET_RMS_MASK 0xF800 /* DRC2_SIG_DET_RMS - [15:11] */
  7228. #define ARIZONA_DRC2_SIG_DET_RMS_SHIFT 11 /* DRC2_SIG_DET_RMS - [15:11] */
  7229. #define ARIZONA_DRC2_SIG_DET_RMS_WIDTH 5 /* DRC2_SIG_DET_RMS - [15:11] */
  7230. #define ARIZONA_DRC2_SIG_DET_PK_MASK 0x0600 /* DRC2_SIG_DET_PK - [10:9] */
  7231. #define ARIZONA_DRC2_SIG_DET_PK_SHIFT 9 /* DRC2_SIG_DET_PK - [10:9] */
  7232. #define ARIZONA_DRC2_SIG_DET_PK_WIDTH 2 /* DRC2_SIG_DET_PK - [10:9] */
  7233. #define ARIZONA_DRC2_NG_ENA 0x0100 /* DRC2_NG_ENA */
  7234. #define ARIZONA_DRC2_NG_ENA_MASK 0x0100 /* DRC2_NG_ENA */
  7235. #define ARIZONA_DRC2_NG_ENA_SHIFT 8 /* DRC2_NG_ENA */
  7236. #define ARIZONA_DRC2_NG_ENA_WIDTH 1 /* DRC2_NG_ENA */
  7237. #define ARIZONA_DRC2_SIG_DET_MODE 0x0080 /* DRC2_SIG_DET_MODE */
  7238. #define ARIZONA_DRC2_SIG_DET_MODE_MASK 0x0080 /* DRC2_SIG_DET_MODE */
  7239. #define ARIZONA_DRC2_SIG_DET_MODE_SHIFT 7 /* DRC2_SIG_DET_MODE */
  7240. #define ARIZONA_DRC2_SIG_DET_MODE_WIDTH 1 /* DRC2_SIG_DET_MODE */
  7241. #define ARIZONA_DRC2_SIG_DET 0x0040 /* DRC2_SIG_DET */
  7242. #define ARIZONA_DRC2_SIG_DET_MASK 0x0040 /* DRC2_SIG_DET */
  7243. #define ARIZONA_DRC2_SIG_DET_SHIFT 6 /* DRC2_SIG_DET */
  7244. #define ARIZONA_DRC2_SIG_DET_WIDTH 1 /* DRC2_SIG_DET */
  7245. #define ARIZONA_DRC2_KNEE2_OP_ENA 0x0020 /* DRC2_KNEE2_OP_ENA */
  7246. #define ARIZONA_DRC2_KNEE2_OP_ENA_MASK 0x0020 /* DRC2_KNEE2_OP_ENA */
  7247. #define ARIZONA_DRC2_KNEE2_OP_ENA_SHIFT 5 /* DRC2_KNEE2_OP_ENA */
  7248. #define ARIZONA_DRC2_KNEE2_OP_ENA_WIDTH 1 /* DRC2_KNEE2_OP_ENA */
  7249. #define ARIZONA_DRC2_QR 0x0010 /* DRC2_QR */
  7250. #define ARIZONA_DRC2_QR_MASK 0x0010 /* DRC2_QR */
  7251. #define ARIZONA_DRC2_QR_SHIFT 4 /* DRC2_QR */
  7252. #define ARIZONA_DRC2_QR_WIDTH 1 /* DRC2_QR */
  7253. #define ARIZONA_DRC2_ANTICLIP 0x0008 /* DRC2_ANTICLIP */
  7254. #define ARIZONA_DRC2_ANTICLIP_MASK 0x0008 /* DRC2_ANTICLIP */
  7255. #define ARIZONA_DRC2_ANTICLIP_SHIFT 3 /* DRC2_ANTICLIP */
  7256. #define ARIZONA_DRC2_ANTICLIP_WIDTH 1 /* DRC2_ANTICLIP */
  7257. #define ARIZONA_DRC2L_ENA 0x0002 /* DRC2L_ENA */
  7258. #define ARIZONA_DRC2L_ENA_MASK 0x0002 /* DRC2L_ENA */
  7259. #define ARIZONA_DRC2L_ENA_SHIFT 1 /* DRC2L_ENA */
  7260. #define ARIZONA_DRC2L_ENA_WIDTH 1 /* DRC2L_ENA */
  7261. #define ARIZONA_DRC2R_ENA 0x0001 /* DRC2R_ENA */
  7262. #define ARIZONA_DRC2R_ENA_MASK 0x0001 /* DRC2R_ENA */
  7263. #define ARIZONA_DRC2R_ENA_SHIFT 0 /* DRC2R_ENA */
  7264. #define ARIZONA_DRC2R_ENA_WIDTH 1 /* DRC2R_ENA */
  7265. /*
  7266. * R3722 (0xE8A) - DRC2 ctrl2
  7267. */
  7268. #define ARIZONA_DRC2_ATK_MASK 0x1E00 /* DRC2_ATK - [12:9] */
  7269. #define ARIZONA_DRC2_ATK_SHIFT 9 /* DRC2_ATK - [12:9] */
  7270. #define ARIZONA_DRC2_ATK_WIDTH 4 /* DRC2_ATK - [12:9] */
  7271. #define ARIZONA_DRC2_DCY_MASK 0x01E0 /* DRC2_DCY - [8:5] */
  7272. #define ARIZONA_DRC2_DCY_SHIFT 5 /* DRC2_DCY - [8:5] */
  7273. #define ARIZONA_DRC2_DCY_WIDTH 4 /* DRC2_DCY - [8:5] */
  7274. #define ARIZONA_DRC2_MINGAIN_MASK 0x001C /* DRC2_MINGAIN - [4:2] */
  7275. #define ARIZONA_DRC2_MINGAIN_SHIFT 2 /* DRC2_MINGAIN - [4:2] */
  7276. #define ARIZONA_DRC2_MINGAIN_WIDTH 3 /* DRC2_MINGAIN - [4:2] */
  7277. #define ARIZONA_DRC2_MAXGAIN_MASK 0x0003 /* DRC2_MAXGAIN - [1:0] */
  7278. #define ARIZONA_DRC2_MAXGAIN_SHIFT 0 /* DRC2_MAXGAIN - [1:0] */
  7279. #define ARIZONA_DRC2_MAXGAIN_WIDTH 2 /* DRC2_MAXGAIN - [1:0] */
  7280. /*
  7281. * R3723 (0xE8B) - DRC2 ctrl3
  7282. */
  7283. #define ARIZONA_DRC2_NG_MINGAIN_MASK 0xF000 /* DRC2_NG_MINGAIN - [15:12] */
  7284. #define ARIZONA_DRC2_NG_MINGAIN_SHIFT 12 /* DRC2_NG_MINGAIN - [15:12] */
  7285. #define ARIZONA_DRC2_NG_MINGAIN_WIDTH 4 /* DRC2_NG_MINGAIN - [15:12] */
  7286. #define ARIZONA_DRC2_NG_EXP_MASK 0x0C00 /* DRC2_NG_EXP - [11:10] */
  7287. #define ARIZONA_DRC2_NG_EXP_SHIFT 10 /* DRC2_NG_EXP - [11:10] */
  7288. #define ARIZONA_DRC2_NG_EXP_WIDTH 2 /* DRC2_NG_EXP - [11:10] */
  7289. #define ARIZONA_DRC2_QR_THR_MASK 0x0300 /* DRC2_QR_THR - [9:8] */
  7290. #define ARIZONA_DRC2_QR_THR_SHIFT 8 /* DRC2_QR_THR - [9:8] */
  7291. #define ARIZONA_DRC2_QR_THR_WIDTH 2 /* DRC2_QR_THR - [9:8] */
  7292. #define ARIZONA_DRC2_QR_DCY_MASK 0x00C0 /* DRC2_QR_DCY - [7:6] */
  7293. #define ARIZONA_DRC2_QR_DCY_SHIFT 6 /* DRC2_QR_DCY - [7:6] */
  7294. #define ARIZONA_DRC2_QR_DCY_WIDTH 2 /* DRC2_QR_DCY - [7:6] */
  7295. #define ARIZONA_DRC2_HI_COMP_MASK 0x0038 /* DRC2_HI_COMP - [5:3] */
  7296. #define ARIZONA_DRC2_HI_COMP_SHIFT 3 /* DRC2_HI_COMP - [5:3] */
  7297. #define ARIZONA_DRC2_HI_COMP_WIDTH 3 /* DRC2_HI_COMP - [5:3] */
  7298. #define ARIZONA_DRC2_LO_COMP_MASK 0x0007 /* DRC2_LO_COMP - [2:0] */
  7299. #define ARIZONA_DRC2_LO_COMP_SHIFT 0 /* DRC2_LO_COMP - [2:0] */
  7300. #define ARIZONA_DRC2_LO_COMP_WIDTH 3 /* DRC2_LO_COMP - [2:0] */
  7301. /*
  7302. * R3724 (0xE8C) - DRC2 ctrl4
  7303. */
  7304. #define ARIZONA_DRC2_KNEE_IP_MASK 0x07E0 /* DRC2_KNEE_IP - [10:5] */
  7305. #define ARIZONA_DRC2_KNEE_IP_SHIFT 5 /* DRC2_KNEE_IP - [10:5] */
  7306. #define ARIZONA_DRC2_KNEE_IP_WIDTH 6 /* DRC2_KNEE_IP - [10:5] */
  7307. #define ARIZONA_DRC2_KNEE_OP_MASK 0x001F /* DRC2_KNEE_OP - [4:0] */
  7308. #define ARIZONA_DRC2_KNEE_OP_SHIFT 0 /* DRC2_KNEE_OP - [4:0] */
  7309. #define ARIZONA_DRC2_KNEE_OP_WIDTH 5 /* DRC2_KNEE_OP - [4:0] */
  7310. /*
  7311. * R3725 (0xE8D) - DRC2 ctrl5
  7312. */
  7313. #define ARIZONA_DRC2_KNEE2_IP_MASK 0x03E0 /* DRC2_KNEE2_IP - [9:5] */
  7314. #define ARIZONA_DRC2_KNEE2_IP_SHIFT 5 /* DRC2_KNEE2_IP - [9:5] */
  7315. #define ARIZONA_DRC2_KNEE2_IP_WIDTH 5 /* DRC2_KNEE2_IP - [9:5] */
  7316. #define ARIZONA_DRC2_KNEE2_OP_MASK 0x001F /* DRC2_KNEE2_OP - [4:0] */
  7317. #define ARIZONA_DRC2_KNEE2_OP_SHIFT 0 /* DRC2_KNEE2_OP - [4:0] */
  7318. #define ARIZONA_DRC2_KNEE2_OP_WIDTH 5 /* DRC2_KNEE2_OP - [4:0] */
  7319. /*
  7320. * R3776 (0xEC0) - HPLPF1_1
  7321. */
  7322. #define ARIZONA_LHPF1_MODE 0x0002 /* LHPF1_MODE */
  7323. #define ARIZONA_LHPF1_MODE_MASK 0x0002 /* LHPF1_MODE */
  7324. #define ARIZONA_LHPF1_MODE_SHIFT 1 /* LHPF1_MODE */
  7325. #define ARIZONA_LHPF1_MODE_WIDTH 1 /* LHPF1_MODE */
  7326. #define ARIZONA_LHPF1_ENA 0x0001 /* LHPF1_ENA */
  7327. #define ARIZONA_LHPF1_ENA_MASK 0x0001 /* LHPF1_ENA */
  7328. #define ARIZONA_LHPF1_ENA_SHIFT 0 /* LHPF1_ENA */
  7329. #define ARIZONA_LHPF1_ENA_WIDTH 1 /* LHPF1_ENA */
  7330. /*
  7331. * R3777 (0xEC1) - HPLPF1_2
  7332. */
  7333. #define ARIZONA_LHPF1_COEFF_MASK 0xFFFF /* LHPF1_COEFF - [15:0] */
  7334. #define ARIZONA_LHPF1_COEFF_SHIFT 0 /* LHPF1_COEFF - [15:0] */
  7335. #define ARIZONA_LHPF1_COEFF_WIDTH 16 /* LHPF1_COEFF - [15:0] */
  7336. /*
  7337. * R3780 (0xEC4) - HPLPF2_1
  7338. */
  7339. #define ARIZONA_LHPF2_MODE 0x0002 /* LHPF2_MODE */
  7340. #define ARIZONA_LHPF2_MODE_MASK 0x0002 /* LHPF2_MODE */
  7341. #define ARIZONA_LHPF2_MODE_SHIFT 1 /* LHPF2_MODE */
  7342. #define ARIZONA_LHPF2_MODE_WIDTH 1 /* LHPF2_MODE */
  7343. #define ARIZONA_LHPF2_ENA 0x0001 /* LHPF2_ENA */
  7344. #define ARIZONA_LHPF2_ENA_MASK 0x0001 /* LHPF2_ENA */
  7345. #define ARIZONA_LHPF2_ENA_SHIFT 0 /* LHPF2_ENA */
  7346. #define ARIZONA_LHPF2_ENA_WIDTH 1 /* LHPF2_ENA */
  7347. /*
  7348. * R3781 (0xEC5) - HPLPF2_2
  7349. */
  7350. #define ARIZONA_LHPF2_COEFF_MASK 0xFFFF /* LHPF2_COEFF - [15:0] */
  7351. #define ARIZONA_LHPF2_COEFF_SHIFT 0 /* LHPF2_COEFF - [15:0] */
  7352. #define ARIZONA_LHPF2_COEFF_WIDTH 16 /* LHPF2_COEFF - [15:0] */
  7353. /*
  7354. * R3784 (0xEC8) - HPLPF3_1
  7355. */
  7356. #define ARIZONA_LHPF3_MODE 0x0002 /* LHPF3_MODE */
  7357. #define ARIZONA_LHPF3_MODE_MASK 0x0002 /* LHPF3_MODE */
  7358. #define ARIZONA_LHPF3_MODE_SHIFT 1 /* LHPF3_MODE */
  7359. #define ARIZONA_LHPF3_MODE_WIDTH 1 /* LHPF3_MODE */
  7360. #define ARIZONA_LHPF3_ENA 0x0001 /* LHPF3_ENA */
  7361. #define ARIZONA_LHPF3_ENA_MASK 0x0001 /* LHPF3_ENA */
  7362. #define ARIZONA_LHPF3_ENA_SHIFT 0 /* LHPF3_ENA */
  7363. #define ARIZONA_LHPF3_ENA_WIDTH 1 /* LHPF3_ENA */
  7364. /*
  7365. * R3785 (0xEC9) - HPLPF3_2
  7366. */
  7367. #define ARIZONA_LHPF3_COEFF_MASK 0xFFFF /* LHPF3_COEFF - [15:0] */
  7368. #define ARIZONA_LHPF3_COEFF_SHIFT 0 /* LHPF3_COEFF - [15:0] */
  7369. #define ARIZONA_LHPF3_COEFF_WIDTH 16 /* LHPF3_COEFF - [15:0] */
  7370. /*
  7371. * R3788 (0xECC) - HPLPF4_1
  7372. */
  7373. #define ARIZONA_LHPF4_MODE 0x0002 /* LHPF4_MODE */
  7374. #define ARIZONA_LHPF4_MODE_MASK 0x0002 /* LHPF4_MODE */
  7375. #define ARIZONA_LHPF4_MODE_SHIFT 1 /* LHPF4_MODE */
  7376. #define ARIZONA_LHPF4_MODE_WIDTH 1 /* LHPF4_MODE */
  7377. #define ARIZONA_LHPF4_ENA 0x0001 /* LHPF4_ENA */
  7378. #define ARIZONA_LHPF4_ENA_MASK 0x0001 /* LHPF4_ENA */
  7379. #define ARIZONA_LHPF4_ENA_SHIFT 0 /* LHPF4_ENA */
  7380. #define ARIZONA_LHPF4_ENA_WIDTH 1 /* LHPF4_ENA */
  7381. /*
  7382. * R3789 (0xECD) - HPLPF4_2
  7383. */
  7384. #define ARIZONA_LHPF4_COEFF_MASK 0xFFFF /* LHPF4_COEFF - [15:0] */
  7385. #define ARIZONA_LHPF4_COEFF_SHIFT 0 /* LHPF4_COEFF - [15:0] */
  7386. #define ARIZONA_LHPF4_COEFF_WIDTH 16 /* LHPF4_COEFF - [15:0] */
  7387. /*
  7388. * R3808 (0xEE0) - ASRC_ENABLE
  7389. */
  7390. #define ARIZONA_ASRC2L_ENA 0x0008 /* ASRC2L_ENA */
  7391. #define ARIZONA_ASRC2L_ENA_MASK 0x0008 /* ASRC2L_ENA */
  7392. #define ARIZONA_ASRC2L_ENA_SHIFT 3 /* ASRC2L_ENA */
  7393. #define ARIZONA_ASRC2L_ENA_WIDTH 1 /* ASRC2L_ENA */
  7394. #define ARIZONA_ASRC2R_ENA 0x0004 /* ASRC2R_ENA */
  7395. #define ARIZONA_ASRC2R_ENA_MASK 0x0004 /* ASRC2R_ENA */
  7396. #define ARIZONA_ASRC2R_ENA_SHIFT 2 /* ASRC2R_ENA */
  7397. #define ARIZONA_ASRC2R_ENA_WIDTH 1 /* ASRC2R_ENA */
  7398. #define ARIZONA_ASRC1L_ENA 0x0002 /* ASRC1L_ENA */
  7399. #define ARIZONA_ASRC1L_ENA_MASK 0x0002 /* ASRC1L_ENA */
  7400. #define ARIZONA_ASRC1L_ENA_SHIFT 1 /* ASRC1L_ENA */
  7401. #define ARIZONA_ASRC1L_ENA_WIDTH 1 /* ASRC1L_ENA */
  7402. #define ARIZONA_ASRC1R_ENA 0x0001 /* ASRC1R_ENA */
  7403. #define ARIZONA_ASRC1R_ENA_MASK 0x0001 /* ASRC1R_ENA */
  7404. #define ARIZONA_ASRC1R_ENA_SHIFT 0 /* ASRC1R_ENA */
  7405. #define ARIZONA_ASRC1R_ENA_WIDTH 1 /* ASRC1R_ENA */
  7406. /*
  7407. * R3810 (0xEE2) - ASRC_RATE1
  7408. */
  7409. #define ARIZONA_ASRC_RATE1_MASK 0x7800 /* ASRC_RATE1 - [14:11] */
  7410. #define ARIZONA_ASRC_RATE1_SHIFT 11 /* ASRC_RATE1 - [14:11] */
  7411. #define ARIZONA_ASRC_RATE1_WIDTH 4 /* ASRC_RATE1 - [14:11] */
  7412. /*
  7413. * R3811 (0xEE3) - ASRC_RATE2
  7414. */
  7415. #define ARIZONA_ASRC_RATE2_MASK 0x7800 /* ASRC_RATE2 - [14:11] */
  7416. #define ARIZONA_ASRC_RATE2_SHIFT 11 /* ASRC_RATE2 - [14:11] */
  7417. #define ARIZONA_ASRC_RATE2_WIDTH 4 /* ASRC_RATE2 - [14:11] */
  7418. /*
  7419. * R3824 (0xEF0) - ISRC 1 CTRL 1
  7420. */
  7421. #define ARIZONA_ISRC1_FSH_MASK 0x7800 /* ISRC1_FSH - [14:11] */
  7422. #define ARIZONA_ISRC1_FSH_SHIFT 11 /* ISRC1_FSH - [14:11] */
  7423. #define ARIZONA_ISRC1_FSH_WIDTH 4 /* ISRC1_FSH - [14:11] */
  7424. #define ARIZONA_ISRC1_CLK_SEL_MASK 0x0700 /* ISRC1_CLK_SEL - [10:8] */
  7425. #define ARIZONA_ISRC1_CLK_SEL_SHIFT 8 /* ISRC1_CLK_SEL - [10:8] */
  7426. #define ARIZONA_ISRC1_CLK_SEL_WIDTH 3 /* ISRC1_CLK_SEL - [10:8] */
  7427. /*
  7428. * R3825 (0xEF1) - ISRC 1 CTRL 2
  7429. */
  7430. #define ARIZONA_ISRC1_FSL_MASK 0x7800 /* ISRC1_FSL - [14:11] */
  7431. #define ARIZONA_ISRC1_FSL_SHIFT 11 /* ISRC1_FSL - [14:11] */
  7432. #define ARIZONA_ISRC1_FSL_WIDTH 4 /* ISRC1_FSL - [14:11] */
  7433. /*
  7434. * R3826 (0xEF2) - ISRC 1 CTRL 3
  7435. */
  7436. #define ARIZONA_ISRC1_INT0_ENA 0x8000 /* ISRC1_INT0_ENA */
  7437. #define ARIZONA_ISRC1_INT0_ENA_MASK 0x8000 /* ISRC1_INT0_ENA */
  7438. #define ARIZONA_ISRC1_INT0_ENA_SHIFT 15 /* ISRC1_INT0_ENA */
  7439. #define ARIZONA_ISRC1_INT0_ENA_WIDTH 1 /* ISRC1_INT0_ENA */
  7440. #define ARIZONA_ISRC1_INT1_ENA 0x4000 /* ISRC1_INT1_ENA */
  7441. #define ARIZONA_ISRC1_INT1_ENA_MASK 0x4000 /* ISRC1_INT1_ENA */
  7442. #define ARIZONA_ISRC1_INT1_ENA_SHIFT 14 /* ISRC1_INT1_ENA */
  7443. #define ARIZONA_ISRC1_INT1_ENA_WIDTH 1 /* ISRC1_INT1_ENA */
  7444. #define ARIZONA_ISRC1_INT2_ENA 0x2000 /* ISRC1_INT2_ENA */
  7445. #define ARIZONA_ISRC1_INT2_ENA_MASK 0x2000 /* ISRC1_INT2_ENA */
  7446. #define ARIZONA_ISRC1_INT2_ENA_SHIFT 13 /* ISRC1_INT2_ENA */
  7447. #define ARIZONA_ISRC1_INT2_ENA_WIDTH 1 /* ISRC1_INT2_ENA */
  7448. #define ARIZONA_ISRC1_INT3_ENA 0x1000 /* ISRC1_INT3_ENA */
  7449. #define ARIZONA_ISRC1_INT3_ENA_MASK 0x1000 /* ISRC1_INT3_ENA */
  7450. #define ARIZONA_ISRC1_INT3_ENA_SHIFT 12 /* ISRC1_INT3_ENA */
  7451. #define ARIZONA_ISRC1_INT3_ENA_WIDTH 1 /* ISRC1_INT3_ENA */
  7452. #define ARIZONA_ISRC1_DEC0_ENA 0x0200 /* ISRC1_DEC0_ENA */
  7453. #define ARIZONA_ISRC1_DEC0_ENA_MASK 0x0200 /* ISRC1_DEC0_ENA */
  7454. #define ARIZONA_ISRC1_DEC0_ENA_SHIFT 9 /* ISRC1_DEC0_ENA */
  7455. #define ARIZONA_ISRC1_DEC0_ENA_WIDTH 1 /* ISRC1_DEC0_ENA */
  7456. #define ARIZONA_ISRC1_DEC1_ENA 0x0100 /* ISRC1_DEC1_ENA */
  7457. #define ARIZONA_ISRC1_DEC1_ENA_MASK 0x0100 /* ISRC1_DEC1_ENA */
  7458. #define ARIZONA_ISRC1_DEC1_ENA_SHIFT 8 /* ISRC1_DEC1_ENA */
  7459. #define ARIZONA_ISRC1_DEC1_ENA_WIDTH 1 /* ISRC1_DEC1_ENA */
  7460. #define ARIZONA_ISRC1_DEC2_ENA 0x0080 /* ISRC1_DEC2_ENA */
  7461. #define ARIZONA_ISRC1_DEC2_ENA_MASK 0x0080 /* ISRC1_DEC2_ENA */
  7462. #define ARIZONA_ISRC1_DEC2_ENA_SHIFT 7 /* ISRC1_DEC2_ENA */
  7463. #define ARIZONA_ISRC1_DEC2_ENA_WIDTH 1 /* ISRC1_DEC2_ENA */
  7464. #define ARIZONA_ISRC1_DEC3_ENA 0x0040 /* ISRC1_DEC3_ENA */
  7465. #define ARIZONA_ISRC1_DEC3_ENA_MASK 0x0040 /* ISRC1_DEC3_ENA */
  7466. #define ARIZONA_ISRC1_DEC3_ENA_SHIFT 6 /* ISRC1_DEC3_ENA */
  7467. #define ARIZONA_ISRC1_DEC3_ENA_WIDTH 1 /* ISRC1_DEC3_ENA */
  7468. #define ARIZONA_ISRC1_NOTCH_ENA 0x0001 /* ISRC1_NOTCH_ENA */
  7469. #define ARIZONA_ISRC1_NOTCH_ENA_MASK 0x0001 /* ISRC1_NOTCH_ENA */
  7470. #define ARIZONA_ISRC1_NOTCH_ENA_SHIFT 0 /* ISRC1_NOTCH_ENA */
  7471. #define ARIZONA_ISRC1_NOTCH_ENA_WIDTH 1 /* ISRC1_NOTCH_ENA */
  7472. /*
  7473. * R3827 (0xEF3) - ISRC 2 CTRL 1
  7474. */
  7475. #define ARIZONA_ISRC2_FSH_MASK 0x7800 /* ISRC2_FSH - [14:11] */
  7476. #define ARIZONA_ISRC2_FSH_SHIFT 11 /* ISRC2_FSH - [14:11] */
  7477. #define ARIZONA_ISRC2_FSH_WIDTH 4 /* ISRC2_FSH - [14:11] */
  7478. #define ARIZONA_ISRC2_CLK_SEL_MASK 0x0700 /* ISRC2_CLK_SEL - [10:8] */
  7479. #define ARIZONA_ISRC2_CLK_SEL_SHIFT 8 /* ISRC2_CLK_SEL - [10:8] */
  7480. #define ARIZONA_ISRC2_CLK_SEL_WIDTH 3 /* ISRC2_CLK_SEL - [10:8] */
  7481. /*
  7482. * R3828 (0xEF4) - ISRC 2 CTRL 2
  7483. */
  7484. #define ARIZONA_ISRC2_FSL_MASK 0x7800 /* ISRC2_FSL - [14:11] */
  7485. #define ARIZONA_ISRC2_FSL_SHIFT 11 /* ISRC2_FSL - [14:11] */
  7486. #define ARIZONA_ISRC2_FSL_WIDTH 4 /* ISRC2_FSL - [14:11] */
  7487. /*
  7488. * R3829 (0xEF5) - ISRC 2 CTRL 3
  7489. */
  7490. #define ARIZONA_ISRC2_INT0_ENA 0x8000 /* ISRC2_INT0_ENA */
  7491. #define ARIZONA_ISRC2_INT0_ENA_MASK 0x8000 /* ISRC2_INT0_ENA */
  7492. #define ARIZONA_ISRC2_INT0_ENA_SHIFT 15 /* ISRC2_INT0_ENA */
  7493. #define ARIZONA_ISRC2_INT0_ENA_WIDTH 1 /* ISRC2_INT0_ENA */
  7494. #define ARIZONA_ISRC2_INT1_ENA 0x4000 /* ISRC2_INT1_ENA */
  7495. #define ARIZONA_ISRC2_INT1_ENA_MASK 0x4000 /* ISRC2_INT1_ENA */
  7496. #define ARIZONA_ISRC2_INT1_ENA_SHIFT 14 /* ISRC2_INT1_ENA */
  7497. #define ARIZONA_ISRC2_INT1_ENA_WIDTH 1 /* ISRC2_INT1_ENA */
  7498. #define ARIZONA_ISRC2_INT2_ENA 0x2000 /* ISRC2_INT2_ENA */
  7499. #define ARIZONA_ISRC2_INT2_ENA_MASK 0x2000 /* ISRC2_INT2_ENA */
  7500. #define ARIZONA_ISRC2_INT2_ENA_SHIFT 13 /* ISRC2_INT2_ENA */
  7501. #define ARIZONA_ISRC2_INT2_ENA_WIDTH 1 /* ISRC2_INT2_ENA */
  7502. #define ARIZONA_ISRC2_INT3_ENA 0x1000 /* ISRC2_INT3_ENA */
  7503. #define ARIZONA_ISRC2_INT3_ENA_MASK 0x1000 /* ISRC2_INT3_ENA */
  7504. #define ARIZONA_ISRC2_INT3_ENA_SHIFT 12 /* ISRC2_INT3_ENA */
  7505. #define ARIZONA_ISRC2_INT3_ENA_WIDTH 1 /* ISRC2_INT3_ENA */
  7506. #define ARIZONA_ISRC2_DEC0_ENA 0x0200 /* ISRC2_DEC0_ENA */
  7507. #define ARIZONA_ISRC2_DEC0_ENA_MASK 0x0200 /* ISRC2_DEC0_ENA */
  7508. #define ARIZONA_ISRC2_DEC0_ENA_SHIFT 9 /* ISRC2_DEC0_ENA */
  7509. #define ARIZONA_ISRC2_DEC0_ENA_WIDTH 1 /* ISRC2_DEC0_ENA */
  7510. #define ARIZONA_ISRC2_DEC1_ENA 0x0100 /* ISRC2_DEC1_ENA */
  7511. #define ARIZONA_ISRC2_DEC1_ENA_MASK 0x0100 /* ISRC2_DEC1_ENA */
  7512. #define ARIZONA_ISRC2_DEC1_ENA_SHIFT 8 /* ISRC2_DEC1_ENA */
  7513. #define ARIZONA_ISRC2_DEC1_ENA_WIDTH 1 /* ISRC2_DEC1_ENA */
  7514. #define ARIZONA_ISRC2_DEC2_ENA 0x0080 /* ISRC2_DEC2_ENA */
  7515. #define ARIZONA_ISRC2_DEC2_ENA_MASK 0x0080 /* ISRC2_DEC2_ENA */
  7516. #define ARIZONA_ISRC2_DEC2_ENA_SHIFT 7 /* ISRC2_DEC2_ENA */
  7517. #define ARIZONA_ISRC2_DEC2_ENA_WIDTH 1 /* ISRC2_DEC2_ENA */
  7518. #define ARIZONA_ISRC2_DEC3_ENA 0x0040 /* ISRC2_DEC3_ENA */
  7519. #define ARIZONA_ISRC2_DEC3_ENA_MASK 0x0040 /* ISRC2_DEC3_ENA */
  7520. #define ARIZONA_ISRC2_DEC3_ENA_SHIFT 6 /* ISRC2_DEC3_ENA */
  7521. #define ARIZONA_ISRC2_DEC3_ENA_WIDTH 1 /* ISRC2_DEC3_ENA */
  7522. #define ARIZONA_ISRC2_NOTCH_ENA 0x0001 /* ISRC2_NOTCH_ENA */
  7523. #define ARIZONA_ISRC2_NOTCH_ENA_MASK 0x0001 /* ISRC2_NOTCH_ENA */
  7524. #define ARIZONA_ISRC2_NOTCH_ENA_SHIFT 0 /* ISRC2_NOTCH_ENA */
  7525. #define ARIZONA_ISRC2_NOTCH_ENA_WIDTH 1 /* ISRC2_NOTCH_ENA */
  7526. /*
  7527. * R3830 (0xEF6) - ISRC 3 CTRL 1
  7528. */
  7529. #define ARIZONA_ISRC3_FSH_MASK 0x7800 /* ISRC3_FSH - [14:11] */
  7530. #define ARIZONA_ISRC3_FSH_SHIFT 11 /* ISRC3_FSH - [14:11] */
  7531. #define ARIZONA_ISRC3_FSH_WIDTH 4 /* ISRC3_FSH - [14:11] */
  7532. #define ARIZONA_ISRC3_CLK_SEL_MASK 0x0700 /* ISRC3_CLK_SEL - [10:8] */
  7533. #define ARIZONA_ISRC3_CLK_SEL_SHIFT 8 /* ISRC3_CLK_SEL - [10:8] */
  7534. #define ARIZONA_ISRC3_CLK_SEL_WIDTH 3 /* ISRC3_CLK_SEL - [10:8] */
  7535. /*
  7536. * R3831 (0xEF7) - ISRC 3 CTRL 2
  7537. */
  7538. #define ARIZONA_ISRC3_FSL_MASK 0x7800 /* ISRC3_FSL - [14:11] */
  7539. #define ARIZONA_ISRC3_FSL_SHIFT 11 /* ISRC3_FSL - [14:11] */
  7540. #define ARIZONA_ISRC3_FSL_WIDTH 4 /* ISRC3_FSL - [14:11] */
  7541. /*
  7542. * R3832 (0xEF8) - ISRC 3 CTRL 3
  7543. */
  7544. #define ARIZONA_ISRC3_INT0_ENA 0x8000 /* ISRC3_INT0_ENA */
  7545. #define ARIZONA_ISRC3_INT0_ENA_MASK 0x8000 /* ISRC3_INT0_ENA */
  7546. #define ARIZONA_ISRC3_INT0_ENA_SHIFT 15 /* ISRC3_INT0_ENA */
  7547. #define ARIZONA_ISRC3_INT0_ENA_WIDTH 1 /* ISRC3_INT0_ENA */
  7548. #define ARIZONA_ISRC3_INT1_ENA 0x4000 /* ISRC3_INT1_ENA */
  7549. #define ARIZONA_ISRC3_INT1_ENA_MASK 0x4000 /* ISRC3_INT1_ENA */
  7550. #define ARIZONA_ISRC3_INT1_ENA_SHIFT 14 /* ISRC3_INT1_ENA */
  7551. #define ARIZONA_ISRC3_INT1_ENA_WIDTH 1 /* ISRC3_INT1_ENA */
  7552. #define ARIZONA_ISRC3_INT2_ENA 0x2000 /* ISRC3_INT2_ENA */
  7553. #define ARIZONA_ISRC3_INT2_ENA_MASK 0x2000 /* ISRC3_INT2_ENA */
  7554. #define ARIZONA_ISRC3_INT2_ENA_SHIFT 13 /* ISRC3_INT2_ENA */
  7555. #define ARIZONA_ISRC3_INT2_ENA_WIDTH 1 /* ISRC3_INT2_ENA */
  7556. #define ARIZONA_ISRC3_INT3_ENA 0x1000 /* ISRC3_INT3_ENA */
  7557. #define ARIZONA_ISRC3_INT3_ENA_MASK 0x1000 /* ISRC3_INT3_ENA */
  7558. #define ARIZONA_ISRC3_INT3_ENA_SHIFT 12 /* ISRC3_INT3_ENA */
  7559. #define ARIZONA_ISRC3_INT3_ENA_WIDTH 1 /* ISRC3_INT3_ENA */
  7560. #define ARIZONA_ISRC3_DEC0_ENA 0x0200 /* ISRC3_DEC0_ENA */
  7561. #define ARIZONA_ISRC3_DEC0_ENA_MASK 0x0200 /* ISRC3_DEC0_ENA */
  7562. #define ARIZONA_ISRC3_DEC0_ENA_SHIFT 9 /* ISRC3_DEC0_ENA */
  7563. #define ARIZONA_ISRC3_DEC0_ENA_WIDTH 1 /* ISRC3_DEC0_ENA */
  7564. #define ARIZONA_ISRC3_DEC1_ENA 0x0100 /* ISRC3_DEC1_ENA */
  7565. #define ARIZONA_ISRC3_DEC1_ENA_MASK 0x0100 /* ISRC3_DEC1_ENA */
  7566. #define ARIZONA_ISRC3_DEC1_ENA_SHIFT 8 /* ISRC3_DEC1_ENA */
  7567. #define ARIZONA_ISRC3_DEC1_ENA_WIDTH 1 /* ISRC3_DEC1_ENA */
  7568. #define ARIZONA_ISRC3_DEC2_ENA 0x0080 /* ISRC3_DEC2_ENA */
  7569. #define ARIZONA_ISRC3_DEC2_ENA_MASK 0x0080 /* ISRC3_DEC2_ENA */
  7570. #define ARIZONA_ISRC3_DEC2_ENA_SHIFT 7 /* ISRC3_DEC2_ENA */
  7571. #define ARIZONA_ISRC3_DEC2_ENA_WIDTH 1 /* ISRC3_DEC2_ENA */
  7572. #define ARIZONA_ISRC3_DEC3_ENA 0x0040 /* ISRC3_DEC3_ENA */
  7573. #define ARIZONA_ISRC3_DEC3_ENA_MASK 0x0040 /* ISRC3_DEC3_ENA */
  7574. #define ARIZONA_ISRC3_DEC3_ENA_SHIFT 6 /* ISRC3_DEC3_ENA */
  7575. #define ARIZONA_ISRC3_DEC3_ENA_WIDTH 1 /* ISRC3_DEC3_ENA */
  7576. #define ARIZONA_ISRC3_NOTCH_ENA 0x0001 /* ISRC3_NOTCH_ENA */
  7577. #define ARIZONA_ISRC3_NOTCH_ENA_MASK 0x0001 /* ISRC3_NOTCH_ENA */
  7578. #define ARIZONA_ISRC3_NOTCH_ENA_SHIFT 0 /* ISRC3_NOTCH_ENA */
  7579. #define ARIZONA_ISRC3_NOTCH_ENA_WIDTH 1 /* ISRC3_NOTCH_ENA */
  7580. /*
  7581. * R3840 (0xF00) - Clock Control
  7582. */
  7583. #define ARIZONA_EXT_NG_SEL_CLR 0x0080 /* EXT_NG_SEL_CLR */
  7584. #define ARIZONA_EXT_NG_SEL_CLR_MASK 0x0080 /* EXT_NG_SEL_CLR */
  7585. #define ARIZONA_EXT_NG_SEL_CLR_SHIFT 7 /* EXT_NG_SEL_CLR */
  7586. #define ARIZONA_EXT_NG_SEL_CLR_WIDTH 1 /* EXT_NG_SEL_CLR */
  7587. #define ARIZONA_EXT_NG_SEL_SET 0x0040 /* EXT_NG_SEL_SET */
  7588. #define ARIZONA_EXT_NG_SEL_SET_MASK 0x0040 /* EXT_NG_SEL_SET */
  7589. #define ARIZONA_EXT_NG_SEL_SET_SHIFT 6 /* EXT_NG_SEL_SET */
  7590. #define ARIZONA_EXT_NG_SEL_SET_WIDTH 1 /* EXT_NG_SEL_SET */
  7591. #define ARIZONA_CLK_R_ENA_CLR 0x0020 /* CLK_R_ENA_CLR */
  7592. #define ARIZONA_CLK_R_ENA_CLR_MASK 0x0020 /* CLK_R_ENA_CLR */
  7593. #define ARIZONA_CLK_R_ENA_CLR_SHIFT 5 /* CLK_R_ENA_CLR */
  7594. #define ARIZONA_CLK_R_ENA_CLR_WIDTH 1 /* CLK_R_ENA_CLR */
  7595. #define ARIZONA_CLK_R_ENA_SET 0x0010 /* CLK_R_ENA_SET */
  7596. #define ARIZONA_CLK_R_ENA_SET_MASK 0x0010 /* CLK_R_ENA_SET */
  7597. #define ARIZONA_CLK_R_ENA_SET_SHIFT 4 /* CLK_R_ENA_SET */
  7598. #define ARIZONA_CLK_R_ENA_SET_WIDTH 1 /* CLK_R_ENA_SET */
  7599. #define ARIZONA_CLK_NG_ENA_CLR 0x0008 /* CLK_NG_ENA_CLR */
  7600. #define ARIZONA_CLK_NG_ENA_CLR_MASK 0x0008 /* CLK_NG_ENA_CLR */
  7601. #define ARIZONA_CLK_NG_ENA_CLR_SHIFT 3 /* CLK_NG_ENA_CLR */
  7602. #define ARIZONA_CLK_NG_ENA_CLR_WIDTH 1 /* CLK_NG_ENA_CLR */
  7603. #define ARIZONA_CLK_NG_ENA_SET 0x0004 /* CLK_NG_ENA_SET */
  7604. #define ARIZONA_CLK_NG_ENA_SET_MASK 0x0004 /* CLK_NG_ENA_SET */
  7605. #define ARIZONA_CLK_NG_ENA_SET_SHIFT 2 /* CLK_NG_ENA_SET */
  7606. #define ARIZONA_CLK_NG_ENA_SET_WIDTH 1 /* CLK_NG_ENA_SET */
  7607. #define ARIZONA_CLK_L_ENA_CLR 0x0002 /* CLK_L_ENA_CLR */
  7608. #define ARIZONA_CLK_L_ENA_CLR_MASK 0x0002 /* CLK_L_ENA_CLR */
  7609. #define ARIZONA_CLK_L_ENA_CLR_SHIFT 1 /* CLK_L_ENA_CLR */
  7610. #define ARIZONA_CLK_L_ENA_CLR_WIDTH 1 /* CLK_L_ENA_CLR */
  7611. #define ARIZONA_CLK_L_ENA_SET 0x0001 /* CLK_L_ENA_SET */
  7612. #define ARIZONA_CLK_L_ENA_SET_MASK 0x0001 /* CLK_L_ENA_SET */
  7613. #define ARIZONA_CLK_L_ENA_SET_SHIFT 0 /* CLK_L_ENA_SET */
  7614. #define ARIZONA_CLK_L_ENA_SET_WIDTH 1 /* CLK_L_ENA_SET */
  7615. /*
  7616. * R3841 (0xF01) - ANC SRC
  7617. */
  7618. #define ARIZONA_IN_RXANCR_SEL_MASK 0x0070 /* IN_RXANCR_SEL - [4:6] */
  7619. #define ARIZONA_IN_RXANCR_SEL_SHIFT 4 /* IN_RXANCR_SEL - [4:6] */
  7620. #define ARIZONA_IN_RXANCR_SEL_WIDTH 3 /* IN_RXANCR_SEL - [4:6] */
  7621. #define ARIZONA_IN_RXANCL_SEL_MASK 0x0007 /* IN_RXANCL_SEL - [0:2] */
  7622. #define ARIZONA_IN_RXANCL_SEL_SHIFT 0 /* IN_RXANCL_SEL - [0:2] */
  7623. #define ARIZONA_IN_RXANCL_SEL_WIDTH 3 /* IN_RXANCL_SEL - [0:2] */
  7624. /*
  7625. * R3863 (0xF17) - FCL ADC Reformatter Control
  7626. */
  7627. #define ARIZONA_FCL_MIC_MODE_SEL 0x000C /* FCL_MIC_MODE_SEL - [2:3] */
  7628. #define ARIZONA_FCL_MIC_MODE_SEL_SHIFT 2 /* FCL_MIC_MODE_SEL - [2:3] */
  7629. #define ARIZONA_FCL_MIC_MODE_SEL_WIDTH 2 /* FCL_MIC_MODE_SEL - [2:3] */
  7630. /*
  7631. * R3954 (0xF72) - FCR ADC Reformatter Control
  7632. */
  7633. #define ARIZONA_FCR_MIC_MODE_SEL 0x000C /* FCR_MIC_MODE_SEL - [2:3] */
  7634. #define ARIZONA_FCR_MIC_MODE_SEL_SHIFT 2 /* FCR_MIC_MODE_SEL - [2:3] */
  7635. #define ARIZONA_FCR_MIC_MODE_SEL_WIDTH 2 /* FCR_MIC_MODE_SEL - [2:3] */
  7636. /*
  7637. * R4352 (0x1100) - DSP1 Control 1
  7638. */
  7639. #define ARIZONA_DSP1_RATE_MASK 0x7800 /* DSP1_RATE - [14:11] */
  7640. #define ARIZONA_DSP1_RATE_SHIFT 11 /* DSP1_RATE - [14:11] */
  7641. #define ARIZONA_DSP1_RATE_WIDTH 4 /* DSP1_RATE - [14:11] */
  7642. #define ARIZONA_DSP1_MEM_ENA 0x0010 /* DSP1_MEM_ENA */
  7643. #define ARIZONA_DSP1_MEM_ENA_MASK 0x0010 /* DSP1_MEM_ENA */
  7644. #define ARIZONA_DSP1_MEM_ENA_SHIFT 4 /* DSP1_MEM_ENA */
  7645. #define ARIZONA_DSP1_MEM_ENA_WIDTH 1 /* DSP1_MEM_ENA */
  7646. #define ARIZONA_DSP1_SYS_ENA 0x0004 /* DSP1_SYS_ENA */
  7647. #define ARIZONA_DSP1_SYS_ENA_MASK 0x0004 /* DSP1_SYS_ENA */
  7648. #define ARIZONA_DSP1_SYS_ENA_SHIFT 2 /* DSP1_SYS_ENA */
  7649. #define ARIZONA_DSP1_SYS_ENA_WIDTH 1 /* DSP1_SYS_ENA */
  7650. #define ARIZONA_DSP1_CORE_ENA 0x0002 /* DSP1_CORE_ENA */
  7651. #define ARIZONA_DSP1_CORE_ENA_MASK 0x0002 /* DSP1_CORE_ENA */
  7652. #define ARIZONA_DSP1_CORE_ENA_SHIFT 1 /* DSP1_CORE_ENA */
  7653. #define ARIZONA_DSP1_CORE_ENA_WIDTH 1 /* DSP1_CORE_ENA */
  7654. #define ARIZONA_DSP1_START 0x0001 /* DSP1_START */
  7655. #define ARIZONA_DSP1_START_MASK 0x0001 /* DSP1_START */
  7656. #define ARIZONA_DSP1_START_SHIFT 0 /* DSP1_START */
  7657. #define ARIZONA_DSP1_START_WIDTH 1 /* DSP1_START */
  7658. /*
  7659. * R4353 (0x1101) - DSP1 Clocking 1
  7660. */
  7661. #define ARIZONA_DSP1_CLK_SEL_MASK 0x0007 /* DSP1_CLK_SEL - [2:0] */
  7662. #define ARIZONA_DSP1_CLK_SEL_SHIFT 0 /* DSP1_CLK_SEL - [2:0] */
  7663. #define ARIZONA_DSP1_CLK_SEL_WIDTH 3 /* DSP1_CLK_SEL - [2:0] */
  7664. /*
  7665. * R4356 (0x1104) - DSP1 Status 1
  7666. */
  7667. #define ARIZONA_DSP1_RAM_RDY 0x0001 /* DSP1_RAM_RDY */
  7668. #define ARIZONA_DSP1_RAM_RDY_MASK 0x0001 /* DSP1_RAM_RDY */
  7669. #define ARIZONA_DSP1_RAM_RDY_SHIFT 0 /* DSP1_RAM_RDY */
  7670. #define ARIZONA_DSP1_RAM_RDY_WIDTH 1 /* DSP1_RAM_RDY */
  7671. /*
  7672. * R4357 (0x1105) - DSP1 Status 2
  7673. */
  7674. #define ARIZONA_DSP1_PING_FULL 0x8000 /* DSP1_PING_FULL */
  7675. #define ARIZONA_DSP1_PING_FULL_MASK 0x8000 /* DSP1_PING_FULL */
  7676. #define ARIZONA_DSP1_PING_FULL_SHIFT 15 /* DSP1_PING_FULL */
  7677. #define ARIZONA_DSP1_PING_FULL_WIDTH 1 /* DSP1_PING_FULL */
  7678. #define ARIZONA_DSP1_PONG_FULL 0x4000 /* DSP1_PONG_FULL */
  7679. #define ARIZONA_DSP1_PONG_FULL_MASK 0x4000 /* DSP1_PONG_FULL */
  7680. #define ARIZONA_DSP1_PONG_FULL_SHIFT 14 /* DSP1_PONG_FULL */
  7681. #define ARIZONA_DSP1_PONG_FULL_WIDTH 1 /* DSP1_PONG_FULL */
  7682. #define ARIZONA_DSP1_WDMA_ACTIVE_CHANNELS_MASK 0x00FF /* DSP1_WDMA_ACTIVE_CHANNELS - [7:0] */
  7683. #define ARIZONA_DSP1_WDMA_ACTIVE_CHANNELS_SHIFT 0 /* DSP1_WDMA_ACTIVE_CHANNELS - [7:0] */
  7684. #define ARIZONA_DSP1_WDMA_ACTIVE_CHANNELS_WIDTH 8 /* DSP1_WDMA_ACTIVE_CHANNELS - [7:0] */
  7685. #endif