pfc-r8a77965.c 172 KB

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