pfc-r8a7791.c 192 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479
  1. /*
  2. * r8a7791 processor support - PFC hardware block.
  3. *
  4. * Copyright (C) 2013 Renesas Electronics Corporation
  5. * Copyright (C) 2014-2015 Cogent Embedded, Inc.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2
  9. * as published by the Free Software Foundation.
  10. */
  11. #include <linux/kernel.h>
  12. #include "sh_pfc.h"
  13. /*
  14. * Pins 0-23 assigned to GPIO bank 6 can be used for SD interfaces in
  15. * which case they support both 3.3V and 1.8V signalling.
  16. */
  17. #define CPU_ALL_PORT(fn, sfx) \
  18. PORT_GP_32(0, fn, sfx), \
  19. PORT_GP_26(1, fn, sfx), \
  20. PORT_GP_32(2, fn, sfx), \
  21. PORT_GP_32(3, fn, sfx), \
  22. PORT_GP_32(4, fn, sfx), \
  23. PORT_GP_32(5, fn, sfx), \
  24. PORT_GP_CFG_24(6, fn, sfx, SH_PFC_PIN_CFG_IO_VOLTAGE), \
  25. PORT_GP_1(6, 24, fn, sfx), \
  26. PORT_GP_1(6, 25, fn, sfx), \
  27. PORT_GP_1(6, 26, fn, sfx), \
  28. PORT_GP_1(6, 27, fn, sfx), \
  29. PORT_GP_1(6, 28, fn, sfx), \
  30. PORT_GP_1(6, 29, fn, sfx), \
  31. PORT_GP_1(6, 30, fn, sfx), \
  32. PORT_GP_1(6, 31, fn, sfx), \
  33. PORT_GP_26(7, fn, sfx)
  34. enum {
  35. PINMUX_RESERVED = 0,
  36. PINMUX_DATA_BEGIN,
  37. GP_ALL(DATA),
  38. PINMUX_DATA_END,
  39. PINMUX_FUNCTION_BEGIN,
  40. GP_ALL(FN),
  41. /* GPSR0 */
  42. FN_IP0_0, FN_IP0_1, FN_IP0_2, FN_IP0_3, FN_IP0_4, FN_IP0_5,
  43. FN_IP0_6, FN_IP0_7, FN_IP0_8, FN_IP0_9, FN_IP0_10, FN_IP0_11,
  44. FN_IP0_12, FN_IP0_13, FN_IP0_14, FN_IP0_15, FN_IP0_18_16, FN_IP0_20_19,
  45. FN_IP0_22_21, FN_IP0_24_23, FN_IP0_26_25, FN_IP0_28_27, FN_IP0_30_29,
  46. FN_IP1_1_0, FN_IP1_3_2, FN_IP1_5_4, FN_IP1_7_6, FN_IP1_10_8,
  47. FN_IP1_13_11, FN_IP1_16_14, FN_IP1_19_17, FN_IP1_22_20,
  48. /* GPSR1 */
  49. FN_IP1_25_23, FN_IP1_28_26, FN_IP1_31_29, FN_IP2_2_0, FN_IP2_4_3,
  50. FN_IP2_6_5, FN_IP2_9_7, FN_IP2_12_10, FN_IP2_15_13, FN_IP2_18_16,
  51. FN_IP2_20_19, FN_IP2_22_21, FN_EX_CS0_N, FN_IP2_24_23, FN_IP2_26_25,
  52. FN_IP2_29_27, FN_IP3_2_0, FN_IP3_5_3, FN_IP3_8_6, FN_RD_N,
  53. FN_IP3_11_9, FN_IP3_13_12, FN_IP3_15_14 , FN_IP3_17_16 , FN_IP3_19_18,
  54. FN_IP3_21_20,
  55. /* GPSR2 */
  56. FN_IP3_27_25, FN_IP3_30_28, FN_IP4_1_0, FN_IP4_4_2, FN_IP4_7_5,
  57. FN_IP4_9_8, FN_IP4_12_10, FN_IP4_15_13, FN_IP4_18_16, FN_IP4_19,
  58. FN_IP4_20, FN_IP4_21, FN_IP4_23_22, FN_IP4_25_24, FN_IP4_27_26,
  59. FN_IP4_30_28, FN_IP5_2_0, FN_IP5_5_3, FN_IP5_8_6, FN_IP5_11_9,
  60. FN_IP5_14_12, FN_IP5_16_15, FN_IP5_19_17, FN_IP5_21_20, FN_IP5_23_22,
  61. FN_IP5_25_24, FN_IP5_28_26, FN_IP5_31_29, FN_AUDIO_CLKA, FN_IP6_2_0,
  62. FN_IP6_5_3, FN_IP6_7_6,
  63. /* GPSR3 */
  64. FN_IP7_5_3, FN_IP7_8_6, FN_IP7_10_9, FN_IP7_12_11, FN_IP7_14_13,
  65. FN_IP7_16_15, FN_IP7_18_17, FN_IP7_20_19, FN_IP7_23_21, FN_IP7_26_24,
  66. FN_IP7_29_27, FN_IP8_2_0, FN_IP8_5_3, FN_IP8_8_6, FN_IP8_11_9,
  67. FN_IP8_14_12, FN_IP8_17_15, FN_IP8_20_18, FN_IP8_23_21, FN_IP8_25_24,
  68. FN_IP8_27_26, FN_IP8_30_28, FN_IP9_2_0, FN_IP9_5_3, FN_IP9_6, FN_IP9_7,
  69. FN_IP9_10_8, FN_IP9_11, FN_IP9_12, FN_IP9_15_13, FN_IP9_16,
  70. FN_IP9_18_17,
  71. /* GPSR4 */
  72. FN_VI0_CLK, FN_IP9_20_19, FN_IP9_22_21, FN_IP9_24_23, FN_IP9_26_25,
  73. FN_VI0_DATA0_VI0_B0, FN_VI0_DATA1_VI0_B1, FN_VI0_DATA2_VI0_B2,
  74. FN_IP9_28_27, FN_VI0_DATA4_VI0_B4, FN_VI0_DATA5_VI0_B5,
  75. FN_VI0_DATA6_VI0_B6, FN_VI0_DATA7_VI0_B7, FN_IP9_31_29, FN_IP10_2_0,
  76. FN_IP10_5_3, FN_IP10_8_6, FN_IP10_11_9, FN_IP10_14_12, FN_IP10_16_15,
  77. FN_IP10_18_17, FN_IP10_21_19, FN_IP10_24_22, FN_IP10_26_25,
  78. FN_IP10_28_27, FN_IP10_31_29, FN_IP11_2_0, FN_IP11_5_3, FN_IP11_8_6,
  79. FN_IP15_1_0, FN_IP15_3_2, FN_IP15_5_4,
  80. /* GPSR5 */
  81. FN_IP11_11_9, FN_IP11_14_12, FN_IP11_16_15, FN_IP11_18_17, FN_IP11_19,
  82. FN_IP11_20, FN_IP11_21, FN_IP11_22, FN_IP11_23, FN_IP11_24,
  83. FN_IP11_25, FN_IP11_26, FN_IP11_27, FN_IP11_29_28, FN_IP11_31_30,
  84. FN_IP12_1_0, FN_IP12_3_2, FN_IP12_6_4, FN_IP12_9_7, FN_IP12_12_10,
  85. FN_IP12_15_13, FN_IP12_17_16, FN_IP12_19_18, FN_IP12_21_20,
  86. FN_IP12_23_22, FN_IP12_26_24, FN_IP12_29_27, FN_IP13_2_0, FN_IP13_4_3,
  87. FN_IP13_6_5, FN_IP13_9_7, FN_IP3_24_22,
  88. /* GPSR6 */
  89. FN_IP13_10, FN_IP13_11, FN_IP13_12, FN_IP13_13, FN_IP13_14,
  90. FN_IP13_15, FN_IP13_18_16, FN_IP13_21_19,
  91. FN_IP13_22, FN_IP13_24_23, FN_SD1_CLK,
  92. FN_IP13_25, FN_IP13_26, FN_IP13_27, FN_IP13_30_28, FN_IP14_1_0,
  93. FN_IP14_2, FN_IP14_3, FN_IP14_4, FN_IP14_5, FN_IP14_6, FN_IP14_7,
  94. FN_IP14_10_8, FN_IP14_13_11, FN_IP14_16_14, FN_IP14_19_17,
  95. FN_IP14_22_20, FN_IP14_25_23, FN_IP14_28_26, FN_IP14_31_29,
  96. FN_USB1_OVC, FN_DU0_DOTCLKIN,
  97. /* GPSR7 */
  98. FN_IP15_17_15, FN_IP15_20_18, FN_IP15_23_21, FN_IP15_26_24,
  99. FN_IP15_29_27, FN_IP16_2_0, FN_IP16_5_3, FN_IP16_7_6, FN_IP16_9_8,
  100. FN_IP16_11_10, FN_IP6_9_8, FN_IP6_11_10, FN_IP6_13_12, FN_IP6_15_14,
  101. FN_IP6_18_16, FN_IP6_20_19, FN_IP6_23_21, FN_IP6_26_24, FN_IP6_29_27,
  102. FN_IP7_2_0, FN_IP15_8_6, FN_IP15_11_9, FN_IP15_14_12,
  103. FN_USB0_PWEN, FN_USB0_OVC, FN_USB1_PWEN,
  104. /* IPSR0 */
  105. FN_D0, FN_D1, FN_D2, FN_D3, FN_D4, FN_D5, FN_D6, FN_D7, FN_D8,
  106. FN_D9, FN_D10, FN_D11, FN_D12, FN_D13, FN_D14, FN_D15,
  107. FN_A0, FN_ATAWR0_N_C, FN_MSIOF0_SCK_B, FN_SCL0_C, FN_PWM2_B,
  108. FN_A1, FN_MSIOF0_SYNC_B, FN_A2, FN_MSIOF0_SS1_B,
  109. FN_A3, FN_MSIOF0_SS2_B, FN_A4, FN_MSIOF0_TXD_B,
  110. FN_A5, FN_MSIOF0_RXD_B, FN_A6, FN_MSIOF1_SCK,
  111. /* IPSR1 */
  112. FN_A7, FN_MSIOF1_SYNC, FN_A8, FN_MSIOF1_SS1, FN_SCL0,
  113. FN_A9, FN_MSIOF1_SS2, FN_SDA0,
  114. FN_A10, FN_MSIOF1_TXD, FN_MSIOF1_TXD_D,
  115. FN_A11, FN_MSIOF1_RXD, FN_SCL3_D, FN_MSIOF1_RXD_D,
  116. FN_A12, FN_FMCLK, FN_SDA3_D, FN_MSIOF1_SCK_D,
  117. FN_A13, FN_ATAG0_N_C, FN_BPFCLK, FN_MSIOF1_SS1_D,
  118. FN_A14, FN_ATADIR0_N_C, FN_FMIN, FN_FMIN_C, FN_MSIOF1_SYNC_D,
  119. FN_A15, FN_BPFCLK_C,
  120. FN_A16, FN_DREQ2_B, FN_FMCLK_C, FN_SCIFA1_SCK_B,
  121. FN_A17, FN_DACK2_B, FN_SDA0_C,
  122. FN_A18, FN_DREQ1, FN_SCIFA1_RXD_C, FN_SCIFB1_RXD_C,
  123. /* IPSR2 */
  124. FN_A19, FN_DACK1, FN_SCIFA1_TXD_C, FN_SCIFB1_TXD_C, FN_SCIFB1_SCK_B,
  125. FN_A20, FN_SPCLK,
  126. FN_A21, FN_ATAWR0_N_B, FN_MOSI_IO0,
  127. FN_A22, FN_MISO_IO1, FN_FMCLK_B, FN_TX0, FN_SCIFA0_TXD,
  128. FN_A23, FN_IO2, FN_BPFCLK_B, FN_RX0, FN_SCIFA0_RXD,
  129. FN_A24, FN_DREQ2, FN_IO3, FN_TX1, FN_SCIFA1_TXD,
  130. FN_A25, FN_DACK2, FN_SSL, FN_DREQ1_C, FN_RX1, FN_SCIFA1_RXD,
  131. FN_CS0_N, FN_ATAG0_N_B, FN_SCL1,
  132. FN_CS1_N_A26, FN_ATADIR0_N_B, FN_SDA1,
  133. FN_EX_CS1_N, FN_MSIOF2_SCK,
  134. FN_EX_CS2_N, FN_ATAWR0_N, FN_MSIOF2_SYNC,
  135. FN_EX_CS3_N, FN_ATADIR0_N, FN_MSIOF2_TXD, FN_ATAG0_N, FN_EX_WAIT1,
  136. /* IPSR3 */
  137. FN_EX_CS4_N, FN_ATARD0_N, FN_MSIOF2_RXD, FN_EX_WAIT2,
  138. FN_EX_CS5_N, FN_ATACS00_N, FN_MSIOF2_SS1, FN_HRX1_B,
  139. FN_SCIFB1_RXD_B, FN_PWM1, FN_TPU_TO1,
  140. FN_BS_N, FN_ATACS10_N, FN_MSIOF2_SS2, FN_HTX1_B,
  141. FN_SCIFB1_TXD_B, FN_PWM2, FN_TPU_TO2,
  142. FN_RD_WR_N, FN_HRX2_B, FN_FMIN_B, FN_SCIFB0_RXD_B, FN_DREQ1_D,
  143. FN_WE0_N, FN_HCTS2_N_B, FN_SCIFB0_TXD_B,
  144. FN_WE1_N, FN_ATARD0_N_B, FN_HTX2_B, FN_SCIFB0_RTS_N_B,
  145. FN_EX_WAIT0, FN_HRTS2_N_B, FN_SCIFB0_CTS_N_B,
  146. FN_DREQ0, FN_PWM3, FN_TPU_TO3,
  147. FN_DACK0, FN_DRACK0, FN_REMOCON,
  148. FN_SPEEDIN, FN_HSCK0_C, FN_HSCK2_C, FN_SCIFB0_SCK_B,
  149. FN_SCIFB2_SCK_B, FN_DREQ2_C, FN_HTX2_D,
  150. FN_SSI_SCK0129, FN_HRX0_C, FN_HRX2_C, FN_SCIFB0_RXD_C, FN_SCIFB2_RXD_C,
  151. FN_SSI_WS0129, FN_HTX0_C, FN_HTX2_C, FN_SCIFB0_TXD_C, FN_SCIFB2_TXD_C,
  152. /* IPSR4 */
  153. FN_SSI_SDATA0, FN_SCL0_B, FN_SCL7_B, FN_MSIOF2_SCK_C,
  154. FN_SSI_SCK1, FN_SDA0_B, FN_SDA7_B, FN_MSIOF2_SYNC_C, FN_GLO_I0_D,
  155. FN_SSI_WS1, FN_SCL1_B, FN_SCL8_B, FN_MSIOF2_TXD_C, FN_GLO_I1_D,
  156. FN_SSI_SDATA1, FN_SDA1_B, FN_SDA8_B, FN_MSIOF2_RXD_C,
  157. FN_SSI_SCK2, FN_SCL2, FN_GPS_CLK_B, FN_GLO_Q0_D, FN_HSCK1_E,
  158. FN_SSI_WS2, FN_SDA2, FN_GPS_SIGN_B, FN_RX2_E,
  159. FN_GLO_Q1_D, FN_HCTS1_N_E,
  160. FN_SSI_SDATA2, FN_GPS_MAG_B, FN_TX2_E, FN_HRTS1_N_E,
  161. FN_SSI_SCK34, FN_SSI_WS34, FN_SSI_SDATA3,
  162. FN_SSI_SCK4, FN_GLO_SS_D,
  163. FN_SSI_WS4, FN_GLO_RFON_D,
  164. FN_SSI_SDATA4, FN_MSIOF2_SCK_D,
  165. FN_SSI_SCK5, FN_MSIOF1_SCK_C, FN_TS_SDATA0, FN_GLO_I0,
  166. FN_MSIOF2_SYNC_D, FN_VI1_R2_B,
  167. /* IPSR5 */
  168. FN_SSI_WS5, FN_MSIOF1_SYNC_C, FN_TS_SCK0, FN_GLO_I1,
  169. FN_MSIOF2_TXD_D, FN_VI1_R3_B,
  170. FN_SSI_SDATA5, FN_MSIOF1_TXD_C, FN_TS_SDEN0, FN_GLO_Q0,
  171. FN_MSIOF2_SS1_D, FN_VI1_R4_B,
  172. FN_SSI_SCK6, FN_MSIOF1_RXD_C, FN_TS_SPSYNC0, FN_GLO_Q1,
  173. FN_MSIOF2_RXD_D, FN_VI1_R5_B,
  174. FN_SSI_WS6, FN_GLO_SCLK, FN_MSIOF2_SS2_D, FN_VI1_R6_B,
  175. FN_SSI_SDATA6, FN_STP_IVCXO27_0_B, FN_GLO_SDATA, FN_VI1_R7_B,
  176. FN_SSI_SCK78, FN_STP_ISCLK_0_B, FN_GLO_SS,
  177. FN_SSI_WS78, FN_TX0_D, FN_STP_ISD_0_B, FN_GLO_RFON,
  178. FN_SSI_SDATA7, FN_RX0_D, FN_STP_ISEN_0_B,
  179. FN_SSI_SDATA8, FN_TX1_D, FN_STP_ISSYNC_0_B,
  180. FN_SSI_SCK9, FN_RX1_D, FN_GLO_SCLK_D,
  181. FN_SSI_WS9, FN_TX3_D, FN_CAN0_TX_D, FN_GLO_SDATA_D,
  182. FN_SSI_SDATA9, FN_RX3_D, FN_CAN0_RX_D,
  183. /* IPSR6 */
  184. FN_AUDIO_CLKB, FN_STP_OPWM_0_B, FN_MSIOF1_SCK_B,
  185. FN_SCIF_CLK, FN_DVC_MUTE, FN_BPFCLK_E,
  186. FN_AUDIO_CLKC, FN_SCIFB0_SCK_C, FN_MSIOF1_SYNC_B, FN_RX2,
  187. FN_SCIFA2_RXD, FN_FMIN_E,
  188. FN_AUDIO_CLKOUT, FN_MSIOF1_SS1_B, FN_TX2, FN_SCIFA2_TXD,
  189. FN_IRQ0, FN_SCIFB1_RXD_D, FN_INTC_IRQ0_N,
  190. FN_IRQ1, FN_SCIFB1_SCK_C, FN_INTC_IRQ1_N,
  191. FN_IRQ2, FN_SCIFB1_TXD_D, FN_INTC_IRQ2_N,
  192. FN_IRQ3, FN_SCL4_C, FN_MSIOF2_TXD_E, FN_INTC_IRQ3_N,
  193. FN_IRQ4, FN_HRX1_C, FN_SDA4_C, FN_MSIOF2_RXD_E, FN_INTC_IRQ4_N,
  194. FN_IRQ5, FN_HTX1_C, FN_SCL1_E, FN_MSIOF2_SCK_E,
  195. FN_IRQ6, FN_HSCK1_C, FN_MSIOF1_SS2_B, FN_SDA1_E, FN_MSIOF2_SYNC_E,
  196. FN_IRQ7, FN_HCTS1_N_C, FN_MSIOF1_TXD_B, FN_GPS_CLK_C, FN_GPS_CLK_D,
  197. FN_IRQ8, FN_HRTS1_N_C, FN_MSIOF1_RXD_B, FN_GPS_SIGN_C, FN_GPS_SIGN_D,
  198. /* IPSR7 */
  199. FN_IRQ9, FN_DU1_DOTCLKIN_B, FN_CAN_CLK_D, FN_GPS_MAG_C,
  200. FN_SCIF_CLK_B, FN_GPS_MAG_D,
  201. FN_DU1_DR0, FN_LCDOUT0, FN_VI1_DATA0_B, FN_TX0_B,
  202. FN_SCIFA0_TXD_B, FN_MSIOF2_SCK_B,
  203. FN_DU1_DR1, FN_LCDOUT1, FN_VI1_DATA1_B, FN_RX0_B,
  204. FN_SCIFA0_RXD_B, FN_MSIOF2_SYNC_B,
  205. FN_DU1_DR2, FN_LCDOUT2, FN_SSI_SCK0129_B,
  206. FN_DU1_DR3, FN_LCDOUT3, FN_SSI_WS0129_B,
  207. FN_DU1_DR4, FN_LCDOUT4, FN_SSI_SDATA0_B,
  208. FN_DU1_DR5, FN_LCDOUT5, FN_SSI_SCK1_B,
  209. FN_DU1_DR6, FN_LCDOUT6, FN_SSI_WS1_B,
  210. FN_DU1_DR7, FN_LCDOUT7, FN_SSI_SDATA1_B,
  211. FN_DU1_DG0, FN_LCDOUT8, FN_VI1_DATA2_B, FN_TX1_B,
  212. FN_SCIFA1_TXD_B, FN_MSIOF2_SS1_B,
  213. FN_DU1_DG1, FN_LCDOUT9, FN_VI1_DATA3_B, FN_RX1_B,
  214. FN_SCIFA1_RXD_B, FN_MSIOF2_SS2_B,
  215. FN_DU1_DG2, FN_LCDOUT10, FN_VI1_DATA4_B, FN_SCIF1_SCK_B,
  216. FN_SCIFA1_SCK, FN_SSI_SCK78_B,
  217. /* IPSR8 */
  218. FN_DU1_DG3, FN_LCDOUT11, FN_VI1_DATA5_B, FN_SSI_WS78_B,
  219. FN_DU1_DG4, FN_LCDOUT12, FN_VI1_DATA6_B, FN_HRX0_B,
  220. FN_SCIFB2_RXD_B, FN_SSI_SDATA7_B,
  221. FN_DU1_DG5, FN_LCDOUT13, FN_VI1_DATA7_B, FN_HCTS0_N_B,
  222. FN_SCIFB2_TXD_B, FN_SSI_SDATA8_B,
  223. FN_DU1_DG6, FN_LCDOUT14, FN_HRTS0_N_B,
  224. FN_SCIFB2_CTS_N_B, FN_SSI_SCK9_B,
  225. FN_DU1_DG7, FN_LCDOUT15, FN_HTX0_B, FN_SCIFB2_RTS_N_B, FN_SSI_WS9_B,
  226. FN_DU1_DB0, FN_LCDOUT16, FN_VI1_CLK_B, FN_TX2_B,
  227. FN_SCIFA2_TXD_B, FN_MSIOF2_TXD_B,
  228. FN_DU1_DB1, FN_LCDOUT17, FN_VI1_HSYNC_N_B, FN_RX2_B,
  229. FN_SCIFA2_RXD_B, FN_MSIOF2_RXD_B,
  230. FN_DU1_DB2, FN_LCDOUT18, FN_VI1_VSYNC_N_B, FN_SCIF2_SCK_B,
  231. FN_SCIFA2_SCK, FN_SSI_SDATA9_B,
  232. FN_DU1_DB3, FN_LCDOUT19, FN_VI1_CLKENB_B,
  233. FN_DU1_DB4, FN_LCDOUT20, FN_VI1_FIELD_B, FN_CAN1_RX,
  234. FN_DU1_DB5, FN_LCDOUT21, FN_TX3, FN_SCIFA3_TXD, FN_CAN1_TX,
  235. /* IPSR9 */
  236. FN_DU1_DB6, FN_LCDOUT22, FN_SCL3_C, FN_RX3, FN_SCIFA3_RXD,
  237. FN_DU1_DB7, FN_LCDOUT23, FN_SDA3_C, FN_SCIF3_SCK, FN_SCIFA3_SCK,
  238. FN_DU1_DOTCLKIN, FN_QSTVA_QVS,
  239. FN_DU1_DOTCLKOUT0, FN_QCLK,
  240. FN_DU1_DOTCLKOUT1, FN_QSTVB_QVE, FN_CAN0_TX,
  241. FN_TX3_B, FN_SCL2_B, FN_PWM4,
  242. FN_DU1_EXHSYNC_DU1_HSYNC, FN_QSTH_QHS,
  243. FN_DU1_EXVSYNC_DU1_VSYNC, FN_QSTB_QHE,
  244. FN_DU1_EXODDF_DU1_ODDF_DISP_CDE, FN_QCPV_QDE,
  245. FN_CAN0_RX, FN_RX3_B, FN_SDA2_B,
  246. FN_DU1_DISP, FN_QPOLA,
  247. FN_DU1_CDE, FN_QPOLB, FN_PWM4_B,
  248. FN_VI0_CLKENB, FN_TX4, FN_SCIFA4_TXD, FN_TS_SDATA0_D,
  249. FN_VI0_FIELD, FN_RX4, FN_SCIFA4_RXD, FN_TS_SCK0_D,
  250. FN_VI0_HSYNC_N, FN_TX5, FN_SCIFA5_TXD, FN_TS_SDEN0_D,
  251. FN_VI0_VSYNC_N, FN_RX5, FN_SCIFA5_RXD, FN_TS_SPSYNC0_D,
  252. FN_VI0_DATA3_VI0_B3, FN_SCIF3_SCK_B, FN_SCIFA3_SCK_B,
  253. FN_VI0_G0, FN_SCL8, FN_STP_IVCXO27_0_C, FN_SCL4,
  254. FN_HCTS2_N, FN_SCIFB2_CTS_N, FN_ATAWR1_N,
  255. /* IPSR10 */
  256. FN_VI0_G1, FN_SDA8, FN_STP_ISCLK_0_C, FN_SDA4,
  257. FN_HRTS2_N, FN_SCIFB2_RTS_N, FN_ATADIR1_N,
  258. FN_VI0_G2, FN_VI2_HSYNC_N, FN_STP_ISD_0_C, FN_SCL3_B,
  259. FN_HSCK2, FN_SCIFB2_SCK, FN_ATARD1_N,
  260. FN_VI0_G3, FN_VI2_VSYNC_N, FN_STP_ISEN_0_C, FN_SDA3_B,
  261. FN_HRX2, FN_SCIFB2_RXD, FN_ATACS01_N,
  262. FN_VI0_G4, FN_VI2_CLKENB, FN_STP_ISSYNC_0_C,
  263. FN_HTX2, FN_SCIFB2_TXD, FN_SCIFB0_SCK_D,
  264. FN_VI0_G5, FN_VI2_FIELD, FN_STP_OPWM_0_C, FN_FMCLK_D,
  265. FN_CAN0_TX_E, FN_HTX1_D, FN_SCIFB0_TXD_D,
  266. FN_VI0_G6, FN_VI2_CLK, FN_BPFCLK_D,
  267. FN_VI0_G7, FN_VI2_DATA0, FN_FMIN_D,
  268. FN_VI0_R0, FN_VI2_DATA1, FN_GLO_I0_B,
  269. FN_TS_SDATA0_C, FN_ATACS11_N,
  270. FN_VI0_R1, FN_VI2_DATA2, FN_GLO_I1_B,
  271. FN_TS_SCK0_C, FN_ATAG1_N,
  272. FN_VI0_R2, FN_VI2_DATA3, FN_GLO_Q0_B, FN_TS_SDEN0_C,
  273. FN_VI0_R3, FN_VI2_DATA4, FN_GLO_Q1_B, FN_TS_SPSYNC0_C,
  274. FN_VI0_R4, FN_VI2_DATA5, FN_GLO_SCLK_B, FN_TX0_C, FN_SCL1_D,
  275. /* IPSR11 */
  276. FN_VI0_R5, FN_VI2_DATA6, FN_GLO_SDATA_B, FN_RX0_C, FN_SDA1_D,
  277. FN_VI0_R6, FN_VI2_DATA7, FN_GLO_SS_B, FN_TX1_C, FN_SCL4_B,
  278. FN_VI0_R7, FN_GLO_RFON_B, FN_RX1_C, FN_CAN0_RX_E,
  279. FN_SDA4_B, FN_HRX1_D, FN_SCIFB0_RXD_D,
  280. FN_VI1_HSYNC_N, FN_AVB_RXD0, FN_TS_SDATA0_B, FN_TX4_B, FN_SCIFA4_TXD_B,
  281. FN_VI1_VSYNC_N, FN_AVB_RXD1, FN_TS_SCK0_B, FN_RX4_B, FN_SCIFA4_RXD_B,
  282. FN_VI1_CLKENB, FN_AVB_RXD2, FN_TS_SDEN0_B,
  283. FN_VI1_FIELD, FN_AVB_RXD3, FN_TS_SPSYNC0_B,
  284. FN_VI1_CLK, FN_AVB_RXD4, FN_VI1_DATA0, FN_AVB_RXD5,
  285. FN_VI1_DATA1, FN_AVB_RXD6, FN_VI1_DATA2, FN_AVB_RXD7,
  286. FN_VI1_DATA3, FN_AVB_RX_ER, FN_VI1_DATA4, FN_AVB_MDIO,
  287. FN_VI1_DATA5, FN_AVB_RX_DV, FN_VI1_DATA6, FN_AVB_MAGIC,
  288. FN_VI1_DATA7, FN_AVB_MDC,
  289. FN_ETH_MDIO, FN_AVB_RX_CLK, FN_SCL2_C,
  290. FN_ETH_CRS_DV, FN_AVB_LINK, FN_SDA2_C,
  291. /* IPSR12 */
  292. FN_ETH_RX_ER, FN_AVB_CRS, FN_SCL3, FN_SCL7,
  293. FN_ETH_RXD0, FN_AVB_PHY_INT, FN_SDA3, FN_SDA7,
  294. FN_ETH_RXD1, FN_AVB_GTXREFCLK, FN_CAN0_TX_C,
  295. FN_SCL2_D, FN_MSIOF1_RXD_E,
  296. FN_ETH_LINK, FN_AVB_TXD0, FN_CAN0_RX_C, FN_SDA2_D, FN_MSIOF1_SCK_E,
  297. FN_ETH_REFCLK, FN_AVB_TXD1, FN_SCIFA3_RXD_B,
  298. FN_CAN1_RX_C, FN_MSIOF1_SYNC_E,
  299. FN_ETH_TXD1, FN_AVB_TXD2, FN_SCIFA3_TXD_B,
  300. FN_CAN1_TX_C, FN_MSIOF1_TXD_E,
  301. FN_ETH_TX_EN, FN_AVB_TXD3, FN_TCLK1_B, FN_CAN_CLK_B,
  302. FN_ETH_MAGIC, FN_AVB_TXD4, FN_IETX_C,
  303. FN_ETH_TXD0, FN_AVB_TXD5, FN_IECLK_C,
  304. FN_ETH_MDC, FN_AVB_TXD6, FN_IERX_C,
  305. FN_STP_IVCXO27_0, FN_AVB_TXD7, FN_SCIFB2_TXD_D,
  306. FN_ADIDATA_B, FN_MSIOF0_SYNC_C,
  307. FN_STP_ISCLK_0, FN_AVB_TX_EN, FN_SCIFB2_RXD_D,
  308. FN_ADICS_SAMP_B, FN_MSIOF0_SCK_C,
  309. /* IPSR13 */
  310. FN_STP_ISD_0, FN_AVB_TX_ER, FN_SCIFB2_SCK_C,
  311. FN_ADICLK_B, FN_MSIOF0_SS1_C,
  312. FN_STP_ISEN_0, FN_AVB_TX_CLK, FN_ADICHS0_B, FN_MSIOF0_SS2_C,
  313. FN_STP_ISSYNC_0, FN_AVB_COL, FN_ADICHS1_B, FN_MSIOF0_RXD_C,
  314. FN_STP_OPWM_0, FN_AVB_GTX_CLK, FN_PWM0_B,
  315. FN_ADICHS2_B, FN_MSIOF0_TXD_C,
  316. FN_SD0_CLK, FN_SPCLK_B, FN_SD0_CMD, FN_MOSI_IO0_B,
  317. FN_SD0_DATA0, FN_MISO_IO1_B, FN_SD0_DATA1, FN_IO2_B,
  318. FN_SD0_DATA2, FN_IO3_B, FN_SD0_DATA3, FN_SSL_B,
  319. FN_SD0_CD, FN_MMC_D6_B, FN_SIM0_RST_B, FN_CAN0_RX_F,
  320. FN_SCIFA5_TXD_B, FN_TX3_C,
  321. FN_SD0_WP, FN_MMC_D7_B, FN_SIM0_D_B, FN_CAN0_TX_F,
  322. FN_SCIFA5_RXD_B, FN_RX3_C,
  323. FN_SD1_CMD, FN_REMOCON_B, FN_SD1_DATA0, FN_SPEEDIN_B,
  324. FN_SD1_DATA1, FN_IETX_B, FN_SD1_DATA2, FN_IECLK_B,
  325. FN_SD1_DATA3, FN_IERX_B,
  326. FN_SD1_CD, FN_PWM0, FN_TPU_TO0, FN_SCL1_C,
  327. /* IPSR14 */
  328. FN_SD1_WP, FN_PWM1_B, FN_SDA1_C,
  329. FN_SD2_CLK, FN_MMC_CLK, FN_SD2_CMD, FN_MMC_CMD,
  330. FN_SD2_DATA0, FN_MMC_D0, FN_SD2_DATA1, FN_MMC_D1,
  331. FN_SD2_DATA2, FN_MMC_D2, FN_SD2_DATA3, FN_MMC_D3,
  332. FN_SD2_CD, FN_MMC_D4, FN_SCL8_C, FN_TX5_B, FN_SCIFA5_TXD_C,
  333. FN_SD2_WP, FN_MMC_D5, FN_SDA8_C, FN_RX5_B, FN_SCIFA5_RXD_C,
  334. FN_MSIOF0_SCK, FN_RX2_C, FN_ADIDATA, FN_VI1_CLK_C, FN_VI1_G0_B,
  335. FN_MSIOF0_SYNC, FN_TX2_C, FN_ADICS_SAMP, FN_VI1_CLKENB_C, FN_VI1_G1_B,
  336. FN_MSIOF0_TXD, FN_ADICLK, FN_VI1_FIELD_C, FN_VI1_G2_B,
  337. FN_MSIOF0_RXD, FN_ADICHS0, FN_VI1_DATA0_C, FN_VI1_G3_B,
  338. FN_MSIOF0_SS1, FN_MMC_D6, FN_ADICHS1, FN_TX0_E,
  339. FN_VI1_HSYNC_N_C, FN_SCL7_C, FN_VI1_G4_B,
  340. FN_MSIOF0_SS2, FN_MMC_D7, FN_ADICHS2, FN_RX0_E,
  341. FN_VI1_VSYNC_N_C, FN_SDA7_C, FN_VI1_G5_B,
  342. /* IPSR15 */
  343. FN_SIM0_RST, FN_IETX, FN_CAN1_TX_D,
  344. FN_SIM0_CLK, FN_IECLK, FN_CAN_CLK_C,
  345. FN_SIM0_D, FN_IERX, FN_CAN1_RX_D,
  346. FN_GPS_CLK, FN_DU1_DOTCLKIN_C, FN_AUDIO_CLKB_B,
  347. FN_PWM5_B, FN_SCIFA3_TXD_C,
  348. FN_GPS_SIGN, FN_TX4_C, FN_SCIFA4_TXD_C, FN_PWM5,
  349. FN_VI1_G6_B, FN_SCIFA3_RXD_C,
  350. FN_GPS_MAG, FN_RX4_C, FN_SCIFA4_RXD_C, FN_PWM6,
  351. FN_VI1_G7_B, FN_SCIFA3_SCK_C,
  352. FN_HCTS0_N, FN_SCIFB0_CTS_N, FN_GLO_I0_C, FN_TCLK1, FN_VI1_DATA1_C,
  353. FN_HRTS0_N, FN_SCIFB0_RTS_N, FN_GLO_I1_C, FN_VI1_DATA2_C,
  354. FN_HSCK0, FN_SCIFB0_SCK, FN_GLO_Q0_C, FN_CAN_CLK,
  355. FN_TCLK2, FN_VI1_DATA3_C,
  356. FN_HRX0, FN_SCIFB0_RXD, FN_GLO_Q1_C, FN_CAN0_RX_B, FN_VI1_DATA4_C,
  357. FN_HTX0, FN_SCIFB0_TXD, FN_GLO_SCLK_C, FN_CAN0_TX_B, FN_VI1_DATA5_C,
  358. /* IPSR16 */
  359. FN_HRX1, FN_SCIFB1_RXD, FN_VI1_R0_B, FN_GLO_SDATA_C, FN_VI1_DATA6_C,
  360. FN_HTX1, FN_SCIFB1_TXD, FN_VI1_R1_B, FN_GLO_SS_C, FN_VI1_DATA7_C,
  361. FN_HSCK1, FN_SCIFB1_SCK, FN_MLB_CLK, FN_GLO_RFON_C,
  362. FN_HCTS1_N, FN_SCIFB1_CTS_N, FN_MLB_SIG, FN_CAN1_TX_B,
  363. FN_HRTS1_N, FN_SCIFB1_RTS_N, FN_MLB_DAT, FN_CAN1_RX_B,
  364. /* MOD_SEL */
  365. FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2, FN_SEL_SCIF1_3,
  366. FN_SEL_SCIFB_0, FN_SEL_SCIFB_1, FN_SEL_SCIFB_2, FN_SEL_SCIFB_3,
  367. FN_SEL_SCIFB2_0, FN_SEL_SCIFB2_1, FN_SEL_SCIFB2_2, FN_SEL_SCIFB2_3,
  368. FN_SEL_SCIFB1_0, FN_SEL_SCIFB1_1, FN_SEL_SCIFB1_2, FN_SEL_SCIFB1_3,
  369. FN_SEL_SCIFA1_0, FN_SEL_SCIFA1_1, FN_SEL_SCIFA1_2,
  370. FN_SEL_SSI9_0, FN_SEL_SSI9_1,
  371. FN_SEL_SCFA_0, FN_SEL_SCFA_1,
  372. FN_SEL_QSP_0, FN_SEL_QSP_1,
  373. FN_SEL_SSI7_0, FN_SEL_SSI7_1,
  374. FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1, FN_SEL_HSCIF1_2, FN_SEL_HSCIF1_3,
  375. FN_SEL_HSCIF1_4,
  376. FN_SEL_VI1_0, FN_SEL_VI1_1, FN_SEL_VI1_2,
  377. FN_SEL_TMU1_0, FN_SEL_TMU1_1,
  378. FN_SEL_LBS_0, FN_SEL_LBS_1, FN_SEL_LBS_2, FN_SEL_LBS_3,
  379. FN_SEL_TSIF0_0, FN_SEL_TSIF0_1, FN_SEL_TSIF0_2, FN_SEL_TSIF0_3,
  380. FN_SEL_SOF0_0, FN_SEL_SOF0_1, FN_SEL_SOF0_2,
  381. /* MOD_SEL2 */
  382. FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2, FN_SEL_SCIF0_3,
  383. FN_SEL_SCIF0_4,
  384. FN_SEL_SCIF_0, FN_SEL_SCIF_1,
  385. FN_SEL_CAN0_0, FN_SEL_CAN0_1, FN_SEL_CAN0_2, FN_SEL_CAN0_3,
  386. FN_SEL_CAN0_4, FN_SEL_CAN0_5,
  387. FN_SEL_CAN1_0, FN_SEL_CAN1_1, FN_SEL_CAN1_2, FN_SEL_CAN1_3,
  388. FN_SEL_SCIFA2_0, FN_SEL_SCIFA2_1,
  389. FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, FN_SEL_SCIF4_2,
  390. FN_SEL_ADG_0, FN_SEL_ADG_1,
  391. FN_SEL_FM_0, FN_SEL_FM_1, FN_SEL_FM_2, FN_SEL_FM_3, FN_SEL_FM_4,
  392. FN_SEL_SCIFA5_0, FN_SEL_SCIFA5_1, FN_SEL_SCIFA5_2,
  393. FN_SEL_GPS_0, FN_SEL_GPS_1, FN_SEL_GPS_2, FN_SEL_GPS_3,
  394. FN_SEL_SCIFA4_0, FN_SEL_SCIFA4_1, FN_SEL_SCIFA4_2,
  395. FN_SEL_SCIFA3_0, FN_SEL_SCIFA3_1, FN_SEL_SCIFA3_2,
  396. FN_SEL_SIM_0, FN_SEL_SIM_1,
  397. FN_SEL_SSI8_0, FN_SEL_SSI8_1,
  398. /* MOD_SEL3 */
  399. FN_SEL_HSCIF2_0, FN_SEL_HSCIF2_1, FN_SEL_HSCIF2_2, FN_SEL_HSCIF2_3,
  400. FN_SEL_CANCLK_0, FN_SEL_CANCLK_1, FN_SEL_CANCLK_2, FN_SEL_CANCLK_3,
  401. FN_SEL_IIC8_0, FN_SEL_IIC8_1, FN_SEL_IIC8_2,
  402. FN_SEL_IIC7_0, FN_SEL_IIC7_1, FN_SEL_IIC7_2,
  403. FN_SEL_IIC4_0, FN_SEL_IIC4_1, FN_SEL_IIC4_2,
  404. FN_SEL_IIC3_0, FN_SEL_IIC3_1, FN_SEL_IIC3_2, FN_SEL_IIC3_3,
  405. FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2, FN_SEL_SCIF3_3,
  406. FN_SEL_IEB_0, FN_SEL_IEB_1, FN_SEL_IEB_2,
  407. FN_SEL_MMC_0, FN_SEL_MMC_1,
  408. FN_SEL_SCIF5_0, FN_SEL_SCIF5_1,
  409. FN_SEL_IIC2_0, FN_SEL_IIC2_1, FN_SEL_IIC2_2, FN_SEL_IIC2_3,
  410. FN_SEL_IIC1_0, FN_SEL_IIC1_1, FN_SEL_IIC1_2, FN_SEL_IIC1_3,
  411. FN_SEL_IIC1_4,
  412. FN_SEL_IIC0_0, FN_SEL_IIC0_1, FN_SEL_IIC0_2,
  413. /* MOD_SEL4 */
  414. FN_SEL_SOF1_0, FN_SEL_SOF1_1, FN_SEL_SOF1_2, FN_SEL_SOF1_3,
  415. FN_SEL_SOF1_4,
  416. FN_SEL_HSCIF0_0, FN_SEL_HSCIF0_1, FN_SEL_HSCIF0_2,
  417. FN_SEL_DIS_0, FN_SEL_DIS_1, FN_SEL_DIS_2,
  418. FN_SEL_RAD_0, FN_SEL_RAD_1,
  419. FN_SEL_RCN_0, FN_SEL_RCN_1,
  420. FN_SEL_RSP_0, FN_SEL_RSP_1,
  421. FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2, FN_SEL_SCIF2_3,
  422. FN_SEL_SCIF2_4,
  423. FN_SEL_SOF2_0, FN_SEL_SOF2_1, FN_SEL_SOF2_2, FN_SEL_SOF2_3,
  424. FN_SEL_SOF2_4,
  425. FN_SEL_SSI1_0, FN_SEL_SSI1_1,
  426. FN_SEL_SSI0_0, FN_SEL_SSI0_1,
  427. FN_SEL_SSP_0, FN_SEL_SSP_1, FN_SEL_SSP_2,
  428. PINMUX_FUNCTION_END,
  429. PINMUX_MARK_BEGIN,
  430. EX_CS0_N_MARK, RD_N_MARK,
  431. AUDIO_CLKA_MARK,
  432. VI0_CLK_MARK, VI0_DATA0_VI0_B0_MARK, VI0_DATA1_VI0_B1_MARK,
  433. VI0_DATA2_VI0_B2_MARK, VI0_DATA4_VI0_B4_MARK, VI0_DATA5_VI0_B5_MARK,
  434. VI0_DATA6_VI0_B6_MARK, VI0_DATA7_VI0_B7_MARK,
  435. SD1_CLK_MARK,
  436. USB0_PWEN_MARK, USB0_OVC_MARK, USB1_PWEN_MARK, USB1_OVC_MARK,
  437. DU0_DOTCLKIN_MARK,
  438. /* IPSR0 */
  439. D0_MARK, D1_MARK, D2_MARK, D3_MARK, D4_MARK, D5_MARK,
  440. D6_MARK, D7_MARK, D8_MARK,
  441. D9_MARK, D10_MARK, D11_MARK, D12_MARK, D13_MARK, D14_MARK, D15_MARK,
  442. A0_MARK, ATAWR0_N_C_MARK, MSIOF0_SCK_B_MARK, SCL0_C_MARK, PWM2_B_MARK,
  443. A1_MARK, MSIOF0_SYNC_B_MARK, A2_MARK, MSIOF0_SS1_B_MARK,
  444. A3_MARK, MSIOF0_SS2_B_MARK, A4_MARK, MSIOF0_TXD_B_MARK,
  445. A5_MARK, MSIOF0_RXD_B_MARK, A6_MARK, MSIOF1_SCK_MARK,
  446. /* IPSR1 */
  447. A7_MARK, MSIOF1_SYNC_MARK, A8_MARK, MSIOF1_SS1_MARK, SCL0_MARK,
  448. A9_MARK, MSIOF1_SS2_MARK, SDA0_MARK,
  449. A10_MARK, MSIOF1_TXD_MARK, MSIOF1_TXD_D_MARK,
  450. A11_MARK, MSIOF1_RXD_MARK, SCL3_D_MARK, MSIOF1_RXD_D_MARK,
  451. A12_MARK, FMCLK_MARK, SDA3_D_MARK, MSIOF1_SCK_D_MARK,
  452. A13_MARK, ATAG0_N_C_MARK, BPFCLK_MARK, MSIOF1_SS1_D_MARK,
  453. A14_MARK, ATADIR0_N_C_MARK, FMIN_MARK, FMIN_C_MARK, MSIOF1_SYNC_D_MARK,
  454. A15_MARK, BPFCLK_C_MARK,
  455. A16_MARK, DREQ2_B_MARK, FMCLK_C_MARK, SCIFA1_SCK_B_MARK,
  456. A17_MARK, DACK2_B_MARK, SDA0_C_MARK,
  457. A18_MARK, DREQ1_MARK, SCIFA1_RXD_C_MARK, SCIFB1_RXD_C_MARK,
  458. /* IPSR2 */
  459. A19_MARK, DACK1_MARK, SCIFA1_TXD_C_MARK,
  460. SCIFB1_TXD_C_MARK, SCIFB1_SCK_B_MARK,
  461. A20_MARK, SPCLK_MARK,
  462. A21_MARK, ATAWR0_N_B_MARK, MOSI_IO0_MARK,
  463. A22_MARK, MISO_IO1_MARK, FMCLK_B_MARK, TX0_MARK, SCIFA0_TXD_MARK,
  464. A23_MARK, IO2_MARK, BPFCLK_B_MARK, RX0_MARK, SCIFA0_RXD_MARK,
  465. A24_MARK, DREQ2_MARK, IO3_MARK, TX1_MARK, SCIFA1_TXD_MARK,
  466. A25_MARK, DACK2_MARK, SSL_MARK, DREQ1_C_MARK,
  467. RX1_MARK, SCIFA1_RXD_MARK,
  468. CS0_N_MARK, ATAG0_N_B_MARK, SCL1_MARK,
  469. CS1_N_A26_MARK, ATADIR0_N_B_MARK, SDA1_MARK,
  470. EX_CS1_N_MARK, MSIOF2_SCK_MARK,
  471. EX_CS2_N_MARK, ATAWR0_N_MARK, MSIOF2_SYNC_MARK,
  472. EX_CS3_N_MARK, ATADIR0_N_MARK, MSIOF2_TXD_MARK,
  473. ATAG0_N_MARK, EX_WAIT1_MARK,
  474. /* IPSR3 */
  475. EX_CS4_N_MARK, ATARD0_N_MARK, MSIOF2_RXD_MARK, EX_WAIT2_MARK,
  476. EX_CS5_N_MARK, ATACS00_N_MARK, MSIOF2_SS1_MARK, HRX1_B_MARK,
  477. SCIFB1_RXD_B_MARK, PWM1_MARK, TPU_TO1_MARK,
  478. BS_N_MARK, ATACS10_N_MARK, MSIOF2_SS2_MARK, HTX1_B_MARK,
  479. SCIFB1_TXD_B_MARK, PWM2_MARK, TPU_TO2_MARK,
  480. RD_WR_N_MARK, HRX2_B_MARK, FMIN_B_MARK,
  481. SCIFB0_RXD_B_MARK, DREQ1_D_MARK,
  482. WE0_N_MARK, HCTS2_N_B_MARK, SCIFB0_TXD_B_MARK,
  483. WE1_N_MARK, ATARD0_N_B_MARK, HTX2_B_MARK, SCIFB0_RTS_N_B_MARK,
  484. EX_WAIT0_MARK, HRTS2_N_B_MARK, SCIFB0_CTS_N_B_MARK,
  485. DREQ0_MARK, PWM3_MARK, TPU_TO3_MARK,
  486. DACK0_MARK, DRACK0_MARK, REMOCON_MARK,
  487. SPEEDIN_MARK, HSCK0_C_MARK, HSCK2_C_MARK, SCIFB0_SCK_B_MARK,
  488. SCIFB2_SCK_B_MARK, DREQ2_C_MARK, HTX2_D_MARK,
  489. SSI_SCK0129_MARK, HRX0_C_MARK, HRX2_C_MARK,
  490. SCIFB0_RXD_C_MARK, SCIFB2_RXD_C_MARK,
  491. SSI_WS0129_MARK, HTX0_C_MARK, HTX2_C_MARK,
  492. SCIFB0_TXD_C_MARK, SCIFB2_TXD_C_MARK,
  493. /* IPSR4 */
  494. SSI_SDATA0_MARK, SCL0_B_MARK, SCL7_B_MARK, MSIOF2_SCK_C_MARK,
  495. SSI_SCK1_MARK, SDA0_B_MARK, SDA7_B_MARK,
  496. MSIOF2_SYNC_C_MARK, GLO_I0_D_MARK,
  497. SSI_WS1_MARK, SCL1_B_MARK, SCL8_B_MARK,
  498. MSIOF2_TXD_C_MARK, GLO_I1_D_MARK,
  499. SSI_SDATA1_MARK, SDA1_B_MARK, SDA8_B_MARK, MSIOF2_RXD_C_MARK,
  500. SSI_SCK2_MARK, SCL2_MARK, GPS_CLK_B_MARK, GLO_Q0_D_MARK, HSCK1_E_MARK,
  501. SSI_WS2_MARK, SDA2_MARK, GPS_SIGN_B_MARK, RX2_E_MARK,
  502. GLO_Q1_D_MARK, HCTS1_N_E_MARK,
  503. SSI_SDATA2_MARK, GPS_MAG_B_MARK, TX2_E_MARK, HRTS1_N_E_MARK,
  504. SSI_SCK34_MARK, SSI_WS34_MARK, SSI_SDATA3_MARK,
  505. SSI_SCK4_MARK, GLO_SS_D_MARK,
  506. SSI_WS4_MARK, GLO_RFON_D_MARK,
  507. SSI_SDATA4_MARK, MSIOF2_SCK_D_MARK,
  508. SSI_SCK5_MARK, MSIOF1_SCK_C_MARK, TS_SDATA0_MARK, GLO_I0_MARK,
  509. MSIOF2_SYNC_D_MARK, VI1_R2_B_MARK,
  510. /* IPSR5 */
  511. SSI_WS5_MARK, MSIOF1_SYNC_C_MARK, TS_SCK0_MARK, GLO_I1_MARK,
  512. MSIOF2_TXD_D_MARK, VI1_R3_B_MARK,
  513. SSI_SDATA5_MARK, MSIOF1_TXD_C_MARK, TS_SDEN0_MARK, GLO_Q0_MARK,
  514. MSIOF2_SS1_D_MARK, VI1_R4_B_MARK,
  515. SSI_SCK6_MARK, MSIOF1_RXD_C_MARK, TS_SPSYNC0_MARK, GLO_Q1_MARK,
  516. MSIOF2_RXD_D_MARK, VI1_R5_B_MARK,
  517. SSI_WS6_MARK, GLO_SCLK_MARK, MSIOF2_SS2_D_MARK, VI1_R6_B_MARK,
  518. SSI_SDATA6_MARK, STP_IVCXO27_0_B_MARK, GLO_SDATA_MARK, VI1_R7_B_MARK,
  519. SSI_SCK78_MARK, STP_ISCLK_0_B_MARK, GLO_SS_MARK,
  520. SSI_WS78_MARK, TX0_D_MARK, STP_ISD_0_B_MARK, GLO_RFON_MARK,
  521. SSI_SDATA7_MARK, RX0_D_MARK, STP_ISEN_0_B_MARK,
  522. SSI_SDATA8_MARK, TX1_D_MARK, STP_ISSYNC_0_B_MARK,
  523. SSI_SCK9_MARK, RX1_D_MARK, GLO_SCLK_D_MARK,
  524. SSI_WS9_MARK, TX3_D_MARK, CAN0_TX_D_MARK, GLO_SDATA_D_MARK,
  525. SSI_SDATA9_MARK, RX3_D_MARK, CAN0_RX_D_MARK,
  526. /* IPSR6 */
  527. AUDIO_CLKB_MARK, STP_OPWM_0_B_MARK, MSIOF1_SCK_B_MARK,
  528. SCIF_CLK_MARK, DVC_MUTE_MARK, BPFCLK_E_MARK,
  529. AUDIO_CLKC_MARK, SCIFB0_SCK_C_MARK, MSIOF1_SYNC_B_MARK, RX2_MARK,
  530. SCIFA2_RXD_MARK, FMIN_E_MARK,
  531. AUDIO_CLKOUT_MARK, MSIOF1_SS1_B_MARK, TX2_MARK, SCIFA2_TXD_MARK,
  532. IRQ0_MARK, SCIFB1_RXD_D_MARK, INTC_IRQ0_N_MARK,
  533. IRQ1_MARK, SCIFB1_SCK_C_MARK, INTC_IRQ1_N_MARK,
  534. IRQ2_MARK, SCIFB1_TXD_D_MARK, INTC_IRQ2_N_MARK,
  535. IRQ3_MARK, SCL4_C_MARK, MSIOF2_TXD_E_MARK, INTC_IRQ3_N_MARK,
  536. IRQ4_MARK, HRX1_C_MARK, SDA4_C_MARK,
  537. MSIOF2_RXD_E_MARK, INTC_IRQ4_N_MARK,
  538. IRQ5_MARK, HTX1_C_MARK, SCL1_E_MARK, MSIOF2_SCK_E_MARK,
  539. IRQ6_MARK, HSCK1_C_MARK, MSIOF1_SS2_B_MARK,
  540. SDA1_E_MARK, MSIOF2_SYNC_E_MARK,
  541. IRQ7_MARK, HCTS1_N_C_MARK, MSIOF1_TXD_B_MARK,
  542. GPS_CLK_C_MARK, GPS_CLK_D_MARK,
  543. IRQ8_MARK, HRTS1_N_C_MARK, MSIOF1_RXD_B_MARK,
  544. GPS_SIGN_C_MARK, GPS_SIGN_D_MARK,
  545. /* IPSR7 */
  546. IRQ9_MARK, DU1_DOTCLKIN_B_MARK, CAN_CLK_D_MARK, GPS_MAG_C_MARK,
  547. SCIF_CLK_B_MARK, GPS_MAG_D_MARK,
  548. DU1_DR0_MARK, LCDOUT0_MARK, VI1_DATA0_B_MARK, TX0_B_MARK,
  549. SCIFA0_TXD_B_MARK, MSIOF2_SCK_B_MARK,
  550. DU1_DR1_MARK, LCDOUT1_MARK, VI1_DATA1_B_MARK, RX0_B_MARK,
  551. SCIFA0_RXD_B_MARK, MSIOF2_SYNC_B_MARK,
  552. DU1_DR2_MARK, LCDOUT2_MARK, SSI_SCK0129_B_MARK,
  553. DU1_DR3_MARK, LCDOUT3_MARK, SSI_WS0129_B_MARK,
  554. DU1_DR4_MARK, LCDOUT4_MARK, SSI_SDATA0_B_MARK,
  555. DU1_DR5_MARK, LCDOUT5_MARK, SSI_SCK1_B_MARK,
  556. DU1_DR6_MARK, LCDOUT6_MARK, SSI_WS1_B_MARK,
  557. DU1_DR7_MARK, LCDOUT7_MARK, SSI_SDATA1_B_MARK,
  558. DU1_DG0_MARK, LCDOUT8_MARK, VI1_DATA2_B_MARK, TX1_B_MARK,
  559. SCIFA1_TXD_B_MARK, MSIOF2_SS1_B_MARK,
  560. DU1_DG1_MARK, LCDOUT9_MARK, VI1_DATA3_B_MARK, RX1_B_MARK,
  561. SCIFA1_RXD_B_MARK, MSIOF2_SS2_B_MARK,
  562. DU1_DG2_MARK, LCDOUT10_MARK, VI1_DATA4_B_MARK, SCIF1_SCK_B_MARK,
  563. SCIFA1_SCK_MARK, SSI_SCK78_B_MARK,
  564. /* IPSR8 */
  565. DU1_DG3_MARK, LCDOUT11_MARK, VI1_DATA5_B_MARK, SSI_WS78_B_MARK,
  566. DU1_DG4_MARK, LCDOUT12_MARK, VI1_DATA6_B_MARK, HRX0_B_MARK,
  567. SCIFB2_RXD_B_MARK, SSI_SDATA7_B_MARK,
  568. DU1_DG5_MARK, LCDOUT13_MARK, VI1_DATA7_B_MARK, HCTS0_N_B_MARK,
  569. SCIFB2_TXD_B_MARK, SSI_SDATA8_B_MARK,
  570. DU1_DG6_MARK, LCDOUT14_MARK, HRTS0_N_B_MARK,
  571. SCIFB2_CTS_N_B_MARK, SSI_SCK9_B_MARK,
  572. DU1_DG7_MARK, LCDOUT15_MARK, HTX0_B_MARK,
  573. SCIFB2_RTS_N_B_MARK, SSI_WS9_B_MARK,
  574. DU1_DB0_MARK, LCDOUT16_MARK, VI1_CLK_B_MARK, TX2_B_MARK,
  575. SCIFA2_TXD_B_MARK, MSIOF2_TXD_B_MARK,
  576. DU1_DB1_MARK, LCDOUT17_MARK, VI1_HSYNC_N_B_MARK, RX2_B_MARK,
  577. SCIFA2_RXD_B_MARK, MSIOF2_RXD_B_MARK,
  578. DU1_DB2_MARK, LCDOUT18_MARK, VI1_VSYNC_N_B_MARK, SCIF2_SCK_B_MARK,
  579. SCIFA2_SCK_MARK, SSI_SDATA9_B_MARK,
  580. DU1_DB3_MARK, LCDOUT19_MARK, VI1_CLKENB_B_MARK,
  581. DU1_DB4_MARK, LCDOUT20_MARK, VI1_FIELD_B_MARK, CAN1_RX_MARK,
  582. DU1_DB5_MARK, LCDOUT21_MARK, TX3_MARK, SCIFA3_TXD_MARK, CAN1_TX_MARK,
  583. /* IPSR9 */
  584. DU1_DB6_MARK, LCDOUT22_MARK, SCL3_C_MARK, RX3_MARK, SCIFA3_RXD_MARK,
  585. DU1_DB7_MARK, LCDOUT23_MARK, SDA3_C_MARK,
  586. SCIF3_SCK_MARK, SCIFA3_SCK_MARK,
  587. DU1_DOTCLKIN_MARK, QSTVA_QVS_MARK,
  588. DU1_DOTCLKOUT0_MARK, QCLK_MARK,
  589. DU1_DOTCLKOUT1_MARK, QSTVB_QVE_MARK, CAN0_TX_MARK,
  590. TX3_B_MARK, SCL2_B_MARK, PWM4_MARK,
  591. DU1_EXHSYNC_DU1_HSYNC_MARK, QSTH_QHS_MARK,
  592. DU1_EXVSYNC_DU1_VSYNC_MARK, QSTB_QHE_MARK,
  593. DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK, QCPV_QDE_MARK,
  594. CAN0_RX_MARK, RX3_B_MARK, SDA2_B_MARK,
  595. DU1_DISP_MARK, QPOLA_MARK,
  596. DU1_CDE_MARK, QPOLB_MARK, PWM4_B_MARK,
  597. VI0_CLKENB_MARK, TX4_MARK, SCIFA4_TXD_MARK, TS_SDATA0_D_MARK,
  598. VI0_FIELD_MARK, RX4_MARK, SCIFA4_RXD_MARK, TS_SCK0_D_MARK,
  599. VI0_HSYNC_N_MARK, TX5_MARK, SCIFA5_TXD_MARK, TS_SDEN0_D_MARK,
  600. VI0_VSYNC_N_MARK, RX5_MARK, SCIFA5_RXD_MARK, TS_SPSYNC0_D_MARK,
  601. VI0_DATA3_VI0_B3_MARK, SCIF3_SCK_B_MARK, SCIFA3_SCK_B_MARK,
  602. VI0_G0_MARK, SCL8_MARK, STP_IVCXO27_0_C_MARK, SCL4_MARK,
  603. HCTS2_N_MARK, SCIFB2_CTS_N_MARK, ATAWR1_N_MARK,
  604. /* IPSR10 */
  605. VI0_G1_MARK, SDA8_MARK, STP_ISCLK_0_C_MARK, SDA4_MARK,
  606. HRTS2_N_MARK, SCIFB2_RTS_N_MARK, ATADIR1_N_MARK,
  607. VI0_G2_MARK, VI2_HSYNC_N_MARK, STP_ISD_0_C_MARK, SCL3_B_MARK,
  608. HSCK2_MARK, SCIFB2_SCK_MARK, ATARD1_N_MARK,
  609. VI0_G3_MARK, VI2_VSYNC_N_MARK, STP_ISEN_0_C_MARK, SDA3_B_MARK,
  610. HRX2_MARK, SCIFB2_RXD_MARK, ATACS01_N_MARK,
  611. VI0_G4_MARK, VI2_CLKENB_MARK, STP_ISSYNC_0_C_MARK,
  612. HTX2_MARK, SCIFB2_TXD_MARK, SCIFB0_SCK_D_MARK,
  613. VI0_G5_MARK, VI2_FIELD_MARK, STP_OPWM_0_C_MARK, FMCLK_D_MARK,
  614. CAN0_TX_E_MARK, HTX1_D_MARK, SCIFB0_TXD_D_MARK,
  615. VI0_G6_MARK, VI2_CLK_MARK, BPFCLK_D_MARK,
  616. VI0_G7_MARK, VI2_DATA0_MARK, FMIN_D_MARK,
  617. VI0_R0_MARK, VI2_DATA1_MARK, GLO_I0_B_MARK,
  618. TS_SDATA0_C_MARK, ATACS11_N_MARK,
  619. VI0_R1_MARK, VI2_DATA2_MARK, GLO_I1_B_MARK,
  620. TS_SCK0_C_MARK, ATAG1_N_MARK,
  621. VI0_R2_MARK, VI2_DATA3_MARK, GLO_Q0_B_MARK, TS_SDEN0_C_MARK,
  622. VI0_R3_MARK, VI2_DATA4_MARK, GLO_Q1_B_MARK, TS_SPSYNC0_C_MARK,
  623. VI0_R4_MARK, VI2_DATA5_MARK, GLO_SCLK_B_MARK, TX0_C_MARK, SCL1_D_MARK,
  624. /* IPSR11 */
  625. VI0_R5_MARK, VI2_DATA6_MARK, GLO_SDATA_B_MARK, RX0_C_MARK, SDA1_D_MARK,
  626. VI0_R6_MARK, VI2_DATA7_MARK, GLO_SS_B_MARK, TX1_C_MARK, SCL4_B_MARK,
  627. VI0_R7_MARK, GLO_RFON_B_MARK, RX1_C_MARK, CAN0_RX_E_MARK,
  628. SDA4_B_MARK, HRX1_D_MARK, SCIFB0_RXD_D_MARK,
  629. VI1_HSYNC_N_MARK, AVB_RXD0_MARK, TS_SDATA0_B_MARK,
  630. TX4_B_MARK, SCIFA4_TXD_B_MARK,
  631. VI1_VSYNC_N_MARK, AVB_RXD1_MARK, TS_SCK0_B_MARK,
  632. RX4_B_MARK, SCIFA4_RXD_B_MARK,
  633. VI1_CLKENB_MARK, AVB_RXD2_MARK, TS_SDEN0_B_MARK,
  634. VI1_FIELD_MARK, AVB_RXD3_MARK, TS_SPSYNC0_B_MARK,
  635. VI1_CLK_MARK, AVB_RXD4_MARK, VI1_DATA0_MARK, AVB_RXD5_MARK,
  636. VI1_DATA1_MARK, AVB_RXD6_MARK, VI1_DATA2_MARK, AVB_RXD7_MARK,
  637. VI1_DATA3_MARK, AVB_RX_ER_MARK, VI1_DATA4_MARK, AVB_MDIO_MARK,
  638. VI1_DATA5_MARK, AVB_RX_DV_MARK, VI1_DATA6_MARK, AVB_MAGIC_MARK,
  639. VI1_DATA7_MARK, AVB_MDC_MARK,
  640. ETH_MDIO_MARK, AVB_RX_CLK_MARK, SCL2_C_MARK,
  641. ETH_CRS_DV_MARK, AVB_LINK_MARK, SDA2_C_MARK,
  642. /* IPSR12 */
  643. ETH_RX_ER_MARK, AVB_CRS_MARK, SCL3_MARK, SCL7_MARK,
  644. ETH_RXD0_MARK, AVB_PHY_INT_MARK, SDA3_MARK, SDA7_MARK,
  645. ETH_RXD1_MARK, AVB_GTXREFCLK_MARK, CAN0_TX_C_MARK,
  646. SCL2_D_MARK, MSIOF1_RXD_E_MARK,
  647. ETH_LINK_MARK, AVB_TXD0_MARK, CAN0_RX_C_MARK,
  648. SDA2_D_MARK, MSIOF1_SCK_E_MARK,
  649. ETH_REFCLK_MARK, AVB_TXD1_MARK, SCIFA3_RXD_B_MARK,
  650. CAN1_RX_C_MARK, MSIOF1_SYNC_E_MARK,
  651. ETH_TXD1_MARK, AVB_TXD2_MARK, SCIFA3_TXD_B_MARK,
  652. CAN1_TX_C_MARK, MSIOF1_TXD_E_MARK,
  653. ETH_TX_EN_MARK, AVB_TXD3_MARK, TCLK1_B_MARK, CAN_CLK_B_MARK,
  654. ETH_MAGIC_MARK, AVB_TXD4_MARK, IETX_C_MARK,
  655. ETH_TXD0_MARK, AVB_TXD5_MARK, IECLK_C_MARK,
  656. ETH_MDC_MARK, AVB_TXD6_MARK, IERX_C_MARK,
  657. STP_IVCXO27_0_MARK, AVB_TXD7_MARK, SCIFB2_TXD_D_MARK,
  658. ADIDATA_B_MARK, MSIOF0_SYNC_C_MARK,
  659. STP_ISCLK_0_MARK, AVB_TX_EN_MARK, SCIFB2_RXD_D_MARK,
  660. ADICS_SAMP_B_MARK, MSIOF0_SCK_C_MARK,
  661. /* IPSR13 */
  662. STP_ISD_0_MARK, AVB_TX_ER_MARK, SCIFB2_SCK_C_MARK,
  663. ADICLK_B_MARK, MSIOF0_SS1_C_MARK,
  664. STP_ISEN_0_MARK, AVB_TX_CLK_MARK, ADICHS0_B_MARK, MSIOF0_SS2_C_MARK,
  665. STP_ISSYNC_0_MARK, AVB_COL_MARK, ADICHS1_B_MARK, MSIOF0_RXD_C_MARK,
  666. STP_OPWM_0_MARK, AVB_GTX_CLK_MARK, PWM0_B_MARK,
  667. ADICHS2_B_MARK, MSIOF0_TXD_C_MARK,
  668. SD0_CLK_MARK, SPCLK_B_MARK, SD0_CMD_MARK, MOSI_IO0_B_MARK,
  669. SD0_DATA0_MARK, MISO_IO1_B_MARK, SD0_DATA1_MARK, IO2_B_MARK,
  670. SD0_DATA2_MARK, IO3_B_MARK, SD0_DATA3_MARK, SSL_B_MARK,
  671. SD0_CD_MARK, MMC_D6_B_MARK, SIM0_RST_B_MARK, CAN0_RX_F_MARK,
  672. SCIFA5_TXD_B_MARK, TX3_C_MARK,
  673. SD0_WP_MARK, MMC_D7_B_MARK, SIM0_D_B_MARK, CAN0_TX_F_MARK,
  674. SCIFA5_RXD_B_MARK, RX3_C_MARK,
  675. SD1_CMD_MARK, REMOCON_B_MARK, SD1_DATA0_MARK, SPEEDIN_B_MARK,
  676. SD1_DATA1_MARK, IETX_B_MARK, SD1_DATA2_MARK, IECLK_B_MARK,
  677. SD1_DATA3_MARK, IERX_B_MARK,
  678. SD1_CD_MARK, PWM0_MARK, TPU_TO0_MARK, SCL1_C_MARK,
  679. /* IPSR14 */
  680. SD1_WP_MARK, PWM1_B_MARK, SDA1_C_MARK,
  681. SD2_CLK_MARK, MMC_CLK_MARK, SD2_CMD_MARK, MMC_CMD_MARK,
  682. SD2_DATA0_MARK, MMC_D0_MARK, SD2_DATA1_MARK, MMC_D1_MARK,
  683. SD2_DATA2_MARK, MMC_D2_MARK, SD2_DATA3_MARK, MMC_D3_MARK,
  684. SD2_CD_MARK, MMC_D4_MARK, SCL8_C_MARK, TX5_B_MARK, SCIFA5_TXD_C_MARK,
  685. SD2_WP_MARK, MMC_D5_MARK, SDA8_C_MARK, RX5_B_MARK, SCIFA5_RXD_C_MARK,
  686. MSIOF0_SCK_MARK, RX2_C_MARK, ADIDATA_MARK,
  687. VI1_CLK_C_MARK, VI1_G0_B_MARK,
  688. MSIOF0_SYNC_MARK, TX2_C_MARK, ADICS_SAMP_MARK,
  689. VI1_CLKENB_C_MARK, VI1_G1_B_MARK,
  690. MSIOF0_TXD_MARK, ADICLK_MARK, VI1_FIELD_C_MARK, VI1_G2_B_MARK,
  691. MSIOF0_RXD_MARK, ADICHS0_MARK, VI1_DATA0_C_MARK, VI1_G3_B_MARK,
  692. MSIOF0_SS1_MARK, MMC_D6_MARK, ADICHS1_MARK, TX0_E_MARK,
  693. VI1_HSYNC_N_C_MARK, SCL7_C_MARK, VI1_G4_B_MARK,
  694. MSIOF0_SS2_MARK, MMC_D7_MARK, ADICHS2_MARK, RX0_E_MARK,
  695. VI1_VSYNC_N_C_MARK, SDA7_C_MARK, VI1_G5_B_MARK,
  696. /* IPSR15 */
  697. SIM0_RST_MARK, IETX_MARK, CAN1_TX_D_MARK,
  698. SIM0_CLK_MARK, IECLK_MARK, CAN_CLK_C_MARK,
  699. SIM0_D_MARK, IERX_MARK, CAN1_RX_D_MARK,
  700. GPS_CLK_MARK, DU1_DOTCLKIN_C_MARK, AUDIO_CLKB_B_MARK,
  701. PWM5_B_MARK, SCIFA3_TXD_C_MARK,
  702. GPS_SIGN_MARK, TX4_C_MARK, SCIFA4_TXD_C_MARK, PWM5_MARK,
  703. VI1_G6_B_MARK, SCIFA3_RXD_C_MARK,
  704. GPS_MAG_MARK, RX4_C_MARK, SCIFA4_RXD_C_MARK, PWM6_MARK,
  705. VI1_G7_B_MARK, SCIFA3_SCK_C_MARK,
  706. HCTS0_N_MARK, SCIFB0_CTS_N_MARK, GLO_I0_C_MARK,
  707. TCLK1_MARK, VI1_DATA1_C_MARK,
  708. HRTS0_N_MARK, SCIFB0_RTS_N_MARK, GLO_I1_C_MARK, VI1_DATA2_C_MARK,
  709. HSCK0_MARK, SCIFB0_SCK_MARK, GLO_Q0_C_MARK, CAN_CLK_MARK,
  710. TCLK2_MARK, VI1_DATA3_C_MARK,
  711. HRX0_MARK, SCIFB0_RXD_MARK, GLO_Q1_C_MARK,
  712. CAN0_RX_B_MARK, VI1_DATA4_C_MARK,
  713. HTX0_MARK, SCIFB0_TXD_MARK, GLO_SCLK_C_MARK,
  714. CAN0_TX_B_MARK, VI1_DATA5_C_MARK,
  715. /* IPSR16 */
  716. HRX1_MARK, SCIFB1_RXD_MARK, VI1_R0_B_MARK,
  717. GLO_SDATA_C_MARK, VI1_DATA6_C_MARK,
  718. HTX1_MARK, SCIFB1_TXD_MARK, VI1_R1_B_MARK,
  719. GLO_SS_C_MARK, VI1_DATA7_C_MARK,
  720. HSCK1_MARK, SCIFB1_SCK_MARK, MLB_CLK_MARK, GLO_RFON_C_MARK,
  721. HCTS1_N_MARK, SCIFB1_CTS_N_MARK, MLB_SIG_MARK, CAN1_TX_B_MARK,
  722. HRTS1_N_MARK, SCIFB1_RTS_N_MARK, MLB_DAT_MARK, CAN1_RX_B_MARK,
  723. PINMUX_MARK_END,
  724. };
  725. static const u16 pinmux_data[] = {
  726. PINMUX_DATA_GP_ALL(), /* PINMUX_DATA(GP_M_N_DATA, GP_M_N_FN...), */
  727. PINMUX_SINGLE(EX_CS0_N),
  728. PINMUX_SINGLE(RD_N),
  729. PINMUX_SINGLE(AUDIO_CLKA),
  730. PINMUX_SINGLE(VI0_CLK),
  731. PINMUX_SINGLE(VI0_DATA0_VI0_B0),
  732. PINMUX_SINGLE(VI0_DATA1_VI0_B1),
  733. PINMUX_SINGLE(VI0_DATA2_VI0_B2),
  734. PINMUX_SINGLE(VI0_DATA4_VI0_B4),
  735. PINMUX_SINGLE(VI0_DATA5_VI0_B5),
  736. PINMUX_SINGLE(VI0_DATA6_VI0_B6),
  737. PINMUX_SINGLE(VI0_DATA7_VI0_B7),
  738. PINMUX_SINGLE(USB0_PWEN),
  739. PINMUX_SINGLE(USB0_OVC),
  740. PINMUX_SINGLE(USB1_PWEN),
  741. PINMUX_SINGLE(USB1_OVC),
  742. PINMUX_SINGLE(DU0_DOTCLKIN),
  743. PINMUX_SINGLE(SD1_CLK),
  744. /* IPSR0 */
  745. PINMUX_IPSR_GPSR(IP0_0, D0),
  746. PINMUX_IPSR_GPSR(IP0_1, D1),
  747. PINMUX_IPSR_GPSR(IP0_2, D2),
  748. PINMUX_IPSR_GPSR(IP0_3, D3),
  749. PINMUX_IPSR_GPSR(IP0_4, D4),
  750. PINMUX_IPSR_GPSR(IP0_5, D5),
  751. PINMUX_IPSR_GPSR(IP0_6, D6),
  752. PINMUX_IPSR_GPSR(IP0_7, D7),
  753. PINMUX_IPSR_GPSR(IP0_8, D8),
  754. PINMUX_IPSR_GPSR(IP0_9, D9),
  755. PINMUX_IPSR_GPSR(IP0_10, D10),
  756. PINMUX_IPSR_GPSR(IP0_11, D11),
  757. PINMUX_IPSR_GPSR(IP0_12, D12),
  758. PINMUX_IPSR_GPSR(IP0_13, D13),
  759. PINMUX_IPSR_GPSR(IP0_14, D14),
  760. PINMUX_IPSR_GPSR(IP0_15, D15),
  761. PINMUX_IPSR_GPSR(IP0_18_16, A0),
  762. PINMUX_IPSR_MSEL(IP0_18_16, ATAWR0_N_C, SEL_LBS_2),
  763. PINMUX_IPSR_MSEL(IP0_18_16, MSIOF0_SCK_B, SEL_SOF0_1),
  764. PINMUX_IPSR_MSEL(IP0_18_16, SCL0_C, SEL_IIC0_2),
  765. PINMUX_IPSR_GPSR(IP0_18_16, PWM2_B),
  766. PINMUX_IPSR_GPSR(IP0_20_19, A1),
  767. PINMUX_IPSR_MSEL(IP0_20_19, MSIOF0_SYNC_B, SEL_SOF0_1),
  768. PINMUX_IPSR_GPSR(IP0_22_21, A2),
  769. PINMUX_IPSR_MSEL(IP0_22_21, MSIOF0_SS1_B, SEL_SOF0_1),
  770. PINMUX_IPSR_GPSR(IP0_24_23, A3),
  771. PINMUX_IPSR_MSEL(IP0_24_23, MSIOF0_SS2_B, SEL_SOF0_1),
  772. PINMUX_IPSR_GPSR(IP0_26_25, A4),
  773. PINMUX_IPSR_MSEL(IP0_26_25, MSIOF0_TXD_B, SEL_SOF0_1),
  774. PINMUX_IPSR_GPSR(IP0_28_27, A5),
  775. PINMUX_IPSR_MSEL(IP0_28_27, MSIOF0_RXD_B, SEL_SOF0_1),
  776. PINMUX_IPSR_GPSR(IP0_30_29, A6),
  777. PINMUX_IPSR_MSEL(IP0_30_29, MSIOF1_SCK, SEL_SOF1_0),
  778. /* IPSR1 */
  779. PINMUX_IPSR_GPSR(IP1_1_0, A7),
  780. PINMUX_IPSR_MSEL(IP1_1_0, MSIOF1_SYNC, SEL_SOF1_0),
  781. PINMUX_IPSR_GPSR(IP1_3_2, A8),
  782. PINMUX_IPSR_MSEL(IP1_3_2, MSIOF1_SS1, SEL_SOF1_0),
  783. PINMUX_IPSR_MSEL(IP1_3_2, SCL0, SEL_IIC0_0),
  784. PINMUX_IPSR_GPSR(IP1_5_4, A9),
  785. PINMUX_IPSR_MSEL(IP1_5_4, MSIOF1_SS2, SEL_SOF1_0),
  786. PINMUX_IPSR_MSEL(IP1_5_4, SDA0, SEL_IIC0_0),
  787. PINMUX_IPSR_GPSR(IP1_7_6, A10),
  788. PINMUX_IPSR_MSEL(IP1_7_6, MSIOF1_TXD, SEL_SOF1_0),
  789. PINMUX_IPSR_MSEL(IP1_7_6, MSIOF1_TXD_D, SEL_SOF1_3),
  790. PINMUX_IPSR_GPSR(IP1_10_8, A11),
  791. PINMUX_IPSR_MSEL(IP1_10_8, MSIOF1_RXD, SEL_SOF1_0),
  792. PINMUX_IPSR_MSEL(IP1_10_8, SCL3_D, SEL_IIC3_3),
  793. PINMUX_IPSR_MSEL(IP1_10_8, MSIOF1_RXD_D, SEL_SOF1_3),
  794. PINMUX_IPSR_GPSR(IP1_13_11, A12),
  795. PINMUX_IPSR_MSEL(IP1_13_11, FMCLK, SEL_FM_0),
  796. PINMUX_IPSR_MSEL(IP1_13_11, SDA3_D, SEL_IIC3_3),
  797. PINMUX_IPSR_MSEL(IP1_13_11, MSIOF1_SCK_D, SEL_SOF1_3),
  798. PINMUX_IPSR_GPSR(IP1_16_14, A13),
  799. PINMUX_IPSR_MSEL(IP1_16_14, ATAG0_N_C, SEL_LBS_2),
  800. PINMUX_IPSR_MSEL(IP1_16_14, BPFCLK, SEL_FM_0),
  801. PINMUX_IPSR_MSEL(IP1_16_14, MSIOF1_SS1_D, SEL_SOF1_3),
  802. PINMUX_IPSR_GPSR(IP1_19_17, A14),
  803. PINMUX_IPSR_MSEL(IP1_19_17, ATADIR0_N_C, SEL_LBS_2),
  804. PINMUX_IPSR_MSEL(IP1_19_17, FMIN, SEL_FM_0),
  805. PINMUX_IPSR_MSEL(IP1_19_17, FMIN_C, SEL_FM_2),
  806. PINMUX_IPSR_MSEL(IP1_19_17, MSIOF1_SYNC_D, SEL_SOF1_3),
  807. PINMUX_IPSR_GPSR(IP1_22_20, A15),
  808. PINMUX_IPSR_MSEL(IP1_22_20, BPFCLK_C, SEL_FM_2),
  809. PINMUX_IPSR_GPSR(IP1_25_23, A16),
  810. PINMUX_IPSR_MSEL(IP1_25_23, DREQ2_B, SEL_LBS_1),
  811. PINMUX_IPSR_MSEL(IP1_25_23, FMCLK_C, SEL_FM_2),
  812. PINMUX_IPSR_MSEL(IP1_25_23, SCIFA1_SCK_B, SEL_SCIFA1_1),
  813. PINMUX_IPSR_GPSR(IP1_28_26, A17),
  814. PINMUX_IPSR_MSEL(IP1_28_26, DACK2_B, SEL_LBS_1),
  815. PINMUX_IPSR_MSEL(IP1_28_26, SDA0_C, SEL_IIC0_2),
  816. PINMUX_IPSR_GPSR(IP1_31_29, A18),
  817. PINMUX_IPSR_MSEL(IP1_31_29, DREQ1, SEL_LBS_0),
  818. PINMUX_IPSR_MSEL(IP1_31_29, SCIFA1_RXD_C, SEL_SCIFA1_2),
  819. PINMUX_IPSR_MSEL(IP1_31_29, SCIFB1_RXD_C, SEL_SCIFB1_2),
  820. /* IPSR2 */
  821. PINMUX_IPSR_GPSR(IP2_2_0, A19),
  822. PINMUX_IPSR_GPSR(IP2_2_0, DACK1),
  823. PINMUX_IPSR_MSEL(IP2_2_0, SCIFA1_TXD_C, SEL_SCIFA1_2),
  824. PINMUX_IPSR_MSEL(IP2_2_0, SCIFB1_TXD_C, SEL_SCIFB1_2),
  825. PINMUX_IPSR_MSEL(IP2_2_0, SCIFB1_SCK_B, SEL_SCIFB1_1),
  826. PINMUX_IPSR_GPSR(IP2_2_0, A20),
  827. PINMUX_IPSR_MSEL(IP2_4_3, SPCLK, SEL_QSP_0),
  828. PINMUX_IPSR_GPSR(IP2_6_5, A21),
  829. PINMUX_IPSR_MSEL(IP2_6_5, ATAWR0_N_B, SEL_LBS_1),
  830. PINMUX_IPSR_MSEL(IP2_6_5, MOSI_IO0, SEL_QSP_0),
  831. PINMUX_IPSR_GPSR(IP2_9_7, A22),
  832. PINMUX_IPSR_MSEL(IP2_9_7, MISO_IO1, SEL_QSP_0),
  833. PINMUX_IPSR_MSEL(IP2_9_7, FMCLK_B, SEL_FM_1),
  834. PINMUX_IPSR_MSEL(IP2_9_7, TX0, SEL_SCIF0_0),
  835. PINMUX_IPSR_MSEL(IP2_9_7, SCIFA0_TXD, SEL_SCFA_0),
  836. PINMUX_IPSR_GPSR(IP2_12_10, A23),
  837. PINMUX_IPSR_MSEL(IP2_12_10, IO2, SEL_QSP_0),
  838. PINMUX_IPSR_MSEL(IP2_12_10, BPFCLK_B, SEL_FM_1),
  839. PINMUX_IPSR_MSEL(IP2_12_10, RX0, SEL_SCIF0_0),
  840. PINMUX_IPSR_MSEL(IP2_12_10, SCIFA0_RXD, SEL_SCFA_0),
  841. PINMUX_IPSR_GPSR(IP2_15_13, A24),
  842. PINMUX_IPSR_MSEL(IP2_15_13, DREQ2, SEL_LBS_0),
  843. PINMUX_IPSR_MSEL(IP2_15_13, IO3, SEL_QSP_0),
  844. PINMUX_IPSR_MSEL(IP2_15_13, TX1, SEL_SCIF1_0),
  845. PINMUX_IPSR_MSEL(IP2_15_13, SCIFA1_TXD, SEL_SCIFA1_0),
  846. PINMUX_IPSR_GPSR(IP2_18_16, A25),
  847. PINMUX_IPSR_MSEL(IP2_18_16, DACK2, SEL_LBS_0),
  848. PINMUX_IPSR_MSEL(IP2_18_16, SSL, SEL_QSP_0),
  849. PINMUX_IPSR_MSEL(IP2_18_16, DREQ1_C, SEL_LBS_2),
  850. PINMUX_IPSR_MSEL(IP2_18_16, RX1, SEL_SCIF1_0),
  851. PINMUX_IPSR_MSEL(IP2_18_16, SCIFA1_RXD, SEL_SCIFA1_0),
  852. PINMUX_IPSR_GPSR(IP2_20_19, CS0_N),
  853. PINMUX_IPSR_MSEL(IP2_20_19, ATAG0_N_B, SEL_LBS_1),
  854. PINMUX_IPSR_MSEL(IP2_20_19, SCL1, SEL_IIC1_0),
  855. PINMUX_IPSR_GPSR(IP2_22_21, CS1_N_A26),
  856. PINMUX_IPSR_MSEL(IP2_22_21, ATADIR0_N_B, SEL_LBS_1),
  857. PINMUX_IPSR_MSEL(IP2_22_21, SDA1, SEL_IIC1_0),
  858. PINMUX_IPSR_GPSR(IP2_24_23, EX_CS1_N),
  859. PINMUX_IPSR_MSEL(IP2_24_23, MSIOF2_SCK, SEL_SOF2_0),
  860. PINMUX_IPSR_GPSR(IP2_26_25, EX_CS2_N),
  861. PINMUX_IPSR_MSEL(IP2_26_25, ATAWR0_N, SEL_LBS_0),
  862. PINMUX_IPSR_MSEL(IP2_26_25, MSIOF2_SYNC, SEL_SOF2_0),
  863. PINMUX_IPSR_GPSR(IP2_29_27, EX_CS3_N),
  864. PINMUX_IPSR_MSEL(IP2_29_27, ATADIR0_N, SEL_LBS_0),
  865. PINMUX_IPSR_MSEL(IP2_29_27, MSIOF2_TXD, SEL_SOF2_0),
  866. PINMUX_IPSR_MSEL(IP2_29_27, ATAG0_N, SEL_LBS_0),
  867. PINMUX_IPSR_GPSR(IP2_29_27, EX_WAIT1),
  868. /* IPSR3 */
  869. PINMUX_IPSR_GPSR(IP3_2_0, EX_CS4_N),
  870. PINMUX_IPSR_MSEL(IP3_2_0, ATARD0_N, SEL_LBS_0),
  871. PINMUX_IPSR_MSEL(IP3_2_0, MSIOF2_RXD, SEL_SOF2_0),
  872. PINMUX_IPSR_GPSR(IP3_2_0, EX_WAIT2),
  873. PINMUX_IPSR_GPSR(IP3_5_3, EX_CS5_N),
  874. PINMUX_IPSR_GPSR(IP3_5_3, ATACS00_N),
  875. PINMUX_IPSR_MSEL(IP3_5_3, MSIOF2_SS1, SEL_SOF2_0),
  876. PINMUX_IPSR_MSEL(IP3_5_3, HRX1_B, SEL_HSCIF1_1),
  877. PINMUX_IPSR_MSEL(IP3_5_3, SCIFB1_RXD_B, SEL_SCIFB1_1),
  878. PINMUX_IPSR_GPSR(IP3_5_3, PWM1),
  879. PINMUX_IPSR_GPSR(IP3_5_3, TPU_TO1),
  880. PINMUX_IPSR_GPSR(IP3_8_6, BS_N),
  881. PINMUX_IPSR_GPSR(IP3_8_6, ATACS10_N),
  882. PINMUX_IPSR_MSEL(IP3_8_6, MSIOF2_SS2, SEL_SOF2_0),
  883. PINMUX_IPSR_MSEL(IP3_8_6, HTX1_B, SEL_HSCIF1_1),
  884. PINMUX_IPSR_MSEL(IP3_8_6, SCIFB1_TXD_B, SEL_SCIFB1_1),
  885. PINMUX_IPSR_GPSR(IP3_8_6, PWM2),
  886. PINMUX_IPSR_GPSR(IP3_8_6, TPU_TO2),
  887. PINMUX_IPSR_GPSR(IP3_11_9, RD_WR_N),
  888. PINMUX_IPSR_MSEL(IP3_11_9, HRX2_B, SEL_HSCIF2_1),
  889. PINMUX_IPSR_MSEL(IP3_11_9, FMIN_B, SEL_FM_1),
  890. PINMUX_IPSR_MSEL(IP3_11_9, SCIFB0_RXD_B, SEL_SCIFB_1),
  891. PINMUX_IPSR_MSEL(IP3_11_9, DREQ1_D, SEL_LBS_1),
  892. PINMUX_IPSR_GPSR(IP3_13_12, WE0_N),
  893. PINMUX_IPSR_MSEL(IP3_13_12, HCTS2_N_B, SEL_HSCIF2_1),
  894. PINMUX_IPSR_MSEL(IP3_13_12, SCIFB0_TXD_B, SEL_SCIFB_1),
  895. PINMUX_IPSR_GPSR(IP3_15_14, WE1_N),
  896. PINMUX_IPSR_MSEL(IP3_15_14, ATARD0_N_B, SEL_LBS_1),
  897. PINMUX_IPSR_MSEL(IP3_15_14, HTX2_B, SEL_HSCIF2_1),
  898. PINMUX_IPSR_MSEL(IP3_15_14, SCIFB0_RTS_N_B, SEL_SCIFB_1),
  899. PINMUX_IPSR_GPSR(IP3_17_16, EX_WAIT0),
  900. PINMUX_IPSR_MSEL(IP3_17_16, HRTS2_N_B, SEL_HSCIF2_1),
  901. PINMUX_IPSR_MSEL(IP3_17_16, SCIFB0_CTS_N_B, SEL_SCIFB_1),
  902. PINMUX_IPSR_GPSR(IP3_19_18, DREQ0),
  903. PINMUX_IPSR_GPSR(IP3_19_18, PWM3),
  904. PINMUX_IPSR_GPSR(IP3_19_18, TPU_TO3),
  905. PINMUX_IPSR_GPSR(IP3_21_20, DACK0),
  906. PINMUX_IPSR_GPSR(IP3_21_20, DRACK0),
  907. PINMUX_IPSR_MSEL(IP3_21_20, REMOCON, SEL_RCN_0),
  908. PINMUX_IPSR_MSEL(IP3_24_22, SPEEDIN, SEL_RSP_0),
  909. PINMUX_IPSR_MSEL(IP3_24_22, HSCK0_C, SEL_HSCIF0_2),
  910. PINMUX_IPSR_MSEL(IP3_24_22, HSCK2_C, SEL_HSCIF2_2),
  911. PINMUX_IPSR_MSEL(IP3_24_22, SCIFB0_SCK_B, SEL_SCIFB_1),
  912. PINMUX_IPSR_MSEL(IP3_24_22, SCIFB2_SCK_B, SEL_SCIFB2_1),
  913. PINMUX_IPSR_MSEL(IP3_24_22, DREQ2_C, SEL_LBS_2),
  914. PINMUX_IPSR_MSEL(IP3_30_28, HTX2_C, SEL_HSCIF2_2),
  915. PINMUX_IPSR_MSEL(IP3_27_25, SSI_SCK0129, SEL_SSI0_0),
  916. PINMUX_IPSR_MSEL(IP3_27_25, HRX0_C, SEL_HSCIF0_2),
  917. PINMUX_IPSR_MSEL(IP3_27_25, HRX2_C, SEL_HSCIF2_2),
  918. PINMUX_IPSR_MSEL(IP3_27_25, SCIFB0_RXD_C, SEL_SCIFB_2),
  919. PINMUX_IPSR_MSEL(IP3_27_25, SCIFB2_RXD_C, SEL_SCIFB2_2),
  920. PINMUX_IPSR_MSEL(IP3_30_28, SSI_WS0129, SEL_SSI0_0),
  921. PINMUX_IPSR_MSEL(IP3_30_28, HTX0_C, SEL_HSCIF0_2),
  922. PINMUX_IPSR_MSEL(IP3_30_28, HTX2_C, SEL_HSCIF2_2),
  923. PINMUX_IPSR_MSEL(IP3_30_28, SCIFB0_TXD_C, SEL_SCIFB_2),
  924. PINMUX_IPSR_MSEL(IP3_30_28, SCIFB2_TXD_C, SEL_SCIFB2_2),
  925. /* IPSR4 */
  926. PINMUX_IPSR_MSEL(IP4_1_0, SSI_SDATA0, SEL_SSI0_0),
  927. PINMUX_IPSR_MSEL(IP4_1_0, SCL0_B, SEL_IIC0_1),
  928. PINMUX_IPSR_MSEL(IP4_1_0, SCL7_B, SEL_IIC7_1),
  929. PINMUX_IPSR_MSEL(IP4_1_0, MSIOF2_SCK_C, SEL_SOF2_2),
  930. PINMUX_IPSR_MSEL(IP4_4_2, SSI_SCK1, SEL_SSI1_0),
  931. PINMUX_IPSR_MSEL(IP4_4_2, SDA0_B, SEL_IIC0_1),
  932. PINMUX_IPSR_MSEL(IP4_4_2, SDA7_B, SEL_IIC7_1),
  933. PINMUX_IPSR_MSEL(IP4_4_2, MSIOF2_SYNC_C, SEL_SOF2_2),
  934. PINMUX_IPSR_MSEL(IP4_4_2, GLO_I0_D, SEL_GPS_3),
  935. PINMUX_IPSR_MSEL(IP4_7_5, SSI_WS1, SEL_SSI1_0),
  936. PINMUX_IPSR_MSEL(IP4_7_5, SCL1_B, SEL_IIC1_1),
  937. PINMUX_IPSR_MSEL(IP4_7_5, SCL8_B, SEL_IIC8_1),
  938. PINMUX_IPSR_MSEL(IP4_7_5, MSIOF2_TXD_C, SEL_SOF2_2),
  939. PINMUX_IPSR_MSEL(IP4_7_5, GLO_I1_D, SEL_GPS_3),
  940. PINMUX_IPSR_MSEL(IP4_9_8, SSI_SDATA1, SEL_SSI1_0),
  941. PINMUX_IPSR_MSEL(IP4_9_8, SDA1_B, SEL_IIC1_1),
  942. PINMUX_IPSR_MSEL(IP4_9_8, SDA8_B, SEL_IIC8_1),
  943. PINMUX_IPSR_MSEL(IP4_9_8, MSIOF2_RXD_C, SEL_SOF2_2),
  944. PINMUX_IPSR_GPSR(IP4_12_10, SSI_SCK2),
  945. PINMUX_IPSR_MSEL(IP4_12_10, SCL2, SEL_IIC2_0),
  946. PINMUX_IPSR_MSEL(IP4_12_10, GPS_CLK_B, SEL_GPS_1),
  947. PINMUX_IPSR_MSEL(IP4_12_10, GLO_Q0_D, SEL_GPS_3),
  948. PINMUX_IPSR_MSEL(IP4_12_10, HSCK1_E, SEL_HSCIF1_4),
  949. PINMUX_IPSR_GPSR(IP4_15_13, SSI_WS2),
  950. PINMUX_IPSR_MSEL(IP4_15_13, SDA2, SEL_IIC2_0),
  951. PINMUX_IPSR_MSEL(IP4_15_13, GPS_SIGN_B, SEL_GPS_1),
  952. PINMUX_IPSR_MSEL(IP4_15_13, RX2_E, SEL_SCIF2_4),
  953. PINMUX_IPSR_MSEL(IP4_15_13, GLO_Q1_D, SEL_GPS_3),
  954. PINMUX_IPSR_MSEL(IP4_15_13, HCTS1_N_E, SEL_HSCIF1_4),
  955. PINMUX_IPSR_GPSR(IP4_18_16, SSI_SDATA2),
  956. PINMUX_IPSR_MSEL(IP4_18_16, GPS_MAG_B, SEL_GPS_1),
  957. PINMUX_IPSR_MSEL(IP4_18_16, TX2_E, SEL_SCIF2_4),
  958. PINMUX_IPSR_MSEL(IP4_18_16, HRTS1_N_E, SEL_HSCIF1_4),
  959. PINMUX_IPSR_GPSR(IP4_19, SSI_SCK34),
  960. PINMUX_IPSR_GPSR(IP4_20, SSI_WS34),
  961. PINMUX_IPSR_GPSR(IP4_21, SSI_SDATA3),
  962. PINMUX_IPSR_GPSR(IP4_23_22, SSI_SCK4),
  963. PINMUX_IPSR_MSEL(IP4_23_22, GLO_SS_D, SEL_GPS_3),
  964. PINMUX_IPSR_GPSR(IP4_25_24, SSI_WS4),
  965. PINMUX_IPSR_MSEL(IP4_25_24, GLO_RFON_D, SEL_GPS_3),
  966. PINMUX_IPSR_GPSR(IP4_27_26, SSI_SDATA4),
  967. PINMUX_IPSR_MSEL(IP4_27_26, MSIOF2_SCK_D, SEL_SOF2_3),
  968. PINMUX_IPSR_GPSR(IP4_30_28, SSI_SCK5),
  969. PINMUX_IPSR_MSEL(IP4_30_28, MSIOF1_SCK_C, SEL_SOF1_2),
  970. PINMUX_IPSR_MSEL(IP4_30_28, TS_SDATA0, SEL_TSIF0_0),
  971. PINMUX_IPSR_MSEL(IP4_30_28, GLO_I0, SEL_GPS_0),
  972. PINMUX_IPSR_MSEL(IP4_30_28, MSIOF2_SYNC_D, SEL_SOF2_3),
  973. PINMUX_IPSR_GPSR(IP4_30_28, VI1_R2_B),
  974. /* IPSR5 */
  975. PINMUX_IPSR_GPSR(IP5_2_0, SSI_WS5),
  976. PINMUX_IPSR_MSEL(IP5_2_0, MSIOF1_SYNC_C, SEL_SOF1_2),
  977. PINMUX_IPSR_MSEL(IP5_2_0, TS_SCK0, SEL_TSIF0_0),
  978. PINMUX_IPSR_MSEL(IP5_2_0, GLO_I1, SEL_GPS_0),
  979. PINMUX_IPSR_MSEL(IP5_2_0, MSIOF2_TXD_D, SEL_SOF2_3),
  980. PINMUX_IPSR_GPSR(IP5_2_0, VI1_R3_B),
  981. PINMUX_IPSR_GPSR(IP5_5_3, SSI_SDATA5),
  982. PINMUX_IPSR_MSEL(IP5_5_3, MSIOF1_TXD_C, SEL_SOF1_2),
  983. PINMUX_IPSR_MSEL(IP5_5_3, TS_SDEN0, SEL_TSIF0_0),
  984. PINMUX_IPSR_MSEL(IP5_5_3, GLO_Q0, SEL_GPS_0),
  985. PINMUX_IPSR_MSEL(IP5_5_3, MSIOF2_SS1_D, SEL_SOF2_3),
  986. PINMUX_IPSR_GPSR(IP5_5_3, VI1_R4_B),
  987. PINMUX_IPSR_GPSR(IP5_8_6, SSI_SCK6),
  988. PINMUX_IPSR_MSEL(IP5_8_6, MSIOF1_RXD_C, SEL_SOF1_2),
  989. PINMUX_IPSR_MSEL(IP5_8_6, TS_SPSYNC0, SEL_TSIF0_0),
  990. PINMUX_IPSR_MSEL(IP5_8_6, GLO_Q1, SEL_GPS_0),
  991. PINMUX_IPSR_MSEL(IP5_8_6, MSIOF2_RXD_D, SEL_SOF2_3),
  992. PINMUX_IPSR_GPSR(IP5_8_6, VI1_R5_B),
  993. PINMUX_IPSR_GPSR(IP5_11_9, SSI_WS6),
  994. PINMUX_IPSR_MSEL(IP5_11_9, GLO_SCLK, SEL_GPS_0),
  995. PINMUX_IPSR_MSEL(IP5_11_9, MSIOF2_SS2_D, SEL_SOF2_3),
  996. PINMUX_IPSR_GPSR(IP5_11_9, VI1_R6_B),
  997. PINMUX_IPSR_GPSR(IP5_14_12, SSI_SDATA6),
  998. PINMUX_IPSR_MSEL(IP5_14_12, STP_IVCXO27_0_B, SEL_SSP_1),
  999. PINMUX_IPSR_MSEL(IP5_14_12, GLO_SDATA, SEL_GPS_0),
  1000. PINMUX_IPSR_GPSR(IP5_14_12, VI1_R7_B),
  1001. PINMUX_IPSR_MSEL(IP5_16_15, SSI_SCK78, SEL_SSI7_0),
  1002. PINMUX_IPSR_MSEL(IP5_16_15, STP_ISCLK_0_B, SEL_SSP_1),
  1003. PINMUX_IPSR_MSEL(IP5_16_15, GLO_SS, SEL_GPS_0),
  1004. PINMUX_IPSR_MSEL(IP5_19_17, SSI_WS78, SEL_SSI7_0),
  1005. PINMUX_IPSR_MSEL(IP5_19_17, TX0_D, SEL_SCIF0_3),
  1006. PINMUX_IPSR_MSEL(IP5_19_17, STP_ISD_0_B, SEL_SSP_1),
  1007. PINMUX_IPSR_MSEL(IP5_19_17, GLO_RFON, SEL_GPS_0),
  1008. PINMUX_IPSR_MSEL(IP5_21_20, SSI_SDATA7, SEL_SSI7_0),
  1009. PINMUX_IPSR_MSEL(IP5_21_20, RX0_D, SEL_SCIF0_3),
  1010. PINMUX_IPSR_MSEL(IP5_21_20, STP_ISEN_0_B, SEL_SSP_1),
  1011. PINMUX_IPSR_MSEL(IP5_23_22, SSI_SDATA8, SEL_SSI8_0),
  1012. PINMUX_IPSR_MSEL(IP5_23_22, TX1_D, SEL_SCIF1_3),
  1013. PINMUX_IPSR_MSEL(IP5_23_22, STP_ISSYNC_0_B, SEL_SSP_1),
  1014. PINMUX_IPSR_MSEL(IP5_25_24, SSI_SCK9, SEL_SSI9_0),
  1015. PINMUX_IPSR_MSEL(IP5_25_24, RX1_D, SEL_SCIF1_3),
  1016. PINMUX_IPSR_MSEL(IP5_25_24, GLO_SCLK_D, SEL_GPS_3),
  1017. PINMUX_IPSR_MSEL(IP5_28_26, SSI_WS9, SEL_SSI9_0),
  1018. PINMUX_IPSR_MSEL(IP5_28_26, TX3_D, SEL_SCIF3_3),
  1019. PINMUX_IPSR_MSEL(IP5_28_26, CAN0_TX_D, SEL_CAN0_3),
  1020. PINMUX_IPSR_MSEL(IP5_28_26, GLO_SDATA_D, SEL_GPS_3),
  1021. PINMUX_IPSR_MSEL(IP5_31_29, SSI_SDATA9, SEL_SSI9_0),
  1022. PINMUX_IPSR_MSEL(IP5_31_29, RX3_D, SEL_SCIF3_3),
  1023. PINMUX_IPSR_MSEL(IP5_31_29, CAN0_RX_D, SEL_CAN0_3),
  1024. /* IPSR6 */
  1025. PINMUX_IPSR_MSEL(IP6_2_0, AUDIO_CLKB, SEL_ADG_0),
  1026. PINMUX_IPSR_MSEL(IP6_2_0, STP_OPWM_0_B, SEL_SSP_1),
  1027. PINMUX_IPSR_MSEL(IP6_2_0, MSIOF1_SCK_B, SEL_SOF1_1),
  1028. PINMUX_IPSR_MSEL(IP6_2_0, SCIF_CLK, SEL_SCIF_0),
  1029. PINMUX_IPSR_GPSR(IP6_2_0, DVC_MUTE),
  1030. PINMUX_IPSR_MSEL(IP6_2_0, BPFCLK_E, SEL_FM_4),
  1031. PINMUX_IPSR_GPSR(IP6_5_3, AUDIO_CLKC),
  1032. PINMUX_IPSR_MSEL(IP6_5_3, SCIFB0_SCK_C, SEL_SCIFB_2),
  1033. PINMUX_IPSR_MSEL(IP6_5_3, MSIOF1_SYNC_B, SEL_SOF1_1),
  1034. PINMUX_IPSR_MSEL(IP6_5_3, RX2, SEL_SCIF2_0),
  1035. PINMUX_IPSR_MSEL(IP6_5_3, SCIFA2_RXD, SEL_SCIFA2_0),
  1036. PINMUX_IPSR_MSEL(IP6_5_3, FMIN_E, SEL_FM_4),
  1037. PINMUX_IPSR_GPSR(IP6_7_6, AUDIO_CLKOUT),
  1038. PINMUX_IPSR_MSEL(IP6_7_6, MSIOF1_SS1_B, SEL_SOF1_1),
  1039. PINMUX_IPSR_MSEL(IP6_7_6, TX2, SEL_SCIF2_0),
  1040. PINMUX_IPSR_MSEL(IP6_7_6, SCIFA2_TXD, SEL_SCIFA2_0),
  1041. PINMUX_IPSR_GPSR(IP6_9_8, IRQ0),
  1042. PINMUX_IPSR_MSEL(IP6_9_8, SCIFB1_RXD_D, SEL_SCIFB1_3),
  1043. PINMUX_IPSR_GPSR(IP6_9_8, INTC_IRQ0_N),
  1044. PINMUX_IPSR_GPSR(IP6_11_10, IRQ1),
  1045. PINMUX_IPSR_MSEL(IP6_11_10, SCIFB1_SCK_C, SEL_SCIFB1_2),
  1046. PINMUX_IPSR_GPSR(IP6_11_10, INTC_IRQ1_N),
  1047. PINMUX_IPSR_GPSR(IP6_13_12, IRQ2),
  1048. PINMUX_IPSR_MSEL(IP6_13_12, SCIFB1_TXD_D, SEL_SCIFB1_3),
  1049. PINMUX_IPSR_GPSR(IP6_13_12, INTC_IRQ2_N),
  1050. PINMUX_IPSR_GPSR(IP6_15_14, IRQ3),
  1051. PINMUX_IPSR_MSEL(IP6_15_14, SCL4_C, SEL_IIC4_2),
  1052. PINMUX_IPSR_MSEL(IP6_15_14, MSIOF2_TXD_E, SEL_SOF2_4),
  1053. PINMUX_IPSR_GPSR(IP6_15_14, INTC_IRQ4_N),
  1054. PINMUX_IPSR_GPSR(IP6_18_16, IRQ4),
  1055. PINMUX_IPSR_MSEL(IP6_18_16, HRX1_C, SEL_HSCIF1_2),
  1056. PINMUX_IPSR_MSEL(IP6_18_16, SDA4_C, SEL_IIC4_2),
  1057. PINMUX_IPSR_MSEL(IP6_18_16, MSIOF2_RXD_E, SEL_SOF2_4),
  1058. PINMUX_IPSR_GPSR(IP6_18_16, INTC_IRQ4_N),
  1059. PINMUX_IPSR_GPSR(IP6_20_19, IRQ5),
  1060. PINMUX_IPSR_MSEL(IP6_20_19, HTX1_C, SEL_HSCIF1_2),
  1061. PINMUX_IPSR_MSEL(IP6_20_19, SCL1_E, SEL_IIC1_4),
  1062. PINMUX_IPSR_MSEL(IP6_20_19, MSIOF2_SCK_E, SEL_SOF2_4),
  1063. PINMUX_IPSR_GPSR(IP6_23_21, IRQ6),
  1064. PINMUX_IPSR_MSEL(IP6_23_21, HSCK1_C, SEL_HSCIF1_2),
  1065. PINMUX_IPSR_MSEL(IP6_23_21, MSIOF1_SS2_B, SEL_SOF1_1),
  1066. PINMUX_IPSR_MSEL(IP6_23_21, SDA1_E, SEL_IIC1_4),
  1067. PINMUX_IPSR_MSEL(IP6_23_21, MSIOF2_SYNC_E, SEL_SOF2_4),
  1068. PINMUX_IPSR_GPSR(IP6_26_24, IRQ7),
  1069. PINMUX_IPSR_MSEL(IP6_26_24, HCTS1_N_C, SEL_HSCIF1_2),
  1070. PINMUX_IPSR_MSEL(IP6_26_24, MSIOF1_TXD_B, SEL_SOF1_1),
  1071. PINMUX_IPSR_MSEL(IP6_26_24, GPS_CLK_C, SEL_GPS_2),
  1072. PINMUX_IPSR_MSEL(IP6_26_24, GPS_CLK_D, SEL_GPS_3),
  1073. PINMUX_IPSR_GPSR(IP6_29_27, IRQ8),
  1074. PINMUX_IPSR_MSEL(IP6_29_27, HRTS1_N_C, SEL_HSCIF1_2),
  1075. PINMUX_IPSR_MSEL(IP6_29_27, MSIOF1_RXD_B, SEL_SOF1_1),
  1076. PINMUX_IPSR_MSEL(IP6_29_27, GPS_SIGN_C, SEL_GPS_2),
  1077. PINMUX_IPSR_MSEL(IP6_29_27, GPS_SIGN_D, SEL_GPS_3),
  1078. /* IPSR7 */
  1079. PINMUX_IPSR_GPSR(IP7_2_0, IRQ9),
  1080. PINMUX_IPSR_MSEL(IP7_2_0, DU1_DOTCLKIN_B, SEL_DIS_1),
  1081. PINMUX_IPSR_MSEL(IP7_2_0, CAN_CLK_D, SEL_CANCLK_3),
  1082. PINMUX_IPSR_MSEL(IP7_2_0, GPS_MAG_C, SEL_GPS_2),
  1083. PINMUX_IPSR_MSEL(IP7_2_0, SCIF_CLK_B, SEL_SCIF_1),
  1084. PINMUX_IPSR_MSEL(IP7_2_0, GPS_MAG_D, SEL_GPS_3),
  1085. PINMUX_IPSR_GPSR(IP7_5_3, DU1_DR0),
  1086. PINMUX_IPSR_GPSR(IP7_5_3, LCDOUT0),
  1087. PINMUX_IPSR_MSEL(IP7_5_3, VI1_DATA0_B, SEL_VI1_1),
  1088. PINMUX_IPSR_MSEL(IP7_5_3, TX0_B, SEL_SCIF0_1),
  1089. PINMUX_IPSR_MSEL(IP7_5_3, SCIFA0_TXD_B, SEL_SCFA_1),
  1090. PINMUX_IPSR_MSEL(IP7_5_3, MSIOF2_SCK_B, SEL_SOF2_1),
  1091. PINMUX_IPSR_GPSR(IP7_8_6, DU1_DR1),
  1092. PINMUX_IPSR_GPSR(IP7_8_6, LCDOUT1),
  1093. PINMUX_IPSR_MSEL(IP7_8_6, VI1_DATA1_B, SEL_VI1_1),
  1094. PINMUX_IPSR_MSEL(IP7_8_6, RX0_B, SEL_SCIF0_1),
  1095. PINMUX_IPSR_MSEL(IP7_8_6, SCIFA0_RXD_B, SEL_SCFA_1),
  1096. PINMUX_IPSR_MSEL(IP7_8_6, MSIOF2_SYNC_B, SEL_SOF2_1),
  1097. PINMUX_IPSR_GPSR(IP7_10_9, DU1_DR2),
  1098. PINMUX_IPSR_GPSR(IP7_10_9, LCDOUT2),
  1099. PINMUX_IPSR_MSEL(IP7_10_9, SSI_SCK0129_B, SEL_SSI0_1),
  1100. PINMUX_IPSR_GPSR(IP7_12_11, DU1_DR3),
  1101. PINMUX_IPSR_GPSR(IP7_12_11, LCDOUT3),
  1102. PINMUX_IPSR_MSEL(IP7_12_11, SSI_WS0129_B, SEL_SSI0_1),
  1103. PINMUX_IPSR_GPSR(IP7_14_13, DU1_DR4),
  1104. PINMUX_IPSR_GPSR(IP7_14_13, LCDOUT4),
  1105. PINMUX_IPSR_MSEL(IP7_14_13, SSI_SDATA0_B, SEL_SSI0_1),
  1106. PINMUX_IPSR_GPSR(IP7_16_15, DU1_DR5),
  1107. PINMUX_IPSR_GPSR(IP7_16_15, LCDOUT5),
  1108. PINMUX_IPSR_MSEL(IP7_16_15, SSI_SCK1_B, SEL_SSI1_1),
  1109. PINMUX_IPSR_GPSR(IP7_18_17, DU1_DR6),
  1110. PINMUX_IPSR_GPSR(IP7_18_17, LCDOUT6),
  1111. PINMUX_IPSR_MSEL(IP7_18_17, SSI_WS1_B, SEL_SSI1_1),
  1112. PINMUX_IPSR_GPSR(IP7_20_19, DU1_DR7),
  1113. PINMUX_IPSR_GPSR(IP7_20_19, LCDOUT7),
  1114. PINMUX_IPSR_MSEL(IP7_20_19, SSI_SDATA1_B, SEL_SSI1_1),
  1115. PINMUX_IPSR_GPSR(IP7_23_21, DU1_DG0),
  1116. PINMUX_IPSR_GPSR(IP7_23_21, LCDOUT8),
  1117. PINMUX_IPSR_MSEL(IP7_23_21, VI1_DATA2_B, SEL_VI1_1),
  1118. PINMUX_IPSR_MSEL(IP7_23_21, TX1_B, SEL_SCIF1_1),
  1119. PINMUX_IPSR_MSEL(IP7_23_21, SCIFA1_TXD_B, SEL_SCIFA1_1),
  1120. PINMUX_IPSR_MSEL(IP7_23_21, MSIOF2_SS1_B, SEL_SOF2_1),
  1121. PINMUX_IPSR_GPSR(IP7_26_24, DU1_DG1),
  1122. PINMUX_IPSR_GPSR(IP7_26_24, LCDOUT9),
  1123. PINMUX_IPSR_MSEL(IP7_26_24, VI1_DATA3_B, SEL_VI1_1),
  1124. PINMUX_IPSR_MSEL(IP7_26_24, RX1_B, SEL_SCIF1_1),
  1125. PINMUX_IPSR_MSEL(IP7_26_24, SCIFA1_RXD_B, SEL_SCIFA1_1),
  1126. PINMUX_IPSR_MSEL(IP7_26_24, MSIOF2_SS2_B, SEL_SOF2_1),
  1127. PINMUX_IPSR_GPSR(IP7_29_27, DU1_DG2),
  1128. PINMUX_IPSR_GPSR(IP7_29_27, LCDOUT10),
  1129. PINMUX_IPSR_MSEL(IP7_29_27, VI1_DATA4_B, SEL_VI1_1),
  1130. PINMUX_IPSR_GPSR(IP7_29_27, SCIF1_SCK_B),
  1131. PINMUX_IPSR_MSEL(IP7_29_27, SCIFA1_SCK, SEL_SCIFA1_0),
  1132. PINMUX_IPSR_MSEL(IP7_29_27, SSI_SCK78_B, SEL_SSI7_1),
  1133. /* IPSR8 */
  1134. PINMUX_IPSR_GPSR(IP8_2_0, DU1_DG3),
  1135. PINMUX_IPSR_GPSR(IP8_2_0, LCDOUT11),
  1136. PINMUX_IPSR_MSEL(IP8_2_0, VI1_DATA5_B, SEL_VI1_1),
  1137. PINMUX_IPSR_MSEL(IP8_2_0, SSI_WS78_B, SEL_SSI7_1),
  1138. PINMUX_IPSR_GPSR(IP8_5_3, DU1_DG4),
  1139. PINMUX_IPSR_GPSR(IP8_5_3, LCDOUT12),
  1140. PINMUX_IPSR_MSEL(IP8_5_3, VI1_DATA6_B, SEL_VI1_1),
  1141. PINMUX_IPSR_MSEL(IP8_5_3, HRX0_B, SEL_HSCIF0_1),
  1142. PINMUX_IPSR_MSEL(IP8_5_3, SCIFB2_RXD_B, SEL_SCIFB2_1),
  1143. PINMUX_IPSR_MSEL(IP8_5_3, SSI_SDATA7_B, SEL_SSI7_1),
  1144. PINMUX_IPSR_GPSR(IP8_8_6, DU1_DG5),
  1145. PINMUX_IPSR_GPSR(IP8_8_6, LCDOUT13),
  1146. PINMUX_IPSR_MSEL(IP8_8_6, VI1_DATA7_B, SEL_VI1_1),
  1147. PINMUX_IPSR_MSEL(IP8_8_6, HCTS0_N_B, SEL_HSCIF0_1),
  1148. PINMUX_IPSR_MSEL(IP8_8_6, SCIFB2_TXD_B, SEL_SCIFB2_1),
  1149. PINMUX_IPSR_MSEL(IP8_8_6, SSI_SDATA8_B, SEL_SSI8_1),
  1150. PINMUX_IPSR_GPSR(IP8_11_9, DU1_DG6),
  1151. PINMUX_IPSR_GPSR(IP8_11_9, LCDOUT14),
  1152. PINMUX_IPSR_MSEL(IP8_11_9, HRTS0_N_B, SEL_HSCIF0_1),
  1153. PINMUX_IPSR_MSEL(IP8_11_9, SCIFB2_CTS_N_B, SEL_SCIFB2_1),
  1154. PINMUX_IPSR_MSEL(IP8_11_9, SSI_SCK9_B, SEL_SSI9_1),
  1155. PINMUX_IPSR_GPSR(IP8_14_12, DU1_DG7),
  1156. PINMUX_IPSR_GPSR(IP8_14_12, LCDOUT15),
  1157. PINMUX_IPSR_MSEL(IP8_14_12, HTX0_B, SEL_HSCIF0_1),
  1158. PINMUX_IPSR_MSEL(IP8_14_12, SCIFB2_RTS_N_B, SEL_SCIFB2_1),
  1159. PINMUX_IPSR_MSEL(IP8_14_12, SSI_WS9_B, SEL_SSI9_1),
  1160. PINMUX_IPSR_GPSR(IP8_17_15, DU1_DB0),
  1161. PINMUX_IPSR_GPSR(IP8_17_15, LCDOUT16),
  1162. PINMUX_IPSR_MSEL(IP8_17_15, VI1_CLK_B, SEL_VI1_1),
  1163. PINMUX_IPSR_MSEL(IP8_17_15, TX2_B, SEL_SCIF2_1),
  1164. PINMUX_IPSR_MSEL(IP8_17_15, SCIFA2_TXD_B, SEL_SCIFA2_1),
  1165. PINMUX_IPSR_MSEL(IP8_17_15, MSIOF2_TXD_B, SEL_SOF2_1),
  1166. PINMUX_IPSR_GPSR(IP8_20_18, DU1_DB1),
  1167. PINMUX_IPSR_GPSR(IP8_20_18, LCDOUT17),
  1168. PINMUX_IPSR_MSEL(IP8_20_18, VI1_HSYNC_N_B, SEL_VI1_1),
  1169. PINMUX_IPSR_MSEL(IP8_20_18, RX2_B, SEL_SCIF2_1),
  1170. PINMUX_IPSR_MSEL(IP8_20_18, SCIFA2_RXD_B, SEL_SCIFA2_1),
  1171. PINMUX_IPSR_MSEL(IP8_20_18, MSIOF2_RXD_B, SEL_SOF2_1),
  1172. PINMUX_IPSR_GPSR(IP8_23_21, DU1_DB2),
  1173. PINMUX_IPSR_GPSR(IP8_23_21, LCDOUT18),
  1174. PINMUX_IPSR_MSEL(IP8_23_21, VI1_VSYNC_N_B, SEL_VI1_1),
  1175. PINMUX_IPSR_GPSR(IP8_23_21, SCIF2_SCK_B),
  1176. PINMUX_IPSR_MSEL(IP8_23_21, SCIFA2_SCK, SEL_SCIFA2_1),
  1177. PINMUX_IPSR_MSEL(IP8_23_21, SSI_SDATA9_B, SEL_SSI9_1),
  1178. PINMUX_IPSR_GPSR(IP8_25_24, DU1_DB3),
  1179. PINMUX_IPSR_GPSR(IP8_25_24, LCDOUT19),
  1180. PINMUX_IPSR_MSEL(IP8_25_24, VI1_CLKENB_B, SEL_VI1_1),
  1181. PINMUX_IPSR_GPSR(IP8_27_26, DU1_DB4),
  1182. PINMUX_IPSR_GPSR(IP8_27_26, LCDOUT20),
  1183. PINMUX_IPSR_MSEL(IP8_27_26, VI1_FIELD_B, SEL_VI1_1),
  1184. PINMUX_IPSR_MSEL(IP8_27_26, CAN1_RX, SEL_CAN1_0),
  1185. PINMUX_IPSR_GPSR(IP8_30_28, DU1_DB5),
  1186. PINMUX_IPSR_GPSR(IP8_30_28, LCDOUT21),
  1187. PINMUX_IPSR_MSEL(IP8_30_28, TX3, SEL_SCIF3_0),
  1188. PINMUX_IPSR_MSEL(IP8_30_28, SCIFA3_TXD, SEL_SCIFA3_0),
  1189. PINMUX_IPSR_MSEL(IP8_30_28, CAN1_TX, SEL_CAN1_0),
  1190. /* IPSR9 */
  1191. PINMUX_IPSR_GPSR(IP9_2_0, DU1_DB6),
  1192. PINMUX_IPSR_GPSR(IP9_2_0, LCDOUT22),
  1193. PINMUX_IPSR_MSEL(IP9_2_0, SCL3_C, SEL_IIC3_2),
  1194. PINMUX_IPSR_MSEL(IP9_2_0, RX3, SEL_SCIF3_0),
  1195. PINMUX_IPSR_MSEL(IP9_2_0, SCIFA3_RXD, SEL_SCIFA3_0),
  1196. PINMUX_IPSR_GPSR(IP9_5_3, DU1_DB7),
  1197. PINMUX_IPSR_GPSR(IP9_5_3, LCDOUT23),
  1198. PINMUX_IPSR_MSEL(IP9_5_3, SDA3_C, SEL_IIC3_2),
  1199. PINMUX_IPSR_MSEL(IP9_5_3, SCIF3_SCK, SEL_SCIF3_0),
  1200. PINMUX_IPSR_MSEL(IP9_5_3, SCIFA3_SCK, SEL_SCIFA3_0),
  1201. PINMUX_IPSR_MSEL(IP9_6, DU1_DOTCLKIN, SEL_DIS_0),
  1202. PINMUX_IPSR_GPSR(IP9_6, QSTVA_QVS),
  1203. PINMUX_IPSR_GPSR(IP9_7, DU1_DOTCLKOUT0),
  1204. PINMUX_IPSR_GPSR(IP9_7, QCLK),
  1205. PINMUX_IPSR_GPSR(IP9_10_8, DU1_DOTCLKOUT1),
  1206. PINMUX_IPSR_GPSR(IP9_10_8, QSTVB_QVE),
  1207. PINMUX_IPSR_MSEL(IP9_10_8, CAN0_TX, SEL_CAN0_0),
  1208. PINMUX_IPSR_MSEL(IP9_10_8, TX3_B, SEL_SCIF3_1),
  1209. PINMUX_IPSR_MSEL(IP9_10_8, SCL2_B, SEL_IIC2_1),
  1210. PINMUX_IPSR_GPSR(IP9_10_8, PWM4),
  1211. PINMUX_IPSR_GPSR(IP9_11, DU1_EXHSYNC_DU1_HSYNC),
  1212. PINMUX_IPSR_GPSR(IP9_11, QSTH_QHS),
  1213. PINMUX_IPSR_GPSR(IP9_12, DU1_EXVSYNC_DU1_VSYNC),
  1214. PINMUX_IPSR_GPSR(IP9_12, QSTB_QHE),
  1215. PINMUX_IPSR_GPSR(IP9_15_13, DU1_EXODDF_DU1_ODDF_DISP_CDE),
  1216. PINMUX_IPSR_GPSR(IP9_15_13, QCPV_QDE),
  1217. PINMUX_IPSR_MSEL(IP9_15_13, CAN0_RX, SEL_CAN0_0),
  1218. PINMUX_IPSR_MSEL(IP9_15_13, RX3_B, SEL_SCIF3_1),
  1219. PINMUX_IPSR_MSEL(IP9_15_13, SDA2_B, SEL_IIC2_1),
  1220. PINMUX_IPSR_GPSR(IP9_16, DU1_DISP),
  1221. PINMUX_IPSR_GPSR(IP9_16, QPOLA),
  1222. PINMUX_IPSR_GPSR(IP9_18_17, DU1_CDE),
  1223. PINMUX_IPSR_GPSR(IP9_18_17, QPOLB),
  1224. PINMUX_IPSR_GPSR(IP9_18_17, PWM4_B),
  1225. PINMUX_IPSR_GPSR(IP9_20_19, VI0_CLKENB),
  1226. PINMUX_IPSR_MSEL(IP9_20_19, TX4, SEL_SCIF4_0),
  1227. PINMUX_IPSR_MSEL(IP9_20_19, SCIFA4_TXD, SEL_SCIFA4_0),
  1228. PINMUX_IPSR_MSEL(IP9_20_19, TS_SDATA0_D, SEL_TSIF0_3),
  1229. PINMUX_IPSR_GPSR(IP9_22_21, VI0_FIELD),
  1230. PINMUX_IPSR_MSEL(IP9_22_21, RX4, SEL_SCIF4_0),
  1231. PINMUX_IPSR_MSEL(IP9_22_21, SCIFA4_RXD, SEL_SCIFA4_0),
  1232. PINMUX_IPSR_MSEL(IP9_22_21, TS_SCK0_D, SEL_TSIF0_3),
  1233. PINMUX_IPSR_GPSR(IP9_24_23, VI0_HSYNC_N),
  1234. PINMUX_IPSR_MSEL(IP9_24_23, TX5, SEL_SCIF5_0),
  1235. PINMUX_IPSR_MSEL(IP9_24_23, SCIFA5_TXD, SEL_SCIFA5_0),
  1236. PINMUX_IPSR_MSEL(IP9_24_23, TS_SDEN0_D, SEL_TSIF0_3),
  1237. PINMUX_IPSR_GPSR(IP9_26_25, VI0_VSYNC_N),
  1238. PINMUX_IPSR_MSEL(IP9_26_25, RX5, SEL_SCIF5_0),
  1239. PINMUX_IPSR_MSEL(IP9_26_25, SCIFA5_RXD, SEL_SCIFA5_0),
  1240. PINMUX_IPSR_MSEL(IP9_26_25, TS_SPSYNC0_D, SEL_TSIF0_3),
  1241. PINMUX_IPSR_GPSR(IP9_28_27, VI0_DATA3_VI0_B3),
  1242. PINMUX_IPSR_MSEL(IP9_28_27, SCIF3_SCK_B, SEL_SCIF3_1),
  1243. PINMUX_IPSR_MSEL(IP9_28_27, SCIFA3_SCK_B, SEL_SCIFA3_1),
  1244. PINMUX_IPSR_GPSR(IP9_31_29, VI0_G0),
  1245. PINMUX_IPSR_MSEL(IP9_31_29, SCL8, SEL_IIC8_0),
  1246. PINMUX_IPSR_MSEL(IP9_31_29, STP_IVCXO27_0_C, SEL_SSP_2),
  1247. PINMUX_IPSR_MSEL(IP9_31_29, SCL4, SEL_IIC4_0),
  1248. PINMUX_IPSR_MSEL(IP9_31_29, HCTS2_N, SEL_HSCIF2_0),
  1249. PINMUX_IPSR_MSEL(IP9_31_29, SCIFB2_CTS_N, SEL_SCIFB2_0),
  1250. PINMUX_IPSR_GPSR(IP9_31_29, ATAWR1_N),
  1251. /* IPSR10 */
  1252. PINMUX_IPSR_GPSR(IP10_2_0, VI0_G1),
  1253. PINMUX_IPSR_MSEL(IP10_2_0, SDA8, SEL_IIC8_0),
  1254. PINMUX_IPSR_MSEL(IP10_2_0, STP_ISCLK_0_C, SEL_SSP_2),
  1255. PINMUX_IPSR_MSEL(IP10_2_0, SDA4, SEL_IIC4_0),
  1256. PINMUX_IPSR_MSEL(IP10_2_0, HRTS2_N, SEL_HSCIF2_0),
  1257. PINMUX_IPSR_MSEL(IP10_2_0, SCIFB2_RTS_N, SEL_SCIFB2_0),
  1258. PINMUX_IPSR_GPSR(IP10_2_0, ATADIR1_N),
  1259. PINMUX_IPSR_GPSR(IP10_5_3, VI0_G2),
  1260. PINMUX_IPSR_GPSR(IP10_5_3, VI2_HSYNC_N),
  1261. PINMUX_IPSR_MSEL(IP10_5_3, STP_ISD_0_C, SEL_SSP_2),
  1262. PINMUX_IPSR_MSEL(IP10_5_3, SCL3_B, SEL_IIC3_1),
  1263. PINMUX_IPSR_MSEL(IP10_5_3, HSCK2, SEL_HSCIF2_0),
  1264. PINMUX_IPSR_MSEL(IP10_5_3, SCIFB2_SCK, SEL_SCIFB2_0),
  1265. PINMUX_IPSR_GPSR(IP10_5_3, ATARD1_N),
  1266. PINMUX_IPSR_GPSR(IP10_8_6, VI0_G3),
  1267. PINMUX_IPSR_GPSR(IP10_8_6, VI2_VSYNC_N),
  1268. PINMUX_IPSR_MSEL(IP10_8_6, STP_ISEN_0_C, SEL_SSP_2),
  1269. PINMUX_IPSR_MSEL(IP10_8_6, SDA3_B, SEL_IIC3_1),
  1270. PINMUX_IPSR_MSEL(IP10_8_6, HRX2, SEL_HSCIF2_0),
  1271. PINMUX_IPSR_MSEL(IP10_8_6, SCIFB2_RXD, SEL_SCIFB2_0),
  1272. PINMUX_IPSR_GPSR(IP10_8_6, ATACS01_N),
  1273. PINMUX_IPSR_GPSR(IP10_11_9, VI0_G4),
  1274. PINMUX_IPSR_GPSR(IP10_11_9, VI2_CLKENB),
  1275. PINMUX_IPSR_MSEL(IP10_11_9, STP_ISSYNC_0_C, SEL_SSP_2),
  1276. PINMUX_IPSR_MSEL(IP10_11_9, HTX2, SEL_HSCIF2_0),
  1277. PINMUX_IPSR_MSEL(IP10_11_9, SCIFB2_TXD, SEL_SCIFB2_0),
  1278. PINMUX_IPSR_MSEL(IP10_11_9, SCIFB0_SCK_D, SEL_SCIFB_3),
  1279. PINMUX_IPSR_GPSR(IP10_14_12, VI0_G5),
  1280. PINMUX_IPSR_GPSR(IP10_14_12, VI2_FIELD),
  1281. PINMUX_IPSR_MSEL(IP10_14_12, STP_OPWM_0_C, SEL_SSP_2),
  1282. PINMUX_IPSR_MSEL(IP10_14_12, FMCLK_D, SEL_FM_3),
  1283. PINMUX_IPSR_MSEL(IP10_14_12, CAN0_TX_E, SEL_CAN0_4),
  1284. PINMUX_IPSR_MSEL(IP10_14_12, HTX1_D, SEL_HSCIF1_3),
  1285. PINMUX_IPSR_MSEL(IP10_14_12, SCIFB0_TXD_D, SEL_SCIFB_3),
  1286. PINMUX_IPSR_GPSR(IP10_16_15, VI0_G6),
  1287. PINMUX_IPSR_GPSR(IP10_16_15, VI2_CLK),
  1288. PINMUX_IPSR_MSEL(IP10_16_15, BPFCLK_D, SEL_FM_3),
  1289. PINMUX_IPSR_GPSR(IP10_18_17, VI0_G7),
  1290. PINMUX_IPSR_GPSR(IP10_18_17, VI2_DATA0),
  1291. PINMUX_IPSR_MSEL(IP10_18_17, FMIN_D, SEL_FM_3),
  1292. PINMUX_IPSR_GPSR(IP10_21_19, VI0_R0),
  1293. PINMUX_IPSR_GPSR(IP10_21_19, VI2_DATA1),
  1294. PINMUX_IPSR_MSEL(IP10_21_19, GLO_I0_B, SEL_GPS_1),
  1295. PINMUX_IPSR_MSEL(IP10_21_19, TS_SDATA0_C, SEL_TSIF0_2),
  1296. PINMUX_IPSR_GPSR(IP10_21_19, ATACS11_N),
  1297. PINMUX_IPSR_GPSR(IP10_24_22, VI0_R1),
  1298. PINMUX_IPSR_GPSR(IP10_24_22, VI2_DATA2),
  1299. PINMUX_IPSR_MSEL(IP10_24_22, GLO_I1_B, SEL_GPS_1),
  1300. PINMUX_IPSR_MSEL(IP10_24_22, TS_SCK0_C, SEL_TSIF0_2),
  1301. PINMUX_IPSR_GPSR(IP10_24_22, ATAG1_N),
  1302. PINMUX_IPSR_GPSR(IP10_26_25, VI0_R2),
  1303. PINMUX_IPSR_GPSR(IP10_26_25, VI2_DATA3),
  1304. PINMUX_IPSR_MSEL(IP10_26_25, GLO_Q0_B, SEL_GPS_1),
  1305. PINMUX_IPSR_MSEL(IP10_26_25, TS_SDEN0_C, SEL_TSIF0_2),
  1306. PINMUX_IPSR_GPSR(IP10_28_27, VI0_R3),
  1307. PINMUX_IPSR_GPSR(IP10_28_27, VI2_DATA4),
  1308. PINMUX_IPSR_MSEL(IP10_28_27, GLO_Q1_B, SEL_GPS_1),
  1309. PINMUX_IPSR_MSEL(IP10_28_27, TS_SPSYNC0_C, SEL_TSIF0_2),
  1310. PINMUX_IPSR_GPSR(IP10_31_29, VI0_R4),
  1311. PINMUX_IPSR_GPSR(IP10_31_29, VI2_DATA5),
  1312. PINMUX_IPSR_MSEL(IP10_31_29, GLO_SCLK_B, SEL_GPS_1),
  1313. PINMUX_IPSR_MSEL(IP10_31_29, TX0_C, SEL_SCIF0_2),
  1314. PINMUX_IPSR_MSEL(IP10_31_29, SCL1_D, SEL_IIC1_3),
  1315. /* IPSR11 */
  1316. PINMUX_IPSR_GPSR(IP11_2_0, VI0_R5),
  1317. PINMUX_IPSR_GPSR(IP11_2_0, VI2_DATA6),
  1318. PINMUX_IPSR_MSEL(IP11_2_0, GLO_SDATA_B, SEL_GPS_1),
  1319. PINMUX_IPSR_MSEL(IP11_2_0, RX0_C, SEL_SCIF0_2),
  1320. PINMUX_IPSR_MSEL(IP11_2_0, SDA1_D, SEL_IIC1_3),
  1321. PINMUX_IPSR_GPSR(IP11_5_3, VI0_R6),
  1322. PINMUX_IPSR_GPSR(IP11_5_3, VI2_DATA7),
  1323. PINMUX_IPSR_MSEL(IP11_5_3, GLO_SS_B, SEL_GPS_1),
  1324. PINMUX_IPSR_MSEL(IP11_5_3, TX1_C, SEL_SCIF1_2),
  1325. PINMUX_IPSR_MSEL(IP11_5_3, SCL4_B, SEL_IIC4_1),
  1326. PINMUX_IPSR_GPSR(IP11_8_6, VI0_R7),
  1327. PINMUX_IPSR_MSEL(IP11_8_6, GLO_RFON_B, SEL_GPS_1),
  1328. PINMUX_IPSR_MSEL(IP11_8_6, RX1_C, SEL_SCIF1_2),
  1329. PINMUX_IPSR_MSEL(IP11_8_6, CAN0_RX_E, SEL_CAN0_4),
  1330. PINMUX_IPSR_MSEL(IP11_8_6, SDA4_B, SEL_IIC4_1),
  1331. PINMUX_IPSR_MSEL(IP11_8_6, HRX1_D, SEL_HSCIF1_3),
  1332. PINMUX_IPSR_MSEL(IP11_8_6, SCIFB0_RXD_D, SEL_SCIFB_3),
  1333. PINMUX_IPSR_MSEL(IP11_11_9, VI1_HSYNC_N, SEL_VI1_0),
  1334. PINMUX_IPSR_GPSR(IP11_11_9, AVB_RXD0),
  1335. PINMUX_IPSR_MSEL(IP11_11_9, TS_SDATA0_B, SEL_TSIF0_1),
  1336. PINMUX_IPSR_MSEL(IP11_11_9, TX4_B, SEL_SCIF4_1),
  1337. PINMUX_IPSR_MSEL(IP11_11_9, SCIFA4_TXD_B, SEL_SCIFA4_1),
  1338. PINMUX_IPSR_MSEL(IP11_14_12, VI1_VSYNC_N, SEL_VI1_0),
  1339. PINMUX_IPSR_GPSR(IP11_14_12, AVB_RXD1),
  1340. PINMUX_IPSR_MSEL(IP11_14_12, TS_SCK0_B, SEL_TSIF0_1),
  1341. PINMUX_IPSR_MSEL(IP11_14_12, RX4_B, SEL_SCIF4_1),
  1342. PINMUX_IPSR_MSEL(IP11_14_12, SCIFA4_RXD_B, SEL_SCIFA4_1),
  1343. PINMUX_IPSR_MSEL(IP11_16_15, VI1_CLKENB, SEL_VI1_0),
  1344. PINMUX_IPSR_GPSR(IP11_16_15, AVB_RXD2),
  1345. PINMUX_IPSR_MSEL(IP11_16_15, TS_SDEN0_B, SEL_TSIF0_1),
  1346. PINMUX_IPSR_MSEL(IP11_18_17, VI1_FIELD, SEL_VI1_0),
  1347. PINMUX_IPSR_GPSR(IP11_18_17, AVB_RXD3),
  1348. PINMUX_IPSR_MSEL(IP11_18_17, TS_SPSYNC0_B, SEL_TSIF0_1),
  1349. PINMUX_IPSR_MSEL(IP11_19, VI1_CLK, SEL_VI1_0),
  1350. PINMUX_IPSR_GPSR(IP11_19, AVB_RXD4),
  1351. PINMUX_IPSR_MSEL(IP11_20, VI1_DATA0, SEL_VI1_0),
  1352. PINMUX_IPSR_GPSR(IP11_20, AVB_RXD5),
  1353. PINMUX_IPSR_MSEL(IP11_21, VI1_DATA1, SEL_VI1_0),
  1354. PINMUX_IPSR_GPSR(IP11_21, AVB_RXD6),
  1355. PINMUX_IPSR_MSEL(IP11_22, VI1_DATA2, SEL_VI1_0),
  1356. PINMUX_IPSR_GPSR(IP11_22, AVB_RXD7),
  1357. PINMUX_IPSR_MSEL(IP11_23, VI1_DATA3, SEL_VI1_0),
  1358. PINMUX_IPSR_GPSR(IP11_23, AVB_RX_ER),
  1359. PINMUX_IPSR_MSEL(IP11_24, VI1_DATA4, SEL_VI1_0),
  1360. PINMUX_IPSR_GPSR(IP11_24, AVB_MDIO),
  1361. PINMUX_IPSR_MSEL(IP11_25, VI1_DATA5, SEL_VI1_0),
  1362. PINMUX_IPSR_GPSR(IP11_25, AVB_RX_DV),
  1363. PINMUX_IPSR_MSEL(IP11_26, VI1_DATA6, SEL_VI1_0),
  1364. PINMUX_IPSR_GPSR(IP11_26, AVB_MAGIC),
  1365. PINMUX_IPSR_MSEL(IP11_27, VI1_DATA7, SEL_VI1_0),
  1366. PINMUX_IPSR_GPSR(IP11_27, AVB_MDC),
  1367. PINMUX_IPSR_GPSR(IP11_29_28, ETH_MDIO),
  1368. PINMUX_IPSR_GPSR(IP11_29_28, AVB_RX_CLK),
  1369. PINMUX_IPSR_MSEL(IP11_29_28, SCL2_C, SEL_IIC2_2),
  1370. PINMUX_IPSR_GPSR(IP11_31_30, ETH_CRS_DV),
  1371. PINMUX_IPSR_GPSR(IP11_31_30, AVB_LINK),
  1372. PINMUX_IPSR_MSEL(IP11_31_30, SDA2_C, SEL_IIC2_2),
  1373. /* IPSR12 */
  1374. PINMUX_IPSR_GPSR(IP12_1_0, ETH_RX_ER),
  1375. PINMUX_IPSR_GPSR(IP12_1_0, AVB_CRS),
  1376. PINMUX_IPSR_MSEL(IP12_1_0, SCL3, SEL_IIC3_0),
  1377. PINMUX_IPSR_MSEL(IP12_1_0, SCL7, SEL_IIC7_0),
  1378. PINMUX_IPSR_GPSR(IP12_3_2, ETH_RXD0),
  1379. PINMUX_IPSR_GPSR(IP12_3_2, AVB_PHY_INT),
  1380. PINMUX_IPSR_MSEL(IP12_3_2, SDA3, SEL_IIC3_0),
  1381. PINMUX_IPSR_MSEL(IP12_3_2, SDA7, SEL_IIC7_0),
  1382. PINMUX_IPSR_GPSR(IP12_6_4, ETH_RXD1),
  1383. PINMUX_IPSR_GPSR(IP12_6_4, AVB_GTXREFCLK),
  1384. PINMUX_IPSR_MSEL(IP12_6_4, CAN0_TX_C, SEL_CAN0_2),
  1385. PINMUX_IPSR_MSEL(IP12_6_4, SCL2_D, SEL_IIC2_3),
  1386. PINMUX_IPSR_MSEL(IP12_6_4, MSIOF1_RXD_E, SEL_SOF1_4),
  1387. PINMUX_IPSR_GPSR(IP12_9_7, ETH_LINK),
  1388. PINMUX_IPSR_GPSR(IP12_9_7, AVB_TXD0),
  1389. PINMUX_IPSR_MSEL(IP12_9_7, CAN0_RX_C, SEL_CAN0_2),
  1390. PINMUX_IPSR_MSEL(IP12_9_7, SDA2_D, SEL_IIC2_3),
  1391. PINMUX_IPSR_MSEL(IP12_9_7, MSIOF1_SCK_E, SEL_SOF1_4),
  1392. PINMUX_IPSR_GPSR(IP12_12_10, ETH_REFCLK),
  1393. PINMUX_IPSR_GPSR(IP12_12_10, AVB_TXD1),
  1394. PINMUX_IPSR_MSEL(IP12_12_10, SCIFA3_RXD_B, SEL_SCIFA3_1),
  1395. PINMUX_IPSR_MSEL(IP12_12_10, CAN1_RX_C, SEL_CAN1_2),
  1396. PINMUX_IPSR_MSEL(IP12_12_10, MSIOF1_SYNC_E, SEL_SOF1_4),
  1397. PINMUX_IPSR_GPSR(IP12_15_13, ETH_TXD1),
  1398. PINMUX_IPSR_GPSR(IP12_15_13, AVB_TXD2),
  1399. PINMUX_IPSR_MSEL(IP12_15_13, SCIFA3_TXD_B, SEL_SCIFA3_1),
  1400. PINMUX_IPSR_MSEL(IP12_15_13, CAN1_TX_C, SEL_CAN1_2),
  1401. PINMUX_IPSR_MSEL(IP12_15_13, MSIOF1_TXD_E, SEL_SOF1_4),
  1402. PINMUX_IPSR_GPSR(IP12_17_16, ETH_TX_EN),
  1403. PINMUX_IPSR_GPSR(IP12_17_16, AVB_TXD3),
  1404. PINMUX_IPSR_MSEL(IP12_17_16, TCLK1_B, SEL_TMU1_0),
  1405. PINMUX_IPSR_MSEL(IP12_17_16, CAN_CLK_B, SEL_CANCLK_1),
  1406. PINMUX_IPSR_GPSR(IP12_19_18, ETH_MAGIC),
  1407. PINMUX_IPSR_GPSR(IP12_19_18, AVB_TXD4),
  1408. PINMUX_IPSR_MSEL(IP12_19_18, IETX_C, SEL_IEB_2),
  1409. PINMUX_IPSR_GPSR(IP12_21_20, ETH_TXD0),
  1410. PINMUX_IPSR_GPSR(IP12_21_20, AVB_TXD5),
  1411. PINMUX_IPSR_MSEL(IP12_21_20, IECLK_C, SEL_IEB_2),
  1412. PINMUX_IPSR_GPSR(IP12_23_22, ETH_MDC),
  1413. PINMUX_IPSR_GPSR(IP12_23_22, AVB_TXD6),
  1414. PINMUX_IPSR_MSEL(IP12_23_22, IERX_C, SEL_IEB_2),
  1415. PINMUX_IPSR_MSEL(IP12_26_24, STP_IVCXO27_0, SEL_SSP_0),
  1416. PINMUX_IPSR_GPSR(IP12_26_24, AVB_TXD7),
  1417. PINMUX_IPSR_MSEL(IP12_26_24, SCIFB2_TXD_D, SEL_SCIFB2_3),
  1418. PINMUX_IPSR_MSEL(IP12_26_24, ADIDATA_B, SEL_RAD_1),
  1419. PINMUX_IPSR_MSEL(IP12_26_24, MSIOF0_SYNC_C, SEL_SOF0_2),
  1420. PINMUX_IPSR_MSEL(IP12_29_27, STP_ISCLK_0, SEL_SSP_0),
  1421. PINMUX_IPSR_GPSR(IP12_29_27, AVB_TX_EN),
  1422. PINMUX_IPSR_MSEL(IP12_29_27, SCIFB2_RXD_D, SEL_SCIFB2_3),
  1423. PINMUX_IPSR_MSEL(IP12_29_27, ADICS_SAMP_B, SEL_RAD_1),
  1424. PINMUX_IPSR_MSEL(IP12_29_27, MSIOF0_SCK_C, SEL_SOF0_2),
  1425. /* IPSR13 */
  1426. PINMUX_IPSR_MSEL(IP13_2_0, STP_ISD_0, SEL_SSP_0),
  1427. PINMUX_IPSR_GPSR(IP13_2_0, AVB_TX_ER),
  1428. PINMUX_IPSR_MSEL(IP13_2_0, SCIFB2_SCK_C, SEL_SCIFB2_2),
  1429. PINMUX_IPSR_MSEL(IP13_2_0, ADICLK_B, SEL_RAD_1),
  1430. PINMUX_IPSR_MSEL(IP13_2_0, MSIOF0_SS1_C, SEL_SOF0_2),
  1431. PINMUX_IPSR_MSEL(IP13_4_3, STP_ISEN_0, SEL_SSP_0),
  1432. PINMUX_IPSR_GPSR(IP13_4_3, AVB_TX_CLK),
  1433. PINMUX_IPSR_MSEL(IP13_4_3, ADICHS0_B, SEL_RAD_1),
  1434. PINMUX_IPSR_MSEL(IP13_4_3, MSIOF0_SS2_C, SEL_SOF0_2),
  1435. PINMUX_IPSR_MSEL(IP13_6_5, STP_ISSYNC_0, SEL_SSP_0),
  1436. PINMUX_IPSR_GPSR(IP13_6_5, AVB_COL),
  1437. PINMUX_IPSR_MSEL(IP13_6_5, ADICHS1_B, SEL_RAD_1),
  1438. PINMUX_IPSR_MSEL(IP13_6_5, MSIOF0_RXD_C, SEL_SOF0_2),
  1439. PINMUX_IPSR_MSEL(IP13_9_7, STP_OPWM_0, SEL_SSP_0),
  1440. PINMUX_IPSR_GPSR(IP13_9_7, AVB_GTX_CLK),
  1441. PINMUX_IPSR_GPSR(IP13_9_7, PWM0_B),
  1442. PINMUX_IPSR_MSEL(IP13_9_7, ADICHS2_B, SEL_RAD_1),
  1443. PINMUX_IPSR_MSEL(IP13_9_7, MSIOF0_TXD_C, SEL_SOF0_2),
  1444. PINMUX_IPSR_GPSR(IP13_10, SD0_CLK),
  1445. PINMUX_IPSR_MSEL(IP13_10, SPCLK_B, SEL_QSP_1),
  1446. PINMUX_IPSR_GPSR(IP13_11, SD0_CMD),
  1447. PINMUX_IPSR_MSEL(IP13_11, MOSI_IO0_B, SEL_QSP_1),
  1448. PINMUX_IPSR_GPSR(IP13_12, SD0_DATA0),
  1449. PINMUX_IPSR_MSEL(IP13_12, MISO_IO1_B, SEL_QSP_1),
  1450. PINMUX_IPSR_GPSR(IP13_13, SD0_DATA1),
  1451. PINMUX_IPSR_MSEL(IP13_13, IO2_B, SEL_QSP_1),
  1452. PINMUX_IPSR_GPSR(IP13_14, SD0_DATA2),
  1453. PINMUX_IPSR_MSEL(IP13_14, IO3_B, SEL_QSP_1),
  1454. PINMUX_IPSR_GPSR(IP13_15, SD0_DATA3),
  1455. PINMUX_IPSR_MSEL(IP13_15, SSL_B, SEL_QSP_1),
  1456. PINMUX_IPSR_GPSR(IP13_18_16, SD0_CD),
  1457. PINMUX_IPSR_MSEL(IP13_18_16, MMC_D6_B, SEL_MMC_1),
  1458. PINMUX_IPSR_MSEL(IP13_18_16, SIM0_RST_B, SEL_SIM_1),
  1459. PINMUX_IPSR_MSEL(IP13_18_16, CAN0_RX_F, SEL_CAN0_5),
  1460. PINMUX_IPSR_MSEL(IP13_18_16, SCIFA5_TXD_B, SEL_SCIFA5_1),
  1461. PINMUX_IPSR_MSEL(IP13_18_16, TX3_C, SEL_SCIF3_2),
  1462. PINMUX_IPSR_GPSR(IP13_21_19, SD0_WP),
  1463. PINMUX_IPSR_MSEL(IP13_21_19, MMC_D7_B, SEL_MMC_1),
  1464. PINMUX_IPSR_MSEL(IP13_21_19, SIM0_D_B, SEL_SIM_1),
  1465. PINMUX_IPSR_MSEL(IP13_21_19, CAN0_TX_F, SEL_CAN0_5),
  1466. PINMUX_IPSR_MSEL(IP13_21_19, SCIFA5_RXD_B, SEL_SCIFA5_1),
  1467. PINMUX_IPSR_MSEL(IP13_21_19, RX3_C, SEL_SCIF3_2),
  1468. PINMUX_IPSR_GPSR(IP13_22, SD1_CMD),
  1469. PINMUX_IPSR_MSEL(IP13_22, REMOCON_B, SEL_RCN_1),
  1470. PINMUX_IPSR_GPSR(IP13_24_23, SD1_DATA0),
  1471. PINMUX_IPSR_MSEL(IP13_24_23, SPEEDIN_B, SEL_RSP_1),
  1472. PINMUX_IPSR_GPSR(IP13_25, SD1_DATA1),
  1473. PINMUX_IPSR_MSEL(IP13_25, IETX_B, SEL_IEB_1),
  1474. PINMUX_IPSR_GPSR(IP13_26, SD1_DATA2),
  1475. PINMUX_IPSR_MSEL(IP13_26, IECLK_B, SEL_IEB_1),
  1476. PINMUX_IPSR_GPSR(IP13_27, SD1_DATA3),
  1477. PINMUX_IPSR_MSEL(IP13_27, IERX_B, SEL_IEB_1),
  1478. PINMUX_IPSR_GPSR(IP13_30_28, SD1_CD),
  1479. PINMUX_IPSR_GPSR(IP13_30_28, PWM0),
  1480. PINMUX_IPSR_GPSR(IP13_30_28, TPU_TO0),
  1481. PINMUX_IPSR_MSEL(IP13_30_28, SCL1_C, SEL_IIC1_2),
  1482. /* IPSR14 */
  1483. PINMUX_IPSR_GPSR(IP14_1_0, SD1_WP),
  1484. PINMUX_IPSR_GPSR(IP14_1_0, PWM1_B),
  1485. PINMUX_IPSR_MSEL(IP14_1_0, SDA1_C, SEL_IIC1_2),
  1486. PINMUX_IPSR_GPSR(IP14_2, SD2_CLK),
  1487. PINMUX_IPSR_GPSR(IP14_2, MMC_CLK),
  1488. PINMUX_IPSR_GPSR(IP14_3, SD2_CMD),
  1489. PINMUX_IPSR_GPSR(IP14_3, MMC_CMD),
  1490. PINMUX_IPSR_GPSR(IP14_4, SD2_DATA0),
  1491. PINMUX_IPSR_GPSR(IP14_4, MMC_D0),
  1492. PINMUX_IPSR_GPSR(IP14_5, SD2_DATA1),
  1493. PINMUX_IPSR_GPSR(IP14_5, MMC_D1),
  1494. PINMUX_IPSR_GPSR(IP14_6, SD2_DATA2),
  1495. PINMUX_IPSR_GPSR(IP14_6, MMC_D2),
  1496. PINMUX_IPSR_GPSR(IP14_7, SD2_DATA3),
  1497. PINMUX_IPSR_GPSR(IP14_7, MMC_D3),
  1498. PINMUX_IPSR_GPSR(IP14_10_8, SD2_CD),
  1499. PINMUX_IPSR_GPSR(IP14_10_8, MMC_D4),
  1500. PINMUX_IPSR_MSEL(IP14_10_8, SCL8_C, SEL_IIC8_2),
  1501. PINMUX_IPSR_MSEL(IP14_10_8, TX5_B, SEL_SCIF5_1),
  1502. PINMUX_IPSR_MSEL(IP14_10_8, SCIFA5_TXD_C, SEL_SCIFA5_2),
  1503. PINMUX_IPSR_GPSR(IP14_13_11, SD2_WP),
  1504. PINMUX_IPSR_GPSR(IP14_13_11, MMC_D5),
  1505. PINMUX_IPSR_MSEL(IP14_13_11, SDA8_C, SEL_IIC8_2),
  1506. PINMUX_IPSR_MSEL(IP14_13_11, RX5_B, SEL_SCIF5_1),
  1507. PINMUX_IPSR_MSEL(IP14_13_11, SCIFA5_RXD_C, SEL_SCIFA5_2),
  1508. PINMUX_IPSR_MSEL(IP14_16_14, MSIOF0_SCK, SEL_SOF0_0),
  1509. PINMUX_IPSR_MSEL(IP14_16_14, RX2_C, SEL_SCIF2_2),
  1510. PINMUX_IPSR_MSEL(IP14_16_14, ADIDATA, SEL_RAD_0),
  1511. PINMUX_IPSR_MSEL(IP14_16_14, VI1_CLK_C, SEL_VI1_2),
  1512. PINMUX_IPSR_GPSR(IP14_16_14, VI1_G0_B),
  1513. PINMUX_IPSR_MSEL(IP14_19_17, MSIOF0_SYNC, SEL_SOF0_0),
  1514. PINMUX_IPSR_MSEL(IP14_19_17, TX2_C, SEL_SCIF2_2),
  1515. PINMUX_IPSR_MSEL(IP14_19_17, ADICS_SAMP, SEL_RAD_0),
  1516. PINMUX_IPSR_MSEL(IP14_19_17, VI1_CLKENB_C, SEL_VI1_2),
  1517. PINMUX_IPSR_GPSR(IP14_19_17, VI1_G1_B),
  1518. PINMUX_IPSR_MSEL(IP14_22_20, MSIOF0_TXD, SEL_SOF0_0),
  1519. PINMUX_IPSR_MSEL(IP14_22_20, ADICLK, SEL_RAD_0),
  1520. PINMUX_IPSR_MSEL(IP14_22_20, VI1_FIELD_C, SEL_VI1_2),
  1521. PINMUX_IPSR_GPSR(IP14_22_20, VI1_G2_B),
  1522. PINMUX_IPSR_MSEL(IP14_25_23, MSIOF0_RXD, SEL_SOF0_0),
  1523. PINMUX_IPSR_MSEL(IP14_25_23, ADICHS0, SEL_RAD_0),
  1524. PINMUX_IPSR_MSEL(IP14_25_23, VI1_DATA0_C, SEL_VI1_2),
  1525. PINMUX_IPSR_GPSR(IP14_25_23, VI1_G3_B),
  1526. PINMUX_IPSR_MSEL(IP14_28_26, MSIOF0_SS1, SEL_SOF0_0),
  1527. PINMUX_IPSR_MSEL(IP14_28_26, MMC_D6, SEL_MMC_0),
  1528. PINMUX_IPSR_MSEL(IP14_28_26, ADICHS1, SEL_RAD_0),
  1529. PINMUX_IPSR_MSEL(IP14_28_26, TX0_E, SEL_SCIF0_4),
  1530. PINMUX_IPSR_MSEL(IP14_28_26, VI1_HSYNC_N_C, SEL_VI1_2),
  1531. PINMUX_IPSR_MSEL(IP14_28_26, SCL7_C, SEL_IIC7_2),
  1532. PINMUX_IPSR_GPSR(IP14_28_26, VI1_G4_B),
  1533. PINMUX_IPSR_MSEL(IP14_31_29, MSIOF0_SS2, SEL_SOF0_0),
  1534. PINMUX_IPSR_MSEL(IP14_31_29, MMC_D7, SEL_MMC_0),
  1535. PINMUX_IPSR_MSEL(IP14_31_29, ADICHS2, SEL_RAD_0),
  1536. PINMUX_IPSR_MSEL(IP14_31_29, RX0_E, SEL_SCIF0_4),
  1537. PINMUX_IPSR_MSEL(IP14_31_29, VI1_VSYNC_N_C, SEL_VI1_2),
  1538. PINMUX_IPSR_MSEL(IP14_31_29, SDA7_C, SEL_IIC7_2),
  1539. PINMUX_IPSR_GPSR(IP14_31_29, VI1_G5_B),
  1540. /* IPSR15 */
  1541. PINMUX_IPSR_MSEL(IP15_1_0, SIM0_RST, SEL_SIM_0),
  1542. PINMUX_IPSR_MSEL(IP15_1_0, IETX, SEL_IEB_0),
  1543. PINMUX_IPSR_MSEL(IP15_1_0, CAN1_TX_D, SEL_CAN1_3),
  1544. PINMUX_IPSR_GPSR(IP15_3_2, SIM0_CLK),
  1545. PINMUX_IPSR_MSEL(IP15_3_2, IECLK, SEL_IEB_0),
  1546. PINMUX_IPSR_MSEL(IP15_3_2, CAN_CLK_C, SEL_CANCLK_2),
  1547. PINMUX_IPSR_MSEL(IP15_5_4, SIM0_D, SEL_SIM_0),
  1548. PINMUX_IPSR_MSEL(IP15_5_4, IERX, SEL_IEB_0),
  1549. PINMUX_IPSR_MSEL(IP15_5_4, CAN1_RX_D, SEL_CAN1_3),
  1550. PINMUX_IPSR_MSEL(IP15_8_6, GPS_CLK, SEL_GPS_0),
  1551. PINMUX_IPSR_MSEL(IP15_8_6, DU1_DOTCLKIN_C, SEL_DIS_2),
  1552. PINMUX_IPSR_MSEL(IP15_8_6, AUDIO_CLKB_B, SEL_ADG_1),
  1553. PINMUX_IPSR_GPSR(IP15_8_6, PWM5_B),
  1554. PINMUX_IPSR_MSEL(IP15_8_6, SCIFA3_TXD_C, SEL_SCIFA3_2),
  1555. PINMUX_IPSR_MSEL(IP15_11_9, GPS_SIGN, SEL_GPS_0),
  1556. PINMUX_IPSR_MSEL(IP15_11_9, TX4_C, SEL_SCIF4_2),
  1557. PINMUX_IPSR_MSEL(IP15_11_9, SCIFA4_TXD_C, SEL_SCIFA4_2),
  1558. PINMUX_IPSR_GPSR(IP15_11_9, PWM5),
  1559. PINMUX_IPSR_GPSR(IP15_11_9, VI1_G6_B),
  1560. PINMUX_IPSR_MSEL(IP15_11_9, SCIFA3_RXD_C, SEL_SCIFA3_2),
  1561. PINMUX_IPSR_MSEL(IP15_14_12, GPS_MAG, SEL_GPS_0),
  1562. PINMUX_IPSR_MSEL(IP15_14_12, RX4_C, SEL_SCIF4_2),
  1563. PINMUX_IPSR_MSEL(IP15_14_12, SCIFA4_RXD_C, SEL_SCIFA4_2),
  1564. PINMUX_IPSR_GPSR(IP15_14_12, PWM6),
  1565. PINMUX_IPSR_GPSR(IP15_14_12, VI1_G7_B),
  1566. PINMUX_IPSR_MSEL(IP15_14_12, SCIFA3_SCK_C, SEL_SCIFA3_2),
  1567. PINMUX_IPSR_MSEL(IP15_17_15, HCTS0_N, SEL_HSCIF0_0),
  1568. PINMUX_IPSR_MSEL(IP15_17_15, SCIFB0_CTS_N, SEL_SCIFB_0),
  1569. PINMUX_IPSR_MSEL(IP15_17_15, GLO_I0_C, SEL_GPS_2),
  1570. PINMUX_IPSR_MSEL(IP15_17_15, TCLK1, SEL_TMU1_0),
  1571. PINMUX_IPSR_MSEL(IP15_17_15, VI1_DATA1_C, SEL_VI1_2),
  1572. PINMUX_IPSR_MSEL(IP15_20_18, HRTS0_N, SEL_HSCIF0_0),
  1573. PINMUX_IPSR_MSEL(IP15_20_18, SCIFB0_RTS_N, SEL_SCIFB_0),
  1574. PINMUX_IPSR_MSEL(IP15_20_18, GLO_I1_C, SEL_GPS_2),
  1575. PINMUX_IPSR_MSEL(IP15_20_18, VI1_DATA2_C, SEL_VI1_2),
  1576. PINMUX_IPSR_MSEL(IP15_23_21, HSCK0, SEL_HSCIF0_0),
  1577. PINMUX_IPSR_MSEL(IP15_23_21, SCIFB0_SCK, SEL_SCIFB_0),
  1578. PINMUX_IPSR_MSEL(IP15_23_21, GLO_Q0_C, SEL_GPS_2),
  1579. PINMUX_IPSR_MSEL(IP15_23_21, CAN_CLK, SEL_CANCLK_0),
  1580. PINMUX_IPSR_GPSR(IP15_23_21, TCLK2),
  1581. PINMUX_IPSR_MSEL(IP15_23_21, VI1_DATA3_C, SEL_VI1_2),
  1582. PINMUX_IPSR_MSEL(IP15_26_24, HRX0, SEL_HSCIF0_0),
  1583. PINMUX_IPSR_MSEL(IP15_26_24, SCIFB0_RXD, SEL_SCIFB_0),
  1584. PINMUX_IPSR_MSEL(IP15_26_24, GLO_Q1_C, SEL_GPS_2),
  1585. PINMUX_IPSR_MSEL(IP15_26_24, CAN0_RX_B, SEL_CAN0_1),
  1586. PINMUX_IPSR_MSEL(IP15_26_24, VI1_DATA4_C, SEL_VI1_2),
  1587. PINMUX_IPSR_MSEL(IP15_29_27, HTX0, SEL_HSCIF0_0),
  1588. PINMUX_IPSR_MSEL(IP15_29_27, SCIFB0_TXD, SEL_SCIFB_0),
  1589. PINMUX_IPSR_MSEL(IP15_29_27, GLO_SCLK_C, SEL_GPS_2),
  1590. PINMUX_IPSR_MSEL(IP15_29_27, CAN0_TX_B, SEL_CAN0_1),
  1591. PINMUX_IPSR_MSEL(IP15_29_27, VI1_DATA5_C, SEL_VI1_2),
  1592. /* IPSR16 */
  1593. PINMUX_IPSR_MSEL(IP16_2_0, HRX1, SEL_HSCIF1_0),
  1594. PINMUX_IPSR_MSEL(IP16_2_0, SCIFB1_RXD, SEL_SCIFB1_0),
  1595. PINMUX_IPSR_GPSR(IP16_2_0, VI1_R0_B),
  1596. PINMUX_IPSR_MSEL(IP16_2_0, GLO_SDATA_C, SEL_GPS_2),
  1597. PINMUX_IPSR_MSEL(IP16_2_0, VI1_DATA6_C, SEL_VI1_2),
  1598. PINMUX_IPSR_MSEL(IP16_5_3, HTX1, SEL_HSCIF1_0),
  1599. PINMUX_IPSR_MSEL(IP16_5_3, SCIFB1_TXD, SEL_SCIFB1_0),
  1600. PINMUX_IPSR_GPSR(IP16_5_3, VI1_R1_B),
  1601. PINMUX_IPSR_MSEL(IP16_5_3, GLO_SS_C, SEL_GPS_2),
  1602. PINMUX_IPSR_MSEL(IP16_5_3, VI1_DATA7_C, SEL_VI1_2),
  1603. PINMUX_IPSR_MSEL(IP16_7_6, HSCK1, SEL_HSCIF1_0),
  1604. PINMUX_IPSR_MSEL(IP16_7_6, SCIFB1_SCK, SEL_SCIFB1_0),
  1605. PINMUX_IPSR_GPSR(IP16_7_6, MLB_CLK),
  1606. PINMUX_IPSR_MSEL(IP16_7_6, GLO_RFON_C, SEL_GPS_2),
  1607. PINMUX_IPSR_MSEL(IP16_9_8, HCTS1_N, SEL_HSCIF1_0),
  1608. PINMUX_IPSR_GPSR(IP16_9_8, SCIFB1_CTS_N),
  1609. PINMUX_IPSR_GPSR(IP16_9_8, MLB_SIG),
  1610. PINMUX_IPSR_MSEL(IP16_9_8, CAN1_TX_B, SEL_CAN1_1),
  1611. PINMUX_IPSR_MSEL(IP16_11_10, HRTS1_N, SEL_HSCIF1_0),
  1612. PINMUX_IPSR_GPSR(IP16_11_10, SCIFB1_RTS_N),
  1613. PINMUX_IPSR_GPSR(IP16_11_10, MLB_DAT),
  1614. PINMUX_IPSR_MSEL(IP16_11_10, CAN1_RX_B, SEL_CAN1_1),
  1615. };
  1616. static const struct sh_pfc_pin pinmux_pins[] = {
  1617. PINMUX_GPIO_GP_ALL(),
  1618. };
  1619. /* - Audio Clock ------------------------------------------------------------ */
  1620. static const unsigned int audio_clk_a_pins[] = {
  1621. /* CLK */
  1622. RCAR_GP_PIN(2, 28),
  1623. };
  1624. static const unsigned int audio_clk_a_mux[] = {
  1625. AUDIO_CLKA_MARK,
  1626. };
  1627. static const unsigned int audio_clk_b_pins[] = {
  1628. /* CLK */
  1629. RCAR_GP_PIN(2, 29),
  1630. };
  1631. static const unsigned int audio_clk_b_mux[] = {
  1632. AUDIO_CLKB_MARK,
  1633. };
  1634. static const unsigned int audio_clk_b_b_pins[] = {
  1635. /* CLK */
  1636. RCAR_GP_PIN(7, 20),
  1637. };
  1638. static const unsigned int audio_clk_b_b_mux[] = {
  1639. AUDIO_CLKB_B_MARK,
  1640. };
  1641. static const unsigned int audio_clk_c_pins[] = {
  1642. /* CLK */
  1643. RCAR_GP_PIN(2, 30),
  1644. };
  1645. static const unsigned int audio_clk_c_mux[] = {
  1646. AUDIO_CLKC_MARK,
  1647. };
  1648. static const unsigned int audio_clkout_pins[] = {
  1649. /* CLK */
  1650. RCAR_GP_PIN(2, 31),
  1651. };
  1652. static const unsigned int audio_clkout_mux[] = {
  1653. AUDIO_CLKOUT_MARK,
  1654. };
  1655. /* - AVB -------------------------------------------------------------------- */
  1656. static const unsigned int avb_link_pins[] = {
  1657. RCAR_GP_PIN(5, 14),
  1658. };
  1659. static const unsigned int avb_link_mux[] = {
  1660. AVB_LINK_MARK,
  1661. };
  1662. static const unsigned int avb_magic_pins[] = {
  1663. RCAR_GP_PIN(5, 11),
  1664. };
  1665. static const unsigned int avb_magic_mux[] = {
  1666. AVB_MAGIC_MARK,
  1667. };
  1668. static const unsigned int avb_phy_int_pins[] = {
  1669. RCAR_GP_PIN(5, 16),
  1670. };
  1671. static const unsigned int avb_phy_int_mux[] = {
  1672. AVB_PHY_INT_MARK,
  1673. };
  1674. static const unsigned int avb_mdio_pins[] = {
  1675. RCAR_GP_PIN(5, 12), RCAR_GP_PIN(5, 9),
  1676. };
  1677. static const unsigned int avb_mdio_mux[] = {
  1678. AVB_MDC_MARK, AVB_MDIO_MARK,
  1679. };
  1680. static const unsigned int avb_mii_pins[] = {
  1681. RCAR_GP_PIN(5, 18), RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 20),
  1682. RCAR_GP_PIN(5, 21),
  1683. RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
  1684. RCAR_GP_PIN(5, 3),
  1685. RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 10),
  1686. RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 26), RCAR_GP_PIN(5, 27),
  1687. RCAR_GP_PIN(5, 28), RCAR_GP_PIN(5, 29),
  1688. };
  1689. static const unsigned int avb_mii_mux[] = {
  1690. AVB_TXD0_MARK, AVB_TXD1_MARK, AVB_TXD2_MARK,
  1691. AVB_TXD3_MARK,
  1692. AVB_RXD0_MARK, AVB_RXD1_MARK, AVB_RXD2_MARK,
  1693. AVB_RXD3_MARK,
  1694. AVB_RX_ER_MARK, AVB_RX_CLK_MARK, AVB_RX_DV_MARK,
  1695. AVB_CRS_MARK, AVB_TX_EN_MARK, AVB_TX_ER_MARK,
  1696. AVB_TX_CLK_MARK, AVB_COL_MARK,
  1697. };
  1698. static const unsigned int avb_gmii_pins[] = {
  1699. RCAR_GP_PIN(5, 18), RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 20),
  1700. RCAR_GP_PIN(5, 21), RCAR_GP_PIN(5, 22), RCAR_GP_PIN(5, 23),
  1701. RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 25),
  1702. RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
  1703. RCAR_GP_PIN(5, 3), RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 5),
  1704. RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 7),
  1705. RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 10),
  1706. RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 30), RCAR_GP_PIN(5, 17),
  1707. RCAR_GP_PIN(5, 26), RCAR_GP_PIN(5, 27), RCAR_GP_PIN(5, 28),
  1708. RCAR_GP_PIN(5, 29),
  1709. };
  1710. static const unsigned int avb_gmii_mux[] = {
  1711. AVB_TXD0_MARK, AVB_TXD1_MARK, AVB_TXD2_MARK,
  1712. AVB_TXD3_MARK, AVB_TXD4_MARK, AVB_TXD5_MARK,
  1713. AVB_TXD6_MARK, AVB_TXD7_MARK,
  1714. AVB_RXD0_MARK, AVB_RXD1_MARK, AVB_RXD2_MARK,
  1715. AVB_RXD3_MARK, AVB_RXD4_MARK, AVB_RXD5_MARK,
  1716. AVB_RXD6_MARK, AVB_RXD7_MARK,
  1717. AVB_RX_ER_MARK, AVB_RX_CLK_MARK, AVB_RX_DV_MARK,
  1718. AVB_CRS_MARK, AVB_GTX_CLK_MARK, AVB_GTXREFCLK_MARK,
  1719. AVB_TX_EN_MARK, AVB_TX_ER_MARK, AVB_TX_CLK_MARK,
  1720. AVB_COL_MARK,
  1721. };
  1722. /* - CAN -------------------------------------------------------------------- */
  1723. static const unsigned int can0_data_pins[] = {
  1724. /* TX, RX */
  1725. RCAR_GP_PIN(3, 26), RCAR_GP_PIN(3, 29),
  1726. };
  1727. static const unsigned int can0_data_mux[] = {
  1728. CAN0_TX_MARK, CAN0_RX_MARK,
  1729. };
  1730. static const unsigned int can0_data_b_pins[] = {
  1731. /* TX, RX */
  1732. RCAR_GP_PIN(7, 4), RCAR_GP_PIN(7, 3),
  1733. };
  1734. static const unsigned int can0_data_b_mux[] = {
  1735. CAN0_TX_B_MARK, CAN0_RX_B_MARK,
  1736. };
  1737. static const unsigned int can0_data_c_pins[] = {
  1738. /* TX, RX */
  1739. RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 18),
  1740. };
  1741. static const unsigned int can0_data_c_mux[] = {
  1742. CAN0_TX_C_MARK, CAN0_RX_C_MARK,
  1743. };
  1744. static const unsigned int can0_data_d_pins[] = {
  1745. /* TX, RX */
  1746. RCAR_GP_PIN(2, 26), RCAR_GP_PIN(2, 27),
  1747. };
  1748. static const unsigned int can0_data_d_mux[] = {
  1749. CAN0_TX_D_MARK, CAN0_RX_D_MARK,
  1750. };
  1751. static const unsigned int can0_data_e_pins[] = {
  1752. /* TX, RX */
  1753. RCAR_GP_PIN(4, 18), RCAR_GP_PIN(4, 28),
  1754. };
  1755. static const unsigned int can0_data_e_mux[] = {
  1756. CAN0_TX_E_MARK, CAN0_RX_E_MARK,
  1757. };
  1758. static const unsigned int can0_data_f_pins[] = {
  1759. /* TX, RX */
  1760. RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
  1761. };
  1762. static const unsigned int can0_data_f_mux[] = {
  1763. CAN0_TX_F_MARK, CAN0_RX_F_MARK,
  1764. };
  1765. static const unsigned int can1_data_pins[] = {
  1766. /* TX, RX */
  1767. RCAR_GP_PIN(3, 21), RCAR_GP_PIN(3, 20),
  1768. };
  1769. static const unsigned int can1_data_mux[] = {
  1770. CAN1_TX_MARK, CAN1_RX_MARK,
  1771. };
  1772. static const unsigned int can1_data_b_pins[] = {
  1773. /* TX, RX */
  1774. RCAR_GP_PIN(7, 8), RCAR_GP_PIN(7, 9),
  1775. };
  1776. static const unsigned int can1_data_b_mux[] = {
  1777. CAN1_TX_B_MARK, CAN1_RX_B_MARK,
  1778. };
  1779. static const unsigned int can1_data_c_pins[] = {
  1780. /* TX, RX */
  1781. RCAR_GP_PIN(5, 20), RCAR_GP_PIN(5, 19),
  1782. };
  1783. static const unsigned int can1_data_c_mux[] = {
  1784. CAN1_TX_C_MARK, CAN1_RX_C_MARK,
  1785. };
  1786. static const unsigned int can1_data_d_pins[] = {
  1787. /* TX, RX */
  1788. RCAR_GP_PIN(4, 29), RCAR_GP_PIN(4, 31),
  1789. };
  1790. static const unsigned int can1_data_d_mux[] = {
  1791. CAN1_TX_D_MARK, CAN1_RX_D_MARK,
  1792. };
  1793. static const unsigned int can_clk_pins[] = {
  1794. /* CLK */
  1795. RCAR_GP_PIN(7, 2),
  1796. };
  1797. static const unsigned int can_clk_mux[] = {
  1798. CAN_CLK_MARK,
  1799. };
  1800. static const unsigned int can_clk_b_pins[] = {
  1801. /* CLK */
  1802. RCAR_GP_PIN(5, 21),
  1803. };
  1804. static const unsigned int can_clk_b_mux[] = {
  1805. CAN_CLK_B_MARK,
  1806. };
  1807. static const unsigned int can_clk_c_pins[] = {
  1808. /* CLK */
  1809. RCAR_GP_PIN(4, 30),
  1810. };
  1811. static const unsigned int can_clk_c_mux[] = {
  1812. CAN_CLK_C_MARK,
  1813. };
  1814. static const unsigned int can_clk_d_pins[] = {
  1815. /* CLK */
  1816. RCAR_GP_PIN(7, 19),
  1817. };
  1818. static const unsigned int can_clk_d_mux[] = {
  1819. CAN_CLK_D_MARK,
  1820. };
  1821. /* - DU --------------------------------------------------------------------- */
  1822. static const unsigned int du_rgb666_pins[] = {
  1823. /* R[7:2], G[7:2], B[7:2] */
  1824. RCAR_GP_PIN(3, 7), RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 5),
  1825. RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 2),
  1826. RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 13),
  1827. RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 11), RCAR_GP_PIN(3, 10),
  1828. RCAR_GP_PIN(3, 23), RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 21),
  1829. RCAR_GP_PIN(3, 20), RCAR_GP_PIN(3, 19), RCAR_GP_PIN(3, 18),
  1830. };
  1831. static const unsigned int du_rgb666_mux[] = {
  1832. DU1_DR7_MARK, DU1_DR6_MARK, DU1_DR5_MARK, DU1_DR4_MARK,
  1833. DU1_DR3_MARK, DU1_DR2_MARK,
  1834. DU1_DG7_MARK, DU1_DG6_MARK, DU1_DG5_MARK, DU1_DG4_MARK,
  1835. DU1_DG3_MARK, DU1_DG2_MARK,
  1836. DU1_DB7_MARK, DU1_DB6_MARK, DU1_DB5_MARK, DU1_DB4_MARK,
  1837. DU1_DB3_MARK, DU1_DB2_MARK,
  1838. };
  1839. static const unsigned int du_rgb888_pins[] = {
  1840. /* R[7:0], G[7:0], B[7:0] */
  1841. RCAR_GP_PIN(3, 7), RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 5),
  1842. RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 2),
  1843. RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 0),
  1844. RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 13),
  1845. RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 11), RCAR_GP_PIN(3, 10),
  1846. RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 8),
  1847. RCAR_GP_PIN(3, 23), RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 21),
  1848. RCAR_GP_PIN(3, 20), RCAR_GP_PIN(3, 19), RCAR_GP_PIN(3, 18),
  1849. RCAR_GP_PIN(3, 17), RCAR_GP_PIN(3, 16),
  1850. };
  1851. static const unsigned int du_rgb888_mux[] = {
  1852. DU1_DR7_MARK, DU1_DR6_MARK, DU1_DR5_MARK, DU1_DR4_MARK,
  1853. DU1_DR3_MARK, DU1_DR2_MARK, DU1_DR1_MARK, DU1_DR0_MARK,
  1854. DU1_DG7_MARK, DU1_DG6_MARK, DU1_DG5_MARK, DU1_DG4_MARK,
  1855. DU1_DG3_MARK, DU1_DG2_MARK, DU1_DG1_MARK, DU1_DG0_MARK,
  1856. DU1_DB7_MARK, DU1_DB6_MARK, DU1_DB5_MARK, DU1_DB4_MARK,
  1857. DU1_DB3_MARK, DU1_DB2_MARK, DU1_DB1_MARK, DU1_DB0_MARK,
  1858. };
  1859. static const unsigned int du_clk_out_0_pins[] = {
  1860. /* CLKOUT */
  1861. RCAR_GP_PIN(3, 25),
  1862. };
  1863. static const unsigned int du_clk_out_0_mux[] = {
  1864. DU1_DOTCLKOUT0_MARK
  1865. };
  1866. static const unsigned int du_clk_out_1_pins[] = {
  1867. /* CLKOUT */
  1868. RCAR_GP_PIN(3, 26),
  1869. };
  1870. static const unsigned int du_clk_out_1_mux[] = {
  1871. DU1_DOTCLKOUT1_MARK
  1872. };
  1873. static const unsigned int du_sync_pins[] = {
  1874. /* EXVSYNC/VSYNC, EXHSYNC/HSYNC */
  1875. RCAR_GP_PIN(3, 28), RCAR_GP_PIN(3, 27),
  1876. };
  1877. static const unsigned int du_sync_mux[] = {
  1878. DU1_EXVSYNC_DU1_VSYNC_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK
  1879. };
  1880. static const unsigned int du_oddf_pins[] = {
  1881. /* EXDISP/EXODDF/EXCDE */
  1882. RCAR_GP_PIN(3, 29),
  1883. };
  1884. static const unsigned int du_oddf_mux[] = {
  1885. DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK,
  1886. };
  1887. static const unsigned int du_cde_pins[] = {
  1888. /* CDE */
  1889. RCAR_GP_PIN(3, 31),
  1890. };
  1891. static const unsigned int du_cde_mux[] = {
  1892. DU1_CDE_MARK,
  1893. };
  1894. static const unsigned int du_disp_pins[] = {
  1895. /* DISP */
  1896. RCAR_GP_PIN(3, 30),
  1897. };
  1898. static const unsigned int du_disp_mux[] = {
  1899. DU1_DISP_MARK,
  1900. };
  1901. static const unsigned int du0_clk_in_pins[] = {
  1902. /* CLKIN */
  1903. RCAR_GP_PIN(6, 31),
  1904. };
  1905. static const unsigned int du0_clk_in_mux[] = {
  1906. DU0_DOTCLKIN_MARK
  1907. };
  1908. static const unsigned int du1_clk_in_pins[] = {
  1909. /* CLKIN */
  1910. RCAR_GP_PIN(3, 24),
  1911. };
  1912. static const unsigned int du1_clk_in_mux[] = {
  1913. DU1_DOTCLKIN_MARK
  1914. };
  1915. static const unsigned int du1_clk_in_b_pins[] = {
  1916. /* CLKIN */
  1917. RCAR_GP_PIN(7, 19),
  1918. };
  1919. static const unsigned int du1_clk_in_b_mux[] = {
  1920. DU1_DOTCLKIN_B_MARK,
  1921. };
  1922. static const unsigned int du1_clk_in_c_pins[] = {
  1923. /* CLKIN */
  1924. RCAR_GP_PIN(7, 20),
  1925. };
  1926. static const unsigned int du1_clk_in_c_mux[] = {
  1927. DU1_DOTCLKIN_C_MARK,
  1928. };
  1929. /* - ETH -------------------------------------------------------------------- */
  1930. static const unsigned int eth_link_pins[] = {
  1931. /* LINK */
  1932. RCAR_GP_PIN(5, 18),
  1933. };
  1934. static const unsigned int eth_link_mux[] = {
  1935. ETH_LINK_MARK,
  1936. };
  1937. static const unsigned int eth_magic_pins[] = {
  1938. /* MAGIC */
  1939. RCAR_GP_PIN(5, 22),
  1940. };
  1941. static const unsigned int eth_magic_mux[] = {
  1942. ETH_MAGIC_MARK,
  1943. };
  1944. static const unsigned int eth_mdio_pins[] = {
  1945. /* MDC, MDIO */
  1946. RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 13),
  1947. };
  1948. static const unsigned int eth_mdio_mux[] = {
  1949. ETH_MDC_MARK, ETH_MDIO_MARK,
  1950. };
  1951. static const unsigned int eth_rmii_pins[] = {
  1952. /* RXD[0:1], RX_ER, CRS_DV, TXD[0:1], TX_EN, REF_CLK */
  1953. RCAR_GP_PIN(5, 16), RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 15),
  1954. RCAR_GP_PIN(5, 14), RCAR_GP_PIN(5, 23), RCAR_GP_PIN(5, 20),
  1955. RCAR_GP_PIN(5, 21), RCAR_GP_PIN(5, 19),
  1956. };
  1957. static const unsigned int eth_rmii_mux[] = {
  1958. ETH_RXD0_MARK, ETH_RXD1_MARK, ETH_RX_ER_MARK, ETH_CRS_DV_MARK,
  1959. ETH_TXD0_MARK, ETH_TXD1_MARK, ETH_TX_EN_MARK, ETH_REFCLK_MARK,
  1960. };
  1961. /* - HSCIF0 ----------------------------------------------------------------- */
  1962. static const unsigned int hscif0_data_pins[] = {
  1963. /* RX, TX */
  1964. RCAR_GP_PIN(7, 3), RCAR_GP_PIN(7, 4),
  1965. };
  1966. static const unsigned int hscif0_data_mux[] = {
  1967. HRX0_MARK, HTX0_MARK,
  1968. };
  1969. static const unsigned int hscif0_clk_pins[] = {
  1970. /* SCK */
  1971. RCAR_GP_PIN(7, 2),
  1972. };
  1973. static const unsigned int hscif0_clk_mux[] = {
  1974. HSCK0_MARK,
  1975. };
  1976. static const unsigned int hscif0_ctrl_pins[] = {
  1977. /* RTS, CTS */
  1978. RCAR_GP_PIN(7, 1), RCAR_GP_PIN(7, 0),
  1979. };
  1980. static const unsigned int hscif0_ctrl_mux[] = {
  1981. HRTS0_N_MARK, HCTS0_N_MARK,
  1982. };
  1983. static const unsigned int hscif0_data_b_pins[] = {
  1984. /* RX, TX */
  1985. RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 15),
  1986. };
  1987. static const unsigned int hscif0_data_b_mux[] = {
  1988. HRX0_B_MARK, HTX0_B_MARK,
  1989. };
  1990. static const unsigned int hscif0_ctrl_b_pins[] = {
  1991. /* RTS, CTS */
  1992. RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 13),
  1993. };
  1994. static const unsigned int hscif0_ctrl_b_mux[] = {
  1995. HRTS0_N_B_MARK, HCTS0_N_B_MARK,
  1996. };
  1997. static const unsigned int hscif0_data_c_pins[] = {
  1998. /* RX, TX */
  1999. RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
  2000. };
  2001. static const unsigned int hscif0_data_c_mux[] = {
  2002. HRX0_C_MARK, HTX0_C_MARK,
  2003. };
  2004. static const unsigned int hscif0_clk_c_pins[] = {
  2005. /* SCK */
  2006. RCAR_GP_PIN(5, 31),
  2007. };
  2008. static const unsigned int hscif0_clk_c_mux[] = {
  2009. HSCK0_C_MARK,
  2010. };
  2011. /* - HSCIF1 ----------------------------------------------------------------- */
  2012. static const unsigned int hscif1_data_pins[] = {
  2013. /* RX, TX */
  2014. RCAR_GP_PIN(7, 5), RCAR_GP_PIN(7, 6),
  2015. };
  2016. static const unsigned int hscif1_data_mux[] = {
  2017. HRX1_MARK, HTX1_MARK,
  2018. };
  2019. static const unsigned int hscif1_clk_pins[] = {
  2020. /* SCK */
  2021. RCAR_GP_PIN(7, 7),
  2022. };
  2023. static const unsigned int hscif1_clk_mux[] = {
  2024. HSCK1_MARK,
  2025. };
  2026. static const unsigned int hscif1_ctrl_pins[] = {
  2027. /* RTS, CTS */
  2028. RCAR_GP_PIN(7, 9), RCAR_GP_PIN(7, 8),
  2029. };
  2030. static const unsigned int hscif1_ctrl_mux[] = {
  2031. HRTS1_N_MARK, HCTS1_N_MARK,
  2032. };
  2033. static const unsigned int hscif1_data_b_pins[] = {
  2034. /* RX, TX */
  2035. RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
  2036. };
  2037. static const unsigned int hscif1_data_b_mux[] = {
  2038. HRX1_B_MARK, HTX1_B_MARK,
  2039. };
  2040. static const unsigned int hscif1_data_c_pins[] = {
  2041. /* RX, TX */
  2042. RCAR_GP_PIN(7, 14), RCAR_GP_PIN(7, 15),
  2043. };
  2044. static const unsigned int hscif1_data_c_mux[] = {
  2045. HRX1_C_MARK, HTX1_C_MARK,
  2046. };
  2047. static const unsigned int hscif1_clk_c_pins[] = {
  2048. /* SCK */
  2049. RCAR_GP_PIN(7, 16),
  2050. };
  2051. static const unsigned int hscif1_clk_c_mux[] = {
  2052. HSCK1_C_MARK,
  2053. };
  2054. static const unsigned int hscif1_ctrl_c_pins[] = {
  2055. /* RTS, CTS */
  2056. RCAR_GP_PIN(7, 18), RCAR_GP_PIN(7, 17),
  2057. };
  2058. static const unsigned int hscif1_ctrl_c_mux[] = {
  2059. HRTS1_N_C_MARK, HCTS1_N_C_MARK,
  2060. };
  2061. static const unsigned int hscif1_data_d_pins[] = {
  2062. /* RX, TX */
  2063. RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 18),
  2064. };
  2065. static const unsigned int hscif1_data_d_mux[] = {
  2066. HRX1_D_MARK, HTX1_D_MARK,
  2067. };
  2068. static const unsigned int hscif1_data_e_pins[] = {
  2069. /* RX, TX */
  2070. RCAR_GP_PIN(7, 14), RCAR_GP_PIN(7, 15),
  2071. };
  2072. static const unsigned int hscif1_data_e_mux[] = {
  2073. HRX1_C_MARK, HTX1_C_MARK,
  2074. };
  2075. static const unsigned int hscif1_clk_e_pins[] = {
  2076. /* SCK */
  2077. RCAR_GP_PIN(2, 6),
  2078. };
  2079. static const unsigned int hscif1_clk_e_mux[] = {
  2080. HSCK1_E_MARK,
  2081. };
  2082. static const unsigned int hscif1_ctrl_e_pins[] = {
  2083. /* RTS, CTS */
  2084. RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 7),
  2085. };
  2086. static const unsigned int hscif1_ctrl_e_mux[] = {
  2087. HRTS1_N_E_MARK, HCTS1_N_E_MARK,
  2088. };
  2089. /* - HSCIF2 ----------------------------------------------------------------- */
  2090. static const unsigned int hscif2_data_pins[] = {
  2091. /* RX, TX */
  2092. RCAR_GP_PIN(4, 16), RCAR_GP_PIN(4, 17),
  2093. };
  2094. static const unsigned int hscif2_data_mux[] = {
  2095. HRX2_MARK, HTX2_MARK,
  2096. };
  2097. static const unsigned int hscif2_clk_pins[] = {
  2098. /* SCK */
  2099. RCAR_GP_PIN(4, 15),
  2100. };
  2101. static const unsigned int hscif2_clk_mux[] = {
  2102. HSCK2_MARK,
  2103. };
  2104. static const unsigned int hscif2_ctrl_pins[] = {
  2105. /* RTS, CTS */
  2106. RCAR_GP_PIN(4, 14), RCAR_GP_PIN(4, 13),
  2107. };
  2108. static const unsigned int hscif2_ctrl_mux[] = {
  2109. HRTS2_N_MARK, HCTS2_N_MARK,
  2110. };
  2111. static const unsigned int hscif2_data_b_pins[] = {
  2112. /* RX, TX */
  2113. RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 22),
  2114. };
  2115. static const unsigned int hscif2_data_b_mux[] = {
  2116. HRX2_B_MARK, HTX2_B_MARK,
  2117. };
  2118. static const unsigned int hscif2_ctrl_b_pins[] = {
  2119. /* RTS, CTS */
  2120. RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 21),
  2121. };
  2122. static const unsigned int hscif2_ctrl_b_mux[] = {
  2123. HRTS2_N_B_MARK, HCTS2_N_B_MARK,
  2124. };
  2125. static const unsigned int hscif2_data_c_pins[] = {
  2126. /* RX, TX */
  2127. RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
  2128. };
  2129. static const unsigned int hscif2_data_c_mux[] = {
  2130. HRX2_C_MARK, HTX2_C_MARK,
  2131. };
  2132. static const unsigned int hscif2_clk_c_pins[] = {
  2133. /* SCK */
  2134. RCAR_GP_PIN(5, 31),
  2135. };
  2136. static const unsigned int hscif2_clk_c_mux[] = {
  2137. HSCK2_C_MARK,
  2138. };
  2139. static const unsigned int hscif2_data_d_pins[] = {
  2140. /* RX, TX */
  2141. RCAR_GP_PIN(1, 20), RCAR_GP_PIN(5, 31),
  2142. };
  2143. static const unsigned int hscif2_data_d_mux[] = {
  2144. HRX2_B_MARK, HTX2_D_MARK,
  2145. };
  2146. /* - I2C0 ------------------------------------------------------------------- */
  2147. static const unsigned int i2c0_pins[] = {
  2148. /* SCL, SDA */
  2149. RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 25),
  2150. };
  2151. static const unsigned int i2c0_mux[] = {
  2152. SCL0_MARK, SDA0_MARK,
  2153. };
  2154. static const unsigned int i2c0_b_pins[] = {
  2155. /* SCL, SDA */
  2156. RCAR_GP_PIN(2, 2), RCAR_GP_PIN(2, 3),
  2157. };
  2158. static const unsigned int i2c0_b_mux[] = {
  2159. SCL0_B_MARK, SDA0_B_MARK,
  2160. };
  2161. static const unsigned int i2c0_c_pins[] = {
  2162. /* SCL, SDA */
  2163. RCAR_GP_PIN(0, 16), RCAR_GP_PIN(1, 1),
  2164. };
  2165. static const unsigned int i2c0_c_mux[] = {
  2166. SCL0_C_MARK, SDA0_C_MARK,
  2167. };
  2168. /* - I2C1 ------------------------------------------------------------------- */
  2169. static const unsigned int i2c1_pins[] = {
  2170. /* SCL, SDA */
  2171. RCAR_GP_PIN(1, 10), RCAR_GP_PIN(1, 11),
  2172. };
  2173. static const unsigned int i2c1_mux[] = {
  2174. SCL1_MARK, SDA1_MARK,
  2175. };
  2176. static const unsigned int i2c1_b_pins[] = {
  2177. /* SCL, SDA */
  2178. RCAR_GP_PIN(2, 4), RCAR_GP_PIN(2, 5),
  2179. };
  2180. static const unsigned int i2c1_b_mux[] = {
  2181. SCL1_B_MARK, SDA1_B_MARK,
  2182. };
  2183. static const unsigned int i2c1_c_pins[] = {
  2184. /* SCL, SDA */
  2185. RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 15),
  2186. };
  2187. static const unsigned int i2c1_c_mux[] = {
  2188. SCL1_C_MARK, SDA1_C_MARK,
  2189. };
  2190. static const unsigned int i2c1_d_pins[] = {
  2191. /* SCL, SDA */
  2192. RCAR_GP_PIN(4, 25), RCAR_GP_PIN(4, 26),
  2193. };
  2194. static const unsigned int i2c1_d_mux[] = {
  2195. SCL1_D_MARK, SDA1_D_MARK,
  2196. };
  2197. static const unsigned int i2c1_e_pins[] = {
  2198. /* SCL, SDA */
  2199. RCAR_GP_PIN(7, 15), RCAR_GP_PIN(7, 16),
  2200. };
  2201. static const unsigned int i2c1_e_mux[] = {
  2202. SCL1_E_MARK, SDA1_E_MARK,
  2203. };
  2204. /* - I2C2 ------------------------------------------------------------------- */
  2205. static const unsigned int i2c2_pins[] = {
  2206. /* SCL, SDA */
  2207. RCAR_GP_PIN(2, 6), RCAR_GP_PIN(2, 7),
  2208. };
  2209. static const unsigned int i2c2_mux[] = {
  2210. SCL2_MARK, SDA2_MARK,
  2211. };
  2212. static const unsigned int i2c2_b_pins[] = {
  2213. /* SCL, SDA */
  2214. RCAR_GP_PIN(3, 26), RCAR_GP_PIN(3, 29),
  2215. };
  2216. static const unsigned int i2c2_b_mux[] = {
  2217. SCL2_B_MARK, SDA2_B_MARK,
  2218. };
  2219. static const unsigned int i2c2_c_pins[] = {
  2220. /* SCL, SDA */
  2221. RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 14),
  2222. };
  2223. static const unsigned int i2c2_c_mux[] = {
  2224. SCL2_C_MARK, SDA2_C_MARK,
  2225. };
  2226. static const unsigned int i2c2_d_pins[] = {
  2227. /* SCL, SDA */
  2228. RCAR_GP_PIN(5, 17), RCAR_GP_PIN(5, 18),
  2229. };
  2230. static const unsigned int i2c2_d_mux[] = {
  2231. SCL2_D_MARK, SDA2_D_MARK,
  2232. };
  2233. /* - I2C3 ------------------------------------------------------------------- */
  2234. static const unsigned int i2c3_pins[] = {
  2235. /* SCL, SDA */
  2236. RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 16),
  2237. };
  2238. static const unsigned int i2c3_mux[] = {
  2239. SCL3_MARK, SDA3_MARK,
  2240. };
  2241. static const unsigned int i2c3_b_pins[] = {
  2242. /* SCL, SDA */
  2243. RCAR_GP_PIN(4, 15), RCAR_GP_PIN(4, 16),
  2244. };
  2245. static const unsigned int i2c3_b_mux[] = {
  2246. SCL3_B_MARK, SDA3_B_MARK,
  2247. };
  2248. static const unsigned int i2c3_c_pins[] = {
  2249. /* SCL, SDA */
  2250. RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 23),
  2251. };
  2252. static const unsigned int i2c3_c_mux[] = {
  2253. SCL3_C_MARK, SDA3_C_MARK,
  2254. };
  2255. static const unsigned int i2c3_d_pins[] = {
  2256. /* SCL, SDA */
  2257. RCAR_GP_PIN(0, 27), RCAR_GP_PIN(0, 28),
  2258. };
  2259. static const unsigned int i2c3_d_mux[] = {
  2260. SCL3_D_MARK, SDA3_D_MARK,
  2261. };
  2262. /* - I2C4 ------------------------------------------------------------------- */
  2263. static const unsigned int i2c4_pins[] = {
  2264. /* SCL, SDA */
  2265. RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 14),
  2266. };
  2267. static const unsigned int i2c4_mux[] = {
  2268. SCL4_MARK, SDA4_MARK,
  2269. };
  2270. static const unsigned int i2c4_b_pins[] = {
  2271. /* SCL, SDA */
  2272. RCAR_GP_PIN(4, 27), RCAR_GP_PIN(4, 28),
  2273. };
  2274. static const unsigned int i2c4_b_mux[] = {
  2275. SCL4_B_MARK, SDA4_B_MARK,
  2276. };
  2277. static const unsigned int i2c4_c_pins[] = {
  2278. /* SCL, SDA */
  2279. RCAR_GP_PIN(7, 13), RCAR_GP_PIN(7, 14),
  2280. };
  2281. static const unsigned int i2c4_c_mux[] = {
  2282. SCL4_C_MARK, SDA4_C_MARK,
  2283. };
  2284. /* - I2C7 ------------------------------------------------------------------- */
  2285. static const unsigned int i2c7_pins[] = {
  2286. /* SCL, SDA */
  2287. RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 16),
  2288. };
  2289. static const unsigned int i2c7_mux[] = {
  2290. SCL7_MARK, SDA7_MARK,
  2291. };
  2292. static const unsigned int i2c7_b_pins[] = {
  2293. /* SCL, SDA */
  2294. RCAR_GP_PIN(2, 2), RCAR_GP_PIN(2, 3),
  2295. };
  2296. static const unsigned int i2c7_b_mux[] = {
  2297. SCL7_B_MARK, SDA7_B_MARK,
  2298. };
  2299. static const unsigned int i2c7_c_pins[] = {
  2300. /* SCL, SDA */
  2301. RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29),
  2302. };
  2303. static const unsigned int i2c7_c_mux[] = {
  2304. SCL7_C_MARK, SDA7_C_MARK,
  2305. };
  2306. /* - I2C8 ------------------------------------------------------------------- */
  2307. static const unsigned int i2c8_pins[] = {
  2308. /* SCL, SDA */
  2309. RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 14),
  2310. };
  2311. static const unsigned int i2c8_mux[] = {
  2312. SCL8_MARK, SDA8_MARK,
  2313. };
  2314. static const unsigned int i2c8_b_pins[] = {
  2315. /* SCL, SDA */
  2316. RCAR_GP_PIN(2, 4), RCAR_GP_PIN(2, 5),
  2317. };
  2318. static const unsigned int i2c8_b_mux[] = {
  2319. SCL8_B_MARK, SDA8_B_MARK,
  2320. };
  2321. static const unsigned int i2c8_c_pins[] = {
  2322. /* SCL, SDA */
  2323. RCAR_GP_PIN(6, 22), RCAR_GP_PIN(6, 23),
  2324. };
  2325. static const unsigned int i2c8_c_mux[] = {
  2326. SCL8_C_MARK, SDA8_C_MARK,
  2327. };
  2328. /* - INTC ------------------------------------------------------------------- */
  2329. static const unsigned int intc_irq0_pins[] = {
  2330. /* IRQ */
  2331. RCAR_GP_PIN(7, 10),
  2332. };
  2333. static const unsigned int intc_irq0_mux[] = {
  2334. IRQ0_MARK,
  2335. };
  2336. static const unsigned int intc_irq1_pins[] = {
  2337. /* IRQ */
  2338. RCAR_GP_PIN(7, 11),
  2339. };
  2340. static const unsigned int intc_irq1_mux[] = {
  2341. IRQ1_MARK,
  2342. };
  2343. static const unsigned int intc_irq2_pins[] = {
  2344. /* IRQ */
  2345. RCAR_GP_PIN(7, 12),
  2346. };
  2347. static const unsigned int intc_irq2_mux[] = {
  2348. IRQ2_MARK,
  2349. };
  2350. static const unsigned int intc_irq3_pins[] = {
  2351. /* IRQ */
  2352. RCAR_GP_PIN(7, 13),
  2353. };
  2354. static const unsigned int intc_irq3_mux[] = {
  2355. IRQ3_MARK,
  2356. };
  2357. /* - MLB+ ------------------------------------------------------------------- */
  2358. static const unsigned int mlb_3pin_pins[] = {
  2359. RCAR_GP_PIN(7, 7), RCAR_GP_PIN(7, 8), RCAR_GP_PIN(7, 9),
  2360. };
  2361. static const unsigned int mlb_3pin_mux[] = {
  2362. MLB_CLK_MARK, MLB_SIG_MARK, MLB_DAT_MARK,
  2363. };
  2364. /* - MMCIF ------------------------------------------------------------------ */
  2365. static const unsigned int mmc_data1_pins[] = {
  2366. /* D[0] */
  2367. RCAR_GP_PIN(6, 18),
  2368. };
  2369. static const unsigned int mmc_data1_mux[] = {
  2370. MMC_D0_MARK,
  2371. };
  2372. static const unsigned int mmc_data4_pins[] = {
  2373. /* D[0:3] */
  2374. RCAR_GP_PIN(6, 18), RCAR_GP_PIN(6, 19),
  2375. RCAR_GP_PIN(6, 20), RCAR_GP_PIN(6, 21),
  2376. };
  2377. static const unsigned int mmc_data4_mux[] = {
  2378. MMC_D0_MARK, MMC_D1_MARK, MMC_D2_MARK, MMC_D3_MARK,
  2379. };
  2380. static const unsigned int mmc_data8_pins[] = {
  2381. /* D[0:7] */
  2382. RCAR_GP_PIN(6, 18), RCAR_GP_PIN(6, 19),
  2383. RCAR_GP_PIN(6, 20), RCAR_GP_PIN(6, 21),
  2384. RCAR_GP_PIN(6, 22), RCAR_GP_PIN(6, 23),
  2385. RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29),
  2386. };
  2387. static const unsigned int mmc_data8_mux[] = {
  2388. MMC_D0_MARK, MMC_D1_MARK, MMC_D2_MARK, MMC_D3_MARK,
  2389. MMC_D4_MARK, MMC_D5_MARK, MMC_D6_MARK, MMC_D7_MARK,
  2390. };
  2391. static const unsigned int mmc_ctrl_pins[] = {
  2392. /* CLK, CMD */
  2393. RCAR_GP_PIN(6, 16), RCAR_GP_PIN(6, 17),
  2394. };
  2395. static const unsigned int mmc_ctrl_mux[] = {
  2396. MMC_CLK_MARK, MMC_CMD_MARK,
  2397. };
  2398. /* - MSIOF0 ----------------------------------------------------------------- */
  2399. static const unsigned int msiof0_clk_pins[] = {
  2400. /* SCK */
  2401. RCAR_GP_PIN(6, 24),
  2402. };
  2403. static const unsigned int msiof0_clk_mux[] = {
  2404. MSIOF0_SCK_MARK,
  2405. };
  2406. static const unsigned int msiof0_sync_pins[] = {
  2407. /* SYNC */
  2408. RCAR_GP_PIN(6, 25),
  2409. };
  2410. static const unsigned int msiof0_sync_mux[] = {
  2411. MSIOF0_SYNC_MARK,
  2412. };
  2413. static const unsigned int msiof0_ss1_pins[] = {
  2414. /* SS1 */
  2415. RCAR_GP_PIN(6, 28),
  2416. };
  2417. static const unsigned int msiof0_ss1_mux[] = {
  2418. MSIOF0_SS1_MARK,
  2419. };
  2420. static const unsigned int msiof0_ss2_pins[] = {
  2421. /* SS2 */
  2422. RCAR_GP_PIN(6, 29),
  2423. };
  2424. static const unsigned int msiof0_ss2_mux[] = {
  2425. MSIOF0_SS2_MARK,
  2426. };
  2427. static const unsigned int msiof0_rx_pins[] = {
  2428. /* RXD */
  2429. RCAR_GP_PIN(6, 27),
  2430. };
  2431. static const unsigned int msiof0_rx_mux[] = {
  2432. MSIOF0_RXD_MARK,
  2433. };
  2434. static const unsigned int msiof0_tx_pins[] = {
  2435. /* TXD */
  2436. RCAR_GP_PIN(6, 26),
  2437. };
  2438. static const unsigned int msiof0_tx_mux[] = {
  2439. MSIOF0_TXD_MARK,
  2440. };
  2441. static const unsigned int msiof0_clk_b_pins[] = {
  2442. /* SCK */
  2443. RCAR_GP_PIN(0, 16),
  2444. };
  2445. static const unsigned int msiof0_clk_b_mux[] = {
  2446. MSIOF0_SCK_B_MARK,
  2447. };
  2448. static const unsigned int msiof0_sync_b_pins[] = {
  2449. /* SYNC */
  2450. RCAR_GP_PIN(0, 17),
  2451. };
  2452. static const unsigned int msiof0_sync_b_mux[] = {
  2453. MSIOF0_SYNC_B_MARK,
  2454. };
  2455. static const unsigned int msiof0_ss1_b_pins[] = {
  2456. /* SS1 */
  2457. RCAR_GP_PIN(0, 18),
  2458. };
  2459. static const unsigned int msiof0_ss1_b_mux[] = {
  2460. MSIOF0_SS1_B_MARK,
  2461. };
  2462. static const unsigned int msiof0_ss2_b_pins[] = {
  2463. /* SS2 */
  2464. RCAR_GP_PIN(0, 19),
  2465. };
  2466. static const unsigned int msiof0_ss2_b_mux[] = {
  2467. MSIOF0_SS2_B_MARK,
  2468. };
  2469. static const unsigned int msiof0_rx_b_pins[] = {
  2470. /* RXD */
  2471. RCAR_GP_PIN(0, 21),
  2472. };
  2473. static const unsigned int msiof0_rx_b_mux[] = {
  2474. MSIOF0_RXD_B_MARK,
  2475. };
  2476. static const unsigned int msiof0_tx_b_pins[] = {
  2477. /* TXD */
  2478. RCAR_GP_PIN(0, 20),
  2479. };
  2480. static const unsigned int msiof0_tx_b_mux[] = {
  2481. MSIOF0_TXD_B_MARK,
  2482. };
  2483. static const unsigned int msiof0_clk_c_pins[] = {
  2484. /* SCK */
  2485. RCAR_GP_PIN(5, 26),
  2486. };
  2487. static const unsigned int msiof0_clk_c_mux[] = {
  2488. MSIOF0_SCK_C_MARK,
  2489. };
  2490. static const unsigned int msiof0_sync_c_pins[] = {
  2491. /* SYNC */
  2492. RCAR_GP_PIN(5, 25),
  2493. };
  2494. static const unsigned int msiof0_sync_c_mux[] = {
  2495. MSIOF0_SYNC_C_MARK,
  2496. };
  2497. static const unsigned int msiof0_ss1_c_pins[] = {
  2498. /* SS1 */
  2499. RCAR_GP_PIN(5, 27),
  2500. };
  2501. static const unsigned int msiof0_ss1_c_mux[] = {
  2502. MSIOF0_SS1_C_MARK,
  2503. };
  2504. static const unsigned int msiof0_ss2_c_pins[] = {
  2505. /* SS2 */
  2506. RCAR_GP_PIN(5, 28),
  2507. };
  2508. static const unsigned int msiof0_ss2_c_mux[] = {
  2509. MSIOF0_SS2_C_MARK,
  2510. };
  2511. static const unsigned int msiof0_rx_c_pins[] = {
  2512. /* RXD */
  2513. RCAR_GP_PIN(5, 29),
  2514. };
  2515. static const unsigned int msiof0_rx_c_mux[] = {
  2516. MSIOF0_RXD_C_MARK,
  2517. };
  2518. static const unsigned int msiof0_tx_c_pins[] = {
  2519. /* TXD */
  2520. RCAR_GP_PIN(5, 30),
  2521. };
  2522. static const unsigned int msiof0_tx_c_mux[] = {
  2523. MSIOF0_TXD_C_MARK,
  2524. };
  2525. /* - MSIOF1 ----------------------------------------------------------------- */
  2526. static const unsigned int msiof1_clk_pins[] = {
  2527. /* SCK */
  2528. RCAR_GP_PIN(0, 22),
  2529. };
  2530. static const unsigned int msiof1_clk_mux[] = {
  2531. MSIOF1_SCK_MARK,
  2532. };
  2533. static const unsigned int msiof1_sync_pins[] = {
  2534. /* SYNC */
  2535. RCAR_GP_PIN(0, 23),
  2536. };
  2537. static const unsigned int msiof1_sync_mux[] = {
  2538. MSIOF1_SYNC_MARK,
  2539. };
  2540. static const unsigned int msiof1_ss1_pins[] = {
  2541. /* SS1 */
  2542. RCAR_GP_PIN(0, 24),
  2543. };
  2544. static const unsigned int msiof1_ss1_mux[] = {
  2545. MSIOF1_SS1_MARK,
  2546. };
  2547. static const unsigned int msiof1_ss2_pins[] = {
  2548. /* SS2 */
  2549. RCAR_GP_PIN(0, 25),
  2550. };
  2551. static const unsigned int msiof1_ss2_mux[] = {
  2552. MSIOF1_SS2_MARK,
  2553. };
  2554. static const unsigned int msiof1_rx_pins[] = {
  2555. /* RXD */
  2556. RCAR_GP_PIN(0, 27),
  2557. };
  2558. static const unsigned int msiof1_rx_mux[] = {
  2559. MSIOF1_RXD_MARK,
  2560. };
  2561. static const unsigned int msiof1_tx_pins[] = {
  2562. /* TXD */
  2563. RCAR_GP_PIN(0, 26),
  2564. };
  2565. static const unsigned int msiof1_tx_mux[] = {
  2566. MSIOF1_TXD_MARK,
  2567. };
  2568. static const unsigned int msiof1_clk_b_pins[] = {
  2569. /* SCK */
  2570. RCAR_GP_PIN(2, 29),
  2571. };
  2572. static const unsigned int msiof1_clk_b_mux[] = {
  2573. MSIOF1_SCK_B_MARK,
  2574. };
  2575. static const unsigned int msiof1_sync_b_pins[] = {
  2576. /* SYNC */
  2577. RCAR_GP_PIN(2, 30),
  2578. };
  2579. static const unsigned int msiof1_sync_b_mux[] = {
  2580. MSIOF1_SYNC_B_MARK,
  2581. };
  2582. static const unsigned int msiof1_ss1_b_pins[] = {
  2583. /* SS1 */
  2584. RCAR_GP_PIN(2, 31),
  2585. };
  2586. static const unsigned int msiof1_ss1_b_mux[] = {
  2587. MSIOF1_SS1_B_MARK,
  2588. };
  2589. static const unsigned int msiof1_ss2_b_pins[] = {
  2590. /* SS2 */
  2591. RCAR_GP_PIN(7, 16),
  2592. };
  2593. static const unsigned int msiof1_ss2_b_mux[] = {
  2594. MSIOF1_SS2_B_MARK,
  2595. };
  2596. static const unsigned int msiof1_rx_b_pins[] = {
  2597. /* RXD */
  2598. RCAR_GP_PIN(7, 18),
  2599. };
  2600. static const unsigned int msiof1_rx_b_mux[] = {
  2601. MSIOF1_RXD_B_MARK,
  2602. };
  2603. static const unsigned int msiof1_tx_b_pins[] = {
  2604. /* TXD */
  2605. RCAR_GP_PIN(7, 17),
  2606. };
  2607. static const unsigned int msiof1_tx_b_mux[] = {
  2608. MSIOF1_TXD_B_MARK,
  2609. };
  2610. static const unsigned int msiof1_clk_c_pins[] = {
  2611. /* SCK */
  2612. RCAR_GP_PIN(2, 15),
  2613. };
  2614. static const unsigned int msiof1_clk_c_mux[] = {
  2615. MSIOF1_SCK_C_MARK,
  2616. };
  2617. static const unsigned int msiof1_sync_c_pins[] = {
  2618. /* SYNC */
  2619. RCAR_GP_PIN(2, 16),
  2620. };
  2621. static const unsigned int msiof1_sync_c_mux[] = {
  2622. MSIOF1_SYNC_C_MARK,
  2623. };
  2624. static const unsigned int msiof1_rx_c_pins[] = {
  2625. /* RXD */
  2626. RCAR_GP_PIN(2, 18),
  2627. };
  2628. static const unsigned int msiof1_rx_c_mux[] = {
  2629. MSIOF1_RXD_C_MARK,
  2630. };
  2631. static const unsigned int msiof1_tx_c_pins[] = {
  2632. /* TXD */
  2633. RCAR_GP_PIN(2, 17),
  2634. };
  2635. static const unsigned int msiof1_tx_c_mux[] = {
  2636. MSIOF1_TXD_C_MARK,
  2637. };
  2638. static const unsigned int msiof1_clk_d_pins[] = {
  2639. /* SCK */
  2640. RCAR_GP_PIN(0, 28),
  2641. };
  2642. static const unsigned int msiof1_clk_d_mux[] = {
  2643. MSIOF1_SCK_D_MARK,
  2644. };
  2645. static const unsigned int msiof1_sync_d_pins[] = {
  2646. /* SYNC */
  2647. RCAR_GP_PIN(0, 30),
  2648. };
  2649. static const unsigned int msiof1_sync_d_mux[] = {
  2650. MSIOF1_SYNC_D_MARK,
  2651. };
  2652. static const unsigned int msiof1_ss1_d_pins[] = {
  2653. /* SS1 */
  2654. RCAR_GP_PIN(0, 29),
  2655. };
  2656. static const unsigned int msiof1_ss1_d_mux[] = {
  2657. MSIOF1_SS1_D_MARK,
  2658. };
  2659. static const unsigned int msiof1_rx_d_pins[] = {
  2660. /* RXD */
  2661. RCAR_GP_PIN(0, 27),
  2662. };
  2663. static const unsigned int msiof1_rx_d_mux[] = {
  2664. MSIOF1_RXD_D_MARK,
  2665. };
  2666. static const unsigned int msiof1_tx_d_pins[] = {
  2667. /* TXD */
  2668. RCAR_GP_PIN(0, 26),
  2669. };
  2670. static const unsigned int msiof1_tx_d_mux[] = {
  2671. MSIOF1_TXD_D_MARK,
  2672. };
  2673. static const unsigned int msiof1_clk_e_pins[] = {
  2674. /* SCK */
  2675. RCAR_GP_PIN(5, 18),
  2676. };
  2677. static const unsigned int msiof1_clk_e_mux[] = {
  2678. MSIOF1_SCK_E_MARK,
  2679. };
  2680. static const unsigned int msiof1_sync_e_pins[] = {
  2681. /* SYNC */
  2682. RCAR_GP_PIN(5, 19),
  2683. };
  2684. static const unsigned int msiof1_sync_e_mux[] = {
  2685. MSIOF1_SYNC_E_MARK,
  2686. };
  2687. static const unsigned int msiof1_rx_e_pins[] = {
  2688. /* RXD */
  2689. RCAR_GP_PIN(5, 17),
  2690. };
  2691. static const unsigned int msiof1_rx_e_mux[] = {
  2692. MSIOF1_RXD_E_MARK,
  2693. };
  2694. static const unsigned int msiof1_tx_e_pins[] = {
  2695. /* TXD */
  2696. RCAR_GP_PIN(5, 20),
  2697. };
  2698. static const unsigned int msiof1_tx_e_mux[] = {
  2699. MSIOF1_TXD_E_MARK,
  2700. };
  2701. /* - MSIOF2 ----------------------------------------------------------------- */
  2702. static const unsigned int msiof2_clk_pins[] = {
  2703. /* SCK */
  2704. RCAR_GP_PIN(1, 13),
  2705. };
  2706. static const unsigned int msiof2_clk_mux[] = {
  2707. MSIOF2_SCK_MARK,
  2708. };
  2709. static const unsigned int msiof2_sync_pins[] = {
  2710. /* SYNC */
  2711. RCAR_GP_PIN(1, 14),
  2712. };
  2713. static const unsigned int msiof2_sync_mux[] = {
  2714. MSIOF2_SYNC_MARK,
  2715. };
  2716. static const unsigned int msiof2_ss1_pins[] = {
  2717. /* SS1 */
  2718. RCAR_GP_PIN(1, 17),
  2719. };
  2720. static const unsigned int msiof2_ss1_mux[] = {
  2721. MSIOF2_SS1_MARK,
  2722. };
  2723. static const unsigned int msiof2_ss2_pins[] = {
  2724. /* SS2 */
  2725. RCAR_GP_PIN(1, 18),
  2726. };
  2727. static const unsigned int msiof2_ss2_mux[] = {
  2728. MSIOF2_SS2_MARK,
  2729. };
  2730. static const unsigned int msiof2_rx_pins[] = {
  2731. /* RXD */
  2732. RCAR_GP_PIN(1, 16),
  2733. };
  2734. static const unsigned int msiof2_rx_mux[] = {
  2735. MSIOF2_RXD_MARK,
  2736. };
  2737. static const unsigned int msiof2_tx_pins[] = {
  2738. /* TXD */
  2739. RCAR_GP_PIN(1, 15),
  2740. };
  2741. static const unsigned int msiof2_tx_mux[] = {
  2742. MSIOF2_TXD_MARK,
  2743. };
  2744. static const unsigned int msiof2_clk_b_pins[] = {
  2745. /* SCK */
  2746. RCAR_GP_PIN(3, 0),
  2747. };
  2748. static const unsigned int msiof2_clk_b_mux[] = {
  2749. MSIOF2_SCK_B_MARK,
  2750. };
  2751. static const unsigned int msiof2_sync_b_pins[] = {
  2752. /* SYNC */
  2753. RCAR_GP_PIN(3, 1),
  2754. };
  2755. static const unsigned int msiof2_sync_b_mux[] = {
  2756. MSIOF2_SYNC_B_MARK,
  2757. };
  2758. static const unsigned int msiof2_ss1_b_pins[] = {
  2759. /* SS1 */
  2760. RCAR_GP_PIN(3, 8),
  2761. };
  2762. static const unsigned int msiof2_ss1_b_mux[] = {
  2763. MSIOF2_SS1_B_MARK,
  2764. };
  2765. static const unsigned int msiof2_ss2_b_pins[] = {
  2766. /* SS2 */
  2767. RCAR_GP_PIN(3, 9),
  2768. };
  2769. static const unsigned int msiof2_ss2_b_mux[] = {
  2770. MSIOF2_SS2_B_MARK,
  2771. };
  2772. static const unsigned int msiof2_rx_b_pins[] = {
  2773. /* RXD */
  2774. RCAR_GP_PIN(3, 17),
  2775. };
  2776. static const unsigned int msiof2_rx_b_mux[] = {
  2777. MSIOF2_RXD_B_MARK,
  2778. };
  2779. static const unsigned int msiof2_tx_b_pins[] = {
  2780. /* TXD */
  2781. RCAR_GP_PIN(3, 16),
  2782. };
  2783. static const unsigned int msiof2_tx_b_mux[] = {
  2784. MSIOF2_TXD_B_MARK,
  2785. };
  2786. static const unsigned int msiof2_clk_c_pins[] = {
  2787. /* SCK */
  2788. RCAR_GP_PIN(2, 2),
  2789. };
  2790. static const unsigned int msiof2_clk_c_mux[] = {
  2791. MSIOF2_SCK_C_MARK,
  2792. };
  2793. static const unsigned int msiof2_sync_c_pins[] = {
  2794. /* SYNC */
  2795. RCAR_GP_PIN(2, 3),
  2796. };
  2797. static const unsigned int msiof2_sync_c_mux[] = {
  2798. MSIOF2_SYNC_C_MARK,
  2799. };
  2800. static const unsigned int msiof2_rx_c_pins[] = {
  2801. /* RXD */
  2802. RCAR_GP_PIN(2, 5),
  2803. };
  2804. static const unsigned int msiof2_rx_c_mux[] = {
  2805. MSIOF2_RXD_C_MARK,
  2806. };
  2807. static const unsigned int msiof2_tx_c_pins[] = {
  2808. /* TXD */
  2809. RCAR_GP_PIN(2, 4),
  2810. };
  2811. static const unsigned int msiof2_tx_c_mux[] = {
  2812. MSIOF2_TXD_C_MARK,
  2813. };
  2814. static const unsigned int msiof2_clk_d_pins[] = {
  2815. /* SCK */
  2816. RCAR_GP_PIN(2, 14),
  2817. };
  2818. static const unsigned int msiof2_clk_d_mux[] = {
  2819. MSIOF2_SCK_D_MARK,
  2820. };
  2821. static const unsigned int msiof2_sync_d_pins[] = {
  2822. /* SYNC */
  2823. RCAR_GP_PIN(2, 15),
  2824. };
  2825. static const unsigned int msiof2_sync_d_mux[] = {
  2826. MSIOF2_SYNC_D_MARK,
  2827. };
  2828. static const unsigned int msiof2_ss1_d_pins[] = {
  2829. /* SS1 */
  2830. RCAR_GP_PIN(2, 17),
  2831. };
  2832. static const unsigned int msiof2_ss1_d_mux[] = {
  2833. MSIOF2_SS1_D_MARK,
  2834. };
  2835. static const unsigned int msiof2_ss2_d_pins[] = {
  2836. /* SS2 */
  2837. RCAR_GP_PIN(2, 19),
  2838. };
  2839. static const unsigned int msiof2_ss2_d_mux[] = {
  2840. MSIOF2_SS2_D_MARK,
  2841. };
  2842. static const unsigned int msiof2_rx_d_pins[] = {
  2843. /* RXD */
  2844. RCAR_GP_PIN(2, 18),
  2845. };
  2846. static const unsigned int msiof2_rx_d_mux[] = {
  2847. MSIOF2_RXD_D_MARK,
  2848. };
  2849. static const unsigned int msiof2_tx_d_pins[] = {
  2850. /* TXD */
  2851. RCAR_GP_PIN(2, 16),
  2852. };
  2853. static const unsigned int msiof2_tx_d_mux[] = {
  2854. MSIOF2_TXD_D_MARK,
  2855. };
  2856. static const unsigned int msiof2_clk_e_pins[] = {
  2857. /* SCK */
  2858. RCAR_GP_PIN(7, 15),
  2859. };
  2860. static const unsigned int msiof2_clk_e_mux[] = {
  2861. MSIOF2_SCK_E_MARK,
  2862. };
  2863. static const unsigned int msiof2_sync_e_pins[] = {
  2864. /* SYNC */
  2865. RCAR_GP_PIN(7, 16),
  2866. };
  2867. static const unsigned int msiof2_sync_e_mux[] = {
  2868. MSIOF2_SYNC_E_MARK,
  2869. };
  2870. static const unsigned int msiof2_rx_e_pins[] = {
  2871. /* RXD */
  2872. RCAR_GP_PIN(7, 14),
  2873. };
  2874. static const unsigned int msiof2_rx_e_mux[] = {
  2875. MSIOF2_RXD_E_MARK,
  2876. };
  2877. static const unsigned int msiof2_tx_e_pins[] = {
  2878. /* TXD */
  2879. RCAR_GP_PIN(7, 13),
  2880. };
  2881. static const unsigned int msiof2_tx_e_mux[] = {
  2882. MSIOF2_TXD_E_MARK,
  2883. };
  2884. /* - PWM -------------------------------------------------------------------- */
  2885. static const unsigned int pwm0_pins[] = {
  2886. RCAR_GP_PIN(6, 14),
  2887. };
  2888. static const unsigned int pwm0_mux[] = {
  2889. PWM0_MARK,
  2890. };
  2891. static const unsigned int pwm0_b_pins[] = {
  2892. RCAR_GP_PIN(5, 30),
  2893. };
  2894. static const unsigned int pwm0_b_mux[] = {
  2895. PWM0_B_MARK,
  2896. };
  2897. static const unsigned int pwm1_pins[] = {
  2898. RCAR_GP_PIN(1, 17),
  2899. };
  2900. static const unsigned int pwm1_mux[] = {
  2901. PWM1_MARK,
  2902. };
  2903. static const unsigned int pwm1_b_pins[] = {
  2904. RCAR_GP_PIN(6, 15),
  2905. };
  2906. static const unsigned int pwm1_b_mux[] = {
  2907. PWM1_B_MARK,
  2908. };
  2909. static const unsigned int pwm2_pins[] = {
  2910. RCAR_GP_PIN(1, 18),
  2911. };
  2912. static const unsigned int pwm2_mux[] = {
  2913. PWM2_MARK,
  2914. };
  2915. static const unsigned int pwm2_b_pins[] = {
  2916. RCAR_GP_PIN(0, 16),
  2917. };
  2918. static const unsigned int pwm2_b_mux[] = {
  2919. PWM2_B_MARK,
  2920. };
  2921. static const unsigned int pwm3_pins[] = {
  2922. RCAR_GP_PIN(1, 24),
  2923. };
  2924. static const unsigned int pwm3_mux[] = {
  2925. PWM3_MARK,
  2926. };
  2927. static const unsigned int pwm4_pins[] = {
  2928. RCAR_GP_PIN(3, 26),
  2929. };
  2930. static const unsigned int pwm4_mux[] = {
  2931. PWM4_MARK,
  2932. };
  2933. static const unsigned int pwm4_b_pins[] = {
  2934. RCAR_GP_PIN(3, 31),
  2935. };
  2936. static const unsigned int pwm4_b_mux[] = {
  2937. PWM4_B_MARK,
  2938. };
  2939. static const unsigned int pwm5_pins[] = {
  2940. RCAR_GP_PIN(7, 21),
  2941. };
  2942. static const unsigned int pwm5_mux[] = {
  2943. PWM5_MARK,
  2944. };
  2945. static const unsigned int pwm5_b_pins[] = {
  2946. RCAR_GP_PIN(7, 20),
  2947. };
  2948. static const unsigned int pwm5_b_mux[] = {
  2949. PWM5_B_MARK,
  2950. };
  2951. static const unsigned int pwm6_pins[] = {
  2952. RCAR_GP_PIN(7, 22),
  2953. };
  2954. static const unsigned int pwm6_mux[] = {
  2955. PWM6_MARK,
  2956. };
  2957. /* - QSPI ------------------------------------------------------------------- */
  2958. static const unsigned int qspi_ctrl_pins[] = {
  2959. /* SPCLK, SSL */
  2960. RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 9),
  2961. };
  2962. static const unsigned int qspi_ctrl_mux[] = {
  2963. SPCLK_MARK, SSL_MARK,
  2964. };
  2965. static const unsigned int qspi_data2_pins[] = {
  2966. /* MOSI_IO0, MISO_IO1 */
  2967. RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 6),
  2968. };
  2969. static const unsigned int qspi_data2_mux[] = {
  2970. MOSI_IO0_MARK, MISO_IO1_MARK,
  2971. };
  2972. static const unsigned int qspi_data4_pins[] = {
  2973. /* MOSI_IO0, MISO_IO1, IO2, IO3 */
  2974. RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
  2975. RCAR_GP_PIN(1, 8),
  2976. };
  2977. static const unsigned int qspi_data4_mux[] = {
  2978. MOSI_IO0_MARK, MISO_IO1_MARK, IO2_MARK, IO3_MARK,
  2979. };
  2980. static const unsigned int qspi_ctrl_b_pins[] = {
  2981. /* SPCLK, SSL */
  2982. RCAR_GP_PIN(6, 0), RCAR_GP_PIN(6, 5),
  2983. };
  2984. static const unsigned int qspi_ctrl_b_mux[] = {
  2985. SPCLK_B_MARK, SSL_B_MARK,
  2986. };
  2987. static const unsigned int qspi_data2_b_pins[] = {
  2988. /* MOSI_IO0, MISO_IO1 */
  2989. RCAR_GP_PIN(6, 1), RCAR_GP_PIN(6, 2),
  2990. };
  2991. static const unsigned int qspi_data2_b_mux[] = {
  2992. MOSI_IO0_B_MARK, MISO_IO1_B_MARK,
  2993. };
  2994. static const unsigned int qspi_data4_b_pins[] = {
  2995. /* MOSI_IO0, MISO_IO1, IO2, IO3 */
  2996. RCAR_GP_PIN(6, 1), RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 3),
  2997. RCAR_GP_PIN(6, 4),
  2998. };
  2999. static const unsigned int qspi_data4_b_mux[] = {
  3000. SPCLK_B_MARK, MOSI_IO0_B_MARK, MISO_IO1_B_MARK,
  3001. IO2_B_MARK, IO3_B_MARK, SSL_B_MARK,
  3002. };
  3003. /* - SCIF0 ------------------------------------------------------------------ */
  3004. static const unsigned int scif0_data_pins[] = {
  3005. /* RX, TX */
  3006. RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
  3007. };
  3008. static const unsigned int scif0_data_mux[] = {
  3009. RX0_MARK, TX0_MARK,
  3010. };
  3011. static const unsigned int scif0_data_b_pins[] = {
  3012. /* RX, TX */
  3013. RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 0),
  3014. };
  3015. static const unsigned int scif0_data_b_mux[] = {
  3016. RX0_B_MARK, TX0_B_MARK,
  3017. };
  3018. static const unsigned int scif0_data_c_pins[] = {
  3019. /* RX, TX */
  3020. RCAR_GP_PIN(4, 26), RCAR_GP_PIN(4, 25),
  3021. };
  3022. static const unsigned int scif0_data_c_mux[] = {
  3023. RX0_C_MARK, TX0_C_MARK,
  3024. };
  3025. static const unsigned int scif0_data_d_pins[] = {
  3026. /* RX, TX */
  3027. RCAR_GP_PIN(2, 23), RCAR_GP_PIN(2, 22),
  3028. };
  3029. static const unsigned int scif0_data_d_mux[] = {
  3030. RX0_D_MARK, TX0_D_MARK,
  3031. };
  3032. static const unsigned int scif0_data_e_pins[] = {
  3033. /* RX, TX */
  3034. RCAR_GP_PIN(6, 29), RCAR_GP_PIN(6, 28),
  3035. };
  3036. static const unsigned int scif0_data_e_mux[] = {
  3037. RX0_E_MARK, TX0_E_MARK,
  3038. };
  3039. /* - SCIF1 ------------------------------------------------------------------ */
  3040. static const unsigned int scif1_data_pins[] = {
  3041. /* RX, TX */
  3042. RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8),
  3043. };
  3044. static const unsigned int scif1_data_mux[] = {
  3045. RX1_MARK, TX1_MARK,
  3046. };
  3047. static const unsigned int scif1_data_b_pins[] = {
  3048. /* RX, TX */
  3049. RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 8),
  3050. };
  3051. static const unsigned int scif1_data_b_mux[] = {
  3052. RX1_B_MARK, TX1_B_MARK,
  3053. };
  3054. static const unsigned int scif1_clk_b_pins[] = {
  3055. /* SCK */
  3056. RCAR_GP_PIN(3, 10),
  3057. };
  3058. static const unsigned int scif1_clk_b_mux[] = {
  3059. SCIF1_SCK_B_MARK,
  3060. };
  3061. static const unsigned int scif1_data_c_pins[] = {
  3062. /* RX, TX */
  3063. RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 27),
  3064. };
  3065. static const unsigned int scif1_data_c_mux[] = {
  3066. RX1_C_MARK, TX1_C_MARK,
  3067. };
  3068. static const unsigned int scif1_data_d_pins[] = {
  3069. /* RX, TX */
  3070. RCAR_GP_PIN(2, 25), RCAR_GP_PIN(2, 24),
  3071. };
  3072. static const unsigned int scif1_data_d_mux[] = {
  3073. RX1_D_MARK, TX1_D_MARK,
  3074. };
  3075. /* - SCIF2 ------------------------------------------------------------------ */
  3076. static const unsigned int scif2_data_pins[] = {
  3077. /* RX, TX */
  3078. RCAR_GP_PIN(2, 30), RCAR_GP_PIN(2, 31),
  3079. };
  3080. static const unsigned int scif2_data_mux[] = {
  3081. RX2_MARK, TX2_MARK,
  3082. };
  3083. static const unsigned int scif2_data_b_pins[] = {
  3084. /* RX, TX */
  3085. RCAR_GP_PIN(3, 17), RCAR_GP_PIN(3, 16),
  3086. };
  3087. static const unsigned int scif2_data_b_mux[] = {
  3088. RX2_B_MARK, TX2_B_MARK,
  3089. };
  3090. static const unsigned int scif2_clk_b_pins[] = {
  3091. /* SCK */
  3092. RCAR_GP_PIN(3, 18),
  3093. };
  3094. static const unsigned int scif2_clk_b_mux[] = {
  3095. SCIF2_SCK_B_MARK,
  3096. };
  3097. static const unsigned int scif2_data_c_pins[] = {
  3098. /* RX, TX */
  3099. RCAR_GP_PIN(6, 24), RCAR_GP_PIN(6, 25),
  3100. };
  3101. static const unsigned int scif2_data_c_mux[] = {
  3102. RX2_C_MARK, TX2_C_MARK,
  3103. };
  3104. static const unsigned int scif2_data_e_pins[] = {
  3105. /* RX, TX */
  3106. RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8),
  3107. };
  3108. static const unsigned int scif2_data_e_mux[] = {
  3109. RX2_E_MARK, TX2_E_MARK,
  3110. };
  3111. /* - SCIF3 ------------------------------------------------------------------ */
  3112. static const unsigned int scif3_data_pins[] = {
  3113. /* RX, TX */
  3114. RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 21),
  3115. };
  3116. static const unsigned int scif3_data_mux[] = {
  3117. RX3_MARK, TX3_MARK,
  3118. };
  3119. static const unsigned int scif3_clk_pins[] = {
  3120. /* SCK */
  3121. RCAR_GP_PIN(3, 23),
  3122. };
  3123. static const unsigned int scif3_clk_mux[] = {
  3124. SCIF3_SCK_MARK,
  3125. };
  3126. static const unsigned int scif3_data_b_pins[] = {
  3127. /* RX, TX */
  3128. RCAR_GP_PIN(3, 29), RCAR_GP_PIN(3, 26),
  3129. };
  3130. static const unsigned int scif3_data_b_mux[] = {
  3131. RX3_B_MARK, TX3_B_MARK,
  3132. };
  3133. static const unsigned int scif3_clk_b_pins[] = {
  3134. /* SCK */
  3135. RCAR_GP_PIN(4, 8),
  3136. };
  3137. static const unsigned int scif3_clk_b_mux[] = {
  3138. SCIF3_SCK_B_MARK,
  3139. };
  3140. static const unsigned int scif3_data_c_pins[] = {
  3141. /* RX, TX */
  3142. RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
  3143. };
  3144. static const unsigned int scif3_data_c_mux[] = {
  3145. RX3_C_MARK, TX3_C_MARK,
  3146. };
  3147. static const unsigned int scif3_data_d_pins[] = {
  3148. /* RX, TX */
  3149. RCAR_GP_PIN(2, 27), RCAR_GP_PIN(2, 26),
  3150. };
  3151. static const unsigned int scif3_data_d_mux[] = {
  3152. RX3_D_MARK, TX3_D_MARK,
  3153. };
  3154. /* - SCIF4 ------------------------------------------------------------------ */
  3155. static const unsigned int scif4_data_pins[] = {
  3156. /* RX, TX */
  3157. RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 1),
  3158. };
  3159. static const unsigned int scif4_data_mux[] = {
  3160. RX4_MARK, TX4_MARK,
  3161. };
  3162. static const unsigned int scif4_data_b_pins[] = {
  3163. /* RX, TX */
  3164. RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 0),
  3165. };
  3166. static const unsigned int scif4_data_b_mux[] = {
  3167. RX4_B_MARK, TX4_B_MARK,
  3168. };
  3169. static const unsigned int scif4_data_c_pins[] = {
  3170. /* RX, TX */
  3171. RCAR_GP_PIN(7, 22), RCAR_GP_PIN(7, 21),
  3172. };
  3173. static const unsigned int scif4_data_c_mux[] = {
  3174. RX4_C_MARK, TX4_C_MARK,
  3175. };
  3176. /* - SCIF5 ------------------------------------------------------------------ */
  3177. static const unsigned int scif5_data_pins[] = {
  3178. /* RX, TX */
  3179. RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 3),
  3180. };
  3181. static const unsigned int scif5_data_mux[] = {
  3182. RX5_MARK, TX5_MARK,
  3183. };
  3184. static const unsigned int scif5_data_b_pins[] = {
  3185. /* RX, TX */
  3186. RCAR_GP_PIN(6, 23), RCAR_GP_PIN(6, 22),
  3187. };
  3188. static const unsigned int scif5_data_b_mux[] = {
  3189. RX5_B_MARK, TX5_B_MARK,
  3190. };
  3191. /* - SCIFA0 ----------------------------------------------------------------- */
  3192. static const unsigned int scifa0_data_pins[] = {
  3193. /* RXD, TXD */
  3194. RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6),
  3195. };
  3196. static const unsigned int scifa0_data_mux[] = {
  3197. SCIFA0_RXD_MARK, SCIFA0_TXD_MARK,
  3198. };
  3199. static const unsigned int scifa0_data_b_pins[] = {
  3200. /* RXD, TXD */
  3201. RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 0),
  3202. };
  3203. static const unsigned int scifa0_data_b_mux[] = {
  3204. SCIFA0_RXD_B_MARK, SCIFA0_TXD_B_MARK
  3205. };
  3206. /* - SCIFA1 ----------------------------------------------------------------- */
  3207. static const unsigned int scifa1_data_pins[] = {
  3208. /* RXD, TXD */
  3209. RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8),
  3210. };
  3211. static const unsigned int scifa1_data_mux[] = {
  3212. SCIFA1_RXD_MARK, SCIFA1_TXD_MARK,
  3213. };
  3214. static const unsigned int scifa1_clk_pins[] = {
  3215. /* SCK */
  3216. RCAR_GP_PIN(3, 10),
  3217. };
  3218. static const unsigned int scifa1_clk_mux[] = {
  3219. SCIFA1_SCK_MARK,
  3220. };
  3221. static const unsigned int scifa1_data_b_pins[] = {
  3222. /* RXD, TXD */
  3223. RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 8),
  3224. };
  3225. static const unsigned int scifa1_data_b_mux[] = {
  3226. SCIFA1_RXD_B_MARK, SCIFA1_TXD_B_MARK,
  3227. };
  3228. static const unsigned int scifa1_clk_b_pins[] = {
  3229. /* SCK */
  3230. RCAR_GP_PIN(1, 0),
  3231. };
  3232. static const unsigned int scifa1_clk_b_mux[] = {
  3233. SCIFA1_SCK_B_MARK,
  3234. };
  3235. static const unsigned int scifa1_data_c_pins[] = {
  3236. /* RXD, TXD */
  3237. RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 3),
  3238. };
  3239. static const unsigned int scifa1_data_c_mux[] = {
  3240. SCIFA1_RXD_C_MARK, SCIFA1_TXD_C_MARK,
  3241. };
  3242. /* - SCIFA2 ----------------------------------------------------------------- */
  3243. static const unsigned int scifa2_data_pins[] = {
  3244. /* RXD, TXD */
  3245. RCAR_GP_PIN(2, 30), RCAR_GP_PIN(2, 31),
  3246. };
  3247. static const unsigned int scifa2_data_mux[] = {
  3248. SCIFA2_RXD_MARK, SCIFA2_TXD_MARK,
  3249. };
  3250. static const unsigned int scifa2_clk_pins[] = {
  3251. /* SCK */
  3252. RCAR_GP_PIN(3, 18),
  3253. };
  3254. static const unsigned int scifa2_clk_mux[] = {
  3255. SCIFA2_SCK_MARK,
  3256. };
  3257. static const unsigned int scifa2_data_b_pins[] = {
  3258. /* RXD, TXD */
  3259. RCAR_GP_PIN(3, 17), RCAR_GP_PIN(3, 16),
  3260. };
  3261. static const unsigned int scifa2_data_b_mux[] = {
  3262. SCIFA2_RXD_B_MARK, SCIFA2_TXD_B_MARK,
  3263. };
  3264. /* - SCIFA3 ----------------------------------------------------------------- */
  3265. static const unsigned int scifa3_data_pins[] = {
  3266. /* RXD, TXD */
  3267. RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 21),
  3268. };
  3269. static const unsigned int scifa3_data_mux[] = {
  3270. SCIFA3_RXD_MARK, SCIFA3_TXD_MARK,
  3271. };
  3272. static const unsigned int scifa3_clk_pins[] = {
  3273. /* SCK */
  3274. RCAR_GP_PIN(3, 23),
  3275. };
  3276. static const unsigned int scifa3_clk_mux[] = {
  3277. SCIFA3_SCK_MARK,
  3278. };
  3279. static const unsigned int scifa3_data_b_pins[] = {
  3280. /* RXD, TXD */
  3281. RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 20),
  3282. };
  3283. static const unsigned int scifa3_data_b_mux[] = {
  3284. SCIFA3_RXD_B_MARK, SCIFA3_TXD_B_MARK,
  3285. };
  3286. static const unsigned int scifa3_clk_b_pins[] = {
  3287. /* SCK */
  3288. RCAR_GP_PIN(4, 8),
  3289. };
  3290. static const unsigned int scifa3_clk_b_mux[] = {
  3291. SCIFA3_SCK_B_MARK,
  3292. };
  3293. static const unsigned int scifa3_data_c_pins[] = {
  3294. /* RXD, TXD */
  3295. RCAR_GP_PIN(7, 21), RCAR_GP_PIN(7, 20),
  3296. };
  3297. static const unsigned int scifa3_data_c_mux[] = {
  3298. SCIFA3_RXD_C_MARK, SCIFA3_TXD_C_MARK,
  3299. };
  3300. static const unsigned int scifa3_clk_c_pins[] = {
  3301. /* SCK */
  3302. RCAR_GP_PIN(7, 22),
  3303. };
  3304. static const unsigned int scifa3_clk_c_mux[] = {
  3305. SCIFA3_SCK_C_MARK,
  3306. };
  3307. /* - SCIFA4 ----------------------------------------------------------------- */
  3308. static const unsigned int scifa4_data_pins[] = {
  3309. /* RXD, TXD */
  3310. RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 1),
  3311. };
  3312. static const unsigned int scifa4_data_mux[] = {
  3313. SCIFA4_RXD_MARK, SCIFA4_TXD_MARK,
  3314. };
  3315. static const unsigned int scifa4_data_b_pins[] = {
  3316. /* RXD, TXD */
  3317. RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 0),
  3318. };
  3319. static const unsigned int scifa4_data_b_mux[] = {
  3320. SCIFA4_RXD_B_MARK, SCIFA4_TXD_B_MARK,
  3321. };
  3322. static const unsigned int scifa4_data_c_pins[] = {
  3323. /* RXD, TXD */
  3324. RCAR_GP_PIN(7, 22), RCAR_GP_PIN(7, 21),
  3325. };
  3326. static const unsigned int scifa4_data_c_mux[] = {
  3327. SCIFA4_RXD_C_MARK, SCIFA4_TXD_C_MARK,
  3328. };
  3329. /* - SCIFA5 ----------------------------------------------------------------- */
  3330. static const unsigned int scifa5_data_pins[] = {
  3331. /* RXD, TXD */
  3332. RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 3),
  3333. };
  3334. static const unsigned int scifa5_data_mux[] = {
  3335. SCIFA5_RXD_MARK, SCIFA5_TXD_MARK,
  3336. };
  3337. static const unsigned int scifa5_data_b_pins[] = {
  3338. /* RXD, TXD */
  3339. RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
  3340. };
  3341. static const unsigned int scifa5_data_b_mux[] = {
  3342. SCIFA5_RXD_B_MARK, SCIFA5_TXD_B_MARK,
  3343. };
  3344. static const unsigned int scifa5_data_c_pins[] = {
  3345. /* RXD, TXD */
  3346. RCAR_GP_PIN(6, 23), RCAR_GP_PIN(6, 22),
  3347. };
  3348. static const unsigned int scifa5_data_c_mux[] = {
  3349. SCIFA5_RXD_C_MARK, SCIFA5_TXD_C_MARK,
  3350. };
  3351. /* - SCIFB0 ----------------------------------------------------------------- */
  3352. static const unsigned int scifb0_data_pins[] = {
  3353. /* RXD, TXD */
  3354. RCAR_GP_PIN(7, 3), RCAR_GP_PIN(7, 4),
  3355. };
  3356. static const unsigned int scifb0_data_mux[] = {
  3357. SCIFB0_RXD_MARK, SCIFB0_TXD_MARK,
  3358. };
  3359. static const unsigned int scifb0_clk_pins[] = {
  3360. /* SCK */
  3361. RCAR_GP_PIN(7, 2),
  3362. };
  3363. static const unsigned int scifb0_clk_mux[] = {
  3364. SCIFB0_SCK_MARK,
  3365. };
  3366. static const unsigned int scifb0_ctrl_pins[] = {
  3367. /* RTS, CTS */
  3368. RCAR_GP_PIN(7, 1), RCAR_GP_PIN(7, 0),
  3369. };
  3370. static const unsigned int scifb0_ctrl_mux[] = {
  3371. SCIFB0_RTS_N_MARK, SCIFB0_CTS_N_MARK,
  3372. };
  3373. static const unsigned int scifb0_data_b_pins[] = {
  3374. /* RXD, TXD */
  3375. RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 21),
  3376. };
  3377. static const unsigned int scifb0_data_b_mux[] = {
  3378. SCIFB0_RXD_B_MARK, SCIFB0_TXD_B_MARK,
  3379. };
  3380. static const unsigned int scifb0_clk_b_pins[] = {
  3381. /* SCK */
  3382. RCAR_GP_PIN(5, 31),
  3383. };
  3384. static const unsigned int scifb0_clk_b_mux[] = {
  3385. SCIFB0_SCK_B_MARK,
  3386. };
  3387. static const unsigned int scifb0_ctrl_b_pins[] = {
  3388. /* RTS, CTS */
  3389. RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 23),
  3390. };
  3391. static const unsigned int scifb0_ctrl_b_mux[] = {
  3392. SCIFB0_RTS_N_B_MARK, SCIFB0_CTS_N_B_MARK,
  3393. };
  3394. static const unsigned int scifb0_data_c_pins[] = {
  3395. /* RXD, TXD */
  3396. RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
  3397. };
  3398. static const unsigned int scifb0_data_c_mux[] = {
  3399. SCIFB0_RXD_C_MARK, SCIFB0_TXD_C_MARK,
  3400. };
  3401. static const unsigned int scifb0_clk_c_pins[] = {
  3402. /* SCK */
  3403. RCAR_GP_PIN(2, 30),
  3404. };
  3405. static const unsigned int scifb0_clk_c_mux[] = {
  3406. SCIFB0_SCK_C_MARK,
  3407. };
  3408. static const unsigned int scifb0_data_d_pins[] = {
  3409. /* RXD, TXD */
  3410. RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 18),
  3411. };
  3412. static const unsigned int scifb0_data_d_mux[] = {
  3413. SCIFB0_RXD_D_MARK, SCIFB0_TXD_D_MARK,
  3414. };
  3415. static const unsigned int scifb0_clk_d_pins[] = {
  3416. /* SCK */
  3417. RCAR_GP_PIN(4, 17),
  3418. };
  3419. static const unsigned int scifb0_clk_d_mux[] = {
  3420. SCIFB0_SCK_D_MARK,
  3421. };
  3422. /* - SCIFB1 ----------------------------------------------------------------- */
  3423. static const unsigned int scifb1_data_pins[] = {
  3424. /* RXD, TXD */
  3425. RCAR_GP_PIN(7, 5), RCAR_GP_PIN(7, 6),
  3426. };
  3427. static const unsigned int scifb1_data_mux[] = {
  3428. SCIFB1_RXD_MARK, SCIFB1_TXD_MARK,
  3429. };
  3430. static const unsigned int scifb1_clk_pins[] = {
  3431. /* SCK */
  3432. RCAR_GP_PIN(7, 7),
  3433. };
  3434. static const unsigned int scifb1_clk_mux[] = {
  3435. SCIFB1_SCK_MARK,
  3436. };
  3437. static const unsigned int scifb1_ctrl_pins[] = {
  3438. /* RTS, CTS */
  3439. RCAR_GP_PIN(7, 9), RCAR_GP_PIN(7, 8),
  3440. };
  3441. static const unsigned int scifb1_ctrl_mux[] = {
  3442. SCIFB1_RTS_N_MARK, SCIFB1_CTS_N_MARK,
  3443. };
  3444. static const unsigned int scifb1_data_b_pins[] = {
  3445. /* RXD, TXD */
  3446. RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 18),
  3447. };
  3448. static const unsigned int scifb1_data_b_mux[] = {
  3449. SCIFB1_RXD_B_MARK, SCIFB1_TXD_B_MARK,
  3450. };
  3451. static const unsigned int scifb1_clk_b_pins[] = {
  3452. /* SCK */
  3453. RCAR_GP_PIN(1, 3),
  3454. };
  3455. static const unsigned int scifb1_clk_b_mux[] = {
  3456. SCIFB1_SCK_B_MARK,
  3457. };
  3458. static const unsigned int scifb1_data_c_pins[] = {
  3459. /* RXD, TXD */
  3460. RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 3),
  3461. };
  3462. static const unsigned int scifb1_data_c_mux[] = {
  3463. SCIFB1_RXD_C_MARK, SCIFB1_TXD_C_MARK,
  3464. };
  3465. static const unsigned int scifb1_clk_c_pins[] = {
  3466. /* SCK */
  3467. RCAR_GP_PIN(7, 11),
  3468. };
  3469. static const unsigned int scifb1_clk_c_mux[] = {
  3470. SCIFB1_SCK_C_MARK,
  3471. };
  3472. static const unsigned int scifb1_data_d_pins[] = {
  3473. /* RXD, TXD */
  3474. RCAR_GP_PIN(7, 10), RCAR_GP_PIN(7, 12),
  3475. };
  3476. static const unsigned int scifb1_data_d_mux[] = {
  3477. SCIFB1_RXD_D_MARK, SCIFB1_TXD_D_MARK,
  3478. };
  3479. /* - SCIFB2 ----------------------------------------------------------------- */
  3480. static const unsigned int scifb2_data_pins[] = {
  3481. /* RXD, TXD */
  3482. RCAR_GP_PIN(4, 16), RCAR_GP_PIN(4, 17),
  3483. };
  3484. static const unsigned int scifb2_data_mux[] = {
  3485. SCIFB2_RXD_MARK, SCIFB2_TXD_MARK,
  3486. };
  3487. static const unsigned int scifb2_clk_pins[] = {
  3488. /* SCK */
  3489. RCAR_GP_PIN(4, 15),
  3490. };
  3491. static const unsigned int scifb2_clk_mux[] = {
  3492. SCIFB2_SCK_MARK,
  3493. };
  3494. static const unsigned int scifb2_ctrl_pins[] = {
  3495. /* RTS, CTS */
  3496. RCAR_GP_PIN(4, 14), RCAR_GP_PIN(4, 13),
  3497. };
  3498. static const unsigned int scifb2_ctrl_mux[] = {
  3499. SCIFB2_RTS_N_MARK, SCIFB2_CTS_N_MARK,
  3500. };
  3501. static const unsigned int scifb2_data_b_pins[] = {
  3502. /* RXD, TXD */
  3503. RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
  3504. };
  3505. static const unsigned int scifb2_data_b_mux[] = {
  3506. SCIFB2_RXD_B_MARK, SCIFB2_TXD_B_MARK,
  3507. };
  3508. static const unsigned int scifb2_clk_b_pins[] = {
  3509. /* SCK */
  3510. RCAR_GP_PIN(5, 31),
  3511. };
  3512. static const unsigned int scifb2_clk_b_mux[] = {
  3513. SCIFB2_SCK_B_MARK,
  3514. };
  3515. static const unsigned int scifb2_ctrl_b_pins[] = {
  3516. /* RTS, CTS */
  3517. RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 14),
  3518. };
  3519. static const unsigned int scifb2_ctrl_b_mux[] = {
  3520. SCIFB2_RTS_N_B_MARK, SCIFB2_CTS_N_B_MARK,
  3521. };
  3522. static const unsigned int scifb2_data_c_pins[] = {
  3523. /* RXD, TXD */
  3524. RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
  3525. };
  3526. static const unsigned int scifb2_data_c_mux[] = {
  3527. SCIFB2_RXD_C_MARK, SCIFB2_TXD_C_MARK,
  3528. };
  3529. static const unsigned int scifb2_clk_c_pins[] = {
  3530. /* SCK */
  3531. RCAR_GP_PIN(5, 27),
  3532. };
  3533. static const unsigned int scifb2_clk_c_mux[] = {
  3534. SCIFB2_SCK_C_MARK,
  3535. };
  3536. static const unsigned int scifb2_data_d_pins[] = {
  3537. /* RXD, TXD */
  3538. RCAR_GP_PIN(5, 26), RCAR_GP_PIN(5, 25),
  3539. };
  3540. static const unsigned int scifb2_data_d_mux[] = {
  3541. SCIFB2_RXD_D_MARK, SCIFB2_TXD_D_MARK,
  3542. };
  3543. /* - SCIF Clock ------------------------------------------------------------- */
  3544. static const unsigned int scif_clk_pins[] = {
  3545. /* SCIF_CLK */
  3546. RCAR_GP_PIN(2, 29),
  3547. };
  3548. static const unsigned int scif_clk_mux[] = {
  3549. SCIF_CLK_MARK,
  3550. };
  3551. static const unsigned int scif_clk_b_pins[] = {
  3552. /* SCIF_CLK */
  3553. RCAR_GP_PIN(7, 19),
  3554. };
  3555. static const unsigned int scif_clk_b_mux[] = {
  3556. SCIF_CLK_B_MARK,
  3557. };
  3558. /* - SDHI0 ------------------------------------------------------------------ */
  3559. static const unsigned int sdhi0_data1_pins[] = {
  3560. /* D0 */
  3561. RCAR_GP_PIN(6, 2),
  3562. };
  3563. static const unsigned int sdhi0_data1_mux[] = {
  3564. SD0_DATA0_MARK,
  3565. };
  3566. static const unsigned int sdhi0_data4_pins[] = {
  3567. /* D[0:3] */
  3568. RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 3),
  3569. RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 5),
  3570. };
  3571. static const unsigned int sdhi0_data4_mux[] = {
  3572. SD0_DATA0_MARK, SD0_DATA1_MARK, SD0_DATA2_MARK, SD0_DATA3_MARK,
  3573. };
  3574. static const unsigned int sdhi0_ctrl_pins[] = {
  3575. /* CLK, CMD */
  3576. RCAR_GP_PIN(6, 0), RCAR_GP_PIN(6, 1),
  3577. };
  3578. static const unsigned int sdhi0_ctrl_mux[] = {
  3579. SD0_CLK_MARK, SD0_CMD_MARK,
  3580. };
  3581. static const unsigned int sdhi0_cd_pins[] = {
  3582. /* CD */
  3583. RCAR_GP_PIN(6, 6),
  3584. };
  3585. static const unsigned int sdhi0_cd_mux[] = {
  3586. SD0_CD_MARK,
  3587. };
  3588. static const unsigned int sdhi0_wp_pins[] = {
  3589. /* WP */
  3590. RCAR_GP_PIN(6, 7),
  3591. };
  3592. static const unsigned int sdhi0_wp_mux[] = {
  3593. SD0_WP_MARK,
  3594. };
  3595. /* - SDHI1 ------------------------------------------------------------------ */
  3596. static const unsigned int sdhi1_data1_pins[] = {
  3597. /* D0 */
  3598. RCAR_GP_PIN(6, 10),
  3599. };
  3600. static const unsigned int sdhi1_data1_mux[] = {
  3601. SD1_DATA0_MARK,
  3602. };
  3603. static const unsigned int sdhi1_data4_pins[] = {
  3604. /* D[0:3] */
  3605. RCAR_GP_PIN(6, 10), RCAR_GP_PIN(6, 11),
  3606. RCAR_GP_PIN(6, 12), RCAR_GP_PIN(6, 13),
  3607. };
  3608. static const unsigned int sdhi1_data4_mux[] = {
  3609. SD1_DATA0_MARK, SD1_DATA1_MARK, SD1_DATA2_MARK, SD1_DATA3_MARK,
  3610. };
  3611. static const unsigned int sdhi1_ctrl_pins[] = {
  3612. /* CLK, CMD */
  3613. RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
  3614. };
  3615. static const unsigned int sdhi1_ctrl_mux[] = {
  3616. SD1_CLK_MARK, SD1_CMD_MARK,
  3617. };
  3618. static const unsigned int sdhi1_cd_pins[] = {
  3619. /* CD */
  3620. RCAR_GP_PIN(6, 14),
  3621. };
  3622. static const unsigned int sdhi1_cd_mux[] = {
  3623. SD1_CD_MARK,
  3624. };
  3625. static const unsigned int sdhi1_wp_pins[] = {
  3626. /* WP */
  3627. RCAR_GP_PIN(6, 15),
  3628. };
  3629. static const unsigned int sdhi1_wp_mux[] = {
  3630. SD1_WP_MARK,
  3631. };
  3632. /* - SDHI2 ------------------------------------------------------------------ */
  3633. static const unsigned int sdhi2_data1_pins[] = {
  3634. /* D0 */
  3635. RCAR_GP_PIN(6, 18),
  3636. };
  3637. static const unsigned int sdhi2_data1_mux[] = {
  3638. SD2_DATA0_MARK,
  3639. };
  3640. static const unsigned int sdhi2_data4_pins[] = {
  3641. /* D[0:3] */
  3642. RCAR_GP_PIN(6, 18), RCAR_GP_PIN(6, 19),
  3643. RCAR_GP_PIN(6, 20), RCAR_GP_PIN(6, 21),
  3644. };
  3645. static const unsigned int sdhi2_data4_mux[] = {
  3646. SD2_DATA0_MARK, SD2_DATA1_MARK, SD2_DATA2_MARK, SD2_DATA3_MARK,
  3647. };
  3648. static const unsigned int sdhi2_ctrl_pins[] = {
  3649. /* CLK, CMD */
  3650. RCAR_GP_PIN(6, 16), RCAR_GP_PIN(6, 17),
  3651. };
  3652. static const unsigned int sdhi2_ctrl_mux[] = {
  3653. SD2_CLK_MARK, SD2_CMD_MARK,
  3654. };
  3655. static const unsigned int sdhi2_cd_pins[] = {
  3656. /* CD */
  3657. RCAR_GP_PIN(6, 22),
  3658. };
  3659. static const unsigned int sdhi2_cd_mux[] = {
  3660. SD2_CD_MARK,
  3661. };
  3662. static const unsigned int sdhi2_wp_pins[] = {
  3663. /* WP */
  3664. RCAR_GP_PIN(6, 23),
  3665. };
  3666. static const unsigned int sdhi2_wp_mux[] = {
  3667. SD2_WP_MARK,
  3668. };
  3669. /* - SSI -------------------------------------------------------------------- */
  3670. static const unsigned int ssi0_data_pins[] = {
  3671. /* SDATA */
  3672. RCAR_GP_PIN(2, 2),
  3673. };
  3674. static const unsigned int ssi0_data_mux[] = {
  3675. SSI_SDATA0_MARK,
  3676. };
  3677. static const unsigned int ssi0_data_b_pins[] = {
  3678. /* SDATA */
  3679. RCAR_GP_PIN(3, 4),
  3680. };
  3681. static const unsigned int ssi0_data_b_mux[] = {
  3682. SSI_SDATA0_B_MARK,
  3683. };
  3684. static const unsigned int ssi0129_ctrl_pins[] = {
  3685. /* SCK, WS */
  3686. RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
  3687. };
  3688. static const unsigned int ssi0129_ctrl_mux[] = {
  3689. SSI_SCK0129_MARK, SSI_WS0129_MARK,
  3690. };
  3691. static const unsigned int ssi0129_ctrl_b_pins[] = {
  3692. /* SCK, WS */
  3693. RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3),
  3694. };
  3695. static const unsigned int ssi0129_ctrl_b_mux[] = {
  3696. SSI_SCK0129_B_MARK, SSI_WS0129_B_MARK,
  3697. };
  3698. static const unsigned int ssi1_data_pins[] = {
  3699. /* SDATA */
  3700. RCAR_GP_PIN(2, 5),
  3701. };
  3702. static const unsigned int ssi1_data_mux[] = {
  3703. SSI_SDATA1_MARK,
  3704. };
  3705. static const unsigned int ssi1_data_b_pins[] = {
  3706. /* SDATA */
  3707. RCAR_GP_PIN(3, 7),
  3708. };
  3709. static const unsigned int ssi1_data_b_mux[] = {
  3710. SSI_SDATA1_B_MARK,
  3711. };
  3712. static const unsigned int ssi1_ctrl_pins[] = {
  3713. /* SCK, WS */
  3714. RCAR_GP_PIN(2, 3), RCAR_GP_PIN(2, 4),
  3715. };
  3716. static const unsigned int ssi1_ctrl_mux[] = {
  3717. SSI_SCK1_MARK, SSI_WS1_MARK,
  3718. };
  3719. static const unsigned int ssi1_ctrl_b_pins[] = {
  3720. /* SCK, WS */
  3721. RCAR_GP_PIN(3, 5), RCAR_GP_PIN(3, 6),
  3722. };
  3723. static const unsigned int ssi1_ctrl_b_mux[] = {
  3724. SSI_SCK1_B_MARK, SSI_WS1_B_MARK,
  3725. };
  3726. static const unsigned int ssi2_data_pins[] = {
  3727. /* SDATA */
  3728. RCAR_GP_PIN(2, 8),
  3729. };
  3730. static const unsigned int ssi2_data_mux[] = {
  3731. SSI_SDATA2_MARK,
  3732. };
  3733. static const unsigned int ssi2_ctrl_pins[] = {
  3734. /* SCK, WS */
  3735. RCAR_GP_PIN(2, 6), RCAR_GP_PIN(2, 7),
  3736. };
  3737. static const unsigned int ssi2_ctrl_mux[] = {
  3738. SSI_SCK2_MARK, SSI_WS2_MARK,
  3739. };
  3740. static const unsigned int ssi3_data_pins[] = {
  3741. /* SDATA */
  3742. RCAR_GP_PIN(2, 11),
  3743. };
  3744. static const unsigned int ssi3_data_mux[] = {
  3745. SSI_SDATA3_MARK,
  3746. };
  3747. static const unsigned int ssi34_ctrl_pins[] = {
  3748. /* SCK, WS */
  3749. RCAR_GP_PIN(2, 9), RCAR_GP_PIN(2, 10),
  3750. };
  3751. static const unsigned int ssi34_ctrl_mux[] = {
  3752. SSI_SCK34_MARK, SSI_WS34_MARK,
  3753. };
  3754. static const unsigned int ssi4_data_pins[] = {
  3755. /* SDATA */
  3756. RCAR_GP_PIN(2, 14),
  3757. };
  3758. static const unsigned int ssi4_data_mux[] = {
  3759. SSI_SDATA4_MARK,
  3760. };
  3761. static const unsigned int ssi4_ctrl_pins[] = {
  3762. /* SCK, WS */
  3763. RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
  3764. };
  3765. static const unsigned int ssi4_ctrl_mux[] = {
  3766. SSI_SCK4_MARK, SSI_WS4_MARK,
  3767. };
  3768. static const unsigned int ssi5_data_pins[] = {
  3769. /* SDATA */
  3770. RCAR_GP_PIN(2, 17),
  3771. };
  3772. static const unsigned int ssi5_data_mux[] = {
  3773. SSI_SDATA5_MARK,
  3774. };
  3775. static const unsigned int ssi5_ctrl_pins[] = {
  3776. /* SCK, WS */
  3777. RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 16),
  3778. };
  3779. static const unsigned int ssi5_ctrl_mux[] = {
  3780. SSI_SCK5_MARK, SSI_WS5_MARK,
  3781. };
  3782. static const unsigned int ssi6_data_pins[] = {
  3783. /* SDATA */
  3784. RCAR_GP_PIN(2, 20),
  3785. };
  3786. static const unsigned int ssi6_data_mux[] = {
  3787. SSI_SDATA6_MARK,
  3788. };
  3789. static const unsigned int ssi6_ctrl_pins[] = {
  3790. /* SCK, WS */
  3791. RCAR_GP_PIN(2, 18), RCAR_GP_PIN(2, 19),
  3792. };
  3793. static const unsigned int ssi6_ctrl_mux[] = {
  3794. SSI_SCK6_MARK, SSI_WS6_MARK,
  3795. };
  3796. static const unsigned int ssi7_data_pins[] = {
  3797. /* SDATA */
  3798. RCAR_GP_PIN(2, 23),
  3799. };
  3800. static const unsigned int ssi7_data_mux[] = {
  3801. SSI_SDATA7_MARK,
  3802. };
  3803. static const unsigned int ssi7_data_b_pins[] = {
  3804. /* SDATA */
  3805. RCAR_GP_PIN(3, 12),
  3806. };
  3807. static const unsigned int ssi7_data_b_mux[] = {
  3808. SSI_SDATA7_B_MARK,
  3809. };
  3810. static const unsigned int ssi78_ctrl_pins[] = {
  3811. /* SCK, WS */
  3812. RCAR_GP_PIN(2, 21), RCAR_GP_PIN(2, 22),
  3813. };
  3814. static const unsigned int ssi78_ctrl_mux[] = {
  3815. SSI_SCK78_MARK, SSI_WS78_MARK,
  3816. };
  3817. static const unsigned int ssi78_ctrl_b_pins[] = {
  3818. /* SCK, WS */
  3819. RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
  3820. };
  3821. static const unsigned int ssi78_ctrl_b_mux[] = {
  3822. SSI_SCK78_B_MARK, SSI_WS78_B_MARK,
  3823. };
  3824. static const unsigned int ssi8_data_pins[] = {
  3825. /* SDATA */
  3826. RCAR_GP_PIN(2, 24),
  3827. };
  3828. static const unsigned int ssi8_data_mux[] = {
  3829. SSI_SDATA8_MARK,
  3830. };
  3831. static const unsigned int ssi8_data_b_pins[] = {
  3832. /* SDATA */
  3833. RCAR_GP_PIN(3, 13),
  3834. };
  3835. static const unsigned int ssi8_data_b_mux[] = {
  3836. SSI_SDATA8_B_MARK,
  3837. };
  3838. static const unsigned int ssi9_data_pins[] = {
  3839. /* SDATA */
  3840. RCAR_GP_PIN(2, 27),
  3841. };
  3842. static const unsigned int ssi9_data_mux[] = {
  3843. SSI_SDATA9_MARK,
  3844. };
  3845. static const unsigned int ssi9_data_b_pins[] = {
  3846. /* SDATA */
  3847. RCAR_GP_PIN(3, 18),
  3848. };
  3849. static const unsigned int ssi9_data_b_mux[] = {
  3850. SSI_SDATA9_B_MARK,
  3851. };
  3852. static const unsigned int ssi9_ctrl_pins[] = {
  3853. /* SCK, WS */
  3854. RCAR_GP_PIN(2, 25), RCAR_GP_PIN(2, 26),
  3855. };
  3856. static const unsigned int ssi9_ctrl_mux[] = {
  3857. SSI_SCK9_MARK, SSI_WS9_MARK,
  3858. };
  3859. static const unsigned int ssi9_ctrl_b_pins[] = {
  3860. /* SCK, WS */
  3861. RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 15),
  3862. };
  3863. static const unsigned int ssi9_ctrl_b_mux[] = {
  3864. SSI_SCK9_B_MARK, SSI_WS9_B_MARK,
  3865. };
  3866. /* - USB0 ------------------------------------------------------------------- */
  3867. static const unsigned int usb0_pins[] = {
  3868. RCAR_GP_PIN(7, 23), /* PWEN */
  3869. RCAR_GP_PIN(7, 24), /* OVC */
  3870. };
  3871. static const unsigned int usb0_mux[] = {
  3872. USB0_PWEN_MARK,
  3873. USB0_OVC_MARK,
  3874. };
  3875. /* - USB1 ------------------------------------------------------------------- */
  3876. static const unsigned int usb1_pins[] = {
  3877. RCAR_GP_PIN(7, 25), /* PWEN */
  3878. RCAR_GP_PIN(6, 30), /* OVC */
  3879. };
  3880. static const unsigned int usb1_mux[] = {
  3881. USB1_PWEN_MARK,
  3882. USB1_OVC_MARK,
  3883. };
  3884. /* - VIN0 ------------------------------------------------------------------- */
  3885. static const union vin_data vin0_data_pins = {
  3886. .data24 = {
  3887. /* B */
  3888. RCAR_GP_PIN(4, 5), RCAR_GP_PIN(4, 6),
  3889. RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 8),
  3890. RCAR_GP_PIN(4, 9), RCAR_GP_PIN(4, 10),
  3891. RCAR_GP_PIN(4, 11), RCAR_GP_PIN(4, 12),
  3892. /* G */
  3893. RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 14),
  3894. RCAR_GP_PIN(4, 15), RCAR_GP_PIN(4, 16),
  3895. RCAR_GP_PIN(4, 17), RCAR_GP_PIN(4, 18),
  3896. RCAR_GP_PIN(4, 19), RCAR_GP_PIN(4, 20),
  3897. /* R */
  3898. RCAR_GP_PIN(4, 21), RCAR_GP_PIN(4, 22),
  3899. RCAR_GP_PIN(4, 23), RCAR_GP_PIN(4, 24),
  3900. RCAR_GP_PIN(4, 25), RCAR_GP_PIN(4, 26),
  3901. RCAR_GP_PIN(4, 27), RCAR_GP_PIN(4, 28),
  3902. },
  3903. };
  3904. static const union vin_data vin0_data_mux = {
  3905. .data24 = {
  3906. /* B */
  3907. VI0_DATA0_VI0_B0_MARK, VI0_DATA1_VI0_B1_MARK,
  3908. VI0_DATA2_VI0_B2_MARK, VI0_DATA3_VI0_B3_MARK,
  3909. VI0_DATA4_VI0_B4_MARK, VI0_DATA5_VI0_B5_MARK,
  3910. VI0_DATA6_VI0_B6_MARK, VI0_DATA7_VI0_B7_MARK,
  3911. /* G */
  3912. VI0_G0_MARK, VI0_G1_MARK,
  3913. VI0_G2_MARK, VI0_G3_MARK,
  3914. VI0_G4_MARK, VI0_G5_MARK,
  3915. VI0_G6_MARK, VI0_G7_MARK,
  3916. /* R */
  3917. VI0_R0_MARK, VI0_R1_MARK,
  3918. VI0_R2_MARK, VI0_R3_MARK,
  3919. VI0_R4_MARK, VI0_R5_MARK,
  3920. VI0_R6_MARK, VI0_R7_MARK,
  3921. },
  3922. };
  3923. static const unsigned int vin0_data18_pins[] = {
  3924. /* B */
  3925. RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 8),
  3926. RCAR_GP_PIN(4, 9), RCAR_GP_PIN(4, 10),
  3927. RCAR_GP_PIN(4, 11), RCAR_GP_PIN(4, 12),
  3928. /* G */
  3929. RCAR_GP_PIN(4, 15), RCAR_GP_PIN(4, 16),
  3930. RCAR_GP_PIN(4, 17), RCAR_GP_PIN(4, 18),
  3931. RCAR_GP_PIN(4, 19), RCAR_GP_PIN(4, 20),
  3932. /* R */
  3933. RCAR_GP_PIN(4, 23), RCAR_GP_PIN(4, 24),
  3934. RCAR_GP_PIN(4, 25), RCAR_GP_PIN(4, 26),
  3935. RCAR_GP_PIN(4, 27), RCAR_GP_PIN(4, 28),
  3936. };
  3937. static const unsigned int vin0_data18_mux[] = {
  3938. /* B */
  3939. VI0_DATA2_VI0_B2_MARK, VI0_DATA3_VI0_B3_MARK,
  3940. VI0_DATA4_VI0_B4_MARK, VI0_DATA5_VI0_B5_MARK,
  3941. VI0_DATA6_VI0_B6_MARK, VI0_DATA7_VI0_B7_MARK,
  3942. /* G */
  3943. VI0_G2_MARK, VI0_G3_MARK,
  3944. VI0_G4_MARK, VI0_G5_MARK,
  3945. VI0_G6_MARK, VI0_G7_MARK,
  3946. /* R */
  3947. VI0_R2_MARK, VI0_R3_MARK,
  3948. VI0_R4_MARK, VI0_R5_MARK,
  3949. VI0_R6_MARK, VI0_R7_MARK,
  3950. };
  3951. static const unsigned int vin0_sync_pins[] = {
  3952. RCAR_GP_PIN(4, 3), /* HSYNC */
  3953. RCAR_GP_PIN(4, 4), /* VSYNC */
  3954. };
  3955. static const unsigned int vin0_sync_mux[] = {
  3956. VI0_HSYNC_N_MARK,
  3957. VI0_VSYNC_N_MARK,
  3958. };
  3959. static const unsigned int vin0_field_pins[] = {
  3960. RCAR_GP_PIN(4, 2),
  3961. };
  3962. static const unsigned int vin0_field_mux[] = {
  3963. VI0_FIELD_MARK,
  3964. };
  3965. static const unsigned int vin0_clkenb_pins[] = {
  3966. RCAR_GP_PIN(4, 1),
  3967. };
  3968. static const unsigned int vin0_clkenb_mux[] = {
  3969. VI0_CLKENB_MARK,
  3970. };
  3971. static const unsigned int vin0_clk_pins[] = {
  3972. RCAR_GP_PIN(4, 0),
  3973. };
  3974. static const unsigned int vin0_clk_mux[] = {
  3975. VI0_CLK_MARK,
  3976. };
  3977. /* - VIN1 ----------------------------------------------------------------- */
  3978. static const unsigned int vin1_data8_pins[] = {
  3979. RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
  3980. RCAR_GP_PIN(5, 7), RCAR_GP_PIN(5, 8),
  3981. RCAR_GP_PIN(5, 9), RCAR_GP_PIN(5, 10),
  3982. RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 12),
  3983. };
  3984. static const unsigned int vin1_data8_mux[] = {
  3985. VI1_DATA0_MARK, VI1_DATA1_MARK,
  3986. VI1_DATA2_MARK, VI1_DATA3_MARK,
  3987. VI1_DATA4_MARK, VI1_DATA5_MARK,
  3988. VI1_DATA6_MARK, VI1_DATA7_MARK,
  3989. };
  3990. static const unsigned int vin1_sync_pins[] = {
  3991. RCAR_GP_PIN(5, 0), /* HSYNC */
  3992. RCAR_GP_PIN(5, 1), /* VSYNC */
  3993. };
  3994. static const unsigned int vin1_sync_mux[] = {
  3995. VI1_HSYNC_N_MARK,
  3996. VI1_VSYNC_N_MARK,
  3997. };
  3998. static const unsigned int vin1_field_pins[] = {
  3999. RCAR_GP_PIN(5, 3),
  4000. };
  4001. static const unsigned int vin1_field_mux[] = {
  4002. VI1_FIELD_MARK,
  4003. };
  4004. static const unsigned int vin1_clkenb_pins[] = {
  4005. RCAR_GP_PIN(5, 2),
  4006. };
  4007. static const unsigned int vin1_clkenb_mux[] = {
  4008. VI1_CLKENB_MARK,
  4009. };
  4010. static const unsigned int vin1_clk_pins[] = {
  4011. RCAR_GP_PIN(5, 4),
  4012. };
  4013. static const unsigned int vin1_clk_mux[] = {
  4014. VI1_CLK_MARK,
  4015. };
  4016. static const union vin_data vin1_b_data_pins = {
  4017. .data24 = {
  4018. /* B */
  4019. RCAR_GP_PIN(3, 0), RCAR_GP_PIN(3, 1),
  4020. RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
  4021. RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
  4022. RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
  4023. /* G */
  4024. RCAR_GP_PIN(6, 24), RCAR_GP_PIN(6, 25),
  4025. RCAR_GP_PIN(6, 26), RCAR_GP_PIN(6, 27),
  4026. RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29),
  4027. RCAR_GP_PIN(7, 21), RCAR_GP_PIN(7, 22),
  4028. /* R */
  4029. RCAR_GP_PIN(7, 5), RCAR_GP_PIN(7, 6),
  4030. RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 16),
  4031. RCAR_GP_PIN(2, 17), RCAR_GP_PIN(2, 18),
  4032. RCAR_GP_PIN(2, 19), RCAR_GP_PIN(2, 20),
  4033. },
  4034. };
  4035. static const union vin_data vin1_b_data_mux = {
  4036. .data24 = {
  4037. /* B */
  4038. VI1_DATA0_B_MARK, VI1_DATA1_B_MARK,
  4039. VI1_DATA2_B_MARK, VI1_DATA3_B_MARK,
  4040. VI1_DATA4_B_MARK, VI1_DATA5_B_MARK,
  4041. VI1_DATA6_B_MARK, VI1_DATA7_B_MARK,
  4042. /* G */
  4043. VI1_G0_B_MARK, VI1_G1_B_MARK,
  4044. VI1_G2_B_MARK, VI1_G3_B_MARK,
  4045. VI1_G4_B_MARK, VI1_G5_B_MARK,
  4046. VI1_G6_B_MARK, VI1_G7_B_MARK,
  4047. /* R */
  4048. VI1_R0_B_MARK, VI1_R1_B_MARK,
  4049. VI1_R2_B_MARK, VI1_R3_B_MARK,
  4050. VI1_R4_B_MARK, VI1_R5_B_MARK,
  4051. VI1_R6_B_MARK, VI1_R7_B_MARK,
  4052. },
  4053. };
  4054. static const unsigned int vin1_b_data18_pins[] = {
  4055. /* B */
  4056. RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
  4057. RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
  4058. RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
  4059. /* G */
  4060. RCAR_GP_PIN(6, 26), RCAR_GP_PIN(6, 27),
  4061. RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29),
  4062. RCAR_GP_PIN(7, 21), RCAR_GP_PIN(7, 22),
  4063. /* R */
  4064. RCAR_GP_PIN(2, 15), RCAR_GP_PIN(2, 16),
  4065. RCAR_GP_PIN(2, 17), RCAR_GP_PIN(2, 18),
  4066. RCAR_GP_PIN(2, 19), RCAR_GP_PIN(2, 20),
  4067. };
  4068. static const unsigned int vin1_b_data18_mux[] = {
  4069. /* B */
  4070. VI1_DATA0_B_MARK, VI1_DATA1_B_MARK,
  4071. VI1_DATA2_B_MARK, VI1_DATA3_B_MARK,
  4072. VI1_DATA4_B_MARK, VI1_DATA5_B_MARK,
  4073. VI1_DATA6_B_MARK, VI1_DATA7_B_MARK,
  4074. /* G */
  4075. VI1_G0_B_MARK, VI1_G1_B_MARK,
  4076. VI1_G2_B_MARK, VI1_G3_B_MARK,
  4077. VI1_G4_B_MARK, VI1_G5_B_MARK,
  4078. VI1_G6_B_MARK, VI1_G7_B_MARK,
  4079. /* R */
  4080. VI1_R0_B_MARK, VI1_R1_B_MARK,
  4081. VI1_R2_B_MARK, VI1_R3_B_MARK,
  4082. VI1_R4_B_MARK, VI1_R5_B_MARK,
  4083. VI1_R6_B_MARK, VI1_R7_B_MARK,
  4084. };
  4085. static const unsigned int vin1_b_sync_pins[] = {
  4086. RCAR_GP_PIN(3, 17), /* HSYNC */
  4087. RCAR_GP_PIN(3, 18), /* VSYNC */
  4088. };
  4089. static const unsigned int vin1_b_sync_mux[] = {
  4090. VI1_HSYNC_N_B_MARK,
  4091. VI1_VSYNC_N_B_MARK,
  4092. };
  4093. static const unsigned int vin1_b_field_pins[] = {
  4094. RCAR_GP_PIN(3, 20),
  4095. };
  4096. static const unsigned int vin1_b_field_mux[] = {
  4097. VI1_FIELD_B_MARK,
  4098. };
  4099. static const unsigned int vin1_b_clkenb_pins[] = {
  4100. RCAR_GP_PIN(3, 19),
  4101. };
  4102. static const unsigned int vin1_b_clkenb_mux[] = {
  4103. VI1_CLKENB_B_MARK,
  4104. };
  4105. static const unsigned int vin1_b_clk_pins[] = {
  4106. RCAR_GP_PIN(3, 16),
  4107. };
  4108. static const unsigned int vin1_b_clk_mux[] = {
  4109. VI1_CLK_B_MARK,
  4110. };
  4111. /* - VIN2 ----------------------------------------------------------------- */
  4112. static const unsigned int vin2_data8_pins[] = {
  4113. RCAR_GP_PIN(4, 20), RCAR_GP_PIN(4, 21),
  4114. RCAR_GP_PIN(4, 22), RCAR_GP_PIN(4, 23),
  4115. RCAR_GP_PIN(4, 24), RCAR_GP_PIN(4, 25),
  4116. RCAR_GP_PIN(4, 26), RCAR_GP_PIN(4, 27),
  4117. };
  4118. static const unsigned int vin2_data8_mux[] = {
  4119. VI2_DATA0_MARK, VI2_DATA1_MARK,
  4120. VI2_DATA2_MARK, VI2_DATA3_MARK,
  4121. VI2_DATA4_MARK, VI2_DATA5_MARK,
  4122. VI2_DATA6_MARK, VI2_DATA7_MARK,
  4123. };
  4124. static const unsigned int vin2_sync_pins[] = {
  4125. RCAR_GP_PIN(4, 15), /* HSYNC */
  4126. RCAR_GP_PIN(4, 16), /* VSYNC */
  4127. };
  4128. static const unsigned int vin2_sync_mux[] = {
  4129. VI2_HSYNC_N_MARK,
  4130. VI2_VSYNC_N_MARK,
  4131. };
  4132. static const unsigned int vin2_field_pins[] = {
  4133. RCAR_GP_PIN(4, 18),
  4134. };
  4135. static const unsigned int vin2_field_mux[] = {
  4136. VI2_FIELD_MARK,
  4137. };
  4138. static const unsigned int vin2_clkenb_pins[] = {
  4139. RCAR_GP_PIN(4, 17),
  4140. };
  4141. static const unsigned int vin2_clkenb_mux[] = {
  4142. VI2_CLKENB_MARK,
  4143. };
  4144. static const unsigned int vin2_clk_pins[] = {
  4145. RCAR_GP_PIN(4, 19),
  4146. };
  4147. static const unsigned int vin2_clk_mux[] = {
  4148. VI2_CLK_MARK,
  4149. };
  4150. static const struct sh_pfc_pin_group pinmux_groups[] = {
  4151. SH_PFC_PIN_GROUP(audio_clk_a),
  4152. SH_PFC_PIN_GROUP(audio_clk_b),
  4153. SH_PFC_PIN_GROUP(audio_clk_b_b),
  4154. SH_PFC_PIN_GROUP(audio_clk_c),
  4155. SH_PFC_PIN_GROUP(audio_clkout),
  4156. SH_PFC_PIN_GROUP(avb_link),
  4157. SH_PFC_PIN_GROUP(avb_magic),
  4158. SH_PFC_PIN_GROUP(avb_phy_int),
  4159. SH_PFC_PIN_GROUP(avb_mdio),
  4160. SH_PFC_PIN_GROUP(avb_mii),
  4161. SH_PFC_PIN_GROUP(avb_gmii),
  4162. SH_PFC_PIN_GROUP(can0_data),
  4163. SH_PFC_PIN_GROUP(can0_data_b),
  4164. SH_PFC_PIN_GROUP(can0_data_c),
  4165. SH_PFC_PIN_GROUP(can0_data_d),
  4166. SH_PFC_PIN_GROUP(can0_data_e),
  4167. SH_PFC_PIN_GROUP(can0_data_f),
  4168. SH_PFC_PIN_GROUP(can1_data),
  4169. SH_PFC_PIN_GROUP(can1_data_b),
  4170. SH_PFC_PIN_GROUP(can1_data_c),
  4171. SH_PFC_PIN_GROUP(can1_data_d),
  4172. SH_PFC_PIN_GROUP(can_clk),
  4173. SH_PFC_PIN_GROUP(can_clk_b),
  4174. SH_PFC_PIN_GROUP(can_clk_c),
  4175. SH_PFC_PIN_GROUP(can_clk_d),
  4176. SH_PFC_PIN_GROUP(du_rgb666),
  4177. SH_PFC_PIN_GROUP(du_rgb888),
  4178. SH_PFC_PIN_GROUP(du_clk_out_0),
  4179. SH_PFC_PIN_GROUP(du_clk_out_1),
  4180. SH_PFC_PIN_GROUP(du_sync),
  4181. SH_PFC_PIN_GROUP(du_oddf),
  4182. SH_PFC_PIN_GROUP(du_cde),
  4183. SH_PFC_PIN_GROUP(du_disp),
  4184. SH_PFC_PIN_GROUP(du0_clk_in),
  4185. SH_PFC_PIN_GROUP(du1_clk_in),
  4186. SH_PFC_PIN_GROUP(du1_clk_in_b),
  4187. SH_PFC_PIN_GROUP(du1_clk_in_c),
  4188. SH_PFC_PIN_GROUP(eth_link),
  4189. SH_PFC_PIN_GROUP(eth_magic),
  4190. SH_PFC_PIN_GROUP(eth_mdio),
  4191. SH_PFC_PIN_GROUP(eth_rmii),
  4192. SH_PFC_PIN_GROUP(hscif0_data),
  4193. SH_PFC_PIN_GROUP(hscif0_clk),
  4194. SH_PFC_PIN_GROUP(hscif0_ctrl),
  4195. SH_PFC_PIN_GROUP(hscif0_data_b),
  4196. SH_PFC_PIN_GROUP(hscif0_ctrl_b),
  4197. SH_PFC_PIN_GROUP(hscif0_data_c),
  4198. SH_PFC_PIN_GROUP(hscif0_clk_c),
  4199. SH_PFC_PIN_GROUP(hscif1_data),
  4200. SH_PFC_PIN_GROUP(hscif1_clk),
  4201. SH_PFC_PIN_GROUP(hscif1_ctrl),
  4202. SH_PFC_PIN_GROUP(hscif1_data_b),
  4203. SH_PFC_PIN_GROUP(hscif1_data_c),
  4204. SH_PFC_PIN_GROUP(hscif1_clk_c),
  4205. SH_PFC_PIN_GROUP(hscif1_ctrl_c),
  4206. SH_PFC_PIN_GROUP(hscif1_data_d),
  4207. SH_PFC_PIN_GROUP(hscif1_data_e),
  4208. SH_PFC_PIN_GROUP(hscif1_clk_e),
  4209. SH_PFC_PIN_GROUP(hscif1_ctrl_e),
  4210. SH_PFC_PIN_GROUP(hscif2_data),
  4211. SH_PFC_PIN_GROUP(hscif2_clk),
  4212. SH_PFC_PIN_GROUP(hscif2_ctrl),
  4213. SH_PFC_PIN_GROUP(hscif2_data_b),
  4214. SH_PFC_PIN_GROUP(hscif2_ctrl_b),
  4215. SH_PFC_PIN_GROUP(hscif2_data_c),
  4216. SH_PFC_PIN_GROUP(hscif2_clk_c),
  4217. SH_PFC_PIN_GROUP(hscif2_data_d),
  4218. SH_PFC_PIN_GROUP(i2c0),
  4219. SH_PFC_PIN_GROUP(i2c0_b),
  4220. SH_PFC_PIN_GROUP(i2c0_c),
  4221. SH_PFC_PIN_GROUP(i2c1),
  4222. SH_PFC_PIN_GROUP(i2c1_b),
  4223. SH_PFC_PIN_GROUP(i2c1_c),
  4224. SH_PFC_PIN_GROUP(i2c1_d),
  4225. SH_PFC_PIN_GROUP(i2c1_e),
  4226. SH_PFC_PIN_GROUP(i2c2),
  4227. SH_PFC_PIN_GROUP(i2c2_b),
  4228. SH_PFC_PIN_GROUP(i2c2_c),
  4229. SH_PFC_PIN_GROUP(i2c2_d),
  4230. SH_PFC_PIN_GROUP(i2c3),
  4231. SH_PFC_PIN_GROUP(i2c3_b),
  4232. SH_PFC_PIN_GROUP(i2c3_c),
  4233. SH_PFC_PIN_GROUP(i2c3_d),
  4234. SH_PFC_PIN_GROUP(i2c4),
  4235. SH_PFC_PIN_GROUP(i2c4_b),
  4236. SH_PFC_PIN_GROUP(i2c4_c),
  4237. SH_PFC_PIN_GROUP(i2c7),
  4238. SH_PFC_PIN_GROUP(i2c7_b),
  4239. SH_PFC_PIN_GROUP(i2c7_c),
  4240. SH_PFC_PIN_GROUP(i2c8),
  4241. SH_PFC_PIN_GROUP(i2c8_b),
  4242. SH_PFC_PIN_GROUP(i2c8_c),
  4243. SH_PFC_PIN_GROUP(intc_irq0),
  4244. SH_PFC_PIN_GROUP(intc_irq1),
  4245. SH_PFC_PIN_GROUP(intc_irq2),
  4246. SH_PFC_PIN_GROUP(intc_irq3),
  4247. SH_PFC_PIN_GROUP(mlb_3pin),
  4248. SH_PFC_PIN_GROUP(mmc_data1),
  4249. SH_PFC_PIN_GROUP(mmc_data4),
  4250. SH_PFC_PIN_GROUP(mmc_data8),
  4251. SH_PFC_PIN_GROUP(mmc_ctrl),
  4252. SH_PFC_PIN_GROUP(msiof0_clk),
  4253. SH_PFC_PIN_GROUP(msiof0_sync),
  4254. SH_PFC_PIN_GROUP(msiof0_ss1),
  4255. SH_PFC_PIN_GROUP(msiof0_ss2),
  4256. SH_PFC_PIN_GROUP(msiof0_rx),
  4257. SH_PFC_PIN_GROUP(msiof0_tx),
  4258. SH_PFC_PIN_GROUP(msiof0_clk_b),
  4259. SH_PFC_PIN_GROUP(msiof0_sync_b),
  4260. SH_PFC_PIN_GROUP(msiof0_ss1_b),
  4261. SH_PFC_PIN_GROUP(msiof0_ss2_b),
  4262. SH_PFC_PIN_GROUP(msiof0_rx_b),
  4263. SH_PFC_PIN_GROUP(msiof0_tx_b),
  4264. SH_PFC_PIN_GROUP(msiof0_clk_c),
  4265. SH_PFC_PIN_GROUP(msiof0_sync_c),
  4266. SH_PFC_PIN_GROUP(msiof0_ss1_c),
  4267. SH_PFC_PIN_GROUP(msiof0_ss2_c),
  4268. SH_PFC_PIN_GROUP(msiof0_rx_c),
  4269. SH_PFC_PIN_GROUP(msiof0_tx_c),
  4270. SH_PFC_PIN_GROUP(msiof1_clk),
  4271. SH_PFC_PIN_GROUP(msiof1_sync),
  4272. SH_PFC_PIN_GROUP(msiof1_ss1),
  4273. SH_PFC_PIN_GROUP(msiof1_ss2),
  4274. SH_PFC_PIN_GROUP(msiof1_rx),
  4275. SH_PFC_PIN_GROUP(msiof1_tx),
  4276. SH_PFC_PIN_GROUP(msiof1_clk_b),
  4277. SH_PFC_PIN_GROUP(msiof1_sync_b),
  4278. SH_PFC_PIN_GROUP(msiof1_ss1_b),
  4279. SH_PFC_PIN_GROUP(msiof1_ss2_b),
  4280. SH_PFC_PIN_GROUP(msiof1_rx_b),
  4281. SH_PFC_PIN_GROUP(msiof1_tx_b),
  4282. SH_PFC_PIN_GROUP(msiof1_clk_c),
  4283. SH_PFC_PIN_GROUP(msiof1_sync_c),
  4284. SH_PFC_PIN_GROUP(msiof1_rx_c),
  4285. SH_PFC_PIN_GROUP(msiof1_tx_c),
  4286. SH_PFC_PIN_GROUP(msiof1_clk_d),
  4287. SH_PFC_PIN_GROUP(msiof1_sync_d),
  4288. SH_PFC_PIN_GROUP(msiof1_ss1_d),
  4289. SH_PFC_PIN_GROUP(msiof1_rx_d),
  4290. SH_PFC_PIN_GROUP(msiof1_tx_d),
  4291. SH_PFC_PIN_GROUP(msiof1_clk_e),
  4292. SH_PFC_PIN_GROUP(msiof1_sync_e),
  4293. SH_PFC_PIN_GROUP(msiof1_rx_e),
  4294. SH_PFC_PIN_GROUP(msiof1_tx_e),
  4295. SH_PFC_PIN_GROUP(msiof2_clk),
  4296. SH_PFC_PIN_GROUP(msiof2_sync),
  4297. SH_PFC_PIN_GROUP(msiof2_ss1),
  4298. SH_PFC_PIN_GROUP(msiof2_ss2),
  4299. SH_PFC_PIN_GROUP(msiof2_rx),
  4300. SH_PFC_PIN_GROUP(msiof2_tx),
  4301. SH_PFC_PIN_GROUP(msiof2_clk_b),
  4302. SH_PFC_PIN_GROUP(msiof2_sync_b),
  4303. SH_PFC_PIN_GROUP(msiof2_ss1_b),
  4304. SH_PFC_PIN_GROUP(msiof2_ss2_b),
  4305. SH_PFC_PIN_GROUP(msiof2_rx_b),
  4306. SH_PFC_PIN_GROUP(msiof2_tx_b),
  4307. SH_PFC_PIN_GROUP(msiof2_clk_c),
  4308. SH_PFC_PIN_GROUP(msiof2_sync_c),
  4309. SH_PFC_PIN_GROUP(msiof2_rx_c),
  4310. SH_PFC_PIN_GROUP(msiof2_tx_c),
  4311. SH_PFC_PIN_GROUP(msiof2_clk_d),
  4312. SH_PFC_PIN_GROUP(msiof2_sync_d),
  4313. SH_PFC_PIN_GROUP(msiof2_ss1_d),
  4314. SH_PFC_PIN_GROUP(msiof2_ss2_d),
  4315. SH_PFC_PIN_GROUP(msiof2_rx_d),
  4316. SH_PFC_PIN_GROUP(msiof2_tx_d),
  4317. SH_PFC_PIN_GROUP(msiof2_clk_e),
  4318. SH_PFC_PIN_GROUP(msiof2_sync_e),
  4319. SH_PFC_PIN_GROUP(msiof2_rx_e),
  4320. SH_PFC_PIN_GROUP(msiof2_tx_e),
  4321. SH_PFC_PIN_GROUP(pwm0),
  4322. SH_PFC_PIN_GROUP(pwm0_b),
  4323. SH_PFC_PIN_GROUP(pwm1),
  4324. SH_PFC_PIN_GROUP(pwm1_b),
  4325. SH_PFC_PIN_GROUP(pwm2),
  4326. SH_PFC_PIN_GROUP(pwm2_b),
  4327. SH_PFC_PIN_GROUP(pwm3),
  4328. SH_PFC_PIN_GROUP(pwm4),
  4329. SH_PFC_PIN_GROUP(pwm4_b),
  4330. SH_PFC_PIN_GROUP(pwm5),
  4331. SH_PFC_PIN_GROUP(pwm5_b),
  4332. SH_PFC_PIN_GROUP(pwm6),
  4333. SH_PFC_PIN_GROUP(qspi_ctrl),
  4334. SH_PFC_PIN_GROUP(qspi_data2),
  4335. SH_PFC_PIN_GROUP(qspi_data4),
  4336. SH_PFC_PIN_GROUP(qspi_ctrl_b),
  4337. SH_PFC_PIN_GROUP(qspi_data2_b),
  4338. SH_PFC_PIN_GROUP(qspi_data4_b),
  4339. SH_PFC_PIN_GROUP(scif0_data),
  4340. SH_PFC_PIN_GROUP(scif0_data_b),
  4341. SH_PFC_PIN_GROUP(scif0_data_c),
  4342. SH_PFC_PIN_GROUP(scif0_data_d),
  4343. SH_PFC_PIN_GROUP(scif0_data_e),
  4344. SH_PFC_PIN_GROUP(scif1_data),
  4345. SH_PFC_PIN_GROUP(scif1_data_b),
  4346. SH_PFC_PIN_GROUP(scif1_clk_b),
  4347. SH_PFC_PIN_GROUP(scif1_data_c),
  4348. SH_PFC_PIN_GROUP(scif1_data_d),
  4349. SH_PFC_PIN_GROUP(scif2_data),
  4350. SH_PFC_PIN_GROUP(scif2_data_b),
  4351. SH_PFC_PIN_GROUP(scif2_clk_b),
  4352. SH_PFC_PIN_GROUP(scif2_data_c),
  4353. SH_PFC_PIN_GROUP(scif2_data_e),
  4354. SH_PFC_PIN_GROUP(scif3_data),
  4355. SH_PFC_PIN_GROUP(scif3_clk),
  4356. SH_PFC_PIN_GROUP(scif3_data_b),
  4357. SH_PFC_PIN_GROUP(scif3_clk_b),
  4358. SH_PFC_PIN_GROUP(scif3_data_c),
  4359. SH_PFC_PIN_GROUP(scif3_data_d),
  4360. SH_PFC_PIN_GROUP(scif4_data),
  4361. SH_PFC_PIN_GROUP(scif4_data_b),
  4362. SH_PFC_PIN_GROUP(scif4_data_c),
  4363. SH_PFC_PIN_GROUP(scif5_data),
  4364. SH_PFC_PIN_GROUP(scif5_data_b),
  4365. SH_PFC_PIN_GROUP(scifa0_data),
  4366. SH_PFC_PIN_GROUP(scifa0_data_b),
  4367. SH_PFC_PIN_GROUP(scifa1_data),
  4368. SH_PFC_PIN_GROUP(scifa1_clk),
  4369. SH_PFC_PIN_GROUP(scifa1_data_b),
  4370. SH_PFC_PIN_GROUP(scifa1_clk_b),
  4371. SH_PFC_PIN_GROUP(scifa1_data_c),
  4372. SH_PFC_PIN_GROUP(scifa2_data),
  4373. SH_PFC_PIN_GROUP(scifa2_clk),
  4374. SH_PFC_PIN_GROUP(scifa2_data_b),
  4375. SH_PFC_PIN_GROUP(scifa3_data),
  4376. SH_PFC_PIN_GROUP(scifa3_clk),
  4377. SH_PFC_PIN_GROUP(scifa3_data_b),
  4378. SH_PFC_PIN_GROUP(scifa3_clk_b),
  4379. SH_PFC_PIN_GROUP(scifa3_data_c),
  4380. SH_PFC_PIN_GROUP(scifa3_clk_c),
  4381. SH_PFC_PIN_GROUP(scifa4_data),
  4382. SH_PFC_PIN_GROUP(scifa4_data_b),
  4383. SH_PFC_PIN_GROUP(scifa4_data_c),
  4384. SH_PFC_PIN_GROUP(scifa5_data),
  4385. SH_PFC_PIN_GROUP(scifa5_data_b),
  4386. SH_PFC_PIN_GROUP(scifa5_data_c),
  4387. SH_PFC_PIN_GROUP(scifb0_data),
  4388. SH_PFC_PIN_GROUP(scifb0_clk),
  4389. SH_PFC_PIN_GROUP(scifb0_ctrl),
  4390. SH_PFC_PIN_GROUP(scifb0_data_b),
  4391. SH_PFC_PIN_GROUP(scifb0_clk_b),
  4392. SH_PFC_PIN_GROUP(scifb0_ctrl_b),
  4393. SH_PFC_PIN_GROUP(scifb0_data_c),
  4394. SH_PFC_PIN_GROUP(scifb0_clk_c),
  4395. SH_PFC_PIN_GROUP(scifb0_data_d),
  4396. SH_PFC_PIN_GROUP(scifb0_clk_d),
  4397. SH_PFC_PIN_GROUP(scifb1_data),
  4398. SH_PFC_PIN_GROUP(scifb1_clk),
  4399. SH_PFC_PIN_GROUP(scifb1_ctrl),
  4400. SH_PFC_PIN_GROUP(scifb1_data_b),
  4401. SH_PFC_PIN_GROUP(scifb1_clk_b),
  4402. SH_PFC_PIN_GROUP(scifb1_data_c),
  4403. SH_PFC_PIN_GROUP(scifb1_clk_c),
  4404. SH_PFC_PIN_GROUP(scifb1_data_d),
  4405. SH_PFC_PIN_GROUP(scifb2_data),
  4406. SH_PFC_PIN_GROUP(scifb2_clk),
  4407. SH_PFC_PIN_GROUP(scifb2_ctrl),
  4408. SH_PFC_PIN_GROUP(scifb2_data_b),
  4409. SH_PFC_PIN_GROUP(scifb2_clk_b),
  4410. SH_PFC_PIN_GROUP(scifb2_ctrl_b),
  4411. SH_PFC_PIN_GROUP(scifb2_data_c),
  4412. SH_PFC_PIN_GROUP(scifb2_clk_c),
  4413. SH_PFC_PIN_GROUP(scifb2_data_d),
  4414. SH_PFC_PIN_GROUP(scif_clk),
  4415. SH_PFC_PIN_GROUP(scif_clk_b),
  4416. SH_PFC_PIN_GROUP(sdhi0_data1),
  4417. SH_PFC_PIN_GROUP(sdhi0_data4),
  4418. SH_PFC_PIN_GROUP(sdhi0_ctrl),
  4419. SH_PFC_PIN_GROUP(sdhi0_cd),
  4420. SH_PFC_PIN_GROUP(sdhi0_wp),
  4421. SH_PFC_PIN_GROUP(sdhi1_data1),
  4422. SH_PFC_PIN_GROUP(sdhi1_data4),
  4423. SH_PFC_PIN_GROUP(sdhi1_ctrl),
  4424. SH_PFC_PIN_GROUP(sdhi1_cd),
  4425. SH_PFC_PIN_GROUP(sdhi1_wp),
  4426. SH_PFC_PIN_GROUP(sdhi2_data1),
  4427. SH_PFC_PIN_GROUP(sdhi2_data4),
  4428. SH_PFC_PIN_GROUP(sdhi2_ctrl),
  4429. SH_PFC_PIN_GROUP(sdhi2_cd),
  4430. SH_PFC_PIN_GROUP(sdhi2_wp),
  4431. SH_PFC_PIN_GROUP(ssi0_data),
  4432. SH_PFC_PIN_GROUP(ssi0_data_b),
  4433. SH_PFC_PIN_GROUP(ssi0129_ctrl),
  4434. SH_PFC_PIN_GROUP(ssi0129_ctrl_b),
  4435. SH_PFC_PIN_GROUP(ssi1_data),
  4436. SH_PFC_PIN_GROUP(ssi1_data_b),
  4437. SH_PFC_PIN_GROUP(ssi1_ctrl),
  4438. SH_PFC_PIN_GROUP(ssi1_ctrl_b),
  4439. SH_PFC_PIN_GROUP(ssi2_data),
  4440. SH_PFC_PIN_GROUP(ssi2_ctrl),
  4441. SH_PFC_PIN_GROUP(ssi3_data),
  4442. SH_PFC_PIN_GROUP(ssi34_ctrl),
  4443. SH_PFC_PIN_GROUP(ssi4_data),
  4444. SH_PFC_PIN_GROUP(ssi4_ctrl),
  4445. SH_PFC_PIN_GROUP(ssi5_data),
  4446. SH_PFC_PIN_GROUP(ssi5_ctrl),
  4447. SH_PFC_PIN_GROUP(ssi6_data),
  4448. SH_PFC_PIN_GROUP(ssi6_ctrl),
  4449. SH_PFC_PIN_GROUP(ssi7_data),
  4450. SH_PFC_PIN_GROUP(ssi7_data_b),
  4451. SH_PFC_PIN_GROUP(ssi78_ctrl),
  4452. SH_PFC_PIN_GROUP(ssi78_ctrl_b),
  4453. SH_PFC_PIN_GROUP(ssi8_data),
  4454. SH_PFC_PIN_GROUP(ssi8_data_b),
  4455. SH_PFC_PIN_GROUP(ssi9_data),
  4456. SH_PFC_PIN_GROUP(ssi9_data_b),
  4457. SH_PFC_PIN_GROUP(ssi9_ctrl),
  4458. SH_PFC_PIN_GROUP(ssi9_ctrl_b),
  4459. SH_PFC_PIN_GROUP(usb0),
  4460. SH_PFC_PIN_GROUP(usb1),
  4461. VIN_DATA_PIN_GROUP(vin0_data, 24),
  4462. VIN_DATA_PIN_GROUP(vin0_data, 20),
  4463. SH_PFC_PIN_GROUP(vin0_data18),
  4464. VIN_DATA_PIN_GROUP(vin0_data, 16),
  4465. VIN_DATA_PIN_GROUP(vin0_data, 12),
  4466. VIN_DATA_PIN_GROUP(vin0_data, 10),
  4467. VIN_DATA_PIN_GROUP(vin0_data, 8),
  4468. SH_PFC_PIN_GROUP(vin0_sync),
  4469. SH_PFC_PIN_GROUP(vin0_field),
  4470. SH_PFC_PIN_GROUP(vin0_clkenb),
  4471. SH_PFC_PIN_GROUP(vin0_clk),
  4472. SH_PFC_PIN_GROUP(vin1_data8),
  4473. SH_PFC_PIN_GROUP(vin1_sync),
  4474. SH_PFC_PIN_GROUP(vin1_field),
  4475. SH_PFC_PIN_GROUP(vin1_clkenb),
  4476. SH_PFC_PIN_GROUP(vin1_clk),
  4477. VIN_DATA_PIN_GROUP(vin1_b_data, 24),
  4478. VIN_DATA_PIN_GROUP(vin1_b_data, 20),
  4479. SH_PFC_PIN_GROUP(vin1_b_data18),
  4480. VIN_DATA_PIN_GROUP(vin1_b_data, 16),
  4481. VIN_DATA_PIN_GROUP(vin1_b_data, 12),
  4482. VIN_DATA_PIN_GROUP(vin1_b_data, 10),
  4483. VIN_DATA_PIN_GROUP(vin1_b_data, 8),
  4484. SH_PFC_PIN_GROUP(vin1_b_sync),
  4485. SH_PFC_PIN_GROUP(vin1_b_field),
  4486. SH_PFC_PIN_GROUP(vin1_b_clkenb),
  4487. SH_PFC_PIN_GROUP(vin1_b_clk),
  4488. SH_PFC_PIN_GROUP(vin2_data8),
  4489. SH_PFC_PIN_GROUP(vin2_sync),
  4490. SH_PFC_PIN_GROUP(vin2_field),
  4491. SH_PFC_PIN_GROUP(vin2_clkenb),
  4492. SH_PFC_PIN_GROUP(vin2_clk),
  4493. };
  4494. static const char * const audio_clk_groups[] = {
  4495. "audio_clk_a",
  4496. "audio_clk_b",
  4497. "audio_clk_b_b",
  4498. "audio_clk_c",
  4499. "audio_clkout",
  4500. };
  4501. static const char * const avb_groups[] = {
  4502. "avb_link",
  4503. "avb_magic",
  4504. "avb_phy_int",
  4505. "avb_mdio",
  4506. "avb_mii",
  4507. "avb_gmii",
  4508. };
  4509. static const char * const can0_groups[] = {
  4510. "can0_data",
  4511. "can0_data_b",
  4512. "can0_data_c",
  4513. "can0_data_d",
  4514. "can0_data_e",
  4515. "can0_data_f",
  4516. "can_clk",
  4517. "can_clk_b",
  4518. "can_clk_c",
  4519. "can_clk_d",
  4520. };
  4521. static const char * const can1_groups[] = {
  4522. "can1_data",
  4523. "can1_data_b",
  4524. "can1_data_c",
  4525. "can1_data_d",
  4526. "can_clk",
  4527. "can_clk_b",
  4528. "can_clk_c",
  4529. "can_clk_d",
  4530. };
  4531. static const char * const du_groups[] = {
  4532. "du_rgb666",
  4533. "du_rgb888",
  4534. "du_clk_out_0",
  4535. "du_clk_out_1",
  4536. "du_sync",
  4537. "du_oddf",
  4538. "du_cde",
  4539. "du_disp",
  4540. };
  4541. static const char * const du0_groups[] = {
  4542. "du0_clk_in",
  4543. };
  4544. static const char * const du1_groups[] = {
  4545. "du1_clk_in",
  4546. "du1_clk_in_b",
  4547. "du1_clk_in_c",
  4548. };
  4549. static const char * const eth_groups[] = {
  4550. "eth_link",
  4551. "eth_magic",
  4552. "eth_mdio",
  4553. "eth_rmii",
  4554. };
  4555. static const char * const hscif0_groups[] = {
  4556. "hscif0_data",
  4557. "hscif0_clk",
  4558. "hscif0_ctrl",
  4559. "hscif0_data_b",
  4560. "hscif0_ctrl_b",
  4561. "hscif0_data_c",
  4562. "hscif0_clk_c",
  4563. };
  4564. static const char * const hscif1_groups[] = {
  4565. "hscif1_data",
  4566. "hscif1_clk",
  4567. "hscif1_ctrl",
  4568. "hscif1_data_b",
  4569. "hscif1_data_c",
  4570. "hscif1_clk_c",
  4571. "hscif1_ctrl_c",
  4572. "hscif1_data_d",
  4573. "hscif1_data_e",
  4574. "hscif1_clk_e",
  4575. "hscif1_ctrl_e",
  4576. };
  4577. static const char * const hscif2_groups[] = {
  4578. "hscif2_data",
  4579. "hscif2_clk",
  4580. "hscif2_ctrl",
  4581. "hscif2_data_b",
  4582. "hscif2_ctrl_b",
  4583. "hscif2_data_c",
  4584. "hscif2_clk_c",
  4585. "hscif2_data_d",
  4586. };
  4587. static const char * const i2c0_groups[] = {
  4588. "i2c0",
  4589. "i2c0_b",
  4590. "i2c0_c",
  4591. };
  4592. static const char * const i2c1_groups[] = {
  4593. "i2c1",
  4594. "i2c1_b",
  4595. "i2c1_c",
  4596. "i2c1_d",
  4597. "i2c1_e",
  4598. };
  4599. static const char * const i2c2_groups[] = {
  4600. "i2c2",
  4601. "i2c2_b",
  4602. "i2c2_c",
  4603. "i2c2_d",
  4604. };
  4605. static const char * const i2c3_groups[] = {
  4606. "i2c3",
  4607. "i2c3_b",
  4608. "i2c3_c",
  4609. "i2c3_d",
  4610. };
  4611. static const char * const i2c4_groups[] = {
  4612. "i2c4",
  4613. "i2c4_b",
  4614. "i2c4_c",
  4615. };
  4616. static const char * const i2c7_groups[] = {
  4617. "i2c7",
  4618. "i2c7_b",
  4619. "i2c7_c",
  4620. };
  4621. static const char * const i2c8_groups[] = {
  4622. "i2c8",
  4623. "i2c8_b",
  4624. "i2c8_c",
  4625. };
  4626. static const char * const intc_groups[] = {
  4627. "intc_irq0",
  4628. "intc_irq1",
  4629. "intc_irq2",
  4630. "intc_irq3",
  4631. };
  4632. static const char * const mlb_groups[] = {
  4633. "mlb_3pin",
  4634. };
  4635. static const char * const mmc_groups[] = {
  4636. "mmc_data1",
  4637. "mmc_data4",
  4638. "mmc_data8",
  4639. "mmc_ctrl",
  4640. };
  4641. static const char * const msiof0_groups[] = {
  4642. "msiof0_clk",
  4643. "msiof0_sync",
  4644. "msiof0_ss1",
  4645. "msiof0_ss2",
  4646. "msiof0_rx",
  4647. "msiof0_tx",
  4648. "msiof0_clk_b",
  4649. "msiof0_sync_b",
  4650. "msiof0_ss1_b",
  4651. "msiof0_ss2_b",
  4652. "msiof0_rx_b",
  4653. "msiof0_tx_b",
  4654. "msiof0_clk_c",
  4655. "msiof0_sync_c",
  4656. "msiof0_ss1_c",
  4657. "msiof0_ss2_c",
  4658. "msiof0_rx_c",
  4659. "msiof0_tx_c",
  4660. };
  4661. static const char * const msiof1_groups[] = {
  4662. "msiof1_clk",
  4663. "msiof1_sync",
  4664. "msiof1_ss1",
  4665. "msiof1_ss2",
  4666. "msiof1_rx",
  4667. "msiof1_tx",
  4668. "msiof1_clk_b",
  4669. "msiof1_sync_b",
  4670. "msiof1_ss1_b",
  4671. "msiof1_ss2_b",
  4672. "msiof1_rx_b",
  4673. "msiof1_tx_b",
  4674. "msiof1_clk_c",
  4675. "msiof1_sync_c",
  4676. "msiof1_rx_c",
  4677. "msiof1_tx_c",
  4678. "msiof1_clk_d",
  4679. "msiof1_sync_d",
  4680. "msiof1_ss1_d",
  4681. "msiof1_rx_d",
  4682. "msiof1_tx_d",
  4683. "msiof1_clk_e",
  4684. "msiof1_sync_e",
  4685. "msiof1_rx_e",
  4686. "msiof1_tx_e",
  4687. };
  4688. static const char * const msiof2_groups[] = {
  4689. "msiof2_clk",
  4690. "msiof2_sync",
  4691. "msiof2_ss1",
  4692. "msiof2_ss2",
  4693. "msiof2_rx",
  4694. "msiof2_tx",
  4695. "msiof2_clk_b",
  4696. "msiof2_sync_b",
  4697. "msiof2_ss1_b",
  4698. "msiof2_ss2_b",
  4699. "msiof2_rx_b",
  4700. "msiof2_tx_b",
  4701. "msiof2_clk_c",
  4702. "msiof2_sync_c",
  4703. "msiof2_rx_c",
  4704. "msiof2_tx_c",
  4705. "msiof2_clk_d",
  4706. "msiof2_sync_d",
  4707. "msiof2_ss1_d",
  4708. "msiof2_ss2_d",
  4709. "msiof2_rx_d",
  4710. "msiof2_tx_d",
  4711. "msiof2_clk_e",
  4712. "msiof2_sync_e",
  4713. "msiof2_rx_e",
  4714. "msiof2_tx_e",
  4715. };
  4716. static const char * const pwm0_groups[] = {
  4717. "pwm0",
  4718. "pwm0_b",
  4719. };
  4720. static const char * const pwm1_groups[] = {
  4721. "pwm1",
  4722. "pwm1_b",
  4723. };
  4724. static const char * const pwm2_groups[] = {
  4725. "pwm2",
  4726. "pwm2_b",
  4727. };
  4728. static const char * const pwm3_groups[] = {
  4729. "pwm3",
  4730. };
  4731. static const char * const pwm4_groups[] = {
  4732. "pwm4",
  4733. "pwm4_b",
  4734. };
  4735. static const char * const pwm5_groups[] = {
  4736. "pwm5",
  4737. "pwm5_b",
  4738. };
  4739. static const char * const pwm6_groups[] = {
  4740. "pwm6",
  4741. };
  4742. static const char * const qspi_groups[] = {
  4743. "qspi_ctrl",
  4744. "qspi_data2",
  4745. "qspi_data4",
  4746. "qspi_ctrl_b",
  4747. "qspi_data2_b",
  4748. "qspi_data4_b",
  4749. };
  4750. static const char * const scif0_groups[] = {
  4751. "scif0_data",
  4752. "scif0_data_b",
  4753. "scif0_data_c",
  4754. "scif0_data_d",
  4755. "scif0_data_e",
  4756. };
  4757. static const char * const scif1_groups[] = {
  4758. "scif1_data",
  4759. "scif1_data_b",
  4760. "scif1_clk_b",
  4761. "scif1_data_c",
  4762. "scif1_data_d",
  4763. };
  4764. static const char * const scif2_groups[] = {
  4765. "scif2_data",
  4766. "scif2_data_b",
  4767. "scif2_clk_b",
  4768. "scif2_data_c",
  4769. "scif2_data_e",
  4770. };
  4771. static const char * const scif3_groups[] = {
  4772. "scif3_data",
  4773. "scif3_clk",
  4774. "scif3_data_b",
  4775. "scif3_clk_b",
  4776. "scif3_data_c",
  4777. "scif3_data_d",
  4778. };
  4779. static const char * const scif4_groups[] = {
  4780. "scif4_data",
  4781. "scif4_data_b",
  4782. "scif4_data_c",
  4783. };
  4784. static const char * const scif5_groups[] = {
  4785. "scif5_data",
  4786. "scif5_data_b",
  4787. };
  4788. static const char * const scifa0_groups[] = {
  4789. "scifa0_data",
  4790. "scifa0_data_b",
  4791. };
  4792. static const char * const scifa1_groups[] = {
  4793. "scifa1_data",
  4794. "scifa1_clk",
  4795. "scifa1_data_b",
  4796. "scifa1_clk_b",
  4797. "scifa1_data_c",
  4798. };
  4799. static const char * const scifa2_groups[] = {
  4800. "scifa2_data",
  4801. "scifa2_clk",
  4802. "scifa2_data_b",
  4803. };
  4804. static const char * const scifa3_groups[] = {
  4805. "scifa3_data",
  4806. "scifa3_clk",
  4807. "scifa3_data_b",
  4808. "scifa3_clk_b",
  4809. "scifa3_data_c",
  4810. "scifa3_clk_c",
  4811. };
  4812. static const char * const scifa4_groups[] = {
  4813. "scifa4_data",
  4814. "scifa4_data_b",
  4815. "scifa4_data_c",
  4816. };
  4817. static const char * const scifa5_groups[] = {
  4818. "scifa5_data",
  4819. "scifa5_data_b",
  4820. "scifa5_data_c",
  4821. };
  4822. static const char * const scifb0_groups[] = {
  4823. "scifb0_data",
  4824. "scifb0_clk",
  4825. "scifb0_ctrl",
  4826. "scifb0_data_b",
  4827. "scifb0_clk_b",
  4828. "scifb0_ctrl_b",
  4829. "scifb0_data_c",
  4830. "scifb0_clk_c",
  4831. "scifb0_data_d",
  4832. "scifb0_clk_d",
  4833. };
  4834. static const char * const scifb1_groups[] = {
  4835. "scifb1_data",
  4836. "scifb1_clk",
  4837. "scifb1_ctrl",
  4838. "scifb1_data_b",
  4839. "scifb1_clk_b",
  4840. "scifb1_data_c",
  4841. "scifb1_clk_c",
  4842. "scifb1_data_d",
  4843. };
  4844. static const char * const scifb2_groups[] = {
  4845. "scifb2_data",
  4846. "scifb2_clk",
  4847. "scifb2_ctrl",
  4848. "scifb2_data_b",
  4849. "scifb2_clk_b",
  4850. "scifb2_ctrl_b",
  4851. "scifb0_data_c",
  4852. "scifb2_clk_c",
  4853. "scifb2_data_d",
  4854. };
  4855. static const char * const scif_clk_groups[] = {
  4856. "scif_clk",
  4857. "scif_clk_b",
  4858. };
  4859. static const char * const sdhi0_groups[] = {
  4860. "sdhi0_data1",
  4861. "sdhi0_data4",
  4862. "sdhi0_ctrl",
  4863. "sdhi0_cd",
  4864. "sdhi0_wp",
  4865. };
  4866. static const char * const sdhi1_groups[] = {
  4867. "sdhi1_data1",
  4868. "sdhi1_data4",
  4869. "sdhi1_ctrl",
  4870. "sdhi1_cd",
  4871. "sdhi1_wp",
  4872. };
  4873. static const char * const sdhi2_groups[] = {
  4874. "sdhi2_data1",
  4875. "sdhi2_data4",
  4876. "sdhi2_ctrl",
  4877. "sdhi2_cd",
  4878. "sdhi2_wp",
  4879. };
  4880. static const char * const ssi_groups[] = {
  4881. "ssi0_data",
  4882. "ssi0_data_b",
  4883. "ssi0129_ctrl",
  4884. "ssi0129_ctrl_b",
  4885. "ssi1_data",
  4886. "ssi1_data_b",
  4887. "ssi1_ctrl",
  4888. "ssi1_ctrl_b",
  4889. "ssi2_data",
  4890. "ssi2_ctrl",
  4891. "ssi3_data",
  4892. "ssi34_ctrl",
  4893. "ssi4_data",
  4894. "ssi4_ctrl",
  4895. "ssi5_data",
  4896. "ssi5_ctrl",
  4897. "ssi6_data",
  4898. "ssi6_ctrl",
  4899. "ssi7_data",
  4900. "ssi7_data_b",
  4901. "ssi78_ctrl",
  4902. "ssi78_ctrl_b",
  4903. "ssi8_data",
  4904. "ssi8_data_b",
  4905. "ssi9_data",
  4906. "ssi9_data_b",
  4907. "ssi9_ctrl",
  4908. "ssi9_ctrl_b",
  4909. };
  4910. static const char * const usb0_groups[] = {
  4911. "usb0",
  4912. };
  4913. static const char * const usb1_groups[] = {
  4914. "usb1",
  4915. };
  4916. static const char * const vin0_groups[] = {
  4917. "vin0_data24",
  4918. "vin0_data20",
  4919. "vin0_data18",
  4920. "vin0_data16",
  4921. "vin0_data12",
  4922. "vin0_data10",
  4923. "vin0_data8",
  4924. "vin0_sync",
  4925. "vin0_field",
  4926. "vin0_clkenb",
  4927. "vin0_clk",
  4928. };
  4929. static const char * const vin1_groups[] = {
  4930. "vin1_data8",
  4931. "vin1_sync",
  4932. "vin1_field",
  4933. "vin1_clkenb",
  4934. "vin1_clk",
  4935. "vin1_b_data24",
  4936. "vin1_b_data20",
  4937. "vin1_b_data18",
  4938. "vin1_b_data16",
  4939. "vin1_b_data12",
  4940. "vin1_b_data10",
  4941. "vin1_b_data8",
  4942. "vin1_b_sync",
  4943. "vin1_b_field",
  4944. "vin1_b_clkenb",
  4945. "vin1_b_clk",
  4946. };
  4947. static const char * const vin2_groups[] = {
  4948. "vin2_data8",
  4949. "vin2_sync",
  4950. "vin2_field",
  4951. "vin2_clkenb",
  4952. "vin2_clk",
  4953. };
  4954. static const struct sh_pfc_function pinmux_functions[] = {
  4955. SH_PFC_FUNCTION(audio_clk),
  4956. SH_PFC_FUNCTION(avb),
  4957. SH_PFC_FUNCTION(can0),
  4958. SH_PFC_FUNCTION(can1),
  4959. SH_PFC_FUNCTION(du),
  4960. SH_PFC_FUNCTION(du0),
  4961. SH_PFC_FUNCTION(du1),
  4962. SH_PFC_FUNCTION(eth),
  4963. SH_PFC_FUNCTION(hscif0),
  4964. SH_PFC_FUNCTION(hscif1),
  4965. SH_PFC_FUNCTION(hscif2),
  4966. SH_PFC_FUNCTION(i2c0),
  4967. SH_PFC_FUNCTION(i2c1),
  4968. SH_PFC_FUNCTION(i2c2),
  4969. SH_PFC_FUNCTION(i2c3),
  4970. SH_PFC_FUNCTION(i2c4),
  4971. SH_PFC_FUNCTION(i2c7),
  4972. SH_PFC_FUNCTION(i2c8),
  4973. SH_PFC_FUNCTION(intc),
  4974. SH_PFC_FUNCTION(mlb),
  4975. SH_PFC_FUNCTION(mmc),
  4976. SH_PFC_FUNCTION(msiof0),
  4977. SH_PFC_FUNCTION(msiof1),
  4978. SH_PFC_FUNCTION(msiof2),
  4979. SH_PFC_FUNCTION(pwm0),
  4980. SH_PFC_FUNCTION(pwm1),
  4981. SH_PFC_FUNCTION(pwm2),
  4982. SH_PFC_FUNCTION(pwm3),
  4983. SH_PFC_FUNCTION(pwm4),
  4984. SH_PFC_FUNCTION(pwm5),
  4985. SH_PFC_FUNCTION(pwm6),
  4986. SH_PFC_FUNCTION(qspi),
  4987. SH_PFC_FUNCTION(scif0),
  4988. SH_PFC_FUNCTION(scif1),
  4989. SH_PFC_FUNCTION(scif2),
  4990. SH_PFC_FUNCTION(scif3),
  4991. SH_PFC_FUNCTION(scif4),
  4992. SH_PFC_FUNCTION(scif5),
  4993. SH_PFC_FUNCTION(scifa0),
  4994. SH_PFC_FUNCTION(scifa1),
  4995. SH_PFC_FUNCTION(scifa2),
  4996. SH_PFC_FUNCTION(scifa3),
  4997. SH_PFC_FUNCTION(scifa4),
  4998. SH_PFC_FUNCTION(scifa5),
  4999. SH_PFC_FUNCTION(scifb0),
  5000. SH_PFC_FUNCTION(scifb1),
  5001. SH_PFC_FUNCTION(scifb2),
  5002. SH_PFC_FUNCTION(scif_clk),
  5003. SH_PFC_FUNCTION(sdhi0),
  5004. SH_PFC_FUNCTION(sdhi1),
  5005. SH_PFC_FUNCTION(sdhi2),
  5006. SH_PFC_FUNCTION(ssi),
  5007. SH_PFC_FUNCTION(usb0),
  5008. SH_PFC_FUNCTION(usb1),
  5009. SH_PFC_FUNCTION(vin0),
  5010. SH_PFC_FUNCTION(vin1),
  5011. SH_PFC_FUNCTION(vin2),
  5012. };
  5013. static const struct pinmux_cfg_reg pinmux_config_regs[] = {
  5014. { PINMUX_CFG_REG("GPSR0", 0xE6060004, 32, 1) {
  5015. GP_0_31_FN, FN_IP1_22_20,
  5016. GP_0_30_FN, FN_IP1_19_17,
  5017. GP_0_29_FN, FN_IP1_16_14,
  5018. GP_0_28_FN, FN_IP1_13_11,
  5019. GP_0_27_FN, FN_IP1_10_8,
  5020. GP_0_26_FN, FN_IP1_7_6,
  5021. GP_0_25_FN, FN_IP1_5_4,
  5022. GP_0_24_FN, FN_IP1_3_2,
  5023. GP_0_23_FN, FN_IP1_1_0,
  5024. GP_0_22_FN, FN_IP0_30_29,
  5025. GP_0_21_FN, FN_IP0_28_27,
  5026. GP_0_20_FN, FN_IP0_26_25,
  5027. GP_0_19_FN, FN_IP0_24_23,
  5028. GP_0_18_FN, FN_IP0_22_21,
  5029. GP_0_17_FN, FN_IP0_20_19,
  5030. GP_0_16_FN, FN_IP0_18_16,
  5031. GP_0_15_FN, FN_IP0_15,
  5032. GP_0_14_FN, FN_IP0_14,
  5033. GP_0_13_FN, FN_IP0_13,
  5034. GP_0_12_FN, FN_IP0_12,
  5035. GP_0_11_FN, FN_IP0_11,
  5036. GP_0_10_FN, FN_IP0_10,
  5037. GP_0_9_FN, FN_IP0_9,
  5038. GP_0_8_FN, FN_IP0_8,
  5039. GP_0_7_FN, FN_IP0_7,
  5040. GP_0_6_FN, FN_IP0_6,
  5041. GP_0_5_FN, FN_IP0_5,
  5042. GP_0_4_FN, FN_IP0_4,
  5043. GP_0_3_FN, FN_IP0_3,
  5044. GP_0_2_FN, FN_IP0_2,
  5045. GP_0_1_FN, FN_IP0_1,
  5046. GP_0_0_FN, FN_IP0_0, }
  5047. },
  5048. { PINMUX_CFG_REG("GPSR1", 0xE6060008, 32, 1) {
  5049. 0, 0,
  5050. 0, 0,
  5051. 0, 0,
  5052. 0, 0,
  5053. 0, 0,
  5054. 0, 0,
  5055. GP_1_25_FN, FN_IP3_21_20,
  5056. GP_1_24_FN, FN_IP3_19_18,
  5057. GP_1_23_FN, FN_IP3_17_16,
  5058. GP_1_22_FN, FN_IP3_15_14,
  5059. GP_1_21_FN, FN_IP3_13_12,
  5060. GP_1_20_FN, FN_IP3_11_9,
  5061. GP_1_19_FN, FN_RD_N,
  5062. GP_1_18_FN, FN_IP3_8_6,
  5063. GP_1_17_FN, FN_IP3_5_3,
  5064. GP_1_16_FN, FN_IP3_2_0,
  5065. GP_1_15_FN, FN_IP2_29_27,
  5066. GP_1_14_FN, FN_IP2_26_25,
  5067. GP_1_13_FN, FN_IP2_24_23,
  5068. GP_1_12_FN, FN_EX_CS0_N,
  5069. GP_1_11_FN, FN_IP2_22_21,
  5070. GP_1_10_FN, FN_IP2_20_19,
  5071. GP_1_9_FN, FN_IP2_18_16,
  5072. GP_1_8_FN, FN_IP2_15_13,
  5073. GP_1_7_FN, FN_IP2_12_10,
  5074. GP_1_6_FN, FN_IP2_9_7,
  5075. GP_1_5_FN, FN_IP2_6_5,
  5076. GP_1_4_FN, FN_IP2_4_3,
  5077. GP_1_3_FN, FN_IP2_2_0,
  5078. GP_1_2_FN, FN_IP1_31_29,
  5079. GP_1_1_FN, FN_IP1_28_26,
  5080. GP_1_0_FN, FN_IP1_25_23, }
  5081. },
  5082. { PINMUX_CFG_REG("GPSR2", 0xE606000C, 32, 1) {
  5083. GP_2_31_FN, FN_IP6_7_6,
  5084. GP_2_30_FN, FN_IP6_5_3,
  5085. GP_2_29_FN, FN_IP6_2_0,
  5086. GP_2_28_FN, FN_AUDIO_CLKA,
  5087. GP_2_27_FN, FN_IP5_31_29,
  5088. GP_2_26_FN, FN_IP5_28_26,
  5089. GP_2_25_FN, FN_IP5_25_24,
  5090. GP_2_24_FN, FN_IP5_23_22,
  5091. GP_2_23_FN, FN_IP5_21_20,
  5092. GP_2_22_FN, FN_IP5_19_17,
  5093. GP_2_21_FN, FN_IP5_16_15,
  5094. GP_2_20_FN, FN_IP5_14_12,
  5095. GP_2_19_FN, FN_IP5_11_9,
  5096. GP_2_18_FN, FN_IP5_8_6,
  5097. GP_2_17_FN, FN_IP5_5_3,
  5098. GP_2_16_FN, FN_IP5_2_0,
  5099. GP_2_15_FN, FN_IP4_30_28,
  5100. GP_2_14_FN, FN_IP4_27_26,
  5101. GP_2_13_FN, FN_IP4_25_24,
  5102. GP_2_12_FN, FN_IP4_23_22,
  5103. GP_2_11_FN, FN_IP4_21,
  5104. GP_2_10_FN, FN_IP4_20,
  5105. GP_2_9_FN, FN_IP4_19,
  5106. GP_2_8_FN, FN_IP4_18_16,
  5107. GP_2_7_FN, FN_IP4_15_13,
  5108. GP_2_6_FN, FN_IP4_12_10,
  5109. GP_2_5_FN, FN_IP4_9_8,
  5110. GP_2_4_FN, FN_IP4_7_5,
  5111. GP_2_3_FN, FN_IP4_4_2,
  5112. GP_2_2_FN, FN_IP4_1_0,
  5113. GP_2_1_FN, FN_IP3_30_28,
  5114. GP_2_0_FN, FN_IP3_27_25 }
  5115. },
  5116. { PINMUX_CFG_REG("GPSR3", 0xE6060010, 32, 1) {
  5117. GP_3_31_FN, FN_IP9_18_17,
  5118. GP_3_30_FN, FN_IP9_16,
  5119. GP_3_29_FN, FN_IP9_15_13,
  5120. GP_3_28_FN, FN_IP9_12,
  5121. GP_3_27_FN, FN_IP9_11,
  5122. GP_3_26_FN, FN_IP9_10_8,
  5123. GP_3_25_FN, FN_IP9_7,
  5124. GP_3_24_FN, FN_IP9_6,
  5125. GP_3_23_FN, FN_IP9_5_3,
  5126. GP_3_22_FN, FN_IP9_2_0,
  5127. GP_3_21_FN, FN_IP8_30_28,
  5128. GP_3_20_FN, FN_IP8_27_26,
  5129. GP_3_19_FN, FN_IP8_25_24,
  5130. GP_3_18_FN, FN_IP8_23_21,
  5131. GP_3_17_FN, FN_IP8_20_18,
  5132. GP_3_16_FN, FN_IP8_17_15,
  5133. GP_3_15_FN, FN_IP8_14_12,
  5134. GP_3_14_FN, FN_IP8_11_9,
  5135. GP_3_13_FN, FN_IP8_8_6,
  5136. GP_3_12_FN, FN_IP8_5_3,
  5137. GP_3_11_FN, FN_IP8_2_0,
  5138. GP_3_10_FN, FN_IP7_29_27,
  5139. GP_3_9_FN, FN_IP7_26_24,
  5140. GP_3_8_FN, FN_IP7_23_21,
  5141. GP_3_7_FN, FN_IP7_20_19,
  5142. GP_3_6_FN, FN_IP7_18_17,
  5143. GP_3_5_FN, FN_IP7_16_15,
  5144. GP_3_4_FN, FN_IP7_14_13,
  5145. GP_3_3_FN, FN_IP7_12_11,
  5146. GP_3_2_FN, FN_IP7_10_9,
  5147. GP_3_1_FN, FN_IP7_8_6,
  5148. GP_3_0_FN, FN_IP7_5_3 }
  5149. },
  5150. { PINMUX_CFG_REG("GPSR4", 0xE6060014, 32, 1) {
  5151. GP_4_31_FN, FN_IP15_5_4,
  5152. GP_4_30_FN, FN_IP15_3_2,
  5153. GP_4_29_FN, FN_IP15_1_0,
  5154. GP_4_28_FN, FN_IP11_8_6,
  5155. GP_4_27_FN, FN_IP11_5_3,
  5156. GP_4_26_FN, FN_IP11_2_0,
  5157. GP_4_25_FN, FN_IP10_31_29,
  5158. GP_4_24_FN, FN_IP10_28_27,
  5159. GP_4_23_FN, FN_IP10_26_25,
  5160. GP_4_22_FN, FN_IP10_24_22,
  5161. GP_4_21_FN, FN_IP10_21_19,
  5162. GP_4_20_FN, FN_IP10_18_17,
  5163. GP_4_19_FN, FN_IP10_16_15,
  5164. GP_4_18_FN, FN_IP10_14_12,
  5165. GP_4_17_FN, FN_IP10_11_9,
  5166. GP_4_16_FN, FN_IP10_8_6,
  5167. GP_4_15_FN, FN_IP10_5_3,
  5168. GP_4_14_FN, FN_IP10_2_0,
  5169. GP_4_13_FN, FN_IP9_31_29,
  5170. GP_4_12_FN, FN_VI0_DATA7_VI0_B7,
  5171. GP_4_11_FN, FN_VI0_DATA6_VI0_B6,
  5172. GP_4_10_FN, FN_VI0_DATA5_VI0_B5,
  5173. GP_4_9_FN, FN_VI0_DATA4_VI0_B4,
  5174. GP_4_8_FN, FN_IP9_28_27,
  5175. GP_4_7_FN, FN_VI0_DATA2_VI0_B2,
  5176. GP_4_6_FN, FN_VI0_DATA1_VI0_B1,
  5177. GP_4_5_FN, FN_VI0_DATA0_VI0_B0,
  5178. GP_4_4_FN, FN_IP9_26_25,
  5179. GP_4_3_FN, FN_IP9_24_23,
  5180. GP_4_2_FN, FN_IP9_22_21,
  5181. GP_4_1_FN, FN_IP9_20_19,
  5182. GP_4_0_FN, FN_VI0_CLK }
  5183. },
  5184. { PINMUX_CFG_REG("GPSR5", 0xE6060018, 32, 1) {
  5185. GP_5_31_FN, FN_IP3_24_22,
  5186. GP_5_30_FN, FN_IP13_9_7,
  5187. GP_5_29_FN, FN_IP13_6_5,
  5188. GP_5_28_FN, FN_IP13_4_3,
  5189. GP_5_27_FN, FN_IP13_2_0,
  5190. GP_5_26_FN, FN_IP12_29_27,
  5191. GP_5_25_FN, FN_IP12_26_24,
  5192. GP_5_24_FN, FN_IP12_23_22,
  5193. GP_5_23_FN, FN_IP12_21_20,
  5194. GP_5_22_FN, FN_IP12_19_18,
  5195. GP_5_21_FN, FN_IP12_17_16,
  5196. GP_5_20_FN, FN_IP12_15_13,
  5197. GP_5_19_FN, FN_IP12_12_10,
  5198. GP_5_18_FN, FN_IP12_9_7,
  5199. GP_5_17_FN, FN_IP12_6_4,
  5200. GP_5_16_FN, FN_IP12_3_2,
  5201. GP_5_15_FN, FN_IP12_1_0,
  5202. GP_5_14_FN, FN_IP11_31_30,
  5203. GP_5_13_FN, FN_IP11_29_28,
  5204. GP_5_12_FN, FN_IP11_27,
  5205. GP_5_11_FN, FN_IP11_26,
  5206. GP_5_10_FN, FN_IP11_25,
  5207. GP_5_9_FN, FN_IP11_24,
  5208. GP_5_8_FN, FN_IP11_23,
  5209. GP_5_7_FN, FN_IP11_22,
  5210. GP_5_6_FN, FN_IP11_21,
  5211. GP_5_5_FN, FN_IP11_20,
  5212. GP_5_4_FN, FN_IP11_19,
  5213. GP_5_3_FN, FN_IP11_18_17,
  5214. GP_5_2_FN, FN_IP11_16_15,
  5215. GP_5_1_FN, FN_IP11_14_12,
  5216. GP_5_0_FN, FN_IP11_11_9 }
  5217. },
  5218. { PINMUX_CFG_REG("GPSR6", 0xE606001C, 32, 1) {
  5219. GP_6_31_FN, FN_DU0_DOTCLKIN,
  5220. GP_6_30_FN, FN_USB1_OVC,
  5221. GP_6_29_FN, FN_IP14_31_29,
  5222. GP_6_28_FN, FN_IP14_28_26,
  5223. GP_6_27_FN, FN_IP14_25_23,
  5224. GP_6_26_FN, FN_IP14_22_20,
  5225. GP_6_25_FN, FN_IP14_19_17,
  5226. GP_6_24_FN, FN_IP14_16_14,
  5227. GP_6_23_FN, FN_IP14_13_11,
  5228. GP_6_22_FN, FN_IP14_10_8,
  5229. GP_6_21_FN, FN_IP14_7,
  5230. GP_6_20_FN, FN_IP14_6,
  5231. GP_6_19_FN, FN_IP14_5,
  5232. GP_6_18_FN, FN_IP14_4,
  5233. GP_6_17_FN, FN_IP14_3,
  5234. GP_6_16_FN, FN_IP14_2,
  5235. GP_6_15_FN, FN_IP14_1_0,
  5236. GP_6_14_FN, FN_IP13_30_28,
  5237. GP_6_13_FN, FN_IP13_27,
  5238. GP_6_12_FN, FN_IP13_26,
  5239. GP_6_11_FN, FN_IP13_25,
  5240. GP_6_10_FN, FN_IP13_24_23,
  5241. GP_6_9_FN, FN_IP13_22,
  5242. GP_6_8_FN, FN_SD1_CLK,
  5243. GP_6_7_FN, FN_IP13_21_19,
  5244. GP_6_6_FN, FN_IP13_18_16,
  5245. GP_6_5_FN, FN_IP13_15,
  5246. GP_6_4_FN, FN_IP13_14,
  5247. GP_6_3_FN, FN_IP13_13,
  5248. GP_6_2_FN, FN_IP13_12,
  5249. GP_6_1_FN, FN_IP13_11,
  5250. GP_6_0_FN, FN_IP13_10 }
  5251. },
  5252. { PINMUX_CFG_REG("GPSR7", 0xE6060074, 32, 1) {
  5253. 0, 0,
  5254. 0, 0,
  5255. 0, 0,
  5256. 0, 0,
  5257. 0, 0,
  5258. 0, 0,
  5259. GP_7_25_FN, FN_USB1_PWEN,
  5260. GP_7_24_FN, FN_USB0_OVC,
  5261. GP_7_23_FN, FN_USB0_PWEN,
  5262. GP_7_22_FN, FN_IP15_14_12,
  5263. GP_7_21_FN, FN_IP15_11_9,
  5264. GP_7_20_FN, FN_IP15_8_6,
  5265. GP_7_19_FN, FN_IP7_2_0,
  5266. GP_7_18_FN, FN_IP6_29_27,
  5267. GP_7_17_FN, FN_IP6_26_24,
  5268. GP_7_16_FN, FN_IP6_23_21,
  5269. GP_7_15_FN, FN_IP6_20_19,
  5270. GP_7_14_FN, FN_IP6_18_16,
  5271. GP_7_13_FN, FN_IP6_15_14,
  5272. GP_7_12_FN, FN_IP6_13_12,
  5273. GP_7_11_FN, FN_IP6_11_10,
  5274. GP_7_10_FN, FN_IP6_9_8,
  5275. GP_7_9_FN, FN_IP16_11_10,
  5276. GP_7_8_FN, FN_IP16_9_8,
  5277. GP_7_7_FN, FN_IP16_7_6,
  5278. GP_7_6_FN, FN_IP16_5_3,
  5279. GP_7_5_FN, FN_IP16_2_0,
  5280. GP_7_4_FN, FN_IP15_29_27,
  5281. GP_7_3_FN, FN_IP15_26_24,
  5282. GP_7_2_FN, FN_IP15_23_21,
  5283. GP_7_1_FN, FN_IP15_20_18,
  5284. GP_7_0_FN, FN_IP15_17_15 }
  5285. },
  5286. { PINMUX_CFG_REG_VAR("IPSR0", 0xE6060020, 32,
  5287. 1, 2, 2, 2, 2, 2, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1,
  5288. 1, 1, 1, 1, 1, 1, 1, 1) {
  5289. /* IP0_31 [1] */
  5290. 0, 0,
  5291. /* IP0_30_29 [2] */
  5292. FN_A6, FN_MSIOF1_SCK,
  5293. 0, 0,
  5294. /* IP0_28_27 [2] */
  5295. FN_A5, FN_MSIOF0_RXD_B,
  5296. 0, 0,
  5297. /* IP0_26_25 [2] */
  5298. FN_A4, FN_MSIOF0_TXD_B,
  5299. 0, 0,
  5300. /* IP0_24_23 [2] */
  5301. FN_A3, FN_MSIOF0_SS2_B,
  5302. 0, 0,
  5303. /* IP0_22_21 [2] */
  5304. FN_A2, FN_MSIOF0_SS1_B,
  5305. 0, 0,
  5306. /* IP0_20_19 [2] */
  5307. FN_A1, FN_MSIOF0_SYNC_B,
  5308. 0, 0,
  5309. /* IP0_18_16 [3] */
  5310. FN_A0, FN_ATAWR0_N_C, FN_MSIOF0_SCK_B, FN_SCL0_C, FN_PWM2_B,
  5311. 0, 0, 0,
  5312. /* IP0_15 [1] */
  5313. FN_D15, 0,
  5314. /* IP0_14 [1] */
  5315. FN_D14, 0,
  5316. /* IP0_13 [1] */
  5317. FN_D13, 0,
  5318. /* IP0_12 [1] */
  5319. FN_D12, 0,
  5320. /* IP0_11 [1] */
  5321. FN_D11, 0,
  5322. /* IP0_10 [1] */
  5323. FN_D10, 0,
  5324. /* IP0_9 [1] */
  5325. FN_D9, 0,
  5326. /* IP0_8 [1] */
  5327. FN_D8, 0,
  5328. /* IP0_7 [1] */
  5329. FN_D7, 0,
  5330. /* IP0_6 [1] */
  5331. FN_D6, 0,
  5332. /* IP0_5 [1] */
  5333. FN_D5, 0,
  5334. /* IP0_4 [1] */
  5335. FN_D4, 0,
  5336. /* IP0_3 [1] */
  5337. FN_D3, 0,
  5338. /* IP0_2 [1] */
  5339. FN_D2, 0,
  5340. /* IP0_1 [1] */
  5341. FN_D1, 0,
  5342. /* IP0_0 [1] */
  5343. FN_D0, 0, }
  5344. },
  5345. { PINMUX_CFG_REG_VAR("IPSR1", 0xE6060024, 32,
  5346. 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2) {
  5347. /* IP1_31_29 [3] */
  5348. FN_A18, FN_DREQ1, FN_SCIFA1_RXD_C, 0, FN_SCIFB1_RXD_C,
  5349. 0, 0, 0,
  5350. /* IP1_28_26 [3] */
  5351. FN_A17, FN_DACK2_B, 0, FN_SDA0_C,
  5352. 0, 0, 0, 0,
  5353. /* IP1_25_23 [3] */
  5354. FN_A16, FN_DREQ2_B, FN_FMCLK_C, 0, FN_SCIFA1_SCK_B,
  5355. 0, 0, 0,
  5356. /* IP1_22_20 [3] */
  5357. FN_A15, FN_BPFCLK_C,
  5358. 0, 0, 0, 0, 0, 0,
  5359. /* IP1_19_17 [3] */
  5360. FN_A14, FN_ATADIR0_N_C, FN_FMIN, FN_FMIN_C, FN_MSIOF1_SYNC_D,
  5361. 0, 0, 0,
  5362. /* IP1_16_14 [3] */
  5363. FN_A13, FN_ATAG0_N_C, FN_BPFCLK, FN_MSIOF1_SS1_D,
  5364. 0, 0, 0, 0,
  5365. /* IP1_13_11 [3] */
  5366. FN_A12, FN_FMCLK, FN_SDA3_D, FN_MSIOF1_SCK_D,
  5367. 0, 0, 0, 0,
  5368. /* IP1_10_8 [3] */
  5369. FN_A11, FN_MSIOF1_RXD, FN_SCL3_D, FN_MSIOF1_RXD_D,
  5370. 0, 0, 0, 0,
  5371. /* IP1_7_6 [2] */
  5372. FN_A10, FN_MSIOF1_TXD, 0, FN_MSIOF1_TXD_D,
  5373. /* IP1_5_4 [2] */
  5374. FN_A9, FN_MSIOF1_SS2, FN_SDA0, 0,
  5375. /* IP1_3_2 [2] */
  5376. FN_A8, FN_MSIOF1_SS1, FN_SCL0, 0,
  5377. /* IP1_1_0 [2] */
  5378. FN_A7, FN_MSIOF1_SYNC,
  5379. 0, 0, }
  5380. },
  5381. { PINMUX_CFG_REG_VAR("IPSR2", 0xE6060028, 32,
  5382. 2, 3, 2, 2, 2, 2, 3, 3, 3, 3, 2, 2, 3) {
  5383. /* IP2_31_20 [2] */
  5384. 0, 0, 0, 0,
  5385. /* IP2_29_27 [3] */
  5386. FN_EX_CS3_N, FN_ATADIR0_N, FN_MSIOF2_TXD,
  5387. FN_ATAG0_N, 0, FN_EX_WAIT1,
  5388. 0, 0,
  5389. /* IP2_26_25 [2] */
  5390. FN_EX_CS2_N, FN_ATAWR0_N, FN_MSIOF2_SYNC, 0,
  5391. /* IP2_24_23 [2] */
  5392. FN_EX_CS1_N, FN_MSIOF2_SCK, 0, 0,
  5393. /* IP2_22_21 [2] */
  5394. FN_CS1_N_A26, FN_ATADIR0_N_B, FN_SDA1, 0,
  5395. /* IP2_20_19 [2] */
  5396. FN_CS0_N, FN_ATAG0_N_B, FN_SCL1, 0,
  5397. /* IP2_18_16 [3] */
  5398. FN_A25, FN_DACK2, FN_SSL, FN_DREQ1_C, FN_RX1, FN_SCIFA1_RXD,
  5399. 0, 0,
  5400. /* IP2_15_13 [3] */
  5401. FN_A24, FN_DREQ2, FN_IO3, FN_TX1, FN_SCIFA1_TXD,
  5402. 0, 0, 0,
  5403. /* IP2_12_0 [3] */
  5404. FN_A23, FN_IO2, FN_BPFCLK_B, FN_RX0, FN_SCIFA0_RXD,
  5405. 0, 0, 0,
  5406. /* IP2_9_7 [3] */
  5407. FN_A22, FN_MISO_IO1, FN_FMCLK_B, FN_TX0, FN_SCIFA0_TXD,
  5408. 0, 0, 0,
  5409. /* IP2_6_5 [2] */
  5410. FN_A21, FN_ATAWR0_N_B, FN_MOSI_IO0, 0,
  5411. /* IP2_4_3 [2] */
  5412. FN_A20, FN_SPCLK, 0, 0,
  5413. /* IP2_2_0 [3] */
  5414. FN_A19, FN_DACK1, FN_SCIFA1_TXD_C, 0,
  5415. FN_SCIFB1_TXD_C, 0, FN_SCIFB1_SCK_B, 0, }
  5416. },
  5417. { PINMUX_CFG_REG_VAR("IPSR3", 0xE606002C, 32,
  5418. 1, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3) {
  5419. /* IP3_31 [1] */
  5420. 0, 0,
  5421. /* IP3_30_28 [3] */
  5422. FN_SSI_WS0129, FN_HTX0_C, FN_HTX2_C,
  5423. FN_SCIFB0_TXD_C, FN_SCIFB2_TXD_C,
  5424. 0, 0, 0,
  5425. /* IP3_27_25 [3] */
  5426. FN_SSI_SCK0129, FN_HRX0_C, FN_HRX2_C,
  5427. FN_SCIFB0_RXD_C, FN_SCIFB2_RXD_C,
  5428. 0, 0, 0,
  5429. /* IP3_24_22 [3] */
  5430. FN_SPEEDIN, 0, FN_HSCK0_C, FN_HSCK2_C, FN_SCIFB0_SCK_B,
  5431. FN_SCIFB2_SCK_B, FN_DREQ2_C, FN_HTX2_D,
  5432. /* IP3_21_20 [2] */
  5433. FN_DACK0, FN_DRACK0, FN_REMOCON, 0,
  5434. /* IP3_19_18 [2] */
  5435. FN_DREQ0, FN_PWM3, FN_TPU_TO3, 0,
  5436. /* IP3_17_16 [2] */
  5437. FN_EX_WAIT0, FN_HRTS2_N_B, FN_SCIFB0_CTS_N_B, 0,
  5438. /* IP3_15_14 [2] */
  5439. FN_WE1_N, FN_ATARD0_N_B, FN_HTX2_B, FN_SCIFB0_RTS_N_B,
  5440. /* IP3_13_12 [2] */
  5441. FN_WE0_N, FN_HCTS2_N_B, FN_SCIFB0_TXD_B, 0,
  5442. /* IP3_11_9 [3] */
  5443. FN_RD_WR_N, FN_HRX2_B, FN_FMIN_B, FN_SCIFB0_RXD_B, FN_DREQ1_D,
  5444. 0, 0, 0,
  5445. /* IP3_8_6 [3] */
  5446. FN_BS_N, FN_ATACS10_N, FN_MSIOF2_SS2, FN_HTX1_B,
  5447. FN_SCIFB1_TXD_B, FN_PWM2, FN_TPU_TO2, 0,
  5448. /* IP3_5_3 [3] */
  5449. FN_EX_CS5_N, FN_ATACS00_N, FN_MSIOF2_SS1, FN_HRX1_B,
  5450. FN_SCIFB1_RXD_B, FN_PWM1, FN_TPU_TO1, 0,
  5451. /* IP3_2_0 [3] */
  5452. FN_EX_CS4_N, FN_ATARD0_N, FN_MSIOF2_RXD, 0, FN_EX_WAIT2,
  5453. 0, 0, 0, }
  5454. },
  5455. { PINMUX_CFG_REG_VAR("IPSR4", 0xE6060030, 32,
  5456. 1, 3, 2, 2, 2, 1, 1, 1, 3, 3, 3, 2, 3, 3, 2) {
  5457. /* IP4_31 [1] */
  5458. 0, 0,
  5459. /* IP4_30_28 [3] */
  5460. FN_SSI_SCK5, FN_MSIOF1_SCK_C, FN_TS_SDATA0, FN_GLO_I0,
  5461. FN_MSIOF2_SYNC_D, FN_VI1_R2_B,
  5462. 0, 0,
  5463. /* IP4_27_26 [2] */
  5464. FN_SSI_SDATA4, FN_MSIOF2_SCK_D, 0, 0,
  5465. /* IP4_25_24 [2] */
  5466. FN_SSI_WS4, FN_GLO_RFON_D, 0, 0,
  5467. /* IP4_23_22 [2] */
  5468. FN_SSI_SCK4, FN_GLO_SS_D, 0, 0,
  5469. /* IP4_21 [1] */
  5470. FN_SSI_SDATA3, 0,
  5471. /* IP4_20 [1] */
  5472. FN_SSI_WS34, 0,
  5473. /* IP4_19 [1] */
  5474. FN_SSI_SCK34, 0,
  5475. /* IP4_18_16 [3] */
  5476. FN_SSI_SDATA2, FN_GPS_MAG_B, FN_TX2_E, FN_HRTS1_N_E,
  5477. 0, 0, 0, 0,
  5478. /* IP4_15_13 [3] */
  5479. FN_SSI_WS2, FN_SDA2, FN_GPS_SIGN_B, FN_RX2_E,
  5480. FN_GLO_Q1_D, FN_HCTS1_N_E,
  5481. 0, 0,
  5482. /* IP4_12_10 [3] */
  5483. FN_SSI_SCK2, FN_SCL2, FN_GPS_CLK_B, FN_GLO_Q0_D, FN_HSCK1_E,
  5484. 0, 0, 0,
  5485. /* IP4_9_8 [2] */
  5486. FN_SSI_SDATA1, FN_SDA1_B, FN_SDA8_B, FN_MSIOF2_RXD_C,
  5487. /* IP4_7_5 [3] */
  5488. FN_SSI_WS1, FN_SCL1_B, FN_SCL8_B, FN_MSIOF2_TXD_C, FN_GLO_I1_D,
  5489. 0, 0, 0,
  5490. /* IP4_4_2 [3] */
  5491. FN_SSI_SCK1, FN_SDA0_B, FN_SDA7_B,
  5492. FN_MSIOF2_SYNC_C, FN_GLO_I0_D,
  5493. 0, 0, 0,
  5494. /* IP4_1_0 [2] */
  5495. FN_SSI_SDATA0, FN_SCL0_B, FN_SCL7_B, FN_MSIOF2_SCK_C, }
  5496. },
  5497. { PINMUX_CFG_REG_VAR("IPSR5", 0xE6060034, 32,
  5498. 3, 3, 2, 2, 2, 3, 2, 3, 3, 3, 3, 3) {
  5499. /* IP5_31_29 [3] */
  5500. FN_SSI_SDATA9, FN_RX3_D, FN_CAN0_RX_D,
  5501. 0, 0, 0, 0, 0,
  5502. /* IP5_28_26 [3] */
  5503. FN_SSI_WS9, FN_TX3_D, FN_CAN0_TX_D, FN_GLO_SDATA_D,
  5504. 0, 0, 0, 0,
  5505. /* IP5_25_24 [2] */
  5506. FN_SSI_SCK9, FN_RX1_D, FN_GLO_SCLK_D, 0,
  5507. /* IP5_23_22 [2] */
  5508. FN_SSI_SDATA8, FN_TX1_D, FN_STP_ISSYNC_0_B, 0,
  5509. /* IP5_21_20 [2] */
  5510. FN_SSI_SDATA7, FN_RX0_D, FN_STP_ISEN_0_B, 0,
  5511. /* IP5_19_17 [3] */
  5512. FN_SSI_WS78, FN_TX0_D, FN_STP_ISD_0_B, FN_GLO_RFON,
  5513. 0, 0, 0, 0,
  5514. /* IP5_16_15 [2] */
  5515. FN_SSI_SCK78, FN_STP_ISCLK_0_B, FN_GLO_SS, 0,
  5516. /* IP5_14_12 [3] */
  5517. FN_SSI_SDATA6, FN_STP_IVCXO27_0_B, FN_GLO_SDATA, FN_VI1_R7_B,
  5518. 0, 0, 0, 0,
  5519. /* IP5_11_9 [3] */
  5520. FN_SSI_WS6, FN_GLO_SCLK, FN_MSIOF2_SS2_D, FN_VI1_R6_B,
  5521. 0, 0, 0, 0,
  5522. /* IP5_8_6 [3] */
  5523. FN_SSI_SCK6, FN_MSIOF1_RXD_C, FN_TS_SPSYNC0, FN_GLO_Q1,
  5524. FN_MSIOF2_RXD_D, FN_VI1_R5_B,
  5525. 0, 0,
  5526. /* IP5_5_3 [3] */
  5527. FN_SSI_SDATA5, FN_MSIOF1_TXD_C, FN_TS_SDEN0, FN_GLO_Q0,
  5528. FN_MSIOF2_SS1_D, FN_VI1_R4_B,
  5529. 0, 0,
  5530. /* IP5_2_0 [3] */
  5531. FN_SSI_WS5, FN_MSIOF1_SYNC_C, FN_TS_SCK0, FN_GLO_I1,
  5532. FN_MSIOF2_TXD_D, FN_VI1_R3_B,
  5533. 0, 0, }
  5534. },
  5535. { PINMUX_CFG_REG_VAR("IPSR6", 0xE6060038, 32,
  5536. 2, 3, 3, 3, 2, 3, 2, 2, 2, 2, 2, 3, 3) {
  5537. /* IP6_31_30 [2] */
  5538. 0, 0, 0, 0,
  5539. /* IP6_29_27 [3] */
  5540. FN_IRQ8, FN_HRTS1_N_C, FN_MSIOF1_RXD_B,
  5541. FN_GPS_SIGN_C, FN_GPS_SIGN_D,
  5542. 0, 0, 0,
  5543. /* IP6_26_24 [3] */
  5544. FN_IRQ7, FN_HCTS1_N_C, FN_MSIOF1_TXD_B,
  5545. FN_GPS_CLK_C, FN_GPS_CLK_D,
  5546. 0, 0, 0,
  5547. /* IP6_23_21 [3] */
  5548. FN_IRQ6, FN_HSCK1_C, FN_MSIOF1_SS2_B,
  5549. FN_SDA1_E, FN_MSIOF2_SYNC_E,
  5550. 0, 0, 0,
  5551. /* IP6_20_19 [2] */
  5552. FN_IRQ5, FN_HTX1_C, FN_SCL1_E, FN_MSIOF2_SCK_E,
  5553. /* IP6_18_16 [3] */
  5554. FN_IRQ4, FN_HRX1_C, FN_SDA4_C, FN_MSIOF2_RXD_E, FN_INTC_IRQ4_N,
  5555. 0, 0, 0,
  5556. /* IP6_15_14 [2] */
  5557. FN_IRQ3, FN_SCL4_C, FN_MSIOF2_TXD_E, FN_INTC_IRQ3_N,
  5558. /* IP6_13_12 [2] */
  5559. FN_IRQ2, FN_SCIFB1_TXD_D, FN_INTC_IRQ2_N, 0,
  5560. /* IP6_11_10 [2] */
  5561. FN_IRQ1, FN_SCIFB1_SCK_C, FN_INTC_IRQ1_N, 0,
  5562. /* IP6_9_8 [2] */
  5563. FN_IRQ0, FN_SCIFB1_RXD_D, FN_INTC_IRQ0_N, 0,
  5564. /* IP6_7_6 [2] */
  5565. FN_AUDIO_CLKOUT, FN_MSIOF1_SS1_B, FN_TX2, FN_SCIFA2_TXD,
  5566. /* IP6_5_3 [3] */
  5567. FN_AUDIO_CLKC, FN_SCIFB0_SCK_C, FN_MSIOF1_SYNC_B, FN_RX2,
  5568. FN_SCIFA2_RXD, FN_FMIN_E,
  5569. 0, 0,
  5570. /* IP6_2_0 [3] */
  5571. FN_AUDIO_CLKB, FN_STP_OPWM_0_B, FN_MSIOF1_SCK_B,
  5572. FN_SCIF_CLK, FN_DVC_MUTE, FN_BPFCLK_E,
  5573. 0, 0, }
  5574. },
  5575. { PINMUX_CFG_REG_VAR("IPSR7", 0xE606003C, 32,
  5576. 2, 3, 3, 3, 2, 2, 2, 2, 2, 2, 3, 3, 3) {
  5577. /* IP7_31_30 [2] */
  5578. 0, 0, 0, 0,
  5579. /* IP7_29_27 [3] */
  5580. FN_DU1_DG2, FN_LCDOUT10, FN_VI1_DATA4_B, FN_SCIF1_SCK_B,
  5581. FN_SCIFA1_SCK, FN_SSI_SCK78_B,
  5582. 0, 0,
  5583. /* IP7_26_24 [3] */
  5584. FN_DU1_DG1, FN_LCDOUT9, FN_VI1_DATA3_B, FN_RX1_B,
  5585. FN_SCIFA1_RXD_B, FN_MSIOF2_SS2_B,
  5586. 0, 0,
  5587. /* IP7_23_21 [3] */
  5588. FN_DU1_DG0, FN_LCDOUT8, FN_VI1_DATA2_B, FN_TX1_B,
  5589. FN_SCIFA1_TXD_B, FN_MSIOF2_SS1_B,
  5590. 0, 0,
  5591. /* IP7_20_19 [2] */
  5592. FN_DU1_DR7, FN_LCDOUT7, FN_SSI_SDATA1_B, 0,
  5593. /* IP7_18_17 [2] */
  5594. FN_DU1_DR6, FN_LCDOUT6, FN_SSI_WS1_B, 0,
  5595. /* IP7_16_15 [2] */
  5596. FN_DU1_DR5, FN_LCDOUT5, FN_SSI_SCK1_B, 0,
  5597. /* IP7_14_13 [2] */
  5598. FN_DU1_DR4, FN_LCDOUT4, FN_SSI_SDATA0_B, 0,
  5599. /* IP7_12_11 [2] */
  5600. FN_DU1_DR3, FN_LCDOUT3, FN_SSI_WS0129_B, 0,
  5601. /* IP7_10_9 [2] */
  5602. FN_DU1_DR2, FN_LCDOUT2, FN_SSI_SCK0129_B, 0,
  5603. /* IP7_8_6 [3] */
  5604. FN_DU1_DR1, FN_LCDOUT1, FN_VI1_DATA1_B, FN_RX0_B,
  5605. FN_SCIFA0_RXD_B, FN_MSIOF2_SYNC_B,
  5606. 0, 0,
  5607. /* IP7_5_3 [3] */
  5608. FN_DU1_DR0, FN_LCDOUT0, FN_VI1_DATA0_B, FN_TX0_B,
  5609. FN_SCIFA0_TXD_B, FN_MSIOF2_SCK_B,
  5610. 0, 0,
  5611. /* IP7_2_0 [3] */
  5612. FN_IRQ9, FN_DU1_DOTCLKIN_B, FN_CAN_CLK_D, FN_GPS_MAG_C,
  5613. FN_SCIF_CLK_B, FN_GPS_MAG_D,
  5614. 0, 0, }
  5615. },
  5616. { PINMUX_CFG_REG_VAR("IPSR8", 0xE6060040, 32,
  5617. 1, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3) {
  5618. /* IP8_31 [1] */
  5619. 0, 0,
  5620. /* IP8_30_28 [3] */
  5621. FN_DU1_DB5, FN_LCDOUT21, FN_TX3, FN_SCIFA3_TXD, FN_CAN1_TX,
  5622. 0, 0, 0,
  5623. /* IP8_27_26 [2] */
  5624. FN_DU1_DB4, FN_LCDOUT20, FN_VI1_FIELD_B, FN_CAN1_RX,
  5625. /* IP8_25_24 [2] */
  5626. FN_DU1_DB3, FN_LCDOUT19, FN_VI1_CLKENB_B, 0,
  5627. /* IP8_23_21 [3] */
  5628. FN_DU1_DB2, FN_LCDOUT18, FN_VI1_VSYNC_N_B, FN_SCIF2_SCK_B,
  5629. FN_SCIFA2_SCK, FN_SSI_SDATA9_B,
  5630. 0, 0,
  5631. /* IP8_20_18 [3] */
  5632. FN_DU1_DB1, FN_LCDOUT17, FN_VI1_HSYNC_N_B, FN_RX2_B,
  5633. FN_SCIFA2_RXD_B, FN_MSIOF2_RXD_B,
  5634. 0, 0,
  5635. /* IP8_17_15 [3] */
  5636. FN_DU1_DB0, FN_LCDOUT16, FN_VI1_CLK_B, FN_TX2_B,
  5637. FN_SCIFA2_TXD_B, FN_MSIOF2_TXD_B,
  5638. 0, 0,
  5639. /* IP8_14_12 [3] */
  5640. FN_DU1_DG7, FN_LCDOUT15, FN_HTX0_B,
  5641. FN_SCIFB2_RTS_N_B, FN_SSI_WS9_B,
  5642. 0, 0, 0,
  5643. /* IP8_11_9 [3] */
  5644. FN_DU1_DG6, FN_LCDOUT14, FN_HRTS0_N_B,
  5645. FN_SCIFB2_CTS_N_B, FN_SSI_SCK9_B,
  5646. 0, 0, 0,
  5647. /* IP8_8_6 [3] */
  5648. FN_DU1_DG5, FN_LCDOUT13, FN_VI1_DATA7_B, FN_HCTS0_N_B,
  5649. FN_SCIFB2_TXD_B, FN_SSI_SDATA8_B,
  5650. 0, 0,
  5651. /* IP8_5_3 [3] */
  5652. FN_DU1_DG4, FN_LCDOUT12, FN_VI1_DATA6_B, FN_HRX0_B,
  5653. FN_SCIFB2_RXD_B, FN_SSI_SDATA7_B,
  5654. 0, 0,
  5655. /* IP8_2_0 [3] */
  5656. FN_DU1_DG3, FN_LCDOUT11, FN_VI1_DATA5_B, 0, FN_SSI_WS78_B,
  5657. 0, 0, 0, }
  5658. },
  5659. { PINMUX_CFG_REG_VAR("IPSR9", 0xE6060044, 32,
  5660. 3, 2, 2, 2, 2, 2, 2, 1, 3, 1, 1, 3, 1, 1, 3, 3) {
  5661. /* IP9_31_29 [3] */
  5662. FN_VI0_G0, FN_SCL8, FN_STP_IVCXO27_0_C, FN_SCL4,
  5663. FN_HCTS2_N, FN_SCIFB2_CTS_N, FN_ATAWR1_N, 0,
  5664. /* IP9_28_27 [2] */
  5665. FN_VI0_DATA3_VI0_B3, FN_SCIF3_SCK_B, FN_SCIFA3_SCK_B, 0,
  5666. /* IP9_26_25 [2] */
  5667. FN_VI0_VSYNC_N, FN_RX5, FN_SCIFA5_RXD, FN_TS_SPSYNC0_D,
  5668. /* IP9_24_23 [2] */
  5669. FN_VI0_HSYNC_N, FN_TX5, FN_SCIFA5_TXD, FN_TS_SDEN0_D,
  5670. /* IP9_22_21 [2] */
  5671. FN_VI0_FIELD, FN_RX4, FN_SCIFA4_RXD, FN_TS_SCK0_D,
  5672. /* IP9_20_19 [2] */
  5673. FN_VI0_CLKENB, FN_TX4, FN_SCIFA4_TXD, FN_TS_SDATA0_D,
  5674. /* IP9_18_17 [2] */
  5675. FN_DU1_CDE, FN_QPOLB, FN_PWM4_B, 0,
  5676. /* IP9_16 [1] */
  5677. FN_DU1_DISP, FN_QPOLA,
  5678. /* IP9_15_13 [3] */
  5679. FN_DU1_EXODDF_DU1_ODDF_DISP_CDE, FN_QCPV_QDE,
  5680. FN_CAN0_RX, FN_RX3_B, FN_SDA2_B,
  5681. 0, 0, 0,
  5682. /* IP9_12 [1] */
  5683. FN_DU1_EXVSYNC_DU1_VSYNC, FN_QSTB_QHE,
  5684. /* IP9_11 [1] */
  5685. FN_DU1_EXHSYNC_DU1_HSYNC, FN_QSTH_QHS,
  5686. /* IP9_10_8 [3] */
  5687. FN_DU1_DOTCLKOUT1, FN_QSTVB_QVE, FN_CAN0_TX,
  5688. FN_TX3_B, FN_SCL2_B, FN_PWM4,
  5689. 0, 0,
  5690. /* IP9_7 [1] */
  5691. FN_DU1_DOTCLKOUT0, FN_QCLK,
  5692. /* IP9_6 [1] */
  5693. FN_DU1_DOTCLKIN, FN_QSTVA_QVS,
  5694. /* IP9_5_3 [3] */
  5695. FN_DU1_DB7, FN_LCDOUT23, FN_SDA3_C,
  5696. FN_SCIF3_SCK, FN_SCIFA3_SCK,
  5697. 0, 0, 0,
  5698. /* IP9_2_0 [3] */
  5699. FN_DU1_DB6, FN_LCDOUT22, FN_SCL3_C, FN_RX3, FN_SCIFA3_RXD,
  5700. 0, 0, 0, }
  5701. },
  5702. { PINMUX_CFG_REG_VAR("IPSR10", 0xE6060048, 32,
  5703. 3, 2, 2, 3, 3, 2, 2, 3, 3, 3, 3, 3) {
  5704. /* IP10_31_29 [3] */
  5705. FN_VI0_R4, FN_VI2_DATA5, FN_GLO_SCLK_B, FN_TX0_C, FN_SCL1_D,
  5706. 0, 0, 0,
  5707. /* IP10_28_27 [2] */
  5708. FN_VI0_R3, FN_VI2_DATA4, FN_GLO_Q1_B, FN_TS_SPSYNC0_C,
  5709. /* IP10_26_25 [2] */
  5710. FN_VI0_R2, FN_VI2_DATA3, FN_GLO_Q0_B, FN_TS_SDEN0_C,
  5711. /* IP10_24_22 [3] */
  5712. FN_VI0_R1, FN_VI2_DATA2, FN_GLO_I1_B, FN_TS_SCK0_C, FN_ATAG1_N,
  5713. 0, 0, 0,
  5714. /* IP10_21_29 [3] */
  5715. FN_VI0_R0, FN_VI2_DATA1, FN_GLO_I0_B,
  5716. FN_TS_SDATA0_C, FN_ATACS11_N,
  5717. 0, 0, 0,
  5718. /* IP10_18_17 [2] */
  5719. FN_VI0_G7, FN_VI2_DATA0, FN_FMIN_D, 0,
  5720. /* IP10_16_15 [2] */
  5721. FN_VI0_G6, FN_VI2_CLK, FN_BPFCLK_D, 0,
  5722. /* IP10_14_12 [3] */
  5723. FN_VI0_G5, FN_VI2_FIELD, FN_STP_OPWM_0_C, FN_FMCLK_D,
  5724. FN_CAN0_TX_E, FN_HTX1_D, FN_SCIFB0_TXD_D, 0,
  5725. /* IP10_11_9 [3] */
  5726. FN_VI0_G4, FN_VI2_CLKENB, FN_STP_ISSYNC_0_C,
  5727. FN_HTX2, FN_SCIFB2_TXD, FN_SCIFB0_SCK_D,
  5728. 0, 0,
  5729. /* IP10_8_6 [3] */
  5730. FN_VI0_G3, FN_VI2_VSYNC_N, FN_STP_ISEN_0_C, FN_SDA3_B,
  5731. FN_HRX2, FN_SCIFB2_RXD, FN_ATACS01_N, 0,
  5732. /* IP10_5_3 [3] */
  5733. FN_VI0_G2, FN_VI2_HSYNC_N, FN_STP_ISD_0_C, FN_SCL3_B,
  5734. FN_HSCK2, FN_SCIFB2_SCK, FN_ATARD1_N, 0,
  5735. /* IP10_2_0 [3] */
  5736. FN_VI0_G1, FN_SDA8, FN_STP_ISCLK_0_C, FN_SDA4,
  5737. FN_HRTS2_N, FN_SCIFB2_RTS_N, FN_ATADIR1_N, 0, }
  5738. },
  5739. { PINMUX_CFG_REG_VAR("IPSR11", 0xE606004C, 32,
  5740. 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2,
  5741. 3, 3, 3, 3, 3) {
  5742. /* IP11_31_30 [2] */
  5743. FN_ETH_CRS_DV, FN_AVB_LINK, FN_SDA2_C, 0,
  5744. /* IP11_29_28 [2] */
  5745. FN_ETH_MDIO, FN_AVB_RX_CLK, FN_SCL2_C, 0,
  5746. /* IP11_27 [1] */
  5747. FN_VI1_DATA7, FN_AVB_MDC,
  5748. /* IP11_26 [1] */
  5749. FN_VI1_DATA6, FN_AVB_MAGIC,
  5750. /* IP11_25 [1] */
  5751. FN_VI1_DATA5, FN_AVB_RX_DV,
  5752. /* IP11_24 [1] */
  5753. FN_VI1_DATA4, FN_AVB_MDIO,
  5754. /* IP11_23 [1] */
  5755. FN_VI1_DATA3, FN_AVB_RX_ER,
  5756. /* IP11_22 [1] */
  5757. FN_VI1_DATA2, FN_AVB_RXD7,
  5758. /* IP11_21 [1] */
  5759. FN_VI1_DATA1, FN_AVB_RXD6,
  5760. /* IP11_20 [1] */
  5761. FN_VI1_DATA0, FN_AVB_RXD5,
  5762. /* IP11_19 [1] */
  5763. FN_VI1_CLK, FN_AVB_RXD4,
  5764. /* IP11_18_17 [2] */
  5765. FN_VI1_FIELD, FN_AVB_RXD3, FN_TS_SPSYNC0_B, 0,
  5766. /* IP11_16_15 [2] */
  5767. FN_VI1_CLKENB, FN_AVB_RXD2, FN_TS_SDEN0_B, 0,
  5768. /* IP11_14_12 [3] */
  5769. FN_VI1_VSYNC_N, FN_AVB_RXD1, FN_TS_SCK0_B,
  5770. FN_RX4_B, FN_SCIFA4_RXD_B,
  5771. 0, 0, 0,
  5772. /* IP11_11_9 [3] */
  5773. FN_VI1_HSYNC_N, FN_AVB_RXD0, FN_TS_SDATA0_B,
  5774. FN_TX4_B, FN_SCIFA4_TXD_B,
  5775. 0, 0, 0,
  5776. /* IP11_8_6 [3] */
  5777. FN_VI0_R7, FN_GLO_RFON_B, FN_RX1_C, FN_CAN0_RX_E,
  5778. FN_SDA4_B, FN_HRX1_D, FN_SCIFB0_RXD_D, 0,
  5779. /* IP11_5_3 [3] */
  5780. FN_VI0_R6, FN_VI2_DATA7, FN_GLO_SS_B, FN_TX1_C, FN_SCL4_B,
  5781. 0, 0, 0,
  5782. /* IP11_2_0 [3] */
  5783. FN_VI0_R5, FN_VI2_DATA6, FN_GLO_SDATA_B, FN_RX0_C, FN_SDA1_D,
  5784. 0, 0, 0, }
  5785. },
  5786. { PINMUX_CFG_REG_VAR("IPSR12", 0xE6060050, 32,
  5787. 2, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 2, 2) {
  5788. /* IP12_31_30 [2] */
  5789. 0, 0, 0, 0,
  5790. /* IP12_29_27 [3] */
  5791. FN_STP_ISCLK_0, FN_AVB_TX_EN, FN_SCIFB2_RXD_D,
  5792. FN_ADICS_SAMP_B, FN_MSIOF0_SCK_C,
  5793. 0, 0, 0,
  5794. /* IP12_26_24 [3] */
  5795. FN_STP_IVCXO27_0, FN_AVB_TXD7, FN_SCIFB2_TXD_D,
  5796. FN_ADIDATA_B, FN_MSIOF0_SYNC_C,
  5797. 0, 0, 0,
  5798. /* IP12_23_22 [2] */
  5799. FN_ETH_MDC, FN_AVB_TXD6, FN_IERX_C, 0,
  5800. /* IP12_21_20 [2] */
  5801. FN_ETH_TXD0, FN_AVB_TXD5, FN_IECLK_C, 0,
  5802. /* IP12_19_18 [2] */
  5803. FN_ETH_MAGIC, FN_AVB_TXD4, FN_IETX_C, 0,
  5804. /* IP12_17_16 [2] */
  5805. FN_ETH_TX_EN, FN_AVB_TXD3, FN_TCLK1_B, FN_CAN_CLK_B,
  5806. /* IP12_15_13 [3] */
  5807. FN_ETH_TXD1, FN_AVB_TXD2, FN_SCIFA3_TXD_B,
  5808. FN_CAN1_TX_C, FN_MSIOF1_TXD_E,
  5809. 0, 0, 0,
  5810. /* IP12_12_10 [3] */
  5811. FN_ETH_REFCLK, FN_AVB_TXD1, FN_SCIFA3_RXD_B,
  5812. FN_CAN1_RX_C, FN_MSIOF1_SYNC_E,
  5813. 0, 0, 0,
  5814. /* IP12_9_7 [3] */
  5815. FN_ETH_LINK, FN_AVB_TXD0, FN_CAN0_RX_C,
  5816. FN_SDA2_D, FN_MSIOF1_SCK_E,
  5817. 0, 0, 0,
  5818. /* IP12_6_4 [3] */
  5819. FN_ETH_RXD1, FN_AVB_GTXREFCLK, FN_CAN0_TX_C,
  5820. FN_SCL2_D, FN_MSIOF1_RXD_E,
  5821. 0, 0, 0,
  5822. /* IP12_3_2 [2] */
  5823. FN_ETH_RXD0, FN_AVB_PHY_INT, FN_SDA3, FN_SDA7,
  5824. /* IP12_1_0 [2] */
  5825. FN_ETH_RX_ER, FN_AVB_CRS, FN_SCL3, FN_SCL7, }
  5826. },
  5827. { PINMUX_CFG_REG_VAR("IPSR13", 0xE6060054, 32,
  5828. 1, 3, 1, 1, 1, 2, 1, 3, 3, 1, 1, 1, 1, 1, 1,
  5829. 3, 2, 2, 3) {
  5830. /* IP13_31 [1] */
  5831. 0, 0,
  5832. /* IP13_30_28 [3] */
  5833. FN_SD1_CD, FN_PWM0, FN_TPU_TO0, FN_SCL1_C,
  5834. 0, 0, 0, 0,
  5835. /* IP13_27 [1] */
  5836. FN_SD1_DATA3, FN_IERX_B,
  5837. /* IP13_26 [1] */
  5838. FN_SD1_DATA2, FN_IECLK_B,
  5839. /* IP13_25 [1] */
  5840. FN_SD1_DATA1, FN_IETX_B,
  5841. /* IP13_24_23 [2] */
  5842. FN_SD1_DATA0, FN_SPEEDIN_B, 0, 0,
  5843. /* IP13_22 [1] */
  5844. FN_SD1_CMD, FN_REMOCON_B,
  5845. /* IP13_21_19 [3] */
  5846. FN_SD0_WP, FN_MMC_D7_B, FN_SIM0_D_B, FN_CAN0_TX_F,
  5847. FN_SCIFA5_RXD_B, FN_RX3_C,
  5848. 0, 0,
  5849. /* IP13_18_16 [3] */
  5850. FN_SD0_CD, FN_MMC_D6_B, FN_SIM0_RST_B, FN_CAN0_RX_F,
  5851. FN_SCIFA5_TXD_B, FN_TX3_C,
  5852. 0, 0,
  5853. /* IP13_15 [1] */
  5854. FN_SD0_DATA3, FN_SSL_B,
  5855. /* IP13_14 [1] */
  5856. FN_SD0_DATA2, FN_IO3_B,
  5857. /* IP13_13 [1] */
  5858. FN_SD0_DATA1, FN_IO2_B,
  5859. /* IP13_12 [1] */
  5860. FN_SD0_DATA0, FN_MISO_IO1_B,
  5861. /* IP13_11 [1] */
  5862. FN_SD0_CMD, FN_MOSI_IO0_B,
  5863. /* IP13_10 [1] */
  5864. FN_SD0_CLK, FN_SPCLK_B,
  5865. /* IP13_9_7 [3] */
  5866. FN_STP_OPWM_0, FN_AVB_GTX_CLK, FN_PWM0_B,
  5867. FN_ADICHS2_B, FN_MSIOF0_TXD_C,
  5868. 0, 0, 0,
  5869. /* IP13_6_5 [2] */
  5870. FN_STP_ISSYNC_0, FN_AVB_COL, FN_ADICHS1_B, FN_MSIOF0_RXD_C,
  5871. /* IP13_4_3 [2] */
  5872. FN_STP_ISEN_0, FN_AVB_TX_CLK, FN_ADICHS0_B, FN_MSIOF0_SS2_C,
  5873. /* IP13_2_0 [3] */
  5874. FN_STP_ISD_0, FN_AVB_TX_ER, FN_SCIFB2_SCK_C,
  5875. FN_ADICLK_B, FN_MSIOF0_SS1_C,
  5876. 0, 0, 0, }
  5877. },
  5878. { PINMUX_CFG_REG_VAR("IPSR14", 0xE6060058, 32,
  5879. 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 2) {
  5880. /* IP14_31_29 [3] */
  5881. FN_MSIOF0_SS2, FN_MMC_D7, FN_ADICHS2, FN_RX0_E,
  5882. FN_VI1_VSYNC_N_C, FN_SDA7_C, FN_VI1_G5_B, 0,
  5883. /* IP14_28_26 [3] */
  5884. FN_MSIOF0_SS1, FN_MMC_D6, FN_ADICHS1, FN_TX0_E,
  5885. FN_VI1_HSYNC_N_C, FN_SCL7_C, FN_VI1_G4_B, 0,
  5886. /* IP14_25_23 [3] */
  5887. FN_MSIOF0_RXD, FN_ADICHS0, 0, FN_VI1_DATA0_C, FN_VI1_G3_B,
  5888. 0, 0, 0,
  5889. /* IP14_22_20 [3] */
  5890. FN_MSIOF0_TXD, FN_ADICLK, 0, FN_VI1_FIELD_C, FN_VI1_G2_B,
  5891. 0, 0, 0,
  5892. /* IP14_19_17 [3] */
  5893. FN_MSIOF0_SYNC, FN_TX2_C, FN_ADICS_SAMP, 0,
  5894. FN_VI1_CLKENB_C, FN_VI1_G1_B,
  5895. 0, 0,
  5896. /* IP14_16_14 [3] */
  5897. FN_MSIOF0_SCK, FN_RX2_C, FN_ADIDATA, 0,
  5898. FN_VI1_CLK_C, FN_VI1_G0_B,
  5899. 0, 0,
  5900. /* IP14_13_11 [3] */
  5901. FN_SD2_WP, FN_MMC_D5, FN_SDA8_C, FN_RX5_B, FN_SCIFA5_RXD_C,
  5902. 0, 0, 0,
  5903. /* IP14_10_8 [3] */
  5904. FN_SD2_CD, FN_MMC_D4, FN_SCL8_C, FN_TX5_B, FN_SCIFA5_TXD_C,
  5905. 0, 0, 0,
  5906. /* IP14_7 [1] */
  5907. FN_SD2_DATA3, FN_MMC_D3,
  5908. /* IP14_6 [1] */
  5909. FN_SD2_DATA2, FN_MMC_D2,
  5910. /* IP14_5 [1] */
  5911. FN_SD2_DATA1, FN_MMC_D1,
  5912. /* IP14_4 [1] */
  5913. FN_SD2_DATA0, FN_MMC_D0,
  5914. /* IP14_3 [1] */
  5915. FN_SD2_CMD, FN_MMC_CMD,
  5916. /* IP14_2 [1] */
  5917. FN_SD2_CLK, FN_MMC_CLK,
  5918. /* IP14_1_0 [2] */
  5919. FN_SD1_WP, FN_PWM1_B, FN_SDA1_C, 0, }
  5920. },
  5921. { PINMUX_CFG_REG_VAR("IPSR15", 0xE606005C, 32,
  5922. 2, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2) {
  5923. /* IP15_31_30 [2] */
  5924. 0, 0, 0, 0,
  5925. /* IP15_29_27 [3] */
  5926. FN_HTX0, FN_SCIFB0_TXD, 0, FN_GLO_SCLK_C,
  5927. FN_CAN0_TX_B, FN_VI1_DATA5_C,
  5928. 0, 0,
  5929. /* IP15_26_24 [3] */
  5930. FN_HRX0, FN_SCIFB0_RXD, 0, FN_GLO_Q1_C,
  5931. FN_CAN0_RX_B, FN_VI1_DATA4_C,
  5932. 0, 0,
  5933. /* IP15_23_21 [3] */
  5934. FN_HSCK0, FN_SCIFB0_SCK, 0, FN_GLO_Q0_C, FN_CAN_CLK,
  5935. FN_TCLK2, FN_VI1_DATA3_C, 0,
  5936. /* IP15_20_18 [3] */
  5937. FN_HRTS0_N, FN_SCIFB0_RTS_N, 0, FN_GLO_I1_C, FN_VI1_DATA2_C,
  5938. 0, 0, 0,
  5939. /* IP15_17_15 [3] */
  5940. FN_HCTS0_N, FN_SCIFB0_CTS_N, 0, FN_GLO_I0_C,
  5941. FN_TCLK1, FN_VI1_DATA1_C,
  5942. 0, 0,
  5943. /* IP15_14_12 [3] */
  5944. FN_GPS_MAG, FN_RX4_C, FN_SCIFA4_RXD_C, FN_PWM6,
  5945. FN_VI1_G7_B, FN_SCIFA3_SCK_C,
  5946. 0, 0,
  5947. /* IP15_11_9 [3] */
  5948. FN_GPS_SIGN, FN_TX4_C, FN_SCIFA4_TXD_C, FN_PWM5,
  5949. FN_VI1_G6_B, FN_SCIFA3_RXD_C,
  5950. 0, 0,
  5951. /* IP15_8_6 [3] */
  5952. FN_GPS_CLK, FN_DU1_DOTCLKIN_C, FN_AUDIO_CLKB_B,
  5953. FN_PWM5_B, FN_SCIFA3_TXD_C,
  5954. 0, 0, 0,
  5955. /* IP15_5_4 [2] */
  5956. FN_SIM0_D, FN_IERX, FN_CAN1_RX_D, 0,
  5957. /* IP15_3_2 [2] */
  5958. FN_SIM0_CLK, FN_IECLK, FN_CAN_CLK_C, 0,
  5959. /* IP15_1_0 [2] */
  5960. FN_SIM0_RST, FN_IETX, FN_CAN1_TX_D, 0, }
  5961. },
  5962. { PINMUX_CFG_REG_VAR("IPSR16", 0xE6060160, 32,
  5963. 4, 4, 4, 4, 4, 2, 2, 2, 3, 3) {
  5964. /* IP16_31_28 [4] */
  5965. 0, 0, 0, 0, 0, 0, 0, 0,
  5966. 0, 0, 0, 0, 0, 0, 0, 0,
  5967. /* IP16_27_24 [4] */
  5968. 0, 0, 0, 0, 0, 0, 0, 0,
  5969. 0, 0, 0, 0, 0, 0, 0, 0,
  5970. /* IP16_23_20 [4] */
  5971. 0, 0, 0, 0, 0, 0, 0, 0,
  5972. 0, 0, 0, 0, 0, 0, 0, 0,
  5973. /* IP16_19_16 [4] */
  5974. 0, 0, 0, 0, 0, 0, 0, 0,
  5975. 0, 0, 0, 0, 0, 0, 0, 0,
  5976. /* IP16_15_12 [4] */
  5977. 0, 0, 0, 0, 0, 0, 0, 0,
  5978. 0, 0, 0, 0, 0, 0, 0, 0,
  5979. /* IP16_11_10 [2] */
  5980. FN_HRTS1_N, FN_SCIFB1_RTS_N, FN_MLB_DAT, FN_CAN1_RX_B,
  5981. /* IP16_9_8 [2] */
  5982. FN_HCTS1_N, FN_SCIFB1_CTS_N, FN_MLB_SIG, FN_CAN1_TX_B,
  5983. /* IP16_7_6 [2] */
  5984. FN_HSCK1, FN_SCIFB1_SCK, FN_MLB_CLK, FN_GLO_RFON_C,
  5985. /* IP16_5_3 [3] */
  5986. FN_HTX1, FN_SCIFB1_TXD, FN_VI1_R1_B,
  5987. FN_GLO_SS_C, FN_VI1_DATA7_C,
  5988. 0, 0, 0,
  5989. /* IP16_2_0 [3] */
  5990. FN_HRX1, FN_SCIFB1_RXD, FN_VI1_R0_B,
  5991. FN_GLO_SDATA_C, FN_VI1_DATA6_C,
  5992. 0, 0, 0, }
  5993. },
  5994. { PINMUX_CFG_REG_VAR("MOD_SEL", 0xE6060090, 32,
  5995. 1, 2, 2, 2, 3, 2, 1, 1, 1, 1,
  5996. 3, 2, 2, 2, 1, 2, 2, 2) {
  5997. /* RESERVED [1] */
  5998. 0, 0,
  5999. /* SEL_SCIF1 [2] */
  6000. FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2, FN_SEL_SCIF1_3,
  6001. /* SEL_SCIFB [2] */
  6002. FN_SEL_SCIFB_0, FN_SEL_SCIFB_1, FN_SEL_SCIFB_2, FN_SEL_SCIFB_3,
  6003. /* SEL_SCIFB2 [2] */
  6004. FN_SEL_SCIFB2_0, FN_SEL_SCIFB2_1,
  6005. FN_SEL_SCIFB2_2, FN_SEL_SCIFB2_3,
  6006. /* SEL_SCIFB1 [3] */
  6007. FN_SEL_SCIFB1_0, FN_SEL_SCIFB1_1,
  6008. FN_SEL_SCIFB1_2, FN_SEL_SCIFB1_3,
  6009. 0, 0, 0, 0,
  6010. /* SEL_SCIFA1 [2] */
  6011. FN_SEL_SCIFA1_0, FN_SEL_SCIFA1_1, FN_SEL_SCIFA1_2, 0,
  6012. /* SEL_SSI9 [1] */
  6013. FN_SEL_SSI9_0, FN_SEL_SSI9_1,
  6014. /* SEL_SCFA [1] */
  6015. FN_SEL_SCFA_0, FN_SEL_SCFA_1,
  6016. /* SEL_QSP [1] */
  6017. FN_SEL_QSP_0, FN_SEL_QSP_1,
  6018. /* SEL_SSI7 [1] */
  6019. FN_SEL_SSI7_0, FN_SEL_SSI7_1,
  6020. /* SEL_HSCIF1 [3] */
  6021. FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1, FN_SEL_HSCIF1_2,
  6022. FN_SEL_HSCIF1_3, FN_SEL_HSCIF1_4,
  6023. 0, 0, 0,
  6024. /* RESERVED [2] */
  6025. 0, 0, 0, 0,
  6026. /* SEL_VI1 [2] */
  6027. FN_SEL_VI1_0, FN_SEL_VI1_1, FN_SEL_VI1_2, 0,
  6028. /* RESERVED [2] */
  6029. 0, 0, 0, 0,
  6030. /* SEL_TMU [1] */
  6031. FN_SEL_TMU1_0, FN_SEL_TMU1_1,
  6032. /* SEL_LBS [2] */
  6033. FN_SEL_LBS_0, FN_SEL_LBS_1, FN_SEL_LBS_2, FN_SEL_LBS_3,
  6034. /* SEL_TSIF0 [2] */
  6035. FN_SEL_TSIF0_0, FN_SEL_TSIF0_1, FN_SEL_TSIF0_2, FN_SEL_TSIF0_3,
  6036. /* SEL_SOF0 [2] */
  6037. FN_SEL_SOF0_0, FN_SEL_SOF0_1, FN_SEL_SOF0_2, 0, }
  6038. },
  6039. { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xE6060094, 32,
  6040. 3, 1, 1, 3, 2, 1, 1, 2, 2,
  6041. 1, 3, 2, 1, 2, 2, 2, 1, 1, 1) {
  6042. /* SEL_SCIF0 [3] */
  6043. FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2,
  6044. FN_SEL_SCIF0_3, FN_SEL_SCIF0_4,
  6045. 0, 0, 0,
  6046. /* RESERVED [1] */
  6047. 0, 0,
  6048. /* SEL_SCIF [1] */
  6049. FN_SEL_SCIF_0, FN_SEL_SCIF_1,
  6050. /* SEL_CAN0 [3] */
  6051. FN_SEL_CAN0_0, FN_SEL_CAN0_1, FN_SEL_CAN0_2, FN_SEL_CAN0_3,
  6052. FN_SEL_CAN0_4, FN_SEL_CAN0_5,
  6053. 0, 0,
  6054. /* SEL_CAN1 [2] */
  6055. FN_SEL_CAN1_0, FN_SEL_CAN1_1, FN_SEL_CAN1_2, FN_SEL_CAN1_3,
  6056. /* RESERVED [1] */
  6057. 0, 0,
  6058. /* SEL_SCIFA2 [1] */
  6059. FN_SEL_SCIFA2_0, FN_SEL_SCIFA2_1,
  6060. /* SEL_SCIF4 [2] */
  6061. FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, FN_SEL_SCIF4_2, 0,
  6062. /* RESERVED [2] */
  6063. 0, 0, 0, 0,
  6064. /* SEL_ADG [1] */
  6065. FN_SEL_ADG_0, FN_SEL_ADG_1,
  6066. /* SEL_FM [3] */
  6067. FN_SEL_FM_0, FN_SEL_FM_1, FN_SEL_FM_2,
  6068. FN_SEL_FM_3, FN_SEL_FM_4,
  6069. 0, 0, 0,
  6070. /* SEL_SCIFA5 [2] */
  6071. FN_SEL_SCIFA5_0, FN_SEL_SCIFA5_1, FN_SEL_SCIFA5_2, 0,
  6072. /* RESERVED [1] */
  6073. 0, 0,
  6074. /* SEL_GPS [2] */
  6075. FN_SEL_GPS_0, FN_SEL_GPS_1, FN_SEL_GPS_2, FN_SEL_GPS_3,
  6076. /* SEL_SCIFA4 [2] */
  6077. FN_SEL_SCIFA4_0, FN_SEL_SCIFA4_1, FN_SEL_SCIFA4_2, 0,
  6078. /* SEL_SCIFA3 [2] */
  6079. FN_SEL_SCIFA3_0, FN_SEL_SCIFA3_1, FN_SEL_SCIFA3_2, 0,
  6080. /* SEL_SIM [1] */
  6081. FN_SEL_SIM_0, FN_SEL_SIM_1,
  6082. /* RESERVED [1] */
  6083. 0, 0,
  6084. /* SEL_SSI8 [1] */
  6085. FN_SEL_SSI8_0, FN_SEL_SSI8_1, }
  6086. },
  6087. { PINMUX_CFG_REG_VAR("MOD_SEL3", 0xE6060098, 32,
  6088. 2, 2, 2, 2, 2, 2, 2, 2,
  6089. 1, 1, 2, 2, 3, 2, 2, 2, 1) {
  6090. /* SEL_HSCIF2 [2] */
  6091. FN_SEL_HSCIF2_0, FN_SEL_HSCIF2_1,
  6092. FN_SEL_HSCIF2_2, FN_SEL_HSCIF2_3,
  6093. /* SEL_CANCLK [2] */
  6094. FN_SEL_CANCLK_0, FN_SEL_CANCLK_1,
  6095. FN_SEL_CANCLK_2, FN_SEL_CANCLK_3,
  6096. /* SEL_IIC8 [2] */
  6097. FN_SEL_IIC8_0, FN_SEL_IIC8_1, FN_SEL_IIC8_2, 0,
  6098. /* SEL_IIC7 [2] */
  6099. FN_SEL_IIC7_0, FN_SEL_IIC7_1, FN_SEL_IIC7_2, 0,
  6100. /* SEL_IIC4 [2] */
  6101. FN_SEL_IIC4_0, FN_SEL_IIC4_1, FN_SEL_IIC4_2, 0,
  6102. /* SEL_IIC3 [2] */
  6103. FN_SEL_IIC3_0, FN_SEL_IIC3_1, FN_SEL_IIC3_2, FN_SEL_IIC3_3,
  6104. /* SEL_SCIF3 [2] */
  6105. FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2, FN_SEL_SCIF3_3,
  6106. /* SEL_IEB [2] */
  6107. FN_SEL_IEB_0, FN_SEL_IEB_1, FN_SEL_IEB_2, 0,
  6108. /* SEL_MMC [1] */
  6109. FN_SEL_MMC_0, FN_SEL_MMC_1,
  6110. /* SEL_SCIF5 [1] */
  6111. FN_SEL_SCIF5_0, FN_SEL_SCIF5_1,
  6112. /* RESERVED [2] */
  6113. 0, 0, 0, 0,
  6114. /* SEL_IIC2 [2] */
  6115. FN_SEL_IIC2_0, FN_SEL_IIC2_1, FN_SEL_IIC2_2, FN_SEL_IIC2_3,
  6116. /* SEL_IIC1 [3] */
  6117. FN_SEL_IIC1_0, FN_SEL_IIC1_1, FN_SEL_IIC1_2, FN_SEL_IIC1_3,
  6118. FN_SEL_IIC1_4,
  6119. 0, 0, 0,
  6120. /* SEL_IIC0 [2] */
  6121. FN_SEL_IIC0_0, FN_SEL_IIC0_1, FN_SEL_IIC0_2, 0,
  6122. /* RESERVED [2] */
  6123. 0, 0, 0, 0,
  6124. /* RESERVED [2] */
  6125. 0, 0, 0, 0,
  6126. /* RESERVED [1] */
  6127. 0, 0, }
  6128. },
  6129. { PINMUX_CFG_REG_VAR("MOD_SEL4", 0xE606009C, 32,
  6130. 3, 2, 2, 1, 1, 1, 1, 3, 2,
  6131. 2, 3, 1, 1, 1, 2, 2, 2, 2) {
  6132. /* SEL_SOF1 [3] */
  6133. FN_SEL_SOF1_0, FN_SEL_SOF1_1, FN_SEL_SOF1_2, FN_SEL_SOF1_3,
  6134. FN_SEL_SOF1_4,
  6135. 0, 0, 0,
  6136. /* SEL_HSCIF0 [2] */
  6137. FN_SEL_HSCIF0_0, FN_SEL_HSCIF0_1, FN_SEL_HSCIF0_2, 0,
  6138. /* SEL_DIS [2] */
  6139. FN_SEL_DIS_0, FN_SEL_DIS_1, FN_SEL_DIS_2, 0,
  6140. /* RESERVED [1] */
  6141. 0, 0,
  6142. /* SEL_RAD [1] */
  6143. FN_SEL_RAD_0, FN_SEL_RAD_1,
  6144. /* SEL_RCN [1] */
  6145. FN_SEL_RCN_0, FN_SEL_RCN_1,
  6146. /* SEL_RSP [1] */
  6147. FN_SEL_RSP_0, FN_SEL_RSP_1,
  6148. /* SEL_SCIF2 [3] */
  6149. FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2,
  6150. FN_SEL_SCIF2_3, FN_SEL_SCIF2_4,
  6151. 0, 0, 0,
  6152. /* RESERVED [2] */
  6153. 0, 0, 0, 0,
  6154. /* RESERVED [2] */
  6155. 0, 0, 0, 0,
  6156. /* SEL_SOF2 [3] */
  6157. FN_SEL_SOF2_0, FN_SEL_SOF2_1, FN_SEL_SOF2_2,
  6158. FN_SEL_SOF2_3, FN_SEL_SOF2_4,
  6159. 0, 0, 0,
  6160. /* RESERVED [1] */
  6161. 0, 0,
  6162. /* SEL_SSI1 [1] */
  6163. FN_SEL_SSI1_0, FN_SEL_SSI1_1,
  6164. /* SEL_SSI0 [1] */
  6165. FN_SEL_SSI0_0, FN_SEL_SSI0_1,
  6166. /* SEL_SSP [2] */
  6167. FN_SEL_SSP_0, FN_SEL_SSP_1, FN_SEL_SSP_2, 0,
  6168. /* RESERVED [2] */
  6169. 0, 0, 0, 0,
  6170. /* RESERVED [2] */
  6171. 0, 0, 0, 0,
  6172. /* RESERVED [2] */
  6173. 0, 0, 0, 0, }
  6174. },
  6175. { },
  6176. };
  6177. static int r8a7791_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl)
  6178. {
  6179. if (pin < RCAR_GP_PIN(6, 0) || pin > RCAR_GP_PIN(6, 23))
  6180. return -EINVAL;
  6181. *pocctrl = 0xe606008c;
  6182. return 31 - (pin & 0x1f);
  6183. }
  6184. static const struct sh_pfc_soc_operations r8a7791_pinmux_ops = {
  6185. .pin_to_pocctrl = r8a7791_pin_to_pocctrl,
  6186. };
  6187. #ifdef CONFIG_PINCTRL_PFC_R8A7791
  6188. const struct sh_pfc_soc_info r8a7791_pinmux_info = {
  6189. .name = "r8a77910_pfc",
  6190. .ops = &r8a7791_pinmux_ops,
  6191. .unlock_reg = 0xe6060000, /* PMMR */
  6192. .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
  6193. .pins = pinmux_pins,
  6194. .nr_pins = ARRAY_SIZE(pinmux_pins),
  6195. .groups = pinmux_groups,
  6196. .nr_groups = ARRAY_SIZE(pinmux_groups),
  6197. .functions = pinmux_functions,
  6198. .nr_functions = ARRAY_SIZE(pinmux_functions),
  6199. .cfg_regs = pinmux_config_regs,
  6200. .pinmux_data = pinmux_data,
  6201. .pinmux_data_size = ARRAY_SIZE(pinmux_data),
  6202. };
  6203. #endif
  6204. #ifdef CONFIG_PINCTRL_PFC_R8A7793
  6205. const struct sh_pfc_soc_info r8a7793_pinmux_info = {
  6206. .name = "r8a77930_pfc",
  6207. .unlock_reg = 0xe6060000, /* PMMR */
  6208. .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
  6209. .pins = pinmux_pins,
  6210. .nr_pins = ARRAY_SIZE(pinmux_pins),
  6211. .groups = pinmux_groups,
  6212. .nr_groups = ARRAY_SIZE(pinmux_groups),
  6213. .functions = pinmux_functions,
  6214. .nr_functions = ARRAY_SIZE(pinmux_functions),
  6215. .cfg_regs = pinmux_config_regs,
  6216. .pinmux_data = pinmux_data,
  6217. .pinmux_data_size = ARRAY_SIZE(pinmux_data),
  6218. };
  6219. #endif