12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662 |
- /* Copyright (c) 2010-2012, The Linux Foundation. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 and
- * only version 2 as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- */
- #include <linux/module.h>
- #include <linux/delay.h>
- #include <linux/err.h>
- #include <linux/platform_device.h>
- #include <linux/mfd/msm-adie-codec.h>
- #include <linux/mfd/marimba.h>
- #include <linux/mfd/timpani-audio.h>
- #include <linux/debugfs.h>
- #include <linux/uaccess.h>
- #include <linux/string.h>
- /* Timpani codec driver is activated through Marimba core driver */
- #define MAX_MDELAY_US 20000
- #define TIMPANI_PATH_MASK(x) (1 << (x))
- #define TIMPANI_CODEC_AUXPGA_GAIN_RANGE (0x0F)
- #define TIMPANI_RX1_ST_MASK (TIMPANI_CDC_RX1_CTL_SIDETONE_EN1_L_M |\
- TIMPANI_CDC_RX1_CTL_SIDETONE_EN1_R_M)
- #define TIMPANI_RX1_ST_ENABLE ((1 << TIMPANI_CDC_RX1_CTL_SIDETONE_EN1_L_S) |\
- (1 << TIMPANI_CDC_RX1_CTL_SIDETONE_EN1_R_S))
- #define TIMPANI_CDC_ST_MIXING_TX1_MASK (TIMPANI_CDC_ST_MIXING_TX1_L_M |\
- TIMPANI_CDC_ST_MIXING_TX1_R_M)
- #define TIMPANI_CDC_ST_MIXING_TX1_ENABLE ((1 << TIMPANI_CDC_ST_MIXING_TX1_L_S)\
- | (1 << TIMPANI_CDC_ST_MIXING_TX1_R_S))
- #define TIMPANI_CDC_ST_MIXING_TX2_MASK (TIMPANI_CDC_ST_MIXING_TX2_L_M |\
- TIMPANI_CDC_ST_MIXING_TX2_R_M)
- #define TIMPANI_CDC_ST_MIXING_TX2_ENABLE ((1 << TIMPANI_CDC_ST_MIXING_TX2_L_S)\
- | (1 << TIMPANI_CDC_ST_MIXING_TX2_R_S))
- enum refcnt {
- DEC = 0,
- INC = 1,
- IGNORE = 2,
- };
- #define TIMPANI_ARRAY_SIZE (TIMPANI_A_CDC_COMP_HALT + 1)
- #define MAX_SHADOW_RIGISTERS TIMPANI_A_CDC_COMP_HALT
- static u8 timpani_shadow[TIMPANI_ARRAY_SIZE];
- struct adie_codec_path {
- struct adie_codec_dev_profile *profile;
- struct adie_codec_register_image img;
- u32 hwsetting_idx;
- u32 stage_idx;
- u32 curr_stage;
- u32 reg_owner;
- };
- enum /* regaccess blk id */
- {
- RA_BLOCK_RX1 = 0,
- RA_BLOCK_RX2,
- RA_BLOCK_TX1,
- RA_BLOCK_TX2,
- RA_BLOCK_LB,
- RA_BLOCK_SHARED_RX_LB,
- RA_BLOCK_SHARED_TX,
- RA_BLOCK_TXFE1,
- RA_BLOCK_TXFE2,
- RA_BLOCK_PA_COMMON,
- RA_BLOCK_PA_EAR,
- RA_BLOCK_PA_HPH,
- RA_BLOCK_PA_LINE,
- RA_BLOCK_PA_AUX,
- RA_BLOCK_ADC,
- RA_BLOCK_DMIC,
- RA_BLOCK_TX_I2S,
- RA_BLOCK_DRV,
- RA_BLOCK_TEST,
- RA_BLOCK_RESERVED,
- RA_BLOCK_NUM,
- };
- enum /* regaccess onwer ID */
- {
- RA_OWNER_NONE = 0,
- RA_OWNER_PATH_RX1,
- RA_OWNER_PATH_RX2,
- RA_OWNER_PATH_TX1,
- RA_OWNER_PATH_TX2,
- RA_OWNER_PATH_LB,
- RA_OWNER_DRV,
- RA_OWNER_NUM,
- };
- struct reg_acc_blk_cfg {
- u8 valid_owners[RA_OWNER_NUM];
- };
- struct reg_ref_cnt {
- u8 mask;
- u8 path_mask;
- };
- #define TIMPANI_MAX_FIELDS 5
- struct timpani_regaccess {
- u8 reg_addr;
- u8 blk_mask[RA_BLOCK_NUM];
- u8 reg_mask;
- u8 reg_default;
- struct reg_ref_cnt fld_ref_cnt[TIMPANI_MAX_FIELDS];
- };
- struct timpani_regaccess timpani_regset[] = {
- {
- TIMPANI_A_MREF,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFC, 0x0, 0x3},
- TIMPANI_MREF_M,
- TIMPANI_MREF_POR,
- {
- { .mask = 0xFC, .path_mask = 0},
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDAC_IDAC_REF_CUR,
- {0xFC, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDAC_IDAC_REF_CUR_M,
- TIMPANI_CDAC_IDAC_REF_CUR_POR,
- {
- { .mask = 0xFC, .path_mask = 0},
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXADC12_REF_CURR,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF},
- TIMPANI_TXADC12_REF_CURR_M,
- TIMPANI_TXADC12_REF_CURR_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXADC3_EN,
- { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFE, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1},
- TIMPANI_TXADC3_EN_M,
- TIMPANI_TXADC3_EN_POR,
- {
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXADC4_EN,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFE, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1},
- TIMPANI_TXADC4_EN_M,
- TIMPANI_TXADC4_EN_POR,
- {
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CODEC_TXADC_STATUS_REGISTER_1,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xC0, 0x30, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF},
- TIMPANI_CODEC_TXADC_STATUS_REGISTER_1_M,
- TIMPANI_CODEC_TXADC_STATUS_REGISTER_1_POR,
- {
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x30, .path_mask = 0},
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXFE1,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_TXFE1_M,
- TIMPANI_TXFE1_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXFE2,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_TXFE2_M,
- TIMPANI_TXFE2_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXFE12_ATEST,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_TXFE12_ATEST_M,
- TIMPANI_TXFE12_ATEST_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXFE_CLT,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF8, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7},
- TIMPANI_TXFE_CLT_M,
- TIMPANI_TXFE_CLT_POR,
- {
- { .mask = 0xF8, .path_mask = 0},
- { .mask = 0x07, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXADC1_EN,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFE, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1},
- TIMPANI_TXADC1_EN_M,
- TIMPANI_TXADC1_EN_POR,
- {
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXADC2_EN,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFE, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1},
- TIMPANI_TXADC2_EN_M,
- TIMPANI_TXADC2_EN_POR,
- {
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXADC_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_TXADC_CTL_M,
- TIMPANI_TXADC_CTL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXADC_CTL2,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_TXADC_CTL2_M,
- TIMPANI_TXADC_CTL2_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXADC_CTL3,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0xFE, 0x0, 0x0, 0x0, 0x0, 0x1},
- TIMPANI_TXADC_CTL3_M,
- TIMPANI_TXADC_CTL3_POR,
- {
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXADC_CHOP_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0xFC, 0x0, 0x0, 0x0, 0x0, 0x3},
- TIMPANI_TXADC_CHOP_CTL_M,
- TIMPANI_TXADC_CHOP_CTL_POR,
- {
- { .mask = 0xFC, .path_mask = 0},
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXFE3,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xE2, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1D},
- TIMPANI_TXFE3_M,
- TIMPANI_TXFE3_POR,
- {
- { .mask = 0xE2, .path_mask = 0},
- { .mask = 0x1D, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXFE4,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xE2, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1D},
- TIMPANI_TXFE4_M,
- TIMPANI_TXFE4_POR,
- {
- { .mask = 0xE2, .path_mask = 0},
- { .mask = 0x1D, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXFE3_ATEST,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_TXFE3_ATEST_M,
- TIMPANI_TXFE3_ATEST_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_TXFE_DIFF_SE,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0xC, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF0},
- TIMPANI_TXFE_DIFF_SE_M,
- TIMPANI_TXFE_DIFF_SE_POR,
- {
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0x0C, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDAC_RX_CLK_CTL,
- {0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDAC_RX_CLK_CTL_M,
- TIMPANI_CDAC_RX_CLK_CTL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDAC_BUFF_CTL,
- {0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDAC_BUFF_CTL_M,
- TIMPANI_CDAC_BUFF_CTL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDAC_REF_CTL1,
- {0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDAC_REF_CTL1_M,
- TIMPANI_CDAC_REF_CTL1_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_IDAC_DWA_FIR_CTL,
- {0xF8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7},
- TIMPANI_IDAC_DWA_FIR_CTL_M,
- TIMPANI_IDAC_DWA_FIR_CTL_POR,
- {
- { .mask = 0xF8, .path_mask = 0},
- { .mask = 0x07, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDAC_REF_CTL2,
- {0x6F, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x90},
- TIMPANI_CDAC_REF_CTL2_M,
- TIMPANI_CDAC_REF_CTL2_POR,
- {
- { .mask = 0x6F, .path_mask = 0},
- { .mask = 0x90, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDAC_CTL1,
- {0x7F, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80},
- TIMPANI_CDAC_CTL1_M,
- TIMPANI_CDAC_CTL1_POR,
- {
- { .mask = 0x7F, .path_mask = 0},
- { .mask = 0x80, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDAC_CTL2,
- {0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDAC_CTL2_M,
- TIMPANI_CDAC_CTL2_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_IDAC_L_CTL,
- {0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_IDAC_L_CTL_M,
- TIMPANI_IDAC_L_CTL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_IDAC_R_CTL,
- {0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_IDAC_R_CTL_M,
- TIMPANI_IDAC_R_CTL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_MASTER_BIAS,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1F,
- 0xE0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_MASTER_BIAS_M,
- TIMPANI_PA_MASTER_BIAS_POR,
- {
- { .mask = 0x1F, .path_mask = 0},
- { .mask = 0xE0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CLASSD_BIAS,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_CLASSD_BIAS_M,
- TIMPANI_PA_CLASSD_BIAS_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_AUXPGA_CUR,
- {0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_AUXPGA_CUR_M,
- TIMPANI_AUXPGA_CUR_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_AUXPGA_CM,
- {0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_AUXPGA_CM_M,
- TIMPANI_AUXPGA_CM_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_HPH_EARPA_MSTB_EN,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x2, 0xFC,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_HPH_EARPA_MSTB_EN_M,
- TIMPANI_PA_HPH_EARPA_MSTB_EN_POR,
- {
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0x02, .path_mask = 0},
- { .mask = 0xFC, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_LINE_AUXO_EN,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0xF8, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_LINE_AUXO_EN_M,
- TIMPANI_PA_LINE_AUXO_EN_POR,
- {
- { .mask = 0xF8, .path_mask = 0},
- { .mask = 0x07, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CLASSD_AUXPGA_EN,
- {0x0, 0x0, 0x0, 0x0, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xC0},
- TIMPANI_PA_CLASSD_AUXPGA_EN_M,
- TIMPANI_PA_CLASSD_AUXPGA_EN_POR,
- {
- { .mask = 0x30, .path_mask = 0},
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_LINE_L_GAIN,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFC, 0x0, 0x3},
- TIMPANI_PA_LINE_L_GAIN_M,
- TIMPANI_PA_LINE_L_GAIN_POR,
- {
- { .mask = 0xFC, .path_mask = 0},
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_LINE_R_GAIN,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFC, 0x0, 0x3},
- TIMPANI_PA_LINE_R_GAIN_M,
- TIMPANI_PA_LINE_R_GAIN_POR,
- {
- { .mask = 0xFC, .path_mask = 0},
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_HPH_L_GAIN,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFE, 0x0, 0x1},
- TIMPANI_PA_HPH_L_GAIN_M,
- TIMPANI_PA_HPH_L_GAIN_POR,
- {
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_HPH_R_GAIN,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFE, 0x0, 0x1},
- TIMPANI_PA_HPH_R_GAIN_M,
- TIMPANI_PA_HPH_R_GAIN_POR,
- {
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_AUXPGA_LR_GAIN,
- {0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_AUXPGA_LR_GAIN_M,
- TIMPANI_AUXPGA_LR_GAIN_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_AUXO_EARPA_CONN,
- {0x21, 0x42, 0x0, 0x0, 0x84, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18},
- TIMPANI_PA_AUXO_EARPA_CONN_M,
- TIMPANI_PA_AUXO_EARPA_CONN_POR,
- {
- { .mask = 0x21, .path_mask = 0},
- { .mask = 0x42, .path_mask = 0},
- { .mask = 0x84, .path_mask = 0},
- { .mask = 0x18, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_LINE_ST_CONN,
- {0x24, 0x48, 0x0, 0x0, 0x93, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_LINE_ST_CONN_M,
- TIMPANI_PA_LINE_ST_CONN_POR,
- {
- { .mask = 0x24, .path_mask = 0},
- { .mask = 0x48, .path_mask = 0},
- { .mask = 0x93, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_LINE_MONO_CONN,
- {0x24, 0x48, 0x0, 0x0, 0x93, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_LINE_MONO_CONN_M,
- TIMPANI_PA_LINE_MONO_CONN_POR,
- {
- { .mask = 0x24, .path_mask = 0},
- { .mask = 0x48, .path_mask = 0},
- { .mask = 0x93, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_HPH_ST_CONN,
- {0x24, 0x48, 0x0, 0x0, 0x90, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_HPH_ST_CONN_M,
- TIMPANI_PA_HPH_ST_CONN_POR,
- {
- { .mask = 0x24, .path_mask = 0},
- { .mask = 0x48, .path_mask = 0},
- { .mask = 0x90, .path_mask = 0},
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_HPH_MONO_CONN,
- {0x24, 0x48, 0x0, 0x0, 0x90, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3},
- TIMPANI_PA_HPH_MONO_CONN_M,
- TIMPANI_PA_HPH_MONO_CONN_POR,
- {
- { .mask = 0x24, .path_mask = 0},
- { .mask = 0x48, .path_mask = 0},
- { .mask = 0x90, .path_mask = 0},
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CLASSD_CONN,
- {0x80, 0x40, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF},
- TIMPANI_PA_CLASSD_CONN_M,
- TIMPANI_PA_CLASSD_CONN_POR,
- {
- { .mask = 0x80, .path_mask = 0},
- { .mask = 0x40, .path_mask = 0},
- { .mask = 0x20, .path_mask = 0},
- { .mask = 0x10, .path_mask = 0},
- { .mask = 0x0F, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CNP_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xCF,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x30},
- TIMPANI_PA_CNP_CTL_M,
- TIMPANI_PA_CNP_CTL_POR,
- {
- { .mask = 0xCF, .path_mask = 0},
- { .mask = 0x30, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CLASSD_L_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3F,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xC0},
- TIMPANI_PA_CLASSD_L_CTL_M,
- TIMPANI_PA_CLASSD_L_CTL_POR,
- {
- { .mask = 0x3F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CLASSD_R_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3F,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xC0},
- TIMPANI_PA_CLASSD_R_CTL_M,
- TIMPANI_PA_CLASSD_R_CTL_POR,
- {
- { .mask = 0x3F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CLASSD_INT2_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_CLASSD_INT2_CTL_M,
- TIMPANI_PA_CLASSD_INT2_CTL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_HPH_L_OCP_CLK_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_HPH_L_OCP_CLK_CTL_M,
- TIMPANI_PA_HPH_L_OCP_CLK_CTL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CLASSD_L_SW_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF7,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8},
- TIMPANI_PA_CLASSD_L_SW_CTL_M,
- TIMPANI_PA_CLASSD_L_SW_CTL_POR,
- {
- { .mask = 0xF7, .path_mask = 0},
- { .mask = 0x08, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CLASSD_L_OCP1,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_CLASSD_L_OCP1_M,
- TIMPANI_PA_CLASSD_L_OCP1_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CLASSD_L_OCP2,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_CLASSD_L_OCP2_M,
- TIMPANI_PA_CLASSD_L_OCP2_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_HPH_R_OCP_CLK_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_HPH_R_OCP_CLK_CTL_M,
- TIMPANI_PA_HPH_R_OCP_CLK_CTL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CLASSD_R_SW_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF7,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8},
- TIMPANI_PA_CLASSD_R_SW_CTL_M,
- TIMPANI_PA_CLASSD_R_SW_CTL_POR,
- {
- { .mask = 0xF7, .path_mask = 0},
- { .mask = 0x08, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CLASSD_R_OCP1,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_CLASSD_R_OCP1_M,
- TIMPANI_PA_CLASSD_R_OCP1_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CLASSD_R_OCP2,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_CLASSD_R_OCP2_M,
- TIMPANI_PA_CLASSD_R_OCP2_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_HPH_CTL1,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF},
- TIMPANI_PA_HPH_CTL1_M,
- TIMPANI_PA_HPH_CTL1_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_HPH_CTL2,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFE,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1},
- TIMPANI_PA_HPH_CTL2_M,
- TIMPANI_PA_HPH_CTL2_POR,
- {
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_LINE_AUXO_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0xC3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x3C, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_LINE_AUXO_CTL_M,
- TIMPANI_PA_LINE_AUXO_CTL_POR,
- {
- { .mask = 0xC3, .path_mask = 0},
- { .mask = 0x3C, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_AUXO_EARPA_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7, 0x0,
- 0x0, 0x38, 0x0, 0x0, 0x0, 0x0, 0x0, 0xC0},
- TIMPANI_PA_AUXO_EARPA_CTL_M,
- TIMPANI_PA_AUXO_EARPA_CTL_POR,
- {
- { .mask = 0x07, .path_mask = 0},
- { .mask = 0x38, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_EARO_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_PA_EARO_CTL_M,
- TIMPANI_PA_EARO_CTL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_MASTER_BIAS_CUR,
- {0x0, 0x0, 0x0, 0x0, 0x60, 0x0, 0x0, 0x0, 0x0, 0x80, 0x0, 0x18,
- 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1},
- TIMPANI_PA_MASTER_BIAS_CUR_M,
- TIMPANI_PA_MASTER_BIAS_CUR_POR,
- {
- { .mask = 0x60, .path_mask = 0},
- { .mask = 0x80, .path_mask = 0},
- { .mask = 0x18, .path_mask = 0},
- { .mask = 0x06, .path_mask = 0},
- { .mask = 0x01, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_CLASSD_SC_STATUS,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xCC,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x33},
- TIMPANI_PA_CLASSD_SC_STATUS_M,
- TIMPANI_PA_CLASSD_SC_STATUS_POR,
- {
- { .mask = 0xCC, .path_mask = 0},
- { .mask = 0x33, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_PA_HPH_SC_STATUS,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x88,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x77},
- TIMPANI_PA_HPH_SC_STATUS_M,
- TIMPANI_PA_HPH_SC_STATUS_POR,
- {
- { .mask = 0x88, .path_mask = 0},
- { .mask = 0x77, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_ATEST_EN,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80, 0x7F},
- TIMPANI_ATEST_EN_M,
- TIMPANI_ATEST_EN_POR,
- {
- { .mask = 0x80, .path_mask = 0},
- { .mask = 0x7F, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_ATEST_TSHKADC,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0xF0},
- TIMPANI_ATEST_TSHKADC_M,
- TIMPANI_ATEST_TSHKADC_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_ATEST_TXADC13,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7F, 0x80},
- TIMPANI_ATEST_TXADC13_M,
- TIMPANI_ATEST_TXADC13_POR,
- {
- { .mask = 0x7F, .path_mask = 0},
- { .mask = 0x80, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_ATEST_TXADC24,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7F, 0x80},
- TIMPANI_ATEST_TXADC24_M,
- TIMPANI_ATEST_TXADC24_POR,
- {
- { .mask = 0x7F, .path_mask = 0},
- { .mask = 0x80, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_ATEST_AUXPGA,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF8, 0x7},
- TIMPANI_ATEST_AUXPGA_M,
- TIMPANI_ATEST_AUXPGA_POR,
- {
- { .mask = 0xF8, .path_mask = 0},
- { .mask = 0x07, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_ATEST_CDAC,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0},
- TIMPANI_ATEST_CDAC_M,
- TIMPANI_ATEST_CDAC_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_ATEST_IDAC,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0},
- TIMPANI_ATEST_IDAC_M,
- TIMPANI_ATEST_IDAC_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_ATEST_PA1,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0},
- TIMPANI_ATEST_PA1_M,
- TIMPANI_ATEST_PA1_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_ATEST_CLASSD,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0},
- TIMPANI_ATEST_CLASSD_M,
- TIMPANI_ATEST_CLASSD_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_ATEST_LINEO_AUXO,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0},
- TIMPANI_ATEST_LINEO_AUXO_M,
- TIMPANI_ATEST_LINEO_AUXO_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RESET_CTL,
- {0x2, 0x8, 0x5, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xC0},
- TIMPANI_CDC_RESET_CTL_M,
- TIMPANI_CDC_RESET_CTL_POR,
- {
- { .mask = 0x02, .path_mask = 0},
- { .mask = 0x08, .path_mask = 0},
- { .mask = 0x05, .path_mask = 0},
- { .mask = 0x30, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX1_CTL,
- {0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_RX1_CTL_M,
- TIMPANI_CDC_RX1_CTL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TX_I2S_CTL,
- {0x0, 0x0, 0x10, 0x20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0xF, 0x0, 0x0, 0xC0},
- TIMPANI_CDC_TX_I2S_CTL_M,
- TIMPANI_CDC_TX_I2S_CTL_POR,
- {
- { .mask = 0x10, .path_mask = 0},
- { .mask = 0x20, .path_mask = 0},
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_CH_CTL,
- {0x3, 0x30, 0xC, 0xC0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_CH_CTL_M,
- TIMPANI_CDC_CH_CTL_POR,
- {
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0x30, .path_mask = 0},
- { .mask = 0x0C, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX1LG,
- {0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_RX1LG_M,
- TIMPANI_CDC_RX1LG_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX1RG,
- {0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_RX1RG_M,
- TIMPANI_CDC_RX1RG_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TX1LG,
- {0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_TX1LG_M,
- TIMPANI_CDC_TX1LG_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TX1RG,
- {0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_TX1RG_M,
- TIMPANI_CDC_TX1RG_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX_PGA_TIMER,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_RX_PGA_TIMER_M,
- TIMPANI_CDC_RX_PGA_TIMER_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TX_PGA_TIMER,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_TX_PGA_TIMER_M,
- TIMPANI_CDC_TX_PGA_TIMER_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_GCTL1,
- {0xF, 0x0, 0xF0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_GCTL1_M,
- TIMPANI_CDC_GCTL1_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TX1L_STG,
- {0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_TX1L_STG_M,
- TIMPANI_CDC_TX1L_STG_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ST_CTL,
- {0x0, 0xF, 0x0, 0xF0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_ST_CTL_M,
- TIMPANI_CDC_ST_CTL_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX1L_DCOFFSET,
- {0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_RX1L_DCOFFSET_M,
- TIMPANI_CDC_RX1L_DCOFFSET_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX1R_DCOFFSET,
- {0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_RX1R_DCOFFSET_M,
- TIMPANI_CDC_RX1R_DCOFFSET_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_BYPASS_CTL1,
- {0xF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF0},
- TIMPANI_CDC_BYPASS_CTL1_M,
- TIMPANI_CDC_BYPASS_CTL1_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_PDM_CONFIG,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0xF0},
- TIMPANI_CDC_PDM_CONFIG_M,
- TIMPANI_CDC_PDM_CONFIG_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TESTMODE1,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3F, 0xC0},
- TIMPANI_CDC_TESTMODE1_M,
- TIMPANI_CDC_TESTMODE1_POR,
- {
- { .mask = 0x3F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_DMIC_CLK_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x3F, 0x0, 0x0, 0x0, 0xC0},
- TIMPANI_CDC_DMIC_CLK_CTL_M,
- TIMPANI_CDC_DMIC_CLK_CTL_POR,
- {
- { .mask = 0x3F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ADC12_CLK_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_ADC12_CLK_CTL_M,
- TIMPANI_CDC_ADC12_CLK_CTL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TX1_CTL,
- {0x0, 0x0, 0x3F, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xC0},
- TIMPANI_CDC_TX1_CTL_M,
- TIMPANI_CDC_TX1_CTL_POR,
- {
- { .mask = 0x3F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ADC34_CLK_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_ADC34_CLK_CTL_M,
- TIMPANI_CDC_ADC34_CLK_CTL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TX2_CTL,
- {0x0, 0x0, 0x0, 0x3F, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xC0},
- TIMPANI_CDC_TX2_CTL_M,
- TIMPANI_CDC_TX2_CTL_POR,
- {
- { .mask = 0x3F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX1_CLK_CTL,
- {0x1F, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xE0},
- TIMPANI_CDC_RX1_CLK_CTL_M,
- TIMPANI_CDC_RX1_CLK_CTL_POR,
- {
- { .mask = 0x1F, .path_mask = 0},
- { .mask = 0xE0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX2_CLK_CTL,
- {0x1F, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xE0},
- TIMPANI_CDC_RX2_CLK_CTL_M,
- TIMPANI_CDC_RX2_CLK_CTL_POR,
- {
- { .mask = 0x1F, .path_mask = 0},
- { .mask = 0xE0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_DEC_ADC_SEL,
- {0x0, 0x0, 0xF, 0xF0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_DEC_ADC_SEL_M,
- TIMPANI_CDC_DEC_ADC_SEL_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC_INPUT_MUX,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x3F, 0x0, 0xC0},
- TIMPANI_CDC_ANC_INPUT_MUX_M,
- TIMPANI_CDC_ANC_INPUT_MUX_POR,
- {
- { .mask = 0x3F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC_RX_CLK_NS_SEL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0xFE},
- TIMPANI_CDC_ANC_RX_CLK_NS_SEL_M,
- TIMPANI_CDC_ANC_RX_CLK_NS_SEL_POR,
- {
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC_FB_TUNE_SEL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF},
- TIMPANI_CDC_ANC_FB_TUNE_SEL_M,
- TIMPANI_CDC_ANC_FB_TUNE_SEL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CLK_DIV_SYNC_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0x0, 0xFC},
- TIMPANI_CLK_DIV_SYNC_CTL_M,
- TIMPANI_CLK_DIV_SYNC_CTL_POR,
- {
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0xFC, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ADC_CLK_EN,
- {0x0, 0x0, 0x3, 0xC, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF0},
- TIMPANI_CDC_ADC_CLK_EN_M,
- TIMPANI_CDC_ADC_CLK_EN_POR,
- {
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0x0C, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ST_MIXING,
- {0x0, 0x0, 0x3, 0xC, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF0},
- TIMPANI_CDC_ST_MIXING_M,
- TIMPANI_CDC_ST_MIXING_POR,
- {
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0x0C, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX2_CTL,
- {0x0, 0x7F, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80},
- TIMPANI_CDC_RX2_CTL_M,
- TIMPANI_CDC_RX2_CTL_POR,
- {
- { .mask = 0x7F, .path_mask = 0},
- { .mask = 0x80, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ARB_CLK_EN,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF},
- TIMPANI_CDC_ARB_CLK_EN_M,
- TIMPANI_CDC_ARB_CLK_EN_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_I2S_CTL2,
- {0x2, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x39, 0x0, 0x0, 0xC0},
- TIMPANI_CDC_I2S_CTL2_M,
- TIMPANI_CDC_I2S_CTL2_POR,
- {
- { .mask = 0x02, .path_mask = 0},
- { .mask = 0x04, .path_mask = 0},
- { .mask = 0x39, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX2LG,
- {0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_RX2LG_M,
- TIMPANI_CDC_RX2LG_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX2RG,
- {0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_RX2RG_M,
- TIMPANI_CDC_RX2RG_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TX2LG,
- {0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_TX2LG_M,
- TIMPANI_CDC_TX2LG_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TX2RG,
- {0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_TX2RG_M,
- TIMPANI_CDC_TX2RG_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_DMIC_MUX,
- {0x0, 0x0, 0xF, 0xF0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_DMIC_MUX_M,
- TIMPANI_CDC_DMIC_MUX_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ARB_CLK_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0x0, 0xFC},
- TIMPANI_CDC_ARB_CLK_CTL_M,
- TIMPANI_CDC_ARB_CLK_CTL_POR,
- {
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0xFC, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_GCTL2,
- {0x0, 0xF, 0x0, 0xF0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_GCTL2_M,
- TIMPANI_CDC_GCTL2_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_BYPASS_CTL2,
- {0x0, 0x0, 0x3F, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xC0},
- TIMPANI_CDC_BYPASS_CTL2_M,
- TIMPANI_CDC_BYPASS_CTL2_POR,
- {
- { .mask = 0x3F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_BYPASS_CTL3,
- {0x0, 0x0, 0x0, 0x3F, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xC0},
- TIMPANI_CDC_BYPASS_CTL3_M,
- TIMPANI_CDC_BYPASS_CTL3_POR,
- {
- { .mask = 0x3F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_BYPASS_CTL4,
- {0x0, 0xF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF0},
- TIMPANI_CDC_BYPASS_CTL4_M,
- TIMPANI_CDC_BYPASS_CTL4_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX2L_DCOFFSET,
- {0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_RX2L_DCOFFSET_M,
- TIMPANI_CDC_RX2L_DCOFFSET_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX2R_DCOFFSET,
- {0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_RX2R_DCOFFSET_M,
- TIMPANI_CDC_RX2R_DCOFFSET_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_RX_MIX_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0x0, 0xFC},
- TIMPANI_CDC_RX_MIX_CTL_M,
- TIMPANI_CDC_RX_MIX_CTL_POR,
- {
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0xFC, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_SPARE_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0xFE},
- TIMPANI_CDC_SPARE_CTL_M,
- TIMPANI_CDC_SPARE_CTL_POR,
- {
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TESTMODE2,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1F, 0xE0},
- TIMPANI_CDC_TESTMODE2_M,
- TIMPANI_CDC_TESTMODE2_POR,
- {
- { .mask = 0x1F, .path_mask = 0},
- { .mask = 0xE0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_PDM_OE,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0},
- TIMPANI_CDC_PDM_OE_M,
- TIMPANI_CDC_PDM_OE_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TX1R_STG,
- {0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_TX1R_STG_M,
- TIMPANI_CDC_TX1R_STG_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TX2L_STG,
- {0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_TX2L_STG_M,
- TIMPANI_CDC_TX2L_STG_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_TX2R_STG,
- {0x0, 0x0, 0x0, 0xFF, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
- TIMPANI_CDC_TX2R_STG_M,
- TIMPANI_CDC_TX2R_STG_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ARB_BYPASS_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF},
- TIMPANI_CDC_ARB_BYPASS_CTL_M,
- TIMPANI_CDC_ARB_BYPASS_CTL_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_CTL1,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x1F, 0x0, 0xE0},
- TIMPANI_CDC_ANC1_CTL1_M,
- TIMPANI_CDC_ANC1_CTL1_POR,
- {
- { .mask = 0x1F, .path_mask = 0},
- { .mask = 0xE0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_CTL2,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x3F, 0x0, 0xC0},
- TIMPANI_CDC_ANC1_CTL2_M,
- TIMPANI_CDC_ANC1_CTL2_POR,
- {
- { .mask = 0x3F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_FF_FB_SHIFT,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_ANC1_FF_FB_SHIFT_M,
- TIMPANI_CDC_ANC1_FF_FB_SHIFT_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_RX_NS,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x7, 0x0, 0xF8},
- TIMPANI_CDC_ANC1_RX_NS_M,
- TIMPANI_CDC_ANC1_RX_NS_POR,
- {
- { .mask = 0x07, .path_mask = 0},
- { .mask = 0xF8, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_SPARE,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_ANC1_SPARE_M,
- TIMPANI_CDC_ANC1_SPARE_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_IIR_COEFF_PTR,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x1F, 0x0, 0xE0},
- TIMPANI_CDC_ANC1_IIR_COEFF_PTR_M,
- TIMPANI_CDC_ANC1_IIR_COEFF_PTR_POR,
- {
- { .mask = 0x1F, .path_mask = 0},
- { .mask = 0xE0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_IIR_COEFF_MSB,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0xFE},
- TIMPANI_CDC_ANC1_IIR_COEFF_MSB_M,
- TIMPANI_CDC_ANC1_IIR_COEFF_MSB_POR,
- {
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_IIR_COEFF_LSB,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_ANC1_IIR_COEFF_LSB_M,
- TIMPANI_CDC_ANC1_IIR_COEFF_LSB_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_IIR_COEFF_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0x0, 0xFC},
- TIMPANI_CDC_ANC1_IIR_COEFF_CTL_M,
- TIMPANI_CDC_ANC1_IIR_COEFF_CTL_POR,
- {
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0xFC, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_LPF_COEFF_PTR,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0x0, 0xF0},
- TIMPANI_CDC_ANC1_LPF_COEFF_PTR_M,
- TIMPANI_CDC_ANC1_LPF_COEFF_PTR_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_LPF_COEFF_MSB,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0x0, 0xF0},
- TIMPANI_CDC_ANC1_LPF_COEFF_MSB_M,
- TIMPANI_CDC_ANC1_LPF_COEFF_MSB_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_LPF_COEFF_LSB,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_ANC1_LPF_COEFF_LSB_M,
- TIMPANI_CDC_ANC1_LPF_COEFF_LSB_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_SCALE_PTR,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_ANC1_SCALE_PTR_M,
- TIMPANI_CDC_ANC1_SCALE_PTR_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_SCALE,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_ANC1_SCALE_M,
- TIMPANI_CDC_ANC1_SCALE_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC1_DEBUG,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0x0, 0xF0},
- TIMPANI_CDC_ANC1_DEBUG_M,
- TIMPANI_CDC_ANC1_DEBUG_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_CTL1,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x1F, 0x0, 0xE0},
- TIMPANI_CDC_ANC2_CTL1_M,
- TIMPANI_CDC_ANC2_CTL1_POR,
- {
- { .mask = 0x1F, .path_mask = 0},
- { .mask = 0xE0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_CTL2,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x3F, 0x0, 0xC0},
- TIMPANI_CDC_ANC2_CTL2_M,
- TIMPANI_CDC_ANC2_CTL2_POR,
- {
- { .mask = 0x3F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_FF_FB_SHIFT,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_ANC2_FF_FB_SHIFT_M,
- TIMPANI_CDC_ANC2_FF_FB_SHIFT_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_RX_NS,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x7, 0x0, 0xF8},
- TIMPANI_CDC_ANC2_RX_NS_M,
- TIMPANI_CDC_ANC2_RX_NS_POR,
- {
- { .mask = 0x07, .path_mask = 0},
- { .mask = 0xF8, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_SPARE,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_ANC2_SPARE_M,
- TIMPANI_CDC_ANC2_SPARE_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_IIR_COEFF_PTR,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0x0, 0xF0},
- TIMPANI_CDC_ANC2_IIR_COEFF_PTR_M,
- TIMPANI_CDC_ANC2_IIR_COEFF_PTR_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_IIR_COEFF_MSB,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0xFE},
- TIMPANI_CDC_ANC2_IIR_COEFF_MSB_M,
- TIMPANI_CDC_ANC2_IIR_COEFF_MSB_POR,
- {
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_IIR_COEFF_LSB,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_ANC2_IIR_COEFF_LSB_M,
- TIMPANI_CDC_ANC2_IIR_COEFF_LSB_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_IIR_COEFF_CTL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0x0, 0xFC},
- TIMPANI_CDC_ANC2_IIR_COEFF_CTL_M,
- TIMPANI_CDC_ANC2_IIR_COEFF_CTL_POR,
- {
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0xFC, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_LPF_COEFF_PTR,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0x0, 0xF0},
- TIMPANI_CDC_ANC2_LPF_COEFF_PTR_M,
- TIMPANI_CDC_ANC2_LPF_COEFF_PTR_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_LPF_COEFF_MSB,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0x0, 0xF0},
- TIMPANI_CDC_ANC2_LPF_COEFF_MSB_M,
- TIMPANI_CDC_ANC2_LPF_COEFF_MSB_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_LPF_COEFF_LSB,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_ANC2_LPF_COEFF_LSB_M,
- TIMPANI_CDC_ANC2_LPF_COEFF_LSB_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_SCALE_PTR,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_ANC2_SCALE_PTR_M,
- TIMPANI_CDC_ANC2_SCALE_PTR_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_SCALE,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_ANC2_SCALE_M,
- TIMPANI_CDC_ANC2_SCALE_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_ANC2_DEBUG,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0x0, 0xF0},
- TIMPANI_CDC_ANC2_DEBUG_M,
- TIMPANI_CDC_ANC2_DEBUG_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_LINE_L_AVOL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0xFC, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3},
- TIMPANI_CDC_LINE_L_AVOL_M,
- TIMPANI_CDC_LINE_L_AVOL_POR,
- {
- { .mask = 0xFC, .path_mask = 0},
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_LINE_R_AVOL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0xFC, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3},
- TIMPANI_CDC_LINE_R_AVOL_M,
- TIMPANI_CDC_LINE_R_AVOL_POR,
- {
- { .mask = 0xFC, .path_mask = 0},
- { .mask = 0x03, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_HPH_L_AVOL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFE,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1},
- TIMPANI_CDC_HPH_L_AVOL_M,
- TIMPANI_CDC_HPH_L_AVOL_POR,
- {
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_HPH_R_AVOL,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFE,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1},
- TIMPANI_CDC_HPH_R_AVOL_M,
- TIMPANI_CDC_HPH_R_AVOL_POR,
- {
- { .mask = 0xFE, .path_mask = 0},
- { .mask = 0x01, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_COMP_CTL1,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x3F, 0x0, 0xC0},
- TIMPANI_CDC_COMP_CTL1_M,
- TIMPANI_CDC_COMP_CTL1_POR,
- {
- { .mask = 0x3F, .path_mask = 0},
- { .mask = 0xC0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_COMP_CTL2,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0x0, 0xF0},
- TIMPANI_CDC_COMP_CTL2_M,
- TIMPANI_CDC_COMP_CTL2_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_COMP_PEAK_METER,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0x0, 0xF0},
- TIMPANI_CDC_COMP_PEAK_METER_M,
- TIMPANI_CDC_COMP_PEAK_METER_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_COMP_LEVEL_METER_CTL1,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0x0, 0xF0},
- TIMPANI_CDC_COMP_LEVEL_METER_CTL1_M,
- TIMPANI_CDC_COMP_LEVEL_METER_CTL1_POR,
- {
- { .mask = 0x0F, .path_mask = 0},
- { .mask = 0xF0, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_COMP_LEVEL_METER_CTL2,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_COMP_LEVEL_METER_CTL2_M,
- TIMPANI_CDC_COMP_LEVEL_METER_CTL2_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_COMP_ZONE_SELECT,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x7F, 0x0, 0x80},
- TIMPANI_CDC_COMP_ZONE_SELECT_M,
- TIMPANI_CDC_COMP_ZONE_SELECT_POR,
- {
- { .mask = 0x7F, .path_mask = 0},
- { .mask = 0x80, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_COMP_ZC_MSB,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_COMP_ZC_MSB_M,
- TIMPANI_CDC_COMP_ZC_MSB_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_COMP_ZC_LSB,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF, 0x0, 0x0},
- TIMPANI_CDC_COMP_ZC_LSB_M,
- TIMPANI_CDC_COMP_ZC_LSB_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_COMP_SHUT_DOWN,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF},
- TIMPANI_CDC_COMP_SHUT_DOWN_M,
- TIMPANI_CDC_COMP_SHUT_DOWN_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_COMP_SHUT_DOWN_STATUS,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF},
- TIMPANI_CDC_COMP_SHUT_DOWN_STATUS_M,
- TIMPANI_CDC_COMP_SHUT_DOWN_STATUS_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- },
- {
- TIMPANI_A_CDC_COMP_HALT,
- {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xFF},
- TIMPANI_CDC_COMP_HALT_M,
- TIMPANI_CDC_COMP_HALT_POR,
- {
- { .mask = 0xFF, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- { .mask = 0x00, .path_mask = 0},
- }
- }
- };
- struct reg_acc_blk_cfg timpani_blkcfg[RA_BLOCK_NUM] = {
- {
- .valid_owners = {RA_OWNER_NONE, RA_OWNER_PATH_RX1,
- 0, 0, 0, 0, RA_OWNER_DRV}
- },
- /* RA_BLOCK_RX1 */
- {
- .valid_owners = {RA_OWNER_NONE, 0, RA_OWNER_PATH_RX2,
- 0, 0, 0, RA_OWNER_DRV}
- },
- /* RA_BLOCK_RX2 */
- {
- .valid_owners = {RA_OWNER_NONE, 0, 0, RA_OWNER_PATH_TX1,
- 0, 0, RA_OWNER_DRV}
- },
- /* RA_BLOCK_TX1 */
- {
- .valid_owners = {RA_OWNER_NONE, 0, 0, 0, RA_OWNER_PATH_TX2,
- 0, RA_OWNER_DRV}
- },
- /* RA_BLOCK_TX2 */
- {
- .valid_owners = {RA_OWNER_NONE, 0, 0, 0, 0,
- RA_OWNER_PATH_LB, RA_OWNER_DRV}
- },
- /* RA_BLOCK_LB */
- {
- .valid_owners = {RA_OWNER_NONE, RA_OWNER_PATH_RX1,
- RA_OWNER_PATH_RX2, 0, 0, RA_OWNER_PATH_LB, RA_OWNER_DRV}
- },
- /* RA_BLOCK_SHARED_RX_LB */
- {
- .valid_owners = {RA_OWNER_NONE, 0, 0, RA_OWNER_PATH_TX1,
- RA_OWNER_PATH_TX2, 0, RA_OWNER_DRV}
- },
- /* RA_BLOCK_SHARED_TX */
- {
- .valid_owners = {RA_OWNER_NONE, 0, 0, RA_OWNER_PATH_TX1,
- RA_OWNER_PATH_TX2, 0, RA_OWNER_DRV}
- },
- /* RA_BLOCK_TXFE1 */
- {
- .valid_owners = {RA_OWNER_NONE, 0, 0, RA_OWNER_PATH_TX1,
- RA_OWNER_PATH_TX2, 0, RA_OWNER_DRV}
- },
- /* RA_BLOCK_TXFE2 */
- {
- .valid_owners = {RA_OWNER_NONE, RA_OWNER_PATH_RX1,
- RA_OWNER_PATH_RX2, 0, 0, RA_OWNER_PATH_LB, RA_OWNER_DRV}
- },
- /* RA_BLOCK_PA_COMMON */
- {
- .valid_owners = {RA_OWNER_NONE, RA_OWNER_PATH_RX1,
- RA_OWNER_PATH_RX2, 0, 0, RA_OWNER_PATH_LB, RA_OWNER_DRV}
- },
- /* RA_BLOCK_PA_EAR */
- {
- .valid_owners = {RA_OWNER_NONE, RA_OWNER_PATH_RX1,
- RA_OWNER_PATH_RX2, 0, 0, RA_OWNER_PATH_LB, RA_OWNER_DRV}
- },
- /* RA_BLOCK_PA_HPH */
- {
- .valid_owners = {RA_OWNER_NONE, RA_OWNER_PATH_RX1,
- RA_OWNER_PATH_RX2, 0, 0, RA_OWNER_PATH_LB, RA_OWNER_DRV}
- },
- /* RA_BLOCK_PA_LINE */
- {
- .valid_owners = {RA_OWNER_NONE, RA_OWNER_PATH_RX1,
- RA_OWNER_PATH_RX2, 0, 0, RA_OWNER_PATH_LB, RA_OWNER_DRV}
- },
- /* RA_BLOCK_PA_AUX */
- {
- .valid_owners = {RA_OWNER_NONE, 0, 0, RA_OWNER_PATH_TX1,
- RA_OWNER_PATH_TX2, 0, RA_OWNER_DRV}
- },
- /* RA_BLOCK_ADC */
- {
- .valid_owners = {RA_OWNER_NONE, 0, 0, RA_OWNER_PATH_TX1,
- RA_OWNER_PATH_TX2, 0, RA_OWNER_DRV}
- },
- /* RA_BLOCK_DMIC */
- {
- .valid_owners = {RA_OWNER_NONE, 0, 0, RA_OWNER_PATH_TX1,
- RA_OWNER_PATH_TX2, 0, RA_OWNER_DRV}
- },
- /* RA_BLOCK_TX_I2S */
- {
- .valid_owners = {RA_OWNER_NONE, 0, 0, 0, 0, 0, RA_OWNER_DRV}
- },
- /*RA_BLOCK_DRV */
- {
- .valid_owners = {RA_OWNER_NONE, 0, 0, 0, 0, 0, RA_OWNER_DRV}
- },
- /* RA_BLOCK_TEST */
- {
- .valid_owners = {RA_OWNER_NONE, 0, 0, 0, 0, 0, RA_OWNER_DRV}
- },
- /* RA_BLOCK_RESERVED */
- };
- struct adie_codec_state {
- struct adie_codec_path path[ADIE_CODEC_MAX];
- u32 ref_cnt;
- struct marimba *pdrv_ptr;
- struct marimba_codec_platform_data *codec_pdata;
- struct mutex lock;
- };
- static struct adie_codec_state adie_codec;
- /* A cacheable register is one that if the register's current value is being
- * written to it again, then it is permissable to skip that register write
- * because it does not actually change the value of the hardware register.
- *
- * Some registers are uncacheable, meaning that even they are being written
- * again with their current value, the write has another purpose and must go
- * through.
- *
- * Knowing the codec's uncacheable registers allows the driver to avoid
- * unnecessary codec register writes while making sure important register writes
- * are not skipped.
- */
- static bool timpani_register_is_cacheable(u8 reg)
- {
- switch (reg) {
- case TIMPANI_A_PA_LINE_L_GAIN:
- case TIMPANI_A_PA_LINE_R_GAIN:
- case TIMPANI_A_PA_HPH_L_GAIN:
- case TIMPANI_A_PA_HPH_R_GAIN:
- case TIMPANI_A_CDC_GCTL1:
- case TIMPANI_A_CDC_ST_CTL:
- case TIMPANI_A_CDC_GCTL2:
- case TIMPANI_A_CDC_ARB_BYPASS_CTL:
- case TIMPANI_A_CDC_CH_CTL:
- case TIMPANI_A_CDC_ANC1_IIR_COEFF_PTR:
- case TIMPANI_A_CDC_ANC1_IIR_COEFF_MSB:
- case TIMPANI_A_CDC_ANC1_IIR_COEFF_LSB:
- case TIMPANI_A_CDC_ANC1_LPF_COEFF_PTR:
- case TIMPANI_A_CDC_ANC1_LPF_COEFF_MSB:
- case TIMPANI_A_CDC_ANC1_LPF_COEFF_LSB:
- case TIMPANI_A_CDC_ANC1_SCALE_PTR:
- case TIMPANI_A_CDC_ANC1_SCALE:
- case TIMPANI_A_CDC_ANC2_IIR_COEFF_PTR:
- case TIMPANI_A_CDC_ANC2_IIR_COEFF_MSB:
- case TIMPANI_A_CDC_ANC2_IIR_COEFF_LSB:
- case TIMPANI_A_CDC_ANC2_LPF_COEFF_PTR:
- case TIMPANI_A_CDC_ANC2_LPF_COEFF_MSB:
- case TIMPANI_A_CDC_ANC2_LPF_COEFF_LSB:
- case TIMPANI_A_CDC_ANC2_SCALE_PTR:
- case TIMPANI_A_CDC_ANC2_SCALE:
- case TIMPANI_A_CDC_ANC1_CTL1:
- case TIMPANI_A_CDC_ANC1_CTL2:
- case TIMPANI_A_CDC_ANC1_FF_FB_SHIFT:
- case TIMPANI_A_CDC_ANC2_CTL1:
- case TIMPANI_A_CDC_ANC2_CTL2:
- case TIMPANI_A_CDC_ANC2_FF_FB_SHIFT:
- case TIMPANI_A_AUXPGA_LR_GAIN:
- case TIMPANI_A_CDC_ANC_INPUT_MUX:
- return false;
- default:
- return true;
- }
- }
- static int adie_codec_write(u8 reg, u8 mask, u8 val)
- {
- int rc = 0;
- u8 new_val;
- if (reg > MAX_SHADOW_RIGISTERS) {
- pr_debug("register number is out of bound for shadow"
- " registers reg = %d\n", reg);
- new_val = (val & mask);
- rc = marimba_write_bit_mask(adie_codec.pdrv_ptr, reg, &new_val,
- 1, 0xFF);
- if (IS_ERR_VALUE(rc)) {
- pr_err("%s: fail to write reg %x\n", __func__, reg);
- rc = -EIO;
- goto error;
- }
- return rc;
- }
- new_val = (val & mask) | (timpani_shadow[reg] & ~mask);
- if (!(timpani_register_is_cacheable(reg) &&
- (new_val == timpani_shadow[reg]))) {
- rc = marimba_write_bit_mask(adie_codec.pdrv_ptr, reg, &new_val,
- 1, 0xFF);
- if (IS_ERR_VALUE(rc)) {
- pr_err("%s: fail to write reg %x\n", __func__, reg);
- rc = -EIO;
- goto error;
- }
- timpani_shadow[reg] = new_val;
- pr_debug("%s: write reg %x val %x new value %x\n", __func__,
- reg, val, new_val);
- }
- error:
- return rc;
- }
- static int reg_in_use(u8 reg_ref, u8 path_type)
- {
- if ((reg_ref & ~path_type) == 0)
- return 0;
- else
- return 1;
- }
- static int adie_codec_refcnt_write(u8 reg, u8 mask, u8 val, enum refcnt cnt,
- u8 path_type)
- {
- u8 i;
- int j;
- u8 fld_mask;
- u8 path_mask;
- u8 reg_mask = 0;
- int rc = 0;
- for (i = 0; i < ARRAY_SIZE(timpani_regset); i++) {
- if (timpani_regset[i].reg_addr == reg) {
- for (j = 0; j < TIMPANI_MAX_FIELDS; j++) {
- fld_mask = timpani_regset[i].fld_ref_cnt[j].mask
- & mask;
- path_mask = timpani_regset[i].fld_ref_cnt[j]
- .path_mask;
- if (fld_mask) {
- if (!reg_in_use(path_mask, path_type))
- reg_mask |= fld_mask;
- if (cnt == INC)
- timpani_regset[i].fld_ref_cnt[j]
- .path_mask |= path_type;
- else if (cnt == DEC)
- timpani_regset[i].fld_ref_cnt[j]
- .path_mask &=
- ~path_type;
- }
- }
- if (reg_mask)
- rc = adie_codec_write(reg, reg_mask, val);
- reg_mask = 0;
- break;
- }
- }
- return rc;
- }
- static int adie_codec_read(u8 reg, u8 *val)
- {
- return marimba_read(adie_codec.pdrv_ptr, reg, val, 1);
- }
- static int timpani_adie_codec_setpath(struct adie_codec_path *path_ptr,
- u32 freq_plan, u32 osr)
- {
- int rc = 0;
- u32 i, freq_idx = 0, freq = 0;
- if (path_ptr == NULL)
- return -EINVAL;
- if (path_ptr->curr_stage != ADIE_CODEC_DIGITAL_OFF) {
- rc = -EBUSY;
- goto error;
- }
- for (i = 0; i < path_ptr->profile->setting_sz; i++) {
- if (path_ptr->profile->settings[i].osr == osr) {
- if (path_ptr->profile->settings[i].freq_plan >=
- freq_plan) {
- if (freq == 0) {
- freq = path_ptr->profile->settings[i].
- freq_plan;
- freq_idx = i;
- } else if (path_ptr->profile->settings[i].
- freq_plan < freq) {
- freq = path_ptr->profile->settings[i].
- freq_plan;
- freq_idx = i;
- }
- }
- }
- }
- if (freq_idx >= path_ptr->profile->setting_sz)
- rc = -ENODEV;
- else {
- path_ptr->hwsetting_idx = freq_idx;
- path_ptr->stage_idx = 0;
- }
- error:
- return rc;
- }
- static u32 timpani_adie_codec_freq_supported(
- struct adie_codec_dev_profile *profile,
- u32 requested_freq)
- {
- u32 i, rc = -EINVAL;
- for (i = 0; i < profile->setting_sz; i++) {
- if (profile->settings[i].freq_plan >= requested_freq) {
- rc = 0;
- break;
- }
- }
- return rc;
- }
- int timpani_adie_codec_enable_sidetone(struct adie_codec_path *rx_path_ptr,
- u32 enable)
- {
- int rc = 0;
- pr_debug("%s()\n", __func__);
- mutex_lock(&adie_codec.lock);
- if (!rx_path_ptr || &adie_codec.path[ADIE_CODEC_RX] != rx_path_ptr) {
- pr_err("%s: invalid path pointer\n", __func__);
- rc = -EINVAL;
- goto error;
- } else if (rx_path_ptr->curr_stage !=
- ADIE_CODEC_DIGITAL_ANALOG_READY) {
- pr_err("%s: bad state\n", __func__);
- rc = -EPERM;
- goto error;
- }
- if (enable) {
- rc = adie_codec_write(TIMPANI_A_CDC_RX1_CTL,
- TIMPANI_RX1_ST_MASK, TIMPANI_RX1_ST_ENABLE);
- if (rx_path_ptr->reg_owner == RA_OWNER_PATH_RX1)
- adie_codec_write(TIMPANI_A_CDC_ST_MIXING,
- TIMPANI_CDC_ST_MIXING_TX1_MASK,
- TIMPANI_CDC_ST_MIXING_TX1_ENABLE);
- else if (rx_path_ptr->reg_owner == RA_OWNER_PATH_RX2)
- adie_codec_write(TIMPANI_A_CDC_ST_MIXING,
- TIMPANI_CDC_ST_MIXING_TX2_MASK,
- TIMPANI_CDC_ST_MIXING_TX2_ENABLE);
- } else {
- rc = adie_codec_write(TIMPANI_A_CDC_RX1_CTL,
- TIMPANI_RX1_ST_MASK, 0);
- if (rx_path_ptr->reg_owner == RA_OWNER_PATH_RX1)
- adie_codec_write(TIMPANI_A_CDC_ST_MIXING,
- TIMPANI_CDC_ST_MIXING_TX1_MASK, 0);
- else if (rx_path_ptr->reg_owner == RA_OWNER_PATH_RX2)
- adie_codec_write(TIMPANI_A_CDC_ST_MIXING,
- TIMPANI_CDC_ST_MIXING_TX2_MASK, 0);
- }
- error:
- mutex_unlock(&adie_codec.lock);
- return rc;
- }
- static int timpani_adie_codec_enable_anc(struct adie_codec_path *rx_path_ptr,
- u32 enable, struct adie_codec_anc_data *calibration_writes)
- {
- int index = 0;
- int rc = 0;
- u8 reg, mask, val;
- pr_debug("%s: enable = %d\n", __func__, enable);
- mutex_lock(&adie_codec.lock);
- if (!rx_path_ptr || &adie_codec.path[ADIE_CODEC_RX] != rx_path_ptr) {
- pr_err("%s: invalid path pointer\n", __func__);
- rc = -EINVAL;
- goto error;
- } else if (rx_path_ptr->curr_stage !=
- ADIE_CODEC_DIGITAL_ANALOG_READY) {
- pr_err("%s: bad state\n", __func__);
- rc = -EPERM;
- goto error;
- }
- if (enable) {
- if (!calibration_writes || !calibration_writes->writes) {
- pr_err("%s: No ANC calibration data\n", __func__);
- rc = -EPERM;
- goto error;
- }
- while (index < calibration_writes->size) {
- ADIE_CODEC_UNPACK_ENTRY(calibration_writes->
- writes[index], reg, mask, val);
- adie_codec_write(reg, mask, val);
- index++;
- }
- } else {
- adie_codec_write(TIMPANI_A_CDC_ANC1_CTL1,
- TIMPANI_CDC_ANC1_CTL1_ANC1_EN_M,
- TIMPANI_CDC_ANC1_CTL1_ANC1_EN_ANC_DIS <<
- TIMPANI_CDC_ANC1_CTL1_ANC1_EN_S);
- adie_codec_write(TIMPANI_A_CDC_ANC2_CTL1,
- TIMPANI_CDC_ANC2_CTL1_ANC2_EN_M,
- TIMPANI_CDC_ANC2_CTL1_ANC2_EN_ANC_DIS <<
- TIMPANI_CDC_ANC2_CTL1_ANC2_EN_S);
- }
- error:
- mutex_unlock(&adie_codec.lock);
- return rc;
- }
- static void adie_codec_restore_regdefault(u8 path_mask, u32 blk)
- {
- u32 ireg;
- u32 regset_sz =
- (sizeof(timpani_regset)/sizeof(struct timpani_regaccess));
- for (ireg = 0; ireg < regset_sz; ireg++) {
- if (timpani_regset[ireg].blk_mask[blk]) {
- /* only process register belong to the block */
- u8 reg = timpani_regset[ireg].reg_addr;
- u8 mask = timpani_regset[ireg].blk_mask[blk];
- u8 val = timpani_regset[ireg].reg_default;
- adie_codec_refcnt_write(reg, mask, val, IGNORE,
- path_mask);
- }
- }
- }
- static void adie_codec_reach_stage_action(struct adie_codec_path *path_ptr,
- u32 stage)
- {
- u32 iblk, iowner; /* iterators */
- u8 path_mask;
- if (path_ptr == NULL)
- return;
- path_mask = TIMPANI_PATH_MASK(path_ptr->reg_owner);
- if (stage != ADIE_CODEC_DIGITAL_OFF)
- return;
- for (iblk = 0 ; iblk <= RA_BLOCK_RESERVED ; iblk++) {
- for (iowner = 0; iowner < RA_OWNER_NUM; iowner++) {
- if (timpani_blkcfg[iblk].valid_owners[iowner] ==
- path_ptr->reg_owner) {
- adie_codec_restore_regdefault(path_mask, iblk);
- break; /* This path owns this block */
- }
- }
- }
- }
- static int timpani_adie_codec_proceed_stage(struct adie_codec_path *path_ptr,
- u32 state)
- {
- int rc = 0, loop_exit = 0;
- struct adie_codec_action_unit *curr_action;
- struct adie_codec_hwsetting_entry *setting;
- u8 reg, mask, val;
- u8 path_mask;
- if (path_ptr == NULL)
- return -EINVAL;
- path_mask = TIMPANI_PATH_MASK(path_ptr->reg_owner);
- mutex_lock(&adie_codec.lock);
- setting = &path_ptr->profile->settings[path_ptr->hwsetting_idx];
- while (!loop_exit) {
- curr_action = &setting->actions[path_ptr->stage_idx];
- switch (curr_action->type) {
- case ADIE_CODEC_ACTION_ENTRY:
- ADIE_CODEC_UNPACK_ENTRY(curr_action->action,
- reg, mask, val);
- if (state == ADIE_CODEC_DIGITAL_OFF)
- adie_codec_refcnt_write(reg, mask, val, DEC,
- path_mask);
- else
- adie_codec_refcnt_write(reg, mask, val, INC,
- path_mask);
- break;
- case ADIE_CODEC_ACTION_DELAY_WAIT:
- if (curr_action->action > MAX_MDELAY_US)
- msleep(curr_action->action/1000);
- else
- usleep_range(curr_action->action,
- curr_action->action);
- break;
- case ADIE_CODEC_ACTION_STAGE_REACHED:
- adie_codec_reach_stage_action(path_ptr,
- curr_action->action);
- if (curr_action->action == state) {
- path_ptr->curr_stage = state;
- loop_exit = 1;
- }
- break;
- default:
- BUG();
- }
- path_ptr->stage_idx++;
- if (path_ptr->stage_idx == setting->action_sz)
- path_ptr->stage_idx = 0;
- }
- mutex_unlock(&adie_codec.lock);
- return rc;
- }
- static void timpani_codec_bring_up(void)
- {
- /* Codec power up sequence */
- adie_codec_write(0xFF, 0xFF, 0x08);
- adie_codec_write(0xFF, 0xFF, 0x0A);
- adie_codec_write(0xFF, 0xFF, 0x0E);
- adie_codec_write(0xFF, 0xFF, 0x07);
- adie_codec_write(0xFF, 0xFF, 0x17);
- adie_codec_write(TIMPANI_A_MREF, 0xFF, 0xF2);
- msleep(15);
- adie_codec_write(TIMPANI_A_MREF, 0xFF, 0x22);
- /* Bypass TX HPFs to prevent pops */
- adie_codec_write(TIMPANI_A_CDC_BYPASS_CTL2, TIMPANI_CDC_BYPASS_CTL2_M,
- TIMPANI_CDC_BYPASS_CTL2_POR);
- adie_codec_write(TIMPANI_A_CDC_BYPASS_CTL3, TIMPANI_CDC_BYPASS_CTL3_M,
- TIMPANI_CDC_BYPASS_CTL3_POR);
- }
- static void timpani_codec_bring_down(void)
- {
- adie_codec_write(TIMPANI_A_MREF, 0xFF, TIMPANI_MREF_POR);
- adie_codec_write(0xFF, 0xFF, 0x07);
- adie_codec_write(0xFF, 0xFF, 0x06);
- adie_codec_write(0xFF, 0xFF, 0x0E);
- adie_codec_write(0xFF, 0xFF, 0x08);
- }
- static int timpani_adie_codec_open(struct adie_codec_dev_profile *profile,
- struct adie_codec_path **path_pptr)
- {
- int rc = 0;
- mutex_lock(&adie_codec.lock);
- if (!profile || !path_pptr) {
- rc = -EINVAL;
- goto error;
- }
- if (adie_codec.path[profile->path_type].profile) {
- rc = -EBUSY;
- goto error;
- }
- if (!adie_codec.ref_cnt) {
- if (adie_codec.codec_pdata &&
- adie_codec.codec_pdata->marimba_codec_power) {
- rc = adie_codec.codec_pdata->marimba_codec_power(1);
- if (rc) {
- pr_err("%s: could not power up timpani "
- "codec\n", __func__);
- goto error;
- }
- timpani_codec_bring_up();
- } else {
- pr_err("%s: couldn't detect timpani codec\n", __func__);
- rc = -ENODEV;
- goto error;
- }
- }
- adie_codec.path[profile->path_type].profile = profile;
- *path_pptr = (void *) &adie_codec.path[profile->path_type];
- adie_codec.ref_cnt++;
- adie_codec.path[profile->path_type].hwsetting_idx = 0;
- adie_codec.path[profile->path_type].curr_stage = ADIE_CODEC_DIGITAL_OFF;
- adie_codec.path[profile->path_type].stage_idx = 0;
- error:
- mutex_unlock(&adie_codec.lock);
- return rc;
- }
- static int timpani_adie_codec_close(struct adie_codec_path *path_ptr)
- {
- int rc = 0;
- mutex_lock(&adie_codec.lock);
- if (!path_ptr) {
- rc = -EINVAL;
- goto error;
- }
- if (path_ptr->curr_stage != ADIE_CODEC_DIGITAL_OFF)
- adie_codec_proceed_stage(path_ptr, ADIE_CODEC_DIGITAL_OFF);
- BUG_ON(!adie_codec.ref_cnt);
- path_ptr->profile = NULL;
- adie_codec.ref_cnt--;
- if (!adie_codec.ref_cnt) {
- /* Timpani CDC power down sequence */
- timpani_codec_bring_down();
- if (adie_codec.codec_pdata &&
- adie_codec.codec_pdata->marimba_codec_power) {
- rc = adie_codec.codec_pdata->marimba_codec_power(0);
- if (rc) {
- pr_err("%s: could not power down timpani "
- "codec\n", __func__);
- goto error;
- }
- }
- }
- error:
- mutex_unlock(&adie_codec.lock);
- return rc;
- }
- static int timpani_adie_codec_set_master_mode(struct adie_codec_path *path_ptr,
- u8 master)
- {
- u8 val = master ? 1 : 0;
- if (!path_ptr)
- return -EINVAL;
- if (path_ptr->reg_owner == RA_OWNER_PATH_RX1)
- adie_codec_write(TIMPANI_A_CDC_RX1_CTL, 0x01, val);
- else if (path_ptr->reg_owner == RA_OWNER_PATH_TX1)
- adie_codec_write(TIMPANI_A_CDC_TX_I2S_CTL, 0x01, val);
- else
- return -EINVAL;
- return 0;
- }
- int timpani_adie_codec_set_device_analog_volume(
- struct adie_codec_path *path_ptr,
- u32 num_channels, u32 volume)
- {
- u8 val;
- u8 curr_val;
- u8 i;
- adie_codec_read(TIMPANI_A_AUXPGA_LR_GAIN, &curr_val);
- /* Volume is expressed as a percentage. */
- /* The upper nibble is the left channel, lower right channel. */
- val = (u8)((volume * TIMPANI_CODEC_AUXPGA_GAIN_RANGE) / 100);
- val |= val << 4;
- if ((curr_val & 0x0F) < (val & 0x0F)) {
- for (i = curr_val; i < val; i += 0x11)
- adie_codec_write(TIMPANI_A_AUXPGA_LR_GAIN, 0xFF, i);
- } else if ((curr_val & 0x0F) > (val & 0x0F)) {
- for (i = curr_val; i > val; i -= 0x11)
- adie_codec_write(TIMPANI_A_AUXPGA_LR_GAIN, 0xFF, i);
- }
- return 0;
- }
- enum adie_vol_type {
- ADIE_CODEC_RX_DIG_VOL,
- ADIE_CODEC_TX_DIG_VOL,
- ADIE_CODEC_VOL_TYPE_MAX
- };
- #define CDC_RX1LG 0x84
- #define CDC_RX1RG 0x85
- #define CDC_TX1LG 0x86
- #define CDC_TX1RG 0x87
- #define DIG_VOL_MASK 0xFF
- #define CDC_GCTL1 0x8A
- #define RX1_PGA_UPDATE_L 0x04
- #define RX1_PGA_UPDATE_R 0x08
- #define TX1_PGA_UPDATE_L 0x40
- #define TX1_PGA_UPDATE_R 0x80
- #define CDC_GCTL1_RX_MASK 0x0F
- #define CDC_GCTL1_TX_MASK 0xF0
- enum {
- TIMPANI_MIN_DIG_VOL = -84, /* in DB*/
- TIMPANI_MAX_DIG_VOL = 16, /* in DB*/
- TIMPANI_DIG_VOL_STEP = 3 /* in DB*/
- };
- static int timpani_adie_codec_set_dig_vol(enum adie_vol_type vol_type,
- u32 num_chan, u32 vol_per)
- {
- u8 reg_left, reg_right;
- u8 gain_reg_val, gain_reg_mask;
- s8 new_reg_val, cur_reg_val;
- s8 step_size;
- adie_codec_read(CDC_GCTL1, &gain_reg_val);
- if (vol_type == ADIE_CODEC_RX_DIG_VOL) {
- pr_debug("%s : RX DIG VOL. num_chan = %u\n", __func__,
- num_chan);
- reg_left = CDC_RX1LG;
- reg_right = CDC_RX1RG;
- if (num_chan == 1)
- gain_reg_val |= RX1_PGA_UPDATE_L;
- else
- gain_reg_val |= (RX1_PGA_UPDATE_L | RX1_PGA_UPDATE_R);
- gain_reg_mask = CDC_GCTL1_RX_MASK;
- } else {
- pr_debug("%s : TX DIG VOL. num_chan = %u\n", __func__,
- num_chan);
- reg_left = CDC_TX1LG;
- reg_right = CDC_TX1RG;
- if (num_chan == 1)
- gain_reg_val |= TX1_PGA_UPDATE_L;
- else
- gain_reg_val |= (TX1_PGA_UPDATE_L | TX1_PGA_UPDATE_R);
- gain_reg_mask = CDC_GCTL1_TX_MASK;
- }
- adie_codec_read(reg_left, &cur_reg_val);
- pr_debug("%s: vol_per = %d cur_reg_val = %d 0x%x\n", __func__, vol_per,
- cur_reg_val, cur_reg_val);
- new_reg_val = TIMPANI_MIN_DIG_VOL +
- (((TIMPANI_MAX_DIG_VOL - TIMPANI_MIN_DIG_VOL) * vol_per) / 100);
- pr_debug("new_reg_val = %d 0x%x\n", new_reg_val, new_reg_val);
- if (new_reg_val > cur_reg_val) {
- step_size = TIMPANI_DIG_VOL_STEP;
- } else if (new_reg_val < cur_reg_val) {
- step_size = -TIMPANI_DIG_VOL_STEP;
- } else {
- pr_debug("new_reg_val and cur_reg_val are same 0x%x\n",
- new_reg_val);
- return 0;
- }
- while (cur_reg_val != new_reg_val) {
- if (((new_reg_val > cur_reg_val) &&
- ((new_reg_val - cur_reg_val) < TIMPANI_DIG_VOL_STEP)) ||
- ((cur_reg_val > new_reg_val) &&
- ((cur_reg_val - new_reg_val)
- < TIMPANI_DIG_VOL_STEP))) {
- cur_reg_val = new_reg_val;
- pr_debug("diff less than step. write new_reg_val = %d"
- " 0x%x\n", new_reg_val, new_reg_val);
- } else {
- cur_reg_val = cur_reg_val + step_size;
- pr_debug("cur_reg_val = %d 0x%x\n",
- cur_reg_val, cur_reg_val);
- }
- adie_codec_write(reg_left, DIG_VOL_MASK, cur_reg_val);
- if (num_chan == 2)
- adie_codec_write(reg_right, DIG_VOL_MASK, cur_reg_val);
- adie_codec_write(CDC_GCTL1, gain_reg_mask, gain_reg_val);
- }
- return 0;
- }
- static int timpani_adie_codec_set_device_digital_volume(
- struct adie_codec_path *path_ptr,
- u32 num_channels, u32 vol_percentage /* in percentage */)
- {
- enum adie_vol_type vol_type;
- if (!path_ptr || (path_ptr->curr_stage !=
- ADIE_CODEC_DIGITAL_ANALOG_READY)) {
- pr_info("%s: timpani codec not ready for volume control\n",
- __func__);
- return -EPERM;
- }
- if (num_channels > 2) {
- pr_err("%s: timpani odec only supports max two channels\n",
- __func__);
- return -EINVAL;
- }
- if (path_ptr->profile->path_type == ADIE_CODEC_RX) {
- vol_type = ADIE_CODEC_RX_DIG_VOL;
- } else if (path_ptr->profile->path_type == ADIE_CODEC_TX) {
- vol_type = ADIE_CODEC_TX_DIG_VOL;
- } else {
- pr_err("%s: invalid device data neither RX nor TX\n",
- __func__);
- return -EINVAL;
- }
- timpani_adie_codec_set_dig_vol(vol_type, num_channels, vol_percentage);
- return 0;
- }
- static const struct adie_codec_operations timpani_adie_ops = {
- .codec_id = TIMPANI_ID,
- .codec_open = timpani_adie_codec_open,
- .codec_close = timpani_adie_codec_close,
- .codec_setpath = timpani_adie_codec_setpath,
- .codec_proceed_stage = timpani_adie_codec_proceed_stage,
- .codec_freq_supported = timpani_adie_codec_freq_supported,
- .codec_enable_sidetone = timpani_adie_codec_enable_sidetone,
- .codec_set_master_mode = timpani_adie_codec_set_master_mode,
- .codec_enable_anc = timpani_adie_codec_enable_anc,
- .codec_set_device_analog_volume =
- timpani_adie_codec_set_device_analog_volume,
- .codec_set_device_digital_volume =
- timpani_adie_codec_set_device_digital_volume,
- };
- static void timpani_codec_populate_shadow_registers(void)
- {
- int i;
- for (i = 0; i < ARRAY_SIZE(timpani_regset); i++) {
- if (timpani_regset[i].reg_addr < TIMPANI_ARRAY_SIZE) {
- timpani_shadow[timpani_regset[i].reg_addr] =
- timpani_regset[i].reg_default;
- }
- }
- }
- #ifdef CONFIG_DEBUG_FS
- static struct dentry *debugfs_timpani_dent;
- static struct dentry *debugfs_peek;
- static struct dentry *debugfs_poke;
- static struct dentry *debugfs_power;
- static struct dentry *debugfs_dump;
- static unsigned char read_data;
- static int codec_debug_open(struct inode *inode, struct file *file)
- {
- file->private_data = inode->i_private;
- return 0;
- }
- static int get_parameters(char *buf, long int *param1, int num_of_par)
- {
- char *token;
- int base, cnt;
- token = strsep(&buf, " ");
- for (cnt = 0; cnt < num_of_par; cnt++) {
- if (token != NULL) {
- if ((token[1] == 'x') || (token[1] == 'X'))
- base = 16;
- else
- base = 10;
- if (strict_strtoul(token, base, ¶m1[cnt]) != 0)
- return -EINVAL;
- token = strsep(&buf, " ");
- }
- else
- return -EINVAL;
- }
- return 0;
- }
- static ssize_t codec_debug_read(struct file *file, char __user *ubuf,
- size_t count, loff_t *ppos)
- {
- char lbuf[8];
- snprintf(lbuf, sizeof(lbuf), "0x%x\n", read_data);
- return simple_read_from_buffer(ubuf, count, ppos, lbuf, strlen(lbuf));
- }
- static ssize_t codec_debug_write(struct file *filp,
- const char __user *ubuf, size_t cnt, loff_t *ppos)
- {
- char *access_str = filp->private_data;
- char lbuf[32];
- int rc;
- int i;
- int read_result;
- u8 reg_val;
- long int param[5];
- if (cnt > sizeof(lbuf) - 1)
- return -EINVAL;
- rc = copy_from_user(lbuf, ubuf, cnt);
- if (rc)
- return -EFAULT;
- lbuf[cnt] = '\0';
- if (!strcmp(access_str, "power")) {
- if (get_parameters(lbuf, param, 1) == 0) {
- switch (param[0]) {
- case 1:
- adie_codec.codec_pdata->marimba_codec_power(1);
- timpani_codec_bring_up();
- break;
- case 0:
- timpani_codec_bring_down();
- adie_codec.codec_pdata->marimba_codec_power(0);
- break;
- default:
- rc = -EINVAL;
- break;
- }
- } else
- rc = -EINVAL;
- } else if (!strcmp(access_str, "poke")) {
- /* write */
- rc = get_parameters(lbuf, param, 2);
- if ((param[0] <= 0xFF) && (param[1] <= 0xFF) &&
- (rc == 0))
- adie_codec_write(param[0], 0xFF, param[1]);
- else
- rc = -EINVAL;
- } else if (!strcmp(access_str, "peek")) {
- /* read */
- rc = get_parameters(lbuf, param, 1);
- if ((param[0] <= 0xFF) && (rc == 0))
- adie_codec_read(param[0], &read_data);
- else
- rc = -EINVAL;
- } else if (!strcmp(access_str, "dump")) {
- pr_info("************** timpani regs *************\n");
- for (i = 0; i < 0xFF; i++) {
- read_result = adie_codec_read(i, ®_val);
- if (read_result < 0) {
- pr_info("failed to read codec register\n");
- break;
- } else
- pr_info("reg 0x%02X val 0x%02X\n", i, reg_val);
- }
- pr_info("*****************************************\n");
- }
- if (rc == 0)
- rc = cnt;
- else
- pr_err("%s: rc = %d\n", __func__, rc);
- return rc;
- }
- static const struct file_operations codec_debug_ops = {
- .open = codec_debug_open,
- .write = codec_debug_write,
- .read = codec_debug_read
- };
- #endif
- static int timpani_codec_probe(struct platform_device *pdev)
- {
- int rc;
- adie_codec.pdrv_ptr = platform_get_drvdata(pdev);
- adie_codec.codec_pdata = pdev->dev.platform_data;
- if (adie_codec.codec_pdata->snddev_profile_init)
- adie_codec.codec_pdata->snddev_profile_init();
- timpani_codec_populate_shadow_registers();
- /* Register the timpani ADIE operations */
- rc = adie_codec_register_codec_operations(&timpani_adie_ops);
- #ifdef CONFIG_DEBUG_FS
- debugfs_timpani_dent = debugfs_create_dir("msm_adie_codec", 0);
- if (!IS_ERR(debugfs_timpani_dent)) {
- debugfs_peek = debugfs_create_file("peek",
- S_IFREG | S_IRUGO, debugfs_timpani_dent,
- (void *) "peek", &codec_debug_ops);
- debugfs_poke = debugfs_create_file("poke",
- S_IFREG | S_IRUGO, debugfs_timpani_dent,
- (void *) "poke", &codec_debug_ops);
- debugfs_power = debugfs_create_file("power",
- S_IFREG | S_IRUGO, debugfs_timpani_dent,
- (void *) "power", &codec_debug_ops);
- debugfs_dump = debugfs_create_file("dump",
- S_IFREG | S_IRUGO, debugfs_timpani_dent,
- (void *) "dump", &codec_debug_ops);
- }
- #endif
- return rc;
- }
- static struct platform_driver timpani_codec_driver = {
- .probe = timpani_codec_probe,
- .driver = {
- .name = "timpani_codec",
- .owner = THIS_MODULE,
- },
- };
- static int __init timpani_codec_init(void)
- {
- s32 rc;
- rc = platform_driver_register(&timpani_codec_driver);
- if (IS_ERR_VALUE(rc))
- goto error;
- adie_codec.path[ADIE_CODEC_TX].reg_owner = RA_OWNER_PATH_TX1;
- adie_codec.path[ADIE_CODEC_RX].reg_owner = RA_OWNER_PATH_RX1;
- adie_codec.path[ADIE_CODEC_LB].reg_owner = RA_OWNER_PATH_LB;
- mutex_init(&adie_codec.lock);
- error:
- return rc;
- }
- static void __exit timpani_codec_exit(void)
- {
- #ifdef CONFIG_DEBUG_FS
- debugfs_remove(debugfs_peek);
- debugfs_remove(debugfs_poke);
- debugfs_remove(debugfs_power);
- debugfs_remove(debugfs_dump);
- debugfs_remove(debugfs_timpani_dent);
- #endif
- platform_driver_unregister(&timpani_codec_driver);
- }
- module_init(timpani_codec_init);
- module_exit(timpani_codec_exit);
- MODULE_DESCRIPTION("Timpani codec driver");
- MODULE_VERSION("1.0");
- MODULE_LICENSE("GPL v2");
|