pfc-sh73a0.c 128 KB

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