pfc-r8a7790.c 183 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730
  1. /*
  2. * R8A7790 processor support
  3. *
  4. * Copyright (C) 2013 Renesas Electronics Corporation
  5. * Copyright (C) 2013 Magnus Damm
  6. * Copyright (C) 2012 Renesas Solutions Corp.
  7. * Copyright (C) 2012 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; version 2 of the
  12. * License.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  22. */
  23. #include <linux/io.h>
  24. #include <linux/kernel.h>
  25. #include "sh_pfc.h"
  26. /*
  27. * All pins assigned to GPIO bank 3 can be used for SD interfaces in
  28. * which case they support both 3.3V and 1.8V signalling.
  29. */
  30. #define CPU_ALL_PORT(fn, sfx) \
  31. PORT_GP_32(0, fn, sfx), \
  32. PORT_GP_30(1, fn, sfx), \
  33. PORT_GP_30(2, fn, sfx), \
  34. PORT_GP_CFG_32(3, fn, sfx, SH_PFC_PIN_CFG_IO_VOLTAGE), \
  35. PORT_GP_32(4, fn, sfx), \
  36. PORT_GP_32(5, fn, sfx)
  37. enum {
  38. PINMUX_RESERVED = 0,
  39. PINMUX_DATA_BEGIN,
  40. GP_ALL(DATA),
  41. PINMUX_DATA_END,
  42. PINMUX_FUNCTION_BEGIN,
  43. GP_ALL(FN),
  44. /* GPSR0 */
  45. FN_IP0_2_0, FN_IP0_5_3, FN_IP0_8_6, FN_IP0_11_9, FN_IP0_15_12,
  46. FN_IP0_19_16, FN_IP0_22_20, FN_IP0_26_23, FN_IP0_30_27,
  47. FN_IP1_3_0, FN_IP1_7_4, FN_IP1_11_8, FN_IP1_14_12,
  48. FN_IP1_17_15, FN_IP1_21_18, FN_IP1_25_22, FN_IP1_27_26,
  49. FN_IP1_29_28, FN_IP2_2_0, FN_IP2_5_3, FN_IP2_8_6, FN_IP2_11_9,
  50. FN_IP2_14_12, FN_IP2_17_15, FN_IP2_21_18, FN_IP2_25_22,
  51. FN_IP2_28_26, FN_IP3_3_0, FN_IP3_7_4, FN_IP3_11_8,
  52. FN_IP3_14_12, FN_IP3_17_15,
  53. /* GPSR1 */
  54. FN_IP3_19_18, FN_IP3_22_20, FN_IP3_25_23, FN_IP3_28_26,
  55. FN_IP3_31_29, FN_IP4_2_0, FN_IP4_5_3, FN_IP4_8_6, FN_IP4_11_9,
  56. FN_IP4_14_12, FN_IP4_17_15, FN_IP4_20_18, FN_IP4_23_21,
  57. FN_IP4_26_24, FN_IP4_29_27, FN_IP5_2_0, FN_IP5_5_3, FN_IP5_9_6,
  58. FN_IP5_12_10, FN_IP5_14_13, FN_IP5_17_15, FN_IP5_20_18,
  59. FN_IP5_23_21, FN_IP5_26_24, FN_IP5_29_27, FN_IP6_2_0,
  60. FN_IP6_5_3, FN_IP6_8_6, FN_IP6_10_9, FN_IP6_13_11,
  61. /* GPSR2 */
  62. FN_IP7_28_27, FN_IP7_30_29, FN_IP8_1_0, FN_IP8_3_2, FN_IP8_5_4,
  63. FN_IP8_7_6, FN_IP8_9_8, FN_IP8_11_10, FN_IP8_13_12, FN_IP8_15_14,
  64. FN_IP8_17_16, FN_IP8_19_18, FN_IP8_21_20, FN_IP8_23_22,
  65. FN_IP8_25_24, FN_IP8_26, FN_IP8_27, FN_VI1_DATA7_VI1_B7,
  66. FN_IP6_16_14, FN_IP6_19_17, FN_IP6_22_20, FN_IP6_25_23,
  67. FN_IP6_28_26, FN_IP6_31_29, FN_IP7_2_0, FN_IP7_5_3, FN_IP7_7_6,
  68. FN_IP7_9_8, FN_IP7_12_10, FN_IP7_15_13,
  69. /* GPSR3 */
  70. FN_IP8_28, FN_IP8_30_29, FN_IP9_1_0, FN_IP9_3_2, FN_IP9_5_4,
  71. FN_IP9_7_6, FN_IP9_11_8, FN_IP9_15_12, FN_IP9_17_16, FN_IP9_19_18,
  72. FN_IP9_21_20, FN_IP9_23_22, FN_IP9_25_24, FN_IP9_27_26,
  73. FN_IP9_31_28, FN_IP10_3_0, FN_IP10_6_4, FN_IP10_10_7, FN_IP10_14_11,
  74. FN_IP10_18_15, FN_IP10_22_19, FN_IP10_25_23, FN_IP10_29_26,
  75. FN_IP11_3_0, FN_IP11_4, FN_IP11_6_5, FN_IP11_8_7, FN_IP11_10_9,
  76. FN_IP11_12_11, FN_IP11_14_13, FN_IP11_17_15, FN_IP11_21_18,
  77. /* GPSR4 */
  78. FN_IP11_23_22, FN_IP11_26_24, FN_IP11_29_27, FN_IP11_31_30,
  79. FN_IP12_1_0, FN_IP12_3_2, FN_IP12_5_4, FN_IP12_7_6, FN_IP12_10_8,
  80. FN_IP12_13_11, FN_IP12_16_14, FN_IP12_19_17, FN_IP12_22_20,
  81. FN_IP12_24_23, FN_IP12_27_25, FN_IP12_30_28, FN_IP13_2_0,
  82. FN_IP13_6_3, FN_IP13_9_7, FN_IP13_12_10, FN_IP13_15_13,
  83. FN_IP13_18_16, FN_IP13_22_19, FN_IP13_25_23, FN_IP13_28_26,
  84. FN_IP13_30_29, FN_IP14_2_0, FN_IP14_5_3, FN_IP14_8_6, FN_IP14_11_9,
  85. FN_IP14_15_12, FN_IP14_18_16,
  86. /* GPSR5 */
  87. FN_IP14_21_19, FN_IP14_24_22, FN_IP14_27_25, FN_IP14_30_28,
  88. FN_IP15_2_0, FN_IP15_5_3, FN_IP15_8_6, FN_IP15_11_9, FN_IP15_13_12,
  89. FN_IP15_15_14, FN_IP15_17_16, FN_IP15_19_18, FN_IP15_22_20,
  90. FN_IP15_25_23, FN_IP15_27_26, FN_IP15_29_28, FN_IP16_2_0,
  91. FN_IP16_5_3, FN_USB0_PWEN, FN_USB0_OVC_VBUS, FN_IP16_6, FN_IP16_7,
  92. FN_USB2_PWEN, FN_USB2_OVC, FN_AVS1, FN_AVS2, FN_DU_DOTCLKIN0,
  93. FN_IP7_26_25, FN_DU_DOTCLKIN2, FN_IP7_18_16, FN_IP7_21_19, FN_IP7_24_22,
  94. /* IPSR0 */
  95. FN_D0, FN_MSIOF3_SCK_B, FN_VI3_DATA0, FN_VI0_G4, FN_VI0_G4_B,
  96. FN_D1, FN_MSIOF3_SYNC_B, FN_VI3_DATA1, FN_VI0_G5,
  97. FN_VI0_G5_B, FN_D2, FN_MSIOF3_RXD_B, FN_VI3_DATA2,
  98. FN_VI0_G6, FN_VI0_G6_B, FN_D3, FN_MSIOF3_TXD_B,
  99. FN_VI3_DATA3, FN_VI0_G7, FN_VI0_G7_B, FN_D4,
  100. FN_SCIFB1_RXD_F, FN_SCIFB0_RXD_C, FN_VI3_DATA4,
  101. FN_VI0_R0, FN_VI0_R0_B, FN_RX0_B, FN_D5,
  102. FN_SCIFB1_TXD_F, FN_SCIFB0_TXD_C, FN_VI3_DATA5,
  103. FN_VI0_R1, FN_VI0_R1_B, FN_TX0_B, FN_D6,
  104. FN_IIC2_SCL_C, FN_VI3_DATA6, FN_VI0_R2, FN_VI0_R2_B,
  105. FN_I2C2_SCL_C, FN_D7, FN_AD_DI_B, FN_IIC2_SDA_C,
  106. FN_VI3_DATA7, FN_VI0_R3, FN_VI0_R3_B, FN_I2C2_SDA_C, FN_TCLK1,
  107. FN_D8, FN_SCIFA1_SCK_C, FN_AVB_TXD0,
  108. FN_VI0_G0, FN_VI0_G0_B, FN_VI2_DATA0_VI2_B0,
  109. /* IPSR1 */
  110. FN_D9, FN_SCIFA1_RXD_C, FN_AVB_TXD1,
  111. FN_VI0_G1, FN_VI0_G1_B, FN_VI2_DATA1_VI2_B1, FN_D10,
  112. FN_SCIFA1_TXD_C, FN_AVB_TXD2,
  113. FN_VI0_G2, FN_VI0_G2_B, FN_VI2_DATA2_VI2_B2, FN_D11,
  114. FN_SCIFA1_CTS_N_C, FN_AVB_TXD3,
  115. FN_VI0_G3, FN_VI0_G3_B, FN_VI2_DATA3_VI2_B3,
  116. FN_D12, FN_SCIFA1_RTS_N_C, FN_AVB_TXD4,
  117. FN_VI0_HSYNC_N, FN_VI0_HSYNC_N_B, FN_VI2_DATA4_VI2_B4,
  118. FN_D13, FN_AVB_TXD5, FN_VI0_VSYNC_N,
  119. FN_VI0_VSYNC_N_B, FN_VI2_DATA5_VI2_B5, FN_D14,
  120. FN_SCIFB1_RXD_C, FN_AVB_TXD6, FN_RX1_B,
  121. FN_VI0_CLKENB, FN_VI0_CLKENB_B, FN_VI2_DATA6_VI2_B6,
  122. FN_D15, FN_SCIFB1_TXD_C, FN_AVB_TXD7, FN_TX1_B,
  123. FN_VI0_FIELD, FN_VI0_FIELD_B, FN_VI2_DATA7_VI2_B7,
  124. FN_A0, FN_PWM3, FN_A1, FN_PWM4,
  125. /* IPSR2 */
  126. FN_A2, FN_PWM5, FN_MSIOF1_SS1_B, FN_A3,
  127. FN_PWM6, FN_MSIOF1_SS2_B, FN_A4, FN_MSIOF1_TXD_B,
  128. FN_TPU0TO0, FN_A5, FN_SCIFA1_TXD_B, FN_TPU0TO1,
  129. FN_A6, FN_SCIFA1_RTS_N_B, FN_TPU0TO2, FN_A7,
  130. FN_SCIFA1_SCK_B, FN_AUDIO_CLKOUT_B, FN_TPU0TO3,
  131. FN_A8, FN_SCIFA1_RXD_B, FN_SSI_SCK5_B, FN_VI0_R4,
  132. FN_VI0_R4_B, FN_SCIFB2_RXD_C, FN_RX2_B, FN_VI2_DATA0_VI2_B0_B,
  133. FN_A9, FN_SCIFA1_CTS_N_B, FN_SSI_WS5_B, FN_VI0_R5,
  134. FN_VI0_R5_B, FN_SCIFB2_TXD_C, FN_TX2_B, FN_VI2_DATA1_VI2_B1_B,
  135. FN_A10, FN_SSI_SDATA5_B, FN_MSIOF2_SYNC, FN_VI0_R6,
  136. FN_VI0_R6_B, FN_VI2_DATA2_VI2_B2_B,
  137. /* IPSR3 */
  138. FN_A11, FN_SCIFB2_CTS_N_B, FN_MSIOF2_SCK, FN_VI1_R0,
  139. FN_VI1_R0_B, FN_VI2_G0, FN_VI2_DATA3_VI2_B3_B,
  140. FN_A12, FN_SCIFB2_RXD_B, FN_MSIOF2_TXD, FN_VI1_R1,
  141. FN_VI1_R1_B, FN_VI2_G1, FN_VI2_DATA4_VI2_B4_B,
  142. FN_A13, FN_SCIFB2_RTS_N_B, FN_EX_WAIT2,
  143. FN_MSIOF2_RXD, FN_VI1_R2, FN_VI1_R2_B, FN_VI2_G2,
  144. FN_VI2_DATA5_VI2_B5_B, FN_A14, FN_SCIFB2_TXD_B,
  145. FN_ATACS11_N, FN_MSIOF2_SS1, FN_A15, FN_SCIFB2_SCK_B,
  146. FN_ATARD1_N, FN_MSIOF2_SS2, FN_A16, FN_ATAWR1_N,
  147. FN_A17, FN_AD_DO_B, FN_ATADIR1_N, FN_A18,
  148. FN_AD_CLK_B, FN_ATAG1_N, FN_A19, FN_AD_NCS_N_B,
  149. FN_ATACS01_N, FN_EX_WAIT0_B, FN_A20, FN_SPCLK,
  150. FN_VI1_R3, FN_VI1_R3_B, FN_VI2_G4,
  151. /* IPSR4 */
  152. FN_A21, FN_MOSI_IO0, FN_VI1_R4, FN_VI1_R4_B, FN_VI2_G5,
  153. FN_A22, FN_MISO_IO1, FN_VI1_R5, FN_VI1_R5_B,
  154. FN_VI2_G6, FN_A23, FN_IO2, FN_VI1_G7,
  155. FN_VI1_G7_B, FN_VI2_G7, FN_A24, FN_IO3,
  156. FN_VI1_R7, FN_VI1_R7_B, FN_VI2_CLKENB,
  157. FN_VI2_CLKENB_B, FN_A25, FN_SSL, FN_VI1_G6,
  158. FN_VI1_G6_B, FN_VI2_FIELD, FN_VI2_FIELD_B, FN_CS0_N,
  159. FN_VI1_R6, FN_VI1_R6_B, FN_VI2_G3, FN_MSIOF0_SS2_B,
  160. FN_CS1_N_A26, FN_SPEEDIN, FN_VI0_R7, FN_VI0_R7_B,
  161. FN_VI2_CLK, FN_VI2_CLK_B, FN_EX_CS0_N, FN_HRX1_B,
  162. FN_VI1_G5, FN_VI1_G5_B, FN_VI2_R0, FN_HTX0_B,
  163. FN_MSIOF0_SS1_B, FN_EX_CS1_N, FN_GPS_CLK,
  164. FN_HCTS1_N_B, FN_VI1_FIELD, FN_VI1_FIELD_B,
  165. FN_VI2_R1, FN_EX_CS2_N, FN_GPS_SIGN, FN_HRTS1_N_B,
  166. FN_VI3_CLKENB, FN_VI1_G0, FN_VI1_G0_B, FN_VI2_R2,
  167. /* IPSR5 */
  168. FN_EX_CS3_N, FN_GPS_MAG, FN_VI3_FIELD, FN_VI1_G1, FN_VI1_G1_B,
  169. FN_VI2_R3, FN_EX_CS4_N, FN_MSIOF1_SCK_B, FN_VI3_HSYNC_N,
  170. FN_VI2_HSYNC_N, FN_IIC1_SCL, FN_VI2_HSYNC_N_B,
  171. FN_INTC_EN0_N, FN_I2C1_SCL, FN_EX_CS5_N, FN_CAN0_RX,
  172. FN_MSIOF1_RXD_B, FN_VI3_VSYNC_N, FN_VI1_G2,
  173. FN_VI1_G2_B, FN_VI2_R4, FN_IIC1_SDA, FN_INTC_EN1_N,
  174. FN_I2C1_SDA, FN_BS_N, FN_IETX, FN_HTX1_B,
  175. FN_CAN1_TX, FN_DRACK0, FN_IETX_C, FN_RD_N,
  176. FN_CAN0_TX, FN_SCIFA0_SCK_B, FN_RD_WR_N, FN_VI1_G3,
  177. FN_VI1_G3_B, FN_VI2_R5, FN_SCIFA0_RXD_B,
  178. FN_INTC_IRQ4_N, FN_WE0_N, FN_IECLK, FN_CAN_CLK,
  179. FN_VI2_VSYNC_N, FN_SCIFA0_TXD_B, FN_VI2_VSYNC_N_B,
  180. FN_WE1_N, FN_IERX, FN_CAN1_RX, FN_VI1_G4,
  181. FN_VI1_G4_B, FN_VI2_R6, FN_SCIFA0_CTS_N_B,
  182. FN_IERX_C, FN_EX_WAIT0, FN_IRQ3, FN_INTC_IRQ3_N,
  183. FN_VI3_CLK, FN_SCIFA0_RTS_N_B, FN_HRX0_B,
  184. FN_MSIOF0_SCK_B, FN_DREQ0_N, FN_VI1_HSYNC_N,
  185. FN_VI1_HSYNC_N_B, FN_VI2_R7, FN_SSI_SCK78_C,
  186. FN_SSI_WS78_B,
  187. /* IPSR6 */
  188. FN_DACK0, FN_IRQ0, FN_INTC_IRQ0_N, FN_SSI_SCK6_B,
  189. FN_VI1_VSYNC_N, FN_VI1_VSYNC_N_B, FN_SSI_WS78_C,
  190. FN_DREQ1_N, FN_VI1_CLKENB, FN_VI1_CLKENB_B,
  191. FN_SSI_SDATA7_C, FN_SSI_SCK78_B, FN_DACK1, FN_IRQ1,
  192. FN_INTC_IRQ1_N, FN_SSI_WS6_B, FN_SSI_SDATA8_C,
  193. FN_DREQ2_N, FN_HSCK1_B, FN_HCTS0_N_B,
  194. FN_MSIOF0_TXD_B, FN_DACK2, FN_IRQ2, FN_INTC_IRQ2_N,
  195. FN_SSI_SDATA6_B, FN_HRTS0_N_B, FN_MSIOF0_RXD_B,
  196. FN_ETH_CRS_DV, FN_STP_ISCLK_0_B,
  197. FN_TS_SDEN0_D, FN_GLO_Q0_C, FN_IIC2_SCL_E,
  198. FN_I2C2_SCL_E, FN_ETH_RX_ER,
  199. FN_STP_ISD_0_B, FN_TS_SPSYNC0_D, FN_GLO_Q1_C,
  200. FN_IIC2_SDA_E, FN_I2C2_SDA_E, FN_ETH_RXD0,
  201. FN_STP_ISEN_0_B, FN_TS_SDAT0_D, FN_GLO_I0_C,
  202. FN_SCIFB1_SCK_G, FN_SCK1_E, FN_ETH_RXD1,
  203. FN_HRX0_E, FN_STP_ISSYNC_0_B,
  204. FN_TS_SCK0_D, FN_GLO_I1_C, FN_SCIFB1_RXD_G,
  205. FN_RX1_E, FN_ETH_LINK, FN_HTX0_E,
  206. FN_STP_IVCXO27_0_B, FN_SCIFB1_TXD_G, FN_TX1_E,
  207. FN_ETH_REF_CLK, FN_HCTS0_N_E,
  208. FN_STP_IVCXO27_1_B, FN_HRX0_F,
  209. /* IPSR7 */
  210. FN_ETH_MDIO, FN_HRTS0_N_E,
  211. FN_SIM0_D_C, FN_HCTS0_N_F, FN_ETH_TXD1,
  212. FN_HTX0_F, FN_BPFCLK_G,
  213. FN_ETH_TX_EN, FN_SIM0_CLK_C,
  214. FN_HRTS0_N_F, FN_ETH_MAGIC,
  215. FN_SIM0_RST_C, FN_ETH_TXD0,
  216. FN_STP_ISCLK_1_B, FN_TS_SDEN1_C, FN_GLO_SCLK_C,
  217. FN_ETH_MDC, FN_STP_ISD_1_B,
  218. FN_TS_SPSYNC1_C, FN_GLO_SDATA_C, FN_PWM0,
  219. FN_SCIFA2_SCK_C, FN_STP_ISEN_1_B, FN_TS_SDAT1_C,
  220. FN_GLO_SS_C, FN_PWM1, FN_SCIFA2_TXD_C,
  221. FN_STP_ISSYNC_1_B, FN_TS_SCK1_C, FN_GLO_RFON_C,
  222. FN_PCMOE_N, FN_PWM2, FN_PWMFSW0, FN_SCIFA2_RXD_C,
  223. FN_PCMWE_N, FN_IECLK_C, FN_DU_DOTCLKIN1,
  224. FN_AUDIO_CLKC, FN_AUDIO_CLKOUT_C, FN_VI0_CLK,
  225. FN_ATACS00_N, FN_AVB_RXD1,
  226. FN_VI0_DATA0_VI0_B0, FN_ATACS10_N, FN_AVB_RXD2,
  227. /* IPSR8 */
  228. FN_VI0_DATA1_VI0_B1, FN_ATARD0_N, FN_AVB_RXD3,
  229. FN_VI0_DATA2_VI0_B2, FN_ATAWR0_N,
  230. FN_AVB_RXD4, FN_VI0_DATA3_VI0_B3, FN_ATADIR0_N,
  231. FN_AVB_RXD5, FN_VI0_DATA4_VI0_B4, FN_ATAG0_N,
  232. FN_AVB_RXD6, FN_VI0_DATA5_VI0_B5, FN_EX_WAIT1,
  233. FN_AVB_RXD7, FN_VI0_DATA6_VI0_B6, FN_AVB_RX_ER,
  234. FN_VI0_DATA7_VI0_B7, FN_AVB_RX_CLK,
  235. FN_VI1_CLK, FN_AVB_RX_DV,
  236. FN_VI1_DATA0_VI1_B0, FN_SCIFA1_SCK_D,
  237. FN_AVB_CRS, FN_VI1_DATA1_VI1_B1,
  238. FN_SCIFA1_RXD_D, FN_AVB_MDC,
  239. FN_VI1_DATA2_VI1_B2, FN_SCIFA1_TXD_D, FN_AVB_MDIO,
  240. FN_VI1_DATA3_VI1_B3, FN_SCIFA1_CTS_N_D,
  241. FN_AVB_GTX_CLK, FN_VI1_DATA4_VI1_B4, FN_SCIFA1_RTS_N_D,
  242. FN_AVB_MAGIC, FN_VI1_DATA5_VI1_B5,
  243. FN_AVB_PHY_INT, FN_VI1_DATA6_VI1_B6, FN_AVB_GTXREFCLK,
  244. FN_SD0_CLK, FN_VI1_DATA0_VI1_B0_B, FN_SD0_CMD,
  245. FN_SCIFB1_SCK_B, FN_VI1_DATA1_VI1_B1_B,
  246. /* IPSR9 */
  247. FN_SD0_DAT0, FN_SCIFB1_RXD_B, FN_VI1_DATA2_VI1_B2_B,
  248. FN_SD0_DAT1, FN_SCIFB1_TXD_B, FN_VI1_DATA3_VI1_B3_B,
  249. FN_SD0_DAT2, FN_SCIFB1_CTS_N_B, FN_VI1_DATA4_VI1_B4_B,
  250. FN_SD0_DAT3, FN_SCIFB1_RTS_N_B, FN_VI1_DATA5_VI1_B5_B,
  251. FN_SD0_CD, FN_MMC0_D6, FN_TS_SDEN0_B, FN_USB0_EXTP,
  252. FN_GLO_SCLK, FN_VI1_DATA6_VI1_B6_B, FN_IIC1_SCL_B,
  253. FN_I2C1_SCL_B, FN_VI2_DATA6_VI2_B6_B, FN_SD0_WP,
  254. FN_MMC0_D7, FN_TS_SPSYNC0_B, FN_USB0_IDIN,
  255. FN_GLO_SDATA, FN_VI1_DATA7_VI1_B7_B, FN_IIC1_SDA_B,
  256. FN_I2C1_SDA_B, FN_VI2_DATA7_VI2_B7_B, FN_SD1_CLK,
  257. FN_AVB_TX_EN, FN_SD1_CMD,
  258. FN_AVB_TX_ER, FN_SCIFB0_SCK_B,
  259. FN_SD1_DAT0, FN_AVB_TX_CLK,
  260. FN_SCIFB0_RXD_B, FN_SD1_DAT1, FN_AVB_LINK,
  261. FN_SCIFB0_TXD_B, FN_SD1_DAT2,
  262. FN_AVB_COL, FN_SCIFB0_CTS_N_B,
  263. FN_SD1_DAT3, FN_AVB_RXD0,
  264. FN_SCIFB0_RTS_N_B, FN_SD1_CD, FN_MMC1_D6,
  265. FN_TS_SDEN1, FN_USB1_EXTP, FN_GLO_SS, FN_VI0_CLK_B,
  266. FN_IIC2_SCL_D, FN_I2C2_SCL_D, FN_SIM0_CLK_B,
  267. FN_VI3_CLK_B,
  268. /* IPSR10 */
  269. FN_SD1_WP, FN_MMC1_D7, FN_TS_SPSYNC1, FN_USB1_IDIN,
  270. FN_GLO_RFON, FN_VI1_CLK_B, FN_IIC2_SDA_D, FN_I2C2_SDA_D,
  271. FN_SIM0_D_B, FN_SD2_CLK, FN_MMC0_CLK, FN_SIM0_CLK,
  272. FN_VI0_DATA0_VI0_B0_B, FN_TS_SDEN0_C, FN_GLO_SCLK_B,
  273. FN_VI3_DATA0_B, FN_SD2_CMD, FN_MMC0_CMD, FN_SIM0_D,
  274. FN_VI0_DATA1_VI0_B1_B, FN_SCIFB1_SCK_E, FN_SCK1_D,
  275. FN_TS_SPSYNC0_C, FN_GLO_SDATA_B, FN_VI3_DATA1_B,
  276. FN_SD2_DAT0, FN_MMC0_D0, FN_FMCLK_B,
  277. FN_VI0_DATA2_VI0_B2_B, FN_SCIFB1_RXD_E, FN_RX1_D,
  278. FN_TS_SDAT0_C, FN_GLO_SS_B, FN_VI3_DATA2_B,
  279. FN_SD2_DAT1, FN_MMC0_D1, FN_FMIN_B,
  280. FN_VI0_DATA3_VI0_B3_B, FN_SCIFB1_TXD_E, FN_TX1_D,
  281. FN_TS_SCK0_C, FN_GLO_RFON_B, FN_VI3_DATA3_B,
  282. FN_SD2_DAT2, FN_MMC0_D2, FN_BPFCLK_B,
  283. FN_VI0_DATA4_VI0_B4_B, FN_HRX0_D, FN_TS_SDEN1_B,
  284. FN_GLO_Q0_B, FN_VI3_DATA4_B, FN_SD2_DAT3,
  285. FN_MMC0_D3, FN_SIM0_RST, FN_VI0_DATA5_VI0_B5_B,
  286. FN_HTX0_D, FN_TS_SPSYNC1_B, FN_GLO_Q1_B,
  287. FN_VI3_DATA5_B, FN_SD2_CD, FN_MMC0_D4,
  288. FN_TS_SDAT0_B, FN_USB2_EXTP, FN_GLO_I0,
  289. FN_VI0_DATA6_VI0_B6_B, FN_HCTS0_N_D, FN_TS_SDAT1_B,
  290. FN_GLO_I0_B, FN_VI3_DATA6_B,
  291. /* IPSR11 */
  292. FN_SD2_WP, FN_MMC0_D5, FN_TS_SCK0_B, FN_USB2_IDIN,
  293. FN_GLO_I1, FN_VI0_DATA7_VI0_B7_B, FN_HRTS0_N_D,
  294. FN_TS_SCK1_B, FN_GLO_I1_B, FN_VI3_DATA7_B,
  295. FN_SD3_CLK, FN_MMC1_CLK, FN_SD3_CMD, FN_MMC1_CMD,
  296. FN_MTS_N, FN_SD3_DAT0, FN_MMC1_D0, FN_STM_N,
  297. FN_SD3_DAT1, FN_MMC1_D1, FN_MDATA, FN_SD3_DAT2,
  298. FN_MMC1_D2, FN_SDATA, FN_SD3_DAT3, FN_MMC1_D3,
  299. FN_SCKZ, FN_SD3_CD, FN_MMC1_D4, FN_TS_SDAT1,
  300. FN_VSP, FN_GLO_Q0, FN_SIM0_RST_B, FN_SD3_WP,
  301. FN_MMC1_D5, FN_TS_SCK1, FN_GLO_Q1, FN_FMIN_C,
  302. FN_FMIN_E, FN_FMIN_F,
  303. FN_MLB_CLK, FN_IIC2_SCL_B, FN_I2C2_SCL_B,
  304. FN_MLB_SIG, FN_SCIFB1_RXD_D, FN_RX1_C, FN_IIC2_SDA_B,
  305. FN_I2C2_SDA_B, FN_MLB_DAT,
  306. FN_SCIFB1_TXD_D, FN_TX1_C, FN_BPFCLK_C,
  307. FN_SSI_SCK0129, FN_CAN_CLK_B,
  308. FN_MOUT0,
  309. /* IPSR12 */
  310. FN_SSI_WS0129, FN_CAN0_TX_B, FN_MOUT1,
  311. FN_SSI_SDATA0, FN_CAN0_RX_B, FN_MOUT2,
  312. FN_SSI_SDATA1, FN_CAN1_TX_B, FN_MOUT5,
  313. FN_SSI_SDATA2, FN_CAN1_RX_B, FN_SSI_SCK1, FN_MOUT6,
  314. FN_SSI_SCK34, FN_STP_OPWM_0, FN_SCIFB0_SCK,
  315. FN_MSIOF1_SCK, FN_CAN_DEBUG_HW_TRIGGER, FN_SSI_WS34,
  316. FN_STP_IVCXO27_0, FN_SCIFB0_RXD, FN_MSIOF1_SYNC,
  317. FN_CAN_STEP0, FN_SSI_SDATA3, FN_STP_ISCLK_0,
  318. FN_SCIFB0_TXD, FN_MSIOF1_SS1, FN_CAN_TXCLK,
  319. FN_SSI_SCK4, FN_STP_ISD_0, FN_SCIFB0_CTS_N,
  320. FN_MSIOF1_SS2, FN_SSI_SCK5_C, FN_CAN_DEBUGOUT0,
  321. FN_SSI_WS4, FN_STP_ISEN_0, FN_SCIFB0_RTS_N,
  322. FN_MSIOF1_TXD, FN_SSI_WS5_C, FN_CAN_DEBUGOUT1,
  323. FN_SSI_SDATA4, FN_STP_ISSYNC_0, FN_MSIOF1_RXD,
  324. FN_CAN_DEBUGOUT2, FN_SSI_SCK5, FN_SCIFB1_SCK,
  325. FN_IERX_B, FN_DU2_EXHSYNC_DU2_HSYNC, FN_QSTH_QHS,
  326. FN_CAN_DEBUGOUT3, FN_SSI_WS5, FN_SCIFB1_RXD,
  327. FN_IECLK_B, FN_DU2_EXVSYNC_DU2_VSYNC, FN_QSTB_QHE,
  328. FN_CAN_DEBUGOUT4,
  329. /* IPSR13 */
  330. FN_SSI_SDATA5, FN_SCIFB1_TXD, FN_IETX_B, FN_DU2_DR2,
  331. FN_LCDOUT2, FN_CAN_DEBUGOUT5, FN_SSI_SCK6,
  332. FN_SCIFB1_CTS_N, FN_BPFCLK_D,
  333. FN_DU2_DR3, FN_LCDOUT3, FN_CAN_DEBUGOUT6,
  334. FN_BPFCLK_F, FN_SSI_WS6,
  335. FN_SCIFB1_RTS_N, FN_CAN0_TX_D, FN_DU2_DR4,
  336. FN_LCDOUT4, FN_CAN_DEBUGOUT7, FN_SSI_SDATA6,
  337. FN_FMIN_D, FN_DU2_DR5, FN_LCDOUT5,
  338. FN_CAN_DEBUGOUT8, FN_SSI_SCK78, FN_STP_IVCXO27_1,
  339. FN_SCK1, FN_SCIFA1_SCK, FN_DU2_DR6, FN_LCDOUT6,
  340. FN_CAN_DEBUGOUT9, FN_SSI_WS78, FN_STP_ISCLK_1,
  341. FN_SCIFB2_SCK, FN_SCIFA2_CTS_N, FN_DU2_DR7,
  342. FN_LCDOUT7, FN_CAN_DEBUGOUT10, FN_SSI_SDATA7,
  343. FN_STP_ISD_1, FN_SCIFB2_RXD, FN_SCIFA2_RTS_N,
  344. FN_TCLK2, FN_QSTVA_QVS, FN_CAN_DEBUGOUT11,
  345. FN_BPFCLK_E, FN_SSI_SDATA7_B,
  346. FN_FMIN_G, FN_SSI_SDATA8,
  347. FN_STP_ISEN_1, FN_SCIFB2_TXD, FN_CAN0_TX_C,
  348. FN_CAN_DEBUGOUT12, FN_SSI_SDATA8_B, FN_SSI_SDATA9,
  349. FN_STP_ISSYNC_1, FN_SCIFB2_CTS_N, FN_SSI_WS1,
  350. FN_SSI_SDATA5_C, FN_CAN_DEBUGOUT13, FN_AUDIO_CLKA,
  351. FN_SCIFB2_RTS_N, FN_CAN_DEBUGOUT14,
  352. /* IPSR14 */
  353. FN_AUDIO_CLKB, FN_SCIF_CLK, FN_CAN0_RX_D,
  354. FN_DVC_MUTE, FN_CAN0_RX_C, FN_CAN_DEBUGOUT15,
  355. FN_REMOCON, FN_SCIFA0_SCK, FN_HSCK1, FN_SCK0,
  356. FN_MSIOF3_SS2, FN_DU2_DG2, FN_LCDOUT10, FN_IIC1_SDA_C,
  357. FN_I2C1_SDA_C, FN_SCIFA0_RXD, FN_HRX1, FN_RX0,
  358. FN_DU2_DR0, FN_LCDOUT0, FN_SCIFA0_TXD, FN_HTX1,
  359. FN_TX0, FN_DU2_DR1, FN_LCDOUT1, FN_SCIFA0_CTS_N,
  360. FN_HCTS1_N, FN_CTS0_N, FN_MSIOF3_SYNC, FN_DU2_DG3,
  361. FN_LCDOUT11, FN_PWM0_B, FN_IIC1_SCL_C, FN_I2C1_SCL_C,
  362. FN_SCIFA0_RTS_N, FN_HRTS1_N, FN_RTS0_N,
  363. FN_MSIOF3_SS1, FN_DU2_DG0, FN_LCDOUT8, FN_PWM1_B,
  364. FN_SCIFA1_RXD, FN_AD_DI, FN_RX1,
  365. FN_DU2_EXODDF_DU2_ODDF_DISP_CDE, FN_QCPV_QDE,
  366. FN_SCIFA1_TXD, FN_AD_DO, FN_TX1, FN_DU2_DG1,
  367. FN_LCDOUT9, FN_SCIFA1_CTS_N, FN_AD_CLK,
  368. FN_CTS1_N, FN_MSIOF3_RXD, FN_DU0_DOTCLKOUT, FN_QCLK,
  369. FN_SCIFA1_RTS_N, FN_AD_NCS_N, FN_RTS1_N,
  370. FN_MSIOF3_TXD, FN_DU1_DOTCLKOUT, FN_QSTVB_QVE,
  371. FN_HRTS0_N_C,
  372. /* IPSR15 */
  373. FN_SCIFA2_SCK, FN_FMCLK, FN_SCK2, FN_MSIOF3_SCK, FN_DU2_DG7,
  374. FN_LCDOUT15, FN_SCIF_CLK_B, FN_SCIFA2_RXD, FN_FMIN,
  375. FN_TX2, FN_DU2_DB0, FN_LCDOUT16, FN_IIC2_SCL, FN_I2C2_SCL,
  376. FN_SCIFA2_TXD, FN_BPFCLK, FN_RX2, FN_DU2_DB1, FN_LCDOUT17,
  377. FN_IIC2_SDA, FN_I2C2_SDA, FN_HSCK0, FN_TS_SDEN0,
  378. FN_DU2_DG4, FN_LCDOUT12, FN_HCTS0_N_C, FN_HRX0,
  379. FN_DU2_DB2, FN_LCDOUT18, FN_HTX0, FN_DU2_DB3,
  380. FN_LCDOUT19, FN_HCTS0_N, FN_SSI_SCK9, FN_DU2_DB4,
  381. FN_LCDOUT20, FN_HRTS0_N, FN_SSI_WS9, FN_DU2_DB5,
  382. FN_LCDOUT21, FN_MSIOF0_SCK, FN_TS_SDAT0, FN_ADICLK,
  383. FN_DU2_DB6, FN_LCDOUT22, FN_MSIOF0_SYNC, FN_TS_SCK0,
  384. FN_SSI_SCK2, FN_ADIDATA, FN_DU2_DB7, FN_LCDOUT23,
  385. FN_HRX0_C, FN_MSIOF0_SS1, FN_ADICHS0,
  386. FN_DU2_DG5, FN_LCDOUT13, FN_MSIOF0_TXD, FN_ADICHS1,
  387. FN_DU2_DG6, FN_LCDOUT14,
  388. /* IPSR16 */
  389. FN_MSIOF0_SS2, FN_AUDIO_CLKOUT, FN_ADICHS2,
  390. FN_DU2_DISP, FN_QPOLA, FN_HTX0_C, FN_SCIFA2_TXD_B,
  391. FN_MSIOF0_RXD, FN_TS_SPSYNC0, FN_SSI_WS2,
  392. FN_ADICS_SAMP, FN_DU2_CDE, FN_QPOLB, FN_SCIFA2_RXD_B,
  393. FN_USB1_PWEN, FN_AUDIO_CLKOUT_D, FN_USB1_OVC,
  394. FN_TCLK1_B,
  395. FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2, FN_SEL_SCIF1_3,
  396. FN_SEL_SCIF1_4,
  397. FN_SEL_SCIFB_0, FN_SEL_SCIFB_1, FN_SEL_SCIFB_2,
  398. FN_SEL_SCIFB2_0, FN_SEL_SCIFB2_1, FN_SEL_SCIFB2_2,
  399. FN_SEL_SCIFB1_0, FN_SEL_SCIFB1_1, FN_SEL_SCIFB1_2, FN_SEL_SCIFB1_3,
  400. FN_SEL_SCIFB1_4,
  401. FN_SEL_SCIFB1_5, FN_SEL_SCIFB1_6,
  402. FN_SEL_SCIFA1_0, FN_SEL_SCIFA1_1, FN_SEL_SCIFA1_2, FN_SEL_SCIFA1_3,
  403. FN_SEL_SCIF0_0, FN_SEL_SCIF0_1,
  404. FN_SEL_SCFA_0, FN_SEL_SCFA_1,
  405. FN_SEL_SOF1_0, FN_SEL_SOF1_1,
  406. FN_SEL_SSI7_0, FN_SEL_SSI7_1, FN_SEL_SSI7_2,
  407. FN_SEL_SSI6_0, FN_SEL_SSI6_1,
  408. FN_SEL_SSI5_0, FN_SEL_SSI5_1, FN_SEL_SSI5_2,
  409. FN_SEL_VI3_0, FN_SEL_VI3_1,
  410. FN_SEL_VI2_0, FN_SEL_VI2_1,
  411. FN_SEL_VI1_0, FN_SEL_VI1_1,
  412. FN_SEL_VI0_0, FN_SEL_VI0_1,
  413. FN_SEL_TSIF1_0, FN_SEL_TSIF1_1, FN_SEL_TSIF1_2,
  414. FN_SEL_LBS_0, FN_SEL_LBS_1,
  415. FN_SEL_TSIF0_0, FN_SEL_TSIF0_1, FN_SEL_TSIF0_2, FN_SEL_TSIF0_3,
  416. FN_SEL_SOF3_0, FN_SEL_SOF3_1,
  417. FN_SEL_SOF0_0, FN_SEL_SOF0_1,
  418. FN_SEL_TMU1_0, FN_SEL_TMU1_1,
  419. FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1,
  420. FN_SEL_SCIFCLK_0, FN_SEL_SCIFCLK_1,
  421. FN_SEL_CAN0_0, FN_SEL_CAN0_1, FN_SEL_CAN0_2, FN_SEL_CAN0_3,
  422. FN_SEL_CANCLK_0, FN_SEL_CANCLK_1,
  423. FN_SEL_SCIFA2_0, FN_SEL_SCIFA2_1, FN_SEL_SCIFA2_2,
  424. FN_SEL_CAN1_0, FN_SEL_CAN1_1,
  425. FN_SEL_SCIF2_0, FN_SEL_SCIF2_1,
  426. FN_SEL_ADI_0, FN_SEL_ADI_1,
  427. FN_SEL_SSP_0, FN_SEL_SSP_1,
  428. FN_SEL_FM_0, FN_SEL_FM_1, FN_SEL_FM_2, FN_SEL_FM_3,
  429. FN_SEL_FM_4, FN_SEL_FM_5, FN_SEL_FM_6,
  430. FN_SEL_HSCIF0_0, FN_SEL_HSCIF0_1, FN_SEL_HSCIF0_2, FN_SEL_HSCIF0_3,
  431. FN_SEL_HSCIF0_4, FN_SEL_HSCIF0_5,
  432. FN_SEL_GPS_0, FN_SEL_GPS_1, FN_SEL_GPS_2,
  433. FN_SEL_SIM_0, FN_SEL_SIM_1, FN_SEL_SIM_2,
  434. FN_SEL_SSI8_0, FN_SEL_SSI8_1, FN_SEL_SSI8_2,
  435. FN_SEL_IICDVFS_0, FN_SEL_IICDVFS_1,
  436. FN_SEL_IIC0_0, FN_SEL_IIC0_1,
  437. FN_SEL_IEB_0, FN_SEL_IEB_1, FN_SEL_IEB_2,
  438. FN_SEL_IIC2_0, FN_SEL_IIC2_1, FN_SEL_IIC2_2, FN_SEL_IIC2_3,
  439. FN_SEL_IIC2_4,
  440. FN_SEL_IIC1_0, FN_SEL_IIC1_1, FN_SEL_IIC1_2,
  441. FN_SEL_I2C2_0, FN_SEL_I2C2_1, FN_SEL_I2C2_2, FN_SEL_I2C2_3,
  442. FN_SEL_I2C2_4,
  443. FN_SEL_I2C1_0, FN_SEL_I2C1_1, FN_SEL_I2C1_2,
  444. PINMUX_FUNCTION_END,
  445. PINMUX_MARK_BEGIN,
  446. VI1_DATA7_VI1_B7_MARK,
  447. USB0_PWEN_MARK, USB0_OVC_VBUS_MARK,
  448. USB2_PWEN_MARK, USB2_OVC_MARK, AVS1_MARK, AVS2_MARK,
  449. DU_DOTCLKIN0_MARK, DU_DOTCLKIN2_MARK,
  450. D0_MARK, MSIOF3_SCK_B_MARK, VI3_DATA0_MARK, VI0_G4_MARK, VI0_G4_B_MARK,
  451. D1_MARK, MSIOF3_SYNC_B_MARK, VI3_DATA1_MARK, VI0_G5_MARK,
  452. VI0_G5_B_MARK, D2_MARK, MSIOF3_RXD_B_MARK, VI3_DATA2_MARK,
  453. VI0_G6_MARK, VI0_G6_B_MARK, D3_MARK, MSIOF3_TXD_B_MARK,
  454. VI3_DATA3_MARK, VI0_G7_MARK, VI0_G7_B_MARK, D4_MARK,
  455. SCIFB1_RXD_F_MARK, SCIFB0_RXD_C_MARK, VI3_DATA4_MARK,
  456. VI0_R0_MARK, VI0_R0_B_MARK, RX0_B_MARK, D5_MARK,
  457. SCIFB1_TXD_F_MARK, SCIFB0_TXD_C_MARK, VI3_DATA5_MARK,
  458. VI0_R1_MARK, VI0_R1_B_MARK, TX0_B_MARK, D6_MARK,
  459. IIC2_SCL_C_MARK, VI3_DATA6_MARK, VI0_R2_MARK, VI0_R2_B_MARK,
  460. I2C2_SCL_C_MARK, D7_MARK, AD_DI_B_MARK, IIC2_SDA_C_MARK,
  461. VI3_DATA7_MARK, VI0_R3_MARK, VI0_R3_B_MARK, I2C2_SDA_C_MARK, TCLK1_MARK,
  462. D8_MARK, SCIFA1_SCK_C_MARK, AVB_TXD0_MARK,
  463. VI0_G0_MARK, VI0_G0_B_MARK, VI2_DATA0_VI2_B0_MARK,
  464. D9_MARK, SCIFA1_RXD_C_MARK, AVB_TXD1_MARK,
  465. VI0_G1_MARK, VI0_G1_B_MARK, VI2_DATA1_VI2_B1_MARK, D10_MARK,
  466. SCIFA1_TXD_C_MARK, AVB_TXD2_MARK,
  467. VI0_G2_MARK, VI0_G2_B_MARK, VI2_DATA2_VI2_B2_MARK, D11_MARK,
  468. SCIFA1_CTS_N_C_MARK, AVB_TXD3_MARK,
  469. VI0_G3_MARK, VI0_G3_B_MARK, VI2_DATA3_VI2_B3_MARK,
  470. D12_MARK, SCIFA1_RTS_N_C_MARK, AVB_TXD4_MARK,
  471. VI0_HSYNC_N_MARK, VI0_HSYNC_N_B_MARK, VI2_DATA4_VI2_B4_MARK,
  472. D13_MARK, AVB_TXD5_MARK, VI0_VSYNC_N_MARK,
  473. VI0_VSYNC_N_B_MARK, VI2_DATA5_VI2_B5_MARK, D14_MARK,
  474. SCIFB1_RXD_C_MARK, AVB_TXD6_MARK, RX1_B_MARK,
  475. VI0_CLKENB_MARK, VI0_CLKENB_B_MARK, VI2_DATA6_VI2_B6_MARK,
  476. D15_MARK, SCIFB1_TXD_C_MARK, AVB_TXD7_MARK, TX1_B_MARK,
  477. VI0_FIELD_MARK, VI0_FIELD_B_MARK, VI2_DATA7_VI2_B7_MARK,
  478. A0_MARK, PWM3_MARK, A1_MARK, PWM4_MARK,
  479. A2_MARK, PWM5_MARK, MSIOF1_SS1_B_MARK, A3_MARK,
  480. PWM6_MARK, MSIOF1_SS2_B_MARK, A4_MARK, MSIOF1_TXD_B_MARK,
  481. TPU0TO0_MARK, A5_MARK, SCIFA1_TXD_B_MARK, TPU0TO1_MARK,
  482. A6_MARK, SCIFA1_RTS_N_B_MARK, TPU0TO2_MARK, A7_MARK,
  483. SCIFA1_SCK_B_MARK, AUDIO_CLKOUT_B_MARK, TPU0TO3_MARK,
  484. A8_MARK, SCIFA1_RXD_B_MARK, SSI_SCK5_B_MARK, VI0_R4_MARK,
  485. VI0_R4_B_MARK, SCIFB2_RXD_C_MARK, RX2_B_MARK, VI2_DATA0_VI2_B0_B_MARK,
  486. A9_MARK, SCIFA1_CTS_N_B_MARK, SSI_WS5_B_MARK, VI0_R5_MARK,
  487. VI0_R5_B_MARK, SCIFB2_TXD_C_MARK, TX2_B_MARK, VI2_DATA1_VI2_B1_B_MARK,
  488. A10_MARK, SSI_SDATA5_B_MARK, MSIOF2_SYNC_MARK, VI0_R6_MARK,
  489. VI0_R6_B_MARK, VI2_DATA2_VI2_B2_B_MARK,
  490. A11_MARK, SCIFB2_CTS_N_B_MARK, MSIOF2_SCK_MARK, VI1_R0_MARK,
  491. VI1_R0_B_MARK, VI2_G0_MARK, VI2_DATA3_VI2_B3_B_MARK,
  492. A12_MARK, SCIFB2_RXD_B_MARK, MSIOF2_TXD_MARK, VI1_R1_MARK,
  493. VI1_R1_B_MARK, VI2_G1_MARK, VI2_DATA4_VI2_B4_B_MARK,
  494. A13_MARK, SCIFB2_RTS_N_B_MARK, EX_WAIT2_MARK,
  495. MSIOF2_RXD_MARK, VI1_R2_MARK, VI1_R2_B_MARK, VI2_G2_MARK,
  496. VI2_DATA5_VI2_B5_B_MARK, A14_MARK, SCIFB2_TXD_B_MARK,
  497. ATACS11_N_MARK, MSIOF2_SS1_MARK, A15_MARK, SCIFB2_SCK_B_MARK,
  498. ATARD1_N_MARK, MSIOF2_SS2_MARK, A16_MARK, ATAWR1_N_MARK,
  499. A17_MARK, AD_DO_B_MARK, ATADIR1_N_MARK, A18_MARK,
  500. AD_CLK_B_MARK, ATAG1_N_MARK, A19_MARK, AD_NCS_N_B_MARK,
  501. ATACS01_N_MARK, EX_WAIT0_B_MARK, A20_MARK, SPCLK_MARK,
  502. VI1_R3_MARK, VI1_R3_B_MARK, VI2_G4_MARK,
  503. A21_MARK, MOSI_IO0_MARK, VI1_R4_MARK, VI1_R4_B_MARK, VI2_G5_MARK,
  504. A22_MARK, MISO_IO1_MARK, VI1_R5_MARK, VI1_R5_B_MARK,
  505. VI2_G6_MARK, A23_MARK, IO2_MARK, VI1_G7_MARK,
  506. VI1_G7_B_MARK, VI2_G7_MARK, A24_MARK, IO3_MARK,
  507. VI1_R7_MARK, VI1_R7_B_MARK, VI2_CLKENB_MARK,
  508. VI2_CLKENB_B_MARK, A25_MARK, SSL_MARK, VI1_G6_MARK,
  509. VI1_G6_B_MARK, VI2_FIELD_MARK, VI2_FIELD_B_MARK, CS0_N_MARK,
  510. VI1_R6_MARK, VI1_R6_B_MARK, VI2_G3_MARK, MSIOF0_SS2_B_MARK,
  511. CS1_N_A26_MARK, SPEEDIN_MARK, VI0_R7_MARK, VI0_R7_B_MARK,
  512. VI2_CLK_MARK, VI2_CLK_B_MARK, EX_CS0_N_MARK, HRX1_B_MARK,
  513. VI1_G5_MARK, VI1_G5_B_MARK, VI2_R0_MARK, HTX0_B_MARK,
  514. MSIOF0_SS1_B_MARK, EX_CS1_N_MARK, GPS_CLK_MARK,
  515. HCTS1_N_B_MARK, VI1_FIELD_MARK, VI1_FIELD_B_MARK,
  516. VI2_R1_MARK, EX_CS2_N_MARK, GPS_SIGN_MARK, HRTS1_N_B_MARK,
  517. VI3_CLKENB_MARK, VI1_G0_MARK, VI1_G0_B_MARK, VI2_R2_MARK,
  518. EX_CS3_N_MARK, GPS_MAG_MARK, VI3_FIELD_MARK,
  519. VI1_G1_MARK, VI1_G1_B_MARK, VI2_R3_MARK,
  520. EX_CS4_N_MARK, MSIOF1_SCK_B_MARK, VI3_HSYNC_N_MARK,
  521. VI2_HSYNC_N_MARK, IIC1_SCL_MARK, VI2_HSYNC_N_B_MARK,
  522. INTC_EN0_N_MARK, I2C1_SCL_MARK, EX_CS5_N_MARK, CAN0_RX_MARK,
  523. MSIOF1_RXD_B_MARK, VI3_VSYNC_N_MARK, VI1_G2_MARK,
  524. VI1_G2_B_MARK, VI2_R4_MARK, IIC1_SDA_MARK, INTC_EN1_N_MARK,
  525. I2C1_SDA_MARK, BS_N_MARK, IETX_MARK, HTX1_B_MARK,
  526. CAN1_TX_MARK, DRACK0_MARK, IETX_C_MARK, RD_N_MARK,
  527. CAN0_TX_MARK, SCIFA0_SCK_B_MARK, RD_WR_N_MARK, VI1_G3_MARK,
  528. VI1_G3_B_MARK, VI2_R5_MARK, SCIFA0_RXD_B_MARK,
  529. INTC_IRQ4_N_MARK, WE0_N_MARK, IECLK_MARK, CAN_CLK_MARK,
  530. VI2_VSYNC_N_MARK, SCIFA0_TXD_B_MARK, VI2_VSYNC_N_B_MARK,
  531. WE1_N_MARK, IERX_MARK, CAN1_RX_MARK, VI1_G4_MARK,
  532. VI1_G4_B_MARK, VI2_R6_MARK, SCIFA0_CTS_N_B_MARK,
  533. IERX_C_MARK, EX_WAIT0_MARK, IRQ3_MARK, INTC_IRQ3_N_MARK,
  534. VI3_CLK_MARK, SCIFA0_RTS_N_B_MARK, HRX0_B_MARK,
  535. MSIOF0_SCK_B_MARK, DREQ0_N_MARK, VI1_HSYNC_N_MARK,
  536. VI1_HSYNC_N_B_MARK, VI2_R7_MARK, SSI_SCK78_C_MARK,
  537. SSI_WS78_B_MARK,
  538. DACK0_MARK, IRQ0_MARK, INTC_IRQ0_N_MARK, SSI_SCK6_B_MARK,
  539. VI1_VSYNC_N_MARK, VI1_VSYNC_N_B_MARK, SSI_WS78_C_MARK,
  540. DREQ1_N_MARK, VI1_CLKENB_MARK, VI1_CLKENB_B_MARK,
  541. SSI_SDATA7_C_MARK, SSI_SCK78_B_MARK, DACK1_MARK, IRQ1_MARK,
  542. INTC_IRQ1_N_MARK, SSI_WS6_B_MARK, SSI_SDATA8_C_MARK,
  543. DREQ2_N_MARK, HSCK1_B_MARK, HCTS0_N_B_MARK,
  544. MSIOF0_TXD_B_MARK, DACK2_MARK, IRQ2_MARK, INTC_IRQ2_N_MARK,
  545. SSI_SDATA6_B_MARK, HRTS0_N_B_MARK, MSIOF0_RXD_B_MARK,
  546. ETH_CRS_DV_MARK, STP_ISCLK_0_B_MARK,
  547. TS_SDEN0_D_MARK, GLO_Q0_C_MARK, IIC2_SCL_E_MARK,
  548. I2C2_SCL_E_MARK, ETH_RX_ER_MARK,
  549. STP_ISD_0_B_MARK, TS_SPSYNC0_D_MARK, GLO_Q1_C_MARK,
  550. IIC2_SDA_E_MARK, I2C2_SDA_E_MARK, ETH_RXD0_MARK,
  551. STP_ISEN_0_B_MARK, TS_SDAT0_D_MARK, GLO_I0_C_MARK,
  552. SCIFB1_SCK_G_MARK, SCK1_E_MARK, ETH_RXD1_MARK,
  553. HRX0_E_MARK, STP_ISSYNC_0_B_MARK,
  554. TS_SCK0_D_MARK, GLO_I1_C_MARK, SCIFB1_RXD_G_MARK,
  555. RX1_E_MARK, ETH_LINK_MARK, HTX0_E_MARK,
  556. STP_IVCXO27_0_B_MARK, SCIFB1_TXD_G_MARK, TX1_E_MARK,
  557. ETH_REF_CLK_MARK, HCTS0_N_E_MARK,
  558. STP_IVCXO27_1_B_MARK, HRX0_F_MARK,
  559. ETH_MDIO_MARK, HRTS0_N_E_MARK,
  560. SIM0_D_C_MARK, HCTS0_N_F_MARK, ETH_TXD1_MARK,
  561. HTX0_F_MARK, BPFCLK_G_MARK,
  562. ETH_TX_EN_MARK, SIM0_CLK_C_MARK,
  563. HRTS0_N_F_MARK, ETH_MAGIC_MARK,
  564. SIM0_RST_C_MARK, ETH_TXD0_MARK,
  565. STP_ISCLK_1_B_MARK, TS_SDEN1_C_MARK, GLO_SCLK_C_MARK,
  566. ETH_MDC_MARK, STP_ISD_1_B_MARK,
  567. TS_SPSYNC1_C_MARK, GLO_SDATA_C_MARK, PWM0_MARK,
  568. SCIFA2_SCK_C_MARK, STP_ISEN_1_B_MARK, TS_SDAT1_C_MARK,
  569. GLO_SS_C_MARK, PWM1_MARK, SCIFA2_TXD_C_MARK,
  570. STP_ISSYNC_1_B_MARK, TS_SCK1_C_MARK, GLO_RFON_C_MARK,
  571. PCMOE_N_MARK, PWM2_MARK, PWMFSW0_MARK, SCIFA2_RXD_C_MARK,
  572. PCMWE_N_MARK, IECLK_C_MARK, DU_DOTCLKIN1_MARK,
  573. AUDIO_CLKC_MARK, AUDIO_CLKOUT_C_MARK, VI0_CLK_MARK,
  574. ATACS00_N_MARK, AVB_RXD1_MARK,
  575. VI0_DATA0_VI0_B0_MARK, ATACS10_N_MARK, AVB_RXD2_MARK,
  576. VI0_DATA1_VI0_B1_MARK, ATARD0_N_MARK, AVB_RXD3_MARK,
  577. VI0_DATA2_VI0_B2_MARK, ATAWR0_N_MARK,
  578. AVB_RXD4_MARK, VI0_DATA3_VI0_B3_MARK, ATADIR0_N_MARK,
  579. AVB_RXD5_MARK, VI0_DATA4_VI0_B4_MARK, ATAG0_N_MARK,
  580. AVB_RXD6_MARK, VI0_DATA5_VI0_B5_MARK, EX_WAIT1_MARK,
  581. AVB_RXD7_MARK, VI0_DATA6_VI0_B6_MARK, AVB_RX_ER_MARK,
  582. VI0_DATA7_VI0_B7_MARK, AVB_RX_CLK_MARK,
  583. VI1_CLK_MARK, AVB_RX_DV_MARK,
  584. VI1_DATA0_VI1_B0_MARK, SCIFA1_SCK_D_MARK,
  585. AVB_CRS_MARK, VI1_DATA1_VI1_B1_MARK,
  586. SCIFA1_RXD_D_MARK, AVB_MDC_MARK,
  587. VI1_DATA2_VI1_B2_MARK, SCIFA1_TXD_D_MARK, AVB_MDIO_MARK,
  588. VI1_DATA3_VI1_B3_MARK, SCIFA1_CTS_N_D_MARK,
  589. AVB_GTX_CLK_MARK, VI1_DATA4_VI1_B4_MARK, SCIFA1_RTS_N_D_MARK,
  590. AVB_MAGIC_MARK, VI1_DATA5_VI1_B5_MARK,
  591. AVB_PHY_INT_MARK, VI1_DATA6_VI1_B6_MARK, AVB_GTXREFCLK_MARK,
  592. SD0_CLK_MARK, VI1_DATA0_VI1_B0_B_MARK, SD0_CMD_MARK,
  593. SCIFB1_SCK_B_MARK, VI1_DATA1_VI1_B1_B_MARK,
  594. SD0_DAT0_MARK, SCIFB1_RXD_B_MARK, VI1_DATA2_VI1_B2_B_MARK,
  595. SD0_DAT1_MARK, SCIFB1_TXD_B_MARK, VI1_DATA3_VI1_B3_B_MARK,
  596. SD0_DAT2_MARK, SCIFB1_CTS_N_B_MARK, VI1_DATA4_VI1_B4_B_MARK,
  597. SD0_DAT3_MARK, SCIFB1_RTS_N_B_MARK, VI1_DATA5_VI1_B5_B_MARK,
  598. SD0_CD_MARK, MMC0_D6_MARK, TS_SDEN0_B_MARK, USB0_EXTP_MARK,
  599. GLO_SCLK_MARK, VI1_DATA6_VI1_B6_B_MARK, IIC1_SCL_B_MARK,
  600. I2C1_SCL_B_MARK, VI2_DATA6_VI2_B6_B_MARK, SD0_WP_MARK,
  601. MMC0_D7_MARK, TS_SPSYNC0_B_MARK, USB0_IDIN_MARK,
  602. GLO_SDATA_MARK, VI1_DATA7_VI1_B7_B_MARK, IIC1_SDA_B_MARK,
  603. I2C1_SDA_B_MARK, VI2_DATA7_VI2_B7_B_MARK, SD1_CLK_MARK,
  604. AVB_TX_EN_MARK, SD1_CMD_MARK,
  605. AVB_TX_ER_MARK, SCIFB0_SCK_B_MARK,
  606. SD1_DAT0_MARK, AVB_TX_CLK_MARK,
  607. SCIFB0_RXD_B_MARK, SD1_DAT1_MARK, AVB_LINK_MARK,
  608. SCIFB0_TXD_B_MARK, SD1_DAT2_MARK,
  609. AVB_COL_MARK, SCIFB0_CTS_N_B_MARK,
  610. SD1_DAT3_MARK, AVB_RXD0_MARK,
  611. SCIFB0_RTS_N_B_MARK, SD1_CD_MARK, MMC1_D6_MARK,
  612. TS_SDEN1_MARK, USB1_EXTP_MARK, GLO_SS_MARK, VI0_CLK_B_MARK,
  613. IIC2_SCL_D_MARK, I2C2_SCL_D_MARK, SIM0_CLK_B_MARK,
  614. VI3_CLK_B_MARK,
  615. SD1_WP_MARK, MMC1_D7_MARK, TS_SPSYNC1_MARK, USB1_IDIN_MARK,
  616. GLO_RFON_MARK, VI1_CLK_B_MARK, IIC2_SDA_D_MARK, I2C2_SDA_D_MARK,
  617. SIM0_D_B_MARK, SD2_CLK_MARK, MMC0_CLK_MARK, SIM0_CLK_MARK,
  618. VI0_DATA0_VI0_B0_B_MARK, TS_SDEN0_C_MARK, GLO_SCLK_B_MARK,
  619. VI3_DATA0_B_MARK, SD2_CMD_MARK, MMC0_CMD_MARK, SIM0_D_MARK,
  620. VI0_DATA1_VI0_B1_B_MARK, SCIFB1_SCK_E_MARK, SCK1_D_MARK,
  621. TS_SPSYNC0_C_MARK, GLO_SDATA_B_MARK, VI3_DATA1_B_MARK,
  622. SD2_DAT0_MARK, MMC0_D0_MARK, FMCLK_B_MARK,
  623. VI0_DATA2_VI0_B2_B_MARK, SCIFB1_RXD_E_MARK, RX1_D_MARK,
  624. TS_SDAT0_C_MARK, GLO_SS_B_MARK, VI3_DATA2_B_MARK,
  625. SD2_DAT1_MARK, MMC0_D1_MARK, FMIN_B_MARK,
  626. VI0_DATA3_VI0_B3_B_MARK, SCIFB1_TXD_E_MARK, TX1_D_MARK,
  627. TS_SCK0_C_MARK, GLO_RFON_B_MARK, VI3_DATA3_B_MARK,
  628. SD2_DAT2_MARK, MMC0_D2_MARK, BPFCLK_B_MARK,
  629. VI0_DATA4_VI0_B4_B_MARK, HRX0_D_MARK, TS_SDEN1_B_MARK,
  630. GLO_Q0_B_MARK, VI3_DATA4_B_MARK, SD2_DAT3_MARK,
  631. MMC0_D3_MARK, SIM0_RST_MARK, VI0_DATA5_VI0_B5_B_MARK,
  632. HTX0_D_MARK, TS_SPSYNC1_B_MARK, GLO_Q1_B_MARK,
  633. VI3_DATA5_B_MARK, SD2_CD_MARK, MMC0_D4_MARK,
  634. TS_SDAT0_B_MARK, USB2_EXTP_MARK, GLO_I0_MARK,
  635. VI0_DATA6_VI0_B6_B_MARK, HCTS0_N_D_MARK, TS_SDAT1_B_MARK,
  636. GLO_I0_B_MARK, VI3_DATA6_B_MARK,
  637. SD2_WP_MARK, MMC0_D5_MARK, TS_SCK0_B_MARK, USB2_IDIN_MARK,
  638. GLO_I1_MARK, VI0_DATA7_VI0_B7_B_MARK, HRTS0_N_D_MARK,
  639. TS_SCK1_B_MARK, GLO_I1_B_MARK, VI3_DATA7_B_MARK,
  640. SD3_CLK_MARK, MMC1_CLK_MARK, SD3_CMD_MARK, MMC1_CMD_MARK,
  641. MTS_N_MARK, SD3_DAT0_MARK, MMC1_D0_MARK, STM_N_MARK,
  642. SD3_DAT1_MARK, MMC1_D1_MARK, MDATA_MARK, SD3_DAT2_MARK,
  643. MMC1_D2_MARK, SDATA_MARK, SD3_DAT3_MARK, MMC1_D3_MARK,
  644. SCKZ_MARK, SD3_CD_MARK, MMC1_D4_MARK, TS_SDAT1_MARK,
  645. VSP_MARK, GLO_Q0_MARK, SIM0_RST_B_MARK, SD3_WP_MARK,
  646. MMC1_D5_MARK, TS_SCK1_MARK, GLO_Q1_MARK, FMIN_C_MARK,
  647. FMIN_E_MARK, FMIN_F_MARK,
  648. MLB_CLK_MARK, IIC2_SCL_B_MARK, I2C2_SCL_B_MARK,
  649. MLB_SIG_MARK, SCIFB1_RXD_D_MARK, RX1_C_MARK, IIC2_SDA_B_MARK,
  650. I2C2_SDA_B_MARK, MLB_DAT_MARK,
  651. SCIFB1_TXD_D_MARK, TX1_C_MARK, BPFCLK_C_MARK,
  652. SSI_SCK0129_MARK, CAN_CLK_B_MARK,
  653. MOUT0_MARK,
  654. SSI_WS0129_MARK, CAN0_TX_B_MARK, MOUT1_MARK,
  655. SSI_SDATA0_MARK, CAN0_RX_B_MARK, MOUT2_MARK,
  656. SSI_SDATA1_MARK, CAN1_TX_B_MARK, MOUT5_MARK,
  657. SSI_SDATA2_MARK, CAN1_RX_B_MARK, SSI_SCK1_MARK, MOUT6_MARK,
  658. SSI_SCK34_MARK, STP_OPWM_0_MARK, SCIFB0_SCK_MARK,
  659. MSIOF1_SCK_MARK, CAN_DEBUG_HW_TRIGGER_MARK, SSI_WS34_MARK,
  660. STP_IVCXO27_0_MARK, SCIFB0_RXD_MARK, MSIOF1_SYNC_MARK,
  661. CAN_STEP0_MARK, SSI_SDATA3_MARK, STP_ISCLK_0_MARK,
  662. SCIFB0_TXD_MARK, MSIOF1_SS1_MARK, CAN_TXCLK_MARK,
  663. SSI_SCK4_MARK, STP_ISD_0_MARK, SCIFB0_CTS_N_MARK,
  664. MSIOF1_SS2_MARK, SSI_SCK5_C_MARK, CAN_DEBUGOUT0_MARK,
  665. SSI_WS4_MARK, STP_ISEN_0_MARK, SCIFB0_RTS_N_MARK,
  666. MSIOF1_TXD_MARK, SSI_WS5_C_MARK, CAN_DEBUGOUT1_MARK,
  667. SSI_SDATA4_MARK, STP_ISSYNC_0_MARK, MSIOF1_RXD_MARK,
  668. CAN_DEBUGOUT2_MARK, SSI_SCK5_MARK, SCIFB1_SCK_MARK,
  669. IERX_B_MARK, DU2_EXHSYNC_DU2_HSYNC_MARK, QSTH_QHS_MARK,
  670. CAN_DEBUGOUT3_MARK, SSI_WS5_MARK, SCIFB1_RXD_MARK,
  671. IECLK_B_MARK, DU2_EXVSYNC_DU2_VSYNC_MARK, QSTB_QHE_MARK,
  672. CAN_DEBUGOUT4_MARK,
  673. SSI_SDATA5_MARK, SCIFB1_TXD_MARK, IETX_B_MARK, DU2_DR2_MARK,
  674. LCDOUT2_MARK, CAN_DEBUGOUT5_MARK, SSI_SCK6_MARK,
  675. SCIFB1_CTS_N_MARK, BPFCLK_D_MARK,
  676. DU2_DR3_MARK, LCDOUT3_MARK, CAN_DEBUGOUT6_MARK,
  677. BPFCLK_F_MARK, SSI_WS6_MARK,
  678. SCIFB1_RTS_N_MARK, CAN0_TX_D_MARK, DU2_DR4_MARK,
  679. LCDOUT4_MARK, CAN_DEBUGOUT7_MARK, SSI_SDATA6_MARK,
  680. FMIN_D_MARK, DU2_DR5_MARK, LCDOUT5_MARK,
  681. CAN_DEBUGOUT8_MARK, SSI_SCK78_MARK, STP_IVCXO27_1_MARK,
  682. SCK1_MARK, SCIFA1_SCK_MARK, DU2_DR6_MARK, LCDOUT6_MARK,
  683. CAN_DEBUGOUT9_MARK, SSI_WS78_MARK, STP_ISCLK_1_MARK,
  684. SCIFB2_SCK_MARK, SCIFA2_CTS_N_MARK, DU2_DR7_MARK,
  685. LCDOUT7_MARK, CAN_DEBUGOUT10_MARK, SSI_SDATA7_MARK,
  686. STP_ISD_1_MARK, SCIFB2_RXD_MARK, SCIFA2_RTS_N_MARK,
  687. TCLK2_MARK, QSTVA_QVS_MARK, CAN_DEBUGOUT11_MARK,
  688. BPFCLK_E_MARK, SSI_SDATA7_B_MARK,
  689. FMIN_G_MARK, SSI_SDATA8_MARK,
  690. STP_ISEN_1_MARK, SCIFB2_TXD_MARK, CAN0_TX_C_MARK,
  691. CAN_DEBUGOUT12_MARK, SSI_SDATA8_B_MARK, SSI_SDATA9_MARK,
  692. STP_ISSYNC_1_MARK, SCIFB2_CTS_N_MARK, SSI_WS1_MARK,
  693. SSI_SDATA5_C_MARK, CAN_DEBUGOUT13_MARK, AUDIO_CLKA_MARK,
  694. SCIFB2_RTS_N_MARK, CAN_DEBUGOUT14_MARK,
  695. AUDIO_CLKB_MARK, SCIF_CLK_MARK, CAN0_RX_D_MARK,
  696. DVC_MUTE_MARK, CAN0_RX_C_MARK, CAN_DEBUGOUT15_MARK,
  697. REMOCON_MARK, SCIFA0_SCK_MARK, HSCK1_MARK, SCK0_MARK,
  698. MSIOF3_SS2_MARK, DU2_DG2_MARK, LCDOUT10_MARK, IIC1_SDA_C_MARK,
  699. I2C1_SDA_C_MARK, SCIFA0_RXD_MARK, HRX1_MARK, RX0_MARK,
  700. DU2_DR0_MARK, LCDOUT0_MARK, SCIFA0_TXD_MARK, HTX1_MARK,
  701. TX0_MARK, DU2_DR1_MARK, LCDOUT1_MARK, SCIFA0_CTS_N_MARK,
  702. HCTS1_N_MARK, CTS0_N_MARK, MSIOF3_SYNC_MARK, DU2_DG3_MARK,
  703. LCDOUT11_MARK, PWM0_B_MARK, IIC1_SCL_C_MARK, I2C1_SCL_C_MARK,
  704. SCIFA0_RTS_N_MARK, HRTS1_N_MARK, RTS0_N_MARK,
  705. MSIOF3_SS1_MARK, DU2_DG0_MARK, LCDOUT8_MARK, PWM1_B_MARK,
  706. SCIFA1_RXD_MARK, AD_DI_MARK, RX1_MARK,
  707. DU2_EXODDF_DU2_ODDF_DISP_CDE_MARK, QCPV_QDE_MARK,
  708. SCIFA1_TXD_MARK, AD_DO_MARK, TX1_MARK, DU2_DG1_MARK,
  709. LCDOUT9_MARK, SCIFA1_CTS_N_MARK, AD_CLK_MARK,
  710. CTS1_N_MARK, MSIOF3_RXD_MARK, DU0_DOTCLKOUT_MARK, QCLK_MARK,
  711. SCIFA1_RTS_N_MARK, AD_NCS_N_MARK, RTS1_N_MARK,
  712. MSIOF3_TXD_MARK, DU1_DOTCLKOUT_MARK, QSTVB_QVE_MARK,
  713. HRTS0_N_C_MARK,
  714. SCIFA2_SCK_MARK, FMCLK_MARK, SCK2_MARK, MSIOF3_SCK_MARK, DU2_DG7_MARK,
  715. LCDOUT15_MARK, SCIF_CLK_B_MARK, SCIFA2_RXD_MARK, FMIN_MARK,
  716. TX2_MARK, DU2_DB0_MARK, LCDOUT16_MARK, IIC2_SCL_MARK, I2C2_SCL_MARK,
  717. SCIFA2_TXD_MARK, BPFCLK_MARK, RX2_MARK, DU2_DB1_MARK, LCDOUT17_MARK,
  718. IIC2_SDA_MARK, I2C2_SDA_MARK, HSCK0_MARK, TS_SDEN0_MARK,
  719. DU2_DG4_MARK, LCDOUT12_MARK, HCTS0_N_C_MARK, HRX0_MARK,
  720. DU2_DB2_MARK, LCDOUT18_MARK, HTX0_MARK, DU2_DB3_MARK,
  721. LCDOUT19_MARK, HCTS0_N_MARK, SSI_SCK9_MARK, DU2_DB4_MARK,
  722. LCDOUT20_MARK, HRTS0_N_MARK, SSI_WS9_MARK, DU2_DB5_MARK,
  723. LCDOUT21_MARK, MSIOF0_SCK_MARK, TS_SDAT0_MARK, ADICLK_MARK,
  724. DU2_DB6_MARK, LCDOUT22_MARK, MSIOF0_SYNC_MARK, TS_SCK0_MARK,
  725. SSI_SCK2_MARK, ADIDATA_MARK, DU2_DB7_MARK, LCDOUT23_MARK,
  726. HRX0_C_MARK, MSIOF0_SS1_MARK, ADICHS0_MARK,
  727. DU2_DG5_MARK, LCDOUT13_MARK, MSIOF0_TXD_MARK, ADICHS1_MARK,
  728. DU2_DG6_MARK, LCDOUT14_MARK,
  729. MSIOF0_SS2_MARK, AUDIO_CLKOUT_MARK, ADICHS2_MARK,
  730. DU2_DISP_MARK, QPOLA_MARK, HTX0_C_MARK, SCIFA2_TXD_B_MARK,
  731. MSIOF0_RXD_MARK, TS_SPSYNC0_MARK, SSI_WS2_MARK,
  732. ADICS_SAMP_MARK, DU2_CDE_MARK, QPOLB_MARK, SCIFA2_RXD_B_MARK,
  733. USB1_PWEN_MARK, AUDIO_CLKOUT_D_MARK, USB1_OVC_MARK,
  734. TCLK1_B_MARK,
  735. IIC0_SCL_MARK, IIC0_SDA_MARK, I2C0_SCL_MARK, I2C0_SDA_MARK,
  736. IIC3_SCL_MARK, IIC3_SDA_MARK, I2C3_SCL_MARK, I2C3_SDA_MARK,
  737. PINMUX_MARK_END,
  738. };
  739. static const u16 pinmux_data[] = {
  740. PINMUX_DATA_GP_ALL(), /* PINMUX_DATA(GP_M_N_DATA, GP_M_N_FN...), */
  741. PINMUX_SINGLE(VI1_DATA7_VI1_B7),
  742. PINMUX_SINGLE(USB0_PWEN),
  743. PINMUX_SINGLE(USB0_OVC_VBUS),
  744. PINMUX_SINGLE(USB2_PWEN),
  745. PINMUX_SINGLE(USB2_OVC),
  746. PINMUX_SINGLE(AVS1),
  747. PINMUX_SINGLE(AVS2),
  748. PINMUX_SINGLE(DU_DOTCLKIN0),
  749. PINMUX_SINGLE(DU_DOTCLKIN2),
  750. PINMUX_IPSR_GPSR(IP0_2_0, D0),
  751. PINMUX_IPSR_MSEL(IP0_2_0, MSIOF3_SCK_B, SEL_SOF3_1),
  752. PINMUX_IPSR_MSEL(IP0_2_0, VI3_DATA0, SEL_VI3_0),
  753. PINMUX_IPSR_MSEL(IP0_2_0, VI0_G4, SEL_VI0_0),
  754. PINMUX_IPSR_MSEL(IP0_2_0, VI0_G4_B, SEL_VI0_1),
  755. PINMUX_IPSR_GPSR(IP0_5_3, D1),
  756. PINMUX_IPSR_MSEL(IP0_5_3, MSIOF3_SYNC_B, SEL_SOF3_1),
  757. PINMUX_IPSR_MSEL(IP0_5_3, VI3_DATA1, SEL_VI3_0),
  758. PINMUX_IPSR_MSEL(IP0_5_3, VI0_G5, SEL_VI0_0),
  759. PINMUX_IPSR_MSEL(IP0_5_3, VI0_G5_B, SEL_VI0_1),
  760. PINMUX_IPSR_GPSR(IP0_8_6, D2),
  761. PINMUX_IPSR_MSEL(IP0_8_6, MSIOF3_RXD_B, SEL_SOF3_1),
  762. PINMUX_IPSR_MSEL(IP0_8_6, VI3_DATA2, SEL_VI3_0),
  763. PINMUX_IPSR_MSEL(IP0_8_6, VI0_G6, SEL_VI0_0),
  764. PINMUX_IPSR_MSEL(IP0_8_6, VI0_G6_B, SEL_VI0_1),
  765. PINMUX_IPSR_GPSR(IP0_11_9, D3),
  766. PINMUX_IPSR_MSEL(IP0_11_9, MSIOF3_TXD_B, SEL_SOF3_1),
  767. PINMUX_IPSR_MSEL(IP0_11_9, VI3_DATA3, SEL_VI3_0),
  768. PINMUX_IPSR_MSEL(IP0_11_9, VI0_G7, SEL_VI0_0),
  769. PINMUX_IPSR_MSEL(IP0_11_9, VI0_G7_B, SEL_VI0_1),
  770. PINMUX_IPSR_GPSR(IP0_15_12, D4),
  771. PINMUX_IPSR_MSEL(IP0_15_12, SCIFB1_RXD_F, SEL_SCIFB1_5),
  772. PINMUX_IPSR_MSEL(IP0_15_12, SCIFB0_RXD_C, SEL_SCIFB_2),
  773. PINMUX_IPSR_MSEL(IP0_15_12, VI3_DATA4, SEL_VI3_0),
  774. PINMUX_IPSR_MSEL(IP0_15_12, VI0_R0, SEL_VI0_0),
  775. PINMUX_IPSR_MSEL(IP0_15_12, VI0_R0_B, SEL_VI0_1),
  776. PINMUX_IPSR_MSEL(IP0_15_12, RX0_B, SEL_SCIF0_1),
  777. PINMUX_IPSR_GPSR(IP0_19_16, D5),
  778. PINMUX_IPSR_MSEL(IP0_19_16, SCIFB1_TXD_F, SEL_SCIFB1_5),
  779. PINMUX_IPSR_MSEL(IP0_19_16, SCIFB0_TXD_C, SEL_SCIFB_2),
  780. PINMUX_IPSR_MSEL(IP0_19_16, VI3_DATA5, SEL_VI3_0),
  781. PINMUX_IPSR_MSEL(IP0_19_16, VI0_R1, SEL_VI0_0),
  782. PINMUX_IPSR_MSEL(IP0_19_16, VI0_R1_B, SEL_VI0_1),
  783. PINMUX_IPSR_MSEL(IP0_19_16, TX0_B, SEL_SCIF0_1),
  784. PINMUX_IPSR_GPSR(IP0_22_20, D6),
  785. PINMUX_IPSR_MSEL(IP0_22_20, IIC2_SCL_C, SEL_IIC2_2),
  786. PINMUX_IPSR_MSEL(IP0_22_20, VI3_DATA6, SEL_VI3_0),
  787. PINMUX_IPSR_MSEL(IP0_22_20, VI0_R2, SEL_VI0_0),
  788. PINMUX_IPSR_MSEL(IP0_22_20, VI0_R2_B, SEL_VI0_1),
  789. PINMUX_IPSR_MSEL(IP0_22_20, I2C2_SCL_C, SEL_I2C2_2),
  790. PINMUX_IPSR_GPSR(IP0_26_23, D7),
  791. PINMUX_IPSR_MSEL(IP0_26_23, AD_DI_B, SEL_ADI_1),
  792. PINMUX_IPSR_MSEL(IP0_26_23, IIC2_SDA_C, SEL_IIC2_2),
  793. PINMUX_IPSR_MSEL(IP0_26_23, VI3_DATA7, SEL_VI3_0),
  794. PINMUX_IPSR_MSEL(IP0_26_23, VI0_R3, SEL_VI0_0),
  795. PINMUX_IPSR_MSEL(IP0_26_23, VI0_R3_B, SEL_VI0_1),
  796. PINMUX_IPSR_MSEL(IP0_26_23, I2C2_SDA_C, SEL_I2C2_2),
  797. PINMUX_IPSR_MSEL(IP0_26_23, TCLK1, SEL_TMU1_0),
  798. PINMUX_IPSR_GPSR(IP0_30_27, D8),
  799. PINMUX_IPSR_MSEL(IP0_30_27, SCIFA1_SCK_C, SEL_SCIFA1_2),
  800. PINMUX_IPSR_GPSR(IP0_30_27, AVB_TXD0),
  801. PINMUX_IPSR_MSEL(IP0_30_27, VI0_G0, SEL_VI0_0),
  802. PINMUX_IPSR_MSEL(IP0_30_27, VI0_G0_B, SEL_VI0_1),
  803. PINMUX_IPSR_MSEL(IP0_30_27, VI2_DATA0_VI2_B0, SEL_VI2_0),
  804. PINMUX_IPSR_GPSR(IP1_3_0, D9),
  805. PINMUX_IPSR_MSEL(IP1_3_0, SCIFA1_RXD_C, SEL_SCIFA1_2),
  806. PINMUX_IPSR_GPSR(IP1_3_0, AVB_TXD1),
  807. PINMUX_IPSR_MSEL(IP1_3_0, VI0_G1, SEL_VI0_0),
  808. PINMUX_IPSR_MSEL(IP1_3_0, VI0_G1_B, SEL_VI0_1),
  809. PINMUX_IPSR_MSEL(IP1_3_0, VI2_DATA1_VI2_B1, SEL_VI2_0),
  810. PINMUX_IPSR_GPSR(IP1_7_4, D10),
  811. PINMUX_IPSR_MSEL(IP1_7_4, SCIFA1_TXD_C, SEL_SCIFA1_2),
  812. PINMUX_IPSR_GPSR(IP1_7_4, AVB_TXD2),
  813. PINMUX_IPSR_MSEL(IP1_7_4, VI0_G2, SEL_VI0_0),
  814. PINMUX_IPSR_MSEL(IP1_7_4, VI0_G2_B, SEL_VI0_1),
  815. PINMUX_IPSR_MSEL(IP1_7_4, VI2_DATA2_VI2_B2, SEL_VI2_0),
  816. PINMUX_IPSR_GPSR(IP1_11_8, D11),
  817. PINMUX_IPSR_MSEL(IP1_11_8, SCIFA1_CTS_N_C, SEL_SCIFA1_2),
  818. PINMUX_IPSR_GPSR(IP1_11_8, AVB_TXD3),
  819. PINMUX_IPSR_MSEL(IP1_11_8, VI0_G3, SEL_VI0_0),
  820. PINMUX_IPSR_MSEL(IP1_11_8, VI0_G3_B, SEL_VI0_1),
  821. PINMUX_IPSR_MSEL(IP1_11_8, VI2_DATA3_VI2_B3, SEL_VI2_0),
  822. PINMUX_IPSR_GPSR(IP1_14_12, D12),
  823. PINMUX_IPSR_MSEL(IP1_14_12, SCIFA1_RTS_N_C, SEL_SCIFA1_2),
  824. PINMUX_IPSR_GPSR(IP1_14_12, AVB_TXD4),
  825. PINMUX_IPSR_MSEL(IP1_14_12, VI0_HSYNC_N, SEL_VI0_0),
  826. PINMUX_IPSR_MSEL(IP1_14_12, VI0_HSYNC_N_B, SEL_VI0_1),
  827. PINMUX_IPSR_MSEL(IP1_14_12, VI2_DATA4_VI2_B4, SEL_VI2_0),
  828. PINMUX_IPSR_GPSR(IP1_17_15, D13),
  829. PINMUX_IPSR_GPSR(IP1_17_15, AVB_TXD5),
  830. PINMUX_IPSR_MSEL(IP1_17_15, VI0_VSYNC_N, SEL_VI0_0),
  831. PINMUX_IPSR_MSEL(IP1_17_15, VI0_VSYNC_N_B, SEL_VI0_1),
  832. PINMUX_IPSR_MSEL(IP1_17_15, VI2_DATA5_VI2_B5, SEL_VI2_0),
  833. PINMUX_IPSR_GPSR(IP1_21_18, D14),
  834. PINMUX_IPSR_MSEL(IP1_21_18, SCIFB1_RXD_C, SEL_SCIFB1_2),
  835. PINMUX_IPSR_GPSR(IP1_21_18, AVB_TXD6),
  836. PINMUX_IPSR_MSEL(IP1_21_18, RX1_B, SEL_SCIF1_1),
  837. PINMUX_IPSR_MSEL(IP1_21_18, VI0_CLKENB, SEL_VI0_0),
  838. PINMUX_IPSR_MSEL(IP1_21_18, VI0_CLKENB_B, SEL_VI0_1),
  839. PINMUX_IPSR_MSEL(IP1_21_18, VI2_DATA6_VI2_B6, SEL_VI2_0),
  840. PINMUX_IPSR_GPSR(IP1_25_22, D15),
  841. PINMUX_IPSR_MSEL(IP1_25_22, SCIFB1_TXD_C, SEL_SCIFB1_2),
  842. PINMUX_IPSR_GPSR(IP1_25_22, AVB_TXD7),
  843. PINMUX_IPSR_MSEL(IP1_25_22, TX1_B, SEL_SCIF1_1),
  844. PINMUX_IPSR_MSEL(IP1_25_22, VI0_FIELD, SEL_VI0_0),
  845. PINMUX_IPSR_MSEL(IP1_25_22, VI0_FIELD_B, SEL_VI0_1),
  846. PINMUX_IPSR_MSEL(IP1_25_22, VI2_DATA7_VI2_B7, SEL_VI2_0),
  847. PINMUX_IPSR_GPSR(IP1_27_26, A0),
  848. PINMUX_IPSR_GPSR(IP1_27_26, PWM3),
  849. PINMUX_IPSR_GPSR(IP1_29_28, A1),
  850. PINMUX_IPSR_GPSR(IP1_29_28, PWM4),
  851. PINMUX_IPSR_GPSR(IP2_2_0, A2),
  852. PINMUX_IPSR_GPSR(IP2_2_0, PWM5),
  853. PINMUX_IPSR_MSEL(IP2_2_0, MSIOF1_SS1_B, SEL_SOF1_1),
  854. PINMUX_IPSR_GPSR(IP2_5_3, A3),
  855. PINMUX_IPSR_GPSR(IP2_5_3, PWM6),
  856. PINMUX_IPSR_MSEL(IP2_5_3, MSIOF1_SS2_B, SEL_SOF1_1),
  857. PINMUX_IPSR_GPSR(IP2_8_6, A4),
  858. PINMUX_IPSR_MSEL(IP2_8_6, MSIOF1_TXD_B, SEL_SOF1_1),
  859. PINMUX_IPSR_GPSR(IP2_8_6, TPU0TO0),
  860. PINMUX_IPSR_GPSR(IP2_11_9, A5),
  861. PINMUX_IPSR_MSEL(IP2_11_9, SCIFA1_TXD_B, SEL_SCIFA1_1),
  862. PINMUX_IPSR_GPSR(IP2_11_9, TPU0TO1),
  863. PINMUX_IPSR_GPSR(IP2_14_12, A6),
  864. PINMUX_IPSR_MSEL(IP2_14_12, SCIFA1_RTS_N_B, SEL_SCIFA1_1),
  865. PINMUX_IPSR_GPSR(IP2_14_12, TPU0TO2),
  866. PINMUX_IPSR_GPSR(IP2_17_15, A7),
  867. PINMUX_IPSR_MSEL(IP2_17_15, SCIFA1_SCK_B, SEL_SCIFA1_1),
  868. PINMUX_IPSR_GPSR(IP2_17_15, AUDIO_CLKOUT_B),
  869. PINMUX_IPSR_GPSR(IP2_17_15, TPU0TO3),
  870. PINMUX_IPSR_GPSR(IP2_21_18, A8),
  871. PINMUX_IPSR_MSEL(IP2_21_18, SCIFA1_RXD_B, SEL_SCIFA1_1),
  872. PINMUX_IPSR_MSEL(IP2_21_18, SSI_SCK5_B, SEL_SSI5_1),
  873. PINMUX_IPSR_MSEL(IP2_21_18, VI0_R4, SEL_VI0_0),
  874. PINMUX_IPSR_MSEL(IP2_21_18, VI0_R4_B, SEL_VI0_1),
  875. PINMUX_IPSR_MSEL(IP2_21_18, SCIFB2_RXD_C, SEL_SCIFB2_2),
  876. PINMUX_IPSR_MSEL(IP2_21_18, RX2_B, SEL_SCIF2_1),
  877. PINMUX_IPSR_MSEL(IP2_21_18, VI2_DATA0_VI2_B0_B, SEL_VI2_1),
  878. PINMUX_IPSR_GPSR(IP2_25_22, A9),
  879. PINMUX_IPSR_MSEL(IP2_25_22, SCIFA1_CTS_N_B, SEL_SCIFA1_1),
  880. PINMUX_IPSR_MSEL(IP2_25_22, SSI_WS5_B, SEL_SSI5_1),
  881. PINMUX_IPSR_MSEL(IP2_25_22, VI0_R5, SEL_VI0_0),
  882. PINMUX_IPSR_MSEL(IP2_25_22, VI0_R5_B, SEL_VI0_1),
  883. PINMUX_IPSR_MSEL(IP2_25_22, SCIFB2_TXD_C, SEL_SCIFB2_2),
  884. PINMUX_IPSR_MSEL(IP2_25_22, TX2_B, SEL_SCIF2_1),
  885. PINMUX_IPSR_MSEL(IP2_25_22, VI2_DATA1_VI2_B1_B, SEL_VI2_1),
  886. PINMUX_IPSR_GPSR(IP2_28_26, A10),
  887. PINMUX_IPSR_MSEL(IP2_28_26, SSI_SDATA5_B, SEL_SSI5_1),
  888. PINMUX_IPSR_GPSR(IP2_28_26, MSIOF2_SYNC),
  889. PINMUX_IPSR_MSEL(IP2_28_26, VI0_R6, SEL_VI0_0),
  890. PINMUX_IPSR_MSEL(IP2_28_26, VI0_R6_B, SEL_VI0_1),
  891. PINMUX_IPSR_MSEL(IP2_28_26, VI2_DATA2_VI2_B2_B, SEL_VI2_1),
  892. PINMUX_IPSR_GPSR(IP3_3_0, A11),
  893. PINMUX_IPSR_MSEL(IP3_3_0, SCIFB2_CTS_N_B, SEL_SCIFB2_1),
  894. PINMUX_IPSR_GPSR(IP3_3_0, MSIOF2_SCK),
  895. PINMUX_IPSR_MSEL(IP3_3_0, VI1_R0, SEL_VI1_0),
  896. PINMUX_IPSR_MSEL(IP3_3_0, VI1_R0_B, SEL_VI1_1),
  897. PINMUX_IPSR_GPSR(IP3_3_0, VI2_G0),
  898. PINMUX_IPSR_MSEL(IP3_3_0, VI2_DATA3_VI2_B3_B, SEL_VI2_1),
  899. PINMUX_IPSR_GPSR(IP3_7_4, A12),
  900. PINMUX_IPSR_MSEL(IP3_7_4, SCIFB2_RXD_B, SEL_SCIFB2_1),
  901. PINMUX_IPSR_GPSR(IP3_7_4, MSIOF2_TXD),
  902. PINMUX_IPSR_MSEL(IP3_7_4, VI1_R1, SEL_VI1_0),
  903. PINMUX_IPSR_MSEL(IP3_7_4, VI1_R1_B, SEL_VI1_1),
  904. PINMUX_IPSR_GPSR(IP3_7_4, VI2_G1),
  905. PINMUX_IPSR_MSEL(IP3_7_4, VI2_DATA4_VI2_B4_B, SEL_VI2_1),
  906. PINMUX_IPSR_GPSR(IP3_11_8, A13),
  907. PINMUX_IPSR_MSEL(IP3_11_8, SCIFB2_RTS_N_B, SEL_SCIFB2_1),
  908. PINMUX_IPSR_GPSR(IP3_11_8, EX_WAIT2),
  909. PINMUX_IPSR_GPSR(IP3_11_8, MSIOF2_RXD),
  910. PINMUX_IPSR_MSEL(IP3_11_8, VI1_R2, SEL_VI1_0),
  911. PINMUX_IPSR_MSEL(IP3_11_8, VI1_R2_B, SEL_VI1_1),
  912. PINMUX_IPSR_GPSR(IP3_11_8, VI2_G2),
  913. PINMUX_IPSR_MSEL(IP3_11_8, VI2_DATA5_VI2_B5_B, SEL_VI2_1),
  914. PINMUX_IPSR_GPSR(IP3_14_12, A14),
  915. PINMUX_IPSR_MSEL(IP3_14_12, SCIFB2_TXD_B, SEL_SCIFB2_1),
  916. PINMUX_IPSR_GPSR(IP3_14_12, ATACS11_N),
  917. PINMUX_IPSR_GPSR(IP3_14_12, MSIOF2_SS1),
  918. PINMUX_IPSR_GPSR(IP3_17_15, A15),
  919. PINMUX_IPSR_MSEL(IP3_17_15, SCIFB2_SCK_B, SEL_SCIFB2_1),
  920. PINMUX_IPSR_GPSR(IP3_17_15, ATARD1_N),
  921. PINMUX_IPSR_GPSR(IP3_17_15, MSIOF2_SS2),
  922. PINMUX_IPSR_GPSR(IP3_19_18, A16),
  923. PINMUX_IPSR_GPSR(IP3_19_18, ATAWR1_N),
  924. PINMUX_IPSR_GPSR(IP3_22_20, A17),
  925. PINMUX_IPSR_MSEL(IP3_22_20, AD_DO_B, SEL_ADI_1),
  926. PINMUX_IPSR_GPSR(IP3_22_20, ATADIR1_N),
  927. PINMUX_IPSR_GPSR(IP3_25_23, A18),
  928. PINMUX_IPSR_MSEL(IP3_25_23, AD_CLK_B, SEL_ADI_1),
  929. PINMUX_IPSR_GPSR(IP3_25_23, ATAG1_N),
  930. PINMUX_IPSR_GPSR(IP3_28_26, A19),
  931. PINMUX_IPSR_MSEL(IP3_28_26, AD_NCS_N_B, SEL_ADI_1),
  932. PINMUX_IPSR_GPSR(IP3_28_26, ATACS01_N),
  933. PINMUX_IPSR_MSEL(IP3_28_26, EX_WAIT0_B, SEL_LBS_1),
  934. PINMUX_IPSR_GPSR(IP3_31_29, A20),
  935. PINMUX_IPSR_GPSR(IP3_31_29, SPCLK),
  936. PINMUX_IPSR_MSEL(IP3_31_29, VI1_R3, SEL_VI1_0),
  937. PINMUX_IPSR_MSEL(IP3_31_29, VI1_R3_B, SEL_VI1_1),
  938. PINMUX_IPSR_GPSR(IP3_31_29, VI2_G4),
  939. PINMUX_IPSR_GPSR(IP4_2_0, A21),
  940. PINMUX_IPSR_GPSR(IP4_2_0, MOSI_IO0),
  941. PINMUX_IPSR_MSEL(IP4_2_0, VI1_R4, SEL_VI1_0),
  942. PINMUX_IPSR_MSEL(IP4_2_0, VI1_R4_B, SEL_VI1_1),
  943. PINMUX_IPSR_GPSR(IP4_2_0, VI2_G5),
  944. PINMUX_IPSR_GPSR(IP4_5_3, A22),
  945. PINMUX_IPSR_GPSR(IP4_5_3, MISO_IO1),
  946. PINMUX_IPSR_MSEL(IP4_5_3, VI1_R5, SEL_VI1_0),
  947. PINMUX_IPSR_MSEL(IP4_5_3, VI1_R5_B, SEL_VI1_1),
  948. PINMUX_IPSR_GPSR(IP4_5_3, VI2_G6),
  949. PINMUX_IPSR_GPSR(IP4_8_6, A23),
  950. PINMUX_IPSR_GPSR(IP4_8_6, IO2),
  951. PINMUX_IPSR_MSEL(IP4_8_6, VI1_G7, SEL_VI1_0),
  952. PINMUX_IPSR_MSEL(IP4_8_6, VI1_G7_B, SEL_VI1_1),
  953. PINMUX_IPSR_GPSR(IP4_8_6, VI2_G7),
  954. PINMUX_IPSR_GPSR(IP4_11_9, A24),
  955. PINMUX_IPSR_GPSR(IP4_11_9, IO3),
  956. PINMUX_IPSR_MSEL(IP4_11_9, VI1_R7, SEL_VI1_0),
  957. PINMUX_IPSR_MSEL(IP4_11_9, VI1_R7_B, SEL_VI1_1),
  958. PINMUX_IPSR_MSEL(IP4_11_9, VI2_CLKENB, SEL_VI2_0),
  959. PINMUX_IPSR_MSEL(IP4_11_9, VI2_CLKENB_B, SEL_VI2_1),
  960. PINMUX_IPSR_GPSR(IP4_14_12, A25),
  961. PINMUX_IPSR_GPSR(IP4_14_12, SSL),
  962. PINMUX_IPSR_MSEL(IP4_14_12, VI1_G6, SEL_VI1_0),
  963. PINMUX_IPSR_MSEL(IP4_14_12, VI1_G6_B, SEL_VI1_1),
  964. PINMUX_IPSR_MSEL(IP4_14_12, VI2_FIELD, SEL_VI2_0),
  965. PINMUX_IPSR_MSEL(IP4_14_12, VI2_FIELD_B, SEL_VI2_1),
  966. PINMUX_IPSR_GPSR(IP4_17_15, CS0_N),
  967. PINMUX_IPSR_MSEL(IP4_17_15, VI1_R6, SEL_VI1_0),
  968. PINMUX_IPSR_MSEL(IP4_17_15, VI1_R6_B, SEL_VI1_1),
  969. PINMUX_IPSR_GPSR(IP4_17_15, VI2_G3),
  970. PINMUX_IPSR_MSEL(IP4_17_15, MSIOF0_SS2_B, SEL_SOF0_1),
  971. PINMUX_IPSR_GPSR(IP4_20_18, CS1_N_A26),
  972. PINMUX_IPSR_GPSR(IP4_20_18, SPEEDIN),
  973. PINMUX_IPSR_MSEL(IP4_20_18, VI0_R7, SEL_VI0_0),
  974. PINMUX_IPSR_MSEL(IP4_20_18, VI0_R7_B, SEL_VI0_1),
  975. PINMUX_IPSR_MSEL(IP4_20_18, VI2_CLK, SEL_VI2_0),
  976. PINMUX_IPSR_MSEL(IP4_20_18, VI2_CLK_B, SEL_VI2_1),
  977. PINMUX_IPSR_GPSR(IP4_23_21, EX_CS0_N),
  978. PINMUX_IPSR_MSEL(IP4_23_21, HRX1_B, SEL_HSCIF1_1),
  979. PINMUX_IPSR_MSEL(IP4_23_21, VI1_G5, SEL_VI1_0),
  980. PINMUX_IPSR_MSEL(IP4_23_21, VI1_G5_B, SEL_VI1_1),
  981. PINMUX_IPSR_GPSR(IP4_23_21, VI2_R0),
  982. PINMUX_IPSR_MSEL(IP4_23_21, HTX0_B, SEL_HSCIF0_1),
  983. PINMUX_IPSR_MSEL(IP4_23_21, MSIOF0_SS1_B, SEL_SOF0_1),
  984. PINMUX_IPSR_GPSR(IP4_26_24, EX_CS1_N),
  985. PINMUX_IPSR_GPSR(IP4_26_24, GPS_CLK),
  986. PINMUX_IPSR_MSEL(IP4_26_24, HCTS1_N_B, SEL_HSCIF1_1),
  987. PINMUX_IPSR_MSEL(IP4_26_24, VI1_FIELD, SEL_VI1_0),
  988. PINMUX_IPSR_MSEL(IP4_26_24, VI1_FIELD_B, SEL_VI1_1),
  989. PINMUX_IPSR_GPSR(IP4_26_24, VI2_R1),
  990. PINMUX_IPSR_GPSR(IP4_29_27, EX_CS2_N),
  991. PINMUX_IPSR_GPSR(IP4_29_27, GPS_SIGN),
  992. PINMUX_IPSR_MSEL(IP4_29_27, HRTS1_N_B, SEL_HSCIF1_1),
  993. PINMUX_IPSR_GPSR(IP4_29_27, VI3_CLKENB),
  994. PINMUX_IPSR_MSEL(IP4_29_27, VI1_G0, SEL_VI1_0),
  995. PINMUX_IPSR_MSEL(IP4_29_27, VI1_G0_B, SEL_VI1_1),
  996. PINMUX_IPSR_GPSR(IP4_29_27, VI2_R2),
  997. PINMUX_IPSR_GPSR(IP5_2_0, EX_CS3_N),
  998. PINMUX_IPSR_GPSR(IP5_2_0, GPS_MAG),
  999. PINMUX_IPSR_GPSR(IP5_2_0, VI3_FIELD),
  1000. PINMUX_IPSR_MSEL(IP5_2_0, VI1_G1, SEL_VI1_0),
  1001. PINMUX_IPSR_MSEL(IP5_2_0, VI1_G1_B, SEL_VI1_1),
  1002. PINMUX_IPSR_GPSR(IP5_2_0, VI2_R3),
  1003. PINMUX_IPSR_GPSR(IP5_5_3, EX_CS4_N),
  1004. PINMUX_IPSR_MSEL(IP5_5_3, MSIOF1_SCK_B, SEL_SOF1_1),
  1005. PINMUX_IPSR_GPSR(IP5_5_3, VI3_HSYNC_N),
  1006. PINMUX_IPSR_MSEL(IP5_5_3, VI2_HSYNC_N, SEL_VI2_0),
  1007. PINMUX_IPSR_MSEL(IP5_5_3, IIC1_SCL, SEL_IIC1_0),
  1008. PINMUX_IPSR_MSEL(IP5_5_3, VI2_HSYNC_N_B, SEL_VI2_1),
  1009. PINMUX_IPSR_GPSR(IP5_5_3, INTC_EN0_N),
  1010. PINMUX_IPSR_MSEL(IP5_5_3, I2C1_SCL, SEL_I2C1_0),
  1011. PINMUX_IPSR_GPSR(IP5_9_6, EX_CS5_N),
  1012. PINMUX_IPSR_MSEL(IP5_9_6, CAN0_RX, SEL_CAN0_0),
  1013. PINMUX_IPSR_MSEL(IP5_9_6, MSIOF1_RXD_B, SEL_SOF1_1),
  1014. PINMUX_IPSR_GPSR(IP5_9_6, VI3_VSYNC_N),
  1015. PINMUX_IPSR_MSEL(IP5_9_6, VI1_G2, SEL_VI1_0),
  1016. PINMUX_IPSR_MSEL(IP5_9_6, VI1_G2_B, SEL_VI1_1),
  1017. PINMUX_IPSR_GPSR(IP5_9_6, VI2_R4),
  1018. PINMUX_IPSR_MSEL(IP5_9_6, IIC1_SDA, SEL_IIC1_0),
  1019. PINMUX_IPSR_GPSR(IP5_9_6, INTC_EN1_N),
  1020. PINMUX_IPSR_MSEL(IP5_9_6, I2C1_SDA, SEL_I2C1_0),
  1021. PINMUX_IPSR_GPSR(IP5_12_10, BS_N),
  1022. PINMUX_IPSR_MSEL(IP5_12_10, IETX, SEL_IEB_0),
  1023. PINMUX_IPSR_MSEL(IP5_12_10, HTX1_B, SEL_HSCIF1_1),
  1024. PINMUX_IPSR_MSEL(IP5_12_10, CAN1_TX, SEL_CAN1_0),
  1025. PINMUX_IPSR_GPSR(IP5_12_10, DRACK0),
  1026. PINMUX_IPSR_MSEL(IP5_12_10, IETX_C, SEL_IEB_2),
  1027. PINMUX_IPSR_GPSR(IP5_14_13, RD_N),
  1028. PINMUX_IPSR_MSEL(IP5_14_13, CAN0_TX, SEL_CAN0_0),
  1029. PINMUX_IPSR_MSEL(IP5_14_13, SCIFA0_SCK_B, SEL_SCFA_1),
  1030. PINMUX_IPSR_GPSR(IP5_17_15, RD_WR_N),
  1031. PINMUX_IPSR_MSEL(IP5_17_15, VI1_G3, SEL_VI1_0),
  1032. PINMUX_IPSR_MSEL(IP5_17_15, VI1_G3_B, SEL_VI1_1),
  1033. PINMUX_IPSR_GPSR(IP5_17_15, VI2_R5),
  1034. PINMUX_IPSR_MSEL(IP5_17_15, SCIFA0_RXD_B, SEL_SCFA_1),
  1035. PINMUX_IPSR_GPSR(IP5_17_15, INTC_IRQ4_N),
  1036. PINMUX_IPSR_GPSR(IP5_20_18, WE0_N),
  1037. PINMUX_IPSR_MSEL(IP5_20_18, IECLK, SEL_IEB_0),
  1038. PINMUX_IPSR_MSEL(IP5_20_18, CAN_CLK, SEL_CANCLK_0),
  1039. PINMUX_IPSR_MSEL(IP5_20_18, VI2_VSYNC_N, SEL_VI2_0),
  1040. PINMUX_IPSR_MSEL(IP5_20_18, SCIFA0_TXD_B, SEL_SCFA_1),
  1041. PINMUX_IPSR_MSEL(IP5_20_18, VI2_VSYNC_N_B, SEL_VI2_1),
  1042. PINMUX_IPSR_GPSR(IP5_23_21, WE1_N),
  1043. PINMUX_IPSR_MSEL(IP5_23_21, IERX, SEL_IEB_0),
  1044. PINMUX_IPSR_MSEL(IP5_23_21, CAN1_RX, SEL_CAN1_0),
  1045. PINMUX_IPSR_MSEL(IP5_23_21, VI1_G4, SEL_VI1_0),
  1046. PINMUX_IPSR_MSEL(IP5_23_21, VI1_G4_B, SEL_VI1_1),
  1047. PINMUX_IPSR_GPSR(IP5_23_21, VI2_R6),
  1048. PINMUX_IPSR_MSEL(IP5_23_21, SCIFA0_CTS_N_B, SEL_SCFA_1),
  1049. PINMUX_IPSR_MSEL(IP5_23_21, IERX_C, SEL_IEB_2),
  1050. PINMUX_IPSR_MSEL(IP5_26_24, EX_WAIT0, SEL_LBS_0),
  1051. PINMUX_IPSR_GPSR(IP5_26_24, IRQ3),
  1052. PINMUX_IPSR_GPSR(IP5_26_24, INTC_IRQ3_N),
  1053. PINMUX_IPSR_MSEL(IP5_26_24, VI3_CLK, SEL_VI3_0),
  1054. PINMUX_IPSR_MSEL(IP5_26_24, SCIFA0_RTS_N_B, SEL_SCFA_1),
  1055. PINMUX_IPSR_MSEL(IP5_26_24, HRX0_B, SEL_HSCIF0_1),
  1056. PINMUX_IPSR_MSEL(IP5_26_24, MSIOF0_SCK_B, SEL_SOF0_1),
  1057. PINMUX_IPSR_GPSR(IP5_29_27, DREQ0_N),
  1058. PINMUX_IPSR_MSEL(IP5_29_27, VI1_HSYNC_N, SEL_VI1_0),
  1059. PINMUX_IPSR_MSEL(IP5_29_27, VI1_HSYNC_N_B, SEL_VI1_1),
  1060. PINMUX_IPSR_GPSR(IP5_29_27, VI2_R7),
  1061. PINMUX_IPSR_MSEL(IP5_29_27, SSI_SCK78_C, SEL_SSI7_2),
  1062. PINMUX_IPSR_MSEL(IP5_29_27, SSI_WS78_B, SEL_SSI7_1),
  1063. PINMUX_IPSR_GPSR(IP6_2_0, DACK0),
  1064. PINMUX_IPSR_GPSR(IP6_2_0, IRQ0),
  1065. PINMUX_IPSR_GPSR(IP6_2_0, INTC_IRQ0_N),
  1066. PINMUX_IPSR_MSEL(IP6_2_0, SSI_SCK6_B, SEL_SSI6_1),
  1067. PINMUX_IPSR_MSEL(IP6_2_0, VI1_VSYNC_N, SEL_VI1_0),
  1068. PINMUX_IPSR_MSEL(IP6_2_0, VI1_VSYNC_N_B, SEL_VI1_1),
  1069. PINMUX_IPSR_MSEL(IP6_2_0, SSI_WS78_C, SEL_SSI7_2),
  1070. PINMUX_IPSR_GPSR(IP6_5_3, DREQ1_N),
  1071. PINMUX_IPSR_MSEL(IP6_5_3, VI1_CLKENB, SEL_VI1_0),
  1072. PINMUX_IPSR_MSEL(IP6_5_3, VI1_CLKENB_B, SEL_VI1_1),
  1073. PINMUX_IPSR_MSEL(IP6_5_3, SSI_SDATA7_C, SEL_SSI7_2),
  1074. PINMUX_IPSR_MSEL(IP6_5_3, SSI_SCK78_B, SEL_SSI7_1),
  1075. PINMUX_IPSR_GPSR(IP6_8_6, DACK1),
  1076. PINMUX_IPSR_GPSR(IP6_8_6, IRQ1),
  1077. PINMUX_IPSR_GPSR(IP6_8_6, INTC_IRQ1_N),
  1078. PINMUX_IPSR_MSEL(IP6_8_6, SSI_WS6_B, SEL_SSI6_1),
  1079. PINMUX_IPSR_MSEL(IP6_8_6, SSI_SDATA8_C, SEL_SSI8_2),
  1080. PINMUX_IPSR_GPSR(IP6_10_9, DREQ2_N),
  1081. PINMUX_IPSR_MSEL(IP6_10_9, HSCK1_B, SEL_HSCIF1_1),
  1082. PINMUX_IPSR_MSEL(IP6_10_9, HCTS0_N_B, SEL_HSCIF0_1),
  1083. PINMUX_IPSR_MSEL(IP6_10_9, MSIOF0_TXD_B, SEL_SOF0_1),
  1084. PINMUX_IPSR_GPSR(IP6_13_11, DACK2),
  1085. PINMUX_IPSR_GPSR(IP6_13_11, IRQ2),
  1086. PINMUX_IPSR_GPSR(IP6_13_11, INTC_IRQ2_N),
  1087. PINMUX_IPSR_MSEL(IP6_13_11, SSI_SDATA6_B, SEL_SSI6_1),
  1088. PINMUX_IPSR_MSEL(IP6_13_11, HRTS0_N_B, SEL_HSCIF0_1),
  1089. PINMUX_IPSR_MSEL(IP6_13_11, MSIOF0_RXD_B, SEL_SOF0_1),
  1090. PINMUX_IPSR_GPSR(IP6_16_14, ETH_CRS_DV),
  1091. PINMUX_IPSR_MSEL(IP6_16_14, STP_ISCLK_0_B, SEL_SSP_1),
  1092. PINMUX_IPSR_MSEL(IP6_16_14, TS_SDEN0_D, SEL_TSIF0_3),
  1093. PINMUX_IPSR_MSEL(IP6_16_14, GLO_Q0_C, SEL_GPS_2),
  1094. PINMUX_IPSR_MSEL(IP6_16_14, IIC2_SCL_E, SEL_IIC2_4),
  1095. PINMUX_IPSR_MSEL(IP6_16_14, I2C2_SCL_E, SEL_I2C2_4),
  1096. PINMUX_IPSR_GPSR(IP6_19_17, ETH_RX_ER),
  1097. PINMUX_IPSR_MSEL(IP6_19_17, STP_ISD_0_B, SEL_SSP_1),
  1098. PINMUX_IPSR_MSEL(IP6_19_17, TS_SPSYNC0_D, SEL_TSIF0_3),
  1099. PINMUX_IPSR_MSEL(IP6_19_17, GLO_Q1_C, SEL_GPS_2),
  1100. PINMUX_IPSR_MSEL(IP6_19_17, IIC2_SDA_E, SEL_IIC2_4),
  1101. PINMUX_IPSR_MSEL(IP6_19_17, I2C2_SDA_E, SEL_I2C2_4),
  1102. PINMUX_IPSR_GPSR(IP6_22_20, ETH_RXD0),
  1103. PINMUX_IPSR_MSEL(IP6_22_20, STP_ISEN_0_B, SEL_SSP_1),
  1104. PINMUX_IPSR_MSEL(IP6_22_20, TS_SDAT0_D, SEL_TSIF0_3),
  1105. PINMUX_IPSR_MSEL(IP6_22_20, GLO_I0_C, SEL_GPS_2),
  1106. PINMUX_IPSR_MSEL(IP6_22_20, SCIFB1_SCK_G, SEL_SCIFB1_6),
  1107. PINMUX_IPSR_MSEL(IP6_22_20, SCK1_E, SEL_SCIF1_4),
  1108. PINMUX_IPSR_GPSR(IP6_25_23, ETH_RXD1),
  1109. PINMUX_IPSR_MSEL(IP6_25_23, HRX0_E, SEL_HSCIF0_4),
  1110. PINMUX_IPSR_MSEL(IP6_25_23, STP_ISSYNC_0_B, SEL_SSP_1),
  1111. PINMUX_IPSR_MSEL(IP6_25_23, TS_SCK0_D, SEL_TSIF0_3),
  1112. PINMUX_IPSR_MSEL(IP6_25_23, GLO_I1_C, SEL_GPS_2),
  1113. PINMUX_IPSR_MSEL(IP6_25_23, SCIFB1_RXD_G, SEL_SCIFB1_6),
  1114. PINMUX_IPSR_MSEL(IP6_25_23, RX1_E, SEL_SCIF1_4),
  1115. PINMUX_IPSR_GPSR(IP6_28_26, ETH_LINK),
  1116. PINMUX_IPSR_MSEL(IP6_28_26, HTX0_E, SEL_HSCIF0_4),
  1117. PINMUX_IPSR_MSEL(IP6_28_26, STP_IVCXO27_0_B, SEL_SSP_1),
  1118. PINMUX_IPSR_MSEL(IP6_28_26, SCIFB1_TXD_G, SEL_SCIFB1_6),
  1119. PINMUX_IPSR_MSEL(IP6_28_26, TX1_E, SEL_SCIF1_4),
  1120. PINMUX_IPSR_GPSR(IP6_31_29, ETH_REF_CLK),
  1121. PINMUX_IPSR_MSEL(IP6_31_29, HCTS0_N_E, SEL_HSCIF0_4),
  1122. PINMUX_IPSR_MSEL(IP6_31_29, STP_IVCXO27_1_B, SEL_SSP_1),
  1123. PINMUX_IPSR_MSEL(IP6_31_29, HRX0_F, SEL_HSCIF0_5),
  1124. PINMUX_IPSR_GPSR(IP7_2_0, ETH_MDIO),
  1125. PINMUX_IPSR_MSEL(IP7_2_0, HRTS0_N_E, SEL_HSCIF0_4),
  1126. PINMUX_IPSR_MSEL(IP7_2_0, SIM0_D_C, SEL_SIM_2),
  1127. PINMUX_IPSR_MSEL(IP7_2_0, HCTS0_N_F, SEL_HSCIF0_5),
  1128. PINMUX_IPSR_GPSR(IP7_5_3, ETH_TXD1),
  1129. PINMUX_IPSR_MSEL(IP7_5_3, HTX0_F, SEL_HSCIF0_5),
  1130. PINMUX_IPSR_MSEL(IP7_5_3, BPFCLK_G, SEL_FM_6),
  1131. PINMUX_IPSR_GPSR(IP7_7_6, ETH_TX_EN),
  1132. PINMUX_IPSR_MSEL(IP7_7_6, SIM0_CLK_C, SEL_SIM_2),
  1133. PINMUX_IPSR_MSEL(IP7_7_6, HRTS0_N_F, SEL_HSCIF0_5),
  1134. PINMUX_IPSR_GPSR(IP7_9_8, ETH_MAGIC),
  1135. PINMUX_IPSR_MSEL(IP7_9_8, SIM0_RST_C, SEL_SIM_2),
  1136. PINMUX_IPSR_GPSR(IP7_12_10, ETH_TXD0),
  1137. PINMUX_IPSR_MSEL(IP7_12_10, STP_ISCLK_1_B, SEL_SSP_1),
  1138. PINMUX_IPSR_MSEL(IP7_12_10, TS_SDEN1_C, SEL_TSIF1_2),
  1139. PINMUX_IPSR_MSEL(IP7_12_10, GLO_SCLK_C, SEL_GPS_2),
  1140. PINMUX_IPSR_GPSR(IP7_15_13, ETH_MDC),
  1141. PINMUX_IPSR_MSEL(IP7_15_13, STP_ISD_1_B, SEL_SSP_1),
  1142. PINMUX_IPSR_MSEL(IP7_15_13, TS_SPSYNC1_C, SEL_TSIF1_2),
  1143. PINMUX_IPSR_MSEL(IP7_15_13, GLO_SDATA_C, SEL_GPS_2),
  1144. PINMUX_IPSR_GPSR(IP7_18_16, PWM0),
  1145. PINMUX_IPSR_MSEL(IP7_18_16, SCIFA2_SCK_C, SEL_SCIFA2_2),
  1146. PINMUX_IPSR_MSEL(IP7_18_16, STP_ISEN_1_B, SEL_SSP_1),
  1147. PINMUX_IPSR_MSEL(IP7_18_16, TS_SDAT1_C, SEL_TSIF1_2),
  1148. PINMUX_IPSR_MSEL(IP7_18_16, GLO_SS_C, SEL_GPS_2),
  1149. PINMUX_IPSR_GPSR(IP7_21_19, PWM1),
  1150. PINMUX_IPSR_MSEL(IP7_21_19, SCIFA2_TXD_C, SEL_SCIFA2_2),
  1151. PINMUX_IPSR_MSEL(IP7_21_19, STP_ISSYNC_1_B, SEL_SSP_1),
  1152. PINMUX_IPSR_MSEL(IP7_21_19, TS_SCK1_C, SEL_TSIF1_2),
  1153. PINMUX_IPSR_MSEL(IP7_21_19, GLO_RFON_C, SEL_GPS_2),
  1154. PINMUX_IPSR_GPSR(IP7_21_19, PCMOE_N),
  1155. PINMUX_IPSR_GPSR(IP7_24_22, PWM2),
  1156. PINMUX_IPSR_GPSR(IP7_24_22, PWMFSW0),
  1157. PINMUX_IPSR_MSEL(IP7_24_22, SCIFA2_RXD_C, SEL_SCIFA2_2),
  1158. PINMUX_IPSR_GPSR(IP7_24_22, PCMWE_N),
  1159. PINMUX_IPSR_MSEL(IP7_24_22, IECLK_C, SEL_IEB_2),
  1160. PINMUX_IPSR_GPSR(IP7_26_25, DU_DOTCLKIN1),
  1161. PINMUX_IPSR_GPSR(IP7_26_25, AUDIO_CLKC),
  1162. PINMUX_IPSR_GPSR(IP7_26_25, AUDIO_CLKOUT_C),
  1163. PINMUX_IPSR_MSEL(IP7_28_27, VI0_CLK, SEL_VI0_0),
  1164. PINMUX_IPSR_GPSR(IP7_28_27, ATACS00_N),
  1165. PINMUX_IPSR_GPSR(IP7_28_27, AVB_RXD1),
  1166. PINMUX_IPSR_MSEL(IP7_30_29, VI0_DATA0_VI0_B0, SEL_VI0_0),
  1167. PINMUX_IPSR_GPSR(IP7_30_29, ATACS10_N),
  1168. PINMUX_IPSR_GPSR(IP7_30_29, AVB_RXD2),
  1169. PINMUX_IPSR_MSEL(IP8_1_0, VI0_DATA1_VI0_B1, SEL_VI0_0),
  1170. PINMUX_IPSR_GPSR(IP8_1_0, ATARD0_N),
  1171. PINMUX_IPSR_GPSR(IP8_1_0, AVB_RXD3),
  1172. PINMUX_IPSR_MSEL(IP8_3_2, VI0_DATA2_VI0_B2, SEL_VI0_0),
  1173. PINMUX_IPSR_GPSR(IP8_3_2, ATAWR0_N),
  1174. PINMUX_IPSR_GPSR(IP8_3_2, AVB_RXD4),
  1175. PINMUX_IPSR_MSEL(IP8_5_4, VI0_DATA3_VI0_B3, SEL_VI0_0),
  1176. PINMUX_IPSR_GPSR(IP8_5_4, ATADIR0_N),
  1177. PINMUX_IPSR_GPSR(IP8_5_4, AVB_RXD5),
  1178. PINMUX_IPSR_MSEL(IP8_7_6, VI0_DATA4_VI0_B4, SEL_VI0_0),
  1179. PINMUX_IPSR_GPSR(IP8_7_6, ATAG0_N),
  1180. PINMUX_IPSR_GPSR(IP8_7_6, AVB_RXD6),
  1181. PINMUX_IPSR_MSEL(IP8_9_8, VI0_DATA5_VI0_B5, SEL_VI0_0),
  1182. PINMUX_IPSR_GPSR(IP8_9_8, EX_WAIT1),
  1183. PINMUX_IPSR_GPSR(IP8_9_8, AVB_RXD7),
  1184. PINMUX_IPSR_MSEL(IP8_11_10, VI0_DATA6_VI0_B6, SEL_VI0_0),
  1185. PINMUX_IPSR_GPSR(IP8_11_10, AVB_RX_ER),
  1186. PINMUX_IPSR_MSEL(IP8_13_12, VI0_DATA7_VI0_B7, SEL_VI0_0),
  1187. PINMUX_IPSR_GPSR(IP8_13_12, AVB_RX_CLK),
  1188. PINMUX_IPSR_MSEL(IP8_15_14, VI1_CLK, SEL_VI1_0),
  1189. PINMUX_IPSR_GPSR(IP8_15_14, AVB_RX_DV),
  1190. PINMUX_IPSR_MSEL(IP8_17_16, VI1_DATA0_VI1_B0, SEL_VI1_0),
  1191. PINMUX_IPSR_MSEL(IP8_17_16, SCIFA1_SCK_D, SEL_SCIFA1_3),
  1192. PINMUX_IPSR_GPSR(IP8_17_16, AVB_CRS),
  1193. PINMUX_IPSR_MSEL(IP8_19_18, VI1_DATA1_VI1_B1, SEL_VI1_0),
  1194. PINMUX_IPSR_MSEL(IP8_19_18, SCIFA1_RXD_D, SEL_SCIFA1_3),
  1195. PINMUX_IPSR_GPSR(IP8_19_18, AVB_MDC),
  1196. PINMUX_IPSR_MSEL(IP8_21_20, VI1_DATA2_VI1_B2, SEL_VI1_0),
  1197. PINMUX_IPSR_MSEL(IP8_21_20, SCIFA1_TXD_D, SEL_SCIFA1_3),
  1198. PINMUX_IPSR_GPSR(IP8_21_20, AVB_MDIO),
  1199. PINMUX_IPSR_MSEL(IP8_23_22, VI1_DATA3_VI1_B3, SEL_VI1_0),
  1200. PINMUX_IPSR_MSEL(IP8_23_22, SCIFA1_CTS_N_D, SEL_SCIFA1_3),
  1201. PINMUX_IPSR_GPSR(IP8_23_22, AVB_GTX_CLK),
  1202. PINMUX_IPSR_MSEL(IP8_25_24, VI1_DATA4_VI1_B4, SEL_VI1_0),
  1203. PINMUX_IPSR_MSEL(IP8_25_24, SCIFA1_RTS_N_D, SEL_SCIFA1_3),
  1204. PINMUX_IPSR_GPSR(IP8_25_24, AVB_MAGIC),
  1205. PINMUX_IPSR_MSEL(IP8_26, VI1_DATA5_VI1_B5, SEL_VI1_0),
  1206. PINMUX_IPSR_GPSR(IP8_26, AVB_PHY_INT),
  1207. PINMUX_IPSR_MSEL(IP8_27, VI1_DATA6_VI1_B6, SEL_VI1_0),
  1208. PINMUX_IPSR_GPSR(IP8_27, AVB_GTXREFCLK),
  1209. PINMUX_IPSR_GPSR(IP8_28, SD0_CLK),
  1210. PINMUX_IPSR_MSEL(IP8_28, VI1_DATA0_VI1_B0_B, SEL_VI1_1),
  1211. PINMUX_IPSR_GPSR(IP8_30_29, SD0_CMD),
  1212. PINMUX_IPSR_MSEL(IP8_30_29, SCIFB1_SCK_B, SEL_SCIFB1_1),
  1213. PINMUX_IPSR_MSEL(IP8_30_29, VI1_DATA1_VI1_B1_B, SEL_VI1_1),
  1214. PINMUX_IPSR_GPSR(IP9_1_0, SD0_DAT0),
  1215. PINMUX_IPSR_MSEL(IP9_1_0, SCIFB1_RXD_B, SEL_SCIFB1_1),
  1216. PINMUX_IPSR_MSEL(IP9_1_0, VI1_DATA2_VI1_B2_B, SEL_VI1_1),
  1217. PINMUX_IPSR_GPSR(IP9_3_2, SD0_DAT1),
  1218. PINMUX_IPSR_MSEL(IP9_3_2, SCIFB1_TXD_B, SEL_SCIFB1_1),
  1219. PINMUX_IPSR_MSEL(IP9_3_2, VI1_DATA3_VI1_B3_B, SEL_VI1_1),
  1220. PINMUX_IPSR_GPSR(IP9_5_4, SD0_DAT2),
  1221. PINMUX_IPSR_MSEL(IP9_5_4, SCIFB1_CTS_N_B, SEL_SCIFB1_1),
  1222. PINMUX_IPSR_MSEL(IP9_5_4, VI1_DATA4_VI1_B4_B, SEL_VI1_1),
  1223. PINMUX_IPSR_GPSR(IP9_7_6, SD0_DAT3),
  1224. PINMUX_IPSR_MSEL(IP9_7_6, SCIFB1_RTS_N_B, SEL_SCIFB1_1),
  1225. PINMUX_IPSR_MSEL(IP9_7_6, VI1_DATA5_VI1_B5_B, SEL_VI1_1),
  1226. PINMUX_IPSR_GPSR(IP9_11_8, SD0_CD),
  1227. PINMUX_IPSR_GPSR(IP9_11_8, MMC0_D6),
  1228. PINMUX_IPSR_MSEL(IP9_11_8, TS_SDEN0_B, SEL_TSIF0_1),
  1229. PINMUX_IPSR_GPSR(IP9_11_8, USB0_EXTP),
  1230. PINMUX_IPSR_MSEL(IP9_11_8, GLO_SCLK, SEL_GPS_0),
  1231. PINMUX_IPSR_MSEL(IP9_11_8, VI1_DATA6_VI1_B6_B, SEL_VI1_1),
  1232. PINMUX_IPSR_MSEL(IP9_11_8, IIC1_SCL_B, SEL_IIC1_1),
  1233. PINMUX_IPSR_MSEL(IP9_11_8, I2C1_SCL_B, SEL_I2C1_1),
  1234. PINMUX_IPSR_MSEL(IP9_11_8, VI2_DATA6_VI2_B6_B, SEL_VI2_1),
  1235. PINMUX_IPSR_GPSR(IP9_15_12, SD0_WP),
  1236. PINMUX_IPSR_GPSR(IP9_15_12, MMC0_D7),
  1237. PINMUX_IPSR_MSEL(IP9_15_12, TS_SPSYNC0_B, SEL_TSIF0_1),
  1238. PINMUX_IPSR_GPSR(IP9_15_12, USB0_IDIN),
  1239. PINMUX_IPSR_MSEL(IP9_15_12, GLO_SDATA, SEL_GPS_0),
  1240. PINMUX_IPSR_MSEL(IP9_15_12, VI1_DATA7_VI1_B7_B, SEL_VI1_1),
  1241. PINMUX_IPSR_MSEL(IP9_15_12, IIC1_SDA_B, SEL_IIC1_1),
  1242. PINMUX_IPSR_MSEL(IP9_15_12, I2C1_SDA_B, SEL_I2C1_1),
  1243. PINMUX_IPSR_MSEL(IP9_15_12, VI2_DATA7_VI2_B7_B, SEL_VI2_1),
  1244. PINMUX_IPSR_GPSR(IP9_17_16, SD1_CLK),
  1245. PINMUX_IPSR_GPSR(IP9_17_16, AVB_TX_EN),
  1246. PINMUX_IPSR_GPSR(IP9_19_18, SD1_CMD),
  1247. PINMUX_IPSR_GPSR(IP9_19_18, AVB_TX_ER),
  1248. PINMUX_IPSR_MSEL(IP9_19_18, SCIFB0_SCK_B, SEL_SCIFB_1),
  1249. PINMUX_IPSR_GPSR(IP9_21_20, SD1_DAT0),
  1250. PINMUX_IPSR_GPSR(IP9_21_20, AVB_TX_CLK),
  1251. PINMUX_IPSR_MSEL(IP9_21_20, SCIFB0_RXD_B, SEL_SCIFB_1),
  1252. PINMUX_IPSR_GPSR(IP9_23_22, SD1_DAT1),
  1253. PINMUX_IPSR_GPSR(IP9_23_22, AVB_LINK),
  1254. PINMUX_IPSR_MSEL(IP9_23_22, SCIFB0_TXD_B, SEL_SCIFB_1),
  1255. PINMUX_IPSR_GPSR(IP9_25_24, SD1_DAT2),
  1256. PINMUX_IPSR_GPSR(IP9_25_24, AVB_COL),
  1257. PINMUX_IPSR_MSEL(IP9_25_24, SCIFB0_CTS_N_B, SEL_SCIFB_1),
  1258. PINMUX_IPSR_GPSR(IP9_27_26, SD1_DAT3),
  1259. PINMUX_IPSR_GPSR(IP9_27_26, AVB_RXD0),
  1260. PINMUX_IPSR_MSEL(IP9_27_26, SCIFB0_RTS_N_B, SEL_SCIFB_1),
  1261. PINMUX_IPSR_GPSR(IP9_31_28, SD1_CD),
  1262. PINMUX_IPSR_GPSR(IP9_31_28, MMC1_D6),
  1263. PINMUX_IPSR_MSEL(IP9_31_28, TS_SDEN1, SEL_TSIF1_0),
  1264. PINMUX_IPSR_GPSR(IP9_31_28, USB1_EXTP),
  1265. PINMUX_IPSR_MSEL(IP9_31_28, GLO_SS, SEL_GPS_0),
  1266. PINMUX_IPSR_MSEL(IP9_31_28, VI0_CLK_B, SEL_VI0_1),
  1267. PINMUX_IPSR_MSEL(IP9_31_28, IIC2_SCL_D, SEL_IIC2_3),
  1268. PINMUX_IPSR_MSEL(IP9_31_28, I2C2_SCL_D, SEL_I2C2_3),
  1269. PINMUX_IPSR_MSEL(IP9_31_28, SIM0_CLK_B, SEL_SIM_1),
  1270. PINMUX_IPSR_MSEL(IP9_31_28, VI3_CLK_B, SEL_VI3_1),
  1271. PINMUX_IPSR_GPSR(IP10_3_0, SD1_WP),
  1272. PINMUX_IPSR_GPSR(IP10_3_0, MMC1_D7),
  1273. PINMUX_IPSR_MSEL(IP10_3_0, TS_SPSYNC1, SEL_TSIF1_0),
  1274. PINMUX_IPSR_GPSR(IP10_3_0, USB1_IDIN),
  1275. PINMUX_IPSR_MSEL(IP10_3_0, GLO_RFON, SEL_GPS_0),
  1276. PINMUX_IPSR_MSEL(IP10_3_0, VI1_CLK_B, SEL_VI1_1),
  1277. PINMUX_IPSR_MSEL(IP10_3_0, IIC2_SDA_D, SEL_IIC2_3),
  1278. PINMUX_IPSR_MSEL(IP10_3_0, I2C2_SDA_D, SEL_I2C2_3),
  1279. PINMUX_IPSR_MSEL(IP10_3_0, SIM0_D_B, SEL_SIM_1),
  1280. PINMUX_IPSR_GPSR(IP10_6_4, SD2_CLK),
  1281. PINMUX_IPSR_GPSR(IP10_6_4, MMC0_CLK),
  1282. PINMUX_IPSR_MSEL(IP10_6_4, SIM0_CLK, SEL_SIM_0),
  1283. PINMUX_IPSR_MSEL(IP10_6_4, VI0_DATA0_VI0_B0_B, SEL_VI0_1),
  1284. PINMUX_IPSR_MSEL(IP10_6_4, TS_SDEN0_C, SEL_TSIF0_2),
  1285. PINMUX_IPSR_MSEL(IP10_6_4, GLO_SCLK_B, SEL_GPS_1),
  1286. PINMUX_IPSR_MSEL(IP10_6_4, VI3_DATA0_B, SEL_VI3_1),
  1287. PINMUX_IPSR_GPSR(IP10_10_7, SD2_CMD),
  1288. PINMUX_IPSR_GPSR(IP10_10_7, MMC0_CMD),
  1289. PINMUX_IPSR_MSEL(IP10_10_7, SIM0_D, SEL_SIM_0),
  1290. PINMUX_IPSR_MSEL(IP10_10_7, VI0_DATA1_VI0_B1_B, SEL_VI0_1),
  1291. PINMUX_IPSR_MSEL(IP10_10_7, SCIFB1_SCK_E, SEL_SCIFB1_4),
  1292. PINMUX_IPSR_MSEL(IP10_10_7, SCK1_D, SEL_SCIF1_3),
  1293. PINMUX_IPSR_MSEL(IP10_10_7, TS_SPSYNC0_C, SEL_TSIF0_2),
  1294. PINMUX_IPSR_MSEL(IP10_10_7, GLO_SDATA_B, SEL_GPS_1),
  1295. PINMUX_IPSR_MSEL(IP10_10_7, VI3_DATA1_B, SEL_VI3_1),
  1296. PINMUX_IPSR_GPSR(IP10_14_11, SD2_DAT0),
  1297. PINMUX_IPSR_GPSR(IP10_14_11, MMC0_D0),
  1298. PINMUX_IPSR_MSEL(IP10_14_11, FMCLK_B, SEL_FM_1),
  1299. PINMUX_IPSR_MSEL(IP10_14_11, VI0_DATA2_VI0_B2_B, SEL_VI0_1),
  1300. PINMUX_IPSR_MSEL(IP10_14_11, SCIFB1_RXD_E, SEL_SCIFB1_4),
  1301. PINMUX_IPSR_MSEL(IP10_14_11, RX1_D, SEL_SCIF1_3),
  1302. PINMUX_IPSR_MSEL(IP10_14_11, TS_SDAT0_C, SEL_TSIF0_2),
  1303. PINMUX_IPSR_MSEL(IP10_14_11, GLO_SS_B, SEL_GPS_1),
  1304. PINMUX_IPSR_MSEL(IP10_14_11, VI3_DATA2_B, SEL_VI3_1),
  1305. PINMUX_IPSR_GPSR(IP10_18_15, SD2_DAT1),
  1306. PINMUX_IPSR_GPSR(IP10_18_15, MMC0_D1),
  1307. PINMUX_IPSR_MSEL(IP10_18_15, FMIN_B, SEL_FM_1),
  1308. PINMUX_IPSR_MSEL(IP10_18_15, VI0_DATA3_VI0_B3_B, SEL_VI0_1),
  1309. PINMUX_IPSR_MSEL(IP10_18_15, SCIFB1_TXD_E, SEL_SCIFB1_4),
  1310. PINMUX_IPSR_MSEL(IP10_18_15, TX1_D, SEL_SCIF1_3),
  1311. PINMUX_IPSR_MSEL(IP10_18_15, TS_SCK0_C, SEL_TSIF0_2),
  1312. PINMUX_IPSR_MSEL(IP10_18_15, GLO_RFON_B, SEL_GPS_1),
  1313. PINMUX_IPSR_MSEL(IP10_18_15, VI3_DATA3_B, SEL_VI3_1),
  1314. PINMUX_IPSR_GPSR(IP10_22_19, SD2_DAT2),
  1315. PINMUX_IPSR_GPSR(IP10_22_19, MMC0_D2),
  1316. PINMUX_IPSR_MSEL(IP10_22_19, BPFCLK_B, SEL_FM_1),
  1317. PINMUX_IPSR_MSEL(IP10_22_19, VI0_DATA4_VI0_B4_B, SEL_VI0_1),
  1318. PINMUX_IPSR_MSEL(IP10_22_19, HRX0_D, SEL_HSCIF0_3),
  1319. PINMUX_IPSR_MSEL(IP10_22_19, TS_SDEN1_B, SEL_TSIF1_1),
  1320. PINMUX_IPSR_MSEL(IP10_22_19, GLO_Q0_B, SEL_GPS_1),
  1321. PINMUX_IPSR_MSEL(IP10_22_19, VI3_DATA4_B, SEL_VI3_1),
  1322. PINMUX_IPSR_GPSR(IP10_25_23, SD2_DAT3),
  1323. PINMUX_IPSR_GPSR(IP10_25_23, MMC0_D3),
  1324. PINMUX_IPSR_MSEL(IP10_25_23, SIM0_RST, SEL_SIM_0),
  1325. PINMUX_IPSR_MSEL(IP10_25_23, VI0_DATA5_VI0_B5_B, SEL_VI0_1),
  1326. PINMUX_IPSR_MSEL(IP10_25_23, HTX0_D, SEL_HSCIF0_3),
  1327. PINMUX_IPSR_MSEL(IP10_25_23, TS_SPSYNC1_B, SEL_TSIF1_1),
  1328. PINMUX_IPSR_MSEL(IP10_25_23, GLO_Q1_B, SEL_GPS_1),
  1329. PINMUX_IPSR_MSEL(IP10_25_23, VI3_DATA5_B, SEL_VI3_1),
  1330. PINMUX_IPSR_GPSR(IP10_29_26, SD2_CD),
  1331. PINMUX_IPSR_GPSR(IP10_29_26, MMC0_D4),
  1332. PINMUX_IPSR_MSEL(IP10_29_26, TS_SDAT0_B, SEL_TSIF0_1),
  1333. PINMUX_IPSR_GPSR(IP10_29_26, USB2_EXTP),
  1334. PINMUX_IPSR_MSEL(IP10_29_26, GLO_I0, SEL_GPS_0),
  1335. PINMUX_IPSR_MSEL(IP10_29_26, VI0_DATA6_VI0_B6_B, SEL_VI0_1),
  1336. PINMUX_IPSR_MSEL(IP10_29_26, HCTS0_N_D, SEL_HSCIF0_3),
  1337. PINMUX_IPSR_MSEL(IP10_29_26, TS_SDAT1_B, SEL_TSIF1_1),
  1338. PINMUX_IPSR_MSEL(IP10_29_26, GLO_I0_B, SEL_GPS_1),
  1339. PINMUX_IPSR_MSEL(IP10_29_26, VI3_DATA6_B, SEL_VI3_1),
  1340. PINMUX_IPSR_GPSR(IP11_3_0, SD2_WP),
  1341. PINMUX_IPSR_GPSR(IP11_3_0, MMC0_D5),
  1342. PINMUX_IPSR_MSEL(IP11_3_0, TS_SCK0_B, SEL_TSIF0_1),
  1343. PINMUX_IPSR_GPSR(IP11_3_0, USB2_IDIN),
  1344. PINMUX_IPSR_MSEL(IP11_3_0, GLO_I1, SEL_GPS_0),
  1345. PINMUX_IPSR_MSEL(IP11_3_0, VI0_DATA7_VI0_B7_B, SEL_VI0_1),
  1346. PINMUX_IPSR_MSEL(IP11_3_0, HRTS0_N_D, SEL_HSCIF0_3),
  1347. PINMUX_IPSR_MSEL(IP11_3_0, TS_SCK1_B, SEL_TSIF1_1),
  1348. PINMUX_IPSR_MSEL(IP11_3_0, GLO_I1_B, SEL_GPS_1),
  1349. PINMUX_IPSR_MSEL(IP11_3_0, VI3_DATA7_B, SEL_VI3_1),
  1350. PINMUX_IPSR_GPSR(IP11_4, SD3_CLK),
  1351. PINMUX_IPSR_GPSR(IP11_4, MMC1_CLK),
  1352. PINMUX_IPSR_GPSR(IP11_6_5, SD3_CMD),
  1353. PINMUX_IPSR_GPSR(IP11_6_5, MMC1_CMD),
  1354. PINMUX_IPSR_GPSR(IP11_6_5, MTS_N),
  1355. PINMUX_IPSR_GPSR(IP11_8_7, SD3_DAT0),
  1356. PINMUX_IPSR_GPSR(IP11_8_7, MMC1_D0),
  1357. PINMUX_IPSR_GPSR(IP11_8_7, STM_N),
  1358. PINMUX_IPSR_GPSR(IP11_10_9, SD3_DAT1),
  1359. PINMUX_IPSR_GPSR(IP11_10_9, MMC1_D1),
  1360. PINMUX_IPSR_GPSR(IP11_10_9, MDATA),
  1361. PINMUX_IPSR_GPSR(IP11_12_11, SD3_DAT2),
  1362. PINMUX_IPSR_GPSR(IP11_12_11, MMC1_D2),
  1363. PINMUX_IPSR_GPSR(IP11_12_11, SDATA),
  1364. PINMUX_IPSR_GPSR(IP11_14_13, SD3_DAT3),
  1365. PINMUX_IPSR_GPSR(IP11_14_13, MMC1_D3),
  1366. PINMUX_IPSR_GPSR(IP11_14_13, SCKZ),
  1367. PINMUX_IPSR_GPSR(IP11_17_15, SD3_CD),
  1368. PINMUX_IPSR_GPSR(IP11_17_15, MMC1_D4),
  1369. PINMUX_IPSR_MSEL(IP11_17_15, TS_SDAT1, SEL_TSIF1_0),
  1370. PINMUX_IPSR_GPSR(IP11_17_15, VSP),
  1371. PINMUX_IPSR_MSEL(IP11_17_15, GLO_Q0, SEL_GPS_0),
  1372. PINMUX_IPSR_MSEL(IP11_17_15, SIM0_RST_B, SEL_SIM_1),
  1373. PINMUX_IPSR_GPSR(IP11_21_18, SD3_WP),
  1374. PINMUX_IPSR_GPSR(IP11_21_18, MMC1_D5),
  1375. PINMUX_IPSR_MSEL(IP11_21_18, TS_SCK1, SEL_TSIF1_0),
  1376. PINMUX_IPSR_MSEL(IP11_21_18, GLO_Q1, SEL_GPS_0),
  1377. PINMUX_IPSR_MSEL(IP11_21_18, FMIN_C, SEL_FM_2),
  1378. PINMUX_IPSR_MSEL(IP11_21_18, FMIN_E, SEL_FM_4),
  1379. PINMUX_IPSR_MSEL(IP11_21_18, FMIN_F, SEL_FM_5),
  1380. PINMUX_IPSR_GPSR(IP11_23_22, MLB_CLK),
  1381. PINMUX_IPSR_MSEL(IP11_23_22, IIC2_SCL_B, SEL_IIC2_1),
  1382. PINMUX_IPSR_MSEL(IP11_23_22, I2C2_SCL_B, SEL_I2C2_1),
  1383. PINMUX_IPSR_GPSR(IP11_26_24, MLB_SIG),
  1384. PINMUX_IPSR_MSEL(IP11_26_24, SCIFB1_RXD_D, SEL_SCIFB1_3),
  1385. PINMUX_IPSR_MSEL(IP11_26_24, RX1_C, SEL_SCIF1_2),
  1386. PINMUX_IPSR_MSEL(IP11_26_24, IIC2_SDA_B, SEL_IIC2_1),
  1387. PINMUX_IPSR_MSEL(IP11_26_24, I2C2_SDA_B, SEL_I2C2_1),
  1388. PINMUX_IPSR_GPSR(IP11_29_27, MLB_DAT),
  1389. PINMUX_IPSR_MSEL(IP11_29_27, SCIFB1_TXD_D, SEL_SCIFB1_3),
  1390. PINMUX_IPSR_MSEL(IP11_29_27, TX1_C, SEL_SCIF1_2),
  1391. PINMUX_IPSR_MSEL(IP11_29_27, BPFCLK_C, SEL_FM_2),
  1392. PINMUX_IPSR_GPSR(IP11_31_30, SSI_SCK0129),
  1393. PINMUX_IPSR_MSEL(IP11_31_30, CAN_CLK_B, SEL_CANCLK_1),
  1394. PINMUX_IPSR_GPSR(IP11_31_30, MOUT0),
  1395. PINMUX_IPSR_GPSR(IP12_1_0, SSI_WS0129),
  1396. PINMUX_IPSR_MSEL(IP12_1_0, CAN0_TX_B, SEL_CAN0_1),
  1397. PINMUX_IPSR_GPSR(IP12_1_0, MOUT1),
  1398. PINMUX_IPSR_GPSR(IP12_3_2, SSI_SDATA0),
  1399. PINMUX_IPSR_MSEL(IP12_3_2, CAN0_RX_B, SEL_CAN0_1),
  1400. PINMUX_IPSR_GPSR(IP12_3_2, MOUT2),
  1401. PINMUX_IPSR_GPSR(IP12_5_4, SSI_SDATA1),
  1402. PINMUX_IPSR_MSEL(IP12_5_4, CAN1_TX_B, SEL_CAN1_1),
  1403. PINMUX_IPSR_GPSR(IP12_5_4, MOUT5),
  1404. PINMUX_IPSR_GPSR(IP12_7_6, SSI_SDATA2),
  1405. PINMUX_IPSR_MSEL(IP12_7_6, CAN1_RX_B, SEL_CAN1_1),
  1406. PINMUX_IPSR_GPSR(IP12_7_6, SSI_SCK1),
  1407. PINMUX_IPSR_GPSR(IP12_7_6, MOUT6),
  1408. PINMUX_IPSR_GPSR(IP12_10_8, SSI_SCK34),
  1409. PINMUX_IPSR_GPSR(IP12_10_8, STP_OPWM_0),
  1410. PINMUX_IPSR_MSEL(IP12_10_8, SCIFB0_SCK, SEL_SCIFB_0),
  1411. PINMUX_IPSR_MSEL(IP12_10_8, MSIOF1_SCK, SEL_SOF1_0),
  1412. PINMUX_IPSR_GPSR(IP12_10_8, CAN_DEBUG_HW_TRIGGER),
  1413. PINMUX_IPSR_GPSR(IP12_13_11, SSI_WS34),
  1414. PINMUX_IPSR_MSEL(IP12_13_11, STP_IVCXO27_0, SEL_SSP_0),
  1415. PINMUX_IPSR_MSEL(IP12_13_11, SCIFB0_RXD, SEL_SCIFB_0),
  1416. PINMUX_IPSR_GPSR(IP12_13_11, MSIOF1_SYNC),
  1417. PINMUX_IPSR_GPSR(IP12_13_11, CAN_STEP0),
  1418. PINMUX_IPSR_GPSR(IP12_16_14, SSI_SDATA3),
  1419. PINMUX_IPSR_MSEL(IP12_16_14, STP_ISCLK_0, SEL_SSP_0),
  1420. PINMUX_IPSR_MSEL(IP12_16_14, SCIFB0_TXD, SEL_SCIFB_0),
  1421. PINMUX_IPSR_MSEL(IP12_16_14, MSIOF1_SS1, SEL_SOF1_0),
  1422. PINMUX_IPSR_GPSR(IP12_16_14, CAN_TXCLK),
  1423. PINMUX_IPSR_GPSR(IP12_19_17, SSI_SCK4),
  1424. PINMUX_IPSR_MSEL(IP12_19_17, STP_ISD_0, SEL_SSP_0),
  1425. PINMUX_IPSR_MSEL(IP12_19_17, SCIFB0_CTS_N, SEL_SCIFB_0),
  1426. PINMUX_IPSR_MSEL(IP12_19_17, MSIOF1_SS2, SEL_SOF1_0),
  1427. PINMUX_IPSR_MSEL(IP12_19_17, SSI_SCK5_C, SEL_SSI5_2),
  1428. PINMUX_IPSR_GPSR(IP12_19_17, CAN_DEBUGOUT0),
  1429. PINMUX_IPSR_GPSR(IP12_22_20, SSI_WS4),
  1430. PINMUX_IPSR_MSEL(IP12_22_20, STP_ISEN_0, SEL_SSP_0),
  1431. PINMUX_IPSR_MSEL(IP12_22_20, SCIFB0_RTS_N, SEL_SCIFB_0),
  1432. PINMUX_IPSR_MSEL(IP12_22_20, MSIOF1_TXD, SEL_SOF1_0),
  1433. PINMUX_IPSR_MSEL(IP12_22_20, SSI_WS5_C, SEL_SSI5_2),
  1434. PINMUX_IPSR_GPSR(IP12_22_20, CAN_DEBUGOUT1),
  1435. PINMUX_IPSR_GPSR(IP12_24_23, SSI_SDATA4),
  1436. PINMUX_IPSR_MSEL(IP12_24_23, STP_ISSYNC_0, SEL_SSP_0),
  1437. PINMUX_IPSR_MSEL(IP12_24_23, MSIOF1_RXD, SEL_SOF1_0),
  1438. PINMUX_IPSR_GPSR(IP12_24_23, CAN_DEBUGOUT2),
  1439. PINMUX_IPSR_MSEL(IP12_27_25, SSI_SCK5, SEL_SSI5_0),
  1440. PINMUX_IPSR_MSEL(IP12_27_25, SCIFB1_SCK, SEL_SCIFB1_0),
  1441. PINMUX_IPSR_MSEL(IP12_27_25, IERX_B, SEL_IEB_1),
  1442. PINMUX_IPSR_GPSR(IP12_27_25, DU2_EXHSYNC_DU2_HSYNC),
  1443. PINMUX_IPSR_GPSR(IP12_27_25, QSTH_QHS),
  1444. PINMUX_IPSR_GPSR(IP12_27_25, CAN_DEBUGOUT3),
  1445. PINMUX_IPSR_MSEL(IP12_30_28, SSI_WS5, SEL_SSI5_0),
  1446. PINMUX_IPSR_MSEL(IP12_30_28, SCIFB1_RXD, SEL_SCIFB1_0),
  1447. PINMUX_IPSR_MSEL(IP12_30_28, IECLK_B, SEL_IEB_1),
  1448. PINMUX_IPSR_GPSR(IP12_30_28, DU2_EXVSYNC_DU2_VSYNC),
  1449. PINMUX_IPSR_GPSR(IP12_30_28, QSTB_QHE),
  1450. PINMUX_IPSR_GPSR(IP12_30_28, CAN_DEBUGOUT4),
  1451. PINMUX_IPSR_MSEL(IP13_2_0, SSI_SDATA5, SEL_SSI5_0),
  1452. PINMUX_IPSR_MSEL(IP13_2_0, SCIFB1_TXD, SEL_SCIFB1_0),
  1453. PINMUX_IPSR_MSEL(IP13_2_0, IETX_B, SEL_IEB_1),
  1454. PINMUX_IPSR_GPSR(IP13_2_0, DU2_DR2),
  1455. PINMUX_IPSR_GPSR(IP13_2_0, LCDOUT2),
  1456. PINMUX_IPSR_GPSR(IP13_2_0, CAN_DEBUGOUT5),
  1457. PINMUX_IPSR_MSEL(IP13_6_3, SSI_SCK6, SEL_SSI6_0),
  1458. PINMUX_IPSR_MSEL(IP13_6_3, SCIFB1_CTS_N, SEL_SCIFB1_0),
  1459. PINMUX_IPSR_MSEL(IP13_6_3, BPFCLK_D, SEL_FM_3),
  1460. PINMUX_IPSR_GPSR(IP13_6_3, DU2_DR3),
  1461. PINMUX_IPSR_GPSR(IP13_6_3, LCDOUT3),
  1462. PINMUX_IPSR_GPSR(IP13_6_3, CAN_DEBUGOUT6),
  1463. PINMUX_IPSR_MSEL(IP13_6_3, BPFCLK_F, SEL_FM_5),
  1464. PINMUX_IPSR_MSEL(IP13_9_7, SSI_WS6, SEL_SSI6_0),
  1465. PINMUX_IPSR_MSEL(IP13_9_7, SCIFB1_RTS_N, SEL_SCIFB1_0),
  1466. PINMUX_IPSR_MSEL(IP13_9_7, CAN0_TX_D, SEL_CAN0_3),
  1467. PINMUX_IPSR_GPSR(IP13_9_7, DU2_DR4),
  1468. PINMUX_IPSR_GPSR(IP13_9_7, LCDOUT4),
  1469. PINMUX_IPSR_GPSR(IP13_9_7, CAN_DEBUGOUT7),
  1470. PINMUX_IPSR_MSEL(IP13_12_10, SSI_SDATA6, SEL_SSI6_0),
  1471. PINMUX_IPSR_MSEL(IP13_12_10, FMIN_D, SEL_FM_3),
  1472. PINMUX_IPSR_GPSR(IP13_12_10, DU2_DR5),
  1473. PINMUX_IPSR_GPSR(IP13_12_10, LCDOUT5),
  1474. PINMUX_IPSR_GPSR(IP13_12_10, CAN_DEBUGOUT8),
  1475. PINMUX_IPSR_MSEL(IP13_15_13, SSI_SCK78, SEL_SSI7_0),
  1476. PINMUX_IPSR_MSEL(IP13_15_13, STP_IVCXO27_1, SEL_SSP_0),
  1477. PINMUX_IPSR_MSEL(IP13_15_13, SCK1, SEL_SCIF1_0),
  1478. PINMUX_IPSR_MSEL(IP13_15_13, SCIFA1_SCK, SEL_SCIFA1_0),
  1479. PINMUX_IPSR_GPSR(IP13_15_13, DU2_DR6),
  1480. PINMUX_IPSR_GPSR(IP13_15_13, LCDOUT6),
  1481. PINMUX_IPSR_GPSR(IP13_15_13, CAN_DEBUGOUT9),
  1482. PINMUX_IPSR_MSEL(IP13_18_16, SSI_WS78, SEL_SSI7_0),
  1483. PINMUX_IPSR_MSEL(IP13_18_16, STP_ISCLK_1, SEL_SSP_0),
  1484. PINMUX_IPSR_MSEL(IP13_18_16, SCIFB2_SCK, SEL_SCIFB2_0),
  1485. PINMUX_IPSR_GPSR(IP13_18_16, SCIFA2_CTS_N),
  1486. PINMUX_IPSR_GPSR(IP13_18_16, DU2_DR7),
  1487. PINMUX_IPSR_GPSR(IP13_18_16, LCDOUT7),
  1488. PINMUX_IPSR_GPSR(IP13_18_16, CAN_DEBUGOUT10),
  1489. PINMUX_IPSR_MSEL(IP13_22_19, SSI_SDATA7, SEL_SSI7_0),
  1490. PINMUX_IPSR_MSEL(IP13_22_19, STP_ISD_1, SEL_SSP_0),
  1491. PINMUX_IPSR_MSEL(IP13_22_19, SCIFB2_RXD, SEL_SCIFB2_0),
  1492. PINMUX_IPSR_GPSR(IP13_22_19, SCIFA2_RTS_N),
  1493. PINMUX_IPSR_GPSR(IP13_22_19, TCLK2),
  1494. PINMUX_IPSR_GPSR(IP13_22_19, QSTVA_QVS),
  1495. PINMUX_IPSR_GPSR(IP13_22_19, CAN_DEBUGOUT11),
  1496. PINMUX_IPSR_MSEL(IP13_22_19, BPFCLK_E, SEL_FM_4),
  1497. PINMUX_IPSR_MSEL(IP13_22_19, SSI_SDATA7_B, SEL_SSI7_1),
  1498. PINMUX_IPSR_MSEL(IP13_22_19, FMIN_G, SEL_FM_6),
  1499. PINMUX_IPSR_MSEL(IP13_25_23, SSI_SDATA8, SEL_SSI8_0),
  1500. PINMUX_IPSR_MSEL(IP13_25_23, STP_ISEN_1, SEL_SSP_0),
  1501. PINMUX_IPSR_MSEL(IP13_25_23, SCIFB2_TXD, SEL_SCIFB2_0),
  1502. PINMUX_IPSR_MSEL(IP13_25_23, CAN0_TX_C, SEL_CAN0_2),
  1503. PINMUX_IPSR_GPSR(IP13_25_23, CAN_DEBUGOUT12),
  1504. PINMUX_IPSR_MSEL(IP13_25_23, SSI_SDATA8_B, SEL_SSI8_1),
  1505. PINMUX_IPSR_GPSR(IP13_28_26, SSI_SDATA9),
  1506. PINMUX_IPSR_MSEL(IP13_28_26, STP_ISSYNC_1, SEL_SSP_0),
  1507. PINMUX_IPSR_MSEL(IP13_28_26, SCIFB2_CTS_N, SEL_SCIFB2_0),
  1508. PINMUX_IPSR_GPSR(IP13_28_26, SSI_WS1),
  1509. PINMUX_IPSR_MSEL(IP13_28_26, SSI_SDATA5_C, SEL_SSI5_2),
  1510. PINMUX_IPSR_GPSR(IP13_28_26, CAN_DEBUGOUT13),
  1511. PINMUX_IPSR_GPSR(IP13_30_29, AUDIO_CLKA),
  1512. PINMUX_IPSR_MSEL(IP13_30_29, SCIFB2_RTS_N, SEL_SCIFB2_0),
  1513. PINMUX_IPSR_GPSR(IP13_30_29, CAN_DEBUGOUT14),
  1514. PINMUX_IPSR_GPSR(IP14_2_0, AUDIO_CLKB),
  1515. PINMUX_IPSR_MSEL(IP14_2_0, SCIF_CLK, SEL_SCIFCLK_0),
  1516. PINMUX_IPSR_MSEL(IP14_2_0, CAN0_RX_D, SEL_CAN0_3),
  1517. PINMUX_IPSR_GPSR(IP14_2_0, DVC_MUTE),
  1518. PINMUX_IPSR_MSEL(IP14_2_0, CAN0_RX_C, SEL_CAN0_2),
  1519. PINMUX_IPSR_GPSR(IP14_2_0, CAN_DEBUGOUT15),
  1520. PINMUX_IPSR_GPSR(IP14_2_0, REMOCON),
  1521. PINMUX_IPSR_MSEL(IP14_5_3, SCIFA0_SCK, SEL_SCFA_0),
  1522. PINMUX_IPSR_MSEL(IP14_5_3, HSCK1, SEL_HSCIF1_0),
  1523. PINMUX_IPSR_GPSR(IP14_5_3, SCK0),
  1524. PINMUX_IPSR_GPSR(IP14_5_3, MSIOF3_SS2),
  1525. PINMUX_IPSR_GPSR(IP14_5_3, DU2_DG2),
  1526. PINMUX_IPSR_GPSR(IP14_5_3, LCDOUT10),
  1527. PINMUX_IPSR_MSEL(IP14_5_3, IIC1_SDA_C, SEL_IIC1_2),
  1528. PINMUX_IPSR_MSEL(IP14_5_3, I2C1_SDA_C, SEL_I2C1_2),
  1529. PINMUX_IPSR_MSEL(IP14_8_6, SCIFA0_RXD, SEL_SCFA_0),
  1530. PINMUX_IPSR_MSEL(IP14_8_6, HRX1, SEL_HSCIF1_0),
  1531. PINMUX_IPSR_MSEL(IP14_8_6, RX0, SEL_SCIF0_0),
  1532. PINMUX_IPSR_GPSR(IP14_8_6, DU2_DR0),
  1533. PINMUX_IPSR_GPSR(IP14_8_6, LCDOUT0),
  1534. PINMUX_IPSR_MSEL(IP14_11_9, SCIFA0_TXD, SEL_SCFA_0),
  1535. PINMUX_IPSR_MSEL(IP14_11_9, HTX1, SEL_HSCIF1_0),
  1536. PINMUX_IPSR_MSEL(IP14_11_9, TX0, SEL_SCIF0_0),
  1537. PINMUX_IPSR_GPSR(IP14_11_9, DU2_DR1),
  1538. PINMUX_IPSR_GPSR(IP14_11_9, LCDOUT1),
  1539. PINMUX_IPSR_MSEL(IP14_15_12, SCIFA0_CTS_N, SEL_SCFA_0),
  1540. PINMUX_IPSR_MSEL(IP14_15_12, HCTS1_N, SEL_HSCIF1_0),
  1541. PINMUX_IPSR_GPSR(IP14_15_12, CTS0_N),
  1542. PINMUX_IPSR_MSEL(IP14_15_12, MSIOF3_SYNC, SEL_SOF3_0),
  1543. PINMUX_IPSR_GPSR(IP14_15_12, DU2_DG3),
  1544. PINMUX_IPSR_GPSR(IP14_15_12, LCDOUT11),
  1545. PINMUX_IPSR_GPSR(IP14_15_12, PWM0_B),
  1546. PINMUX_IPSR_MSEL(IP14_15_12, IIC1_SCL_C, SEL_IIC1_2),
  1547. PINMUX_IPSR_MSEL(IP14_15_12, I2C1_SCL_C, SEL_I2C1_2),
  1548. PINMUX_IPSR_MSEL(IP14_18_16, SCIFA0_RTS_N, SEL_SCFA_0),
  1549. PINMUX_IPSR_MSEL(IP14_18_16, HRTS1_N, SEL_HSCIF1_0),
  1550. PINMUX_IPSR_GPSR(IP14_18_16, RTS0_N),
  1551. PINMUX_IPSR_GPSR(IP14_18_16, MSIOF3_SS1),
  1552. PINMUX_IPSR_GPSR(IP14_18_16, DU2_DG0),
  1553. PINMUX_IPSR_GPSR(IP14_18_16, LCDOUT8),
  1554. PINMUX_IPSR_GPSR(IP14_18_16, PWM1_B),
  1555. PINMUX_IPSR_MSEL(IP14_21_19, SCIFA1_RXD, SEL_SCIFA1_0),
  1556. PINMUX_IPSR_MSEL(IP14_21_19, AD_DI, SEL_ADI_0),
  1557. PINMUX_IPSR_MSEL(IP14_21_19, RX1, SEL_SCIF1_0),
  1558. PINMUX_IPSR_GPSR(IP14_21_19, DU2_EXODDF_DU2_ODDF_DISP_CDE),
  1559. PINMUX_IPSR_GPSR(IP14_21_19, QCPV_QDE),
  1560. PINMUX_IPSR_MSEL(IP14_24_22, SCIFA1_TXD, SEL_SCIFA1_0),
  1561. PINMUX_IPSR_MSEL(IP14_24_22, AD_DO, SEL_ADI_0),
  1562. PINMUX_IPSR_MSEL(IP14_24_22, TX1, SEL_SCIF1_0),
  1563. PINMUX_IPSR_GPSR(IP14_24_22, DU2_DG1),
  1564. PINMUX_IPSR_GPSR(IP14_24_22, LCDOUT9),
  1565. PINMUX_IPSR_MSEL(IP14_27_25, SCIFA1_CTS_N, SEL_SCIFA1_0),
  1566. PINMUX_IPSR_MSEL(IP14_27_25, AD_CLK, SEL_ADI_0),
  1567. PINMUX_IPSR_GPSR(IP14_27_25, CTS1_N),
  1568. PINMUX_IPSR_MSEL(IP14_27_25, MSIOF3_RXD, SEL_SOF3_0),
  1569. PINMUX_IPSR_GPSR(IP14_27_25, DU0_DOTCLKOUT),
  1570. PINMUX_IPSR_GPSR(IP14_27_25, QCLK),
  1571. PINMUX_IPSR_MSEL(IP14_30_28, SCIFA1_RTS_N, SEL_SCIFA1_0),
  1572. PINMUX_IPSR_MSEL(IP14_30_28, AD_NCS_N, SEL_ADI_0),
  1573. PINMUX_IPSR_GPSR(IP14_30_28, RTS1_N),
  1574. PINMUX_IPSR_MSEL(IP14_30_28, MSIOF3_TXD, SEL_SOF3_0),
  1575. PINMUX_IPSR_GPSR(IP14_30_28, DU1_DOTCLKOUT),
  1576. PINMUX_IPSR_GPSR(IP14_30_28, QSTVB_QVE),
  1577. PINMUX_IPSR_MSEL(IP14_30_28, HRTS0_N_C, SEL_HSCIF0_2),
  1578. PINMUX_IPSR_MSEL(IP15_2_0, SCIFA2_SCK, SEL_SCIFA2_0),
  1579. PINMUX_IPSR_MSEL(IP15_2_0, FMCLK, SEL_FM_0),
  1580. PINMUX_IPSR_GPSR(IP15_2_0, SCK2),
  1581. PINMUX_IPSR_MSEL(IP15_2_0, MSIOF3_SCK, SEL_SOF3_0),
  1582. PINMUX_IPSR_GPSR(IP15_2_0, DU2_DG7),
  1583. PINMUX_IPSR_GPSR(IP15_2_0, LCDOUT15),
  1584. PINMUX_IPSR_MSEL(IP15_2_0, SCIF_CLK_B, SEL_SCIFCLK_1),
  1585. PINMUX_IPSR_MSEL(IP15_5_3, SCIFA2_RXD, SEL_SCIFA2_0),
  1586. PINMUX_IPSR_MSEL(IP15_5_3, FMIN, SEL_FM_0),
  1587. PINMUX_IPSR_MSEL(IP15_5_3, TX2, SEL_SCIF2_0),
  1588. PINMUX_IPSR_GPSR(IP15_5_3, DU2_DB0),
  1589. PINMUX_IPSR_GPSR(IP15_5_3, LCDOUT16),
  1590. PINMUX_IPSR_MSEL(IP15_5_3, IIC2_SCL, SEL_IIC2_0),
  1591. PINMUX_IPSR_MSEL(IP15_5_3, I2C2_SCL, SEL_I2C2_0),
  1592. PINMUX_IPSR_MSEL(IP15_8_6, SCIFA2_TXD, SEL_SCIFA2_0),
  1593. PINMUX_IPSR_MSEL(IP15_8_6, BPFCLK, SEL_FM_0),
  1594. PINMUX_IPSR_MSEL(IP15_8_6, RX2, SEL_SCIF2_0),
  1595. PINMUX_IPSR_GPSR(IP15_8_6, DU2_DB1),
  1596. PINMUX_IPSR_GPSR(IP15_8_6, LCDOUT17),
  1597. PINMUX_IPSR_MSEL(IP15_8_6, IIC2_SDA, SEL_IIC2_0),
  1598. PINMUX_IPSR_MSEL(IP15_8_6, I2C2_SDA, SEL_I2C2_0),
  1599. PINMUX_IPSR_GPSR(IP15_11_9, HSCK0),
  1600. PINMUX_IPSR_MSEL(IP15_11_9, TS_SDEN0, SEL_TSIF0_0),
  1601. PINMUX_IPSR_GPSR(IP15_11_9, DU2_DG4),
  1602. PINMUX_IPSR_GPSR(IP15_11_9, LCDOUT12),
  1603. PINMUX_IPSR_MSEL(IP15_11_9, HCTS0_N_C, SEL_HSCIF0_2),
  1604. PINMUX_IPSR_MSEL(IP15_13_12, HRX0, SEL_HSCIF0_0),
  1605. PINMUX_IPSR_GPSR(IP15_13_12, DU2_DB2),
  1606. PINMUX_IPSR_GPSR(IP15_13_12, LCDOUT18),
  1607. PINMUX_IPSR_MSEL(IP15_15_14, HTX0, SEL_HSCIF0_0),
  1608. PINMUX_IPSR_GPSR(IP15_15_14, DU2_DB3),
  1609. PINMUX_IPSR_GPSR(IP15_15_14, LCDOUT19),
  1610. PINMUX_IPSR_MSEL(IP15_17_16, HCTS0_N, SEL_HSCIF0_0),
  1611. PINMUX_IPSR_GPSR(IP15_17_16, SSI_SCK9),
  1612. PINMUX_IPSR_GPSR(IP15_17_16, DU2_DB4),
  1613. PINMUX_IPSR_GPSR(IP15_17_16, LCDOUT20),
  1614. PINMUX_IPSR_MSEL(IP15_19_18, HRTS0_N, SEL_HSCIF0_0),
  1615. PINMUX_IPSR_GPSR(IP15_19_18, SSI_WS9),
  1616. PINMUX_IPSR_GPSR(IP15_19_18, DU2_DB5),
  1617. PINMUX_IPSR_GPSR(IP15_19_18, LCDOUT21),
  1618. PINMUX_IPSR_MSEL(IP15_22_20, MSIOF0_SCK, SEL_SOF0_0),
  1619. PINMUX_IPSR_MSEL(IP15_22_20, TS_SDAT0, SEL_TSIF0_0),
  1620. PINMUX_IPSR_GPSR(IP15_22_20, ADICLK),
  1621. PINMUX_IPSR_GPSR(IP15_22_20, DU2_DB6),
  1622. PINMUX_IPSR_GPSR(IP15_22_20, LCDOUT22),
  1623. PINMUX_IPSR_GPSR(IP15_25_23, MSIOF0_SYNC),
  1624. PINMUX_IPSR_MSEL(IP15_25_23, TS_SCK0, SEL_TSIF0_0),
  1625. PINMUX_IPSR_GPSR(IP15_25_23, SSI_SCK2),
  1626. PINMUX_IPSR_GPSR(IP15_25_23, ADIDATA),
  1627. PINMUX_IPSR_GPSR(IP15_25_23, DU2_DB7),
  1628. PINMUX_IPSR_GPSR(IP15_25_23, LCDOUT23),
  1629. PINMUX_IPSR_MSEL(IP15_25_23, HRX0_C, SEL_SCIFA2_1),
  1630. PINMUX_IPSR_MSEL(IP15_27_26, MSIOF0_SS1, SEL_SOF0_0),
  1631. PINMUX_IPSR_GPSR(IP15_27_26, ADICHS0),
  1632. PINMUX_IPSR_GPSR(IP15_27_26, DU2_DG5),
  1633. PINMUX_IPSR_GPSR(IP15_27_26, LCDOUT13),
  1634. PINMUX_IPSR_MSEL(IP15_29_28, MSIOF0_TXD, SEL_SOF0_0),
  1635. PINMUX_IPSR_GPSR(IP15_29_28, ADICHS1),
  1636. PINMUX_IPSR_GPSR(IP15_29_28, DU2_DG6),
  1637. PINMUX_IPSR_GPSR(IP15_29_28, LCDOUT14),
  1638. PINMUX_IPSR_MSEL(IP16_2_0, MSIOF0_SS2, SEL_SOF0_0),
  1639. PINMUX_IPSR_GPSR(IP16_2_0, AUDIO_CLKOUT),
  1640. PINMUX_IPSR_GPSR(IP16_2_0, ADICHS2),
  1641. PINMUX_IPSR_GPSR(IP16_2_0, DU2_DISP),
  1642. PINMUX_IPSR_GPSR(IP16_2_0, QPOLA),
  1643. PINMUX_IPSR_MSEL(IP16_2_0, HTX0_C, SEL_HSCIF0_2),
  1644. PINMUX_IPSR_MSEL(IP16_2_0, SCIFA2_TXD_B, SEL_SCIFA2_1),
  1645. PINMUX_IPSR_MSEL(IP16_5_3, MSIOF0_RXD, SEL_SOF0_0),
  1646. PINMUX_IPSR_MSEL(IP16_5_3, TS_SPSYNC0, SEL_TSIF0_0),
  1647. PINMUX_IPSR_GPSR(IP16_5_3, SSI_WS2),
  1648. PINMUX_IPSR_GPSR(IP16_5_3, ADICS_SAMP),
  1649. PINMUX_IPSR_GPSR(IP16_5_3, DU2_CDE),
  1650. PINMUX_IPSR_GPSR(IP16_5_3, QPOLB),
  1651. PINMUX_IPSR_MSEL(IP16_5_3, SCIFA2_RXD_B, SEL_HSCIF0_2),
  1652. PINMUX_IPSR_GPSR(IP16_6, USB1_PWEN),
  1653. PINMUX_IPSR_GPSR(IP16_6, AUDIO_CLKOUT_D),
  1654. PINMUX_IPSR_GPSR(IP16_7, USB1_OVC),
  1655. PINMUX_IPSR_MSEL(IP16_7, TCLK1_B, SEL_TMU1_1),
  1656. PINMUX_DATA(IIC0_SCL_MARK, FN_SEL_IIC0_0),
  1657. PINMUX_DATA(IIC0_SDA_MARK, FN_SEL_IIC0_0),
  1658. PINMUX_DATA(I2C0_SCL_MARK, FN_SEL_IIC0_1),
  1659. PINMUX_DATA(I2C0_SDA_MARK, FN_SEL_IIC0_1),
  1660. PINMUX_DATA(IIC3_SCL_MARK, FN_SEL_IICDVFS_0),
  1661. PINMUX_DATA(IIC3_SDA_MARK, FN_SEL_IICDVFS_0),
  1662. PINMUX_DATA(I2C3_SCL_MARK, FN_SEL_IICDVFS_1),
  1663. PINMUX_DATA(I2C3_SDA_MARK, FN_SEL_IICDVFS_1),
  1664. };
  1665. /* R8A7790 has 6 banks with 32 GPIOs in each = 192 GPIOs */
  1666. #define ROW_GROUP_A(r) ('Z' - 'A' + 1 + (r))
  1667. #define PIN_NUMBER(r, c) (((r) - 'A') * 31 + (c) + 200)
  1668. #define PIN_A_NUMBER(r, c) PIN_NUMBER(ROW_GROUP_A(r), c)
  1669. static const struct sh_pfc_pin pinmux_pins[] = {
  1670. PINMUX_GPIO_GP_ALL(),
  1671. /* Pins not associated with a GPIO port */
  1672. SH_PFC_PIN_NAMED(ROW_GROUP_A('F'), 15, AF15),
  1673. SH_PFC_PIN_NAMED(ROW_GROUP_A('G'), 15, AG15),
  1674. SH_PFC_PIN_NAMED(ROW_GROUP_A('H'), 15, AH15),
  1675. SH_PFC_PIN_NAMED(ROW_GROUP_A('J'), 15, AJ15),
  1676. };
  1677. /* - AUDIO CLOCK ------------------------------------------------------------ */
  1678. static const unsigned int audio_clk_a_pins[] = {
  1679. /* CLK A */
  1680. RCAR_GP_PIN(4, 25),
  1681. };
  1682. static const unsigned int audio_clk_a_mux[] = {
  1683. AUDIO_CLKA_MARK,
  1684. };
  1685. static const unsigned int audio_clk_b_pins[] = {
  1686. /* CLK B */
  1687. RCAR_GP_PIN(4, 26),
  1688. };
  1689. static const unsigned int audio_clk_b_mux[] = {
  1690. AUDIO_CLKB_MARK,
  1691. };
  1692. static const unsigned int audio_clk_c_pins[] = {
  1693. /* CLK C */
  1694. RCAR_GP_PIN(5, 27),
  1695. };
  1696. static const unsigned int audio_clk_c_mux[] = {
  1697. AUDIO_CLKC_MARK,
  1698. };
  1699. static const unsigned int audio_clkout_pins[] = {
  1700. /* CLK OUT */
  1701. RCAR_GP_PIN(5, 16),
  1702. };
  1703. static const unsigned int audio_clkout_mux[] = {
  1704. AUDIO_CLKOUT_MARK,
  1705. };
  1706. static const unsigned int audio_clkout_b_pins[] = {
  1707. /* CLK OUT B */
  1708. RCAR_GP_PIN(0, 23),
  1709. };
  1710. static const unsigned int audio_clkout_b_mux[] = {
  1711. AUDIO_CLKOUT_B_MARK,
  1712. };
  1713. static const unsigned int audio_clkout_c_pins[] = {
  1714. /* CLK OUT C */
  1715. RCAR_GP_PIN(5, 27),
  1716. };
  1717. static const unsigned int audio_clkout_c_mux[] = {
  1718. AUDIO_CLKOUT_C_MARK,
  1719. };
  1720. static const unsigned int audio_clkout_d_pins[] = {
  1721. /* CLK OUT D */
  1722. RCAR_GP_PIN(5, 20),
  1723. };
  1724. static const unsigned int audio_clkout_d_mux[] = {
  1725. AUDIO_CLKOUT_D_MARK,
  1726. };
  1727. /* - AVB -------------------------------------------------------------------- */
  1728. static const unsigned int avb_link_pins[] = {
  1729. RCAR_GP_PIN(3, 11),
  1730. };
  1731. static const unsigned int avb_link_mux[] = {
  1732. AVB_LINK_MARK,
  1733. };
  1734. static const unsigned int avb_magic_pins[] = {
  1735. RCAR_GP_PIN(2, 14),
  1736. };
  1737. static const unsigned int avb_magic_mux[] = {
  1738. AVB_MAGIC_MARK,
  1739. };
  1740. static const unsigned int avb_phy_int_pins[] = {
  1741. RCAR_GP_PIN(2, 15),
  1742. };
  1743. static const unsigned int avb_phy_int_mux[] = {
  1744. AVB_PHY_INT_MARK,
  1745. };
  1746. static const unsigned int avb_mdio_pins[] = {
  1747. RCAR_GP_PIN(2, 11), RCAR_GP_PIN(2, 12),
  1748. };
  1749. static const unsigned int avb_mdio_mux[] = {
  1750. AVB_MDC_MARK, AVB_MDIO_MARK,
  1751. };
  1752. static const unsigned int avb_mii_pins[] = {
  1753. RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 10),
  1754. RCAR_GP_PIN(0, 11),
  1755. RCAR_GP_PIN(3, 13), RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
  1756. RCAR_GP_PIN(2, 2),
  1757. RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9),
  1758. RCAR_GP_PIN(2, 10), RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 10),
  1759. RCAR_GP_PIN(3, 12),
  1760. };
  1761. static const unsigned int avb_mii_mux[] = {
  1762. AVB_TXD0_MARK, AVB_TXD1_MARK, AVB_TXD2_MARK,
  1763. AVB_TXD3_MARK,
  1764. AVB_RXD0_MARK, AVB_RXD1_MARK, AVB_RXD2_MARK,
  1765. AVB_RXD3_MARK,
  1766. AVB_RX_ER_MARK, AVB_RX_CLK_MARK, AVB_RX_DV_MARK,
  1767. AVB_CRS_MARK, AVB_TX_EN_MARK, AVB_TX_CLK_MARK,
  1768. AVB_COL_MARK,
  1769. };
  1770. static const unsigned int avb_gmii_pins[] = {
  1771. RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 10),
  1772. RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 13),
  1773. RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 15),
  1774. RCAR_GP_PIN(3, 13), RCAR_GP_PIN(2, 0), RCAR_GP_PIN(2, 1),
  1775. RCAR_GP_PIN(2, 2), RCAR_GP_PIN(2, 3), RCAR_GP_PIN(2, 4),
  1776. RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 6),
  1777. RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9),
  1778. RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 13), RCAR_GP_PIN(2, 16),
  1779. RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 10),
  1780. RCAR_GP_PIN(3, 12),
  1781. };
  1782. static const unsigned int avb_gmii_mux[] = {
  1783. AVB_TXD0_MARK, AVB_TXD1_MARK, AVB_TXD2_MARK,
  1784. AVB_TXD3_MARK, AVB_TXD4_MARK, AVB_TXD5_MARK,
  1785. AVB_TXD6_MARK, AVB_TXD7_MARK,
  1786. AVB_RXD0_MARK, AVB_RXD1_MARK, AVB_RXD2_MARK,
  1787. AVB_RXD3_MARK, AVB_RXD4_MARK, AVB_RXD5_MARK,
  1788. AVB_RXD6_MARK, AVB_RXD7_MARK,
  1789. AVB_RX_ER_MARK, AVB_RX_CLK_MARK, AVB_RX_DV_MARK,
  1790. AVB_CRS_MARK, AVB_GTX_CLK_MARK, AVB_GTXREFCLK_MARK,
  1791. AVB_TX_EN_MARK, AVB_TX_ER_MARK, AVB_TX_CLK_MARK,
  1792. AVB_COL_MARK,
  1793. };
  1794. /* - DU RGB ----------------------------------------------------------------- */
  1795. static const unsigned int du_rgb666_pins[] = {
  1796. /* R[7:2], G[7:2], B[7:2] */
  1797. RCAR_GP_PIN(4, 21), RCAR_GP_PIN(4, 20), RCAR_GP_PIN(4, 19),
  1798. RCAR_GP_PIN(4, 18), RCAR_GP_PIN(4, 17), RCAR_GP_PIN(4, 16),
  1799. RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 14),
  1800. RCAR_GP_PIN(5, 7), RCAR_GP_PIN(4, 30), RCAR_GP_PIN(4, 27),
  1801. RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 12), RCAR_GP_PIN(5, 11),
  1802. RCAR_GP_PIN(5, 10), RCAR_GP_PIN(5, 9), RCAR_GP_PIN(5, 8),
  1803. };
  1804. static const unsigned int du_rgb666_mux[] = {
  1805. DU2_DR7_MARK, DU2_DR6_MARK, DU2_DR5_MARK, DU2_DR4_MARK,
  1806. DU2_DR3_MARK, DU2_DR2_MARK,
  1807. DU2_DG7_MARK, DU2_DG6_MARK, DU2_DG5_MARK, DU2_DG4_MARK,
  1808. DU2_DG3_MARK, DU2_DG2_MARK,
  1809. DU2_DB7_MARK, DU2_DB6_MARK, DU2_DB5_MARK, DU2_DB4_MARK,
  1810. DU2_DB3_MARK, DU2_DB2_MARK,
  1811. };
  1812. static const unsigned int du_rgb888_pins[] = {
  1813. /* R[7:0], G[7:0], B[7:0] */
  1814. RCAR_GP_PIN(4, 21), RCAR_GP_PIN(4, 20), RCAR_GP_PIN(4, 19),
  1815. RCAR_GP_PIN(4, 18), RCAR_GP_PIN(4, 17), RCAR_GP_PIN(4, 16),
  1816. RCAR_GP_PIN(4, 29), RCAR_GP_PIN(4, 28), RCAR_GP_PIN(5, 4),
  1817. RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 14), RCAR_GP_PIN(5, 7),
  1818. RCAR_GP_PIN(4, 30), RCAR_GP_PIN(4, 27), RCAR_GP_PIN(5, 1),
  1819. RCAR_GP_PIN(4, 31), RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 12),
  1820. RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 10), RCAR_GP_PIN(5, 9),
  1821. RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 5),
  1822. };
  1823. static const unsigned int du_rgb888_mux[] = {
  1824. DU2_DR7_MARK, DU2_DR6_MARK, DU2_DR5_MARK, DU2_DR4_MARK,
  1825. DU2_DR3_MARK, DU2_DR2_MARK, DU2_DR1_MARK, DU2_DR0_MARK,
  1826. DU2_DG7_MARK, DU2_DG6_MARK, DU2_DG5_MARK, DU2_DG4_MARK,
  1827. DU2_DG3_MARK, DU2_DG2_MARK, DU2_DG1_MARK, DU2_DG0_MARK,
  1828. DU2_DB7_MARK, DU2_DB6_MARK, DU2_DB5_MARK, DU2_DB4_MARK,
  1829. DU2_DB3_MARK, DU2_DB2_MARK, DU2_DB1_MARK, DU2_DB0_MARK,
  1830. };
  1831. static const unsigned int du_clk_out_0_pins[] = {
  1832. /* CLKOUT */
  1833. RCAR_GP_PIN(5, 2),
  1834. };
  1835. static const unsigned int du_clk_out_0_mux[] = {
  1836. DU0_DOTCLKOUT_MARK
  1837. };
  1838. static const unsigned int du_clk_out_1_pins[] = {
  1839. /* CLKOUT */
  1840. RCAR_GP_PIN(5, 3),
  1841. };
  1842. static const unsigned int du_clk_out_1_mux[] = {
  1843. DU1_DOTCLKOUT_MARK
  1844. };
  1845. static const unsigned int du_sync_0_pins[] = {
  1846. /* VSYNC, HSYNC, DISP */
  1847. RCAR_GP_PIN(4, 15), RCAR_GP_PIN(4, 14), RCAR_GP_PIN(5, 0),
  1848. };
  1849. static const unsigned int du_sync_0_mux[] = {
  1850. DU2_EXVSYNC_DU2_VSYNC_MARK, DU2_EXHSYNC_DU2_HSYNC_MARK,
  1851. DU2_EXODDF_DU2_ODDF_DISP_CDE_MARK
  1852. };
  1853. static const unsigned int du_sync_1_pins[] = {
  1854. /* VSYNC, HSYNC, DISP */
  1855. RCAR_GP_PIN(4, 15), RCAR_GP_PIN(4, 14), RCAR_GP_PIN(5, 16),
  1856. };
  1857. static const unsigned int du_sync_1_mux[] = {
  1858. DU2_EXVSYNC_DU2_VSYNC_MARK, DU2_EXHSYNC_DU2_HSYNC_MARK,
  1859. DU2_DISP_MARK
  1860. };
  1861. static const unsigned int du_cde_pins[] = {
  1862. /* CDE */
  1863. RCAR_GP_PIN(5, 17),
  1864. };
  1865. static const unsigned int du_cde_mux[] = {
  1866. DU2_CDE_MARK,
  1867. };
  1868. /* - DU0 -------------------------------------------------------------------- */
  1869. static const unsigned int du0_clk_in_pins[] = {
  1870. /* CLKIN */
  1871. RCAR_GP_PIN(5, 26),
  1872. };
  1873. static const unsigned int du0_clk_in_mux[] = {
  1874. DU_DOTCLKIN0_MARK
  1875. };
  1876. /* - DU1 -------------------------------------------------------------------- */
  1877. static const unsigned int du1_clk_in_pins[] = {
  1878. /* CLKIN */
  1879. RCAR_GP_PIN(5, 27),
  1880. };
  1881. static const unsigned int du1_clk_in_mux[] = {
  1882. DU_DOTCLKIN1_MARK,
  1883. };
  1884. /* - DU2 -------------------------------------------------------------------- */
  1885. static const unsigned int du2_clk_in_pins[] = {
  1886. /* CLKIN */
  1887. RCAR_GP_PIN(5, 28),
  1888. };
  1889. static const unsigned int du2_clk_in_mux[] = {
  1890. DU_DOTCLKIN2_MARK,
  1891. };
  1892. /* - ETH -------------------------------------------------------------------- */
  1893. static const unsigned int eth_link_pins[] = {
  1894. /* LINK */
  1895. RCAR_GP_PIN(2, 22),
  1896. };
  1897. static const unsigned int eth_link_mux[] = {
  1898. ETH_LINK_MARK,
  1899. };
  1900. static const unsigned int eth_magic_pins[] = {
  1901. /* MAGIC */
  1902. RCAR_GP_PIN(2, 27),
  1903. };
  1904. static const unsigned int eth_magic_mux[] = {
  1905. ETH_MAGIC_MARK,
  1906. };
  1907. static const unsigned int eth_mdio_pins[] = {
  1908. /* MDC, MDIO */
  1909. RCAR_GP_PIN(2, 29), RCAR_GP_PIN(2, 24),
  1910. };
  1911. static const unsigned int eth_mdio_mux[] = {
  1912. ETH_MDC_MARK, ETH_MDIO_MARK,
  1913. };
  1914. static const unsigned int eth_rmii_pins[] = {
  1915. /* RXD[0:1], RX_ER, CRS_DV, TXD[0:1], TX_EN, REF_CLK */
  1916. RCAR_GP_PIN(2, 20), RCAR_GP_PIN(2, 21), RCAR_GP_PIN(2, 19),
  1917. RCAR_GP_PIN(2, 18), RCAR_GP_PIN(2, 28), RCAR_GP_PIN(2, 25),
  1918. RCAR_GP_PIN(2, 26), RCAR_GP_PIN(2, 23),
  1919. };
  1920. static const unsigned int eth_rmii_mux[] = {
  1921. ETH_RXD0_MARK, ETH_RXD1_MARK, ETH_RX_ER_MARK, ETH_CRS_DV_MARK,
  1922. ETH_TXD0_MARK, ETH_TXD1_MARK, ETH_TX_EN_MARK, ETH_REF_CLK_MARK,
  1923. };
  1924. /* - HSCIF0 ----------------------------------------------------------------- */
  1925. static const unsigned int hscif0_data_pins[] = {
  1926. /* RX, TX */
  1927. RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 9),
  1928. };
  1929. static const unsigned int hscif0_data_mux[] = {
  1930. HRX0_MARK, HTX0_MARK,
  1931. };
  1932. static const unsigned int hscif0_clk_pins[] = {
  1933. /* SCK */
  1934. RCAR_GP_PIN(5, 7),
  1935. };
  1936. static const unsigned int hscif0_clk_mux[] = {
  1937. HSCK0_MARK,
  1938. };
  1939. static const unsigned int hscif0_ctrl_pins[] = {
  1940. /* RTS, CTS */
  1941. RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 10),
  1942. };
  1943. static const unsigned int hscif0_ctrl_mux[] = {
  1944. HRTS0_N_MARK, HCTS0_N_MARK,
  1945. };
  1946. static const unsigned int hscif0_data_b_pins[] = {
  1947. /* RX, TX */
  1948. RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 12),
  1949. };
  1950. static const unsigned int hscif0_data_b_mux[] = {
  1951. HRX0_B_MARK, HTX0_B_MARK,
  1952. };
  1953. static const unsigned int hscif0_ctrl_b_pins[] = {
  1954. /* RTS, CTS */
  1955. RCAR_GP_PIN(1, 29), RCAR_GP_PIN(1, 28),
  1956. };
  1957. static const unsigned int hscif0_ctrl_b_mux[] = {
  1958. HRTS0_N_B_MARK, HCTS0_N_B_MARK,
  1959. };
  1960. static const unsigned int hscif0_data_c_pins[] = {
  1961. /* RX, TX */
  1962. RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 16),
  1963. };
  1964. static const unsigned int hscif0_data_c_mux[] = {
  1965. HRX0_C_MARK, HTX0_C_MARK,
  1966. };
  1967. static const unsigned int hscif0_ctrl_c_pins[] = {
  1968. /* RTS, CTS */
  1969. RCAR_GP_PIN(5, 3), RCAR_GP_PIN(5, 7),
  1970. };
  1971. static const unsigned int hscif0_ctrl_c_mux[] = {
  1972. HRTS0_N_C_MARK, HCTS0_N_C_MARK,
  1973. };
  1974. static const unsigned int hscif0_data_d_pins[] = {
  1975. /* RX, TX */
  1976. RCAR_GP_PIN(3, 20), RCAR_GP_PIN(3, 21),
  1977. };
  1978. static const unsigned int hscif0_data_d_mux[] = {
  1979. HRX0_D_MARK, HTX0_D_MARK,
  1980. };
  1981. static const unsigned int hscif0_ctrl_d_pins[] = {
  1982. /* RTS, CTS */
  1983. RCAR_GP_PIN(3, 23), RCAR_GP_PIN(3, 22),
  1984. };
  1985. static const unsigned int hscif0_ctrl_d_mux[] = {
  1986. HRTS0_N_D_MARK, HCTS0_N_D_MARK,
  1987. };
  1988. static const unsigned int hscif0_data_e_pins[] = {
  1989. /* RX, TX */
  1990. RCAR_GP_PIN(2, 21), RCAR_GP_PIN(2, 22),
  1991. };
  1992. static const unsigned int hscif0_data_e_mux[] = {
  1993. HRX0_E_MARK, HTX0_E_MARK,
  1994. };
  1995. static const unsigned int hscif0_ctrl_e_pins[] = {
  1996. /* RTS, CTS */
  1997. RCAR_GP_PIN(2, 24), RCAR_GP_PIN(2, 23),
  1998. };
  1999. static const unsigned int hscif0_ctrl_e_mux[] = {
  2000. HRTS0_N_E_MARK, HCTS0_N_E_MARK,
  2001. };
  2002. static const unsigned int hscif0_data_f_pins[] = {
  2003. /* RX, TX */
  2004. RCAR_GP_PIN(2, 23), RCAR_GP_PIN(2, 25),
  2005. };
  2006. static const unsigned int hscif0_data_f_mux[] = {
  2007. HRX0_F_MARK, HTX0_F_MARK,
  2008. };
  2009. static const unsigned int hscif0_ctrl_f_pins[] = {
  2010. /* RTS, CTS */
  2011. RCAR_GP_PIN(2, 26), RCAR_GP_PIN(2, 24),
  2012. };
  2013. static const unsigned int hscif0_ctrl_f_mux[] = {
  2014. HRTS0_N_F_MARK, HCTS0_N_F_MARK,
  2015. };
  2016. /* - HSCIF1 ----------------------------------------------------------------- */
  2017. static const unsigned int hscif1_data_pins[] = {
  2018. /* RX, TX */
  2019. RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 29),
  2020. };
  2021. static const unsigned int hscif1_data_mux[] = {
  2022. HRX1_MARK, HTX1_MARK,
  2023. };
  2024. static const unsigned int hscif1_clk_pins[] = {
  2025. /* SCK */
  2026. RCAR_GP_PIN(4, 27),
  2027. };
  2028. static const unsigned int hscif1_clk_mux[] = {
  2029. HSCK1_MARK,
  2030. };
  2031. static const unsigned int hscif1_ctrl_pins[] = {
  2032. /* RTS, CTS */
  2033. RCAR_GP_PIN(4, 31), RCAR_GP_PIN(4, 30),
  2034. };
  2035. static const unsigned int hscif1_ctrl_mux[] = {
  2036. HRTS1_N_MARK, HCTS1_N_MARK,
  2037. };
  2038. static const unsigned int hscif1_data_b_pins[] = {
  2039. /* RX, TX */
  2040. RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 18),
  2041. };
  2042. static const unsigned int hscif1_data_b_mux[] = {
  2043. HRX1_B_MARK, HTX1_B_MARK,
  2044. };
  2045. static const unsigned int hscif1_clk_b_pins[] = {
  2046. /* SCK */
  2047. RCAR_GP_PIN(1, 28),
  2048. };
  2049. static const unsigned int hscif1_clk_b_mux[] = {
  2050. HSCK1_B_MARK,
  2051. };
  2052. static const unsigned int hscif1_ctrl_b_pins[] = {
  2053. /* RTS, CTS */
  2054. RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13),
  2055. };
  2056. static const unsigned int hscif1_ctrl_b_mux[] = {
  2057. HRTS1_N_B_MARK, HCTS1_N_B_MARK,
  2058. };
  2059. /* - I2C0 ------------------------------------------------------------------- */
  2060. static const unsigned int i2c0_pins[] = {
  2061. /* SCL, SDA */
  2062. PIN_A_NUMBER('G', 15), PIN_A_NUMBER('F', 15),
  2063. };
  2064. static const unsigned int i2c0_mux[] = {
  2065. I2C0_SCL_MARK, I2C0_SDA_MARK,
  2066. };
  2067. /* - I2C1 ------------------------------------------------------------------- */
  2068. static const unsigned int i2c1_pins[] = {
  2069. /* SCL, SDA */
  2070. RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 17),
  2071. };
  2072. static const unsigned int i2c1_mux[] = {
  2073. I2C1_SCL_MARK, I2C1_SDA_MARK,
  2074. };
  2075. static const unsigned int i2c1_b_pins[] = {
  2076. /* SCL, SDA */
  2077. RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 7),
  2078. };
  2079. static const unsigned int i2c1_b_mux[] = {
  2080. I2C1_SCL_B_MARK, I2C1_SDA_B_MARK,
  2081. };
  2082. static const unsigned int i2c1_c_pins[] = {
  2083. /* SCL, SDA */
  2084. RCAR_GP_PIN(4, 30), RCAR_GP_PIN(4, 27),
  2085. };
  2086. static const unsigned int i2c1_c_mux[] = {
  2087. I2C1_SCL_C_MARK, I2C1_SDA_C_MARK,
  2088. };
  2089. /* - I2C2 ------------------------------------------------------------------- */
  2090. static const unsigned int i2c2_pins[] = {
  2091. /* SCL, SDA */
  2092. RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
  2093. };
  2094. static const unsigned int i2c2_mux[] = {
  2095. I2C2_SCL_MARK, I2C2_SDA_MARK,
  2096. };
  2097. static const unsigned int i2c2_b_pins[] = {
  2098. /* SCL, SDA */
  2099. RCAR_GP_PIN(4, 0), RCAR_GP_PIN(4, 1),
  2100. };
  2101. static const unsigned int i2c2_b_mux[] = {
  2102. I2C2_SCL_B_MARK, I2C2_SDA_B_MARK,
  2103. };
  2104. static const unsigned int i2c2_c_pins[] = {
  2105. /* SCL, SDA */
  2106. RCAR_GP_PIN(0, 6), RCAR_GP_PIN(0, 7),
  2107. };
  2108. static const unsigned int i2c2_c_mux[] = {
  2109. I2C2_SCL_C_MARK, I2C2_SDA_C_MARK,
  2110. };
  2111. static const unsigned int i2c2_d_pins[] = {
  2112. /* SCL, SDA */
  2113. RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 15),
  2114. };
  2115. static const unsigned int i2c2_d_mux[] = {
  2116. I2C2_SCL_D_MARK, I2C2_SDA_D_MARK,
  2117. };
  2118. static const unsigned int i2c2_e_pins[] = {
  2119. /* SCL, SDA */
  2120. RCAR_GP_PIN(2, 18), RCAR_GP_PIN(2, 19),
  2121. };
  2122. static const unsigned int i2c2_e_mux[] = {
  2123. I2C2_SCL_E_MARK, I2C2_SDA_E_MARK,
  2124. };
  2125. /* - I2C3 ------------------------------------------------------------------- */
  2126. static const unsigned int i2c3_pins[] = {
  2127. /* SCL, SDA */
  2128. PIN_A_NUMBER('J', 15), PIN_A_NUMBER('H', 15),
  2129. };
  2130. static const unsigned int i2c3_mux[] = {
  2131. I2C3_SCL_MARK, I2C3_SDA_MARK,
  2132. };
  2133. /* - IIC0 (I2C4) ------------------------------------------------------------ */
  2134. static const unsigned int iic0_pins[] = {
  2135. /* SCL, SDA */
  2136. PIN_A_NUMBER('G', 15), PIN_A_NUMBER('F', 15),
  2137. };
  2138. static const unsigned int iic0_mux[] = {
  2139. IIC0_SCL_MARK, IIC0_SDA_MARK,
  2140. };
  2141. /* - IIC1 (I2C5) ------------------------------------------------------------ */
  2142. static const unsigned int iic1_pins[] = {
  2143. /* SCL, SDA */
  2144. RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 17),
  2145. };
  2146. static const unsigned int iic1_mux[] = {
  2147. IIC1_SCL_MARK, IIC1_SDA_MARK,
  2148. };
  2149. static const unsigned int iic1_b_pins[] = {
  2150. /* SCL, SDA */
  2151. RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 7),
  2152. };
  2153. static const unsigned int iic1_b_mux[] = {
  2154. IIC1_SCL_B_MARK, IIC1_SDA_B_MARK,
  2155. };
  2156. static const unsigned int iic1_c_pins[] = {
  2157. /* SCL, SDA */
  2158. RCAR_GP_PIN(4, 30), RCAR_GP_PIN(4, 27),
  2159. };
  2160. static const unsigned int iic1_c_mux[] = {
  2161. IIC1_SCL_C_MARK, IIC1_SDA_C_MARK,
  2162. };
  2163. /* - IIC2 (I2C6) ------------------------------------------------------------ */
  2164. static const unsigned int iic2_pins[] = {
  2165. /* SCL, SDA */
  2166. RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
  2167. };
  2168. static const unsigned int iic2_mux[] = {
  2169. IIC2_SCL_MARK, IIC2_SDA_MARK,
  2170. };
  2171. static const unsigned int iic2_b_pins[] = {
  2172. /* SCL, SDA */
  2173. RCAR_GP_PIN(4, 0), RCAR_GP_PIN(4, 1),
  2174. };
  2175. static const unsigned int iic2_b_mux[] = {
  2176. IIC2_SCL_B_MARK, IIC2_SDA_B_MARK,
  2177. };
  2178. static const unsigned int iic2_c_pins[] = {
  2179. /* SCL, SDA */
  2180. RCAR_GP_PIN(0, 6), RCAR_GP_PIN(0, 7),
  2181. };
  2182. static const unsigned int iic2_c_mux[] = {
  2183. IIC2_SCL_C_MARK, IIC2_SDA_C_MARK,
  2184. };
  2185. static const unsigned int iic2_d_pins[] = {
  2186. /* SCL, SDA */
  2187. RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 15),
  2188. };
  2189. static const unsigned int iic2_d_mux[] = {
  2190. IIC2_SCL_D_MARK, IIC2_SDA_D_MARK,
  2191. };
  2192. static const unsigned int iic2_e_pins[] = {
  2193. /* SCL, SDA */
  2194. RCAR_GP_PIN(2, 18), RCAR_GP_PIN(2, 19),
  2195. };
  2196. static const unsigned int iic2_e_mux[] = {
  2197. IIC2_SCL_E_MARK, IIC2_SDA_E_MARK,
  2198. };
  2199. /* - IIC3 (I2C7) ------------------------------------------------------------ */
  2200. static const unsigned int iic3_pins[] = {
  2201. /* SCL, SDA */
  2202. PIN_A_NUMBER('J', 15), PIN_A_NUMBER('H', 15),
  2203. };
  2204. static const unsigned int iic3_mux[] = {
  2205. IIC3_SCL_MARK, IIC3_SDA_MARK,
  2206. };
  2207. /* - INTC ------------------------------------------------------------------- */
  2208. static const unsigned int intc_irq0_pins[] = {
  2209. /* IRQ */
  2210. RCAR_GP_PIN(1, 25),
  2211. };
  2212. static const unsigned int intc_irq0_mux[] = {
  2213. IRQ0_MARK,
  2214. };
  2215. static const unsigned int intc_irq1_pins[] = {
  2216. /* IRQ */
  2217. RCAR_GP_PIN(1, 27),
  2218. };
  2219. static const unsigned int intc_irq1_mux[] = {
  2220. IRQ1_MARK,
  2221. };
  2222. static const unsigned int intc_irq2_pins[] = {
  2223. /* IRQ */
  2224. RCAR_GP_PIN(1, 29),
  2225. };
  2226. static const unsigned int intc_irq2_mux[] = {
  2227. IRQ2_MARK,
  2228. };
  2229. static const unsigned int intc_irq3_pins[] = {
  2230. /* IRQ */
  2231. RCAR_GP_PIN(1, 23),
  2232. };
  2233. static const unsigned int intc_irq3_mux[] = {
  2234. IRQ3_MARK,
  2235. };
  2236. /* - MLB+ ------------------------------------------------------------------- */
  2237. static const unsigned int mlb_3pin_pins[] = {
  2238. RCAR_GP_PIN(4, 0), RCAR_GP_PIN(4, 1), RCAR_GP_PIN(4, 2),
  2239. };
  2240. static const unsigned int mlb_3pin_mux[] = {
  2241. MLB_CLK_MARK, MLB_SIG_MARK, MLB_DAT_MARK,
  2242. };
  2243. /* - MMCIF0 ----------------------------------------------------------------- */
  2244. static const unsigned int mmc0_data1_pins[] = {
  2245. /* D[0] */
  2246. RCAR_GP_PIN(3, 18),
  2247. };
  2248. static const unsigned int mmc0_data1_mux[] = {
  2249. MMC0_D0_MARK,
  2250. };
  2251. static const unsigned int mmc0_data4_pins[] = {
  2252. /* D[0:3] */
  2253. RCAR_GP_PIN(3, 18), RCAR_GP_PIN(3, 19),
  2254. RCAR_GP_PIN(3, 20), RCAR_GP_PIN(3, 21),
  2255. };
  2256. static const unsigned int mmc0_data4_mux[] = {
  2257. MMC0_D0_MARK, MMC0_D1_MARK, MMC0_D2_MARK, MMC0_D3_MARK,
  2258. };
  2259. static const unsigned int mmc0_data8_pins[] = {
  2260. /* D[0:7] */
  2261. RCAR_GP_PIN(3, 18), RCAR_GP_PIN(3, 19),
  2262. RCAR_GP_PIN(3, 20), RCAR_GP_PIN(3, 21),
  2263. RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 23),
  2264. RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 7),
  2265. };
  2266. static const unsigned int mmc0_data8_mux[] = {
  2267. MMC0_D0_MARK, MMC0_D1_MARK, MMC0_D2_MARK, MMC0_D3_MARK,
  2268. MMC0_D4_MARK, MMC0_D5_MARK, MMC0_D6_MARK, MMC0_D7_MARK,
  2269. };
  2270. static const unsigned int mmc0_ctrl_pins[] = {
  2271. /* CLK, CMD */
  2272. RCAR_GP_PIN(3, 16), RCAR_GP_PIN(3, 17),
  2273. };
  2274. static const unsigned int mmc0_ctrl_mux[] = {
  2275. MMC0_CLK_MARK, MMC0_CMD_MARK,
  2276. };
  2277. /* - MMCIF1 ----------------------------------------------------------------- */
  2278. static const unsigned int mmc1_data1_pins[] = {
  2279. /* D[0] */
  2280. RCAR_GP_PIN(3, 26),
  2281. };
  2282. static const unsigned int mmc1_data1_mux[] = {
  2283. MMC1_D0_MARK,
  2284. };
  2285. static const unsigned int mmc1_data4_pins[] = {
  2286. /* D[0:3] */
  2287. RCAR_GP_PIN(3, 26), RCAR_GP_PIN(3, 27),
  2288. RCAR_GP_PIN(3, 28), RCAR_GP_PIN(3, 29),
  2289. };
  2290. static const unsigned int mmc1_data4_mux[] = {
  2291. MMC1_D0_MARK, MMC1_D1_MARK, MMC1_D2_MARK, MMC1_D3_MARK,
  2292. };
  2293. static const unsigned int mmc1_data8_pins[] = {
  2294. /* D[0:7] */
  2295. RCAR_GP_PIN(3, 26), RCAR_GP_PIN(3, 27),
  2296. RCAR_GP_PIN(3, 28), RCAR_GP_PIN(3, 29),
  2297. RCAR_GP_PIN(3, 30), RCAR_GP_PIN(3, 31),
  2298. RCAR_GP_PIN(3, 14), RCAR_GP_PIN(3, 15),
  2299. };
  2300. static const unsigned int mmc1_data8_mux[] = {
  2301. MMC1_D0_MARK, MMC1_D1_MARK, MMC1_D2_MARK, MMC1_D3_MARK,
  2302. MMC1_D4_MARK, MMC1_D5_MARK, MMC1_D6_MARK, MMC1_D7_MARK,
  2303. };
  2304. static const unsigned int mmc1_ctrl_pins[] = {
  2305. /* CLK, CMD */
  2306. RCAR_GP_PIN(3, 24), RCAR_GP_PIN(3, 25),
  2307. };
  2308. static const unsigned int mmc1_ctrl_mux[] = {
  2309. MMC1_CLK_MARK, MMC1_CMD_MARK,
  2310. };
  2311. /* - MSIOF0 ----------------------------------------------------------------- */
  2312. static const unsigned int msiof0_clk_pins[] = {
  2313. /* SCK */
  2314. RCAR_GP_PIN(5, 12),
  2315. };
  2316. static const unsigned int msiof0_clk_mux[] = {
  2317. MSIOF0_SCK_MARK,
  2318. };
  2319. static const unsigned int msiof0_sync_pins[] = {
  2320. /* SYNC */
  2321. RCAR_GP_PIN(5, 13),
  2322. };
  2323. static const unsigned int msiof0_sync_mux[] = {
  2324. MSIOF0_SYNC_MARK,
  2325. };
  2326. static const unsigned int msiof0_ss1_pins[] = {
  2327. /* SS1 */
  2328. RCAR_GP_PIN(5, 14),
  2329. };
  2330. static const unsigned int msiof0_ss1_mux[] = {
  2331. MSIOF0_SS1_MARK,
  2332. };
  2333. static const unsigned int msiof0_ss2_pins[] = {
  2334. /* SS2 */
  2335. RCAR_GP_PIN(5, 16),
  2336. };
  2337. static const unsigned int msiof0_ss2_mux[] = {
  2338. MSIOF0_SS2_MARK,
  2339. };
  2340. static const unsigned int msiof0_rx_pins[] = {
  2341. /* RXD */
  2342. RCAR_GP_PIN(5, 17),
  2343. };
  2344. static const unsigned int msiof0_rx_mux[] = {
  2345. MSIOF0_RXD_MARK,
  2346. };
  2347. static const unsigned int msiof0_tx_pins[] = {
  2348. /* TXD */
  2349. RCAR_GP_PIN(5, 15),
  2350. };
  2351. static const unsigned int msiof0_tx_mux[] = {
  2352. MSIOF0_TXD_MARK,
  2353. };
  2354. static const unsigned int msiof0_clk_b_pins[] = {
  2355. /* SCK */
  2356. RCAR_GP_PIN(1, 23),
  2357. };
  2358. static const unsigned int msiof0_clk_b_mux[] = {
  2359. MSIOF0_SCK_B_MARK,
  2360. };
  2361. static const unsigned int msiof0_ss1_b_pins[] = {
  2362. /* SS1 */
  2363. RCAR_GP_PIN(1, 12),
  2364. };
  2365. static const unsigned int msiof0_ss1_b_mux[] = {
  2366. MSIOF0_SS1_B_MARK,
  2367. };
  2368. static const unsigned int msiof0_ss2_b_pins[] = {
  2369. /* SS2 */
  2370. RCAR_GP_PIN(1, 10),
  2371. };
  2372. static const unsigned int msiof0_ss2_b_mux[] = {
  2373. MSIOF0_SS2_B_MARK,
  2374. };
  2375. static const unsigned int msiof0_rx_b_pins[] = {
  2376. /* RXD */
  2377. RCAR_GP_PIN(1, 29),
  2378. };
  2379. static const unsigned int msiof0_rx_b_mux[] = {
  2380. MSIOF0_RXD_B_MARK,
  2381. };
  2382. static const unsigned int msiof0_tx_b_pins[] = {
  2383. /* TXD */
  2384. RCAR_GP_PIN(1, 28),
  2385. };
  2386. static const unsigned int msiof0_tx_b_mux[] = {
  2387. MSIOF0_TXD_B_MARK,
  2388. };
  2389. /* - MSIOF1 ----------------------------------------------------------------- */
  2390. static const unsigned int msiof1_clk_pins[] = {
  2391. /* SCK */
  2392. RCAR_GP_PIN(4, 8),
  2393. };
  2394. static const unsigned int msiof1_clk_mux[] = {
  2395. MSIOF1_SCK_MARK,
  2396. };
  2397. static const unsigned int msiof1_sync_pins[] = {
  2398. /* SYNC */
  2399. RCAR_GP_PIN(4, 9),
  2400. };
  2401. static const unsigned int msiof1_sync_mux[] = {
  2402. MSIOF1_SYNC_MARK,
  2403. };
  2404. static const unsigned int msiof1_ss1_pins[] = {
  2405. /* SS1 */
  2406. RCAR_GP_PIN(4, 10),
  2407. };
  2408. static const unsigned int msiof1_ss1_mux[] = {
  2409. MSIOF1_SS1_MARK,
  2410. };
  2411. static const unsigned int msiof1_ss2_pins[] = {
  2412. /* SS2 */
  2413. RCAR_GP_PIN(4, 11),
  2414. };
  2415. static const unsigned int msiof1_ss2_mux[] = {
  2416. MSIOF1_SS2_MARK,
  2417. };
  2418. static const unsigned int msiof1_rx_pins[] = {
  2419. /* RXD */
  2420. RCAR_GP_PIN(4, 13),
  2421. };
  2422. static const unsigned int msiof1_rx_mux[] = {
  2423. MSIOF1_RXD_MARK,
  2424. };
  2425. static const unsigned int msiof1_tx_pins[] = {
  2426. /* TXD */
  2427. RCAR_GP_PIN(4, 12),
  2428. };
  2429. static const unsigned int msiof1_tx_mux[] = {
  2430. MSIOF1_TXD_MARK,
  2431. };
  2432. static const unsigned int msiof1_clk_b_pins[] = {
  2433. /* SCK */
  2434. RCAR_GP_PIN(1, 16),
  2435. };
  2436. static const unsigned int msiof1_clk_b_mux[] = {
  2437. MSIOF1_SCK_B_MARK,
  2438. };
  2439. static const unsigned int msiof1_ss1_b_pins[] = {
  2440. /* SS1 */
  2441. RCAR_GP_PIN(0, 18),
  2442. };
  2443. static const unsigned int msiof1_ss1_b_mux[] = {
  2444. MSIOF1_SS1_B_MARK,
  2445. };
  2446. static const unsigned int msiof1_ss2_b_pins[] = {
  2447. /* SS2 */
  2448. RCAR_GP_PIN(0, 19),
  2449. };
  2450. static const unsigned int msiof1_ss2_b_mux[] = {
  2451. MSIOF1_SS2_B_MARK,
  2452. };
  2453. static const unsigned int msiof1_rx_b_pins[] = {
  2454. /* RXD */
  2455. RCAR_GP_PIN(1, 17),
  2456. };
  2457. static const unsigned int msiof1_rx_b_mux[] = {
  2458. MSIOF1_RXD_B_MARK,
  2459. };
  2460. static const unsigned int msiof1_tx_b_pins[] = {
  2461. /* TXD */
  2462. RCAR_GP_PIN(0, 20),
  2463. };
  2464. static const unsigned int msiof1_tx_b_mux[] = {
  2465. MSIOF1_TXD_B_MARK,
  2466. };
  2467. /* - MSIOF2 ----------------------------------------------------------------- */
  2468. static const unsigned int msiof2_clk_pins[] = {
  2469. /* SCK */
  2470. RCAR_GP_PIN(0, 27),
  2471. };
  2472. static const unsigned int msiof2_clk_mux[] = {
  2473. MSIOF2_SCK_MARK,
  2474. };
  2475. static const unsigned int msiof2_sync_pins[] = {
  2476. /* SYNC */
  2477. RCAR_GP_PIN(0, 26),
  2478. };
  2479. static const unsigned int msiof2_sync_mux[] = {
  2480. MSIOF2_SYNC_MARK,
  2481. };
  2482. static const unsigned int msiof2_ss1_pins[] = {
  2483. /* SS1 */
  2484. RCAR_GP_PIN(0, 30),
  2485. };
  2486. static const unsigned int msiof2_ss1_mux[] = {
  2487. MSIOF2_SS1_MARK,
  2488. };
  2489. static const unsigned int msiof2_ss2_pins[] = {
  2490. /* SS2 */
  2491. RCAR_GP_PIN(0, 31),
  2492. };
  2493. static const unsigned int msiof2_ss2_mux[] = {
  2494. MSIOF2_SS2_MARK,
  2495. };
  2496. static const unsigned int msiof2_rx_pins[] = {
  2497. /* RXD */
  2498. RCAR_GP_PIN(0, 29),
  2499. };
  2500. static const unsigned int msiof2_rx_mux[] = {
  2501. MSIOF2_RXD_MARK,
  2502. };
  2503. static const unsigned int msiof2_tx_pins[] = {
  2504. /* TXD */
  2505. RCAR_GP_PIN(0, 28),
  2506. };
  2507. static const unsigned int msiof2_tx_mux[] = {
  2508. MSIOF2_TXD_MARK,
  2509. };
  2510. /* - MSIOF3 ----------------------------------------------------------------- */
  2511. static const unsigned int msiof3_clk_pins[] = {
  2512. /* SCK */
  2513. RCAR_GP_PIN(5, 4),
  2514. };
  2515. static const unsigned int msiof3_clk_mux[] = {
  2516. MSIOF3_SCK_MARK,
  2517. };
  2518. static const unsigned int msiof3_sync_pins[] = {
  2519. /* SYNC */
  2520. RCAR_GP_PIN(4, 30),
  2521. };
  2522. static const unsigned int msiof3_sync_mux[] = {
  2523. MSIOF3_SYNC_MARK,
  2524. };
  2525. static const unsigned int msiof3_ss1_pins[] = {
  2526. /* SS1 */
  2527. RCAR_GP_PIN(4, 31),
  2528. };
  2529. static const unsigned int msiof3_ss1_mux[] = {
  2530. MSIOF3_SS1_MARK,
  2531. };
  2532. static const unsigned int msiof3_ss2_pins[] = {
  2533. /* SS2 */
  2534. RCAR_GP_PIN(4, 27),
  2535. };
  2536. static const unsigned int msiof3_ss2_mux[] = {
  2537. MSIOF3_SS2_MARK,
  2538. };
  2539. static const unsigned int msiof3_rx_pins[] = {
  2540. /* RXD */
  2541. RCAR_GP_PIN(5, 2),
  2542. };
  2543. static const unsigned int msiof3_rx_mux[] = {
  2544. MSIOF3_RXD_MARK,
  2545. };
  2546. static const unsigned int msiof3_tx_pins[] = {
  2547. /* TXD */
  2548. RCAR_GP_PIN(5, 3),
  2549. };
  2550. static const unsigned int msiof3_tx_mux[] = {
  2551. MSIOF3_TXD_MARK,
  2552. };
  2553. static const unsigned int msiof3_clk_b_pins[] = {
  2554. /* SCK */
  2555. RCAR_GP_PIN(0, 0),
  2556. };
  2557. static const unsigned int msiof3_clk_b_mux[] = {
  2558. MSIOF3_SCK_B_MARK,
  2559. };
  2560. static const unsigned int msiof3_sync_b_pins[] = {
  2561. /* SYNC */
  2562. RCAR_GP_PIN(0, 1),
  2563. };
  2564. static const unsigned int msiof3_sync_b_mux[] = {
  2565. MSIOF3_SYNC_B_MARK,
  2566. };
  2567. static const unsigned int msiof3_rx_b_pins[] = {
  2568. /* RXD */
  2569. RCAR_GP_PIN(0, 2),
  2570. };
  2571. static const unsigned int msiof3_rx_b_mux[] = {
  2572. MSIOF3_RXD_B_MARK,
  2573. };
  2574. static const unsigned int msiof3_tx_b_pins[] = {
  2575. /* TXD */
  2576. RCAR_GP_PIN(0, 3),
  2577. };
  2578. static const unsigned int msiof3_tx_b_mux[] = {
  2579. MSIOF3_TXD_B_MARK,
  2580. };
  2581. /* - PWM -------------------------------------------------------------------- */
  2582. static const unsigned int pwm0_pins[] = {
  2583. RCAR_GP_PIN(5, 29),
  2584. };
  2585. static const unsigned int pwm0_mux[] = {
  2586. PWM0_MARK,
  2587. };
  2588. static const unsigned int pwm0_b_pins[] = {
  2589. RCAR_GP_PIN(4, 30),
  2590. };
  2591. static const unsigned int pwm0_b_mux[] = {
  2592. PWM0_B_MARK,
  2593. };
  2594. static const unsigned int pwm1_pins[] = {
  2595. RCAR_GP_PIN(5, 30),
  2596. };
  2597. static const unsigned int pwm1_mux[] = {
  2598. PWM1_MARK,
  2599. };
  2600. static const unsigned int pwm1_b_pins[] = {
  2601. RCAR_GP_PIN(4, 31),
  2602. };
  2603. static const unsigned int pwm1_b_mux[] = {
  2604. PWM1_B_MARK,
  2605. };
  2606. static const unsigned int pwm2_pins[] = {
  2607. RCAR_GP_PIN(5, 31),
  2608. };
  2609. static const unsigned int pwm2_mux[] = {
  2610. PWM2_MARK,
  2611. };
  2612. static const unsigned int pwm3_pins[] = {
  2613. RCAR_GP_PIN(0, 16),
  2614. };
  2615. static const unsigned int pwm3_mux[] = {
  2616. PWM3_MARK,
  2617. };
  2618. static const unsigned int pwm4_pins[] = {
  2619. RCAR_GP_PIN(0, 17),
  2620. };
  2621. static const unsigned int pwm4_mux[] = {
  2622. PWM4_MARK,
  2623. };
  2624. static const unsigned int pwm5_pins[] = {
  2625. RCAR_GP_PIN(0, 18),
  2626. };
  2627. static const unsigned int pwm5_mux[] = {
  2628. PWM5_MARK,
  2629. };
  2630. static const unsigned int pwm6_pins[] = {
  2631. RCAR_GP_PIN(0, 19),
  2632. };
  2633. static const unsigned int pwm6_mux[] = {
  2634. PWM6_MARK,
  2635. };
  2636. /* - QSPI ------------------------------------------------------------------- */
  2637. static const unsigned int qspi_ctrl_pins[] = {
  2638. /* SPCLK, SSL */
  2639. RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 9),
  2640. };
  2641. static const unsigned int qspi_ctrl_mux[] = {
  2642. SPCLK_MARK, SSL_MARK,
  2643. };
  2644. static const unsigned int qspi_data2_pins[] = {
  2645. /* MOSI_IO0, MISO_IO1 */
  2646. RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 6),
  2647. };
  2648. static const unsigned int qspi_data2_mux[] = {
  2649. MOSI_IO0_MARK, MISO_IO1_MARK,
  2650. };
  2651. static const unsigned int qspi_data4_pins[] = {
  2652. /* MOSI_IO0, MISO_IO1, IO2, IO3 */
  2653. RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
  2654. RCAR_GP_PIN(1, 8),
  2655. };
  2656. static const unsigned int qspi_data4_mux[] = {
  2657. MOSI_IO0_MARK, MISO_IO1_MARK, IO2_MARK, IO3_MARK,
  2658. };
  2659. /* - SCIF0 ------------------------------------------------------------------ */
  2660. static const unsigned int scif0_data_pins[] = {
  2661. /* RX, TX */
  2662. RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 29),
  2663. };
  2664. static const unsigned int scif0_data_mux[] = {
  2665. RX0_MARK, TX0_MARK,
  2666. };
  2667. static const unsigned int scif0_clk_pins[] = {
  2668. /* SCK */
  2669. RCAR_GP_PIN(4, 27),
  2670. };
  2671. static const unsigned int scif0_clk_mux[] = {
  2672. SCK0_MARK,
  2673. };
  2674. static const unsigned int scif0_ctrl_pins[] = {
  2675. /* RTS, CTS */
  2676. RCAR_GP_PIN(4, 31), RCAR_GP_PIN(4, 30),
  2677. };
  2678. static const unsigned int scif0_ctrl_mux[] = {
  2679. RTS0_N_MARK, CTS0_N_MARK,
  2680. };
  2681. static const unsigned int scif0_data_b_pins[] = {
  2682. /* RX, TX */
  2683. RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 5),
  2684. };
  2685. static const unsigned int scif0_data_b_mux[] = {
  2686. RX0_B_MARK, TX0_B_MARK,
  2687. };
  2688. /* - SCIF1 ------------------------------------------------------------------ */
  2689. static const unsigned int scif1_data_pins[] = {
  2690. /* RX, TX */
  2691. RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 1),
  2692. };
  2693. static const unsigned int scif1_data_mux[] = {
  2694. RX1_MARK, TX1_MARK,
  2695. };
  2696. static const unsigned int scif1_clk_pins[] = {
  2697. /* SCK */
  2698. RCAR_GP_PIN(4, 20),
  2699. };
  2700. static const unsigned int scif1_clk_mux[] = {
  2701. SCK1_MARK,
  2702. };
  2703. static const unsigned int scif1_ctrl_pins[] = {
  2704. /* RTS, CTS */
  2705. RCAR_GP_PIN(5, 3), RCAR_GP_PIN(5, 2),
  2706. };
  2707. static const unsigned int scif1_ctrl_mux[] = {
  2708. RTS1_N_MARK, CTS1_N_MARK,
  2709. };
  2710. static const unsigned int scif1_data_b_pins[] = {
  2711. /* RX, TX */
  2712. RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 15),
  2713. };
  2714. static const unsigned int scif1_data_b_mux[] = {
  2715. RX1_B_MARK, TX1_B_MARK,
  2716. };
  2717. static const unsigned int scif1_data_c_pins[] = {
  2718. /* RX, TX */
  2719. RCAR_GP_PIN(4, 1), RCAR_GP_PIN(4, 2),
  2720. };
  2721. static const unsigned int scif1_data_c_mux[] = {
  2722. RX1_C_MARK, TX1_C_MARK,
  2723. };
  2724. static const unsigned int scif1_data_d_pins[] = {
  2725. /* RX, TX */
  2726. RCAR_GP_PIN(3, 18), RCAR_GP_PIN(3, 19),
  2727. };
  2728. static const unsigned int scif1_data_d_mux[] = {
  2729. RX1_D_MARK, TX1_D_MARK,
  2730. };
  2731. static const unsigned int scif1_clk_d_pins[] = {
  2732. /* SCK */
  2733. RCAR_GP_PIN(3, 17),
  2734. };
  2735. static const unsigned int scif1_clk_d_mux[] = {
  2736. SCK1_D_MARK,
  2737. };
  2738. static const unsigned int scif1_data_e_pins[] = {
  2739. /* RX, TX */
  2740. RCAR_GP_PIN(2, 21), RCAR_GP_PIN(2, 22),
  2741. };
  2742. static const unsigned int scif1_data_e_mux[] = {
  2743. RX1_E_MARK, TX1_E_MARK,
  2744. };
  2745. static const unsigned int scif1_clk_e_pins[] = {
  2746. /* SCK */
  2747. RCAR_GP_PIN(2, 20),
  2748. };
  2749. static const unsigned int scif1_clk_e_mux[] = {
  2750. SCK1_E_MARK,
  2751. };
  2752. /* - SCIF2 ------------------------------------------------------------------ */
  2753. static const unsigned int scif2_data_pins[] = {
  2754. /* RX, TX */
  2755. RCAR_GP_PIN(5, 6), RCAR_GP_PIN(5, 5),
  2756. };
  2757. static const unsigned int scif2_data_mux[] = {
  2758. RX2_MARK, TX2_MARK,
  2759. };
  2760. static const unsigned int scif2_clk_pins[] = {
  2761. /* SCK */
  2762. RCAR_GP_PIN(5, 4),
  2763. };
  2764. static const unsigned int scif2_clk_mux[] = {
  2765. SCK2_MARK,
  2766. };
  2767. static const unsigned int scif2_data_b_pins[] = {
  2768. /* RX, TX */
  2769. RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 25),
  2770. };
  2771. static const unsigned int scif2_data_b_mux[] = {
  2772. RX2_B_MARK, TX2_B_MARK,
  2773. };
  2774. /* - SCIFA0 ----------------------------------------------------------------- */
  2775. static const unsigned int scifa0_data_pins[] = {
  2776. /* RXD, TXD */
  2777. RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 29),
  2778. };
  2779. static const unsigned int scifa0_data_mux[] = {
  2780. SCIFA0_RXD_MARK, SCIFA0_TXD_MARK,
  2781. };
  2782. static const unsigned int scifa0_clk_pins[] = {
  2783. /* SCK */
  2784. RCAR_GP_PIN(4, 27),
  2785. };
  2786. static const unsigned int scifa0_clk_mux[] = {
  2787. SCIFA0_SCK_MARK,
  2788. };
  2789. static const unsigned int scifa0_ctrl_pins[] = {
  2790. /* RTS, CTS */
  2791. RCAR_GP_PIN(4, 31), RCAR_GP_PIN(4, 30),
  2792. };
  2793. static const unsigned int scifa0_ctrl_mux[] = {
  2794. SCIFA0_RTS_N_MARK, SCIFA0_CTS_N_MARK,
  2795. };
  2796. static const unsigned int scifa0_data_b_pins[] = {
  2797. /* RXD, TXD */
  2798. RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 21),
  2799. };
  2800. static const unsigned int scifa0_data_b_mux[] = {
  2801. SCIFA0_RXD_B_MARK, SCIFA0_TXD_B_MARK
  2802. };
  2803. static const unsigned int scifa0_clk_b_pins[] = {
  2804. /* SCK */
  2805. RCAR_GP_PIN(1, 19),
  2806. };
  2807. static const unsigned int scifa0_clk_b_mux[] = {
  2808. SCIFA0_SCK_B_MARK,
  2809. };
  2810. static const unsigned int scifa0_ctrl_b_pins[] = {
  2811. /* RTS, CTS */
  2812. RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 22),
  2813. };
  2814. static const unsigned int scifa0_ctrl_b_mux[] = {
  2815. SCIFA0_RTS_N_B_MARK, SCIFA0_CTS_N_B_MARK,
  2816. };
  2817. /* - SCIFA1 ----------------------------------------------------------------- */
  2818. static const unsigned int scifa1_data_pins[] = {
  2819. /* RXD, TXD */
  2820. RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 1),
  2821. };
  2822. static const unsigned int scifa1_data_mux[] = {
  2823. SCIFA1_RXD_MARK, SCIFA1_TXD_MARK,
  2824. };
  2825. static const unsigned int scifa1_clk_pins[] = {
  2826. /* SCK */
  2827. RCAR_GP_PIN(4, 20),
  2828. };
  2829. static const unsigned int scifa1_clk_mux[] = {
  2830. SCIFA1_SCK_MARK,
  2831. };
  2832. static const unsigned int scifa1_ctrl_pins[] = {
  2833. /* RTS, CTS */
  2834. RCAR_GP_PIN(5, 3), RCAR_GP_PIN(5, 2),
  2835. };
  2836. static const unsigned int scifa1_ctrl_mux[] = {
  2837. SCIFA1_RTS_N_MARK, SCIFA1_CTS_N_MARK,
  2838. };
  2839. static const unsigned int scifa1_data_b_pins[] = {
  2840. /* RXD, TXD */
  2841. RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 21),
  2842. };
  2843. static const unsigned int scifa1_data_b_mux[] = {
  2844. SCIFA1_RXD_B_MARK, SCIFA1_TXD_B_MARK,
  2845. };
  2846. static const unsigned int scifa1_clk_b_pins[] = {
  2847. /* SCK */
  2848. RCAR_GP_PIN(0, 23),
  2849. };
  2850. static const unsigned int scifa1_clk_b_mux[] = {
  2851. SCIFA1_SCK_B_MARK,
  2852. };
  2853. static const unsigned int scifa1_ctrl_b_pins[] = {
  2854. /* RTS, CTS */
  2855. RCAR_GP_PIN(0, 22), RCAR_GP_PIN(0, 25),
  2856. };
  2857. static const unsigned int scifa1_ctrl_b_mux[] = {
  2858. SCIFA1_RTS_N_B_MARK, SCIFA1_CTS_N_B_MARK,
  2859. };
  2860. static const unsigned int scifa1_data_c_pins[] = {
  2861. /* RXD, TXD */
  2862. RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 10),
  2863. };
  2864. static const unsigned int scifa1_data_c_mux[] = {
  2865. SCIFA1_RXD_C_MARK, SCIFA1_TXD_C_MARK,
  2866. };
  2867. static const unsigned int scifa1_clk_c_pins[] = {
  2868. /* SCK */
  2869. RCAR_GP_PIN(0, 8),
  2870. };
  2871. static const unsigned int scifa1_clk_c_mux[] = {
  2872. SCIFA1_SCK_C_MARK,
  2873. };
  2874. static const unsigned int scifa1_ctrl_c_pins[] = {
  2875. /* RTS, CTS */
  2876. RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 11),
  2877. };
  2878. static const unsigned int scifa1_ctrl_c_mux[] = {
  2879. SCIFA1_RTS_N_C_MARK, SCIFA1_CTS_N_C_MARK,
  2880. };
  2881. static const unsigned int scifa1_data_d_pins[] = {
  2882. /* RXD, TXD */
  2883. RCAR_GP_PIN(2, 11), RCAR_GP_PIN(2, 12),
  2884. };
  2885. static const unsigned int scifa1_data_d_mux[] = {
  2886. SCIFA1_RXD_D_MARK, SCIFA1_TXD_D_MARK,
  2887. };
  2888. static const unsigned int scifa1_clk_d_pins[] = {
  2889. /* SCK */
  2890. RCAR_GP_PIN(2, 10),
  2891. };
  2892. static const unsigned int scifa1_clk_d_mux[] = {
  2893. SCIFA1_SCK_D_MARK,
  2894. };
  2895. static const unsigned int scifa1_ctrl_d_pins[] = {
  2896. /* RTS, CTS */
  2897. RCAR_GP_PIN(2, 14), RCAR_GP_PIN(2, 13),
  2898. };
  2899. static const unsigned int scifa1_ctrl_d_mux[] = {
  2900. SCIFA1_RTS_N_D_MARK, SCIFA1_CTS_N_D_MARK,
  2901. };
  2902. /* - SCIFA2 ----------------------------------------------------------------- */
  2903. static const unsigned int scifa2_data_pins[] = {
  2904. /* RXD, TXD */
  2905. RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
  2906. };
  2907. static const unsigned int scifa2_data_mux[] = {
  2908. SCIFA2_RXD_MARK, SCIFA2_TXD_MARK,
  2909. };
  2910. static const unsigned int scifa2_clk_pins[] = {
  2911. /* SCK */
  2912. RCAR_GP_PIN(5, 4),
  2913. };
  2914. static const unsigned int scifa2_clk_mux[] = {
  2915. SCIFA2_SCK_MARK,
  2916. };
  2917. static const unsigned int scifa2_ctrl_pins[] = {
  2918. /* RTS, CTS */
  2919. RCAR_GP_PIN(4, 22), RCAR_GP_PIN(4, 21),
  2920. };
  2921. static const unsigned int scifa2_ctrl_mux[] = {
  2922. SCIFA2_RTS_N_MARK, SCIFA2_CTS_N_MARK,
  2923. };
  2924. static const unsigned int scifa2_data_b_pins[] = {
  2925. /* RXD, TXD */
  2926. RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 16),
  2927. };
  2928. static const unsigned int scifa2_data_b_mux[] = {
  2929. SCIFA2_RXD_B_MARK, SCIFA2_TXD_B_MARK,
  2930. };
  2931. static const unsigned int scifa2_data_c_pins[] = {
  2932. /* RXD, TXD */
  2933. RCAR_GP_PIN(5, 31), RCAR_GP_PIN(5, 30),
  2934. };
  2935. static const unsigned int scifa2_data_c_mux[] = {
  2936. SCIFA2_RXD_C_MARK, SCIFA2_TXD_C_MARK,
  2937. };
  2938. static const unsigned int scifa2_clk_c_pins[] = {
  2939. /* SCK */
  2940. RCAR_GP_PIN(5, 29),
  2941. };
  2942. static const unsigned int scifa2_clk_c_mux[] = {
  2943. SCIFA2_SCK_C_MARK,
  2944. };
  2945. /* - SCIFB0 ----------------------------------------------------------------- */
  2946. static const unsigned int scifb0_data_pins[] = {
  2947. /* RXD, TXD */
  2948. RCAR_GP_PIN(4, 9), RCAR_GP_PIN(4, 10),
  2949. };
  2950. static const unsigned int scifb0_data_mux[] = {
  2951. SCIFB0_RXD_MARK, SCIFB0_TXD_MARK,
  2952. };
  2953. static const unsigned int scifb0_clk_pins[] = {
  2954. /* SCK */
  2955. RCAR_GP_PIN(4, 8),
  2956. };
  2957. static const unsigned int scifb0_clk_mux[] = {
  2958. SCIFB0_SCK_MARK,
  2959. };
  2960. static const unsigned int scifb0_ctrl_pins[] = {
  2961. /* RTS, CTS */
  2962. RCAR_GP_PIN(4, 12), RCAR_GP_PIN(4, 11),
  2963. };
  2964. static const unsigned int scifb0_ctrl_mux[] = {
  2965. SCIFB0_RTS_N_MARK, SCIFB0_CTS_N_MARK,
  2966. };
  2967. static const unsigned int scifb0_data_b_pins[] = {
  2968. /* RXD, TXD */
  2969. RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
  2970. };
  2971. static const unsigned int scifb0_data_b_mux[] = {
  2972. SCIFB0_RXD_B_MARK, SCIFB0_TXD_B_MARK,
  2973. };
  2974. static const unsigned int scifb0_clk_b_pins[] = {
  2975. /* SCK */
  2976. RCAR_GP_PIN(3, 9),
  2977. };
  2978. static const unsigned int scifb0_clk_b_mux[] = {
  2979. SCIFB0_SCK_B_MARK,
  2980. };
  2981. static const unsigned int scifb0_ctrl_b_pins[] = {
  2982. /* RTS, CTS */
  2983. RCAR_GP_PIN(3, 13), RCAR_GP_PIN(3, 12),
  2984. };
  2985. static const unsigned int scifb0_ctrl_b_mux[] = {
  2986. SCIFB0_RTS_N_B_MARK, SCIFB0_CTS_N_B_MARK,
  2987. };
  2988. static const unsigned int scifb0_data_c_pins[] = {
  2989. /* RXD, TXD */
  2990. RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 5),
  2991. };
  2992. static const unsigned int scifb0_data_c_mux[] = {
  2993. SCIFB0_RXD_C_MARK, SCIFB0_TXD_C_MARK,
  2994. };
  2995. /* - SCIFB1 ----------------------------------------------------------------- */
  2996. static const unsigned int scifb1_data_pins[] = {
  2997. /* RXD, TXD */
  2998. RCAR_GP_PIN(4, 15), RCAR_GP_PIN(4, 16),
  2999. };
  3000. static const unsigned int scifb1_data_mux[] = {
  3001. SCIFB1_RXD_MARK, SCIFB1_TXD_MARK,
  3002. };
  3003. static const unsigned int scifb1_clk_pins[] = {
  3004. /* SCK */
  3005. RCAR_GP_PIN(4, 14),
  3006. };
  3007. static const unsigned int scifb1_clk_mux[] = {
  3008. SCIFB1_SCK_MARK,
  3009. };
  3010. static const unsigned int scifb1_ctrl_pins[] = {
  3011. /* RTS, CTS */
  3012. RCAR_GP_PIN(4, 18), RCAR_GP_PIN(4, 17),
  3013. };
  3014. static const unsigned int scifb1_ctrl_mux[] = {
  3015. SCIFB1_RTS_N_MARK, SCIFB1_CTS_N_MARK,
  3016. };
  3017. static const unsigned int scifb1_data_b_pins[] = {
  3018. /* RXD, TXD */
  3019. RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3),
  3020. };
  3021. static const unsigned int scifb1_data_b_mux[] = {
  3022. SCIFB1_RXD_B_MARK, SCIFB1_TXD_B_MARK,
  3023. };
  3024. static const unsigned int scifb1_clk_b_pins[] = {
  3025. /* SCK */
  3026. RCAR_GP_PIN(3, 1),
  3027. };
  3028. static const unsigned int scifb1_clk_b_mux[] = {
  3029. SCIFB1_SCK_B_MARK,
  3030. };
  3031. static const unsigned int scifb1_ctrl_b_pins[] = {
  3032. /* RTS, CTS */
  3033. RCAR_GP_PIN(3, 5), RCAR_GP_PIN(3, 4),
  3034. };
  3035. static const unsigned int scifb1_ctrl_b_mux[] = {
  3036. SCIFB1_RTS_N_B_MARK, SCIFB1_CTS_N_B_MARK,
  3037. };
  3038. static const unsigned int scifb1_data_c_pins[] = {
  3039. /* RXD, TXD */
  3040. RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 15),
  3041. };
  3042. static const unsigned int scifb1_data_c_mux[] = {
  3043. SCIFB1_RXD_C_MARK, SCIFB1_TXD_C_MARK,
  3044. };
  3045. static const unsigned int scifb1_data_d_pins[] = {
  3046. /* RXD, TXD */
  3047. RCAR_GP_PIN(4, 1), RCAR_GP_PIN(4, 2),
  3048. };
  3049. static const unsigned int scifb1_data_d_mux[] = {
  3050. SCIFB1_RXD_D_MARK, SCIFB1_TXD_D_MARK,
  3051. };
  3052. static const unsigned int scifb1_data_e_pins[] = {
  3053. /* RXD, TXD */
  3054. RCAR_GP_PIN(3, 18), RCAR_GP_PIN(3, 19),
  3055. };
  3056. static const unsigned int scifb1_data_e_mux[] = {
  3057. SCIFB1_RXD_E_MARK, SCIFB1_TXD_E_MARK,
  3058. };
  3059. static const unsigned int scifb1_clk_e_pins[] = {
  3060. /* SCK */
  3061. RCAR_GP_PIN(3, 17),
  3062. };
  3063. static const unsigned int scifb1_clk_e_mux[] = {
  3064. SCIFB1_SCK_E_MARK,
  3065. };
  3066. static const unsigned int scifb1_data_f_pins[] = {
  3067. /* RXD, TXD */
  3068. RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 5),
  3069. };
  3070. static const unsigned int scifb1_data_f_mux[] = {
  3071. SCIFB1_RXD_F_MARK, SCIFB1_TXD_F_MARK,
  3072. };
  3073. static const unsigned int scifb1_data_g_pins[] = {
  3074. /* RXD, TXD */
  3075. RCAR_GP_PIN(2, 21), RCAR_GP_PIN(2, 22),
  3076. };
  3077. static const unsigned int scifb1_data_g_mux[] = {
  3078. SCIFB1_RXD_G_MARK, SCIFB1_TXD_G_MARK,
  3079. };
  3080. static const unsigned int scifb1_clk_g_pins[] = {
  3081. /* SCK */
  3082. RCAR_GP_PIN(2, 20),
  3083. };
  3084. static const unsigned int scifb1_clk_g_mux[] = {
  3085. SCIFB1_SCK_G_MARK,
  3086. };
  3087. /* - SCIFB2 ----------------------------------------------------------------- */
  3088. static const unsigned int scifb2_data_pins[] = {
  3089. /* RXD, TXD */
  3090. RCAR_GP_PIN(4, 22), RCAR_GP_PIN(4, 23),
  3091. };
  3092. static const unsigned int scifb2_data_mux[] = {
  3093. SCIFB2_RXD_MARK, SCIFB2_TXD_MARK,
  3094. };
  3095. static const unsigned int scifb2_clk_pins[] = {
  3096. /* SCK */
  3097. RCAR_GP_PIN(4, 21),
  3098. };
  3099. static const unsigned int scifb2_clk_mux[] = {
  3100. SCIFB2_SCK_MARK,
  3101. };
  3102. static const unsigned int scifb2_ctrl_pins[] = {
  3103. /* RTS, CTS */
  3104. RCAR_GP_PIN(4, 25), RCAR_GP_PIN(4, 24),
  3105. };
  3106. static const unsigned int scifb2_ctrl_mux[] = {
  3107. SCIFB2_RTS_N_MARK, SCIFB2_CTS_N_MARK,
  3108. };
  3109. static const unsigned int scifb2_data_b_pins[] = {
  3110. /* RXD, TXD */
  3111. RCAR_GP_PIN(0, 28), RCAR_GP_PIN(0, 30),
  3112. };
  3113. static const unsigned int scifb2_data_b_mux[] = {
  3114. SCIFB2_RXD_B_MARK, SCIFB2_TXD_B_MARK,
  3115. };
  3116. static const unsigned int scifb2_clk_b_pins[] = {
  3117. /* SCK */
  3118. RCAR_GP_PIN(0, 31),
  3119. };
  3120. static const unsigned int scifb2_clk_b_mux[] = {
  3121. SCIFB2_SCK_B_MARK,
  3122. };
  3123. static const unsigned int scifb2_ctrl_b_pins[] = {
  3124. /* RTS, CTS */
  3125. RCAR_GP_PIN(0, 29), RCAR_GP_PIN(0, 27),
  3126. };
  3127. static const unsigned int scifb2_ctrl_b_mux[] = {
  3128. SCIFB2_RTS_N_B_MARK, SCIFB2_CTS_N_B_MARK,
  3129. };
  3130. static const unsigned int scifb2_data_c_pins[] = {
  3131. /* RXD, TXD */
  3132. RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 25),
  3133. };
  3134. static const unsigned int scifb2_data_c_mux[] = {
  3135. SCIFB2_RXD_C_MARK, SCIFB2_TXD_C_MARK,
  3136. };
  3137. /* - SCIF Clock ------------------------------------------------------------- */
  3138. static const unsigned int scif_clk_pins[] = {
  3139. /* SCIF_CLK */
  3140. RCAR_GP_PIN(4, 26),
  3141. };
  3142. static const unsigned int scif_clk_mux[] = {
  3143. SCIF_CLK_MARK,
  3144. };
  3145. static const unsigned int scif_clk_b_pins[] = {
  3146. /* SCIF_CLK */
  3147. RCAR_GP_PIN(5, 4),
  3148. };
  3149. static const unsigned int scif_clk_b_mux[] = {
  3150. SCIF_CLK_B_MARK,
  3151. };
  3152. /* - SDHI0 ------------------------------------------------------------------ */
  3153. static const unsigned int sdhi0_data1_pins[] = {
  3154. /* D0 */
  3155. RCAR_GP_PIN(3, 2),
  3156. };
  3157. static const unsigned int sdhi0_data1_mux[] = {
  3158. SD0_DAT0_MARK,
  3159. };
  3160. static const unsigned int sdhi0_data4_pins[] = {
  3161. /* D[0:3] */
  3162. RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3), RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 5),
  3163. };
  3164. static const unsigned int sdhi0_data4_mux[] = {
  3165. SD0_DAT0_MARK, SD0_DAT1_MARK, SD0_DAT2_MARK, SD0_DAT3_MARK,
  3166. };
  3167. static const unsigned int sdhi0_ctrl_pins[] = {
  3168. /* CLK, CMD */
  3169. RCAR_GP_PIN(3, 0), RCAR_GP_PIN(3, 1),
  3170. };
  3171. static const unsigned int sdhi0_ctrl_mux[] = {
  3172. SD0_CLK_MARK, SD0_CMD_MARK,
  3173. };
  3174. static const unsigned int sdhi0_cd_pins[] = {
  3175. /* CD */
  3176. RCAR_GP_PIN(3, 6),
  3177. };
  3178. static const unsigned int sdhi0_cd_mux[] = {
  3179. SD0_CD_MARK,
  3180. };
  3181. static const unsigned int sdhi0_wp_pins[] = {
  3182. /* WP */
  3183. RCAR_GP_PIN(3, 7),
  3184. };
  3185. static const unsigned int sdhi0_wp_mux[] = {
  3186. SD0_WP_MARK,
  3187. };
  3188. /* - SDHI1 ------------------------------------------------------------------ */
  3189. static const unsigned int sdhi1_data1_pins[] = {
  3190. /* D0 */
  3191. RCAR_GP_PIN(3, 10),
  3192. };
  3193. static const unsigned int sdhi1_data1_mux[] = {
  3194. SD1_DAT0_MARK,
  3195. };
  3196. static const unsigned int sdhi1_data4_pins[] = {
  3197. /* D[0:3] */
  3198. RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11), RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
  3199. };
  3200. static const unsigned int sdhi1_data4_mux[] = {
  3201. SD1_DAT0_MARK, SD1_DAT1_MARK, SD1_DAT2_MARK, SD1_DAT3_MARK,
  3202. };
  3203. static const unsigned int sdhi1_ctrl_pins[] = {
  3204. /* CLK, CMD */
  3205. RCAR_GP_PIN(3, 8), RCAR_GP_PIN(3, 9),
  3206. };
  3207. static const unsigned int sdhi1_ctrl_mux[] = {
  3208. SD1_CLK_MARK, SD1_CMD_MARK,
  3209. };
  3210. static const unsigned int sdhi1_cd_pins[] = {
  3211. /* CD */
  3212. RCAR_GP_PIN(3, 14),
  3213. };
  3214. static const unsigned int sdhi1_cd_mux[] = {
  3215. SD1_CD_MARK,
  3216. };
  3217. static const unsigned int sdhi1_wp_pins[] = {
  3218. /* WP */
  3219. RCAR_GP_PIN(3, 15),
  3220. };
  3221. static const unsigned int sdhi1_wp_mux[] = {
  3222. SD1_WP_MARK,
  3223. };
  3224. /* - SDHI2 ------------------------------------------------------------------ */
  3225. static const unsigned int sdhi2_data1_pins[] = {
  3226. /* D0 */
  3227. RCAR_GP_PIN(3, 18),
  3228. };
  3229. static const unsigned int sdhi2_data1_mux[] = {
  3230. SD2_DAT0_MARK,
  3231. };
  3232. static const unsigned int sdhi2_data4_pins[] = {
  3233. /* D[0:3] */
  3234. RCAR_GP_PIN(3, 18), RCAR_GP_PIN(3, 19), RCAR_GP_PIN(3, 20), RCAR_GP_PIN(3, 21),
  3235. };
  3236. static const unsigned int sdhi2_data4_mux[] = {
  3237. SD2_DAT0_MARK, SD2_DAT1_MARK, SD2_DAT2_MARK, SD2_DAT3_MARK,
  3238. };
  3239. static const unsigned int sdhi2_ctrl_pins[] = {
  3240. /* CLK, CMD */
  3241. RCAR_GP_PIN(3, 16), RCAR_GP_PIN(3, 17),
  3242. };
  3243. static const unsigned int sdhi2_ctrl_mux[] = {
  3244. SD2_CLK_MARK, SD2_CMD_MARK,
  3245. };
  3246. static const unsigned int sdhi2_cd_pins[] = {
  3247. /* CD */
  3248. RCAR_GP_PIN(3, 22),
  3249. };
  3250. static const unsigned int sdhi2_cd_mux[] = {
  3251. SD2_CD_MARK,
  3252. };
  3253. static const unsigned int sdhi2_wp_pins[] = {
  3254. /* WP */
  3255. RCAR_GP_PIN(3, 23),
  3256. };
  3257. static const unsigned int sdhi2_wp_mux[] = {
  3258. SD2_WP_MARK,
  3259. };
  3260. /* - SDHI3 ------------------------------------------------------------------ */
  3261. static const unsigned int sdhi3_data1_pins[] = {
  3262. /* D0 */
  3263. RCAR_GP_PIN(3, 26),
  3264. };
  3265. static const unsigned int sdhi3_data1_mux[] = {
  3266. SD3_DAT0_MARK,
  3267. };
  3268. static const unsigned int sdhi3_data4_pins[] = {
  3269. /* D[0:3] */
  3270. RCAR_GP_PIN(3, 26), RCAR_GP_PIN(3, 27), RCAR_GP_PIN(3, 28), RCAR_GP_PIN(3, 29),
  3271. };
  3272. static const unsigned int sdhi3_data4_mux[] = {
  3273. SD3_DAT0_MARK, SD3_DAT1_MARK, SD3_DAT2_MARK, SD3_DAT3_MARK,
  3274. };
  3275. static const unsigned int sdhi3_ctrl_pins[] = {
  3276. /* CLK, CMD */
  3277. RCAR_GP_PIN(3, 24), RCAR_GP_PIN(3, 25),
  3278. };
  3279. static const unsigned int sdhi3_ctrl_mux[] = {
  3280. SD3_CLK_MARK, SD3_CMD_MARK,
  3281. };
  3282. static const unsigned int sdhi3_cd_pins[] = {
  3283. /* CD */
  3284. RCAR_GP_PIN(3, 30),
  3285. };
  3286. static const unsigned int sdhi3_cd_mux[] = {
  3287. SD3_CD_MARK,
  3288. };
  3289. static const unsigned int sdhi3_wp_pins[] = {
  3290. /* WP */
  3291. RCAR_GP_PIN(3, 31),
  3292. };
  3293. static const unsigned int sdhi3_wp_mux[] = {
  3294. SD3_WP_MARK,
  3295. };
  3296. /* - SSI -------------------------------------------------------------------- */
  3297. static const unsigned int ssi0_data_pins[] = {
  3298. /* SDATA0 */
  3299. RCAR_GP_PIN(4, 5),
  3300. };
  3301. static const unsigned int ssi0_data_mux[] = {
  3302. SSI_SDATA0_MARK,
  3303. };
  3304. static const unsigned int ssi0129_ctrl_pins[] = {
  3305. /* SCK, WS */
  3306. RCAR_GP_PIN(4, 3), RCAR_GP_PIN(4, 4),
  3307. };
  3308. static const unsigned int ssi0129_ctrl_mux[] = {
  3309. SSI_SCK0129_MARK, SSI_WS0129_MARK,
  3310. };
  3311. static const unsigned int ssi1_data_pins[] = {
  3312. /* SDATA1 */
  3313. RCAR_GP_PIN(4, 6),
  3314. };
  3315. static const unsigned int ssi1_data_mux[] = {
  3316. SSI_SDATA1_MARK,
  3317. };
  3318. static const unsigned int ssi1_ctrl_pins[] = {
  3319. /* SCK, WS */
  3320. RCAR_GP_PIN(4, 7), RCAR_GP_PIN(4, 24),
  3321. };
  3322. static const unsigned int ssi1_ctrl_mux[] = {
  3323. SSI_SCK1_MARK, SSI_WS1_MARK,
  3324. };
  3325. static const unsigned int ssi2_data_pins[] = {
  3326. /* SDATA2 */
  3327. RCAR_GP_PIN(4, 7),
  3328. };
  3329. static const unsigned int ssi2_data_mux[] = {
  3330. SSI_SDATA2_MARK,
  3331. };
  3332. static const unsigned int ssi2_ctrl_pins[] = {
  3333. /* SCK, WS */
  3334. RCAR_GP_PIN(5, 13), RCAR_GP_PIN(5, 17),
  3335. };
  3336. static const unsigned int ssi2_ctrl_mux[] = {
  3337. SSI_SCK2_MARK, SSI_WS2_MARK,
  3338. };
  3339. static const unsigned int ssi3_data_pins[] = {
  3340. /* SDATA3 */
  3341. RCAR_GP_PIN(4, 10),
  3342. };
  3343. static const unsigned int ssi3_data_mux[] = {
  3344. SSI_SDATA3_MARK
  3345. };
  3346. static const unsigned int ssi34_ctrl_pins[] = {
  3347. /* SCK, WS */
  3348. RCAR_GP_PIN(4, 8), RCAR_GP_PIN(4, 9),
  3349. };
  3350. static const unsigned int ssi34_ctrl_mux[] = {
  3351. SSI_SCK34_MARK, SSI_WS34_MARK,
  3352. };
  3353. static const unsigned int ssi4_data_pins[] = {
  3354. /* SDATA4 */
  3355. RCAR_GP_PIN(4, 13),
  3356. };
  3357. static const unsigned int ssi4_data_mux[] = {
  3358. SSI_SDATA4_MARK,
  3359. };
  3360. static const unsigned int ssi4_ctrl_pins[] = {
  3361. /* SCK, WS */
  3362. RCAR_GP_PIN(4, 11), RCAR_GP_PIN(4, 12),
  3363. };
  3364. static const unsigned int ssi4_ctrl_mux[] = {
  3365. SSI_SCK4_MARK, SSI_WS4_MARK,
  3366. };
  3367. static const unsigned int ssi5_pins[] = {
  3368. /* SDATA5, SCK, WS */
  3369. RCAR_GP_PIN(4, 16), RCAR_GP_PIN(4, 14), RCAR_GP_PIN(4, 15),
  3370. };
  3371. static const unsigned int ssi5_mux[] = {
  3372. SSI_SDATA5_MARK, SSI_SCK5_MARK, SSI_WS5_MARK,
  3373. };
  3374. static const unsigned int ssi5_b_pins[] = {
  3375. /* SDATA5, SCK, WS */
  3376. RCAR_GP_PIN(0, 26), RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 25),
  3377. };
  3378. static const unsigned int ssi5_b_mux[] = {
  3379. SSI_SDATA5_B_MARK, SSI_SCK5_B_MARK, SSI_WS5_B_MARK
  3380. };
  3381. static const unsigned int ssi5_c_pins[] = {
  3382. /* SDATA5, SCK, WS */
  3383. RCAR_GP_PIN(4, 24), RCAR_GP_PIN(4, 11), RCAR_GP_PIN(4, 12),
  3384. };
  3385. static const unsigned int ssi5_c_mux[] = {
  3386. SSI_SDATA5_C_MARK, SSI_SCK5_C_MARK, SSI_WS5_C_MARK,
  3387. };
  3388. static const unsigned int ssi6_pins[] = {
  3389. /* SDATA6, SCK, WS */
  3390. RCAR_GP_PIN(4, 19), RCAR_GP_PIN(4, 17), RCAR_GP_PIN(4, 18),
  3391. };
  3392. static const unsigned int ssi6_mux[] = {
  3393. SSI_SDATA6_MARK, SSI_SCK6_MARK, SSI_WS6_MARK,
  3394. };
  3395. static const unsigned int ssi6_b_pins[] = {
  3396. /* SDATA6, SCK, WS */
  3397. RCAR_GP_PIN(1, 29), RCAR_GP_PIN(1, 25), RCAR_GP_PIN(1, 27),
  3398. };
  3399. static const unsigned int ssi6_b_mux[] = {
  3400. SSI_SDATA6_B_MARK, SSI_SCK6_B_MARK, SSI_WS6_B_MARK,
  3401. };
  3402. static const unsigned int ssi7_data_pins[] = {
  3403. /* SDATA7 */
  3404. RCAR_GP_PIN(4, 22),
  3405. };
  3406. static const unsigned int ssi7_data_mux[] = {
  3407. SSI_SDATA7_MARK,
  3408. };
  3409. static const unsigned int ssi7_b_data_pins[] = {
  3410. /* SDATA7 */
  3411. RCAR_GP_PIN(4, 22),
  3412. };
  3413. static const unsigned int ssi7_b_data_mux[] = {
  3414. SSI_SDATA7_B_MARK,
  3415. };
  3416. static const unsigned int ssi7_c_data_pins[] = {
  3417. /* SDATA7 */
  3418. RCAR_GP_PIN(1, 26),
  3419. };
  3420. static const unsigned int ssi7_c_data_mux[] = {
  3421. SSI_SDATA7_C_MARK,
  3422. };
  3423. static const unsigned int ssi78_ctrl_pins[] = {
  3424. /* SCK, WS */
  3425. RCAR_GP_PIN(4, 20), RCAR_GP_PIN(4, 21),
  3426. };
  3427. static const unsigned int ssi78_ctrl_mux[] = {
  3428. SSI_SCK78_MARK, SSI_WS78_MARK,
  3429. };
  3430. static const unsigned int ssi78_b_ctrl_pins[] = {
  3431. /* SCK, WS */
  3432. RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 24),
  3433. };
  3434. static const unsigned int ssi78_b_ctrl_mux[] = {
  3435. SSI_SCK78_B_MARK, SSI_WS78_B_MARK,
  3436. };
  3437. static const unsigned int ssi78_c_ctrl_pins[] = {
  3438. /* SCK, WS */
  3439. RCAR_GP_PIN(1, 24), RCAR_GP_PIN(1, 25),
  3440. };
  3441. static const unsigned int ssi78_c_ctrl_mux[] = {
  3442. SSI_SCK78_C_MARK, SSI_WS78_C_MARK,
  3443. };
  3444. static const unsigned int ssi8_data_pins[] = {
  3445. /* SDATA8 */
  3446. RCAR_GP_PIN(4, 23),
  3447. };
  3448. static const unsigned int ssi8_data_mux[] = {
  3449. SSI_SDATA8_MARK,
  3450. };
  3451. static const unsigned int ssi8_b_data_pins[] = {
  3452. /* SDATA8 */
  3453. RCAR_GP_PIN(4, 23),
  3454. };
  3455. static const unsigned int ssi8_b_data_mux[] = {
  3456. SSI_SDATA8_B_MARK,
  3457. };
  3458. static const unsigned int ssi8_c_data_pins[] = {
  3459. /* SDATA8 */
  3460. RCAR_GP_PIN(1, 27),
  3461. };
  3462. static const unsigned int ssi8_c_data_mux[] = {
  3463. SSI_SDATA8_C_MARK,
  3464. };
  3465. static const unsigned int ssi9_data_pins[] = {
  3466. /* SDATA9 */
  3467. RCAR_GP_PIN(4, 24),
  3468. };
  3469. static const unsigned int ssi9_data_mux[] = {
  3470. SSI_SDATA9_MARK,
  3471. };
  3472. static const unsigned int ssi9_ctrl_pins[] = {
  3473. /* SCK, WS */
  3474. RCAR_GP_PIN(5, 10), RCAR_GP_PIN(5, 11),
  3475. };
  3476. static const unsigned int ssi9_ctrl_mux[] = {
  3477. SSI_SCK9_MARK, SSI_WS9_MARK,
  3478. };
  3479. /* - TPU0 ------------------------------------------------------------------- */
  3480. static const unsigned int tpu0_to0_pins[] = {
  3481. /* TO */
  3482. RCAR_GP_PIN(0, 20),
  3483. };
  3484. static const unsigned int tpu0_to0_mux[] = {
  3485. TPU0TO0_MARK,
  3486. };
  3487. static const unsigned int tpu0_to1_pins[] = {
  3488. /* TO */
  3489. RCAR_GP_PIN(0, 21),
  3490. };
  3491. static const unsigned int tpu0_to1_mux[] = {
  3492. TPU0TO1_MARK,
  3493. };
  3494. static const unsigned int tpu0_to2_pins[] = {
  3495. /* TO */
  3496. RCAR_GP_PIN(0, 22),
  3497. };
  3498. static const unsigned int tpu0_to2_mux[] = {
  3499. TPU0TO2_MARK,
  3500. };
  3501. static const unsigned int tpu0_to3_pins[] = {
  3502. /* TO */
  3503. RCAR_GP_PIN(0, 23),
  3504. };
  3505. static const unsigned int tpu0_to3_mux[] = {
  3506. TPU0TO3_MARK,
  3507. };
  3508. /* - USB0 ------------------------------------------------------------------- */
  3509. static const unsigned int usb0_pins[] = {
  3510. /* PWEN, OVC/VBUS */
  3511. RCAR_GP_PIN(5, 18), RCAR_GP_PIN(5, 19),
  3512. };
  3513. static const unsigned int usb0_mux[] = {
  3514. USB0_PWEN_MARK, USB0_OVC_VBUS_MARK,
  3515. };
  3516. static const unsigned int usb0_ovc_vbus_pins[] = {
  3517. /* OVC/VBUS */
  3518. RCAR_GP_PIN(5, 19),
  3519. };
  3520. static const unsigned int usb0_ovc_vbus_mux[] = {
  3521. USB0_OVC_VBUS_MARK,
  3522. };
  3523. /* - USB1 ------------------------------------------------------------------- */
  3524. static const unsigned int usb1_pins[] = {
  3525. /* PWEN, OVC */
  3526. RCAR_GP_PIN(5, 20), RCAR_GP_PIN(5, 21),
  3527. };
  3528. static const unsigned int usb1_mux[] = {
  3529. USB1_PWEN_MARK, USB1_OVC_MARK,
  3530. };
  3531. /* - USB2 ------------------------------------------------------------------- */
  3532. static const unsigned int usb2_pins[] = {
  3533. /* PWEN, OVC */
  3534. RCAR_GP_PIN(5, 22), RCAR_GP_PIN(5, 23),
  3535. };
  3536. static const unsigned int usb2_mux[] = {
  3537. USB2_PWEN_MARK, USB2_OVC_MARK,
  3538. };
  3539. /* - VIN0 ------------------------------------------------------------------- */
  3540. static const union vin_data vin0_data_pins = {
  3541. .data24 = {
  3542. /* B */
  3543. RCAR_GP_PIN(2, 1), RCAR_GP_PIN(2, 2),
  3544. RCAR_GP_PIN(2, 3), RCAR_GP_PIN(2, 4),
  3545. RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 6),
  3546. RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8),
  3547. /* G */
  3548. RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 9),
  3549. RCAR_GP_PIN(0, 10), RCAR_GP_PIN(0, 11),
  3550. RCAR_GP_PIN(0, 0), RCAR_GP_PIN(0, 1),
  3551. RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 3),
  3552. /* R */
  3553. RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 5),
  3554. RCAR_GP_PIN(0, 6), RCAR_GP_PIN(0, 7),
  3555. RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 25),
  3556. RCAR_GP_PIN(0, 26), RCAR_GP_PIN(1, 11),
  3557. },
  3558. };
  3559. static const union vin_data vin0_data_mux = {
  3560. .data24 = {
  3561. /* B */
  3562. VI0_DATA0_VI0_B0_MARK, VI0_DATA1_VI0_B1_MARK,
  3563. VI0_DATA2_VI0_B2_MARK, VI0_DATA3_VI0_B3_MARK,
  3564. VI0_DATA4_VI0_B4_MARK, VI0_DATA5_VI0_B5_MARK,
  3565. VI0_DATA6_VI0_B6_MARK, VI0_DATA7_VI0_B7_MARK,
  3566. /* G */
  3567. VI0_G0_MARK, VI0_G1_MARK,
  3568. VI0_G2_MARK, VI0_G3_MARK,
  3569. VI0_G4_MARK, VI0_G5_MARK,
  3570. VI0_G6_MARK, VI0_G7_MARK,
  3571. /* R */
  3572. VI0_R0_MARK, VI0_R1_MARK,
  3573. VI0_R2_MARK, VI0_R3_MARK,
  3574. VI0_R4_MARK, VI0_R5_MARK,
  3575. VI0_R6_MARK, VI0_R7_MARK,
  3576. },
  3577. };
  3578. static const unsigned int vin0_data18_pins[] = {
  3579. /* B */
  3580. RCAR_GP_PIN(2, 3), RCAR_GP_PIN(2, 4),
  3581. RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 6),
  3582. RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8),
  3583. /* G */
  3584. RCAR_GP_PIN(0, 10), RCAR_GP_PIN(0, 11),
  3585. RCAR_GP_PIN(0, 0), RCAR_GP_PIN(0, 1),
  3586. RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 3),
  3587. /* R */
  3588. RCAR_GP_PIN(0, 6), RCAR_GP_PIN(0, 7),
  3589. RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 25),
  3590. RCAR_GP_PIN(0, 26), RCAR_GP_PIN(1, 11),
  3591. };
  3592. static const unsigned int vin0_data18_mux[] = {
  3593. /* B */
  3594. VI0_DATA2_VI0_B2_MARK, VI0_DATA3_VI0_B3_MARK,
  3595. VI0_DATA4_VI0_B4_MARK, VI0_DATA5_VI0_B5_MARK,
  3596. VI0_DATA6_VI0_B6_MARK, VI0_DATA7_VI0_B7_MARK,
  3597. /* G */
  3598. VI0_G2_MARK, VI0_G3_MARK,
  3599. VI0_G4_MARK, VI0_G5_MARK,
  3600. VI0_G6_MARK, VI0_G7_MARK,
  3601. /* R */
  3602. VI0_R2_MARK, VI0_R3_MARK,
  3603. VI0_R4_MARK, VI0_R5_MARK,
  3604. VI0_R6_MARK, VI0_R7_MARK,
  3605. };
  3606. static const unsigned int vin0_sync_pins[] = {
  3607. RCAR_GP_PIN(0, 12), /* HSYNC */
  3608. RCAR_GP_PIN(0, 13), /* VSYNC */
  3609. };
  3610. static const unsigned int vin0_sync_mux[] = {
  3611. VI0_HSYNC_N_MARK,
  3612. VI0_VSYNC_N_MARK,
  3613. };
  3614. static const unsigned int vin0_field_pins[] = {
  3615. RCAR_GP_PIN(0, 15),
  3616. };
  3617. static const unsigned int vin0_field_mux[] = {
  3618. VI0_FIELD_MARK,
  3619. };
  3620. static const unsigned int vin0_clkenb_pins[] = {
  3621. RCAR_GP_PIN(0, 14),
  3622. };
  3623. static const unsigned int vin0_clkenb_mux[] = {
  3624. VI0_CLKENB_MARK,
  3625. };
  3626. static const unsigned int vin0_clk_pins[] = {
  3627. RCAR_GP_PIN(2, 0),
  3628. };
  3629. static const unsigned int vin0_clk_mux[] = {
  3630. VI0_CLK_MARK,
  3631. };
  3632. /* - VIN1 ------------------------------------------------------------------- */
  3633. static const union vin_data vin1_data_pins = {
  3634. .data24 = {
  3635. /* B */
  3636. RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 11),
  3637. RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
  3638. RCAR_GP_PIN(2, 14), RCAR_GP_PIN(2, 15),
  3639. RCAR_GP_PIN(2, 16), RCAR_GP_PIN(2, 17),
  3640. /* G */
  3641. RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 15),
  3642. RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 20),
  3643. RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 12),
  3644. RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 7),
  3645. /* R */
  3646. RCAR_GP_PIN(0, 27), RCAR_GP_PIN(0, 28),
  3647. RCAR_GP_PIN(0, 29), RCAR_GP_PIN(1, 4),
  3648. RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 6),
  3649. RCAR_GP_PIN(1, 10), RCAR_GP_PIN(1, 8),
  3650. },
  3651. };
  3652. static const union vin_data vin1_data_mux = {
  3653. .data24 = {
  3654. /* B */
  3655. VI1_DATA0_VI1_B0_MARK, VI1_DATA1_VI1_B1_MARK,
  3656. VI1_DATA2_VI1_B2_MARK, VI1_DATA3_VI1_B3_MARK,
  3657. VI1_DATA4_VI1_B4_MARK, VI1_DATA5_VI1_B5_MARK,
  3658. VI1_DATA6_VI1_B6_MARK, VI1_DATA7_VI1_B7_MARK,
  3659. /* G */
  3660. VI1_G0_MARK, VI1_G1_MARK,
  3661. VI1_G2_MARK, VI1_G3_MARK,
  3662. VI1_G4_MARK, VI1_G5_MARK,
  3663. VI1_G6_MARK, VI1_G7_MARK,
  3664. /* R */
  3665. VI1_R0_MARK, VI1_R1_MARK,
  3666. VI1_R2_MARK, VI1_R3_MARK,
  3667. VI1_R4_MARK, VI1_R5_MARK,
  3668. VI1_R6_MARK, VI1_R7_MARK,
  3669. },
  3670. };
  3671. static const unsigned int vin1_data18_pins[] = {
  3672. /* B */
  3673. RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
  3674. RCAR_GP_PIN(2, 14), RCAR_GP_PIN(2, 15),
  3675. RCAR_GP_PIN(2, 16), RCAR_GP_PIN(2, 17),
  3676. /* G */
  3677. RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 20),
  3678. RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 12),
  3679. RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 7),
  3680. /* R */
  3681. RCAR_GP_PIN(0, 29), RCAR_GP_PIN(1, 4),
  3682. RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 6),
  3683. RCAR_GP_PIN(1, 10), RCAR_GP_PIN(1, 8),
  3684. };
  3685. static const unsigned int vin1_data18_mux[] = {
  3686. /* B */
  3687. VI1_DATA2_VI1_B2_MARK, VI1_DATA3_VI1_B3_MARK,
  3688. VI1_DATA4_VI1_B4_MARK, VI1_DATA5_VI1_B5_MARK,
  3689. VI1_DATA6_VI1_B6_MARK, VI1_DATA7_VI1_B7_MARK,
  3690. /* G */
  3691. VI1_G2_MARK, VI1_G3_MARK,
  3692. VI1_G4_MARK, VI1_G5_MARK,
  3693. VI1_G6_MARK, VI1_G7_MARK,
  3694. /* R */
  3695. VI1_R2_MARK, VI1_R3_MARK,
  3696. VI1_R4_MARK, VI1_R5_MARK,
  3697. VI1_R6_MARK, VI1_R7_MARK,
  3698. };
  3699. static const unsigned int vin1_sync_pins[] = {
  3700. RCAR_GP_PIN(1, 24), /* HSYNC */
  3701. RCAR_GP_PIN(1, 25), /* VSYNC */
  3702. };
  3703. static const unsigned int vin1_sync_mux[] = {
  3704. VI1_HSYNC_N_MARK,
  3705. VI1_VSYNC_N_MARK,
  3706. };
  3707. static const unsigned int vin1_field_pins[] = {
  3708. RCAR_GP_PIN(1, 13),
  3709. };
  3710. static const unsigned int vin1_field_mux[] = {
  3711. VI1_FIELD_MARK,
  3712. };
  3713. static const unsigned int vin1_clkenb_pins[] = {
  3714. RCAR_GP_PIN(1, 26),
  3715. };
  3716. static const unsigned int vin1_clkenb_mux[] = {
  3717. VI1_CLKENB_MARK,
  3718. };
  3719. static const unsigned int vin1_clk_pins[] = {
  3720. RCAR_GP_PIN(2, 9),
  3721. };
  3722. static const unsigned int vin1_clk_mux[] = {
  3723. VI1_CLK_MARK,
  3724. };
  3725. /* - VIN2 ----------------------------------------------------------------- */
  3726. static const union vin_data vin2_data_pins = {
  3727. .data24 = {
  3728. /* B */
  3729. RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 9),
  3730. RCAR_GP_PIN(0, 10), RCAR_GP_PIN(0, 11),
  3731. RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 13),
  3732. RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 15),
  3733. /* G */
  3734. RCAR_GP_PIN(0, 27), RCAR_GP_PIN(0, 28),
  3735. RCAR_GP_PIN(0, 29), RCAR_GP_PIN(1, 10),
  3736. RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 5),
  3737. RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
  3738. /* R */
  3739. RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 13),
  3740. RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 15),
  3741. RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 20),
  3742. RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 24),
  3743. },
  3744. };
  3745. static const union vin_data vin2_data_mux = {
  3746. .data24 = {
  3747. /* B */
  3748. VI2_DATA0_VI2_B0_MARK, VI2_DATA1_VI2_B1_MARK,
  3749. VI2_DATA2_VI2_B2_MARK, VI2_DATA3_VI2_B3_MARK,
  3750. VI2_DATA4_VI2_B4_MARK, VI2_DATA5_VI2_B5_MARK,
  3751. VI2_DATA6_VI2_B6_MARK, VI2_DATA7_VI2_B7_MARK,
  3752. /* G */
  3753. VI2_G0_MARK, VI2_G1_MARK,
  3754. VI2_G2_MARK, VI2_G3_MARK,
  3755. VI2_G4_MARK, VI2_G5_MARK,
  3756. VI2_G6_MARK, VI2_G7_MARK,
  3757. /* R */
  3758. VI2_R0_MARK, VI2_R1_MARK,
  3759. VI2_R2_MARK, VI2_R3_MARK,
  3760. VI2_R4_MARK, VI2_R5_MARK,
  3761. VI2_R6_MARK, VI2_R7_MARK,
  3762. },
  3763. };
  3764. static const unsigned int vin2_data18_pins[] = {
  3765. /* B */
  3766. RCAR_GP_PIN(0, 10), RCAR_GP_PIN(0, 11),
  3767. RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 13),
  3768. RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 15),
  3769. /* G */
  3770. RCAR_GP_PIN(0, 29), RCAR_GP_PIN(1, 10),
  3771. RCAR_GP_PIN(1, 4), RCAR_GP_PIN(1, 5),
  3772. RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
  3773. /* R */
  3774. RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 15),
  3775. RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 20),
  3776. RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 24),
  3777. };
  3778. static const unsigned int vin2_data18_mux[] = {
  3779. /* B */
  3780. VI2_DATA2_VI2_B2_MARK, VI2_DATA3_VI2_B3_MARK,
  3781. VI2_DATA4_VI2_B4_MARK, VI2_DATA5_VI2_B5_MARK,
  3782. VI2_DATA6_VI2_B6_MARK, VI2_DATA7_VI2_B7_MARK,
  3783. /* G */
  3784. VI2_G2_MARK, VI2_G3_MARK,
  3785. VI2_G4_MARK, VI2_G5_MARK,
  3786. VI2_G6_MARK, VI2_G7_MARK,
  3787. /* R */
  3788. VI2_R2_MARK, VI2_R3_MARK,
  3789. VI2_R4_MARK, VI2_R5_MARK,
  3790. VI2_R6_MARK, VI2_R7_MARK,
  3791. };
  3792. static const unsigned int vin2_sync_pins[] = {
  3793. RCAR_GP_PIN(1, 16), /* HSYNC */
  3794. RCAR_GP_PIN(1, 21), /* VSYNC */
  3795. };
  3796. static const unsigned int vin2_sync_mux[] = {
  3797. VI2_HSYNC_N_MARK,
  3798. VI2_VSYNC_N_MARK,
  3799. };
  3800. static const unsigned int vin2_field_pins[] = {
  3801. RCAR_GP_PIN(1, 9),
  3802. };
  3803. static const unsigned int vin2_field_mux[] = {
  3804. VI2_FIELD_MARK,
  3805. };
  3806. static const unsigned int vin2_clkenb_pins[] = {
  3807. RCAR_GP_PIN(1, 8),
  3808. };
  3809. static const unsigned int vin2_clkenb_mux[] = {
  3810. VI2_CLKENB_MARK,
  3811. };
  3812. static const unsigned int vin2_clk_pins[] = {
  3813. RCAR_GP_PIN(1, 11),
  3814. };
  3815. static const unsigned int vin2_clk_mux[] = {
  3816. VI2_CLK_MARK,
  3817. };
  3818. /* - VIN3 ----------------------------------------------------------------- */
  3819. static const unsigned int vin3_data8_pins[] = {
  3820. RCAR_GP_PIN(0, 0), RCAR_GP_PIN(0, 1),
  3821. RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 3),
  3822. RCAR_GP_PIN(0, 4), RCAR_GP_PIN(0, 5),
  3823. RCAR_GP_PIN(0, 6), RCAR_GP_PIN(0, 7),
  3824. };
  3825. static const unsigned int vin3_data8_mux[] = {
  3826. VI3_DATA0_MARK, VI3_DATA1_MARK,
  3827. VI3_DATA2_MARK, VI3_DATA3_MARK,
  3828. VI3_DATA4_MARK, VI3_DATA5_MARK,
  3829. VI3_DATA6_MARK, VI3_DATA7_MARK,
  3830. };
  3831. static const unsigned int vin3_sync_pins[] = {
  3832. RCAR_GP_PIN(1, 16), /* HSYNC */
  3833. RCAR_GP_PIN(1, 17), /* VSYNC */
  3834. };
  3835. static const unsigned int vin3_sync_mux[] = {
  3836. VI3_HSYNC_N_MARK,
  3837. VI3_VSYNC_N_MARK,
  3838. };
  3839. static const unsigned int vin3_field_pins[] = {
  3840. RCAR_GP_PIN(1, 15),
  3841. };
  3842. static const unsigned int vin3_field_mux[] = {
  3843. VI3_FIELD_MARK,
  3844. };
  3845. static const unsigned int vin3_clkenb_pins[] = {
  3846. RCAR_GP_PIN(1, 14),
  3847. };
  3848. static const unsigned int vin3_clkenb_mux[] = {
  3849. VI3_CLKENB_MARK,
  3850. };
  3851. static const unsigned int vin3_clk_pins[] = {
  3852. RCAR_GP_PIN(1, 23),
  3853. };
  3854. static const unsigned int vin3_clk_mux[] = {
  3855. VI3_CLK_MARK,
  3856. };
  3857. static const struct sh_pfc_pin_group pinmux_groups[] = {
  3858. SH_PFC_PIN_GROUP(audio_clk_a),
  3859. SH_PFC_PIN_GROUP(audio_clk_b),
  3860. SH_PFC_PIN_GROUP(audio_clk_c),
  3861. SH_PFC_PIN_GROUP(audio_clkout),
  3862. SH_PFC_PIN_GROUP(audio_clkout_b),
  3863. SH_PFC_PIN_GROUP(audio_clkout_c),
  3864. SH_PFC_PIN_GROUP(audio_clkout_d),
  3865. SH_PFC_PIN_GROUP(avb_link),
  3866. SH_PFC_PIN_GROUP(avb_magic),
  3867. SH_PFC_PIN_GROUP(avb_phy_int),
  3868. SH_PFC_PIN_GROUP(avb_mdio),
  3869. SH_PFC_PIN_GROUP(avb_mii),
  3870. SH_PFC_PIN_GROUP(avb_gmii),
  3871. SH_PFC_PIN_GROUP(du_rgb666),
  3872. SH_PFC_PIN_GROUP(du_rgb888),
  3873. SH_PFC_PIN_GROUP(du_clk_out_0),
  3874. SH_PFC_PIN_GROUP(du_clk_out_1),
  3875. SH_PFC_PIN_GROUP(du_sync_0),
  3876. SH_PFC_PIN_GROUP(du_sync_1),
  3877. SH_PFC_PIN_GROUP(du_cde),
  3878. SH_PFC_PIN_GROUP(du0_clk_in),
  3879. SH_PFC_PIN_GROUP(du1_clk_in),
  3880. SH_PFC_PIN_GROUP(du2_clk_in),
  3881. SH_PFC_PIN_GROUP(eth_link),
  3882. SH_PFC_PIN_GROUP(eth_magic),
  3883. SH_PFC_PIN_GROUP(eth_mdio),
  3884. SH_PFC_PIN_GROUP(eth_rmii),
  3885. SH_PFC_PIN_GROUP(hscif0_data),
  3886. SH_PFC_PIN_GROUP(hscif0_clk),
  3887. SH_PFC_PIN_GROUP(hscif0_ctrl),
  3888. SH_PFC_PIN_GROUP(hscif0_data_b),
  3889. SH_PFC_PIN_GROUP(hscif0_ctrl_b),
  3890. SH_PFC_PIN_GROUP(hscif0_data_c),
  3891. SH_PFC_PIN_GROUP(hscif0_ctrl_c),
  3892. SH_PFC_PIN_GROUP(hscif0_data_d),
  3893. SH_PFC_PIN_GROUP(hscif0_ctrl_d),
  3894. SH_PFC_PIN_GROUP(hscif0_data_e),
  3895. SH_PFC_PIN_GROUP(hscif0_ctrl_e),
  3896. SH_PFC_PIN_GROUP(hscif0_data_f),
  3897. SH_PFC_PIN_GROUP(hscif0_ctrl_f),
  3898. SH_PFC_PIN_GROUP(hscif1_data),
  3899. SH_PFC_PIN_GROUP(hscif1_clk),
  3900. SH_PFC_PIN_GROUP(hscif1_ctrl),
  3901. SH_PFC_PIN_GROUP(hscif1_data_b),
  3902. SH_PFC_PIN_GROUP(hscif1_clk_b),
  3903. SH_PFC_PIN_GROUP(hscif1_ctrl_b),
  3904. SH_PFC_PIN_GROUP(i2c0),
  3905. SH_PFC_PIN_GROUP(i2c1),
  3906. SH_PFC_PIN_GROUP(i2c1_b),
  3907. SH_PFC_PIN_GROUP(i2c1_c),
  3908. SH_PFC_PIN_GROUP(i2c2),
  3909. SH_PFC_PIN_GROUP(i2c2_b),
  3910. SH_PFC_PIN_GROUP(i2c2_c),
  3911. SH_PFC_PIN_GROUP(i2c2_d),
  3912. SH_PFC_PIN_GROUP(i2c2_e),
  3913. SH_PFC_PIN_GROUP(i2c3),
  3914. SH_PFC_PIN_GROUP(iic0),
  3915. SH_PFC_PIN_GROUP(iic1),
  3916. SH_PFC_PIN_GROUP(iic1_b),
  3917. SH_PFC_PIN_GROUP(iic1_c),
  3918. SH_PFC_PIN_GROUP(iic2),
  3919. SH_PFC_PIN_GROUP(iic2_b),
  3920. SH_PFC_PIN_GROUP(iic2_c),
  3921. SH_PFC_PIN_GROUP(iic2_d),
  3922. SH_PFC_PIN_GROUP(iic2_e),
  3923. SH_PFC_PIN_GROUP(iic3),
  3924. SH_PFC_PIN_GROUP(intc_irq0),
  3925. SH_PFC_PIN_GROUP(intc_irq1),
  3926. SH_PFC_PIN_GROUP(intc_irq2),
  3927. SH_PFC_PIN_GROUP(intc_irq3),
  3928. SH_PFC_PIN_GROUP(mlb_3pin),
  3929. SH_PFC_PIN_GROUP(mmc0_data1),
  3930. SH_PFC_PIN_GROUP(mmc0_data4),
  3931. SH_PFC_PIN_GROUP(mmc0_data8),
  3932. SH_PFC_PIN_GROUP(mmc0_ctrl),
  3933. SH_PFC_PIN_GROUP(mmc1_data1),
  3934. SH_PFC_PIN_GROUP(mmc1_data4),
  3935. SH_PFC_PIN_GROUP(mmc1_data8),
  3936. SH_PFC_PIN_GROUP(mmc1_ctrl),
  3937. SH_PFC_PIN_GROUP(msiof0_clk),
  3938. SH_PFC_PIN_GROUP(msiof0_sync),
  3939. SH_PFC_PIN_GROUP(msiof0_ss1),
  3940. SH_PFC_PIN_GROUP(msiof0_ss2),
  3941. SH_PFC_PIN_GROUP(msiof0_rx),
  3942. SH_PFC_PIN_GROUP(msiof0_tx),
  3943. SH_PFC_PIN_GROUP(msiof0_clk_b),
  3944. SH_PFC_PIN_GROUP(msiof0_ss1_b),
  3945. SH_PFC_PIN_GROUP(msiof0_ss2_b),
  3946. SH_PFC_PIN_GROUP(msiof0_rx_b),
  3947. SH_PFC_PIN_GROUP(msiof0_tx_b),
  3948. SH_PFC_PIN_GROUP(msiof1_clk),
  3949. SH_PFC_PIN_GROUP(msiof1_sync),
  3950. SH_PFC_PIN_GROUP(msiof1_ss1),
  3951. SH_PFC_PIN_GROUP(msiof1_ss2),
  3952. SH_PFC_PIN_GROUP(msiof1_rx),
  3953. SH_PFC_PIN_GROUP(msiof1_tx),
  3954. SH_PFC_PIN_GROUP(msiof1_clk_b),
  3955. SH_PFC_PIN_GROUP(msiof1_ss1_b),
  3956. SH_PFC_PIN_GROUP(msiof1_ss2_b),
  3957. SH_PFC_PIN_GROUP(msiof1_rx_b),
  3958. SH_PFC_PIN_GROUP(msiof1_tx_b),
  3959. SH_PFC_PIN_GROUP(msiof2_clk),
  3960. SH_PFC_PIN_GROUP(msiof2_sync),
  3961. SH_PFC_PIN_GROUP(msiof2_ss1),
  3962. SH_PFC_PIN_GROUP(msiof2_ss2),
  3963. SH_PFC_PIN_GROUP(msiof2_rx),
  3964. SH_PFC_PIN_GROUP(msiof2_tx),
  3965. SH_PFC_PIN_GROUP(msiof3_clk),
  3966. SH_PFC_PIN_GROUP(msiof3_sync),
  3967. SH_PFC_PIN_GROUP(msiof3_ss1),
  3968. SH_PFC_PIN_GROUP(msiof3_ss2),
  3969. SH_PFC_PIN_GROUP(msiof3_rx),
  3970. SH_PFC_PIN_GROUP(msiof3_tx),
  3971. SH_PFC_PIN_GROUP(msiof3_clk_b),
  3972. SH_PFC_PIN_GROUP(msiof3_sync_b),
  3973. SH_PFC_PIN_GROUP(msiof3_rx_b),
  3974. SH_PFC_PIN_GROUP(msiof3_tx_b),
  3975. SH_PFC_PIN_GROUP(pwm0),
  3976. SH_PFC_PIN_GROUP(pwm0_b),
  3977. SH_PFC_PIN_GROUP(pwm1),
  3978. SH_PFC_PIN_GROUP(pwm1_b),
  3979. SH_PFC_PIN_GROUP(pwm2),
  3980. SH_PFC_PIN_GROUP(pwm3),
  3981. SH_PFC_PIN_GROUP(pwm4),
  3982. SH_PFC_PIN_GROUP(pwm5),
  3983. SH_PFC_PIN_GROUP(pwm6),
  3984. SH_PFC_PIN_GROUP(qspi_ctrl),
  3985. SH_PFC_PIN_GROUP(qspi_data2),
  3986. SH_PFC_PIN_GROUP(qspi_data4),
  3987. SH_PFC_PIN_GROUP(scif0_data),
  3988. SH_PFC_PIN_GROUP(scif0_clk),
  3989. SH_PFC_PIN_GROUP(scif0_ctrl),
  3990. SH_PFC_PIN_GROUP(scif0_data_b),
  3991. SH_PFC_PIN_GROUP(scif1_data),
  3992. SH_PFC_PIN_GROUP(scif1_clk),
  3993. SH_PFC_PIN_GROUP(scif1_ctrl),
  3994. SH_PFC_PIN_GROUP(scif1_data_b),
  3995. SH_PFC_PIN_GROUP(scif1_data_c),
  3996. SH_PFC_PIN_GROUP(scif1_data_d),
  3997. SH_PFC_PIN_GROUP(scif1_clk_d),
  3998. SH_PFC_PIN_GROUP(scif1_data_e),
  3999. SH_PFC_PIN_GROUP(scif1_clk_e),
  4000. SH_PFC_PIN_GROUP(scif2_data),
  4001. SH_PFC_PIN_GROUP(scif2_clk),
  4002. SH_PFC_PIN_GROUP(scif2_data_b),
  4003. SH_PFC_PIN_GROUP(scifa0_data),
  4004. SH_PFC_PIN_GROUP(scifa0_clk),
  4005. SH_PFC_PIN_GROUP(scifa0_ctrl),
  4006. SH_PFC_PIN_GROUP(scifa0_data_b),
  4007. SH_PFC_PIN_GROUP(scifa0_clk_b),
  4008. SH_PFC_PIN_GROUP(scifa0_ctrl_b),
  4009. SH_PFC_PIN_GROUP(scifa1_data),
  4010. SH_PFC_PIN_GROUP(scifa1_clk),
  4011. SH_PFC_PIN_GROUP(scifa1_ctrl),
  4012. SH_PFC_PIN_GROUP(scifa1_data_b),
  4013. SH_PFC_PIN_GROUP(scifa1_clk_b),
  4014. SH_PFC_PIN_GROUP(scifa1_ctrl_b),
  4015. SH_PFC_PIN_GROUP(scifa1_data_c),
  4016. SH_PFC_PIN_GROUP(scifa1_clk_c),
  4017. SH_PFC_PIN_GROUP(scifa1_ctrl_c),
  4018. SH_PFC_PIN_GROUP(scifa1_data_d),
  4019. SH_PFC_PIN_GROUP(scifa1_clk_d),
  4020. SH_PFC_PIN_GROUP(scifa1_ctrl_d),
  4021. SH_PFC_PIN_GROUP(scifa2_data),
  4022. SH_PFC_PIN_GROUP(scifa2_clk),
  4023. SH_PFC_PIN_GROUP(scifa2_ctrl),
  4024. SH_PFC_PIN_GROUP(scifa2_data_b),
  4025. SH_PFC_PIN_GROUP(scifa2_data_c),
  4026. SH_PFC_PIN_GROUP(scifa2_clk_c),
  4027. SH_PFC_PIN_GROUP(scifb0_data),
  4028. SH_PFC_PIN_GROUP(scifb0_clk),
  4029. SH_PFC_PIN_GROUP(scifb0_ctrl),
  4030. SH_PFC_PIN_GROUP(scifb0_data_b),
  4031. SH_PFC_PIN_GROUP(scifb0_clk_b),
  4032. SH_PFC_PIN_GROUP(scifb0_ctrl_b),
  4033. SH_PFC_PIN_GROUP(scifb0_data_c),
  4034. SH_PFC_PIN_GROUP(scifb1_data),
  4035. SH_PFC_PIN_GROUP(scifb1_clk),
  4036. SH_PFC_PIN_GROUP(scifb1_ctrl),
  4037. SH_PFC_PIN_GROUP(scifb1_data_b),
  4038. SH_PFC_PIN_GROUP(scifb1_clk_b),
  4039. SH_PFC_PIN_GROUP(scifb1_ctrl_b),
  4040. SH_PFC_PIN_GROUP(scifb1_data_c),
  4041. SH_PFC_PIN_GROUP(scifb1_data_d),
  4042. SH_PFC_PIN_GROUP(scifb1_data_e),
  4043. SH_PFC_PIN_GROUP(scifb1_clk_e),
  4044. SH_PFC_PIN_GROUP(scifb1_data_f),
  4045. SH_PFC_PIN_GROUP(scifb1_data_g),
  4046. SH_PFC_PIN_GROUP(scifb1_clk_g),
  4047. SH_PFC_PIN_GROUP(scifb2_data),
  4048. SH_PFC_PIN_GROUP(scifb2_clk),
  4049. SH_PFC_PIN_GROUP(scifb2_ctrl),
  4050. SH_PFC_PIN_GROUP(scifb2_data_b),
  4051. SH_PFC_PIN_GROUP(scifb2_clk_b),
  4052. SH_PFC_PIN_GROUP(scifb2_ctrl_b),
  4053. SH_PFC_PIN_GROUP(scifb2_data_c),
  4054. SH_PFC_PIN_GROUP(scif_clk),
  4055. SH_PFC_PIN_GROUP(scif_clk_b),
  4056. SH_PFC_PIN_GROUP(sdhi0_data1),
  4057. SH_PFC_PIN_GROUP(sdhi0_data4),
  4058. SH_PFC_PIN_GROUP(sdhi0_ctrl),
  4059. SH_PFC_PIN_GROUP(sdhi0_cd),
  4060. SH_PFC_PIN_GROUP(sdhi0_wp),
  4061. SH_PFC_PIN_GROUP(sdhi1_data1),
  4062. SH_PFC_PIN_GROUP(sdhi1_data4),
  4063. SH_PFC_PIN_GROUP(sdhi1_ctrl),
  4064. SH_PFC_PIN_GROUP(sdhi1_cd),
  4065. SH_PFC_PIN_GROUP(sdhi1_wp),
  4066. SH_PFC_PIN_GROUP(sdhi2_data1),
  4067. SH_PFC_PIN_GROUP(sdhi2_data4),
  4068. SH_PFC_PIN_GROUP(sdhi2_ctrl),
  4069. SH_PFC_PIN_GROUP(sdhi2_cd),
  4070. SH_PFC_PIN_GROUP(sdhi2_wp),
  4071. SH_PFC_PIN_GROUP(sdhi3_data1),
  4072. SH_PFC_PIN_GROUP(sdhi3_data4),
  4073. SH_PFC_PIN_GROUP(sdhi3_ctrl),
  4074. SH_PFC_PIN_GROUP(sdhi3_cd),
  4075. SH_PFC_PIN_GROUP(sdhi3_wp),
  4076. SH_PFC_PIN_GROUP(ssi0_data),
  4077. SH_PFC_PIN_GROUP(ssi0129_ctrl),
  4078. SH_PFC_PIN_GROUP(ssi1_data),
  4079. SH_PFC_PIN_GROUP(ssi1_ctrl),
  4080. SH_PFC_PIN_GROUP(ssi2_data),
  4081. SH_PFC_PIN_GROUP(ssi2_ctrl),
  4082. SH_PFC_PIN_GROUP(ssi3_data),
  4083. SH_PFC_PIN_GROUP(ssi34_ctrl),
  4084. SH_PFC_PIN_GROUP(ssi4_data),
  4085. SH_PFC_PIN_GROUP(ssi4_ctrl),
  4086. SH_PFC_PIN_GROUP(ssi5),
  4087. SH_PFC_PIN_GROUP(ssi5_b),
  4088. SH_PFC_PIN_GROUP(ssi5_c),
  4089. SH_PFC_PIN_GROUP(ssi6),
  4090. SH_PFC_PIN_GROUP(ssi6_b),
  4091. SH_PFC_PIN_GROUP(ssi7_data),
  4092. SH_PFC_PIN_GROUP(ssi7_b_data),
  4093. SH_PFC_PIN_GROUP(ssi7_c_data),
  4094. SH_PFC_PIN_GROUP(ssi78_ctrl),
  4095. SH_PFC_PIN_GROUP(ssi78_b_ctrl),
  4096. SH_PFC_PIN_GROUP(ssi78_c_ctrl),
  4097. SH_PFC_PIN_GROUP(ssi8_data),
  4098. SH_PFC_PIN_GROUP(ssi8_b_data),
  4099. SH_PFC_PIN_GROUP(ssi8_c_data),
  4100. SH_PFC_PIN_GROUP(ssi9_data),
  4101. SH_PFC_PIN_GROUP(ssi9_ctrl),
  4102. SH_PFC_PIN_GROUP(tpu0_to0),
  4103. SH_PFC_PIN_GROUP(tpu0_to1),
  4104. SH_PFC_PIN_GROUP(tpu0_to2),
  4105. SH_PFC_PIN_GROUP(tpu0_to3),
  4106. SH_PFC_PIN_GROUP(usb0),
  4107. SH_PFC_PIN_GROUP(usb0_ovc_vbus),
  4108. SH_PFC_PIN_GROUP(usb1),
  4109. SH_PFC_PIN_GROUP(usb2),
  4110. VIN_DATA_PIN_GROUP(vin0_data, 24),
  4111. VIN_DATA_PIN_GROUP(vin0_data, 20),
  4112. SH_PFC_PIN_GROUP(vin0_data18),
  4113. VIN_DATA_PIN_GROUP(vin0_data, 16),
  4114. VIN_DATA_PIN_GROUP(vin0_data, 12),
  4115. VIN_DATA_PIN_GROUP(vin0_data, 10),
  4116. VIN_DATA_PIN_GROUP(vin0_data, 8),
  4117. VIN_DATA_PIN_GROUP(vin0_data, 4),
  4118. SH_PFC_PIN_GROUP(vin0_sync),
  4119. SH_PFC_PIN_GROUP(vin0_field),
  4120. SH_PFC_PIN_GROUP(vin0_clkenb),
  4121. SH_PFC_PIN_GROUP(vin0_clk),
  4122. VIN_DATA_PIN_GROUP(vin1_data, 24),
  4123. VIN_DATA_PIN_GROUP(vin1_data, 20),
  4124. SH_PFC_PIN_GROUP(vin1_data18),
  4125. VIN_DATA_PIN_GROUP(vin1_data, 16),
  4126. VIN_DATA_PIN_GROUP(vin1_data, 12),
  4127. VIN_DATA_PIN_GROUP(vin1_data, 10),
  4128. VIN_DATA_PIN_GROUP(vin1_data, 8),
  4129. VIN_DATA_PIN_GROUP(vin1_data, 4),
  4130. SH_PFC_PIN_GROUP(vin1_sync),
  4131. SH_PFC_PIN_GROUP(vin1_field),
  4132. SH_PFC_PIN_GROUP(vin1_clkenb),
  4133. SH_PFC_PIN_GROUP(vin1_clk),
  4134. VIN_DATA_PIN_GROUP(vin2_data, 24),
  4135. SH_PFC_PIN_GROUP(vin2_data18),
  4136. VIN_DATA_PIN_GROUP(vin2_data, 16),
  4137. VIN_DATA_PIN_GROUP(vin2_data, 8),
  4138. VIN_DATA_PIN_GROUP(vin2_data, 4),
  4139. SH_PFC_PIN_GROUP(vin2_sync),
  4140. SH_PFC_PIN_GROUP(vin2_field),
  4141. SH_PFC_PIN_GROUP(vin2_clkenb),
  4142. SH_PFC_PIN_GROUP(vin2_clk),
  4143. SH_PFC_PIN_GROUP(vin3_data8),
  4144. SH_PFC_PIN_GROUP(vin3_sync),
  4145. SH_PFC_PIN_GROUP(vin3_field),
  4146. SH_PFC_PIN_GROUP(vin3_clkenb),
  4147. SH_PFC_PIN_GROUP(vin3_clk),
  4148. };
  4149. static const char * const audio_clk_groups[] = {
  4150. "audio_clk_a",
  4151. "audio_clk_b",
  4152. "audio_clk_c",
  4153. "audio_clkout",
  4154. "audio_clkout_b",
  4155. "audio_clkout_c",
  4156. "audio_clkout_d",
  4157. };
  4158. static const char * const avb_groups[] = {
  4159. "avb_link",
  4160. "avb_magic",
  4161. "avb_phy_int",
  4162. "avb_mdio",
  4163. "avb_mii",
  4164. "avb_gmii",
  4165. };
  4166. static const char * const du_groups[] = {
  4167. "du_rgb666",
  4168. "du_rgb888",
  4169. "du_clk_out_0",
  4170. "du_clk_out_1",
  4171. "du_sync_0",
  4172. "du_sync_1",
  4173. "du_cde",
  4174. };
  4175. static const char * const du0_groups[] = {
  4176. "du0_clk_in",
  4177. };
  4178. static const char * const du1_groups[] = {
  4179. "du1_clk_in",
  4180. };
  4181. static const char * const du2_groups[] = {
  4182. "du2_clk_in",
  4183. };
  4184. static const char * const eth_groups[] = {
  4185. "eth_link",
  4186. "eth_magic",
  4187. "eth_mdio",
  4188. "eth_rmii",
  4189. };
  4190. static const char * const hscif0_groups[] = {
  4191. "hscif0_data",
  4192. "hscif0_clk",
  4193. "hscif0_ctrl",
  4194. "hscif0_data_b",
  4195. "hscif0_ctrl_b",
  4196. "hscif0_data_c",
  4197. "hscif0_ctrl_c",
  4198. "hscif0_data_d",
  4199. "hscif0_ctrl_d",
  4200. "hscif0_data_e",
  4201. "hscif0_ctrl_e",
  4202. "hscif0_data_f",
  4203. "hscif0_ctrl_f",
  4204. };
  4205. static const char * const hscif1_groups[] = {
  4206. "hscif1_data",
  4207. "hscif1_clk",
  4208. "hscif1_ctrl",
  4209. "hscif1_data_b",
  4210. "hscif1_clk_b",
  4211. "hscif1_ctrl_b",
  4212. };
  4213. static const char * const i2c0_groups[] = {
  4214. "i2c0",
  4215. };
  4216. static const char * const i2c1_groups[] = {
  4217. "i2c1",
  4218. "i2c1_b",
  4219. "i2c1_c",
  4220. };
  4221. static const char * const i2c2_groups[] = {
  4222. "i2c2",
  4223. "i2c2_b",
  4224. "i2c2_c",
  4225. "i2c2_d",
  4226. "i2c2_e",
  4227. };
  4228. static const char * const i2c3_groups[] = {
  4229. "i2c3",
  4230. };
  4231. static const char * const iic0_groups[] = {
  4232. "iic0",
  4233. };
  4234. static const char * const iic1_groups[] = {
  4235. "iic1",
  4236. "iic1_b",
  4237. "iic1_c",
  4238. };
  4239. static const char * const iic2_groups[] = {
  4240. "iic2",
  4241. "iic2_b",
  4242. "iic2_c",
  4243. "iic2_d",
  4244. "iic2_e",
  4245. };
  4246. static const char * const iic3_groups[] = {
  4247. "iic3",
  4248. };
  4249. static const char * const intc_groups[] = {
  4250. "intc_irq0",
  4251. "intc_irq1",
  4252. "intc_irq2",
  4253. "intc_irq3",
  4254. };
  4255. static const char * const mlb_groups[] = {
  4256. "mlb_3pin",
  4257. };
  4258. static const char * const mmc0_groups[] = {
  4259. "mmc0_data1",
  4260. "mmc0_data4",
  4261. "mmc0_data8",
  4262. "mmc0_ctrl",
  4263. };
  4264. static const char * const mmc1_groups[] = {
  4265. "mmc1_data1",
  4266. "mmc1_data4",
  4267. "mmc1_data8",
  4268. "mmc1_ctrl",
  4269. };
  4270. static const char * const msiof0_groups[] = {
  4271. "msiof0_clk",
  4272. "msiof0_sync",
  4273. "msiof0_ss1",
  4274. "msiof0_ss2",
  4275. "msiof0_rx",
  4276. "msiof0_tx",
  4277. "msiof0_clk_b",
  4278. "msiof0_ss1_b",
  4279. "msiof0_ss2_b",
  4280. "msiof0_rx_b",
  4281. "msiof0_tx_b",
  4282. };
  4283. static const char * const msiof1_groups[] = {
  4284. "msiof1_clk",
  4285. "msiof1_sync",
  4286. "msiof1_ss1",
  4287. "msiof1_ss2",
  4288. "msiof1_rx",
  4289. "msiof1_tx",
  4290. "msiof1_clk_b",
  4291. "msiof1_ss1_b",
  4292. "msiof1_ss2_b",
  4293. "msiof1_rx_b",
  4294. "msiof1_tx_b",
  4295. };
  4296. static const char * const msiof2_groups[] = {
  4297. "msiof2_clk",
  4298. "msiof2_sync",
  4299. "msiof2_ss1",
  4300. "msiof2_ss2",
  4301. "msiof2_rx",
  4302. "msiof2_tx",
  4303. };
  4304. static const char * const msiof3_groups[] = {
  4305. "msiof3_clk",
  4306. "msiof3_sync",
  4307. "msiof3_ss1",
  4308. "msiof3_ss2",
  4309. "msiof3_rx",
  4310. "msiof3_tx",
  4311. "msiof3_clk_b",
  4312. "msiof3_sync_b",
  4313. "msiof3_rx_b",
  4314. "msiof3_tx_b",
  4315. };
  4316. static const char * const pwm0_groups[] = {
  4317. "pwm0",
  4318. "pwm0_b",
  4319. };
  4320. static const char * const pwm1_groups[] = {
  4321. "pwm1",
  4322. "pwm1_b",
  4323. };
  4324. static const char * const pwm2_groups[] = {
  4325. "pwm2",
  4326. };
  4327. static const char * const pwm3_groups[] = {
  4328. "pwm3",
  4329. };
  4330. static const char * const pwm4_groups[] = {
  4331. "pwm4",
  4332. };
  4333. static const char * const pwm5_groups[] = {
  4334. "pwm5",
  4335. };
  4336. static const char * const pwm6_groups[] = {
  4337. "pwm6",
  4338. };
  4339. static const char * const qspi_groups[] = {
  4340. "qspi_ctrl",
  4341. "qspi_data2",
  4342. "qspi_data4",
  4343. };
  4344. static const char * const scif0_groups[] = {
  4345. "scif0_data",
  4346. "scif0_clk",
  4347. "scif0_ctrl",
  4348. "scif0_data_b",
  4349. };
  4350. static const char * const scif1_groups[] = {
  4351. "scif1_data",
  4352. "scif1_clk",
  4353. "scif1_ctrl",
  4354. "scif1_data_b",
  4355. "scif1_data_c",
  4356. "scif1_data_d",
  4357. "scif1_clk_d",
  4358. "scif1_data_e",
  4359. "scif1_clk_e",
  4360. };
  4361. static const char * const scif2_groups[] = {
  4362. "scif2_data",
  4363. "scif2_clk",
  4364. "scif2_data_b",
  4365. };
  4366. static const char * const scifa0_groups[] = {
  4367. "scifa0_data",
  4368. "scifa0_clk",
  4369. "scifa0_ctrl",
  4370. "scifa0_data_b",
  4371. "scifa0_clk_b",
  4372. "scifa0_ctrl_b",
  4373. };
  4374. static const char * const scifa1_groups[] = {
  4375. "scifa1_data",
  4376. "scifa1_clk",
  4377. "scifa1_ctrl",
  4378. "scifa1_data_b",
  4379. "scifa1_clk_b",
  4380. "scifa1_ctrl_b",
  4381. "scifa1_data_c",
  4382. "scifa1_clk_c",
  4383. "scifa1_ctrl_c",
  4384. "scifa1_data_d",
  4385. "scifa1_clk_d",
  4386. "scifa1_ctrl_d",
  4387. };
  4388. static const char * const scifa2_groups[] = {
  4389. "scifa2_data",
  4390. "scifa2_clk",
  4391. "scifa2_ctrl",
  4392. "scifa2_data_b",
  4393. "scifa2_data_c",
  4394. "scifa2_clk_c",
  4395. };
  4396. static const char * const scifb0_groups[] = {
  4397. "scifb0_data",
  4398. "scifb0_clk",
  4399. "scifb0_ctrl",
  4400. "scifb0_data_b",
  4401. "scifb0_clk_b",
  4402. "scifb0_ctrl_b",
  4403. "scifb0_data_c",
  4404. };
  4405. static const char * const scifb1_groups[] = {
  4406. "scifb1_data",
  4407. "scifb1_clk",
  4408. "scifb1_ctrl",
  4409. "scifb1_data_b",
  4410. "scifb1_clk_b",
  4411. "scifb1_ctrl_b",
  4412. "scifb1_data_c",
  4413. "scifb1_data_d",
  4414. "scifb1_data_e",
  4415. "scifb1_clk_e",
  4416. "scifb1_data_f",
  4417. "scifb1_data_g",
  4418. "scifb1_clk_g",
  4419. };
  4420. static const char * const scifb2_groups[] = {
  4421. "scifb2_data",
  4422. "scifb2_clk",
  4423. "scifb2_ctrl",
  4424. "scifb2_data_b",
  4425. "scifb2_clk_b",
  4426. "scifb2_ctrl_b",
  4427. "scifb2_data_c",
  4428. };
  4429. static const char * const scif_clk_groups[] = {
  4430. "scif_clk",
  4431. "scif_clk_b",
  4432. };
  4433. static const char * const sdhi0_groups[] = {
  4434. "sdhi0_data1",
  4435. "sdhi0_data4",
  4436. "sdhi0_ctrl",
  4437. "sdhi0_cd",
  4438. "sdhi0_wp",
  4439. };
  4440. static const char * const sdhi1_groups[] = {
  4441. "sdhi1_data1",
  4442. "sdhi1_data4",
  4443. "sdhi1_ctrl",
  4444. "sdhi1_cd",
  4445. "sdhi1_wp",
  4446. };
  4447. static const char * const sdhi2_groups[] = {
  4448. "sdhi2_data1",
  4449. "sdhi2_data4",
  4450. "sdhi2_ctrl",
  4451. "sdhi2_cd",
  4452. "sdhi2_wp",
  4453. };
  4454. static const char * const sdhi3_groups[] = {
  4455. "sdhi3_data1",
  4456. "sdhi3_data4",
  4457. "sdhi3_ctrl",
  4458. "sdhi3_cd",
  4459. "sdhi3_wp",
  4460. };
  4461. static const char * const ssi_groups[] = {
  4462. "ssi0_data",
  4463. "ssi0129_ctrl",
  4464. "ssi1_data",
  4465. "ssi1_ctrl",
  4466. "ssi2_data",
  4467. "ssi2_ctrl",
  4468. "ssi3_data",
  4469. "ssi34_ctrl",
  4470. "ssi4_data",
  4471. "ssi4_ctrl",
  4472. "ssi5",
  4473. "ssi5_b",
  4474. "ssi5_c",
  4475. "ssi6",
  4476. "ssi6_b",
  4477. "ssi7_data",
  4478. "ssi7_b_data",
  4479. "ssi7_c_data",
  4480. "ssi78_ctrl",
  4481. "ssi78_b_ctrl",
  4482. "ssi78_c_ctrl",
  4483. "ssi8_data",
  4484. "ssi8_b_data",
  4485. "ssi8_c_data",
  4486. "ssi9_data",
  4487. "ssi9_ctrl",
  4488. };
  4489. static const char * const tpu0_groups[] = {
  4490. "tpu0_to0",
  4491. "tpu0_to1",
  4492. "tpu0_to2",
  4493. "tpu0_to3",
  4494. };
  4495. static const char * const usb0_groups[] = {
  4496. "usb0",
  4497. "usb0_ovc_vbus",
  4498. };
  4499. static const char * const usb1_groups[] = {
  4500. "usb1",
  4501. };
  4502. static const char * const usb2_groups[] = {
  4503. "usb2",
  4504. };
  4505. static const char * const vin0_groups[] = {
  4506. "vin0_data24",
  4507. "vin0_data20",
  4508. "vin0_data18",
  4509. "vin0_data16",
  4510. "vin0_data12",
  4511. "vin0_data10",
  4512. "vin0_data8",
  4513. "vin0_data4",
  4514. "vin0_sync",
  4515. "vin0_field",
  4516. "vin0_clkenb",
  4517. "vin0_clk",
  4518. };
  4519. static const char * const vin1_groups[] = {
  4520. "vin1_data24",
  4521. "vin1_data20",
  4522. "vin1_data18",
  4523. "vin1_data16",
  4524. "vin1_data12",
  4525. "vin1_data10",
  4526. "vin1_data8",
  4527. "vin1_data4",
  4528. "vin1_sync",
  4529. "vin1_field",
  4530. "vin1_clkenb",
  4531. "vin1_clk",
  4532. };
  4533. static const char * const vin2_groups[] = {
  4534. "vin2_data24",
  4535. "vin2_data18",
  4536. "vin2_data16",
  4537. "vin2_data8",
  4538. "vin2_data4",
  4539. "vin2_sync",
  4540. "vin2_field",
  4541. "vin2_clkenb",
  4542. "vin2_clk",
  4543. };
  4544. static const char * const vin3_groups[] = {
  4545. "vin3_data8",
  4546. "vin3_sync",
  4547. "vin3_field",
  4548. "vin3_clkenb",
  4549. "vin3_clk",
  4550. };
  4551. static const struct sh_pfc_function pinmux_functions[] = {
  4552. SH_PFC_FUNCTION(audio_clk),
  4553. SH_PFC_FUNCTION(avb),
  4554. SH_PFC_FUNCTION(du),
  4555. SH_PFC_FUNCTION(du0),
  4556. SH_PFC_FUNCTION(du1),
  4557. SH_PFC_FUNCTION(du2),
  4558. SH_PFC_FUNCTION(eth),
  4559. SH_PFC_FUNCTION(hscif0),
  4560. SH_PFC_FUNCTION(hscif1),
  4561. SH_PFC_FUNCTION(i2c0),
  4562. SH_PFC_FUNCTION(i2c1),
  4563. SH_PFC_FUNCTION(i2c2),
  4564. SH_PFC_FUNCTION(i2c3),
  4565. SH_PFC_FUNCTION(iic0),
  4566. SH_PFC_FUNCTION(iic1),
  4567. SH_PFC_FUNCTION(iic2),
  4568. SH_PFC_FUNCTION(iic3),
  4569. SH_PFC_FUNCTION(intc),
  4570. SH_PFC_FUNCTION(mlb),
  4571. SH_PFC_FUNCTION(mmc0),
  4572. SH_PFC_FUNCTION(mmc1),
  4573. SH_PFC_FUNCTION(msiof0),
  4574. SH_PFC_FUNCTION(msiof1),
  4575. SH_PFC_FUNCTION(msiof2),
  4576. SH_PFC_FUNCTION(msiof3),
  4577. SH_PFC_FUNCTION(pwm0),
  4578. SH_PFC_FUNCTION(pwm1),
  4579. SH_PFC_FUNCTION(pwm2),
  4580. SH_PFC_FUNCTION(pwm3),
  4581. SH_PFC_FUNCTION(pwm4),
  4582. SH_PFC_FUNCTION(pwm5),
  4583. SH_PFC_FUNCTION(pwm6),
  4584. SH_PFC_FUNCTION(qspi),
  4585. SH_PFC_FUNCTION(scif0),
  4586. SH_PFC_FUNCTION(scif1),
  4587. SH_PFC_FUNCTION(scif2),
  4588. SH_PFC_FUNCTION(scifa0),
  4589. SH_PFC_FUNCTION(scifa1),
  4590. SH_PFC_FUNCTION(scifa2),
  4591. SH_PFC_FUNCTION(scifb0),
  4592. SH_PFC_FUNCTION(scifb1),
  4593. SH_PFC_FUNCTION(scifb2),
  4594. SH_PFC_FUNCTION(scif_clk),
  4595. SH_PFC_FUNCTION(sdhi0),
  4596. SH_PFC_FUNCTION(sdhi1),
  4597. SH_PFC_FUNCTION(sdhi2),
  4598. SH_PFC_FUNCTION(sdhi3),
  4599. SH_PFC_FUNCTION(ssi),
  4600. SH_PFC_FUNCTION(tpu0),
  4601. SH_PFC_FUNCTION(usb0),
  4602. SH_PFC_FUNCTION(usb1),
  4603. SH_PFC_FUNCTION(usb2),
  4604. SH_PFC_FUNCTION(vin0),
  4605. SH_PFC_FUNCTION(vin1),
  4606. SH_PFC_FUNCTION(vin2),
  4607. SH_PFC_FUNCTION(vin3),
  4608. };
  4609. static const struct pinmux_cfg_reg pinmux_config_regs[] = {
  4610. { PINMUX_CFG_REG("GPSR0", 0xE6060004, 32, 1) {
  4611. GP_0_31_FN, FN_IP3_17_15,
  4612. GP_0_30_FN, FN_IP3_14_12,
  4613. GP_0_29_FN, FN_IP3_11_8,
  4614. GP_0_28_FN, FN_IP3_7_4,
  4615. GP_0_27_FN, FN_IP3_3_0,
  4616. GP_0_26_FN, FN_IP2_28_26,
  4617. GP_0_25_FN, FN_IP2_25_22,
  4618. GP_0_24_FN, FN_IP2_21_18,
  4619. GP_0_23_FN, FN_IP2_17_15,
  4620. GP_0_22_FN, FN_IP2_14_12,
  4621. GP_0_21_FN, FN_IP2_11_9,
  4622. GP_0_20_FN, FN_IP2_8_6,
  4623. GP_0_19_FN, FN_IP2_5_3,
  4624. GP_0_18_FN, FN_IP2_2_0,
  4625. GP_0_17_FN, FN_IP1_29_28,
  4626. GP_0_16_FN, FN_IP1_27_26,
  4627. GP_0_15_FN, FN_IP1_25_22,
  4628. GP_0_14_FN, FN_IP1_21_18,
  4629. GP_0_13_FN, FN_IP1_17_15,
  4630. GP_0_12_FN, FN_IP1_14_12,
  4631. GP_0_11_FN, FN_IP1_11_8,
  4632. GP_0_10_FN, FN_IP1_7_4,
  4633. GP_0_9_FN, FN_IP1_3_0,
  4634. GP_0_8_FN, FN_IP0_30_27,
  4635. GP_0_7_FN, FN_IP0_26_23,
  4636. GP_0_6_FN, FN_IP0_22_20,
  4637. GP_0_5_FN, FN_IP0_19_16,
  4638. GP_0_4_FN, FN_IP0_15_12,
  4639. GP_0_3_FN, FN_IP0_11_9,
  4640. GP_0_2_FN, FN_IP0_8_6,
  4641. GP_0_1_FN, FN_IP0_5_3,
  4642. GP_0_0_FN, FN_IP0_2_0 }
  4643. },
  4644. { PINMUX_CFG_REG("GPSR1", 0xE6060008, 32, 1) {
  4645. 0, 0,
  4646. 0, 0,
  4647. GP_1_29_FN, FN_IP6_13_11,
  4648. GP_1_28_FN, FN_IP6_10_9,
  4649. GP_1_27_FN, FN_IP6_8_6,
  4650. GP_1_26_FN, FN_IP6_5_3,
  4651. GP_1_25_FN, FN_IP6_2_0,
  4652. GP_1_24_FN, FN_IP5_29_27,
  4653. GP_1_23_FN, FN_IP5_26_24,
  4654. GP_1_22_FN, FN_IP5_23_21,
  4655. GP_1_21_FN, FN_IP5_20_18,
  4656. GP_1_20_FN, FN_IP5_17_15,
  4657. GP_1_19_FN, FN_IP5_14_13,
  4658. GP_1_18_FN, FN_IP5_12_10,
  4659. GP_1_17_FN, FN_IP5_9_6,
  4660. GP_1_16_FN, FN_IP5_5_3,
  4661. GP_1_15_FN, FN_IP5_2_0,
  4662. GP_1_14_FN, FN_IP4_29_27,
  4663. GP_1_13_FN, FN_IP4_26_24,
  4664. GP_1_12_FN, FN_IP4_23_21,
  4665. GP_1_11_FN, FN_IP4_20_18,
  4666. GP_1_10_FN, FN_IP4_17_15,
  4667. GP_1_9_FN, FN_IP4_14_12,
  4668. GP_1_8_FN, FN_IP4_11_9,
  4669. GP_1_7_FN, FN_IP4_8_6,
  4670. GP_1_6_FN, FN_IP4_5_3,
  4671. GP_1_5_FN, FN_IP4_2_0,
  4672. GP_1_4_FN, FN_IP3_31_29,
  4673. GP_1_3_FN, FN_IP3_28_26,
  4674. GP_1_2_FN, FN_IP3_25_23,
  4675. GP_1_1_FN, FN_IP3_22_20,
  4676. GP_1_0_FN, FN_IP3_19_18, }
  4677. },
  4678. { PINMUX_CFG_REG("GPSR2", 0xE606000C, 32, 1) {
  4679. 0, 0,
  4680. 0, 0,
  4681. GP_2_29_FN, FN_IP7_15_13,
  4682. GP_2_28_FN, FN_IP7_12_10,
  4683. GP_2_27_FN, FN_IP7_9_8,
  4684. GP_2_26_FN, FN_IP7_7_6,
  4685. GP_2_25_FN, FN_IP7_5_3,
  4686. GP_2_24_FN, FN_IP7_2_0,
  4687. GP_2_23_FN, FN_IP6_31_29,
  4688. GP_2_22_FN, FN_IP6_28_26,
  4689. GP_2_21_FN, FN_IP6_25_23,
  4690. GP_2_20_FN, FN_IP6_22_20,
  4691. GP_2_19_FN, FN_IP6_19_17,
  4692. GP_2_18_FN, FN_IP6_16_14,
  4693. GP_2_17_FN, FN_VI1_DATA7_VI1_B7,
  4694. GP_2_16_FN, FN_IP8_27,
  4695. GP_2_15_FN, FN_IP8_26,
  4696. GP_2_14_FN, FN_IP8_25_24,
  4697. GP_2_13_FN, FN_IP8_23_22,
  4698. GP_2_12_FN, FN_IP8_21_20,
  4699. GP_2_11_FN, FN_IP8_19_18,
  4700. GP_2_10_FN, FN_IP8_17_16,
  4701. GP_2_9_FN, FN_IP8_15_14,
  4702. GP_2_8_FN, FN_IP8_13_12,
  4703. GP_2_7_FN, FN_IP8_11_10,
  4704. GP_2_6_FN, FN_IP8_9_8,
  4705. GP_2_5_FN, FN_IP8_7_6,
  4706. GP_2_4_FN, FN_IP8_5_4,
  4707. GP_2_3_FN, FN_IP8_3_2,
  4708. GP_2_2_FN, FN_IP8_1_0,
  4709. GP_2_1_FN, FN_IP7_30_29,
  4710. GP_2_0_FN, FN_IP7_28_27 }
  4711. },
  4712. { PINMUX_CFG_REG("GPSR3", 0xE6060010, 32, 1) {
  4713. GP_3_31_FN, FN_IP11_21_18,
  4714. GP_3_30_FN, FN_IP11_17_15,
  4715. GP_3_29_FN, FN_IP11_14_13,
  4716. GP_3_28_FN, FN_IP11_12_11,
  4717. GP_3_27_FN, FN_IP11_10_9,
  4718. GP_3_26_FN, FN_IP11_8_7,
  4719. GP_3_25_FN, FN_IP11_6_5,
  4720. GP_3_24_FN, FN_IP11_4,
  4721. GP_3_23_FN, FN_IP11_3_0,
  4722. GP_3_22_FN, FN_IP10_29_26,
  4723. GP_3_21_FN, FN_IP10_25_23,
  4724. GP_3_20_FN, FN_IP10_22_19,
  4725. GP_3_19_FN, FN_IP10_18_15,
  4726. GP_3_18_FN, FN_IP10_14_11,
  4727. GP_3_17_FN, FN_IP10_10_7,
  4728. GP_3_16_FN, FN_IP10_6_4,
  4729. GP_3_15_FN, FN_IP10_3_0,
  4730. GP_3_14_FN, FN_IP9_31_28,
  4731. GP_3_13_FN, FN_IP9_27_26,
  4732. GP_3_12_FN, FN_IP9_25_24,
  4733. GP_3_11_FN, FN_IP9_23_22,
  4734. GP_3_10_FN, FN_IP9_21_20,
  4735. GP_3_9_FN, FN_IP9_19_18,
  4736. GP_3_8_FN, FN_IP9_17_16,
  4737. GP_3_7_FN, FN_IP9_15_12,
  4738. GP_3_6_FN, FN_IP9_11_8,
  4739. GP_3_5_FN, FN_IP9_7_6,
  4740. GP_3_4_FN, FN_IP9_5_4,
  4741. GP_3_3_FN, FN_IP9_3_2,
  4742. GP_3_2_FN, FN_IP9_1_0,
  4743. GP_3_1_FN, FN_IP8_30_29,
  4744. GP_3_0_FN, FN_IP8_28 }
  4745. },
  4746. { PINMUX_CFG_REG("GPSR4", 0xE6060014, 32, 1) {
  4747. GP_4_31_FN, FN_IP14_18_16,
  4748. GP_4_30_FN, FN_IP14_15_12,
  4749. GP_4_29_FN, FN_IP14_11_9,
  4750. GP_4_28_FN, FN_IP14_8_6,
  4751. GP_4_27_FN, FN_IP14_5_3,
  4752. GP_4_26_FN, FN_IP14_2_0,
  4753. GP_4_25_FN, FN_IP13_30_29,
  4754. GP_4_24_FN, FN_IP13_28_26,
  4755. GP_4_23_FN, FN_IP13_25_23,
  4756. GP_4_22_FN, FN_IP13_22_19,
  4757. GP_4_21_FN, FN_IP13_18_16,
  4758. GP_4_20_FN, FN_IP13_15_13,
  4759. GP_4_19_FN, FN_IP13_12_10,
  4760. GP_4_18_FN, FN_IP13_9_7,
  4761. GP_4_17_FN, FN_IP13_6_3,
  4762. GP_4_16_FN, FN_IP13_2_0,
  4763. GP_4_15_FN, FN_IP12_30_28,
  4764. GP_4_14_FN, FN_IP12_27_25,
  4765. GP_4_13_FN, FN_IP12_24_23,
  4766. GP_4_12_FN, FN_IP12_22_20,
  4767. GP_4_11_FN, FN_IP12_19_17,
  4768. GP_4_10_FN, FN_IP12_16_14,
  4769. GP_4_9_FN, FN_IP12_13_11,
  4770. GP_4_8_FN, FN_IP12_10_8,
  4771. GP_4_7_FN, FN_IP12_7_6,
  4772. GP_4_6_FN, FN_IP12_5_4,
  4773. GP_4_5_FN, FN_IP12_3_2,
  4774. GP_4_4_FN, FN_IP12_1_0,
  4775. GP_4_3_FN, FN_IP11_31_30,
  4776. GP_4_2_FN, FN_IP11_29_27,
  4777. GP_4_1_FN, FN_IP11_26_24,
  4778. GP_4_0_FN, FN_IP11_23_22 }
  4779. },
  4780. { PINMUX_CFG_REG("GPSR5", 0xE6060018, 32, 1) {
  4781. GP_5_31_FN, FN_IP7_24_22,
  4782. GP_5_30_FN, FN_IP7_21_19,
  4783. GP_5_29_FN, FN_IP7_18_16,
  4784. GP_5_28_FN, FN_DU_DOTCLKIN2,
  4785. GP_5_27_FN, FN_IP7_26_25,
  4786. GP_5_26_FN, FN_DU_DOTCLKIN0,
  4787. GP_5_25_FN, FN_AVS2,
  4788. GP_5_24_FN, FN_AVS1,
  4789. GP_5_23_FN, FN_USB2_OVC,
  4790. GP_5_22_FN, FN_USB2_PWEN,
  4791. GP_5_21_FN, FN_IP16_7,
  4792. GP_5_20_FN, FN_IP16_6,
  4793. GP_5_19_FN, FN_USB0_OVC_VBUS,
  4794. GP_5_18_FN, FN_USB0_PWEN,
  4795. GP_5_17_FN, FN_IP16_5_3,
  4796. GP_5_16_FN, FN_IP16_2_0,
  4797. GP_5_15_FN, FN_IP15_29_28,
  4798. GP_5_14_FN, FN_IP15_27_26,
  4799. GP_5_13_FN, FN_IP15_25_23,
  4800. GP_5_12_FN, FN_IP15_22_20,
  4801. GP_5_11_FN, FN_IP15_19_18,
  4802. GP_5_10_FN, FN_IP15_17_16,
  4803. GP_5_9_FN, FN_IP15_15_14,
  4804. GP_5_8_FN, FN_IP15_13_12,
  4805. GP_5_7_FN, FN_IP15_11_9,
  4806. GP_5_6_FN, FN_IP15_8_6,
  4807. GP_5_5_FN, FN_IP15_5_3,
  4808. GP_5_4_FN, FN_IP15_2_0,
  4809. GP_5_3_FN, FN_IP14_30_28,
  4810. GP_5_2_FN, FN_IP14_27_25,
  4811. GP_5_1_FN, FN_IP14_24_22,
  4812. GP_5_0_FN, FN_IP14_21_19 }
  4813. },
  4814. { PINMUX_CFG_REG_VAR("IPSR0", 0xE6060020, 32,
  4815. 1, 4, 4, 3, 4, 4, 3, 3, 3, 3) {
  4816. /* IP0_31 [1] */
  4817. 0, 0,
  4818. /* IP0_30_27 [4] */
  4819. FN_D8, FN_SCIFA1_SCK_C, FN_AVB_TXD0, 0,
  4820. FN_VI0_G0, FN_VI0_G0_B, FN_VI2_DATA0_VI2_B0,
  4821. 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4822. /* IP0_26_23 [4] */
  4823. FN_D7, FN_AD_DI_B, FN_IIC2_SDA_C,
  4824. FN_VI3_DATA7, FN_VI0_R3, FN_VI0_R3_B, FN_I2C2_SDA_C,
  4825. FN_TCLK1, 0, 0, 0, 0, 0, 0, 0, 0,
  4826. /* IP0_22_20 [3] */
  4827. FN_D6, FN_IIC2_SCL_C, FN_VI3_DATA6, FN_VI0_R2, FN_VI0_R2_B,
  4828. FN_I2C2_SCL_C, 0, 0,
  4829. /* IP0_19_16 [4] */
  4830. FN_D5, FN_SCIFB1_TXD_F, FN_SCIFB0_TXD_C, FN_VI3_DATA5,
  4831. FN_VI0_R1, FN_VI0_R1_B, FN_TX0_B,
  4832. 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4833. /* IP0_15_12 [4] */
  4834. FN_D4, FN_SCIFB1_RXD_F, FN_SCIFB0_RXD_C, FN_VI3_DATA4,
  4835. FN_VI0_R0, FN_VI0_R0_B, FN_RX0_B,
  4836. 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4837. /* IP0_11_9 [3] */
  4838. FN_D3, FN_MSIOF3_TXD_B, FN_VI3_DATA3, FN_VI0_G7, FN_VI0_G7_B,
  4839. 0, 0, 0,
  4840. /* IP0_8_6 [3] */
  4841. FN_D2, FN_MSIOF3_RXD_B, FN_VI3_DATA2, FN_VI0_G6, FN_VI0_G6_B,
  4842. 0, 0, 0,
  4843. /* IP0_5_3 [3] */
  4844. FN_D1, FN_MSIOF3_SYNC_B, FN_VI3_DATA1, FN_VI0_G5, FN_VI0_G5_B,
  4845. 0, 0, 0,
  4846. /* IP0_2_0 [3] */
  4847. FN_D0, FN_MSIOF3_SCK_B, FN_VI3_DATA0, FN_VI0_G4, FN_VI0_G4_B,
  4848. 0, 0, 0, }
  4849. },
  4850. { PINMUX_CFG_REG_VAR("IPSR1", 0xE6060024, 32,
  4851. 2, 2, 2, 4, 4, 3, 3, 4, 4, 4) {
  4852. /* IP1_31_30 [2] */
  4853. 0, 0, 0, 0,
  4854. /* IP1_29_28 [2] */
  4855. FN_A1, FN_PWM4, 0, 0,
  4856. /* IP1_27_26 [2] */
  4857. FN_A0, FN_PWM3, 0, 0,
  4858. /* IP1_25_22 [4] */
  4859. FN_D15, FN_SCIFB1_TXD_C, FN_AVB_TXD7, FN_TX1_B,
  4860. FN_VI0_FIELD, FN_VI0_FIELD_B, FN_VI2_DATA7_VI2_B7,
  4861. 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4862. /* IP1_21_18 [4] */
  4863. FN_D14, FN_SCIFB1_RXD_C, FN_AVB_TXD6, FN_RX1_B,
  4864. FN_VI0_CLKENB, FN_VI0_CLKENB_B, FN_VI2_DATA6_VI2_B6,
  4865. 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4866. /* IP1_17_15 [3] */
  4867. FN_D13, FN_AVB_TXD5, FN_VI0_VSYNC_N,
  4868. FN_VI0_VSYNC_N_B, FN_VI2_DATA5_VI2_B5,
  4869. 0, 0, 0,
  4870. /* IP1_14_12 [3] */
  4871. FN_D12, FN_SCIFA1_RTS_N_C, FN_AVB_TXD4,
  4872. FN_VI0_HSYNC_N, FN_VI0_HSYNC_N_B, FN_VI2_DATA4_VI2_B4,
  4873. 0, 0,
  4874. /* IP1_11_8 [4] */
  4875. FN_D11, FN_SCIFA1_CTS_N_C, FN_AVB_TXD3, 0,
  4876. FN_VI0_G3, FN_VI0_G3_B, FN_VI2_DATA3_VI2_B3,
  4877. 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4878. /* IP1_7_4 [4] */
  4879. FN_D10, FN_SCIFA1_TXD_C, FN_AVB_TXD2, 0,
  4880. FN_VI0_G2, FN_VI0_G2_B, FN_VI2_DATA2_VI2_B2,
  4881. 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4882. /* IP1_3_0 [4] */
  4883. FN_D9, FN_SCIFA1_RXD_C, FN_AVB_TXD1, 0,
  4884. FN_VI0_G1, FN_VI0_G1_B, FN_VI2_DATA1_VI2_B1,
  4885. 0, 0, 0, 0, 0, 0, 0, 0, 0, }
  4886. },
  4887. { PINMUX_CFG_REG_VAR("IPSR2", 0xE6060028, 32,
  4888. 3, 3, 4, 4, 3, 3, 3, 3, 3, 3) {
  4889. /* IP2_31_29 [3] */
  4890. 0, 0, 0, 0, 0, 0, 0, 0,
  4891. /* IP2_28_26 [3] */
  4892. FN_A10, FN_SSI_SDATA5_B, FN_MSIOF2_SYNC, FN_VI0_R6,
  4893. FN_VI0_R6_B, FN_VI2_DATA2_VI2_B2_B, 0, 0,
  4894. /* IP2_25_22 [4] */
  4895. FN_A9, FN_SCIFA1_CTS_N_B, FN_SSI_WS5_B, FN_VI0_R5,
  4896. FN_VI0_R5_B, FN_SCIFB2_TXD_C, FN_TX2_B, FN_VI2_DATA1_VI2_B1_B,
  4897. 0, 0, 0, 0, 0, 0, 0, 0,
  4898. /* IP2_21_18 [4] */
  4899. FN_A8, FN_SCIFA1_RXD_B, FN_SSI_SCK5_B, FN_VI0_R4,
  4900. FN_VI0_R4_B, FN_SCIFB2_RXD_C, FN_RX2_B, FN_VI2_DATA0_VI2_B0_B,
  4901. 0, 0, 0, 0, 0, 0, 0, 0,
  4902. /* IP2_17_15 [3] */
  4903. FN_A7, FN_SCIFA1_SCK_B, FN_AUDIO_CLKOUT_B, FN_TPU0TO3,
  4904. 0, 0, 0, 0,
  4905. /* IP2_14_12 [3] */
  4906. FN_A6, FN_SCIFA1_RTS_N_B, FN_TPU0TO2, 0, 0, 0, 0, 0,
  4907. /* IP2_11_9 [3] */
  4908. FN_A5, FN_SCIFA1_TXD_B, FN_TPU0TO1, 0, 0, 0, 0, 0,
  4909. /* IP2_8_6 [3] */
  4910. FN_A4, FN_MSIOF1_TXD_B, FN_TPU0TO0, 0, 0, 0, 0, 0,
  4911. /* IP2_5_3 [3] */
  4912. FN_A3, FN_PWM6, FN_MSIOF1_SS2_B, 0, 0, 0, 0, 0,
  4913. /* IP2_2_0 [3] */
  4914. FN_A2, FN_PWM5, FN_MSIOF1_SS1_B, 0, 0, 0, 0, 0, }
  4915. },
  4916. { PINMUX_CFG_REG_VAR("IPSR3", 0xE606002C, 32,
  4917. 3, 3, 3, 3, 2, 3, 3, 4, 4, 4) {
  4918. /* IP3_31_29 [3] */
  4919. FN_A20, FN_SPCLK, FN_VI1_R3, FN_VI1_R3_B, FN_VI2_G4,
  4920. 0, 0, 0,
  4921. /* IP3_28_26 [3] */
  4922. FN_A19, FN_AD_NCS_N_B, FN_ATACS01_N, FN_EX_WAIT0_B,
  4923. 0, 0, 0, 0,
  4924. /* IP3_25_23 [3] */
  4925. FN_A18, FN_AD_CLK_B, FN_ATAG1_N, 0, 0, 0, 0, 0,
  4926. /* IP3_22_20 [3] */
  4927. FN_A17, FN_AD_DO_B, FN_ATADIR1_N, 0, 0, 0, 0, 0,
  4928. /* IP3_19_18 [2] */
  4929. FN_A16, FN_ATAWR1_N, 0, 0,
  4930. /* IP3_17_15 [3] */
  4931. FN_A15, FN_SCIFB2_SCK_B, FN_ATARD1_N, FN_MSIOF2_SS2,
  4932. 0, 0, 0, 0,
  4933. /* IP3_14_12 [3] */
  4934. FN_A14, FN_SCIFB2_TXD_B, FN_ATACS11_N, FN_MSIOF2_SS1,
  4935. 0, 0, 0, 0,
  4936. /* IP3_11_8 [4] */
  4937. FN_A13, FN_SCIFB2_RTS_N_B, FN_EX_WAIT2,
  4938. FN_MSIOF2_RXD, FN_VI1_R2, FN_VI1_R2_B, FN_VI2_G2,
  4939. FN_VI2_DATA5_VI2_B5_B, 0, 0, 0, 0, 0, 0, 0, 0,
  4940. /* IP3_7_4 [4] */
  4941. FN_A12, FN_SCIFB2_RXD_B, FN_MSIOF2_TXD, FN_VI1_R1,
  4942. FN_VI1_R1_B, FN_VI2_G1, FN_VI2_DATA4_VI2_B4_B,
  4943. 0, 0, 0, 0, 0, 0, 0, 0, 0,
  4944. /* IP3_3_0 [4] */
  4945. FN_A11, FN_SCIFB2_CTS_N_B, FN_MSIOF2_SCK, FN_VI1_R0,
  4946. FN_VI1_R0_B, FN_VI2_G0, FN_VI2_DATA3_VI2_B3_B, 0,
  4947. 0, 0, 0, 0, 0, 0, 0, 0, }
  4948. },
  4949. { PINMUX_CFG_REG_VAR("IPSR4", 0xE6060030, 32,
  4950. 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3) {
  4951. /* IP4_31_30 [2] */
  4952. 0, 0, 0, 0,
  4953. /* IP4_29_27 [3] */
  4954. FN_EX_CS2_N, FN_GPS_SIGN, FN_HRTS1_N_B,
  4955. FN_VI3_CLKENB, FN_VI1_G0, FN_VI1_G0_B, FN_VI2_R2, 0,
  4956. /* IP4_26_24 [3] */
  4957. FN_EX_CS1_N, FN_GPS_CLK, FN_HCTS1_N_B, FN_VI1_FIELD,
  4958. FN_VI1_FIELD_B, FN_VI2_R1, 0, 0,
  4959. /* IP4_23_21 [3] */
  4960. FN_EX_CS0_N, FN_HRX1_B, FN_VI1_G5, FN_VI1_G5_B, FN_VI2_R0,
  4961. FN_HTX0_B, FN_MSIOF0_SS1_B, 0,
  4962. /* IP4_20_18 [3] */
  4963. FN_CS1_N_A26, FN_SPEEDIN, FN_VI0_R7, FN_VI0_R7_B,
  4964. FN_VI2_CLK, FN_VI2_CLK_B, 0, 0,
  4965. /* IP4_17_15 [3] */
  4966. FN_CS0_N, FN_VI1_R6, FN_VI1_R6_B, FN_VI2_G3, FN_MSIOF0_SS2_B,
  4967. 0, 0, 0,
  4968. /* IP4_14_12 [3] */
  4969. FN_A25, FN_SSL, FN_VI1_G6, FN_VI1_G6_B, FN_VI2_FIELD,
  4970. FN_VI2_FIELD_B, 0, 0,
  4971. /* IP4_11_9 [3] */
  4972. FN_A24, FN_IO3, FN_VI1_R7, FN_VI1_R7_B, FN_VI2_CLKENB,
  4973. FN_VI2_CLKENB_B, 0, 0,
  4974. /* IP4_8_6 [3] */
  4975. FN_A23, FN_IO2, FN_VI1_G7, FN_VI1_G7_B, FN_VI2_G7, 0, 0, 0,
  4976. /* IP4_5_3 [3] */
  4977. FN_A22, FN_MISO_IO1, FN_VI1_R5, FN_VI1_R5_B, FN_VI2_G6, 0, 0, 0,
  4978. /* IP4_2_0 [3] */
  4979. FN_A21, FN_MOSI_IO0, FN_VI1_R4, FN_VI1_R4_B, FN_VI2_G5, 0, 0, 0,
  4980. }
  4981. },
  4982. { PINMUX_CFG_REG_VAR("IPSR5", 0xE6060034, 32,
  4983. 2, 3, 3, 3, 3, 3, 2, 3, 4, 3, 3) {
  4984. /* IP5_31_30 [2] */
  4985. 0, 0, 0, 0,
  4986. /* IP5_29_27 [3] */
  4987. FN_DREQ0_N, FN_VI1_HSYNC_N, FN_VI1_HSYNC_N_B, FN_VI2_R7,
  4988. FN_SSI_SCK78_C, FN_SSI_WS78_B, 0, 0,
  4989. /* IP5_26_24 [3] */
  4990. FN_EX_WAIT0, FN_IRQ3, FN_INTC_IRQ3_N,
  4991. FN_VI3_CLK, FN_SCIFA0_RTS_N_B, FN_HRX0_B,
  4992. FN_MSIOF0_SCK_B, 0,
  4993. /* IP5_23_21 [3] */
  4994. FN_WE1_N, FN_IERX, FN_CAN1_RX, FN_VI1_G4,
  4995. FN_VI1_G4_B, FN_VI2_R6, FN_SCIFA0_CTS_N_B, FN_IERX_C,
  4996. /* IP5_20_18 [3] */
  4997. FN_WE0_N, FN_IECLK, FN_CAN_CLK,
  4998. FN_VI2_VSYNC_N, FN_SCIFA0_TXD_B, FN_VI2_VSYNC_N_B, 0, 0,
  4999. /* IP5_17_15 [3] */
  5000. FN_RD_WR_N, FN_VI1_G3, FN_VI1_G3_B, FN_VI2_R5, FN_SCIFA0_RXD_B,
  5001. FN_INTC_IRQ4_N, 0, 0,
  5002. /* IP5_14_13 [2] */
  5003. FN_RD_N, FN_CAN0_TX, FN_SCIFA0_SCK_B, 0,
  5004. /* IP5_12_10 [3] */
  5005. FN_BS_N, FN_IETX, FN_HTX1_B, FN_CAN1_TX, FN_DRACK0, FN_IETX_C,
  5006. 0, 0,
  5007. /* IP5_9_6 [4] */
  5008. FN_EX_CS5_N, FN_CAN0_RX, FN_MSIOF1_RXD_B, FN_VI3_VSYNC_N,
  5009. FN_VI1_G2, FN_VI1_G2_B, FN_VI2_R4, FN_IIC1_SDA, FN_INTC_EN1_N,
  5010. FN_I2C1_SDA, 0, 0, 0, 0, 0, 0,
  5011. /* IP5_5_3 [3] */
  5012. FN_EX_CS4_N, FN_MSIOF1_SCK_B, FN_VI3_HSYNC_N,
  5013. FN_VI2_HSYNC_N, FN_IIC1_SCL, FN_VI2_HSYNC_N_B,
  5014. FN_INTC_EN0_N, FN_I2C1_SCL,
  5015. /* IP5_2_0 [3] */
  5016. FN_EX_CS3_N, FN_GPS_MAG, FN_VI3_FIELD, FN_VI1_G1, FN_VI1_G1_B,
  5017. FN_VI2_R3, 0, 0, }
  5018. },
  5019. { PINMUX_CFG_REG_VAR("IPSR6", 0xE6060038, 32,
  5020. 3, 3, 3, 3, 3, 3, 3, 2, 3, 3, 3) {
  5021. /* IP6_31_29 [3] */
  5022. FN_ETH_REF_CLK, 0, FN_HCTS0_N_E,
  5023. FN_STP_IVCXO27_1_B, FN_HRX0_F, 0, 0, 0,
  5024. /* IP6_28_26 [3] */
  5025. FN_ETH_LINK, 0, FN_HTX0_E,
  5026. FN_STP_IVCXO27_0_B, FN_SCIFB1_TXD_G, FN_TX1_E, 0, 0,
  5027. /* IP6_25_23 [3] */
  5028. FN_ETH_RXD1, 0, FN_HRX0_E, FN_STP_ISSYNC_0_B,
  5029. FN_TS_SCK0_D, FN_GLO_I1_C, FN_SCIFB1_RXD_G, FN_RX1_E,
  5030. /* IP6_22_20 [3] */
  5031. FN_ETH_RXD0, 0, FN_STP_ISEN_0_B, FN_TS_SDAT0_D,
  5032. FN_GLO_I0_C, FN_SCIFB1_SCK_G, FN_SCK1_E, 0,
  5033. /* IP6_19_17 [3] */
  5034. FN_ETH_RX_ER, 0, FN_STP_ISD_0_B,
  5035. FN_TS_SPSYNC0_D, FN_GLO_Q1_C, FN_IIC2_SDA_E, FN_I2C2_SDA_E, 0,
  5036. /* IP6_16_14 [3] */
  5037. FN_ETH_CRS_DV, 0, FN_STP_ISCLK_0_B,
  5038. FN_TS_SDEN0_D, FN_GLO_Q0_C, FN_IIC2_SCL_E,
  5039. FN_I2C2_SCL_E, 0,
  5040. /* IP6_13_11 [3] */
  5041. FN_DACK2, FN_IRQ2, FN_INTC_IRQ2_N,
  5042. FN_SSI_SDATA6_B, FN_HRTS0_N_B, FN_MSIOF0_RXD_B, 0, 0,
  5043. /* IP6_10_9 [2] */
  5044. FN_DREQ2_N, FN_HSCK1_B, FN_HCTS0_N_B, FN_MSIOF0_TXD_B,
  5045. /* IP6_8_6 [3] */
  5046. FN_DACK1, FN_IRQ1, FN_INTC_IRQ1_N, FN_SSI_WS6_B,
  5047. FN_SSI_SDATA8_C, 0, 0, 0,
  5048. /* IP6_5_3 [3] */
  5049. FN_DREQ1_N, FN_VI1_CLKENB, FN_VI1_CLKENB_B,
  5050. FN_SSI_SDATA7_C, FN_SSI_SCK78_B, 0, 0, 0,
  5051. /* IP6_2_0 [3] */
  5052. FN_DACK0, FN_IRQ0, FN_INTC_IRQ0_N, FN_SSI_SCK6_B,
  5053. FN_VI1_VSYNC_N, FN_VI1_VSYNC_N_B, FN_SSI_WS78_C, 0, }
  5054. },
  5055. { PINMUX_CFG_REG_VAR("IPSR7", 0xE606003C, 32,
  5056. 1, 2, 2, 2, 3, 3, 3, 3, 3, 2, 2, 3, 3) {
  5057. /* IP7_31 [1] */
  5058. 0, 0,
  5059. /* IP7_30_29 [2] */
  5060. FN_VI0_DATA0_VI0_B0, FN_ATACS10_N, FN_AVB_RXD2, 0,
  5061. /* IP7_28_27 [2] */
  5062. FN_VI0_CLK, FN_ATACS00_N, FN_AVB_RXD1, 0,
  5063. /* IP7_26_25 [2] */
  5064. FN_DU_DOTCLKIN1, FN_AUDIO_CLKC, FN_AUDIO_CLKOUT_C, 0,
  5065. /* IP7_24_22 [3] */
  5066. FN_PWM2, FN_PWMFSW0, FN_SCIFA2_RXD_C, FN_PCMWE_N, FN_IECLK_C,
  5067. 0, 0, 0,
  5068. /* IP7_21_19 [3] */
  5069. FN_PWM1, FN_SCIFA2_TXD_C, FN_STP_ISSYNC_1_B, FN_TS_SCK1_C,
  5070. FN_GLO_RFON_C, FN_PCMOE_N, 0, 0,
  5071. /* IP7_18_16 [3] */
  5072. FN_PWM0, FN_SCIFA2_SCK_C, FN_STP_ISEN_1_B, FN_TS_SDAT1_C,
  5073. FN_GLO_SS_C, 0, 0, 0,
  5074. /* IP7_15_13 [3] */
  5075. FN_ETH_MDC, 0, FN_STP_ISD_1_B,
  5076. FN_TS_SPSYNC1_C, FN_GLO_SDATA_C, 0, 0, 0,
  5077. /* IP7_12_10 [3] */
  5078. FN_ETH_TXD0, 0, FN_STP_ISCLK_1_B, FN_TS_SDEN1_C,
  5079. FN_GLO_SCLK_C, 0, 0, 0,
  5080. /* IP7_9_8 [2] */
  5081. FN_ETH_MAGIC, 0, FN_SIM0_RST_C, 0,
  5082. /* IP7_7_6 [2] */
  5083. FN_ETH_TX_EN, 0, FN_SIM0_CLK_C, FN_HRTS0_N_F,
  5084. /* IP7_5_3 [3] */
  5085. FN_ETH_TXD1, 0, FN_HTX0_F, FN_BPFCLK_G, 0, 0, 0, 0,
  5086. /* IP7_2_0 [3] */
  5087. FN_ETH_MDIO, 0, FN_HRTS0_N_E,
  5088. FN_SIM0_D_C, FN_HCTS0_N_F, 0, 0, 0, }
  5089. },
  5090. { PINMUX_CFG_REG_VAR("IPSR8", 0xE6060040, 32,
  5091. 1, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2,
  5092. 2, 2, 2, 2, 2, 2, 2) {
  5093. /* IP8_31 [1] */
  5094. 0, 0,
  5095. /* IP8_30_29 [2] */
  5096. FN_SD0_CMD, FN_SCIFB1_SCK_B, FN_VI1_DATA1_VI1_B1_B, 0,
  5097. /* IP8_28 [1] */
  5098. FN_SD0_CLK, FN_VI1_DATA0_VI1_B0_B,
  5099. /* IP8_27 [1] */
  5100. FN_VI1_DATA6_VI1_B6, FN_AVB_GTXREFCLK,
  5101. /* IP8_26 [1] */
  5102. FN_VI1_DATA5_VI1_B5, FN_AVB_PHY_INT,
  5103. /* IP8_25_24 [2] */
  5104. FN_VI1_DATA4_VI1_B4, FN_SCIFA1_RTS_N_D,
  5105. FN_AVB_MAGIC, 0,
  5106. /* IP8_23_22 [2] */
  5107. FN_VI1_DATA3_VI1_B3, FN_SCIFA1_CTS_N_D, FN_AVB_GTX_CLK, 0,
  5108. /* IP8_21_20 [2] */
  5109. FN_VI1_DATA2_VI1_B2, FN_SCIFA1_TXD_D, FN_AVB_MDIO, 0,
  5110. /* IP8_19_18 [2] */
  5111. FN_VI1_DATA1_VI1_B1, FN_SCIFA1_RXD_D, FN_AVB_MDC, 0,
  5112. /* IP8_17_16 [2] */
  5113. FN_VI1_DATA0_VI1_B0, FN_SCIFA1_SCK_D, FN_AVB_CRS, 0,
  5114. /* IP8_15_14 [2] */
  5115. FN_VI1_CLK, FN_AVB_RX_DV, 0, 0,
  5116. /* IP8_13_12 [2] */
  5117. FN_VI0_DATA7_VI0_B7, FN_AVB_RX_CLK, 0, 0,
  5118. /* IP8_11_10 [2] */
  5119. FN_VI0_DATA6_VI0_B6, FN_AVB_RX_ER, 0, 0,
  5120. /* IP8_9_8 [2] */
  5121. FN_VI0_DATA5_VI0_B5, FN_EX_WAIT1, FN_AVB_RXD7, 0,
  5122. /* IP8_7_6 [2] */
  5123. FN_VI0_DATA4_VI0_B4, FN_ATAG0_N, FN_AVB_RXD6, 0,
  5124. /* IP8_5_4 [2] */
  5125. FN_VI0_DATA3_VI0_B3, FN_ATADIR0_N, FN_AVB_RXD5, 0,
  5126. /* IP8_3_2 [2] */
  5127. FN_VI0_DATA2_VI0_B2, FN_ATAWR0_N, FN_AVB_RXD4, 0,
  5128. /* IP8_1_0 [2] */
  5129. FN_VI0_DATA1_VI0_B1, FN_ATARD0_N, FN_AVB_RXD3, 0, }
  5130. },
  5131. { PINMUX_CFG_REG_VAR("IPSR9", 0xE6060044, 32,
  5132. 4, 2, 2, 2, 2, 2, 2, 4, 4, 2, 2, 2, 2) {
  5133. /* IP9_31_28 [4] */
  5134. FN_SD1_CD, FN_MMC1_D6, FN_TS_SDEN1, FN_USB1_EXTP,
  5135. FN_GLO_SS, FN_VI0_CLK_B, FN_IIC2_SCL_D, FN_I2C2_SCL_D,
  5136. FN_SIM0_CLK_B, FN_VI3_CLK_B, 0, 0, 0, 0, 0, 0,
  5137. /* IP9_27_26 [2] */
  5138. FN_SD1_DAT3, FN_AVB_RXD0, 0, FN_SCIFB0_RTS_N_B,
  5139. /* IP9_25_24 [2] */
  5140. FN_SD1_DAT2, FN_AVB_COL, 0, FN_SCIFB0_CTS_N_B,
  5141. /* IP9_23_22 [2] */
  5142. FN_SD1_DAT1, FN_AVB_LINK, 0, FN_SCIFB0_TXD_B,
  5143. /* IP9_21_20 [2] */
  5144. FN_SD1_DAT0, FN_AVB_TX_CLK, 0, FN_SCIFB0_RXD_B,
  5145. /* IP9_19_18 [2] */
  5146. FN_SD1_CMD, FN_AVB_TX_ER, 0, FN_SCIFB0_SCK_B,
  5147. /* IP9_17_16 [2] */
  5148. FN_SD1_CLK, FN_AVB_TX_EN, 0, 0,
  5149. /* IP9_15_12 [4] */
  5150. FN_SD0_WP, FN_MMC0_D7, FN_TS_SPSYNC0_B, FN_USB0_IDIN,
  5151. FN_GLO_SDATA, FN_VI1_DATA7_VI1_B7_B, FN_IIC1_SDA_B,
  5152. FN_I2C1_SDA_B, FN_VI2_DATA7_VI2_B7_B, 0, 0, 0, 0, 0, 0, 0,
  5153. /* IP9_11_8 [4] */
  5154. FN_SD0_CD, FN_MMC0_D6, FN_TS_SDEN0_B, FN_USB0_EXTP,
  5155. FN_GLO_SCLK, FN_VI1_DATA6_VI1_B6_B, FN_IIC1_SCL_B,
  5156. FN_I2C1_SCL_B, FN_VI2_DATA6_VI2_B6_B, 0, 0, 0, 0, 0, 0, 0,
  5157. /* IP9_7_6 [2] */
  5158. FN_SD0_DAT3, FN_SCIFB1_RTS_N_B, FN_VI1_DATA5_VI1_B5_B, 0,
  5159. /* IP9_5_4 [2] */
  5160. FN_SD0_DAT2, FN_SCIFB1_CTS_N_B, FN_VI1_DATA4_VI1_B4_B, 0,
  5161. /* IP9_3_2 [2] */
  5162. FN_SD0_DAT1, FN_SCIFB1_TXD_B, FN_VI1_DATA3_VI1_B3_B, 0,
  5163. /* IP9_1_0 [2] */
  5164. FN_SD0_DAT0, FN_SCIFB1_RXD_B, FN_VI1_DATA2_VI1_B2_B, 0, }
  5165. },
  5166. { PINMUX_CFG_REG_VAR("IPSR10", 0xE6060048, 32,
  5167. 2, 4, 3, 4, 4, 4, 4, 3, 4) {
  5168. /* IP10_31_30 [2] */
  5169. 0, 0, 0, 0,
  5170. /* IP10_29_26 [4] */
  5171. FN_SD2_CD, FN_MMC0_D4, FN_TS_SDAT0_B, FN_USB2_EXTP, FN_GLO_I0,
  5172. FN_VI0_DATA6_VI0_B6_B, FN_HCTS0_N_D, FN_TS_SDAT1_B,
  5173. FN_GLO_I0_B, FN_VI3_DATA6_B, 0, 0, 0, 0, 0, 0,
  5174. /* IP10_25_23 [3] */
  5175. FN_SD2_DAT3, FN_MMC0_D3, FN_SIM0_RST, FN_VI0_DATA5_VI0_B5_B,
  5176. FN_HTX0_D, FN_TS_SPSYNC1_B, FN_GLO_Q1_B, FN_VI3_DATA5_B,
  5177. /* IP10_22_19 [4] */
  5178. FN_SD2_DAT2, FN_MMC0_D2, FN_BPFCLK_B, 0,
  5179. FN_VI0_DATA4_VI0_B4_B, FN_HRX0_D, FN_TS_SDEN1_B,
  5180. FN_GLO_Q0_B, FN_VI3_DATA4_B, 0, 0, 0, 0, 0, 0, 0,
  5181. /* IP10_18_15 [4] */
  5182. FN_SD2_DAT1, FN_MMC0_D1, FN_FMIN_B, 0,
  5183. FN_VI0_DATA3_VI0_B3_B, FN_SCIFB1_TXD_E, FN_TX1_D,
  5184. FN_TS_SCK0_C, FN_GLO_RFON_B, FN_VI3_DATA3_B,
  5185. 0, 0, 0, 0, 0, 0,
  5186. /* IP10_14_11 [4] */
  5187. FN_SD2_DAT0, FN_MMC0_D0, FN_FMCLK_B,
  5188. FN_VI0_DATA2_VI0_B2_B, FN_SCIFB1_RXD_E, FN_RX1_D,
  5189. FN_TS_SDAT0_C, FN_GLO_SS_B, FN_VI3_DATA2_B,
  5190. 0, 0, 0, 0, 0, 0, 0,
  5191. /* IP10_10_7 [4] */
  5192. FN_SD2_CMD, FN_MMC0_CMD, FN_SIM0_D,
  5193. FN_VI0_DATA1_VI0_B1_B, FN_SCIFB1_SCK_E, FN_SCK1_D,
  5194. FN_TS_SPSYNC0_C, FN_GLO_SDATA_B, FN_VI3_DATA1_B,
  5195. 0, 0, 0, 0, 0, 0, 0,
  5196. /* IP10_6_4 [3] */
  5197. FN_SD2_CLK, FN_MMC0_CLK, FN_SIM0_CLK,
  5198. FN_VI0_DATA0_VI0_B0_B, FN_TS_SDEN0_C, FN_GLO_SCLK_B,
  5199. FN_VI3_DATA0_B, 0,
  5200. /* IP10_3_0 [4] */
  5201. FN_SD1_WP, FN_MMC1_D7, FN_TS_SPSYNC1, FN_USB1_IDIN,
  5202. FN_GLO_RFON, FN_VI1_CLK_B, FN_IIC2_SDA_D, FN_I2C2_SDA_D,
  5203. FN_SIM0_D_B, 0, 0, 0, 0, 0, 0, 0, }
  5204. },
  5205. { PINMUX_CFG_REG_VAR("IPSR11", 0xE606004C, 32,
  5206. 2, 3, 3, 2, 4, 3, 2, 2, 2, 2, 2, 1, 4) {
  5207. /* IP11_31_30 [2] */
  5208. FN_SSI_SCK0129, FN_CAN_CLK_B, FN_MOUT0, 0,
  5209. /* IP11_29_27 [3] */
  5210. FN_MLB_DAT, 0, FN_SCIFB1_TXD_D, FN_TX1_C, FN_BPFCLK_C,
  5211. 0, 0, 0,
  5212. /* IP11_26_24 [3] */
  5213. FN_MLB_SIG, FN_SCIFB1_RXD_D, FN_RX1_C, FN_IIC2_SDA_B, FN_I2C2_SDA_B,
  5214. 0, 0, 0,
  5215. /* IP11_23_22 [2] */
  5216. FN_MLB_CLK, FN_IIC2_SCL_B, FN_I2C2_SCL_B, 0,
  5217. /* IP11_21_18 [4] */
  5218. FN_SD3_WP, FN_MMC1_D5, FN_TS_SCK1, FN_GLO_Q1, FN_FMIN_C,
  5219. 0, FN_FMIN_E, 0, FN_FMIN_F, 0, 0, 0, 0, 0, 0, 0,
  5220. /* IP11_17_15 [3] */
  5221. FN_SD3_CD, FN_MMC1_D4, FN_TS_SDAT1,
  5222. FN_VSP, FN_GLO_Q0, FN_SIM0_RST_B, 0, 0,
  5223. /* IP11_14_13 [2] */
  5224. FN_SD3_DAT3, FN_MMC1_D3, FN_SCKZ, 0,
  5225. /* IP11_12_11 [2] */
  5226. FN_SD3_DAT2, FN_MMC1_D2, FN_SDATA, 0,
  5227. /* IP11_10_9 [2] */
  5228. FN_SD3_DAT1, FN_MMC1_D1, FN_MDATA, 0,
  5229. /* IP11_8_7 [2] */
  5230. FN_SD3_DAT0, FN_MMC1_D0, FN_STM_N, 0,
  5231. /* IP11_6_5 [2] */
  5232. FN_SD3_CMD, FN_MMC1_CMD, FN_MTS_N, 0,
  5233. /* IP11_4 [1] */
  5234. FN_SD3_CLK, FN_MMC1_CLK,
  5235. /* IP11_3_0 [4] */
  5236. FN_SD2_WP, FN_MMC0_D5, FN_TS_SCK0_B, FN_USB2_IDIN,
  5237. FN_GLO_I1, FN_VI0_DATA7_VI0_B7_B, FN_HRTS0_N_D,
  5238. FN_TS_SCK1_B, FN_GLO_I1_B, FN_VI3_DATA7_B, 0, 0, 0, 0, 0, 0, }
  5239. },
  5240. { PINMUX_CFG_REG_VAR("IPSR12", 0xE6060050, 32,
  5241. 1, 3, 3, 2, 3, 3, 3, 3, 3, 2, 2, 2, 2) {
  5242. /* IP12_31 [1] */
  5243. 0, 0,
  5244. /* IP12_30_28 [3] */
  5245. FN_SSI_WS5, FN_SCIFB1_RXD, FN_IECLK_B,
  5246. FN_DU2_EXVSYNC_DU2_VSYNC, FN_QSTB_QHE,
  5247. FN_CAN_DEBUGOUT4, 0, 0,
  5248. /* IP12_27_25 [3] */
  5249. FN_SSI_SCK5, FN_SCIFB1_SCK,
  5250. FN_IERX_B, FN_DU2_EXHSYNC_DU2_HSYNC, FN_QSTH_QHS,
  5251. FN_CAN_DEBUGOUT3, 0, 0,
  5252. /* IP12_24_23 [2] */
  5253. FN_SSI_SDATA4, FN_STP_ISSYNC_0, FN_MSIOF1_RXD,
  5254. FN_CAN_DEBUGOUT2,
  5255. /* IP12_22_20 [3] */
  5256. FN_SSI_WS4, FN_STP_ISEN_0, FN_SCIFB0_RTS_N,
  5257. FN_MSIOF1_TXD, FN_SSI_WS5_C, FN_CAN_DEBUGOUT1, 0, 0,
  5258. /* IP12_19_17 [3] */
  5259. FN_SSI_SCK4, FN_STP_ISD_0, FN_SCIFB0_CTS_N,
  5260. FN_MSIOF1_SS2, FN_SSI_SCK5_C, FN_CAN_DEBUGOUT0, 0, 0,
  5261. /* IP12_16_14 [3] */
  5262. FN_SSI_SDATA3, FN_STP_ISCLK_0,
  5263. FN_SCIFB0_TXD, FN_MSIOF1_SS1, FN_CAN_TXCLK, 0, 0, 0,
  5264. /* IP12_13_11 [3] */
  5265. FN_SSI_WS34, FN_STP_IVCXO27_0, FN_SCIFB0_RXD, FN_MSIOF1_SYNC,
  5266. FN_CAN_STEP0, 0, 0, 0,
  5267. /* IP12_10_8 [3] */
  5268. FN_SSI_SCK34, FN_STP_OPWM_0, FN_SCIFB0_SCK,
  5269. FN_MSIOF1_SCK, FN_CAN_DEBUG_HW_TRIGGER, 0, 0, 0,
  5270. /* IP12_7_6 [2] */
  5271. FN_SSI_SDATA2, FN_CAN1_RX_B, FN_SSI_SCK1, FN_MOUT6,
  5272. /* IP12_5_4 [2] */
  5273. FN_SSI_SDATA1, FN_CAN1_TX_B, FN_MOUT5, 0,
  5274. /* IP12_3_2 [2] */
  5275. FN_SSI_SDATA0, FN_CAN0_RX_B, FN_MOUT2, 0,
  5276. /* IP12_1_0 [2] */
  5277. FN_SSI_WS0129, FN_CAN0_TX_B, FN_MOUT1, 0, }
  5278. },
  5279. { PINMUX_CFG_REG_VAR("IPSR13", 0xE6060054, 32,
  5280. 1, 2, 3, 3, 4, 3, 3, 3, 3, 4, 3) {
  5281. /* IP13_31 [1] */
  5282. 0, 0,
  5283. /* IP13_30_29 [2] */
  5284. FN_AUDIO_CLKA, FN_SCIFB2_RTS_N, FN_CAN_DEBUGOUT14, 0,
  5285. /* IP13_28_26 [3] */
  5286. FN_SSI_SDATA9, FN_STP_ISSYNC_1, FN_SCIFB2_CTS_N, FN_SSI_WS1,
  5287. FN_SSI_SDATA5_C, FN_CAN_DEBUGOUT13, 0, 0,
  5288. /* IP13_25_23 [3] */
  5289. FN_SSI_SDATA8, FN_STP_ISEN_1, FN_SCIFB2_TXD, FN_CAN0_TX_C,
  5290. FN_CAN_DEBUGOUT12, FN_SSI_SDATA8_B, 0, 0,
  5291. /* IP13_22_19 [4] */
  5292. FN_SSI_SDATA7, FN_STP_ISD_1, FN_SCIFB2_RXD, FN_SCIFA2_RTS_N,
  5293. FN_TCLK2, FN_QSTVA_QVS, FN_CAN_DEBUGOUT11, FN_BPFCLK_E,
  5294. 0, FN_SSI_SDATA7_B, FN_FMIN_G, 0, 0, 0, 0, 0,
  5295. /* IP13_18_16 [3] */
  5296. FN_SSI_WS78, FN_STP_ISCLK_1, FN_SCIFB2_SCK, FN_SCIFA2_CTS_N,
  5297. FN_DU2_DR7, FN_LCDOUT7, FN_CAN_DEBUGOUT10, 0,
  5298. /* IP13_15_13 [3] */
  5299. FN_SSI_SCK78, FN_STP_IVCXO27_1, FN_SCK1, FN_SCIFA1_SCK,
  5300. FN_DU2_DR6, FN_LCDOUT6, FN_CAN_DEBUGOUT9, 0,
  5301. /* IP13_12_10 [3] */
  5302. FN_SSI_SDATA6, FN_FMIN_D, 0, FN_DU2_DR5, FN_LCDOUT5,
  5303. FN_CAN_DEBUGOUT8, 0, 0,
  5304. /* IP13_9_7 [3] */
  5305. FN_SSI_WS6, FN_SCIFB1_RTS_N, FN_CAN0_TX_D, FN_DU2_DR4,
  5306. FN_LCDOUT4, FN_CAN_DEBUGOUT7, 0, 0,
  5307. /* IP13_6_3 [4] */
  5308. FN_SSI_SCK6, FN_SCIFB1_CTS_N, FN_BPFCLK_D, 0,
  5309. FN_DU2_DR3, FN_LCDOUT3, FN_CAN_DEBUGOUT6,
  5310. FN_BPFCLK_F, 0, 0, 0, 0, 0, 0, 0, 0,
  5311. /* IP13_2_0 [3] */
  5312. FN_SSI_SDATA5, FN_SCIFB1_TXD, FN_IETX_B, FN_DU2_DR2,
  5313. FN_LCDOUT2, FN_CAN_DEBUGOUT5, 0, 0, }
  5314. },
  5315. { PINMUX_CFG_REG_VAR("IPSR14", 0xE6060058, 32,
  5316. 1, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3) {
  5317. /* IP14_30 [1] */
  5318. 0, 0,
  5319. /* IP14_30_28 [3] */
  5320. FN_SCIFA1_RTS_N, FN_AD_NCS_N, FN_RTS1_N,
  5321. FN_MSIOF3_TXD, FN_DU1_DOTCLKOUT, FN_QSTVB_QVE,
  5322. FN_HRTS0_N_C, 0,
  5323. /* IP14_27_25 [3] */
  5324. FN_SCIFA1_CTS_N, FN_AD_CLK, FN_CTS1_N, FN_MSIOF3_RXD,
  5325. FN_DU0_DOTCLKOUT, FN_QCLK, 0, 0,
  5326. /* IP14_24_22 [3] */
  5327. FN_SCIFA1_TXD, FN_AD_DO, FN_TX1, FN_DU2_DG1,
  5328. FN_LCDOUT9, 0, 0, 0,
  5329. /* IP14_21_19 [3] */
  5330. FN_SCIFA1_RXD, FN_AD_DI, FN_RX1,
  5331. FN_DU2_EXODDF_DU2_ODDF_DISP_CDE, FN_QCPV_QDE, 0, 0, 0,
  5332. /* IP14_18_16 [3] */
  5333. FN_SCIFA0_RTS_N, FN_HRTS1_N, FN_RTS0_N,
  5334. FN_MSIOF3_SS1, FN_DU2_DG0, FN_LCDOUT8, FN_PWM1_B, 0,
  5335. /* IP14_15_12 [4] */
  5336. FN_SCIFA0_CTS_N, FN_HCTS1_N, FN_CTS0_N, FN_MSIOF3_SYNC,
  5337. FN_DU2_DG3, FN_LCDOUT11, FN_PWM0_B, FN_IIC1_SCL_C, FN_I2C1_SCL_C,
  5338. 0, 0, 0, 0, 0, 0, 0,
  5339. /* IP14_11_9 [3] */
  5340. FN_SCIFA0_TXD, FN_HTX1, FN_TX0, FN_DU2_DR1, FN_LCDOUT1,
  5341. 0, 0, 0,
  5342. /* IP14_8_6 [3] */
  5343. FN_SCIFA0_RXD, FN_HRX1, FN_RX0, FN_DU2_DR0, FN_LCDOUT0,
  5344. 0, 0, 0,
  5345. /* IP14_5_3 [3] */
  5346. FN_SCIFA0_SCK, FN_HSCK1, FN_SCK0, FN_MSIOF3_SS2, FN_DU2_DG2,
  5347. FN_LCDOUT10, FN_IIC1_SDA_C, FN_I2C1_SDA_C,
  5348. /* IP14_2_0 [3] */
  5349. FN_AUDIO_CLKB, FN_SCIF_CLK, FN_CAN0_RX_D,
  5350. FN_DVC_MUTE, FN_CAN0_RX_C, FN_CAN_DEBUGOUT15,
  5351. FN_REMOCON, 0, }
  5352. },
  5353. { PINMUX_CFG_REG_VAR("IPSR15", 0xE606005C, 32,
  5354. 2, 2, 2, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3) {
  5355. /* IP15_31_30 [2] */
  5356. 0, 0, 0, 0,
  5357. /* IP15_29_28 [2] */
  5358. FN_MSIOF0_TXD, FN_ADICHS1, FN_DU2_DG6, FN_LCDOUT14,
  5359. /* IP15_27_26 [2] */
  5360. FN_MSIOF0_SS1, FN_ADICHS0, FN_DU2_DG5, FN_LCDOUT13,
  5361. /* IP15_25_23 [3] */
  5362. FN_MSIOF0_SYNC, FN_TS_SCK0, FN_SSI_SCK2, FN_ADIDATA,
  5363. FN_DU2_DB7, FN_LCDOUT23, FN_HRX0_C, 0,
  5364. /* IP15_22_20 [3] */
  5365. FN_MSIOF0_SCK, FN_TS_SDAT0, FN_ADICLK,
  5366. FN_DU2_DB6, FN_LCDOUT22, 0, 0, 0,
  5367. /* IP15_19_18 [2] */
  5368. FN_HRTS0_N, FN_SSI_WS9, FN_DU2_DB5, FN_LCDOUT21,
  5369. /* IP15_17_16 [2] */
  5370. FN_HCTS0_N, FN_SSI_SCK9, FN_DU2_DB4, FN_LCDOUT20,
  5371. /* IP15_15_14 [2] */
  5372. FN_HTX0, FN_DU2_DB3, FN_LCDOUT19, 0,
  5373. /* IP15_13_12 [2] */
  5374. FN_HRX0, FN_DU2_DB2, FN_LCDOUT18, 0,
  5375. /* IP15_11_9 [3] */
  5376. FN_HSCK0, FN_TS_SDEN0, FN_DU2_DG4, FN_LCDOUT12, FN_HCTS0_N_C,
  5377. 0, 0, 0,
  5378. /* IP15_8_6 [3] */
  5379. FN_SCIFA2_TXD, FN_BPFCLK, FN_RX2, FN_DU2_DB1, FN_LCDOUT17,
  5380. FN_IIC2_SDA, FN_I2C2_SDA, 0,
  5381. /* IP15_5_3 [3] */
  5382. FN_SCIFA2_RXD, FN_FMIN, FN_TX2, FN_DU2_DB0, FN_LCDOUT16,
  5383. FN_IIC2_SCL, FN_I2C2_SCL, 0,
  5384. /* IP15_2_0 [3] */
  5385. FN_SCIFA2_SCK, FN_FMCLK, FN_SCK2, FN_MSIOF3_SCK, FN_DU2_DG7,
  5386. FN_LCDOUT15, FN_SCIF_CLK_B, 0, }
  5387. },
  5388. { PINMUX_CFG_REG_VAR("IPSR16", 0xE6060160, 32,
  5389. 4, 4, 4, 4, 4, 4, 1, 1, 3, 3) {
  5390. /* IP16_31_28 [4] */
  5391. 0, 0, 0, 0, 0, 0, 0, 0,
  5392. 0, 0, 0, 0, 0, 0, 0, 0,
  5393. /* IP16_27_24 [4] */
  5394. 0, 0, 0, 0, 0, 0, 0, 0,
  5395. 0, 0, 0, 0, 0, 0, 0, 0,
  5396. /* IP16_23_20 [4] */
  5397. 0, 0, 0, 0, 0, 0, 0, 0,
  5398. 0, 0, 0, 0, 0, 0, 0, 0,
  5399. /* IP16_19_16 [4] */
  5400. 0, 0, 0, 0, 0, 0, 0, 0,
  5401. 0, 0, 0, 0, 0, 0, 0, 0,
  5402. /* IP16_15_12 [4] */
  5403. 0, 0, 0, 0, 0, 0, 0, 0,
  5404. 0, 0, 0, 0, 0, 0, 0, 0,
  5405. /* IP16_11_8 [4] */
  5406. 0, 0, 0, 0, 0, 0, 0, 0,
  5407. 0, 0, 0, 0, 0, 0, 0, 0,
  5408. /* IP16_7 [1] */
  5409. FN_USB1_OVC, FN_TCLK1_B,
  5410. /* IP16_6 [1] */
  5411. FN_USB1_PWEN, FN_AUDIO_CLKOUT_D,
  5412. /* IP16_5_3 [3] */
  5413. FN_MSIOF0_RXD, FN_TS_SPSYNC0, FN_SSI_WS2,
  5414. FN_ADICS_SAMP, FN_DU2_CDE, FN_QPOLB, FN_SCIFA2_RXD_B, 0,
  5415. /* IP16_2_0 [3] */
  5416. FN_MSIOF0_SS2, FN_AUDIO_CLKOUT, FN_ADICHS2,
  5417. FN_DU2_DISP, FN_QPOLA, FN_HTX0_C, FN_SCIFA2_TXD_B, 0, }
  5418. },
  5419. { PINMUX_CFG_REG_VAR("MOD_SEL", 0xE6060090, 32,
  5420. 3, 2, 2, 3, 2, 1, 1, 1, 2, 1,
  5421. 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1) {
  5422. /* SEL_SCIF1 [3] */
  5423. FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2, FN_SEL_SCIF1_3,
  5424. FN_SEL_SCIF1_4, 0, 0, 0,
  5425. /* SEL_SCIFB [2] */
  5426. FN_SEL_SCIFB_0, FN_SEL_SCIFB_1, FN_SEL_SCIFB_2, 0,
  5427. /* SEL_SCIFB2 [2] */
  5428. FN_SEL_SCIFB2_0, FN_SEL_SCIFB2_1, FN_SEL_SCIFB2_2, 0,
  5429. /* SEL_SCIFB1 [3] */
  5430. FN_SEL_SCIFB1_0, FN_SEL_SCIFB1_1, FN_SEL_SCIFB1_2,
  5431. FN_SEL_SCIFB1_3, FN_SEL_SCIFB1_4, FN_SEL_SCIFB1_5,
  5432. FN_SEL_SCIFB1_6, 0,
  5433. /* SEL_SCIFA1 [2] */
  5434. FN_SEL_SCIFA1_0, FN_SEL_SCIFA1_1, FN_SEL_SCIFA1_2,
  5435. FN_SEL_SCIFA1_3,
  5436. /* SEL_SCIF0 [1] */
  5437. FN_SEL_SCIF0_0, FN_SEL_SCIF0_1,
  5438. /* SEL_SCIFA [1] */
  5439. FN_SEL_SCFA_0, FN_SEL_SCFA_1,
  5440. /* SEL_SOF1 [1] */
  5441. FN_SEL_SOF1_0, FN_SEL_SOF1_1,
  5442. /* SEL_SSI7 [2] */
  5443. FN_SEL_SSI7_0, FN_SEL_SSI7_1, FN_SEL_SSI7_2, 0,
  5444. /* SEL_SSI6 [1] */
  5445. FN_SEL_SSI6_0, FN_SEL_SSI6_1,
  5446. /* SEL_SSI5 [2] */
  5447. FN_SEL_SSI5_0, FN_SEL_SSI5_1, FN_SEL_SSI5_2, 0,
  5448. /* SEL_VI3 [1] */
  5449. FN_SEL_VI3_0, FN_SEL_VI3_1,
  5450. /* SEL_VI2 [1] */
  5451. FN_SEL_VI2_0, FN_SEL_VI2_1,
  5452. /* SEL_VI1 [1] */
  5453. FN_SEL_VI1_0, FN_SEL_VI1_1,
  5454. /* SEL_VI0 [1] */
  5455. FN_SEL_VI0_0, FN_SEL_VI0_1,
  5456. /* SEL_TSIF1 [2] */
  5457. FN_SEL_TSIF1_0, FN_SEL_TSIF1_1, FN_SEL_TSIF1_2, 0,
  5458. /* RESERVED [1] */
  5459. 0, 0,
  5460. /* SEL_LBS [1] */
  5461. FN_SEL_LBS_0, FN_SEL_LBS_1,
  5462. /* SEL_TSIF0 [2] */
  5463. FN_SEL_TSIF0_0, FN_SEL_TSIF0_1, FN_SEL_TSIF0_2, FN_SEL_TSIF0_3,
  5464. /* SEL_SOF3 [1] */
  5465. FN_SEL_SOF3_0, FN_SEL_SOF3_1,
  5466. /* SEL_SOF0 [1] */
  5467. FN_SEL_SOF0_0, FN_SEL_SOF0_1, }
  5468. },
  5469. { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xE6060094, 32,
  5470. 3, 1, 1, 1, 2, 1, 2, 1, 2,
  5471. 1, 1, 1, 3, 3, 2, 3, 2, 2) {
  5472. /* RESERVED [3] */
  5473. 0, 0, 0, 0, 0, 0, 0, 0,
  5474. /* SEL_TMU1 [1] */
  5475. FN_SEL_TMU1_0, FN_SEL_TMU1_1,
  5476. /* SEL_HSCIF1 [1] */
  5477. FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1,
  5478. /* SEL_SCIFCLK [1] */
  5479. FN_SEL_SCIFCLK_0, FN_SEL_SCIFCLK_1,
  5480. /* SEL_CAN0 [2] */
  5481. FN_SEL_CAN0_0, FN_SEL_CAN0_1, FN_SEL_CAN0_2, FN_SEL_CAN0_3,
  5482. /* SEL_CANCLK [1] */
  5483. FN_SEL_CANCLK_0, FN_SEL_CANCLK_1,
  5484. /* SEL_SCIFA2 [2] */
  5485. FN_SEL_SCIFA2_0, FN_SEL_SCIFA2_1, FN_SEL_SCIFA2_2, 0,
  5486. /* SEL_CAN1 [1] */
  5487. FN_SEL_CAN1_0, FN_SEL_CAN1_1,
  5488. /* RESERVED [2] */
  5489. 0, 0, 0, 0,
  5490. /* SEL_SCIF2 [1] */
  5491. FN_SEL_SCIF2_0, FN_SEL_SCIF2_1,
  5492. /* SEL_ADI [1] */
  5493. FN_SEL_ADI_0, FN_SEL_ADI_1,
  5494. /* SEL_SSP [1] */
  5495. FN_SEL_SSP_0, FN_SEL_SSP_1,
  5496. /* SEL_FM [3] */
  5497. FN_SEL_FM_0, FN_SEL_FM_1, FN_SEL_FM_2, FN_SEL_FM_3,
  5498. FN_SEL_FM_4, FN_SEL_FM_5, FN_SEL_FM_6, 0,
  5499. /* SEL_HSCIF0 [3] */
  5500. FN_SEL_HSCIF0_0, FN_SEL_HSCIF0_1, FN_SEL_HSCIF0_2,
  5501. FN_SEL_HSCIF0_3, FN_SEL_HSCIF0_4, FN_SEL_HSCIF0_5, 0, 0,
  5502. /* SEL_GPS [2] */
  5503. FN_SEL_GPS_0, FN_SEL_GPS_1, FN_SEL_GPS_2, 0,
  5504. /* RESERVED [3] */
  5505. 0, 0, 0, 0, 0, 0, 0, 0,
  5506. /* SEL_SIM [2] */
  5507. FN_SEL_SIM_0, FN_SEL_SIM_1, FN_SEL_SIM_2, 0,
  5508. /* SEL_SSI8 [2] */
  5509. FN_SEL_SSI8_0, FN_SEL_SSI8_1, FN_SEL_SSI8_2, 0, }
  5510. },
  5511. { PINMUX_CFG_REG_VAR("MOD_SEL3", 0xE6060098, 32,
  5512. 1, 1, 2, 4, 4, 2, 2,
  5513. 4, 2, 3, 2, 3, 2) {
  5514. /* SEL_IICDVFS [1] */
  5515. FN_SEL_IICDVFS_0, FN_SEL_IICDVFS_1,
  5516. /* SEL_IIC0 [1] */
  5517. FN_SEL_IIC0_0, FN_SEL_IIC0_1,
  5518. /* RESERVED [2] */
  5519. 0, 0, 0, 0,
  5520. /* RESERVED [4] */
  5521. 0, 0, 0, 0, 0, 0, 0, 0,
  5522. 0, 0, 0, 0, 0, 0, 0, 0,
  5523. /* RESERVED [4] */
  5524. 0, 0, 0, 0, 0, 0, 0, 0,
  5525. 0, 0, 0, 0, 0, 0, 0, 0,
  5526. /* RESERVED [2] */
  5527. 0, 0, 0, 0,
  5528. /* SEL_IEB [2] */
  5529. FN_SEL_IEB_0, FN_SEL_IEB_1, FN_SEL_IEB_2, 0,
  5530. /* RESERVED [4] */
  5531. 0, 0, 0, 0, 0, 0, 0, 0,
  5532. 0, 0, 0, 0, 0, 0, 0, 0,
  5533. /* RESERVED [2] */
  5534. 0, 0, 0, 0,
  5535. /* SEL_IIC2 [3] */
  5536. FN_SEL_IIC2_0, FN_SEL_IIC2_1, FN_SEL_IIC2_2, FN_SEL_IIC2_3,
  5537. FN_SEL_IIC2_4, 0, 0, 0,
  5538. /* SEL_IIC1 [2] */
  5539. FN_SEL_IIC1_0, FN_SEL_IIC1_1, FN_SEL_IIC1_2, 0,
  5540. /* SEL_I2C2 [3] */
  5541. FN_SEL_I2C2_0, FN_SEL_I2C2_1, FN_SEL_I2C2_2, FN_SEL_I2C2_3,
  5542. FN_SEL_I2C2_4, 0, 0, 0,
  5543. /* SEL_I2C1 [2] */
  5544. FN_SEL_I2C1_0, FN_SEL_I2C1_1, FN_SEL_I2C1_2, 0, }
  5545. },
  5546. { },
  5547. };
  5548. static int r8a7790_pin_to_pocctrl(struct sh_pfc *pfc, unsigned int pin, u32 *pocctrl)
  5549. {
  5550. if (pin < RCAR_GP_PIN(3, 0) || pin > RCAR_GP_PIN(3, 31))
  5551. return -EINVAL;
  5552. *pocctrl = 0xe606008c;
  5553. return 31 - (pin & 0x1f);
  5554. }
  5555. static const struct sh_pfc_soc_operations r8a7790_pinmux_ops = {
  5556. .pin_to_pocctrl = r8a7790_pin_to_pocctrl,
  5557. };
  5558. const struct sh_pfc_soc_info r8a7790_pinmux_info = {
  5559. .name = "r8a77900_pfc",
  5560. .ops = &r8a7790_pinmux_ops,
  5561. .unlock_reg = 0xe6060000, /* PMMR */
  5562. .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
  5563. .pins = pinmux_pins,
  5564. .nr_pins = ARRAY_SIZE(pinmux_pins),
  5565. .groups = pinmux_groups,
  5566. .nr_groups = ARRAY_SIZE(pinmux_groups),
  5567. .functions = pinmux_functions,
  5568. .nr_functions = ARRAY_SIZE(pinmux_functions),
  5569. .cfg_regs = pinmux_config_regs,
  5570. .pinmux_data = pinmux_data,
  5571. .pinmux_data_size = ARRAY_SIZE(pinmux_data),
  5572. };