pfc-r8a7795.c 185 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655
  1. /*
  2. * R8A7795 processor support - PFC hardware block.
  3. *
  4. * Copyright (C) 2015 Renesas Electronics Corporation
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; version 2 of the License.
  9. */
  10. #include <linux/kernel.h>
  11. #include "core.h"
  12. #include "sh_pfc.h"
  13. #define CFG_FLAGS (SH_PFC_PIN_CFG_DRIVE_STRENGTH | \
  14. SH_PFC_PIN_CFG_PULL_UP | \
  15. SH_PFC_PIN_CFG_PULL_DOWN)
  16. #define CPU_ALL_PORT(fn, sfx) \
  17. PORT_GP_CFG_16(0, fn, sfx, CFG_FLAGS), \
  18. PORT_GP_CFG_28(1, fn, sfx, CFG_FLAGS), \
  19. PORT_GP_CFG_15(2, fn, sfx, CFG_FLAGS), \
  20. PORT_GP_CFG_12(3, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE), \
  21. PORT_GP_CFG_1(3, 12, fn, sfx, CFG_FLAGS), \
  22. PORT_GP_CFG_1(3, 13, fn, sfx, CFG_FLAGS), \
  23. PORT_GP_CFG_1(3, 14, fn, sfx, CFG_FLAGS), \
  24. PORT_GP_CFG_1(3, 15, fn, sfx, CFG_FLAGS), \
  25. PORT_GP_CFG_18(4, fn, sfx, CFG_FLAGS | SH_PFC_PIN_CFG_IO_VOLTAGE), \
  26. PORT_GP_CFG_26(5, fn, sfx, CFG_FLAGS), \
  27. PORT_GP_CFG_32(6, fn, sfx, CFG_FLAGS), \
  28. PORT_GP_CFG_4(7, fn, sfx, CFG_FLAGS)
  29. /*
  30. * F_() : just information
  31. * FM() : macro for FN_xxx / xxx_MARK
  32. */
  33. /* GPSR0 */
  34. #define GPSR0_15 F_(D15, IP7_11_8)
  35. #define GPSR0_14 F_(D14, IP7_7_4)
  36. #define GPSR0_13 F_(D13, IP7_3_0)
  37. #define GPSR0_12 F_(D12, IP6_31_28)
  38. #define GPSR0_11 F_(D11, IP6_27_24)
  39. #define GPSR0_10 F_(D10, IP6_23_20)
  40. #define GPSR0_9 F_(D9, IP6_19_16)
  41. #define GPSR0_8 F_(D8, IP6_15_12)
  42. #define GPSR0_7 F_(D7, IP6_11_8)
  43. #define GPSR0_6 F_(D6, IP6_7_4)
  44. #define GPSR0_5 F_(D5, IP6_3_0)
  45. #define GPSR0_4 F_(D4, IP5_31_28)
  46. #define GPSR0_3 F_(D3, IP5_27_24)
  47. #define GPSR0_2 F_(D2, IP5_23_20)
  48. #define GPSR0_1 F_(D1, IP5_19_16)
  49. #define GPSR0_0 F_(D0, IP5_15_12)
  50. /* GPSR1 */
  51. #define GPSR1_27 F_(EX_WAIT0_A, IP5_11_8)
  52. #define GPSR1_26 F_(WE1_N, IP5_7_4)
  53. #define GPSR1_25 F_(WE0_N, IP5_3_0)
  54. #define GPSR1_24 F_(RD_WR_N, IP4_31_28)
  55. #define GPSR1_23 F_(RD_N, IP4_27_24)
  56. #define GPSR1_22 F_(BS_N, IP4_23_20)
  57. #define GPSR1_21 F_(CS1_N_A26, IP4_19_16)
  58. #define GPSR1_20 F_(CS0_N, IP4_15_12)
  59. #define GPSR1_19 F_(A19, IP4_11_8)
  60. #define GPSR1_18 F_(A18, IP4_7_4)
  61. #define GPSR1_17 F_(A17, IP4_3_0)
  62. #define GPSR1_16 F_(A16, IP3_31_28)
  63. #define GPSR1_15 F_(A15, IP3_27_24)
  64. #define GPSR1_14 F_(A14, IP3_23_20)
  65. #define GPSR1_13 F_(A13, IP3_19_16)
  66. #define GPSR1_12 F_(A12, IP3_15_12)
  67. #define GPSR1_11 F_(A11, IP3_11_8)
  68. #define GPSR1_10 F_(A10, IP3_7_4)
  69. #define GPSR1_9 F_(A9, IP3_3_0)
  70. #define GPSR1_8 F_(A8, IP2_31_28)
  71. #define GPSR1_7 F_(A7, IP2_27_24)
  72. #define GPSR1_6 F_(A6, IP2_23_20)
  73. #define GPSR1_5 F_(A5, IP2_19_16)
  74. #define GPSR1_4 F_(A4, IP2_15_12)
  75. #define GPSR1_3 F_(A3, IP2_11_8)
  76. #define GPSR1_2 F_(A2, IP2_7_4)
  77. #define GPSR1_1 F_(A1, IP2_3_0)
  78. #define GPSR1_0 F_(A0, IP1_31_28)
  79. /* GPSR2 */
  80. #define GPSR2_14 F_(AVB_AVTP_CAPTURE_A, IP0_23_20)
  81. #define GPSR2_13 F_(AVB_AVTP_MATCH_A, IP0_19_16)
  82. #define GPSR2_12 F_(AVB_LINK, IP0_15_12)
  83. #define GPSR2_11 F_(AVB_PHY_INT, IP0_11_8)
  84. #define GPSR2_10 F_(AVB_MAGIC, IP0_7_4)
  85. #define GPSR2_9 F_(AVB_MDC, IP0_3_0)
  86. #define GPSR2_8 F_(PWM2_A, IP1_27_24)
  87. #define GPSR2_7 F_(PWM1_A, IP1_23_20)
  88. #define GPSR2_6 F_(PWM0, IP1_19_16)
  89. #define GPSR2_5 F_(IRQ5, IP1_15_12)
  90. #define GPSR2_4 F_(IRQ4, IP1_11_8)
  91. #define GPSR2_3 F_(IRQ3, IP1_7_4)
  92. #define GPSR2_2 F_(IRQ2, IP1_3_0)
  93. #define GPSR2_1 F_(IRQ1, IP0_31_28)
  94. #define GPSR2_0 F_(IRQ0, IP0_27_24)
  95. /* GPSR3 */
  96. #define GPSR3_15 F_(SD1_WP, IP10_23_20)
  97. #define GPSR3_14 F_(SD1_CD, IP10_19_16)
  98. #define GPSR3_13 F_(SD0_WP, IP10_15_12)
  99. #define GPSR3_12 F_(SD0_CD, IP10_11_8)
  100. #define GPSR3_11 F_(SD1_DAT3, IP8_31_28)
  101. #define GPSR3_10 F_(SD1_DAT2, IP8_27_24)
  102. #define GPSR3_9 F_(SD1_DAT1, IP8_23_20)
  103. #define GPSR3_8 F_(SD1_DAT0, IP8_19_16)
  104. #define GPSR3_7 F_(SD1_CMD, IP8_15_12)
  105. #define GPSR3_6 F_(SD1_CLK, IP8_11_8)
  106. #define GPSR3_5 F_(SD0_DAT3, IP8_7_4)
  107. #define GPSR3_4 F_(SD0_DAT2, IP8_3_0)
  108. #define GPSR3_3 F_(SD0_DAT1, IP7_31_28)
  109. #define GPSR3_2 F_(SD0_DAT0, IP7_27_24)
  110. #define GPSR3_1 F_(SD0_CMD, IP7_23_20)
  111. #define GPSR3_0 F_(SD0_CLK, IP7_19_16)
  112. /* GPSR4 */
  113. #define GPSR4_17 FM(SD3_DS)
  114. #define GPSR4_16 F_(SD3_DAT7, IP10_7_4)
  115. #define GPSR4_15 F_(SD3_DAT6, IP10_3_0)
  116. #define GPSR4_14 F_(SD3_DAT5, IP9_31_28)
  117. #define GPSR4_13 F_(SD3_DAT4, IP9_27_24)
  118. #define GPSR4_12 FM(SD3_DAT3)
  119. #define GPSR4_11 FM(SD3_DAT2)
  120. #define GPSR4_10 FM(SD3_DAT1)
  121. #define GPSR4_9 FM(SD3_DAT0)
  122. #define GPSR4_8 FM(SD3_CMD)
  123. #define GPSR4_7 FM(SD3_CLK)
  124. #define GPSR4_6 F_(SD2_DS, IP9_23_20)
  125. #define GPSR4_5 F_(SD2_DAT3, IP9_19_16)
  126. #define GPSR4_4 F_(SD2_DAT2, IP9_15_12)
  127. #define GPSR4_3 F_(SD2_DAT1, IP9_11_8)
  128. #define GPSR4_2 F_(SD2_DAT0, IP9_7_4)
  129. #define GPSR4_1 FM(SD2_CMD)
  130. #define GPSR4_0 F_(SD2_CLK, IP9_3_0)
  131. /* GPSR5 */
  132. #define GPSR5_25 F_(MLB_DAT, IP13_19_16)
  133. #define GPSR5_24 F_(MLB_SIG, IP13_15_12)
  134. #define GPSR5_23 F_(MLB_CLK, IP13_11_8)
  135. #define GPSR5_22 FM(MSIOF0_RXD)
  136. #define GPSR5_21 F_(MSIOF0_SS2, IP13_7_4)
  137. #define GPSR5_20 FM(MSIOF0_TXD)
  138. #define GPSR5_19 F_(MSIOF0_SS1, IP13_3_0)
  139. #define GPSR5_18 F_(MSIOF0_SYNC, IP12_31_28)
  140. #define GPSR5_17 FM(MSIOF0_SCK)
  141. #define GPSR5_16 F_(HRTS0_N, IP12_27_24)
  142. #define GPSR5_15 F_(HCTS0_N, IP12_23_20)
  143. #define GPSR5_14 F_(HTX0, IP12_19_16)
  144. #define GPSR5_13 F_(HRX0, IP12_15_12)
  145. #define GPSR5_12 F_(HSCK0, IP12_11_8)
  146. #define GPSR5_11 F_(RX2_A, IP12_7_4)
  147. #define GPSR5_10 F_(TX2_A, IP12_3_0)
  148. #define GPSR5_9 F_(SCK2, IP11_31_28)
  149. #define GPSR5_8 F_(RTS1_N_TANS, IP11_27_24)
  150. #define GPSR5_7 F_(CTS1_N, IP11_23_20)
  151. #define GPSR5_6 F_(TX1_A, IP11_19_16)
  152. #define GPSR5_5 F_(RX1_A, IP11_15_12)
  153. #define GPSR5_4 F_(RTS0_N_TANS, IP11_11_8)
  154. #define GPSR5_3 F_(CTS0_N, IP11_7_4)
  155. #define GPSR5_2 F_(TX0, IP11_3_0)
  156. #define GPSR5_1 F_(RX0, IP10_31_28)
  157. #define GPSR5_0 F_(SCK0, IP10_27_24)
  158. /* GPSR6 */
  159. #define GPSR6_31 F_(USB31_OVC, IP17_7_4)
  160. #define GPSR6_30 F_(USB31_PWEN, IP17_3_0)
  161. #define GPSR6_29 F_(USB30_OVC, IP16_31_28)
  162. #define GPSR6_28 F_(USB30_PWEN, IP16_27_24)
  163. #define GPSR6_27 F_(USB1_OVC, IP16_23_20)
  164. #define GPSR6_26 F_(USB1_PWEN, IP16_19_16)
  165. #define GPSR6_25 F_(USB0_OVC, IP16_15_12)
  166. #define GPSR6_24 F_(USB0_PWEN, IP16_11_8)
  167. #define GPSR6_23 F_(AUDIO_CLKB_B, IP16_7_4)
  168. #define GPSR6_22 F_(AUDIO_CLKA_A, IP16_3_0)
  169. #define GPSR6_21 F_(SSI_SDATA9_A, IP15_31_28)
  170. #define GPSR6_20 F_(SSI_SDATA8, IP15_27_24)
  171. #define GPSR6_19 F_(SSI_SDATA7, IP15_23_20)
  172. #define GPSR6_18 F_(SSI_WS78, IP15_19_16)
  173. #define GPSR6_17 F_(SSI_SCK78, IP15_15_12)
  174. #define GPSR6_16 F_(SSI_SDATA6, IP15_11_8)
  175. #define GPSR6_15 F_(SSI_WS6, IP15_7_4)
  176. #define GPSR6_14 F_(SSI_SCK6, IP15_3_0)
  177. #define GPSR6_13 FM(SSI_SDATA5)
  178. #define GPSR6_12 FM(SSI_WS5)
  179. #define GPSR6_11 FM(SSI_SCK5)
  180. #define GPSR6_10 F_(SSI_SDATA4, IP14_31_28)
  181. #define GPSR6_9 F_(SSI_WS4, IP14_27_24)
  182. #define GPSR6_8 F_(SSI_SCK4, IP14_23_20)
  183. #define GPSR6_7 F_(SSI_SDATA3, IP14_19_16)
  184. #define GPSR6_6 F_(SSI_WS34, IP14_15_12)
  185. #define GPSR6_5 F_(SSI_SCK34, IP14_11_8)
  186. #define GPSR6_4 F_(SSI_SDATA2_A, IP14_7_4)
  187. #define GPSR6_3 F_(SSI_SDATA1_A, IP14_3_0)
  188. #define GPSR6_2 F_(SSI_SDATA0, IP13_31_28)
  189. #define GPSR6_1 F_(SSI_WS01239, IP13_27_24)
  190. #define GPSR6_0 F_(SSI_SCK01239, IP13_23_20)
  191. /* GPSR7 */
  192. #define GPSR7_3 FM(HDMI1_CEC)
  193. #define GPSR7_2 FM(HDMI0_CEC)
  194. #define GPSR7_1 FM(AVS2)
  195. #define GPSR7_0 FM(AVS1)
  196. /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
  197. #define IP0_3_0 FM(AVB_MDC) F_(0, 0) FM(MSIOF2_SS2_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  198. #define IP0_7_4 FM(AVB_MAGIC) F_(0, 0) FM(MSIOF2_SS1_C) FM(SCK4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  199. #define IP0_11_8 FM(AVB_PHY_INT) F_(0, 0) FM(MSIOF2_SYNC_C) FM(RX4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  200. #define IP0_15_12 FM(AVB_LINK) F_(0, 0) FM(MSIOF2_SCK_C) FM(TX4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  201. #define IP0_19_16 FM(AVB_AVTP_MATCH_A) F_(0, 0) FM(MSIOF2_RXD_C) FM(CTS4_N_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  202. #define IP0_23_20 FM(AVB_AVTP_CAPTURE_A) F_(0, 0) FM(MSIOF2_TXD_C) FM(RTS4_N_TANS_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  203. #define IP0_27_24 FM(IRQ0) FM(QPOLB) F_(0, 0) FM(DU_CDE) FM(VI4_DATA0_B) FM(CAN0_TX_B) FM(CANFD0_TX_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  204. #define IP0_31_28 FM(IRQ1) FM(QPOLA) F_(0, 0) FM(DU_DISP) FM(VI4_DATA1_B) FM(CAN0_RX_B) FM(CANFD0_RX_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  205. #define IP1_3_0 FM(IRQ2) FM(QCPV_QDE) F_(0, 0) FM(DU_EXODDF_DU_ODDF_DISP_CDE) FM(VI4_DATA2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(PWM3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  206. #define IP1_7_4 FM(IRQ3) FM(QSTVB_QVE) FM(A25) FM(DU_DOTCLKOUT1) FM(VI4_DATA3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(PWM4_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  207. #define IP1_11_8 FM(IRQ4) FM(QSTH_QHS) FM(A24) FM(DU_EXHSYNC_DU_HSYNC) FM(VI4_DATA4_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(PWM5_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  208. #define IP1_15_12 FM(IRQ5) FM(QSTB_QHE) FM(A23) FM(DU_EXVSYNC_DU_VSYNC) FM(VI4_DATA5_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(PWM6_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  209. #define IP1_19_16 FM(PWM0) FM(AVB_AVTP_PPS)FM(A22) F_(0, 0) FM(VI4_DATA6_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(IECLK_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  210. #define IP1_23_20 FM(PWM1_A) F_(0, 0) FM(A21) FM(HRX3_D) FM(VI4_DATA7_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(IERX_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  211. #define IP1_27_24 FM(PWM2_A) F_(0, 0) FM(A20) FM(HTX3_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(IETX_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  212. #define IP1_31_28 FM(A0) FM(LCDOUT16) FM(MSIOF3_SYNC_B) F_(0, 0) FM(VI4_DATA8) F_(0, 0) FM(DU_DB0) F_(0, 0) F_(0, 0) FM(PWM3_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  213. #define IP2_3_0 FM(A1) FM(LCDOUT17) FM(MSIOF3_TXD_B) F_(0, 0) FM(VI4_DATA9) F_(0, 0) FM(DU_DB1) F_(0, 0) F_(0, 0) FM(PWM4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  214. #define IP2_7_4 FM(A2) FM(LCDOUT18) FM(MSIOF3_SCK_B) F_(0, 0) FM(VI4_DATA10) F_(0, 0) FM(DU_DB2) F_(0, 0) F_(0, 0) FM(PWM5_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  215. #define IP2_11_8 FM(A3) FM(LCDOUT19) FM(MSIOF3_RXD_B) F_(0, 0) FM(VI4_DATA11) F_(0, 0) FM(DU_DB3) F_(0, 0) F_(0, 0) FM(PWM6_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  216. /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
  217. #define IP2_15_12 FM(A4) FM(LCDOUT20) FM(MSIOF3_SS1_B) F_(0, 0) FM(VI4_DATA12) FM(VI5_DATA12) FM(DU_DB4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  218. #define IP2_19_16 FM(A5) FM(LCDOUT21) FM(MSIOF3_SS2_B) FM(SCK4_B) FM(VI4_DATA13) FM(VI5_DATA13) FM(DU_DB5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  219. #define IP2_23_20 FM(A6) FM(LCDOUT22) FM(MSIOF2_SS1_A) FM(RX4_B) FM(VI4_DATA14) FM(VI5_DATA14) FM(DU_DB6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  220. #define IP2_27_24 FM(A7) FM(LCDOUT23) FM(MSIOF2_SS2_A) FM(TX4_B) FM(VI4_DATA15) FM(VI5_DATA15) FM(DU_DB7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  221. #define IP2_31_28 FM(A8) FM(RX3_B) FM(MSIOF2_SYNC_A) FM(HRX4_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(SDA6_A) FM(AVB_AVTP_MATCH_B) FM(PWM1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  222. #define IP3_3_0 FM(A9) F_(0, 0) FM(MSIOF2_SCK_A) FM(CTS4_N_B) F_(0, 0) FM(VI5_VSYNC_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  223. #define IP3_7_4 FM(A10) F_(0, 0) FM(MSIOF2_RXD_A) FM(RTS4_N_TANS_B) F_(0, 0) FM(VI5_HSYNC_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  224. #define IP3_11_8 FM(A11) FM(TX3_B) FM(MSIOF2_TXD_A) FM(HTX4_B) FM(HSCK4) FM(VI5_FIELD) F_(0, 0) FM(SCL6_A) FM(AVB_AVTP_CAPTURE_B) FM(PWM2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  225. #define IP3_15_12 FM(A12) FM(LCDOUT12) FM(MSIOF3_SCK_C) F_(0, 0) FM(HRX4_A) FM(VI5_DATA8) FM(DU_DG4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  226. #define IP3_19_16 FM(A13) FM(LCDOUT13) FM(MSIOF3_SYNC_C) F_(0, 0) FM(HTX4_A) FM(VI5_DATA9) FM(DU_DG5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  227. #define IP3_23_20 FM(A14) FM(LCDOUT14) FM(MSIOF3_RXD_C) F_(0, 0) FM(HCTS4_N) FM(VI5_DATA10) FM(DU_DG6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  228. #define IP3_27_24 FM(A15) FM(LCDOUT15) FM(MSIOF3_TXD_C) F_(0, 0) FM(HRTS4_N) FM(VI5_DATA11) FM(DU_DG7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  229. #define IP3_31_28 FM(A16) FM(LCDOUT8) F_(0, 0) F_(0, 0) FM(VI4_FIELD) F_(0, 0) FM(DU_DG0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  230. #define IP4_3_0 FM(A17) FM(LCDOUT9) F_(0, 0) F_(0, 0) FM(VI4_VSYNC_N) F_(0, 0) FM(DU_DG1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  231. #define IP4_7_4 FM(A18) FM(LCDOUT10) F_(0, 0) F_(0, 0) FM(VI4_HSYNC_N) F_(0, 0) FM(DU_DG2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  232. #define IP4_11_8 FM(A19) FM(LCDOUT11) F_(0, 0) F_(0, 0) FM(VI4_CLKENB) F_(0, 0) FM(DU_DG3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  233. #define IP4_15_12 FM(CS0_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(VI5_CLKENB) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  234. #define IP4_19_16 FM(CS1_N_A26) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(VI5_CLK) F_(0, 0) FM(EX_WAIT0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  235. #define IP4_23_20 FM(BS_N) FM(QSTVA_QVS) FM(MSIOF3_SCK_D) FM(SCK3) FM(HSCK3) F_(0, 0) F_(0, 0) F_(0, 0) FM(CAN1_TX) FM(CANFD1_TX) FM(IETX_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  236. #define IP4_27_24 FM(RD_N) F_(0, 0) FM(MSIOF3_SYNC_D) FM(RX3_A) FM(HRX3_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(CAN0_TX_A) FM(CANFD0_TX_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  237. #define IP4_31_28 FM(RD_WR_N) F_(0, 0) FM(MSIOF3_RXD_D) FM(TX3_A) FM(HTX3_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(CAN0_RX_A) FM(CANFD0_RX_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  238. #define IP5_3_0 FM(WE0_N) F_(0, 0) FM(MSIOF3_TXD_D) FM(CTS3_N) FM(HCTS3_N) F_(0, 0) F_(0, 0) FM(SCL6_B) FM(CAN_CLK) F_(0, 0) FM(IECLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  239. #define IP5_7_4 FM(WE1_N) F_(0, 0) FM(MSIOF3_SS1_D) FM(RTS3_N_TANS) FM(HRTS3_N) F_(0, 0) F_(0, 0) FM(SDA6_B) FM(CAN1_RX) FM(CANFD1_RX) FM(IERX_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  240. #define IP5_11_8 FM(EX_WAIT0_A) FM(QCLK) F_(0, 0) F_(0, 0) FM(VI4_CLK) F_(0, 0) FM(DU_DOTCLKOUT0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  241. #define IP5_15_12 FM(D0) FM(MSIOF2_SS1_B)FM(MSIOF3_SCK_A) F_(0, 0) FM(VI4_DATA16) FM(VI5_DATA0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  242. #define IP5_19_16 FM(D1) FM(MSIOF2_SS2_B)FM(MSIOF3_SYNC_A) F_(0, 0) FM(VI4_DATA17) FM(VI5_DATA1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  243. #define IP5_23_20 FM(D2) F_(0, 0) FM(MSIOF3_RXD_A) F_(0, 0) FM(VI4_DATA18) FM(VI5_DATA2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  244. #define IP5_27_24 FM(D3) F_(0, 0) FM(MSIOF3_TXD_A) F_(0, 0) FM(VI4_DATA19) FM(VI5_DATA3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  245. #define IP5_31_28 FM(D4) FM(MSIOF2_SCK_B)F_(0, 0) F_(0, 0) FM(VI4_DATA20) FM(VI5_DATA4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  246. #define IP6_3_0 FM(D5) FM(MSIOF2_SYNC_B)F_(0, 0) F_(0, 0) FM(VI4_DATA21) FM(VI5_DATA5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  247. #define IP6_7_4 FM(D6) FM(MSIOF2_RXD_B)F_(0, 0) F_(0, 0) FM(VI4_DATA22) FM(VI5_DATA6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  248. #define IP6_11_8 FM(D7) FM(MSIOF2_TXD_B)F_(0, 0) F_(0, 0) FM(VI4_DATA23) FM(VI5_DATA7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  249. #define IP6_15_12 FM(D8) FM(LCDOUT0) FM(MSIOF2_SCK_D) FM(SCK4_C) FM(VI4_DATA0_A) F_(0, 0) FM(DU_DR0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  250. #define IP6_19_16 FM(D9) FM(LCDOUT1) FM(MSIOF2_SYNC_D) F_(0, 0) FM(VI4_DATA1_A) F_(0, 0) FM(DU_DR1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  251. #define IP6_23_20 FM(D10) FM(LCDOUT2) FM(MSIOF2_RXD_D) FM(HRX3_B) FM(VI4_DATA2_A) FM(CTS4_N_C) FM(DU_DR2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  252. #define IP6_27_24 FM(D11) FM(LCDOUT3) FM(MSIOF2_TXD_D) FM(HTX3_B) FM(VI4_DATA3_A) FM(RTS4_N_TANS_C)FM(DU_DR3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  253. #define IP6_31_28 FM(D12) FM(LCDOUT4) FM(MSIOF2_SS1_D) FM(RX4_C) FM(VI4_DATA4_A) F_(0, 0) FM(DU_DR4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  254. #define IP7_3_0 FM(D13) FM(LCDOUT5) FM(MSIOF2_SS2_D) FM(TX4_C) FM(VI4_DATA5_A) F_(0, 0) FM(DU_DR5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  255. #define IP7_7_4 FM(D14) FM(LCDOUT6) FM(MSIOF3_SS1_A) FM(HRX3_C) FM(VI4_DATA6_A) F_(0, 0) FM(DU_DR6) FM(SCL6_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  256. #define IP7_11_8 FM(D15) FM(LCDOUT7) FM(MSIOF3_SS2_A) FM(HTX3_C) FM(VI4_DATA7_A) F_(0, 0) FM(DU_DR7) FM(SDA6_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  257. #define IP7_15_12 FM(FSCLKST) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  258. #define IP7_19_16 FM(SD0_CLK) F_(0, 0) FM(MSIOF1_SCK_E) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_OPWM_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  259. /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
  260. #define IP7_23_20 FM(SD0_CMD) F_(0, 0) FM(MSIOF1_SYNC_E) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_IVCXO27_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  261. #define IP7_27_24 FM(SD0_DAT0) F_(0, 0) FM(MSIOF1_RXD_E) F_(0, 0) F_(0, 0) FM(TS_SCK0_B) FM(STP_ISCLK_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  262. #define IP7_31_28 FM(SD0_DAT1) F_(0, 0) FM(MSIOF1_TXD_E) F_(0, 0) F_(0, 0) FM(TS_SPSYNC0_B)FM(STP_ISSYNC_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  263. #define IP8_3_0 FM(SD0_DAT2) F_(0, 0) FM(MSIOF1_SS1_E) F_(0, 0) F_(0, 0) FM(TS_SDAT0_B) FM(STP_ISD_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  264. #define IP8_7_4 FM(SD0_DAT3) F_(0, 0) FM(MSIOF1_SS2_E) F_(0, 0) F_(0, 0) FM(TS_SDEN0_B) FM(STP_ISEN_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  265. #define IP8_11_8 FM(SD1_CLK) F_(0, 0) FM(MSIOF1_SCK_G) F_(0, 0) F_(0, 0) FM(SIM0_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  266. #define IP8_15_12 FM(SD1_CMD) F_(0, 0) FM(MSIOF1_SYNC_G) F_(0, 0) F_(0, 0) FM(SIM0_D_A) FM(STP_IVCXO27_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  267. #define IP8_19_16 FM(SD1_DAT0) FM(SD2_DAT4) FM(MSIOF1_RXD_G) F_(0, 0) F_(0, 0) FM(TS_SCK1_B) FM(STP_ISCLK_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  268. #define IP8_23_20 FM(SD1_DAT1) FM(SD2_DAT5) FM(MSIOF1_TXD_G) F_(0, 0) F_(0, 0) FM(TS_SPSYNC1_B)FM(STP_ISSYNC_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  269. #define IP8_27_24 FM(SD1_DAT2) FM(SD2_DAT6) FM(MSIOF1_SS1_G) F_(0, 0) F_(0, 0) FM(TS_SDAT1_B) FM(STP_ISD_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  270. #define IP8_31_28 FM(SD1_DAT3) FM(SD2_DAT7) FM(MSIOF1_SS2_G) F_(0, 0) F_(0, 0) FM(TS_SDEN1_B) FM(STP_ISEN_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  271. #define IP9_3_0 FM(SD2_CLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  272. #define IP9_7_4 FM(SD2_DAT0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  273. #define IP9_11_8 FM(SD2_DAT1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  274. #define IP9_15_12 FM(SD2_DAT2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  275. #define IP9_19_16 FM(SD2_DAT3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  276. #define IP9_23_20 FM(SD2_DS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(SATA_DEVSLP_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  277. #define IP9_27_24 FM(SD3_DAT4) FM(SD2_CD_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  278. #define IP9_31_28 FM(SD3_DAT5) FM(SD2_WP_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  279. #define IP10_3_0 FM(SD3_DAT6) FM(SD3_CD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  280. #define IP10_7_4 FM(SD3_DAT7) FM(SD3_WP) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  281. #define IP10_11_8 FM(SD0_CD) F_(0, 0) F_(0, 0) F_(0, 0) FM(SCL2_B) FM(SIM0_RST_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  282. #define IP10_15_12 FM(SD0_WP) F_(0, 0) F_(0, 0) F_(0, 0) FM(SDA2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  283. #define IP10_19_16 FM(SD1_CD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(SIM0_CLK_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  284. #define IP10_23_20 FM(SD1_WP) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(SIM0_D_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  285. #define IP10_27_24 FM(SCK0) FM(HSCK1_B) FM(MSIOF1_SS2_B) FM(AUDIO_CLKC_B) FM(SDA2_A) FM(SIM0_RST_B) FM(STP_OPWM_0_C) FM(RIF0_CLK_B) F_(0, 0) FM(ADICHS2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  286. #define IP10_31_28 FM(RX0) FM(HRX1_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SCK0_C) FM(STP_ISCLK_0_C) FM(RIF0_D0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  287. #define IP11_3_0 FM(TX0) FM(HTX1_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SPSYNC0_C)FM(STP_ISSYNC_0_C) FM(RIF0_D1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  288. #define IP11_7_4 FM(CTS0_N) FM(HCTS1_N_B) FM(MSIOF1_SYNC_B) F_(0, 0) F_(0, 0) FM(TS_SPSYNC1_C)FM(STP_ISSYNC_1_C) FM(RIF1_SYNC_B) FM(AUDIO_CLKOUT_C) FM(ADICS_SAMP) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  289. #define IP11_11_8 FM(RTS0_N_TANS) FM(HRTS1_N_B) FM(MSIOF1_SS1_B) FM(AUDIO_CLKA_B) FM(SCL2_A) F_(0, 0) FM(STP_IVCXO27_1_C) FM(RIF0_SYNC_B) F_(0, 0) FM(ADICHS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  290. #define IP11_15_12 FM(RX1_A) FM(HRX1_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SDAT0_C) FM(STP_ISD_0_C) FM(RIF1_CLK_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  291. #define IP11_19_16 FM(TX1_A) FM(HTX1_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SDEN0_C) FM(STP_ISEN_0_C) FM(RIF1_D0_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  292. #define IP11_23_20 FM(CTS1_N) FM(HCTS1_N_A) FM(MSIOF1_RXD_B) F_(0, 0) F_(0, 0) FM(TS_SDEN1_C) FM(STP_ISEN_1_C) FM(RIF1_D0_B) F_(0, 0) FM(ADIDATA) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  293. #define IP11_27_24 FM(RTS1_N_TANS) FM(HRTS1_N_A) FM(MSIOF1_TXD_B) F_(0, 0) F_(0, 0) FM(TS_SDAT1_C) FM(STP_ISD_1_C) FM(RIF1_D1_B) F_(0, 0) FM(ADICHS0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  294. #define IP11_31_28 FM(SCK2) FM(SCIF_CLK_B) FM(MSIOF1_SCK_B) F_(0, 0) F_(0, 0) FM(TS_SCK1_C) FM(STP_ISCLK_1_C) FM(RIF1_CLK_B) F_(0, 0) FM(ADICLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  295. #define IP12_3_0 FM(TX2_A) F_(0, 0) F_(0, 0) FM(SD2_CD_B) FM(SCL1_A) F_(0, 0) FM(FMCLK_A) FM(RIF1_D1_C) F_(0, 0) FM(FSO_CFE_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  296. #define IP12_7_4 FM(RX2_A) F_(0, 0) F_(0, 0) FM(SD2_WP_B) FM(SDA1_A) F_(0, 0) FM(FMIN_A) FM(RIF1_SYNC_C) F_(0, 0) FM(FSO_CFE_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  297. #define IP12_11_8 FM(HSCK0) F_(0, 0) FM(MSIOF1_SCK_D) FM(AUDIO_CLKB_A) FM(SSI_SDATA1_B)FM(TS_SCK0_D) FM(STP_ISCLK_0_D) FM(RIF0_CLK_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  298. #define IP12_15_12 FM(HRX0) F_(0, 0) FM(MSIOF1_RXD_D) F_(0, 0) FM(SSI_SDATA2_B)FM(TS_SDEN0_D) FM(STP_ISEN_0_D) FM(RIF0_D0_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  299. #define IP12_19_16 FM(HTX0) F_(0, 0) FM(MSIOF1_TXD_D) F_(0, 0) FM(SSI_SDATA9_B)FM(TS_SDAT0_D) FM(STP_ISD_0_D) FM(RIF0_D1_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  300. #define IP12_23_20 FM(HCTS0_N) FM(RX2_B) FM(MSIOF1_SYNC_D) F_(0, 0) FM(SSI_SCK9_A) FM(TS_SPSYNC0_D)FM(STP_ISSYNC_0_D) FM(RIF0_SYNC_C) FM(AUDIO_CLKOUT1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  301. #define IP12_27_24 FM(HRTS0_N) FM(TX2_B) FM(MSIOF1_SS1_D) F_(0, 0) FM(SSI_WS9_A) F_(0, 0) FM(STP_IVCXO27_0_D) FM(BPFCLK_A) FM(AUDIO_CLKOUT2_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  302. /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
  303. #define IP12_31_28 FM(MSIOF0_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  304. #define IP13_3_0 FM(MSIOF0_SS1) FM(RX5) F_(0, 0) FM(AUDIO_CLKA_C) FM(SSI_SCK2_A) F_(0, 0) FM(STP_IVCXO27_0_C) F_(0, 0) FM(AUDIO_CLKOUT3_A) F_(0, 0) FM(TCLK1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  305. #define IP13_7_4 FM(MSIOF0_SS2) FM(TX5) FM(MSIOF1_SS2_D) FM(AUDIO_CLKC_A) FM(SSI_WS2_A) F_(0, 0) FM(STP_OPWM_0_D) F_(0, 0) FM(AUDIO_CLKOUT_D) F_(0, 0) FM(SPEEDIN_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  306. #define IP13_11_8 FM(MLB_CLK) F_(0, 0) FM(MSIOF1_SCK_F) F_(0, 0) FM(SCL1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  307. #define IP13_15_12 FM(MLB_SIG) FM(RX1_B) FM(MSIOF1_SYNC_F) F_(0, 0) FM(SDA1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  308. #define IP13_19_16 FM(MLB_DAT) FM(TX1_B) FM(MSIOF1_RXD_F) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  309. #define IP13_23_20 FM(SSI_SCK01239) F_(0, 0) FM(MSIOF1_TXD_F) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  310. #define IP13_27_24 FM(SSI_WS01239) F_(0, 0) FM(MSIOF1_SS1_F) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  311. #define IP13_31_28 FM(SSI_SDATA0) F_(0, 0) FM(MSIOF1_SS2_F) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  312. #define IP14_3_0 FM(SSI_SDATA1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  313. #define IP14_7_4 FM(SSI_SDATA2_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(SSI_SCK1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  314. #define IP14_11_8 FM(SSI_SCK34) F_(0, 0) FM(MSIOF1_SS1_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_OPWM_0_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  315. #define IP14_15_12 FM(SSI_WS34) FM(HCTS2_N_A) FM(MSIOF1_SS2_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_IVCXO27_0_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  316. #define IP14_19_16 FM(SSI_SDATA3) FM(HRTS2_N_A) FM(MSIOF1_TXD_A) F_(0, 0) F_(0, 0) FM(TS_SCK0_A) FM(STP_ISCLK_0_A) FM(RIF0_D1_A) FM(RIF2_D0_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  317. #define IP14_23_20 FM(SSI_SCK4) FM(HRX2_A) FM(MSIOF1_SCK_A) F_(0, 0) F_(0, 0) FM(TS_SDAT0_A) FM(STP_ISD_0_A) FM(RIF0_CLK_A) FM(RIF2_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  318. #define IP14_27_24 FM(SSI_WS4) FM(HTX2_A) FM(MSIOF1_SYNC_A) F_(0, 0) F_(0, 0) FM(TS_SDEN0_A) FM(STP_ISEN_0_A) FM(RIF0_SYNC_A) FM(RIF2_SYNC_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  319. #define IP14_31_28 FM(SSI_SDATA4) FM(HSCK2_A) FM(MSIOF1_RXD_A) F_(0, 0) F_(0, 0) FM(TS_SPSYNC0_A)FM(STP_ISSYNC_0_A) FM(RIF0_D0_A) FM(RIF2_D1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  320. #define IP15_3_0 FM(SSI_SCK6) FM(USB2_PWEN) F_(0, 0) FM(SIM0_RST_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  321. #define IP15_7_4 FM(SSI_WS6) FM(USB2_OVC) F_(0, 0) FM(SIM0_D_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  322. #define IP15_11_8 FM(SSI_SDATA6) F_(0, 0) F_(0, 0) FM(SIM0_CLK_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(SATA_DEVSLP_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  323. #define IP15_15_12 FM(SSI_SCK78) FM(HRX2_B) FM(MSIOF1_SCK_C) F_(0, 0) F_(0, 0) FM(TS_SCK1_A) FM(STP_ISCLK_1_A) FM(RIF1_CLK_A) FM(RIF3_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  324. #define IP15_19_16 FM(SSI_WS78) FM(HTX2_B) FM(MSIOF1_SYNC_C) F_(0, 0) F_(0, 0) FM(TS_SDAT1_A) FM(STP_ISD_1_A) FM(RIF1_SYNC_A) FM(RIF3_SYNC_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  325. #define IP15_23_20 FM(SSI_SDATA7) FM(HCTS2_N_B) FM(MSIOF1_RXD_C) F_(0, 0) F_(0, 0) FM(TS_SDEN1_A) FM(STP_ISEN_1_A) FM(RIF1_D0_A) FM(RIF3_D0_A) F_(0, 0) FM(TCLK2_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  326. #define IP15_27_24 FM(SSI_SDATA8) FM(HRTS2_N_B) FM(MSIOF1_TXD_C) F_(0, 0) F_(0, 0) FM(TS_SPSYNC1_A)FM(STP_ISSYNC_1_A) FM(RIF1_D1_A) FM(RIF3_D1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  327. #define IP15_31_28 FM(SSI_SDATA9_A) FM(HSCK2_B) FM(MSIOF1_SS1_C) FM(HSCK1_A) FM(SSI_WS1_B) FM(SCK1) FM(STP_IVCXO27_1_A) FM(SCK5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  328. #define IP16_3_0 FM(AUDIO_CLKA_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(CC5_OSCOUT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  329. #define IP16_7_4 FM(AUDIO_CLKB_B) FM(SCIF_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_IVCXO27_1_D) FM(REMOCON_A) F_(0, 0) F_(0, 0) FM(TCLK1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  330. #define IP16_11_8 FM(USB0_PWEN) F_(0, 0) F_(0, 0) FM(SIM0_RST_C) F_(0, 0) FM(TS_SCK1_D) FM(STP_ISCLK_1_D) FM(BPFCLK_B) FM(RIF3_CLK_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  331. #define IP16_15_12 FM(USB0_OVC) F_(0, 0) F_(0, 0) FM(SIM0_D_C) F_(0, 0) FM(TS_SDAT1_D) FM(STP_ISD_1_D) F_(0, 0) FM(RIF3_SYNC_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  332. #define IP16_19_16 FM(USB1_PWEN) F_(0, 0) F_(0, 0) FM(SIM0_CLK_C) FM(SSI_SCK1_A) FM(TS_SCK0_E) FM(STP_ISCLK_0_E) FM(FMCLK_B) FM(RIF2_CLK_B) F_(0, 0) FM(SPEEDIN_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  333. #define IP16_23_20 FM(USB1_OVC) F_(0, 0) FM(MSIOF1_SS2_C) F_(0, 0) FM(SSI_WS1_A) FM(TS_SDAT0_E) FM(STP_ISD_0_E) FM(FMIN_B) FM(RIF2_SYNC_B) F_(0, 0) FM(REMOCON_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  334. #define IP16_27_24 FM(USB30_PWEN) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT_B) FM(SSI_SCK2_B) FM(TS_SDEN1_D) FM(STP_ISEN_1_D) FM(STP_OPWM_0_E)FM(RIF3_D0_B) F_(0, 0) FM(TCLK2_B) FM(TPU0TO0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  335. #define IP16_31_28 FM(USB30_OVC) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT1_B) FM(SSI_WS2_B) FM(TS_SPSYNC1_D)FM(STP_ISSYNC_1_D) FM(STP_IVCXO27_0_E)FM(RIF3_D1_B) F_(0, 0) FM(FSO_TOE_B) FM(TPU0TO1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  336. #define IP17_3_0 FM(USB31_PWEN) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT2_B) FM(SSI_SCK9_B) FM(TS_SDEN0_E) FM(STP_ISEN_0_E) F_(0, 0) FM(RIF2_D0_B) F_(0, 0) F_(0, 0) FM(TPU0TO2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  337. #define IP17_7_4 FM(USB31_OVC) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT3_B) FM(SSI_WS9_B) FM(TS_SPSYNC0_E)FM(STP_ISSYNC_0_E) F_(0, 0) FM(RIF2_D1_B) F_(0, 0) F_(0, 0) FM(TPU0TO3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  338. #define PINMUX_GPSR \
  339. \
  340. GPSR6_31 \
  341. GPSR6_30 \
  342. GPSR6_29 \
  343. GPSR6_28 \
  344. GPSR1_27 GPSR6_27 \
  345. GPSR1_26 GPSR6_26 \
  346. GPSR1_25 GPSR5_25 GPSR6_25 \
  347. GPSR1_24 GPSR5_24 GPSR6_24 \
  348. GPSR1_23 GPSR5_23 GPSR6_23 \
  349. GPSR1_22 GPSR5_22 GPSR6_22 \
  350. GPSR1_21 GPSR5_21 GPSR6_21 \
  351. GPSR1_20 GPSR5_20 GPSR6_20 \
  352. GPSR1_19 GPSR5_19 GPSR6_19 \
  353. GPSR1_18 GPSR5_18 GPSR6_18 \
  354. GPSR1_17 GPSR4_17 GPSR5_17 GPSR6_17 \
  355. GPSR1_16 GPSR4_16 GPSR5_16 GPSR6_16 \
  356. GPSR0_15 GPSR1_15 GPSR3_15 GPSR4_15 GPSR5_15 GPSR6_15 \
  357. GPSR0_14 GPSR1_14 GPSR2_14 GPSR3_14 GPSR4_14 GPSR5_14 GPSR6_14 \
  358. GPSR0_13 GPSR1_13 GPSR2_13 GPSR3_13 GPSR4_13 GPSR5_13 GPSR6_13 \
  359. GPSR0_12 GPSR1_12 GPSR2_12 GPSR3_12 GPSR4_12 GPSR5_12 GPSR6_12 \
  360. GPSR0_11 GPSR1_11 GPSR2_11 GPSR3_11 GPSR4_11 GPSR5_11 GPSR6_11 \
  361. GPSR0_10 GPSR1_10 GPSR2_10 GPSR3_10 GPSR4_10 GPSR5_10 GPSR6_10 \
  362. GPSR0_9 GPSR1_9 GPSR2_9 GPSR3_9 GPSR4_9 GPSR5_9 GPSR6_9 \
  363. GPSR0_8 GPSR1_8 GPSR2_8 GPSR3_8 GPSR4_8 GPSR5_8 GPSR6_8 \
  364. GPSR0_7 GPSR1_7 GPSR2_7 GPSR3_7 GPSR4_7 GPSR5_7 GPSR6_7 \
  365. GPSR0_6 GPSR1_6 GPSR2_6 GPSR3_6 GPSR4_6 GPSR5_6 GPSR6_6 \
  366. GPSR0_5 GPSR1_5 GPSR2_5 GPSR3_5 GPSR4_5 GPSR5_5 GPSR6_5 \
  367. GPSR0_4 GPSR1_4 GPSR2_4 GPSR3_4 GPSR4_4 GPSR5_4 GPSR6_4 \
  368. GPSR0_3 GPSR1_3 GPSR2_3 GPSR3_3 GPSR4_3 GPSR5_3 GPSR6_3 GPSR7_3 \
  369. GPSR0_2 GPSR1_2 GPSR2_2 GPSR3_2 GPSR4_2 GPSR5_2 GPSR6_2 GPSR7_2 \
  370. GPSR0_1 GPSR1_1 GPSR2_1 GPSR3_1 GPSR4_1 GPSR5_1 GPSR6_1 GPSR7_1 \
  371. GPSR0_0 GPSR1_0 GPSR2_0 GPSR3_0 GPSR4_0 GPSR5_0 GPSR6_0 GPSR7_0
  372. #define PINMUX_IPSR \
  373. \
  374. FM(IP0_3_0) IP0_3_0 FM(IP1_3_0) IP1_3_0 FM(IP2_3_0) IP2_3_0 FM(IP3_3_0) IP3_3_0 \
  375. FM(IP0_7_4) IP0_7_4 FM(IP1_7_4) IP1_7_4 FM(IP2_7_4) IP2_7_4 FM(IP3_7_4) IP3_7_4 \
  376. FM(IP0_11_8) IP0_11_8 FM(IP1_11_8) IP1_11_8 FM(IP2_11_8) IP2_11_8 FM(IP3_11_8) IP3_11_8 \
  377. FM(IP0_15_12) IP0_15_12 FM(IP1_15_12) IP1_15_12 FM(IP2_15_12) IP2_15_12 FM(IP3_15_12) IP3_15_12 \
  378. FM(IP0_19_16) IP0_19_16 FM(IP1_19_16) IP1_19_16 FM(IP2_19_16) IP2_19_16 FM(IP3_19_16) IP3_19_16 \
  379. FM(IP0_23_20) IP0_23_20 FM(IP1_23_20) IP1_23_20 FM(IP2_23_20) IP2_23_20 FM(IP3_23_20) IP3_23_20 \
  380. FM(IP0_27_24) IP0_27_24 FM(IP1_27_24) IP1_27_24 FM(IP2_27_24) IP2_27_24 FM(IP3_27_24) IP3_27_24 \
  381. FM(IP0_31_28) IP0_31_28 FM(IP1_31_28) IP1_31_28 FM(IP2_31_28) IP2_31_28 FM(IP3_31_28) IP3_31_28 \
  382. \
  383. FM(IP4_3_0) IP4_3_0 FM(IP5_3_0) IP5_3_0 FM(IP6_3_0) IP6_3_0 FM(IP7_3_0) IP7_3_0 \
  384. FM(IP4_7_4) IP4_7_4 FM(IP5_7_4) IP5_7_4 FM(IP6_7_4) IP6_7_4 FM(IP7_7_4) IP7_7_4 \
  385. FM(IP4_11_8) IP4_11_8 FM(IP5_11_8) IP5_11_8 FM(IP6_11_8) IP6_11_8 FM(IP7_11_8) IP7_11_8 \
  386. FM(IP4_15_12) IP4_15_12 FM(IP5_15_12) IP5_15_12 FM(IP6_15_12) IP6_15_12 FM(IP7_15_12) IP7_15_12 \
  387. FM(IP4_19_16) IP4_19_16 FM(IP5_19_16) IP5_19_16 FM(IP6_19_16) IP6_19_16 FM(IP7_19_16) IP7_19_16 \
  388. FM(IP4_23_20) IP4_23_20 FM(IP5_23_20) IP5_23_20 FM(IP6_23_20) IP6_23_20 FM(IP7_23_20) IP7_23_20 \
  389. FM(IP4_27_24) IP4_27_24 FM(IP5_27_24) IP5_27_24 FM(IP6_27_24) IP6_27_24 FM(IP7_27_24) IP7_27_24 \
  390. FM(IP4_31_28) IP4_31_28 FM(IP5_31_28) IP5_31_28 FM(IP6_31_28) IP6_31_28 FM(IP7_31_28) IP7_31_28 \
  391. \
  392. FM(IP8_3_0) IP8_3_0 FM(IP9_3_0) IP9_3_0 FM(IP10_3_0) IP10_3_0 FM(IP11_3_0) IP11_3_0 \
  393. FM(IP8_7_4) IP8_7_4 FM(IP9_7_4) IP9_7_4 FM(IP10_7_4) IP10_7_4 FM(IP11_7_4) IP11_7_4 \
  394. FM(IP8_11_8) IP8_11_8 FM(IP9_11_8) IP9_11_8 FM(IP10_11_8) IP10_11_8 FM(IP11_11_8) IP11_11_8 \
  395. FM(IP8_15_12) IP8_15_12 FM(IP9_15_12) IP9_15_12 FM(IP10_15_12) IP10_15_12 FM(IP11_15_12) IP11_15_12 \
  396. FM(IP8_19_16) IP8_19_16 FM(IP9_19_16) IP9_19_16 FM(IP10_19_16) IP10_19_16 FM(IP11_19_16) IP11_19_16 \
  397. FM(IP8_23_20) IP8_23_20 FM(IP9_23_20) IP9_23_20 FM(IP10_23_20) IP10_23_20 FM(IP11_23_20) IP11_23_20 \
  398. FM(IP8_27_24) IP8_27_24 FM(IP9_27_24) IP9_27_24 FM(IP10_27_24) IP10_27_24 FM(IP11_27_24) IP11_27_24 \
  399. FM(IP8_31_28) IP8_31_28 FM(IP9_31_28) IP9_31_28 FM(IP10_31_28) IP10_31_28 FM(IP11_31_28) IP11_31_28 \
  400. \
  401. FM(IP12_3_0) IP12_3_0 FM(IP13_3_0) IP13_3_0 FM(IP14_3_0) IP14_3_0 FM(IP15_3_0) IP15_3_0 \
  402. FM(IP12_7_4) IP12_7_4 FM(IP13_7_4) IP13_7_4 FM(IP14_7_4) IP14_7_4 FM(IP15_7_4) IP15_7_4 \
  403. FM(IP12_11_8) IP12_11_8 FM(IP13_11_8) IP13_11_8 FM(IP14_11_8) IP14_11_8 FM(IP15_11_8) IP15_11_8 \
  404. FM(IP12_15_12) IP12_15_12 FM(IP13_15_12) IP13_15_12 FM(IP14_15_12) IP14_15_12 FM(IP15_15_12) IP15_15_12 \
  405. FM(IP12_19_16) IP12_19_16 FM(IP13_19_16) IP13_19_16 FM(IP14_19_16) IP14_19_16 FM(IP15_19_16) IP15_19_16 \
  406. FM(IP12_23_20) IP12_23_20 FM(IP13_23_20) IP13_23_20 FM(IP14_23_20) IP14_23_20 FM(IP15_23_20) IP15_23_20 \
  407. FM(IP12_27_24) IP12_27_24 FM(IP13_27_24) IP13_27_24 FM(IP14_27_24) IP14_27_24 FM(IP15_27_24) IP15_27_24 \
  408. FM(IP12_31_28) IP12_31_28 FM(IP13_31_28) IP13_31_28 FM(IP14_31_28) IP14_31_28 FM(IP15_31_28) IP15_31_28 \
  409. \
  410. FM(IP16_3_0) IP16_3_0 FM(IP17_3_0) IP17_3_0 \
  411. FM(IP16_7_4) IP16_7_4 FM(IP17_7_4) IP17_7_4 \
  412. FM(IP16_11_8) IP16_11_8 \
  413. FM(IP16_15_12) IP16_15_12 \
  414. FM(IP16_19_16) IP16_19_16 \
  415. FM(IP16_23_20) IP16_23_20 \
  416. FM(IP16_27_24) IP16_27_24 \
  417. FM(IP16_31_28) IP16_31_28
  418. /* MOD_SEL0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */
  419. #define MOD_SEL0_30_29 FM(SEL_MSIOF3_0) FM(SEL_MSIOF3_1) FM(SEL_MSIOF3_2) FM(SEL_MSIOF3_3)
  420. #define MOD_SEL0_28_27 FM(SEL_MSIOF2_0) FM(SEL_MSIOF2_1) FM(SEL_MSIOF2_2) FM(SEL_MSIOF2_3)
  421. #define MOD_SEL0_26_25_24 FM(SEL_MSIOF1_0) FM(SEL_MSIOF1_1) FM(SEL_MSIOF1_2) FM(SEL_MSIOF1_3) FM(SEL_MSIOF1_4) FM(SEL_MSIOF1_5) FM(SEL_MSIOF1_6) F_(0, 0)
  422. #define MOD_SEL0_23 FM(SEL_LBSC_0) FM(SEL_LBSC_1)
  423. #define MOD_SEL0_22 FM(SEL_IEBUS_0) FM(SEL_IEBUS_1)
  424. #define MOD_SEL0_21_20 FM(SEL_I2C6_0) FM(SEL_I2C6_1) FM(SEL_I2C6_2) F_(0, 0)
  425. #define MOD_SEL0_19 FM(SEL_I2C2_0) FM(SEL_I2C2_1)
  426. #define MOD_SEL0_18 FM(SEL_I2C1_0) FM(SEL_I2C1_1)
  427. #define MOD_SEL0_17 FM(SEL_HSCIF4_0) FM(SEL_HSCIF4_1)
  428. #define MOD_SEL0_16_15 FM(SEL_HSCIF3_0) FM(SEL_HSCIF3_1) FM(SEL_HSCIF3_2) FM(SEL_HSCIF3_3)
  429. #define MOD_SEL0_14 FM(SEL_HSCIF2_0) FM(SEL_HSCIF2_1)
  430. #define MOD_SEL0_13 FM(SEL_HSCIF1_0) FM(SEL_HSCIF1_1)
  431. #define MOD_SEL0_12 FM(SEL_FSO_0) FM(SEL_FSO_1)
  432. #define MOD_SEL0_11 FM(SEL_FM_0) FM(SEL_FM_1)
  433. #define MOD_SEL0_10 FM(SEL_ETHERAVB_0) FM(SEL_ETHERAVB_1)
  434. #define MOD_SEL0_9 FM(SEL_DRIF3_0) FM(SEL_DRIF3_1)
  435. #define MOD_SEL0_8 FM(SEL_DRIF2_0) FM(SEL_DRIF2_1)
  436. #define MOD_SEL0_7_6 FM(SEL_DRIF1_0) FM(SEL_DRIF1_1) FM(SEL_DRIF1_2) F_(0, 0)
  437. #define MOD_SEL0_5_4 FM(SEL_DRIF0_0) FM(SEL_DRIF0_1) FM(SEL_DRIF0_2) F_(0, 0)
  438. #define MOD_SEL0_3 FM(SEL_CANFD0_0) FM(SEL_CANFD0_1)
  439. #define MOD_SEL0_2_1 FM(SEL_ADG_0) FM(SEL_ADG_1) FM(SEL_ADG_2) FM(SEL_ADG_3)
  440. /* MOD_SEL1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */
  441. #define MOD_SEL1_31_30 FM(SEL_TSIF1_0) FM(SEL_TSIF1_1) FM(SEL_TSIF1_2) FM(SEL_TSIF1_3)
  442. #define MOD_SEL1_29_28_27 FM(SEL_TSIF0_0) FM(SEL_TSIF0_1) FM(SEL_TSIF0_2) FM(SEL_TSIF0_3) FM(SEL_TSIF0_4) F_(0, 0) F_(0, 0) F_(0, 0)
  443. #define MOD_SEL1_26 FM(SEL_TIMER_TMU_0) FM(SEL_TIMER_TMU_1)
  444. #define MOD_SEL1_25_24 FM(SEL_SSP1_1_0) FM(SEL_SSP1_1_1) FM(SEL_SSP1_1_2) FM(SEL_SSP1_1_3)
  445. #define MOD_SEL1_23_22_21 FM(SEL_SSP1_0_0) FM(SEL_SSP1_0_1) FM(SEL_SSP1_0_2) FM(SEL_SSP1_0_3) FM(SEL_SSP1_0_4) F_(0, 0) F_(0, 0) F_(0, 0)
  446. #define MOD_SEL1_20 FM(SEL_SSI_0) FM(SEL_SSI_1)
  447. #define MOD_SEL1_19 FM(SEL_SPEED_PULSE_0) FM(SEL_SPEED_PULSE_1)
  448. #define MOD_SEL1_18_17 FM(SEL_SIMCARD_0) FM(SEL_SIMCARD_1) FM(SEL_SIMCARD_2) FM(SEL_SIMCARD_3)
  449. #define MOD_SEL1_16 FM(SEL_SDHI2_0) FM(SEL_SDHI2_1)
  450. #define MOD_SEL1_15_14 FM(SEL_SCIF4_0) FM(SEL_SCIF4_1) FM(SEL_SCIF4_2) F_(0, 0)
  451. #define MOD_SEL1_13 FM(SEL_SCIF3_0) FM(SEL_SCIF3_1)
  452. #define MOD_SEL1_12 FM(SEL_SCIF2_0) FM(SEL_SCIF2_1)
  453. #define MOD_SEL1_11 FM(SEL_SCIF1_0) FM(SEL_SCIF1_1)
  454. #define MOD_SEL1_10 FM(SEL_SATA_0) FM(SEL_SATA_1)
  455. #define MOD_SEL1_9 FM(SEL_REMOCON_0) FM(SEL_REMOCON_1)
  456. #define MOD_SEL1_6 FM(SEL_RCAN0_0) FM(SEL_RCAN0_1)
  457. #define MOD_SEL1_5 FM(SEL_PWM6_0) FM(SEL_PWM6_1)
  458. #define MOD_SEL1_4 FM(SEL_PWM5_0) FM(SEL_PWM5_1)
  459. #define MOD_SEL1_3 FM(SEL_PWM4_0) FM(SEL_PWM4_1)
  460. #define MOD_SEL1_2 FM(SEL_PWM3_0) FM(SEL_PWM3_1)
  461. #define MOD_SEL1_1 FM(SEL_PWM2_0) FM(SEL_PWM2_1)
  462. #define MOD_SEL1_0 FM(SEL_PWM1_0) FM(SEL_PWM1_1)
  463. /* MOD_SEL2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */
  464. #define MOD_SEL2_31 FM(I2C_SEL_5_0) FM(I2C_SEL_5_1)
  465. #define MOD_SEL2_30 FM(I2C_SEL_3_0) FM(I2C_SEL_3_1)
  466. #define MOD_SEL2_29 FM(I2C_SEL_0_0) FM(I2C_SEL_0_1)
  467. #define MOD_SEL2_0 FM(SEL_VIN4_0) FM(SEL_VIN4_1)
  468. #define PINMUX_MOD_SELS\
  469. \
  470. MOD_SEL1_31_30 MOD_SEL2_31 \
  471. MOD_SEL0_30_29 MOD_SEL2_30 \
  472. MOD_SEL1_29_28_27 MOD_SEL2_29 \
  473. MOD_SEL0_28_27 \
  474. \
  475. MOD_SEL0_26_25_24 MOD_SEL1_26 \
  476. MOD_SEL1_25_24 \
  477. \
  478. MOD_SEL0_23 MOD_SEL1_23_22_21 \
  479. MOD_SEL0_22 \
  480. MOD_SEL0_21_20 \
  481. MOD_SEL1_20 \
  482. MOD_SEL0_19 MOD_SEL1_19 \
  483. MOD_SEL0_18 MOD_SEL1_18_17 \
  484. MOD_SEL0_17 \
  485. MOD_SEL0_16_15 MOD_SEL1_16 \
  486. MOD_SEL1_15_14 \
  487. MOD_SEL0_14 \
  488. MOD_SEL0_13 MOD_SEL1_13 \
  489. MOD_SEL0_12 MOD_SEL1_12 \
  490. MOD_SEL0_11 MOD_SEL1_11 \
  491. MOD_SEL0_10 MOD_SEL1_10 \
  492. MOD_SEL0_9 MOD_SEL1_9 \
  493. MOD_SEL0_8 \
  494. MOD_SEL0_7_6 \
  495. MOD_SEL1_6 \
  496. MOD_SEL0_5_4 MOD_SEL1_5 \
  497. MOD_SEL1_4 \
  498. MOD_SEL0_3 MOD_SEL1_3 \
  499. MOD_SEL0_2_1 MOD_SEL1_2 \
  500. MOD_SEL1_1 \
  501. MOD_SEL1_0 MOD_SEL2_0
  502. /*
  503. * These pins are not able to be muxed but have other properties
  504. * that can be set, such as drive-strength or pull-up/pull-down enable.
  505. */
  506. #define PINMUX_STATIC \
  507. FM(QSPI0_SPCLK) FM(QSPI0_SSL) FM(QSPI0_MOSI_IO0) FM(QSPI0_MISO_IO1) \
  508. FM(QSPI0_IO2) FM(QSPI0_IO3) \
  509. FM(QSPI1_SPCLK) FM(QSPI1_SSL) FM(QSPI1_MOSI_IO0) FM(QSPI1_MISO_IO1) \
  510. FM(QSPI1_IO2) FM(QSPI1_IO3) \
  511. FM(RPC_INT) FM(RPC_WP) FM(RPC_RESET) \
  512. FM(AVB_TX_CTL) FM(AVB_TXC) FM(AVB_TD0) FM(AVB_TD1) FM(AVB_TD2) FM(AVB_TD3) \
  513. FM(AVB_RX_CTL) FM(AVB_RXC) FM(AVB_RD0) FM(AVB_RD1) FM(AVB_RD2) FM(AVB_RD3) \
  514. FM(AVB_TXCREFCLK) FM(AVB_MDIO) \
  515. FM(CLKOUT) FM(PRESETOUT) \
  516. FM(DU_DOTCLKIN0) FM(DU_DOTCLKIN1) FM(DU_DOTCLKIN2) FM(DU_DOTCLKIN3) \
  517. FM(TMS) FM(TDO) FM(ASEBRK) FM(MLB_REF)
  518. enum {
  519. PINMUX_RESERVED = 0,
  520. PINMUX_DATA_BEGIN,
  521. GP_ALL(DATA),
  522. PINMUX_DATA_END,
  523. #define F_(x, y)
  524. #define FM(x) FN_##x,
  525. PINMUX_FUNCTION_BEGIN,
  526. GP_ALL(FN),
  527. PINMUX_GPSR
  528. PINMUX_IPSR
  529. PINMUX_MOD_SELS
  530. PINMUX_FUNCTION_END,
  531. #undef F_
  532. #undef FM
  533. #define F_(x, y)
  534. #define FM(x) x##_MARK,
  535. PINMUX_MARK_BEGIN,
  536. PINMUX_GPSR
  537. PINMUX_IPSR
  538. PINMUX_MOD_SELS
  539. PINMUX_STATIC
  540. PINMUX_MARK_END,
  541. #undef F_
  542. #undef FM
  543. };
  544. static const u16 pinmux_data[] = {
  545. PINMUX_DATA_GP_ALL(),
  546. PINMUX_SINGLE(AVS1),
  547. PINMUX_SINGLE(AVS2),
  548. PINMUX_SINGLE(HDMI0_CEC),
  549. PINMUX_SINGLE(HDMI1_CEC),
  550. PINMUX_SINGLE(I2C_SEL_0_1),
  551. PINMUX_SINGLE(I2C_SEL_3_1),
  552. PINMUX_SINGLE(I2C_SEL_5_1),
  553. PINMUX_SINGLE(MSIOF0_RXD),
  554. PINMUX_SINGLE(MSIOF0_SCK),
  555. PINMUX_SINGLE(MSIOF0_TXD),
  556. PINMUX_SINGLE(SD2_CMD),
  557. PINMUX_SINGLE(SD3_CLK),
  558. PINMUX_SINGLE(SD3_CMD),
  559. PINMUX_SINGLE(SD3_DAT0),
  560. PINMUX_SINGLE(SD3_DAT1),
  561. PINMUX_SINGLE(SD3_DAT2),
  562. PINMUX_SINGLE(SD3_DAT3),
  563. PINMUX_SINGLE(SD3_DS),
  564. PINMUX_SINGLE(SSI_SCK5),
  565. PINMUX_SINGLE(SSI_SDATA5),
  566. PINMUX_SINGLE(SSI_WS5),
  567. /* IPSR0 */
  568. PINMUX_IPSR_GPSR(IP0_3_0, AVB_MDC),
  569. PINMUX_IPSR_MSEL(IP0_3_0, MSIOF2_SS2_C, SEL_MSIOF2_2),
  570. PINMUX_IPSR_GPSR(IP0_7_4, AVB_MAGIC),
  571. PINMUX_IPSR_MSEL(IP0_7_4, MSIOF2_SS1_C, SEL_MSIOF2_2),
  572. PINMUX_IPSR_MSEL(IP0_7_4, SCK4_A, SEL_SCIF4_0),
  573. PINMUX_IPSR_GPSR(IP0_11_8, AVB_PHY_INT),
  574. PINMUX_IPSR_MSEL(IP0_11_8, MSIOF2_SYNC_C, SEL_MSIOF2_2),
  575. PINMUX_IPSR_MSEL(IP0_11_8, RX4_A, SEL_SCIF4_0),
  576. PINMUX_IPSR_GPSR(IP0_15_12, AVB_LINK),
  577. PINMUX_IPSR_MSEL(IP0_15_12, MSIOF2_SCK_C, SEL_MSIOF2_2),
  578. PINMUX_IPSR_MSEL(IP0_15_12, TX4_A, SEL_SCIF4_0),
  579. PINMUX_IPSR_MSEL(IP0_19_16, AVB_AVTP_MATCH_A, SEL_ETHERAVB_0),
  580. PINMUX_IPSR_MSEL(IP0_19_16, MSIOF2_RXD_C, SEL_MSIOF2_2),
  581. PINMUX_IPSR_MSEL(IP0_19_16, CTS4_N_A, SEL_SCIF4_0),
  582. PINMUX_IPSR_MSEL(IP0_23_20, AVB_AVTP_CAPTURE_A, SEL_ETHERAVB_0),
  583. PINMUX_IPSR_MSEL(IP0_23_20, MSIOF2_TXD_C, SEL_MSIOF2_2),
  584. PINMUX_IPSR_MSEL(IP0_23_20, RTS4_N_TANS_A, SEL_SCIF4_0),
  585. PINMUX_IPSR_GPSR(IP0_27_24, IRQ0),
  586. PINMUX_IPSR_GPSR(IP0_27_24, QPOLB),
  587. PINMUX_IPSR_GPSR(IP0_27_24, DU_CDE),
  588. PINMUX_IPSR_MSEL(IP0_27_24, VI4_DATA0_B, SEL_VIN4_1),
  589. PINMUX_IPSR_MSEL(IP0_27_24, CAN0_TX_B, SEL_RCAN0_1),
  590. PINMUX_IPSR_MSEL(IP0_27_24, CANFD0_TX_B, SEL_CANFD0_1),
  591. PINMUX_IPSR_GPSR(IP0_31_28, IRQ1),
  592. PINMUX_IPSR_GPSR(IP0_31_28, QPOLA),
  593. PINMUX_IPSR_GPSR(IP0_31_28, DU_DISP),
  594. PINMUX_IPSR_MSEL(IP0_31_28, VI4_DATA1_B, SEL_VIN4_1),
  595. PINMUX_IPSR_MSEL(IP0_31_28, CAN0_RX_B, SEL_RCAN0_1),
  596. PINMUX_IPSR_MSEL(IP0_31_28, CANFD0_RX_B, SEL_CANFD0_1),
  597. /* IPSR1 */
  598. PINMUX_IPSR_GPSR(IP1_3_0, IRQ2),
  599. PINMUX_IPSR_GPSR(IP1_3_0, QCPV_QDE),
  600. PINMUX_IPSR_GPSR(IP1_3_0, DU_EXODDF_DU_ODDF_DISP_CDE),
  601. PINMUX_IPSR_MSEL(IP1_3_0, VI4_DATA2_B, SEL_VIN4_1),
  602. PINMUX_IPSR_MSEL(IP1_3_0, PWM3_B, SEL_PWM3_1),
  603. PINMUX_IPSR_GPSR(IP1_7_4, IRQ3),
  604. PINMUX_IPSR_GPSR(IP1_7_4, QSTVB_QVE),
  605. PINMUX_IPSR_GPSR(IP1_7_4, A25),
  606. PINMUX_IPSR_GPSR(IP1_7_4, DU_DOTCLKOUT1),
  607. PINMUX_IPSR_MSEL(IP1_7_4, VI4_DATA3_B, SEL_VIN4_1),
  608. PINMUX_IPSR_MSEL(IP1_7_4, PWM4_B, SEL_PWM4_1),
  609. PINMUX_IPSR_GPSR(IP1_11_8, IRQ4),
  610. PINMUX_IPSR_GPSR(IP1_11_8, QSTH_QHS),
  611. PINMUX_IPSR_GPSR(IP1_11_8, A24),
  612. PINMUX_IPSR_GPSR(IP1_11_8, DU_EXHSYNC_DU_HSYNC),
  613. PINMUX_IPSR_MSEL(IP1_11_8, VI4_DATA4_B, SEL_VIN4_1),
  614. PINMUX_IPSR_MSEL(IP1_11_8, PWM5_B, SEL_PWM5_1),
  615. PINMUX_IPSR_GPSR(IP1_15_12, IRQ5),
  616. PINMUX_IPSR_GPSR(IP1_15_12, QSTB_QHE),
  617. PINMUX_IPSR_GPSR(IP1_15_12, A23),
  618. PINMUX_IPSR_GPSR(IP1_15_12, DU_EXVSYNC_DU_VSYNC),
  619. PINMUX_IPSR_MSEL(IP1_15_12, VI4_DATA5_B, SEL_VIN4_1),
  620. PINMUX_IPSR_MSEL(IP1_15_12, PWM6_B, SEL_PWM6_1),
  621. PINMUX_IPSR_GPSR(IP1_19_16, PWM0),
  622. PINMUX_IPSR_GPSR(IP1_19_16, AVB_AVTP_PPS),
  623. PINMUX_IPSR_GPSR(IP1_19_16, A22),
  624. PINMUX_IPSR_MSEL(IP1_19_16, VI4_DATA6_B, SEL_VIN4_1),
  625. PINMUX_IPSR_MSEL(IP1_19_16, IECLK_B, SEL_IEBUS_1),
  626. PINMUX_IPSR_MSEL(IP1_23_20, PWM1_A, SEL_PWM1_0),
  627. PINMUX_IPSR_GPSR(IP1_23_20, A21),
  628. PINMUX_IPSR_MSEL(IP1_23_20, HRX3_D, SEL_HSCIF3_3),
  629. PINMUX_IPSR_MSEL(IP1_23_20, VI4_DATA7_B, SEL_VIN4_1),
  630. PINMUX_IPSR_MSEL(IP1_23_20, IERX_B, SEL_IEBUS_1),
  631. PINMUX_IPSR_MSEL(IP1_27_24, PWM2_A, SEL_PWM2_0),
  632. PINMUX_IPSR_GPSR(IP1_27_24, A20),
  633. PINMUX_IPSR_MSEL(IP1_27_24, HTX3_D, SEL_HSCIF3_3),
  634. PINMUX_IPSR_MSEL(IP1_27_24, IETX_B, SEL_IEBUS_1),
  635. PINMUX_IPSR_GPSR(IP1_31_28, A0),
  636. PINMUX_IPSR_GPSR(IP1_31_28, LCDOUT16),
  637. PINMUX_IPSR_MSEL(IP1_31_28, MSIOF3_SYNC_B, SEL_MSIOF3_1),
  638. PINMUX_IPSR_GPSR(IP1_31_28, VI4_DATA8),
  639. PINMUX_IPSR_GPSR(IP1_31_28, DU_DB0),
  640. PINMUX_IPSR_MSEL(IP1_31_28, PWM3_A, SEL_PWM3_0),
  641. /* IPSR2 */
  642. PINMUX_IPSR_GPSR(IP2_3_0, A1),
  643. PINMUX_IPSR_GPSR(IP2_3_0, LCDOUT17),
  644. PINMUX_IPSR_MSEL(IP2_3_0, MSIOF3_TXD_B, SEL_MSIOF3_1),
  645. PINMUX_IPSR_GPSR(IP2_3_0, VI4_DATA9),
  646. PINMUX_IPSR_GPSR(IP2_3_0, DU_DB1),
  647. PINMUX_IPSR_MSEL(IP2_3_0, PWM4_A, SEL_PWM4_0),
  648. PINMUX_IPSR_GPSR(IP2_7_4, A2),
  649. PINMUX_IPSR_GPSR(IP2_7_4, LCDOUT18),
  650. PINMUX_IPSR_MSEL(IP2_7_4, MSIOF3_SCK_B, SEL_MSIOF3_1),
  651. PINMUX_IPSR_GPSR(IP2_7_4, VI4_DATA10),
  652. PINMUX_IPSR_GPSR(IP2_7_4, DU_DB2),
  653. PINMUX_IPSR_MSEL(IP2_7_4, PWM5_A, SEL_PWM5_0),
  654. PINMUX_IPSR_GPSR(IP2_11_8, A3),
  655. PINMUX_IPSR_GPSR(IP2_11_8, LCDOUT19),
  656. PINMUX_IPSR_MSEL(IP2_11_8, MSIOF3_RXD_B, SEL_MSIOF3_1),
  657. PINMUX_IPSR_GPSR(IP2_11_8, VI4_DATA11),
  658. PINMUX_IPSR_GPSR(IP2_11_8, DU_DB3),
  659. PINMUX_IPSR_MSEL(IP2_11_8, PWM6_A, SEL_PWM6_0),
  660. PINMUX_IPSR_GPSR(IP2_15_12, A4),
  661. PINMUX_IPSR_GPSR(IP2_15_12, LCDOUT20),
  662. PINMUX_IPSR_MSEL(IP2_15_12, MSIOF3_SS1_B, SEL_MSIOF3_1),
  663. PINMUX_IPSR_GPSR(IP2_15_12, VI4_DATA12),
  664. PINMUX_IPSR_GPSR(IP2_15_12, VI5_DATA12),
  665. PINMUX_IPSR_GPSR(IP2_15_12, DU_DB4),
  666. PINMUX_IPSR_GPSR(IP2_19_16, A5),
  667. PINMUX_IPSR_GPSR(IP2_19_16, LCDOUT21),
  668. PINMUX_IPSR_MSEL(IP2_19_16, MSIOF3_SS2_B, SEL_MSIOF3_1),
  669. PINMUX_IPSR_MSEL(IP2_19_16, SCK4_B, SEL_SCIF4_1),
  670. PINMUX_IPSR_GPSR(IP2_19_16, VI4_DATA13),
  671. PINMUX_IPSR_GPSR(IP2_19_16, VI5_DATA13),
  672. PINMUX_IPSR_GPSR(IP2_19_16, DU_DB5),
  673. PINMUX_IPSR_GPSR(IP2_23_20, A6),
  674. PINMUX_IPSR_GPSR(IP2_23_20, LCDOUT22),
  675. PINMUX_IPSR_MSEL(IP2_23_20, MSIOF2_SS1_A, SEL_MSIOF2_0),
  676. PINMUX_IPSR_MSEL(IP2_23_20, RX4_B, SEL_SCIF4_1),
  677. PINMUX_IPSR_GPSR(IP2_23_20, VI4_DATA14),
  678. PINMUX_IPSR_GPSR(IP2_23_20, VI5_DATA14),
  679. PINMUX_IPSR_GPSR(IP2_23_20, DU_DB6),
  680. PINMUX_IPSR_GPSR(IP2_27_24, A7),
  681. PINMUX_IPSR_GPSR(IP2_27_24, LCDOUT23),
  682. PINMUX_IPSR_MSEL(IP2_27_24, MSIOF2_SS2_A, SEL_MSIOF2_0),
  683. PINMUX_IPSR_MSEL(IP2_27_24, TX4_B, SEL_SCIF4_1),
  684. PINMUX_IPSR_GPSR(IP2_27_24, VI4_DATA15),
  685. PINMUX_IPSR_GPSR(IP2_27_24, VI5_DATA15),
  686. PINMUX_IPSR_GPSR(IP2_27_24, DU_DB7),
  687. PINMUX_IPSR_GPSR(IP2_31_28, A8),
  688. PINMUX_IPSR_MSEL(IP2_31_28, RX3_B, SEL_SCIF3_1),
  689. PINMUX_IPSR_MSEL(IP2_31_28, MSIOF2_SYNC_A, SEL_MSIOF2_0),
  690. PINMUX_IPSR_MSEL(IP2_31_28, HRX4_B, SEL_HSCIF4_1),
  691. PINMUX_IPSR_MSEL(IP2_31_28, SDA6_A, SEL_I2C6_0),
  692. PINMUX_IPSR_MSEL(IP2_31_28, AVB_AVTP_MATCH_B, SEL_ETHERAVB_1),
  693. PINMUX_IPSR_MSEL(IP2_31_28, PWM1_B, SEL_PWM1_1),
  694. /* IPSR3 */
  695. PINMUX_IPSR_GPSR(IP3_3_0, A9),
  696. PINMUX_IPSR_MSEL(IP3_3_0, MSIOF2_SCK_A, SEL_MSIOF2_0),
  697. PINMUX_IPSR_MSEL(IP3_3_0, CTS4_N_B, SEL_SCIF4_1),
  698. PINMUX_IPSR_GPSR(IP3_3_0, VI5_VSYNC_N),
  699. PINMUX_IPSR_GPSR(IP3_7_4, A10),
  700. PINMUX_IPSR_MSEL(IP3_7_4, MSIOF2_RXD_A, SEL_MSIOF2_0),
  701. PINMUX_IPSR_MSEL(IP3_7_4, RTS4_N_TANS_B, SEL_SCIF4_1),
  702. PINMUX_IPSR_GPSR(IP3_7_4, VI5_HSYNC_N),
  703. PINMUX_IPSR_GPSR(IP3_11_8, A11),
  704. PINMUX_IPSR_MSEL(IP3_11_8, TX3_B, SEL_SCIF3_1),
  705. PINMUX_IPSR_MSEL(IP3_11_8, MSIOF2_TXD_A, SEL_MSIOF2_0),
  706. PINMUX_IPSR_MSEL(IP3_11_8, HTX4_B, SEL_HSCIF4_1),
  707. PINMUX_IPSR_GPSR(IP3_11_8, HSCK4),
  708. PINMUX_IPSR_GPSR(IP3_11_8, VI5_FIELD),
  709. PINMUX_IPSR_MSEL(IP3_11_8, SCL6_A, SEL_I2C6_0),
  710. PINMUX_IPSR_MSEL(IP3_11_8, AVB_AVTP_CAPTURE_B, SEL_ETHERAVB_1),
  711. PINMUX_IPSR_MSEL(IP3_11_8, PWM2_B, SEL_PWM2_1),
  712. PINMUX_IPSR_GPSR(IP3_15_12, A12),
  713. PINMUX_IPSR_GPSR(IP3_15_12, LCDOUT12),
  714. PINMUX_IPSR_MSEL(IP3_15_12, MSIOF3_SCK_C, SEL_MSIOF3_2),
  715. PINMUX_IPSR_MSEL(IP3_15_12, HRX4_A, SEL_HSCIF4_0),
  716. PINMUX_IPSR_GPSR(IP3_15_12, VI5_DATA8),
  717. PINMUX_IPSR_GPSR(IP3_15_12, DU_DG4),
  718. PINMUX_IPSR_GPSR(IP3_19_16, A13),
  719. PINMUX_IPSR_GPSR(IP3_19_16, LCDOUT13),
  720. PINMUX_IPSR_MSEL(IP3_19_16, MSIOF3_SYNC_C, SEL_MSIOF3_2),
  721. PINMUX_IPSR_MSEL(IP3_19_16, HTX4_A, SEL_HSCIF4_0),
  722. PINMUX_IPSR_GPSR(IP3_19_16, VI5_DATA9),
  723. PINMUX_IPSR_GPSR(IP3_19_16, DU_DG5),
  724. PINMUX_IPSR_GPSR(IP3_23_20, A14),
  725. PINMUX_IPSR_GPSR(IP3_23_20, LCDOUT14),
  726. PINMUX_IPSR_MSEL(IP3_23_20, MSIOF3_RXD_C, SEL_MSIOF3_2),
  727. PINMUX_IPSR_GPSR(IP3_23_20, HCTS4_N),
  728. PINMUX_IPSR_GPSR(IP3_23_20, VI5_DATA10),
  729. PINMUX_IPSR_GPSR(IP3_23_20, DU_DG6),
  730. PINMUX_IPSR_GPSR(IP3_27_24, A15),
  731. PINMUX_IPSR_GPSR(IP3_27_24, LCDOUT15),
  732. PINMUX_IPSR_MSEL(IP3_27_24, MSIOF3_TXD_C, SEL_MSIOF3_2),
  733. PINMUX_IPSR_GPSR(IP3_27_24, HRTS4_N),
  734. PINMUX_IPSR_GPSR(IP3_27_24, VI5_DATA11),
  735. PINMUX_IPSR_GPSR(IP3_27_24, DU_DG7),
  736. PINMUX_IPSR_GPSR(IP3_31_28, A16),
  737. PINMUX_IPSR_GPSR(IP3_31_28, LCDOUT8),
  738. PINMUX_IPSR_GPSR(IP3_31_28, VI4_FIELD),
  739. PINMUX_IPSR_GPSR(IP3_31_28, DU_DG0),
  740. /* IPSR4 */
  741. PINMUX_IPSR_GPSR(IP4_3_0, A17),
  742. PINMUX_IPSR_GPSR(IP4_3_0, LCDOUT9),
  743. PINMUX_IPSR_GPSR(IP4_3_0, VI4_VSYNC_N),
  744. PINMUX_IPSR_GPSR(IP4_3_0, DU_DG1),
  745. PINMUX_IPSR_GPSR(IP4_7_4, A18),
  746. PINMUX_IPSR_GPSR(IP4_7_4, LCDOUT10),
  747. PINMUX_IPSR_GPSR(IP4_7_4, VI4_HSYNC_N),
  748. PINMUX_IPSR_GPSR(IP4_7_4, DU_DG2),
  749. PINMUX_IPSR_GPSR(IP4_11_8, A19),
  750. PINMUX_IPSR_GPSR(IP4_11_8, LCDOUT11),
  751. PINMUX_IPSR_GPSR(IP4_11_8, VI4_CLKENB),
  752. PINMUX_IPSR_GPSR(IP4_11_8, DU_DG3),
  753. PINMUX_IPSR_GPSR(IP4_15_12, CS0_N),
  754. PINMUX_IPSR_GPSR(IP4_15_12, VI5_CLKENB),
  755. PINMUX_IPSR_GPSR(IP4_19_16, CS1_N_A26),
  756. PINMUX_IPSR_GPSR(IP4_19_16, VI5_CLK),
  757. PINMUX_IPSR_MSEL(IP4_19_16, EX_WAIT0_B, SEL_LBSC_1),
  758. PINMUX_IPSR_GPSR(IP4_23_20, BS_N),
  759. PINMUX_IPSR_GPSR(IP4_23_20, QSTVA_QVS),
  760. PINMUX_IPSR_MSEL(IP4_23_20, MSIOF3_SCK_D, SEL_MSIOF3_3),
  761. PINMUX_IPSR_GPSR(IP4_23_20, SCK3),
  762. PINMUX_IPSR_GPSR(IP4_23_20, HSCK3),
  763. PINMUX_IPSR_GPSR(IP4_23_20, CAN1_TX),
  764. PINMUX_IPSR_GPSR(IP4_23_20, CANFD1_TX),
  765. PINMUX_IPSR_MSEL(IP4_23_20, IETX_A, SEL_IEBUS_0),
  766. PINMUX_IPSR_GPSR(IP4_27_24, RD_N),
  767. PINMUX_IPSR_MSEL(IP4_27_24, MSIOF3_SYNC_D, SEL_MSIOF3_3),
  768. PINMUX_IPSR_MSEL(IP4_27_24, RX3_A, SEL_SCIF3_0),
  769. PINMUX_IPSR_MSEL(IP4_27_24, HRX3_A, SEL_HSCIF3_0),
  770. PINMUX_IPSR_MSEL(IP4_27_24, CAN0_TX_A, SEL_RCAN0_0),
  771. PINMUX_IPSR_MSEL(IP4_27_24, CANFD0_TX_A, SEL_CANFD0_0),
  772. PINMUX_IPSR_GPSR(IP4_31_28, RD_WR_N),
  773. PINMUX_IPSR_MSEL(IP4_31_28, MSIOF3_RXD_D, SEL_MSIOF3_3),
  774. PINMUX_IPSR_MSEL(IP4_31_28, TX3_A, SEL_SCIF3_0),
  775. PINMUX_IPSR_MSEL(IP4_31_28, HTX3_A, SEL_HSCIF3_0),
  776. PINMUX_IPSR_MSEL(IP4_31_28, CAN0_RX_A, SEL_RCAN0_0),
  777. PINMUX_IPSR_MSEL(IP4_31_28, CANFD0_RX_A, SEL_CANFD0_0),
  778. /* IPSR5 */
  779. PINMUX_IPSR_GPSR(IP5_3_0, WE0_N),
  780. PINMUX_IPSR_MSEL(IP5_3_0, MSIOF3_TXD_D, SEL_MSIOF3_3),
  781. PINMUX_IPSR_GPSR(IP5_3_0, CTS3_N),
  782. PINMUX_IPSR_GPSR(IP5_3_0, HCTS3_N),
  783. PINMUX_IPSR_MSEL(IP5_3_0, SCL6_B, SEL_I2C6_1),
  784. PINMUX_IPSR_GPSR(IP5_3_0, CAN_CLK),
  785. PINMUX_IPSR_MSEL(IP5_3_0, IECLK_A, SEL_IEBUS_0),
  786. PINMUX_IPSR_GPSR(IP5_7_4, WE1_N),
  787. PINMUX_IPSR_MSEL(IP5_7_4, MSIOF3_SS1_D, SEL_MSIOF3_3),
  788. PINMUX_IPSR_GPSR(IP5_7_4, RTS3_N_TANS),
  789. PINMUX_IPSR_GPSR(IP5_7_4, HRTS3_N),
  790. PINMUX_IPSR_MSEL(IP5_7_4, SDA6_B, SEL_I2C6_1),
  791. PINMUX_IPSR_GPSR(IP5_7_4, CAN1_RX),
  792. PINMUX_IPSR_GPSR(IP5_7_4, CANFD1_RX),
  793. PINMUX_IPSR_MSEL(IP5_7_4, IERX_A, SEL_IEBUS_0),
  794. PINMUX_IPSR_MSEL(IP5_11_8, EX_WAIT0_A, SEL_LBSC_0),
  795. PINMUX_IPSR_GPSR(IP5_11_8, QCLK),
  796. PINMUX_IPSR_GPSR(IP5_11_8, VI4_CLK),
  797. PINMUX_IPSR_GPSR(IP5_11_8, DU_DOTCLKOUT0),
  798. PINMUX_IPSR_GPSR(IP5_15_12, D0),
  799. PINMUX_IPSR_MSEL(IP5_15_12, MSIOF2_SS1_B, SEL_MSIOF2_1),
  800. PINMUX_IPSR_MSEL(IP5_15_12, MSIOF3_SCK_A, SEL_MSIOF3_0),
  801. PINMUX_IPSR_GPSR(IP5_15_12, VI4_DATA16),
  802. PINMUX_IPSR_GPSR(IP5_15_12, VI5_DATA0),
  803. PINMUX_IPSR_GPSR(IP5_19_16, D1),
  804. PINMUX_IPSR_MSEL(IP5_19_16, MSIOF2_SS2_B, SEL_MSIOF2_1),
  805. PINMUX_IPSR_MSEL(IP5_19_16, MSIOF3_SYNC_A, SEL_MSIOF3_0),
  806. PINMUX_IPSR_GPSR(IP5_19_16, VI4_DATA17),
  807. PINMUX_IPSR_GPSR(IP5_19_16, VI5_DATA1),
  808. PINMUX_IPSR_GPSR(IP5_23_20, D2),
  809. PINMUX_IPSR_MSEL(IP5_23_20, MSIOF3_RXD_A, SEL_MSIOF3_0),
  810. PINMUX_IPSR_GPSR(IP5_23_20, VI4_DATA18),
  811. PINMUX_IPSR_GPSR(IP5_23_20, VI5_DATA2),
  812. PINMUX_IPSR_GPSR(IP5_27_24, D3),
  813. PINMUX_IPSR_MSEL(IP5_27_24, MSIOF3_TXD_A, SEL_MSIOF3_0),
  814. PINMUX_IPSR_GPSR(IP5_27_24, VI4_DATA19),
  815. PINMUX_IPSR_GPSR(IP5_27_24, VI5_DATA3),
  816. PINMUX_IPSR_GPSR(IP5_31_28, D4),
  817. PINMUX_IPSR_MSEL(IP5_31_28, MSIOF2_SCK_B, SEL_MSIOF2_1),
  818. PINMUX_IPSR_GPSR(IP5_31_28, VI4_DATA20),
  819. PINMUX_IPSR_GPSR(IP5_31_28, VI5_DATA4),
  820. /* IPSR6 */
  821. PINMUX_IPSR_GPSR(IP6_3_0, D5),
  822. PINMUX_IPSR_MSEL(IP6_3_0, MSIOF2_SYNC_B, SEL_MSIOF2_1),
  823. PINMUX_IPSR_GPSR(IP6_3_0, VI4_DATA21),
  824. PINMUX_IPSR_GPSR(IP6_3_0, VI5_DATA5),
  825. PINMUX_IPSR_GPSR(IP6_7_4, D6),
  826. PINMUX_IPSR_MSEL(IP6_7_4, MSIOF2_RXD_B, SEL_MSIOF2_1),
  827. PINMUX_IPSR_GPSR(IP6_7_4, VI4_DATA22),
  828. PINMUX_IPSR_GPSR(IP6_7_4, VI5_DATA6),
  829. PINMUX_IPSR_GPSR(IP6_11_8, D7),
  830. PINMUX_IPSR_MSEL(IP6_11_8, MSIOF2_TXD_B, SEL_MSIOF2_1),
  831. PINMUX_IPSR_GPSR(IP6_11_8, VI4_DATA23),
  832. PINMUX_IPSR_GPSR(IP6_11_8, VI5_DATA7),
  833. PINMUX_IPSR_GPSR(IP6_15_12, D8),
  834. PINMUX_IPSR_GPSR(IP6_15_12, LCDOUT0),
  835. PINMUX_IPSR_MSEL(IP6_15_12, MSIOF2_SCK_D, SEL_MSIOF2_3),
  836. PINMUX_IPSR_MSEL(IP6_15_12, SCK4_C, SEL_SCIF4_2),
  837. PINMUX_IPSR_MSEL(IP6_15_12, VI4_DATA0_A, SEL_VIN4_0),
  838. PINMUX_IPSR_GPSR(IP6_15_12, DU_DR0),
  839. PINMUX_IPSR_GPSR(IP6_19_16, D9),
  840. PINMUX_IPSR_GPSR(IP6_19_16, LCDOUT1),
  841. PINMUX_IPSR_MSEL(IP6_19_16, MSIOF2_SYNC_D, SEL_MSIOF2_3),
  842. PINMUX_IPSR_MSEL(IP6_19_16, VI4_DATA1_A, SEL_VIN4_0),
  843. PINMUX_IPSR_GPSR(IP6_19_16, DU_DR1),
  844. PINMUX_IPSR_GPSR(IP6_23_20, D10),
  845. PINMUX_IPSR_GPSR(IP6_23_20, LCDOUT2),
  846. PINMUX_IPSR_MSEL(IP6_23_20, MSIOF2_RXD_D, SEL_MSIOF2_3),
  847. PINMUX_IPSR_MSEL(IP6_23_20, HRX3_B, SEL_HSCIF3_1),
  848. PINMUX_IPSR_MSEL(IP6_23_20, VI4_DATA2_A, SEL_VIN4_0),
  849. PINMUX_IPSR_MSEL(IP6_23_20, CTS4_N_C, SEL_SCIF4_2),
  850. PINMUX_IPSR_GPSR(IP6_23_20, DU_DR2),
  851. PINMUX_IPSR_GPSR(IP6_27_24, D11),
  852. PINMUX_IPSR_GPSR(IP6_27_24, LCDOUT3),
  853. PINMUX_IPSR_MSEL(IP6_27_24, MSIOF2_TXD_D, SEL_MSIOF2_3),
  854. PINMUX_IPSR_MSEL(IP6_27_24, HTX3_B, SEL_HSCIF3_1),
  855. PINMUX_IPSR_MSEL(IP6_27_24, VI4_DATA3_A, SEL_VIN4_0),
  856. PINMUX_IPSR_MSEL(IP6_27_24, RTS4_N_TANS_C, SEL_SCIF4_2),
  857. PINMUX_IPSR_GPSR(IP6_27_24, DU_DR3),
  858. PINMUX_IPSR_GPSR(IP6_31_28, D12),
  859. PINMUX_IPSR_GPSR(IP6_31_28, LCDOUT4),
  860. PINMUX_IPSR_MSEL(IP6_31_28, MSIOF2_SS1_D, SEL_MSIOF2_3),
  861. PINMUX_IPSR_MSEL(IP6_31_28, RX4_C, SEL_SCIF4_2),
  862. PINMUX_IPSR_MSEL(IP6_31_28, VI4_DATA4_A, SEL_VIN4_0),
  863. PINMUX_IPSR_GPSR(IP6_31_28, DU_DR4),
  864. /* IPSR7 */
  865. PINMUX_IPSR_GPSR(IP7_3_0, D13),
  866. PINMUX_IPSR_GPSR(IP7_3_0, LCDOUT5),
  867. PINMUX_IPSR_MSEL(IP7_3_0, MSIOF2_SS2_D, SEL_MSIOF2_3),
  868. PINMUX_IPSR_MSEL(IP7_3_0, TX4_C, SEL_SCIF4_2),
  869. PINMUX_IPSR_MSEL(IP7_3_0, VI4_DATA5_A, SEL_VIN4_0),
  870. PINMUX_IPSR_GPSR(IP7_3_0, DU_DR5),
  871. PINMUX_IPSR_GPSR(IP7_7_4, D14),
  872. PINMUX_IPSR_GPSR(IP7_7_4, LCDOUT6),
  873. PINMUX_IPSR_MSEL(IP7_7_4, MSIOF3_SS1_A, SEL_MSIOF3_0),
  874. PINMUX_IPSR_MSEL(IP7_7_4, HRX3_C, SEL_HSCIF3_2),
  875. PINMUX_IPSR_MSEL(IP7_7_4, VI4_DATA6_A, SEL_VIN4_0),
  876. PINMUX_IPSR_GPSR(IP7_7_4, DU_DR6),
  877. PINMUX_IPSR_MSEL(IP7_7_4, SCL6_C, SEL_I2C6_2),
  878. PINMUX_IPSR_GPSR(IP7_11_8, D15),
  879. PINMUX_IPSR_GPSR(IP7_11_8, LCDOUT7),
  880. PINMUX_IPSR_MSEL(IP7_11_8, MSIOF3_SS2_A, SEL_MSIOF3_0),
  881. PINMUX_IPSR_MSEL(IP7_11_8, HTX3_C, SEL_HSCIF3_2),
  882. PINMUX_IPSR_MSEL(IP7_11_8, VI4_DATA7_A, SEL_VIN4_0),
  883. PINMUX_IPSR_GPSR(IP7_11_8, DU_DR7),
  884. PINMUX_IPSR_MSEL(IP7_11_8, SDA6_C, SEL_I2C6_2),
  885. PINMUX_IPSR_GPSR(IP7_15_12, FSCLKST),
  886. PINMUX_IPSR_GPSR(IP7_19_16, SD0_CLK),
  887. PINMUX_IPSR_MSEL(IP7_19_16, MSIOF1_SCK_E, SEL_MSIOF1_4),
  888. PINMUX_IPSR_MSEL(IP7_19_16, STP_OPWM_0_B, SEL_SSP1_0_1),
  889. PINMUX_IPSR_GPSR(IP7_23_20, SD0_CMD),
  890. PINMUX_IPSR_MSEL(IP7_23_20, MSIOF1_SYNC_E, SEL_MSIOF1_4),
  891. PINMUX_IPSR_MSEL(IP7_23_20, STP_IVCXO27_0_B, SEL_SSP1_0_1),
  892. PINMUX_IPSR_GPSR(IP7_27_24, SD0_DAT0),
  893. PINMUX_IPSR_MSEL(IP7_27_24, MSIOF1_RXD_E, SEL_MSIOF1_4),
  894. PINMUX_IPSR_MSEL(IP7_27_24, TS_SCK0_B, SEL_TSIF0_1),
  895. PINMUX_IPSR_MSEL(IP7_27_24, STP_ISCLK_0_B, SEL_SSP1_0_1),
  896. PINMUX_IPSR_GPSR(IP7_31_28, SD0_DAT1),
  897. PINMUX_IPSR_MSEL(IP7_31_28, MSIOF1_TXD_E, SEL_MSIOF1_4),
  898. PINMUX_IPSR_MSEL(IP7_31_28, TS_SPSYNC0_B, SEL_TSIF0_1),
  899. PINMUX_IPSR_MSEL(IP7_31_28, STP_ISSYNC_0_B, SEL_SSP1_0_1),
  900. /* IPSR8 */
  901. PINMUX_IPSR_GPSR(IP8_3_0, SD0_DAT2),
  902. PINMUX_IPSR_MSEL(IP8_3_0, MSIOF1_SS1_E, SEL_MSIOF1_4),
  903. PINMUX_IPSR_MSEL(IP8_3_0, TS_SDAT0_B, SEL_TSIF0_1),
  904. PINMUX_IPSR_MSEL(IP8_3_0, STP_ISD_0_B, SEL_SSP1_0_1),
  905. PINMUX_IPSR_GPSR(IP8_7_4, SD0_DAT3),
  906. PINMUX_IPSR_MSEL(IP8_7_4, MSIOF1_SS2_E, SEL_MSIOF1_4),
  907. PINMUX_IPSR_MSEL(IP8_7_4, TS_SDEN0_B, SEL_TSIF0_1),
  908. PINMUX_IPSR_MSEL(IP8_7_4, STP_ISEN_0_B, SEL_SSP1_0_1),
  909. PINMUX_IPSR_GPSR(IP8_11_8, SD1_CLK),
  910. PINMUX_IPSR_MSEL(IP8_11_8, MSIOF1_SCK_G, SEL_MSIOF1_6),
  911. PINMUX_IPSR_MSEL(IP8_11_8, SIM0_CLK_A, SEL_SIMCARD_0),
  912. PINMUX_IPSR_GPSR(IP8_15_12, SD1_CMD),
  913. PINMUX_IPSR_MSEL(IP8_15_12, MSIOF1_SYNC_G, SEL_MSIOF1_6),
  914. PINMUX_IPSR_MSEL(IP8_15_12, SIM0_D_A, SEL_SIMCARD_0),
  915. PINMUX_IPSR_MSEL(IP8_15_12, STP_IVCXO27_1_B, SEL_SSP1_1_1),
  916. PINMUX_IPSR_GPSR(IP8_19_16, SD1_DAT0),
  917. PINMUX_IPSR_GPSR(IP8_19_16, SD2_DAT4),
  918. PINMUX_IPSR_MSEL(IP8_19_16, MSIOF1_RXD_G, SEL_MSIOF1_6),
  919. PINMUX_IPSR_MSEL(IP8_19_16, TS_SCK1_B, SEL_TSIF1_1),
  920. PINMUX_IPSR_MSEL(IP8_19_16, STP_ISCLK_1_B, SEL_SSP1_1_1),
  921. PINMUX_IPSR_GPSR(IP8_23_20, SD1_DAT1),
  922. PINMUX_IPSR_GPSR(IP8_23_20, SD2_DAT5),
  923. PINMUX_IPSR_MSEL(IP8_23_20, MSIOF1_TXD_G, SEL_MSIOF1_6),
  924. PINMUX_IPSR_MSEL(IP8_23_20, TS_SPSYNC1_B, SEL_TSIF1_1),
  925. PINMUX_IPSR_MSEL(IP8_23_20, STP_ISSYNC_1_B, SEL_SSP1_1_1),
  926. PINMUX_IPSR_GPSR(IP8_27_24, SD1_DAT2),
  927. PINMUX_IPSR_GPSR(IP8_27_24, SD2_DAT6),
  928. PINMUX_IPSR_MSEL(IP8_27_24, MSIOF1_SS1_G, SEL_MSIOF1_6),
  929. PINMUX_IPSR_MSEL(IP8_27_24, TS_SDAT1_B, SEL_TSIF1_1),
  930. PINMUX_IPSR_MSEL(IP8_27_24, STP_ISD_1_B, SEL_SSP1_1_1),
  931. PINMUX_IPSR_GPSR(IP8_31_28, SD1_DAT3),
  932. PINMUX_IPSR_GPSR(IP8_31_28, SD2_DAT7),
  933. PINMUX_IPSR_MSEL(IP8_31_28, MSIOF1_SS2_G, SEL_MSIOF1_6),
  934. PINMUX_IPSR_MSEL(IP8_31_28, TS_SDEN1_B, SEL_TSIF1_1),
  935. PINMUX_IPSR_MSEL(IP8_31_28, STP_ISEN_1_B, SEL_SSP1_1_1),
  936. /* IPSR9 */
  937. PINMUX_IPSR_GPSR(IP9_3_0, SD2_CLK),
  938. PINMUX_IPSR_GPSR(IP9_7_4, SD2_DAT0),
  939. PINMUX_IPSR_GPSR(IP9_11_8, SD2_DAT1),
  940. PINMUX_IPSR_GPSR(IP9_15_12, SD2_DAT2),
  941. PINMUX_IPSR_GPSR(IP9_19_16, SD2_DAT3),
  942. PINMUX_IPSR_GPSR(IP9_23_20, SD2_DS),
  943. PINMUX_IPSR_MSEL(IP9_23_20, SATA_DEVSLP_B, SEL_SATA_1),
  944. PINMUX_IPSR_GPSR(IP9_27_24, SD3_DAT4),
  945. PINMUX_IPSR_MSEL(IP9_27_24, SD2_CD_A, SEL_SDHI2_0),
  946. PINMUX_IPSR_GPSR(IP9_31_28, SD3_DAT5),
  947. PINMUX_IPSR_MSEL(IP9_31_28, SD2_WP_A, SEL_SDHI2_0),
  948. /* IPSR10 */
  949. PINMUX_IPSR_GPSR(IP10_3_0, SD3_DAT6),
  950. PINMUX_IPSR_GPSR(IP10_3_0, SD3_CD),
  951. PINMUX_IPSR_GPSR(IP10_7_4, SD3_DAT7),
  952. PINMUX_IPSR_GPSR(IP10_7_4, SD3_WP),
  953. PINMUX_IPSR_GPSR(IP10_11_8, SD0_CD),
  954. PINMUX_IPSR_MSEL(IP10_11_8, SCL2_B, SEL_I2C2_1),
  955. PINMUX_IPSR_MSEL(IP10_11_8, SIM0_RST_A, SEL_SIMCARD_0),
  956. PINMUX_IPSR_GPSR(IP10_15_12, SD0_WP),
  957. PINMUX_IPSR_MSEL(IP10_15_12, SDA2_B, SEL_I2C2_1),
  958. PINMUX_IPSR_GPSR(IP10_19_16, SD1_CD),
  959. PINMUX_IPSR_MSEL(IP10_19_16, SIM0_CLK_B, SEL_SIMCARD_1),
  960. PINMUX_IPSR_GPSR(IP10_23_20, SD1_WP),
  961. PINMUX_IPSR_MSEL(IP10_23_20, SIM0_D_B, SEL_SIMCARD_1),
  962. PINMUX_IPSR_GPSR(IP10_27_24, SCK0),
  963. PINMUX_IPSR_MSEL(IP10_27_24, HSCK1_B, SEL_HSCIF1_1),
  964. PINMUX_IPSR_MSEL(IP10_27_24, MSIOF1_SS2_B, SEL_MSIOF1_1),
  965. PINMUX_IPSR_MSEL(IP10_27_24, AUDIO_CLKC_B, SEL_ADG_1),
  966. PINMUX_IPSR_MSEL(IP10_27_24, SDA2_A, SEL_I2C2_0),
  967. PINMUX_IPSR_MSEL(IP10_27_24, SIM0_RST_B, SEL_SIMCARD_1),
  968. PINMUX_IPSR_MSEL(IP10_27_24, STP_OPWM_0_C, SEL_SSP1_0_2),
  969. PINMUX_IPSR_MSEL(IP10_27_24, RIF0_CLK_B, SEL_DRIF0_1),
  970. PINMUX_IPSR_GPSR(IP10_27_24, ADICHS2),
  971. PINMUX_IPSR_GPSR(IP10_31_28, RX0),
  972. PINMUX_IPSR_MSEL(IP10_31_28, HRX1_B, SEL_HSCIF1_1),
  973. PINMUX_IPSR_MSEL(IP10_31_28, TS_SCK0_C, SEL_TSIF0_2),
  974. PINMUX_IPSR_MSEL(IP10_31_28, STP_ISCLK_0_C, SEL_SSP1_0_2),
  975. PINMUX_IPSR_MSEL(IP10_31_28, RIF0_D0_B, SEL_DRIF0_1),
  976. /* IPSR11 */
  977. PINMUX_IPSR_GPSR(IP11_3_0, TX0),
  978. PINMUX_IPSR_MSEL(IP11_3_0, HTX1_B, SEL_HSCIF1_1),
  979. PINMUX_IPSR_MSEL(IP11_3_0, TS_SPSYNC0_C, SEL_TSIF0_2),
  980. PINMUX_IPSR_MSEL(IP11_3_0, STP_ISSYNC_0_C, SEL_SSP1_0_2),
  981. PINMUX_IPSR_MSEL(IP11_3_0, RIF0_D1_B, SEL_DRIF0_1),
  982. PINMUX_IPSR_GPSR(IP11_7_4, CTS0_N),
  983. PINMUX_IPSR_MSEL(IP11_7_4, HCTS1_N_B, SEL_HSCIF1_1),
  984. PINMUX_IPSR_MSEL(IP11_7_4, MSIOF1_SYNC_B, SEL_MSIOF1_1),
  985. PINMUX_IPSR_MSEL(IP11_7_4, TS_SPSYNC1_C, SEL_TSIF1_2),
  986. PINMUX_IPSR_MSEL(IP11_7_4, STP_ISSYNC_1_C, SEL_SSP1_1_2),
  987. PINMUX_IPSR_MSEL(IP11_7_4, RIF1_SYNC_B, SEL_DRIF1_1),
  988. PINMUX_IPSR_MSEL(IP11_7_4, AUDIO_CLKOUT_C, SEL_ADG_2),
  989. PINMUX_IPSR_GPSR(IP11_7_4, ADICS_SAMP),
  990. PINMUX_IPSR_GPSR(IP11_11_8, RTS0_N_TANS),
  991. PINMUX_IPSR_MSEL(IP11_11_8, HRTS1_N_B, SEL_HSCIF1_1),
  992. PINMUX_IPSR_MSEL(IP11_11_8, MSIOF1_SS1_B, SEL_MSIOF1_1),
  993. PINMUX_IPSR_MSEL(IP11_11_8, AUDIO_CLKA_B, SEL_ADG_1),
  994. PINMUX_IPSR_MSEL(IP11_11_8, SCL2_A, SEL_I2C2_0),
  995. PINMUX_IPSR_MSEL(IP11_11_8, STP_IVCXO27_1_C, SEL_SSP1_1_2),
  996. PINMUX_IPSR_MSEL(IP11_11_8, RIF0_SYNC_B, SEL_DRIF0_1),
  997. PINMUX_IPSR_GPSR(IP11_11_8, ADICHS1),
  998. PINMUX_IPSR_MSEL(IP11_15_12, RX1_A, SEL_SCIF1_0),
  999. PINMUX_IPSR_MSEL(IP11_15_12, HRX1_A, SEL_HSCIF1_0),
  1000. PINMUX_IPSR_MSEL(IP11_15_12, TS_SDAT0_C, SEL_TSIF0_2),
  1001. PINMUX_IPSR_MSEL(IP11_15_12, STP_ISD_0_C, SEL_SSP1_0_2),
  1002. PINMUX_IPSR_MSEL(IP11_15_12, RIF1_CLK_C, SEL_DRIF1_2),
  1003. PINMUX_IPSR_MSEL(IP11_19_16, TX1_A, SEL_SCIF1_0),
  1004. PINMUX_IPSR_MSEL(IP11_19_16, HTX1_A, SEL_HSCIF1_0),
  1005. PINMUX_IPSR_MSEL(IP11_19_16, TS_SDEN0_C, SEL_TSIF0_2),
  1006. PINMUX_IPSR_MSEL(IP11_19_16, STP_ISEN_0_C, SEL_SSP1_0_2),
  1007. PINMUX_IPSR_MSEL(IP11_19_16, RIF1_D0_C, SEL_DRIF1_2),
  1008. PINMUX_IPSR_GPSR(IP11_23_20, CTS1_N),
  1009. PINMUX_IPSR_MSEL(IP11_23_20, HCTS1_N_A, SEL_HSCIF1_0),
  1010. PINMUX_IPSR_MSEL(IP11_23_20, MSIOF1_RXD_B, SEL_MSIOF1_1),
  1011. PINMUX_IPSR_MSEL(IP11_23_20, TS_SDEN1_C, SEL_TSIF1_2),
  1012. PINMUX_IPSR_MSEL(IP11_23_20, STP_ISEN_1_C, SEL_SSP1_1_2),
  1013. PINMUX_IPSR_MSEL(IP11_23_20, RIF1_D0_B, SEL_DRIF1_1),
  1014. PINMUX_IPSR_GPSR(IP11_23_20, ADIDATA),
  1015. PINMUX_IPSR_GPSR(IP11_27_24, RTS1_N_TANS),
  1016. PINMUX_IPSR_MSEL(IP11_27_24, HRTS1_N_A, SEL_HSCIF1_0),
  1017. PINMUX_IPSR_MSEL(IP11_27_24, MSIOF1_TXD_B, SEL_MSIOF1_1),
  1018. PINMUX_IPSR_MSEL(IP11_27_24, TS_SDAT1_C, SEL_TSIF1_2),
  1019. PINMUX_IPSR_MSEL(IP11_27_24, STP_ISD_1_C, SEL_SSP1_1_2),
  1020. PINMUX_IPSR_MSEL(IP11_27_24, RIF1_D1_B, SEL_DRIF1_1),
  1021. PINMUX_IPSR_GPSR(IP11_27_24, ADICHS0),
  1022. PINMUX_IPSR_GPSR(IP11_31_28, SCK2),
  1023. PINMUX_IPSR_MSEL(IP11_31_28, SCIF_CLK_B, SEL_SCIF1_1),
  1024. PINMUX_IPSR_MSEL(IP11_31_28, MSIOF1_SCK_B, SEL_MSIOF1_1),
  1025. PINMUX_IPSR_MSEL(IP11_31_28, TS_SCK1_C, SEL_TSIF1_2),
  1026. PINMUX_IPSR_MSEL(IP11_31_28, STP_ISCLK_1_C, SEL_SSP1_1_2),
  1027. PINMUX_IPSR_MSEL(IP11_31_28, RIF1_CLK_B, SEL_DRIF1_1),
  1028. PINMUX_IPSR_GPSR(IP11_31_28, ADICLK),
  1029. /* IPSR12 */
  1030. PINMUX_IPSR_MSEL(IP12_3_0, TX2_A, SEL_SCIF2_0),
  1031. PINMUX_IPSR_MSEL(IP12_3_0, SD2_CD_B, SEL_SDHI2_1),
  1032. PINMUX_IPSR_MSEL(IP12_3_0, SCL1_A, SEL_I2C1_0),
  1033. PINMUX_IPSR_MSEL(IP12_3_0, FMCLK_A, SEL_FM_0),
  1034. PINMUX_IPSR_MSEL(IP12_3_0, RIF1_D1_C, SEL_DRIF1_2),
  1035. PINMUX_IPSR_MSEL(IP12_3_0, FSO_CFE_0_B, SEL_FSO_1),
  1036. PINMUX_IPSR_MSEL(IP12_7_4, RX2_A, SEL_SCIF2_0),
  1037. PINMUX_IPSR_MSEL(IP12_7_4, SD2_WP_B, SEL_SDHI2_1),
  1038. PINMUX_IPSR_MSEL(IP12_7_4, SDA1_A, SEL_I2C1_0),
  1039. PINMUX_IPSR_MSEL(IP12_7_4, FMIN_A, SEL_FM_0),
  1040. PINMUX_IPSR_MSEL(IP12_7_4, RIF1_SYNC_C, SEL_DRIF1_2),
  1041. PINMUX_IPSR_MSEL(IP12_7_4, FSO_CFE_1_B, SEL_FSO_1),
  1042. PINMUX_IPSR_GPSR(IP12_11_8, HSCK0),
  1043. PINMUX_IPSR_MSEL(IP12_11_8, MSIOF1_SCK_D, SEL_MSIOF1_3),
  1044. PINMUX_IPSR_MSEL(IP12_11_8, AUDIO_CLKB_A, SEL_ADG_0),
  1045. PINMUX_IPSR_MSEL(IP12_11_8, SSI_SDATA1_B, SEL_SSI_1),
  1046. PINMUX_IPSR_MSEL(IP12_11_8, TS_SCK0_D, SEL_TSIF0_3),
  1047. PINMUX_IPSR_MSEL(IP12_11_8, STP_ISCLK_0_D, SEL_SSP1_0_3),
  1048. PINMUX_IPSR_MSEL(IP12_11_8, RIF0_CLK_C, SEL_DRIF0_2),
  1049. PINMUX_IPSR_GPSR(IP12_15_12, HRX0),
  1050. PINMUX_IPSR_MSEL(IP12_15_12, MSIOF1_RXD_D, SEL_MSIOF1_3),
  1051. PINMUX_IPSR_MSEL(IP12_15_12, SSI_SDATA2_B, SEL_SSI_1),
  1052. PINMUX_IPSR_MSEL(IP12_15_12, TS_SDEN0_D, SEL_TSIF0_3),
  1053. PINMUX_IPSR_MSEL(IP12_15_12, STP_ISEN_0_D, SEL_SSP1_0_3),
  1054. PINMUX_IPSR_MSEL(IP12_15_12, RIF0_D0_C, SEL_DRIF0_2),
  1055. PINMUX_IPSR_GPSR(IP12_19_16, HTX0),
  1056. PINMUX_IPSR_MSEL(IP12_19_16, MSIOF1_TXD_D, SEL_MSIOF1_3),
  1057. PINMUX_IPSR_MSEL(IP12_19_16, SSI_SDATA9_B, SEL_SSI_1),
  1058. PINMUX_IPSR_MSEL(IP12_19_16, TS_SDAT0_D, SEL_TSIF0_3),
  1059. PINMUX_IPSR_MSEL(IP12_19_16, STP_ISD_0_D, SEL_SSP1_0_3),
  1060. PINMUX_IPSR_MSEL(IP12_19_16, RIF0_D1_C, SEL_DRIF0_2),
  1061. PINMUX_IPSR_GPSR(IP12_23_20, HCTS0_N),
  1062. PINMUX_IPSR_MSEL(IP12_23_20, RX2_B, SEL_SCIF2_1),
  1063. PINMUX_IPSR_MSEL(IP12_23_20, MSIOF1_SYNC_D, SEL_MSIOF1_3),
  1064. PINMUX_IPSR_MSEL(IP12_23_20, SSI_SCK9_A, SEL_SSI_0),
  1065. PINMUX_IPSR_MSEL(IP12_23_20, TS_SPSYNC0_D, SEL_TSIF0_3),
  1066. PINMUX_IPSR_MSEL(IP12_23_20, STP_ISSYNC_0_D, SEL_SSP1_0_3),
  1067. PINMUX_IPSR_MSEL(IP12_23_20, RIF0_SYNC_C, SEL_DRIF0_2),
  1068. PINMUX_IPSR_MSEL(IP12_23_20, AUDIO_CLKOUT1_A, SEL_ADG_0),
  1069. PINMUX_IPSR_GPSR(IP12_27_24, HRTS0_N),
  1070. PINMUX_IPSR_MSEL(IP12_27_24, TX2_B, SEL_SCIF2_1),
  1071. PINMUX_IPSR_MSEL(IP12_27_24, MSIOF1_SS1_D, SEL_MSIOF1_3),
  1072. PINMUX_IPSR_MSEL(IP12_27_24, SSI_WS9_A, SEL_SSI_0),
  1073. PINMUX_IPSR_MSEL(IP12_27_24, STP_IVCXO27_0_D, SEL_SSP1_0_3),
  1074. PINMUX_IPSR_MSEL(IP12_27_24, BPFCLK_A, SEL_FM_0),
  1075. PINMUX_IPSR_MSEL(IP12_27_24, AUDIO_CLKOUT2_A, SEL_ADG_0),
  1076. PINMUX_IPSR_GPSR(IP12_31_28, MSIOF0_SYNC),
  1077. PINMUX_IPSR_MSEL(IP12_31_28, AUDIO_CLKOUT_A, SEL_ADG_0),
  1078. /* IPSR13 */
  1079. PINMUX_IPSR_GPSR(IP13_3_0, MSIOF0_SS1),
  1080. PINMUX_IPSR_GPSR(IP13_3_0, RX5),
  1081. PINMUX_IPSR_MSEL(IP13_3_0, AUDIO_CLKA_C, SEL_ADG_2),
  1082. PINMUX_IPSR_MSEL(IP13_3_0, SSI_SCK2_A, SEL_SSI_0),
  1083. PINMUX_IPSR_MSEL(IP13_3_0, STP_IVCXO27_0_C, SEL_SSP1_0_2),
  1084. PINMUX_IPSR_MSEL(IP13_3_0, AUDIO_CLKOUT3_A, SEL_ADG_0),
  1085. PINMUX_IPSR_MSEL(IP13_3_0, TCLK1_B, SEL_TIMER_TMU_1),
  1086. PINMUX_IPSR_GPSR(IP13_7_4, MSIOF0_SS2),
  1087. PINMUX_IPSR_GPSR(IP13_7_4, TX5),
  1088. PINMUX_IPSR_MSEL(IP13_7_4, MSIOF1_SS2_D, SEL_MSIOF1_3),
  1089. PINMUX_IPSR_MSEL(IP13_7_4, AUDIO_CLKC_A, SEL_ADG_0),
  1090. PINMUX_IPSR_MSEL(IP13_7_4, SSI_WS2_A, SEL_SSI_0),
  1091. PINMUX_IPSR_MSEL(IP13_7_4, STP_OPWM_0_D, SEL_SSP1_0_3),
  1092. PINMUX_IPSR_MSEL(IP13_7_4, AUDIO_CLKOUT_D, SEL_ADG_3),
  1093. PINMUX_IPSR_MSEL(IP13_7_4, SPEEDIN_B, SEL_SPEED_PULSE_1),
  1094. PINMUX_IPSR_GPSR(IP13_11_8, MLB_CLK),
  1095. PINMUX_IPSR_MSEL(IP13_11_8, MSIOF1_SCK_F, SEL_MSIOF1_5),
  1096. PINMUX_IPSR_MSEL(IP13_11_8, SCL1_B, SEL_I2C1_1),
  1097. PINMUX_IPSR_GPSR(IP13_15_12, MLB_SIG),
  1098. PINMUX_IPSR_MSEL(IP13_15_12, RX1_B, SEL_SCIF1_1),
  1099. PINMUX_IPSR_MSEL(IP13_15_12, MSIOF1_SYNC_F, SEL_MSIOF1_5),
  1100. PINMUX_IPSR_MSEL(IP13_15_12, SDA1_B, SEL_I2C1_1),
  1101. PINMUX_IPSR_GPSR(IP13_19_16, MLB_DAT),
  1102. PINMUX_IPSR_MSEL(IP13_19_16, TX1_B, SEL_SCIF1_1),
  1103. PINMUX_IPSR_MSEL(IP13_19_16, MSIOF1_RXD_F, SEL_MSIOF1_5),
  1104. PINMUX_IPSR_GPSR(IP13_23_20, SSI_SCK01239),
  1105. PINMUX_IPSR_MSEL(IP13_23_20, MSIOF1_TXD_F, SEL_MSIOF1_5),
  1106. PINMUX_IPSR_GPSR(IP13_27_24, SSI_WS01239),
  1107. PINMUX_IPSR_MSEL(IP13_27_24, MSIOF1_SS1_F, SEL_MSIOF1_5),
  1108. PINMUX_IPSR_GPSR(IP13_31_28, SSI_SDATA0),
  1109. PINMUX_IPSR_MSEL(IP13_31_28, MSIOF1_SS2_F, SEL_MSIOF1_5),
  1110. /* IPSR14 */
  1111. PINMUX_IPSR_MSEL(IP14_3_0, SSI_SDATA1_A, SEL_SSI_0),
  1112. PINMUX_IPSR_MSEL(IP14_7_4, SSI_SDATA2_A, SEL_SSI_0),
  1113. PINMUX_IPSR_MSEL(IP14_7_4, SSI_SCK1_B, SEL_SSI_1),
  1114. PINMUX_IPSR_GPSR(IP14_11_8, SSI_SCK34),
  1115. PINMUX_IPSR_MSEL(IP14_11_8, MSIOF1_SS1_A, SEL_MSIOF1_0),
  1116. PINMUX_IPSR_MSEL(IP14_11_8, STP_OPWM_0_A, SEL_SSP1_0_0),
  1117. PINMUX_IPSR_GPSR(IP14_15_12, SSI_WS34),
  1118. PINMUX_IPSR_MSEL(IP14_15_12, HCTS2_N_A, SEL_HSCIF2_0),
  1119. PINMUX_IPSR_MSEL(IP14_15_12, MSIOF1_SS2_A, SEL_MSIOF1_0),
  1120. PINMUX_IPSR_MSEL(IP14_15_12, STP_IVCXO27_0_A, SEL_SSP1_0_0),
  1121. PINMUX_IPSR_GPSR(IP14_19_16, SSI_SDATA3),
  1122. PINMUX_IPSR_MSEL(IP14_19_16, HRTS2_N_A, SEL_HSCIF2_0),
  1123. PINMUX_IPSR_MSEL(IP14_19_16, MSIOF1_TXD_A, SEL_MSIOF1_0),
  1124. PINMUX_IPSR_MSEL(IP14_19_16, TS_SCK0_A, SEL_TSIF0_0),
  1125. PINMUX_IPSR_MSEL(IP14_19_16, STP_ISCLK_0_A, SEL_SSP1_0_0),
  1126. PINMUX_IPSR_MSEL(IP14_19_16, RIF0_D1_A, SEL_DRIF0_0),
  1127. PINMUX_IPSR_MSEL(IP14_19_16, RIF2_D0_A, SEL_DRIF2_0),
  1128. PINMUX_IPSR_GPSR(IP14_23_20, SSI_SCK4),
  1129. PINMUX_IPSR_MSEL(IP14_23_20, HRX2_A, SEL_HSCIF2_0),
  1130. PINMUX_IPSR_MSEL(IP14_23_20, MSIOF1_SCK_A, SEL_MSIOF1_0),
  1131. PINMUX_IPSR_MSEL(IP14_23_20, TS_SDAT0_A, SEL_TSIF0_0),
  1132. PINMUX_IPSR_MSEL(IP14_23_20, STP_ISD_0_A, SEL_SSP1_0_0),
  1133. PINMUX_IPSR_MSEL(IP14_23_20, RIF0_CLK_A, SEL_DRIF0_0),
  1134. PINMUX_IPSR_MSEL(IP14_23_20, RIF2_CLK_A, SEL_DRIF2_0),
  1135. PINMUX_IPSR_GPSR(IP14_27_24, SSI_WS4),
  1136. PINMUX_IPSR_MSEL(IP14_27_24, HTX2_A, SEL_HSCIF2_0),
  1137. PINMUX_IPSR_MSEL(IP14_27_24, MSIOF1_SYNC_A, SEL_MSIOF1_0),
  1138. PINMUX_IPSR_MSEL(IP14_27_24, TS_SDEN0_A, SEL_TSIF0_0),
  1139. PINMUX_IPSR_MSEL(IP14_27_24, STP_ISEN_0_A, SEL_SSP1_0_0),
  1140. PINMUX_IPSR_MSEL(IP14_27_24, RIF0_SYNC_A, SEL_DRIF0_0),
  1141. PINMUX_IPSR_MSEL(IP14_27_24, RIF2_SYNC_A, SEL_DRIF2_0),
  1142. PINMUX_IPSR_GPSR(IP14_31_28, SSI_SDATA4),
  1143. PINMUX_IPSR_MSEL(IP14_31_28, HSCK2_A, SEL_HSCIF2_0),
  1144. PINMUX_IPSR_MSEL(IP14_31_28, MSIOF1_RXD_A, SEL_MSIOF1_0),
  1145. PINMUX_IPSR_MSEL(IP14_31_28, TS_SPSYNC0_A, SEL_TSIF0_0),
  1146. PINMUX_IPSR_MSEL(IP14_31_28, STP_ISSYNC_0_A, SEL_SSP1_0_0),
  1147. PINMUX_IPSR_MSEL(IP14_31_28, RIF0_D0_A, SEL_DRIF0_0),
  1148. PINMUX_IPSR_MSEL(IP14_31_28, RIF2_D1_A, SEL_DRIF2_0),
  1149. /* IPSR15 */
  1150. PINMUX_IPSR_GPSR(IP15_3_0, SSI_SCK6),
  1151. PINMUX_IPSR_GPSR(IP15_3_0, USB2_PWEN),
  1152. PINMUX_IPSR_MSEL(IP15_3_0, SIM0_RST_D, SEL_SIMCARD_3),
  1153. PINMUX_IPSR_GPSR(IP15_7_4, SSI_WS6),
  1154. PINMUX_IPSR_GPSR(IP15_7_4, USB2_OVC),
  1155. PINMUX_IPSR_MSEL(IP15_7_4, SIM0_D_D, SEL_SIMCARD_3),
  1156. PINMUX_IPSR_GPSR(IP15_11_8, SSI_SDATA6),
  1157. PINMUX_IPSR_MSEL(IP15_11_8, SIM0_CLK_D, SEL_SIMCARD_3),
  1158. PINMUX_IPSR_MSEL(IP15_11_8, SATA_DEVSLP_A, SEL_SATA_0),
  1159. PINMUX_IPSR_GPSR(IP15_15_12, SSI_SCK78),
  1160. PINMUX_IPSR_MSEL(IP15_15_12, HRX2_B, SEL_HSCIF2_1),
  1161. PINMUX_IPSR_MSEL(IP15_15_12, MSIOF1_SCK_C, SEL_MSIOF1_2),
  1162. PINMUX_IPSR_MSEL(IP15_15_12, TS_SCK1_A, SEL_TSIF1_0),
  1163. PINMUX_IPSR_MSEL(IP15_15_12, STP_ISCLK_1_A, SEL_SSP1_1_0),
  1164. PINMUX_IPSR_MSEL(IP15_15_12, RIF1_CLK_A, SEL_DRIF1_0),
  1165. PINMUX_IPSR_MSEL(IP15_15_12, RIF3_CLK_A, SEL_DRIF3_0),
  1166. PINMUX_IPSR_GPSR(IP15_19_16, SSI_WS78),
  1167. PINMUX_IPSR_MSEL(IP15_19_16, HTX2_B, SEL_HSCIF2_1),
  1168. PINMUX_IPSR_MSEL(IP15_19_16, MSIOF1_SYNC_C, SEL_MSIOF1_2),
  1169. PINMUX_IPSR_MSEL(IP15_19_16, TS_SDAT1_A, SEL_TSIF1_0),
  1170. PINMUX_IPSR_MSEL(IP15_19_16, STP_ISD_1_A, SEL_SSP1_1_0),
  1171. PINMUX_IPSR_MSEL(IP15_19_16, RIF1_SYNC_A, SEL_DRIF1_0),
  1172. PINMUX_IPSR_MSEL(IP15_19_16, RIF3_SYNC_A, SEL_DRIF3_0),
  1173. PINMUX_IPSR_GPSR(IP15_23_20, SSI_SDATA7),
  1174. PINMUX_IPSR_MSEL(IP15_23_20, HCTS2_N_B, SEL_HSCIF2_1),
  1175. PINMUX_IPSR_MSEL(IP15_23_20, MSIOF1_RXD_C, SEL_MSIOF1_2),
  1176. PINMUX_IPSR_MSEL(IP15_23_20, TS_SDEN1_A, SEL_TSIF1_0),
  1177. PINMUX_IPSR_MSEL(IP15_23_20, STP_ISEN_1_A, SEL_SSP1_1_0),
  1178. PINMUX_IPSR_MSEL(IP15_23_20, RIF1_D0_A, SEL_DRIF1_0),
  1179. PINMUX_IPSR_MSEL(IP15_23_20, RIF3_D0_A, SEL_DRIF3_0),
  1180. PINMUX_IPSR_MSEL(IP15_23_20, TCLK2_A, SEL_TIMER_TMU_0),
  1181. PINMUX_IPSR_GPSR(IP15_27_24, SSI_SDATA8),
  1182. PINMUX_IPSR_MSEL(IP15_27_24, HRTS2_N_B, SEL_HSCIF2_1),
  1183. PINMUX_IPSR_MSEL(IP15_27_24, MSIOF1_TXD_C, SEL_MSIOF1_2),
  1184. PINMUX_IPSR_MSEL(IP15_27_24, TS_SPSYNC1_A, SEL_TSIF1_0),
  1185. PINMUX_IPSR_MSEL(IP15_27_24, STP_ISSYNC_1_A, SEL_SSP1_1_0),
  1186. PINMUX_IPSR_MSEL(IP15_27_24, RIF1_D1_A, SEL_DRIF1_0),
  1187. PINMUX_IPSR_MSEL(IP15_27_24, RIF3_D1_A, SEL_DRIF3_0),
  1188. PINMUX_IPSR_MSEL(IP15_31_28, SSI_SDATA9_A, SEL_SSI_0),
  1189. PINMUX_IPSR_MSEL(IP15_31_28, HSCK2_B, SEL_HSCIF2_1),
  1190. PINMUX_IPSR_MSEL(IP15_31_28, MSIOF1_SS1_C, SEL_MSIOF1_2),
  1191. PINMUX_IPSR_MSEL(IP15_31_28, HSCK1_A, SEL_HSCIF1_0),
  1192. PINMUX_IPSR_MSEL(IP15_31_28, SSI_WS1_B, SEL_SSI_1),
  1193. PINMUX_IPSR_GPSR(IP15_31_28, SCK1),
  1194. PINMUX_IPSR_MSEL(IP15_31_28, STP_IVCXO27_1_A, SEL_SSP1_1_0),
  1195. PINMUX_IPSR_GPSR(IP15_31_28, SCK5),
  1196. /* IPSR16 */
  1197. PINMUX_IPSR_MSEL(IP16_3_0, AUDIO_CLKA_A, SEL_ADG_0),
  1198. PINMUX_IPSR_GPSR(IP16_3_0, CC5_OSCOUT),
  1199. PINMUX_IPSR_MSEL(IP16_7_4, AUDIO_CLKB_B, SEL_ADG_1),
  1200. PINMUX_IPSR_MSEL(IP16_7_4, SCIF_CLK_A, SEL_SCIF1_0),
  1201. PINMUX_IPSR_MSEL(IP16_7_4, STP_IVCXO27_1_D, SEL_SSP1_1_3),
  1202. PINMUX_IPSR_MSEL(IP16_7_4, REMOCON_A, SEL_REMOCON_0),
  1203. PINMUX_IPSR_MSEL(IP16_7_4, TCLK1_A, SEL_TIMER_TMU_0),
  1204. PINMUX_IPSR_GPSR(IP16_11_8, USB0_PWEN),
  1205. PINMUX_IPSR_MSEL(IP16_11_8, SIM0_RST_C, SEL_SIMCARD_2),
  1206. PINMUX_IPSR_MSEL(IP16_11_8, TS_SCK1_D, SEL_TSIF1_3),
  1207. PINMUX_IPSR_MSEL(IP16_11_8, STP_ISCLK_1_D, SEL_SSP1_1_3),
  1208. PINMUX_IPSR_MSEL(IP16_11_8, BPFCLK_B, SEL_FM_1),
  1209. PINMUX_IPSR_MSEL(IP16_11_8, RIF3_CLK_B, SEL_DRIF3_1),
  1210. PINMUX_IPSR_GPSR(IP16_15_12, USB0_OVC),
  1211. PINMUX_IPSR_MSEL(IP16_11_8, SIM0_D_C, SEL_SIMCARD_2),
  1212. PINMUX_IPSR_MSEL(IP16_11_8, TS_SDAT1_D, SEL_TSIF1_3),
  1213. PINMUX_IPSR_MSEL(IP16_11_8, STP_ISD_1_D, SEL_SSP1_1_3),
  1214. PINMUX_IPSR_MSEL(IP16_11_8, RIF3_SYNC_B, SEL_DRIF3_1),
  1215. PINMUX_IPSR_GPSR(IP16_19_16, USB1_PWEN),
  1216. PINMUX_IPSR_MSEL(IP16_19_16, SIM0_CLK_C, SEL_SIMCARD_2),
  1217. PINMUX_IPSR_MSEL(IP16_19_16, SSI_SCK1_A, SEL_SSI_0),
  1218. PINMUX_IPSR_MSEL(IP16_19_16, TS_SCK0_E, SEL_TSIF0_4),
  1219. PINMUX_IPSR_MSEL(IP16_19_16, STP_ISCLK_0_E, SEL_SSP1_0_4),
  1220. PINMUX_IPSR_MSEL(IP16_19_16, FMCLK_B, SEL_FM_1),
  1221. PINMUX_IPSR_MSEL(IP16_19_16, RIF2_CLK_B, SEL_DRIF2_1),
  1222. PINMUX_IPSR_MSEL(IP16_19_16, SPEEDIN_A, SEL_SPEED_PULSE_0),
  1223. PINMUX_IPSR_GPSR(IP16_23_20, USB1_OVC),
  1224. PINMUX_IPSR_MSEL(IP16_23_20, MSIOF1_SS2_C, SEL_MSIOF1_2),
  1225. PINMUX_IPSR_MSEL(IP16_23_20, SSI_WS1_A, SEL_SSI_0),
  1226. PINMUX_IPSR_MSEL(IP16_23_20, TS_SDAT0_E, SEL_TSIF0_4),
  1227. PINMUX_IPSR_MSEL(IP16_23_20, STP_ISD_0_E, SEL_SSP1_0_4),
  1228. PINMUX_IPSR_MSEL(IP16_23_20, FMIN_B, SEL_FM_1),
  1229. PINMUX_IPSR_MSEL(IP16_23_20, RIF2_SYNC_B, SEL_DRIF2_1),
  1230. PINMUX_IPSR_MSEL(IP16_23_20, REMOCON_B, SEL_REMOCON_1),
  1231. PINMUX_IPSR_GPSR(IP16_27_24, USB30_PWEN),
  1232. PINMUX_IPSR_MSEL(IP16_27_24, AUDIO_CLKOUT_B, SEL_ADG_1),
  1233. PINMUX_IPSR_MSEL(IP16_27_24, SSI_SCK2_B, SEL_SSI_1),
  1234. PINMUX_IPSR_MSEL(IP16_27_24, TS_SDEN1_D, SEL_TSIF1_3),
  1235. PINMUX_IPSR_MSEL(IP16_27_24, STP_ISEN_1_D, SEL_SSP1_1_2),
  1236. PINMUX_IPSR_MSEL(IP16_27_24, STP_OPWM_0_E, SEL_SSP1_0_4),
  1237. PINMUX_IPSR_MSEL(IP16_27_24, RIF3_D0_B, SEL_DRIF3_1),
  1238. PINMUX_IPSR_MSEL(IP16_27_24, TCLK2_B, SEL_TIMER_TMU_1),
  1239. PINMUX_IPSR_GPSR(IP16_27_24, TPU0TO0),
  1240. PINMUX_IPSR_GPSR(IP16_31_28, USB30_OVC),
  1241. PINMUX_IPSR_MSEL(IP16_31_28, AUDIO_CLKOUT1_B, SEL_ADG_1),
  1242. PINMUX_IPSR_MSEL(IP16_31_28, SSI_WS2_B, SEL_SSI_1),
  1243. PINMUX_IPSR_MSEL(IP16_31_28, TS_SPSYNC1_D, SEL_TSIF1_3),
  1244. PINMUX_IPSR_MSEL(IP16_31_28, STP_ISSYNC_1_D, SEL_SSP1_1_3),
  1245. PINMUX_IPSR_MSEL(IP16_31_28, STP_IVCXO27_0_E, SEL_SSP1_0_4),
  1246. PINMUX_IPSR_MSEL(IP16_31_28, RIF3_D1_B, SEL_DRIF3_1),
  1247. PINMUX_IPSR_MSEL(IP16_31_28, FSO_TOE_B, SEL_FSO_1),
  1248. PINMUX_IPSR_GPSR(IP16_31_28, TPU0TO1),
  1249. /* IPSR17 */
  1250. PINMUX_IPSR_GPSR(IP17_3_0, USB31_PWEN),
  1251. PINMUX_IPSR_MSEL(IP17_3_0, AUDIO_CLKOUT2_B, SEL_ADG_1),
  1252. PINMUX_IPSR_MSEL(IP17_3_0, SSI_SCK9_B, SEL_SSI_1),
  1253. PINMUX_IPSR_MSEL(IP17_3_0, TS_SDEN0_E, SEL_TSIF0_4),
  1254. PINMUX_IPSR_MSEL(IP17_3_0, STP_ISEN_0_E, SEL_SSP1_0_4),
  1255. PINMUX_IPSR_MSEL(IP17_3_0, RIF2_D0_B, SEL_DRIF2_1),
  1256. PINMUX_IPSR_GPSR(IP17_3_0, TPU0TO2),
  1257. PINMUX_IPSR_GPSR(IP17_7_4, USB31_OVC),
  1258. PINMUX_IPSR_MSEL(IP17_7_4, AUDIO_CLKOUT3_B, SEL_ADG_1),
  1259. PINMUX_IPSR_MSEL(IP17_7_4, SSI_WS9_B, SEL_SSI_1),
  1260. PINMUX_IPSR_MSEL(IP17_7_4, TS_SPSYNC0_E, SEL_TSIF0_4),
  1261. PINMUX_IPSR_MSEL(IP17_7_4, STP_ISSYNC_0_E, SEL_SSP1_0_4),
  1262. PINMUX_IPSR_MSEL(IP17_7_4, RIF2_D1_B, SEL_DRIF2_1),
  1263. PINMUX_IPSR_GPSR(IP17_7_4, TPU0TO3),
  1264. /*
  1265. * Static pins can not be muxed between different functions but
  1266. * still needs a mark entry in the pinmux list. Add each static
  1267. * pin to the list without an associated function. The sh-pfc
  1268. * core will do the right thing and skip trying to mux then pin
  1269. * while still applying configuration to it
  1270. */
  1271. #define FM(x) PINMUX_DATA(x##_MARK, 0),
  1272. PINMUX_STATIC
  1273. #undef FM
  1274. };
  1275. /*
  1276. * R8A7795 has 8 banks with 32 PGIOS in each => 256 GPIOs.
  1277. * Physical layout rows: A - AW, cols: 1 - 39.
  1278. */
  1279. #define ROW_GROUP_A(r) ('Z' - 'A' + 1 + (r))
  1280. #define PIN_NUMBER(r, c) (((r) - 'A') * 39 + (c) + 300)
  1281. #define PIN_A_NUMBER(r, c) PIN_NUMBER(ROW_GROUP_A(r), c)
  1282. static const struct sh_pfc_pin pinmux_pins[] = {
  1283. PINMUX_GPIO_GP_ALL(),
  1284. /*
  1285. * Pins not associated with a GPIO port.
  1286. *
  1287. * The pin positions are different between different r8a7795
  1288. * packages, all that is needed for the pfc driver is a unique
  1289. * number for each pin. To this end use the pin layout from
  1290. * R-Car H3SiP to calculate a unique number for each pin.
  1291. */
  1292. SH_PFC_PIN_NAMED_CFG('A', 8, AVB_TX_CTL, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1293. SH_PFC_PIN_NAMED_CFG('A', 9, AVB_MDIO, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1294. SH_PFC_PIN_NAMED_CFG('A', 12, AVB_TXCREFCLK, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1295. SH_PFC_PIN_NAMED_CFG('A', 13, AVB_RD0, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1296. SH_PFC_PIN_NAMED_CFG('A', 14, AVB_RD2, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1297. SH_PFC_PIN_NAMED_CFG('A', 16, AVB_RX_CTL, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1298. SH_PFC_PIN_NAMED_CFG('A', 17, AVB_TD2, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1299. SH_PFC_PIN_NAMED_CFG('A', 18, AVB_TD0, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1300. SH_PFC_PIN_NAMED_CFG('A', 19, AVB_TXC, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1301. SH_PFC_PIN_NAMED_CFG('B', 13, AVB_RD1, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1302. SH_PFC_PIN_NAMED_CFG('B', 14, AVB_RD3, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1303. SH_PFC_PIN_NAMED_CFG('B', 17, AVB_TD3, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1304. SH_PFC_PIN_NAMED_CFG('B', 18, AVB_TD1, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1305. SH_PFC_PIN_NAMED_CFG('B', 19, AVB_RXC, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1306. SH_PFC_PIN_NAMED_CFG('C', 1, PRESETOUT#, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1307. SH_PFC_PIN_NAMED_CFG('F', 1, CLKOUT, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1308. SH_PFC_PIN_NAMED_CFG('H', 37, MLB_REF, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1309. SH_PFC_PIN_NAMED_CFG('V', 3, QSPI1_SPCLK, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1310. SH_PFC_PIN_NAMED_CFG('V', 5, QSPI1_SSL, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1311. SH_PFC_PIN_NAMED_CFG('V', 6, RPC_WP#, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1312. SH_PFC_PIN_NAMED_CFG('V', 7, RPC_RESET#, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1313. SH_PFC_PIN_NAMED_CFG('W', 3, QSPI0_SPCLK, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1314. SH_PFC_PIN_NAMED_CFG('Y', 3, QSPI0_SSL, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1315. SH_PFC_PIN_NAMED_CFG('Y', 6, QSPI0_IO2, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1316. SH_PFC_PIN_NAMED_CFG('Y', 7, RPC_INT#, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1317. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('B'), 4, QSPI0_MISO_IO1, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1318. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('B'), 6, QSPI0_IO3, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1319. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('C'), 3, QSPI1_IO3, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1320. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('C'), 5, QSPI0_MOSI_IO0, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1321. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('C'), 7, QSPI1_MOSI_IO0, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1322. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('D'), 38, FSCLKST#, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1323. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('E'), 4, QSPI1_IO2, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1324. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('E'), 5, QSPI1_MISO_IO1, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1325. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('P'), 7, DU_DOTCLKIN0, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1326. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('P'), 8, DU_DOTCLKIN1, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1327. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('R'), 7, DU_DOTCLKIN2, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1328. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('R'), 8, DU_DOTCLKIN3, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1329. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('R'), 30, TMS, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1330. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('T'), 28, TDO, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1331. SH_PFC_PIN_NAMED_CFG(ROW_GROUP_A('T'), 30, ASEBRK, SH_PFC_PIN_CFG_DRIVE_STRENGTH),
  1332. };
  1333. /* - AUDIO CLOCK ------------------------------------------------------------ */
  1334. static const unsigned int audio_clk_a_a_pins[] = {
  1335. /* CLK A */
  1336. RCAR_GP_PIN(6, 22),
  1337. };
  1338. static const unsigned int audio_clk_a_a_mux[] = {
  1339. AUDIO_CLKA_A_MARK,
  1340. };
  1341. static const unsigned int audio_clk_a_b_pins[] = {
  1342. /* CLK A */
  1343. RCAR_GP_PIN(5, 4),
  1344. };
  1345. static const unsigned int audio_clk_a_b_mux[] = {
  1346. AUDIO_CLKA_B_MARK,
  1347. };
  1348. static const unsigned int audio_clk_a_c_pins[] = {
  1349. /* CLK A */
  1350. RCAR_GP_PIN(5, 19),
  1351. };
  1352. static const unsigned int audio_clk_a_c_mux[] = {
  1353. AUDIO_CLKA_C_MARK,
  1354. };
  1355. static const unsigned int audio_clk_b_a_pins[] = {
  1356. /* CLK B */
  1357. RCAR_GP_PIN(5, 12),
  1358. };
  1359. static const unsigned int audio_clk_b_a_mux[] = {
  1360. AUDIO_CLKB_A_MARK,
  1361. };
  1362. static const unsigned int audio_clk_b_b_pins[] = {
  1363. /* CLK B */
  1364. RCAR_GP_PIN(6, 23),
  1365. };
  1366. static const unsigned int audio_clk_b_b_mux[] = {
  1367. AUDIO_CLKB_B_MARK,
  1368. };
  1369. static const unsigned int audio_clk_c_a_pins[] = {
  1370. /* CLK C */
  1371. RCAR_GP_PIN(5, 21),
  1372. };
  1373. static const unsigned int audio_clk_c_a_mux[] = {
  1374. AUDIO_CLKC_A_MARK,
  1375. };
  1376. static const unsigned int audio_clk_c_b_pins[] = {
  1377. /* CLK C */
  1378. RCAR_GP_PIN(5, 0),
  1379. };
  1380. static const unsigned int audio_clk_c_b_mux[] = {
  1381. AUDIO_CLKC_B_MARK,
  1382. };
  1383. static const unsigned int audio_clkout_a_pins[] = {
  1384. /* CLKOUT */
  1385. RCAR_GP_PIN(5, 18),
  1386. };
  1387. static const unsigned int audio_clkout_a_mux[] = {
  1388. AUDIO_CLKOUT_A_MARK,
  1389. };
  1390. static const unsigned int audio_clkout_b_pins[] = {
  1391. /* CLKOUT */
  1392. RCAR_GP_PIN(6, 28),
  1393. };
  1394. static const unsigned int audio_clkout_b_mux[] = {
  1395. AUDIO_CLKOUT_B_MARK,
  1396. };
  1397. static const unsigned int audio_clkout_c_pins[] = {
  1398. /* CLKOUT */
  1399. RCAR_GP_PIN(5, 3),
  1400. };
  1401. static const unsigned int audio_clkout_c_mux[] = {
  1402. AUDIO_CLKOUT_C_MARK,
  1403. };
  1404. static const unsigned int audio_clkout_d_pins[] = {
  1405. /* CLKOUT */
  1406. RCAR_GP_PIN(5, 21),
  1407. };
  1408. static const unsigned int audio_clkout_d_mux[] = {
  1409. AUDIO_CLKOUT_D_MARK,
  1410. };
  1411. static const unsigned int audio_clkout1_a_pins[] = {
  1412. /* CLKOUT1 */
  1413. RCAR_GP_PIN(5, 15),
  1414. };
  1415. static const unsigned int audio_clkout1_a_mux[] = {
  1416. AUDIO_CLKOUT1_A_MARK,
  1417. };
  1418. static const unsigned int audio_clkout1_b_pins[] = {
  1419. /* CLKOUT1 */
  1420. RCAR_GP_PIN(6, 29),
  1421. };
  1422. static const unsigned int audio_clkout1_b_mux[] = {
  1423. AUDIO_CLKOUT1_B_MARK,
  1424. };
  1425. static const unsigned int audio_clkout2_a_pins[] = {
  1426. /* CLKOUT2 */
  1427. RCAR_GP_PIN(5, 16),
  1428. };
  1429. static const unsigned int audio_clkout2_a_mux[] = {
  1430. AUDIO_CLKOUT2_A_MARK,
  1431. };
  1432. static const unsigned int audio_clkout2_b_pins[] = {
  1433. /* CLKOUT2 */
  1434. RCAR_GP_PIN(6, 30),
  1435. };
  1436. static const unsigned int audio_clkout2_b_mux[] = {
  1437. AUDIO_CLKOUT2_B_MARK,
  1438. };
  1439. static const unsigned int audio_clkout3_a_pins[] = {
  1440. /* CLKOUT3 */
  1441. RCAR_GP_PIN(5, 19),
  1442. };
  1443. static const unsigned int audio_clkout3_a_mux[] = {
  1444. AUDIO_CLKOUT3_A_MARK,
  1445. };
  1446. static const unsigned int audio_clkout3_b_pins[] = {
  1447. /* CLKOUT3 */
  1448. RCAR_GP_PIN(6, 31),
  1449. };
  1450. static const unsigned int audio_clkout3_b_mux[] = {
  1451. AUDIO_CLKOUT3_B_MARK,
  1452. };
  1453. /* - EtherAVB --------------------------------------------------------------- */
  1454. static const unsigned int avb_link_pins[] = {
  1455. /* AVB_LINK */
  1456. RCAR_GP_PIN(2, 12),
  1457. };
  1458. static const unsigned int avb_link_mux[] = {
  1459. AVB_LINK_MARK,
  1460. };
  1461. static const unsigned int avb_magic_pins[] = {
  1462. /* AVB_MAGIC_ */
  1463. RCAR_GP_PIN(2, 10),
  1464. };
  1465. static const unsigned int avb_magic_mux[] = {
  1466. AVB_MAGIC_MARK,
  1467. };
  1468. static const unsigned int avb_phy_int_pins[] = {
  1469. /* AVB_PHY_INT */
  1470. RCAR_GP_PIN(2, 11),
  1471. };
  1472. static const unsigned int avb_phy_int_mux[] = {
  1473. AVB_PHY_INT_MARK,
  1474. };
  1475. static const unsigned int avb_mdc_pins[] = {
  1476. /* AVB_MDC, AVB_MDIO */
  1477. RCAR_GP_PIN(2, 9), PIN_NUMBER('A', 9),
  1478. };
  1479. static const unsigned int avb_mdc_mux[] = {
  1480. AVB_MDC_MARK, AVB_MDIO_MARK,
  1481. };
  1482. static const unsigned int avb_mii_pins[] = {
  1483. /*
  1484. * AVB_TX_CTL, AVB_TXC, AVB_TD0,
  1485. * AVB_TD1, AVB_TD2, AVB_TD3,
  1486. * AVB_RX_CTL, AVB_RXC, AVB_RD0,
  1487. * AVB_RD1, AVB_RD2, AVB_RD3,
  1488. * AVB_TXCREFCLK
  1489. */
  1490. PIN_NUMBER('A', 8), PIN_NUMBER('A', 19), PIN_NUMBER('A', 18),
  1491. PIN_NUMBER('B', 18), PIN_NUMBER('A', 17), PIN_NUMBER('B', 17),
  1492. PIN_NUMBER('A', 16), PIN_NUMBER('B', 19), PIN_NUMBER('A', 13),
  1493. PIN_NUMBER('B', 13), PIN_NUMBER('A', 14), PIN_NUMBER('B', 14),
  1494. PIN_NUMBER('A', 12),
  1495. };
  1496. static const unsigned int avb_mii_mux[] = {
  1497. AVB_TX_CTL_MARK, AVB_TXC_MARK, AVB_TD0_MARK,
  1498. AVB_TD1_MARK, AVB_TD2_MARK, AVB_TD3_MARK,
  1499. AVB_RX_CTL_MARK, AVB_RXC_MARK, AVB_RD0_MARK,
  1500. AVB_RD1_MARK, AVB_RD2_MARK, AVB_RD3_MARK,
  1501. AVB_TXCREFCLK_MARK,
  1502. };
  1503. static const unsigned int avb_avtp_pps_pins[] = {
  1504. /* AVB_AVTP_PPS */
  1505. RCAR_GP_PIN(2, 6),
  1506. };
  1507. static const unsigned int avb_avtp_pps_mux[] = {
  1508. AVB_AVTP_PPS_MARK,
  1509. };
  1510. static const unsigned int avb_avtp_match_a_pins[] = {
  1511. /* AVB_AVTP_MATCH_A */
  1512. RCAR_GP_PIN(2, 13),
  1513. };
  1514. static const unsigned int avb_avtp_match_a_mux[] = {
  1515. AVB_AVTP_MATCH_A_MARK,
  1516. };
  1517. static const unsigned int avb_avtp_capture_a_pins[] = {
  1518. /* AVB_AVTP_CAPTURE_A */
  1519. RCAR_GP_PIN(2, 14),
  1520. };
  1521. static const unsigned int avb_avtp_capture_a_mux[] = {
  1522. AVB_AVTP_CAPTURE_A_MARK,
  1523. };
  1524. static const unsigned int avb_avtp_match_b_pins[] = {
  1525. /* AVB_AVTP_MATCH_B */
  1526. RCAR_GP_PIN(1, 8),
  1527. };
  1528. static const unsigned int avb_avtp_match_b_mux[] = {
  1529. AVB_AVTP_MATCH_B_MARK,
  1530. };
  1531. static const unsigned int avb_avtp_capture_b_pins[] = {
  1532. /* AVB_AVTP_CAPTURE_B */
  1533. RCAR_GP_PIN(1, 11),
  1534. };
  1535. static const unsigned int avb_avtp_capture_b_mux[] = {
  1536. AVB_AVTP_CAPTURE_B_MARK,
  1537. };
  1538. /* - CAN ------------------------------------------------------------------ */
  1539. static const unsigned int can0_data_a_pins[] = {
  1540. /* TX, RX */
  1541. RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 24),
  1542. };
  1543. static const unsigned int can0_data_a_mux[] = {
  1544. CAN0_TX_A_MARK, CAN0_RX_A_MARK,
  1545. };
  1546. static const unsigned int can0_data_b_pins[] = {
  1547. /* TX, RX */
  1548. RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
  1549. };
  1550. static const unsigned int can0_data_b_mux[] = {
  1551. CAN0_TX_B_MARK, CAN0_RX_B_MARK,
  1552. };
  1553. static const unsigned int can1_data_pins[] = {
  1554. /* TX, RX */
  1555. RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 26),
  1556. };
  1557. static const unsigned int can1_data_mux[] = {
  1558. CAN1_TX_MARK, CAN1_RX_MARK,
  1559. };
  1560. /* - CAN Clock -------------------------------------------------------------- */
  1561. static const unsigned int can_clk_pins[] = {
  1562. /* CLK */
  1563. RCAR_GP_PIN(1, 25),
  1564. };
  1565. static const unsigned int can_clk_mux[] = {
  1566. CAN_CLK_MARK,
  1567. };
  1568. /* - CAN FD --------------------------------------------------------------- */
  1569. static const unsigned int canfd0_data_a_pins[] = {
  1570. /* TX, RX */
  1571. RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 24),
  1572. };
  1573. static const unsigned int canfd0_data_a_mux[] = {
  1574. CANFD0_TX_A_MARK, CANFD0_RX_A_MARK,
  1575. };
  1576. static const unsigned int canfd0_data_b_pins[] = {
  1577. /* TX, RX */
  1578. RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
  1579. };
  1580. static const unsigned int canfd0_data_b_mux[] = {
  1581. CANFD0_TX_B_MARK, CANFD0_RX_B_MARK,
  1582. };
  1583. static const unsigned int canfd1_data_pins[] = {
  1584. /* TX, RX */
  1585. RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 26),
  1586. };
  1587. static const unsigned int canfd1_data_mux[] = {
  1588. CANFD1_TX_MARK, CANFD1_RX_MARK,
  1589. };
  1590. /* - DRIF0 --------------------------------------------------------------- */
  1591. static const unsigned int drif0_ctrl_a_pins[] = {
  1592. /* CLK, SYNC */
  1593. RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
  1594. };
  1595. static const unsigned int drif0_ctrl_a_mux[] = {
  1596. RIF0_CLK_A_MARK, RIF0_SYNC_A_MARK,
  1597. };
  1598. static const unsigned int drif0_data0_a_pins[] = {
  1599. /* D0 */
  1600. RCAR_GP_PIN(6, 10),
  1601. };
  1602. static const unsigned int drif0_data0_a_mux[] = {
  1603. RIF0_D0_A_MARK,
  1604. };
  1605. static const unsigned int drif0_data1_a_pins[] = {
  1606. /* D1 */
  1607. RCAR_GP_PIN(6, 7),
  1608. };
  1609. static const unsigned int drif0_data1_a_mux[] = {
  1610. RIF0_D1_A_MARK,
  1611. };
  1612. static const unsigned int drif0_ctrl_b_pins[] = {
  1613. /* CLK, SYNC */
  1614. RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 4),
  1615. };
  1616. static const unsigned int drif0_ctrl_b_mux[] = {
  1617. RIF0_CLK_B_MARK, RIF0_SYNC_B_MARK,
  1618. };
  1619. static const unsigned int drif0_data0_b_pins[] = {
  1620. /* D0 */
  1621. RCAR_GP_PIN(5, 1),
  1622. };
  1623. static const unsigned int drif0_data0_b_mux[] = {
  1624. RIF0_D0_B_MARK,
  1625. };
  1626. static const unsigned int drif0_data1_b_pins[] = {
  1627. /* D1 */
  1628. RCAR_GP_PIN(5, 2),
  1629. };
  1630. static const unsigned int drif0_data1_b_mux[] = {
  1631. RIF0_D1_B_MARK,
  1632. };
  1633. static const unsigned int drif0_ctrl_c_pins[] = {
  1634. /* CLK, SYNC */
  1635. RCAR_GP_PIN(5, 12), RCAR_GP_PIN(5, 15),
  1636. };
  1637. static const unsigned int drif0_ctrl_c_mux[] = {
  1638. RIF0_CLK_C_MARK, RIF0_SYNC_C_MARK,
  1639. };
  1640. static const unsigned int drif0_data0_c_pins[] = {
  1641. /* D0 */
  1642. RCAR_GP_PIN(5, 13),
  1643. };
  1644. static const unsigned int drif0_data0_c_mux[] = {
  1645. RIF0_D0_C_MARK,
  1646. };
  1647. static const unsigned int drif0_data1_c_pins[] = {
  1648. /* D1 */
  1649. RCAR_GP_PIN(5, 14),
  1650. };
  1651. static const unsigned int drif0_data1_c_mux[] = {
  1652. RIF0_D1_C_MARK,
  1653. };
  1654. /* - DRIF1 --------------------------------------------------------------- */
  1655. static const unsigned int drif1_ctrl_a_pins[] = {
  1656. /* CLK, SYNC */
  1657. RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 18),
  1658. };
  1659. static const unsigned int drif1_ctrl_a_mux[] = {
  1660. RIF1_CLK_A_MARK, RIF1_SYNC_A_MARK,
  1661. };
  1662. static const unsigned int drif1_data0_a_pins[] = {
  1663. /* D0 */
  1664. RCAR_GP_PIN(6, 19),
  1665. };
  1666. static const unsigned int drif1_data0_a_mux[] = {
  1667. RIF1_D0_A_MARK,
  1668. };
  1669. static const unsigned int drif1_data1_a_pins[] = {
  1670. /* D1 */
  1671. RCAR_GP_PIN(6, 20),
  1672. };
  1673. static const unsigned int drif1_data1_a_mux[] = {
  1674. RIF1_D1_A_MARK,
  1675. };
  1676. static const unsigned int drif1_ctrl_b_pins[] = {
  1677. /* CLK, SYNC */
  1678. RCAR_GP_PIN(5, 9), RCAR_GP_PIN(5, 3),
  1679. };
  1680. static const unsigned int drif1_ctrl_b_mux[] = {
  1681. RIF1_CLK_B_MARK, RIF1_SYNC_B_MARK,
  1682. };
  1683. static const unsigned int drif1_data0_b_pins[] = {
  1684. /* D0 */
  1685. RCAR_GP_PIN(5, 7),
  1686. };
  1687. static const unsigned int drif1_data0_b_mux[] = {
  1688. RIF1_D0_B_MARK,
  1689. };
  1690. static const unsigned int drif1_data1_b_pins[] = {
  1691. /* D1 */
  1692. RCAR_GP_PIN(5, 8),
  1693. };
  1694. static const unsigned int drif1_data1_b_mux[] = {
  1695. RIF1_D1_B_MARK,
  1696. };
  1697. static const unsigned int drif1_ctrl_c_pins[] = {
  1698. /* CLK, SYNC */
  1699. RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 11),
  1700. };
  1701. static const unsigned int drif1_ctrl_c_mux[] = {
  1702. RIF1_CLK_C_MARK, RIF1_SYNC_C_MARK,
  1703. };
  1704. static const unsigned int drif1_data0_c_pins[] = {
  1705. /* D0 */
  1706. RCAR_GP_PIN(5, 6),
  1707. };
  1708. static const unsigned int drif1_data0_c_mux[] = {
  1709. RIF1_D0_C_MARK,
  1710. };
  1711. static const unsigned int drif1_data1_c_pins[] = {
  1712. /* D1 */
  1713. RCAR_GP_PIN(5, 10),
  1714. };
  1715. static const unsigned int drif1_data1_c_mux[] = {
  1716. RIF1_D1_C_MARK,
  1717. };
  1718. /* - DRIF2 --------------------------------------------------------------- */
  1719. static const unsigned int drif2_ctrl_a_pins[] = {
  1720. /* CLK, SYNC */
  1721. RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
  1722. };
  1723. static const unsigned int drif2_ctrl_a_mux[] = {
  1724. RIF2_CLK_A_MARK, RIF2_SYNC_A_MARK,
  1725. };
  1726. static const unsigned int drif2_data0_a_pins[] = {
  1727. /* D0 */
  1728. RCAR_GP_PIN(6, 7),
  1729. };
  1730. static const unsigned int drif2_data0_a_mux[] = {
  1731. RIF2_D0_A_MARK,
  1732. };
  1733. static const unsigned int drif2_data1_a_pins[] = {
  1734. /* D1 */
  1735. RCAR_GP_PIN(6, 10),
  1736. };
  1737. static const unsigned int drif2_data1_a_mux[] = {
  1738. RIF2_D1_A_MARK,
  1739. };
  1740. static const unsigned int drif2_ctrl_b_pins[] = {
  1741. /* CLK, SYNC */
  1742. RCAR_GP_PIN(6, 26), RCAR_GP_PIN(6, 27),
  1743. };
  1744. static const unsigned int drif2_ctrl_b_mux[] = {
  1745. RIF2_CLK_B_MARK, RIF2_SYNC_B_MARK,
  1746. };
  1747. static const unsigned int drif2_data0_b_pins[] = {
  1748. /* D0 */
  1749. RCAR_GP_PIN(6, 30),
  1750. };
  1751. static const unsigned int drif2_data0_b_mux[] = {
  1752. RIF2_D0_B_MARK,
  1753. };
  1754. static const unsigned int drif2_data1_b_pins[] = {
  1755. /* D1 */
  1756. RCAR_GP_PIN(6, 31),
  1757. };
  1758. static const unsigned int drif2_data1_b_mux[] = {
  1759. RIF2_D1_B_MARK,
  1760. };
  1761. /* - DRIF3 --------------------------------------------------------------- */
  1762. static const unsigned int drif3_ctrl_a_pins[] = {
  1763. /* CLK, SYNC */
  1764. RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 18),
  1765. };
  1766. static const unsigned int drif3_ctrl_a_mux[] = {
  1767. RIF3_CLK_A_MARK, RIF3_SYNC_A_MARK,
  1768. };
  1769. static const unsigned int drif3_data0_a_pins[] = {
  1770. /* D0 */
  1771. RCAR_GP_PIN(6, 19),
  1772. };
  1773. static const unsigned int drif3_data0_a_mux[] = {
  1774. RIF3_D0_A_MARK,
  1775. };
  1776. static const unsigned int drif3_data1_a_pins[] = {
  1777. /* D1 */
  1778. RCAR_GP_PIN(6, 20),
  1779. };
  1780. static const unsigned int drif3_data1_a_mux[] = {
  1781. RIF3_D1_A_MARK,
  1782. };
  1783. static const unsigned int drif3_ctrl_b_pins[] = {
  1784. /* CLK, SYNC */
  1785. RCAR_GP_PIN(6, 24), RCAR_GP_PIN(6, 25),
  1786. };
  1787. static const unsigned int drif3_ctrl_b_mux[] = {
  1788. RIF3_CLK_B_MARK, RIF3_SYNC_B_MARK,
  1789. };
  1790. static const unsigned int drif3_data0_b_pins[] = {
  1791. /* D0 */
  1792. RCAR_GP_PIN(6, 28),
  1793. };
  1794. static const unsigned int drif3_data0_b_mux[] = {
  1795. RIF3_D0_B_MARK,
  1796. };
  1797. static const unsigned int drif3_data1_b_pins[] = {
  1798. /* D1 */
  1799. RCAR_GP_PIN(6, 29),
  1800. };
  1801. static const unsigned int drif3_data1_b_mux[] = {
  1802. RIF3_D1_B_MARK,
  1803. };
  1804. /* - DU --------------------------------------------------------------------- */
  1805. static const unsigned int du_rgb666_pins[] = {
  1806. /* R[7:2], G[7:2], B[7:2] */
  1807. RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 13),
  1808. RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 10),
  1809. RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
  1810. RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
  1811. RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 5),
  1812. RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 2),
  1813. };
  1814. static const unsigned int du_rgb666_mux[] = {
  1815. DU_DR7_MARK, DU_DR6_MARK, DU_DR5_MARK, DU_DR4_MARK,
  1816. DU_DR3_MARK, DU_DR2_MARK,
  1817. DU_DG7_MARK, DU_DG6_MARK, DU_DG5_MARK, DU_DG4_MARK,
  1818. DU_DG3_MARK, DU_DG2_MARK,
  1819. DU_DB7_MARK, DU_DB6_MARK, DU_DB5_MARK, DU_DB4_MARK,
  1820. DU_DB3_MARK, DU_DB2_MARK,
  1821. };
  1822. static const unsigned int du_rgb888_pins[] = {
  1823. /* R[7:0], G[7:0], B[7:0] */
  1824. RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 13),
  1825. RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 10),
  1826. RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 8),
  1827. RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
  1828. RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
  1829. RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16),
  1830. RCAR_GP_PIN(1, 7), RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 5),
  1831. RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 2),
  1832. RCAR_GP_PIN(1, 1), RCAR_GP_PIN(1, 0),
  1833. };
  1834. static const unsigned int du_rgb888_mux[] = {
  1835. DU_DR7_MARK, DU_DR6_MARK, DU_DR5_MARK, DU_DR4_MARK,
  1836. DU_DR3_MARK, DU_DR2_MARK, DU_DR1_MARK, DU_DR0_MARK,
  1837. DU_DG7_MARK, DU_DG6_MARK, DU_DG5_MARK, DU_DG4_MARK,
  1838. DU_DG3_MARK, DU_DG2_MARK, DU_DG1_MARK, DU_DG0_MARK,
  1839. DU_DB7_MARK, DU_DB6_MARK, DU_DB5_MARK, DU_DB4_MARK,
  1840. DU_DB3_MARK, DU_DB2_MARK, DU_DB1_MARK, DU_DB0_MARK,
  1841. };
  1842. static const unsigned int du_clk_out_0_pins[] = {
  1843. /* CLKOUT */
  1844. RCAR_GP_PIN(1, 27),
  1845. };
  1846. static const unsigned int du_clk_out_0_mux[] = {
  1847. DU_DOTCLKOUT0_MARK
  1848. };
  1849. static const unsigned int du_clk_out_1_pins[] = {
  1850. /* CLKOUT */
  1851. RCAR_GP_PIN(2, 3),
  1852. };
  1853. static const unsigned int du_clk_out_1_mux[] = {
  1854. DU_DOTCLKOUT1_MARK
  1855. };
  1856. static const unsigned int du_sync_pins[] = {
  1857. /* EXVSYNC/VSYNC, EXHSYNC/HSYNC */
  1858. RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 4),
  1859. };
  1860. static const unsigned int du_sync_mux[] = {
  1861. DU_EXVSYNC_DU_VSYNC_MARK, DU_EXHSYNC_DU_HSYNC_MARK
  1862. };
  1863. static const unsigned int du_oddf_pins[] = {
  1864. /* EXDISP/EXODDF/EXCDE */
  1865. RCAR_GP_PIN(2, 2),
  1866. };
  1867. static const unsigned int du_oddf_mux[] = {
  1868. DU_EXODDF_DU_ODDF_DISP_CDE_MARK,
  1869. };
  1870. static const unsigned int du_cde_pins[] = {
  1871. /* CDE */
  1872. RCAR_GP_PIN(2, 0),
  1873. };
  1874. static const unsigned int du_cde_mux[] = {
  1875. DU_CDE_MARK,
  1876. };
  1877. static const unsigned int du_disp_pins[] = {
  1878. /* DISP */
  1879. RCAR_GP_PIN(2, 1),
  1880. };
  1881. static const unsigned int du_disp_mux[] = {
  1882. DU_DISP_MARK,
  1883. };
  1884. /* - HSCIF0 ----------------------------------------------------------------- */
  1885. static const unsigned int hscif0_data_pins[] = {
  1886. /* RX, TX */
  1887. RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 14),
  1888. };
  1889. static const unsigned int hscif0_data_mux[] = {
  1890. HRX0_MARK, HTX0_MARK,
  1891. };
  1892. static const unsigned int hscif0_clk_pins[] = {
  1893. /* SCK */
  1894. RCAR_GP_PIN(5, 12),
  1895. };
  1896. static const unsigned int hscif0_clk_mux[] = {
  1897. HSCK0_MARK,
  1898. };
  1899. static const unsigned int hscif0_ctrl_pins[] = {
  1900. /* RTS, CTS */
  1901. RCAR_GP_PIN(5, 16), RCAR_GP_PIN(5, 15),
  1902. };
  1903. static const unsigned int hscif0_ctrl_mux[] = {
  1904. HRTS0_N_MARK, HCTS0_N_MARK,
  1905. };
  1906. /* - HSCIF1 ----------------------------------------------------------------- */
  1907. static const unsigned int hscif1_data_a_pins[] = {
  1908. /* RX, TX */
  1909. RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
  1910. };
  1911. static const unsigned int hscif1_data_a_mux[] = {
  1912. HRX1_A_MARK, HTX1_A_MARK,
  1913. };
  1914. static const unsigned int hscif1_clk_a_pins[] = {
  1915. /* SCK */
  1916. RCAR_GP_PIN(6, 21),
  1917. };
  1918. static const unsigned int hscif1_clk_a_mux[] = {
  1919. HSCK1_A_MARK,
  1920. };
  1921. static const unsigned int hscif1_ctrl_a_pins[] = {
  1922. /* RTS, CTS */
  1923. RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 7),
  1924. };
  1925. static const unsigned int hscif1_ctrl_a_mux[] = {
  1926. HRTS1_N_A_MARK, HCTS1_N_A_MARK,
  1927. };
  1928. static const unsigned int hscif1_data_b_pins[] = {
  1929. /* RX, TX */
  1930. RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
  1931. };
  1932. static const unsigned int hscif1_data_b_mux[] = {
  1933. HRX1_B_MARK, HTX1_B_MARK,
  1934. };
  1935. static const unsigned int hscif1_clk_b_pins[] = {
  1936. /* SCK */
  1937. RCAR_GP_PIN(5, 0),
  1938. };
  1939. static const unsigned int hscif1_clk_b_mux[] = {
  1940. HSCK1_B_MARK,
  1941. };
  1942. static const unsigned int hscif1_ctrl_b_pins[] = {
  1943. /* RTS, CTS */
  1944. RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 3),
  1945. };
  1946. static const unsigned int hscif1_ctrl_b_mux[] = {
  1947. HRTS1_N_B_MARK, HCTS1_N_B_MARK,
  1948. };
  1949. /* - HSCIF2 ----------------------------------------------------------------- */
  1950. static const unsigned int hscif2_data_a_pins[] = {
  1951. /* RX, TX */
  1952. RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
  1953. };
  1954. static const unsigned int hscif2_data_a_mux[] = {
  1955. HRX2_A_MARK, HTX2_A_MARK,
  1956. };
  1957. static const unsigned int hscif2_clk_a_pins[] = {
  1958. /* SCK */
  1959. RCAR_GP_PIN(6, 10),
  1960. };
  1961. static const unsigned int hscif2_clk_a_mux[] = {
  1962. HSCK2_A_MARK,
  1963. };
  1964. static const unsigned int hscif2_ctrl_a_pins[] = {
  1965. /* RTS, CTS */
  1966. RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
  1967. };
  1968. static const unsigned int hscif2_ctrl_a_mux[] = {
  1969. HRTS2_N_A_MARK, HCTS2_N_A_MARK,
  1970. };
  1971. static const unsigned int hscif2_data_b_pins[] = {
  1972. /* RX, TX */
  1973. RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 18),
  1974. };
  1975. static const unsigned int hscif2_data_b_mux[] = {
  1976. HRX2_B_MARK, HTX2_B_MARK,
  1977. };
  1978. static const unsigned int hscif2_clk_b_pins[] = {
  1979. /* SCK */
  1980. RCAR_GP_PIN(6, 21),
  1981. };
  1982. static const unsigned int hscif2_clk_b_mux[] = {
  1983. HSCK1_B_MARK,
  1984. };
  1985. static const unsigned int hscif2_ctrl_b_pins[] = {
  1986. /* RTS, CTS */
  1987. RCAR_GP_PIN(6, 20), RCAR_GP_PIN(6, 19),
  1988. };
  1989. static const unsigned int hscif2_ctrl_b_mux[] = {
  1990. HRTS2_N_B_MARK, HCTS2_N_B_MARK,
  1991. };
  1992. /* - HSCIF3 ----------------------------------------------------------------- */
  1993. static const unsigned int hscif3_data_a_pins[] = {
  1994. /* RX, TX */
  1995. RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 24),
  1996. };
  1997. static const unsigned int hscif3_data_a_mux[] = {
  1998. HRX3_A_MARK, HTX3_A_MARK,
  1999. };
  2000. static const unsigned int hscif3_clk_pins[] = {
  2001. /* SCK */
  2002. RCAR_GP_PIN(1, 22),
  2003. };
  2004. static const unsigned int hscif3_clk_mux[] = {
  2005. HSCK3_MARK,
  2006. };
  2007. static const unsigned int hscif3_ctrl_pins[] = {
  2008. /* RTS, CTS */
  2009. RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 25),
  2010. };
  2011. static const unsigned int hscif3_ctrl_mux[] = {
  2012. HRTS3_N_MARK, HCTS3_N_MARK,
  2013. };
  2014. static const unsigned int hscif3_data_b_pins[] = {
  2015. /* RX, TX */
  2016. RCAR_GP_PIN(0, 10), RCAR_GP_PIN(0, 11),
  2017. };
  2018. static const unsigned int hscif3_data_b_mux[] = {
  2019. HRX3_B_MARK, HTX3_B_MARK,
  2020. };
  2021. static const unsigned int hscif3_data_c_pins[] = {
  2022. /* RX, TX */
  2023. RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 15),
  2024. };
  2025. static const unsigned int hscif3_data_c_mux[] = {
  2026. HRX3_C_MARK, HTX3_C_MARK,
  2027. };
  2028. static const unsigned int hscif3_data_d_pins[] = {
  2029. /* RX, TX */
  2030. RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8),
  2031. };
  2032. static const unsigned int hscif3_data_d_mux[] = {
  2033. HRX3_D_MARK, HTX3_D_MARK,
  2034. };
  2035. /* - HSCIF4 ----------------------------------------------------------------- */
  2036. static const unsigned int hscif4_data_a_pins[] = {
  2037. /* RX, TX */
  2038. RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 13),
  2039. };
  2040. static const unsigned int hscif4_data_a_mux[] = {
  2041. HRX4_A_MARK, HTX4_A_MARK,
  2042. };
  2043. static const unsigned int hscif4_clk_pins[] = {
  2044. /* SCK */
  2045. RCAR_GP_PIN(1, 11),
  2046. };
  2047. static const unsigned int hscif4_clk_mux[] = {
  2048. HSCK4_MARK,
  2049. };
  2050. static const unsigned int hscif4_ctrl_pins[] = {
  2051. /* RTS, CTS */
  2052. RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14),
  2053. };
  2054. static const unsigned int hscif4_ctrl_mux[] = {
  2055. HRTS4_N_MARK, HCTS3_N_MARK,
  2056. };
  2057. static const unsigned int hscif4_data_b_pins[] = {
  2058. /* RX, TX */
  2059. RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
  2060. };
  2061. static const unsigned int hscif4_data_b_mux[] = {
  2062. HRX4_B_MARK, HTX4_B_MARK,
  2063. };
  2064. /* - I2C -------------------------------------------------------------------- */
  2065. static const unsigned int i2c1_a_pins[] = {
  2066. /* SDA, SCL */
  2067. RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 10),
  2068. };
  2069. static const unsigned int i2c1_a_mux[] = {
  2070. SDA1_A_MARK, SCL1_A_MARK,
  2071. };
  2072. static const unsigned int i2c1_b_pins[] = {
  2073. /* SDA, SCL */
  2074. RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 23),
  2075. };
  2076. static const unsigned int i2c1_b_mux[] = {
  2077. SDA1_B_MARK, SCL1_B_MARK,
  2078. };
  2079. static const unsigned int i2c2_a_pins[] = {
  2080. /* SDA, SCL */
  2081. RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 4),
  2082. };
  2083. static const unsigned int i2c2_a_mux[] = {
  2084. SDA2_A_MARK, SCL2_A_MARK,
  2085. };
  2086. static const unsigned int i2c2_b_pins[] = {
  2087. /* SDA, SCL */
  2088. RCAR_GP_PIN(3, 13), RCAR_GP_PIN(3, 12),
  2089. };
  2090. static const unsigned int i2c2_b_mux[] = {
  2091. SDA2_B_MARK, SCL2_B_MARK,
  2092. };
  2093. static const unsigned int i2c6_a_pins[] = {
  2094. /* SDA, SCL */
  2095. RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
  2096. };
  2097. static const unsigned int i2c6_a_mux[] = {
  2098. SDA6_A_MARK, SCL6_A_MARK,
  2099. };
  2100. static const unsigned int i2c6_b_pins[] = {
  2101. /* SDA, SCL */
  2102. RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 25),
  2103. };
  2104. static const unsigned int i2c6_b_mux[] = {
  2105. SDA6_B_MARK, SCL6_B_MARK,
  2106. };
  2107. static const unsigned int i2c6_c_pins[] = {
  2108. /* SDA, SCL */
  2109. RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14),
  2110. };
  2111. static const unsigned int i2c6_c_mux[] = {
  2112. SDA6_C_MARK, SCL6_C_MARK,
  2113. };
  2114. /* - INTC-EX ---------------------------------------------------------------- */
  2115. static const unsigned int intc_ex_irq0_pins[] = {
  2116. /* IRQ0 */
  2117. RCAR_GP_PIN(2, 0),
  2118. };
  2119. static const unsigned int intc_ex_irq0_mux[] = {
  2120. IRQ0_MARK,
  2121. };
  2122. static const unsigned int intc_ex_irq1_pins[] = {
  2123. /* IRQ1 */
  2124. RCAR_GP_PIN(2, 1),
  2125. };
  2126. static const unsigned int intc_ex_irq1_mux[] = {
  2127. IRQ1_MARK,
  2128. };
  2129. static const unsigned int intc_ex_irq2_pins[] = {
  2130. /* IRQ2 */
  2131. RCAR_GP_PIN(2, 2),
  2132. };
  2133. static const unsigned int intc_ex_irq2_mux[] = {
  2134. IRQ2_MARK,
  2135. };
  2136. static const unsigned int intc_ex_irq3_pins[] = {
  2137. /* IRQ3 */
  2138. RCAR_GP_PIN(2, 3),
  2139. };
  2140. static const unsigned int intc_ex_irq3_mux[] = {
  2141. IRQ3_MARK,
  2142. };
  2143. static const unsigned int intc_ex_irq4_pins[] = {
  2144. /* IRQ4 */
  2145. RCAR_GP_PIN(2, 4),
  2146. };
  2147. static const unsigned int intc_ex_irq4_mux[] = {
  2148. IRQ4_MARK,
  2149. };
  2150. static const unsigned int intc_ex_irq5_pins[] = {
  2151. /* IRQ5 */
  2152. RCAR_GP_PIN(2, 5),
  2153. };
  2154. static const unsigned int intc_ex_irq5_mux[] = {
  2155. IRQ5_MARK,
  2156. };
  2157. /* - MSIOF0 ----------------------------------------------------------------- */
  2158. static const unsigned int msiof0_clk_pins[] = {
  2159. /* SCK */
  2160. RCAR_GP_PIN(5, 17),
  2161. };
  2162. static const unsigned int msiof0_clk_mux[] = {
  2163. MSIOF0_SCK_MARK,
  2164. };
  2165. static const unsigned int msiof0_sync_pins[] = {
  2166. /* SYNC */
  2167. RCAR_GP_PIN(5, 18),
  2168. };
  2169. static const unsigned int msiof0_sync_mux[] = {
  2170. MSIOF0_SYNC_MARK,
  2171. };
  2172. static const unsigned int msiof0_ss1_pins[] = {
  2173. /* SS1 */
  2174. RCAR_GP_PIN(5, 19),
  2175. };
  2176. static const unsigned int msiof0_ss1_mux[] = {
  2177. MSIOF0_SS1_MARK,
  2178. };
  2179. static const unsigned int msiof0_ss2_pins[] = {
  2180. /* SS2 */
  2181. RCAR_GP_PIN(5, 21),
  2182. };
  2183. static const unsigned int msiof0_ss2_mux[] = {
  2184. MSIOF0_SS2_MARK,
  2185. };
  2186. static const unsigned int msiof0_txd_pins[] = {
  2187. /* TXD */
  2188. RCAR_GP_PIN(5, 20),
  2189. };
  2190. static const unsigned int msiof0_txd_mux[] = {
  2191. MSIOF0_TXD_MARK,
  2192. };
  2193. static const unsigned int msiof0_rxd_pins[] = {
  2194. /* RXD */
  2195. RCAR_GP_PIN(5, 22),
  2196. };
  2197. static const unsigned int msiof0_rxd_mux[] = {
  2198. MSIOF0_RXD_MARK,
  2199. };
  2200. /* - MSIOF1 ----------------------------------------------------------------- */
  2201. static const unsigned int msiof1_clk_a_pins[] = {
  2202. /* SCK */
  2203. RCAR_GP_PIN(6, 8),
  2204. };
  2205. static const unsigned int msiof1_clk_a_mux[] = {
  2206. MSIOF1_SCK_A_MARK,
  2207. };
  2208. static const unsigned int msiof1_sync_a_pins[] = {
  2209. /* SYNC */
  2210. RCAR_GP_PIN(6, 9),
  2211. };
  2212. static const unsigned int msiof1_sync_a_mux[] = {
  2213. MSIOF1_SYNC_A_MARK,
  2214. };
  2215. static const unsigned int msiof1_ss1_a_pins[] = {
  2216. /* SS1 */
  2217. RCAR_GP_PIN(6, 5),
  2218. };
  2219. static const unsigned int msiof1_ss1_a_mux[] = {
  2220. MSIOF1_SS1_A_MARK,
  2221. };
  2222. static const unsigned int msiof1_ss2_a_pins[] = {
  2223. /* SS2 */
  2224. RCAR_GP_PIN(6, 6),
  2225. };
  2226. static const unsigned int msiof1_ss2_a_mux[] = {
  2227. MSIOF1_SS2_A_MARK,
  2228. };
  2229. static const unsigned int msiof1_txd_a_pins[] = {
  2230. /* TXD */
  2231. RCAR_GP_PIN(6, 7),
  2232. };
  2233. static const unsigned int msiof1_txd_a_mux[] = {
  2234. MSIOF1_TXD_A_MARK,
  2235. };
  2236. static const unsigned int msiof1_rxd_a_pins[] = {
  2237. /* RXD */
  2238. RCAR_GP_PIN(6, 10),
  2239. };
  2240. static const unsigned int msiof1_rxd_a_mux[] = {
  2241. MSIOF1_RXD_A_MARK,
  2242. };
  2243. static const unsigned int msiof1_clk_b_pins[] = {
  2244. /* SCK */
  2245. RCAR_GP_PIN(5, 9),
  2246. };
  2247. static const unsigned int msiof1_clk_b_mux[] = {
  2248. MSIOF1_SCK_B_MARK,
  2249. };
  2250. static const unsigned int msiof1_sync_b_pins[] = {
  2251. /* SYNC */
  2252. RCAR_GP_PIN(5, 3),
  2253. };
  2254. static const unsigned int msiof1_sync_b_mux[] = {
  2255. MSIOF1_SYNC_B_MARK,
  2256. };
  2257. static const unsigned int msiof1_ss1_b_pins[] = {
  2258. /* SS1 */
  2259. RCAR_GP_PIN(5, 4),
  2260. };
  2261. static const unsigned int msiof1_ss1_b_mux[] = {
  2262. MSIOF1_SS1_B_MARK,
  2263. };
  2264. static const unsigned int msiof1_ss2_b_pins[] = {
  2265. /* SS2 */
  2266. RCAR_GP_PIN(5, 0),
  2267. };
  2268. static const unsigned int msiof1_ss2_b_mux[] = {
  2269. MSIOF1_SS2_B_MARK,
  2270. };
  2271. static const unsigned int msiof1_txd_b_pins[] = {
  2272. /* TXD */
  2273. RCAR_GP_PIN(5, 8),
  2274. };
  2275. static const unsigned int msiof1_txd_b_mux[] = {
  2276. MSIOF1_TXD_B_MARK,
  2277. };
  2278. static const unsigned int msiof1_rxd_b_pins[] = {
  2279. /* RXD */
  2280. RCAR_GP_PIN(5, 7),
  2281. };
  2282. static const unsigned int msiof1_rxd_b_mux[] = {
  2283. MSIOF1_RXD_B_MARK,
  2284. };
  2285. static const unsigned int msiof1_clk_c_pins[] = {
  2286. /* SCK */
  2287. RCAR_GP_PIN(6, 17),
  2288. };
  2289. static const unsigned int msiof1_clk_c_mux[] = {
  2290. MSIOF1_SCK_C_MARK,
  2291. };
  2292. static const unsigned int msiof1_sync_c_pins[] = {
  2293. /* SYNC */
  2294. RCAR_GP_PIN(6, 18),
  2295. };
  2296. static const unsigned int msiof1_sync_c_mux[] = {
  2297. MSIOF1_SYNC_C_MARK,
  2298. };
  2299. static const unsigned int msiof1_ss1_c_pins[] = {
  2300. /* SS1 */
  2301. RCAR_GP_PIN(6, 21),
  2302. };
  2303. static const unsigned int msiof1_ss1_c_mux[] = {
  2304. MSIOF1_SS1_C_MARK,
  2305. };
  2306. static const unsigned int msiof1_ss2_c_pins[] = {
  2307. /* SS2 */
  2308. RCAR_GP_PIN(6, 27),
  2309. };
  2310. static const unsigned int msiof1_ss2_c_mux[] = {
  2311. MSIOF1_SS2_C_MARK,
  2312. };
  2313. static const unsigned int msiof1_txd_c_pins[] = {
  2314. /* TXD */
  2315. RCAR_GP_PIN(6, 20),
  2316. };
  2317. static const unsigned int msiof1_txd_c_mux[] = {
  2318. MSIOF1_TXD_C_MARK,
  2319. };
  2320. static const unsigned int msiof1_rxd_c_pins[] = {
  2321. /* RXD */
  2322. RCAR_GP_PIN(6, 19),
  2323. };
  2324. static const unsigned int msiof1_rxd_c_mux[] = {
  2325. MSIOF1_RXD_C_MARK,
  2326. };
  2327. static const unsigned int msiof1_clk_d_pins[] = {
  2328. /* SCK */
  2329. RCAR_GP_PIN(5, 12),
  2330. };
  2331. static const unsigned int msiof1_clk_d_mux[] = {
  2332. MSIOF1_SCK_D_MARK,
  2333. };
  2334. static const unsigned int msiof1_sync_d_pins[] = {
  2335. /* SYNC */
  2336. RCAR_GP_PIN(5, 15),
  2337. };
  2338. static const unsigned int msiof1_sync_d_mux[] = {
  2339. MSIOF1_SYNC_D_MARK,
  2340. };
  2341. static const unsigned int msiof1_ss1_d_pins[] = {
  2342. /* SS1 */
  2343. RCAR_GP_PIN(5, 16),
  2344. };
  2345. static const unsigned int msiof1_ss1_d_mux[] = {
  2346. MSIOF1_SS1_D_MARK,
  2347. };
  2348. static const unsigned int msiof1_ss2_d_pins[] = {
  2349. /* SS2 */
  2350. RCAR_GP_PIN(5, 21),
  2351. };
  2352. static const unsigned int msiof1_ss2_d_mux[] = {
  2353. MSIOF1_SS2_D_MARK,
  2354. };
  2355. static const unsigned int msiof1_txd_d_pins[] = {
  2356. /* TXD */
  2357. RCAR_GP_PIN(5, 14),
  2358. };
  2359. static const unsigned int msiof1_txd_d_mux[] = {
  2360. MSIOF1_TXD_D_MARK,
  2361. };
  2362. static const unsigned int msiof1_rxd_d_pins[] = {
  2363. /* RXD */
  2364. RCAR_GP_PIN(5, 13),
  2365. };
  2366. static const unsigned int msiof1_rxd_d_mux[] = {
  2367. MSIOF1_RXD_D_MARK,
  2368. };
  2369. static const unsigned int msiof1_clk_e_pins[] = {
  2370. /* SCK */
  2371. RCAR_GP_PIN(3, 0),
  2372. };
  2373. static const unsigned int msiof1_clk_e_mux[] = {
  2374. MSIOF1_SCK_E_MARK,
  2375. };
  2376. static const unsigned int msiof1_sync_e_pins[] = {
  2377. /* SYNC */
  2378. RCAR_GP_PIN(3, 1),
  2379. };
  2380. static const unsigned int msiof1_sync_e_mux[] = {
  2381. MSIOF1_SYNC_E_MARK,
  2382. };
  2383. static const unsigned int msiof1_ss1_e_pins[] = {
  2384. /* SS1 */
  2385. RCAR_GP_PIN(3, 4),
  2386. };
  2387. static const unsigned int msiof1_ss1_e_mux[] = {
  2388. MSIOF1_SS1_E_MARK,
  2389. };
  2390. static const unsigned int msiof1_ss2_e_pins[] = {
  2391. /* SS2 */
  2392. RCAR_GP_PIN(3, 5),
  2393. };
  2394. static const unsigned int msiof1_ss2_e_mux[] = {
  2395. MSIOF1_SS2_E_MARK,
  2396. };
  2397. static const unsigned int msiof1_txd_e_pins[] = {
  2398. /* TXD */
  2399. RCAR_GP_PIN(3, 3),
  2400. };
  2401. static const unsigned int msiof1_txd_e_mux[] = {
  2402. MSIOF1_TXD_E_MARK,
  2403. };
  2404. static const unsigned int msiof1_rxd_e_pins[] = {
  2405. /* RXD */
  2406. RCAR_GP_PIN(3, 2),
  2407. };
  2408. static const unsigned int msiof1_rxd_e_mux[] = {
  2409. MSIOF1_RXD_E_MARK,
  2410. };
  2411. static const unsigned int msiof1_clk_f_pins[] = {
  2412. /* SCK */
  2413. RCAR_GP_PIN(5, 23),
  2414. };
  2415. static const unsigned int msiof1_clk_f_mux[] = {
  2416. MSIOF1_SCK_F_MARK,
  2417. };
  2418. static const unsigned int msiof1_sync_f_pins[] = {
  2419. /* SYNC */
  2420. RCAR_GP_PIN(5, 24),
  2421. };
  2422. static const unsigned int msiof1_sync_f_mux[] = {
  2423. MSIOF1_SYNC_F_MARK,
  2424. };
  2425. static const unsigned int msiof1_ss1_f_pins[] = {
  2426. /* SS1 */
  2427. RCAR_GP_PIN(6, 1),
  2428. };
  2429. static const unsigned int msiof1_ss1_f_mux[] = {
  2430. MSIOF1_SS1_F_MARK,
  2431. };
  2432. static const unsigned int msiof1_ss2_f_pins[] = {
  2433. /* SS2 */
  2434. RCAR_GP_PIN(6, 2),
  2435. };
  2436. static const unsigned int msiof1_ss2_f_mux[] = {
  2437. MSIOF1_SS2_F_MARK,
  2438. };
  2439. static const unsigned int msiof1_txd_f_pins[] = {
  2440. /* TXD */
  2441. RCAR_GP_PIN(6, 0),
  2442. };
  2443. static const unsigned int msiof1_txd_f_mux[] = {
  2444. MSIOF1_TXD_F_MARK,
  2445. };
  2446. static const unsigned int msiof1_rxd_f_pins[] = {
  2447. /* RXD */
  2448. RCAR_GP_PIN(5, 25),
  2449. };
  2450. static const unsigned int msiof1_rxd_f_mux[] = {
  2451. MSIOF1_RXD_F_MARK,
  2452. };
  2453. static const unsigned int msiof1_clk_g_pins[] = {
  2454. /* SCK */
  2455. RCAR_GP_PIN(3, 6),
  2456. };
  2457. static const unsigned int msiof1_clk_g_mux[] = {
  2458. MSIOF1_SCK_G_MARK,
  2459. };
  2460. static const unsigned int msiof1_sync_g_pins[] = {
  2461. /* SYNC */
  2462. RCAR_GP_PIN(3, 7),
  2463. };
  2464. static const unsigned int msiof1_sync_g_mux[] = {
  2465. MSIOF1_SYNC_G_MARK,
  2466. };
  2467. static const unsigned int msiof1_ss1_g_pins[] = {
  2468. /* SS1 */
  2469. RCAR_GP_PIN(3, 10),
  2470. };
  2471. static const unsigned int msiof1_ss1_g_mux[] = {
  2472. MSIOF1_SS1_G_MARK,
  2473. };
  2474. static const unsigned int msiof1_ss2_g_pins[] = {
  2475. /* SS2 */
  2476. RCAR_GP_PIN(3, 11),
  2477. };
  2478. static const unsigned int msiof1_ss2_g_mux[] = {
  2479. MSIOF1_SS2_G_MARK,
  2480. };
  2481. static const unsigned int msiof1_txd_g_pins[] = {
  2482. /* TXD */
  2483. RCAR_GP_PIN(3, 9),
  2484. };
  2485. static const unsigned int msiof1_txd_g_mux[] = {
  2486. MSIOF1_TXD_G_MARK,
  2487. };
  2488. static const unsigned int msiof1_rxd_g_pins[] = {
  2489. /* RXD */
  2490. RCAR_GP_PIN(3, 8),
  2491. };
  2492. static const unsigned int msiof1_rxd_g_mux[] = {
  2493. MSIOF1_RXD_G_MARK,
  2494. };
  2495. /* - MSIOF2 ----------------------------------------------------------------- */
  2496. static const unsigned int msiof2_clk_a_pins[] = {
  2497. /* SCK */
  2498. RCAR_GP_PIN(1, 9),
  2499. };
  2500. static const unsigned int msiof2_clk_a_mux[] = {
  2501. MSIOF2_SCK_A_MARK,
  2502. };
  2503. static const unsigned int msiof2_sync_a_pins[] = {
  2504. /* SYNC */
  2505. RCAR_GP_PIN(1, 8),
  2506. };
  2507. static const unsigned int msiof2_sync_a_mux[] = {
  2508. MSIOF2_SYNC_A_MARK,
  2509. };
  2510. static const unsigned int msiof2_ss1_a_pins[] = {
  2511. /* SS1 */
  2512. RCAR_GP_PIN(1, 6),
  2513. };
  2514. static const unsigned int msiof2_ss1_a_mux[] = {
  2515. MSIOF2_SS1_A_MARK,
  2516. };
  2517. static const unsigned int msiof2_ss2_a_pins[] = {
  2518. /* SS2 */
  2519. RCAR_GP_PIN(1, 7),
  2520. };
  2521. static const unsigned int msiof2_ss2_a_mux[] = {
  2522. MSIOF2_SS2_A_MARK,
  2523. };
  2524. static const unsigned int msiof2_txd_a_pins[] = {
  2525. /* TXD */
  2526. RCAR_GP_PIN(1, 11),
  2527. };
  2528. static const unsigned int msiof2_txd_a_mux[] = {
  2529. MSIOF2_TXD_A_MARK,
  2530. };
  2531. static const unsigned int msiof2_rxd_a_pins[] = {
  2532. /* RXD */
  2533. RCAR_GP_PIN(1, 10),
  2534. };
  2535. static const unsigned int msiof2_rxd_a_mux[] = {
  2536. MSIOF2_RXD_A_MARK,
  2537. };
  2538. static const unsigned int msiof2_clk_b_pins[] = {
  2539. /* SCK */
  2540. RCAR_GP_PIN(0, 4),
  2541. };
  2542. static const unsigned int msiof2_clk_b_mux[] = {
  2543. MSIOF2_SCK_B_MARK,
  2544. };
  2545. static const unsigned int msiof2_sync_b_pins[] = {
  2546. /* SYNC */
  2547. RCAR_GP_PIN(0, 5),
  2548. };
  2549. static const unsigned int msiof2_sync_b_mux[] = {
  2550. MSIOF2_SYNC_B_MARK,
  2551. };
  2552. static const unsigned int msiof2_ss1_b_pins[] = {
  2553. /* SS1 */
  2554. RCAR_GP_PIN(0, 0),
  2555. };
  2556. static const unsigned int msiof2_ss1_b_mux[] = {
  2557. MSIOF2_SS1_B_MARK,
  2558. };
  2559. static const unsigned int msiof2_ss2_b_pins[] = {
  2560. /* SS2 */
  2561. RCAR_GP_PIN(0, 1),
  2562. };
  2563. static const unsigned int msiof2_ss2_b_mux[] = {
  2564. MSIOF2_SS2_B_MARK,
  2565. };
  2566. static const unsigned int msiof2_txd_b_pins[] = {
  2567. /* TXD */
  2568. RCAR_GP_PIN(0, 7),
  2569. };
  2570. static const unsigned int msiof2_txd_b_mux[] = {
  2571. MSIOF2_TXD_B_MARK,
  2572. };
  2573. static const unsigned int msiof2_rxd_b_pins[] = {
  2574. /* RXD */
  2575. RCAR_GP_PIN(0, 6),
  2576. };
  2577. static const unsigned int msiof2_rxd_b_mux[] = {
  2578. MSIOF2_RXD_B_MARK,
  2579. };
  2580. static const unsigned int msiof2_clk_c_pins[] = {
  2581. /* SCK */
  2582. RCAR_GP_PIN(2, 12),
  2583. };
  2584. static const unsigned int msiof2_clk_c_mux[] = {
  2585. MSIOF2_SCK_C_MARK,
  2586. };
  2587. static const unsigned int msiof2_sync_c_pins[] = {
  2588. /* SYNC */
  2589. RCAR_GP_PIN(2, 11),
  2590. };
  2591. static const unsigned int msiof2_sync_c_mux[] = {
  2592. MSIOF2_SYNC_C_MARK,
  2593. };
  2594. static const unsigned int msiof2_ss1_c_pins[] = {
  2595. /* SS1 */
  2596. RCAR_GP_PIN(2, 10),
  2597. };
  2598. static const unsigned int msiof2_ss1_c_mux[] = {
  2599. MSIOF2_SS1_C_MARK,
  2600. };
  2601. static const unsigned int msiof2_ss2_c_pins[] = {
  2602. /* SS2 */
  2603. RCAR_GP_PIN(2, 9),
  2604. };
  2605. static const unsigned int msiof2_ss2_c_mux[] = {
  2606. MSIOF2_SS2_C_MARK,
  2607. };
  2608. static const unsigned int msiof2_txd_c_pins[] = {
  2609. /* TXD */
  2610. RCAR_GP_PIN(2, 14),
  2611. };
  2612. static const unsigned int msiof2_txd_c_mux[] = {
  2613. MSIOF2_TXD_C_MARK,
  2614. };
  2615. static const unsigned int msiof2_rxd_c_pins[] = {
  2616. /* RXD */
  2617. RCAR_GP_PIN(2, 13),
  2618. };
  2619. static const unsigned int msiof2_rxd_c_mux[] = {
  2620. MSIOF2_RXD_C_MARK,
  2621. };
  2622. static const unsigned int msiof2_clk_d_pins[] = {
  2623. /* SCK */
  2624. RCAR_GP_PIN(0, 8),
  2625. };
  2626. static const unsigned int msiof2_clk_d_mux[] = {
  2627. MSIOF2_SCK_D_MARK,
  2628. };
  2629. static const unsigned int msiof2_sync_d_pins[] = {
  2630. /* SYNC */
  2631. RCAR_GP_PIN(0, 9),
  2632. };
  2633. static const unsigned int msiof2_sync_d_mux[] = {
  2634. MSIOF2_SYNC_D_MARK,
  2635. };
  2636. static const unsigned int msiof2_ss1_d_pins[] = {
  2637. /* SS1 */
  2638. RCAR_GP_PIN(0, 12),
  2639. };
  2640. static const unsigned int msiof2_ss1_d_mux[] = {
  2641. MSIOF2_SS1_D_MARK,
  2642. };
  2643. static const unsigned int msiof2_ss2_d_pins[] = {
  2644. /* SS2 */
  2645. RCAR_GP_PIN(0, 13),
  2646. };
  2647. static const unsigned int msiof2_ss2_d_mux[] = {
  2648. MSIOF2_SS2_D_MARK,
  2649. };
  2650. static const unsigned int msiof2_txd_d_pins[] = {
  2651. /* TXD */
  2652. RCAR_GP_PIN(0, 11),
  2653. };
  2654. static const unsigned int msiof2_txd_d_mux[] = {
  2655. MSIOF2_TXD_D_MARK,
  2656. };
  2657. static const unsigned int msiof2_rxd_d_pins[] = {
  2658. /* RXD */
  2659. RCAR_GP_PIN(0, 10),
  2660. };
  2661. static const unsigned int msiof2_rxd_d_mux[] = {
  2662. MSIOF2_RXD_D_MARK,
  2663. };
  2664. /* - MSIOF3 ----------------------------------------------------------------- */
  2665. static const unsigned int msiof3_clk_a_pins[] = {
  2666. /* SCK */
  2667. RCAR_GP_PIN(0, 0),
  2668. };
  2669. static const unsigned int msiof3_clk_a_mux[] = {
  2670. MSIOF3_SCK_A_MARK,
  2671. };
  2672. static const unsigned int msiof3_sync_a_pins[] = {
  2673. /* SYNC */
  2674. RCAR_GP_PIN(0, 1),
  2675. };
  2676. static const unsigned int msiof3_sync_a_mux[] = {
  2677. MSIOF3_SYNC_A_MARK,
  2678. };
  2679. static const unsigned int msiof3_ss1_a_pins[] = {
  2680. /* SS1 */
  2681. RCAR_GP_PIN(0, 14),
  2682. };
  2683. static const unsigned int msiof3_ss1_a_mux[] = {
  2684. MSIOF3_SS1_A_MARK,
  2685. };
  2686. static const unsigned int msiof3_ss2_a_pins[] = {
  2687. /* SS2 */
  2688. RCAR_GP_PIN(0, 15),
  2689. };
  2690. static const unsigned int msiof3_ss2_a_mux[] = {
  2691. MSIOF3_SS2_A_MARK,
  2692. };
  2693. static const unsigned int msiof3_txd_a_pins[] = {
  2694. /* TXD */
  2695. RCAR_GP_PIN(0, 3),
  2696. };
  2697. static const unsigned int msiof3_txd_a_mux[] = {
  2698. MSIOF3_TXD_A_MARK,
  2699. };
  2700. static const unsigned int msiof3_rxd_a_pins[] = {
  2701. /* RXD */
  2702. RCAR_GP_PIN(0, 2),
  2703. };
  2704. static const unsigned int msiof3_rxd_a_mux[] = {
  2705. MSIOF3_RXD_A_MARK,
  2706. };
  2707. static const unsigned int msiof3_clk_b_pins[] = {
  2708. /* SCK */
  2709. RCAR_GP_PIN(1, 2),
  2710. };
  2711. static const unsigned int msiof3_clk_b_mux[] = {
  2712. MSIOF3_SCK_B_MARK,
  2713. };
  2714. static const unsigned int msiof3_sync_b_pins[] = {
  2715. /* SYNC */
  2716. RCAR_GP_PIN(1, 0),
  2717. };
  2718. static const unsigned int msiof3_sync_b_mux[] = {
  2719. MSIOF3_SYNC_B_MARK,
  2720. };
  2721. static const unsigned int msiof3_ss1_b_pins[] = {
  2722. /* SS1 */
  2723. RCAR_GP_PIN(1, 4),
  2724. };
  2725. static const unsigned int msiof3_ss1_b_mux[] = {
  2726. MSIOF3_SS1_B_MARK,
  2727. };
  2728. static const unsigned int msiof3_ss2_b_pins[] = {
  2729. /* SS2 */
  2730. RCAR_GP_PIN(1, 5),
  2731. };
  2732. static const unsigned int msiof3_ss2_b_mux[] = {
  2733. MSIOF3_SS2_B_MARK,
  2734. };
  2735. static const unsigned int msiof3_txd_b_pins[] = {
  2736. /* TXD */
  2737. RCAR_GP_PIN(1, 1),
  2738. };
  2739. static const unsigned int msiof3_txd_b_mux[] = {
  2740. MSIOF3_TXD_B_MARK,
  2741. };
  2742. static const unsigned int msiof3_rxd_b_pins[] = {
  2743. /* RXD */
  2744. RCAR_GP_PIN(1, 3),
  2745. };
  2746. static const unsigned int msiof3_rxd_b_mux[] = {
  2747. MSIOF3_RXD_B_MARK,
  2748. };
  2749. static const unsigned int msiof3_clk_c_pins[] = {
  2750. /* SCK */
  2751. RCAR_GP_PIN(1, 12),
  2752. };
  2753. static const unsigned int msiof3_clk_c_mux[] = {
  2754. MSIOF3_SCK_C_MARK,
  2755. };
  2756. static const unsigned int msiof3_sync_c_pins[] = {
  2757. /* SYNC */
  2758. RCAR_GP_PIN(1, 13),
  2759. };
  2760. static const unsigned int msiof3_sync_c_mux[] = {
  2761. MSIOF3_SYNC_C_MARK,
  2762. };
  2763. static const unsigned int msiof3_txd_c_pins[] = {
  2764. /* TXD */
  2765. RCAR_GP_PIN(1, 15),
  2766. };
  2767. static const unsigned int msiof3_txd_c_mux[] = {
  2768. MSIOF3_TXD_C_MARK,
  2769. };
  2770. static const unsigned int msiof3_rxd_c_pins[] = {
  2771. /* RXD */
  2772. RCAR_GP_PIN(1, 14),
  2773. };
  2774. static const unsigned int msiof3_rxd_c_mux[] = {
  2775. MSIOF3_RXD_C_MARK,
  2776. };
  2777. static const unsigned int msiof3_clk_d_pins[] = {
  2778. /* SCK */
  2779. RCAR_GP_PIN(1, 22),
  2780. };
  2781. static const unsigned int msiof3_clk_d_mux[] = {
  2782. MSIOF3_SCK_D_MARK,
  2783. };
  2784. static const unsigned int msiof3_sync_d_pins[] = {
  2785. /* SYNC */
  2786. RCAR_GP_PIN(1, 23),
  2787. };
  2788. static const unsigned int msiof3_sync_d_mux[] = {
  2789. MSIOF3_SYNC_D_MARK,
  2790. };
  2791. static const unsigned int msiof3_ss1_d_pins[] = {
  2792. /* SS1 */
  2793. RCAR_GP_PIN(1, 26),
  2794. };
  2795. static const unsigned int msiof3_ss1_d_mux[] = {
  2796. MSIOF3_SS1_D_MARK,
  2797. };
  2798. static const unsigned int msiof3_txd_d_pins[] = {
  2799. /* TXD */
  2800. RCAR_GP_PIN(1, 25),
  2801. };
  2802. static const unsigned int msiof3_txd_d_mux[] = {
  2803. MSIOF3_TXD_D_MARK,
  2804. };
  2805. static const unsigned int msiof3_rxd_d_pins[] = {
  2806. /* RXD */
  2807. RCAR_GP_PIN(1, 24),
  2808. };
  2809. static const unsigned int msiof3_rxd_d_mux[] = {
  2810. MSIOF3_RXD_D_MARK,
  2811. };
  2812. /* - PWM0 --------------------------------------------------------------------*/
  2813. static const unsigned int pwm0_pins[] = {
  2814. /* PWM */
  2815. RCAR_GP_PIN(2, 6),
  2816. };
  2817. static const unsigned int pwm0_mux[] = {
  2818. PWM0_MARK,
  2819. };
  2820. /* - PWM1 --------------------------------------------------------------------*/
  2821. static const unsigned int pwm1_a_pins[] = {
  2822. /* PWM */
  2823. RCAR_GP_PIN(2, 7),
  2824. };
  2825. static const unsigned int pwm1_a_mux[] = {
  2826. PWM1_A_MARK,
  2827. };
  2828. static const unsigned int pwm1_b_pins[] = {
  2829. /* PWM */
  2830. RCAR_GP_PIN(1, 8),
  2831. };
  2832. static const unsigned int pwm1_b_mux[] = {
  2833. PWM1_B_MARK,
  2834. };
  2835. /* - PWM2 --------------------------------------------------------------------*/
  2836. static const unsigned int pwm2_a_pins[] = {
  2837. /* PWM */
  2838. RCAR_GP_PIN(2, 8),
  2839. };
  2840. static const unsigned int pwm2_a_mux[] = {
  2841. PWM2_A_MARK,
  2842. };
  2843. static const unsigned int pwm2_b_pins[] = {
  2844. /* PWM */
  2845. RCAR_GP_PIN(1, 11),
  2846. };
  2847. static const unsigned int pwm2_b_mux[] = {
  2848. PWM2_B_MARK,
  2849. };
  2850. /* - PWM3 --------------------------------------------------------------------*/
  2851. static const unsigned int pwm3_a_pins[] = {
  2852. /* PWM */
  2853. RCAR_GP_PIN(1, 0),
  2854. };
  2855. static const unsigned int pwm3_a_mux[] = {
  2856. PWM3_A_MARK,
  2857. };
  2858. static const unsigned int pwm3_b_pins[] = {
  2859. /* PWM */
  2860. RCAR_GP_PIN(2, 2),
  2861. };
  2862. static const unsigned int pwm3_b_mux[] = {
  2863. PWM3_B_MARK,
  2864. };
  2865. /* - PWM4 --------------------------------------------------------------------*/
  2866. static const unsigned int pwm4_a_pins[] = {
  2867. /* PWM */
  2868. RCAR_GP_PIN(1, 1),
  2869. };
  2870. static const unsigned int pwm4_a_mux[] = {
  2871. PWM4_A_MARK,
  2872. };
  2873. static const unsigned int pwm4_b_pins[] = {
  2874. /* PWM */
  2875. RCAR_GP_PIN(2, 3),
  2876. };
  2877. static const unsigned int pwm4_b_mux[] = {
  2878. PWM4_B_MARK,
  2879. };
  2880. /* - PWM5 --------------------------------------------------------------------*/
  2881. static const unsigned int pwm5_a_pins[] = {
  2882. /* PWM */
  2883. RCAR_GP_PIN(1, 2),
  2884. };
  2885. static const unsigned int pwm5_a_mux[] = {
  2886. PWM5_A_MARK,
  2887. };
  2888. static const unsigned int pwm5_b_pins[] = {
  2889. /* PWM */
  2890. RCAR_GP_PIN(2, 4),
  2891. };
  2892. static const unsigned int pwm5_b_mux[] = {
  2893. PWM5_B_MARK,
  2894. };
  2895. /* - PWM6 --------------------------------------------------------------------*/
  2896. static const unsigned int pwm6_a_pins[] = {
  2897. /* PWM */
  2898. RCAR_GP_PIN(1, 3),
  2899. };
  2900. static const unsigned int pwm6_a_mux[] = {
  2901. PWM6_A_MARK,
  2902. };
  2903. static const unsigned int pwm6_b_pins[] = {
  2904. /* PWM */
  2905. RCAR_GP_PIN(2, 5),
  2906. };
  2907. static const unsigned int pwm6_b_mux[] = {
  2908. PWM6_B_MARK,
  2909. };
  2910. /* - SATA --------------------------------------------------------------------*/
  2911. static const unsigned int sata0_devslp_a_pins[] = {
  2912. /* DEVSLP */
  2913. RCAR_GP_PIN(6, 16),
  2914. };
  2915. static const unsigned int sata0_devslp_a_mux[] = {
  2916. SATA_DEVSLP_A_MARK,
  2917. };
  2918. static const unsigned int sata0_devslp_b_pins[] = {
  2919. /* DEVSLP */
  2920. RCAR_GP_PIN(4, 6),
  2921. };
  2922. static const unsigned int sata0_devslp_b_mux[] = {
  2923. SATA_DEVSLP_B_MARK,
  2924. };
  2925. /* - SCIF0 ------------------------------------------------------------------ */
  2926. static const unsigned int scif0_data_pins[] = {
  2927. /* RX, TX */
  2928. RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
  2929. };
  2930. static const unsigned int scif0_data_mux[] = {
  2931. RX0_MARK, TX0_MARK,
  2932. };
  2933. static const unsigned int scif0_clk_pins[] = {
  2934. /* SCK */
  2935. RCAR_GP_PIN(5, 0),
  2936. };
  2937. static const unsigned int scif0_clk_mux[] = {
  2938. SCK0_MARK,
  2939. };
  2940. static const unsigned int scif0_ctrl_pins[] = {
  2941. /* RTS, CTS */
  2942. RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 3),
  2943. };
  2944. static const unsigned int scif0_ctrl_mux[] = {
  2945. RTS0_N_TANS_MARK, CTS0_N_MARK,
  2946. };
  2947. /* - SCIF1 ------------------------------------------------------------------ */
  2948. static const unsigned int scif1_data_a_pins[] = {
  2949. /* RX, TX */
  2950. RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
  2951. };
  2952. static const unsigned int scif1_data_a_mux[] = {
  2953. RX1_A_MARK, TX1_A_MARK,
  2954. };
  2955. static const unsigned int scif1_clk_pins[] = {
  2956. /* SCK */
  2957. RCAR_GP_PIN(6, 21),
  2958. };
  2959. static const unsigned int scif1_clk_mux[] = {
  2960. SCK1_MARK,
  2961. };
  2962. static const unsigned int scif1_ctrl_pins[] = {
  2963. /* RTS, CTS */
  2964. RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 7),
  2965. };
  2966. static const unsigned int scif1_ctrl_mux[] = {
  2967. RTS1_N_TANS_MARK, CTS1_N_MARK,
  2968. };
  2969. static const unsigned int scif1_data_b_pins[] = {
  2970. /* RX, TX */
  2971. RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 25),
  2972. };
  2973. static const unsigned int scif1_data_b_mux[] = {
  2974. RX1_B_MARK, TX1_B_MARK,
  2975. };
  2976. /* - SCIF2 ------------------------------------------------------------------ */
  2977. static const unsigned int scif2_data_a_pins[] = {
  2978. /* RX, TX */
  2979. RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 10),
  2980. };
  2981. static const unsigned int scif2_data_a_mux[] = {
  2982. RX2_A_MARK, TX2_A_MARK,
  2983. };
  2984. static const unsigned int scif2_clk_pins[] = {
  2985. /* SCK */
  2986. RCAR_GP_PIN(5, 9),
  2987. };
  2988. static const unsigned int scif2_clk_mux[] = {
  2989. SCK2_MARK,
  2990. };
  2991. static const unsigned int scif2_data_b_pins[] = {
  2992. /* RX, TX */
  2993. RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 16),
  2994. };
  2995. static const unsigned int scif2_data_b_mux[] = {
  2996. RX2_B_MARK, TX2_B_MARK,
  2997. };
  2998. /* - SCIF3 ------------------------------------------------------------------ */
  2999. static const unsigned int scif3_data_a_pins[] = {
  3000. /* RX, TX */
  3001. RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 24),
  3002. };
  3003. static const unsigned int scif3_data_a_mux[] = {
  3004. RX3_A_MARK, TX3_A_MARK,
  3005. };
  3006. static const unsigned int scif3_clk_pins[] = {
  3007. /* SCK */
  3008. RCAR_GP_PIN(1, 22),
  3009. };
  3010. static const unsigned int scif3_clk_mux[] = {
  3011. SCK3_MARK,
  3012. };
  3013. static const unsigned int scif3_ctrl_pins[] = {
  3014. /* RTS, CTS */
  3015. RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 25),
  3016. };
  3017. static const unsigned int scif3_ctrl_mux[] = {
  3018. RTS3_N_TANS_MARK, CTS3_N_MARK,
  3019. };
  3020. static const unsigned int scif3_data_b_pins[] = {
  3021. /* RX, TX */
  3022. RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
  3023. };
  3024. static const unsigned int scif3_data_b_mux[] = {
  3025. RX3_B_MARK, TX3_B_MARK,
  3026. };
  3027. /* - SCIF4 ------------------------------------------------------------------ */
  3028. static const unsigned int scif4_data_a_pins[] = {
  3029. /* RX, TX */
  3030. RCAR_GP_PIN(2, 11), RCAR_GP_PIN(2, 12),
  3031. };
  3032. static const unsigned int scif4_data_a_mux[] = {
  3033. RX4_A_MARK, TX4_A_MARK,
  3034. };
  3035. static const unsigned int scif4_clk_a_pins[] = {
  3036. /* SCK */
  3037. RCAR_GP_PIN(2, 10),
  3038. };
  3039. static const unsigned int scif4_clk_a_mux[] = {
  3040. SCK4_A_MARK,
  3041. };
  3042. static const unsigned int scif4_ctrl_a_pins[] = {
  3043. /* RTS, CTS */
  3044. RCAR_GP_PIN(2, 14), RCAR_GP_PIN(2, 13),
  3045. };
  3046. static const unsigned int scif4_ctrl_a_mux[] = {
  3047. RTS4_N_TANS_A_MARK, CTS4_N_A_MARK,
  3048. };
  3049. static const unsigned int scif4_data_b_pins[] = {
  3050. /* RX, TX */
  3051. RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
  3052. };
  3053. static const unsigned int scif4_data_b_mux[] = {
  3054. RX4_B_MARK, TX4_B_MARK,
  3055. };
  3056. static const unsigned int scif4_clk_b_pins[] = {
  3057. /* SCK */
  3058. RCAR_GP_PIN(1, 5),
  3059. };
  3060. static const unsigned int scif4_clk_b_mux[] = {
  3061. SCK4_B_MARK,
  3062. };
  3063. static const unsigned int scif4_ctrl_b_pins[] = {
  3064. /* RTS, CTS */
  3065. RCAR_GP_PIN(1, 10), RCAR_GP_PIN(1, 9),
  3066. };
  3067. static const unsigned int scif4_ctrl_b_mux[] = {
  3068. RTS4_N_TANS_B_MARK, CTS4_N_B_MARK,
  3069. };
  3070. static const unsigned int scif4_data_c_pins[] = {
  3071. /* RX, TX */
  3072. RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 13),
  3073. };
  3074. static const unsigned int scif4_data_c_mux[] = {
  3075. RX4_C_MARK, TX4_C_MARK,
  3076. };
  3077. static const unsigned int scif4_clk_c_pins[] = {
  3078. /* SCK */
  3079. RCAR_GP_PIN(0, 8),
  3080. };
  3081. static const unsigned int scif4_clk_c_mux[] = {
  3082. SCK4_C_MARK,
  3083. };
  3084. static const unsigned int scif4_ctrl_c_pins[] = {
  3085. /* RTS, CTS */
  3086. RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 10),
  3087. };
  3088. static const unsigned int scif4_ctrl_c_mux[] = {
  3089. RTS4_N_TANS_C_MARK, CTS4_N_C_MARK,
  3090. };
  3091. /* - SCIF5 ------------------------------------------------------------------ */
  3092. static const unsigned int scif5_data_pins[] = {
  3093. /* RX, TX */
  3094. RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 21),
  3095. };
  3096. static const unsigned int scif5_data_mux[] = {
  3097. RX5_MARK, TX5_MARK,
  3098. };
  3099. static const unsigned int scif5_clk_pins[] = {
  3100. /* SCK */
  3101. RCAR_GP_PIN(6, 21),
  3102. };
  3103. static const unsigned int scif5_clk_mux[] = {
  3104. SCK5_MARK,
  3105. };
  3106. /* - SDHI0 ------------------------------------------------------------------ */
  3107. static const unsigned int sdhi0_data1_pins[] = {
  3108. /* D0 */
  3109. RCAR_GP_PIN(3, 2),
  3110. };
  3111. static const unsigned int sdhi0_data1_mux[] = {
  3112. SD0_DAT0_MARK,
  3113. };
  3114. static const unsigned int sdhi0_data4_pins[] = {
  3115. /* D[0:3] */
  3116. RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3),
  3117. RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 5),
  3118. };
  3119. static const unsigned int sdhi0_data4_mux[] = {
  3120. SD0_DAT0_MARK, SD0_DAT1_MARK,
  3121. SD0_DAT2_MARK, SD0_DAT3_MARK,
  3122. };
  3123. static const unsigned int sdhi0_ctrl_pins[] = {
  3124. /* CLK, CMD */
  3125. RCAR_GP_PIN(3, 0), RCAR_GP_PIN(3, 1),
  3126. };
  3127. static const unsigned int sdhi0_ctrl_mux[] = {
  3128. SD0_CLK_MARK, SD0_CMD_MARK,
  3129. };
  3130. static const unsigned int sdhi0_cd_pins[] = {
  3131. /* CD */
  3132. RCAR_GP_PIN(3, 12),
  3133. };
  3134. static const unsigned int sdhi0_cd_mux[] = {
  3135. SD0_CD_MARK,
  3136. };
  3137. static const unsigned int sdhi0_wp_pins[] = {
  3138. /* WP */
  3139. RCAR_GP_PIN(3, 13),
  3140. };
  3141. static const unsigned int sdhi0_wp_mux[] = {
  3142. SD0_WP_MARK,
  3143. };
  3144. /* - SDHI1 ------------------------------------------------------------------ */
  3145. static const unsigned int sdhi1_data1_pins[] = {
  3146. /* D0 */
  3147. RCAR_GP_PIN(3, 8),
  3148. };
  3149. static const unsigned int sdhi1_data1_mux[] = {
  3150. SD1_DAT0_MARK,
  3151. };
  3152. static const unsigned int sdhi1_data4_pins[] = {
  3153. /* D[0:3] */
  3154. RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
  3155. RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
  3156. };
  3157. static const unsigned int sdhi1_data4_mux[] = {
  3158. SD1_DAT0_MARK, SD1_DAT1_MARK,
  3159. SD1_DAT2_MARK, SD1_DAT3_MARK,
  3160. };
  3161. static const unsigned int sdhi1_ctrl_pins[] = {
  3162. /* CLK, CMD */
  3163. RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 7),
  3164. };
  3165. static const unsigned int sdhi1_ctrl_mux[] = {
  3166. SD1_CLK_MARK, SD1_CMD_MARK,
  3167. };
  3168. static const unsigned int sdhi1_cd_pins[] = {
  3169. /* CD */
  3170. RCAR_GP_PIN(3, 14),
  3171. };
  3172. static const unsigned int sdhi1_cd_mux[] = {
  3173. SD1_CD_MARK,
  3174. };
  3175. static const unsigned int sdhi1_wp_pins[] = {
  3176. /* WP */
  3177. RCAR_GP_PIN(3, 15),
  3178. };
  3179. static const unsigned int sdhi1_wp_mux[] = {
  3180. SD1_WP_MARK,
  3181. };
  3182. /* - SDHI2 ------------------------------------------------------------------ */
  3183. static const unsigned int sdhi2_data1_pins[] = {
  3184. /* D0 */
  3185. RCAR_GP_PIN(4, 2),
  3186. };
  3187. static const unsigned int sdhi2_data1_mux[] = {
  3188. SD2_DAT0_MARK,
  3189. };
  3190. static const unsigned int sdhi2_data4_pins[] = {
  3191. /* D[0:3] */
  3192. RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 3),
  3193. RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 5),
  3194. };
  3195. static const unsigned int sdhi2_data4_mux[] = {
  3196. SD2_DAT0_MARK, SD2_DAT1_MARK,
  3197. SD2_DAT2_MARK, SD2_DAT3_MARK,
  3198. };
  3199. static const unsigned int sdhi2_data8_pins[] = {
  3200. /* D[0:7] */
  3201. RCAR_GP_PIN(4, 2), RCAR_GP_PIN(4, 3),
  3202. RCAR_GP_PIN(4, 4), RCAR_GP_PIN(4, 5),
  3203. RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
  3204. RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
  3205. };
  3206. static const unsigned int sdhi2_data8_mux[] = {
  3207. SD2_DAT0_MARK, SD2_DAT1_MARK,
  3208. SD2_DAT2_MARK, SD2_DAT3_MARK,
  3209. SD2_DAT4_MARK, SD2_DAT5_MARK,
  3210. SD2_DAT6_MARK, SD2_DAT7_MARK,
  3211. };
  3212. static const unsigned int sdhi2_ctrl_pins[] = {
  3213. /* CLK, CMD */
  3214. RCAR_GP_PIN(4, 0), RCAR_GP_PIN(4, 1),
  3215. };
  3216. static const unsigned int sdhi2_ctrl_mux[] = {
  3217. SD2_CLK_MARK, SD2_CMD_MARK,
  3218. };
  3219. static const unsigned int sdhi2_cd_a_pins[] = {
  3220. /* CD */
  3221. RCAR_GP_PIN(4, 13),
  3222. };
  3223. static const unsigned int sdhi2_cd_a_mux[] = {
  3224. SD2_CD_A_MARK,
  3225. };
  3226. static const unsigned int sdhi2_cd_b_pins[] = {
  3227. /* CD */
  3228. RCAR_GP_PIN(5, 10),
  3229. };
  3230. static const unsigned int sdhi2_cd_b_mux[] = {
  3231. SD2_CD_B_MARK,
  3232. };
  3233. static const unsigned int sdhi2_wp_a_pins[] = {
  3234. /* WP */
  3235. RCAR_GP_PIN(4, 14),
  3236. };
  3237. static const unsigned int sdhi2_wp_a_mux[] = {
  3238. SD2_WP_A_MARK,
  3239. };
  3240. static const unsigned int sdhi2_wp_b_pins[] = {
  3241. /* WP */
  3242. RCAR_GP_PIN(5, 11),
  3243. };
  3244. static const unsigned int sdhi2_wp_b_mux[] = {
  3245. SD2_WP_B_MARK,
  3246. };
  3247. static const unsigned int sdhi2_ds_pins[] = {
  3248. /* DS */
  3249. RCAR_GP_PIN(4, 6),
  3250. };
  3251. static const unsigned int sdhi2_ds_mux[] = {
  3252. SD2_DS_MARK,
  3253. };
  3254. /* - SDHI3 ------------------------------------------------------------------ */
  3255. static const unsigned int sdhi3_data1_pins[] = {
  3256. /* D0 */
  3257. RCAR_GP_PIN(4, 9),
  3258. };
  3259. static const unsigned int sdhi3_data1_mux[] = {
  3260. SD3_DAT0_MARK,
  3261. };
  3262. static const unsigned int sdhi3_data4_pins[] = {
  3263. /* D[0:3] */
  3264. RCAR_GP_PIN(4, 9), RCAR_GP_PIN(4, 10),
  3265. RCAR_GP_PIN(4, 11), RCAR_GP_PIN(4, 12),
  3266. };
  3267. static const unsigned int sdhi3_data4_mux[] = {
  3268. SD3_DAT0_MARK, SD3_DAT1_MARK,
  3269. SD3_DAT2_MARK, SD3_DAT3_MARK,
  3270. };
  3271. static const unsigned int sdhi3_data8_pins[] = {
  3272. /* D[0:7] */
  3273. RCAR_GP_PIN(4, 9), RCAR_GP_PIN(4, 10),
  3274. RCAR_GP_PIN(4, 11), RCAR_GP_PIN(4, 12),
  3275. RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 14),
  3276. RCAR_GP_PIN(4, 15), RCAR_GP_PIN(4, 16),
  3277. };
  3278. static const unsigned int sdhi3_data8_mux[] = {
  3279. SD3_DAT0_MARK, SD3_DAT1_MARK,
  3280. SD3_DAT2_MARK, SD3_DAT3_MARK,
  3281. SD3_DAT4_MARK, SD3_DAT5_MARK,
  3282. SD3_DAT6_MARK, SD3_DAT7_MARK,
  3283. };
  3284. static const unsigned int sdhi3_ctrl_pins[] = {
  3285. /* CLK, CMD */
  3286. RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 8),
  3287. };
  3288. static const unsigned int sdhi3_ctrl_mux[] = {
  3289. SD3_CLK_MARK, SD3_CMD_MARK,
  3290. };
  3291. static const unsigned int sdhi3_cd_pins[] = {
  3292. /* CD */
  3293. RCAR_GP_PIN(4, 15),
  3294. };
  3295. static const unsigned int sdhi3_cd_mux[] = {
  3296. SD3_CD_MARK,
  3297. };
  3298. static const unsigned int sdhi3_wp_pins[] = {
  3299. /* WP */
  3300. RCAR_GP_PIN(4, 16),
  3301. };
  3302. static const unsigned int sdhi3_wp_mux[] = {
  3303. SD3_WP_MARK,
  3304. };
  3305. static const unsigned int sdhi3_ds_pins[] = {
  3306. /* DS */
  3307. RCAR_GP_PIN(4, 17),
  3308. };
  3309. static const unsigned int sdhi3_ds_mux[] = {
  3310. SD3_DS_MARK,
  3311. };
  3312. /* - SCIF Clock ------------------------------------------------------------- */
  3313. static const unsigned int scif_clk_a_pins[] = {
  3314. /* SCIF_CLK */
  3315. RCAR_GP_PIN(6, 23),
  3316. };
  3317. static const unsigned int scif_clk_a_mux[] = {
  3318. SCIF_CLK_A_MARK,
  3319. };
  3320. static const unsigned int scif_clk_b_pins[] = {
  3321. /* SCIF_CLK */
  3322. RCAR_GP_PIN(5, 9),
  3323. };
  3324. static const unsigned int scif_clk_b_mux[] = {
  3325. SCIF_CLK_B_MARK,
  3326. };
  3327. /* - SSI -------------------------------------------------------------------- */
  3328. static const unsigned int ssi0_data_pins[] = {
  3329. /* SDATA */
  3330. RCAR_GP_PIN(6, 2),
  3331. };
  3332. static const unsigned int ssi0_data_mux[] = {
  3333. SSI_SDATA0_MARK,
  3334. };
  3335. static const unsigned int ssi01239_ctrl_pins[] = {
  3336. /* SCK, WS */
  3337. RCAR_GP_PIN(6, 0), RCAR_GP_PIN(6, 1),
  3338. };
  3339. static const unsigned int ssi01239_ctrl_mux[] = {
  3340. SSI_SCK01239_MARK, SSI_WS01239_MARK,
  3341. };
  3342. static const unsigned int ssi1_data_a_pins[] = {
  3343. /* SDATA */
  3344. RCAR_GP_PIN(6, 3),
  3345. };
  3346. static const unsigned int ssi1_data_a_mux[] = {
  3347. SSI_SDATA1_A_MARK,
  3348. };
  3349. static const unsigned int ssi1_data_b_pins[] = {
  3350. /* SDATA */
  3351. RCAR_GP_PIN(5, 12),
  3352. };
  3353. static const unsigned int ssi1_data_b_mux[] = {
  3354. SSI_SDATA1_B_MARK,
  3355. };
  3356. static const unsigned int ssi1_ctrl_a_pins[] = {
  3357. /* SCK, WS */
  3358. RCAR_GP_PIN(6, 26), RCAR_GP_PIN(6, 27),
  3359. };
  3360. static const unsigned int ssi1_ctrl_a_mux[] = {
  3361. SSI_SCK1_A_MARK, SSI_WS1_A_MARK,
  3362. };
  3363. static const unsigned int ssi1_ctrl_b_pins[] = {
  3364. /* SCK, WS */
  3365. RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 21),
  3366. };
  3367. static const unsigned int ssi1_ctrl_b_mux[] = {
  3368. SSI_SCK1_B_MARK, SSI_WS1_B_MARK,
  3369. };
  3370. static const unsigned int ssi2_data_a_pins[] = {
  3371. /* SDATA */
  3372. RCAR_GP_PIN(6, 4),
  3373. };
  3374. static const unsigned int ssi2_data_a_mux[] = {
  3375. SSI_SDATA2_A_MARK,
  3376. };
  3377. static const unsigned int ssi2_data_b_pins[] = {
  3378. /* SDATA */
  3379. RCAR_GP_PIN(5, 13),
  3380. };
  3381. static const unsigned int ssi2_data_b_mux[] = {
  3382. SSI_SDATA2_B_MARK,
  3383. };
  3384. static const unsigned int ssi2_ctrl_a_pins[] = {
  3385. /* SCK, WS */
  3386. RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 21),
  3387. };
  3388. static const unsigned int ssi2_ctrl_a_mux[] = {
  3389. SSI_SCK2_A_MARK, SSI_WS2_A_MARK,
  3390. };
  3391. static const unsigned int ssi2_ctrl_b_pins[] = {
  3392. /* SCK, WS */
  3393. RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29),
  3394. };
  3395. static const unsigned int ssi2_ctrl_b_mux[] = {
  3396. SSI_SCK2_B_MARK, SSI_WS2_B_MARK,
  3397. };
  3398. static const unsigned int ssi3_data_pins[] = {
  3399. /* SDATA */
  3400. RCAR_GP_PIN(6, 7),
  3401. };
  3402. static const unsigned int ssi3_data_mux[] = {
  3403. SSI_SDATA3_MARK,
  3404. };
  3405. static const unsigned int ssi34_ctrl_pins[] = {
  3406. /* SCK, WS */
  3407. RCAR_GP_PIN(6, 5), RCAR_GP_PIN(6, 6),
  3408. };
  3409. static const unsigned int ssi34_ctrl_mux[] = {
  3410. SSI_SCK34_MARK, SSI_WS34_MARK,
  3411. };
  3412. static const unsigned int ssi4_data_pins[] = {
  3413. /* SDATA */
  3414. RCAR_GP_PIN(6, 10),
  3415. };
  3416. static const unsigned int ssi4_data_mux[] = {
  3417. SSI_SDATA4_MARK,
  3418. };
  3419. static const unsigned int ssi4_ctrl_pins[] = {
  3420. /* SCK, WS */
  3421. RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
  3422. };
  3423. static const unsigned int ssi4_ctrl_mux[] = {
  3424. SSI_SCK4_MARK, SSI_WS4_MARK,
  3425. };
  3426. static const unsigned int ssi5_data_pins[] = {
  3427. /* SDATA */
  3428. RCAR_GP_PIN(6, 13),
  3429. };
  3430. static const unsigned int ssi5_data_mux[] = {
  3431. SSI_SDATA5_MARK,
  3432. };
  3433. static const unsigned int ssi5_ctrl_pins[] = {
  3434. /* SCK, WS */
  3435. RCAR_GP_PIN(6, 11), RCAR_GP_PIN(6, 12),
  3436. };
  3437. static const unsigned int ssi5_ctrl_mux[] = {
  3438. SSI_SCK5_MARK, SSI_WS5_MARK,
  3439. };
  3440. static const unsigned int ssi6_data_pins[] = {
  3441. /* SDATA */
  3442. RCAR_GP_PIN(6, 16),
  3443. };
  3444. static const unsigned int ssi6_data_mux[] = {
  3445. SSI_SDATA6_MARK,
  3446. };
  3447. static const unsigned int ssi6_ctrl_pins[] = {
  3448. /* SCK, WS */
  3449. RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 15),
  3450. };
  3451. static const unsigned int ssi6_ctrl_mux[] = {
  3452. SSI_SCK6_MARK, SSI_WS6_MARK,
  3453. };
  3454. static const unsigned int ssi7_data_pins[] = {
  3455. /* SDATA */
  3456. RCAR_GP_PIN(6, 19),
  3457. };
  3458. static const unsigned int ssi7_data_mux[] = {
  3459. SSI_SDATA7_MARK,
  3460. };
  3461. static const unsigned int ssi78_ctrl_pins[] = {
  3462. /* SCK, WS */
  3463. RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 18),
  3464. };
  3465. static const unsigned int ssi78_ctrl_mux[] = {
  3466. SSI_SCK78_MARK, SSI_WS78_MARK,
  3467. };
  3468. static const unsigned int ssi8_data_pins[] = {
  3469. /* SDATA */
  3470. RCAR_GP_PIN(6, 20),
  3471. };
  3472. static const unsigned int ssi8_data_mux[] = {
  3473. SSI_SDATA8_MARK,
  3474. };
  3475. static const unsigned int ssi9_data_a_pins[] = {
  3476. /* SDATA */
  3477. RCAR_GP_PIN(6, 21),
  3478. };
  3479. static const unsigned int ssi9_data_a_mux[] = {
  3480. SSI_SDATA9_A_MARK,
  3481. };
  3482. static const unsigned int ssi9_data_b_pins[] = {
  3483. /* SDATA */
  3484. RCAR_GP_PIN(5, 14),
  3485. };
  3486. static const unsigned int ssi9_data_b_mux[] = {
  3487. SSI_SDATA9_B_MARK,
  3488. };
  3489. static const unsigned int ssi9_ctrl_a_pins[] = {
  3490. /* SCK, WS */
  3491. RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 16),
  3492. };
  3493. static const unsigned int ssi9_ctrl_a_mux[] = {
  3494. SSI_SCK9_A_MARK, SSI_WS9_A_MARK,
  3495. };
  3496. static const unsigned int ssi9_ctrl_b_pins[] = {
  3497. /* SCK, WS */
  3498. RCAR_GP_PIN(6, 30), RCAR_GP_PIN(6, 31),
  3499. };
  3500. static const unsigned int ssi9_ctrl_b_mux[] = {
  3501. SSI_SCK9_B_MARK, SSI_WS9_B_MARK,
  3502. };
  3503. /* - USB0 ------------------------------------------------------------------- */
  3504. static const unsigned int usb0_pins[] = {
  3505. /* PWEN, OVC */
  3506. RCAR_GP_PIN(6, 24), RCAR_GP_PIN(6, 25),
  3507. };
  3508. static const unsigned int usb0_mux[] = {
  3509. USB0_PWEN_MARK, USB0_OVC_MARK,
  3510. };
  3511. /* - USB1 ------------------------------------------------------------------- */
  3512. static const unsigned int usb1_pins[] = {
  3513. /* PWEN, OVC */
  3514. RCAR_GP_PIN(6, 26), RCAR_GP_PIN(6, 27),
  3515. };
  3516. static const unsigned int usb1_mux[] = {
  3517. USB1_PWEN_MARK, USB1_OVC_MARK,
  3518. };
  3519. /* - USB2 ------------------------------------------------------------------- */
  3520. static const unsigned int usb2_pins[] = {
  3521. /* PWEN, OVC */
  3522. RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 15),
  3523. };
  3524. static const unsigned int usb2_mux[] = {
  3525. USB2_PWEN_MARK, USB2_OVC_MARK,
  3526. };
  3527. /* - QSPI0 ------------------------------------------------------------------ */
  3528. static const unsigned int qspi0_ctrl_pins[] = {
  3529. /* QSPI0_SPCLK, QSPI0_SSL */
  3530. PIN_NUMBER('W', 3), PIN_NUMBER('Y', 3),
  3531. };
  3532. static const unsigned int qspi0_ctrl_mux[] = {
  3533. QSPI0_SPCLK_MARK, QSPI0_SSL_MARK,
  3534. };
  3535. static const unsigned int qspi0_data2_pins[] = {
  3536. /* QSPI0_MOSI_IO0, QSPI0_MISO_IO1 */
  3537. PIN_A_NUMBER('C', 5), PIN_A_NUMBER('B', 4),
  3538. };
  3539. static const unsigned int qspi0_data2_mux[] = {
  3540. QSPI0_MOSI_IO0_MARK, QSPI0_MISO_IO1_MARK,
  3541. };
  3542. static const unsigned int qspi0_data4_pins[] = {
  3543. /* QSPI0_MOSI_IO0, QSPI0_MISO_IO1, QSPI0_IO2, QSPI0_IO3 */
  3544. PIN_A_NUMBER('C', 5), PIN_A_NUMBER('B', 4),
  3545. PIN_NUMBER('Y', 6), PIN_A_NUMBER('B', 6),
  3546. };
  3547. static const unsigned int qspi0_data4_mux[] = {
  3548. QSPI0_MOSI_IO0_MARK, QSPI0_MISO_IO1_MARK,
  3549. QSPI0_IO2_MARK, QSPI0_IO3_MARK,
  3550. };
  3551. /* - QSPI1 ------------------------------------------------------------------ */
  3552. static const unsigned int qspi1_ctrl_pins[] = {
  3553. /* QSPI1_SPCLK, QSPI1_SSL */
  3554. PIN_NUMBER('V', 3), PIN_NUMBER('V', 5),
  3555. };
  3556. static const unsigned int qspi1_ctrl_mux[] = {
  3557. QSPI1_SPCLK_MARK, QSPI1_SSL_MARK,
  3558. };
  3559. static const unsigned int qspi1_data2_pins[] = {
  3560. /* QSPI1_MOSI_IO0, QSPI1_MISO_IO1 */
  3561. PIN_A_NUMBER('C', 7), PIN_A_NUMBER('E', 5),
  3562. };
  3563. static const unsigned int qspi1_data2_mux[] = {
  3564. QSPI1_MOSI_IO0_MARK, QSPI1_MISO_IO1_MARK,
  3565. };
  3566. static const unsigned int qspi1_data4_pins[] = {
  3567. /* QSPI1_MOSI_IO0, QSPI1_MISO_IO1, QSPI1_IO2, QSPI1_IO3 */
  3568. PIN_A_NUMBER('C', 7), PIN_A_NUMBER('E', 5),
  3569. PIN_A_NUMBER('E', 4), PIN_A_NUMBER('C', 3),
  3570. };
  3571. static const unsigned int qspi1_data4_mux[] = {
  3572. QSPI1_MOSI_IO0_MARK, QSPI1_MISO_IO1_MARK,
  3573. QSPI1_IO2_MARK, QSPI1_IO3_MARK,
  3574. };
  3575. static const struct sh_pfc_pin_group pinmux_groups[] = {
  3576. SH_PFC_PIN_GROUP(audio_clk_a_a),
  3577. SH_PFC_PIN_GROUP(audio_clk_a_b),
  3578. SH_PFC_PIN_GROUP(audio_clk_a_c),
  3579. SH_PFC_PIN_GROUP(audio_clk_b_a),
  3580. SH_PFC_PIN_GROUP(audio_clk_b_b),
  3581. SH_PFC_PIN_GROUP(audio_clk_c_a),
  3582. SH_PFC_PIN_GROUP(audio_clk_c_b),
  3583. SH_PFC_PIN_GROUP(audio_clkout_a),
  3584. SH_PFC_PIN_GROUP(audio_clkout_b),
  3585. SH_PFC_PIN_GROUP(audio_clkout_c),
  3586. SH_PFC_PIN_GROUP(audio_clkout_d),
  3587. SH_PFC_PIN_GROUP(audio_clkout1_a),
  3588. SH_PFC_PIN_GROUP(audio_clkout1_b),
  3589. SH_PFC_PIN_GROUP(audio_clkout2_a),
  3590. SH_PFC_PIN_GROUP(audio_clkout2_b),
  3591. SH_PFC_PIN_GROUP(audio_clkout3_a),
  3592. SH_PFC_PIN_GROUP(audio_clkout3_b),
  3593. SH_PFC_PIN_GROUP(avb_link),
  3594. SH_PFC_PIN_GROUP(avb_magic),
  3595. SH_PFC_PIN_GROUP(avb_phy_int),
  3596. SH_PFC_PIN_GROUP(avb_mdc),
  3597. SH_PFC_PIN_GROUP(avb_mii),
  3598. SH_PFC_PIN_GROUP(avb_avtp_pps),
  3599. SH_PFC_PIN_GROUP(avb_avtp_match_a),
  3600. SH_PFC_PIN_GROUP(avb_avtp_capture_a),
  3601. SH_PFC_PIN_GROUP(avb_avtp_match_b),
  3602. SH_PFC_PIN_GROUP(avb_avtp_capture_b),
  3603. SH_PFC_PIN_GROUP(can0_data_a),
  3604. SH_PFC_PIN_GROUP(can0_data_b),
  3605. SH_PFC_PIN_GROUP(can1_data),
  3606. SH_PFC_PIN_GROUP(can_clk),
  3607. SH_PFC_PIN_GROUP(canfd0_data_a),
  3608. SH_PFC_PIN_GROUP(canfd0_data_b),
  3609. SH_PFC_PIN_GROUP(canfd1_data),
  3610. SH_PFC_PIN_GROUP(drif0_ctrl_a),
  3611. SH_PFC_PIN_GROUP(drif0_data0_a),
  3612. SH_PFC_PIN_GROUP(drif0_data1_a),
  3613. SH_PFC_PIN_GROUP(drif0_ctrl_b),
  3614. SH_PFC_PIN_GROUP(drif0_data0_b),
  3615. SH_PFC_PIN_GROUP(drif0_data1_b),
  3616. SH_PFC_PIN_GROUP(drif0_ctrl_c),
  3617. SH_PFC_PIN_GROUP(drif0_data0_c),
  3618. SH_PFC_PIN_GROUP(drif0_data1_c),
  3619. SH_PFC_PIN_GROUP(drif1_ctrl_a),
  3620. SH_PFC_PIN_GROUP(drif1_data0_a),
  3621. SH_PFC_PIN_GROUP(drif1_data1_a),
  3622. SH_PFC_PIN_GROUP(drif1_ctrl_b),
  3623. SH_PFC_PIN_GROUP(drif1_data0_b),
  3624. SH_PFC_PIN_GROUP(drif1_data1_b),
  3625. SH_PFC_PIN_GROUP(drif1_ctrl_c),
  3626. SH_PFC_PIN_GROUP(drif1_data0_c),
  3627. SH_PFC_PIN_GROUP(drif1_data1_c),
  3628. SH_PFC_PIN_GROUP(drif2_ctrl_a),
  3629. SH_PFC_PIN_GROUP(drif2_data0_a),
  3630. SH_PFC_PIN_GROUP(drif2_data1_a),
  3631. SH_PFC_PIN_GROUP(drif2_ctrl_b),
  3632. SH_PFC_PIN_GROUP(drif2_data0_b),
  3633. SH_PFC_PIN_GROUP(drif2_data1_b),
  3634. SH_PFC_PIN_GROUP(drif3_ctrl_a),
  3635. SH_PFC_PIN_GROUP(drif3_data0_a),
  3636. SH_PFC_PIN_GROUP(drif3_data1_a),
  3637. SH_PFC_PIN_GROUP(drif3_ctrl_b),
  3638. SH_PFC_PIN_GROUP(drif3_data0_b),
  3639. SH_PFC_PIN_GROUP(drif3_data1_b),
  3640. SH_PFC_PIN_GROUP(du_rgb666),
  3641. SH_PFC_PIN_GROUP(du_rgb888),
  3642. SH_PFC_PIN_GROUP(du_clk_out_0),
  3643. SH_PFC_PIN_GROUP(du_clk_out_1),
  3644. SH_PFC_PIN_GROUP(du_sync),
  3645. SH_PFC_PIN_GROUP(du_oddf),
  3646. SH_PFC_PIN_GROUP(du_cde),
  3647. SH_PFC_PIN_GROUP(du_disp),
  3648. SH_PFC_PIN_GROUP(hscif0_data),
  3649. SH_PFC_PIN_GROUP(hscif0_clk),
  3650. SH_PFC_PIN_GROUP(hscif0_ctrl),
  3651. SH_PFC_PIN_GROUP(hscif1_data_a),
  3652. SH_PFC_PIN_GROUP(hscif1_clk_a),
  3653. SH_PFC_PIN_GROUP(hscif1_ctrl_a),
  3654. SH_PFC_PIN_GROUP(hscif1_data_b),
  3655. SH_PFC_PIN_GROUP(hscif1_clk_b),
  3656. SH_PFC_PIN_GROUP(hscif1_ctrl_b),
  3657. SH_PFC_PIN_GROUP(hscif2_data_a),
  3658. SH_PFC_PIN_GROUP(hscif2_clk_a),
  3659. SH_PFC_PIN_GROUP(hscif2_ctrl_a),
  3660. SH_PFC_PIN_GROUP(hscif2_data_b),
  3661. SH_PFC_PIN_GROUP(hscif2_clk_b),
  3662. SH_PFC_PIN_GROUP(hscif2_ctrl_b),
  3663. SH_PFC_PIN_GROUP(hscif3_data_a),
  3664. SH_PFC_PIN_GROUP(hscif3_clk),
  3665. SH_PFC_PIN_GROUP(hscif3_ctrl),
  3666. SH_PFC_PIN_GROUP(hscif3_data_b),
  3667. SH_PFC_PIN_GROUP(hscif3_data_c),
  3668. SH_PFC_PIN_GROUP(hscif3_data_d),
  3669. SH_PFC_PIN_GROUP(hscif4_data_a),
  3670. SH_PFC_PIN_GROUP(hscif4_clk),
  3671. SH_PFC_PIN_GROUP(hscif4_ctrl),
  3672. SH_PFC_PIN_GROUP(hscif4_data_b),
  3673. SH_PFC_PIN_GROUP(i2c1_a),
  3674. SH_PFC_PIN_GROUP(i2c1_b),
  3675. SH_PFC_PIN_GROUP(i2c2_a),
  3676. SH_PFC_PIN_GROUP(i2c2_b),
  3677. SH_PFC_PIN_GROUP(i2c6_a),
  3678. SH_PFC_PIN_GROUP(i2c6_b),
  3679. SH_PFC_PIN_GROUP(i2c6_c),
  3680. SH_PFC_PIN_GROUP(intc_ex_irq0),
  3681. SH_PFC_PIN_GROUP(intc_ex_irq1),
  3682. SH_PFC_PIN_GROUP(intc_ex_irq2),
  3683. SH_PFC_PIN_GROUP(intc_ex_irq3),
  3684. SH_PFC_PIN_GROUP(intc_ex_irq4),
  3685. SH_PFC_PIN_GROUP(intc_ex_irq5),
  3686. SH_PFC_PIN_GROUP(msiof0_clk),
  3687. SH_PFC_PIN_GROUP(msiof0_sync),
  3688. SH_PFC_PIN_GROUP(msiof0_ss1),
  3689. SH_PFC_PIN_GROUP(msiof0_ss2),
  3690. SH_PFC_PIN_GROUP(msiof0_txd),
  3691. SH_PFC_PIN_GROUP(msiof0_rxd),
  3692. SH_PFC_PIN_GROUP(msiof1_clk_a),
  3693. SH_PFC_PIN_GROUP(msiof1_sync_a),
  3694. SH_PFC_PIN_GROUP(msiof1_ss1_a),
  3695. SH_PFC_PIN_GROUP(msiof1_ss2_a),
  3696. SH_PFC_PIN_GROUP(msiof1_txd_a),
  3697. SH_PFC_PIN_GROUP(msiof1_rxd_a),
  3698. SH_PFC_PIN_GROUP(msiof1_clk_b),
  3699. SH_PFC_PIN_GROUP(msiof1_sync_b),
  3700. SH_PFC_PIN_GROUP(msiof1_ss1_b),
  3701. SH_PFC_PIN_GROUP(msiof1_ss2_b),
  3702. SH_PFC_PIN_GROUP(msiof1_txd_b),
  3703. SH_PFC_PIN_GROUP(msiof1_rxd_b),
  3704. SH_PFC_PIN_GROUP(msiof1_clk_c),
  3705. SH_PFC_PIN_GROUP(msiof1_sync_c),
  3706. SH_PFC_PIN_GROUP(msiof1_ss1_c),
  3707. SH_PFC_PIN_GROUP(msiof1_ss2_c),
  3708. SH_PFC_PIN_GROUP(msiof1_txd_c),
  3709. SH_PFC_PIN_GROUP(msiof1_rxd_c),
  3710. SH_PFC_PIN_GROUP(msiof1_clk_d),
  3711. SH_PFC_PIN_GROUP(msiof1_sync_d),
  3712. SH_PFC_PIN_GROUP(msiof1_ss1_d),
  3713. SH_PFC_PIN_GROUP(msiof1_ss2_d),
  3714. SH_PFC_PIN_GROUP(msiof1_txd_d),
  3715. SH_PFC_PIN_GROUP(msiof1_rxd_d),
  3716. SH_PFC_PIN_GROUP(msiof1_clk_e),
  3717. SH_PFC_PIN_GROUP(msiof1_sync_e),
  3718. SH_PFC_PIN_GROUP(msiof1_ss1_e),
  3719. SH_PFC_PIN_GROUP(msiof1_ss2_e),
  3720. SH_PFC_PIN_GROUP(msiof1_txd_e),
  3721. SH_PFC_PIN_GROUP(msiof1_rxd_e),
  3722. SH_PFC_PIN_GROUP(msiof1_clk_f),
  3723. SH_PFC_PIN_GROUP(msiof1_sync_f),
  3724. SH_PFC_PIN_GROUP(msiof1_ss1_f),
  3725. SH_PFC_PIN_GROUP(msiof1_ss2_f),
  3726. SH_PFC_PIN_GROUP(msiof1_txd_f),
  3727. SH_PFC_PIN_GROUP(msiof1_rxd_f),
  3728. SH_PFC_PIN_GROUP(msiof1_clk_g),
  3729. SH_PFC_PIN_GROUP(msiof1_sync_g),
  3730. SH_PFC_PIN_GROUP(msiof1_ss1_g),
  3731. SH_PFC_PIN_GROUP(msiof1_ss2_g),
  3732. SH_PFC_PIN_GROUP(msiof1_txd_g),
  3733. SH_PFC_PIN_GROUP(msiof1_rxd_g),
  3734. SH_PFC_PIN_GROUP(msiof2_clk_a),
  3735. SH_PFC_PIN_GROUP(msiof2_sync_a),
  3736. SH_PFC_PIN_GROUP(msiof2_ss1_a),
  3737. SH_PFC_PIN_GROUP(msiof2_ss2_a),
  3738. SH_PFC_PIN_GROUP(msiof2_txd_a),
  3739. SH_PFC_PIN_GROUP(msiof2_rxd_a),
  3740. SH_PFC_PIN_GROUP(msiof2_clk_b),
  3741. SH_PFC_PIN_GROUP(msiof2_sync_b),
  3742. SH_PFC_PIN_GROUP(msiof2_ss1_b),
  3743. SH_PFC_PIN_GROUP(msiof2_ss2_b),
  3744. SH_PFC_PIN_GROUP(msiof2_txd_b),
  3745. SH_PFC_PIN_GROUP(msiof2_rxd_b),
  3746. SH_PFC_PIN_GROUP(msiof2_clk_c),
  3747. SH_PFC_PIN_GROUP(msiof2_sync_c),
  3748. SH_PFC_PIN_GROUP(msiof2_ss1_c),
  3749. SH_PFC_PIN_GROUP(msiof2_ss2_c),
  3750. SH_PFC_PIN_GROUP(msiof2_txd_c),
  3751. SH_PFC_PIN_GROUP(msiof2_rxd_c),
  3752. SH_PFC_PIN_GROUP(msiof2_clk_d),
  3753. SH_PFC_PIN_GROUP(msiof2_sync_d),
  3754. SH_PFC_PIN_GROUP(msiof2_ss1_d),
  3755. SH_PFC_PIN_GROUP(msiof2_ss2_d),
  3756. SH_PFC_PIN_GROUP(msiof2_txd_d),
  3757. SH_PFC_PIN_GROUP(msiof2_rxd_d),
  3758. SH_PFC_PIN_GROUP(msiof3_clk_a),
  3759. SH_PFC_PIN_GROUP(msiof3_sync_a),
  3760. SH_PFC_PIN_GROUP(msiof3_ss1_a),
  3761. SH_PFC_PIN_GROUP(msiof3_ss2_a),
  3762. SH_PFC_PIN_GROUP(msiof3_txd_a),
  3763. SH_PFC_PIN_GROUP(msiof3_rxd_a),
  3764. SH_PFC_PIN_GROUP(msiof3_clk_b),
  3765. SH_PFC_PIN_GROUP(msiof3_sync_b),
  3766. SH_PFC_PIN_GROUP(msiof3_ss1_b),
  3767. SH_PFC_PIN_GROUP(msiof3_ss2_b),
  3768. SH_PFC_PIN_GROUP(msiof3_txd_b),
  3769. SH_PFC_PIN_GROUP(msiof3_rxd_b),
  3770. SH_PFC_PIN_GROUP(msiof3_clk_c),
  3771. SH_PFC_PIN_GROUP(msiof3_sync_c),
  3772. SH_PFC_PIN_GROUP(msiof3_txd_c),
  3773. SH_PFC_PIN_GROUP(msiof3_rxd_c),
  3774. SH_PFC_PIN_GROUP(msiof3_clk_d),
  3775. SH_PFC_PIN_GROUP(msiof3_sync_d),
  3776. SH_PFC_PIN_GROUP(msiof3_ss1_d),
  3777. SH_PFC_PIN_GROUP(msiof3_txd_d),
  3778. SH_PFC_PIN_GROUP(msiof3_rxd_d),
  3779. SH_PFC_PIN_GROUP(pwm0),
  3780. SH_PFC_PIN_GROUP(pwm1_a),
  3781. SH_PFC_PIN_GROUP(pwm1_b),
  3782. SH_PFC_PIN_GROUP(pwm2_a),
  3783. SH_PFC_PIN_GROUP(pwm2_b),
  3784. SH_PFC_PIN_GROUP(pwm3_a),
  3785. SH_PFC_PIN_GROUP(pwm3_b),
  3786. SH_PFC_PIN_GROUP(pwm4_a),
  3787. SH_PFC_PIN_GROUP(pwm4_b),
  3788. SH_PFC_PIN_GROUP(pwm5_a),
  3789. SH_PFC_PIN_GROUP(pwm5_b),
  3790. SH_PFC_PIN_GROUP(pwm6_a),
  3791. SH_PFC_PIN_GROUP(pwm6_b),
  3792. SH_PFC_PIN_GROUP(sata0_devslp_a),
  3793. SH_PFC_PIN_GROUP(sata0_devslp_b),
  3794. SH_PFC_PIN_GROUP(scif0_data),
  3795. SH_PFC_PIN_GROUP(scif0_clk),
  3796. SH_PFC_PIN_GROUP(scif0_ctrl),
  3797. SH_PFC_PIN_GROUP(scif1_data_a),
  3798. SH_PFC_PIN_GROUP(scif1_clk),
  3799. SH_PFC_PIN_GROUP(scif1_ctrl),
  3800. SH_PFC_PIN_GROUP(scif1_data_b),
  3801. SH_PFC_PIN_GROUP(scif2_data_a),
  3802. SH_PFC_PIN_GROUP(scif2_clk),
  3803. SH_PFC_PIN_GROUP(scif2_data_b),
  3804. SH_PFC_PIN_GROUP(scif3_data_a),
  3805. SH_PFC_PIN_GROUP(scif3_clk),
  3806. SH_PFC_PIN_GROUP(scif3_ctrl),
  3807. SH_PFC_PIN_GROUP(scif3_data_b),
  3808. SH_PFC_PIN_GROUP(scif4_data_a),
  3809. SH_PFC_PIN_GROUP(scif4_clk_a),
  3810. SH_PFC_PIN_GROUP(scif4_ctrl_a),
  3811. SH_PFC_PIN_GROUP(scif4_data_b),
  3812. SH_PFC_PIN_GROUP(scif4_clk_b),
  3813. SH_PFC_PIN_GROUP(scif4_ctrl_b),
  3814. SH_PFC_PIN_GROUP(scif4_data_c),
  3815. SH_PFC_PIN_GROUP(scif4_clk_c),
  3816. SH_PFC_PIN_GROUP(scif4_ctrl_c),
  3817. SH_PFC_PIN_GROUP(scif5_data),
  3818. SH_PFC_PIN_GROUP(scif5_clk),
  3819. SH_PFC_PIN_GROUP(scif_clk_a),
  3820. SH_PFC_PIN_GROUP(scif_clk_b),
  3821. SH_PFC_PIN_GROUP(sdhi0_data1),
  3822. SH_PFC_PIN_GROUP(sdhi0_data4),
  3823. SH_PFC_PIN_GROUP(sdhi0_ctrl),
  3824. SH_PFC_PIN_GROUP(sdhi0_cd),
  3825. SH_PFC_PIN_GROUP(sdhi0_wp),
  3826. SH_PFC_PIN_GROUP(sdhi1_data1),
  3827. SH_PFC_PIN_GROUP(sdhi1_data4),
  3828. SH_PFC_PIN_GROUP(sdhi1_ctrl),
  3829. SH_PFC_PIN_GROUP(sdhi1_cd),
  3830. SH_PFC_PIN_GROUP(sdhi1_wp),
  3831. SH_PFC_PIN_GROUP(sdhi2_data1),
  3832. SH_PFC_PIN_GROUP(sdhi2_data4),
  3833. SH_PFC_PIN_GROUP(sdhi2_data8),
  3834. SH_PFC_PIN_GROUP(sdhi2_ctrl),
  3835. SH_PFC_PIN_GROUP(sdhi2_cd_a),
  3836. SH_PFC_PIN_GROUP(sdhi2_wp_a),
  3837. SH_PFC_PIN_GROUP(sdhi2_cd_b),
  3838. SH_PFC_PIN_GROUP(sdhi2_wp_b),
  3839. SH_PFC_PIN_GROUP(sdhi2_ds),
  3840. SH_PFC_PIN_GROUP(sdhi3_data1),
  3841. SH_PFC_PIN_GROUP(sdhi3_data4),
  3842. SH_PFC_PIN_GROUP(sdhi3_data8),
  3843. SH_PFC_PIN_GROUP(sdhi3_ctrl),
  3844. SH_PFC_PIN_GROUP(sdhi3_cd),
  3845. SH_PFC_PIN_GROUP(sdhi3_wp),
  3846. SH_PFC_PIN_GROUP(sdhi3_ds),
  3847. SH_PFC_PIN_GROUP(ssi0_data),
  3848. SH_PFC_PIN_GROUP(ssi01239_ctrl),
  3849. SH_PFC_PIN_GROUP(ssi1_data_a),
  3850. SH_PFC_PIN_GROUP(ssi1_data_b),
  3851. SH_PFC_PIN_GROUP(ssi1_ctrl_a),
  3852. SH_PFC_PIN_GROUP(ssi1_ctrl_b),
  3853. SH_PFC_PIN_GROUP(ssi2_data_a),
  3854. SH_PFC_PIN_GROUP(ssi2_data_b),
  3855. SH_PFC_PIN_GROUP(ssi2_ctrl_a),
  3856. SH_PFC_PIN_GROUP(ssi2_ctrl_b),
  3857. SH_PFC_PIN_GROUP(ssi3_data),
  3858. SH_PFC_PIN_GROUP(ssi34_ctrl),
  3859. SH_PFC_PIN_GROUP(ssi4_data),
  3860. SH_PFC_PIN_GROUP(ssi4_ctrl),
  3861. SH_PFC_PIN_GROUP(ssi5_data),
  3862. SH_PFC_PIN_GROUP(ssi5_ctrl),
  3863. SH_PFC_PIN_GROUP(ssi6_data),
  3864. SH_PFC_PIN_GROUP(ssi6_ctrl),
  3865. SH_PFC_PIN_GROUP(ssi7_data),
  3866. SH_PFC_PIN_GROUP(ssi78_ctrl),
  3867. SH_PFC_PIN_GROUP(ssi8_data),
  3868. SH_PFC_PIN_GROUP(ssi9_data_a),
  3869. SH_PFC_PIN_GROUP(ssi9_data_b),
  3870. SH_PFC_PIN_GROUP(ssi9_ctrl_a),
  3871. SH_PFC_PIN_GROUP(ssi9_ctrl_b),
  3872. SH_PFC_PIN_GROUP(usb0),
  3873. SH_PFC_PIN_GROUP(usb1),
  3874. SH_PFC_PIN_GROUP(usb2),
  3875. SH_PFC_PIN_GROUP(qspi0_ctrl),
  3876. SH_PFC_PIN_GROUP(qspi0_data2),
  3877. SH_PFC_PIN_GROUP(qspi0_data4),
  3878. SH_PFC_PIN_GROUP(qspi1_ctrl),
  3879. SH_PFC_PIN_GROUP(qspi1_data2),
  3880. SH_PFC_PIN_GROUP(qspi1_data4),
  3881. };
  3882. static const char * const audio_clk_groups[] = {
  3883. "audio_clk_a_a",
  3884. "audio_clk_a_b",
  3885. "audio_clk_a_c",
  3886. "audio_clk_b_a",
  3887. "audio_clk_b_b",
  3888. "audio_clk_c_a",
  3889. "audio_clk_c_b",
  3890. "audio_clkout_a",
  3891. "audio_clkout_b",
  3892. "audio_clkout_c",
  3893. "audio_clkout_d",
  3894. "audio_clkout1_a",
  3895. "audio_clkout1_b",
  3896. "audio_clkout2_a",
  3897. "audio_clkout2_b",
  3898. "audio_clkout3_a",
  3899. "audio_clkout3_b",
  3900. };
  3901. static const char * const avb_groups[] = {
  3902. "avb_link",
  3903. "avb_magic",
  3904. "avb_phy_int",
  3905. "avb_mdc",
  3906. "avb_mii",
  3907. "avb_avtp_pps",
  3908. "avb_avtp_match_a",
  3909. "avb_avtp_capture_a",
  3910. "avb_avtp_match_b",
  3911. "avb_avtp_capture_b",
  3912. };
  3913. static const char * const can0_groups[] = {
  3914. "can0_data_a",
  3915. "can0_data_b",
  3916. };
  3917. static const char * const can1_groups[] = {
  3918. "can1_data",
  3919. };
  3920. static const char * const can_clk_groups[] = {
  3921. "can_clk",
  3922. };
  3923. static const char * const canfd0_groups[] = {
  3924. "canfd0_data_a",
  3925. "canfd0_data_b",
  3926. };
  3927. static const char * const canfd1_groups[] = {
  3928. "canfd1_data",
  3929. };
  3930. static const char * const drif0_groups[] = {
  3931. "drif0_ctrl_a",
  3932. "drif0_data0_a",
  3933. "drif0_data1_a",
  3934. "drif0_ctrl_b",
  3935. "drif0_data0_b",
  3936. "drif0_data1_b",
  3937. "drif0_ctrl_c",
  3938. "drif0_data0_c",
  3939. "drif0_data1_c",
  3940. };
  3941. static const char * const drif1_groups[] = {
  3942. "drif1_ctrl_a",
  3943. "drif1_data0_a",
  3944. "drif1_data1_a",
  3945. "drif1_ctrl_b",
  3946. "drif1_data0_b",
  3947. "drif1_data1_b",
  3948. "drif1_ctrl_c",
  3949. "drif1_data0_c",
  3950. "drif1_data1_c",
  3951. };
  3952. static const char * const drif2_groups[] = {
  3953. "drif2_ctrl_a",
  3954. "drif2_data0_a",
  3955. "drif2_data1_a",
  3956. "drif2_ctrl_b",
  3957. "drif2_data0_b",
  3958. "drif2_data1_b",
  3959. };
  3960. static const char * const drif3_groups[] = {
  3961. "drif3_ctrl_a",
  3962. "drif3_data0_a",
  3963. "drif3_data1_a",
  3964. "drif3_ctrl_b",
  3965. "drif3_data0_b",
  3966. "drif3_data1_b",
  3967. };
  3968. static const char * const du_groups[] = {
  3969. "du_rgb666",
  3970. "du_rgb888",
  3971. "du_clk_out_0",
  3972. "du_clk_out_1",
  3973. "du_sync",
  3974. "du_oddf",
  3975. "du_cde",
  3976. "du_disp",
  3977. };
  3978. static const char * const hscif0_groups[] = {
  3979. "hscif0_data",
  3980. "hscif0_clk",
  3981. "hscif0_ctrl",
  3982. };
  3983. static const char * const hscif1_groups[] = {
  3984. "hscif1_data_a",
  3985. "hscif1_clk_a",
  3986. "hscif1_ctrl_a",
  3987. "hscif1_data_b",
  3988. "hscif1_clk_b",
  3989. "hscif1_ctrl_b",
  3990. };
  3991. static const char * const hscif2_groups[] = {
  3992. "hscif2_data_a",
  3993. "hscif2_clk_a",
  3994. "hscif2_ctrl_a",
  3995. "hscif2_data_b",
  3996. "hscif2_clk_b",
  3997. "hscif2_ctrl_b",
  3998. };
  3999. static const char * const hscif3_groups[] = {
  4000. "hscif3_data_a",
  4001. "hscif3_clk",
  4002. "hscif3_ctrl",
  4003. "hscif3_data_b",
  4004. "hscif3_data_c",
  4005. "hscif3_data_d",
  4006. };
  4007. static const char * const hscif4_groups[] = {
  4008. "hscif4_data_a",
  4009. "hscif4_clk",
  4010. "hscif4_ctrl",
  4011. "hscif4_data_b",
  4012. };
  4013. static const char * const i2c1_groups[] = {
  4014. "i2c1_a",
  4015. "i2c1_b",
  4016. };
  4017. static const char * const i2c2_groups[] = {
  4018. "i2c2_a",
  4019. "i2c2_b",
  4020. };
  4021. static const char * const i2c6_groups[] = {
  4022. "i2c6_a",
  4023. "i2c6_b",
  4024. "i2c6_c",
  4025. };
  4026. static const char * const intc_ex_groups[] = {
  4027. "intc_ex_irq0",
  4028. "intc_ex_irq1",
  4029. "intc_ex_irq2",
  4030. "intc_ex_irq3",
  4031. "intc_ex_irq4",
  4032. "intc_ex_irq5",
  4033. };
  4034. static const char * const msiof0_groups[] = {
  4035. "msiof0_clk",
  4036. "msiof0_sync",
  4037. "msiof0_ss1",
  4038. "msiof0_ss2",
  4039. "msiof0_txd",
  4040. "msiof0_rxd",
  4041. };
  4042. static const char * const msiof1_groups[] = {
  4043. "msiof1_clk_a",
  4044. "msiof1_sync_a",
  4045. "msiof1_ss1_a",
  4046. "msiof1_ss2_a",
  4047. "msiof1_txd_a",
  4048. "msiof1_rxd_a",
  4049. "msiof1_clk_b",
  4050. "msiof1_sync_b",
  4051. "msiof1_ss1_b",
  4052. "msiof1_ss2_b",
  4053. "msiof1_txd_b",
  4054. "msiof1_rxd_b",
  4055. "msiof1_clk_c",
  4056. "msiof1_sync_c",
  4057. "msiof1_ss1_c",
  4058. "msiof1_ss2_c",
  4059. "msiof1_txd_c",
  4060. "msiof1_rxd_c",
  4061. "msiof1_clk_d",
  4062. "msiof1_sync_d",
  4063. "msiof1_ss1_d",
  4064. "msiof1_ss2_d",
  4065. "msiof1_txd_d",
  4066. "msiof1_rxd_d",
  4067. "msiof1_clk_e",
  4068. "msiof1_sync_e",
  4069. "msiof1_ss1_e",
  4070. "msiof1_ss2_e",
  4071. "msiof1_txd_e",
  4072. "msiof1_rxd_e",
  4073. "msiof1_clk_f",
  4074. "msiof1_sync_f",
  4075. "msiof1_ss1_f",
  4076. "msiof1_ss2_f",
  4077. "msiof1_txd_f",
  4078. "msiof1_rxd_f",
  4079. "msiof1_clk_g",
  4080. "msiof1_sync_g",
  4081. "msiof1_ss1_g",
  4082. "msiof1_ss2_g",
  4083. "msiof1_txd_g",
  4084. "msiof1_rxd_g",
  4085. };
  4086. static const char * const msiof2_groups[] = {
  4087. "msiof2_clk_a",
  4088. "msiof2_sync_a",
  4089. "msiof2_ss1_a",
  4090. "msiof2_ss2_a",
  4091. "msiof2_txd_a",
  4092. "msiof2_rxd_a",
  4093. "msiof2_clk_b",
  4094. "msiof2_sync_b",
  4095. "msiof2_ss1_b",
  4096. "msiof2_ss2_b",
  4097. "msiof2_txd_b",
  4098. "msiof2_rxd_b",
  4099. "msiof2_clk_c",
  4100. "msiof2_sync_c",
  4101. "msiof2_ss1_c",
  4102. "msiof2_ss2_c",
  4103. "msiof2_txd_c",
  4104. "msiof2_rxd_c",
  4105. "msiof2_clk_d",
  4106. "msiof2_sync_d",
  4107. "msiof2_ss1_d",
  4108. "msiof2_ss2_d",
  4109. "msiof2_txd_d",
  4110. "msiof2_rxd_d",
  4111. };
  4112. static const char * const msiof3_groups[] = {
  4113. "msiof3_clk_a",
  4114. "msiof3_sync_a",
  4115. "msiof3_ss1_a",
  4116. "msiof3_ss2_a",
  4117. "msiof3_txd_a",
  4118. "msiof3_rxd_a",
  4119. "msiof3_clk_b",
  4120. "msiof3_sync_b",
  4121. "msiof3_ss1_b",
  4122. "msiof3_ss2_b",
  4123. "msiof3_txd_b",
  4124. "msiof3_rxd_b",
  4125. "msiof3_clk_c",
  4126. "msiof3_sync_c",
  4127. "msiof3_txd_c",
  4128. "msiof3_rxd_c",
  4129. "msiof3_clk_d",
  4130. "msiof3_sync_d",
  4131. "msiof3_ss1_d",
  4132. "msiof3_txd_d",
  4133. "msiof3_rxd_d",
  4134. };
  4135. static const char * const pwm0_groups[] = {
  4136. "pwm0",
  4137. };
  4138. static const char * const pwm1_groups[] = {
  4139. "pwm1_a",
  4140. "pwm1_b",
  4141. };
  4142. static const char * const pwm2_groups[] = {
  4143. "pwm2_a",
  4144. "pwm2_b",
  4145. };
  4146. static const char * const pwm3_groups[] = {
  4147. "pwm3_a",
  4148. "pwm3_b",
  4149. };
  4150. static const char * const pwm4_groups[] = {
  4151. "pwm4_a",
  4152. "pwm4_b",
  4153. };
  4154. static const char * const pwm5_groups[] = {
  4155. "pwm5_a",
  4156. "pwm5_b",
  4157. };
  4158. static const char * const pwm6_groups[] = {
  4159. "pwm6_a",
  4160. "pwm6_b",
  4161. };
  4162. static const char * const sata0_groups[] = {
  4163. "sata0_devslp_a",
  4164. "sata0_devslp_b",
  4165. };
  4166. static const char * const scif0_groups[] = {
  4167. "scif0_data",
  4168. "scif0_clk",
  4169. "scif0_ctrl",
  4170. };
  4171. static const char * const scif1_groups[] = {
  4172. "scif1_data_a",
  4173. "scif1_clk",
  4174. "scif1_ctrl",
  4175. "scif1_data_b",
  4176. };
  4177. static const char * const scif2_groups[] = {
  4178. "scif2_data_a",
  4179. "scif2_clk",
  4180. "scif2_data_b",
  4181. };
  4182. static const char * const scif3_groups[] = {
  4183. "scif3_data_a",
  4184. "scif3_clk",
  4185. "scif3_ctrl",
  4186. "scif3_data_b",
  4187. };
  4188. static const char * const scif4_groups[] = {
  4189. "scif4_data_a",
  4190. "scif4_clk_a",
  4191. "scif4_ctrl_a",
  4192. "scif4_data_b",
  4193. "scif4_clk_b",
  4194. "scif4_ctrl_b",
  4195. "scif4_data_c",
  4196. "scif4_clk_c",
  4197. "scif4_ctrl_c",
  4198. };
  4199. static const char * const scif5_groups[] = {
  4200. "scif5_data",
  4201. "scif5_clk",
  4202. };
  4203. static const char * const scif_clk_groups[] = {
  4204. "scif_clk_a",
  4205. "scif_clk_b",
  4206. };
  4207. static const char * const sdhi0_groups[] = {
  4208. "sdhi0_data1",
  4209. "sdhi0_data4",
  4210. "sdhi0_ctrl",
  4211. "sdhi0_cd",
  4212. "sdhi0_wp",
  4213. };
  4214. static const char * const sdhi1_groups[] = {
  4215. "sdhi1_data1",
  4216. "sdhi1_data4",
  4217. "sdhi1_ctrl",
  4218. "sdhi1_cd",
  4219. "sdhi1_wp",
  4220. };
  4221. static const char * const sdhi2_groups[] = {
  4222. "sdhi2_data1",
  4223. "sdhi2_data4",
  4224. "sdhi2_data8",
  4225. "sdhi2_ctrl",
  4226. "sdhi2_cd_a",
  4227. "sdhi2_wp_a",
  4228. "sdhi2_cd_b",
  4229. "sdhi2_wp_b",
  4230. "sdhi2_ds",
  4231. };
  4232. static const char * const sdhi3_groups[] = {
  4233. "sdhi3_data1",
  4234. "sdhi3_data4",
  4235. "sdhi3_data8",
  4236. "sdhi3_ctrl",
  4237. "sdhi3_cd",
  4238. "sdhi3_wp",
  4239. "sdhi3_ds",
  4240. };
  4241. static const char * const ssi_groups[] = {
  4242. "ssi0_data",
  4243. "ssi01239_ctrl",
  4244. "ssi1_data_a",
  4245. "ssi1_data_b",
  4246. "ssi1_ctrl_a",
  4247. "ssi1_ctrl_b",
  4248. "ssi2_data_a",
  4249. "ssi2_data_b",
  4250. "ssi2_ctrl_a",
  4251. "ssi2_ctrl_b",
  4252. "ssi3_data",
  4253. "ssi34_ctrl",
  4254. "ssi4_data",
  4255. "ssi4_ctrl",
  4256. "ssi5_data",
  4257. "ssi5_ctrl",
  4258. "ssi6_data",
  4259. "ssi6_ctrl",
  4260. "ssi7_data",
  4261. "ssi78_ctrl",
  4262. "ssi8_data",
  4263. "ssi9_data_a",
  4264. "ssi9_data_b",
  4265. "ssi9_ctrl_a",
  4266. "ssi9_ctrl_b",
  4267. };
  4268. static const char * const usb0_groups[] = {
  4269. "usb0",
  4270. };
  4271. static const char * const usb1_groups[] = {
  4272. "usb1",
  4273. };
  4274. static const char * const usb2_groups[] = {
  4275. "usb2",
  4276. };
  4277. static const char * const qspi0_groups[] = {
  4278. "qspi0_ctrl",
  4279. "qspi0_data2",
  4280. "qspi0_data4",
  4281. };
  4282. static const char * const qspi1_groups[] = {
  4283. "qspi1_ctrl",
  4284. "qspi1_data2",
  4285. "qspi1_data4",
  4286. };
  4287. static const struct sh_pfc_function pinmux_functions[] = {
  4288. SH_PFC_FUNCTION(audio_clk),
  4289. SH_PFC_FUNCTION(avb),
  4290. SH_PFC_FUNCTION(can0),
  4291. SH_PFC_FUNCTION(can1),
  4292. SH_PFC_FUNCTION(can_clk),
  4293. SH_PFC_FUNCTION(canfd0),
  4294. SH_PFC_FUNCTION(canfd1),
  4295. SH_PFC_FUNCTION(drif0),
  4296. SH_PFC_FUNCTION(drif1),
  4297. SH_PFC_FUNCTION(drif2),
  4298. SH_PFC_FUNCTION(drif3),
  4299. SH_PFC_FUNCTION(du),
  4300. SH_PFC_FUNCTION(hscif0),
  4301. SH_PFC_FUNCTION(hscif1),
  4302. SH_PFC_FUNCTION(hscif2),
  4303. SH_PFC_FUNCTION(hscif3),
  4304. SH_PFC_FUNCTION(hscif4),
  4305. SH_PFC_FUNCTION(i2c1),
  4306. SH_PFC_FUNCTION(i2c2),
  4307. SH_PFC_FUNCTION(i2c6),
  4308. SH_PFC_FUNCTION(intc_ex),
  4309. SH_PFC_FUNCTION(msiof0),
  4310. SH_PFC_FUNCTION(msiof1),
  4311. SH_PFC_FUNCTION(msiof2),
  4312. SH_PFC_FUNCTION(msiof3),
  4313. SH_PFC_FUNCTION(pwm0),
  4314. SH_PFC_FUNCTION(pwm1),
  4315. SH_PFC_FUNCTION(pwm2),
  4316. SH_PFC_FUNCTION(pwm3),
  4317. SH_PFC_FUNCTION(pwm4),
  4318. SH_PFC_FUNCTION(pwm5),
  4319. SH_PFC_FUNCTION(pwm6),
  4320. SH_PFC_FUNCTION(sata0),
  4321. SH_PFC_FUNCTION(scif0),
  4322. SH_PFC_FUNCTION(scif1),
  4323. SH_PFC_FUNCTION(scif2),
  4324. SH_PFC_FUNCTION(scif3),
  4325. SH_PFC_FUNCTION(scif4),
  4326. SH_PFC_FUNCTION(scif5),
  4327. SH_PFC_FUNCTION(scif_clk),
  4328. SH_PFC_FUNCTION(sdhi0),
  4329. SH_PFC_FUNCTION(sdhi1),
  4330. SH_PFC_FUNCTION(sdhi2),
  4331. SH_PFC_FUNCTION(sdhi3),
  4332. SH_PFC_FUNCTION(ssi),
  4333. SH_PFC_FUNCTION(usb0),
  4334. SH_PFC_FUNCTION(usb1),
  4335. SH_PFC_FUNCTION(usb2),
  4336. SH_PFC_FUNCTION(qspi0),
  4337. SH_PFC_FUNCTION(qspi1),
  4338. };
  4339. static const struct pinmux_cfg_reg pinmux_config_regs[] = {
  4340. #define F_(x, y) FN_##y
  4341. #define FM(x) FN_##x
  4342. { PINMUX_CFG_REG("GPSR0", 0xe6060100, 32, 1) {
  4343. 0, 0,
  4344. 0, 0,
  4345. 0, 0,
  4346. 0, 0,
  4347. 0, 0,
  4348. 0, 0,
  4349. 0, 0,
  4350. 0, 0,
  4351. 0, 0,
  4352. 0, 0,
  4353. 0, 0,
  4354. 0, 0,
  4355. 0, 0,
  4356. 0, 0,
  4357. 0, 0,
  4358. 0, 0,
  4359. GP_0_15_FN, GPSR0_15,
  4360. GP_0_14_FN, GPSR0_14,
  4361. GP_0_13_FN, GPSR0_13,
  4362. GP_0_12_FN, GPSR0_12,
  4363. GP_0_11_FN, GPSR0_11,
  4364. GP_0_10_FN, GPSR0_10,
  4365. GP_0_9_FN, GPSR0_9,
  4366. GP_0_8_FN, GPSR0_8,
  4367. GP_0_7_FN, GPSR0_7,
  4368. GP_0_6_FN, GPSR0_6,
  4369. GP_0_5_FN, GPSR0_5,
  4370. GP_0_4_FN, GPSR0_4,
  4371. GP_0_3_FN, GPSR0_3,
  4372. GP_0_2_FN, GPSR0_2,
  4373. GP_0_1_FN, GPSR0_1,
  4374. GP_0_0_FN, GPSR0_0, }
  4375. },
  4376. { PINMUX_CFG_REG("GPSR1", 0xe6060104, 32, 1) {
  4377. 0, 0,
  4378. 0, 0,
  4379. 0, 0,
  4380. 0, 0,
  4381. GP_1_27_FN, GPSR1_27,
  4382. GP_1_26_FN, GPSR1_26,
  4383. GP_1_25_FN, GPSR1_25,
  4384. GP_1_24_FN, GPSR1_24,
  4385. GP_1_23_FN, GPSR1_23,
  4386. GP_1_22_FN, GPSR1_22,
  4387. GP_1_21_FN, GPSR1_21,
  4388. GP_1_20_FN, GPSR1_20,
  4389. GP_1_19_FN, GPSR1_19,
  4390. GP_1_18_FN, GPSR1_18,
  4391. GP_1_17_FN, GPSR1_17,
  4392. GP_1_16_FN, GPSR1_16,
  4393. GP_1_15_FN, GPSR1_15,
  4394. GP_1_14_FN, GPSR1_14,
  4395. GP_1_13_FN, GPSR1_13,
  4396. GP_1_12_FN, GPSR1_12,
  4397. GP_1_11_FN, GPSR1_11,
  4398. GP_1_10_FN, GPSR1_10,
  4399. GP_1_9_FN, GPSR1_9,
  4400. GP_1_8_FN, GPSR1_8,
  4401. GP_1_7_FN, GPSR1_7,
  4402. GP_1_6_FN, GPSR1_6,
  4403. GP_1_5_FN, GPSR1_5,
  4404. GP_1_4_FN, GPSR1_4,
  4405. GP_1_3_FN, GPSR1_3,
  4406. GP_1_2_FN, GPSR1_2,
  4407. GP_1_1_FN, GPSR1_1,
  4408. GP_1_0_FN, GPSR1_0, }
  4409. },
  4410. { PINMUX_CFG_REG("GPSR2", 0xe6060108, 32, 1) {
  4411. 0, 0,
  4412. 0, 0,
  4413. 0, 0,
  4414. 0, 0,
  4415. 0, 0,
  4416. 0, 0,
  4417. 0, 0,
  4418. 0, 0,
  4419. 0, 0,
  4420. 0, 0,
  4421. 0, 0,
  4422. 0, 0,
  4423. 0, 0,
  4424. 0, 0,
  4425. 0, 0,
  4426. 0, 0,
  4427. 0, 0,
  4428. GP_2_14_FN, GPSR2_14,
  4429. GP_2_13_FN, GPSR2_13,
  4430. GP_2_12_FN, GPSR2_12,
  4431. GP_2_11_FN, GPSR2_11,
  4432. GP_2_10_FN, GPSR2_10,
  4433. GP_2_9_FN, GPSR2_9,
  4434. GP_2_8_FN, GPSR2_8,
  4435. GP_2_7_FN, GPSR2_7,
  4436. GP_2_6_FN, GPSR2_6,
  4437. GP_2_5_FN, GPSR2_5,
  4438. GP_2_4_FN, GPSR2_4,
  4439. GP_2_3_FN, GPSR2_3,
  4440. GP_2_2_FN, GPSR2_2,
  4441. GP_2_1_FN, GPSR2_1,
  4442. GP_2_0_FN, GPSR2_0, }
  4443. },
  4444. { PINMUX_CFG_REG("GPSR3", 0xe606010c, 32, 1) {
  4445. 0, 0,
  4446. 0, 0,
  4447. 0, 0,
  4448. 0, 0,
  4449. 0, 0,
  4450. 0, 0,
  4451. 0, 0,
  4452. 0, 0,
  4453. 0, 0,
  4454. 0, 0,
  4455. 0, 0,
  4456. 0, 0,
  4457. 0, 0,
  4458. 0, 0,
  4459. 0, 0,
  4460. 0, 0,
  4461. GP_3_15_FN, GPSR3_15,
  4462. GP_3_14_FN, GPSR3_14,
  4463. GP_3_13_FN, GPSR3_13,
  4464. GP_3_12_FN, GPSR3_12,
  4465. GP_3_11_FN, GPSR3_11,
  4466. GP_3_10_FN, GPSR3_10,
  4467. GP_3_9_FN, GPSR3_9,
  4468. GP_3_8_FN, GPSR3_8,
  4469. GP_3_7_FN, GPSR3_7,
  4470. GP_3_6_FN, GPSR3_6,
  4471. GP_3_5_FN, GPSR3_5,
  4472. GP_3_4_FN, GPSR3_4,
  4473. GP_3_3_FN, GPSR3_3,
  4474. GP_3_2_FN, GPSR3_2,
  4475. GP_3_1_FN, GPSR3_1,
  4476. GP_3_0_FN, GPSR3_0, }
  4477. },
  4478. { PINMUX_CFG_REG("GPSR4", 0xe6060110, 32, 1) {
  4479. 0, 0,
  4480. 0, 0,
  4481. 0, 0,
  4482. 0, 0,
  4483. 0, 0,
  4484. 0, 0,
  4485. 0, 0,
  4486. 0, 0,
  4487. 0, 0,
  4488. 0, 0,
  4489. 0, 0,
  4490. 0, 0,
  4491. 0, 0,
  4492. 0, 0,
  4493. GP_4_17_FN, GPSR4_17,
  4494. GP_4_16_FN, GPSR4_16,
  4495. GP_4_15_FN, GPSR4_15,
  4496. GP_4_14_FN, GPSR4_14,
  4497. GP_4_13_FN, GPSR4_13,
  4498. GP_4_12_FN, GPSR4_12,
  4499. GP_4_11_FN, GPSR4_11,
  4500. GP_4_10_FN, GPSR4_10,
  4501. GP_4_9_FN, GPSR4_9,
  4502. GP_4_8_FN, GPSR4_8,
  4503. GP_4_7_FN, GPSR4_7,
  4504. GP_4_6_FN, GPSR4_6,
  4505. GP_4_5_FN, GPSR4_5,
  4506. GP_4_4_FN, GPSR4_4,
  4507. GP_4_3_FN, GPSR4_3,
  4508. GP_4_2_FN, GPSR4_2,
  4509. GP_4_1_FN, GPSR4_1,
  4510. GP_4_0_FN, GPSR4_0, }
  4511. },
  4512. { PINMUX_CFG_REG("GPSR5", 0xe6060114, 32, 1) {
  4513. 0, 0,
  4514. 0, 0,
  4515. 0, 0,
  4516. 0, 0,
  4517. 0, 0,
  4518. 0, 0,
  4519. GP_5_25_FN, GPSR5_25,
  4520. GP_5_24_FN, GPSR5_24,
  4521. GP_5_23_FN, GPSR5_23,
  4522. GP_5_22_FN, GPSR5_22,
  4523. GP_5_21_FN, GPSR5_21,
  4524. GP_5_20_FN, GPSR5_20,
  4525. GP_5_19_FN, GPSR5_19,
  4526. GP_5_18_FN, GPSR5_18,
  4527. GP_5_17_FN, GPSR5_17,
  4528. GP_5_16_FN, GPSR5_16,
  4529. GP_5_15_FN, GPSR5_15,
  4530. GP_5_14_FN, GPSR5_14,
  4531. GP_5_13_FN, GPSR5_13,
  4532. GP_5_12_FN, GPSR5_12,
  4533. GP_5_11_FN, GPSR5_11,
  4534. GP_5_10_FN, GPSR5_10,
  4535. GP_5_9_FN, GPSR5_9,
  4536. GP_5_8_FN, GPSR5_8,
  4537. GP_5_7_FN, GPSR5_7,
  4538. GP_5_6_FN, GPSR5_6,
  4539. GP_5_5_FN, GPSR5_5,
  4540. GP_5_4_FN, GPSR5_4,
  4541. GP_5_3_FN, GPSR5_3,
  4542. GP_5_2_FN, GPSR5_2,
  4543. GP_5_1_FN, GPSR5_1,
  4544. GP_5_0_FN, GPSR5_0, }
  4545. },
  4546. { PINMUX_CFG_REG("GPSR6", 0xe6060118, 32, 1) {
  4547. GP_6_31_FN, GPSR6_31,
  4548. GP_6_30_FN, GPSR6_30,
  4549. GP_6_29_FN, GPSR6_29,
  4550. GP_6_28_FN, GPSR6_28,
  4551. GP_6_27_FN, GPSR6_27,
  4552. GP_6_26_FN, GPSR6_26,
  4553. GP_6_25_FN, GPSR6_25,
  4554. GP_6_24_FN, GPSR6_24,
  4555. GP_6_23_FN, GPSR6_23,
  4556. GP_6_22_FN, GPSR6_22,
  4557. GP_6_21_FN, GPSR6_21,
  4558. GP_6_20_FN, GPSR6_20,
  4559. GP_6_19_FN, GPSR6_19,
  4560. GP_6_18_FN, GPSR6_18,
  4561. GP_6_17_FN, GPSR6_17,
  4562. GP_6_16_FN, GPSR6_16,
  4563. GP_6_15_FN, GPSR6_15,
  4564. GP_6_14_FN, GPSR6_14,
  4565. GP_6_13_FN, GPSR6_13,
  4566. GP_6_12_FN, GPSR6_12,
  4567. GP_6_11_FN, GPSR6_11,
  4568. GP_6_10_FN, GPSR6_10,
  4569. GP_6_9_FN, GPSR6_9,
  4570. GP_6_8_FN, GPSR6_8,
  4571. GP_6_7_FN, GPSR6_7,
  4572. GP_6_6_FN, GPSR6_6,
  4573. GP_6_5_FN, GPSR6_5,
  4574. GP_6_4_FN, GPSR6_4,
  4575. GP_6_3_FN, GPSR6_3,
  4576. GP_6_2_FN, GPSR6_2,
  4577. GP_6_1_FN, GPSR6_1,
  4578. GP_6_0_FN, GPSR6_0, }
  4579. },
  4580. { PINMUX_CFG_REG("GPSR7", 0xe606011c, 32, 1) {
  4581. 0, 0,
  4582. 0, 0,
  4583. 0, 0,
  4584. 0, 0,
  4585. 0, 0,
  4586. 0, 0,
  4587. 0, 0,
  4588. 0, 0,
  4589. 0, 0,
  4590. 0, 0,
  4591. 0, 0,
  4592. 0, 0,
  4593. 0, 0,
  4594. 0, 0,
  4595. 0, 0,
  4596. 0, 0,
  4597. 0, 0,
  4598. 0, 0,
  4599. 0, 0,
  4600. 0, 0,
  4601. 0, 0,
  4602. 0, 0,
  4603. 0, 0,
  4604. 0, 0,
  4605. 0, 0,
  4606. 0, 0,
  4607. 0, 0,
  4608. 0, 0,
  4609. GP_7_3_FN, GPSR7_3,
  4610. GP_7_2_FN, GPSR7_2,
  4611. GP_7_1_FN, GPSR7_1,
  4612. GP_7_0_FN, GPSR7_0, }
  4613. },
  4614. #undef F_
  4615. #undef FM
  4616. #define F_(x, y) x,
  4617. #define FM(x) FN_##x,
  4618. { PINMUX_CFG_REG("IPSR0", 0xe6060200, 32, 4) {
  4619. IP0_31_28
  4620. IP0_27_24
  4621. IP0_23_20
  4622. IP0_19_16
  4623. IP0_15_12
  4624. IP0_11_8
  4625. IP0_7_4
  4626. IP0_3_0 }
  4627. },
  4628. { PINMUX_CFG_REG("IPSR1", 0xe6060204, 32, 4) {
  4629. IP1_31_28
  4630. IP1_27_24
  4631. IP1_23_20
  4632. IP1_19_16
  4633. IP1_15_12
  4634. IP1_11_8
  4635. IP1_7_4
  4636. IP1_3_0 }
  4637. },
  4638. { PINMUX_CFG_REG("IPSR2", 0xe6060208, 32, 4) {
  4639. IP2_31_28
  4640. IP2_27_24
  4641. IP2_23_20
  4642. IP2_19_16
  4643. IP2_15_12
  4644. IP2_11_8
  4645. IP2_7_4
  4646. IP2_3_0 }
  4647. },
  4648. { PINMUX_CFG_REG("IPSR3", 0xe606020c, 32, 4) {
  4649. IP3_31_28
  4650. IP3_27_24
  4651. IP3_23_20
  4652. IP3_19_16
  4653. IP3_15_12
  4654. IP3_11_8
  4655. IP3_7_4
  4656. IP3_3_0 }
  4657. },
  4658. { PINMUX_CFG_REG("IPSR4", 0xe6060210, 32, 4) {
  4659. IP4_31_28
  4660. IP4_27_24
  4661. IP4_23_20
  4662. IP4_19_16
  4663. IP4_15_12
  4664. IP4_11_8
  4665. IP4_7_4
  4666. IP4_3_0 }
  4667. },
  4668. { PINMUX_CFG_REG("IPSR5", 0xe6060214, 32, 4) {
  4669. IP5_31_28
  4670. IP5_27_24
  4671. IP5_23_20
  4672. IP5_19_16
  4673. IP5_15_12
  4674. IP5_11_8
  4675. IP5_7_4
  4676. IP5_3_0 }
  4677. },
  4678. { PINMUX_CFG_REG("IPSR6", 0xe6060218, 32, 4) {
  4679. IP6_31_28
  4680. IP6_27_24
  4681. IP6_23_20
  4682. IP6_19_16
  4683. IP6_15_12
  4684. IP6_11_8
  4685. IP6_7_4
  4686. IP6_3_0 }
  4687. },
  4688. { PINMUX_CFG_REG("IPSR7", 0xe606021c, 32, 4) {
  4689. IP7_31_28
  4690. IP7_27_24
  4691. IP7_23_20
  4692. IP7_19_16
  4693. IP7_15_12
  4694. IP7_11_8
  4695. IP7_7_4
  4696. IP7_3_0 }
  4697. },
  4698. { PINMUX_CFG_REG("IPSR8", 0xe6060220, 32, 4) {
  4699. IP8_31_28
  4700. IP8_27_24
  4701. IP8_23_20
  4702. IP8_19_16
  4703. IP8_15_12
  4704. IP8_11_8
  4705. IP8_7_4
  4706. IP8_3_0 }
  4707. },
  4708. { PINMUX_CFG_REG("IPSR9", 0xe6060224, 32, 4) {
  4709. IP9_31_28
  4710. IP9_27_24
  4711. IP9_23_20
  4712. IP9_19_16
  4713. IP9_15_12
  4714. IP9_11_8
  4715. IP9_7_4
  4716. IP9_3_0 }
  4717. },
  4718. { PINMUX_CFG_REG("IPSR10", 0xe6060228, 32, 4) {
  4719. IP10_31_28
  4720. IP10_27_24
  4721. IP10_23_20
  4722. IP10_19_16
  4723. IP10_15_12
  4724. IP10_11_8
  4725. IP10_7_4
  4726. IP10_3_0 }
  4727. },
  4728. { PINMUX_CFG_REG("IPSR11", 0xe606022c, 32, 4) {
  4729. IP11_31_28
  4730. IP11_27_24
  4731. IP11_23_20
  4732. IP11_19_16
  4733. IP11_15_12
  4734. IP11_11_8
  4735. IP11_7_4
  4736. IP11_3_0 }
  4737. },
  4738. { PINMUX_CFG_REG("IPSR12", 0xe6060230, 32, 4) {
  4739. IP12_31_28
  4740. IP12_27_24
  4741. IP12_23_20
  4742. IP12_19_16
  4743. IP12_15_12
  4744. IP12_11_8
  4745. IP12_7_4
  4746. IP12_3_0 }
  4747. },
  4748. { PINMUX_CFG_REG("IPSR13", 0xe6060234, 32, 4) {
  4749. IP13_31_28
  4750. IP13_27_24
  4751. IP13_23_20
  4752. IP13_19_16
  4753. IP13_15_12
  4754. IP13_11_8
  4755. IP13_7_4
  4756. IP13_3_0 }
  4757. },
  4758. { PINMUX_CFG_REG("IPSR14", 0xe6060238, 32, 4) {
  4759. IP14_31_28
  4760. IP14_27_24
  4761. IP14_23_20
  4762. IP14_19_16
  4763. IP14_15_12
  4764. IP14_11_8
  4765. IP14_7_4
  4766. IP14_3_0 }
  4767. },
  4768. { PINMUX_CFG_REG("IPSR15", 0xe606023c, 32, 4) {
  4769. IP15_31_28
  4770. IP15_27_24
  4771. IP15_23_20
  4772. IP15_19_16
  4773. IP15_15_12
  4774. IP15_11_8
  4775. IP15_7_4
  4776. IP15_3_0 }
  4777. },
  4778. { PINMUX_CFG_REG("IPSR16", 0xe6060240, 32, 4) {
  4779. IP16_31_28
  4780. IP16_27_24
  4781. IP16_23_20
  4782. IP16_19_16
  4783. IP16_15_12
  4784. IP16_11_8
  4785. IP16_7_4
  4786. IP16_3_0 }
  4787. },
  4788. { PINMUX_CFG_REG("IPSR17", 0xe6060244, 32, 4) {
  4789. /* IP17_31_28 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4790. /* IP17_27_24 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4791. /* IP17_23_20 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4792. /* IP17_19_16 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4793. /* IP17_15_12 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4794. /* IP17_11_8 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4795. IP17_7_4
  4796. IP17_3_0 }
  4797. },
  4798. #undef F_
  4799. #undef FM
  4800. #define F_(x, y) x,
  4801. #define FM(x) FN_##x,
  4802. { PINMUX_CFG_REG_VAR("MOD_SEL0", 0xe6060500, 32,
  4803. 1, 2, 2, 3, 1, 1, 2, 1, 1, 1,
  4804. 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2, 1) {
  4805. 0, 0, /* RESERVED 31 */
  4806. MOD_SEL0_30_29
  4807. MOD_SEL0_28_27
  4808. MOD_SEL0_26_25_24
  4809. MOD_SEL0_23
  4810. MOD_SEL0_22
  4811. MOD_SEL0_21_20
  4812. MOD_SEL0_19
  4813. MOD_SEL0_18
  4814. MOD_SEL0_17
  4815. MOD_SEL0_16_15
  4816. MOD_SEL0_14
  4817. MOD_SEL0_13
  4818. MOD_SEL0_12
  4819. MOD_SEL0_11
  4820. MOD_SEL0_10
  4821. MOD_SEL0_9
  4822. MOD_SEL0_8
  4823. MOD_SEL0_7_6
  4824. MOD_SEL0_5_4
  4825. MOD_SEL0_3
  4826. MOD_SEL0_2_1
  4827. 0, 0, /* RESERVED 0 */ }
  4828. },
  4829. { PINMUX_CFG_REG_VAR("MOD_SEL1", 0xe6060504, 32,
  4830. 2, 3, 1, 2, 3, 1, 1, 2, 1,
  4831. 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1) {
  4832. MOD_SEL1_31_30
  4833. MOD_SEL1_29_28_27
  4834. MOD_SEL1_26
  4835. MOD_SEL1_25_24
  4836. MOD_SEL1_23_22_21
  4837. MOD_SEL1_20
  4838. MOD_SEL1_19
  4839. MOD_SEL1_18_17
  4840. MOD_SEL1_16
  4841. MOD_SEL1_15_14
  4842. MOD_SEL1_13
  4843. MOD_SEL1_12
  4844. MOD_SEL1_11
  4845. MOD_SEL1_10
  4846. MOD_SEL1_9
  4847. 0, 0, 0, 0, /* RESERVED 8, 7 */
  4848. MOD_SEL1_6
  4849. MOD_SEL1_5
  4850. MOD_SEL1_4
  4851. MOD_SEL1_3
  4852. MOD_SEL1_2
  4853. MOD_SEL1_1
  4854. MOD_SEL1_0 }
  4855. },
  4856. { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xe6060508, 32,
  4857. 1, 1, 1, 1, 4, 4, 4,
  4858. 4, 4, 4, 1, 2, 1) {
  4859. MOD_SEL2_31
  4860. MOD_SEL2_30
  4861. MOD_SEL2_29
  4862. /* RESERVED 28 */
  4863. 0, 0,
  4864. /* RESERVED 27, 26, 25, 24 */
  4865. 0, 0, 0, 0, 0, 0, 0, 0,
  4866. 0, 0, 0, 0, 0, 0, 0, 0,
  4867. /* RESERVED 23, 22, 21, 20 */
  4868. 0, 0, 0, 0, 0, 0, 0, 0,
  4869. 0, 0, 0, 0, 0, 0, 0, 0,
  4870. /* RESERVED 19, 18, 17, 16 */
  4871. 0, 0, 0, 0, 0, 0, 0, 0,
  4872. 0, 0, 0, 0, 0, 0, 0, 0,
  4873. /* RESERVED 15, 14, 13, 12 */
  4874. 0, 0, 0, 0, 0, 0, 0, 0,
  4875. 0, 0, 0, 0, 0, 0, 0, 0,
  4876. /* RESERVED 11, 10, 9, 8 */
  4877. 0, 0, 0, 0, 0, 0, 0, 0,
  4878. 0, 0, 0, 0, 0, 0, 0, 0,
  4879. /* RESERVED 7, 6, 5, 4 */
  4880. 0, 0, 0, 0, 0, 0, 0, 0,
  4881. 0, 0, 0, 0, 0, 0, 0, 0,
  4882. /* RESERVED 3 */
  4883. 0, 0,
  4884. /* RESERVED 2, 1 */
  4885. 0, 0, 0, 0,
  4886. MOD_SEL2_0 }
  4887. },
  4888. { },
  4889. };
  4890. static const struct pinmux_drive_reg pinmux_drive_regs[] = {
  4891. { PINMUX_DRIVE_REG("DRVCTRL0", 0xe6060300) {
  4892. { PIN_NUMBER('W', 3), 28, 2 }, /* QSPI0_SPCLK */
  4893. { PIN_A_NUMBER('C', 5), 24, 2 }, /* QSPI0_MOSI_IO0 */
  4894. { PIN_A_NUMBER('B', 4), 20, 2 }, /* QSPI0_MISO_IO1 */
  4895. { PIN_NUMBER('Y', 6), 16, 2 }, /* QSPI0_IO2 */
  4896. { PIN_A_NUMBER('B', 6), 12, 2 }, /* QSPI0_IO3 */
  4897. { PIN_NUMBER('Y', 3), 8, 2 }, /* QSPI0_SSL */
  4898. { PIN_NUMBER('V', 3), 4, 2 }, /* QSPI1_SPCLK */
  4899. { PIN_A_NUMBER('C', 7), 0, 2 }, /* QSPI1_MOSI_IO0 */
  4900. } },
  4901. { PINMUX_DRIVE_REG("DRVCTRL1", 0xe6060304) {
  4902. { PIN_A_NUMBER('E', 5), 28, 2 }, /* QSPI1_MISO_IO1 */
  4903. { PIN_A_NUMBER('E', 4), 24, 2 }, /* QSPI1_IO2 */
  4904. { PIN_A_NUMBER('C', 3), 20, 2 }, /* QSPI1_IO3 */
  4905. { PIN_NUMBER('V', 5), 16, 2 }, /* QSPI1_SSL */
  4906. { PIN_NUMBER('Y', 7), 12, 2 }, /* RPC_INT# */
  4907. { PIN_NUMBER('V', 6), 8, 2 }, /* RPC_WP# */
  4908. { PIN_NUMBER('V', 7), 4, 2 }, /* RPC_RESET# */
  4909. { PIN_NUMBER('A', 16), 0, 3 }, /* AVB_RX_CTL */
  4910. } },
  4911. { PINMUX_DRIVE_REG("DRVCTRL2", 0xe6060308) {
  4912. { PIN_NUMBER('B', 19), 28, 3 }, /* AVB_RXC */
  4913. { PIN_NUMBER('A', 13), 24, 3 }, /* AVB_RD0 */
  4914. { PIN_NUMBER('B', 13), 20, 3 }, /* AVB_RD1 */
  4915. { PIN_NUMBER('A', 14), 16, 3 }, /* AVB_RD2 */
  4916. { PIN_NUMBER('B', 14), 12, 3 }, /* AVB_RD3 */
  4917. { PIN_NUMBER('A', 8), 8, 3 }, /* AVB_TX_CTL */
  4918. { PIN_NUMBER('A', 19), 4, 3 }, /* AVB_TXC */
  4919. { PIN_NUMBER('A', 18), 0, 3 }, /* AVB_TD0 */
  4920. } },
  4921. { PINMUX_DRIVE_REG("DRVCTRL3", 0xe606030c) {
  4922. { PIN_NUMBER('B', 18), 28, 3 }, /* AVB_TD1 */
  4923. { PIN_NUMBER('A', 17), 24, 3 }, /* AVB_TD2 */
  4924. { PIN_NUMBER('B', 17), 20, 3 }, /* AVB_TD3 */
  4925. { PIN_NUMBER('A', 12), 16, 3 }, /* AVB_TXCREFCLK */
  4926. { PIN_NUMBER('A', 9), 12, 3 }, /* AVB_MDIO */
  4927. { RCAR_GP_PIN(2, 9), 8, 3 }, /* AVB_MDC */
  4928. { RCAR_GP_PIN(2, 10), 4, 3 }, /* AVB_MAGIC */
  4929. { RCAR_GP_PIN(2, 11), 0, 3 }, /* AVB_PHY_INT */
  4930. } },
  4931. { PINMUX_DRIVE_REG("DRVCTRL4", 0xe6060310) {
  4932. { RCAR_GP_PIN(2, 12), 28, 3 }, /* AVB_LINK */
  4933. { RCAR_GP_PIN(2, 13), 24, 3 }, /* AVB_AVTP_MATCH */
  4934. { RCAR_GP_PIN(2, 14), 20, 3 }, /* AVB_AVTP_CAPTURE */
  4935. { RCAR_GP_PIN(2, 0), 16, 3 }, /* IRQ0 */
  4936. { RCAR_GP_PIN(2, 1), 12, 3 }, /* IRQ1 */
  4937. { RCAR_GP_PIN(2, 2), 8, 3 }, /* IRQ2 */
  4938. { RCAR_GP_PIN(2, 3), 4, 3 }, /* IRQ3 */
  4939. { RCAR_GP_PIN(2, 4), 0, 3 }, /* IRQ4 */
  4940. } },
  4941. { PINMUX_DRIVE_REG("DRVCTRL5", 0xe6060314) {
  4942. { RCAR_GP_PIN(2, 5), 28, 3 }, /* IRQ5 */
  4943. { RCAR_GP_PIN(2, 6), 24, 3 }, /* PWM0 */
  4944. { RCAR_GP_PIN(2, 7), 20, 3 }, /* PWM1 */
  4945. { RCAR_GP_PIN(2, 8), 16, 3 }, /* PWM2 */
  4946. { RCAR_GP_PIN(1, 0), 12, 3 }, /* A0 */
  4947. { RCAR_GP_PIN(1, 1), 8, 3 }, /* A1 */
  4948. { RCAR_GP_PIN(1, 2), 4, 3 }, /* A2 */
  4949. { RCAR_GP_PIN(1, 3), 0, 3 }, /* A3 */
  4950. } },
  4951. { PINMUX_DRIVE_REG("DRVCTRL6", 0xe6060318) {
  4952. { RCAR_GP_PIN(1, 4), 28, 3 }, /* A4 */
  4953. { RCAR_GP_PIN(1, 5), 24, 3 }, /* A5 */
  4954. { RCAR_GP_PIN(1, 6), 20, 3 }, /* A6 */
  4955. { RCAR_GP_PIN(1, 7), 16, 3 }, /* A7 */
  4956. { RCAR_GP_PIN(1, 8), 12, 3 }, /* A8 */
  4957. { RCAR_GP_PIN(1, 9), 8, 3 }, /* A9 */
  4958. { RCAR_GP_PIN(1, 10), 4, 3 }, /* A10 */
  4959. { RCAR_GP_PIN(1, 11), 0, 3 }, /* A11 */
  4960. } },
  4961. { PINMUX_DRIVE_REG("DRVCTRL7", 0xe606031c) {
  4962. { RCAR_GP_PIN(1, 12), 28, 3 }, /* A12 */
  4963. { RCAR_GP_PIN(1, 13), 24, 3 }, /* A13 */
  4964. { RCAR_GP_PIN(1, 14), 20, 3 }, /* A14 */
  4965. { RCAR_GP_PIN(1, 15), 16, 3 }, /* A15 */
  4966. { RCAR_GP_PIN(1, 16), 12, 3 }, /* A16 */
  4967. { RCAR_GP_PIN(1, 17), 8, 3 }, /* A17 */
  4968. { RCAR_GP_PIN(1, 18), 4, 3 }, /* A18 */
  4969. { RCAR_GP_PIN(1, 19), 0, 3 }, /* A19 */
  4970. } },
  4971. { PINMUX_DRIVE_REG("DRVCTRL8", 0xe6060320) {
  4972. { PIN_NUMBER('F', 1), 28, 3 }, /* CLKOUT */
  4973. { RCAR_GP_PIN(1, 20), 24, 3 }, /* CS0 */
  4974. { RCAR_GP_PIN(1, 21), 20, 3 }, /* CS1_A26 */
  4975. { RCAR_GP_PIN(1, 22), 16, 3 }, /* BS */
  4976. { RCAR_GP_PIN(1, 23), 12, 3 }, /* RD */
  4977. { RCAR_GP_PIN(1, 24), 8, 3 }, /* RD_WR */
  4978. { RCAR_GP_PIN(1, 25), 4, 3 }, /* WE0 */
  4979. { RCAR_GP_PIN(1, 26), 0, 3 }, /* WE1 */
  4980. } },
  4981. { PINMUX_DRIVE_REG("DRVCTRL9", 0xe6060324) {
  4982. { RCAR_GP_PIN(1, 27), 28, 3 }, /* EX_WAIT0 */
  4983. { PIN_NUMBER('C', 1), 24, 3 }, /* PRESETOUT# */
  4984. { RCAR_GP_PIN(0, 0), 20, 3 }, /* D0 */
  4985. { RCAR_GP_PIN(0, 1), 16, 3 }, /* D1 */
  4986. { RCAR_GP_PIN(0, 2), 12, 3 }, /* D2 */
  4987. { RCAR_GP_PIN(0, 3), 8, 3 }, /* D3 */
  4988. { RCAR_GP_PIN(0, 4), 4, 3 }, /* D4 */
  4989. { RCAR_GP_PIN(0, 5), 0, 3 }, /* D5 */
  4990. } },
  4991. { PINMUX_DRIVE_REG("DRVCTRL10", 0xe6060328) {
  4992. { RCAR_GP_PIN(0, 6), 28, 3 }, /* D6 */
  4993. { RCAR_GP_PIN(0, 7), 24, 3 }, /* D7 */
  4994. { RCAR_GP_PIN(0, 8), 20, 3 }, /* D8 */
  4995. { RCAR_GP_PIN(0, 9), 16, 3 }, /* D9 */
  4996. { RCAR_GP_PIN(0, 10), 12, 3 }, /* D10 */
  4997. { RCAR_GP_PIN(0, 11), 8, 3 }, /* D11 */
  4998. { RCAR_GP_PIN(0, 12), 4, 3 }, /* D12 */
  4999. { RCAR_GP_PIN(0, 13), 0, 3 }, /* D13 */
  5000. } },
  5001. { PINMUX_DRIVE_REG("DRVCTRL11", 0xe606032c) {
  5002. { RCAR_GP_PIN(0, 14), 28, 3 }, /* D14 */
  5003. { RCAR_GP_PIN(0, 15), 24, 3 }, /* D15 */
  5004. { RCAR_GP_PIN(7, 0), 20, 3 }, /* AVS1 */
  5005. { RCAR_GP_PIN(7, 1), 16, 3 }, /* AVS2 */
  5006. { RCAR_GP_PIN(7, 2), 12, 3 }, /* HDMI0_CEC */
  5007. { RCAR_GP_PIN(7, 3), 8, 3 }, /* HDMI1_CEC */
  5008. { PIN_A_NUMBER('P', 7), 4, 2 }, /* DU_DOTCLKIN0 */
  5009. { PIN_A_NUMBER('P', 8), 0, 2 }, /* DU_DOTCLKIN1 */
  5010. } },
  5011. { PINMUX_DRIVE_REG("DRVCTRL12", 0xe6060330) {
  5012. { PIN_A_NUMBER('R', 7), 28, 2 }, /* DU_DOTCLKIN2 */
  5013. { PIN_A_NUMBER('R', 8), 24, 2 }, /* DU_DOTCLKIN3 */
  5014. { PIN_A_NUMBER('D', 38), 20, 2 }, /* FSCLKST# */
  5015. { PIN_A_NUMBER('R', 30), 4, 2 }, /* TMS */
  5016. } },
  5017. { PINMUX_DRIVE_REG("DRVCTRL13", 0xe6060334) {
  5018. { PIN_A_NUMBER('T', 28), 28, 2 }, /* TDO */
  5019. { PIN_A_NUMBER('T', 30), 24, 2 }, /* ASEBRK */
  5020. { RCAR_GP_PIN(3, 0), 20, 3 }, /* SD0_CLK */
  5021. { RCAR_GP_PIN(3, 1), 16, 3 }, /* SD0_CMD */
  5022. { RCAR_GP_PIN(3, 2), 12, 3 }, /* SD0_DAT0 */
  5023. { RCAR_GP_PIN(3, 3), 8, 3 }, /* SD0_DAT1 */
  5024. { RCAR_GP_PIN(3, 4), 4, 3 }, /* SD0_DAT2 */
  5025. { RCAR_GP_PIN(3, 5), 0, 3 }, /* SD0_DAT3 */
  5026. } },
  5027. { PINMUX_DRIVE_REG("DRVCTRL14", 0xe6060338) {
  5028. { RCAR_GP_PIN(3, 6), 28, 3 }, /* SD1_CLK */
  5029. { RCAR_GP_PIN(3, 7), 24, 3 }, /* SD1_CMD */
  5030. { RCAR_GP_PIN(3, 8), 20, 3 }, /* SD1_DAT0 */
  5031. { RCAR_GP_PIN(3, 9), 16, 3 }, /* SD1_DAT1 */
  5032. { RCAR_GP_PIN(3, 10), 12, 3 }, /* SD1_DAT2 */
  5033. { RCAR_GP_PIN(3, 11), 8, 3 }, /* SD1_DAT3 */
  5034. { RCAR_GP_PIN(4, 0), 4, 3 }, /* SD2_CLK */
  5035. { RCAR_GP_PIN(4, 1), 0, 3 }, /* SD2_CMD */
  5036. } },
  5037. { PINMUX_DRIVE_REG("DRVCTRL15", 0xe606033c) {
  5038. { RCAR_GP_PIN(4, 2), 28, 3 }, /* SD2_DAT0 */
  5039. { RCAR_GP_PIN(4, 3), 24, 3 }, /* SD2_DAT1 */
  5040. { RCAR_GP_PIN(4, 4), 20, 3 }, /* SD2_DAT2 */
  5041. { RCAR_GP_PIN(4, 5), 16, 3 }, /* SD2_DAT3 */
  5042. { RCAR_GP_PIN(4, 6), 12, 3 }, /* SD2_DS */
  5043. { RCAR_GP_PIN(4, 7), 8, 3 }, /* SD3_CLK */
  5044. { RCAR_GP_PIN(4, 8), 4, 3 }, /* SD3_CMD */
  5045. { RCAR_GP_PIN(4, 9), 0, 3 }, /* SD3_DAT0 */
  5046. } },
  5047. { PINMUX_DRIVE_REG("DRVCTRL16", 0xe6060340) {
  5048. { RCAR_GP_PIN(4, 10), 28, 3 }, /* SD3_DAT1 */
  5049. { RCAR_GP_PIN(4, 11), 24, 3 }, /* SD3_DAT2 */
  5050. { RCAR_GP_PIN(4, 12), 20, 3 }, /* SD3_DAT3 */
  5051. { RCAR_GP_PIN(4, 13), 16, 3 }, /* SD3_DAT4 */
  5052. { RCAR_GP_PIN(4, 14), 12, 3 }, /* SD3_DAT5 */
  5053. { RCAR_GP_PIN(4, 15), 8, 3 }, /* SD3_DAT6 */
  5054. { RCAR_GP_PIN(4, 16), 4, 3 }, /* SD3_DAT7 */
  5055. { RCAR_GP_PIN(4, 17), 0, 3 }, /* SD3_DS */
  5056. } },
  5057. { PINMUX_DRIVE_REG("DRVCTRL17", 0xe6060344) {
  5058. { RCAR_GP_PIN(3, 12), 28, 3 }, /* SD0_CD */
  5059. { RCAR_GP_PIN(3, 13), 24, 3 }, /* SD0_WP */
  5060. { RCAR_GP_PIN(3, 14), 20, 3 }, /* SD1_CD */
  5061. { RCAR_GP_PIN(3, 15), 16, 3 }, /* SD1_WP */
  5062. { RCAR_GP_PIN(5, 0), 12, 3 }, /* SCK0 */
  5063. { RCAR_GP_PIN(5, 1), 8, 3 }, /* RX0 */
  5064. { RCAR_GP_PIN(5, 2), 4, 3 }, /* TX0 */
  5065. { RCAR_GP_PIN(5, 3), 0, 3 }, /* CTS0 */
  5066. } },
  5067. { PINMUX_DRIVE_REG("DRVCTRL18", 0xe6060348) {
  5068. { RCAR_GP_PIN(5, 4), 28, 3 }, /* RTS0_TANS */
  5069. { RCAR_GP_PIN(5, 5), 24, 3 }, /* RX1 */
  5070. { RCAR_GP_PIN(5, 6), 20, 3 }, /* TX1 */
  5071. { RCAR_GP_PIN(5, 7), 16, 3 }, /* CTS1 */
  5072. { RCAR_GP_PIN(5, 8), 12, 3 }, /* RTS1_TANS */
  5073. { RCAR_GP_PIN(5, 9), 8, 3 }, /* SCK2 */
  5074. { RCAR_GP_PIN(5, 10), 4, 3 }, /* TX2 */
  5075. { RCAR_GP_PIN(5, 11), 0, 3 }, /* RX2 */
  5076. } },
  5077. { PINMUX_DRIVE_REG("DRVCTRL19", 0xe606034c) {
  5078. { RCAR_GP_PIN(5, 12), 28, 3 }, /* HSCK0 */
  5079. { RCAR_GP_PIN(5, 13), 24, 3 }, /* HRX0 */
  5080. { RCAR_GP_PIN(5, 14), 20, 3 }, /* HTX0 */
  5081. { RCAR_GP_PIN(5, 15), 16, 3 }, /* HCTS0 */
  5082. { RCAR_GP_PIN(5, 16), 12, 3 }, /* HRTS0 */
  5083. { RCAR_GP_PIN(5, 17), 8, 3 }, /* MSIOF0_SCK */
  5084. { RCAR_GP_PIN(5, 18), 4, 3 }, /* MSIOF0_SYNC */
  5085. { RCAR_GP_PIN(5, 19), 0, 3 }, /* MSIOF0_SS1 */
  5086. } },
  5087. { PINMUX_DRIVE_REG("DRVCTRL20", 0xe6060350) {
  5088. { RCAR_GP_PIN(5, 20), 28, 3 }, /* MSIOF0_TXD */
  5089. { RCAR_GP_PIN(5, 21), 24, 3 }, /* MSIOF0_SS2 */
  5090. { RCAR_GP_PIN(5, 22), 20, 3 }, /* MSIOF0_RXD */
  5091. { RCAR_GP_PIN(5, 23), 16, 3 }, /* MLB_CLK */
  5092. { RCAR_GP_PIN(5, 24), 12, 3 }, /* MLB_SIG */
  5093. { RCAR_GP_PIN(5, 25), 8, 3 }, /* MLB_DAT */
  5094. { PIN_NUMBER('H', 37), 4, 3 }, /* MLB_REF */
  5095. { RCAR_GP_PIN(6, 0), 0, 3 }, /* SSI_SCK01239 */
  5096. } },
  5097. { PINMUX_DRIVE_REG("DRVCTRL21", 0xe6060354) {
  5098. { RCAR_GP_PIN(6, 1), 28, 3 }, /* SSI_WS01239 */
  5099. { RCAR_GP_PIN(6, 2), 24, 3 }, /* SSI_SDATA0 */
  5100. { RCAR_GP_PIN(6, 3), 20, 3 }, /* SSI_SDATA1 */
  5101. { RCAR_GP_PIN(6, 4), 16, 3 }, /* SSI_SDATA2 */
  5102. { RCAR_GP_PIN(6, 5), 12, 3 }, /* SSI_SCK34 */
  5103. { RCAR_GP_PIN(6, 6), 8, 3 }, /* SSI_WS34 */
  5104. { RCAR_GP_PIN(6, 7), 4, 3 }, /* SSI_SDATA3 */
  5105. { RCAR_GP_PIN(6, 8), 0, 3 }, /* SSI_SCK4 */
  5106. } },
  5107. { PINMUX_DRIVE_REG("DRVCTRL22", 0xe6060358) {
  5108. { RCAR_GP_PIN(6, 9), 28, 3 }, /* SSI_WS4 */
  5109. { RCAR_GP_PIN(6, 10), 24, 3 }, /* SSI_SDATA4 */
  5110. { RCAR_GP_PIN(6, 11), 20, 3 }, /* SSI_SCK5 */
  5111. { RCAR_GP_PIN(6, 12), 16, 3 }, /* SSI_WS5 */
  5112. { RCAR_GP_PIN(6, 13), 12, 3 }, /* SSI_SDATA5 */
  5113. { RCAR_GP_PIN(6, 14), 8, 3 }, /* SSI_SCK6 */
  5114. { RCAR_GP_PIN(6, 15), 4, 3 }, /* SSI_WS6 */
  5115. { RCAR_GP_PIN(6, 16), 0, 3 }, /* SSI_SDATA6 */
  5116. } },
  5117. { PINMUX_DRIVE_REG("DRVCTRL23", 0xe606035c) {
  5118. { RCAR_GP_PIN(6, 17), 28, 3 }, /* SSI_SCK78 */
  5119. { RCAR_GP_PIN(6, 18), 24, 3 }, /* SSI_WS78 */
  5120. { RCAR_GP_PIN(6, 19), 20, 3 }, /* SSI_SDATA7 */
  5121. { RCAR_GP_PIN(6, 20), 16, 3 }, /* SSI_SDATA8 */
  5122. { RCAR_GP_PIN(6, 21), 12, 3 }, /* SSI_SDATA9 */
  5123. { RCAR_GP_PIN(6, 22), 8, 3 }, /* AUDIO_CLKA */
  5124. { RCAR_GP_PIN(6, 23), 4, 3 }, /* AUDIO_CLKB */
  5125. { RCAR_GP_PIN(6, 24), 0, 3 }, /* USB0_PWEN */
  5126. } },
  5127. { PINMUX_DRIVE_REG("DRVCTRL24", 0xe6060360) {
  5128. { RCAR_GP_PIN(6, 25), 28, 3 }, /* USB0_OVC */
  5129. { RCAR_GP_PIN(6, 26), 24, 3 }, /* USB1_PWEN */
  5130. { RCAR_GP_PIN(6, 27), 20, 3 }, /* USB1_OVC */
  5131. { RCAR_GP_PIN(6, 28), 16, 3 }, /* USB30_PWEN */
  5132. { RCAR_GP_PIN(6, 29), 12, 3 }, /* USB30_OVC */
  5133. { RCAR_GP_PIN(6, 30), 8, 3 }, /* USB31_PWEN */
  5134. { RCAR_GP_PIN(6, 31), 4, 3 }, /* USB31_OVC */
  5135. } },
  5136. { },
  5137. };
  5138. static int r8a7795_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl)
  5139. {
  5140. int bit = -EINVAL;
  5141. *pocctrl = 0xe6060380;
  5142. if (pin >= RCAR_GP_PIN(3, 0) && pin <= RCAR_GP_PIN(3, 11))
  5143. bit = pin & 0x1f;
  5144. if (pin >= RCAR_GP_PIN(4, 0) && pin <= RCAR_GP_PIN(4, 17))
  5145. bit = (pin & 0x1f) + 12;
  5146. return bit;
  5147. }
  5148. #define PUEN 0xe6060400
  5149. #define PUD 0xe6060440
  5150. #define PU0 0x00
  5151. #define PU1 0x04
  5152. #define PU2 0x08
  5153. #define PU3 0x0c
  5154. #define PU4 0x10
  5155. #define PU5 0x14
  5156. #define PU6 0x18
  5157. static const struct sh_pfc_bias_info bias_info[] = {
  5158. { RCAR_GP_PIN(2, 11), PU0, 31 }, /* AVB_PHY_INT */
  5159. { RCAR_GP_PIN(2, 10), PU0, 30 }, /* AVB_MAGIC */
  5160. { RCAR_GP_PIN(2, 9), PU0, 29 }, /* AVB_MDC */
  5161. { RCAR_GP_PIN(1, 19), PU1, 31 }, /* A19 */
  5162. { RCAR_GP_PIN(1, 18), PU1, 30 }, /* A18 */
  5163. { RCAR_GP_PIN(1, 17), PU1, 29 }, /* A17 */
  5164. { RCAR_GP_PIN(1, 16), PU1, 28 }, /* A16 */
  5165. { RCAR_GP_PIN(1, 15), PU1, 27 }, /* A15 */
  5166. { RCAR_GP_PIN(1, 14), PU1, 26 }, /* A14 */
  5167. { RCAR_GP_PIN(1, 13), PU1, 25 }, /* A13 */
  5168. { RCAR_GP_PIN(1, 12), PU1, 24 }, /* A12 */
  5169. { RCAR_GP_PIN(1, 11), PU1, 23 }, /* A11 */
  5170. { RCAR_GP_PIN(1, 10), PU1, 22 }, /* A10 */
  5171. { RCAR_GP_PIN(1, 9), PU1, 21 }, /* A9 */
  5172. { RCAR_GP_PIN(1, 8), PU1, 20 }, /* A8 */
  5173. { RCAR_GP_PIN(1, 7), PU1, 19 }, /* A7 */
  5174. { RCAR_GP_PIN(1, 6), PU1, 18 }, /* A6 */
  5175. { RCAR_GP_PIN(1, 5), PU1, 17 }, /* A5 */
  5176. { RCAR_GP_PIN(1, 4), PU1, 16 }, /* A4 */
  5177. { RCAR_GP_PIN(1, 3), PU1, 15 }, /* A3 */
  5178. { RCAR_GP_PIN(1, 2), PU1, 14 }, /* A2 */
  5179. { RCAR_GP_PIN(1, 1), PU1, 13 }, /* A1 */
  5180. { RCAR_GP_PIN(1, 0), PU1, 12 }, /* A0 */
  5181. { RCAR_GP_PIN(2, 8), PU1, 11 }, /* PWM2_A */
  5182. { RCAR_GP_PIN(2, 7), PU1, 10 }, /* PWM1_A */
  5183. { RCAR_GP_PIN(2, 6), PU1, 9 }, /* PWM0 */
  5184. { RCAR_GP_PIN(2, 5), PU1, 8 }, /* IRQ5 */
  5185. { RCAR_GP_PIN(2, 4), PU1, 7 }, /* IRQ4 */
  5186. { RCAR_GP_PIN(2, 3), PU1, 6 }, /* IRQ3 */
  5187. { RCAR_GP_PIN(2, 2), PU1, 5 }, /* IRQ2 */
  5188. { RCAR_GP_PIN(2, 1), PU1, 4 }, /* IRQ1 */
  5189. { RCAR_GP_PIN(2, 0), PU1, 3 }, /* IRQ0 */
  5190. { RCAR_GP_PIN(2, 14), PU1, 2 }, /* AVB_AVTP_CAPTURE_A */
  5191. { RCAR_GP_PIN(2, 13), PU1, 1 }, /* AVB_AVTP_MATCH_A */
  5192. { RCAR_GP_PIN(2, 12), PU1, 0 }, /* AVB_LINK */
  5193. { RCAR_GP_PIN(7, 3), PU2, 29 }, /* HDMI1_CEC */
  5194. { RCAR_GP_PIN(7, 2), PU2, 28 }, /* HDMI0_CEC */
  5195. { RCAR_GP_PIN(7, 1), PU2, 27 }, /* AVS2 */
  5196. { RCAR_GP_PIN(7, 0), PU2, 26 }, /* AVS1 */
  5197. { RCAR_GP_PIN(0, 15), PU2, 25 }, /* D15 */
  5198. { RCAR_GP_PIN(0, 14), PU2, 24 }, /* D14 */
  5199. { RCAR_GP_PIN(0, 13), PU2, 23 }, /* D13 */
  5200. { RCAR_GP_PIN(0, 12), PU2, 22 }, /* D12 */
  5201. { RCAR_GP_PIN(0, 11), PU2, 21 }, /* D11 */
  5202. { RCAR_GP_PIN(0, 10), PU2, 20 }, /* D10 */
  5203. { RCAR_GP_PIN(0, 9), PU2, 19 }, /* D9 */
  5204. { RCAR_GP_PIN(0, 8), PU2, 18 }, /* D8 */
  5205. { RCAR_GP_PIN(0, 7), PU2, 17 }, /* D7 */
  5206. { RCAR_GP_PIN(0, 6), PU2, 16 }, /* D6 */
  5207. { RCAR_GP_PIN(0, 5), PU2, 15 }, /* D5 */
  5208. { RCAR_GP_PIN(0, 4), PU2, 14 }, /* D4 */
  5209. { RCAR_GP_PIN(0, 3), PU2, 13 }, /* D3 */
  5210. { RCAR_GP_PIN(0, 2), PU2, 12 }, /* D2 */
  5211. { RCAR_GP_PIN(0, 1), PU2, 11 }, /* D1 */
  5212. { RCAR_GP_PIN(0, 0), PU2, 10 }, /* D0 */
  5213. { RCAR_GP_PIN(1, 27), PU2, 8 }, /* EX_WAIT0_A */
  5214. { RCAR_GP_PIN(1, 26), PU2, 7 }, /* WE1_N */
  5215. { RCAR_GP_PIN(1, 25), PU2, 6 }, /* WE0_N */
  5216. { RCAR_GP_PIN(1, 24), PU2, 5 }, /* RD_WR_N */
  5217. { RCAR_GP_PIN(1, 23), PU2, 4 }, /* RD_N */
  5218. { RCAR_GP_PIN(1, 22), PU2, 3 }, /* BS_N */
  5219. { RCAR_GP_PIN(1, 21), PU2, 2 }, /* CS1_N_A26 */
  5220. { RCAR_GP_PIN(1, 20), PU2, 1 }, /* CS0_N */
  5221. { RCAR_GP_PIN(4, 9), PU3, 31 }, /* SD3_DAT0 */
  5222. { RCAR_GP_PIN(4, 8), PU3, 30 }, /* SD3_CMD */
  5223. { RCAR_GP_PIN(4, 7), PU3, 29 }, /* SD3_CLK */
  5224. { RCAR_GP_PIN(4, 6), PU3, 28 }, /* SD2_DS */
  5225. { RCAR_GP_PIN(4, 5), PU3, 27 }, /* SD2_DAT3 */
  5226. { RCAR_GP_PIN(4, 4), PU3, 26 }, /* SD2_DAT2 */
  5227. { RCAR_GP_PIN(4, 3), PU3, 25 }, /* SD2_DAT1 */
  5228. { RCAR_GP_PIN(4, 2), PU3, 24 }, /* SD2_DAT0 */
  5229. { RCAR_GP_PIN(4, 1), PU3, 23 }, /* SD2_CMD */
  5230. { RCAR_GP_PIN(4, 0), PU3, 22 }, /* SD2_CLK */
  5231. { RCAR_GP_PIN(3, 11), PU3, 21 }, /* SD1_DAT3 */
  5232. { RCAR_GP_PIN(3, 10), PU3, 20 }, /* SD1_DAT2 */
  5233. { RCAR_GP_PIN(3, 9), PU3, 19 }, /* SD1_DAT1 */
  5234. { RCAR_GP_PIN(3, 8), PU3, 18 }, /* SD1_DAT0 */
  5235. { RCAR_GP_PIN(3, 7), PU3, 17 }, /* SD1_CMD */
  5236. { RCAR_GP_PIN(3, 6), PU3, 16 }, /* SD1_CLK */
  5237. { RCAR_GP_PIN(3, 5), PU3, 15 }, /* SD0_DAT3 */
  5238. { RCAR_GP_PIN(3, 4), PU3, 14 }, /* SD0_DAT2 */
  5239. { RCAR_GP_PIN(3, 3), PU3, 13 }, /* SD0_DAT1 */
  5240. { RCAR_GP_PIN(3, 2), PU3, 12 }, /* SD0_DAT0 */
  5241. { RCAR_GP_PIN(3, 1), PU3, 11 }, /* SD0_CMD */
  5242. { RCAR_GP_PIN(3, 0), PU3, 10 }, /* SD0_CLK */
  5243. { RCAR_GP_PIN(5, 19), PU4, 31 }, /* MSIOF0_SS1 */
  5244. { RCAR_GP_PIN(5, 18), PU4, 30 }, /* MSIOF0_SYNC */
  5245. { RCAR_GP_PIN(5, 17), PU4, 29 }, /* MSIOF0_SCK */
  5246. { RCAR_GP_PIN(5, 16), PU4, 28 }, /* HRTS0_N */
  5247. { RCAR_GP_PIN(5, 15), PU4, 27 }, /* HCTS0_N */
  5248. { RCAR_GP_PIN(5, 14), PU4, 26 }, /* HTX0 */
  5249. { RCAR_GP_PIN(5, 13), PU4, 25 }, /* HRX0 */
  5250. { RCAR_GP_PIN(5, 12), PU4, 24 }, /* HSCK0 */
  5251. { RCAR_GP_PIN(5, 11), PU4, 23 }, /* RX2_A */
  5252. { RCAR_GP_PIN(5, 10), PU4, 22 }, /* TX2_A */
  5253. { RCAR_GP_PIN(5, 9), PU4, 21 }, /* SCK2 */
  5254. { RCAR_GP_PIN(5, 8), PU4, 20 }, /* RTS1_N_TANS */
  5255. { RCAR_GP_PIN(5, 7), PU4, 19 }, /* CTS1_N */
  5256. { RCAR_GP_PIN(5, 6), PU4, 18 }, /* TX1_A */
  5257. { RCAR_GP_PIN(5, 5), PU4, 17 }, /* RX1_A */
  5258. { RCAR_GP_PIN(5, 4), PU4, 16 }, /* RTS0_N_TANS */
  5259. { RCAR_GP_PIN(5, 3), PU4, 15 }, /* CTS0_N */
  5260. { RCAR_GP_PIN(5, 2), PU4, 14 }, /* TX0 */
  5261. { RCAR_GP_PIN(5, 1), PU4, 13 }, /* RX0 */
  5262. { RCAR_GP_PIN(5, 0), PU4, 12 }, /* SCK0 */
  5263. { RCAR_GP_PIN(3, 15), PU4, 11 }, /* SD1_WP */
  5264. { RCAR_GP_PIN(3, 14), PU4, 10 }, /* SD1_CD */
  5265. { RCAR_GP_PIN(3, 13), PU4, 9 }, /* SD0_WP */
  5266. { RCAR_GP_PIN(3, 12), PU4, 8 }, /* SD0_CD */
  5267. { RCAR_GP_PIN(4, 17), PU4, 7 }, /* SD3_DS */
  5268. { RCAR_GP_PIN(4, 16), PU4, 6 }, /* SD3_DAT7 */
  5269. { RCAR_GP_PIN(4, 15), PU4, 5 }, /* SD3_DAT6 */
  5270. { RCAR_GP_PIN(4, 14), PU4, 4 }, /* SD3_DAT5 */
  5271. { RCAR_GP_PIN(4, 13), PU4, 3 }, /* SD3_DAT4 */
  5272. { RCAR_GP_PIN(4, 12), PU4, 2 }, /* SD3_DAT3 */
  5273. { RCAR_GP_PIN(4, 11), PU4, 1 }, /* SD3_DAT2 */
  5274. { RCAR_GP_PIN(4, 10), PU4, 0 }, /* SD3_DAT1 */
  5275. { RCAR_GP_PIN(6, 24), PU5, 31 }, /* USB0_PWEN */
  5276. { RCAR_GP_PIN(6, 23), PU5, 30 }, /* AUDIO_CLKB_B */
  5277. { RCAR_GP_PIN(6, 22), PU5, 29 }, /* AUDIO_CLKA_A */
  5278. { RCAR_GP_PIN(6, 21), PU5, 28 }, /* SSI_SDATA9_A */
  5279. { RCAR_GP_PIN(6, 20), PU5, 27 }, /* SSI_SDATA8 */
  5280. { RCAR_GP_PIN(6, 19), PU5, 26 }, /* SSI_SDATA7 */
  5281. { RCAR_GP_PIN(6, 18), PU5, 25 }, /* SSI_WS78 */
  5282. { RCAR_GP_PIN(6, 17), PU5, 24 }, /* SSI_SCK78 */
  5283. { RCAR_GP_PIN(6, 16), PU5, 23 }, /* SSI_SDATA6 */
  5284. { RCAR_GP_PIN(6, 15), PU5, 22 }, /* SSI_WS6 */
  5285. { RCAR_GP_PIN(6, 14), PU5, 21 }, /* SSI_SCK6 */
  5286. { RCAR_GP_PIN(6, 13), PU5, 20 }, /* SSI_SDATA5 */
  5287. { RCAR_GP_PIN(6, 12), PU5, 19 }, /* SSI_WS5 */
  5288. { RCAR_GP_PIN(6, 11), PU5, 18 }, /* SSI_SCK5 */
  5289. { RCAR_GP_PIN(6, 10), PU5, 17 }, /* SSI_SDATA4 */
  5290. { RCAR_GP_PIN(6, 9), PU5, 16 }, /* SSI_WS4 */
  5291. { RCAR_GP_PIN(6, 8), PU5, 15 }, /* SSI_SCK4 */
  5292. { RCAR_GP_PIN(6, 7), PU5, 14 }, /* SSI_SDATA3 */
  5293. { RCAR_GP_PIN(6, 6), PU5, 13 }, /* SSI_WS34 */
  5294. { RCAR_GP_PIN(6, 5), PU5, 12 }, /* SSI_SCK34 */
  5295. { RCAR_GP_PIN(6, 4), PU5, 11 }, /* SSI_SDATA2_A */
  5296. { RCAR_GP_PIN(6, 3), PU5, 10 }, /* SSI_SDATA1_A */
  5297. { RCAR_GP_PIN(6, 2), PU5, 9 }, /* SSI_SDATA0 */
  5298. { RCAR_GP_PIN(6, 1), PU5, 8 }, /* SSI_WS01239 */
  5299. { RCAR_GP_PIN(6, 0), PU5, 7 }, /* SSI_SCK01239 */
  5300. { RCAR_GP_PIN(5, 25), PU5, 5 }, /* MLB_DAT */
  5301. { RCAR_GP_PIN(5, 24), PU5, 4 }, /* MLB_SIG */
  5302. { RCAR_GP_PIN(5, 23), PU5, 3 }, /* MLB_CLK */
  5303. { RCAR_GP_PIN(5, 22), PU5, 2 }, /* MSIOF0_RXD */
  5304. { RCAR_GP_PIN(5, 21), PU5, 1 }, /* MSIOF0_SS2 */
  5305. { RCAR_GP_PIN(5, 20), PU5, 0 }, /* MSIOF0_TXD */
  5306. { RCAR_GP_PIN(6, 31), PU6, 6 }, /* USB31_OVC */
  5307. { RCAR_GP_PIN(6, 30), PU6, 5 }, /* USB31_PWEN */
  5308. { RCAR_GP_PIN(6, 29), PU6, 4 }, /* USB30_OVC */
  5309. { RCAR_GP_PIN(6, 28), PU6, 3 }, /* USB30_PWEN */
  5310. { RCAR_GP_PIN(6, 27), PU6, 2 }, /* USB1_OVC */
  5311. { RCAR_GP_PIN(6, 26), PU6, 1 }, /* USB1_PWEN */
  5312. { RCAR_GP_PIN(6, 25), PU6, 0 }, /* USB0_OVC */
  5313. };
  5314. static unsigned int r8a7795_pinmux_get_bias(struct sh_pfc *pfc,
  5315. unsigned int pin)
  5316. {
  5317. const struct sh_pfc_bias_info *info;
  5318. u32 reg;
  5319. u32 bit;
  5320. info = sh_pfc_pin_to_bias_info(bias_info, ARRAY_SIZE(bias_info), pin);
  5321. if (!info)
  5322. return PIN_CONFIG_BIAS_DISABLE;
  5323. reg = info->reg;
  5324. bit = BIT(info->bit);
  5325. if (!(sh_pfc_read_reg(pfc, PUEN + reg, 32) & bit))
  5326. return PIN_CONFIG_BIAS_DISABLE;
  5327. else if (sh_pfc_read_reg(pfc, PUD + reg, 32) & bit)
  5328. return PIN_CONFIG_BIAS_PULL_UP;
  5329. else
  5330. return PIN_CONFIG_BIAS_PULL_DOWN;
  5331. }
  5332. static void r8a7795_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin,
  5333. unsigned int bias)
  5334. {
  5335. const struct sh_pfc_bias_info *info;
  5336. u32 enable, updown;
  5337. u32 reg;
  5338. u32 bit;
  5339. info = sh_pfc_pin_to_bias_info(bias_info, ARRAY_SIZE(bias_info), pin);
  5340. if (!info)
  5341. return;
  5342. reg = info->reg;
  5343. bit = BIT(info->bit);
  5344. enable = sh_pfc_read_reg(pfc, PUEN + reg, 32) & ~bit;
  5345. if (bias != PIN_CONFIG_BIAS_DISABLE)
  5346. enable |= bit;
  5347. updown = sh_pfc_read_reg(pfc, PUD + reg, 32) & ~bit;
  5348. if (bias == PIN_CONFIG_BIAS_PULL_UP)
  5349. updown |= bit;
  5350. sh_pfc_write_reg(pfc, PUD + reg, 32, updown);
  5351. sh_pfc_write_reg(pfc, PUEN + reg, 32, enable);
  5352. }
  5353. static const struct sh_pfc_soc_operations r8a7795_pinmux_ops = {
  5354. .pin_to_pocctrl = r8a7795_pin_to_pocctrl,
  5355. .get_bias = r8a7795_pinmux_get_bias,
  5356. .set_bias = r8a7795_pinmux_set_bias,
  5357. };
  5358. const struct sh_pfc_soc_info r8a7795_pinmux_info = {
  5359. .name = "r8a77950_pfc",
  5360. .ops = &r8a7795_pinmux_ops,
  5361. .unlock_reg = 0xe6060000, /* PMMR */
  5362. .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
  5363. .pins = pinmux_pins,
  5364. .nr_pins = ARRAY_SIZE(pinmux_pins),
  5365. .groups = pinmux_groups,
  5366. .nr_groups = ARRAY_SIZE(pinmux_groups),
  5367. .functions = pinmux_functions,
  5368. .nr_functions = ARRAY_SIZE(pinmux_functions),
  5369. .cfg_regs = pinmux_config_regs,
  5370. .drive_regs = pinmux_drive_regs,
  5371. .pinmux_data = pinmux_data,
  5372. .pinmux_data_size = ARRAY_SIZE(pinmux_data),
  5373. };