pfc-sh73a0.c 122 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * sh73a0 processor support - PFC hardware block
  4. *
  5. * Copyright (C) 2010 Renesas Solutions Corp.
  6. * Copyright (C) 2010 NISHIMOTO Hiroki
  7. */
  8. #include <linux/io.h>
  9. #include <linux/kernel.h>
  10. #include <linux/module.h>
  11. #include <linux/pinctrl/pinconf-generic.h>
  12. #include <linux/regulator/driver.h>
  13. #include <linux/regulator/machine.h>
  14. #include <linux/slab.h>
  15. #include "sh_pfc.h"
  16. #define CPU_ALL_PORT(fn, pfx, sfx) \
  17. PORT_10(0, fn, pfx, sfx), PORT_90(0, fn, pfx, sfx), \
  18. PORT_10(100, fn, pfx##10, sfx), \
  19. PORT_1(110, fn, pfx##110, sfx), PORT_1(111, fn, pfx##111, sfx), \
  20. PORT_1(112, fn, pfx##112, sfx), PORT_1(113, fn, pfx##113, sfx), \
  21. PORT_1(114, fn, pfx##114, sfx), PORT_1(115, fn, pfx##115, sfx), \
  22. PORT_1(116, fn, pfx##116, sfx), PORT_1(117, fn, pfx##117, sfx), \
  23. PORT_1(118, fn, pfx##118, sfx), \
  24. PORT_1(128, fn, pfx##128, sfx), PORT_1(129, fn, pfx##129, sfx), \
  25. PORT_10(130, fn, pfx##13, sfx), PORT_10(140, fn, pfx##14, sfx), \
  26. PORT_10(150, fn, pfx##15, sfx), \
  27. PORT_1(160, fn, pfx##160, sfx), PORT_1(161, fn, pfx##161, sfx), \
  28. PORT_1(162, fn, pfx##162, sfx), PORT_1(163, fn, pfx##163, sfx), \
  29. PORT_1(164, fn, pfx##164, sfx), \
  30. PORT_1(192, fn, pfx##192, sfx), PORT_1(193, fn, pfx##193, sfx), \
  31. PORT_1(194, fn, pfx##194, sfx), PORT_1(195, fn, pfx##195, sfx), \
  32. PORT_1(196, fn, pfx##196, sfx), PORT_1(197, fn, pfx##197, sfx), \
  33. PORT_1(198, fn, pfx##198, sfx), PORT_1(199, fn, pfx##199, sfx), \
  34. PORT_10(200, fn, pfx##20, sfx), PORT_10(210, fn, pfx##21, sfx), \
  35. PORT_10(220, fn, pfx##22, sfx), PORT_10(230, fn, pfx##23, sfx), \
  36. PORT_10(240, fn, pfx##24, sfx), PORT_10(250, fn, pfx##25, sfx), \
  37. PORT_10(260, fn, pfx##26, sfx), PORT_10(270, fn, pfx##27, sfx), \
  38. PORT_1(280, fn, pfx##280, sfx), PORT_1(281, fn, pfx##281, sfx), \
  39. PORT_1(282, fn, pfx##282, sfx), \
  40. PORT_1(288, fn, pfx##288, sfx), PORT_1(289, fn, pfx##289, sfx), \
  41. PORT_10(290, fn, pfx##29, sfx), PORT_10(300, fn, pfx##30, sfx)
  42. #define CPU_ALL_NOGP(fn) \
  43. PIN_NOGP(A11, "F26", fn)
  44. enum {
  45. PINMUX_RESERVED = 0,
  46. PINMUX_DATA_BEGIN,
  47. PORT_ALL(DATA), /* PORT0_DATA -> PORT309_DATA */
  48. PINMUX_DATA_END,
  49. PINMUX_INPUT_BEGIN,
  50. PORT_ALL(IN), /* PORT0_IN -> PORT309_IN */
  51. PINMUX_INPUT_END,
  52. PINMUX_OUTPUT_BEGIN,
  53. PORT_ALL(OUT), /* PORT0_OUT -> PORT309_OUT */
  54. PINMUX_OUTPUT_END,
  55. PINMUX_FUNCTION_BEGIN,
  56. PORT_ALL(FN_IN), /* PORT0_FN_IN -> PORT309_FN_IN */
  57. PORT_ALL(FN_OUT), /* PORT0_FN_OUT -> PORT309_FN_OUT */
  58. PORT_ALL(FN0), /* PORT0_FN0 -> PORT309_FN0 */
  59. PORT_ALL(FN1), /* PORT0_FN1 -> PORT309_FN1 */
  60. PORT_ALL(FN2), /* PORT0_FN2 -> PORT309_FN2 */
  61. PORT_ALL(FN3), /* PORT0_FN3 -> PORT309_FN3 */
  62. PORT_ALL(FN4), /* PORT0_FN4 -> PORT309_FN4 */
  63. PORT_ALL(FN5), /* PORT0_FN5 -> PORT309_FN5 */
  64. PORT_ALL(FN6), /* PORT0_FN6 -> PORT309_FN6 */
  65. PORT_ALL(FN7), /* PORT0_FN7 -> PORT309_FN7 */
  66. MSEL2CR_MSEL19_0, MSEL2CR_MSEL19_1,
  67. MSEL2CR_MSEL18_0, MSEL2CR_MSEL18_1,
  68. MSEL2CR_MSEL17_0, MSEL2CR_MSEL17_1,
  69. MSEL2CR_MSEL16_0, MSEL2CR_MSEL16_1,
  70. MSEL2CR_MSEL14_0, MSEL2CR_MSEL14_1,
  71. MSEL2CR_MSEL13_0, MSEL2CR_MSEL13_1,
  72. MSEL2CR_MSEL12_0, MSEL2CR_MSEL12_1,
  73. MSEL2CR_MSEL11_0, MSEL2CR_MSEL11_1,
  74. MSEL2CR_MSEL10_0, MSEL2CR_MSEL10_1,
  75. MSEL2CR_MSEL9_0, MSEL2CR_MSEL9_1,
  76. MSEL2CR_MSEL8_0, MSEL2CR_MSEL8_1,
  77. MSEL2CR_MSEL7_0, MSEL2CR_MSEL7_1,
  78. MSEL2CR_MSEL6_0, MSEL2CR_MSEL6_1,
  79. MSEL2CR_MSEL4_0, MSEL2CR_MSEL4_1,
  80. MSEL2CR_MSEL5_0, MSEL2CR_MSEL5_1,
  81. MSEL2CR_MSEL3_0, MSEL2CR_MSEL3_1,
  82. MSEL2CR_MSEL2_0, MSEL2CR_MSEL2_1,
  83. MSEL2CR_MSEL1_0, MSEL2CR_MSEL1_1,
  84. MSEL2CR_MSEL0_0, MSEL2CR_MSEL0_1,
  85. MSEL3CR_MSEL28_0, MSEL3CR_MSEL28_1,
  86. MSEL3CR_MSEL15_0, MSEL3CR_MSEL15_1,
  87. MSEL3CR_MSEL11_0, MSEL3CR_MSEL11_1,
  88. MSEL3CR_MSEL9_0, MSEL3CR_MSEL9_1,
  89. MSEL3CR_MSEL6_0, MSEL3CR_MSEL6_1,
  90. MSEL3CR_MSEL2_0, MSEL3CR_MSEL2_1,
  91. MSEL4CR_MSEL29_0, MSEL4CR_MSEL29_1,
  92. MSEL4CR_MSEL27_0, MSEL4CR_MSEL27_1,
  93. MSEL4CR_MSEL26_0, MSEL4CR_MSEL26_1,
  94. MSEL4CR_MSEL22_0, MSEL4CR_MSEL22_1,
  95. MSEL4CR_MSEL21_0, MSEL4CR_MSEL21_1,
  96. MSEL4CR_MSEL20_0, MSEL4CR_MSEL20_1,
  97. MSEL4CR_MSEL19_0, MSEL4CR_MSEL19_1,
  98. MSEL4CR_MSEL15_0, MSEL4CR_MSEL15_1,
  99. MSEL4CR_MSEL13_0, MSEL4CR_MSEL13_1,
  100. MSEL4CR_MSEL12_0, MSEL4CR_MSEL12_1,
  101. MSEL4CR_MSEL11_0, MSEL4CR_MSEL11_1,
  102. MSEL4CR_MSEL10_0, MSEL4CR_MSEL10_1,
  103. MSEL4CR_MSEL9_0, MSEL4CR_MSEL9_1,
  104. MSEL4CR_MSEL8_0, MSEL4CR_MSEL8_1,
  105. MSEL4CR_MSEL7_0, MSEL4CR_MSEL7_1,
  106. MSEL4CR_MSEL4_0, MSEL4CR_MSEL4_1,
  107. MSEL4CR_MSEL1_0, MSEL4CR_MSEL1_1,
  108. PINMUX_FUNCTION_END,
  109. PINMUX_MARK_BEGIN,
  110. /* Hardware manual Table 25-1 (Function 0-7) */
  111. VBUS_0_MARK,
  112. GPI0_MARK,
  113. GPI1_MARK,
  114. GPI2_MARK,
  115. GPI3_MARK,
  116. GPI4_MARK,
  117. GPI5_MARK,
  118. GPI6_MARK,
  119. GPI7_MARK,
  120. SCIFA7_RXD_MARK,
  121. SCIFA7_CTS__MARK,
  122. GPO7_MARK, MFG0_OUT2_MARK,
  123. GPO6_MARK, MFG1_OUT2_MARK,
  124. GPO5_MARK, SCIFA0_SCK_MARK, FSICOSLDT3_MARK, PORT16_VIO_CKOR_MARK,
  125. SCIFA0_TXD_MARK,
  126. SCIFA7_TXD_MARK,
  127. SCIFA7_RTS__MARK, PORT19_VIO_CKO2_MARK,
  128. GPO0_MARK,
  129. GPO1_MARK,
  130. GPO2_MARK, STATUS0_MARK,
  131. GPO3_MARK, STATUS1_MARK,
  132. GPO4_MARK, STATUS2_MARK,
  133. VINT_MARK,
  134. TCKON_MARK,
  135. XDVFS1_MARK, PORT27_I2C_SCL2_MARK, PORT27_I2C_SCL3_MARK, \
  136. MFG0_OUT1_MARK, PORT27_IROUT_MARK,
  137. XDVFS2_MARK, PORT28_I2C_SDA2_MARK, PORT28_I2C_SDA3_MARK, \
  138. PORT28_TPU1TO1_MARK,
  139. SIM_RST_MARK, PORT29_TPU1TO1_MARK,
  140. SIM_CLK_MARK, PORT30_VIO_CKOR_MARK,
  141. SIM_D_MARK, PORT31_IROUT_MARK,
  142. SCIFA4_TXD_MARK,
  143. SCIFA4_RXD_MARK, XWUP_MARK,
  144. SCIFA4_RTS__MARK,
  145. SCIFA4_CTS__MARK,
  146. FSIBOBT_MARK, FSIBIBT_MARK,
  147. FSIBOLR_MARK, FSIBILR_MARK,
  148. FSIBOSLD_MARK,
  149. FSIBISLD_MARK,
  150. VACK_MARK,
  151. XTAL1L_MARK,
  152. SCIFA0_RTS__MARK, FSICOSLDT2_MARK,
  153. SCIFA0_RXD_MARK,
  154. SCIFA0_CTS__MARK, FSICOSLDT1_MARK,
  155. FSICOBT_MARK, FSICIBT_MARK, FSIDOBT_MARK, FSIDIBT_MARK,
  156. FSICOLR_MARK, FSICILR_MARK, FSIDOLR_MARK, FSIDILR_MARK,
  157. FSICOSLD_MARK, PORT47_FSICSPDIF_MARK,
  158. FSICISLD_MARK, FSIDISLD_MARK,
  159. FSIACK_MARK, PORT49_IRDA_OUT_MARK, PORT49_IROUT_MARK, FSIAOMC_MARK,
  160. FSIAOLR_MARK, BBIF2_TSYNC2_MARK, TPU2TO2_MARK, FSIAILR_MARK,
  161. FSIAOBT_MARK, BBIF2_TSCK2_MARK, TPU2TO3_MARK, FSIAIBT_MARK,
  162. FSIAOSLD_MARK, BBIF2_TXD2_MARK,
  163. FSIASPDIF_MARK, PORT53_IRDA_IN_MARK, TPU3TO3_MARK, FSIBSPDIF_MARK, \
  164. PORT53_FSICSPDIF_MARK,
  165. FSIBCK_MARK, PORT54_IRDA_FIRSEL_MARK, TPU3TO2_MARK, FSIBOMC_MARK, \
  166. FSICCK_MARK, FSICOMC_MARK,
  167. FSIAISLD_MARK, TPU0TO0_MARK,
  168. A0_MARK, BS__MARK,
  169. A12_MARK, PORT58_KEYOUT7_MARK, TPU4TO2_MARK,
  170. A13_MARK, PORT59_KEYOUT6_MARK, TPU0TO1_MARK,
  171. A14_MARK, KEYOUT5_MARK,
  172. A15_MARK, KEYOUT4_MARK,
  173. A16_MARK, KEYOUT3_MARK, MSIOF0_SS1_MARK,
  174. A17_MARK, KEYOUT2_MARK, MSIOF0_TSYNC_MARK,
  175. A18_MARK, KEYOUT1_MARK, MSIOF0_TSCK_MARK,
  176. A19_MARK, KEYOUT0_MARK, MSIOF0_TXD_MARK,
  177. A20_MARK, KEYIN0_MARK, MSIOF0_RSCK_MARK,
  178. A21_MARK, KEYIN1_MARK, MSIOF0_RSYNC_MARK,
  179. A22_MARK, KEYIN2_MARK, MSIOF0_MCK0_MARK,
  180. A23_MARK, KEYIN3_MARK, MSIOF0_MCK1_MARK,
  181. A24_MARK, KEYIN4_MARK, MSIOF0_RXD_MARK,
  182. A25_MARK, KEYIN5_MARK, MSIOF0_SS2_MARK,
  183. A26_MARK, KEYIN6_MARK,
  184. KEYIN7_MARK,
  185. D0_NAF0_MARK,
  186. D1_NAF1_MARK,
  187. D2_NAF2_MARK,
  188. D3_NAF3_MARK,
  189. D4_NAF4_MARK,
  190. D5_NAF5_MARK,
  191. D6_NAF6_MARK,
  192. D7_NAF7_MARK,
  193. D8_NAF8_MARK,
  194. D9_NAF9_MARK,
  195. D10_NAF10_MARK,
  196. D11_NAF11_MARK,
  197. D12_NAF12_MARK,
  198. D13_NAF13_MARK,
  199. D14_NAF14_MARK,
  200. D15_NAF15_MARK,
  201. CS4__MARK,
  202. CS5A__MARK, PORT91_RDWR_MARK,
  203. CS5B__MARK, FCE1__MARK,
  204. CS6B__MARK, DACK0_MARK,
  205. FCE0__MARK, CS6A__MARK,
  206. WAIT__MARK, DREQ0_MARK,
  207. RD__FSC_MARK,
  208. WE0__FWE_MARK, RDWR_FWE_MARK,
  209. WE1__MARK,
  210. FRB_MARK,
  211. CKO_MARK,
  212. NBRSTOUT__MARK,
  213. NBRST__MARK,
  214. BBIF2_TXD_MARK,
  215. BBIF2_RXD_MARK,
  216. BBIF2_SYNC_MARK,
  217. BBIF2_SCK_MARK,
  218. SCIFA3_CTS__MARK, MFG3_IN2_MARK,
  219. SCIFA3_RXD_MARK, MFG3_IN1_MARK,
  220. BBIF1_SS2_MARK, SCIFA3_RTS__MARK, MFG3_OUT1_MARK,
  221. SCIFA3_TXD_MARK,
  222. HSI_RX_DATA_MARK, BBIF1_RXD_MARK,
  223. HSI_TX_WAKE_MARK, BBIF1_TSCK_MARK,
  224. HSI_TX_DATA_MARK, BBIF1_TSYNC_MARK,
  225. HSI_TX_READY_MARK, BBIF1_TXD_MARK,
  226. HSI_RX_READY_MARK, BBIF1_RSCK_MARK, PORT115_I2C_SCL2_MARK, \
  227. PORT115_I2C_SCL3_MARK,
  228. HSI_RX_WAKE_MARK, BBIF1_RSYNC_MARK, PORT116_I2C_SDA2_MARK, \
  229. PORT116_I2C_SDA3_MARK,
  230. HSI_RX_FLAG_MARK, BBIF1_SS1_MARK, BBIF1_FLOW_MARK,
  231. HSI_TX_FLAG_MARK,
  232. VIO_VD_MARK, PORT128_LCD2VSYN_MARK, VIO2_VD_MARK, LCD2D0_MARK,
  233. VIO_HD_MARK, PORT129_LCD2HSYN_MARK, PORT129_LCD2CS__MARK, \
  234. VIO2_HD_MARK, LCD2D1_MARK,
  235. VIO_D0_MARK, PORT130_MSIOF2_RXD_MARK, LCD2D10_MARK,
  236. VIO_D1_MARK, PORT131_KEYOUT6_MARK, PORT131_MSIOF2_SS1_MARK, \
  237. PORT131_KEYOUT11_MARK, LCD2D11_MARK,
  238. VIO_D2_MARK, PORT132_KEYOUT7_MARK, PORT132_MSIOF2_SS2_MARK, \
  239. PORT132_KEYOUT10_MARK, LCD2D12_MARK,
  240. VIO_D3_MARK, MSIOF2_TSYNC_MARK, LCD2D13_MARK,
  241. VIO_D4_MARK, MSIOF2_TXD_MARK, LCD2D14_MARK,
  242. VIO_D5_MARK, MSIOF2_TSCK_MARK, LCD2D15_MARK,
  243. VIO_D6_MARK, PORT136_KEYOUT8_MARK, LCD2D16_MARK,
  244. VIO_D7_MARK, PORT137_KEYOUT9_MARK, LCD2D17_MARK,
  245. VIO_D8_MARK, PORT138_KEYOUT8_MARK, VIO2_D0_MARK, LCD2D6_MARK,
  246. VIO_D9_MARK, PORT139_KEYOUT9_MARK, VIO2_D1_MARK, LCD2D7_MARK,
  247. VIO_D10_MARK, TPU0TO2_MARK, VIO2_D2_MARK, LCD2D8_MARK,
  248. VIO_D11_MARK, TPU0TO3_MARK, VIO2_D3_MARK, LCD2D9_MARK,
  249. VIO_D12_MARK, PORT142_KEYOUT10_MARK, VIO2_D4_MARK, LCD2D2_MARK,
  250. VIO_D13_MARK, PORT143_KEYOUT11_MARK, PORT143_KEYOUT6_MARK, \
  251. VIO2_D5_MARK, LCD2D3_MARK,
  252. VIO_D14_MARK, PORT144_KEYOUT7_MARK, VIO2_D6_MARK, LCD2D4_MARK,
  253. VIO_D15_MARK, TPU1TO3_MARK, PORT145_LCD2DISP_MARK, \
  254. PORT145_LCD2RS_MARK, VIO2_D7_MARK, LCD2D5_MARK,
  255. VIO_CLK_MARK, LCD2DCK_MARK, PORT146_LCD2WR__MARK, VIO2_CLK_MARK, \
  256. LCD2D18_MARK,
  257. VIO_FIELD_MARK, LCD2RD__MARK, VIO2_FIELD_MARK, LCD2D19_MARK,
  258. VIO_CKO_MARK,
  259. A27_MARK, PORT149_RDWR_MARK, MFG0_IN1_MARK, PORT149_KEYOUT9_MARK,
  260. MFG0_IN2_MARK,
  261. TS_SPSYNC3_MARK, MSIOF2_RSCK_MARK,
  262. TS_SDAT3_MARK, MSIOF2_RSYNC_MARK,
  263. TPU1TO2_MARK, TS_SDEN3_MARK, PORT153_MSIOF2_SS1_MARK,
  264. SCIFA2_TXD1_MARK, MSIOF2_MCK0_MARK,
  265. SCIFA2_RXD1_MARK, MSIOF2_MCK1_MARK,
  266. SCIFA2_RTS1__MARK, PORT156_MSIOF2_SS2_MARK,
  267. SCIFA2_CTS1__MARK, PORT157_MSIOF2_RXD_MARK,
  268. DINT__MARK, SCIFA2_SCK1_MARK, TS_SCK3_MARK,
  269. PORT159_SCIFB_SCK_MARK, PORT159_SCIFA5_SCK_MARK, NMI_MARK,
  270. PORT160_SCIFB_TXD_MARK, PORT160_SCIFA5_TXD_MARK,
  271. PORT161_SCIFB_CTS__MARK, PORT161_SCIFA5_CTS__MARK,
  272. PORT162_SCIFB_RXD_MARK, PORT162_SCIFA5_RXD_MARK,
  273. PORT163_SCIFB_RTS__MARK, PORT163_SCIFA5_RTS__MARK, TPU3TO0_MARK,
  274. LCDD0_MARK,
  275. LCDD1_MARK, PORT193_SCIFA5_CTS__MARK, BBIF2_TSYNC1_MARK,
  276. LCDD2_MARK, PORT194_SCIFA5_RTS__MARK, BBIF2_TSCK1_MARK,
  277. LCDD3_MARK, PORT195_SCIFA5_RXD_MARK, BBIF2_TXD1_MARK,
  278. LCDD4_MARK, PORT196_SCIFA5_TXD_MARK,
  279. LCDD5_MARK, PORT197_SCIFA5_SCK_MARK, MFG2_OUT2_MARK, TPU2TO1_MARK,
  280. LCDD6_MARK,
  281. LCDD7_MARK, TPU4TO1_MARK, MFG4_OUT2_MARK,
  282. LCDD8_MARK, D16_MARK,
  283. LCDD9_MARK, D17_MARK,
  284. LCDD10_MARK, D18_MARK,
  285. LCDD11_MARK, D19_MARK,
  286. LCDD12_MARK, D20_MARK,
  287. LCDD13_MARK, D21_MARK,
  288. LCDD14_MARK, D22_MARK,
  289. LCDD15_MARK, PORT207_MSIOF0L_SS1_MARK, D23_MARK,
  290. LCDD16_MARK, PORT208_MSIOF0L_SS2_MARK, D24_MARK,
  291. LCDD17_MARK, D25_MARK,
  292. LCDD18_MARK, DREQ2_MARK, PORT210_MSIOF0L_SS1_MARK, D26_MARK,
  293. LCDD19_MARK, PORT211_MSIOF0L_SS2_MARK, D27_MARK,
  294. LCDD20_MARK, TS_SPSYNC1_MARK, MSIOF0L_MCK0_MARK, D28_MARK,
  295. LCDD21_MARK, TS_SDAT1_MARK, MSIOF0L_MCK1_MARK, D29_MARK,
  296. LCDD22_MARK, TS_SDEN1_MARK, MSIOF0L_RSCK_MARK, D30_MARK,
  297. LCDD23_MARK, TS_SCK1_MARK, MSIOF0L_RSYNC_MARK, D31_MARK,
  298. LCDDCK_MARK, LCDWR__MARK,
  299. LCDRD__MARK, DACK2_MARK, PORT217_LCD2RS_MARK, MSIOF0L_TSYNC_MARK, \
  300. VIO2_FIELD3_MARK, PORT217_LCD2DISP_MARK,
  301. LCDHSYN_MARK, LCDCS__MARK, LCDCS2__MARK, DACK3_MARK, \
  302. PORT218_VIO_CKOR_MARK,
  303. LCDDISP_MARK, LCDRS_MARK, PORT219_LCD2WR__MARK, DREQ3_MARK, \
  304. MSIOF0L_TSCK_MARK, VIO2_CLK3_MARK, LCD2DCK_2_MARK,
  305. LCDVSYN_MARK, LCDVSYN2_MARK,
  306. LCDLCLK_MARK, DREQ1_MARK, PORT221_LCD2CS__MARK, PWEN_MARK, \
  307. MSIOF0L_RXD_MARK, VIO2_HD3_MARK, PORT221_LCD2HSYN_MARK,
  308. LCDDON_MARK, LCDDON2_MARK, DACK1_MARK, OVCN_MARK, MSIOF0L_TXD_MARK, \
  309. VIO2_VD3_MARK, PORT222_LCD2VSYN_MARK,
  310. SCIFA1_TXD_MARK, OVCN2_MARK,
  311. EXTLP_MARK, SCIFA1_SCK_MARK, PORT226_VIO_CKO2_MARK,
  312. SCIFA1_RTS__MARK, IDIN_MARK,
  313. SCIFA1_RXD_MARK,
  314. SCIFA1_CTS__MARK, MFG1_IN1_MARK,
  315. MSIOF1_TXD_MARK, SCIFA2_TXD2_MARK,
  316. MSIOF1_TSYNC_MARK, SCIFA2_CTS2__MARK,
  317. MSIOF1_TSCK_MARK, SCIFA2_SCK2_MARK,
  318. MSIOF1_RXD_MARK, SCIFA2_RXD2_MARK,
  319. MSIOF1_RSCK_MARK, SCIFA2_RTS2__MARK, VIO2_CLK2_MARK, LCD2D20_MARK,
  320. MSIOF1_RSYNC_MARK, MFG1_IN2_MARK, VIO2_VD2_MARK, LCD2D21_MARK,
  321. MSIOF1_MCK0_MARK, PORT236_I2C_SDA2_MARK,
  322. MSIOF1_MCK1_MARK, PORT237_I2C_SCL2_MARK,
  323. MSIOF1_SS1_MARK, VIO2_FIELD2_MARK, LCD2D22_MARK,
  324. MSIOF1_SS2_MARK, VIO2_HD2_MARK, LCD2D23_MARK,
  325. SCIFA6_TXD_MARK,
  326. PORT241_IRDA_OUT_MARK, PORT241_IROUT_MARK, MFG4_OUT1_MARK, TPU4TO0_MARK,
  327. PORT242_IRDA_IN_MARK, MFG4_IN2_MARK,
  328. PORT243_IRDA_FIRSEL_MARK, PORT243_VIO_CKO2_MARK,
  329. PORT244_SCIFA5_CTS__MARK, MFG2_IN1_MARK, PORT244_SCIFB_CTS__MARK, \
  330. MSIOF2R_RXD_MARK,
  331. PORT245_SCIFA5_RTS__MARK, MFG2_IN2_MARK, PORT245_SCIFB_RTS__MARK, \
  332. MSIOF2R_TXD_MARK,
  333. PORT246_SCIFA5_RXD_MARK, MFG1_OUT1_MARK, PORT246_SCIFB_RXD_MARK, \
  334. TPU1TO0_MARK,
  335. PORT247_SCIFA5_TXD_MARK, MFG3_OUT2_MARK, PORT247_SCIFB_TXD_MARK, \
  336. TPU3TO1_MARK,
  337. PORT248_SCIFA5_SCK_MARK, MFG2_OUT1_MARK, PORT248_SCIFB_SCK_MARK, \
  338. TPU2TO0_MARK, PORT248_I2C_SCL3_MARK, MSIOF2R_TSCK_MARK,
  339. PORT249_IROUT_MARK, MFG4_IN1_MARK, PORT249_I2C_SDA3_MARK, \
  340. MSIOF2R_TSYNC_MARK,
  341. SDHICLK0_MARK,
  342. SDHICD0_MARK,
  343. SDHID0_0_MARK,
  344. SDHID0_1_MARK,
  345. SDHID0_2_MARK,
  346. SDHID0_3_MARK,
  347. SDHICMD0_MARK,
  348. SDHIWP0_MARK,
  349. SDHICLK1_MARK,
  350. SDHID1_0_MARK, TS_SPSYNC2_MARK,
  351. SDHID1_1_MARK, TS_SDAT2_MARK,
  352. SDHID1_2_MARK, TS_SDEN2_MARK,
  353. SDHID1_3_MARK, TS_SCK2_MARK,
  354. SDHICMD1_MARK,
  355. SDHICLK2_MARK,
  356. SDHID2_0_MARK, TS_SPSYNC4_MARK,
  357. SDHID2_1_MARK, TS_SDAT4_MARK,
  358. SDHID2_2_MARK, TS_SDEN4_MARK,
  359. SDHID2_3_MARK, TS_SCK4_MARK,
  360. SDHICMD2_MARK,
  361. MMCCLK0_MARK,
  362. MMCD0_0_MARK,
  363. MMCD0_1_MARK,
  364. MMCD0_2_MARK,
  365. MMCD0_3_MARK,
  366. MMCD0_4_MARK, TS_SPSYNC5_MARK,
  367. MMCD0_5_MARK, TS_SDAT5_MARK,
  368. MMCD0_6_MARK, TS_SDEN5_MARK,
  369. MMCD0_7_MARK, TS_SCK5_MARK,
  370. MMCCMD0_MARK,
  371. RESETOUTS__MARK, EXTAL2OUT_MARK,
  372. MCP_WAIT__MCP_FRB_MARK,
  373. MCP_CKO_MARK, MMCCLK1_MARK,
  374. MCP_D15_MCP_NAF15_MARK,
  375. MCP_D14_MCP_NAF14_MARK,
  376. MCP_D13_MCP_NAF13_MARK,
  377. MCP_D12_MCP_NAF12_MARK,
  378. MCP_D11_MCP_NAF11_MARK,
  379. MCP_D10_MCP_NAF10_MARK,
  380. MCP_D9_MCP_NAF9_MARK,
  381. MCP_D8_MCP_NAF8_MARK, MMCCMD1_MARK,
  382. MCP_D7_MCP_NAF7_MARK, MMCD1_7_MARK,
  383. MCP_D6_MCP_NAF6_MARK, MMCD1_6_MARK,
  384. MCP_D5_MCP_NAF5_MARK, MMCD1_5_MARK,
  385. MCP_D4_MCP_NAF4_MARK, MMCD1_4_MARK,
  386. MCP_D3_MCP_NAF3_MARK, MMCD1_3_MARK,
  387. MCP_D2_MCP_NAF2_MARK, MMCD1_2_MARK,
  388. MCP_D1_MCP_NAF1_MARK, MMCD1_1_MARK,
  389. MCP_D0_MCP_NAF0_MARK, MMCD1_0_MARK,
  390. MCP_NBRSTOUT__MARK,
  391. MCP_WE0__MCP_FWE_MARK, MCP_RDWR_MCP_FWE_MARK,
  392. /* MSEL2 special cases */
  393. TSIF2_TS_XX1_MARK,
  394. TSIF2_TS_XX2_MARK,
  395. TSIF2_TS_XX3_MARK,
  396. TSIF2_TS_XX4_MARK,
  397. TSIF2_TS_XX5_MARK,
  398. TSIF1_TS_XX1_MARK,
  399. TSIF1_TS_XX2_MARK,
  400. TSIF1_TS_XX3_MARK,
  401. TSIF1_TS_XX4_MARK,
  402. TSIF1_TS_XX5_MARK,
  403. TSIF0_TS_XX1_MARK,
  404. TSIF0_TS_XX2_MARK,
  405. TSIF0_TS_XX3_MARK,
  406. TSIF0_TS_XX4_MARK,
  407. TSIF0_TS_XX5_MARK,
  408. MST1_TS_XX1_MARK,
  409. MST1_TS_XX2_MARK,
  410. MST1_TS_XX3_MARK,
  411. MST1_TS_XX4_MARK,
  412. MST1_TS_XX5_MARK,
  413. MST0_TS_XX1_MARK,
  414. MST0_TS_XX2_MARK,
  415. MST0_TS_XX3_MARK,
  416. MST0_TS_XX4_MARK,
  417. MST0_TS_XX5_MARK,
  418. /* MSEL3 special cases */
  419. SDHI0_VCCQ_MC0_ON_MARK,
  420. SDHI0_VCCQ_MC0_OFF_MARK,
  421. DEBUG_MON_VIO_MARK,
  422. DEBUG_MON_LCDD_MARK,
  423. LCDC_LCDC0_MARK,
  424. LCDC_LCDC1_MARK,
  425. /* MSEL4 special cases */
  426. IRQ9_MEM_INT_MARK,
  427. IRQ9_MCP_INT_MARK,
  428. A11_MARK,
  429. KEYOUT8_MARK,
  430. TPU4TO3_MARK,
  431. RESETA_N_PU_ON_MARK,
  432. RESETA_N_PU_OFF_MARK,
  433. EDBGREQ_PD_MARK,
  434. EDBGREQ_PU_MARK,
  435. PINMUX_MARK_END,
  436. };
  437. static const u16 pinmux_data[] = {
  438. /* specify valid pin states for each pin in GPIO mode */
  439. PINMUX_DATA_ALL(),
  440. /* Table 25-1 (Function 0-7) */
  441. PINMUX_DATA(VBUS_0_MARK, PORT0_FN1),
  442. PINMUX_DATA(GPI0_MARK, PORT1_FN1),
  443. PINMUX_DATA(GPI1_MARK, PORT2_FN1),
  444. PINMUX_DATA(GPI2_MARK, PORT3_FN1),
  445. PINMUX_DATA(GPI3_MARK, PORT4_FN1),
  446. PINMUX_DATA(GPI4_MARK, PORT5_FN1),
  447. PINMUX_DATA(GPI5_MARK, PORT6_FN1),
  448. PINMUX_DATA(GPI6_MARK, PORT7_FN1),
  449. PINMUX_DATA(GPI7_MARK, PORT8_FN1),
  450. PINMUX_DATA(SCIFA7_RXD_MARK, PORT12_FN2),
  451. PINMUX_DATA(SCIFA7_CTS__MARK, PORT13_FN2),
  452. PINMUX_DATA(GPO7_MARK, PORT14_FN1), \
  453. PINMUX_DATA(MFG0_OUT2_MARK, PORT14_FN4),
  454. PINMUX_DATA(GPO6_MARK, PORT15_FN1), \
  455. PINMUX_DATA(MFG1_OUT2_MARK, PORT15_FN4),
  456. PINMUX_DATA(GPO5_MARK, PORT16_FN1), \
  457. PINMUX_DATA(SCIFA0_SCK_MARK, PORT16_FN2), \
  458. PINMUX_DATA(FSICOSLDT3_MARK, PORT16_FN3), \
  459. PINMUX_DATA(PORT16_VIO_CKOR_MARK, PORT16_FN4),
  460. PINMUX_DATA(SCIFA0_TXD_MARK, PORT17_FN2),
  461. PINMUX_DATA(SCIFA7_TXD_MARK, PORT18_FN2),
  462. PINMUX_DATA(SCIFA7_RTS__MARK, PORT19_FN2), \
  463. PINMUX_DATA(PORT19_VIO_CKO2_MARK, PORT19_FN3),
  464. PINMUX_DATA(GPO0_MARK, PORT20_FN1),
  465. PINMUX_DATA(GPO1_MARK, PORT21_FN1),
  466. PINMUX_DATA(GPO2_MARK, PORT22_FN1), \
  467. PINMUX_DATA(STATUS0_MARK, PORT22_FN2),
  468. PINMUX_DATA(GPO3_MARK, PORT23_FN1), \
  469. PINMUX_DATA(STATUS1_MARK, PORT23_FN2),
  470. PINMUX_DATA(GPO4_MARK, PORT24_FN1), \
  471. PINMUX_DATA(STATUS2_MARK, PORT24_FN2),
  472. PINMUX_DATA(VINT_MARK, PORT25_FN1),
  473. PINMUX_DATA(TCKON_MARK, PORT26_FN1),
  474. PINMUX_DATA(XDVFS1_MARK, PORT27_FN1), \
  475. PINMUX_DATA(PORT27_I2C_SCL2_MARK, PORT27_FN2, MSEL2CR_MSEL17_0,
  476. MSEL2CR_MSEL16_1), \
  477. PINMUX_DATA(PORT27_I2C_SCL3_MARK, PORT27_FN3, MSEL2CR_MSEL19_0,
  478. MSEL2CR_MSEL18_1), \
  479. PINMUX_DATA(MFG0_OUT1_MARK, PORT27_FN4), \
  480. PINMUX_DATA(PORT27_IROUT_MARK, PORT27_FN7),
  481. PINMUX_DATA(XDVFS2_MARK, PORT28_FN1), \
  482. PINMUX_DATA(PORT28_I2C_SDA2_MARK, PORT28_FN2, MSEL2CR_MSEL17_0,
  483. MSEL2CR_MSEL16_1), \
  484. PINMUX_DATA(PORT28_I2C_SDA3_MARK, PORT28_FN3, MSEL2CR_MSEL19_0,
  485. MSEL2CR_MSEL18_1), \
  486. PINMUX_DATA(PORT28_TPU1TO1_MARK, PORT28_FN7),
  487. PINMUX_DATA(SIM_RST_MARK, PORT29_FN1), \
  488. PINMUX_DATA(PORT29_TPU1TO1_MARK, PORT29_FN4),
  489. PINMUX_DATA(SIM_CLK_MARK, PORT30_FN1), \
  490. PINMUX_DATA(PORT30_VIO_CKOR_MARK, PORT30_FN4),
  491. PINMUX_DATA(SIM_D_MARK, PORT31_FN1), \
  492. PINMUX_DATA(PORT31_IROUT_MARK, PORT31_FN4),
  493. PINMUX_DATA(SCIFA4_TXD_MARK, PORT32_FN2),
  494. PINMUX_DATA(SCIFA4_RXD_MARK, PORT33_FN2), \
  495. PINMUX_DATA(XWUP_MARK, PORT33_FN3),
  496. PINMUX_DATA(SCIFA4_RTS__MARK, PORT34_FN2),
  497. PINMUX_DATA(SCIFA4_CTS__MARK, PORT35_FN2),
  498. PINMUX_DATA(FSIBOBT_MARK, PORT36_FN1), \
  499. PINMUX_DATA(FSIBIBT_MARK, PORT36_FN2),
  500. PINMUX_DATA(FSIBOLR_MARK, PORT37_FN1), \
  501. PINMUX_DATA(FSIBILR_MARK, PORT37_FN2),
  502. PINMUX_DATA(FSIBOSLD_MARK, PORT38_FN1),
  503. PINMUX_DATA(FSIBISLD_MARK, PORT39_FN1),
  504. PINMUX_DATA(VACK_MARK, PORT40_FN1),
  505. PINMUX_DATA(XTAL1L_MARK, PORT41_FN1),
  506. PINMUX_DATA(SCIFA0_RTS__MARK, PORT42_FN2), \
  507. PINMUX_DATA(FSICOSLDT2_MARK, PORT42_FN3),
  508. PINMUX_DATA(SCIFA0_RXD_MARK, PORT43_FN2),
  509. PINMUX_DATA(SCIFA0_CTS__MARK, PORT44_FN2), \
  510. PINMUX_DATA(FSICOSLDT1_MARK, PORT44_FN3),
  511. PINMUX_DATA(FSICOBT_MARK, PORT45_FN1), \
  512. PINMUX_DATA(FSICIBT_MARK, PORT45_FN2), \
  513. PINMUX_DATA(FSIDOBT_MARK, PORT45_FN3), \
  514. PINMUX_DATA(FSIDIBT_MARK, PORT45_FN4),
  515. PINMUX_DATA(FSICOLR_MARK, PORT46_FN1), \
  516. PINMUX_DATA(FSICILR_MARK, PORT46_FN2), \
  517. PINMUX_DATA(FSIDOLR_MARK, PORT46_FN3), \
  518. PINMUX_DATA(FSIDILR_MARK, PORT46_FN4),
  519. PINMUX_DATA(FSICOSLD_MARK, PORT47_FN1), \
  520. PINMUX_DATA(PORT47_FSICSPDIF_MARK, PORT47_FN2),
  521. PINMUX_DATA(FSICISLD_MARK, PORT48_FN1), \
  522. PINMUX_DATA(FSIDISLD_MARK, PORT48_FN3),
  523. PINMUX_DATA(FSIACK_MARK, PORT49_FN1), \
  524. PINMUX_DATA(PORT49_IRDA_OUT_MARK, PORT49_FN2, MSEL4CR_MSEL19_1), \
  525. PINMUX_DATA(PORT49_IROUT_MARK, PORT49_FN4), \
  526. PINMUX_DATA(FSIAOMC_MARK, PORT49_FN5),
  527. PINMUX_DATA(FSIAOLR_MARK, PORT50_FN1), \
  528. PINMUX_DATA(BBIF2_TSYNC2_MARK, PORT50_FN2), \
  529. PINMUX_DATA(TPU2TO2_MARK, PORT50_FN3), \
  530. PINMUX_DATA(FSIAILR_MARK, PORT50_FN5),
  531. PINMUX_DATA(FSIAOBT_MARK, PORT51_FN1), \
  532. PINMUX_DATA(BBIF2_TSCK2_MARK, PORT51_FN2), \
  533. PINMUX_DATA(TPU2TO3_MARK, PORT51_FN3), \
  534. PINMUX_DATA(FSIAIBT_MARK, PORT51_FN5),
  535. PINMUX_DATA(FSIAOSLD_MARK, PORT52_FN1), \
  536. PINMUX_DATA(BBIF2_TXD2_MARK, PORT52_FN2),
  537. PINMUX_DATA(FSIASPDIF_MARK, PORT53_FN1), \
  538. PINMUX_DATA(PORT53_IRDA_IN_MARK, PORT53_FN2, MSEL4CR_MSEL19_1), \
  539. PINMUX_DATA(TPU3TO3_MARK, PORT53_FN3), \
  540. PINMUX_DATA(FSIBSPDIF_MARK, PORT53_FN5), \
  541. PINMUX_DATA(PORT53_FSICSPDIF_MARK, PORT53_FN6),
  542. PINMUX_DATA(FSIBCK_MARK, PORT54_FN1), \
  543. PINMUX_DATA(PORT54_IRDA_FIRSEL_MARK, PORT54_FN2, MSEL4CR_MSEL19_1), \
  544. PINMUX_DATA(TPU3TO2_MARK, PORT54_FN3), \
  545. PINMUX_DATA(FSIBOMC_MARK, PORT54_FN5), \
  546. PINMUX_DATA(FSICCK_MARK, PORT54_FN6), \
  547. PINMUX_DATA(FSICOMC_MARK, PORT54_FN7),
  548. PINMUX_DATA(FSIAISLD_MARK, PORT55_FN1), \
  549. PINMUX_DATA(TPU0TO0_MARK, PORT55_FN3),
  550. PINMUX_DATA(A0_MARK, PORT57_FN1), \
  551. PINMUX_DATA(BS__MARK, PORT57_FN2),
  552. PINMUX_DATA(A12_MARK, PORT58_FN1), \
  553. PINMUX_DATA(PORT58_KEYOUT7_MARK, PORT58_FN2), \
  554. PINMUX_DATA(TPU4TO2_MARK, PORT58_FN4),
  555. PINMUX_DATA(A13_MARK, PORT59_FN1), \
  556. PINMUX_DATA(PORT59_KEYOUT6_MARK, PORT59_FN2), \
  557. PINMUX_DATA(TPU0TO1_MARK, PORT59_FN4),
  558. PINMUX_DATA(A14_MARK, PORT60_FN1), \
  559. PINMUX_DATA(KEYOUT5_MARK, PORT60_FN2),
  560. PINMUX_DATA(A15_MARK, PORT61_FN1), \
  561. PINMUX_DATA(KEYOUT4_MARK, PORT61_FN2),
  562. PINMUX_DATA(A16_MARK, PORT62_FN1), \
  563. PINMUX_DATA(KEYOUT3_MARK, PORT62_FN2), \
  564. PINMUX_DATA(MSIOF0_SS1_MARK, PORT62_FN4, MSEL3CR_MSEL11_0),
  565. PINMUX_DATA(A17_MARK, PORT63_FN1), \
  566. PINMUX_DATA(KEYOUT2_MARK, PORT63_FN2), \
  567. PINMUX_DATA(MSIOF0_TSYNC_MARK, PORT63_FN4, MSEL3CR_MSEL11_0),
  568. PINMUX_DATA(A18_MARK, PORT64_FN1), \
  569. PINMUX_DATA(KEYOUT1_MARK, PORT64_FN2), \
  570. PINMUX_DATA(MSIOF0_TSCK_MARK, PORT64_FN4, MSEL3CR_MSEL11_0),
  571. PINMUX_DATA(A19_MARK, PORT65_FN1), \
  572. PINMUX_DATA(KEYOUT0_MARK, PORT65_FN2), \
  573. PINMUX_DATA(MSIOF0_TXD_MARK, PORT65_FN4, MSEL3CR_MSEL11_0),
  574. PINMUX_DATA(A20_MARK, PORT66_FN1), \
  575. PINMUX_DATA(KEYIN0_MARK, PORT66_FN2), \
  576. PINMUX_DATA(MSIOF0_RSCK_MARK, PORT66_FN4, MSEL3CR_MSEL11_0),
  577. PINMUX_DATA(A21_MARK, PORT67_FN1), \
  578. PINMUX_DATA(KEYIN1_MARK, PORT67_FN2), \
  579. PINMUX_DATA(MSIOF0_RSYNC_MARK, PORT67_FN4, MSEL3CR_MSEL11_0),
  580. PINMUX_DATA(A22_MARK, PORT68_FN1), \
  581. PINMUX_DATA(KEYIN2_MARK, PORT68_FN2), \
  582. PINMUX_DATA(MSIOF0_MCK0_MARK, PORT68_FN4, MSEL3CR_MSEL11_0),
  583. PINMUX_DATA(A23_MARK, PORT69_FN1), \
  584. PINMUX_DATA(KEYIN3_MARK, PORT69_FN2), \
  585. PINMUX_DATA(MSIOF0_MCK1_MARK, PORT69_FN4, MSEL3CR_MSEL11_0),
  586. PINMUX_DATA(A24_MARK, PORT70_FN1), \
  587. PINMUX_DATA(KEYIN4_MARK, PORT70_FN2), \
  588. PINMUX_DATA(MSIOF0_RXD_MARK, PORT70_FN4, MSEL3CR_MSEL11_0),
  589. PINMUX_DATA(A25_MARK, PORT71_FN1), \
  590. PINMUX_DATA(KEYIN5_MARK, PORT71_FN2), \
  591. PINMUX_DATA(MSIOF0_SS2_MARK, PORT71_FN4, MSEL3CR_MSEL11_0),
  592. PINMUX_DATA(A26_MARK, PORT72_FN1), \
  593. PINMUX_DATA(KEYIN6_MARK, PORT72_FN2),
  594. PINMUX_DATA(KEYIN7_MARK, PORT73_FN2),
  595. PINMUX_DATA(D0_NAF0_MARK, PORT74_FN1),
  596. PINMUX_DATA(D1_NAF1_MARK, PORT75_FN1),
  597. PINMUX_DATA(D2_NAF2_MARK, PORT76_FN1),
  598. PINMUX_DATA(D3_NAF3_MARK, PORT77_FN1),
  599. PINMUX_DATA(D4_NAF4_MARK, PORT78_FN1),
  600. PINMUX_DATA(D5_NAF5_MARK, PORT79_FN1),
  601. PINMUX_DATA(D6_NAF6_MARK, PORT80_FN1),
  602. PINMUX_DATA(D7_NAF7_MARK, PORT81_FN1),
  603. PINMUX_DATA(D8_NAF8_MARK, PORT82_FN1),
  604. PINMUX_DATA(D9_NAF9_MARK, PORT83_FN1),
  605. PINMUX_DATA(D10_NAF10_MARK, PORT84_FN1),
  606. PINMUX_DATA(D11_NAF11_MARK, PORT85_FN1),
  607. PINMUX_DATA(D12_NAF12_MARK, PORT86_FN1),
  608. PINMUX_DATA(D13_NAF13_MARK, PORT87_FN1),
  609. PINMUX_DATA(D14_NAF14_MARK, PORT88_FN1),
  610. PINMUX_DATA(D15_NAF15_MARK, PORT89_FN1),
  611. PINMUX_DATA(CS4__MARK, PORT90_FN1),
  612. PINMUX_DATA(CS5A__MARK, PORT91_FN1), \
  613. PINMUX_DATA(PORT91_RDWR_MARK, PORT91_FN2),
  614. PINMUX_DATA(CS5B__MARK, PORT92_FN1), \
  615. PINMUX_DATA(FCE1__MARK, PORT92_FN2),
  616. PINMUX_DATA(CS6B__MARK, PORT93_FN1), \
  617. PINMUX_DATA(DACK0_MARK, PORT93_FN4),
  618. PINMUX_DATA(FCE0__MARK, PORT94_FN1), \
  619. PINMUX_DATA(CS6A__MARK, PORT94_FN2),
  620. PINMUX_DATA(WAIT__MARK, PORT95_FN1), \
  621. PINMUX_DATA(DREQ0_MARK, PORT95_FN2),
  622. PINMUX_DATA(RD__FSC_MARK, PORT96_FN1),
  623. PINMUX_DATA(WE0__FWE_MARK, PORT97_FN1), \
  624. PINMUX_DATA(RDWR_FWE_MARK, PORT97_FN2),
  625. PINMUX_DATA(WE1__MARK, PORT98_FN1),
  626. PINMUX_DATA(FRB_MARK, PORT99_FN1),
  627. PINMUX_DATA(CKO_MARK, PORT100_FN1),
  628. PINMUX_DATA(NBRSTOUT__MARK, PORT101_FN1),
  629. PINMUX_DATA(NBRST__MARK, PORT102_FN1),
  630. PINMUX_DATA(BBIF2_TXD_MARK, PORT103_FN3),
  631. PINMUX_DATA(BBIF2_RXD_MARK, PORT104_FN3),
  632. PINMUX_DATA(BBIF2_SYNC_MARK, PORT105_FN3),
  633. PINMUX_DATA(BBIF2_SCK_MARK, PORT106_FN3),
  634. PINMUX_DATA(SCIFA3_CTS__MARK, PORT107_FN3), \
  635. PINMUX_DATA(MFG3_IN2_MARK, PORT107_FN4),
  636. PINMUX_DATA(SCIFA3_RXD_MARK, PORT108_FN3), \
  637. PINMUX_DATA(MFG3_IN1_MARK, PORT108_FN4),
  638. PINMUX_DATA(BBIF1_SS2_MARK, PORT109_FN2), \
  639. PINMUX_DATA(SCIFA3_RTS__MARK, PORT109_FN3), \
  640. PINMUX_DATA(MFG3_OUT1_MARK, PORT109_FN4),
  641. PINMUX_DATA(SCIFA3_TXD_MARK, PORT110_FN3),
  642. PINMUX_DATA(HSI_RX_DATA_MARK, PORT111_FN1), \
  643. PINMUX_DATA(BBIF1_RXD_MARK, PORT111_FN3),
  644. PINMUX_DATA(HSI_TX_WAKE_MARK, PORT112_FN1), \
  645. PINMUX_DATA(BBIF1_TSCK_MARK, PORT112_FN3),
  646. PINMUX_DATA(HSI_TX_DATA_MARK, PORT113_FN1), \
  647. PINMUX_DATA(BBIF1_TSYNC_MARK, PORT113_FN3),
  648. PINMUX_DATA(HSI_TX_READY_MARK, PORT114_FN1), \
  649. PINMUX_DATA(BBIF1_TXD_MARK, PORT114_FN3),
  650. PINMUX_DATA(HSI_RX_READY_MARK, PORT115_FN1), \
  651. PINMUX_DATA(BBIF1_RSCK_MARK, PORT115_FN3), \
  652. PINMUX_DATA(PORT115_I2C_SCL2_MARK, PORT115_FN5, MSEL2CR_MSEL17_1), \
  653. PINMUX_DATA(PORT115_I2C_SCL3_MARK, PORT115_FN6, MSEL2CR_MSEL19_1),
  654. PINMUX_DATA(HSI_RX_WAKE_MARK, PORT116_FN1), \
  655. PINMUX_DATA(BBIF1_RSYNC_MARK, PORT116_FN3), \
  656. PINMUX_DATA(PORT116_I2C_SDA2_MARK, PORT116_FN5, MSEL2CR_MSEL17_1), \
  657. PINMUX_DATA(PORT116_I2C_SDA3_MARK, PORT116_FN6, MSEL2CR_MSEL19_1),
  658. PINMUX_DATA(HSI_RX_FLAG_MARK, PORT117_FN1), \
  659. PINMUX_DATA(BBIF1_SS1_MARK, PORT117_FN2), \
  660. PINMUX_DATA(BBIF1_FLOW_MARK, PORT117_FN3),
  661. PINMUX_DATA(HSI_TX_FLAG_MARK, PORT118_FN1),
  662. PINMUX_DATA(VIO_VD_MARK, PORT128_FN1), \
  663. PINMUX_DATA(PORT128_LCD2VSYN_MARK, PORT128_FN4, MSEL3CR_MSEL2_0), \
  664. PINMUX_DATA(VIO2_VD_MARK, PORT128_FN6, MSEL4CR_MSEL27_0), \
  665. PINMUX_DATA(LCD2D0_MARK, PORT128_FN7),
  666. PINMUX_DATA(VIO_HD_MARK, PORT129_FN1), \
  667. PINMUX_DATA(PORT129_LCD2HSYN_MARK, PORT129_FN4), \
  668. PINMUX_DATA(PORT129_LCD2CS__MARK, PORT129_FN5), \
  669. PINMUX_DATA(VIO2_HD_MARK, PORT129_FN6, MSEL4CR_MSEL27_0), \
  670. PINMUX_DATA(LCD2D1_MARK, PORT129_FN7),
  671. PINMUX_DATA(VIO_D0_MARK, PORT130_FN1), \
  672. PINMUX_DATA(PORT130_MSIOF2_RXD_MARK, PORT130_FN3, MSEL4CR_MSEL11_0,
  673. MSEL4CR_MSEL10_1), \
  674. PINMUX_DATA(LCD2D10_MARK, PORT130_FN7),
  675. PINMUX_DATA(VIO_D1_MARK, PORT131_FN1), \
  676. PINMUX_DATA(PORT131_KEYOUT6_MARK, PORT131_FN2), \
  677. PINMUX_DATA(PORT131_MSIOF2_SS1_MARK, PORT131_FN3), \
  678. PINMUX_DATA(PORT131_KEYOUT11_MARK, PORT131_FN4), \
  679. PINMUX_DATA(LCD2D11_MARK, PORT131_FN7),
  680. PINMUX_DATA(VIO_D2_MARK, PORT132_FN1), \
  681. PINMUX_DATA(PORT132_KEYOUT7_MARK, PORT132_FN2), \
  682. PINMUX_DATA(PORT132_MSIOF2_SS2_MARK, PORT132_FN3), \
  683. PINMUX_DATA(PORT132_KEYOUT10_MARK, PORT132_FN4), \
  684. PINMUX_DATA(LCD2D12_MARK, PORT132_FN7),
  685. PINMUX_DATA(VIO_D3_MARK, PORT133_FN1), \
  686. PINMUX_DATA(MSIOF2_TSYNC_MARK, PORT133_FN3, MSEL4CR_MSEL11_0), \
  687. PINMUX_DATA(LCD2D13_MARK, PORT133_FN7),
  688. PINMUX_DATA(VIO_D4_MARK, PORT134_FN1), \
  689. PINMUX_DATA(MSIOF2_TXD_MARK, PORT134_FN3, MSEL4CR_MSEL11_0), \
  690. PINMUX_DATA(LCD2D14_MARK, PORT134_FN7),
  691. PINMUX_DATA(VIO_D5_MARK, PORT135_FN1), \
  692. PINMUX_DATA(MSIOF2_TSCK_MARK, PORT135_FN3, MSEL4CR_MSEL11_0), \
  693. PINMUX_DATA(LCD2D15_MARK, PORT135_FN7),
  694. PINMUX_DATA(VIO_D6_MARK, PORT136_FN1), \
  695. PINMUX_DATA(PORT136_KEYOUT8_MARK, PORT136_FN2), \
  696. PINMUX_DATA(LCD2D16_MARK, PORT136_FN7),
  697. PINMUX_DATA(VIO_D7_MARK, PORT137_FN1), \
  698. PINMUX_DATA(PORT137_KEYOUT9_MARK, PORT137_FN2), \
  699. PINMUX_DATA(LCD2D17_MARK, PORT137_FN7),
  700. PINMUX_DATA(VIO_D8_MARK, PORT138_FN1), \
  701. PINMUX_DATA(PORT138_KEYOUT8_MARK, PORT138_FN2), \
  702. PINMUX_DATA(VIO2_D0_MARK, PORT138_FN6), \
  703. PINMUX_DATA(LCD2D6_MARK, PORT138_FN7),
  704. PINMUX_DATA(VIO_D9_MARK, PORT139_FN1), \
  705. PINMUX_DATA(PORT139_KEYOUT9_MARK, PORT139_FN2), \
  706. PINMUX_DATA(VIO2_D1_MARK, PORT139_FN6), \
  707. PINMUX_DATA(LCD2D7_MARK, PORT139_FN7),
  708. PINMUX_DATA(VIO_D10_MARK, PORT140_FN1), \
  709. PINMUX_DATA(TPU0TO2_MARK, PORT140_FN4), \
  710. PINMUX_DATA(VIO2_D2_MARK, PORT140_FN6), \
  711. PINMUX_DATA(LCD2D8_MARK, PORT140_FN7),
  712. PINMUX_DATA(VIO_D11_MARK, PORT141_FN1), \
  713. PINMUX_DATA(TPU0TO3_MARK, PORT141_FN4), \
  714. PINMUX_DATA(VIO2_D3_MARK, PORT141_FN6), \
  715. PINMUX_DATA(LCD2D9_MARK, PORT141_FN7),
  716. PINMUX_DATA(VIO_D12_MARK, PORT142_FN1), \
  717. PINMUX_DATA(PORT142_KEYOUT10_MARK, PORT142_FN2), \
  718. PINMUX_DATA(VIO2_D4_MARK, PORT142_FN6), \
  719. PINMUX_DATA(LCD2D2_MARK, PORT142_FN7),
  720. PINMUX_DATA(VIO_D13_MARK, PORT143_FN1), \
  721. PINMUX_DATA(PORT143_KEYOUT11_MARK, PORT143_FN2), \
  722. PINMUX_DATA(PORT143_KEYOUT6_MARK, PORT143_FN3), \
  723. PINMUX_DATA(VIO2_D5_MARK, PORT143_FN6), \
  724. PINMUX_DATA(LCD2D3_MARK, PORT143_FN7),
  725. PINMUX_DATA(VIO_D14_MARK, PORT144_FN1), \
  726. PINMUX_DATA(PORT144_KEYOUT7_MARK, PORT144_FN2), \
  727. PINMUX_DATA(VIO2_D6_MARK, PORT144_FN6), \
  728. PINMUX_DATA(LCD2D4_MARK, PORT144_FN7),
  729. PINMUX_DATA(VIO_D15_MARK, PORT145_FN1), \
  730. PINMUX_DATA(TPU1TO3_MARK, PORT145_FN3), \
  731. PINMUX_DATA(PORT145_LCD2DISP_MARK, PORT145_FN4), \
  732. PINMUX_DATA(PORT145_LCD2RS_MARK, PORT145_FN5), \
  733. PINMUX_DATA(VIO2_D7_MARK, PORT145_FN6), \
  734. PINMUX_DATA(LCD2D5_MARK, PORT145_FN7),
  735. PINMUX_DATA(VIO_CLK_MARK, PORT146_FN1), \
  736. PINMUX_DATA(LCD2DCK_MARK, PORT146_FN4), \
  737. PINMUX_DATA(PORT146_LCD2WR__MARK, PORT146_FN5), \
  738. PINMUX_DATA(VIO2_CLK_MARK, PORT146_FN6, MSEL4CR_MSEL27_0), \
  739. PINMUX_DATA(LCD2D18_MARK, PORT146_FN7),
  740. PINMUX_DATA(VIO_FIELD_MARK, PORT147_FN1), \
  741. PINMUX_DATA(LCD2RD__MARK, PORT147_FN4), \
  742. PINMUX_DATA(VIO2_FIELD_MARK, PORT147_FN6, MSEL4CR_MSEL27_0), \
  743. PINMUX_DATA(LCD2D19_MARK, PORT147_FN7),
  744. PINMUX_DATA(VIO_CKO_MARK, PORT148_FN1),
  745. PINMUX_DATA(A27_MARK, PORT149_FN1), \
  746. PINMUX_DATA(PORT149_RDWR_MARK, PORT149_FN2), \
  747. PINMUX_DATA(MFG0_IN1_MARK, PORT149_FN3), \
  748. PINMUX_DATA(PORT149_KEYOUT9_MARK, PORT149_FN4),
  749. PINMUX_DATA(MFG0_IN2_MARK, PORT150_FN3),
  750. PINMUX_DATA(TS_SPSYNC3_MARK, PORT151_FN4), \
  751. PINMUX_DATA(MSIOF2_RSCK_MARK, PORT151_FN5),
  752. PINMUX_DATA(TS_SDAT3_MARK, PORT152_FN4), \
  753. PINMUX_DATA(MSIOF2_RSYNC_MARK, PORT152_FN5),
  754. PINMUX_DATA(TPU1TO2_MARK, PORT153_FN3), \
  755. PINMUX_DATA(TS_SDEN3_MARK, PORT153_FN4), \
  756. PINMUX_DATA(PORT153_MSIOF2_SS1_MARK, PORT153_FN5),
  757. PINMUX_DATA(SCIFA2_TXD1_MARK, PORT154_FN2, MSEL3CR_MSEL9_0), \
  758. PINMUX_DATA(MSIOF2_MCK0_MARK, PORT154_FN5),
  759. PINMUX_DATA(SCIFA2_RXD1_MARK, PORT155_FN2, MSEL3CR_MSEL9_0), \
  760. PINMUX_DATA(MSIOF2_MCK1_MARK, PORT155_FN5),
  761. PINMUX_DATA(SCIFA2_RTS1__MARK, PORT156_FN2, MSEL3CR_MSEL9_0), \
  762. PINMUX_DATA(PORT156_MSIOF2_SS2_MARK, PORT156_FN5),
  763. PINMUX_DATA(SCIFA2_CTS1__MARK, PORT157_FN2, MSEL3CR_MSEL9_0), \
  764. PINMUX_DATA(PORT157_MSIOF2_RXD_MARK, PORT157_FN5, MSEL4CR_MSEL11_0,
  765. MSEL4CR_MSEL10_0),
  766. PINMUX_DATA(DINT__MARK, PORT158_FN1), \
  767. PINMUX_DATA(SCIFA2_SCK1_MARK, PORT158_FN2, MSEL3CR_MSEL9_0), \
  768. PINMUX_DATA(TS_SCK3_MARK, PORT158_FN4),
  769. PINMUX_DATA(PORT159_SCIFB_SCK_MARK, PORT159_FN1, MSEL4CR_MSEL22_0), \
  770. PINMUX_DATA(PORT159_SCIFA5_SCK_MARK, PORT159_FN2, MSEL4CR_MSEL21_1), \
  771. PINMUX_DATA(NMI_MARK, PORT159_FN3),
  772. PINMUX_DATA(PORT160_SCIFB_TXD_MARK, PORT160_FN1, MSEL4CR_MSEL22_0), \
  773. PINMUX_DATA(PORT160_SCIFA5_TXD_MARK, PORT160_FN2, MSEL4CR_MSEL21_1),
  774. PINMUX_DATA(PORT161_SCIFB_CTS__MARK, PORT161_FN1, MSEL4CR_MSEL22_0), \
  775. PINMUX_DATA(PORT161_SCIFA5_CTS__MARK, PORT161_FN2, MSEL4CR_MSEL21_1),
  776. PINMUX_DATA(PORT162_SCIFB_RXD_MARK, PORT162_FN1, MSEL4CR_MSEL22_0), \
  777. PINMUX_DATA(PORT162_SCIFA5_RXD_MARK, PORT162_FN2, MSEL4CR_MSEL21_1),
  778. PINMUX_DATA(PORT163_SCIFB_RTS__MARK, PORT163_FN1, MSEL4CR_MSEL22_0), \
  779. PINMUX_DATA(PORT163_SCIFA5_RTS__MARK, PORT163_FN2, MSEL4CR_MSEL21_1), \
  780. PINMUX_DATA(TPU3TO0_MARK, PORT163_FN5),
  781. PINMUX_DATA(LCDD0_MARK, PORT192_FN1),
  782. PINMUX_DATA(LCDD1_MARK, PORT193_FN1), \
  783. PINMUX_DATA(PORT193_SCIFA5_CTS__MARK, PORT193_FN3, MSEL4CR_MSEL21_0,
  784. MSEL4CR_MSEL20_1), \
  785. PINMUX_DATA(BBIF2_TSYNC1_MARK, PORT193_FN5),
  786. PINMUX_DATA(LCDD2_MARK, PORT194_FN1), \
  787. PINMUX_DATA(PORT194_SCIFA5_RTS__MARK, PORT194_FN3, MSEL4CR_MSEL21_0,
  788. MSEL4CR_MSEL20_1), \
  789. PINMUX_DATA(BBIF2_TSCK1_MARK, PORT194_FN5),
  790. PINMUX_DATA(LCDD3_MARK, PORT195_FN1), \
  791. PINMUX_DATA(PORT195_SCIFA5_RXD_MARK, PORT195_FN3, MSEL4CR_MSEL21_0,
  792. MSEL4CR_MSEL20_1), \
  793. PINMUX_DATA(BBIF2_TXD1_MARK, PORT195_FN5),
  794. PINMUX_DATA(LCDD4_MARK, PORT196_FN1), \
  795. PINMUX_DATA(PORT196_SCIFA5_TXD_MARK, PORT196_FN3, MSEL4CR_MSEL21_0,
  796. MSEL4CR_MSEL20_1),
  797. PINMUX_DATA(LCDD5_MARK, PORT197_FN1), \
  798. PINMUX_DATA(PORT197_SCIFA5_SCK_MARK, PORT197_FN3, MSEL4CR_MSEL21_0,
  799. MSEL4CR_MSEL20_1), \
  800. PINMUX_DATA(MFG2_OUT2_MARK, PORT197_FN5), \
  801. PINMUX_DATA(TPU2TO1_MARK, PORT197_FN7),
  802. PINMUX_DATA(LCDD6_MARK, PORT198_FN1),
  803. PINMUX_DATA(LCDD7_MARK, PORT199_FN1), \
  804. PINMUX_DATA(TPU4TO1_MARK, PORT199_FN2), \
  805. PINMUX_DATA(MFG4_OUT2_MARK, PORT199_FN5),
  806. PINMUX_DATA(LCDD8_MARK, PORT200_FN1), \
  807. PINMUX_DATA(D16_MARK, PORT200_FN6),
  808. PINMUX_DATA(LCDD9_MARK, PORT201_FN1), \
  809. PINMUX_DATA(D17_MARK, PORT201_FN6),
  810. PINMUX_DATA(LCDD10_MARK, PORT202_FN1), \
  811. PINMUX_DATA(D18_MARK, PORT202_FN6),
  812. PINMUX_DATA(LCDD11_MARK, PORT203_FN1), \
  813. PINMUX_DATA(D19_MARK, PORT203_FN6),
  814. PINMUX_DATA(LCDD12_MARK, PORT204_FN1), \
  815. PINMUX_DATA(D20_MARK, PORT204_FN6),
  816. PINMUX_DATA(LCDD13_MARK, PORT205_FN1), \
  817. PINMUX_DATA(D21_MARK, PORT205_FN6),
  818. PINMUX_DATA(LCDD14_MARK, PORT206_FN1), \
  819. PINMUX_DATA(D22_MARK, PORT206_FN6),
  820. PINMUX_DATA(LCDD15_MARK, PORT207_FN1), \
  821. PINMUX_DATA(PORT207_MSIOF0L_SS1_MARK, PORT207_FN2, MSEL3CR_MSEL11_1), \
  822. PINMUX_DATA(D23_MARK, PORT207_FN6),
  823. PINMUX_DATA(LCDD16_MARK, PORT208_FN1), \
  824. PINMUX_DATA(PORT208_MSIOF0L_SS2_MARK, PORT208_FN2, MSEL3CR_MSEL11_1), \
  825. PINMUX_DATA(D24_MARK, PORT208_FN6),
  826. PINMUX_DATA(LCDD17_MARK, PORT209_FN1), \
  827. PINMUX_DATA(D25_MARK, PORT209_FN6),
  828. PINMUX_DATA(LCDD18_MARK, PORT210_FN1), \
  829. PINMUX_DATA(DREQ2_MARK, PORT210_FN2), \
  830. PINMUX_DATA(PORT210_MSIOF0L_SS1_MARK, PORT210_FN5, MSEL3CR_MSEL11_1), \
  831. PINMUX_DATA(D26_MARK, PORT210_FN6),
  832. PINMUX_DATA(LCDD19_MARK, PORT211_FN1), \
  833. PINMUX_DATA(PORT211_MSIOF0L_SS2_MARK, PORT211_FN5, MSEL3CR_MSEL11_1), \
  834. PINMUX_DATA(D27_MARK, PORT211_FN6),
  835. PINMUX_DATA(LCDD20_MARK, PORT212_FN1), \
  836. PINMUX_DATA(TS_SPSYNC1_MARK, PORT212_FN2), \
  837. PINMUX_DATA(MSIOF0L_MCK0_MARK, PORT212_FN5, MSEL3CR_MSEL11_1), \
  838. PINMUX_DATA(D28_MARK, PORT212_FN6),
  839. PINMUX_DATA(LCDD21_MARK, PORT213_FN1), \
  840. PINMUX_DATA(TS_SDAT1_MARK, PORT213_FN2), \
  841. PINMUX_DATA(MSIOF0L_MCK1_MARK, PORT213_FN5, MSEL3CR_MSEL11_1), \
  842. PINMUX_DATA(D29_MARK, PORT213_FN6),
  843. PINMUX_DATA(LCDD22_MARK, PORT214_FN1), \
  844. PINMUX_DATA(TS_SDEN1_MARK, PORT214_FN2), \
  845. PINMUX_DATA(MSIOF0L_RSCK_MARK, PORT214_FN5, MSEL3CR_MSEL11_1), \
  846. PINMUX_DATA(D30_MARK, PORT214_FN6),
  847. PINMUX_DATA(LCDD23_MARK, PORT215_FN1), \
  848. PINMUX_DATA(TS_SCK1_MARK, PORT215_FN2), \
  849. PINMUX_DATA(MSIOF0L_RSYNC_MARK, PORT215_FN5, MSEL3CR_MSEL11_1), \
  850. PINMUX_DATA(D31_MARK, PORT215_FN6),
  851. PINMUX_DATA(LCDDCK_MARK, PORT216_FN1), \
  852. PINMUX_DATA(LCDWR__MARK, PORT216_FN2),
  853. PINMUX_DATA(LCDRD__MARK, PORT217_FN1), \
  854. PINMUX_DATA(DACK2_MARK, PORT217_FN2), \
  855. PINMUX_DATA(PORT217_LCD2RS_MARK, PORT217_FN3), \
  856. PINMUX_DATA(MSIOF0L_TSYNC_MARK, PORT217_FN5, MSEL3CR_MSEL11_1), \
  857. PINMUX_DATA(VIO2_FIELD3_MARK, PORT217_FN6, MSEL4CR_MSEL27_1,
  858. MSEL4CR_MSEL26_1), \
  859. PINMUX_DATA(PORT217_LCD2DISP_MARK, PORT217_FN7),
  860. PINMUX_DATA(LCDHSYN_MARK, PORT218_FN1), \
  861. PINMUX_DATA(LCDCS__MARK, PORT218_FN2), \
  862. PINMUX_DATA(LCDCS2__MARK, PORT218_FN3), \
  863. PINMUX_DATA(DACK3_MARK, PORT218_FN4), \
  864. PINMUX_DATA(PORT218_VIO_CKOR_MARK, PORT218_FN5),
  865. PINMUX_DATA(LCDDISP_MARK, PORT219_FN1), \
  866. PINMUX_DATA(LCDRS_MARK, PORT219_FN2), \
  867. PINMUX_DATA(PORT219_LCD2WR__MARK, PORT219_FN3), \
  868. PINMUX_DATA(DREQ3_MARK, PORT219_FN4), \
  869. PINMUX_DATA(MSIOF0L_TSCK_MARK, PORT219_FN5, MSEL3CR_MSEL11_1), \
  870. PINMUX_DATA(VIO2_CLK3_MARK, PORT219_FN6, MSEL4CR_MSEL27_1,
  871. MSEL4CR_MSEL26_1), \
  872. PINMUX_DATA(LCD2DCK_2_MARK, PORT219_FN7),
  873. PINMUX_DATA(LCDVSYN_MARK, PORT220_FN1), \
  874. PINMUX_DATA(LCDVSYN2_MARK, PORT220_FN2),
  875. PINMUX_DATA(LCDLCLK_MARK, PORT221_FN1), \
  876. PINMUX_DATA(DREQ1_MARK, PORT221_FN2), \
  877. PINMUX_DATA(PORT221_LCD2CS__MARK, PORT221_FN3), \
  878. PINMUX_DATA(PWEN_MARK, PORT221_FN4), \
  879. PINMUX_DATA(MSIOF0L_RXD_MARK, PORT221_FN5, MSEL3CR_MSEL11_1), \
  880. PINMUX_DATA(VIO2_HD3_MARK, PORT221_FN6, MSEL4CR_MSEL27_1,
  881. MSEL4CR_MSEL26_1), \
  882. PINMUX_DATA(PORT221_LCD2HSYN_MARK, PORT221_FN7),
  883. PINMUX_DATA(LCDDON_MARK, PORT222_FN1), \
  884. PINMUX_DATA(LCDDON2_MARK, PORT222_FN2), \
  885. PINMUX_DATA(DACK1_MARK, PORT222_FN3), \
  886. PINMUX_DATA(OVCN_MARK, PORT222_FN4), \
  887. PINMUX_DATA(MSIOF0L_TXD_MARK, PORT222_FN5, MSEL3CR_MSEL11_1), \
  888. PINMUX_DATA(VIO2_VD3_MARK, PORT222_FN6, MSEL4CR_MSEL27_1,
  889. MSEL4CR_MSEL26_1), \
  890. PINMUX_DATA(PORT222_LCD2VSYN_MARK, PORT222_FN7, MSEL3CR_MSEL2_1),
  891. PINMUX_DATA(SCIFA1_TXD_MARK, PORT225_FN2), \
  892. PINMUX_DATA(OVCN2_MARK, PORT225_FN4),
  893. PINMUX_DATA(EXTLP_MARK, PORT226_FN1), \
  894. PINMUX_DATA(SCIFA1_SCK_MARK, PORT226_FN2), \
  895. PINMUX_DATA(PORT226_VIO_CKO2_MARK, PORT226_FN5),
  896. PINMUX_DATA(SCIFA1_RTS__MARK, PORT227_FN2), \
  897. PINMUX_DATA(IDIN_MARK, PORT227_FN4),
  898. PINMUX_DATA(SCIFA1_RXD_MARK, PORT228_FN2),
  899. PINMUX_DATA(SCIFA1_CTS__MARK, PORT229_FN2), \
  900. PINMUX_DATA(MFG1_IN1_MARK, PORT229_FN3),
  901. PINMUX_DATA(MSIOF1_TXD_MARK, PORT230_FN1), \
  902. PINMUX_DATA(SCIFA2_TXD2_MARK, PORT230_FN2, MSEL3CR_MSEL9_1),
  903. PINMUX_DATA(MSIOF1_TSYNC_MARK, PORT231_FN1), \
  904. PINMUX_DATA(SCIFA2_CTS2__MARK, PORT231_FN2, MSEL3CR_MSEL9_1),
  905. PINMUX_DATA(MSIOF1_TSCK_MARK, PORT232_FN1), \
  906. PINMUX_DATA(SCIFA2_SCK2_MARK, PORT232_FN2, MSEL3CR_MSEL9_1),
  907. PINMUX_DATA(MSIOF1_RXD_MARK, PORT233_FN1), \
  908. PINMUX_DATA(SCIFA2_RXD2_MARK, PORT233_FN2, MSEL3CR_MSEL9_1),
  909. PINMUX_DATA(MSIOF1_RSCK_MARK, PORT234_FN1), \
  910. PINMUX_DATA(SCIFA2_RTS2__MARK, PORT234_FN2, MSEL3CR_MSEL9_1), \
  911. PINMUX_DATA(VIO2_CLK2_MARK, PORT234_FN6, MSEL4CR_MSEL27_1,
  912. MSEL4CR_MSEL26_0), \
  913. PINMUX_DATA(LCD2D20_MARK, PORT234_FN7),
  914. PINMUX_DATA(MSIOF1_RSYNC_MARK, PORT235_FN1), \
  915. PINMUX_DATA(MFG1_IN2_MARK, PORT235_FN3), \
  916. PINMUX_DATA(VIO2_VD2_MARK, PORT235_FN6, MSEL4CR_MSEL27_1,
  917. MSEL4CR_MSEL26_0), \
  918. PINMUX_DATA(LCD2D21_MARK, PORT235_FN7),
  919. PINMUX_DATA(MSIOF1_MCK0_MARK, PORT236_FN1), \
  920. PINMUX_DATA(PORT236_I2C_SDA2_MARK, PORT236_FN2, MSEL2CR_MSEL17_0,
  921. MSEL2CR_MSEL16_0),
  922. PINMUX_DATA(MSIOF1_MCK1_MARK, PORT237_FN1), \
  923. PINMUX_DATA(PORT237_I2C_SCL2_MARK, PORT237_FN2, MSEL2CR_MSEL17_0,
  924. MSEL2CR_MSEL16_0),
  925. PINMUX_DATA(MSIOF1_SS1_MARK, PORT238_FN1), \
  926. PINMUX_DATA(VIO2_FIELD2_MARK, PORT238_FN6, MSEL4CR_MSEL27_1,
  927. MSEL4CR_MSEL26_0), \
  928. PINMUX_DATA(LCD2D22_MARK, PORT238_FN7),
  929. PINMUX_DATA(MSIOF1_SS2_MARK, PORT239_FN1), \
  930. PINMUX_DATA(VIO2_HD2_MARK, PORT239_FN6, MSEL4CR_MSEL27_1,
  931. MSEL4CR_MSEL26_0), \
  932. PINMUX_DATA(LCD2D23_MARK, PORT239_FN7),
  933. PINMUX_DATA(SCIFA6_TXD_MARK, PORT240_FN1),
  934. PINMUX_DATA(PORT241_IRDA_OUT_MARK, PORT241_FN1, MSEL4CR_MSEL19_0), \
  935. PINMUX_DATA(PORT241_IROUT_MARK, PORT241_FN2), \
  936. PINMUX_DATA(MFG4_OUT1_MARK, PORT241_FN3), \
  937. PINMUX_DATA(TPU4TO0_MARK, PORT241_FN4),
  938. PINMUX_DATA(PORT242_IRDA_IN_MARK, PORT242_FN1, MSEL4CR_MSEL19_0), \
  939. PINMUX_DATA(MFG4_IN2_MARK, PORT242_FN3),
  940. PINMUX_DATA(PORT243_IRDA_FIRSEL_MARK, PORT243_FN1, MSEL4CR_MSEL19_0), \
  941. PINMUX_DATA(PORT243_VIO_CKO2_MARK, PORT243_FN2),
  942. PINMUX_DATA(PORT244_SCIFA5_CTS__MARK, PORT244_FN1, MSEL4CR_MSEL21_0,
  943. MSEL4CR_MSEL20_0), \
  944. PINMUX_DATA(MFG2_IN1_MARK, PORT244_FN2), \
  945. PINMUX_DATA(PORT244_SCIFB_CTS__MARK, PORT244_FN3, MSEL4CR_MSEL22_1), \
  946. PINMUX_DATA(MSIOF2R_RXD_MARK, PORT244_FN7, MSEL4CR_MSEL11_1),
  947. PINMUX_DATA(PORT245_SCIFA5_RTS__MARK, PORT245_FN1, MSEL4CR_MSEL21_0,
  948. MSEL4CR_MSEL20_0), \
  949. PINMUX_DATA(MFG2_IN2_MARK, PORT245_FN2), \
  950. PINMUX_DATA(PORT245_SCIFB_RTS__MARK, PORT245_FN3, MSEL4CR_MSEL22_1), \
  951. PINMUX_DATA(MSIOF2R_TXD_MARK, PORT245_FN7, MSEL4CR_MSEL11_1),
  952. PINMUX_DATA(PORT246_SCIFA5_RXD_MARK, PORT246_FN1, MSEL4CR_MSEL21_0,
  953. MSEL4CR_MSEL20_0), \
  954. PINMUX_DATA(MFG1_OUT1_MARK, PORT246_FN2), \
  955. PINMUX_DATA(PORT246_SCIFB_RXD_MARK, PORT246_FN3, MSEL4CR_MSEL22_1), \
  956. PINMUX_DATA(TPU1TO0_MARK, PORT246_FN4),
  957. PINMUX_DATA(PORT247_SCIFA5_TXD_MARK, PORT247_FN1, MSEL4CR_MSEL21_0,
  958. MSEL4CR_MSEL20_0), \
  959. PINMUX_DATA(MFG3_OUT2_MARK, PORT247_FN2), \
  960. PINMUX_DATA(PORT247_SCIFB_TXD_MARK, PORT247_FN3, MSEL4CR_MSEL22_1), \
  961. PINMUX_DATA(TPU3TO1_MARK, PORT247_FN4),
  962. PINMUX_DATA(PORT248_SCIFA5_SCK_MARK, PORT248_FN1, MSEL4CR_MSEL21_0,
  963. MSEL4CR_MSEL20_0), \
  964. PINMUX_DATA(MFG2_OUT1_MARK, PORT248_FN2), \
  965. PINMUX_DATA(PORT248_SCIFB_SCK_MARK, PORT248_FN3, MSEL4CR_MSEL22_1), \
  966. PINMUX_DATA(TPU2TO0_MARK, PORT248_FN4), \
  967. PINMUX_DATA(PORT248_I2C_SCL3_MARK, PORT248_FN5, MSEL2CR_MSEL19_0,
  968. MSEL2CR_MSEL18_0), \
  969. PINMUX_DATA(MSIOF2R_TSCK_MARK, PORT248_FN7, MSEL4CR_MSEL11_1),
  970. PINMUX_DATA(PORT249_IROUT_MARK, PORT249_FN1), \
  971. PINMUX_DATA(MFG4_IN1_MARK, PORT249_FN2), \
  972. PINMUX_DATA(PORT249_I2C_SDA3_MARK, PORT249_FN5, MSEL2CR_MSEL19_0,
  973. MSEL2CR_MSEL18_0), \
  974. PINMUX_DATA(MSIOF2R_TSYNC_MARK, PORT249_FN7, MSEL4CR_MSEL11_1),
  975. PINMUX_DATA(SDHICLK0_MARK, PORT250_FN1),
  976. PINMUX_DATA(SDHICD0_MARK, PORT251_FN1),
  977. PINMUX_DATA(SDHID0_0_MARK, PORT252_FN1),
  978. PINMUX_DATA(SDHID0_1_MARK, PORT253_FN1),
  979. PINMUX_DATA(SDHID0_2_MARK, PORT254_FN1),
  980. PINMUX_DATA(SDHID0_3_MARK, PORT255_FN1),
  981. PINMUX_DATA(SDHICMD0_MARK, PORT256_FN1),
  982. PINMUX_DATA(SDHIWP0_MARK, PORT257_FN1),
  983. PINMUX_DATA(SDHICLK1_MARK, PORT258_FN1),
  984. PINMUX_DATA(SDHID1_0_MARK, PORT259_FN1), \
  985. PINMUX_DATA(TS_SPSYNC2_MARK, PORT259_FN3),
  986. PINMUX_DATA(SDHID1_1_MARK, PORT260_FN1), \
  987. PINMUX_DATA(TS_SDAT2_MARK, PORT260_FN3),
  988. PINMUX_DATA(SDHID1_2_MARK, PORT261_FN1), \
  989. PINMUX_DATA(TS_SDEN2_MARK, PORT261_FN3),
  990. PINMUX_DATA(SDHID1_3_MARK, PORT262_FN1), \
  991. PINMUX_DATA(TS_SCK2_MARK, PORT262_FN3),
  992. PINMUX_DATA(SDHICMD1_MARK, PORT263_FN1),
  993. PINMUX_DATA(SDHICLK2_MARK, PORT264_FN1),
  994. PINMUX_DATA(SDHID2_0_MARK, PORT265_FN1), \
  995. PINMUX_DATA(TS_SPSYNC4_MARK, PORT265_FN3),
  996. PINMUX_DATA(SDHID2_1_MARK, PORT266_FN1), \
  997. PINMUX_DATA(TS_SDAT4_MARK, PORT266_FN3),
  998. PINMUX_DATA(SDHID2_2_MARK, PORT267_FN1), \
  999. PINMUX_DATA(TS_SDEN4_MARK, PORT267_FN3),
  1000. PINMUX_DATA(SDHID2_3_MARK, PORT268_FN1), \
  1001. PINMUX_DATA(TS_SCK4_MARK, PORT268_FN3),
  1002. PINMUX_DATA(SDHICMD2_MARK, PORT269_FN1),
  1003. PINMUX_DATA(MMCCLK0_MARK, PORT270_FN1, MSEL4CR_MSEL15_0),
  1004. PINMUX_DATA(MMCD0_0_MARK, PORT271_FN1, MSEL4CR_MSEL15_0),
  1005. PINMUX_DATA(MMCD0_1_MARK, PORT272_FN1, MSEL4CR_MSEL15_0),
  1006. PINMUX_DATA(MMCD0_2_MARK, PORT273_FN1, MSEL4CR_MSEL15_0),
  1007. PINMUX_DATA(MMCD0_3_MARK, PORT274_FN1, MSEL4CR_MSEL15_0),
  1008. PINMUX_DATA(MMCD0_4_MARK, PORT275_FN1, MSEL4CR_MSEL15_0),
  1009. PINMUX_DATA(TS_SPSYNC5_MARK, PORT275_FN3),
  1010. PINMUX_DATA(MMCD0_5_MARK, PORT276_FN1, MSEL4CR_MSEL15_0),
  1011. PINMUX_DATA(TS_SDAT5_MARK, PORT276_FN3),
  1012. PINMUX_DATA(MMCD0_6_MARK, PORT277_FN1, MSEL4CR_MSEL15_0),
  1013. PINMUX_DATA(TS_SDEN5_MARK, PORT277_FN3),
  1014. PINMUX_DATA(MMCD0_7_MARK, PORT278_FN1, MSEL4CR_MSEL15_0),
  1015. PINMUX_DATA(TS_SCK5_MARK, PORT278_FN3),
  1016. PINMUX_DATA(MMCCMD0_MARK, PORT279_FN1, MSEL4CR_MSEL15_0),
  1017. PINMUX_DATA(RESETOUTS__MARK, PORT281_FN1), \
  1018. PINMUX_DATA(EXTAL2OUT_MARK, PORT281_FN2),
  1019. PINMUX_DATA(MCP_WAIT__MCP_FRB_MARK, PORT288_FN1),
  1020. PINMUX_DATA(MCP_CKO_MARK, PORT289_FN1), \
  1021. PINMUX_DATA(MMCCLK1_MARK, PORT289_FN2, MSEL4CR_MSEL15_1),
  1022. PINMUX_DATA(MCP_D15_MCP_NAF15_MARK, PORT290_FN1),
  1023. PINMUX_DATA(MCP_D14_MCP_NAF14_MARK, PORT291_FN1),
  1024. PINMUX_DATA(MCP_D13_MCP_NAF13_MARK, PORT292_FN1),
  1025. PINMUX_DATA(MCP_D12_MCP_NAF12_MARK, PORT293_FN1),
  1026. PINMUX_DATA(MCP_D11_MCP_NAF11_MARK, PORT294_FN1),
  1027. PINMUX_DATA(MCP_D10_MCP_NAF10_MARK, PORT295_FN1),
  1028. PINMUX_DATA(MCP_D9_MCP_NAF9_MARK, PORT296_FN1),
  1029. PINMUX_DATA(MCP_D8_MCP_NAF8_MARK, PORT297_FN1), \
  1030. PINMUX_DATA(MMCCMD1_MARK, PORT297_FN2, MSEL4CR_MSEL15_1),
  1031. PINMUX_DATA(MCP_D7_MCP_NAF7_MARK, PORT298_FN1), \
  1032. PINMUX_DATA(MMCD1_7_MARK, PORT298_FN2, MSEL4CR_MSEL15_1),
  1033. PINMUX_DATA(MCP_D6_MCP_NAF6_MARK, PORT299_FN1), \
  1034. PINMUX_DATA(MMCD1_6_MARK, PORT299_FN2, MSEL4CR_MSEL15_1),
  1035. PINMUX_DATA(MCP_D5_MCP_NAF5_MARK, PORT300_FN1), \
  1036. PINMUX_DATA(MMCD1_5_MARK, PORT300_FN2, MSEL4CR_MSEL15_1),
  1037. PINMUX_DATA(MCP_D4_MCP_NAF4_MARK, PORT301_FN1), \
  1038. PINMUX_DATA(MMCD1_4_MARK, PORT301_FN2, MSEL4CR_MSEL15_1),
  1039. PINMUX_DATA(MCP_D3_MCP_NAF3_MARK, PORT302_FN1), \
  1040. PINMUX_DATA(MMCD1_3_MARK, PORT302_FN2, MSEL4CR_MSEL15_1),
  1041. PINMUX_DATA(MCP_D2_MCP_NAF2_MARK, PORT303_FN1), \
  1042. PINMUX_DATA(MMCD1_2_MARK, PORT303_FN2, MSEL4CR_MSEL15_1),
  1043. PINMUX_DATA(MCP_D1_MCP_NAF1_MARK, PORT304_FN1), \
  1044. PINMUX_DATA(MMCD1_1_MARK, PORT304_FN2, MSEL4CR_MSEL15_1),
  1045. PINMUX_DATA(MCP_D0_MCP_NAF0_MARK, PORT305_FN1), \
  1046. PINMUX_DATA(MMCD1_0_MARK, PORT305_FN2, MSEL4CR_MSEL15_1),
  1047. PINMUX_DATA(MCP_NBRSTOUT__MARK, PORT306_FN1),
  1048. PINMUX_DATA(MCP_WE0__MCP_FWE_MARK, PORT309_FN1), \
  1049. PINMUX_DATA(MCP_RDWR_MCP_FWE_MARK, PORT309_FN2),
  1050. /* MSEL2 special cases */
  1051. PINMUX_DATA(TSIF2_TS_XX1_MARK, MSEL2CR_MSEL14_0, MSEL2CR_MSEL13_0,
  1052. MSEL2CR_MSEL12_0),
  1053. PINMUX_DATA(TSIF2_TS_XX2_MARK, MSEL2CR_MSEL14_0, MSEL2CR_MSEL13_0,
  1054. MSEL2CR_MSEL12_1),
  1055. PINMUX_DATA(TSIF2_TS_XX3_MARK, MSEL2CR_MSEL14_0, MSEL2CR_MSEL13_1,
  1056. MSEL2CR_MSEL12_0),
  1057. PINMUX_DATA(TSIF2_TS_XX4_MARK, MSEL2CR_MSEL14_0, MSEL2CR_MSEL13_1,
  1058. MSEL2CR_MSEL12_1),
  1059. PINMUX_DATA(TSIF2_TS_XX5_MARK, MSEL2CR_MSEL14_1, MSEL2CR_MSEL13_0,
  1060. MSEL2CR_MSEL12_0),
  1061. PINMUX_DATA(TSIF1_TS_XX1_MARK, MSEL2CR_MSEL11_0, MSEL2CR_MSEL10_0,
  1062. MSEL2CR_MSEL9_0),
  1063. PINMUX_DATA(TSIF1_TS_XX2_MARK, MSEL2CR_MSEL11_0, MSEL2CR_MSEL10_0,
  1064. MSEL2CR_MSEL9_1),
  1065. PINMUX_DATA(TSIF1_TS_XX3_MARK, MSEL2CR_MSEL11_0, MSEL2CR_MSEL10_1,
  1066. MSEL2CR_MSEL9_0),
  1067. PINMUX_DATA(TSIF1_TS_XX4_MARK, MSEL2CR_MSEL11_0, MSEL2CR_MSEL10_1,
  1068. MSEL2CR_MSEL9_1),
  1069. PINMUX_DATA(TSIF1_TS_XX5_MARK, MSEL2CR_MSEL11_1, MSEL2CR_MSEL10_0,
  1070. MSEL2CR_MSEL9_0),
  1071. PINMUX_DATA(TSIF0_TS_XX1_MARK, MSEL2CR_MSEL8_0, MSEL2CR_MSEL7_0,
  1072. MSEL2CR_MSEL6_0),
  1073. PINMUX_DATA(TSIF0_TS_XX2_MARK, MSEL2CR_MSEL8_0, MSEL2CR_MSEL7_0,
  1074. MSEL2CR_MSEL6_1),
  1075. PINMUX_DATA(TSIF0_TS_XX3_MARK, MSEL2CR_MSEL8_0, MSEL2CR_MSEL7_1,
  1076. MSEL2CR_MSEL6_0),
  1077. PINMUX_DATA(TSIF0_TS_XX4_MARK, MSEL2CR_MSEL8_0, MSEL2CR_MSEL7_1,
  1078. MSEL2CR_MSEL6_1),
  1079. PINMUX_DATA(TSIF0_TS_XX5_MARK, MSEL2CR_MSEL8_1, MSEL2CR_MSEL7_0,
  1080. MSEL2CR_MSEL6_0),
  1081. PINMUX_DATA(MST1_TS_XX1_MARK, MSEL2CR_MSEL5_0, MSEL2CR_MSEL4_0,
  1082. MSEL2CR_MSEL3_0),
  1083. PINMUX_DATA(MST1_TS_XX2_MARK, MSEL2CR_MSEL5_0, MSEL2CR_MSEL4_0,
  1084. MSEL2CR_MSEL3_1),
  1085. PINMUX_DATA(MST1_TS_XX3_MARK, MSEL2CR_MSEL5_0, MSEL2CR_MSEL4_1,
  1086. MSEL2CR_MSEL3_0),
  1087. PINMUX_DATA(MST1_TS_XX4_MARK, MSEL2CR_MSEL5_0, MSEL2CR_MSEL4_1,
  1088. MSEL2CR_MSEL3_1),
  1089. PINMUX_DATA(MST1_TS_XX5_MARK, MSEL2CR_MSEL5_1, MSEL2CR_MSEL4_0,
  1090. MSEL2CR_MSEL3_0),
  1091. PINMUX_DATA(MST0_TS_XX1_MARK, MSEL2CR_MSEL2_0, MSEL2CR_MSEL1_0,
  1092. MSEL2CR_MSEL0_0),
  1093. PINMUX_DATA(MST0_TS_XX2_MARK, MSEL2CR_MSEL2_0, MSEL2CR_MSEL1_0,
  1094. MSEL2CR_MSEL0_1),
  1095. PINMUX_DATA(MST0_TS_XX3_MARK, MSEL2CR_MSEL2_0, MSEL2CR_MSEL1_1,
  1096. MSEL2CR_MSEL0_0),
  1097. PINMUX_DATA(MST0_TS_XX4_MARK, MSEL2CR_MSEL2_0, MSEL2CR_MSEL1_1,
  1098. MSEL2CR_MSEL0_1),
  1099. PINMUX_DATA(MST0_TS_XX5_MARK, MSEL2CR_MSEL2_1, MSEL2CR_MSEL1_0,
  1100. MSEL2CR_MSEL0_0),
  1101. /* MSEL3 special cases */
  1102. PINMUX_DATA(SDHI0_VCCQ_MC0_ON_MARK, MSEL3CR_MSEL28_1),
  1103. PINMUX_DATA(SDHI0_VCCQ_MC0_OFF_MARK, MSEL3CR_MSEL28_0),
  1104. PINMUX_DATA(DEBUG_MON_VIO_MARK, MSEL3CR_MSEL15_0),
  1105. PINMUX_DATA(DEBUG_MON_LCDD_MARK, MSEL3CR_MSEL15_1),
  1106. PINMUX_DATA(LCDC_LCDC0_MARK, MSEL3CR_MSEL6_0),
  1107. PINMUX_DATA(LCDC_LCDC1_MARK, MSEL3CR_MSEL6_1),
  1108. /* MSEL4 special cases */
  1109. PINMUX_DATA(IRQ9_MEM_INT_MARK, MSEL4CR_MSEL29_0),
  1110. PINMUX_DATA(IRQ9_MCP_INT_MARK, MSEL4CR_MSEL29_1),
  1111. PINMUX_DATA(A11_MARK, MSEL4CR_MSEL13_0, MSEL4CR_MSEL12_0),
  1112. PINMUX_DATA(KEYOUT8_MARK, MSEL4CR_MSEL13_0, MSEL4CR_MSEL12_1),
  1113. PINMUX_DATA(TPU4TO3_MARK, MSEL4CR_MSEL13_1, MSEL4CR_MSEL12_0),
  1114. PINMUX_DATA(RESETA_N_PU_ON_MARK, MSEL4CR_MSEL4_0),
  1115. PINMUX_DATA(RESETA_N_PU_OFF_MARK, MSEL4CR_MSEL4_1),
  1116. PINMUX_DATA(EDBGREQ_PD_MARK, MSEL4CR_MSEL1_0),
  1117. PINMUX_DATA(EDBGREQ_PU_MARK, MSEL4CR_MSEL1_1),
  1118. };
  1119. #define __I (SH_PFC_PIN_CFG_INPUT)
  1120. #define __O (SH_PFC_PIN_CFG_OUTPUT)
  1121. #define __IO (SH_PFC_PIN_CFG_INPUT | SH_PFC_PIN_CFG_OUTPUT)
  1122. #define __PD (SH_PFC_PIN_CFG_PULL_DOWN)
  1123. #define __PU (SH_PFC_PIN_CFG_PULL_UP)
  1124. #define __PUD (SH_PFC_PIN_CFG_PULL_UP_DOWN)
  1125. #define SH73A0_PIN_I_PD(pin) SH_PFC_PIN_CFG(pin, __I | __PD)
  1126. #define SH73A0_PIN_I_PU(pin) SH_PFC_PIN_CFG(pin, __I | __PU)
  1127. #define SH73A0_PIN_I_PU_PD(pin) SH_PFC_PIN_CFG(pin, __I | __PUD)
  1128. #define SH73A0_PIN_IO(pin) SH_PFC_PIN_CFG(pin, __IO)
  1129. #define SH73A0_PIN_IO_PD(pin) SH_PFC_PIN_CFG(pin, __IO | __PD)
  1130. #define SH73A0_PIN_IO_PU(pin) SH_PFC_PIN_CFG(pin, __IO | __PU)
  1131. #define SH73A0_PIN_IO_PU_PD(pin) SH_PFC_PIN_CFG(pin, __IO | __PUD)
  1132. #define SH73A0_PIN_O(pin) SH_PFC_PIN_CFG(pin, __O)
  1133. /*
  1134. * Pins not associated with a GPIO port.
  1135. */
  1136. enum {
  1137. PORT_ASSIGN_LAST(),
  1138. NOGP_ALL(),
  1139. };
  1140. static const struct sh_pfc_pin pinmux_pins[] = {
  1141. /* Table 25-1 (I/O and Pull U/D) */
  1142. SH73A0_PIN_I_PD(0),
  1143. SH73A0_PIN_I_PU(1),
  1144. SH73A0_PIN_I_PU(2),
  1145. SH73A0_PIN_I_PU(3),
  1146. SH73A0_PIN_I_PU(4),
  1147. SH73A0_PIN_I_PU(5),
  1148. SH73A0_PIN_I_PU(6),
  1149. SH73A0_PIN_I_PU(7),
  1150. SH73A0_PIN_I_PU(8),
  1151. SH73A0_PIN_I_PD(9),
  1152. SH73A0_PIN_I_PD(10),
  1153. SH73A0_PIN_I_PU_PD(11),
  1154. SH73A0_PIN_IO_PU_PD(12),
  1155. SH73A0_PIN_IO_PU_PD(13),
  1156. SH73A0_PIN_IO_PU_PD(14),
  1157. SH73A0_PIN_IO_PU_PD(15),
  1158. SH73A0_PIN_IO_PD(16),
  1159. SH73A0_PIN_IO_PD(17),
  1160. SH73A0_PIN_IO_PU(18),
  1161. SH73A0_PIN_IO_PU(19),
  1162. SH73A0_PIN_O(20),
  1163. SH73A0_PIN_O(21),
  1164. SH73A0_PIN_O(22),
  1165. SH73A0_PIN_O(23),
  1166. SH73A0_PIN_O(24),
  1167. SH73A0_PIN_I_PD(25),
  1168. SH73A0_PIN_I_PD(26),
  1169. SH73A0_PIN_IO_PU(27),
  1170. SH73A0_PIN_IO_PU(28),
  1171. SH73A0_PIN_IO_PD(29),
  1172. SH73A0_PIN_IO_PD(30),
  1173. SH73A0_PIN_IO_PU(31),
  1174. SH73A0_PIN_IO_PD(32),
  1175. SH73A0_PIN_I_PU_PD(33),
  1176. SH73A0_PIN_IO_PD(34),
  1177. SH73A0_PIN_I_PU_PD(35),
  1178. SH73A0_PIN_IO_PD(36),
  1179. SH73A0_PIN_IO(37),
  1180. SH73A0_PIN_O(38),
  1181. SH73A0_PIN_I_PU(39),
  1182. SH73A0_PIN_I_PU_PD(40),
  1183. SH73A0_PIN_O(41),
  1184. SH73A0_PIN_IO_PD(42),
  1185. SH73A0_PIN_IO_PU_PD(43),
  1186. SH73A0_PIN_IO_PU_PD(44),
  1187. SH73A0_PIN_IO_PD(45),
  1188. SH73A0_PIN_IO_PD(46),
  1189. SH73A0_PIN_IO_PD(47),
  1190. SH73A0_PIN_I_PD(48),
  1191. SH73A0_PIN_IO_PU_PD(49),
  1192. SH73A0_PIN_IO_PD(50),
  1193. SH73A0_PIN_IO_PD(51),
  1194. SH73A0_PIN_O(52),
  1195. SH73A0_PIN_IO_PU_PD(53),
  1196. SH73A0_PIN_IO_PU_PD(54),
  1197. SH73A0_PIN_IO_PD(55),
  1198. SH73A0_PIN_I_PU_PD(56),
  1199. SH73A0_PIN_IO(57),
  1200. SH73A0_PIN_IO(58),
  1201. SH73A0_PIN_IO(59),
  1202. SH73A0_PIN_IO(60),
  1203. SH73A0_PIN_IO(61),
  1204. SH73A0_PIN_IO_PD(62),
  1205. SH73A0_PIN_IO_PD(63),
  1206. SH73A0_PIN_IO_PU_PD(64),
  1207. SH73A0_PIN_IO_PD(65),
  1208. SH73A0_PIN_IO_PU_PD(66),
  1209. SH73A0_PIN_IO_PU_PD(67),
  1210. SH73A0_PIN_IO_PU_PD(68),
  1211. SH73A0_PIN_IO_PU_PD(69),
  1212. SH73A0_PIN_IO_PU_PD(70),
  1213. SH73A0_PIN_IO_PU_PD(71),
  1214. SH73A0_PIN_IO_PU_PD(72),
  1215. SH73A0_PIN_I_PU_PD(73),
  1216. SH73A0_PIN_IO_PU(74),
  1217. SH73A0_PIN_IO_PU(75),
  1218. SH73A0_PIN_IO_PU(76),
  1219. SH73A0_PIN_IO_PU(77),
  1220. SH73A0_PIN_IO_PU(78),
  1221. SH73A0_PIN_IO_PU(79),
  1222. SH73A0_PIN_IO_PU(80),
  1223. SH73A0_PIN_IO_PU(81),
  1224. SH73A0_PIN_IO_PU(82),
  1225. SH73A0_PIN_IO_PU(83),
  1226. SH73A0_PIN_IO_PU(84),
  1227. SH73A0_PIN_IO_PU(85),
  1228. SH73A0_PIN_IO_PU(86),
  1229. SH73A0_PIN_IO_PU(87),
  1230. SH73A0_PIN_IO_PU(88),
  1231. SH73A0_PIN_IO_PU(89),
  1232. SH73A0_PIN_O(90),
  1233. SH73A0_PIN_IO_PU(91),
  1234. SH73A0_PIN_O(92),
  1235. SH73A0_PIN_IO_PU(93),
  1236. SH73A0_PIN_O(94),
  1237. SH73A0_PIN_I_PU_PD(95),
  1238. SH73A0_PIN_IO(96),
  1239. SH73A0_PIN_IO(97),
  1240. SH73A0_PIN_IO(98),
  1241. SH73A0_PIN_I_PU(99),
  1242. SH73A0_PIN_O(100),
  1243. SH73A0_PIN_O(101),
  1244. SH73A0_PIN_I_PU(102),
  1245. SH73A0_PIN_IO_PD(103),
  1246. SH73A0_PIN_I_PU_PD(104),
  1247. SH73A0_PIN_I_PD(105),
  1248. SH73A0_PIN_I_PD(106),
  1249. SH73A0_PIN_I_PU_PD(107),
  1250. SH73A0_PIN_I_PU_PD(108),
  1251. SH73A0_PIN_IO_PD(109),
  1252. SH73A0_PIN_IO_PD(110),
  1253. SH73A0_PIN_IO_PU_PD(111),
  1254. SH73A0_PIN_IO_PU_PD(112),
  1255. SH73A0_PIN_IO_PU_PD(113),
  1256. SH73A0_PIN_IO_PD(114),
  1257. SH73A0_PIN_IO_PU(115),
  1258. SH73A0_PIN_IO_PU(116),
  1259. SH73A0_PIN_IO_PU_PD(117),
  1260. SH73A0_PIN_IO_PU_PD(118),
  1261. SH73A0_PIN_IO_PD(128),
  1262. SH73A0_PIN_IO_PD(129),
  1263. SH73A0_PIN_IO_PU_PD(130),
  1264. SH73A0_PIN_IO_PD(131),
  1265. SH73A0_PIN_IO_PD(132),
  1266. SH73A0_PIN_IO_PD(133),
  1267. SH73A0_PIN_IO_PU_PD(134),
  1268. SH73A0_PIN_IO_PU_PD(135),
  1269. SH73A0_PIN_IO_PU_PD(136),
  1270. SH73A0_PIN_IO_PU_PD(137),
  1271. SH73A0_PIN_IO_PD(138),
  1272. SH73A0_PIN_IO_PD(139),
  1273. SH73A0_PIN_IO_PD(140),
  1274. SH73A0_PIN_IO_PD(141),
  1275. SH73A0_PIN_IO_PD(142),
  1276. SH73A0_PIN_IO_PD(143),
  1277. SH73A0_PIN_IO_PU_PD(144),
  1278. SH73A0_PIN_IO_PD(145),
  1279. SH73A0_PIN_IO_PU_PD(146),
  1280. SH73A0_PIN_IO_PU_PD(147),
  1281. SH73A0_PIN_IO_PU_PD(148),
  1282. SH73A0_PIN_IO_PU_PD(149),
  1283. SH73A0_PIN_I_PU_PD(150),
  1284. SH73A0_PIN_IO_PU_PD(151),
  1285. SH73A0_PIN_IO_PU_PD(152),
  1286. SH73A0_PIN_IO_PD(153),
  1287. SH73A0_PIN_IO_PD(154),
  1288. SH73A0_PIN_I_PU_PD(155),
  1289. SH73A0_PIN_IO_PU_PD(156),
  1290. SH73A0_PIN_I_PD(157),
  1291. SH73A0_PIN_IO_PD(158),
  1292. SH73A0_PIN_IO_PU_PD(159),
  1293. SH73A0_PIN_IO_PU_PD(160),
  1294. SH73A0_PIN_I_PU_PD(161),
  1295. SH73A0_PIN_I_PU_PD(162),
  1296. SH73A0_PIN_IO_PU_PD(163),
  1297. SH73A0_PIN_I_PU_PD(164),
  1298. SH73A0_PIN_IO_PD(192),
  1299. SH73A0_PIN_IO_PU_PD(193),
  1300. SH73A0_PIN_IO_PD(194),
  1301. SH73A0_PIN_IO_PU_PD(195),
  1302. SH73A0_PIN_IO_PD(196),
  1303. SH73A0_PIN_IO_PD(197),
  1304. SH73A0_PIN_IO_PD(198),
  1305. SH73A0_PIN_IO_PD(199),
  1306. SH73A0_PIN_IO_PU_PD(200),
  1307. SH73A0_PIN_IO_PU_PD(201),
  1308. SH73A0_PIN_IO_PU_PD(202),
  1309. SH73A0_PIN_IO_PU_PD(203),
  1310. SH73A0_PIN_IO_PU_PD(204),
  1311. SH73A0_PIN_IO_PU_PD(205),
  1312. SH73A0_PIN_IO_PU_PD(206),
  1313. SH73A0_PIN_IO_PD(207),
  1314. SH73A0_PIN_IO_PD(208),
  1315. SH73A0_PIN_IO_PD(209),
  1316. SH73A0_PIN_IO_PD(210),
  1317. SH73A0_PIN_IO_PD(211),
  1318. SH73A0_PIN_IO_PD(212),
  1319. SH73A0_PIN_IO_PD(213),
  1320. SH73A0_PIN_IO_PU_PD(214),
  1321. SH73A0_PIN_IO_PU_PD(215),
  1322. SH73A0_PIN_IO_PD(216),
  1323. SH73A0_PIN_IO_PD(217),
  1324. SH73A0_PIN_O(218),
  1325. SH73A0_PIN_IO_PD(219),
  1326. SH73A0_PIN_IO_PD(220),
  1327. SH73A0_PIN_IO_PU_PD(221),
  1328. SH73A0_PIN_IO_PU_PD(222),
  1329. SH73A0_PIN_I_PU_PD(223),
  1330. SH73A0_PIN_I_PU_PD(224),
  1331. SH73A0_PIN_IO_PU_PD(225),
  1332. SH73A0_PIN_O(226),
  1333. SH73A0_PIN_IO_PU_PD(227),
  1334. SH73A0_PIN_I_PU_PD(228),
  1335. SH73A0_PIN_I_PD(229),
  1336. SH73A0_PIN_IO(230),
  1337. SH73A0_PIN_IO_PU_PD(231),
  1338. SH73A0_PIN_IO_PU_PD(232),
  1339. SH73A0_PIN_I_PU_PD(233),
  1340. SH73A0_PIN_IO_PU_PD(234),
  1341. SH73A0_PIN_IO_PU_PD(235),
  1342. SH73A0_PIN_IO_PU_PD(236),
  1343. SH73A0_PIN_IO_PD(237),
  1344. SH73A0_PIN_IO_PU_PD(238),
  1345. SH73A0_PIN_IO_PU_PD(239),
  1346. SH73A0_PIN_IO_PU_PD(240),
  1347. SH73A0_PIN_O(241),
  1348. SH73A0_PIN_I_PD(242),
  1349. SH73A0_PIN_IO_PU_PD(243),
  1350. SH73A0_PIN_IO_PU_PD(244),
  1351. SH73A0_PIN_IO_PU_PD(245),
  1352. SH73A0_PIN_IO_PU_PD(246),
  1353. SH73A0_PIN_IO_PU_PD(247),
  1354. SH73A0_PIN_IO_PU_PD(248),
  1355. SH73A0_PIN_IO_PU_PD(249),
  1356. SH73A0_PIN_IO_PU_PD(250),
  1357. SH73A0_PIN_IO_PU_PD(251),
  1358. SH73A0_PIN_IO_PU_PD(252),
  1359. SH73A0_PIN_IO_PU_PD(253),
  1360. SH73A0_PIN_IO_PU_PD(254),
  1361. SH73A0_PIN_IO_PU_PD(255),
  1362. SH73A0_PIN_IO_PU_PD(256),
  1363. SH73A0_PIN_IO_PU_PD(257),
  1364. SH73A0_PIN_IO_PU_PD(258),
  1365. SH73A0_PIN_IO_PU_PD(259),
  1366. SH73A0_PIN_IO_PU_PD(260),
  1367. SH73A0_PIN_IO_PU_PD(261),
  1368. SH73A0_PIN_IO_PU_PD(262),
  1369. SH73A0_PIN_IO_PU_PD(263),
  1370. SH73A0_PIN_IO_PU_PD(264),
  1371. SH73A0_PIN_IO_PU_PD(265),
  1372. SH73A0_PIN_IO_PU_PD(266),
  1373. SH73A0_PIN_IO_PU_PD(267),
  1374. SH73A0_PIN_IO_PU_PD(268),
  1375. SH73A0_PIN_IO_PU_PD(269),
  1376. SH73A0_PIN_IO_PU_PD(270),
  1377. SH73A0_PIN_IO_PU_PD(271),
  1378. SH73A0_PIN_IO_PU_PD(272),
  1379. SH73A0_PIN_IO_PU_PD(273),
  1380. SH73A0_PIN_IO_PU_PD(274),
  1381. SH73A0_PIN_IO_PU_PD(275),
  1382. SH73A0_PIN_IO_PU_PD(276),
  1383. SH73A0_PIN_IO_PU_PD(277),
  1384. SH73A0_PIN_IO_PU_PD(278),
  1385. SH73A0_PIN_IO_PU_PD(279),
  1386. SH73A0_PIN_IO_PU_PD(280),
  1387. SH73A0_PIN_O(281),
  1388. SH73A0_PIN_O(282),
  1389. SH73A0_PIN_I_PU(288),
  1390. SH73A0_PIN_IO_PU_PD(289),
  1391. SH73A0_PIN_IO_PU_PD(290),
  1392. SH73A0_PIN_IO_PU_PD(291),
  1393. SH73A0_PIN_IO_PU_PD(292),
  1394. SH73A0_PIN_IO_PU_PD(293),
  1395. SH73A0_PIN_IO_PU_PD(294),
  1396. SH73A0_PIN_IO_PU_PD(295),
  1397. SH73A0_PIN_IO_PU_PD(296),
  1398. SH73A0_PIN_IO_PU_PD(297),
  1399. SH73A0_PIN_IO_PU_PD(298),
  1400. SH73A0_PIN_IO_PU_PD(299),
  1401. SH73A0_PIN_IO_PU_PD(300),
  1402. SH73A0_PIN_IO_PU_PD(301),
  1403. SH73A0_PIN_IO_PU_PD(302),
  1404. SH73A0_PIN_IO_PU_PD(303),
  1405. SH73A0_PIN_IO_PU_PD(304),
  1406. SH73A0_PIN_IO_PU_PD(305),
  1407. SH73A0_PIN_O(306),
  1408. SH73A0_PIN_O(307),
  1409. SH73A0_PIN_I_PU(308),
  1410. SH73A0_PIN_O(309),
  1411. /* Pins not associated with a GPIO port */
  1412. PINMUX_NOGP_ALL(),
  1413. };
  1414. /* - BSC -------------------------------------------------------------------- */
  1415. static const unsigned int bsc_data_0_7_pins[] = {
  1416. /* D[0:7] */
  1417. 74, 75, 76, 77, 78, 79, 80, 81,
  1418. };
  1419. static const unsigned int bsc_data_0_7_mux[] = {
  1420. D0_NAF0_MARK, D1_NAF1_MARK, D2_NAF2_MARK, D3_NAF3_MARK,
  1421. D4_NAF4_MARK, D5_NAF5_MARK, D6_NAF6_MARK, D7_NAF7_MARK,
  1422. };
  1423. static const unsigned int bsc_data_8_15_pins[] = {
  1424. /* D[8:15] */
  1425. 82, 83, 84, 85, 86, 87, 88, 89,
  1426. };
  1427. static const unsigned int bsc_data_8_15_mux[] = {
  1428. D8_NAF8_MARK, D9_NAF9_MARK, D10_NAF10_MARK, D11_NAF11_MARK,
  1429. D12_NAF12_MARK, D13_NAF13_MARK, D14_NAF14_MARK, D15_NAF15_MARK,
  1430. };
  1431. static const unsigned int bsc_cs4_pins[] = {
  1432. /* CS */
  1433. 90,
  1434. };
  1435. static const unsigned int bsc_cs4_mux[] = {
  1436. CS4__MARK,
  1437. };
  1438. static const unsigned int bsc_cs5_a_pins[] = {
  1439. /* CS */
  1440. 91,
  1441. };
  1442. static const unsigned int bsc_cs5_a_mux[] = {
  1443. CS5A__MARK,
  1444. };
  1445. static const unsigned int bsc_cs5_b_pins[] = {
  1446. /* CS */
  1447. 92,
  1448. };
  1449. static const unsigned int bsc_cs5_b_mux[] = {
  1450. CS5B__MARK,
  1451. };
  1452. static const unsigned int bsc_cs6_a_pins[] = {
  1453. /* CS */
  1454. 94,
  1455. };
  1456. static const unsigned int bsc_cs6_a_mux[] = {
  1457. CS6A__MARK,
  1458. };
  1459. static const unsigned int bsc_cs6_b_pins[] = {
  1460. /* CS */
  1461. 93,
  1462. };
  1463. static const unsigned int bsc_cs6_b_mux[] = {
  1464. CS6B__MARK,
  1465. };
  1466. static const unsigned int bsc_rd_pins[] = {
  1467. /* RD */
  1468. 96,
  1469. };
  1470. static const unsigned int bsc_rd_mux[] = {
  1471. RD__FSC_MARK,
  1472. };
  1473. static const unsigned int bsc_rdwr_0_pins[] = {
  1474. /* RDWR */
  1475. 91,
  1476. };
  1477. static const unsigned int bsc_rdwr_0_mux[] = {
  1478. PORT91_RDWR_MARK,
  1479. };
  1480. static const unsigned int bsc_rdwr_1_pins[] = {
  1481. /* RDWR */
  1482. 97,
  1483. };
  1484. static const unsigned int bsc_rdwr_1_mux[] = {
  1485. RDWR_FWE_MARK,
  1486. };
  1487. static const unsigned int bsc_rdwr_2_pins[] = {
  1488. /* RDWR */
  1489. 149,
  1490. };
  1491. static const unsigned int bsc_rdwr_2_mux[] = {
  1492. PORT149_RDWR_MARK,
  1493. };
  1494. static const unsigned int bsc_we0_pins[] = {
  1495. /* WE0 */
  1496. 97,
  1497. };
  1498. static const unsigned int bsc_we0_mux[] = {
  1499. WE0__FWE_MARK,
  1500. };
  1501. static const unsigned int bsc_we1_pins[] = {
  1502. /* WE1 */
  1503. 98,
  1504. };
  1505. static const unsigned int bsc_we1_mux[] = {
  1506. WE1__MARK,
  1507. };
  1508. /* - FSIA ------------------------------------------------------------------- */
  1509. static const unsigned int fsia_mclk_in_pins[] = {
  1510. /* CK */
  1511. 49,
  1512. };
  1513. static const unsigned int fsia_mclk_in_mux[] = {
  1514. FSIACK_MARK,
  1515. };
  1516. static const unsigned int fsia_mclk_out_pins[] = {
  1517. /* OMC */
  1518. 49,
  1519. };
  1520. static const unsigned int fsia_mclk_out_mux[] = {
  1521. FSIAOMC_MARK,
  1522. };
  1523. static const unsigned int fsia_sclk_in_pins[] = {
  1524. /* ILR, IBT */
  1525. 50, 51,
  1526. };
  1527. static const unsigned int fsia_sclk_in_mux[] = {
  1528. FSIAILR_MARK, FSIAIBT_MARK,
  1529. };
  1530. static const unsigned int fsia_sclk_out_pins[] = {
  1531. /* OLR, OBT */
  1532. 50, 51,
  1533. };
  1534. static const unsigned int fsia_sclk_out_mux[] = {
  1535. FSIAOLR_MARK, FSIAOBT_MARK,
  1536. };
  1537. static const unsigned int fsia_data_in_pins[] = {
  1538. /* ISLD */
  1539. 55,
  1540. };
  1541. static const unsigned int fsia_data_in_mux[] = {
  1542. FSIAISLD_MARK,
  1543. };
  1544. static const unsigned int fsia_data_out_pins[] = {
  1545. /* OSLD */
  1546. 52,
  1547. };
  1548. static const unsigned int fsia_data_out_mux[] = {
  1549. FSIAOSLD_MARK,
  1550. };
  1551. static const unsigned int fsia_spdif_pins[] = {
  1552. /* SPDIF */
  1553. 53,
  1554. };
  1555. static const unsigned int fsia_spdif_mux[] = {
  1556. FSIASPDIF_MARK,
  1557. };
  1558. /* - FSIB ------------------------------------------------------------------- */
  1559. static const unsigned int fsib_mclk_in_pins[] = {
  1560. /* CK */
  1561. 54,
  1562. };
  1563. static const unsigned int fsib_mclk_in_mux[] = {
  1564. FSIBCK_MARK,
  1565. };
  1566. static const unsigned int fsib_mclk_out_pins[] = {
  1567. /* OMC */
  1568. 54,
  1569. };
  1570. static const unsigned int fsib_mclk_out_mux[] = {
  1571. FSIBOMC_MARK,
  1572. };
  1573. static const unsigned int fsib_sclk_in_pins[] = {
  1574. /* ILR, IBT */
  1575. 37, 36,
  1576. };
  1577. static const unsigned int fsib_sclk_in_mux[] = {
  1578. FSIBILR_MARK, FSIBIBT_MARK,
  1579. };
  1580. static const unsigned int fsib_sclk_out_pins[] = {
  1581. /* OLR, OBT */
  1582. 37, 36,
  1583. };
  1584. static const unsigned int fsib_sclk_out_mux[] = {
  1585. FSIBOLR_MARK, FSIBOBT_MARK,
  1586. };
  1587. static const unsigned int fsib_data_in_pins[] = {
  1588. /* ISLD */
  1589. 39,
  1590. };
  1591. static const unsigned int fsib_data_in_mux[] = {
  1592. FSIBISLD_MARK,
  1593. };
  1594. static const unsigned int fsib_data_out_pins[] = {
  1595. /* OSLD */
  1596. 38,
  1597. };
  1598. static const unsigned int fsib_data_out_mux[] = {
  1599. FSIBOSLD_MARK,
  1600. };
  1601. static const unsigned int fsib_spdif_pins[] = {
  1602. /* SPDIF */
  1603. 53,
  1604. };
  1605. static const unsigned int fsib_spdif_mux[] = {
  1606. FSIBSPDIF_MARK,
  1607. };
  1608. /* - FSIC ------------------------------------------------------------------- */
  1609. static const unsigned int fsic_mclk_in_pins[] = {
  1610. /* CK */
  1611. 54,
  1612. };
  1613. static const unsigned int fsic_mclk_in_mux[] = {
  1614. FSICCK_MARK,
  1615. };
  1616. static const unsigned int fsic_mclk_out_pins[] = {
  1617. /* OMC */
  1618. 54,
  1619. };
  1620. static const unsigned int fsic_mclk_out_mux[] = {
  1621. FSICOMC_MARK,
  1622. };
  1623. static const unsigned int fsic_sclk_in_pins[] = {
  1624. /* ILR, IBT */
  1625. 46, 45,
  1626. };
  1627. static const unsigned int fsic_sclk_in_mux[] = {
  1628. FSICILR_MARK, FSICIBT_MARK,
  1629. };
  1630. static const unsigned int fsic_sclk_out_pins[] = {
  1631. /* OLR, OBT */
  1632. 46, 45,
  1633. };
  1634. static const unsigned int fsic_sclk_out_mux[] = {
  1635. FSICOLR_MARK, FSICOBT_MARK,
  1636. };
  1637. static const unsigned int fsic_data_in_pins[] = {
  1638. /* ISLD */
  1639. 48,
  1640. };
  1641. static const unsigned int fsic_data_in_mux[] = {
  1642. FSICISLD_MARK,
  1643. };
  1644. static const unsigned int fsic_data_out_pins[] = {
  1645. /* OSLD, OSLDT1, OSLDT2, OSLDT3 */
  1646. 47, 44, 42, 16,
  1647. };
  1648. static const unsigned int fsic_data_out_mux[] = {
  1649. FSICOSLD_MARK, FSICOSLDT1_MARK, FSICOSLDT2_MARK, FSICOSLDT3_MARK,
  1650. };
  1651. static const unsigned int fsic_spdif_0_pins[] = {
  1652. /* SPDIF */
  1653. 53,
  1654. };
  1655. static const unsigned int fsic_spdif_0_mux[] = {
  1656. PORT53_FSICSPDIF_MARK,
  1657. };
  1658. static const unsigned int fsic_spdif_1_pins[] = {
  1659. /* SPDIF */
  1660. 47,
  1661. };
  1662. static const unsigned int fsic_spdif_1_mux[] = {
  1663. PORT47_FSICSPDIF_MARK,
  1664. };
  1665. /* - FSID ------------------------------------------------------------------- */
  1666. static const unsigned int fsid_sclk_in_pins[] = {
  1667. /* ILR, IBT */
  1668. 46, 45,
  1669. };
  1670. static const unsigned int fsid_sclk_in_mux[] = {
  1671. FSIDILR_MARK, FSIDIBT_MARK,
  1672. };
  1673. static const unsigned int fsid_sclk_out_pins[] = {
  1674. /* OLR, OBT */
  1675. 46, 45,
  1676. };
  1677. static const unsigned int fsid_sclk_out_mux[] = {
  1678. FSIDOLR_MARK, FSIDOBT_MARK,
  1679. };
  1680. static const unsigned int fsid_data_in_pins[] = {
  1681. /* ISLD */
  1682. 48,
  1683. };
  1684. static const unsigned int fsid_data_in_mux[] = {
  1685. FSIDISLD_MARK,
  1686. };
  1687. /* - I2C2 ------------------------------------------------------------------- */
  1688. static const unsigned int i2c2_0_pins[] = {
  1689. /* SCL, SDA */
  1690. 237, 236,
  1691. };
  1692. static const unsigned int i2c2_0_mux[] = {
  1693. PORT237_I2C_SCL2_MARK, PORT236_I2C_SDA2_MARK,
  1694. };
  1695. static const unsigned int i2c2_1_pins[] = {
  1696. /* SCL, SDA */
  1697. 27, 28,
  1698. };
  1699. static const unsigned int i2c2_1_mux[] = {
  1700. PORT27_I2C_SCL2_MARK, PORT28_I2C_SDA2_MARK,
  1701. };
  1702. static const unsigned int i2c2_2_pins[] = {
  1703. /* SCL, SDA */
  1704. 115, 116,
  1705. };
  1706. static const unsigned int i2c2_2_mux[] = {
  1707. PORT115_I2C_SCL2_MARK, PORT116_I2C_SDA2_MARK,
  1708. };
  1709. /* - I2C3 ------------------------------------------------------------------- */
  1710. static const unsigned int i2c3_0_pins[] = {
  1711. /* SCL, SDA */
  1712. 248, 249,
  1713. };
  1714. static const unsigned int i2c3_0_mux[] = {
  1715. PORT248_I2C_SCL3_MARK, PORT249_I2C_SDA3_MARK,
  1716. };
  1717. static const unsigned int i2c3_1_pins[] = {
  1718. /* SCL, SDA */
  1719. 27, 28,
  1720. };
  1721. static const unsigned int i2c3_1_mux[] = {
  1722. PORT27_I2C_SCL3_MARK, PORT28_I2C_SDA3_MARK,
  1723. };
  1724. static const unsigned int i2c3_2_pins[] = {
  1725. /* SCL, SDA */
  1726. 115, 116,
  1727. };
  1728. static const unsigned int i2c3_2_mux[] = {
  1729. PORT115_I2C_SCL3_MARK, PORT116_I2C_SDA3_MARK,
  1730. };
  1731. /* - IrDA ------------------------------------------------------------------- */
  1732. static const unsigned int irda_0_pins[] = {
  1733. /* OUT, IN, FIRSEL */
  1734. 241, 242, 243,
  1735. };
  1736. static const unsigned int irda_0_mux[] = {
  1737. PORT241_IRDA_OUT_MARK, PORT242_IRDA_IN_MARK, PORT243_IRDA_FIRSEL_MARK,
  1738. };
  1739. static const unsigned int irda_1_pins[] = {
  1740. /* OUT, IN, FIRSEL */
  1741. 49, 53, 54,
  1742. };
  1743. static const unsigned int irda_1_mux[] = {
  1744. PORT49_IRDA_OUT_MARK, PORT53_IRDA_IN_MARK, PORT54_IRDA_FIRSEL_MARK,
  1745. };
  1746. /* - KEYSC ------------------------------------------------------------------ */
  1747. static const unsigned int keysc_in_pins[] = {
  1748. /* KEYIN[0:7] */
  1749. 66, 67, 68, 69, 70, 71, 72, 73,
  1750. };
  1751. static const unsigned int keysc_in_mux[] = {
  1752. KEYIN0_MARK, KEYIN1_MARK, KEYIN2_MARK, KEYIN3_MARK,
  1753. KEYIN4_MARK, KEYIN5_MARK, KEYIN6_MARK, KEYIN7_MARK,
  1754. };
  1755. static const unsigned int keysc_out04_pins[] = {
  1756. /* KEYOUT[0:4] */
  1757. 65, 64, 63, 62, 61,
  1758. };
  1759. static const unsigned int keysc_out04_mux[] = {
  1760. KEYOUT0_MARK, KEYOUT1_MARK, KEYOUT2_MARK, KEYOUT3_MARK, KEYOUT4_MARK,
  1761. };
  1762. static const unsigned int keysc_out5_pins[] = {
  1763. /* KEYOUT5 */
  1764. 60,
  1765. };
  1766. static const unsigned int keysc_out5_mux[] = {
  1767. KEYOUT5_MARK,
  1768. };
  1769. static const unsigned int keysc_out6_0_pins[] = {
  1770. /* KEYOUT6 */
  1771. 59,
  1772. };
  1773. static const unsigned int keysc_out6_0_mux[] = {
  1774. PORT59_KEYOUT6_MARK,
  1775. };
  1776. static const unsigned int keysc_out6_1_pins[] = {
  1777. /* KEYOUT6 */
  1778. 131,
  1779. };
  1780. static const unsigned int keysc_out6_1_mux[] = {
  1781. PORT131_KEYOUT6_MARK,
  1782. };
  1783. static const unsigned int keysc_out6_2_pins[] = {
  1784. /* KEYOUT6 */
  1785. 143,
  1786. };
  1787. static const unsigned int keysc_out6_2_mux[] = {
  1788. PORT143_KEYOUT6_MARK,
  1789. };
  1790. static const unsigned int keysc_out7_0_pins[] = {
  1791. /* KEYOUT7 */
  1792. 58,
  1793. };
  1794. static const unsigned int keysc_out7_0_mux[] = {
  1795. PORT58_KEYOUT7_MARK,
  1796. };
  1797. static const unsigned int keysc_out7_1_pins[] = {
  1798. /* KEYOUT7 */
  1799. 132,
  1800. };
  1801. static const unsigned int keysc_out7_1_mux[] = {
  1802. PORT132_KEYOUT7_MARK,
  1803. };
  1804. static const unsigned int keysc_out7_2_pins[] = {
  1805. /* KEYOUT7 */
  1806. 144,
  1807. };
  1808. static const unsigned int keysc_out7_2_mux[] = {
  1809. PORT144_KEYOUT7_MARK,
  1810. };
  1811. static const unsigned int keysc_out8_0_pins[] = {
  1812. /* KEYOUT8 */
  1813. PIN_A11,
  1814. };
  1815. static const unsigned int keysc_out8_0_mux[] = {
  1816. KEYOUT8_MARK,
  1817. };
  1818. static const unsigned int keysc_out8_1_pins[] = {
  1819. /* KEYOUT8 */
  1820. 136,
  1821. };
  1822. static const unsigned int keysc_out8_1_mux[] = {
  1823. PORT136_KEYOUT8_MARK,
  1824. };
  1825. static const unsigned int keysc_out8_2_pins[] = {
  1826. /* KEYOUT8 */
  1827. 138,
  1828. };
  1829. static const unsigned int keysc_out8_2_mux[] = {
  1830. PORT138_KEYOUT8_MARK,
  1831. };
  1832. static const unsigned int keysc_out9_0_pins[] = {
  1833. /* KEYOUT9 */
  1834. 137,
  1835. };
  1836. static const unsigned int keysc_out9_0_mux[] = {
  1837. PORT137_KEYOUT9_MARK,
  1838. };
  1839. static const unsigned int keysc_out9_1_pins[] = {
  1840. /* KEYOUT9 */
  1841. 139,
  1842. };
  1843. static const unsigned int keysc_out9_1_mux[] = {
  1844. PORT139_KEYOUT9_MARK,
  1845. };
  1846. static const unsigned int keysc_out9_2_pins[] = {
  1847. /* KEYOUT9 */
  1848. 149,
  1849. };
  1850. static const unsigned int keysc_out9_2_mux[] = {
  1851. PORT149_KEYOUT9_MARK,
  1852. };
  1853. static const unsigned int keysc_out10_0_pins[] = {
  1854. /* KEYOUT10 */
  1855. 132,
  1856. };
  1857. static const unsigned int keysc_out10_0_mux[] = {
  1858. PORT132_KEYOUT10_MARK,
  1859. };
  1860. static const unsigned int keysc_out10_1_pins[] = {
  1861. /* KEYOUT10 */
  1862. 142,
  1863. };
  1864. static const unsigned int keysc_out10_1_mux[] = {
  1865. PORT142_KEYOUT10_MARK,
  1866. };
  1867. static const unsigned int keysc_out11_0_pins[] = {
  1868. /* KEYOUT11 */
  1869. 131,
  1870. };
  1871. static const unsigned int keysc_out11_0_mux[] = {
  1872. PORT131_KEYOUT11_MARK,
  1873. };
  1874. static const unsigned int keysc_out11_1_pins[] = {
  1875. /* KEYOUT11 */
  1876. 143,
  1877. };
  1878. static const unsigned int keysc_out11_1_mux[] = {
  1879. PORT143_KEYOUT11_MARK,
  1880. };
  1881. /* - LCD -------------------------------------------------------------------- */
  1882. static const unsigned int lcd_data_pins[] = {
  1883. /* D[0:23] */
  1884. 192, 193, 194, 195, 196, 197, 198, 199,
  1885. 200, 201, 202, 203, 204, 205, 206, 207,
  1886. 208, 209, 210, 211, 212, 213, 214, 215
  1887. };
  1888. static const unsigned int lcd_data_mux[] = {
  1889. LCDD0_MARK, LCDD1_MARK, LCDD2_MARK, LCDD3_MARK,
  1890. LCDD4_MARK, LCDD5_MARK, LCDD6_MARK, LCDD7_MARK,
  1891. LCDD8_MARK, LCDD9_MARK, LCDD10_MARK, LCDD11_MARK,
  1892. LCDD12_MARK, LCDD13_MARK, LCDD14_MARK, LCDD15_MARK,
  1893. LCDD16_MARK, LCDD17_MARK, LCDD18_MARK, LCDD19_MARK,
  1894. LCDD20_MARK, LCDD21_MARK, LCDD22_MARK, LCDD23_MARK,
  1895. };
  1896. static const unsigned int lcd_display_pins[] = {
  1897. /* DON */
  1898. 222,
  1899. };
  1900. static const unsigned int lcd_display_mux[] = {
  1901. LCDDON_MARK,
  1902. };
  1903. static const unsigned int lcd_lclk_pins[] = {
  1904. /* LCLK */
  1905. 221,
  1906. };
  1907. static const unsigned int lcd_lclk_mux[] = {
  1908. LCDLCLK_MARK,
  1909. };
  1910. static const unsigned int lcd_sync_pins[] = {
  1911. /* VSYN, HSYN, DCK, DISP */
  1912. 220, 218, 216, 219,
  1913. };
  1914. static const unsigned int lcd_sync_mux[] = {
  1915. LCDVSYN_MARK, LCDHSYN_MARK, LCDDCK_MARK, LCDDISP_MARK,
  1916. };
  1917. static const unsigned int lcd_sys_pins[] = {
  1918. /* CS, WR, RD, RS */
  1919. 218, 216, 217, 219,
  1920. };
  1921. static const unsigned int lcd_sys_mux[] = {
  1922. LCDCS__MARK, LCDWR__MARK, LCDRD__MARK, LCDRS_MARK,
  1923. };
  1924. /* - LCD2 ------------------------------------------------------------------- */
  1925. static const unsigned int lcd2_data_pins[] = {
  1926. /* D[0:23] */
  1927. 128, 129, 142, 143, 144, 145, 138, 139,
  1928. 140, 141, 130, 131, 132, 133, 134, 135,
  1929. 136, 137, 146, 147, 234, 235, 238, 239
  1930. };
  1931. static const unsigned int lcd2_data_mux[] = {
  1932. LCD2D0_MARK, LCD2D1_MARK, LCD2D2_MARK, LCD2D3_MARK,
  1933. LCD2D4_MARK, LCD2D5_MARK, LCD2D6_MARK, LCD2D7_MARK,
  1934. LCD2D8_MARK, LCD2D9_MARK, LCD2D10_MARK, LCD2D11_MARK,
  1935. LCD2D12_MARK, LCD2D13_MARK, LCD2D14_MARK, LCD2D15_MARK,
  1936. LCD2D16_MARK, LCD2D17_MARK, LCD2D18_MARK, LCD2D19_MARK,
  1937. LCD2D20_MARK, LCD2D21_MARK, LCD2D22_MARK, LCD2D23_MARK,
  1938. };
  1939. static const unsigned int lcd2_sync_0_pins[] = {
  1940. /* VSYN, HSYN, DCK, DISP */
  1941. 128, 129, 146, 145,
  1942. };
  1943. static const unsigned int lcd2_sync_0_mux[] = {
  1944. PORT128_LCD2VSYN_MARK, PORT129_LCD2HSYN_MARK,
  1945. LCD2DCK_MARK, PORT145_LCD2DISP_MARK,
  1946. };
  1947. static const unsigned int lcd2_sync_1_pins[] = {
  1948. /* VSYN, HSYN, DCK, DISP */
  1949. 222, 221, 219, 217,
  1950. };
  1951. static const unsigned int lcd2_sync_1_mux[] = {
  1952. PORT222_LCD2VSYN_MARK, PORT221_LCD2HSYN_MARK,
  1953. LCD2DCK_2_MARK, PORT217_LCD2DISP_MARK,
  1954. };
  1955. static const unsigned int lcd2_sys_0_pins[] = {
  1956. /* CS, WR, RD, RS */
  1957. 129, 146, 147, 145,
  1958. };
  1959. static const unsigned int lcd2_sys_0_mux[] = {
  1960. PORT129_LCD2CS__MARK, PORT146_LCD2WR__MARK,
  1961. LCD2RD__MARK, PORT145_LCD2RS_MARK,
  1962. };
  1963. static const unsigned int lcd2_sys_1_pins[] = {
  1964. /* CS, WR, RD, RS */
  1965. 221, 219, 147, 217,
  1966. };
  1967. static const unsigned int lcd2_sys_1_mux[] = {
  1968. PORT221_LCD2CS__MARK, PORT219_LCD2WR__MARK,
  1969. LCD2RD__MARK, PORT217_LCD2RS_MARK,
  1970. };
  1971. /* - MMCIF ------------------------------------------------------------------ */
  1972. static const unsigned int mmc0_data_0_pins[] = {
  1973. /* D[0:7] */
  1974. 271, 272, 273, 274, 275, 276, 277, 278,
  1975. };
  1976. static const unsigned int mmc0_data_0_mux[] = {
  1977. MMCD0_0_MARK, MMCD0_1_MARK, MMCD0_2_MARK, MMCD0_3_MARK,
  1978. MMCD0_4_MARK, MMCD0_5_MARK, MMCD0_6_MARK, MMCD0_7_MARK,
  1979. };
  1980. static const unsigned int mmc0_ctrl_0_pins[] = {
  1981. /* CMD, CLK */
  1982. 279, 270,
  1983. };
  1984. static const unsigned int mmc0_ctrl_0_mux[] = {
  1985. MMCCMD0_MARK, MMCCLK0_MARK,
  1986. };
  1987. static const unsigned int mmc0_data_1_pins[] = {
  1988. /* D[0:7] */
  1989. 305, 304, 303, 302, 301, 300, 299, 298,
  1990. };
  1991. static const unsigned int mmc0_data_1_mux[] = {
  1992. MMCD1_0_MARK, MMCD1_1_MARK, MMCD1_2_MARK, MMCD1_3_MARK,
  1993. MMCD1_4_MARK, MMCD1_5_MARK, MMCD1_6_MARK, MMCD1_7_MARK,
  1994. };
  1995. static const unsigned int mmc0_ctrl_1_pins[] = {
  1996. /* CMD, CLK */
  1997. 297, 289,
  1998. };
  1999. static const unsigned int mmc0_ctrl_1_mux[] = {
  2000. MMCCMD1_MARK, MMCCLK1_MARK,
  2001. };
  2002. /* - MSIOF0 ----------------------------------------------------------------- */
  2003. static const unsigned int msiof0_rsck_pins[] = {
  2004. /* RSCK */
  2005. 66,
  2006. };
  2007. static const unsigned int msiof0_rsck_mux[] = {
  2008. MSIOF0_RSCK_MARK,
  2009. };
  2010. static const unsigned int msiof0_tsck_pins[] = {
  2011. /* TSCK */
  2012. 64,
  2013. };
  2014. static const unsigned int msiof0_tsck_mux[] = {
  2015. MSIOF0_TSCK_MARK,
  2016. };
  2017. static const unsigned int msiof0_rsync_pins[] = {
  2018. /* RSYNC */
  2019. 67,
  2020. };
  2021. static const unsigned int msiof0_rsync_mux[] = {
  2022. MSIOF0_RSYNC_MARK,
  2023. };
  2024. static const unsigned int msiof0_tsync_pins[] = {
  2025. /* TSYNC */
  2026. 63,
  2027. };
  2028. static const unsigned int msiof0_tsync_mux[] = {
  2029. MSIOF0_TSYNC_MARK,
  2030. };
  2031. static const unsigned int msiof0_ss1_pins[] = {
  2032. /* SS1 */
  2033. 62,
  2034. };
  2035. static const unsigned int msiof0_ss1_mux[] = {
  2036. MSIOF0_SS1_MARK,
  2037. };
  2038. static const unsigned int msiof0_ss2_pins[] = {
  2039. /* SS2 */
  2040. 71,
  2041. };
  2042. static const unsigned int msiof0_ss2_mux[] = {
  2043. MSIOF0_SS2_MARK,
  2044. };
  2045. static const unsigned int msiof0_rxd_pins[] = {
  2046. /* RXD */
  2047. 70,
  2048. };
  2049. static const unsigned int msiof0_rxd_mux[] = {
  2050. MSIOF0_RXD_MARK,
  2051. };
  2052. static const unsigned int msiof0_txd_pins[] = {
  2053. /* TXD */
  2054. 65,
  2055. };
  2056. static const unsigned int msiof0_txd_mux[] = {
  2057. MSIOF0_TXD_MARK,
  2058. };
  2059. static const unsigned int msiof0_mck0_pins[] = {
  2060. /* MSCK0 */
  2061. 68,
  2062. };
  2063. static const unsigned int msiof0_mck0_mux[] = {
  2064. MSIOF0_MCK0_MARK,
  2065. };
  2066. static const unsigned int msiof0_mck1_pins[] = {
  2067. /* MSCK1 */
  2068. 69,
  2069. };
  2070. static const unsigned int msiof0_mck1_mux[] = {
  2071. MSIOF0_MCK1_MARK,
  2072. };
  2073. static const unsigned int msiof0l_rsck_pins[] = {
  2074. /* RSCK */
  2075. 214,
  2076. };
  2077. static const unsigned int msiof0l_rsck_mux[] = {
  2078. MSIOF0L_RSCK_MARK,
  2079. };
  2080. static const unsigned int msiof0l_tsck_pins[] = {
  2081. /* TSCK */
  2082. 219,
  2083. };
  2084. static const unsigned int msiof0l_tsck_mux[] = {
  2085. MSIOF0L_TSCK_MARK,
  2086. };
  2087. static const unsigned int msiof0l_rsync_pins[] = {
  2088. /* RSYNC */
  2089. 215,
  2090. };
  2091. static const unsigned int msiof0l_rsync_mux[] = {
  2092. MSIOF0L_RSYNC_MARK,
  2093. };
  2094. static const unsigned int msiof0l_tsync_pins[] = {
  2095. /* TSYNC */
  2096. 217,
  2097. };
  2098. static const unsigned int msiof0l_tsync_mux[] = {
  2099. MSIOF0L_TSYNC_MARK,
  2100. };
  2101. static const unsigned int msiof0l_ss1_a_pins[] = {
  2102. /* SS1 */
  2103. 207,
  2104. };
  2105. static const unsigned int msiof0l_ss1_a_mux[] = {
  2106. PORT207_MSIOF0L_SS1_MARK,
  2107. };
  2108. static const unsigned int msiof0l_ss1_b_pins[] = {
  2109. /* SS1 */
  2110. 210,
  2111. };
  2112. static const unsigned int msiof0l_ss1_b_mux[] = {
  2113. PORT210_MSIOF0L_SS1_MARK,
  2114. };
  2115. static const unsigned int msiof0l_ss2_a_pins[] = {
  2116. /* SS2 */
  2117. 208,
  2118. };
  2119. static const unsigned int msiof0l_ss2_a_mux[] = {
  2120. PORT208_MSIOF0L_SS2_MARK,
  2121. };
  2122. static const unsigned int msiof0l_ss2_b_pins[] = {
  2123. /* SS2 */
  2124. 211,
  2125. };
  2126. static const unsigned int msiof0l_ss2_b_mux[] = {
  2127. PORT211_MSIOF0L_SS2_MARK,
  2128. };
  2129. static const unsigned int msiof0l_rxd_pins[] = {
  2130. /* RXD */
  2131. 221,
  2132. };
  2133. static const unsigned int msiof0l_rxd_mux[] = {
  2134. MSIOF0L_RXD_MARK,
  2135. };
  2136. static const unsigned int msiof0l_txd_pins[] = {
  2137. /* TXD */
  2138. 222,
  2139. };
  2140. static const unsigned int msiof0l_txd_mux[] = {
  2141. MSIOF0L_TXD_MARK,
  2142. };
  2143. static const unsigned int msiof0l_mck0_pins[] = {
  2144. /* MSCK0 */
  2145. 212,
  2146. };
  2147. static const unsigned int msiof0l_mck0_mux[] = {
  2148. MSIOF0L_MCK0_MARK,
  2149. };
  2150. static const unsigned int msiof0l_mck1_pins[] = {
  2151. /* MSCK1 */
  2152. 213,
  2153. };
  2154. static const unsigned int msiof0l_mck1_mux[] = {
  2155. MSIOF0L_MCK1_MARK,
  2156. };
  2157. /* - MSIOF1 ----------------------------------------------------------------- */
  2158. static const unsigned int msiof1_rsck_pins[] = {
  2159. /* RSCK */
  2160. 234,
  2161. };
  2162. static const unsigned int msiof1_rsck_mux[] = {
  2163. MSIOF1_RSCK_MARK,
  2164. };
  2165. static const unsigned int msiof1_tsck_pins[] = {
  2166. /* TSCK */
  2167. 232,
  2168. };
  2169. static const unsigned int msiof1_tsck_mux[] = {
  2170. MSIOF1_TSCK_MARK,
  2171. };
  2172. static const unsigned int msiof1_rsync_pins[] = {
  2173. /* RSYNC */
  2174. 235,
  2175. };
  2176. static const unsigned int msiof1_rsync_mux[] = {
  2177. MSIOF1_RSYNC_MARK,
  2178. };
  2179. static const unsigned int msiof1_tsync_pins[] = {
  2180. /* TSYNC */
  2181. 231,
  2182. };
  2183. static const unsigned int msiof1_tsync_mux[] = {
  2184. MSIOF1_TSYNC_MARK,
  2185. };
  2186. static const unsigned int msiof1_ss1_pins[] = {
  2187. /* SS1 */
  2188. 238,
  2189. };
  2190. static const unsigned int msiof1_ss1_mux[] = {
  2191. MSIOF1_SS1_MARK,
  2192. };
  2193. static const unsigned int msiof1_ss2_pins[] = {
  2194. /* SS2 */
  2195. 239,
  2196. };
  2197. static const unsigned int msiof1_ss2_mux[] = {
  2198. MSIOF1_SS2_MARK,
  2199. };
  2200. static const unsigned int msiof1_rxd_pins[] = {
  2201. /* RXD */
  2202. 233,
  2203. };
  2204. static const unsigned int msiof1_rxd_mux[] = {
  2205. MSIOF1_RXD_MARK,
  2206. };
  2207. static const unsigned int msiof1_txd_pins[] = {
  2208. /* TXD */
  2209. 230,
  2210. };
  2211. static const unsigned int msiof1_txd_mux[] = {
  2212. MSIOF1_TXD_MARK,
  2213. };
  2214. static const unsigned int msiof1_mck0_pins[] = {
  2215. /* MSCK0 */
  2216. 236,
  2217. };
  2218. static const unsigned int msiof1_mck0_mux[] = {
  2219. MSIOF1_MCK0_MARK,
  2220. };
  2221. static const unsigned int msiof1_mck1_pins[] = {
  2222. /* MSCK1 */
  2223. 237,
  2224. };
  2225. static const unsigned int msiof1_mck1_mux[] = {
  2226. MSIOF1_MCK1_MARK,
  2227. };
  2228. /* - MSIOF2 ----------------------------------------------------------------- */
  2229. static const unsigned int msiof2_rsck_pins[] = {
  2230. /* RSCK */
  2231. 151,
  2232. };
  2233. static const unsigned int msiof2_rsck_mux[] = {
  2234. MSIOF2_RSCK_MARK,
  2235. };
  2236. static const unsigned int msiof2_tsck_pins[] = {
  2237. /* TSCK */
  2238. 135,
  2239. };
  2240. static const unsigned int msiof2_tsck_mux[] = {
  2241. MSIOF2_TSCK_MARK,
  2242. };
  2243. static const unsigned int msiof2_rsync_pins[] = {
  2244. /* RSYNC */
  2245. 152,
  2246. };
  2247. static const unsigned int msiof2_rsync_mux[] = {
  2248. MSIOF2_RSYNC_MARK,
  2249. };
  2250. static const unsigned int msiof2_tsync_pins[] = {
  2251. /* TSYNC */
  2252. 133,
  2253. };
  2254. static const unsigned int msiof2_tsync_mux[] = {
  2255. MSIOF2_TSYNC_MARK,
  2256. };
  2257. static const unsigned int msiof2_ss1_a_pins[] = {
  2258. /* SS1 */
  2259. 131,
  2260. };
  2261. static const unsigned int msiof2_ss1_a_mux[] = {
  2262. PORT131_MSIOF2_SS1_MARK,
  2263. };
  2264. static const unsigned int msiof2_ss1_b_pins[] = {
  2265. /* SS1 */
  2266. 153,
  2267. };
  2268. static const unsigned int msiof2_ss1_b_mux[] = {
  2269. PORT153_MSIOF2_SS1_MARK,
  2270. };
  2271. static const unsigned int msiof2_ss2_a_pins[] = {
  2272. /* SS2 */
  2273. 132,
  2274. };
  2275. static const unsigned int msiof2_ss2_a_mux[] = {
  2276. PORT132_MSIOF2_SS2_MARK,
  2277. };
  2278. static const unsigned int msiof2_ss2_b_pins[] = {
  2279. /* SS2 */
  2280. 156,
  2281. };
  2282. static const unsigned int msiof2_ss2_b_mux[] = {
  2283. PORT156_MSIOF2_SS2_MARK,
  2284. };
  2285. static const unsigned int msiof2_rxd_a_pins[] = {
  2286. /* RXD */
  2287. 130,
  2288. };
  2289. static const unsigned int msiof2_rxd_a_mux[] = {
  2290. PORT130_MSIOF2_RXD_MARK,
  2291. };
  2292. static const unsigned int msiof2_rxd_b_pins[] = {
  2293. /* RXD */
  2294. 157,
  2295. };
  2296. static const unsigned int msiof2_rxd_b_mux[] = {
  2297. PORT157_MSIOF2_RXD_MARK,
  2298. };
  2299. static const unsigned int msiof2_txd_pins[] = {
  2300. /* TXD */
  2301. 134,
  2302. };
  2303. static const unsigned int msiof2_txd_mux[] = {
  2304. MSIOF2_TXD_MARK,
  2305. };
  2306. static const unsigned int msiof2_mck0_pins[] = {
  2307. /* MSCK0 */
  2308. 154,
  2309. };
  2310. static const unsigned int msiof2_mck0_mux[] = {
  2311. MSIOF2_MCK0_MARK,
  2312. };
  2313. static const unsigned int msiof2_mck1_pins[] = {
  2314. /* MSCK1 */
  2315. 155,
  2316. };
  2317. static const unsigned int msiof2_mck1_mux[] = {
  2318. MSIOF2_MCK1_MARK,
  2319. };
  2320. static const unsigned int msiof2r_tsck_pins[] = {
  2321. /* TSCK */
  2322. 248,
  2323. };
  2324. static const unsigned int msiof2r_tsck_mux[] = {
  2325. MSIOF2R_TSCK_MARK,
  2326. };
  2327. static const unsigned int msiof2r_tsync_pins[] = {
  2328. /* TSYNC */
  2329. 249,
  2330. };
  2331. static const unsigned int msiof2r_tsync_mux[] = {
  2332. MSIOF2R_TSYNC_MARK,
  2333. };
  2334. static const unsigned int msiof2r_rxd_pins[] = {
  2335. /* RXD */
  2336. 244,
  2337. };
  2338. static const unsigned int msiof2r_rxd_mux[] = {
  2339. MSIOF2R_RXD_MARK,
  2340. };
  2341. static const unsigned int msiof2r_txd_pins[] = {
  2342. /* TXD */
  2343. 245,
  2344. };
  2345. static const unsigned int msiof2r_txd_mux[] = {
  2346. MSIOF2R_TXD_MARK,
  2347. };
  2348. /* - MSIOF3 (Pin function name of MSIOF3 is named BBIF1) -------------------- */
  2349. static const unsigned int msiof3_rsck_pins[] = {
  2350. /* RSCK */
  2351. 115,
  2352. };
  2353. static const unsigned int msiof3_rsck_mux[] = {
  2354. BBIF1_RSCK_MARK,
  2355. };
  2356. static const unsigned int msiof3_tsck_pins[] = {
  2357. /* TSCK */
  2358. 112,
  2359. };
  2360. static const unsigned int msiof3_tsck_mux[] = {
  2361. BBIF1_TSCK_MARK,
  2362. };
  2363. static const unsigned int msiof3_rsync_pins[] = {
  2364. /* RSYNC */
  2365. 116,
  2366. };
  2367. static const unsigned int msiof3_rsync_mux[] = {
  2368. BBIF1_RSYNC_MARK,
  2369. };
  2370. static const unsigned int msiof3_tsync_pins[] = {
  2371. /* TSYNC */
  2372. 113,
  2373. };
  2374. static const unsigned int msiof3_tsync_mux[] = {
  2375. BBIF1_TSYNC_MARK,
  2376. };
  2377. static const unsigned int msiof3_ss1_pins[] = {
  2378. /* SS1 */
  2379. 117,
  2380. };
  2381. static const unsigned int msiof3_ss1_mux[] = {
  2382. BBIF1_SS1_MARK,
  2383. };
  2384. static const unsigned int msiof3_ss2_pins[] = {
  2385. /* SS2 */
  2386. 109,
  2387. };
  2388. static const unsigned int msiof3_ss2_mux[] = {
  2389. BBIF1_SS2_MARK,
  2390. };
  2391. static const unsigned int msiof3_rxd_pins[] = {
  2392. /* RXD */
  2393. 111,
  2394. };
  2395. static const unsigned int msiof3_rxd_mux[] = {
  2396. BBIF1_RXD_MARK,
  2397. };
  2398. static const unsigned int msiof3_txd_pins[] = {
  2399. /* TXD */
  2400. 114,
  2401. };
  2402. static const unsigned int msiof3_txd_mux[] = {
  2403. BBIF1_TXD_MARK,
  2404. };
  2405. static const unsigned int msiof3_flow_pins[] = {
  2406. /* FLOW */
  2407. 117,
  2408. };
  2409. static const unsigned int msiof3_flow_mux[] = {
  2410. BBIF1_FLOW_MARK,
  2411. };
  2412. /* - SCIFA0 ----------------------------------------------------------------- */
  2413. static const unsigned int scifa0_data_pins[] = {
  2414. /* RXD, TXD */
  2415. 43, 17,
  2416. };
  2417. static const unsigned int scifa0_data_mux[] = {
  2418. SCIFA0_RXD_MARK, SCIFA0_TXD_MARK,
  2419. };
  2420. static const unsigned int scifa0_clk_pins[] = {
  2421. /* SCK */
  2422. 16,
  2423. };
  2424. static const unsigned int scifa0_clk_mux[] = {
  2425. SCIFA0_SCK_MARK,
  2426. };
  2427. static const unsigned int scifa0_ctrl_pins[] = {
  2428. /* RTS, CTS */
  2429. 42, 44,
  2430. };
  2431. static const unsigned int scifa0_ctrl_mux[] = {
  2432. SCIFA0_RTS__MARK, SCIFA0_CTS__MARK,
  2433. };
  2434. /* - SCIFA1 ----------------------------------------------------------------- */
  2435. static const unsigned int scifa1_data_pins[] = {
  2436. /* RXD, TXD */
  2437. 228, 225,
  2438. };
  2439. static const unsigned int scifa1_data_mux[] = {
  2440. SCIFA1_RXD_MARK, SCIFA1_TXD_MARK,
  2441. };
  2442. static const unsigned int scifa1_clk_pins[] = {
  2443. /* SCK */
  2444. 226,
  2445. };
  2446. static const unsigned int scifa1_clk_mux[] = {
  2447. SCIFA1_SCK_MARK,
  2448. };
  2449. static const unsigned int scifa1_ctrl_pins[] = {
  2450. /* RTS, CTS */
  2451. 227, 229,
  2452. };
  2453. static const unsigned int scifa1_ctrl_mux[] = {
  2454. SCIFA1_RTS__MARK, SCIFA1_CTS__MARK,
  2455. };
  2456. /* - SCIFA2 ----------------------------------------------------------------- */
  2457. static const unsigned int scifa2_data_0_pins[] = {
  2458. /* RXD, TXD */
  2459. 155, 154,
  2460. };
  2461. static const unsigned int scifa2_data_0_mux[] = {
  2462. SCIFA2_RXD1_MARK, SCIFA2_TXD1_MARK,
  2463. };
  2464. static const unsigned int scifa2_clk_0_pins[] = {
  2465. /* SCK */
  2466. 158,
  2467. };
  2468. static const unsigned int scifa2_clk_0_mux[] = {
  2469. SCIFA2_SCK1_MARK,
  2470. };
  2471. static const unsigned int scifa2_ctrl_0_pins[] = {
  2472. /* RTS, CTS */
  2473. 156, 157,
  2474. };
  2475. static const unsigned int scifa2_ctrl_0_mux[] = {
  2476. SCIFA2_RTS1__MARK, SCIFA2_CTS1__MARK,
  2477. };
  2478. static const unsigned int scifa2_data_1_pins[] = {
  2479. /* RXD, TXD */
  2480. 233, 230,
  2481. };
  2482. static const unsigned int scifa2_data_1_mux[] = {
  2483. SCIFA2_RXD2_MARK, SCIFA2_TXD2_MARK,
  2484. };
  2485. static const unsigned int scifa2_clk_1_pins[] = {
  2486. /* SCK */
  2487. 232,
  2488. };
  2489. static const unsigned int scifa2_clk_1_mux[] = {
  2490. SCIFA2_SCK2_MARK,
  2491. };
  2492. static const unsigned int scifa2_ctrl_1_pins[] = {
  2493. /* RTS, CTS */
  2494. 234, 231,
  2495. };
  2496. static const unsigned int scifa2_ctrl_1_mux[] = {
  2497. SCIFA2_RTS2__MARK, SCIFA2_CTS2__MARK,
  2498. };
  2499. /* - SCIFA3 ----------------------------------------------------------------- */
  2500. static const unsigned int scifa3_data_pins[] = {
  2501. /* RXD, TXD */
  2502. 108, 110,
  2503. };
  2504. static const unsigned int scifa3_data_mux[] = {
  2505. SCIFA3_RXD_MARK, SCIFA3_TXD_MARK,
  2506. };
  2507. static const unsigned int scifa3_ctrl_pins[] = {
  2508. /* RTS, CTS */
  2509. 109, 107,
  2510. };
  2511. static const unsigned int scifa3_ctrl_mux[] = {
  2512. SCIFA3_RTS__MARK, SCIFA3_CTS__MARK,
  2513. };
  2514. /* - SCIFA4 ----------------------------------------------------------------- */
  2515. static const unsigned int scifa4_data_pins[] = {
  2516. /* RXD, TXD */
  2517. 33, 32,
  2518. };
  2519. static const unsigned int scifa4_data_mux[] = {
  2520. SCIFA4_RXD_MARK, SCIFA4_TXD_MARK,
  2521. };
  2522. static const unsigned int scifa4_ctrl_pins[] = {
  2523. /* RTS, CTS */
  2524. 34, 35,
  2525. };
  2526. static const unsigned int scifa4_ctrl_mux[] = {
  2527. SCIFA4_RTS__MARK, SCIFA4_CTS__MARK,
  2528. };
  2529. /* - SCIFA5 ----------------------------------------------------------------- */
  2530. static const unsigned int scifa5_data_0_pins[] = {
  2531. /* RXD, TXD */
  2532. 246, 247,
  2533. };
  2534. static const unsigned int scifa5_data_0_mux[] = {
  2535. PORT246_SCIFA5_RXD_MARK, PORT247_SCIFA5_TXD_MARK,
  2536. };
  2537. static const unsigned int scifa5_clk_0_pins[] = {
  2538. /* SCK */
  2539. 248,
  2540. };
  2541. static const unsigned int scifa5_clk_0_mux[] = {
  2542. PORT248_SCIFA5_SCK_MARK,
  2543. };
  2544. static const unsigned int scifa5_ctrl_0_pins[] = {
  2545. /* RTS, CTS */
  2546. 245, 244,
  2547. };
  2548. static const unsigned int scifa5_ctrl_0_mux[] = {
  2549. PORT245_SCIFA5_RTS__MARK, PORT244_SCIFA5_CTS__MARK,
  2550. };
  2551. static const unsigned int scifa5_data_1_pins[] = {
  2552. /* RXD, TXD */
  2553. 195, 196,
  2554. };
  2555. static const unsigned int scifa5_data_1_mux[] = {
  2556. PORT195_SCIFA5_RXD_MARK, PORT196_SCIFA5_TXD_MARK,
  2557. };
  2558. static const unsigned int scifa5_clk_1_pins[] = {
  2559. /* SCK */
  2560. 197,
  2561. };
  2562. static const unsigned int scifa5_clk_1_mux[] = {
  2563. PORT197_SCIFA5_SCK_MARK,
  2564. };
  2565. static const unsigned int scifa5_ctrl_1_pins[] = {
  2566. /* RTS, CTS */
  2567. 194, 193,
  2568. };
  2569. static const unsigned int scifa5_ctrl_1_mux[] = {
  2570. PORT194_SCIFA5_RTS__MARK, PORT193_SCIFA5_CTS__MARK,
  2571. };
  2572. static const unsigned int scifa5_data_2_pins[] = {
  2573. /* RXD, TXD */
  2574. 162, 160,
  2575. };
  2576. static const unsigned int scifa5_data_2_mux[] = {
  2577. PORT162_SCIFA5_RXD_MARK, PORT160_SCIFA5_TXD_MARK,
  2578. };
  2579. static const unsigned int scifa5_clk_2_pins[] = {
  2580. /* SCK */
  2581. 159,
  2582. };
  2583. static const unsigned int scifa5_clk_2_mux[] = {
  2584. PORT159_SCIFA5_SCK_MARK,
  2585. };
  2586. static const unsigned int scifa5_ctrl_2_pins[] = {
  2587. /* RTS, CTS */
  2588. 163, 161,
  2589. };
  2590. static const unsigned int scifa5_ctrl_2_mux[] = {
  2591. PORT163_SCIFA5_RTS__MARK, PORT161_SCIFA5_CTS__MARK,
  2592. };
  2593. /* - SCIFA6 ----------------------------------------------------------------- */
  2594. static const unsigned int scifa6_pins[] = {
  2595. /* TXD */
  2596. 240,
  2597. };
  2598. static const unsigned int scifa6_mux[] = {
  2599. SCIFA6_TXD_MARK,
  2600. };
  2601. /* - SCIFA7 ----------------------------------------------------------------- */
  2602. static const unsigned int scifa7_data_pins[] = {
  2603. /* RXD, TXD */
  2604. 12, 18,
  2605. };
  2606. static const unsigned int scifa7_data_mux[] = {
  2607. SCIFA7_RXD_MARK, SCIFA7_TXD_MARK,
  2608. };
  2609. static const unsigned int scifa7_ctrl_pins[] = {
  2610. /* RTS, CTS */
  2611. 19, 13,
  2612. };
  2613. static const unsigned int scifa7_ctrl_mux[] = {
  2614. SCIFA7_RTS__MARK, SCIFA7_CTS__MARK,
  2615. };
  2616. /* - SCIFB ------------------------------------------------------------------ */
  2617. static const unsigned int scifb_data_0_pins[] = {
  2618. /* RXD, TXD */
  2619. 162, 160,
  2620. };
  2621. static const unsigned int scifb_data_0_mux[] = {
  2622. PORT162_SCIFB_RXD_MARK, PORT160_SCIFB_TXD_MARK,
  2623. };
  2624. static const unsigned int scifb_clk_0_pins[] = {
  2625. /* SCK */
  2626. 159,
  2627. };
  2628. static const unsigned int scifb_clk_0_mux[] = {
  2629. PORT159_SCIFB_SCK_MARK,
  2630. };
  2631. static const unsigned int scifb_ctrl_0_pins[] = {
  2632. /* RTS, CTS */
  2633. 163, 161,
  2634. };
  2635. static const unsigned int scifb_ctrl_0_mux[] = {
  2636. PORT163_SCIFB_RTS__MARK, PORT161_SCIFB_CTS__MARK,
  2637. };
  2638. static const unsigned int scifb_data_1_pins[] = {
  2639. /* RXD, TXD */
  2640. 246, 247,
  2641. };
  2642. static const unsigned int scifb_data_1_mux[] = {
  2643. PORT246_SCIFB_RXD_MARK, PORT247_SCIFB_TXD_MARK,
  2644. };
  2645. static const unsigned int scifb_clk_1_pins[] = {
  2646. /* SCK */
  2647. 248,
  2648. };
  2649. static const unsigned int scifb_clk_1_mux[] = {
  2650. PORT248_SCIFB_SCK_MARK,
  2651. };
  2652. static const unsigned int scifb_ctrl_1_pins[] = {
  2653. /* RTS, CTS */
  2654. 245, 244,
  2655. };
  2656. static const unsigned int scifb_ctrl_1_mux[] = {
  2657. PORT245_SCIFB_RTS__MARK, PORT244_SCIFB_CTS__MARK,
  2658. };
  2659. /* - SDHI0 ------------------------------------------------------------------ */
  2660. static const unsigned int sdhi0_data_pins[] = {
  2661. /* D[0:3] */
  2662. 252, 253, 254, 255,
  2663. };
  2664. static const unsigned int sdhi0_data_mux[] = {
  2665. SDHID0_0_MARK, SDHID0_1_MARK, SDHID0_2_MARK, SDHID0_3_MARK,
  2666. };
  2667. static const unsigned int sdhi0_ctrl_pins[] = {
  2668. /* CMD, CLK */
  2669. 256, 250,
  2670. };
  2671. static const unsigned int sdhi0_ctrl_mux[] = {
  2672. SDHICMD0_MARK, SDHICLK0_MARK,
  2673. };
  2674. static const unsigned int sdhi0_cd_pins[] = {
  2675. /* CD */
  2676. 251,
  2677. };
  2678. static const unsigned int sdhi0_cd_mux[] = {
  2679. SDHICD0_MARK,
  2680. };
  2681. static const unsigned int sdhi0_wp_pins[] = {
  2682. /* WP */
  2683. 257,
  2684. };
  2685. static const unsigned int sdhi0_wp_mux[] = {
  2686. SDHIWP0_MARK,
  2687. };
  2688. /* - SDHI1 ------------------------------------------------------------------ */
  2689. static const unsigned int sdhi1_data_pins[] = {
  2690. /* D[0:3] */
  2691. 259, 260, 261, 262,
  2692. };
  2693. static const unsigned int sdhi1_data_mux[] = {
  2694. SDHID1_0_MARK, SDHID1_1_MARK, SDHID1_2_MARK, SDHID1_3_MARK,
  2695. };
  2696. static const unsigned int sdhi1_ctrl_pins[] = {
  2697. /* CMD, CLK */
  2698. 263, 258,
  2699. };
  2700. static const unsigned int sdhi1_ctrl_mux[] = {
  2701. SDHICMD1_MARK, SDHICLK1_MARK,
  2702. };
  2703. /* - SDHI2 ------------------------------------------------------------------ */
  2704. static const unsigned int sdhi2_data_pins[] = {
  2705. /* D[0:3] */
  2706. 265, 266, 267, 268,
  2707. };
  2708. static const unsigned int sdhi2_data_mux[] = {
  2709. SDHID2_0_MARK, SDHID2_1_MARK, SDHID2_2_MARK, SDHID2_3_MARK,
  2710. };
  2711. static const unsigned int sdhi2_ctrl_pins[] = {
  2712. /* CMD, CLK */
  2713. 269, 264,
  2714. };
  2715. static const unsigned int sdhi2_ctrl_mux[] = {
  2716. SDHICMD2_MARK, SDHICLK2_MARK,
  2717. };
  2718. /* - TPU0 ------------------------------------------------------------------- */
  2719. static const unsigned int tpu0_to0_pins[] = {
  2720. /* TO */
  2721. 55,
  2722. };
  2723. static const unsigned int tpu0_to0_mux[] = {
  2724. TPU0TO0_MARK,
  2725. };
  2726. static const unsigned int tpu0_to1_pins[] = {
  2727. /* TO */
  2728. 59,
  2729. };
  2730. static const unsigned int tpu0_to1_mux[] = {
  2731. TPU0TO1_MARK,
  2732. };
  2733. static const unsigned int tpu0_to2_pins[] = {
  2734. /* TO */
  2735. 140,
  2736. };
  2737. static const unsigned int tpu0_to2_mux[] = {
  2738. TPU0TO2_MARK,
  2739. };
  2740. static const unsigned int tpu0_to3_pins[] = {
  2741. /* TO */
  2742. 141,
  2743. };
  2744. static const unsigned int tpu0_to3_mux[] = {
  2745. TPU0TO3_MARK,
  2746. };
  2747. /* - TPU1 ------------------------------------------------------------------- */
  2748. static const unsigned int tpu1_to0_pins[] = {
  2749. /* TO */
  2750. 246,
  2751. };
  2752. static const unsigned int tpu1_to0_mux[] = {
  2753. TPU1TO0_MARK,
  2754. };
  2755. static const unsigned int tpu1_to1_0_pins[] = {
  2756. /* TO */
  2757. 28,
  2758. };
  2759. static const unsigned int tpu1_to1_0_mux[] = {
  2760. PORT28_TPU1TO1_MARK,
  2761. };
  2762. static const unsigned int tpu1_to1_1_pins[] = {
  2763. /* TO */
  2764. 29,
  2765. };
  2766. static const unsigned int tpu1_to1_1_mux[] = {
  2767. PORT29_TPU1TO1_MARK,
  2768. };
  2769. static const unsigned int tpu1_to2_pins[] = {
  2770. /* TO */
  2771. 153,
  2772. };
  2773. static const unsigned int tpu1_to2_mux[] = {
  2774. TPU1TO2_MARK,
  2775. };
  2776. static const unsigned int tpu1_to3_pins[] = {
  2777. /* TO */
  2778. 145,
  2779. };
  2780. static const unsigned int tpu1_to3_mux[] = {
  2781. TPU1TO3_MARK,
  2782. };
  2783. /* - TPU2 ------------------------------------------------------------------- */
  2784. static const unsigned int tpu2_to0_pins[] = {
  2785. /* TO */
  2786. 248,
  2787. };
  2788. static const unsigned int tpu2_to0_mux[] = {
  2789. TPU2TO0_MARK,
  2790. };
  2791. static const unsigned int tpu2_to1_pins[] = {
  2792. /* TO */
  2793. 197,
  2794. };
  2795. static const unsigned int tpu2_to1_mux[] = {
  2796. TPU2TO1_MARK,
  2797. };
  2798. static const unsigned int tpu2_to2_pins[] = {
  2799. /* TO */
  2800. 50,
  2801. };
  2802. static const unsigned int tpu2_to2_mux[] = {
  2803. TPU2TO2_MARK,
  2804. };
  2805. static const unsigned int tpu2_to3_pins[] = {
  2806. /* TO */
  2807. 51,
  2808. };
  2809. static const unsigned int tpu2_to3_mux[] = {
  2810. TPU2TO3_MARK,
  2811. };
  2812. /* - TPU3 ------------------------------------------------------------------- */
  2813. static const unsigned int tpu3_to0_pins[] = {
  2814. /* TO */
  2815. 163,
  2816. };
  2817. static const unsigned int tpu3_to0_mux[] = {
  2818. TPU3TO0_MARK,
  2819. };
  2820. static const unsigned int tpu3_to1_pins[] = {
  2821. /* TO */
  2822. 247,
  2823. };
  2824. static const unsigned int tpu3_to1_mux[] = {
  2825. TPU3TO1_MARK,
  2826. };
  2827. static const unsigned int tpu3_to2_pins[] = {
  2828. /* TO */
  2829. 54,
  2830. };
  2831. static const unsigned int tpu3_to2_mux[] = {
  2832. TPU3TO2_MARK,
  2833. };
  2834. static const unsigned int tpu3_to3_pins[] = {
  2835. /* TO */
  2836. 53,
  2837. };
  2838. static const unsigned int tpu3_to3_mux[] = {
  2839. TPU3TO3_MARK,
  2840. };
  2841. /* - TPU4 ------------------------------------------------------------------- */
  2842. static const unsigned int tpu4_to0_pins[] = {
  2843. /* TO */
  2844. 241,
  2845. };
  2846. static const unsigned int tpu4_to0_mux[] = {
  2847. TPU4TO0_MARK,
  2848. };
  2849. static const unsigned int tpu4_to1_pins[] = {
  2850. /* TO */
  2851. 199,
  2852. };
  2853. static const unsigned int tpu4_to1_mux[] = {
  2854. TPU4TO1_MARK,
  2855. };
  2856. static const unsigned int tpu4_to2_pins[] = {
  2857. /* TO */
  2858. 58,
  2859. };
  2860. static const unsigned int tpu4_to2_mux[] = {
  2861. TPU4TO2_MARK,
  2862. };
  2863. static const unsigned int tpu4_to3_pins[] = {
  2864. /* TO */
  2865. PIN_A11,
  2866. };
  2867. static const unsigned int tpu4_to3_mux[] = {
  2868. TPU4TO3_MARK,
  2869. };
  2870. /* - USB -------------------------------------------------------------------- */
  2871. static const unsigned int usb_vbus_pins[] = {
  2872. /* VBUS */
  2873. 0,
  2874. };
  2875. static const unsigned int usb_vbus_mux[] = {
  2876. VBUS_0_MARK,
  2877. };
  2878. static const struct sh_pfc_pin_group pinmux_groups[] = {
  2879. SH_PFC_PIN_GROUP(bsc_data_0_7),
  2880. SH_PFC_PIN_GROUP(bsc_data_8_15),
  2881. SH_PFC_PIN_GROUP(bsc_cs4),
  2882. SH_PFC_PIN_GROUP(bsc_cs5_a),
  2883. SH_PFC_PIN_GROUP(bsc_cs5_b),
  2884. SH_PFC_PIN_GROUP(bsc_cs6_a),
  2885. SH_PFC_PIN_GROUP(bsc_cs6_b),
  2886. SH_PFC_PIN_GROUP(bsc_rd),
  2887. SH_PFC_PIN_GROUP(bsc_rdwr_0),
  2888. SH_PFC_PIN_GROUP(bsc_rdwr_1),
  2889. SH_PFC_PIN_GROUP(bsc_rdwr_2),
  2890. SH_PFC_PIN_GROUP(bsc_we0),
  2891. SH_PFC_PIN_GROUP(bsc_we1),
  2892. SH_PFC_PIN_GROUP(fsia_mclk_in),
  2893. SH_PFC_PIN_GROUP(fsia_mclk_out),
  2894. SH_PFC_PIN_GROUP(fsia_sclk_in),
  2895. SH_PFC_PIN_GROUP(fsia_sclk_out),
  2896. SH_PFC_PIN_GROUP(fsia_data_in),
  2897. SH_PFC_PIN_GROUP(fsia_data_out),
  2898. SH_PFC_PIN_GROUP(fsia_spdif),
  2899. SH_PFC_PIN_GROUP(fsib_mclk_in),
  2900. SH_PFC_PIN_GROUP(fsib_mclk_out),
  2901. SH_PFC_PIN_GROUP(fsib_sclk_in),
  2902. SH_PFC_PIN_GROUP(fsib_sclk_out),
  2903. SH_PFC_PIN_GROUP(fsib_data_in),
  2904. SH_PFC_PIN_GROUP(fsib_data_out),
  2905. SH_PFC_PIN_GROUP(fsib_spdif),
  2906. SH_PFC_PIN_GROUP(fsic_mclk_in),
  2907. SH_PFC_PIN_GROUP(fsic_mclk_out),
  2908. SH_PFC_PIN_GROUP(fsic_sclk_in),
  2909. SH_PFC_PIN_GROUP(fsic_sclk_out),
  2910. SH_PFC_PIN_GROUP(fsic_data_in),
  2911. SH_PFC_PIN_GROUP(fsic_data_out),
  2912. SH_PFC_PIN_GROUP(fsic_spdif_0),
  2913. SH_PFC_PIN_GROUP(fsic_spdif_1),
  2914. SH_PFC_PIN_GROUP(fsid_sclk_in),
  2915. SH_PFC_PIN_GROUP(fsid_sclk_out),
  2916. SH_PFC_PIN_GROUP(fsid_data_in),
  2917. SH_PFC_PIN_GROUP(i2c2_0),
  2918. SH_PFC_PIN_GROUP(i2c2_1),
  2919. SH_PFC_PIN_GROUP(i2c2_2),
  2920. SH_PFC_PIN_GROUP(i2c3_0),
  2921. SH_PFC_PIN_GROUP(i2c3_1),
  2922. SH_PFC_PIN_GROUP(i2c3_2),
  2923. SH_PFC_PIN_GROUP(irda_0),
  2924. SH_PFC_PIN_GROUP(irda_1),
  2925. BUS_DATA_PIN_GROUP(keysc_in, 5),
  2926. BUS_DATA_PIN_GROUP(keysc_in, 6),
  2927. BUS_DATA_PIN_GROUP(keysc_in, 7),
  2928. BUS_DATA_PIN_GROUP(keysc_in, 8),
  2929. SH_PFC_PIN_GROUP(keysc_out04),
  2930. SH_PFC_PIN_GROUP(keysc_out5),
  2931. SH_PFC_PIN_GROUP(keysc_out6_0),
  2932. SH_PFC_PIN_GROUP(keysc_out6_1),
  2933. SH_PFC_PIN_GROUP(keysc_out6_2),
  2934. SH_PFC_PIN_GROUP(keysc_out7_0),
  2935. SH_PFC_PIN_GROUP(keysc_out7_1),
  2936. SH_PFC_PIN_GROUP(keysc_out7_2),
  2937. SH_PFC_PIN_GROUP(keysc_out8_0),
  2938. SH_PFC_PIN_GROUP(keysc_out8_1),
  2939. SH_PFC_PIN_GROUP(keysc_out8_2),
  2940. SH_PFC_PIN_GROUP(keysc_out9_0),
  2941. SH_PFC_PIN_GROUP(keysc_out9_1),
  2942. SH_PFC_PIN_GROUP(keysc_out9_2),
  2943. SH_PFC_PIN_GROUP(keysc_out10_0),
  2944. SH_PFC_PIN_GROUP(keysc_out10_1),
  2945. SH_PFC_PIN_GROUP(keysc_out11_0),
  2946. SH_PFC_PIN_GROUP(keysc_out11_1),
  2947. BUS_DATA_PIN_GROUP(lcd_data, 8),
  2948. BUS_DATA_PIN_GROUP(lcd_data, 9),
  2949. BUS_DATA_PIN_GROUP(lcd_data, 12),
  2950. BUS_DATA_PIN_GROUP(lcd_data, 16),
  2951. BUS_DATA_PIN_GROUP(lcd_data, 18),
  2952. BUS_DATA_PIN_GROUP(lcd_data, 24),
  2953. SH_PFC_PIN_GROUP(lcd_display),
  2954. SH_PFC_PIN_GROUP(lcd_lclk),
  2955. SH_PFC_PIN_GROUP(lcd_sync),
  2956. SH_PFC_PIN_GROUP(lcd_sys),
  2957. BUS_DATA_PIN_GROUP(lcd2_data, 8),
  2958. BUS_DATA_PIN_GROUP(lcd2_data, 9),
  2959. BUS_DATA_PIN_GROUP(lcd2_data, 12),
  2960. BUS_DATA_PIN_GROUP(lcd2_data, 16),
  2961. BUS_DATA_PIN_GROUP(lcd2_data, 18),
  2962. BUS_DATA_PIN_GROUP(lcd2_data, 24),
  2963. SH_PFC_PIN_GROUP(lcd2_sync_0),
  2964. SH_PFC_PIN_GROUP(lcd2_sync_1),
  2965. SH_PFC_PIN_GROUP(lcd2_sys_0),
  2966. SH_PFC_PIN_GROUP(lcd2_sys_1),
  2967. BUS_DATA_PIN_GROUP(mmc0_data, 1, _0),
  2968. BUS_DATA_PIN_GROUP(mmc0_data, 4, _0),
  2969. BUS_DATA_PIN_GROUP(mmc0_data, 8, _0),
  2970. SH_PFC_PIN_GROUP(mmc0_ctrl_0),
  2971. BUS_DATA_PIN_GROUP(mmc0_data, 1, _1),
  2972. BUS_DATA_PIN_GROUP(mmc0_data, 4, _1),
  2973. BUS_DATA_PIN_GROUP(mmc0_data, 8, _1),
  2974. SH_PFC_PIN_GROUP(mmc0_ctrl_1),
  2975. SH_PFC_PIN_GROUP(msiof0_rsck),
  2976. SH_PFC_PIN_GROUP(msiof0_tsck),
  2977. SH_PFC_PIN_GROUP(msiof0_rsync),
  2978. SH_PFC_PIN_GROUP(msiof0_tsync),
  2979. SH_PFC_PIN_GROUP(msiof0_ss1),
  2980. SH_PFC_PIN_GROUP(msiof0_ss2),
  2981. SH_PFC_PIN_GROUP(msiof0_rxd),
  2982. SH_PFC_PIN_GROUP(msiof0_txd),
  2983. SH_PFC_PIN_GROUP(msiof0_mck0),
  2984. SH_PFC_PIN_GROUP(msiof0_mck1),
  2985. SH_PFC_PIN_GROUP(msiof0l_rsck),
  2986. SH_PFC_PIN_GROUP(msiof0l_tsck),
  2987. SH_PFC_PIN_GROUP(msiof0l_rsync),
  2988. SH_PFC_PIN_GROUP(msiof0l_tsync),
  2989. SH_PFC_PIN_GROUP(msiof0l_ss1_a),
  2990. SH_PFC_PIN_GROUP(msiof0l_ss1_b),
  2991. SH_PFC_PIN_GROUP(msiof0l_ss2_a),
  2992. SH_PFC_PIN_GROUP(msiof0l_ss2_b),
  2993. SH_PFC_PIN_GROUP(msiof0l_rxd),
  2994. SH_PFC_PIN_GROUP(msiof0l_txd),
  2995. SH_PFC_PIN_GROUP(msiof0l_mck0),
  2996. SH_PFC_PIN_GROUP(msiof0l_mck1),
  2997. SH_PFC_PIN_GROUP(msiof1_rsck),
  2998. SH_PFC_PIN_GROUP(msiof1_tsck),
  2999. SH_PFC_PIN_GROUP(msiof1_rsync),
  3000. SH_PFC_PIN_GROUP(msiof1_tsync),
  3001. SH_PFC_PIN_GROUP(msiof1_ss1),
  3002. SH_PFC_PIN_GROUP(msiof1_ss2),
  3003. SH_PFC_PIN_GROUP(msiof1_rxd),
  3004. SH_PFC_PIN_GROUP(msiof1_txd),
  3005. SH_PFC_PIN_GROUP(msiof1_mck0),
  3006. SH_PFC_PIN_GROUP(msiof1_mck1),
  3007. SH_PFC_PIN_GROUP(msiof2_rsck),
  3008. SH_PFC_PIN_GROUP(msiof2_tsck),
  3009. SH_PFC_PIN_GROUP(msiof2_rsync),
  3010. SH_PFC_PIN_GROUP(msiof2_tsync),
  3011. SH_PFC_PIN_GROUP(msiof2_ss1_a),
  3012. SH_PFC_PIN_GROUP(msiof2_ss1_b),
  3013. SH_PFC_PIN_GROUP(msiof2_ss2_a),
  3014. SH_PFC_PIN_GROUP(msiof2_ss2_b),
  3015. SH_PFC_PIN_GROUP(msiof2_rxd_a),
  3016. SH_PFC_PIN_GROUP(msiof2_rxd_b),
  3017. SH_PFC_PIN_GROUP(msiof2_txd),
  3018. SH_PFC_PIN_GROUP(msiof2_mck0),
  3019. SH_PFC_PIN_GROUP(msiof2_mck1),
  3020. SH_PFC_PIN_GROUP(msiof2r_tsck),
  3021. SH_PFC_PIN_GROUP(msiof2r_tsync),
  3022. SH_PFC_PIN_GROUP(msiof2r_rxd),
  3023. SH_PFC_PIN_GROUP(msiof2r_txd),
  3024. SH_PFC_PIN_GROUP(msiof3_rsck),
  3025. SH_PFC_PIN_GROUP(msiof3_tsck),
  3026. SH_PFC_PIN_GROUP(msiof3_rsync),
  3027. SH_PFC_PIN_GROUP(msiof3_tsync),
  3028. SH_PFC_PIN_GROUP(msiof3_ss1),
  3029. SH_PFC_PIN_GROUP(msiof3_ss2),
  3030. SH_PFC_PIN_GROUP(msiof3_rxd),
  3031. SH_PFC_PIN_GROUP(msiof3_txd),
  3032. SH_PFC_PIN_GROUP(msiof3_flow),
  3033. SH_PFC_PIN_GROUP(scifa0_data),
  3034. SH_PFC_PIN_GROUP(scifa0_clk),
  3035. SH_PFC_PIN_GROUP(scifa0_ctrl),
  3036. SH_PFC_PIN_GROUP(scifa1_data),
  3037. SH_PFC_PIN_GROUP(scifa1_clk),
  3038. SH_PFC_PIN_GROUP(scifa1_ctrl),
  3039. SH_PFC_PIN_GROUP(scifa2_data_0),
  3040. SH_PFC_PIN_GROUP(scifa2_clk_0),
  3041. SH_PFC_PIN_GROUP(scifa2_ctrl_0),
  3042. SH_PFC_PIN_GROUP(scifa2_data_1),
  3043. SH_PFC_PIN_GROUP(scifa2_clk_1),
  3044. SH_PFC_PIN_GROUP(scifa2_ctrl_1),
  3045. SH_PFC_PIN_GROUP(scifa3_data),
  3046. SH_PFC_PIN_GROUP(scifa3_ctrl),
  3047. SH_PFC_PIN_GROUP(scifa4_data),
  3048. SH_PFC_PIN_GROUP(scifa4_ctrl),
  3049. SH_PFC_PIN_GROUP(scifa5_data_0),
  3050. SH_PFC_PIN_GROUP(scifa5_clk_0),
  3051. SH_PFC_PIN_GROUP(scifa5_ctrl_0),
  3052. SH_PFC_PIN_GROUP(scifa5_data_1),
  3053. SH_PFC_PIN_GROUP(scifa5_clk_1),
  3054. SH_PFC_PIN_GROUP(scifa5_ctrl_1),
  3055. SH_PFC_PIN_GROUP(scifa5_data_2),
  3056. SH_PFC_PIN_GROUP(scifa5_clk_2),
  3057. SH_PFC_PIN_GROUP(scifa5_ctrl_2),
  3058. SH_PFC_PIN_GROUP(scifa6),
  3059. SH_PFC_PIN_GROUP(scifa7_data),
  3060. SH_PFC_PIN_GROUP(scifa7_ctrl),
  3061. SH_PFC_PIN_GROUP(scifb_data_0),
  3062. SH_PFC_PIN_GROUP(scifb_clk_0),
  3063. SH_PFC_PIN_GROUP(scifb_ctrl_0),
  3064. SH_PFC_PIN_GROUP(scifb_data_1),
  3065. SH_PFC_PIN_GROUP(scifb_clk_1),
  3066. SH_PFC_PIN_GROUP(scifb_ctrl_1),
  3067. BUS_DATA_PIN_GROUP(sdhi0_data, 1),
  3068. BUS_DATA_PIN_GROUP(sdhi0_data, 4),
  3069. SH_PFC_PIN_GROUP(sdhi0_ctrl),
  3070. SH_PFC_PIN_GROUP(sdhi0_cd),
  3071. SH_PFC_PIN_GROUP(sdhi0_wp),
  3072. BUS_DATA_PIN_GROUP(sdhi1_data, 1),
  3073. BUS_DATA_PIN_GROUP(sdhi1_data, 4),
  3074. SH_PFC_PIN_GROUP(sdhi1_ctrl),
  3075. BUS_DATA_PIN_GROUP(sdhi2_data, 1),
  3076. BUS_DATA_PIN_GROUP(sdhi2_data, 4),
  3077. SH_PFC_PIN_GROUP(sdhi2_ctrl),
  3078. SH_PFC_PIN_GROUP(tpu0_to0),
  3079. SH_PFC_PIN_GROUP(tpu0_to1),
  3080. SH_PFC_PIN_GROUP(tpu0_to2),
  3081. SH_PFC_PIN_GROUP(tpu0_to3),
  3082. SH_PFC_PIN_GROUP(tpu1_to0),
  3083. SH_PFC_PIN_GROUP(tpu1_to1_0),
  3084. SH_PFC_PIN_GROUP(tpu1_to1_1),
  3085. SH_PFC_PIN_GROUP(tpu1_to2),
  3086. SH_PFC_PIN_GROUP(tpu1_to3),
  3087. SH_PFC_PIN_GROUP(tpu2_to0),
  3088. SH_PFC_PIN_GROUP(tpu2_to1),
  3089. SH_PFC_PIN_GROUP(tpu2_to2),
  3090. SH_PFC_PIN_GROUP(tpu2_to3),
  3091. SH_PFC_PIN_GROUP(tpu3_to0),
  3092. SH_PFC_PIN_GROUP(tpu3_to1),
  3093. SH_PFC_PIN_GROUP(tpu3_to2),
  3094. SH_PFC_PIN_GROUP(tpu3_to3),
  3095. SH_PFC_PIN_GROUP(tpu4_to0),
  3096. SH_PFC_PIN_GROUP(tpu4_to1),
  3097. SH_PFC_PIN_GROUP(tpu4_to2),
  3098. SH_PFC_PIN_GROUP(tpu4_to3),
  3099. SH_PFC_PIN_GROUP(usb_vbus),
  3100. };
  3101. static const char * const bsc_groups[] = {
  3102. "bsc_data_0_7",
  3103. "bsc_data_8_15",
  3104. "bsc_cs4",
  3105. "bsc_cs5_a",
  3106. "bsc_cs5_b",
  3107. "bsc_cs6_a",
  3108. "bsc_cs6_b",
  3109. "bsc_rd",
  3110. "bsc_rdwr_0",
  3111. "bsc_rdwr_1",
  3112. "bsc_rdwr_2",
  3113. "bsc_we0",
  3114. "bsc_we1",
  3115. };
  3116. static const char * const fsia_groups[] = {
  3117. "fsia_mclk_in",
  3118. "fsia_mclk_out",
  3119. "fsia_sclk_in",
  3120. "fsia_sclk_out",
  3121. "fsia_data_in",
  3122. "fsia_data_out",
  3123. "fsia_spdif",
  3124. };
  3125. static const char * const fsib_groups[] = {
  3126. "fsib_mclk_in",
  3127. "fsib_mclk_out",
  3128. "fsib_sclk_in",
  3129. "fsib_sclk_out",
  3130. "fsib_data_in",
  3131. "fsib_data_out",
  3132. "fsib_spdif",
  3133. };
  3134. static const char * const fsic_groups[] = {
  3135. "fsic_mclk_in",
  3136. "fsic_mclk_out",
  3137. "fsic_sclk_in",
  3138. "fsic_sclk_out",
  3139. "fsic_data_in",
  3140. "fsic_data_out",
  3141. "fsic_spdif_0",
  3142. "fsic_spdif_1",
  3143. };
  3144. static const char * const fsid_groups[] = {
  3145. "fsid_sclk_in",
  3146. "fsid_sclk_out",
  3147. "fsid_data_in",
  3148. };
  3149. static const char * const i2c2_groups[] = {
  3150. "i2c2_0",
  3151. "i2c2_1",
  3152. "i2c2_2",
  3153. };
  3154. static const char * const i2c3_groups[] = {
  3155. "i2c3_0",
  3156. "i2c3_1",
  3157. "i2c3_2",
  3158. };
  3159. static const char * const irda_groups[] = {
  3160. "irda_0",
  3161. "irda_1",
  3162. };
  3163. static const char * const keysc_groups[] = {
  3164. "keysc_in5",
  3165. "keysc_in6",
  3166. "keysc_in7",
  3167. "keysc_in8",
  3168. "keysc_out04",
  3169. "keysc_out5",
  3170. "keysc_out6_0",
  3171. "keysc_out6_1",
  3172. "keysc_out6_2",
  3173. "keysc_out7_0",
  3174. "keysc_out7_1",
  3175. "keysc_out7_2",
  3176. "keysc_out8_0",
  3177. "keysc_out8_1",
  3178. "keysc_out8_2",
  3179. "keysc_out9_0",
  3180. "keysc_out9_1",
  3181. "keysc_out9_2",
  3182. "keysc_out10_0",
  3183. "keysc_out10_1",
  3184. "keysc_out11_0",
  3185. "keysc_out11_1",
  3186. };
  3187. static const char * const lcd_groups[] = {
  3188. "lcd_data8",
  3189. "lcd_data9",
  3190. "lcd_data12",
  3191. "lcd_data16",
  3192. "lcd_data18",
  3193. "lcd_data24",
  3194. "lcd_display",
  3195. "lcd_lclk",
  3196. "lcd_sync",
  3197. "lcd_sys",
  3198. };
  3199. static const char * const lcd2_groups[] = {
  3200. "lcd2_data8",
  3201. "lcd2_data9",
  3202. "lcd2_data12",
  3203. "lcd2_data16",
  3204. "lcd2_data18",
  3205. "lcd2_data24",
  3206. "lcd2_sync_0",
  3207. "lcd2_sync_1",
  3208. "lcd2_sys_0",
  3209. "lcd2_sys_1",
  3210. };
  3211. static const char * const mmc0_groups[] = {
  3212. "mmc0_data1_0",
  3213. "mmc0_data4_0",
  3214. "mmc0_data8_0",
  3215. "mmc0_ctrl_0",
  3216. "mmc0_data1_1",
  3217. "mmc0_data4_1",
  3218. "mmc0_data8_1",
  3219. "mmc0_ctrl_1",
  3220. };
  3221. static const char * const msiof0_groups[] = {
  3222. "msiof0_rsck",
  3223. "msiof0_tsck",
  3224. "msiof0_rsync",
  3225. "msiof0_tsync",
  3226. "msiof0_ss1",
  3227. "msiof0_ss2",
  3228. "msiof0_rxd",
  3229. "msiof0_txd",
  3230. "msiof0_mck0",
  3231. "msiof0_mck1",
  3232. "msiof0l_rsck",
  3233. "msiof0l_tsck",
  3234. "msiof0l_rsync",
  3235. "msiof0l_tsync",
  3236. "msiof0l_ss1_a",
  3237. "msiof0l_ss1_b",
  3238. "msiof0l_ss2_a",
  3239. "msiof0l_ss2_b",
  3240. "msiof0l_rxd",
  3241. "msiof0l_txd",
  3242. "msiof0l_mck0",
  3243. "msiof0l_mck1",
  3244. };
  3245. static const char * const msiof1_groups[] = {
  3246. "msiof1_rsck",
  3247. "msiof1_tsck",
  3248. "msiof1_rsync",
  3249. "msiof1_tsync",
  3250. "msiof1_ss1",
  3251. "msiof1_ss2",
  3252. "msiof1_rxd",
  3253. "msiof1_txd",
  3254. "msiof1_mck0",
  3255. "msiof1_mck1",
  3256. };
  3257. static const char * const msiof2_groups[] = {
  3258. "msiof2_rsck",
  3259. "msiof2_tsck",
  3260. "msiof2_rsync",
  3261. "msiof2_tsync",
  3262. "msiof2_ss1_a",
  3263. "msiof2_ss1_b",
  3264. "msiof2_ss2_a",
  3265. "msiof2_ss2_b",
  3266. "msiof2_rxd_a",
  3267. "msiof2_rxd_b",
  3268. "msiof2_txd",
  3269. "msiof2_mck0",
  3270. "msiof2_mck1",
  3271. "msiof2r_tsck",
  3272. "msiof2r_tsync",
  3273. "msiof2r_rxd",
  3274. "msiof2r_txd",
  3275. };
  3276. static const char * const msiof3_groups[] = {
  3277. "msiof3_rsck",
  3278. "msiof3_tsck",
  3279. "msiof3_rsync",
  3280. "msiof3_tsync",
  3281. "msiof3_ss1",
  3282. "msiof3_ss2",
  3283. "msiof3_rxd",
  3284. "msiof3_txd",
  3285. "msiof3_flow",
  3286. };
  3287. static const char * const scifa0_groups[] = {
  3288. "scifa0_data",
  3289. "scifa0_clk",
  3290. "scifa0_ctrl",
  3291. };
  3292. static const char * const scifa1_groups[] = {
  3293. "scifa1_data",
  3294. "scifa1_clk",
  3295. "scifa1_ctrl",
  3296. };
  3297. static const char * const scifa2_groups[] = {
  3298. "scifa2_data_0",
  3299. "scifa2_clk_0",
  3300. "scifa2_ctrl_0",
  3301. "scifa2_data_1",
  3302. "scifa2_clk_1",
  3303. "scifa2_ctrl_1",
  3304. };
  3305. static const char * const scifa3_groups[] = {
  3306. "scifa3_data",
  3307. "scifa3_ctrl",
  3308. };
  3309. static const char * const scifa4_groups[] = {
  3310. "scifa4_data",
  3311. "scifa4_ctrl",
  3312. };
  3313. static const char * const scifa5_groups[] = {
  3314. "scifa5_data_0",
  3315. "scifa5_clk_0",
  3316. "scifa5_ctrl_0",
  3317. "scifa5_data_1",
  3318. "scifa5_clk_1",
  3319. "scifa5_ctrl_1",
  3320. "scifa5_data_2",
  3321. "scifa5_clk_2",
  3322. "scifa5_ctrl_2",
  3323. };
  3324. static const char * const scifa6_groups[] = {
  3325. "scifa6",
  3326. };
  3327. static const char * const scifa7_groups[] = {
  3328. "scifa7_data",
  3329. "scifa7_ctrl",
  3330. };
  3331. static const char * const scifb_groups[] = {
  3332. "scifb_data_0",
  3333. "scifb_clk_0",
  3334. "scifb_ctrl_0",
  3335. "scifb_data_1",
  3336. "scifb_clk_1",
  3337. "scifb_ctrl_1",
  3338. };
  3339. static const char * const sdhi0_groups[] = {
  3340. "sdhi0_data1",
  3341. "sdhi0_data4",
  3342. "sdhi0_ctrl",
  3343. "sdhi0_cd",
  3344. "sdhi0_wp",
  3345. };
  3346. static const char * const sdhi1_groups[] = {
  3347. "sdhi1_data1",
  3348. "sdhi1_data4",
  3349. "sdhi1_ctrl",
  3350. };
  3351. static const char * const sdhi2_groups[] = {
  3352. "sdhi2_data1",
  3353. "sdhi2_data4",
  3354. "sdhi2_ctrl",
  3355. };
  3356. static const char * const usb_groups[] = {
  3357. "usb_vbus",
  3358. };
  3359. static const char * const tpu0_groups[] = {
  3360. "tpu0_to0",
  3361. "tpu0_to1",
  3362. "tpu0_to2",
  3363. "tpu0_to3",
  3364. };
  3365. static const char * const tpu1_groups[] = {
  3366. "tpu1_to0",
  3367. "tpu1_to1_0",
  3368. "tpu1_to1_1",
  3369. "tpu1_to2",
  3370. "tpu1_to3",
  3371. };
  3372. static const char * const tpu2_groups[] = {
  3373. "tpu2_to0",
  3374. "tpu2_to1",
  3375. "tpu2_to2",
  3376. "tpu2_to3",
  3377. };
  3378. static const char * const tpu3_groups[] = {
  3379. "tpu3_to0",
  3380. "tpu3_to1",
  3381. "tpu3_to2",
  3382. "tpu3_to3",
  3383. };
  3384. static const char * const tpu4_groups[] = {
  3385. "tpu4_to0",
  3386. "tpu4_to1",
  3387. "tpu4_to2",
  3388. "tpu4_to3",
  3389. };
  3390. static const struct sh_pfc_function pinmux_functions[] = {
  3391. SH_PFC_FUNCTION(bsc),
  3392. SH_PFC_FUNCTION(fsia),
  3393. SH_PFC_FUNCTION(fsib),
  3394. SH_PFC_FUNCTION(fsic),
  3395. SH_PFC_FUNCTION(fsid),
  3396. SH_PFC_FUNCTION(i2c2),
  3397. SH_PFC_FUNCTION(i2c3),
  3398. SH_PFC_FUNCTION(irda),
  3399. SH_PFC_FUNCTION(keysc),
  3400. SH_PFC_FUNCTION(lcd),
  3401. SH_PFC_FUNCTION(lcd2),
  3402. SH_PFC_FUNCTION(mmc0),
  3403. SH_PFC_FUNCTION(msiof0),
  3404. SH_PFC_FUNCTION(msiof1),
  3405. SH_PFC_FUNCTION(msiof2),
  3406. SH_PFC_FUNCTION(msiof3),
  3407. SH_PFC_FUNCTION(scifa0),
  3408. SH_PFC_FUNCTION(scifa1),
  3409. SH_PFC_FUNCTION(scifa2),
  3410. SH_PFC_FUNCTION(scifa3),
  3411. SH_PFC_FUNCTION(scifa4),
  3412. SH_PFC_FUNCTION(scifa5),
  3413. SH_PFC_FUNCTION(scifa6),
  3414. SH_PFC_FUNCTION(scifa7),
  3415. SH_PFC_FUNCTION(scifb),
  3416. SH_PFC_FUNCTION(sdhi0),
  3417. SH_PFC_FUNCTION(sdhi1),
  3418. SH_PFC_FUNCTION(sdhi2),
  3419. SH_PFC_FUNCTION(tpu0),
  3420. SH_PFC_FUNCTION(tpu1),
  3421. SH_PFC_FUNCTION(tpu2),
  3422. SH_PFC_FUNCTION(tpu3),
  3423. SH_PFC_FUNCTION(tpu4),
  3424. SH_PFC_FUNCTION(usb),
  3425. };
  3426. static const struct pinmux_cfg_reg pinmux_config_regs[] = {
  3427. PORTCR(0, 0xe6050000), /* PORT0CR */
  3428. PORTCR(1, 0xe6050001), /* PORT1CR */
  3429. PORTCR(2, 0xe6050002), /* PORT2CR */
  3430. PORTCR(3, 0xe6050003), /* PORT3CR */
  3431. PORTCR(4, 0xe6050004), /* PORT4CR */
  3432. PORTCR(5, 0xe6050005), /* PORT5CR */
  3433. PORTCR(6, 0xe6050006), /* PORT6CR */
  3434. PORTCR(7, 0xe6050007), /* PORT7CR */
  3435. PORTCR(8, 0xe6050008), /* PORT8CR */
  3436. PORTCR(9, 0xe6050009), /* PORT9CR */
  3437. PORTCR(10, 0xe605000a), /* PORT10CR */
  3438. PORTCR(11, 0xe605000b), /* PORT11CR */
  3439. PORTCR(12, 0xe605000c), /* PORT12CR */
  3440. PORTCR(13, 0xe605000d), /* PORT13CR */
  3441. PORTCR(14, 0xe605000e), /* PORT14CR */
  3442. PORTCR(15, 0xe605000f), /* PORT15CR */
  3443. PORTCR(16, 0xe6050010), /* PORT16CR */
  3444. PORTCR(17, 0xe6050011), /* PORT17CR */
  3445. PORTCR(18, 0xe6050012), /* PORT18CR */
  3446. PORTCR(19, 0xe6050013), /* PORT19CR */
  3447. PORTCR(20, 0xe6050014), /* PORT20CR */
  3448. PORTCR(21, 0xe6050015), /* PORT21CR */
  3449. PORTCR(22, 0xe6050016), /* PORT22CR */
  3450. PORTCR(23, 0xe6050017), /* PORT23CR */
  3451. PORTCR(24, 0xe6050018), /* PORT24CR */
  3452. PORTCR(25, 0xe6050019), /* PORT25CR */
  3453. PORTCR(26, 0xe605001a), /* PORT26CR */
  3454. PORTCR(27, 0xe605001b), /* PORT27CR */
  3455. PORTCR(28, 0xe605001c), /* PORT28CR */
  3456. PORTCR(29, 0xe605001d), /* PORT29CR */
  3457. PORTCR(30, 0xe605001e), /* PORT30CR */
  3458. PORTCR(31, 0xe605001f), /* PORT31CR */
  3459. PORTCR(32, 0xe6051020), /* PORT32CR */
  3460. PORTCR(33, 0xe6051021), /* PORT33CR */
  3461. PORTCR(34, 0xe6051022), /* PORT34CR */
  3462. PORTCR(35, 0xe6051023), /* PORT35CR */
  3463. PORTCR(36, 0xe6051024), /* PORT36CR */
  3464. PORTCR(37, 0xe6051025), /* PORT37CR */
  3465. PORTCR(38, 0xe6051026), /* PORT38CR */
  3466. PORTCR(39, 0xe6051027), /* PORT39CR */
  3467. PORTCR(40, 0xe6051028), /* PORT40CR */
  3468. PORTCR(41, 0xe6051029), /* PORT41CR */
  3469. PORTCR(42, 0xe605102a), /* PORT42CR */
  3470. PORTCR(43, 0xe605102b), /* PORT43CR */
  3471. PORTCR(44, 0xe605102c), /* PORT44CR */
  3472. PORTCR(45, 0xe605102d), /* PORT45CR */
  3473. PORTCR(46, 0xe605102e), /* PORT46CR */
  3474. PORTCR(47, 0xe605102f), /* PORT47CR */
  3475. PORTCR(48, 0xe6051030), /* PORT48CR */
  3476. PORTCR(49, 0xe6051031), /* PORT49CR */
  3477. PORTCR(50, 0xe6051032), /* PORT50CR */
  3478. PORTCR(51, 0xe6051033), /* PORT51CR */
  3479. PORTCR(52, 0xe6051034), /* PORT52CR */
  3480. PORTCR(53, 0xe6051035), /* PORT53CR */
  3481. PORTCR(54, 0xe6051036), /* PORT54CR */
  3482. PORTCR(55, 0xe6051037), /* PORT55CR */
  3483. PORTCR(56, 0xe6051038), /* PORT56CR */
  3484. PORTCR(57, 0xe6051039), /* PORT57CR */
  3485. PORTCR(58, 0xe605103a), /* PORT58CR */
  3486. PORTCR(59, 0xe605103b), /* PORT59CR */
  3487. PORTCR(60, 0xe605103c), /* PORT60CR */
  3488. PORTCR(61, 0xe605103d), /* PORT61CR */
  3489. PORTCR(62, 0xe605103e), /* PORT62CR */
  3490. PORTCR(63, 0xe605103f), /* PORT63CR */
  3491. PORTCR(64, 0xe6051040), /* PORT64CR */
  3492. PORTCR(65, 0xe6051041), /* PORT65CR */
  3493. PORTCR(66, 0xe6051042), /* PORT66CR */
  3494. PORTCR(67, 0xe6051043), /* PORT67CR */
  3495. PORTCR(68, 0xe6051044), /* PORT68CR */
  3496. PORTCR(69, 0xe6051045), /* PORT69CR */
  3497. PORTCR(70, 0xe6051046), /* PORT70CR */
  3498. PORTCR(71, 0xe6051047), /* PORT71CR */
  3499. PORTCR(72, 0xe6051048), /* PORT72CR */
  3500. PORTCR(73, 0xe6051049), /* PORT73CR */
  3501. PORTCR(74, 0xe605104a), /* PORT74CR */
  3502. PORTCR(75, 0xe605104b), /* PORT75CR */
  3503. PORTCR(76, 0xe605104c), /* PORT76CR */
  3504. PORTCR(77, 0xe605104d), /* PORT77CR */
  3505. PORTCR(78, 0xe605104e), /* PORT78CR */
  3506. PORTCR(79, 0xe605104f), /* PORT79CR */
  3507. PORTCR(80, 0xe6051050), /* PORT80CR */
  3508. PORTCR(81, 0xe6051051), /* PORT81CR */
  3509. PORTCR(82, 0xe6051052), /* PORT82CR */
  3510. PORTCR(83, 0xe6051053), /* PORT83CR */
  3511. PORTCR(84, 0xe6051054), /* PORT84CR */
  3512. PORTCR(85, 0xe6051055), /* PORT85CR */
  3513. PORTCR(86, 0xe6051056), /* PORT86CR */
  3514. PORTCR(87, 0xe6051057), /* PORT87CR */
  3515. PORTCR(88, 0xe6051058), /* PORT88CR */
  3516. PORTCR(89, 0xe6051059), /* PORT89CR */
  3517. PORTCR(90, 0xe605105a), /* PORT90CR */
  3518. PORTCR(91, 0xe605105b), /* PORT91CR */
  3519. PORTCR(92, 0xe605105c), /* PORT92CR */
  3520. PORTCR(93, 0xe605105d), /* PORT93CR */
  3521. PORTCR(94, 0xe605105e), /* PORT94CR */
  3522. PORTCR(95, 0xe605105f), /* PORT95CR */
  3523. PORTCR(96, 0xe6052060), /* PORT96CR */
  3524. PORTCR(97, 0xe6052061), /* PORT97CR */
  3525. PORTCR(98, 0xe6052062), /* PORT98CR */
  3526. PORTCR(99, 0xe6052063), /* PORT99CR */
  3527. PORTCR(100, 0xe6052064), /* PORT100CR */
  3528. PORTCR(101, 0xe6052065), /* PORT101CR */
  3529. PORTCR(102, 0xe6052066), /* PORT102CR */
  3530. PORTCR(103, 0xe6052067), /* PORT103CR */
  3531. PORTCR(104, 0xe6052068), /* PORT104CR */
  3532. PORTCR(105, 0xe6052069), /* PORT105CR */
  3533. PORTCR(106, 0xe605206a), /* PORT106CR */
  3534. PORTCR(107, 0xe605206b), /* PORT107CR */
  3535. PORTCR(108, 0xe605206c), /* PORT108CR */
  3536. PORTCR(109, 0xe605206d), /* PORT109CR */
  3537. PORTCR(110, 0xe605206e), /* PORT110CR */
  3538. PORTCR(111, 0xe605206f), /* PORT111CR */
  3539. PORTCR(112, 0xe6052070), /* PORT112CR */
  3540. PORTCR(113, 0xe6052071), /* PORT113CR */
  3541. PORTCR(114, 0xe6052072), /* PORT114CR */
  3542. PORTCR(115, 0xe6052073), /* PORT115CR */
  3543. PORTCR(116, 0xe6052074), /* PORT116CR */
  3544. PORTCR(117, 0xe6052075), /* PORT117CR */
  3545. PORTCR(118, 0xe6052076), /* PORT118CR */
  3546. PORTCR(128, 0xe6052080), /* PORT128CR */
  3547. PORTCR(129, 0xe6052081), /* PORT129CR */
  3548. PORTCR(130, 0xe6052082), /* PORT130CR */
  3549. PORTCR(131, 0xe6052083), /* PORT131CR */
  3550. PORTCR(132, 0xe6052084), /* PORT132CR */
  3551. PORTCR(133, 0xe6052085), /* PORT133CR */
  3552. PORTCR(134, 0xe6052086), /* PORT134CR */
  3553. PORTCR(135, 0xe6052087), /* PORT135CR */
  3554. PORTCR(136, 0xe6052088), /* PORT136CR */
  3555. PORTCR(137, 0xe6052089), /* PORT137CR */
  3556. PORTCR(138, 0xe605208a), /* PORT138CR */
  3557. PORTCR(139, 0xe605208b), /* PORT139CR */
  3558. PORTCR(140, 0xe605208c), /* PORT140CR */
  3559. PORTCR(141, 0xe605208d), /* PORT141CR */
  3560. PORTCR(142, 0xe605208e), /* PORT142CR */
  3561. PORTCR(143, 0xe605208f), /* PORT143CR */
  3562. PORTCR(144, 0xe6052090), /* PORT144CR */
  3563. PORTCR(145, 0xe6052091), /* PORT145CR */
  3564. PORTCR(146, 0xe6052092), /* PORT146CR */
  3565. PORTCR(147, 0xe6052093), /* PORT147CR */
  3566. PORTCR(148, 0xe6052094), /* PORT148CR */
  3567. PORTCR(149, 0xe6052095), /* PORT149CR */
  3568. PORTCR(150, 0xe6052096), /* PORT150CR */
  3569. PORTCR(151, 0xe6052097), /* PORT151CR */
  3570. PORTCR(152, 0xe6052098), /* PORT152CR */
  3571. PORTCR(153, 0xe6052099), /* PORT153CR */
  3572. PORTCR(154, 0xe605209a), /* PORT154CR */
  3573. PORTCR(155, 0xe605209b), /* PORT155CR */
  3574. PORTCR(156, 0xe605209c), /* PORT156CR */
  3575. PORTCR(157, 0xe605209d), /* PORT157CR */
  3576. PORTCR(158, 0xe605209e), /* PORT158CR */
  3577. PORTCR(159, 0xe605209f), /* PORT159CR */
  3578. PORTCR(160, 0xe60520a0), /* PORT160CR */
  3579. PORTCR(161, 0xe60520a1), /* PORT161CR */
  3580. PORTCR(162, 0xe60520a2), /* PORT162CR */
  3581. PORTCR(163, 0xe60520a3), /* PORT163CR */
  3582. PORTCR(164, 0xe60520a4), /* PORT164CR */
  3583. PORTCR(192, 0xe60520c0), /* PORT192CR */
  3584. PORTCR(193, 0xe60520c1), /* PORT193CR */
  3585. PORTCR(194, 0xe60520c2), /* PORT194CR */
  3586. PORTCR(195, 0xe60520c3), /* PORT195CR */
  3587. PORTCR(196, 0xe60520c4), /* PORT196CR */
  3588. PORTCR(197, 0xe60520c5), /* PORT197CR */
  3589. PORTCR(198, 0xe60520c6), /* PORT198CR */
  3590. PORTCR(199, 0xe60520c7), /* PORT199CR */
  3591. PORTCR(200, 0xe60520c8), /* PORT200CR */
  3592. PORTCR(201, 0xe60520c9), /* PORT201CR */
  3593. PORTCR(202, 0xe60520ca), /* PORT202CR */
  3594. PORTCR(203, 0xe60520cb), /* PORT203CR */
  3595. PORTCR(204, 0xe60520cc), /* PORT204CR */
  3596. PORTCR(205, 0xe60520cd), /* PORT205CR */
  3597. PORTCR(206, 0xe60520ce), /* PORT206CR */
  3598. PORTCR(207, 0xe60520cf), /* PORT207CR */
  3599. PORTCR(208, 0xe60520d0), /* PORT208CR */
  3600. PORTCR(209, 0xe60520d1), /* PORT209CR */
  3601. PORTCR(210, 0xe60520d2), /* PORT210CR */
  3602. PORTCR(211, 0xe60520d3), /* PORT211CR */
  3603. PORTCR(212, 0xe60520d4), /* PORT212CR */
  3604. PORTCR(213, 0xe60520d5), /* PORT213CR */
  3605. PORTCR(214, 0xe60520d6), /* PORT214CR */
  3606. PORTCR(215, 0xe60520d7), /* PORT215CR */
  3607. PORTCR(216, 0xe60520d8), /* PORT216CR */
  3608. PORTCR(217, 0xe60520d9), /* PORT217CR */
  3609. PORTCR(218, 0xe60520da), /* PORT218CR */
  3610. PORTCR(219, 0xe60520db), /* PORT219CR */
  3611. PORTCR(220, 0xe60520dc), /* PORT220CR */
  3612. PORTCR(221, 0xe60520dd), /* PORT221CR */
  3613. PORTCR(222, 0xe60520de), /* PORT222CR */
  3614. PORTCR(223, 0xe60520df), /* PORT223CR */
  3615. PORTCR(224, 0xe60530e0), /* PORT224CR */
  3616. PORTCR(225, 0xe60530e1), /* PORT225CR */
  3617. PORTCR(226, 0xe60530e2), /* PORT226CR */
  3618. PORTCR(227, 0xe60530e3), /* PORT227CR */
  3619. PORTCR(228, 0xe60530e4), /* PORT228CR */
  3620. PORTCR(229, 0xe60530e5), /* PORT229CR */
  3621. PORTCR(230, 0xe60530e6), /* PORT230CR */
  3622. PORTCR(231, 0xe60530e7), /* PORT231CR */
  3623. PORTCR(232, 0xe60530e8), /* PORT232CR */
  3624. PORTCR(233, 0xe60530e9), /* PORT233CR */
  3625. PORTCR(234, 0xe60530ea), /* PORT234CR */
  3626. PORTCR(235, 0xe60530eb), /* PORT235CR */
  3627. PORTCR(236, 0xe60530ec), /* PORT236CR */
  3628. PORTCR(237, 0xe60530ed), /* PORT237CR */
  3629. PORTCR(238, 0xe60530ee), /* PORT238CR */
  3630. PORTCR(239, 0xe60530ef), /* PORT239CR */
  3631. PORTCR(240, 0xe60530f0), /* PORT240CR */
  3632. PORTCR(241, 0xe60530f1), /* PORT241CR */
  3633. PORTCR(242, 0xe60530f2), /* PORT242CR */
  3634. PORTCR(243, 0xe60530f3), /* PORT243CR */
  3635. PORTCR(244, 0xe60530f4), /* PORT244CR */
  3636. PORTCR(245, 0xe60530f5), /* PORT245CR */
  3637. PORTCR(246, 0xe60530f6), /* PORT246CR */
  3638. PORTCR(247, 0xe60530f7), /* PORT247CR */
  3639. PORTCR(248, 0xe60530f8), /* PORT248CR */
  3640. PORTCR(249, 0xe60530f9), /* PORT249CR */
  3641. PORTCR(250, 0xe60530fa), /* PORT250CR */
  3642. PORTCR(251, 0xe60530fb), /* PORT251CR */
  3643. PORTCR(252, 0xe60530fc), /* PORT252CR */
  3644. PORTCR(253, 0xe60530fd), /* PORT253CR */
  3645. PORTCR(254, 0xe60530fe), /* PORT254CR */
  3646. PORTCR(255, 0xe60530ff), /* PORT255CR */
  3647. PORTCR(256, 0xe6053100), /* PORT256CR */
  3648. PORTCR(257, 0xe6053101), /* PORT257CR */
  3649. PORTCR(258, 0xe6053102), /* PORT258CR */
  3650. PORTCR(259, 0xe6053103), /* PORT259CR */
  3651. PORTCR(260, 0xe6053104), /* PORT260CR */
  3652. PORTCR(261, 0xe6053105), /* PORT261CR */
  3653. PORTCR(262, 0xe6053106), /* PORT262CR */
  3654. PORTCR(263, 0xe6053107), /* PORT263CR */
  3655. PORTCR(264, 0xe6053108), /* PORT264CR */
  3656. PORTCR(265, 0xe6053109), /* PORT265CR */
  3657. PORTCR(266, 0xe605310a), /* PORT266CR */
  3658. PORTCR(267, 0xe605310b), /* PORT267CR */
  3659. PORTCR(268, 0xe605310c), /* PORT268CR */
  3660. PORTCR(269, 0xe605310d), /* PORT269CR */
  3661. PORTCR(270, 0xe605310e), /* PORT270CR */
  3662. PORTCR(271, 0xe605310f), /* PORT271CR */
  3663. PORTCR(272, 0xe6053110), /* PORT272CR */
  3664. PORTCR(273, 0xe6053111), /* PORT273CR */
  3665. PORTCR(274, 0xe6053112), /* PORT274CR */
  3666. PORTCR(275, 0xe6053113), /* PORT275CR */
  3667. PORTCR(276, 0xe6053114), /* PORT276CR */
  3668. PORTCR(277, 0xe6053115), /* PORT277CR */
  3669. PORTCR(278, 0xe6053116), /* PORT278CR */
  3670. PORTCR(279, 0xe6053117), /* PORT279CR */
  3671. PORTCR(280, 0xe6053118), /* PORT280CR */
  3672. PORTCR(281, 0xe6053119), /* PORT281CR */
  3673. PORTCR(282, 0xe605311a), /* PORT282CR */
  3674. PORTCR(288, 0xe6052120), /* PORT288CR */
  3675. PORTCR(289, 0xe6052121), /* PORT289CR */
  3676. PORTCR(290, 0xe6052122), /* PORT290CR */
  3677. PORTCR(291, 0xe6052123), /* PORT291CR */
  3678. PORTCR(292, 0xe6052124), /* PORT292CR */
  3679. PORTCR(293, 0xe6052125), /* PORT293CR */
  3680. PORTCR(294, 0xe6052126), /* PORT294CR */
  3681. PORTCR(295, 0xe6052127), /* PORT295CR */
  3682. PORTCR(296, 0xe6052128), /* PORT296CR */
  3683. PORTCR(297, 0xe6052129), /* PORT297CR */
  3684. PORTCR(298, 0xe605212a), /* PORT298CR */
  3685. PORTCR(299, 0xe605212b), /* PORT299CR */
  3686. PORTCR(300, 0xe605212c), /* PORT300CR */
  3687. PORTCR(301, 0xe605212d), /* PORT301CR */
  3688. PORTCR(302, 0xe605212e), /* PORT302CR */
  3689. PORTCR(303, 0xe605212f), /* PORT303CR */
  3690. PORTCR(304, 0xe6052130), /* PORT304CR */
  3691. PORTCR(305, 0xe6052131), /* PORT305CR */
  3692. PORTCR(306, 0xe6052132), /* PORT306CR */
  3693. PORTCR(307, 0xe6052133), /* PORT307CR */
  3694. PORTCR(308, 0xe6052134), /* PORT308CR */
  3695. PORTCR(309, 0xe6052135), /* PORT309CR */
  3696. { PINMUX_CFG_REG_VAR("MSEL2CR", 0xe605801c, 32,
  3697. GROUP(-12, 1, 1, 1, 1, -1, 1, 1, 1, 1, 1, 1,
  3698. 1, 1, 1, 1, 1, 1, 1, 1, 1),
  3699. GROUP(
  3700. /* RESERVED [12] */
  3701. MSEL2CR_MSEL19_0, MSEL2CR_MSEL19_1,
  3702. MSEL2CR_MSEL18_0, MSEL2CR_MSEL18_1,
  3703. MSEL2CR_MSEL17_0, MSEL2CR_MSEL17_1,
  3704. MSEL2CR_MSEL16_0, MSEL2CR_MSEL16_1,
  3705. /* RESERVED [1] */
  3706. MSEL2CR_MSEL14_0, MSEL2CR_MSEL14_1,
  3707. MSEL2CR_MSEL13_0, MSEL2CR_MSEL13_1,
  3708. MSEL2CR_MSEL12_0, MSEL2CR_MSEL12_1,
  3709. MSEL2CR_MSEL11_0, MSEL2CR_MSEL11_1,
  3710. MSEL2CR_MSEL10_0, MSEL2CR_MSEL10_1,
  3711. MSEL2CR_MSEL9_0, MSEL2CR_MSEL9_1,
  3712. MSEL2CR_MSEL8_0, MSEL2CR_MSEL8_1,
  3713. MSEL2CR_MSEL7_0, MSEL2CR_MSEL7_1,
  3714. MSEL2CR_MSEL6_0, MSEL2CR_MSEL6_1,
  3715. MSEL2CR_MSEL5_0, MSEL2CR_MSEL5_1,
  3716. MSEL2CR_MSEL4_0, MSEL2CR_MSEL4_1,
  3717. MSEL2CR_MSEL3_0, MSEL2CR_MSEL3_1,
  3718. MSEL2CR_MSEL2_0, MSEL2CR_MSEL2_1,
  3719. MSEL2CR_MSEL1_0, MSEL2CR_MSEL1_1,
  3720. MSEL2CR_MSEL0_0, MSEL2CR_MSEL0_1,
  3721. ))
  3722. },
  3723. { PINMUX_CFG_REG_VAR("MSEL3CR", 0xe6058020, 32,
  3724. GROUP(-3, 1, -12, 1, -3, 1, -1, 1, -2, 1, -3, 1,
  3725. -2),
  3726. GROUP(
  3727. /* RESERVED [3] */
  3728. MSEL3CR_MSEL28_0, MSEL3CR_MSEL28_1,
  3729. /* RESERVED [12] */
  3730. MSEL3CR_MSEL15_0, MSEL3CR_MSEL15_1,
  3731. /* RESERVED [3] */
  3732. MSEL3CR_MSEL11_0, MSEL3CR_MSEL11_1,
  3733. /* RESERVED [1] */
  3734. MSEL3CR_MSEL9_0, MSEL3CR_MSEL9_1,
  3735. /* RESERVED [2] */
  3736. MSEL3CR_MSEL6_0, MSEL3CR_MSEL6_1,
  3737. /* RESERVED [3] */
  3738. MSEL3CR_MSEL2_0, MSEL3CR_MSEL2_1,
  3739. /* RESERVED [2] */
  3740. ))
  3741. },
  3742. { PINMUX_CFG_REG_VAR("MSEL4CR", 0xe6058024, 32,
  3743. GROUP(-2, 1, -1, 1, 1, -3, 1, 1, 1, 1, -3, 1,
  3744. -1, 1, 1, 1, 1, 1, 1, 1, -2, 1, -2, 1,
  3745. -1),
  3746. GROUP(
  3747. /* RESERVED [2] */
  3748. MSEL4CR_MSEL29_0, MSEL4CR_MSEL29_1,
  3749. /* RESERVED [1] */
  3750. MSEL4CR_MSEL27_0, MSEL4CR_MSEL27_1,
  3751. MSEL4CR_MSEL26_0, MSEL4CR_MSEL26_1,
  3752. /* RESERVED [3] */
  3753. MSEL4CR_MSEL22_0, MSEL4CR_MSEL22_1,
  3754. MSEL4CR_MSEL21_0, MSEL4CR_MSEL21_1,
  3755. MSEL4CR_MSEL20_0, MSEL4CR_MSEL20_1,
  3756. MSEL4CR_MSEL19_0, MSEL4CR_MSEL19_1,
  3757. /* RESERVED [3] */
  3758. MSEL4CR_MSEL15_0, MSEL4CR_MSEL15_1,
  3759. /* RESERVED [1] */
  3760. MSEL4CR_MSEL13_0, MSEL4CR_MSEL13_1,
  3761. MSEL4CR_MSEL12_0, MSEL4CR_MSEL12_1,
  3762. MSEL4CR_MSEL11_0, MSEL4CR_MSEL11_1,
  3763. MSEL4CR_MSEL10_0, MSEL4CR_MSEL10_1,
  3764. MSEL4CR_MSEL9_0, MSEL4CR_MSEL9_1,
  3765. MSEL4CR_MSEL8_0, MSEL4CR_MSEL8_1,
  3766. MSEL4CR_MSEL7_0, MSEL4CR_MSEL7_1,
  3767. /* RESERVED [2] */
  3768. MSEL4CR_MSEL4_0, MSEL4CR_MSEL4_1,
  3769. /* RESERVED [2] */
  3770. MSEL4CR_MSEL1_0, MSEL4CR_MSEL1_1,
  3771. /* RESERVED [1] */
  3772. ))
  3773. },
  3774. { },
  3775. };
  3776. static const struct pinmux_data_reg pinmux_data_regs[] = {
  3777. { PINMUX_DATA_REG("PORTL031_000DR", 0xe6054000, 32, GROUP(
  3778. PORT31_DATA, PORT30_DATA, PORT29_DATA, PORT28_DATA,
  3779. PORT27_DATA, PORT26_DATA, PORT25_DATA, PORT24_DATA,
  3780. PORT23_DATA, PORT22_DATA, PORT21_DATA, PORT20_DATA,
  3781. PORT19_DATA, PORT18_DATA, PORT17_DATA, PORT16_DATA,
  3782. PORT15_DATA, PORT14_DATA, PORT13_DATA, PORT12_DATA,
  3783. PORT11_DATA, PORT10_DATA, PORT9_DATA, PORT8_DATA,
  3784. PORT7_DATA, PORT6_DATA, PORT5_DATA, PORT4_DATA,
  3785. PORT3_DATA, PORT2_DATA, PORT1_DATA, PORT0_DATA ))
  3786. },
  3787. { PINMUX_DATA_REG("PORTD063_032DR", 0xe6055000, 32, GROUP(
  3788. PORT63_DATA, PORT62_DATA, PORT61_DATA, PORT60_DATA,
  3789. PORT59_DATA, PORT58_DATA, PORT57_DATA, PORT56_DATA,
  3790. PORT55_DATA, PORT54_DATA, PORT53_DATA, PORT52_DATA,
  3791. PORT51_DATA, PORT50_DATA, PORT49_DATA, PORT48_DATA,
  3792. PORT47_DATA, PORT46_DATA, PORT45_DATA, PORT44_DATA,
  3793. PORT43_DATA, PORT42_DATA, PORT41_DATA, PORT40_DATA,
  3794. PORT39_DATA, PORT38_DATA, PORT37_DATA, PORT36_DATA,
  3795. PORT35_DATA, PORT34_DATA, PORT33_DATA, PORT32_DATA ))
  3796. },
  3797. { PINMUX_DATA_REG("PORTD095_064DR", 0xe6055004, 32, GROUP(
  3798. PORT95_DATA, PORT94_DATA, PORT93_DATA, PORT92_DATA,
  3799. PORT91_DATA, PORT90_DATA, PORT89_DATA, PORT88_DATA,
  3800. PORT87_DATA, PORT86_DATA, PORT85_DATA, PORT84_DATA,
  3801. PORT83_DATA, PORT82_DATA, PORT81_DATA, PORT80_DATA,
  3802. PORT79_DATA, PORT78_DATA, PORT77_DATA, PORT76_DATA,
  3803. PORT75_DATA, PORT74_DATA, PORT73_DATA, PORT72_DATA,
  3804. PORT71_DATA, PORT70_DATA, PORT69_DATA, PORT68_DATA,
  3805. PORT67_DATA, PORT66_DATA, PORT65_DATA, PORT64_DATA ))
  3806. },
  3807. { PINMUX_DATA_REG("PORTR127_096DR", 0xe6056000, 32, GROUP(
  3808. 0, 0, 0, 0,
  3809. 0, 0, 0, 0,
  3810. 0, PORT118_DATA, PORT117_DATA, PORT116_DATA,
  3811. PORT115_DATA, PORT114_DATA, PORT113_DATA, PORT112_DATA,
  3812. PORT111_DATA, PORT110_DATA, PORT109_DATA, PORT108_DATA,
  3813. PORT107_DATA, PORT106_DATA, PORT105_DATA, PORT104_DATA,
  3814. PORT103_DATA, PORT102_DATA, PORT101_DATA, PORT100_DATA,
  3815. PORT99_DATA, PORT98_DATA, PORT97_DATA, PORT96_DATA ))
  3816. },
  3817. { PINMUX_DATA_REG("PORTR159_128DR", 0xe6056004, 32, GROUP(
  3818. PORT159_DATA, PORT158_DATA, PORT157_DATA, PORT156_DATA,
  3819. PORT155_DATA, PORT154_DATA, PORT153_DATA, PORT152_DATA,
  3820. PORT151_DATA, PORT150_DATA, PORT149_DATA, PORT148_DATA,
  3821. PORT147_DATA, PORT146_DATA, PORT145_DATA, PORT144_DATA,
  3822. PORT143_DATA, PORT142_DATA, PORT141_DATA, PORT140_DATA,
  3823. PORT139_DATA, PORT138_DATA, PORT137_DATA, PORT136_DATA,
  3824. PORT135_DATA, PORT134_DATA, PORT133_DATA, PORT132_DATA,
  3825. PORT131_DATA, PORT130_DATA, PORT129_DATA, PORT128_DATA ))
  3826. },
  3827. { PINMUX_DATA_REG("PORTR191_160DR", 0xe6056008, 32, GROUP(
  3828. 0, 0, 0, 0,
  3829. 0, 0, 0, 0,
  3830. 0, 0, 0, 0,
  3831. 0, 0, 0, 0,
  3832. 0, 0, 0, 0,
  3833. 0, 0, 0, 0,
  3834. 0, 0, 0, PORT164_DATA,
  3835. PORT163_DATA, PORT162_DATA, PORT161_DATA, PORT160_DATA ))
  3836. },
  3837. { PINMUX_DATA_REG("PORTR223_192DR", 0xe605600C, 32, GROUP(
  3838. PORT223_DATA, PORT222_DATA, PORT221_DATA, PORT220_DATA,
  3839. PORT219_DATA, PORT218_DATA, PORT217_DATA, PORT216_DATA,
  3840. PORT215_DATA, PORT214_DATA, PORT213_DATA, PORT212_DATA,
  3841. PORT211_DATA, PORT210_DATA, PORT209_DATA, PORT208_DATA,
  3842. PORT207_DATA, PORT206_DATA, PORT205_DATA, PORT204_DATA,
  3843. PORT203_DATA, PORT202_DATA, PORT201_DATA, PORT200_DATA,
  3844. PORT199_DATA, PORT198_DATA, PORT197_DATA, PORT196_DATA,
  3845. PORT195_DATA, PORT194_DATA, PORT193_DATA, PORT192_DATA ))
  3846. },
  3847. { PINMUX_DATA_REG("PORTU255_224DR", 0xe6057000, 32, GROUP(
  3848. PORT255_DATA, PORT254_DATA, PORT253_DATA, PORT252_DATA,
  3849. PORT251_DATA, PORT250_DATA, PORT249_DATA, PORT248_DATA,
  3850. PORT247_DATA, PORT246_DATA, PORT245_DATA, PORT244_DATA,
  3851. PORT243_DATA, PORT242_DATA, PORT241_DATA, PORT240_DATA,
  3852. PORT239_DATA, PORT238_DATA, PORT237_DATA, PORT236_DATA,
  3853. PORT235_DATA, PORT234_DATA, PORT233_DATA, PORT232_DATA,
  3854. PORT231_DATA, PORT230_DATA, PORT229_DATA, PORT228_DATA,
  3855. PORT227_DATA, PORT226_DATA, PORT225_DATA, PORT224_DATA ))
  3856. },
  3857. { PINMUX_DATA_REG("PORTU287_256DR", 0xe6057004, 32, GROUP(
  3858. 0, 0, 0, 0,
  3859. 0, PORT282_DATA, PORT281_DATA, PORT280_DATA,
  3860. PORT279_DATA, PORT278_DATA, PORT277_DATA, PORT276_DATA,
  3861. PORT275_DATA, PORT274_DATA, PORT273_DATA, PORT272_DATA,
  3862. PORT271_DATA, PORT270_DATA, PORT269_DATA, PORT268_DATA,
  3863. PORT267_DATA, PORT266_DATA, PORT265_DATA, PORT264_DATA,
  3864. PORT263_DATA, PORT262_DATA, PORT261_DATA, PORT260_DATA,
  3865. PORT259_DATA, PORT258_DATA, PORT257_DATA, PORT256_DATA ))
  3866. },
  3867. { PINMUX_DATA_REG("PORTR319_288DR", 0xe6056010, 32, GROUP(
  3868. 0, 0, 0, 0,
  3869. 0, 0, 0, 0,
  3870. 0, 0, PORT309_DATA, PORT308_DATA,
  3871. PORT307_DATA, PORT306_DATA, PORT305_DATA, PORT304_DATA,
  3872. PORT303_DATA, PORT302_DATA, PORT301_DATA, PORT300_DATA,
  3873. PORT299_DATA, PORT298_DATA, PORT297_DATA, PORT296_DATA,
  3874. PORT295_DATA, PORT294_DATA, PORT293_DATA, PORT292_DATA,
  3875. PORT291_DATA, PORT290_DATA, PORT289_DATA, PORT288_DATA ))
  3876. },
  3877. { },
  3878. };
  3879. static const struct pinmux_irq pinmux_irqs[] = {
  3880. PINMUX_IRQ(11), /* IRQ0 */
  3881. PINMUX_IRQ(10), /* IRQ1 */
  3882. PINMUX_IRQ(149), /* IRQ2 */
  3883. PINMUX_IRQ(224), /* IRQ3 */
  3884. PINMUX_IRQ(159), /* IRQ4 */
  3885. PINMUX_IRQ(227), /* IRQ5 */
  3886. PINMUX_IRQ(147), /* IRQ6 */
  3887. PINMUX_IRQ(150), /* IRQ7 */
  3888. PINMUX_IRQ(223), /* IRQ8 */
  3889. PINMUX_IRQ(56, 308), /* IRQ9 */
  3890. PINMUX_IRQ(54), /* IRQ10 */
  3891. PINMUX_IRQ(238), /* IRQ11 */
  3892. PINMUX_IRQ(156), /* IRQ12 */
  3893. PINMUX_IRQ(239), /* IRQ13 */
  3894. PINMUX_IRQ(251), /* IRQ14 */
  3895. PINMUX_IRQ(0), /* IRQ15 */
  3896. PINMUX_IRQ(249), /* IRQ16 */
  3897. PINMUX_IRQ(234), /* IRQ17 */
  3898. PINMUX_IRQ(13), /* IRQ18 */
  3899. PINMUX_IRQ(9), /* IRQ19 */
  3900. PINMUX_IRQ(14), /* IRQ20 */
  3901. PINMUX_IRQ(15), /* IRQ21 */
  3902. PINMUX_IRQ(40), /* IRQ22 */
  3903. PINMUX_IRQ(53), /* IRQ23 */
  3904. PINMUX_IRQ(118), /* IRQ24 */
  3905. PINMUX_IRQ(164), /* IRQ25 */
  3906. PINMUX_IRQ(115), /* IRQ26 */
  3907. PINMUX_IRQ(116), /* IRQ27 */
  3908. PINMUX_IRQ(117), /* IRQ28 */
  3909. PINMUX_IRQ(28), /* IRQ29 */
  3910. PINMUX_IRQ(27), /* IRQ30 */
  3911. PINMUX_IRQ(26), /* IRQ31 */
  3912. };
  3913. /* -----------------------------------------------------------------------------
  3914. * VCCQ MC0 regulator
  3915. */
  3916. static void sh73a0_vccq_mc0_endisable(struct regulator_dev *reg, bool enable)
  3917. {
  3918. struct sh_pfc *pfc = reg->reg_data;
  3919. void __iomem *addr = pfc->windows[1].virt + 4;
  3920. unsigned long flags;
  3921. u32 value;
  3922. spin_lock_irqsave(&pfc->lock, flags);
  3923. value = ioread32(addr);
  3924. if (enable)
  3925. value |= BIT(28);
  3926. else
  3927. value &= ~BIT(28);
  3928. iowrite32(value, addr);
  3929. spin_unlock_irqrestore(&pfc->lock, flags);
  3930. }
  3931. static int sh73a0_vccq_mc0_enable(struct regulator_dev *reg)
  3932. {
  3933. sh73a0_vccq_mc0_endisable(reg, true);
  3934. return 0;
  3935. }
  3936. static int sh73a0_vccq_mc0_disable(struct regulator_dev *reg)
  3937. {
  3938. sh73a0_vccq_mc0_endisable(reg, false);
  3939. return 0;
  3940. }
  3941. static int sh73a0_vccq_mc0_is_enabled(struct regulator_dev *reg)
  3942. {
  3943. struct sh_pfc *pfc = reg->reg_data;
  3944. void __iomem *addr = pfc->windows[1].virt + 4;
  3945. unsigned long flags;
  3946. u32 value;
  3947. spin_lock_irqsave(&pfc->lock, flags);
  3948. value = ioread32(addr);
  3949. spin_unlock_irqrestore(&pfc->lock, flags);
  3950. return !!(value & BIT(28));
  3951. }
  3952. static int sh73a0_vccq_mc0_get_voltage(struct regulator_dev *reg)
  3953. {
  3954. return 3300000;
  3955. }
  3956. static const struct regulator_ops sh73a0_vccq_mc0_ops = {
  3957. .enable = sh73a0_vccq_mc0_enable,
  3958. .disable = sh73a0_vccq_mc0_disable,
  3959. .is_enabled = sh73a0_vccq_mc0_is_enabled,
  3960. .get_voltage = sh73a0_vccq_mc0_get_voltage,
  3961. };
  3962. static const struct regulator_desc sh73a0_vccq_mc0_desc = {
  3963. .owner = THIS_MODULE,
  3964. .name = "vccq_mc0",
  3965. .type = REGULATOR_VOLTAGE,
  3966. .ops = &sh73a0_vccq_mc0_ops,
  3967. };
  3968. static struct regulator_consumer_supply sh73a0_vccq_mc0_consumers[] = {
  3969. REGULATOR_SUPPLY("vqmmc", "sh_mobile_sdhi.0"),
  3970. REGULATOR_SUPPLY("vqmmc", "ee100000.sdhi"),
  3971. };
  3972. static const struct regulator_init_data sh73a0_vccq_mc0_init_data = {
  3973. .constraints = {
  3974. .valid_ops_mask = REGULATOR_CHANGE_STATUS,
  3975. },
  3976. .num_consumer_supplies = ARRAY_SIZE(sh73a0_vccq_mc0_consumers),
  3977. .consumer_supplies = sh73a0_vccq_mc0_consumers,
  3978. };
  3979. /* -----------------------------------------------------------------------------
  3980. * Pin bias
  3981. */
  3982. static const unsigned int sh73a0_portcr_offsets[] = {
  3983. 0x00000000, 0x00001000, 0x00001000, 0x00002000, 0x00002000,
  3984. 0x00002000, 0x00002000, 0x00003000, 0x00003000, 0x00002000,
  3985. };
  3986. static int sh73a0_pin_to_portcr(unsigned int pin)
  3987. {
  3988. return sh73a0_portcr_offsets[pin >> 5] + pin;
  3989. }
  3990. /* -----------------------------------------------------------------------------
  3991. * SoC information
  3992. */
  3993. static int sh73a0_pinmux_soc_init(struct sh_pfc *pfc)
  3994. {
  3995. struct regulator_config cfg = { };
  3996. struct regulator_dev *vccq;
  3997. int ret;
  3998. cfg.dev = pfc->dev;
  3999. cfg.init_data = &sh73a0_vccq_mc0_init_data;
  4000. cfg.driver_data = pfc;
  4001. vccq = devm_regulator_register(pfc->dev, &sh73a0_vccq_mc0_desc, &cfg);
  4002. if (IS_ERR(vccq)) {
  4003. ret = PTR_ERR(vccq);
  4004. dev_err(pfc->dev, "Failed to register VCCQ MC0 regulator: %d\n",
  4005. ret);
  4006. return ret;
  4007. }
  4008. return 0;
  4009. }
  4010. static const struct sh_pfc_soc_operations sh73a0_pfc_ops = {
  4011. .init = sh73a0_pinmux_soc_init,
  4012. .get_bias = rmobile_pinmux_get_bias,
  4013. .set_bias = rmobile_pinmux_set_bias,
  4014. .pin_to_portcr = sh73a0_pin_to_portcr,
  4015. };
  4016. const struct sh_pfc_soc_info sh73a0_pinmux_info = {
  4017. .name = "sh73a0_pfc",
  4018. .ops = &sh73a0_pfc_ops,
  4019. .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END },
  4020. .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END },
  4021. .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
  4022. .pins = pinmux_pins,
  4023. .nr_pins = ARRAY_SIZE(pinmux_pins),
  4024. .groups = pinmux_groups,
  4025. .nr_groups = ARRAY_SIZE(pinmux_groups),
  4026. .functions = pinmux_functions,
  4027. .nr_functions = ARRAY_SIZE(pinmux_functions),
  4028. .cfg_regs = pinmux_config_regs,
  4029. .data_regs = pinmux_data_regs,
  4030. .pinmux_data = pinmux_data,
  4031. .pinmux_data_size = ARRAY_SIZE(pinmux_data),
  4032. .gpio_irq = pinmux_irqs,
  4033. .gpio_irq_size = ARRAY_SIZE(pinmux_irqs),
  4034. };