pfc-r8a7740.c 114 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782
  1. /*
  2. * R8A7740 processor support
  3. *
  4. * Copyright (C) 2011 Renesas Solutions Corp.
  5. * Copyright (C) 2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; version 2 of the
  10. * License.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  20. */
  21. #include <linux/io.h>
  22. #include <linux/kernel.h>
  23. #include <linux/pinctrl/pinconf-generic.h>
  24. #include "sh_pfc.h"
  25. #define CPU_ALL_PORT(fn, pfx, sfx) \
  26. PORT_10(0, fn, pfx, sfx), PORT_90(0, fn, pfx, sfx), \
  27. PORT_10(100, fn, pfx##10, sfx), PORT_90(100, fn, pfx##1, sfx), \
  28. PORT_10(200, fn, pfx##20, sfx), \
  29. PORT_1(210, fn, pfx##210, sfx), PORT_1(211, fn, pfx##211, sfx)
  30. #define IRQC_PIN_MUX(irq, pin) \
  31. static const unsigned int intc_irq##irq##_pins[] = { \
  32. pin, \
  33. }; \
  34. static const unsigned int intc_irq##irq##_mux[] = { \
  35. IRQ##irq##_MARK, \
  36. }
  37. #define IRQC_PINS_MUX(irq, idx, pin) \
  38. static const unsigned int intc_irq##irq##_##idx##_pins[] = { \
  39. pin, \
  40. }; \
  41. static const unsigned int intc_irq##irq##_##idx##_mux[] = { \
  42. IRQ##irq##_PORT##pin##_MARK, \
  43. }
  44. enum {
  45. PINMUX_RESERVED = 0,
  46. /* PORT0_DATA -> PORT211_DATA */
  47. PINMUX_DATA_BEGIN,
  48. PORT_ALL(DATA),
  49. PINMUX_DATA_END,
  50. /* PORT0_IN -> PORT211_IN */
  51. PINMUX_INPUT_BEGIN,
  52. PORT_ALL(IN),
  53. PINMUX_INPUT_END,
  54. /* PORT0_OUT -> PORT211_OUT */
  55. PINMUX_OUTPUT_BEGIN,
  56. PORT_ALL(OUT),
  57. PINMUX_OUTPUT_END,
  58. PINMUX_FUNCTION_BEGIN,
  59. PORT_ALL(FN_IN), /* PORT0_FN_IN -> PORT211_FN_IN */
  60. PORT_ALL(FN_OUT), /* PORT0_FN_OUT -> PORT211_FN_OUT */
  61. PORT_ALL(FN0), /* PORT0_FN0 -> PORT211_FN0 */
  62. PORT_ALL(FN1), /* PORT0_FN1 -> PORT211_FN1 */
  63. PORT_ALL(FN2), /* PORT0_FN2 -> PORT211_FN2 */
  64. PORT_ALL(FN3), /* PORT0_FN3 -> PORT211_FN3 */
  65. PORT_ALL(FN4), /* PORT0_FN4 -> PORT211_FN4 */
  66. PORT_ALL(FN5), /* PORT0_FN5 -> PORT211_FN5 */
  67. PORT_ALL(FN6), /* PORT0_FN6 -> PORT211_FN6 */
  68. PORT_ALL(FN7), /* PORT0_FN7 -> PORT211_FN7 */
  69. MSEL1CR_31_0, MSEL1CR_31_1,
  70. MSEL1CR_30_0, MSEL1CR_30_1,
  71. MSEL1CR_29_0, MSEL1CR_29_1,
  72. MSEL1CR_28_0, MSEL1CR_28_1,
  73. MSEL1CR_27_0, MSEL1CR_27_1,
  74. MSEL1CR_26_0, MSEL1CR_26_1,
  75. MSEL1CR_16_0, MSEL1CR_16_1,
  76. MSEL1CR_15_0, MSEL1CR_15_1,
  77. MSEL1CR_14_0, MSEL1CR_14_1,
  78. MSEL1CR_13_0, MSEL1CR_13_1,
  79. MSEL1CR_12_0, MSEL1CR_12_1,
  80. MSEL1CR_9_0, MSEL1CR_9_1,
  81. MSEL1CR_7_0, MSEL1CR_7_1,
  82. MSEL1CR_6_0, MSEL1CR_6_1,
  83. MSEL1CR_5_0, MSEL1CR_5_1,
  84. MSEL1CR_4_0, MSEL1CR_4_1,
  85. MSEL1CR_3_0, MSEL1CR_3_1,
  86. MSEL1CR_2_0, MSEL1CR_2_1,
  87. MSEL1CR_0_0, MSEL1CR_0_1,
  88. MSEL3CR_15_0, MSEL3CR_15_1, /* Trace / Debug ? */
  89. MSEL3CR_6_0, MSEL3CR_6_1,
  90. MSEL4CR_19_0, MSEL4CR_19_1,
  91. MSEL4CR_18_0, MSEL4CR_18_1,
  92. MSEL4CR_15_0, MSEL4CR_15_1,
  93. MSEL4CR_10_0, MSEL4CR_10_1,
  94. MSEL4CR_6_0, MSEL4CR_6_1,
  95. MSEL4CR_4_0, MSEL4CR_4_1,
  96. MSEL4CR_1_0, MSEL4CR_1_1,
  97. MSEL5CR_31_0, MSEL5CR_31_1, /* irq/fiq output */
  98. MSEL5CR_30_0, MSEL5CR_30_1,
  99. MSEL5CR_29_0, MSEL5CR_29_1,
  100. MSEL5CR_27_0, MSEL5CR_27_1,
  101. MSEL5CR_25_0, MSEL5CR_25_1,
  102. MSEL5CR_23_0, MSEL5CR_23_1,
  103. MSEL5CR_21_0, MSEL5CR_21_1,
  104. MSEL5CR_19_0, MSEL5CR_19_1,
  105. MSEL5CR_17_0, MSEL5CR_17_1,
  106. MSEL5CR_15_0, MSEL5CR_15_1,
  107. MSEL5CR_14_0, MSEL5CR_14_1,
  108. MSEL5CR_13_0, MSEL5CR_13_1,
  109. MSEL5CR_12_0, MSEL5CR_12_1,
  110. MSEL5CR_11_0, MSEL5CR_11_1,
  111. MSEL5CR_10_0, MSEL5CR_10_1,
  112. MSEL5CR_8_0, MSEL5CR_8_1,
  113. MSEL5CR_7_0, MSEL5CR_7_1,
  114. MSEL5CR_6_0, MSEL5CR_6_1,
  115. MSEL5CR_5_0, MSEL5CR_5_1,
  116. MSEL5CR_4_0, MSEL5CR_4_1,
  117. MSEL5CR_3_0, MSEL5CR_3_1,
  118. MSEL5CR_2_0, MSEL5CR_2_1,
  119. MSEL5CR_0_0, MSEL5CR_0_1,
  120. PINMUX_FUNCTION_END,
  121. PINMUX_MARK_BEGIN,
  122. /* IRQ */
  123. IRQ0_PORT2_MARK, IRQ0_PORT13_MARK,
  124. IRQ1_MARK,
  125. IRQ2_PORT11_MARK, IRQ2_PORT12_MARK,
  126. IRQ3_PORT10_MARK, IRQ3_PORT14_MARK,
  127. IRQ4_PORT15_MARK, IRQ4_PORT172_MARK,
  128. IRQ5_PORT0_MARK, IRQ5_PORT1_MARK,
  129. IRQ6_PORT121_MARK, IRQ6_PORT173_MARK,
  130. IRQ7_PORT120_MARK, IRQ7_PORT209_MARK,
  131. IRQ8_MARK,
  132. IRQ9_PORT118_MARK, IRQ9_PORT210_MARK,
  133. IRQ10_MARK,
  134. IRQ11_MARK,
  135. IRQ12_PORT42_MARK, IRQ12_PORT97_MARK,
  136. IRQ13_PORT64_MARK, IRQ13_PORT98_MARK,
  137. IRQ14_PORT63_MARK, IRQ14_PORT99_MARK,
  138. IRQ15_PORT62_MARK, IRQ15_PORT100_MARK,
  139. IRQ16_PORT68_MARK, IRQ16_PORT211_MARK,
  140. IRQ17_MARK,
  141. IRQ18_MARK,
  142. IRQ19_MARK,
  143. IRQ20_MARK,
  144. IRQ21_MARK,
  145. IRQ22_MARK,
  146. IRQ23_MARK,
  147. IRQ24_MARK,
  148. IRQ25_MARK,
  149. IRQ26_PORT58_MARK, IRQ26_PORT81_MARK,
  150. IRQ27_PORT57_MARK, IRQ27_PORT168_MARK,
  151. IRQ28_PORT56_MARK, IRQ28_PORT169_MARK,
  152. IRQ29_PORT50_MARK, IRQ29_PORT170_MARK,
  153. IRQ30_PORT49_MARK, IRQ30_PORT171_MARK,
  154. IRQ31_PORT41_MARK, IRQ31_PORT167_MARK,
  155. /* Function */
  156. /* DBGT */
  157. DBGMDT2_MARK, DBGMDT1_MARK, DBGMDT0_MARK,
  158. DBGMD10_MARK, DBGMD11_MARK, DBGMD20_MARK,
  159. DBGMD21_MARK,
  160. /* FSI-A */
  161. FSIAISLD_PORT0_MARK, /* FSIAISLD Port 0/5 */
  162. FSIAISLD_PORT5_MARK,
  163. FSIASPDIF_PORT9_MARK, /* FSIASPDIF Port 9/18 */
  164. FSIASPDIF_PORT18_MARK,
  165. FSIAOSLD1_MARK, FSIAOSLD2_MARK, FSIAOLR_MARK,
  166. FSIAOBT_MARK, FSIAOSLD_MARK, FSIAOMC_MARK,
  167. FSIACK_MARK, FSIAILR_MARK, FSIAIBT_MARK,
  168. /* FSI-B */
  169. FSIBCK_MARK,
  170. /* FMSI */
  171. FMSISLD_PORT1_MARK, /* FMSISLD Port 1/6 */
  172. FMSISLD_PORT6_MARK,
  173. FMSIILR_MARK, FMSIIBT_MARK, FMSIOLR_MARK, FMSIOBT_MARK,
  174. FMSICK_MARK, FMSOILR_MARK, FMSOIBT_MARK, FMSOOLR_MARK,
  175. FMSOOBT_MARK, FMSOSLD_MARK, FMSOCK_MARK,
  176. /* SCIFA0 */
  177. SCIFA0_SCK_MARK, SCIFA0_CTS_MARK, SCIFA0_RTS_MARK,
  178. SCIFA0_RXD_MARK, SCIFA0_TXD_MARK,
  179. /* SCIFA1 */
  180. SCIFA1_CTS_MARK, SCIFA1_SCK_MARK, SCIFA1_RXD_MARK,
  181. SCIFA1_TXD_MARK, SCIFA1_RTS_MARK,
  182. /* SCIFA2 */
  183. SCIFA2_SCK_PORT22_MARK, /* SCIFA2_SCK Port 22/199 */
  184. SCIFA2_SCK_PORT199_MARK,
  185. SCIFA2_RXD_MARK, SCIFA2_TXD_MARK,
  186. SCIFA2_CTS_MARK, SCIFA2_RTS_MARK,
  187. /* SCIFA3 */
  188. SCIFA3_RTS_PORT105_MARK, /* MSEL5CR_8_0 */
  189. SCIFA3_SCK_PORT116_MARK,
  190. SCIFA3_CTS_PORT117_MARK,
  191. SCIFA3_RXD_PORT174_MARK,
  192. SCIFA3_TXD_PORT175_MARK,
  193. SCIFA3_RTS_PORT161_MARK, /* MSEL5CR_8_1 */
  194. SCIFA3_SCK_PORT158_MARK,
  195. SCIFA3_CTS_PORT162_MARK,
  196. SCIFA3_RXD_PORT159_MARK,
  197. SCIFA3_TXD_PORT160_MARK,
  198. /* SCIFA4 */
  199. SCIFA4_RXD_PORT12_MARK, /* MSEL5CR[12:11] = 00 */
  200. SCIFA4_TXD_PORT13_MARK,
  201. SCIFA4_RXD_PORT204_MARK, /* MSEL5CR[12:11] = 01 */
  202. SCIFA4_TXD_PORT203_MARK,
  203. SCIFA4_RXD_PORT94_MARK, /* MSEL5CR[12:11] = 10 */
  204. SCIFA4_TXD_PORT93_MARK,
  205. SCIFA4_SCK_PORT21_MARK, /* SCIFA4_SCK Port 21/205 */
  206. SCIFA4_SCK_PORT205_MARK,
  207. /* SCIFA5 */
  208. SCIFA5_TXD_PORT20_MARK, /* MSEL5CR[15:14] = 00 */
  209. SCIFA5_RXD_PORT10_MARK,
  210. SCIFA5_RXD_PORT207_MARK, /* MSEL5CR[15:14] = 01 */
  211. SCIFA5_TXD_PORT208_MARK,
  212. SCIFA5_TXD_PORT91_MARK, /* MSEL5CR[15:14] = 10 */
  213. SCIFA5_RXD_PORT92_MARK,
  214. SCIFA5_SCK_PORT23_MARK, /* SCIFA5_SCK Port 23/206 */
  215. SCIFA5_SCK_PORT206_MARK,
  216. /* SCIFA6 */
  217. SCIFA6_SCK_MARK, SCIFA6_RXD_MARK, SCIFA6_TXD_MARK,
  218. /* SCIFA7 */
  219. SCIFA7_TXD_MARK, SCIFA7_RXD_MARK,
  220. /* SCIFB */
  221. SCIFB_SCK_PORT190_MARK, /* MSEL5CR_17_0 */
  222. SCIFB_RXD_PORT191_MARK,
  223. SCIFB_TXD_PORT192_MARK,
  224. SCIFB_RTS_PORT186_MARK,
  225. SCIFB_CTS_PORT187_MARK,
  226. SCIFB_SCK_PORT2_MARK, /* MSEL5CR_17_1 */
  227. SCIFB_RXD_PORT3_MARK,
  228. SCIFB_TXD_PORT4_MARK,
  229. SCIFB_RTS_PORT172_MARK,
  230. SCIFB_CTS_PORT173_MARK,
  231. /* LCD0 */
  232. LCD0_D0_MARK, LCD0_D1_MARK, LCD0_D2_MARK, LCD0_D3_MARK,
  233. LCD0_D4_MARK, LCD0_D5_MARK, LCD0_D6_MARK, LCD0_D7_MARK,
  234. LCD0_D8_MARK, LCD0_D9_MARK, LCD0_D10_MARK, LCD0_D11_MARK,
  235. LCD0_D12_MARK, LCD0_D13_MARK, LCD0_D14_MARK, LCD0_D15_MARK,
  236. LCD0_D16_MARK, LCD0_D17_MARK,
  237. LCD0_DON_MARK, LCD0_VCPWC_MARK, LCD0_VEPWC_MARK,
  238. LCD0_DCK_MARK, LCD0_VSYN_MARK, /* for RGB */
  239. LCD0_HSYN_MARK, LCD0_DISP_MARK, /* for RGB */
  240. LCD0_WR_MARK, LCD0_RD_MARK, /* for SYS */
  241. LCD0_CS_MARK, LCD0_RS_MARK, /* for SYS */
  242. LCD0_D21_PORT158_MARK, LCD0_D23_PORT159_MARK, /* MSEL5CR_6_1 */
  243. LCD0_D22_PORT160_MARK, LCD0_D20_PORT161_MARK,
  244. LCD0_D19_PORT162_MARK, LCD0_D18_PORT163_MARK,
  245. LCD0_LCLK_PORT165_MARK,
  246. LCD0_D18_PORT40_MARK, LCD0_D22_PORT0_MARK, /* MSEL5CR_6_0 */
  247. LCD0_D23_PORT1_MARK, LCD0_D21_PORT2_MARK,
  248. LCD0_D20_PORT3_MARK, LCD0_D19_PORT4_MARK,
  249. LCD0_LCLK_PORT102_MARK,
  250. /* LCD1 */
  251. LCD1_D0_MARK, LCD1_D1_MARK, LCD1_D2_MARK, LCD1_D3_MARK,
  252. LCD1_D4_MARK, LCD1_D5_MARK, LCD1_D6_MARK, LCD1_D7_MARK,
  253. LCD1_D8_MARK, LCD1_D9_MARK, LCD1_D10_MARK, LCD1_D11_MARK,
  254. LCD1_D12_MARK, LCD1_D13_MARK, LCD1_D14_MARK, LCD1_D15_MARK,
  255. LCD1_D16_MARK, LCD1_D17_MARK, LCD1_D18_MARK, LCD1_D19_MARK,
  256. LCD1_D20_MARK, LCD1_D21_MARK, LCD1_D22_MARK, LCD1_D23_MARK,
  257. LCD1_DON_MARK, LCD1_VCPWC_MARK,
  258. LCD1_LCLK_MARK, LCD1_VEPWC_MARK,
  259. LCD1_DCK_MARK, LCD1_VSYN_MARK, /* for RGB */
  260. LCD1_HSYN_MARK, LCD1_DISP_MARK, /* for RGB */
  261. LCD1_RS_MARK, LCD1_CS_MARK, /* for SYS */
  262. LCD1_RD_MARK, LCD1_WR_MARK, /* for SYS */
  263. /* RSPI */
  264. RSPI_SSL0_A_MARK, RSPI_SSL1_A_MARK, RSPI_SSL2_A_MARK,
  265. RSPI_SSL3_A_MARK, RSPI_CK_A_MARK, RSPI_MOSI_A_MARK,
  266. RSPI_MISO_A_MARK,
  267. /* VIO CKO */
  268. VIO_CKO1_MARK, /* needs fixup */
  269. VIO_CKO2_MARK,
  270. VIO_CKO_1_MARK,
  271. VIO_CKO_MARK,
  272. /* VIO0 */
  273. VIO0_D0_MARK, VIO0_D1_MARK, VIO0_D2_MARK, VIO0_D3_MARK,
  274. VIO0_D4_MARK, VIO0_D5_MARK, VIO0_D6_MARK, VIO0_D7_MARK,
  275. VIO0_D8_MARK, VIO0_D9_MARK, VIO0_D10_MARK, VIO0_D11_MARK,
  276. VIO0_D12_MARK, VIO0_VD_MARK, VIO0_HD_MARK, VIO0_CLK_MARK,
  277. VIO0_FIELD_MARK,
  278. VIO0_D13_PORT26_MARK, /* MSEL5CR_27_0 */
  279. VIO0_D14_PORT25_MARK,
  280. VIO0_D15_PORT24_MARK,
  281. VIO0_D13_PORT22_MARK, /* MSEL5CR_27_1 */
  282. VIO0_D14_PORT95_MARK,
  283. VIO0_D15_PORT96_MARK,
  284. /* VIO1 */
  285. VIO1_D0_MARK, VIO1_D1_MARK, VIO1_D2_MARK, VIO1_D3_MARK,
  286. VIO1_D4_MARK, VIO1_D5_MARK, VIO1_D6_MARK, VIO1_D7_MARK,
  287. VIO1_VD_MARK, VIO1_HD_MARK, VIO1_CLK_MARK, VIO1_FIELD_MARK,
  288. /* TPU0 */
  289. TPU0TO0_MARK, TPU0TO1_MARK, TPU0TO3_MARK,
  290. TPU0TO2_PORT66_MARK, /* TPU0TO2 Port 66/202 */
  291. TPU0TO2_PORT202_MARK,
  292. /* SSP1 0 */
  293. STP0_IPD0_MARK, STP0_IPD1_MARK, STP0_IPD2_MARK, STP0_IPD3_MARK,
  294. STP0_IPD4_MARK, STP0_IPD5_MARK, STP0_IPD6_MARK, STP0_IPD7_MARK,
  295. STP0_IPEN_MARK, STP0_IPCLK_MARK, STP0_IPSYNC_MARK,
  296. /* SSP1 1 */
  297. STP1_IPD1_MARK, STP1_IPD2_MARK, STP1_IPD3_MARK, STP1_IPD4_MARK,
  298. STP1_IPD5_MARK, STP1_IPD6_MARK, STP1_IPD7_MARK, STP1_IPCLK_MARK,
  299. STP1_IPSYNC_MARK,
  300. STP1_IPD0_PORT186_MARK, /* MSEL5CR_23_0 */
  301. STP1_IPEN_PORT187_MARK,
  302. STP1_IPD0_PORT194_MARK, /* MSEL5CR_23_1 */
  303. STP1_IPEN_PORT193_MARK,
  304. /* SIM */
  305. SIM_RST_MARK, SIM_CLK_MARK,
  306. SIM_D_PORT22_MARK, /* SIM_D Port 22/199 */
  307. SIM_D_PORT199_MARK,
  308. /* SDHI0 */
  309. SDHI0_D0_MARK, SDHI0_D1_MARK, SDHI0_D2_MARK, SDHI0_D3_MARK,
  310. SDHI0_CD_MARK, SDHI0_WP_MARK, SDHI0_CMD_MARK, SDHI0_CLK_MARK,
  311. /* SDHI1 */
  312. SDHI1_D0_MARK, SDHI1_D1_MARK, SDHI1_D2_MARK, SDHI1_D3_MARK,
  313. SDHI1_CD_MARK, SDHI1_WP_MARK, SDHI1_CMD_MARK, SDHI1_CLK_MARK,
  314. /* SDHI2 */
  315. SDHI2_D0_MARK, SDHI2_D1_MARK, SDHI2_D2_MARK, SDHI2_D3_MARK,
  316. SDHI2_CLK_MARK, SDHI2_CMD_MARK,
  317. SDHI2_CD_PORT24_MARK, /* MSEL5CR_19_0 */
  318. SDHI2_WP_PORT25_MARK,
  319. SDHI2_WP_PORT177_MARK, /* MSEL5CR_19_1 */
  320. SDHI2_CD_PORT202_MARK,
  321. /* MSIOF2 */
  322. MSIOF2_TXD_MARK, MSIOF2_RXD_MARK, MSIOF2_TSCK_MARK,
  323. MSIOF2_SS2_MARK, MSIOF2_TSYNC_MARK, MSIOF2_SS1_MARK,
  324. MSIOF2_MCK1_MARK, MSIOF2_MCK0_MARK, MSIOF2_RSYNC_MARK,
  325. MSIOF2_RSCK_MARK,
  326. /* KEYSC */
  327. KEYIN4_MARK, KEYIN5_MARK, KEYIN6_MARK, KEYIN7_MARK,
  328. KEYOUT0_MARK, KEYOUT1_MARK, KEYOUT2_MARK, KEYOUT3_MARK,
  329. KEYOUT4_MARK, KEYOUT5_MARK, KEYOUT6_MARK, KEYOUT7_MARK,
  330. KEYIN0_PORT43_MARK, /* MSEL4CR_18_0 */
  331. KEYIN1_PORT44_MARK,
  332. KEYIN2_PORT45_MARK,
  333. KEYIN3_PORT46_MARK,
  334. KEYIN0_PORT58_MARK, /* MSEL4CR_18_1 */
  335. KEYIN1_PORT57_MARK,
  336. KEYIN2_PORT56_MARK,
  337. KEYIN3_PORT55_MARK,
  338. /* VOU */
  339. DV_D0_MARK, DV_D1_MARK, DV_D2_MARK, DV_D3_MARK,
  340. DV_D4_MARK, DV_D5_MARK, DV_D6_MARK, DV_D7_MARK,
  341. DV_D8_MARK, DV_D9_MARK, DV_D10_MARK, DV_D11_MARK,
  342. DV_D12_MARK, DV_D13_MARK, DV_D14_MARK, DV_D15_MARK,
  343. DV_CLK_MARK, DV_VSYNC_MARK, DV_HSYNC_MARK,
  344. /* MEMC */
  345. MEMC_AD0_MARK, MEMC_AD1_MARK, MEMC_AD2_MARK, MEMC_AD3_MARK,
  346. MEMC_AD4_MARK, MEMC_AD5_MARK, MEMC_AD6_MARK, MEMC_AD7_MARK,
  347. MEMC_AD8_MARK, MEMC_AD9_MARK, MEMC_AD10_MARK, MEMC_AD11_MARK,
  348. MEMC_AD12_MARK, MEMC_AD13_MARK, MEMC_AD14_MARK, MEMC_AD15_MARK,
  349. MEMC_CS0_MARK, MEMC_INT_MARK, MEMC_NWE_MARK, MEMC_NOE_MARK,
  350. MEMC_CS1_MARK, /* MSEL4CR_6_0 */
  351. MEMC_ADV_MARK,
  352. MEMC_WAIT_MARK,
  353. MEMC_BUSCLK_MARK,
  354. MEMC_A1_MARK, /* MSEL4CR_6_1 */
  355. MEMC_DREQ0_MARK,
  356. MEMC_DREQ1_MARK,
  357. MEMC_A0_MARK,
  358. /* MMC */
  359. MMC0_D0_PORT68_MARK, MMC0_D1_PORT69_MARK, MMC0_D2_PORT70_MARK,
  360. MMC0_D3_PORT71_MARK, MMC0_D4_PORT72_MARK, MMC0_D5_PORT73_MARK,
  361. MMC0_D6_PORT74_MARK, MMC0_D7_PORT75_MARK, MMC0_CLK_PORT66_MARK,
  362. MMC0_CMD_PORT67_MARK, /* MSEL4CR_15_0 */
  363. MMC1_D0_PORT149_MARK, MMC1_D1_PORT148_MARK, MMC1_D2_PORT147_MARK,
  364. MMC1_D3_PORT146_MARK, MMC1_D4_PORT145_MARK, MMC1_D5_PORT144_MARK,
  365. MMC1_D6_PORT143_MARK, MMC1_D7_PORT142_MARK, MMC1_CLK_PORT103_MARK,
  366. MMC1_CMD_PORT104_MARK, /* MSEL4CR_15_1 */
  367. /* MSIOF0 */
  368. MSIOF0_SS1_MARK, MSIOF0_SS2_MARK, MSIOF0_RXD_MARK,
  369. MSIOF0_TXD_MARK, MSIOF0_MCK0_MARK, MSIOF0_MCK1_MARK,
  370. MSIOF0_RSYNC_MARK, MSIOF0_RSCK_MARK, MSIOF0_TSCK_MARK,
  371. MSIOF0_TSYNC_MARK,
  372. /* MSIOF1 */
  373. MSIOF1_RSCK_MARK, MSIOF1_RSYNC_MARK,
  374. MSIOF1_MCK0_MARK, MSIOF1_MCK1_MARK,
  375. MSIOF1_SS2_PORT116_MARK, MSIOF1_SS1_PORT117_MARK,
  376. MSIOF1_RXD_PORT118_MARK, MSIOF1_TXD_PORT119_MARK,
  377. MSIOF1_TSYNC_PORT120_MARK,
  378. MSIOF1_TSCK_PORT121_MARK, /* MSEL4CR_10_0 */
  379. MSIOF1_SS1_PORT67_MARK, MSIOF1_TSCK_PORT72_MARK,
  380. MSIOF1_TSYNC_PORT73_MARK, MSIOF1_TXD_PORT74_MARK,
  381. MSIOF1_RXD_PORT75_MARK,
  382. MSIOF1_SS2_PORT202_MARK, /* MSEL4CR_10_1 */
  383. /* GPIO */
  384. GPO0_MARK, GPI0_MARK, GPO1_MARK, GPI1_MARK,
  385. /* USB0 */
  386. USB0_OCI_MARK, USB0_PPON_MARK, VBUS_MARK,
  387. /* USB1 */
  388. USB1_OCI_MARK, USB1_PPON_MARK,
  389. /* BBIF1 */
  390. BBIF1_RXD_MARK, BBIF1_TXD_MARK, BBIF1_TSYNC_MARK,
  391. BBIF1_TSCK_MARK, BBIF1_RSCK_MARK, BBIF1_RSYNC_MARK,
  392. BBIF1_FLOW_MARK, BBIF1_RX_FLOW_N_MARK,
  393. /* BBIF2 */
  394. BBIF2_TXD2_PORT5_MARK, /* MSEL5CR_0_0 */
  395. BBIF2_RXD2_PORT60_MARK,
  396. BBIF2_TSYNC2_PORT6_MARK,
  397. BBIF2_TSCK2_PORT59_MARK,
  398. BBIF2_RXD2_PORT90_MARK, /* MSEL5CR_0_1 */
  399. BBIF2_TXD2_PORT183_MARK,
  400. BBIF2_TSCK2_PORT89_MARK,
  401. BBIF2_TSYNC2_PORT184_MARK,
  402. /* BSC / FLCTL / PCMCIA */
  403. CS0_MARK, CS2_MARK, CS4_MARK,
  404. CS5B_MARK, CS6A_MARK,
  405. CS5A_PORT105_MARK, /* CS5A PORT 19/105 */
  406. CS5A_PORT19_MARK,
  407. IOIS16_MARK, /* ? */
  408. A0_MARK, A1_MARK, A2_MARK, A3_MARK,
  409. A4_FOE_MARK, /* share with FLCTL */
  410. A5_FCDE_MARK, /* share with FLCTL */
  411. A6_MARK, A7_MARK, A8_MARK, A9_MARK,
  412. A10_MARK, A11_MARK, A12_MARK, A13_MARK,
  413. A14_MARK, A15_MARK, A16_MARK, A17_MARK,
  414. A18_MARK, A19_MARK, A20_MARK, A21_MARK,
  415. A22_MARK, A23_MARK, A24_MARK, A25_MARK,
  416. A26_MARK,
  417. D0_NAF0_MARK, D1_NAF1_MARK, D2_NAF2_MARK, /* share with FLCTL */
  418. D3_NAF3_MARK, D4_NAF4_MARK, D5_NAF5_MARK, /* share with FLCTL */
  419. D6_NAF6_MARK, D7_NAF7_MARK, D8_NAF8_MARK, /* share with FLCTL */
  420. D9_NAF9_MARK, D10_NAF10_MARK, D11_NAF11_MARK, /* share with FLCTL */
  421. D12_NAF12_MARK, D13_NAF13_MARK, D14_NAF14_MARK, /* share with FLCTL */
  422. D15_NAF15_MARK, /* share with FLCTL */
  423. D16_MARK, D17_MARK, D18_MARK, D19_MARK,
  424. D20_MARK, D21_MARK, D22_MARK, D23_MARK,
  425. D24_MARK, D25_MARK, D26_MARK, D27_MARK,
  426. D28_MARK, D29_MARK, D30_MARK, D31_MARK,
  427. WE0_FWE_MARK, /* share with FLCTL */
  428. WE1_MARK,
  429. WE2_ICIORD_MARK, /* share with PCMCIA */
  430. WE3_ICIOWR_MARK, /* share with PCMCIA */
  431. CKO_MARK, BS_MARK, RDWR_MARK,
  432. RD_FSC_MARK, /* share with FLCTL */
  433. WAIT_PORT177_MARK, /* WAIT Port 90/177 */
  434. WAIT_PORT90_MARK,
  435. FCE0_MARK, FCE1_MARK, FRB_MARK, /* FLCTL */
  436. /* IRDA */
  437. IRDA_FIRSEL_MARK, IRDA_IN_MARK, IRDA_OUT_MARK,
  438. /* ATAPI */
  439. IDE_D0_MARK, IDE_D1_MARK, IDE_D2_MARK, IDE_D3_MARK,
  440. IDE_D4_MARK, IDE_D5_MARK, IDE_D6_MARK, IDE_D7_MARK,
  441. IDE_D8_MARK, IDE_D9_MARK, IDE_D10_MARK, IDE_D11_MARK,
  442. IDE_D12_MARK, IDE_D13_MARK, IDE_D14_MARK, IDE_D15_MARK,
  443. IDE_A0_MARK, IDE_A1_MARK, IDE_A2_MARK, IDE_CS0_MARK,
  444. IDE_CS1_MARK, IDE_IOWR_MARK, IDE_IORD_MARK, IDE_IORDY_MARK,
  445. IDE_INT_MARK, IDE_RST_MARK, IDE_DIRECTION_MARK,
  446. IDE_EXBUF_ENB_MARK, IDE_IODACK_MARK, IDE_IODREQ_MARK,
  447. /* RMII */
  448. RMII_CRS_DV_MARK, RMII_RX_ER_MARK, RMII_RXD0_MARK,
  449. RMII_RXD1_MARK, RMII_TX_EN_MARK, RMII_TXD0_MARK,
  450. RMII_MDC_MARK, RMII_TXD1_MARK, RMII_MDIO_MARK,
  451. RMII_REF50CK_MARK, /* for RMII */
  452. RMII_REF125CK_MARK, /* for GMII */
  453. /* GEther */
  454. ET_TX_CLK_MARK, ET_TX_EN_MARK, ET_ETXD0_MARK, ET_ETXD1_MARK,
  455. ET_ETXD2_MARK, ET_ETXD3_MARK,
  456. ET_ETXD4_MARK, ET_ETXD5_MARK, /* for GEther */
  457. ET_ETXD6_MARK, ET_ETXD7_MARK, /* for GEther */
  458. ET_COL_MARK, ET_TX_ER_MARK, ET_RX_CLK_MARK, ET_RX_DV_MARK,
  459. ET_ERXD0_MARK, ET_ERXD1_MARK, ET_ERXD2_MARK, ET_ERXD3_MARK,
  460. ET_ERXD4_MARK, ET_ERXD5_MARK, /* for GEther */
  461. ET_ERXD6_MARK, ET_ERXD7_MARK, /* for GEther */
  462. ET_RX_ER_MARK, ET_CRS_MARK, ET_MDC_MARK, ET_MDIO_MARK,
  463. ET_LINK_MARK, ET_PHY_INT_MARK, ET_WOL_MARK, ET_GTX_CLK_MARK,
  464. /* DMA0 */
  465. DREQ0_MARK, DACK0_MARK,
  466. /* DMA1 */
  467. DREQ1_MARK, DACK1_MARK,
  468. /* SYSC */
  469. RESETOUTS_MARK, RESETP_PULLUP_MARK, RESETP_PLAIN_MARK,
  470. /* IRREM */
  471. IROUT_MARK,
  472. /* SDENC */
  473. SDENC_CPG_MARK, SDENC_DV_CLKI_MARK,
  474. /* HDMI */
  475. HDMI_HPD_MARK, HDMI_CEC_MARK,
  476. /* DEBUG */
  477. EDEBGREQ_PULLUP_MARK, /* for JTAG */
  478. EDEBGREQ_PULLDOWN_MARK,
  479. TRACEAUD_FROM_VIO_MARK, /* for TRACE/AUD */
  480. TRACEAUD_FROM_LCDC0_MARK,
  481. TRACEAUD_FROM_MEMC_MARK,
  482. PINMUX_MARK_END,
  483. };
  484. static const u16 pinmux_data[] = {
  485. PINMUX_DATA_ALL(),
  486. /* Port0 */
  487. PINMUX_DATA(DBGMDT2_MARK, PORT0_FN1),
  488. PINMUX_DATA(FSIAISLD_PORT0_MARK, PORT0_FN2, MSEL5CR_3_0),
  489. PINMUX_DATA(FSIAOSLD1_MARK, PORT0_FN3),
  490. PINMUX_DATA(LCD0_D22_PORT0_MARK, PORT0_FN4, MSEL5CR_6_0),
  491. PINMUX_DATA(SCIFA7_RXD_MARK, PORT0_FN6),
  492. PINMUX_DATA(LCD1_D4_MARK, PORT0_FN7),
  493. PINMUX_DATA(IRQ5_PORT0_MARK, PORT0_FN0, MSEL1CR_5_0),
  494. /* Port1 */
  495. PINMUX_DATA(DBGMDT1_MARK, PORT1_FN1),
  496. PINMUX_DATA(FMSISLD_PORT1_MARK, PORT1_FN2, MSEL5CR_5_0),
  497. PINMUX_DATA(FSIAOSLD2_MARK, PORT1_FN3),
  498. PINMUX_DATA(LCD0_D23_PORT1_MARK, PORT1_FN4, MSEL5CR_6_0),
  499. PINMUX_DATA(SCIFA7_TXD_MARK, PORT1_FN6),
  500. PINMUX_DATA(LCD1_D3_MARK, PORT1_FN7),
  501. PINMUX_DATA(IRQ5_PORT1_MARK, PORT1_FN0, MSEL1CR_5_1),
  502. /* Port2 */
  503. PINMUX_DATA(DBGMDT0_MARK, PORT2_FN1),
  504. PINMUX_DATA(SCIFB_SCK_PORT2_MARK, PORT2_FN2, MSEL5CR_17_1),
  505. PINMUX_DATA(LCD0_D21_PORT2_MARK, PORT2_FN4, MSEL5CR_6_0),
  506. PINMUX_DATA(LCD1_D2_MARK, PORT2_FN7),
  507. PINMUX_DATA(IRQ0_PORT2_MARK, PORT2_FN0, MSEL1CR_0_1),
  508. /* Port3 */
  509. PINMUX_DATA(DBGMD21_MARK, PORT3_FN1),
  510. PINMUX_DATA(SCIFB_RXD_PORT3_MARK, PORT3_FN2, MSEL5CR_17_1),
  511. PINMUX_DATA(LCD0_D20_PORT3_MARK, PORT3_FN4, MSEL5CR_6_0),
  512. PINMUX_DATA(LCD1_D1_MARK, PORT3_FN7),
  513. /* Port4 */
  514. PINMUX_DATA(DBGMD20_MARK, PORT4_FN1),
  515. PINMUX_DATA(SCIFB_TXD_PORT4_MARK, PORT4_FN2, MSEL5CR_17_1),
  516. PINMUX_DATA(LCD0_D19_PORT4_MARK, PORT4_FN4, MSEL5CR_6_0),
  517. PINMUX_DATA(LCD1_D0_MARK, PORT4_FN7),
  518. /* Port5 */
  519. PINMUX_DATA(DBGMD11_MARK, PORT5_FN1),
  520. PINMUX_DATA(BBIF2_TXD2_PORT5_MARK, PORT5_FN2, MSEL5CR_0_0),
  521. PINMUX_DATA(FSIAISLD_PORT5_MARK, PORT5_FN4, MSEL5CR_3_1),
  522. PINMUX_DATA(RSPI_SSL0_A_MARK, PORT5_FN6),
  523. PINMUX_DATA(LCD1_VCPWC_MARK, PORT5_FN7),
  524. /* Port6 */
  525. PINMUX_DATA(DBGMD10_MARK, PORT6_FN1),
  526. PINMUX_DATA(BBIF2_TSYNC2_PORT6_MARK, PORT6_FN2, MSEL5CR_0_0),
  527. PINMUX_DATA(FMSISLD_PORT6_MARK, PORT6_FN4, MSEL5CR_5_1),
  528. PINMUX_DATA(RSPI_SSL1_A_MARK, PORT6_FN6),
  529. PINMUX_DATA(LCD1_VEPWC_MARK, PORT6_FN7),
  530. /* Port7 */
  531. PINMUX_DATA(FSIAOLR_MARK, PORT7_FN1),
  532. /* Port8 */
  533. PINMUX_DATA(FSIAOBT_MARK, PORT8_FN1),
  534. /* Port9 */
  535. PINMUX_DATA(FSIAOSLD_MARK, PORT9_FN1),
  536. PINMUX_DATA(FSIASPDIF_PORT9_MARK, PORT9_FN2, MSEL5CR_4_0),
  537. /* Port10 */
  538. PINMUX_DATA(FSIAOMC_MARK, PORT10_FN1),
  539. PINMUX_DATA(SCIFA5_RXD_PORT10_MARK, PORT10_FN3, MSEL5CR_14_0, MSEL5CR_15_0),
  540. PINMUX_DATA(IRQ3_PORT10_MARK, PORT10_FN0, MSEL1CR_3_0),
  541. /* Port11 */
  542. PINMUX_DATA(FSIACK_MARK, PORT11_FN1),
  543. PINMUX_DATA(FSIBCK_MARK, PORT11_FN2),
  544. PINMUX_DATA(IRQ2_PORT11_MARK, PORT11_FN0, MSEL1CR_2_0),
  545. /* Port12 */
  546. PINMUX_DATA(FSIAILR_MARK, PORT12_FN1),
  547. PINMUX_DATA(SCIFA4_RXD_PORT12_MARK, PORT12_FN2, MSEL5CR_12_0, MSEL5CR_11_0),
  548. PINMUX_DATA(LCD1_RS_MARK, PORT12_FN6),
  549. PINMUX_DATA(LCD1_DISP_MARK, PORT12_FN7),
  550. PINMUX_DATA(IRQ2_PORT12_MARK, PORT12_FN0, MSEL1CR_2_1),
  551. /* Port13 */
  552. PINMUX_DATA(FSIAIBT_MARK, PORT13_FN1),
  553. PINMUX_DATA(SCIFA4_TXD_PORT13_MARK, PORT13_FN2, MSEL5CR_12_0, MSEL5CR_11_0),
  554. PINMUX_DATA(LCD1_RD_MARK, PORT13_FN7),
  555. PINMUX_DATA(IRQ0_PORT13_MARK, PORT13_FN0, MSEL1CR_0_0),
  556. /* Port14 */
  557. PINMUX_DATA(FMSOILR_MARK, PORT14_FN1),
  558. PINMUX_DATA(FMSIILR_MARK, PORT14_FN2),
  559. PINMUX_DATA(VIO_CKO1_MARK, PORT14_FN3),
  560. PINMUX_DATA(LCD1_D23_MARK, PORT14_FN7),
  561. PINMUX_DATA(IRQ3_PORT14_MARK, PORT14_FN0, MSEL1CR_3_1),
  562. /* Port15 */
  563. PINMUX_DATA(FMSOIBT_MARK, PORT15_FN1),
  564. PINMUX_DATA(FMSIIBT_MARK, PORT15_FN2),
  565. PINMUX_DATA(VIO_CKO2_MARK, PORT15_FN3),
  566. PINMUX_DATA(LCD1_D22_MARK, PORT15_FN7),
  567. PINMUX_DATA(IRQ4_PORT15_MARK, PORT15_FN0, MSEL1CR_4_0),
  568. /* Port16 */
  569. PINMUX_DATA(FMSOOLR_MARK, PORT16_FN1),
  570. PINMUX_DATA(FMSIOLR_MARK, PORT16_FN2),
  571. /* Port17 */
  572. PINMUX_DATA(FMSOOBT_MARK, PORT17_FN1),
  573. PINMUX_DATA(FMSIOBT_MARK, PORT17_FN2),
  574. /* Port18 */
  575. PINMUX_DATA(FMSOSLD_MARK, PORT18_FN1),
  576. PINMUX_DATA(FSIASPDIF_PORT18_MARK, PORT18_FN2, MSEL5CR_4_1),
  577. /* Port19 */
  578. PINMUX_DATA(FMSICK_MARK, PORT19_FN1),
  579. PINMUX_DATA(CS5A_PORT19_MARK, PORT19_FN7, MSEL5CR_2_1),
  580. PINMUX_DATA(IRQ10_MARK, PORT19_FN0),
  581. /* Port20 */
  582. PINMUX_DATA(FMSOCK_MARK, PORT20_FN1),
  583. PINMUX_DATA(SCIFA5_TXD_PORT20_MARK, PORT20_FN3, MSEL5CR_15_0, MSEL5CR_14_0),
  584. PINMUX_DATA(IRQ1_MARK, PORT20_FN0),
  585. /* Port21 */
  586. PINMUX_DATA(SCIFA1_CTS_MARK, PORT21_FN1),
  587. PINMUX_DATA(SCIFA4_SCK_PORT21_MARK, PORT21_FN2, MSEL5CR_10_0),
  588. PINMUX_DATA(TPU0TO1_MARK, PORT21_FN4),
  589. PINMUX_DATA(VIO1_FIELD_MARK, PORT21_FN5),
  590. PINMUX_DATA(STP0_IPD5_MARK, PORT21_FN6),
  591. PINMUX_DATA(LCD1_D10_MARK, PORT21_FN7),
  592. /* Port22 */
  593. PINMUX_DATA(SCIFA2_SCK_PORT22_MARK, PORT22_FN1, MSEL5CR_7_0),
  594. PINMUX_DATA(SIM_D_PORT22_MARK, PORT22_FN4, MSEL5CR_21_0),
  595. PINMUX_DATA(VIO0_D13_PORT22_MARK, PORT22_FN7, MSEL5CR_27_1),
  596. /* Port23 */
  597. PINMUX_DATA(SCIFA1_RTS_MARK, PORT23_FN1),
  598. PINMUX_DATA(SCIFA5_SCK_PORT23_MARK, PORT23_FN3, MSEL5CR_13_0),
  599. PINMUX_DATA(TPU0TO0_MARK, PORT23_FN4),
  600. PINMUX_DATA(VIO_CKO_1_MARK, PORT23_FN5),
  601. PINMUX_DATA(STP0_IPD2_MARK, PORT23_FN6),
  602. PINMUX_DATA(LCD1_D7_MARK, PORT23_FN7),
  603. /* Port24 */
  604. PINMUX_DATA(VIO0_D15_PORT24_MARK, PORT24_FN1, MSEL5CR_27_0),
  605. PINMUX_DATA(VIO1_D7_MARK, PORT24_FN5),
  606. PINMUX_DATA(SCIFA6_SCK_MARK, PORT24_FN6),
  607. PINMUX_DATA(SDHI2_CD_PORT24_MARK, PORT24_FN7, MSEL5CR_19_0),
  608. /* Port25 */
  609. PINMUX_DATA(VIO0_D14_PORT25_MARK, PORT25_FN1, MSEL5CR_27_0),
  610. PINMUX_DATA(VIO1_D6_MARK, PORT25_FN5),
  611. PINMUX_DATA(SCIFA6_RXD_MARK, PORT25_FN6),
  612. PINMUX_DATA(SDHI2_WP_PORT25_MARK, PORT25_FN7, MSEL5CR_19_0),
  613. /* Port26 */
  614. PINMUX_DATA(VIO0_D13_PORT26_MARK, PORT26_FN1, MSEL5CR_27_0),
  615. PINMUX_DATA(VIO1_D5_MARK, PORT26_FN5),
  616. PINMUX_DATA(SCIFA6_TXD_MARK, PORT26_FN6),
  617. /* Port27 - Port39 Function */
  618. PINMUX_DATA(VIO0_D7_MARK, PORT27_FN1),
  619. PINMUX_DATA(VIO0_D6_MARK, PORT28_FN1),
  620. PINMUX_DATA(VIO0_D5_MARK, PORT29_FN1),
  621. PINMUX_DATA(VIO0_D4_MARK, PORT30_FN1),
  622. PINMUX_DATA(VIO0_D3_MARK, PORT31_FN1),
  623. PINMUX_DATA(VIO0_D2_MARK, PORT32_FN1),
  624. PINMUX_DATA(VIO0_D1_MARK, PORT33_FN1),
  625. PINMUX_DATA(VIO0_D0_MARK, PORT34_FN1),
  626. PINMUX_DATA(VIO0_CLK_MARK, PORT35_FN1),
  627. PINMUX_DATA(VIO_CKO_MARK, PORT36_FN1),
  628. PINMUX_DATA(VIO0_HD_MARK, PORT37_FN1),
  629. PINMUX_DATA(VIO0_FIELD_MARK, PORT38_FN1),
  630. PINMUX_DATA(VIO0_VD_MARK, PORT39_FN1),
  631. /* Port38 IRQ */
  632. PINMUX_DATA(IRQ25_MARK, PORT38_FN0),
  633. /* Port40 */
  634. PINMUX_DATA(LCD0_D18_PORT40_MARK, PORT40_FN4, MSEL5CR_6_0),
  635. PINMUX_DATA(RSPI_CK_A_MARK, PORT40_FN6),
  636. PINMUX_DATA(LCD1_LCLK_MARK, PORT40_FN7),
  637. /* Port41 */
  638. PINMUX_DATA(LCD0_D17_MARK, PORT41_FN1),
  639. PINMUX_DATA(MSIOF2_SS1_MARK, PORT41_FN2),
  640. PINMUX_DATA(IRQ31_PORT41_MARK, PORT41_FN0, MSEL1CR_31_1),
  641. /* Port42 */
  642. PINMUX_DATA(LCD0_D16_MARK, PORT42_FN1),
  643. PINMUX_DATA(MSIOF2_MCK1_MARK, PORT42_FN2),
  644. PINMUX_DATA(IRQ12_PORT42_MARK, PORT42_FN0, MSEL1CR_12_1),
  645. /* Port43 */
  646. PINMUX_DATA(LCD0_D15_MARK, PORT43_FN1),
  647. PINMUX_DATA(MSIOF2_MCK0_MARK, PORT43_FN2),
  648. PINMUX_DATA(KEYIN0_PORT43_MARK, PORT43_FN3, MSEL4CR_18_0),
  649. PINMUX_DATA(DV_D15_MARK, PORT43_FN6),
  650. /* Port44 */
  651. PINMUX_DATA(LCD0_D14_MARK, PORT44_FN1),
  652. PINMUX_DATA(MSIOF2_RSYNC_MARK, PORT44_FN2),
  653. PINMUX_DATA(KEYIN1_PORT44_MARK, PORT44_FN3, MSEL4CR_18_0),
  654. PINMUX_DATA(DV_D14_MARK, PORT44_FN6),
  655. /* Port45 */
  656. PINMUX_DATA(LCD0_D13_MARK, PORT45_FN1),
  657. PINMUX_DATA(MSIOF2_RSCK_MARK, PORT45_FN2),
  658. PINMUX_DATA(KEYIN2_PORT45_MARK, PORT45_FN3, MSEL4CR_18_0),
  659. PINMUX_DATA(DV_D13_MARK, PORT45_FN6),
  660. /* Port46 */
  661. PINMUX_DATA(LCD0_D12_MARK, PORT46_FN1),
  662. PINMUX_DATA(KEYIN3_PORT46_MARK, PORT46_FN3, MSEL4CR_18_0),
  663. PINMUX_DATA(DV_D12_MARK, PORT46_FN6),
  664. /* Port47 */
  665. PINMUX_DATA(LCD0_D11_MARK, PORT47_FN1),
  666. PINMUX_DATA(KEYIN4_MARK, PORT47_FN3),
  667. PINMUX_DATA(DV_D11_MARK, PORT47_FN6),
  668. /* Port48 */
  669. PINMUX_DATA(LCD0_D10_MARK, PORT48_FN1),
  670. PINMUX_DATA(KEYIN5_MARK, PORT48_FN3),
  671. PINMUX_DATA(DV_D10_MARK, PORT48_FN6),
  672. /* Port49 */
  673. PINMUX_DATA(LCD0_D9_MARK, PORT49_FN1),
  674. PINMUX_DATA(KEYIN6_MARK, PORT49_FN3),
  675. PINMUX_DATA(DV_D9_MARK, PORT49_FN6),
  676. PINMUX_DATA(IRQ30_PORT49_MARK, PORT49_FN0, MSEL1CR_30_1),
  677. /* Port50 */
  678. PINMUX_DATA(LCD0_D8_MARK, PORT50_FN1),
  679. PINMUX_DATA(KEYIN7_MARK, PORT50_FN3),
  680. PINMUX_DATA(DV_D8_MARK, PORT50_FN6),
  681. PINMUX_DATA(IRQ29_PORT50_MARK, PORT50_FN0, MSEL1CR_29_1),
  682. /* Port51 */
  683. PINMUX_DATA(LCD0_D7_MARK, PORT51_FN1),
  684. PINMUX_DATA(KEYOUT0_MARK, PORT51_FN3),
  685. PINMUX_DATA(DV_D7_MARK, PORT51_FN6),
  686. /* Port52 */
  687. PINMUX_DATA(LCD0_D6_MARK, PORT52_FN1),
  688. PINMUX_DATA(KEYOUT1_MARK, PORT52_FN3),
  689. PINMUX_DATA(DV_D6_MARK, PORT52_FN6),
  690. /* Port53 */
  691. PINMUX_DATA(LCD0_D5_MARK, PORT53_FN1),
  692. PINMUX_DATA(KEYOUT2_MARK, PORT53_FN3),
  693. PINMUX_DATA(DV_D5_MARK, PORT53_FN6),
  694. /* Port54 */
  695. PINMUX_DATA(LCD0_D4_MARK, PORT54_FN1),
  696. PINMUX_DATA(KEYOUT3_MARK, PORT54_FN3),
  697. PINMUX_DATA(DV_D4_MARK, PORT54_FN6),
  698. /* Port55 */
  699. PINMUX_DATA(LCD0_D3_MARK, PORT55_FN1),
  700. PINMUX_DATA(KEYOUT4_MARK, PORT55_FN3),
  701. PINMUX_DATA(KEYIN3_PORT55_MARK, PORT55_FN4, MSEL4CR_18_1),
  702. PINMUX_DATA(DV_D3_MARK, PORT55_FN6),
  703. /* Port56 */
  704. PINMUX_DATA(LCD0_D2_MARK, PORT56_FN1),
  705. PINMUX_DATA(KEYOUT5_MARK, PORT56_FN3),
  706. PINMUX_DATA(KEYIN2_PORT56_MARK, PORT56_FN4, MSEL4CR_18_1),
  707. PINMUX_DATA(DV_D2_MARK, PORT56_FN6),
  708. PINMUX_DATA(IRQ28_PORT56_MARK, PORT56_FN0, MSEL1CR_28_1),
  709. /* Port57 */
  710. PINMUX_DATA(LCD0_D1_MARK, PORT57_FN1),
  711. PINMUX_DATA(KEYOUT6_MARK, PORT57_FN3),
  712. PINMUX_DATA(KEYIN1_PORT57_MARK, PORT57_FN4, MSEL4CR_18_1),
  713. PINMUX_DATA(DV_D1_MARK, PORT57_FN6),
  714. PINMUX_DATA(IRQ27_PORT57_MARK, PORT57_FN0, MSEL1CR_27_1),
  715. /* Port58 */
  716. PINMUX_DATA(LCD0_D0_MARK, PORT58_FN1, MSEL3CR_6_0),
  717. PINMUX_DATA(KEYOUT7_MARK, PORT58_FN3),
  718. PINMUX_DATA(KEYIN0_PORT58_MARK, PORT58_FN4, MSEL4CR_18_1),
  719. PINMUX_DATA(DV_D0_MARK, PORT58_FN6),
  720. PINMUX_DATA(IRQ26_PORT58_MARK, PORT58_FN0, MSEL1CR_26_1),
  721. /* Port59 */
  722. PINMUX_DATA(LCD0_VCPWC_MARK, PORT59_FN1),
  723. PINMUX_DATA(BBIF2_TSCK2_PORT59_MARK, PORT59_FN2, MSEL5CR_0_0),
  724. PINMUX_DATA(RSPI_MOSI_A_MARK, PORT59_FN6),
  725. /* Port60 */
  726. PINMUX_DATA(LCD0_VEPWC_MARK, PORT60_FN1),
  727. PINMUX_DATA(BBIF2_RXD2_PORT60_MARK, PORT60_FN2, MSEL5CR_0_0),
  728. PINMUX_DATA(RSPI_MISO_A_MARK, PORT60_FN6),
  729. /* Port61 */
  730. PINMUX_DATA(LCD0_DON_MARK, PORT61_FN1),
  731. PINMUX_DATA(MSIOF2_TXD_MARK, PORT61_FN2),
  732. /* Port62 */
  733. PINMUX_DATA(LCD0_DCK_MARK, PORT62_FN1),
  734. PINMUX_DATA(LCD0_WR_MARK, PORT62_FN4),
  735. PINMUX_DATA(DV_CLK_MARK, PORT62_FN6),
  736. PINMUX_DATA(IRQ15_PORT62_MARK, PORT62_FN0, MSEL1CR_15_1),
  737. /* Port63 */
  738. PINMUX_DATA(LCD0_VSYN_MARK, PORT63_FN1),
  739. PINMUX_DATA(DV_VSYNC_MARK, PORT63_FN6),
  740. PINMUX_DATA(IRQ14_PORT63_MARK, PORT63_FN0, MSEL1CR_14_1),
  741. /* Port64 */
  742. PINMUX_DATA(LCD0_HSYN_MARK, PORT64_FN1),
  743. PINMUX_DATA(LCD0_CS_MARK, PORT64_FN4),
  744. PINMUX_DATA(DV_HSYNC_MARK, PORT64_FN6),
  745. PINMUX_DATA(IRQ13_PORT64_MARK, PORT64_FN0, MSEL1CR_13_1),
  746. /* Port65 */
  747. PINMUX_DATA(LCD0_DISP_MARK, PORT65_FN1),
  748. PINMUX_DATA(MSIOF2_TSCK_MARK, PORT65_FN2),
  749. PINMUX_DATA(LCD0_RS_MARK, PORT65_FN4),
  750. /* Port66 */
  751. PINMUX_DATA(MEMC_INT_MARK, PORT66_FN1),
  752. PINMUX_DATA(TPU0TO2_PORT66_MARK, PORT66_FN3, MSEL5CR_25_0),
  753. PINMUX_DATA(MMC0_CLK_PORT66_MARK, PORT66_FN4, MSEL4CR_15_0),
  754. PINMUX_DATA(SDHI1_CLK_MARK, PORT66_FN6),
  755. /* Port67 - Port73 Function1 */
  756. PINMUX_DATA(MEMC_CS0_MARK, PORT67_FN1),
  757. PINMUX_DATA(MEMC_AD8_MARK, PORT68_FN1),
  758. PINMUX_DATA(MEMC_AD9_MARK, PORT69_FN1),
  759. PINMUX_DATA(MEMC_AD10_MARK, PORT70_FN1),
  760. PINMUX_DATA(MEMC_AD11_MARK, PORT71_FN1),
  761. PINMUX_DATA(MEMC_AD12_MARK, PORT72_FN1),
  762. PINMUX_DATA(MEMC_AD13_MARK, PORT73_FN1),
  763. /* Port67 - Port73 Function2 */
  764. PINMUX_DATA(MSIOF1_SS1_PORT67_MARK, PORT67_FN2, MSEL4CR_10_1),
  765. PINMUX_DATA(MSIOF1_RSCK_MARK, PORT68_FN2),
  766. PINMUX_DATA(MSIOF1_RSYNC_MARK, PORT69_FN2),
  767. PINMUX_DATA(MSIOF1_MCK0_MARK, PORT70_FN2),
  768. PINMUX_DATA(MSIOF1_MCK1_MARK, PORT71_FN2),
  769. PINMUX_DATA(MSIOF1_TSCK_PORT72_MARK, PORT72_FN2, MSEL4CR_10_1),
  770. PINMUX_DATA(MSIOF1_TSYNC_PORT73_MARK, PORT73_FN2, MSEL4CR_10_1),
  771. /* Port67 - Port73 Function4 */
  772. PINMUX_DATA(MMC0_CMD_PORT67_MARK, PORT67_FN4, MSEL4CR_15_0),
  773. PINMUX_DATA(MMC0_D0_PORT68_MARK, PORT68_FN4, MSEL4CR_15_0),
  774. PINMUX_DATA(MMC0_D1_PORT69_MARK, PORT69_FN4, MSEL4CR_15_0),
  775. PINMUX_DATA(MMC0_D2_PORT70_MARK, PORT70_FN4, MSEL4CR_15_0),
  776. PINMUX_DATA(MMC0_D3_PORT71_MARK, PORT71_FN4, MSEL4CR_15_0),
  777. PINMUX_DATA(MMC0_D4_PORT72_MARK, PORT72_FN4, MSEL4CR_15_0),
  778. PINMUX_DATA(MMC0_D5_PORT73_MARK, PORT73_FN4, MSEL4CR_15_0),
  779. /* Port67 - Port73 Function6 */
  780. PINMUX_DATA(SDHI1_CMD_MARK, PORT67_FN6),
  781. PINMUX_DATA(SDHI1_D0_MARK, PORT68_FN6),
  782. PINMUX_DATA(SDHI1_D1_MARK, PORT69_FN6),
  783. PINMUX_DATA(SDHI1_D2_MARK, PORT70_FN6),
  784. PINMUX_DATA(SDHI1_D3_MARK, PORT71_FN6),
  785. PINMUX_DATA(SDHI1_CD_MARK, PORT72_FN6),
  786. PINMUX_DATA(SDHI1_WP_MARK, PORT73_FN6),
  787. /* Port67 - Port71 IRQ */
  788. PINMUX_DATA(IRQ20_MARK, PORT67_FN0),
  789. PINMUX_DATA(IRQ16_PORT68_MARK, PORT68_FN0, MSEL1CR_16_0),
  790. PINMUX_DATA(IRQ17_MARK, PORT69_FN0),
  791. PINMUX_DATA(IRQ18_MARK, PORT70_FN0),
  792. PINMUX_DATA(IRQ19_MARK, PORT71_FN0),
  793. /* Port74 */
  794. PINMUX_DATA(MEMC_AD14_MARK, PORT74_FN1),
  795. PINMUX_DATA(MSIOF1_TXD_PORT74_MARK, PORT74_FN2, MSEL4CR_10_1),
  796. PINMUX_DATA(MMC0_D6_PORT74_MARK, PORT74_FN4, MSEL4CR_15_0),
  797. PINMUX_DATA(STP1_IPD7_MARK, PORT74_FN6),
  798. PINMUX_DATA(LCD1_D21_MARK, PORT74_FN7),
  799. /* Port75 */
  800. PINMUX_DATA(MEMC_AD15_MARK, PORT75_FN1),
  801. PINMUX_DATA(MSIOF1_RXD_PORT75_MARK, PORT75_FN2, MSEL4CR_10_1),
  802. PINMUX_DATA(MMC0_D7_PORT75_MARK, PORT75_FN4, MSEL4CR_15_0),
  803. PINMUX_DATA(STP1_IPD6_MARK, PORT75_FN6),
  804. PINMUX_DATA(LCD1_D20_MARK, PORT75_FN7),
  805. /* Port76 - Port80 Function */
  806. PINMUX_DATA(SDHI0_CMD_MARK, PORT76_FN1),
  807. PINMUX_DATA(SDHI0_D0_MARK, PORT77_FN1),
  808. PINMUX_DATA(SDHI0_D1_MARK, PORT78_FN1),
  809. PINMUX_DATA(SDHI0_D2_MARK, PORT79_FN1),
  810. PINMUX_DATA(SDHI0_D3_MARK, PORT80_FN1),
  811. /* Port81 */
  812. PINMUX_DATA(SDHI0_CD_MARK, PORT81_FN1),
  813. PINMUX_DATA(IRQ26_PORT81_MARK, PORT81_FN0, MSEL1CR_26_0),
  814. /* Port82 - Port88 Function */
  815. PINMUX_DATA(SDHI0_CLK_MARK, PORT82_FN1),
  816. PINMUX_DATA(SDHI0_WP_MARK, PORT83_FN1),
  817. PINMUX_DATA(RESETOUTS_MARK, PORT84_FN1),
  818. PINMUX_DATA(USB0_PPON_MARK, PORT85_FN1),
  819. PINMUX_DATA(USB0_OCI_MARK, PORT86_FN1),
  820. PINMUX_DATA(USB1_PPON_MARK, PORT87_FN1),
  821. PINMUX_DATA(USB1_OCI_MARK, PORT88_FN1),
  822. /* Port89 */
  823. PINMUX_DATA(DREQ0_MARK, PORT89_FN1),
  824. PINMUX_DATA(BBIF2_TSCK2_PORT89_MARK, PORT89_FN2, MSEL5CR_0_1),
  825. PINMUX_DATA(RSPI_SSL3_A_MARK, PORT89_FN6),
  826. /* Port90 */
  827. PINMUX_DATA(DACK0_MARK, PORT90_FN1),
  828. PINMUX_DATA(BBIF2_RXD2_PORT90_MARK, PORT90_FN2, MSEL5CR_0_1),
  829. PINMUX_DATA(RSPI_SSL2_A_MARK, PORT90_FN6),
  830. PINMUX_DATA(WAIT_PORT90_MARK, PORT90_FN7, MSEL5CR_2_1),
  831. /* Port91 */
  832. PINMUX_DATA(MEMC_AD0_MARK, PORT91_FN1),
  833. PINMUX_DATA(BBIF1_RXD_MARK, PORT91_FN2),
  834. PINMUX_DATA(SCIFA5_TXD_PORT91_MARK, PORT91_FN3, MSEL5CR_15_1, MSEL5CR_14_0),
  835. PINMUX_DATA(LCD1_D5_MARK, PORT91_FN7),
  836. /* Port92 */
  837. PINMUX_DATA(MEMC_AD1_MARK, PORT92_FN1),
  838. PINMUX_DATA(BBIF1_TSYNC_MARK, PORT92_FN2),
  839. PINMUX_DATA(SCIFA5_RXD_PORT92_MARK, PORT92_FN3, MSEL5CR_15_1, MSEL5CR_14_0),
  840. PINMUX_DATA(STP0_IPD1_MARK, PORT92_FN6),
  841. PINMUX_DATA(LCD1_D6_MARK, PORT92_FN7),
  842. /* Port93 */
  843. PINMUX_DATA(MEMC_AD2_MARK, PORT93_FN1),
  844. PINMUX_DATA(BBIF1_TSCK_MARK, PORT93_FN2),
  845. PINMUX_DATA(SCIFA4_TXD_PORT93_MARK, PORT93_FN3, MSEL5CR_12_1, MSEL5CR_11_0),
  846. PINMUX_DATA(STP0_IPD3_MARK, PORT93_FN6),
  847. PINMUX_DATA(LCD1_D8_MARK, PORT93_FN7),
  848. /* Port94 */
  849. PINMUX_DATA(MEMC_AD3_MARK, PORT94_FN1),
  850. PINMUX_DATA(BBIF1_TXD_MARK, PORT94_FN2),
  851. PINMUX_DATA(SCIFA4_RXD_PORT94_MARK, PORT94_FN3, MSEL5CR_12_1, MSEL5CR_11_0),
  852. PINMUX_DATA(STP0_IPD4_MARK, PORT94_FN6),
  853. PINMUX_DATA(LCD1_D9_MARK, PORT94_FN7),
  854. /* Port95 */
  855. PINMUX_DATA(MEMC_CS1_MARK, PORT95_FN1, MSEL4CR_6_0),
  856. PINMUX_DATA(MEMC_A1_MARK, PORT95_FN1, MSEL4CR_6_1),
  857. PINMUX_DATA(SCIFA2_CTS_MARK, PORT95_FN2),
  858. PINMUX_DATA(SIM_RST_MARK, PORT95_FN4),
  859. PINMUX_DATA(VIO0_D14_PORT95_MARK, PORT95_FN7, MSEL5CR_27_1),
  860. PINMUX_DATA(IRQ22_MARK, PORT95_FN0),
  861. /* Port96 */
  862. PINMUX_DATA(MEMC_ADV_MARK, PORT96_FN1, MSEL4CR_6_0),
  863. PINMUX_DATA(MEMC_DREQ0_MARK, PORT96_FN1, MSEL4CR_6_1),
  864. PINMUX_DATA(SCIFA2_RTS_MARK, PORT96_FN2),
  865. PINMUX_DATA(SIM_CLK_MARK, PORT96_FN4),
  866. PINMUX_DATA(VIO0_D15_PORT96_MARK, PORT96_FN7, MSEL5CR_27_1),
  867. PINMUX_DATA(IRQ23_MARK, PORT96_FN0),
  868. /* Port97 */
  869. PINMUX_DATA(MEMC_AD4_MARK, PORT97_FN1),
  870. PINMUX_DATA(BBIF1_RSCK_MARK, PORT97_FN2),
  871. PINMUX_DATA(LCD1_CS_MARK, PORT97_FN6),
  872. PINMUX_DATA(LCD1_HSYN_MARK, PORT97_FN7),
  873. PINMUX_DATA(IRQ12_PORT97_MARK, PORT97_FN0, MSEL1CR_12_0),
  874. /* Port98 */
  875. PINMUX_DATA(MEMC_AD5_MARK, PORT98_FN1),
  876. PINMUX_DATA(BBIF1_RSYNC_MARK, PORT98_FN2),
  877. PINMUX_DATA(LCD1_VSYN_MARK, PORT98_FN7),
  878. PINMUX_DATA(IRQ13_PORT98_MARK, PORT98_FN0, MSEL1CR_13_0),
  879. /* Port99 */
  880. PINMUX_DATA(MEMC_AD6_MARK, PORT99_FN1),
  881. PINMUX_DATA(BBIF1_FLOW_MARK, PORT99_FN2),
  882. PINMUX_DATA(LCD1_WR_MARK, PORT99_FN6),
  883. PINMUX_DATA(LCD1_DCK_MARK, PORT99_FN7),
  884. PINMUX_DATA(IRQ14_PORT99_MARK, PORT99_FN0, MSEL1CR_14_0),
  885. /* Port100 */
  886. PINMUX_DATA(MEMC_AD7_MARK, PORT100_FN1),
  887. PINMUX_DATA(BBIF1_RX_FLOW_N_MARK, PORT100_FN2),
  888. PINMUX_DATA(LCD1_DON_MARK, PORT100_FN7),
  889. PINMUX_DATA(IRQ15_PORT100_MARK, PORT100_FN0, MSEL1CR_15_0),
  890. /* Port101 */
  891. PINMUX_DATA(FCE0_MARK, PORT101_FN1),
  892. /* Port102 */
  893. PINMUX_DATA(FRB_MARK, PORT102_FN1),
  894. PINMUX_DATA(LCD0_LCLK_PORT102_MARK, PORT102_FN4, MSEL5CR_6_0),
  895. /* Port103 */
  896. PINMUX_DATA(CS5B_MARK, PORT103_FN1),
  897. PINMUX_DATA(FCE1_MARK, PORT103_FN2),
  898. PINMUX_DATA(MMC1_CLK_PORT103_MARK, PORT103_FN3, MSEL4CR_15_1),
  899. /* Port104 */
  900. PINMUX_DATA(CS6A_MARK, PORT104_FN1),
  901. PINMUX_DATA(MMC1_CMD_PORT104_MARK, PORT104_FN3, MSEL4CR_15_1),
  902. PINMUX_DATA(IRQ11_MARK, PORT104_FN0),
  903. /* Port105 */
  904. PINMUX_DATA(CS5A_PORT105_MARK, PORT105_FN1, MSEL5CR_2_0),
  905. PINMUX_DATA(SCIFA3_RTS_PORT105_MARK, PORT105_FN4, MSEL5CR_8_0),
  906. /* Port106 */
  907. PINMUX_DATA(IOIS16_MARK, PORT106_FN1),
  908. PINMUX_DATA(IDE_EXBUF_ENB_MARK, PORT106_FN6),
  909. /* Port107 - Port115 Function */
  910. PINMUX_DATA(WE3_ICIOWR_MARK, PORT107_FN1),
  911. PINMUX_DATA(WE2_ICIORD_MARK, PORT108_FN1),
  912. PINMUX_DATA(CS0_MARK, PORT109_FN1),
  913. PINMUX_DATA(CS2_MARK, PORT110_FN1),
  914. PINMUX_DATA(CS4_MARK, PORT111_FN1),
  915. PINMUX_DATA(WE1_MARK, PORT112_FN1),
  916. PINMUX_DATA(WE0_FWE_MARK, PORT113_FN1),
  917. PINMUX_DATA(RDWR_MARK, PORT114_FN1),
  918. PINMUX_DATA(RD_FSC_MARK, PORT115_FN1),
  919. /* Port116 */
  920. PINMUX_DATA(A25_MARK, PORT116_FN1),
  921. PINMUX_DATA(MSIOF0_SS2_MARK, PORT116_FN2),
  922. PINMUX_DATA(MSIOF1_SS2_PORT116_MARK, PORT116_FN3, MSEL4CR_10_0),
  923. PINMUX_DATA(SCIFA3_SCK_PORT116_MARK, PORT116_FN4, MSEL5CR_8_0),
  924. PINMUX_DATA(GPO1_MARK, PORT116_FN5),
  925. /* Port117 */
  926. PINMUX_DATA(A24_MARK, PORT117_FN1),
  927. PINMUX_DATA(MSIOF0_SS1_MARK, PORT117_FN2),
  928. PINMUX_DATA(MSIOF1_SS1_PORT117_MARK, PORT117_FN3, MSEL4CR_10_0),
  929. PINMUX_DATA(SCIFA3_CTS_PORT117_MARK, PORT117_FN4, MSEL5CR_8_0),
  930. PINMUX_DATA(GPO0_MARK, PORT117_FN5),
  931. /* Port118 */
  932. PINMUX_DATA(A23_MARK, PORT118_FN1),
  933. PINMUX_DATA(MSIOF0_MCK1_MARK, PORT118_FN2),
  934. PINMUX_DATA(MSIOF1_RXD_PORT118_MARK, PORT118_FN3, MSEL4CR_10_0),
  935. PINMUX_DATA(GPI1_MARK, PORT118_FN5),
  936. PINMUX_DATA(IRQ9_PORT118_MARK, PORT118_FN0, MSEL1CR_9_0),
  937. /* Port119 */
  938. PINMUX_DATA(A22_MARK, PORT119_FN1),
  939. PINMUX_DATA(MSIOF0_MCK0_MARK, PORT119_FN2),
  940. PINMUX_DATA(MSIOF1_TXD_PORT119_MARK, PORT119_FN3, MSEL4CR_10_0),
  941. PINMUX_DATA(GPI0_MARK, PORT119_FN5),
  942. PINMUX_DATA(IRQ8_MARK, PORT119_FN0),
  943. /* Port120 */
  944. PINMUX_DATA(A21_MARK, PORT120_FN1),
  945. PINMUX_DATA(MSIOF0_RSYNC_MARK, PORT120_FN2),
  946. PINMUX_DATA(MSIOF1_TSYNC_PORT120_MARK, PORT120_FN3, MSEL4CR_10_0),
  947. PINMUX_DATA(IRQ7_PORT120_MARK, PORT120_FN0, MSEL1CR_7_1),
  948. /* Port121 */
  949. PINMUX_DATA(A20_MARK, PORT121_FN1),
  950. PINMUX_DATA(MSIOF0_RSCK_MARK, PORT121_FN2),
  951. PINMUX_DATA(MSIOF1_TSCK_PORT121_MARK, PORT121_FN3, MSEL4CR_10_0),
  952. PINMUX_DATA(IRQ6_PORT121_MARK, PORT121_FN0, MSEL1CR_6_0),
  953. /* Port122 */
  954. PINMUX_DATA(A19_MARK, PORT122_FN1),
  955. PINMUX_DATA(MSIOF0_RXD_MARK, PORT122_FN2),
  956. /* Port123 */
  957. PINMUX_DATA(A18_MARK, PORT123_FN1),
  958. PINMUX_DATA(MSIOF0_TSCK_MARK, PORT123_FN2),
  959. /* Port124 */
  960. PINMUX_DATA(A17_MARK, PORT124_FN1),
  961. PINMUX_DATA(MSIOF0_TSYNC_MARK, PORT124_FN2),
  962. /* Port125 - Port141 Function */
  963. PINMUX_DATA(A16_MARK, PORT125_FN1),
  964. PINMUX_DATA(A15_MARK, PORT126_FN1),
  965. PINMUX_DATA(A14_MARK, PORT127_FN1),
  966. PINMUX_DATA(A13_MARK, PORT128_FN1),
  967. PINMUX_DATA(A12_MARK, PORT129_FN1),
  968. PINMUX_DATA(A11_MARK, PORT130_FN1),
  969. PINMUX_DATA(A10_MARK, PORT131_FN1),
  970. PINMUX_DATA(A9_MARK, PORT132_FN1),
  971. PINMUX_DATA(A8_MARK, PORT133_FN1),
  972. PINMUX_DATA(A7_MARK, PORT134_FN1),
  973. PINMUX_DATA(A6_MARK, PORT135_FN1),
  974. PINMUX_DATA(A5_FCDE_MARK, PORT136_FN1),
  975. PINMUX_DATA(A4_FOE_MARK, PORT137_FN1),
  976. PINMUX_DATA(A3_MARK, PORT138_FN1),
  977. PINMUX_DATA(A2_MARK, PORT139_FN1),
  978. PINMUX_DATA(A1_MARK, PORT140_FN1),
  979. PINMUX_DATA(CKO_MARK, PORT141_FN1),
  980. /* Port142 - Port157 Function1 */
  981. PINMUX_DATA(D15_NAF15_MARK, PORT142_FN1),
  982. PINMUX_DATA(D14_NAF14_MARK, PORT143_FN1),
  983. PINMUX_DATA(D13_NAF13_MARK, PORT144_FN1),
  984. PINMUX_DATA(D12_NAF12_MARK, PORT145_FN1),
  985. PINMUX_DATA(D11_NAF11_MARK, PORT146_FN1),
  986. PINMUX_DATA(D10_NAF10_MARK, PORT147_FN1),
  987. PINMUX_DATA(D9_NAF9_MARK, PORT148_FN1),
  988. PINMUX_DATA(D8_NAF8_MARK, PORT149_FN1),
  989. PINMUX_DATA(D7_NAF7_MARK, PORT150_FN1),
  990. PINMUX_DATA(D6_NAF6_MARK, PORT151_FN1),
  991. PINMUX_DATA(D5_NAF5_MARK, PORT152_FN1),
  992. PINMUX_DATA(D4_NAF4_MARK, PORT153_FN1),
  993. PINMUX_DATA(D3_NAF3_MARK, PORT154_FN1),
  994. PINMUX_DATA(D2_NAF2_MARK, PORT155_FN1),
  995. PINMUX_DATA(D1_NAF1_MARK, PORT156_FN1),
  996. PINMUX_DATA(D0_NAF0_MARK, PORT157_FN1),
  997. /* Port142 - Port149 Function3 */
  998. PINMUX_DATA(MMC1_D7_PORT142_MARK, PORT142_FN3, MSEL4CR_15_1),
  999. PINMUX_DATA(MMC1_D6_PORT143_MARK, PORT143_FN3, MSEL4CR_15_1),
  1000. PINMUX_DATA(MMC1_D5_PORT144_MARK, PORT144_FN3, MSEL4CR_15_1),
  1001. PINMUX_DATA(MMC1_D4_PORT145_MARK, PORT145_FN3, MSEL4CR_15_1),
  1002. PINMUX_DATA(MMC1_D3_PORT146_MARK, PORT146_FN3, MSEL4CR_15_1),
  1003. PINMUX_DATA(MMC1_D2_PORT147_MARK, PORT147_FN3, MSEL4CR_15_1),
  1004. PINMUX_DATA(MMC1_D1_PORT148_MARK, PORT148_FN3, MSEL4CR_15_1),
  1005. PINMUX_DATA(MMC1_D0_PORT149_MARK, PORT149_FN3, MSEL4CR_15_1),
  1006. /* Port158 */
  1007. PINMUX_DATA(D31_MARK, PORT158_FN1),
  1008. PINMUX_DATA(SCIFA3_SCK_PORT158_MARK, PORT158_FN2, MSEL5CR_8_1),
  1009. PINMUX_DATA(RMII_REF125CK_MARK, PORT158_FN3),
  1010. PINMUX_DATA(LCD0_D21_PORT158_MARK, PORT158_FN4, MSEL5CR_6_1),
  1011. PINMUX_DATA(IRDA_FIRSEL_MARK, PORT158_FN5),
  1012. PINMUX_DATA(IDE_D15_MARK, PORT158_FN6),
  1013. /* Port159 */
  1014. PINMUX_DATA(D30_MARK, PORT159_FN1),
  1015. PINMUX_DATA(SCIFA3_RXD_PORT159_MARK, PORT159_FN2, MSEL5CR_8_1),
  1016. PINMUX_DATA(RMII_REF50CK_MARK, PORT159_FN3),
  1017. PINMUX_DATA(LCD0_D23_PORT159_MARK, PORT159_FN4, MSEL5CR_6_1),
  1018. PINMUX_DATA(IDE_D14_MARK, PORT159_FN6),
  1019. /* Port160 */
  1020. PINMUX_DATA(D29_MARK, PORT160_FN1),
  1021. PINMUX_DATA(SCIFA3_TXD_PORT160_MARK, PORT160_FN2, MSEL5CR_8_1),
  1022. PINMUX_DATA(LCD0_D22_PORT160_MARK, PORT160_FN4, MSEL5CR_6_1),
  1023. PINMUX_DATA(VIO1_HD_MARK, PORT160_FN5),
  1024. PINMUX_DATA(IDE_D13_MARK, PORT160_FN6),
  1025. /* Port161 */
  1026. PINMUX_DATA(D28_MARK, PORT161_FN1),
  1027. PINMUX_DATA(SCIFA3_RTS_PORT161_MARK, PORT161_FN2, MSEL5CR_8_1),
  1028. PINMUX_DATA(ET_RX_DV_MARK, PORT161_FN3),
  1029. PINMUX_DATA(LCD0_D20_PORT161_MARK, PORT161_FN4, MSEL5CR_6_1),
  1030. PINMUX_DATA(IRDA_IN_MARK, PORT161_FN5),
  1031. PINMUX_DATA(IDE_D12_MARK, PORT161_FN6),
  1032. /* Port162 */
  1033. PINMUX_DATA(D27_MARK, PORT162_FN1),
  1034. PINMUX_DATA(SCIFA3_CTS_PORT162_MARK, PORT162_FN2, MSEL5CR_8_1),
  1035. PINMUX_DATA(LCD0_D19_PORT162_MARK, PORT162_FN4, MSEL5CR_6_1),
  1036. PINMUX_DATA(IRDA_OUT_MARK, PORT162_FN5),
  1037. PINMUX_DATA(IDE_D11_MARK, PORT162_FN6),
  1038. /* Port163 */
  1039. PINMUX_DATA(D26_MARK, PORT163_FN1),
  1040. PINMUX_DATA(MSIOF2_SS2_MARK, PORT163_FN2),
  1041. PINMUX_DATA(ET_COL_MARK, PORT163_FN3),
  1042. PINMUX_DATA(LCD0_D18_PORT163_MARK, PORT163_FN4, MSEL5CR_6_1),
  1043. PINMUX_DATA(IROUT_MARK, PORT163_FN5),
  1044. PINMUX_DATA(IDE_D10_MARK, PORT163_FN6),
  1045. /* Port164 */
  1046. PINMUX_DATA(D25_MARK, PORT164_FN1),
  1047. PINMUX_DATA(MSIOF2_TSYNC_MARK, PORT164_FN2),
  1048. PINMUX_DATA(ET_PHY_INT_MARK, PORT164_FN3),
  1049. PINMUX_DATA(LCD0_RD_MARK, PORT164_FN4),
  1050. PINMUX_DATA(IDE_D9_MARK, PORT164_FN6),
  1051. /* Port165 */
  1052. PINMUX_DATA(D24_MARK, PORT165_FN1),
  1053. PINMUX_DATA(MSIOF2_RXD_MARK, PORT165_FN2),
  1054. PINMUX_DATA(LCD0_LCLK_PORT165_MARK, PORT165_FN4, MSEL5CR_6_1),
  1055. PINMUX_DATA(IDE_D8_MARK, PORT165_FN6),
  1056. /* Port166 - Port171 Function1 */
  1057. PINMUX_DATA(D21_MARK, PORT166_FN1),
  1058. PINMUX_DATA(D20_MARK, PORT167_FN1),
  1059. PINMUX_DATA(D19_MARK, PORT168_FN1),
  1060. PINMUX_DATA(D18_MARK, PORT169_FN1),
  1061. PINMUX_DATA(D17_MARK, PORT170_FN1),
  1062. PINMUX_DATA(D16_MARK, PORT171_FN1),
  1063. /* Port166 - Port171 Function3 */
  1064. PINMUX_DATA(ET_ETXD5_MARK, PORT166_FN3),
  1065. PINMUX_DATA(ET_ETXD4_MARK, PORT167_FN3),
  1066. PINMUX_DATA(ET_ETXD3_MARK, PORT168_FN3),
  1067. PINMUX_DATA(ET_ETXD2_MARK, PORT169_FN3),
  1068. PINMUX_DATA(ET_ETXD1_MARK, PORT170_FN3),
  1069. PINMUX_DATA(ET_ETXD0_MARK, PORT171_FN3),
  1070. /* Port166 - Port171 Function6 */
  1071. PINMUX_DATA(IDE_D5_MARK, PORT166_FN6),
  1072. PINMUX_DATA(IDE_D4_MARK, PORT167_FN6),
  1073. PINMUX_DATA(IDE_D3_MARK, PORT168_FN6),
  1074. PINMUX_DATA(IDE_D2_MARK, PORT169_FN6),
  1075. PINMUX_DATA(IDE_D1_MARK, PORT170_FN6),
  1076. PINMUX_DATA(IDE_D0_MARK, PORT171_FN6),
  1077. /* Port167 - Port171 IRQ */
  1078. PINMUX_DATA(IRQ31_PORT167_MARK, PORT167_FN0, MSEL1CR_31_0),
  1079. PINMUX_DATA(IRQ27_PORT168_MARK, PORT168_FN0, MSEL1CR_27_0),
  1080. PINMUX_DATA(IRQ28_PORT169_MARK, PORT169_FN0, MSEL1CR_28_0),
  1081. PINMUX_DATA(IRQ29_PORT170_MARK, PORT170_FN0, MSEL1CR_29_0),
  1082. PINMUX_DATA(IRQ30_PORT171_MARK, PORT171_FN0, MSEL1CR_30_0),
  1083. /* Port172 */
  1084. PINMUX_DATA(D23_MARK, PORT172_FN1),
  1085. PINMUX_DATA(SCIFB_RTS_PORT172_MARK, PORT172_FN2, MSEL5CR_17_1),
  1086. PINMUX_DATA(ET_ETXD7_MARK, PORT172_FN3),
  1087. PINMUX_DATA(IDE_D7_MARK, PORT172_FN6),
  1088. PINMUX_DATA(IRQ4_PORT172_MARK, PORT172_FN0, MSEL1CR_4_1),
  1089. /* Port173 */
  1090. PINMUX_DATA(D22_MARK, PORT173_FN1),
  1091. PINMUX_DATA(SCIFB_CTS_PORT173_MARK, PORT173_FN2, MSEL5CR_17_1),
  1092. PINMUX_DATA(ET_ETXD6_MARK, PORT173_FN3),
  1093. PINMUX_DATA(IDE_D6_MARK, PORT173_FN6),
  1094. PINMUX_DATA(IRQ6_PORT173_MARK, PORT173_FN0, MSEL1CR_6_1),
  1095. /* Port174 */
  1096. PINMUX_DATA(A26_MARK, PORT174_FN1),
  1097. PINMUX_DATA(MSIOF0_TXD_MARK, PORT174_FN2),
  1098. PINMUX_DATA(ET_RX_CLK_MARK, PORT174_FN3),
  1099. PINMUX_DATA(SCIFA3_RXD_PORT174_MARK, PORT174_FN4, MSEL5CR_8_0),
  1100. /* Port175 */
  1101. PINMUX_DATA(A0_MARK, PORT175_FN1),
  1102. PINMUX_DATA(BS_MARK, PORT175_FN2),
  1103. PINMUX_DATA(ET_WOL_MARK, PORT175_FN3),
  1104. PINMUX_DATA(SCIFA3_TXD_PORT175_MARK, PORT175_FN4, MSEL5CR_8_0),
  1105. /* Port176 */
  1106. PINMUX_DATA(ET_GTX_CLK_MARK, PORT176_FN3),
  1107. /* Port177 */
  1108. PINMUX_DATA(WAIT_PORT177_MARK, PORT177_FN1, MSEL5CR_2_0),
  1109. PINMUX_DATA(ET_LINK_MARK, PORT177_FN3),
  1110. PINMUX_DATA(IDE_IOWR_MARK, PORT177_FN6),
  1111. PINMUX_DATA(SDHI2_WP_PORT177_MARK, PORT177_FN7, MSEL5CR_19_1),
  1112. /* Port178 */
  1113. PINMUX_DATA(VIO0_D12_MARK, PORT178_FN1),
  1114. PINMUX_DATA(VIO1_D4_MARK, PORT178_FN5),
  1115. PINMUX_DATA(IDE_IORD_MARK, PORT178_FN6),
  1116. /* Port179 */
  1117. PINMUX_DATA(VIO0_D11_MARK, PORT179_FN1),
  1118. PINMUX_DATA(VIO1_D3_MARK, PORT179_FN5),
  1119. PINMUX_DATA(IDE_IORDY_MARK, PORT179_FN6),
  1120. /* Port180 */
  1121. PINMUX_DATA(VIO0_D10_MARK, PORT180_FN1),
  1122. PINMUX_DATA(TPU0TO3_MARK, PORT180_FN4),
  1123. PINMUX_DATA(VIO1_D2_MARK, PORT180_FN5),
  1124. PINMUX_DATA(IDE_INT_MARK, PORT180_FN6),
  1125. PINMUX_DATA(IRQ24_MARK, PORT180_FN0),
  1126. /* Port181 */
  1127. PINMUX_DATA(VIO0_D9_MARK, PORT181_FN1),
  1128. PINMUX_DATA(VIO1_D1_MARK, PORT181_FN5),
  1129. PINMUX_DATA(IDE_RST_MARK, PORT181_FN6),
  1130. /* Port182 */
  1131. PINMUX_DATA(VIO0_D8_MARK, PORT182_FN1),
  1132. PINMUX_DATA(VIO1_D0_MARK, PORT182_FN5),
  1133. PINMUX_DATA(IDE_DIRECTION_MARK, PORT182_FN6),
  1134. /* Port183 */
  1135. PINMUX_DATA(DREQ1_MARK, PORT183_FN1),
  1136. PINMUX_DATA(BBIF2_TXD2_PORT183_MARK, PORT183_FN2, MSEL5CR_0_1),
  1137. PINMUX_DATA(ET_TX_EN_MARK, PORT183_FN3),
  1138. /* Port184 */
  1139. PINMUX_DATA(DACK1_MARK, PORT184_FN1),
  1140. PINMUX_DATA(BBIF2_TSYNC2_PORT184_MARK, PORT184_FN2, MSEL5CR_0_1),
  1141. PINMUX_DATA(ET_TX_CLK_MARK, PORT184_FN3),
  1142. /* Port185 - Port192 Function1 */
  1143. PINMUX_DATA(SCIFA1_SCK_MARK, PORT185_FN1),
  1144. PINMUX_DATA(SCIFB_RTS_PORT186_MARK, PORT186_FN1, MSEL5CR_17_0),
  1145. PINMUX_DATA(SCIFB_CTS_PORT187_MARK, PORT187_FN1, MSEL5CR_17_0),
  1146. PINMUX_DATA(SCIFA0_SCK_MARK, PORT188_FN1),
  1147. PINMUX_DATA(SCIFB_SCK_PORT190_MARK, PORT190_FN1, MSEL5CR_17_0),
  1148. PINMUX_DATA(SCIFB_RXD_PORT191_MARK, PORT191_FN1, MSEL5CR_17_0),
  1149. PINMUX_DATA(SCIFB_TXD_PORT192_MARK, PORT192_FN1, MSEL5CR_17_0),
  1150. /* Port185 - Port192 Function3 */
  1151. PINMUX_DATA(ET_ERXD0_MARK, PORT185_FN3),
  1152. PINMUX_DATA(ET_ERXD1_MARK, PORT186_FN3),
  1153. PINMUX_DATA(ET_ERXD2_MARK, PORT187_FN3),
  1154. PINMUX_DATA(ET_ERXD3_MARK, PORT188_FN3),
  1155. PINMUX_DATA(ET_ERXD4_MARK, PORT189_FN3),
  1156. PINMUX_DATA(ET_ERXD5_MARK, PORT190_FN3),
  1157. PINMUX_DATA(ET_ERXD6_MARK, PORT191_FN3),
  1158. PINMUX_DATA(ET_ERXD7_MARK, PORT192_FN3),
  1159. /* Port185 - Port192 Function6 */
  1160. PINMUX_DATA(STP1_IPCLK_MARK, PORT185_FN6),
  1161. PINMUX_DATA(STP1_IPD0_PORT186_MARK, PORT186_FN6, MSEL5CR_23_0),
  1162. PINMUX_DATA(STP1_IPEN_PORT187_MARK, PORT187_FN6, MSEL5CR_23_0),
  1163. PINMUX_DATA(STP1_IPSYNC_MARK, PORT188_FN6),
  1164. PINMUX_DATA(STP0_IPCLK_MARK, PORT189_FN6),
  1165. PINMUX_DATA(STP0_IPD0_MARK, PORT190_FN6),
  1166. PINMUX_DATA(STP0_IPEN_MARK, PORT191_FN6),
  1167. PINMUX_DATA(STP0_IPSYNC_MARK, PORT192_FN6),
  1168. /* Port193 */
  1169. PINMUX_DATA(SCIFA0_CTS_MARK, PORT193_FN1),
  1170. PINMUX_DATA(RMII_CRS_DV_MARK, PORT193_FN3),
  1171. PINMUX_DATA(STP1_IPEN_PORT193_MARK, PORT193_FN6, MSEL5CR_23_1), /* ? */
  1172. PINMUX_DATA(LCD1_D17_MARK, PORT193_FN7),
  1173. /* Port194 */
  1174. PINMUX_DATA(SCIFA0_RTS_MARK, PORT194_FN1),
  1175. PINMUX_DATA(RMII_RX_ER_MARK, PORT194_FN3),
  1176. PINMUX_DATA(STP1_IPD0_PORT194_MARK, PORT194_FN6, MSEL5CR_23_1), /* ? */
  1177. PINMUX_DATA(LCD1_D16_MARK, PORT194_FN7),
  1178. /* Port195 */
  1179. PINMUX_DATA(SCIFA1_RXD_MARK, PORT195_FN1),
  1180. PINMUX_DATA(RMII_RXD0_MARK, PORT195_FN3),
  1181. PINMUX_DATA(STP1_IPD3_MARK, PORT195_FN6),
  1182. PINMUX_DATA(LCD1_D15_MARK, PORT195_FN7),
  1183. /* Port196 */
  1184. PINMUX_DATA(SCIFA1_TXD_MARK, PORT196_FN1),
  1185. PINMUX_DATA(RMII_RXD1_MARK, PORT196_FN3),
  1186. PINMUX_DATA(STP1_IPD2_MARK, PORT196_FN6),
  1187. PINMUX_DATA(LCD1_D14_MARK, PORT196_FN7),
  1188. /* Port197 */
  1189. PINMUX_DATA(SCIFA0_RXD_MARK, PORT197_FN1),
  1190. PINMUX_DATA(VIO1_CLK_MARK, PORT197_FN5),
  1191. PINMUX_DATA(STP1_IPD5_MARK, PORT197_FN6),
  1192. PINMUX_DATA(LCD1_D19_MARK, PORT197_FN7),
  1193. /* Port198 */
  1194. PINMUX_DATA(SCIFA0_TXD_MARK, PORT198_FN1),
  1195. PINMUX_DATA(VIO1_VD_MARK, PORT198_FN5),
  1196. PINMUX_DATA(STP1_IPD4_MARK, PORT198_FN6),
  1197. PINMUX_DATA(LCD1_D18_MARK, PORT198_FN7),
  1198. /* Port199 */
  1199. PINMUX_DATA(MEMC_NWE_MARK, PORT199_FN1),
  1200. PINMUX_DATA(SCIFA2_SCK_PORT199_MARK, PORT199_FN2, MSEL5CR_7_1),
  1201. PINMUX_DATA(RMII_TX_EN_MARK, PORT199_FN3),
  1202. PINMUX_DATA(SIM_D_PORT199_MARK, PORT199_FN4, MSEL5CR_21_1),
  1203. PINMUX_DATA(STP1_IPD1_MARK, PORT199_FN6),
  1204. PINMUX_DATA(LCD1_D13_MARK, PORT199_FN7),
  1205. /* Port200 */
  1206. PINMUX_DATA(MEMC_NOE_MARK, PORT200_FN1),
  1207. PINMUX_DATA(SCIFA2_RXD_MARK, PORT200_FN2),
  1208. PINMUX_DATA(RMII_TXD0_MARK, PORT200_FN3),
  1209. PINMUX_DATA(STP0_IPD7_MARK, PORT200_FN6),
  1210. PINMUX_DATA(LCD1_D12_MARK, PORT200_FN7),
  1211. /* Port201 */
  1212. PINMUX_DATA(MEMC_WAIT_MARK, PORT201_FN1, MSEL4CR_6_0),
  1213. PINMUX_DATA(MEMC_DREQ1_MARK, PORT201_FN1, MSEL4CR_6_1),
  1214. PINMUX_DATA(SCIFA2_TXD_MARK, PORT201_FN2),
  1215. PINMUX_DATA(RMII_TXD1_MARK, PORT201_FN3),
  1216. PINMUX_DATA(STP0_IPD6_MARK, PORT201_FN6),
  1217. PINMUX_DATA(LCD1_D11_MARK, PORT201_FN7),
  1218. /* Port202 */
  1219. PINMUX_DATA(MEMC_BUSCLK_MARK, PORT202_FN1, MSEL4CR_6_0),
  1220. PINMUX_DATA(MEMC_A0_MARK, PORT202_FN1, MSEL4CR_6_1),
  1221. PINMUX_DATA(MSIOF1_SS2_PORT202_MARK, PORT202_FN2, MSEL4CR_10_1),
  1222. PINMUX_DATA(RMII_MDC_MARK, PORT202_FN3),
  1223. PINMUX_DATA(TPU0TO2_PORT202_MARK, PORT202_FN4, MSEL5CR_25_1),
  1224. PINMUX_DATA(IDE_CS0_MARK, PORT202_FN6),
  1225. PINMUX_DATA(SDHI2_CD_PORT202_MARK, PORT202_FN7, MSEL5CR_19_1),
  1226. PINMUX_DATA(IRQ21_MARK, PORT202_FN0),
  1227. /* Port203 - Port208 Function1 */
  1228. PINMUX_DATA(SDHI2_CLK_MARK, PORT203_FN1),
  1229. PINMUX_DATA(SDHI2_CMD_MARK, PORT204_FN1),
  1230. PINMUX_DATA(SDHI2_D0_MARK, PORT205_FN1),
  1231. PINMUX_DATA(SDHI2_D1_MARK, PORT206_FN1),
  1232. PINMUX_DATA(SDHI2_D2_MARK, PORT207_FN1),
  1233. PINMUX_DATA(SDHI2_D3_MARK, PORT208_FN1),
  1234. /* Port203 - Port208 Function3 */
  1235. PINMUX_DATA(ET_TX_ER_MARK, PORT203_FN3),
  1236. PINMUX_DATA(ET_RX_ER_MARK, PORT204_FN3),
  1237. PINMUX_DATA(ET_CRS_MARK, PORT205_FN3),
  1238. PINMUX_DATA(ET_MDC_MARK, PORT206_FN3),
  1239. PINMUX_DATA(ET_MDIO_MARK, PORT207_FN3),
  1240. PINMUX_DATA(RMII_MDIO_MARK, PORT208_FN3),
  1241. /* Port203 - Port208 Function6 */
  1242. PINMUX_DATA(IDE_A2_MARK, PORT203_FN6),
  1243. PINMUX_DATA(IDE_A1_MARK, PORT204_FN6),
  1244. PINMUX_DATA(IDE_A0_MARK, PORT205_FN6),
  1245. PINMUX_DATA(IDE_IODACK_MARK, PORT206_FN6),
  1246. PINMUX_DATA(IDE_IODREQ_MARK, PORT207_FN6),
  1247. PINMUX_DATA(IDE_CS1_MARK, PORT208_FN6),
  1248. /* Port203 - Port208 Function7 */
  1249. PINMUX_DATA(SCIFA4_TXD_PORT203_MARK, PORT203_FN7, MSEL5CR_12_0, MSEL5CR_11_1),
  1250. PINMUX_DATA(SCIFA4_RXD_PORT204_MARK, PORT204_FN7, MSEL5CR_12_0, MSEL5CR_11_1),
  1251. PINMUX_DATA(SCIFA4_SCK_PORT205_MARK, PORT205_FN7, MSEL5CR_10_1),
  1252. PINMUX_DATA(SCIFA5_SCK_PORT206_MARK, PORT206_FN7, MSEL5CR_13_1),
  1253. PINMUX_DATA(SCIFA5_RXD_PORT207_MARK, PORT207_FN7, MSEL5CR_15_0, MSEL5CR_14_1),
  1254. PINMUX_DATA(SCIFA5_TXD_PORT208_MARK, PORT208_FN7, MSEL5CR_15_0, MSEL5CR_14_1),
  1255. /* Port209 */
  1256. PINMUX_DATA(VBUS_MARK, PORT209_FN1),
  1257. PINMUX_DATA(IRQ7_PORT209_MARK, PORT209_FN0, MSEL1CR_7_0),
  1258. /* Port210 */
  1259. PINMUX_DATA(IRQ9_PORT210_MARK, PORT210_FN0, MSEL1CR_9_1),
  1260. PINMUX_DATA(HDMI_HPD_MARK, PORT210_FN1),
  1261. /* Port211 */
  1262. PINMUX_DATA(IRQ16_PORT211_MARK, PORT211_FN0, MSEL1CR_16_1),
  1263. PINMUX_DATA(HDMI_CEC_MARK, PORT211_FN1),
  1264. /* SDENC */
  1265. PINMUX_DATA(SDENC_CPG_MARK, MSEL4CR_19_0),
  1266. PINMUX_DATA(SDENC_DV_CLKI_MARK, MSEL4CR_19_1),
  1267. /* SYSC */
  1268. PINMUX_DATA(RESETP_PULLUP_MARK, MSEL4CR_4_0),
  1269. PINMUX_DATA(RESETP_PLAIN_MARK, MSEL4CR_4_1),
  1270. /* DEBUG */
  1271. PINMUX_DATA(EDEBGREQ_PULLDOWN_MARK, MSEL4CR_1_0),
  1272. PINMUX_DATA(EDEBGREQ_PULLUP_MARK, MSEL4CR_1_1),
  1273. PINMUX_DATA(TRACEAUD_FROM_VIO_MARK, MSEL5CR_30_0, MSEL5CR_29_0),
  1274. PINMUX_DATA(TRACEAUD_FROM_LCDC0_MARK, MSEL5CR_30_0, MSEL5CR_29_1),
  1275. PINMUX_DATA(TRACEAUD_FROM_MEMC_MARK, MSEL5CR_30_1, MSEL5CR_29_0),
  1276. };
  1277. #define __I (SH_PFC_PIN_CFG_INPUT)
  1278. #define __O (SH_PFC_PIN_CFG_OUTPUT)
  1279. #define __IO (SH_PFC_PIN_CFG_INPUT | SH_PFC_PIN_CFG_OUTPUT)
  1280. #define __PD (SH_PFC_PIN_CFG_PULL_DOWN)
  1281. #define __PU (SH_PFC_PIN_CFG_PULL_UP)
  1282. #define __PUD (SH_PFC_PIN_CFG_PULL_DOWN | SH_PFC_PIN_CFG_PULL_UP)
  1283. #define R8A7740_PIN_I_PD(pin) SH_PFC_PIN_CFG(pin, __I | __PD)
  1284. #define R8A7740_PIN_I_PU(pin) SH_PFC_PIN_CFG(pin, __I | __PU)
  1285. #define R8A7740_PIN_I_PU_PD(pin) SH_PFC_PIN_CFG(pin, __I | __PUD)
  1286. #define R8A7740_PIN_IO(pin) SH_PFC_PIN_CFG(pin, __IO)
  1287. #define R8A7740_PIN_IO_PD(pin) SH_PFC_PIN_CFG(pin, __IO | __PD)
  1288. #define R8A7740_PIN_IO_PU(pin) SH_PFC_PIN_CFG(pin, __IO | __PU)
  1289. #define R8A7740_PIN_IO_PU_PD(pin) SH_PFC_PIN_CFG(pin, __IO | __PUD)
  1290. #define R8A7740_PIN_O(pin) SH_PFC_PIN_CFG(pin, __O)
  1291. #define R8A7740_PIN_O_PU_PD(pin) SH_PFC_PIN_CFG(pin, __O | __PUD)
  1292. static const struct sh_pfc_pin pinmux_pins[] = {
  1293. /* Table 56-1 (I/O and Pull U/D) */
  1294. R8A7740_PIN_IO_PD(0), R8A7740_PIN_IO_PD(1),
  1295. R8A7740_PIN_IO_PD(2), R8A7740_PIN_IO_PD(3),
  1296. R8A7740_PIN_IO_PD(4), R8A7740_PIN_IO_PD(5),
  1297. R8A7740_PIN_IO_PD(6), R8A7740_PIN_IO(7),
  1298. R8A7740_PIN_IO(8), R8A7740_PIN_IO(9),
  1299. R8A7740_PIN_IO_PD(10), R8A7740_PIN_IO_PD(11),
  1300. R8A7740_PIN_IO_PD(12), R8A7740_PIN_IO_PU_PD(13),
  1301. R8A7740_PIN_IO_PD(14), R8A7740_PIN_IO_PD(15),
  1302. R8A7740_PIN_IO_PD(16), R8A7740_PIN_IO_PD(17),
  1303. R8A7740_PIN_IO(18), R8A7740_PIN_IO_PU(19),
  1304. R8A7740_PIN_IO_PU_PD(20), R8A7740_PIN_IO_PD(21),
  1305. R8A7740_PIN_IO_PU_PD(22), R8A7740_PIN_IO(23),
  1306. R8A7740_PIN_IO_PU(24), R8A7740_PIN_IO_PU(25),
  1307. R8A7740_PIN_IO_PU(26), R8A7740_PIN_IO_PU(27),
  1308. R8A7740_PIN_IO_PU(28), R8A7740_PIN_IO_PU(29),
  1309. R8A7740_PIN_IO_PU(30), R8A7740_PIN_IO_PD(31),
  1310. R8A7740_PIN_IO_PD(32), R8A7740_PIN_IO_PD(33),
  1311. R8A7740_PIN_IO_PD(34), R8A7740_PIN_IO_PU(35),
  1312. R8A7740_PIN_IO_PU(36), R8A7740_PIN_IO_PD(37),
  1313. R8A7740_PIN_IO_PU(38), R8A7740_PIN_IO_PD(39),
  1314. R8A7740_PIN_IO_PU_PD(40), R8A7740_PIN_IO_PD(41),
  1315. R8A7740_PIN_IO_PD(42), R8A7740_PIN_IO_PU_PD(43),
  1316. R8A7740_PIN_IO_PU_PD(44), R8A7740_PIN_IO_PU_PD(45),
  1317. R8A7740_PIN_IO_PU_PD(46), R8A7740_PIN_IO_PU_PD(47),
  1318. R8A7740_PIN_IO_PU_PD(48), R8A7740_PIN_IO_PU_PD(49),
  1319. R8A7740_PIN_IO_PU_PD(50), R8A7740_PIN_IO_PD(51),
  1320. R8A7740_PIN_IO_PD(52), R8A7740_PIN_IO_PD(53),
  1321. R8A7740_PIN_IO_PD(54), R8A7740_PIN_IO_PU_PD(55),
  1322. R8A7740_PIN_IO_PU_PD(56), R8A7740_PIN_IO_PU_PD(57),
  1323. R8A7740_PIN_IO_PU_PD(58), R8A7740_PIN_IO_PU_PD(59),
  1324. R8A7740_PIN_IO_PU_PD(60), R8A7740_PIN_IO_PD(61),
  1325. R8A7740_PIN_IO_PD(62), R8A7740_PIN_IO_PD(63),
  1326. R8A7740_PIN_IO_PD(64), R8A7740_PIN_IO_PD(65),
  1327. R8A7740_PIN_IO_PU_PD(66), R8A7740_PIN_IO_PU_PD(67),
  1328. R8A7740_PIN_IO_PU_PD(68), R8A7740_PIN_IO_PU_PD(69),
  1329. R8A7740_PIN_IO_PU_PD(70), R8A7740_PIN_IO_PU_PD(71),
  1330. R8A7740_PIN_IO_PU_PD(72), R8A7740_PIN_IO_PU_PD(73),
  1331. R8A7740_PIN_IO_PU_PD(74), R8A7740_PIN_IO_PU_PD(75),
  1332. R8A7740_PIN_IO_PU_PD(76), R8A7740_PIN_IO_PU_PD(77),
  1333. R8A7740_PIN_IO_PU_PD(78), R8A7740_PIN_IO_PU_PD(79),
  1334. R8A7740_PIN_IO_PU_PD(80), R8A7740_PIN_IO_PU_PD(81),
  1335. R8A7740_PIN_IO(82), R8A7740_PIN_IO_PU_PD(83),
  1336. R8A7740_PIN_IO(84), R8A7740_PIN_IO_PD(85),
  1337. R8A7740_PIN_IO_PD(86), R8A7740_PIN_IO_PD(87),
  1338. R8A7740_PIN_IO_PD(88), R8A7740_PIN_IO_PD(89),
  1339. R8A7740_PIN_IO_PD(90), R8A7740_PIN_IO_PU_PD(91),
  1340. R8A7740_PIN_IO_PU_PD(92), R8A7740_PIN_IO_PU_PD(93),
  1341. R8A7740_PIN_IO_PU_PD(94), R8A7740_PIN_IO_PU_PD(95),
  1342. R8A7740_PIN_IO_PU_PD(96), R8A7740_PIN_IO_PU_PD(97),
  1343. R8A7740_PIN_IO_PU_PD(98), R8A7740_PIN_IO_PU_PD(99),
  1344. R8A7740_PIN_IO_PU_PD(100), R8A7740_PIN_IO(101),
  1345. R8A7740_PIN_IO_PU(102), R8A7740_PIN_IO_PU_PD(103),
  1346. R8A7740_PIN_IO_PU(104), R8A7740_PIN_IO_PU(105),
  1347. R8A7740_PIN_IO_PU_PD(106), R8A7740_PIN_IO(107),
  1348. R8A7740_PIN_IO(108), R8A7740_PIN_IO(109),
  1349. R8A7740_PIN_IO(110), R8A7740_PIN_IO(111),
  1350. R8A7740_PIN_IO(112), R8A7740_PIN_IO(113),
  1351. R8A7740_PIN_IO_PU_PD(114), R8A7740_PIN_IO(115),
  1352. R8A7740_PIN_IO_PD(116), R8A7740_PIN_IO_PD(117),
  1353. R8A7740_PIN_IO_PD(118), R8A7740_PIN_IO_PD(119),
  1354. R8A7740_PIN_IO_PD(120), R8A7740_PIN_IO_PD(121),
  1355. R8A7740_PIN_IO_PD(122), R8A7740_PIN_IO_PD(123),
  1356. R8A7740_PIN_IO_PD(124), R8A7740_PIN_IO(125),
  1357. R8A7740_PIN_IO(126), R8A7740_PIN_IO(127),
  1358. R8A7740_PIN_IO(128), R8A7740_PIN_IO(129),
  1359. R8A7740_PIN_IO(130), R8A7740_PIN_IO(131),
  1360. R8A7740_PIN_IO(132), R8A7740_PIN_IO(133),
  1361. R8A7740_PIN_IO(134), R8A7740_PIN_IO(135),
  1362. R8A7740_PIN_IO(136), R8A7740_PIN_IO(137),
  1363. R8A7740_PIN_IO(138), R8A7740_PIN_IO(139),
  1364. R8A7740_PIN_IO(140), R8A7740_PIN_IO(141),
  1365. R8A7740_PIN_IO_PU(142), R8A7740_PIN_IO_PU(143),
  1366. R8A7740_PIN_IO_PU(144), R8A7740_PIN_IO_PU(145),
  1367. R8A7740_PIN_IO_PU(146), R8A7740_PIN_IO_PU(147),
  1368. R8A7740_PIN_IO_PU(148), R8A7740_PIN_IO_PU(149),
  1369. R8A7740_PIN_IO_PU(150), R8A7740_PIN_IO_PU(151),
  1370. R8A7740_PIN_IO_PU(152), R8A7740_PIN_IO_PU(153),
  1371. R8A7740_PIN_IO_PU(154), R8A7740_PIN_IO_PU(155),
  1372. R8A7740_PIN_IO_PU(156), R8A7740_PIN_IO_PU(157),
  1373. R8A7740_PIN_IO_PD(158), R8A7740_PIN_IO_PD(159),
  1374. R8A7740_PIN_IO_PU_PD(160), R8A7740_PIN_IO_PD(161),
  1375. R8A7740_PIN_IO_PD(162), R8A7740_PIN_IO_PD(163),
  1376. R8A7740_PIN_IO_PD(164), R8A7740_PIN_IO_PD(165),
  1377. R8A7740_PIN_IO_PU(166), R8A7740_PIN_IO_PU(167),
  1378. R8A7740_PIN_IO_PU(168), R8A7740_PIN_IO_PU(169),
  1379. R8A7740_PIN_IO_PU(170), R8A7740_PIN_IO_PU(171),
  1380. R8A7740_PIN_IO_PD(172), R8A7740_PIN_IO_PD(173),
  1381. R8A7740_PIN_IO_PD(174), R8A7740_PIN_IO_PD(175),
  1382. R8A7740_PIN_IO_PU(176), R8A7740_PIN_IO_PU_PD(177),
  1383. R8A7740_PIN_IO_PU(178), R8A7740_PIN_IO_PD(179),
  1384. R8A7740_PIN_IO_PD(180), R8A7740_PIN_IO_PU(181),
  1385. R8A7740_PIN_IO_PU(182), R8A7740_PIN_IO(183),
  1386. R8A7740_PIN_IO_PD(184), R8A7740_PIN_IO_PD(185),
  1387. R8A7740_PIN_IO_PD(186), R8A7740_PIN_IO_PD(187),
  1388. R8A7740_PIN_IO_PD(188), R8A7740_PIN_IO_PD(189),
  1389. R8A7740_PIN_IO_PD(190), R8A7740_PIN_IO_PD(191),
  1390. R8A7740_PIN_IO_PD(192), R8A7740_PIN_IO_PU_PD(193),
  1391. R8A7740_PIN_IO_PU_PD(194), R8A7740_PIN_IO_PD(195),
  1392. R8A7740_PIN_IO_PU_PD(196), R8A7740_PIN_IO_PD(197),
  1393. R8A7740_PIN_IO_PU_PD(198), R8A7740_PIN_IO_PU_PD(199),
  1394. R8A7740_PIN_IO_PU_PD(200), R8A7740_PIN_IO_PU(201),
  1395. R8A7740_PIN_IO_PU_PD(202), R8A7740_PIN_IO(203),
  1396. R8A7740_PIN_IO_PU_PD(204), R8A7740_PIN_IO_PU_PD(205),
  1397. R8A7740_PIN_IO_PU_PD(206), R8A7740_PIN_IO_PU_PD(207),
  1398. R8A7740_PIN_IO_PU_PD(208), R8A7740_PIN_IO_PD(209),
  1399. R8A7740_PIN_IO_PD(210), R8A7740_PIN_IO_PD(211),
  1400. };
  1401. /* - BSC -------------------------------------------------------------------- */
  1402. static const unsigned int bsc_data8_pins[] = {
  1403. /* D[0:7] */
  1404. 157, 156, 155, 154, 153, 152, 151, 150,
  1405. };
  1406. static const unsigned int bsc_data8_mux[] = {
  1407. D0_NAF0_MARK, D1_NAF1_MARK, D2_NAF2_MARK, D3_NAF3_MARK,
  1408. D4_NAF4_MARK, D5_NAF5_MARK, D6_NAF6_MARK, D7_NAF7_MARK,
  1409. };
  1410. static const unsigned int bsc_data16_pins[] = {
  1411. /* D[0:15] */
  1412. 157, 156, 155, 154, 153, 152, 151, 150,
  1413. 149, 148, 147, 146, 145, 144, 143, 142,
  1414. };
  1415. static const unsigned int bsc_data16_mux[] = {
  1416. D0_NAF0_MARK, D1_NAF1_MARK, D2_NAF2_MARK, D3_NAF3_MARK,
  1417. D4_NAF4_MARK, D5_NAF5_MARK, D6_NAF6_MARK, D7_NAF7_MARK,
  1418. D8_NAF8_MARK, D9_NAF9_MARK, D10_NAF10_MARK, D11_NAF11_MARK,
  1419. D12_NAF12_MARK, D13_NAF13_MARK, D14_NAF14_MARK, D15_NAF15_MARK,
  1420. };
  1421. static const unsigned int bsc_data32_pins[] = {
  1422. /* D[0:31] */
  1423. 157, 156, 155, 154, 153, 152, 151, 150,
  1424. 149, 148, 147, 146, 145, 144, 143, 142,
  1425. 171, 170, 169, 168, 167, 166, 173, 172,
  1426. 165, 164, 163, 162, 161, 160, 159, 158,
  1427. };
  1428. static const unsigned int bsc_data32_mux[] = {
  1429. D0_NAF0_MARK, D1_NAF1_MARK, D2_NAF2_MARK, D3_NAF3_MARK,
  1430. D4_NAF4_MARK, D5_NAF5_MARK, D6_NAF6_MARK, D7_NAF7_MARK,
  1431. D8_NAF8_MARK, D9_NAF9_MARK, D10_NAF10_MARK, D11_NAF11_MARK,
  1432. D12_NAF12_MARK, D13_NAF13_MARK, D14_NAF14_MARK, D15_NAF15_MARK,
  1433. D16_MARK, D17_MARK, D18_MARK, D19_MARK,
  1434. D20_MARK, D21_MARK, D22_MARK, D23_MARK,
  1435. D24_MARK, D25_MARK, D26_MARK, D27_MARK,
  1436. D28_MARK, D29_MARK, D30_MARK, D31_MARK,
  1437. };
  1438. static const unsigned int bsc_cs0_pins[] = {
  1439. /* CS */
  1440. 109,
  1441. };
  1442. static const unsigned int bsc_cs0_mux[] = {
  1443. CS0_MARK,
  1444. };
  1445. static const unsigned int bsc_cs2_pins[] = {
  1446. /* CS */
  1447. 110,
  1448. };
  1449. static const unsigned int bsc_cs2_mux[] = {
  1450. CS2_MARK,
  1451. };
  1452. static const unsigned int bsc_cs4_pins[] = {
  1453. /* CS */
  1454. 111,
  1455. };
  1456. static const unsigned int bsc_cs4_mux[] = {
  1457. CS4_MARK,
  1458. };
  1459. static const unsigned int bsc_cs5a_0_pins[] = {
  1460. /* CS */
  1461. 105,
  1462. };
  1463. static const unsigned int bsc_cs5a_0_mux[] = {
  1464. CS5A_PORT105_MARK,
  1465. };
  1466. static const unsigned int bsc_cs5a_1_pins[] = {
  1467. /* CS */
  1468. 19,
  1469. };
  1470. static const unsigned int bsc_cs5a_1_mux[] = {
  1471. CS5A_PORT19_MARK,
  1472. };
  1473. static const unsigned int bsc_cs5b_pins[] = {
  1474. /* CS */
  1475. 103,
  1476. };
  1477. static const unsigned int bsc_cs5b_mux[] = {
  1478. CS5B_MARK,
  1479. };
  1480. static const unsigned int bsc_cs6a_pins[] = {
  1481. /* CS */
  1482. 104,
  1483. };
  1484. static const unsigned int bsc_cs6a_mux[] = {
  1485. CS6A_MARK,
  1486. };
  1487. static const unsigned int bsc_rd_we8_pins[] = {
  1488. /* RD, WE[0] */
  1489. 115, 113,
  1490. };
  1491. static const unsigned int bsc_rd_we8_mux[] = {
  1492. RD_FSC_MARK, WE0_FWE_MARK,
  1493. };
  1494. static const unsigned int bsc_rd_we16_pins[] = {
  1495. /* RD, WE[0:1] */
  1496. 115, 113, 112,
  1497. };
  1498. static const unsigned int bsc_rd_we16_mux[] = {
  1499. RD_FSC_MARK, WE0_FWE_MARK, WE1_MARK,
  1500. };
  1501. static const unsigned int bsc_rd_we32_pins[] = {
  1502. /* RD, WE[0:3] */
  1503. 115, 113, 112, 108, 107,
  1504. };
  1505. static const unsigned int bsc_rd_we32_mux[] = {
  1506. RD_FSC_MARK, WE0_FWE_MARK, WE1_MARK, WE2_ICIORD_MARK, WE3_ICIOWR_MARK,
  1507. };
  1508. static const unsigned int bsc_bs_pins[] = {
  1509. /* BS */
  1510. 175,
  1511. };
  1512. static const unsigned int bsc_bs_mux[] = {
  1513. BS_MARK,
  1514. };
  1515. static const unsigned int bsc_rdwr_pins[] = {
  1516. /* RDWR */
  1517. 114,
  1518. };
  1519. static const unsigned int bsc_rdwr_mux[] = {
  1520. RDWR_MARK,
  1521. };
  1522. /* - CEU0 ------------------------------------------------------------------- */
  1523. static const unsigned int ceu0_data_0_7_pins[] = {
  1524. /* D[0:7] */
  1525. 34, 33, 32, 31, 30, 29, 28, 27,
  1526. };
  1527. static const unsigned int ceu0_data_0_7_mux[] = {
  1528. VIO0_D0_MARK, VIO0_D1_MARK, VIO0_D2_MARK, VIO0_D3_MARK,
  1529. VIO0_D4_MARK, VIO0_D5_MARK, VIO0_D6_MARK, VIO0_D7_MARK,
  1530. };
  1531. static const unsigned int ceu0_data_8_15_0_pins[] = {
  1532. /* D[8:15] */
  1533. 182, 181, 180, 179, 178, 26, 25, 24,
  1534. };
  1535. static const unsigned int ceu0_data_8_15_0_mux[] = {
  1536. VIO0_D8_MARK, VIO0_D9_MARK, VIO0_D10_MARK, VIO0_D11_MARK,
  1537. VIO0_D12_MARK, VIO0_D13_PORT26_MARK, VIO0_D14_PORT25_MARK,
  1538. VIO0_D15_PORT24_MARK,
  1539. };
  1540. static const unsigned int ceu0_data_8_15_1_pins[] = {
  1541. /* D[8:15] */
  1542. 182, 181, 180, 179, 178, 22, 95, 96,
  1543. };
  1544. static const unsigned int ceu0_data_8_15_1_mux[] = {
  1545. VIO0_D8_MARK, VIO0_D9_MARK, VIO0_D10_MARK, VIO0_D11_MARK,
  1546. VIO0_D12_MARK, VIO0_D13_PORT22_MARK, VIO0_D14_PORT95_MARK,
  1547. VIO0_D15_PORT96_MARK,
  1548. };
  1549. static const unsigned int ceu0_clk_0_pins[] = {
  1550. /* CKO */
  1551. 36,
  1552. };
  1553. static const unsigned int ceu0_clk_0_mux[] = {
  1554. VIO_CKO_MARK,
  1555. };
  1556. static const unsigned int ceu0_clk_1_pins[] = {
  1557. /* CKO */
  1558. 14,
  1559. };
  1560. static const unsigned int ceu0_clk_1_mux[] = {
  1561. VIO_CKO1_MARK,
  1562. };
  1563. static const unsigned int ceu0_clk_2_pins[] = {
  1564. /* CKO */
  1565. 15,
  1566. };
  1567. static const unsigned int ceu0_clk_2_mux[] = {
  1568. VIO_CKO2_MARK,
  1569. };
  1570. static const unsigned int ceu0_sync_pins[] = {
  1571. /* CLK, VD, HD */
  1572. 35, 39, 37,
  1573. };
  1574. static const unsigned int ceu0_sync_mux[] = {
  1575. VIO0_CLK_MARK, VIO0_VD_MARK, VIO0_HD_MARK,
  1576. };
  1577. static const unsigned int ceu0_field_pins[] = {
  1578. /* FIELD */
  1579. 38,
  1580. };
  1581. static const unsigned int ceu0_field_mux[] = {
  1582. VIO0_FIELD_MARK,
  1583. };
  1584. /* - CEU1 ------------------------------------------------------------------- */
  1585. static const unsigned int ceu1_data_pins[] = {
  1586. /* D[0:7] */
  1587. 182, 181, 180, 179, 178, 26, 25, 24,
  1588. };
  1589. static const unsigned int ceu1_data_mux[] = {
  1590. VIO1_D0_MARK, VIO1_D1_MARK, VIO1_D2_MARK, VIO1_D3_MARK,
  1591. VIO1_D4_MARK, VIO1_D5_MARK, VIO1_D6_MARK, VIO1_D7_MARK,
  1592. };
  1593. static const unsigned int ceu1_clk_pins[] = {
  1594. /* CKO */
  1595. 23,
  1596. };
  1597. static const unsigned int ceu1_clk_mux[] = {
  1598. VIO_CKO_1_MARK,
  1599. };
  1600. static const unsigned int ceu1_sync_pins[] = {
  1601. /* CLK, VD, HD */
  1602. 197, 198, 160,
  1603. };
  1604. static const unsigned int ceu1_sync_mux[] = {
  1605. VIO1_CLK_MARK, VIO1_VD_MARK, VIO1_HD_MARK,
  1606. };
  1607. static const unsigned int ceu1_field_pins[] = {
  1608. /* FIELD */
  1609. 21,
  1610. };
  1611. static const unsigned int ceu1_field_mux[] = {
  1612. VIO1_FIELD_MARK,
  1613. };
  1614. /* - FSIA ------------------------------------------------------------------- */
  1615. static const unsigned int fsia_mclk_in_pins[] = {
  1616. /* CK */
  1617. 11,
  1618. };
  1619. static const unsigned int fsia_mclk_in_mux[] = {
  1620. FSIACK_MARK,
  1621. };
  1622. static const unsigned int fsia_mclk_out_pins[] = {
  1623. /* OMC */
  1624. 10,
  1625. };
  1626. static const unsigned int fsia_mclk_out_mux[] = {
  1627. FSIAOMC_MARK,
  1628. };
  1629. static const unsigned int fsia_sclk_in_pins[] = {
  1630. /* ILR, IBT */
  1631. 12, 13,
  1632. };
  1633. static const unsigned int fsia_sclk_in_mux[] = {
  1634. FSIAILR_MARK, FSIAIBT_MARK,
  1635. };
  1636. static const unsigned int fsia_sclk_out_pins[] = {
  1637. /* OLR, OBT */
  1638. 7, 8,
  1639. };
  1640. static const unsigned int fsia_sclk_out_mux[] = {
  1641. FSIAOLR_MARK, FSIAOBT_MARK,
  1642. };
  1643. static const unsigned int fsia_data_in_0_pins[] = {
  1644. /* ISLD */
  1645. 0,
  1646. };
  1647. static const unsigned int fsia_data_in_0_mux[] = {
  1648. FSIAISLD_PORT0_MARK,
  1649. };
  1650. static const unsigned int fsia_data_in_1_pins[] = {
  1651. /* ISLD */
  1652. 5,
  1653. };
  1654. static const unsigned int fsia_data_in_1_mux[] = {
  1655. FSIAISLD_PORT5_MARK,
  1656. };
  1657. static const unsigned int fsia_data_out_0_pins[] = {
  1658. /* OSLD */
  1659. 9,
  1660. };
  1661. static const unsigned int fsia_data_out_0_mux[] = {
  1662. FSIAOSLD_MARK,
  1663. };
  1664. static const unsigned int fsia_data_out_1_pins[] = {
  1665. /* OSLD */
  1666. 0,
  1667. };
  1668. static const unsigned int fsia_data_out_1_mux[] = {
  1669. FSIAOSLD1_MARK,
  1670. };
  1671. static const unsigned int fsia_data_out_2_pins[] = {
  1672. /* OSLD */
  1673. 1,
  1674. };
  1675. static const unsigned int fsia_data_out_2_mux[] = {
  1676. FSIAOSLD2_MARK,
  1677. };
  1678. static const unsigned int fsia_spdif_0_pins[] = {
  1679. /* SPDIF */
  1680. 9,
  1681. };
  1682. static const unsigned int fsia_spdif_0_mux[] = {
  1683. FSIASPDIF_PORT9_MARK,
  1684. };
  1685. static const unsigned int fsia_spdif_1_pins[] = {
  1686. /* SPDIF */
  1687. 18,
  1688. };
  1689. static const unsigned int fsia_spdif_1_mux[] = {
  1690. FSIASPDIF_PORT18_MARK,
  1691. };
  1692. /* - FSIB ------------------------------------------------------------------- */
  1693. static const unsigned int fsib_mclk_in_pins[] = {
  1694. /* CK */
  1695. 11,
  1696. };
  1697. static const unsigned int fsib_mclk_in_mux[] = {
  1698. FSIBCK_MARK,
  1699. };
  1700. /* - GETHER ----------------------------------------------------------------- */
  1701. static const unsigned int gether_rmii_pins[] = {
  1702. /* RXD[0:1], RX_ER, CRS_DV, TXD[0:1], TX_EN, REF_CLK, MDC, MDIO */
  1703. 195, 196, 194, 193, 200, 201, 199, 159, 202, 208,
  1704. };
  1705. static const unsigned int gether_rmii_mux[] = {
  1706. RMII_RXD0_MARK, RMII_RXD1_MARK, RMII_RX_ER_MARK, RMII_CRS_DV_MARK,
  1707. RMII_TXD0_MARK, RMII_TXD1_MARK, RMII_TX_EN_MARK, RMII_REF50CK_MARK,
  1708. RMII_MDC_MARK, RMII_MDIO_MARK,
  1709. };
  1710. static const unsigned int gether_mii_pins[] = {
  1711. /* RXD[0:3], RX_CLK, RX_DV, RX_ER
  1712. * TXD[0:3], TX_CLK, TX_EN, TX_ER
  1713. * CRS, COL, MDC, MDIO,
  1714. */
  1715. 185, 186, 187, 188, 174, 161, 204,
  1716. 171, 170, 169, 168, 184, 183, 203,
  1717. 205, 163, 206, 207,
  1718. };
  1719. static const unsigned int gether_mii_mux[] = {
  1720. ET_ERXD0_MARK, ET_ERXD1_MARK, ET_ERXD2_MARK, ET_ERXD3_MARK,
  1721. ET_RX_CLK_MARK, ET_RX_DV_MARK, ET_RX_ER_MARK,
  1722. ET_ETXD0_MARK, ET_ETXD1_MARK, ET_ETXD2_MARK, ET_ETXD3_MARK,
  1723. ET_TX_CLK_MARK, ET_TX_EN_MARK, ET_TX_ER_MARK,
  1724. ET_CRS_MARK, ET_COL_MARK, ET_MDC_MARK, ET_MDIO_MARK,
  1725. };
  1726. static const unsigned int gether_gmii_pins[] = {
  1727. /* RXD[0:7], RX_CLK, RX_DV, RX_ER
  1728. * TXD[0:7], GTX_CLK, TX_CLK, TX_EN, TX_ER
  1729. * CRS, COL, MDC, MDIO, REF125CK_MARK,
  1730. */
  1731. 185, 186, 187, 188, 189, 190, 191, 192, 174, 161, 204,
  1732. 171, 170, 169, 168, 167, 166, 173, 172, 176, 184, 183, 203,
  1733. 205, 163, 206, 207,
  1734. };
  1735. static const unsigned int gether_gmii_mux[] = {
  1736. ET_ERXD0_MARK, ET_ERXD1_MARK, ET_ERXD2_MARK, ET_ERXD3_MARK,
  1737. ET_ERXD4_MARK, ET_ERXD5_MARK, ET_ERXD6_MARK, ET_ERXD7_MARK,
  1738. ET_RX_CLK_MARK, ET_RX_DV_MARK, ET_RX_ER_MARK,
  1739. ET_ETXD0_MARK, ET_ETXD1_MARK, ET_ETXD2_MARK, ET_ETXD3_MARK,
  1740. ET_ETXD4_MARK, ET_ETXD5_MARK, ET_ETXD6_MARK, ET_ETXD7_MARK,
  1741. ET_GTX_CLK_MARK, ET_TX_CLK_MARK, ET_TX_EN_MARK, ET_TX_ER_MARK,
  1742. ET_CRS_MARK, ET_COL_MARK, ET_MDC_MARK, ET_MDIO_MARK,
  1743. RMII_REF125CK_MARK,
  1744. };
  1745. static const unsigned int gether_int_pins[] = {
  1746. /* PHY_INT */
  1747. 164,
  1748. };
  1749. static const unsigned int gether_int_mux[] = {
  1750. ET_PHY_INT_MARK,
  1751. };
  1752. static const unsigned int gether_link_pins[] = {
  1753. /* LINK */
  1754. 177,
  1755. };
  1756. static const unsigned int gether_link_mux[] = {
  1757. ET_LINK_MARK,
  1758. };
  1759. static const unsigned int gether_wol_pins[] = {
  1760. /* WOL */
  1761. 175,
  1762. };
  1763. static const unsigned int gether_wol_mux[] = {
  1764. ET_WOL_MARK,
  1765. };
  1766. /* - HDMI ------------------------------------------------------------------- */
  1767. static const unsigned int hdmi_pins[] = {
  1768. /* HPD, CEC */
  1769. 210, 211,
  1770. };
  1771. static const unsigned int hdmi_mux[] = {
  1772. HDMI_HPD_MARK, HDMI_CEC_MARK,
  1773. };
  1774. /* - INTC ------------------------------------------------------------------- */
  1775. IRQC_PINS_MUX(0, 0, 2);
  1776. IRQC_PINS_MUX(0, 1, 13);
  1777. IRQC_PIN_MUX(1, 20);
  1778. IRQC_PINS_MUX(2, 0, 11);
  1779. IRQC_PINS_MUX(2, 1, 12);
  1780. IRQC_PINS_MUX(3, 0, 10);
  1781. IRQC_PINS_MUX(3, 1, 14);
  1782. IRQC_PINS_MUX(4, 0, 15);
  1783. IRQC_PINS_MUX(4, 1, 172);
  1784. IRQC_PINS_MUX(5, 0, 0);
  1785. IRQC_PINS_MUX(5, 1, 1);
  1786. IRQC_PINS_MUX(6, 0, 121);
  1787. IRQC_PINS_MUX(6, 1, 173);
  1788. IRQC_PINS_MUX(7, 0, 120);
  1789. IRQC_PINS_MUX(7, 1, 209);
  1790. IRQC_PIN_MUX(8, 119);
  1791. IRQC_PINS_MUX(9, 0, 118);
  1792. IRQC_PINS_MUX(9, 1, 210);
  1793. IRQC_PIN_MUX(10, 19);
  1794. IRQC_PIN_MUX(11, 104);
  1795. IRQC_PINS_MUX(12, 0, 42);
  1796. IRQC_PINS_MUX(12, 1, 97);
  1797. IRQC_PINS_MUX(13, 0, 64);
  1798. IRQC_PINS_MUX(13, 1, 98);
  1799. IRQC_PINS_MUX(14, 0, 63);
  1800. IRQC_PINS_MUX(14, 1, 99);
  1801. IRQC_PINS_MUX(15, 0, 62);
  1802. IRQC_PINS_MUX(15, 1, 100);
  1803. IRQC_PINS_MUX(16, 0, 68);
  1804. IRQC_PINS_MUX(16, 1, 211);
  1805. IRQC_PIN_MUX(17, 69);
  1806. IRQC_PIN_MUX(18, 70);
  1807. IRQC_PIN_MUX(19, 71);
  1808. IRQC_PIN_MUX(20, 67);
  1809. IRQC_PIN_MUX(21, 202);
  1810. IRQC_PIN_MUX(22, 95);
  1811. IRQC_PIN_MUX(23, 96);
  1812. IRQC_PIN_MUX(24, 180);
  1813. IRQC_PIN_MUX(25, 38);
  1814. IRQC_PINS_MUX(26, 0, 58);
  1815. IRQC_PINS_MUX(26, 1, 81);
  1816. IRQC_PINS_MUX(27, 0, 57);
  1817. IRQC_PINS_MUX(27, 1, 168);
  1818. IRQC_PINS_MUX(28, 0, 56);
  1819. IRQC_PINS_MUX(28, 1, 169);
  1820. IRQC_PINS_MUX(29, 0, 50);
  1821. IRQC_PINS_MUX(29, 1, 170);
  1822. IRQC_PINS_MUX(30, 0, 49);
  1823. IRQC_PINS_MUX(30, 1, 171);
  1824. IRQC_PINS_MUX(31, 0, 41);
  1825. IRQC_PINS_MUX(31, 1, 167);
  1826. /* - LCD0 ------------------------------------------------------------------- */
  1827. static const unsigned int lcd0_data8_pins[] = {
  1828. /* D[0:7] */
  1829. 58, 57, 56, 55, 54, 53, 52, 51,
  1830. };
  1831. static const unsigned int lcd0_data8_mux[] = {
  1832. LCD0_D0_MARK, LCD0_D1_MARK, LCD0_D2_MARK, LCD0_D3_MARK,
  1833. LCD0_D4_MARK, LCD0_D5_MARK, LCD0_D6_MARK, LCD0_D7_MARK,
  1834. };
  1835. static const unsigned int lcd0_data9_pins[] = {
  1836. /* D[0:8] */
  1837. 58, 57, 56, 55, 54, 53, 52, 51,
  1838. 50,
  1839. };
  1840. static const unsigned int lcd0_data9_mux[] = {
  1841. LCD0_D0_MARK, LCD0_D1_MARK, LCD0_D2_MARK, LCD0_D3_MARK,
  1842. LCD0_D4_MARK, LCD0_D5_MARK, LCD0_D6_MARK, LCD0_D7_MARK,
  1843. LCD0_D8_MARK,
  1844. };
  1845. static const unsigned int lcd0_data12_pins[] = {
  1846. /* D[0:11] */
  1847. 58, 57, 56, 55, 54, 53, 52, 51,
  1848. 50, 49, 48, 47,
  1849. };
  1850. static const unsigned int lcd0_data12_mux[] = {
  1851. LCD0_D0_MARK, LCD0_D1_MARK, LCD0_D2_MARK, LCD0_D3_MARK,
  1852. LCD0_D4_MARK, LCD0_D5_MARK, LCD0_D6_MARK, LCD0_D7_MARK,
  1853. LCD0_D8_MARK, LCD0_D9_MARK, LCD0_D10_MARK, LCD0_D11_MARK,
  1854. };
  1855. static const unsigned int lcd0_data16_pins[] = {
  1856. /* D[0:15] */
  1857. 58, 57, 56, 55, 54, 53, 52, 51,
  1858. 50, 49, 48, 47, 46, 45, 44, 43,
  1859. };
  1860. static const unsigned int lcd0_data16_mux[] = {
  1861. LCD0_D0_MARK, LCD0_D1_MARK, LCD0_D2_MARK, LCD0_D3_MARK,
  1862. LCD0_D4_MARK, LCD0_D5_MARK, LCD0_D6_MARK, LCD0_D7_MARK,
  1863. LCD0_D8_MARK, LCD0_D9_MARK, LCD0_D10_MARK, LCD0_D11_MARK,
  1864. LCD0_D12_MARK, LCD0_D13_MARK, LCD0_D14_MARK, LCD0_D15_MARK,
  1865. };
  1866. static const unsigned int lcd0_data18_pins[] = {
  1867. /* D[0:17] */
  1868. 58, 57, 56, 55, 54, 53, 52, 51,
  1869. 50, 49, 48, 47, 46, 45, 44, 43,
  1870. 42, 41,
  1871. };
  1872. static const unsigned int lcd0_data18_mux[] = {
  1873. LCD0_D0_MARK, LCD0_D1_MARK, LCD0_D2_MARK, LCD0_D3_MARK,
  1874. LCD0_D4_MARK, LCD0_D5_MARK, LCD0_D6_MARK, LCD0_D7_MARK,
  1875. LCD0_D8_MARK, LCD0_D9_MARK, LCD0_D10_MARK, LCD0_D11_MARK,
  1876. LCD0_D12_MARK, LCD0_D13_MARK, LCD0_D14_MARK, LCD0_D15_MARK,
  1877. LCD0_D16_MARK, LCD0_D17_MARK,
  1878. };
  1879. static const unsigned int lcd0_data24_0_pins[] = {
  1880. /* D[0:23] */
  1881. 58, 57, 56, 55, 54, 53, 52, 51,
  1882. 50, 49, 48, 47, 46, 45, 44, 43,
  1883. 42, 41, 40, 4, 3, 2, 0, 1,
  1884. };
  1885. static const unsigned int lcd0_data24_0_mux[] = {
  1886. LCD0_D0_MARK, LCD0_D1_MARK, LCD0_D2_MARK, LCD0_D3_MARK,
  1887. LCD0_D4_MARK, LCD0_D5_MARK, LCD0_D6_MARK, LCD0_D7_MARK,
  1888. LCD0_D8_MARK, LCD0_D9_MARK, LCD0_D10_MARK, LCD0_D11_MARK,
  1889. LCD0_D12_MARK, LCD0_D13_MARK, LCD0_D14_MARK, LCD0_D15_MARK,
  1890. LCD0_D16_MARK, LCD0_D17_MARK, LCD0_D18_PORT40_MARK, LCD0_D19_PORT4_MARK,
  1891. LCD0_D20_PORT3_MARK, LCD0_D21_PORT2_MARK, LCD0_D22_PORT0_MARK,
  1892. LCD0_D23_PORT1_MARK,
  1893. };
  1894. static const unsigned int lcd0_data24_1_pins[] = {
  1895. /* D[0:23] */
  1896. 58, 57, 56, 55, 54, 53, 52, 51,
  1897. 50, 49, 48, 47, 46, 45, 44, 43,
  1898. 42, 41, 163, 162, 161, 158, 160, 159,
  1899. };
  1900. static const unsigned int lcd0_data24_1_mux[] = {
  1901. LCD0_D0_MARK, LCD0_D1_MARK, LCD0_D2_MARK, LCD0_D3_MARK,
  1902. LCD0_D4_MARK, LCD0_D5_MARK, LCD0_D6_MARK, LCD0_D7_MARK,
  1903. LCD0_D8_MARK, LCD0_D9_MARK, LCD0_D10_MARK, LCD0_D11_MARK,
  1904. LCD0_D16_MARK, LCD0_D17_MARK, LCD0_D18_PORT163_MARK,
  1905. LCD0_D19_PORT162_MARK, LCD0_D20_PORT161_MARK, LCD0_D21_PORT158_MARK,
  1906. LCD0_D22_PORT160_MARK, LCD0_D23_PORT159_MARK,
  1907. };
  1908. static const unsigned int lcd0_display_pins[] = {
  1909. /* DON, VCPWC, VEPWC */
  1910. 61, 59, 60,
  1911. };
  1912. static const unsigned int lcd0_display_mux[] = {
  1913. LCD0_DON_MARK, LCD0_VCPWC_MARK, LCD0_VEPWC_MARK,
  1914. };
  1915. static const unsigned int lcd0_lclk_0_pins[] = {
  1916. /* LCLK */
  1917. 102,
  1918. };
  1919. static const unsigned int lcd0_lclk_0_mux[] = {
  1920. LCD0_LCLK_PORT102_MARK,
  1921. };
  1922. static const unsigned int lcd0_lclk_1_pins[] = {
  1923. /* LCLK */
  1924. 165,
  1925. };
  1926. static const unsigned int lcd0_lclk_1_mux[] = {
  1927. LCD0_LCLK_PORT165_MARK,
  1928. };
  1929. static const unsigned int lcd0_sync_pins[] = {
  1930. /* VSYN, HSYN, DCK, DISP */
  1931. 63, 64, 62, 65,
  1932. };
  1933. static const unsigned int lcd0_sync_mux[] = {
  1934. LCD0_VSYN_MARK, LCD0_HSYN_MARK, LCD0_DCK_MARK, LCD0_DISP_MARK,
  1935. };
  1936. static const unsigned int lcd0_sys_pins[] = {
  1937. /* CS, WR, RD, RS */
  1938. 64, 62, 164, 65,
  1939. };
  1940. static const unsigned int lcd0_sys_mux[] = {
  1941. LCD0_CS_MARK, LCD0_WR_MARK, LCD0_RD_MARK, LCD0_RS_MARK,
  1942. };
  1943. /* - LCD1 ------------------------------------------------------------------- */
  1944. static const unsigned int lcd1_data8_pins[] = {
  1945. /* D[0:7] */
  1946. 4, 3, 2, 1, 0, 91, 92, 23,
  1947. };
  1948. static const unsigned int lcd1_data8_mux[] = {
  1949. LCD1_D0_MARK, LCD1_D1_MARK, LCD1_D2_MARK, LCD1_D3_MARK,
  1950. LCD1_D4_MARK, LCD1_D5_MARK, LCD1_D6_MARK, LCD1_D7_MARK,
  1951. };
  1952. static const unsigned int lcd1_data9_pins[] = {
  1953. /* D[0:8] */
  1954. 4, 3, 2, 1, 0, 91, 92, 23,
  1955. 93,
  1956. };
  1957. static const unsigned int lcd1_data9_mux[] = {
  1958. LCD1_D0_MARK, LCD1_D1_MARK, LCD1_D2_MARK, LCD1_D3_MARK,
  1959. LCD1_D4_MARK, LCD1_D5_MARK, LCD1_D6_MARK, LCD1_D7_MARK,
  1960. LCD1_D8_MARK,
  1961. };
  1962. static const unsigned int lcd1_data12_pins[] = {
  1963. /* D[0:11] */
  1964. 4, 3, 2, 1, 0, 91, 92, 23,
  1965. 93, 94, 21, 201,
  1966. };
  1967. static const unsigned int lcd1_data12_mux[] = {
  1968. LCD1_D0_MARK, LCD1_D1_MARK, LCD1_D2_MARK, LCD1_D3_MARK,
  1969. LCD1_D4_MARK, LCD1_D5_MARK, LCD1_D6_MARK, LCD1_D7_MARK,
  1970. LCD1_D8_MARK, LCD1_D9_MARK, LCD1_D10_MARK, LCD1_D11_MARK,
  1971. };
  1972. static const unsigned int lcd1_data16_pins[] = {
  1973. /* D[0:15] */
  1974. 4, 3, 2, 1, 0, 91, 92, 23,
  1975. 93, 94, 21, 201, 200, 199, 196, 195,
  1976. };
  1977. static const unsigned int lcd1_data16_mux[] = {
  1978. LCD1_D0_MARK, LCD1_D1_MARK, LCD1_D2_MARK, LCD1_D3_MARK,
  1979. LCD1_D4_MARK, LCD1_D5_MARK, LCD1_D6_MARK, LCD1_D7_MARK,
  1980. LCD1_D8_MARK, LCD1_D9_MARK, LCD1_D10_MARK, LCD1_D11_MARK,
  1981. LCD1_D12_MARK, LCD1_D13_MARK, LCD1_D14_MARK, LCD1_D15_MARK,
  1982. };
  1983. static const unsigned int lcd1_data18_pins[] = {
  1984. /* D[0:17] */
  1985. 4, 3, 2, 1, 0, 91, 92, 23,
  1986. 93, 94, 21, 201, 200, 199, 196, 195,
  1987. 194, 193,
  1988. };
  1989. static const unsigned int lcd1_data18_mux[] = {
  1990. LCD1_D0_MARK, LCD1_D1_MARK, LCD1_D2_MARK, LCD1_D3_MARK,
  1991. LCD1_D4_MARK, LCD1_D5_MARK, LCD1_D6_MARK, LCD1_D7_MARK,
  1992. LCD1_D8_MARK, LCD1_D9_MARK, LCD1_D10_MARK, LCD1_D11_MARK,
  1993. LCD1_D12_MARK, LCD1_D13_MARK, LCD1_D14_MARK, LCD1_D15_MARK,
  1994. LCD1_D16_MARK, LCD1_D17_MARK,
  1995. };
  1996. static const unsigned int lcd1_data24_pins[] = {
  1997. /* D[0:23] */
  1998. 4, 3, 2, 1, 0, 91, 92, 23,
  1999. 93, 94, 21, 201, 200, 199, 196, 195,
  2000. 194, 193, 198, 197, 75, 74, 15, 14,
  2001. };
  2002. static const unsigned int lcd1_data24_mux[] = {
  2003. LCD1_D0_MARK, LCD1_D1_MARK, LCD1_D2_MARK, LCD1_D3_MARK,
  2004. LCD1_D4_MARK, LCD1_D5_MARK, LCD1_D6_MARK, LCD1_D7_MARK,
  2005. LCD1_D8_MARK, LCD1_D9_MARK, LCD1_D10_MARK, LCD1_D11_MARK,
  2006. LCD1_D12_MARK, LCD1_D13_MARK, LCD1_D14_MARK, LCD1_D15_MARK,
  2007. LCD1_D16_MARK, LCD1_D17_MARK, LCD1_D18_MARK, LCD1_D19_MARK,
  2008. LCD1_D20_MARK, LCD1_D21_MARK, LCD1_D22_MARK, LCD1_D23_MARK,
  2009. };
  2010. static const unsigned int lcd1_display_pins[] = {
  2011. /* DON, VCPWC, VEPWC */
  2012. 100, 5, 6,
  2013. };
  2014. static const unsigned int lcd1_display_mux[] = {
  2015. LCD1_DON_MARK, LCD1_VCPWC_MARK, LCD1_VEPWC_MARK,
  2016. };
  2017. static const unsigned int lcd1_lclk_pins[] = {
  2018. /* LCLK */
  2019. 40,
  2020. };
  2021. static const unsigned int lcd1_lclk_mux[] = {
  2022. LCD1_LCLK_MARK,
  2023. };
  2024. static const unsigned int lcd1_sync_pins[] = {
  2025. /* VSYN, HSYN, DCK, DISP */
  2026. 98, 97, 99, 12,
  2027. };
  2028. static const unsigned int lcd1_sync_mux[] = {
  2029. LCD1_VSYN_MARK, LCD1_HSYN_MARK, LCD1_DCK_MARK, LCD1_DISP_MARK,
  2030. };
  2031. static const unsigned int lcd1_sys_pins[] = {
  2032. /* CS, WR, RD, RS */
  2033. 97, 99, 13, 12,
  2034. };
  2035. static const unsigned int lcd1_sys_mux[] = {
  2036. LCD1_CS_MARK, LCD1_WR_MARK, LCD1_RD_MARK, LCD1_RS_MARK,
  2037. };
  2038. /* - MMCIF ------------------------------------------------------------------ */
  2039. static const unsigned int mmc0_data1_0_pins[] = {
  2040. /* D[0] */
  2041. 68,
  2042. };
  2043. static const unsigned int mmc0_data1_0_mux[] = {
  2044. MMC0_D0_PORT68_MARK,
  2045. };
  2046. static const unsigned int mmc0_data4_0_pins[] = {
  2047. /* D[0:3] */
  2048. 68, 69, 70, 71,
  2049. };
  2050. static const unsigned int mmc0_data4_0_mux[] = {
  2051. MMC0_D0_PORT68_MARK, MMC0_D1_PORT69_MARK, MMC0_D2_PORT70_MARK, MMC0_D3_PORT71_MARK,
  2052. };
  2053. static const unsigned int mmc0_data8_0_pins[] = {
  2054. /* D[0:7] */
  2055. 68, 69, 70, 71, 72, 73, 74, 75,
  2056. };
  2057. static const unsigned int mmc0_data8_0_mux[] = {
  2058. MMC0_D0_PORT68_MARK, MMC0_D1_PORT69_MARK, MMC0_D2_PORT70_MARK, MMC0_D3_PORT71_MARK,
  2059. MMC0_D4_PORT72_MARK, MMC0_D5_PORT73_MARK, MMC0_D6_PORT74_MARK, MMC0_D7_PORT75_MARK,
  2060. };
  2061. static const unsigned int mmc0_ctrl_0_pins[] = {
  2062. /* CMD, CLK */
  2063. 67, 66,
  2064. };
  2065. static const unsigned int mmc0_ctrl_0_mux[] = {
  2066. MMC0_CMD_PORT67_MARK, MMC0_CLK_PORT66_MARK,
  2067. };
  2068. static const unsigned int mmc0_data1_1_pins[] = {
  2069. /* D[0] */
  2070. 149,
  2071. };
  2072. static const unsigned int mmc0_data1_1_mux[] = {
  2073. MMC1_D0_PORT149_MARK,
  2074. };
  2075. static const unsigned int mmc0_data4_1_pins[] = {
  2076. /* D[0:3] */
  2077. 149, 148, 147, 146,
  2078. };
  2079. static const unsigned int mmc0_data4_1_mux[] = {
  2080. MMC1_D0_PORT149_MARK, MMC1_D1_PORT148_MARK, MMC1_D2_PORT147_MARK, MMC1_D3_PORT146_MARK,
  2081. };
  2082. static const unsigned int mmc0_data8_1_pins[] = {
  2083. /* D[0:7] */
  2084. 149, 148, 147, 146, 145, 144, 143, 142,
  2085. };
  2086. static const unsigned int mmc0_data8_1_mux[] = {
  2087. MMC1_D0_PORT149_MARK, MMC1_D1_PORT148_MARK, MMC1_D2_PORT147_MARK, MMC1_D3_PORT146_MARK,
  2088. MMC1_D4_PORT145_MARK, MMC1_D5_PORT144_MARK, MMC1_D6_PORT143_MARK, MMC1_D7_PORT142_MARK,
  2089. };
  2090. static const unsigned int mmc0_ctrl_1_pins[] = {
  2091. /* CMD, CLK */
  2092. 104, 103,
  2093. };
  2094. static const unsigned int mmc0_ctrl_1_mux[] = {
  2095. MMC1_CMD_PORT104_MARK, MMC1_CLK_PORT103_MARK,
  2096. };
  2097. /* - SCIFA0 ----------------------------------------------------------------- */
  2098. static const unsigned int scifa0_data_pins[] = {
  2099. /* RXD, TXD */
  2100. 197, 198,
  2101. };
  2102. static const unsigned int scifa0_data_mux[] = {
  2103. SCIFA0_RXD_MARK, SCIFA0_TXD_MARK,
  2104. };
  2105. static const unsigned int scifa0_clk_pins[] = {
  2106. /* SCK */
  2107. 188,
  2108. };
  2109. static const unsigned int scifa0_clk_mux[] = {
  2110. SCIFA0_SCK_MARK,
  2111. };
  2112. static const unsigned int scifa0_ctrl_pins[] = {
  2113. /* RTS, CTS */
  2114. 194, 193,
  2115. };
  2116. static const unsigned int scifa0_ctrl_mux[] = {
  2117. SCIFA0_RTS_MARK, SCIFA0_CTS_MARK,
  2118. };
  2119. /* - SCIFA1 ----------------------------------------------------------------- */
  2120. static const unsigned int scifa1_data_pins[] = {
  2121. /* RXD, TXD */
  2122. 195, 196,
  2123. };
  2124. static const unsigned int scifa1_data_mux[] = {
  2125. SCIFA1_RXD_MARK, SCIFA1_TXD_MARK,
  2126. };
  2127. static const unsigned int scifa1_clk_pins[] = {
  2128. /* SCK */
  2129. 185,
  2130. };
  2131. static const unsigned int scifa1_clk_mux[] = {
  2132. SCIFA1_SCK_MARK,
  2133. };
  2134. static const unsigned int scifa1_ctrl_pins[] = {
  2135. /* RTS, CTS */
  2136. 23, 21,
  2137. };
  2138. static const unsigned int scifa1_ctrl_mux[] = {
  2139. SCIFA1_RTS_MARK, SCIFA1_CTS_MARK,
  2140. };
  2141. /* - SCIFA2 ----------------------------------------------------------------- */
  2142. static const unsigned int scifa2_data_pins[] = {
  2143. /* RXD, TXD */
  2144. 200, 201,
  2145. };
  2146. static const unsigned int scifa2_data_mux[] = {
  2147. SCIFA2_RXD_MARK, SCIFA2_TXD_MARK,
  2148. };
  2149. static const unsigned int scifa2_clk_0_pins[] = {
  2150. /* SCK */
  2151. 22,
  2152. };
  2153. static const unsigned int scifa2_clk_0_mux[] = {
  2154. SCIFA2_SCK_PORT22_MARK,
  2155. };
  2156. static const unsigned int scifa2_clk_1_pins[] = {
  2157. /* SCK */
  2158. 199,
  2159. };
  2160. static const unsigned int scifa2_clk_1_mux[] = {
  2161. SCIFA2_SCK_PORT199_MARK,
  2162. };
  2163. static const unsigned int scifa2_ctrl_pins[] = {
  2164. /* RTS, CTS */
  2165. 96, 95,
  2166. };
  2167. static const unsigned int scifa2_ctrl_mux[] = {
  2168. SCIFA2_RTS_MARK, SCIFA2_CTS_MARK,
  2169. };
  2170. /* - SCIFA3 ----------------------------------------------------------------- */
  2171. static const unsigned int scifa3_data_0_pins[] = {
  2172. /* RXD, TXD */
  2173. 174, 175,
  2174. };
  2175. static const unsigned int scifa3_data_0_mux[] = {
  2176. SCIFA3_RXD_PORT174_MARK, SCIFA3_TXD_PORT175_MARK,
  2177. };
  2178. static const unsigned int scifa3_clk_0_pins[] = {
  2179. /* SCK */
  2180. 116,
  2181. };
  2182. static const unsigned int scifa3_clk_0_mux[] = {
  2183. SCIFA3_SCK_PORT116_MARK,
  2184. };
  2185. static const unsigned int scifa3_ctrl_0_pins[] = {
  2186. /* RTS, CTS */
  2187. 105, 117,
  2188. };
  2189. static const unsigned int scifa3_ctrl_0_mux[] = {
  2190. SCIFA3_RTS_PORT105_MARK, SCIFA3_CTS_PORT117_MARK,
  2191. };
  2192. static const unsigned int scifa3_data_1_pins[] = {
  2193. /* RXD, TXD */
  2194. 159, 160,
  2195. };
  2196. static const unsigned int scifa3_data_1_mux[] = {
  2197. SCIFA3_RXD_PORT159_MARK, SCIFA3_TXD_PORT160_MARK,
  2198. };
  2199. static const unsigned int scifa3_clk_1_pins[] = {
  2200. /* SCK */
  2201. 158,
  2202. };
  2203. static const unsigned int scifa3_clk_1_mux[] = {
  2204. SCIFA3_SCK_PORT158_MARK,
  2205. };
  2206. static const unsigned int scifa3_ctrl_1_pins[] = {
  2207. /* RTS, CTS */
  2208. 161, 162,
  2209. };
  2210. static const unsigned int scifa3_ctrl_1_mux[] = {
  2211. SCIFA3_RTS_PORT161_MARK, SCIFA3_CTS_PORT162_MARK,
  2212. };
  2213. /* - SCIFA4 ----------------------------------------------------------------- */
  2214. static const unsigned int scifa4_data_0_pins[] = {
  2215. /* RXD, TXD */
  2216. 12, 13,
  2217. };
  2218. static const unsigned int scifa4_data_0_mux[] = {
  2219. SCIFA4_RXD_PORT12_MARK, SCIFA4_TXD_PORT13_MARK,
  2220. };
  2221. static const unsigned int scifa4_data_1_pins[] = {
  2222. /* RXD, TXD */
  2223. 204, 203,
  2224. };
  2225. static const unsigned int scifa4_data_1_mux[] = {
  2226. SCIFA4_RXD_PORT204_MARK, SCIFA4_TXD_PORT203_MARK,
  2227. };
  2228. static const unsigned int scifa4_data_2_pins[] = {
  2229. /* RXD, TXD */
  2230. 94, 93,
  2231. };
  2232. static const unsigned int scifa4_data_2_mux[] = {
  2233. SCIFA4_RXD_PORT94_MARK, SCIFA4_TXD_PORT93_MARK,
  2234. };
  2235. static const unsigned int scifa4_clk_0_pins[] = {
  2236. /* SCK */
  2237. 21,
  2238. };
  2239. static const unsigned int scifa4_clk_0_mux[] = {
  2240. SCIFA4_SCK_PORT21_MARK,
  2241. };
  2242. static const unsigned int scifa4_clk_1_pins[] = {
  2243. /* SCK */
  2244. 205,
  2245. };
  2246. static const unsigned int scifa4_clk_1_mux[] = {
  2247. SCIFA4_SCK_PORT205_MARK,
  2248. };
  2249. /* - SCIFA5 ----------------------------------------------------------------- */
  2250. static const unsigned int scifa5_data_0_pins[] = {
  2251. /* RXD, TXD */
  2252. 10, 20,
  2253. };
  2254. static const unsigned int scifa5_data_0_mux[] = {
  2255. SCIFA5_RXD_PORT10_MARK, SCIFA5_TXD_PORT20_MARK,
  2256. };
  2257. static const unsigned int scifa5_data_1_pins[] = {
  2258. /* RXD, TXD */
  2259. 207, 208,
  2260. };
  2261. static const unsigned int scifa5_data_1_mux[] = {
  2262. SCIFA5_RXD_PORT207_MARK, SCIFA5_TXD_PORT208_MARK,
  2263. };
  2264. static const unsigned int scifa5_data_2_pins[] = {
  2265. /* RXD, TXD */
  2266. 92, 91,
  2267. };
  2268. static const unsigned int scifa5_data_2_mux[] = {
  2269. SCIFA5_RXD_PORT92_MARK, SCIFA5_TXD_PORT91_MARK,
  2270. };
  2271. static const unsigned int scifa5_clk_0_pins[] = {
  2272. /* SCK */
  2273. 23,
  2274. };
  2275. static const unsigned int scifa5_clk_0_mux[] = {
  2276. SCIFA5_SCK_PORT23_MARK,
  2277. };
  2278. static const unsigned int scifa5_clk_1_pins[] = {
  2279. /* SCK */
  2280. 206,
  2281. };
  2282. static const unsigned int scifa5_clk_1_mux[] = {
  2283. SCIFA5_SCK_PORT206_MARK,
  2284. };
  2285. /* - SCIFA6 ----------------------------------------------------------------- */
  2286. static const unsigned int scifa6_data_pins[] = {
  2287. /* RXD, TXD */
  2288. 25, 26,
  2289. };
  2290. static const unsigned int scifa6_data_mux[] = {
  2291. SCIFA6_RXD_MARK, SCIFA6_TXD_MARK,
  2292. };
  2293. static const unsigned int scifa6_clk_pins[] = {
  2294. /* SCK */
  2295. 24,
  2296. };
  2297. static const unsigned int scifa6_clk_mux[] = {
  2298. SCIFA6_SCK_MARK,
  2299. };
  2300. /* - SCIFA7 ----------------------------------------------------------------- */
  2301. static const unsigned int scifa7_data_pins[] = {
  2302. /* RXD, TXD */
  2303. 0, 1,
  2304. };
  2305. static const unsigned int scifa7_data_mux[] = {
  2306. SCIFA7_RXD_MARK, SCIFA7_TXD_MARK,
  2307. };
  2308. /* - SCIFB ------------------------------------------------------------------ */
  2309. static const unsigned int scifb_data_0_pins[] = {
  2310. /* RXD, TXD */
  2311. 191, 192,
  2312. };
  2313. static const unsigned int scifb_data_0_mux[] = {
  2314. SCIFB_RXD_PORT191_MARK, SCIFB_TXD_PORT192_MARK,
  2315. };
  2316. static const unsigned int scifb_clk_0_pins[] = {
  2317. /* SCK */
  2318. 190,
  2319. };
  2320. static const unsigned int scifb_clk_0_mux[] = {
  2321. SCIFB_SCK_PORT190_MARK,
  2322. };
  2323. static const unsigned int scifb_ctrl_0_pins[] = {
  2324. /* RTS, CTS */
  2325. 186, 187,
  2326. };
  2327. static const unsigned int scifb_ctrl_0_mux[] = {
  2328. SCIFB_RTS_PORT186_MARK, SCIFB_CTS_PORT187_MARK,
  2329. };
  2330. static const unsigned int scifb_data_1_pins[] = {
  2331. /* RXD, TXD */
  2332. 3, 4,
  2333. };
  2334. static const unsigned int scifb_data_1_mux[] = {
  2335. SCIFB_RXD_PORT3_MARK, SCIFB_TXD_PORT4_MARK,
  2336. };
  2337. static const unsigned int scifb_clk_1_pins[] = {
  2338. /* SCK */
  2339. 2,
  2340. };
  2341. static const unsigned int scifb_clk_1_mux[] = {
  2342. SCIFB_SCK_PORT2_MARK,
  2343. };
  2344. static const unsigned int scifb_ctrl_1_pins[] = {
  2345. /* RTS, CTS */
  2346. 172, 173,
  2347. };
  2348. static const unsigned int scifb_ctrl_1_mux[] = {
  2349. SCIFB_RTS_PORT172_MARK, SCIFB_CTS_PORT173_MARK,
  2350. };
  2351. /* - SDHI0 ------------------------------------------------------------------ */
  2352. static const unsigned int sdhi0_data1_pins[] = {
  2353. /* D0 */
  2354. 77,
  2355. };
  2356. static const unsigned int sdhi0_data1_mux[] = {
  2357. SDHI0_D0_MARK,
  2358. };
  2359. static const unsigned int sdhi0_data4_pins[] = {
  2360. /* D[0:3] */
  2361. 77, 78, 79, 80,
  2362. };
  2363. static const unsigned int sdhi0_data4_mux[] = {
  2364. SDHI0_D0_MARK, SDHI0_D1_MARK, SDHI0_D2_MARK, SDHI0_D3_MARK,
  2365. };
  2366. static const unsigned int sdhi0_ctrl_pins[] = {
  2367. /* CMD, CLK */
  2368. 76, 82,
  2369. };
  2370. static const unsigned int sdhi0_ctrl_mux[] = {
  2371. SDHI0_CMD_MARK, SDHI0_CLK_MARK,
  2372. };
  2373. static const unsigned int sdhi0_cd_pins[] = {
  2374. /* CD */
  2375. 81,
  2376. };
  2377. static const unsigned int sdhi0_cd_mux[] = {
  2378. SDHI0_CD_MARK,
  2379. };
  2380. static const unsigned int sdhi0_wp_pins[] = {
  2381. /* WP */
  2382. 83,
  2383. };
  2384. static const unsigned int sdhi0_wp_mux[] = {
  2385. SDHI0_WP_MARK,
  2386. };
  2387. /* - SDHI1 ------------------------------------------------------------------ */
  2388. static const unsigned int sdhi1_data1_pins[] = {
  2389. /* D0 */
  2390. 68,
  2391. };
  2392. static const unsigned int sdhi1_data1_mux[] = {
  2393. SDHI1_D0_MARK,
  2394. };
  2395. static const unsigned int sdhi1_data4_pins[] = {
  2396. /* D[0:3] */
  2397. 68, 69, 70, 71,
  2398. };
  2399. static const unsigned int sdhi1_data4_mux[] = {
  2400. SDHI1_D0_MARK, SDHI1_D1_MARK, SDHI1_D2_MARK, SDHI1_D3_MARK,
  2401. };
  2402. static const unsigned int sdhi1_ctrl_pins[] = {
  2403. /* CMD, CLK */
  2404. 67, 66,
  2405. };
  2406. static const unsigned int sdhi1_ctrl_mux[] = {
  2407. SDHI1_CMD_MARK, SDHI1_CLK_MARK,
  2408. };
  2409. static const unsigned int sdhi1_cd_pins[] = {
  2410. /* CD */
  2411. 72,
  2412. };
  2413. static const unsigned int sdhi1_cd_mux[] = {
  2414. SDHI1_CD_MARK,
  2415. };
  2416. static const unsigned int sdhi1_wp_pins[] = {
  2417. /* WP */
  2418. 73,
  2419. };
  2420. static const unsigned int sdhi1_wp_mux[] = {
  2421. SDHI1_WP_MARK,
  2422. };
  2423. /* - SDHI2 ------------------------------------------------------------------ */
  2424. static const unsigned int sdhi2_data1_pins[] = {
  2425. /* D0 */
  2426. 205,
  2427. };
  2428. static const unsigned int sdhi2_data1_mux[] = {
  2429. SDHI2_D0_MARK,
  2430. };
  2431. static const unsigned int sdhi2_data4_pins[] = {
  2432. /* D[0:3] */
  2433. 205, 206, 207, 208,
  2434. };
  2435. static const unsigned int sdhi2_data4_mux[] = {
  2436. SDHI2_D0_MARK, SDHI2_D1_MARK, SDHI2_D2_MARK, SDHI2_D3_MARK,
  2437. };
  2438. static const unsigned int sdhi2_ctrl_pins[] = {
  2439. /* CMD, CLK */
  2440. 204, 203,
  2441. };
  2442. static const unsigned int sdhi2_ctrl_mux[] = {
  2443. SDHI2_CMD_MARK, SDHI2_CLK_MARK,
  2444. };
  2445. static const unsigned int sdhi2_cd_0_pins[] = {
  2446. /* CD */
  2447. 202,
  2448. };
  2449. static const unsigned int sdhi2_cd_0_mux[] = {
  2450. SDHI2_CD_PORT202_MARK,
  2451. };
  2452. static const unsigned int sdhi2_wp_0_pins[] = {
  2453. /* WP */
  2454. 177,
  2455. };
  2456. static const unsigned int sdhi2_wp_0_mux[] = {
  2457. SDHI2_WP_PORT177_MARK,
  2458. };
  2459. static const unsigned int sdhi2_cd_1_pins[] = {
  2460. /* CD */
  2461. 24,
  2462. };
  2463. static const unsigned int sdhi2_cd_1_mux[] = {
  2464. SDHI2_CD_PORT24_MARK,
  2465. };
  2466. static const unsigned int sdhi2_wp_1_pins[] = {
  2467. /* WP */
  2468. 25,
  2469. };
  2470. static const unsigned int sdhi2_wp_1_mux[] = {
  2471. SDHI2_WP_PORT25_MARK,
  2472. };
  2473. /* - TPU0 ------------------------------------------------------------------- */
  2474. static const unsigned int tpu0_to0_pins[] = {
  2475. /* TO */
  2476. 23,
  2477. };
  2478. static const unsigned int tpu0_to0_mux[] = {
  2479. TPU0TO0_MARK,
  2480. };
  2481. static const unsigned int tpu0_to1_pins[] = {
  2482. /* TO */
  2483. 21,
  2484. };
  2485. static const unsigned int tpu0_to1_mux[] = {
  2486. TPU0TO1_MARK,
  2487. };
  2488. static const unsigned int tpu0_to2_0_pins[] = {
  2489. /* TO */
  2490. 66,
  2491. };
  2492. static const unsigned int tpu0_to2_0_mux[] = {
  2493. TPU0TO2_PORT66_MARK,
  2494. };
  2495. static const unsigned int tpu0_to2_1_pins[] = {
  2496. /* TO */
  2497. 202,
  2498. };
  2499. static const unsigned int tpu0_to2_1_mux[] = {
  2500. TPU0TO2_PORT202_MARK,
  2501. };
  2502. static const unsigned int tpu0_to3_pins[] = {
  2503. /* TO */
  2504. 180,
  2505. };
  2506. static const unsigned int tpu0_to3_mux[] = {
  2507. TPU0TO3_MARK,
  2508. };
  2509. static const struct sh_pfc_pin_group pinmux_groups[] = {
  2510. SH_PFC_PIN_GROUP(bsc_data8),
  2511. SH_PFC_PIN_GROUP(bsc_data16),
  2512. SH_PFC_PIN_GROUP(bsc_data32),
  2513. SH_PFC_PIN_GROUP(bsc_cs0),
  2514. SH_PFC_PIN_GROUP(bsc_cs2),
  2515. SH_PFC_PIN_GROUP(bsc_cs4),
  2516. SH_PFC_PIN_GROUP(bsc_cs5a_0),
  2517. SH_PFC_PIN_GROUP(bsc_cs5a_1),
  2518. SH_PFC_PIN_GROUP(bsc_cs5b),
  2519. SH_PFC_PIN_GROUP(bsc_cs6a),
  2520. SH_PFC_PIN_GROUP(bsc_rd_we8),
  2521. SH_PFC_PIN_GROUP(bsc_rd_we16),
  2522. SH_PFC_PIN_GROUP(bsc_rd_we32),
  2523. SH_PFC_PIN_GROUP(bsc_bs),
  2524. SH_PFC_PIN_GROUP(bsc_rdwr),
  2525. SH_PFC_PIN_GROUP(ceu0_data_0_7),
  2526. SH_PFC_PIN_GROUP(ceu0_data_8_15_0),
  2527. SH_PFC_PIN_GROUP(ceu0_data_8_15_1),
  2528. SH_PFC_PIN_GROUP(ceu0_clk_0),
  2529. SH_PFC_PIN_GROUP(ceu0_clk_1),
  2530. SH_PFC_PIN_GROUP(ceu0_clk_2),
  2531. SH_PFC_PIN_GROUP(ceu0_sync),
  2532. SH_PFC_PIN_GROUP(ceu0_field),
  2533. SH_PFC_PIN_GROUP(ceu1_data),
  2534. SH_PFC_PIN_GROUP(ceu1_clk),
  2535. SH_PFC_PIN_GROUP(ceu1_sync),
  2536. SH_PFC_PIN_GROUP(ceu1_field),
  2537. SH_PFC_PIN_GROUP(fsia_mclk_in),
  2538. SH_PFC_PIN_GROUP(fsia_mclk_out),
  2539. SH_PFC_PIN_GROUP(fsia_sclk_in),
  2540. SH_PFC_PIN_GROUP(fsia_sclk_out),
  2541. SH_PFC_PIN_GROUP(fsia_data_in_0),
  2542. SH_PFC_PIN_GROUP(fsia_data_in_1),
  2543. SH_PFC_PIN_GROUP(fsia_data_out_0),
  2544. SH_PFC_PIN_GROUP(fsia_data_out_1),
  2545. SH_PFC_PIN_GROUP(fsia_data_out_2),
  2546. SH_PFC_PIN_GROUP(fsia_spdif_0),
  2547. SH_PFC_PIN_GROUP(fsia_spdif_1),
  2548. SH_PFC_PIN_GROUP(fsib_mclk_in),
  2549. SH_PFC_PIN_GROUP(gether_rmii),
  2550. SH_PFC_PIN_GROUP(gether_mii),
  2551. SH_PFC_PIN_GROUP(gether_gmii),
  2552. SH_PFC_PIN_GROUP(gether_int),
  2553. SH_PFC_PIN_GROUP(gether_link),
  2554. SH_PFC_PIN_GROUP(gether_wol),
  2555. SH_PFC_PIN_GROUP(hdmi),
  2556. SH_PFC_PIN_GROUP(intc_irq0_0),
  2557. SH_PFC_PIN_GROUP(intc_irq0_1),
  2558. SH_PFC_PIN_GROUP(intc_irq1),
  2559. SH_PFC_PIN_GROUP(intc_irq2_0),
  2560. SH_PFC_PIN_GROUP(intc_irq2_1),
  2561. SH_PFC_PIN_GROUP(intc_irq3_0),
  2562. SH_PFC_PIN_GROUP(intc_irq3_1),
  2563. SH_PFC_PIN_GROUP(intc_irq4_0),
  2564. SH_PFC_PIN_GROUP(intc_irq4_1),
  2565. SH_PFC_PIN_GROUP(intc_irq5_0),
  2566. SH_PFC_PIN_GROUP(intc_irq5_1),
  2567. SH_PFC_PIN_GROUP(intc_irq6_0),
  2568. SH_PFC_PIN_GROUP(intc_irq6_1),
  2569. SH_PFC_PIN_GROUP(intc_irq7_0),
  2570. SH_PFC_PIN_GROUP(intc_irq7_1),
  2571. SH_PFC_PIN_GROUP(intc_irq8),
  2572. SH_PFC_PIN_GROUP(intc_irq9_0),
  2573. SH_PFC_PIN_GROUP(intc_irq9_1),
  2574. SH_PFC_PIN_GROUP(intc_irq10),
  2575. SH_PFC_PIN_GROUP(intc_irq11),
  2576. SH_PFC_PIN_GROUP(intc_irq12_0),
  2577. SH_PFC_PIN_GROUP(intc_irq12_1),
  2578. SH_PFC_PIN_GROUP(intc_irq13_0),
  2579. SH_PFC_PIN_GROUP(intc_irq13_1),
  2580. SH_PFC_PIN_GROUP(intc_irq14_0),
  2581. SH_PFC_PIN_GROUP(intc_irq14_1),
  2582. SH_PFC_PIN_GROUP(intc_irq15_0),
  2583. SH_PFC_PIN_GROUP(intc_irq15_1),
  2584. SH_PFC_PIN_GROUP(intc_irq16_0),
  2585. SH_PFC_PIN_GROUP(intc_irq16_1),
  2586. SH_PFC_PIN_GROUP(intc_irq17),
  2587. SH_PFC_PIN_GROUP(intc_irq18),
  2588. SH_PFC_PIN_GROUP(intc_irq19),
  2589. SH_PFC_PIN_GROUP(intc_irq20),
  2590. SH_PFC_PIN_GROUP(intc_irq21),
  2591. SH_PFC_PIN_GROUP(intc_irq22),
  2592. SH_PFC_PIN_GROUP(intc_irq23),
  2593. SH_PFC_PIN_GROUP(intc_irq24),
  2594. SH_PFC_PIN_GROUP(intc_irq25),
  2595. SH_PFC_PIN_GROUP(intc_irq26_0),
  2596. SH_PFC_PIN_GROUP(intc_irq26_1),
  2597. SH_PFC_PIN_GROUP(intc_irq27_0),
  2598. SH_PFC_PIN_GROUP(intc_irq27_1),
  2599. SH_PFC_PIN_GROUP(intc_irq28_0),
  2600. SH_PFC_PIN_GROUP(intc_irq28_1),
  2601. SH_PFC_PIN_GROUP(intc_irq29_0),
  2602. SH_PFC_PIN_GROUP(intc_irq29_1),
  2603. SH_PFC_PIN_GROUP(intc_irq30_0),
  2604. SH_PFC_PIN_GROUP(intc_irq30_1),
  2605. SH_PFC_PIN_GROUP(intc_irq31_0),
  2606. SH_PFC_PIN_GROUP(intc_irq31_1),
  2607. SH_PFC_PIN_GROUP(lcd0_data8),
  2608. SH_PFC_PIN_GROUP(lcd0_data9),
  2609. SH_PFC_PIN_GROUP(lcd0_data12),
  2610. SH_PFC_PIN_GROUP(lcd0_data16),
  2611. SH_PFC_PIN_GROUP(lcd0_data18),
  2612. SH_PFC_PIN_GROUP(lcd0_data24_0),
  2613. SH_PFC_PIN_GROUP(lcd0_data24_1),
  2614. SH_PFC_PIN_GROUP(lcd0_display),
  2615. SH_PFC_PIN_GROUP(lcd0_lclk_0),
  2616. SH_PFC_PIN_GROUP(lcd0_lclk_1),
  2617. SH_PFC_PIN_GROUP(lcd0_sync),
  2618. SH_PFC_PIN_GROUP(lcd0_sys),
  2619. SH_PFC_PIN_GROUP(lcd1_data8),
  2620. SH_PFC_PIN_GROUP(lcd1_data9),
  2621. SH_PFC_PIN_GROUP(lcd1_data12),
  2622. SH_PFC_PIN_GROUP(lcd1_data16),
  2623. SH_PFC_PIN_GROUP(lcd1_data18),
  2624. SH_PFC_PIN_GROUP(lcd1_data24),
  2625. SH_PFC_PIN_GROUP(lcd1_display),
  2626. SH_PFC_PIN_GROUP(lcd1_lclk),
  2627. SH_PFC_PIN_GROUP(lcd1_sync),
  2628. SH_PFC_PIN_GROUP(lcd1_sys),
  2629. SH_PFC_PIN_GROUP(mmc0_data1_0),
  2630. SH_PFC_PIN_GROUP(mmc0_data4_0),
  2631. SH_PFC_PIN_GROUP(mmc0_data8_0),
  2632. SH_PFC_PIN_GROUP(mmc0_ctrl_0),
  2633. SH_PFC_PIN_GROUP(mmc0_data1_1),
  2634. SH_PFC_PIN_GROUP(mmc0_data4_1),
  2635. SH_PFC_PIN_GROUP(mmc0_data8_1),
  2636. SH_PFC_PIN_GROUP(mmc0_ctrl_1),
  2637. SH_PFC_PIN_GROUP(scifa0_data),
  2638. SH_PFC_PIN_GROUP(scifa0_clk),
  2639. SH_PFC_PIN_GROUP(scifa0_ctrl),
  2640. SH_PFC_PIN_GROUP(scifa1_data),
  2641. SH_PFC_PIN_GROUP(scifa1_clk),
  2642. SH_PFC_PIN_GROUP(scifa1_ctrl),
  2643. SH_PFC_PIN_GROUP(scifa2_data),
  2644. SH_PFC_PIN_GROUP(scifa2_clk_0),
  2645. SH_PFC_PIN_GROUP(scifa2_clk_1),
  2646. SH_PFC_PIN_GROUP(scifa2_ctrl),
  2647. SH_PFC_PIN_GROUP(scifa3_data_0),
  2648. SH_PFC_PIN_GROUP(scifa3_clk_0),
  2649. SH_PFC_PIN_GROUP(scifa3_ctrl_0),
  2650. SH_PFC_PIN_GROUP(scifa3_data_1),
  2651. SH_PFC_PIN_GROUP(scifa3_clk_1),
  2652. SH_PFC_PIN_GROUP(scifa3_ctrl_1),
  2653. SH_PFC_PIN_GROUP(scifa4_data_0),
  2654. SH_PFC_PIN_GROUP(scifa4_data_1),
  2655. SH_PFC_PIN_GROUP(scifa4_data_2),
  2656. SH_PFC_PIN_GROUP(scifa4_clk_0),
  2657. SH_PFC_PIN_GROUP(scifa4_clk_1),
  2658. SH_PFC_PIN_GROUP(scifa5_data_0),
  2659. SH_PFC_PIN_GROUP(scifa5_data_1),
  2660. SH_PFC_PIN_GROUP(scifa5_data_2),
  2661. SH_PFC_PIN_GROUP(scifa5_clk_0),
  2662. SH_PFC_PIN_GROUP(scifa5_clk_1),
  2663. SH_PFC_PIN_GROUP(scifa6_data),
  2664. SH_PFC_PIN_GROUP(scifa6_clk),
  2665. SH_PFC_PIN_GROUP(scifa7_data),
  2666. SH_PFC_PIN_GROUP(scifb_data_0),
  2667. SH_PFC_PIN_GROUP(scifb_clk_0),
  2668. SH_PFC_PIN_GROUP(scifb_ctrl_0),
  2669. SH_PFC_PIN_GROUP(scifb_data_1),
  2670. SH_PFC_PIN_GROUP(scifb_clk_1),
  2671. SH_PFC_PIN_GROUP(scifb_ctrl_1),
  2672. SH_PFC_PIN_GROUP(sdhi0_data1),
  2673. SH_PFC_PIN_GROUP(sdhi0_data4),
  2674. SH_PFC_PIN_GROUP(sdhi0_ctrl),
  2675. SH_PFC_PIN_GROUP(sdhi0_cd),
  2676. SH_PFC_PIN_GROUP(sdhi0_wp),
  2677. SH_PFC_PIN_GROUP(sdhi1_data1),
  2678. SH_PFC_PIN_GROUP(sdhi1_data4),
  2679. SH_PFC_PIN_GROUP(sdhi1_ctrl),
  2680. SH_PFC_PIN_GROUP(sdhi1_cd),
  2681. SH_PFC_PIN_GROUP(sdhi1_wp),
  2682. SH_PFC_PIN_GROUP(sdhi2_data1),
  2683. SH_PFC_PIN_GROUP(sdhi2_data4),
  2684. SH_PFC_PIN_GROUP(sdhi2_ctrl),
  2685. SH_PFC_PIN_GROUP(sdhi2_cd_0),
  2686. SH_PFC_PIN_GROUP(sdhi2_wp_0),
  2687. SH_PFC_PIN_GROUP(sdhi2_cd_1),
  2688. SH_PFC_PIN_GROUP(sdhi2_wp_1),
  2689. SH_PFC_PIN_GROUP(tpu0_to0),
  2690. SH_PFC_PIN_GROUP(tpu0_to1),
  2691. SH_PFC_PIN_GROUP(tpu0_to2_0),
  2692. SH_PFC_PIN_GROUP(tpu0_to2_1),
  2693. SH_PFC_PIN_GROUP(tpu0_to3),
  2694. };
  2695. static const char * const bsc_groups[] = {
  2696. "bsc_data8",
  2697. "bsc_data16",
  2698. "bsc_data32",
  2699. "bsc_cs0",
  2700. "bsc_cs2",
  2701. "bsc_cs4",
  2702. "bsc_cs5a_0",
  2703. "bsc_cs5a_1",
  2704. "bsc_cs5b",
  2705. "bsc_cs6a",
  2706. "bsc_rd_we8",
  2707. "bsc_rd_we16",
  2708. "bsc_rd_we32",
  2709. "bsc_bs",
  2710. "bsc_rdwr",
  2711. };
  2712. static const char * const ceu0_groups[] = {
  2713. "ceu0_data_0_7",
  2714. "ceu0_data_8_15_0",
  2715. "ceu0_data_8_15_1",
  2716. "ceu0_clk_0",
  2717. "ceu0_clk_1",
  2718. "ceu0_clk_2",
  2719. "ceu0_sync",
  2720. "ceu0_field",
  2721. };
  2722. static const char * const ceu1_groups[] = {
  2723. "ceu1_data",
  2724. "ceu1_clk",
  2725. "ceu1_sync",
  2726. "ceu1_field",
  2727. };
  2728. static const char * const fsia_groups[] = {
  2729. "fsia_mclk_in",
  2730. "fsia_mclk_out",
  2731. "fsia_sclk_in",
  2732. "fsia_sclk_out",
  2733. "fsia_data_in_0",
  2734. "fsia_data_in_1",
  2735. "fsia_data_out_0",
  2736. "fsia_data_out_1",
  2737. "fsia_data_out_2",
  2738. "fsia_spdif_0",
  2739. "fsia_spdif_1",
  2740. };
  2741. static const char * const fsib_groups[] = {
  2742. "fsib_mclk_in",
  2743. };
  2744. static const char * const gether_groups[] = {
  2745. "gether_rmii",
  2746. "gether_mii",
  2747. "gether_gmii",
  2748. "gether_int",
  2749. "gether_link",
  2750. "gether_wol",
  2751. };
  2752. static const char * const hdmi_groups[] = {
  2753. "hdmi",
  2754. };
  2755. static const char * const intc_groups[] = {
  2756. "intc_irq0_0",
  2757. "intc_irq0_1",
  2758. "intc_irq1",
  2759. "intc_irq2_0",
  2760. "intc_irq2_1",
  2761. "intc_irq3_0",
  2762. "intc_irq3_1",
  2763. "intc_irq4_0",
  2764. "intc_irq4_1",
  2765. "intc_irq5_0",
  2766. "intc_irq5_1",
  2767. "intc_irq6_0",
  2768. "intc_irq6_1",
  2769. "intc_irq7_0",
  2770. "intc_irq7_1",
  2771. "intc_irq8",
  2772. "intc_irq9_0",
  2773. "intc_irq9_1",
  2774. "intc_irq10",
  2775. "intc_irq11",
  2776. "intc_irq12_0",
  2777. "intc_irq12_1",
  2778. "intc_irq13_0",
  2779. "intc_irq13_1",
  2780. "intc_irq14_0",
  2781. "intc_irq14_1",
  2782. "intc_irq15_0",
  2783. "intc_irq15_1",
  2784. "intc_irq16_0",
  2785. "intc_irq16_1",
  2786. "intc_irq17",
  2787. "intc_irq18",
  2788. "intc_irq19",
  2789. "intc_irq20",
  2790. "intc_irq21",
  2791. "intc_irq22",
  2792. "intc_irq23",
  2793. "intc_irq24",
  2794. "intc_irq25",
  2795. "intc_irq26_0",
  2796. "intc_irq26_1",
  2797. "intc_irq27_0",
  2798. "intc_irq27_1",
  2799. "intc_irq28_0",
  2800. "intc_irq28_1",
  2801. "intc_irq29_0",
  2802. "intc_irq29_1",
  2803. "intc_irq30_0",
  2804. "intc_irq30_1",
  2805. "intc_irq31_0",
  2806. "intc_irq31_1",
  2807. };
  2808. static const char * const lcd0_groups[] = {
  2809. "lcd0_data8",
  2810. "lcd0_data9",
  2811. "lcd0_data12",
  2812. "lcd0_data16",
  2813. "lcd0_data18",
  2814. "lcd0_data24_0",
  2815. "lcd0_data24_1",
  2816. "lcd0_display",
  2817. "lcd0_lclk_0",
  2818. "lcd0_lclk_1",
  2819. "lcd0_sync",
  2820. "lcd0_sys",
  2821. };
  2822. static const char * const lcd1_groups[] = {
  2823. "lcd1_data8",
  2824. "lcd1_data9",
  2825. "lcd1_data12",
  2826. "lcd1_data16",
  2827. "lcd1_data18",
  2828. "lcd1_data24",
  2829. "lcd1_display",
  2830. "lcd1_lclk",
  2831. "lcd1_sync",
  2832. "lcd1_sys",
  2833. };
  2834. static const char * const mmc0_groups[] = {
  2835. "mmc0_data1_0",
  2836. "mmc0_data4_0",
  2837. "mmc0_data8_0",
  2838. "mmc0_ctrl_0",
  2839. "mmc0_data1_1",
  2840. "mmc0_data4_1",
  2841. "mmc0_data8_1",
  2842. "mmc0_ctrl_1",
  2843. };
  2844. static const char * const scifa0_groups[] = {
  2845. "scifa0_data",
  2846. "scifa0_clk",
  2847. "scifa0_ctrl",
  2848. };
  2849. static const char * const scifa1_groups[] = {
  2850. "scifa1_data",
  2851. "scifa1_clk",
  2852. "scifa1_ctrl",
  2853. };
  2854. static const char * const scifa2_groups[] = {
  2855. "scifa2_data",
  2856. "scifa2_clk_0",
  2857. "scifa2_clk_1",
  2858. "scifa2_ctrl",
  2859. };
  2860. static const char * const scifa3_groups[] = {
  2861. "scifa3_data_0",
  2862. "scifa3_clk_0",
  2863. "scifa3_ctrl_0",
  2864. "scifa3_data_1",
  2865. "scifa3_clk_1",
  2866. "scifa3_ctrl_1",
  2867. };
  2868. static const char * const scifa4_groups[] = {
  2869. "scifa4_data_0",
  2870. "scifa4_data_1",
  2871. "scifa4_data_2",
  2872. "scifa4_clk_0",
  2873. "scifa4_clk_1",
  2874. };
  2875. static const char * const scifa5_groups[] = {
  2876. "scifa5_data_0",
  2877. "scifa5_data_1",
  2878. "scifa5_data_2",
  2879. "scifa5_clk_0",
  2880. "scifa5_clk_1",
  2881. };
  2882. static const char * const scifa6_groups[] = {
  2883. "scifa6_data",
  2884. "scifa6_clk",
  2885. };
  2886. static const char * const scifa7_groups[] = {
  2887. "scifa7_data",
  2888. };
  2889. static const char * const scifb_groups[] = {
  2890. "scifb_data_0",
  2891. "scifb_clk_0",
  2892. "scifb_ctrl_0",
  2893. "scifb_data_1",
  2894. "scifb_clk_1",
  2895. "scifb_ctrl_1",
  2896. };
  2897. static const char * const sdhi0_groups[] = {
  2898. "sdhi0_data1",
  2899. "sdhi0_data4",
  2900. "sdhi0_ctrl",
  2901. "sdhi0_cd",
  2902. "sdhi0_wp",
  2903. };
  2904. static const char * const sdhi1_groups[] = {
  2905. "sdhi1_data1",
  2906. "sdhi1_data4",
  2907. "sdhi1_ctrl",
  2908. "sdhi1_cd",
  2909. "sdhi1_wp",
  2910. };
  2911. static const char * const sdhi2_groups[] = {
  2912. "sdhi2_data1",
  2913. "sdhi2_data4",
  2914. "sdhi2_ctrl",
  2915. "sdhi2_cd_0",
  2916. "sdhi2_wp_0",
  2917. "sdhi2_cd_1",
  2918. "sdhi2_wp_1",
  2919. };
  2920. static const char * const tpu0_groups[] = {
  2921. "tpu0_to0",
  2922. "tpu0_to1",
  2923. "tpu0_to2_0",
  2924. "tpu0_to2_1",
  2925. "tpu0_to3",
  2926. };
  2927. static const struct sh_pfc_function pinmux_functions[] = {
  2928. SH_PFC_FUNCTION(bsc),
  2929. SH_PFC_FUNCTION(ceu0),
  2930. SH_PFC_FUNCTION(ceu1),
  2931. SH_PFC_FUNCTION(fsia),
  2932. SH_PFC_FUNCTION(fsib),
  2933. SH_PFC_FUNCTION(gether),
  2934. SH_PFC_FUNCTION(hdmi),
  2935. SH_PFC_FUNCTION(intc),
  2936. SH_PFC_FUNCTION(lcd0),
  2937. SH_PFC_FUNCTION(lcd1),
  2938. SH_PFC_FUNCTION(mmc0),
  2939. SH_PFC_FUNCTION(scifa0),
  2940. SH_PFC_FUNCTION(scifa1),
  2941. SH_PFC_FUNCTION(scifa2),
  2942. SH_PFC_FUNCTION(scifa3),
  2943. SH_PFC_FUNCTION(scifa4),
  2944. SH_PFC_FUNCTION(scifa5),
  2945. SH_PFC_FUNCTION(scifa6),
  2946. SH_PFC_FUNCTION(scifa7),
  2947. SH_PFC_FUNCTION(scifb),
  2948. SH_PFC_FUNCTION(sdhi0),
  2949. SH_PFC_FUNCTION(sdhi1),
  2950. SH_PFC_FUNCTION(sdhi2),
  2951. SH_PFC_FUNCTION(tpu0),
  2952. };
  2953. static const struct pinmux_cfg_reg pinmux_config_regs[] = {
  2954. PORTCR(0, 0xe6050000), /* PORT0CR */
  2955. PORTCR(1, 0xe6050001), /* PORT1CR */
  2956. PORTCR(2, 0xe6050002), /* PORT2CR */
  2957. PORTCR(3, 0xe6050003), /* PORT3CR */
  2958. PORTCR(4, 0xe6050004), /* PORT4CR */
  2959. PORTCR(5, 0xe6050005), /* PORT5CR */
  2960. PORTCR(6, 0xe6050006), /* PORT6CR */
  2961. PORTCR(7, 0xe6050007), /* PORT7CR */
  2962. PORTCR(8, 0xe6050008), /* PORT8CR */
  2963. PORTCR(9, 0xe6050009), /* PORT9CR */
  2964. PORTCR(10, 0xe605000a), /* PORT10CR */
  2965. PORTCR(11, 0xe605000b), /* PORT11CR */
  2966. PORTCR(12, 0xe605000c), /* PORT12CR */
  2967. PORTCR(13, 0xe605000d), /* PORT13CR */
  2968. PORTCR(14, 0xe605000e), /* PORT14CR */
  2969. PORTCR(15, 0xe605000f), /* PORT15CR */
  2970. PORTCR(16, 0xe6050010), /* PORT16CR */
  2971. PORTCR(17, 0xe6050011), /* PORT17CR */
  2972. PORTCR(18, 0xe6050012), /* PORT18CR */
  2973. PORTCR(19, 0xe6050013), /* PORT19CR */
  2974. PORTCR(20, 0xe6050014), /* PORT20CR */
  2975. PORTCR(21, 0xe6050015), /* PORT21CR */
  2976. PORTCR(22, 0xe6050016), /* PORT22CR */
  2977. PORTCR(23, 0xe6050017), /* PORT23CR */
  2978. PORTCR(24, 0xe6050018), /* PORT24CR */
  2979. PORTCR(25, 0xe6050019), /* PORT25CR */
  2980. PORTCR(26, 0xe605001a), /* PORT26CR */
  2981. PORTCR(27, 0xe605001b), /* PORT27CR */
  2982. PORTCR(28, 0xe605001c), /* PORT28CR */
  2983. PORTCR(29, 0xe605001d), /* PORT29CR */
  2984. PORTCR(30, 0xe605001e), /* PORT30CR */
  2985. PORTCR(31, 0xe605001f), /* PORT31CR */
  2986. PORTCR(32, 0xe6050020), /* PORT32CR */
  2987. PORTCR(33, 0xe6050021), /* PORT33CR */
  2988. PORTCR(34, 0xe6050022), /* PORT34CR */
  2989. PORTCR(35, 0xe6050023), /* PORT35CR */
  2990. PORTCR(36, 0xe6050024), /* PORT36CR */
  2991. PORTCR(37, 0xe6050025), /* PORT37CR */
  2992. PORTCR(38, 0xe6050026), /* PORT38CR */
  2993. PORTCR(39, 0xe6050027), /* PORT39CR */
  2994. PORTCR(40, 0xe6050028), /* PORT40CR */
  2995. PORTCR(41, 0xe6050029), /* PORT41CR */
  2996. PORTCR(42, 0xe605002a), /* PORT42CR */
  2997. PORTCR(43, 0xe605002b), /* PORT43CR */
  2998. PORTCR(44, 0xe605002c), /* PORT44CR */
  2999. PORTCR(45, 0xe605002d), /* PORT45CR */
  3000. PORTCR(46, 0xe605002e), /* PORT46CR */
  3001. PORTCR(47, 0xe605002f), /* PORT47CR */
  3002. PORTCR(48, 0xe6050030), /* PORT48CR */
  3003. PORTCR(49, 0xe6050031), /* PORT49CR */
  3004. PORTCR(50, 0xe6050032), /* PORT50CR */
  3005. PORTCR(51, 0xe6050033), /* PORT51CR */
  3006. PORTCR(52, 0xe6050034), /* PORT52CR */
  3007. PORTCR(53, 0xe6050035), /* PORT53CR */
  3008. PORTCR(54, 0xe6050036), /* PORT54CR */
  3009. PORTCR(55, 0xe6050037), /* PORT55CR */
  3010. PORTCR(56, 0xe6050038), /* PORT56CR */
  3011. PORTCR(57, 0xe6050039), /* PORT57CR */
  3012. PORTCR(58, 0xe605003a), /* PORT58CR */
  3013. PORTCR(59, 0xe605003b), /* PORT59CR */
  3014. PORTCR(60, 0xe605003c), /* PORT60CR */
  3015. PORTCR(61, 0xe605003d), /* PORT61CR */
  3016. PORTCR(62, 0xe605003e), /* PORT62CR */
  3017. PORTCR(63, 0xe605003f), /* PORT63CR */
  3018. PORTCR(64, 0xe6050040), /* PORT64CR */
  3019. PORTCR(65, 0xe6050041), /* PORT65CR */
  3020. PORTCR(66, 0xe6050042), /* PORT66CR */
  3021. PORTCR(67, 0xe6050043), /* PORT67CR */
  3022. PORTCR(68, 0xe6050044), /* PORT68CR */
  3023. PORTCR(69, 0xe6050045), /* PORT69CR */
  3024. PORTCR(70, 0xe6050046), /* PORT70CR */
  3025. PORTCR(71, 0xe6050047), /* PORT71CR */
  3026. PORTCR(72, 0xe6050048), /* PORT72CR */
  3027. PORTCR(73, 0xe6050049), /* PORT73CR */
  3028. PORTCR(74, 0xe605004a), /* PORT74CR */
  3029. PORTCR(75, 0xe605004b), /* PORT75CR */
  3030. PORTCR(76, 0xe605004c), /* PORT76CR */
  3031. PORTCR(77, 0xe605004d), /* PORT77CR */
  3032. PORTCR(78, 0xe605004e), /* PORT78CR */
  3033. PORTCR(79, 0xe605004f), /* PORT79CR */
  3034. PORTCR(80, 0xe6050050), /* PORT80CR */
  3035. PORTCR(81, 0xe6050051), /* PORT81CR */
  3036. PORTCR(82, 0xe6050052), /* PORT82CR */
  3037. PORTCR(83, 0xe6050053), /* PORT83CR */
  3038. PORTCR(84, 0xe6051054), /* PORT84CR */
  3039. PORTCR(85, 0xe6051055), /* PORT85CR */
  3040. PORTCR(86, 0xe6051056), /* PORT86CR */
  3041. PORTCR(87, 0xe6051057), /* PORT87CR */
  3042. PORTCR(88, 0xe6051058), /* PORT88CR */
  3043. PORTCR(89, 0xe6051059), /* PORT89CR */
  3044. PORTCR(90, 0xe605105a), /* PORT90CR */
  3045. PORTCR(91, 0xe605105b), /* PORT91CR */
  3046. PORTCR(92, 0xe605105c), /* PORT92CR */
  3047. PORTCR(93, 0xe605105d), /* PORT93CR */
  3048. PORTCR(94, 0xe605105e), /* PORT94CR */
  3049. PORTCR(95, 0xe605105f), /* PORT95CR */
  3050. PORTCR(96, 0xe6051060), /* PORT96CR */
  3051. PORTCR(97, 0xe6051061), /* PORT97CR */
  3052. PORTCR(98, 0xe6051062), /* PORT98CR */
  3053. PORTCR(99, 0xe6051063), /* PORT99CR */
  3054. PORTCR(100, 0xe6051064), /* PORT100CR */
  3055. PORTCR(101, 0xe6051065), /* PORT101CR */
  3056. PORTCR(102, 0xe6051066), /* PORT102CR */
  3057. PORTCR(103, 0xe6051067), /* PORT103CR */
  3058. PORTCR(104, 0xe6051068), /* PORT104CR */
  3059. PORTCR(105, 0xe6051069), /* PORT105CR */
  3060. PORTCR(106, 0xe605106a), /* PORT106CR */
  3061. PORTCR(107, 0xe605106b), /* PORT107CR */
  3062. PORTCR(108, 0xe605106c), /* PORT108CR */
  3063. PORTCR(109, 0xe605106d), /* PORT109CR */
  3064. PORTCR(110, 0xe605106e), /* PORT110CR */
  3065. PORTCR(111, 0xe605106f), /* PORT111CR */
  3066. PORTCR(112, 0xe6051070), /* PORT112CR */
  3067. PORTCR(113, 0xe6051071), /* PORT113CR */
  3068. PORTCR(114, 0xe6051072), /* PORT114CR */
  3069. PORTCR(115, 0xe6052073), /* PORT115CR */
  3070. PORTCR(116, 0xe6052074), /* PORT116CR */
  3071. PORTCR(117, 0xe6052075), /* PORT117CR */
  3072. PORTCR(118, 0xe6052076), /* PORT118CR */
  3073. PORTCR(119, 0xe6052077), /* PORT119CR */
  3074. PORTCR(120, 0xe6052078), /* PORT120CR */
  3075. PORTCR(121, 0xe6052079), /* PORT121CR */
  3076. PORTCR(122, 0xe605207a), /* PORT122CR */
  3077. PORTCR(123, 0xe605207b), /* PORT123CR */
  3078. PORTCR(124, 0xe605207c), /* PORT124CR */
  3079. PORTCR(125, 0xe605207d), /* PORT125CR */
  3080. PORTCR(126, 0xe605207e), /* PORT126CR */
  3081. PORTCR(127, 0xe605207f), /* PORT127CR */
  3082. PORTCR(128, 0xe6052080), /* PORT128CR */
  3083. PORTCR(129, 0xe6052081), /* PORT129CR */
  3084. PORTCR(130, 0xe6052082), /* PORT130CR */
  3085. PORTCR(131, 0xe6052083), /* PORT131CR */
  3086. PORTCR(132, 0xe6052084), /* PORT132CR */
  3087. PORTCR(133, 0xe6052085), /* PORT133CR */
  3088. PORTCR(134, 0xe6052086), /* PORT134CR */
  3089. PORTCR(135, 0xe6052087), /* PORT135CR */
  3090. PORTCR(136, 0xe6052088), /* PORT136CR */
  3091. PORTCR(137, 0xe6052089), /* PORT137CR */
  3092. PORTCR(138, 0xe605208a), /* PORT138CR */
  3093. PORTCR(139, 0xe605208b), /* PORT139CR */
  3094. PORTCR(140, 0xe605208c), /* PORT140CR */
  3095. PORTCR(141, 0xe605208d), /* PORT141CR */
  3096. PORTCR(142, 0xe605208e), /* PORT142CR */
  3097. PORTCR(143, 0xe605208f), /* PORT143CR */
  3098. PORTCR(144, 0xe6052090), /* PORT144CR */
  3099. PORTCR(145, 0xe6052091), /* PORT145CR */
  3100. PORTCR(146, 0xe6052092), /* PORT146CR */
  3101. PORTCR(147, 0xe6052093), /* PORT147CR */
  3102. PORTCR(148, 0xe6052094), /* PORT148CR */
  3103. PORTCR(149, 0xe6052095), /* PORT149CR */
  3104. PORTCR(150, 0xe6052096), /* PORT150CR */
  3105. PORTCR(151, 0xe6052097), /* PORT151CR */
  3106. PORTCR(152, 0xe6052098), /* PORT152CR */
  3107. PORTCR(153, 0xe6052099), /* PORT153CR */
  3108. PORTCR(154, 0xe605209a), /* PORT154CR */
  3109. PORTCR(155, 0xe605209b), /* PORT155CR */
  3110. PORTCR(156, 0xe605209c), /* PORT156CR */
  3111. PORTCR(157, 0xe605209d), /* PORT157CR */
  3112. PORTCR(158, 0xe605209e), /* PORT158CR */
  3113. PORTCR(159, 0xe605209f), /* PORT159CR */
  3114. PORTCR(160, 0xe60520a0), /* PORT160CR */
  3115. PORTCR(161, 0xe60520a1), /* PORT161CR */
  3116. PORTCR(162, 0xe60520a2), /* PORT162CR */
  3117. PORTCR(163, 0xe60520a3), /* PORT163CR */
  3118. PORTCR(164, 0xe60520a4), /* PORT164CR */
  3119. PORTCR(165, 0xe60520a5), /* PORT165CR */
  3120. PORTCR(166, 0xe60520a6), /* PORT166CR */
  3121. PORTCR(167, 0xe60520a7), /* PORT167CR */
  3122. PORTCR(168, 0xe60520a8), /* PORT168CR */
  3123. PORTCR(169, 0xe60520a9), /* PORT169CR */
  3124. PORTCR(170, 0xe60520aa), /* PORT170CR */
  3125. PORTCR(171, 0xe60520ab), /* PORT171CR */
  3126. PORTCR(172, 0xe60520ac), /* PORT172CR */
  3127. PORTCR(173, 0xe60520ad), /* PORT173CR */
  3128. PORTCR(174, 0xe60520ae), /* PORT174CR */
  3129. PORTCR(175, 0xe60520af), /* PORT175CR */
  3130. PORTCR(176, 0xe60520b0), /* PORT176CR */
  3131. PORTCR(177, 0xe60520b1), /* PORT177CR */
  3132. PORTCR(178, 0xe60520b2), /* PORT178CR */
  3133. PORTCR(179, 0xe60520b3), /* PORT179CR */
  3134. PORTCR(180, 0xe60520b4), /* PORT180CR */
  3135. PORTCR(181, 0xe60520b5), /* PORT181CR */
  3136. PORTCR(182, 0xe60520b6), /* PORT182CR */
  3137. PORTCR(183, 0xe60520b7), /* PORT183CR */
  3138. PORTCR(184, 0xe60520b8), /* PORT184CR */
  3139. PORTCR(185, 0xe60520b9), /* PORT185CR */
  3140. PORTCR(186, 0xe60520ba), /* PORT186CR */
  3141. PORTCR(187, 0xe60520bb), /* PORT187CR */
  3142. PORTCR(188, 0xe60520bc), /* PORT188CR */
  3143. PORTCR(189, 0xe60520bd), /* PORT189CR */
  3144. PORTCR(190, 0xe60520be), /* PORT190CR */
  3145. PORTCR(191, 0xe60520bf), /* PORT191CR */
  3146. PORTCR(192, 0xe60520c0), /* PORT192CR */
  3147. PORTCR(193, 0xe60520c1), /* PORT193CR */
  3148. PORTCR(194, 0xe60520c2), /* PORT194CR */
  3149. PORTCR(195, 0xe60520c3), /* PORT195CR */
  3150. PORTCR(196, 0xe60520c4), /* PORT196CR */
  3151. PORTCR(197, 0xe60520c5), /* PORT197CR */
  3152. PORTCR(198, 0xe60520c6), /* PORT198CR */
  3153. PORTCR(199, 0xe60520c7), /* PORT199CR */
  3154. PORTCR(200, 0xe60520c8), /* PORT200CR */
  3155. PORTCR(201, 0xe60520c9), /* PORT201CR */
  3156. PORTCR(202, 0xe60520ca), /* PORT202CR */
  3157. PORTCR(203, 0xe60520cb), /* PORT203CR */
  3158. PORTCR(204, 0xe60520cc), /* PORT204CR */
  3159. PORTCR(205, 0xe60520cd), /* PORT205CR */
  3160. PORTCR(206, 0xe60520ce), /* PORT206CR */
  3161. PORTCR(207, 0xe60520cf), /* PORT207CR */
  3162. PORTCR(208, 0xe60520d0), /* PORT208CR */
  3163. PORTCR(209, 0xe60520d1), /* PORT209CR */
  3164. PORTCR(210, 0xe60530d2), /* PORT210CR */
  3165. PORTCR(211, 0xe60530d3), /* PORT211CR */
  3166. { PINMUX_CFG_REG("MSEL1CR", 0xe605800c, 32, 1) {
  3167. MSEL1CR_31_0, MSEL1CR_31_1,
  3168. MSEL1CR_30_0, MSEL1CR_30_1,
  3169. MSEL1CR_29_0, MSEL1CR_29_1,
  3170. MSEL1CR_28_0, MSEL1CR_28_1,
  3171. MSEL1CR_27_0, MSEL1CR_27_1,
  3172. MSEL1CR_26_0, MSEL1CR_26_1,
  3173. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  3174. 0, 0, 0, 0, 0, 0, 0, 0,
  3175. MSEL1CR_16_0, MSEL1CR_16_1,
  3176. MSEL1CR_15_0, MSEL1CR_15_1,
  3177. MSEL1CR_14_0, MSEL1CR_14_1,
  3178. MSEL1CR_13_0, MSEL1CR_13_1,
  3179. MSEL1CR_12_0, MSEL1CR_12_1,
  3180. 0, 0, 0, 0,
  3181. MSEL1CR_9_0, MSEL1CR_9_1,
  3182. 0, 0,
  3183. MSEL1CR_7_0, MSEL1CR_7_1,
  3184. MSEL1CR_6_0, MSEL1CR_6_1,
  3185. MSEL1CR_5_0, MSEL1CR_5_1,
  3186. MSEL1CR_4_0, MSEL1CR_4_1,
  3187. MSEL1CR_3_0, MSEL1CR_3_1,
  3188. MSEL1CR_2_0, MSEL1CR_2_1,
  3189. 0, 0,
  3190. MSEL1CR_0_0, MSEL1CR_0_1,
  3191. }
  3192. },
  3193. { PINMUX_CFG_REG("MSEL3CR", 0xE6058020, 32, 1) {
  3194. 0, 0, 0, 0, 0, 0, 0, 0,
  3195. 0, 0, 0, 0, 0, 0, 0, 0,
  3196. 0, 0, 0, 0, 0, 0, 0, 0,
  3197. 0, 0, 0, 0, 0, 0, 0, 0,
  3198. MSEL3CR_15_0, MSEL3CR_15_1,
  3199. 0, 0, 0, 0, 0, 0, 0, 0,
  3200. 0, 0, 0, 0, 0, 0, 0, 0,
  3201. MSEL3CR_6_0, MSEL3CR_6_1,
  3202. 0, 0, 0, 0, 0, 0, 0, 0,
  3203. 0, 0, 0, 0,
  3204. }
  3205. },
  3206. { PINMUX_CFG_REG("MSEL4CR", 0xE6058024, 32, 1) {
  3207. 0, 0, 0, 0, 0, 0, 0, 0,
  3208. 0, 0, 0, 0, 0, 0, 0, 0,
  3209. 0, 0, 0, 0, 0, 0, 0, 0,
  3210. MSEL4CR_19_0, MSEL4CR_19_1,
  3211. MSEL4CR_18_0, MSEL4CR_18_1,
  3212. 0, 0, 0, 0,
  3213. MSEL4CR_15_0, MSEL4CR_15_1,
  3214. 0, 0, 0, 0, 0, 0, 0, 0,
  3215. MSEL4CR_10_0, MSEL4CR_10_1,
  3216. 0, 0, 0, 0, 0, 0,
  3217. MSEL4CR_6_0, MSEL4CR_6_1,
  3218. 0, 0,
  3219. MSEL4CR_4_0, MSEL4CR_4_1,
  3220. 0, 0, 0, 0,
  3221. MSEL4CR_1_0, MSEL4CR_1_1,
  3222. 0, 0,
  3223. }
  3224. },
  3225. { PINMUX_CFG_REG("MSEL5CR", 0xE6058028, 32, 1) {
  3226. MSEL5CR_31_0, MSEL5CR_31_1,
  3227. MSEL5CR_30_0, MSEL5CR_30_1,
  3228. MSEL5CR_29_0, MSEL5CR_29_1,
  3229. 0, 0,
  3230. MSEL5CR_27_0, MSEL5CR_27_1,
  3231. 0, 0,
  3232. MSEL5CR_25_0, MSEL5CR_25_1,
  3233. 0, 0,
  3234. MSEL5CR_23_0, MSEL5CR_23_1,
  3235. 0, 0,
  3236. MSEL5CR_21_0, MSEL5CR_21_1,
  3237. 0, 0,
  3238. MSEL5CR_19_0, MSEL5CR_19_1,
  3239. 0, 0,
  3240. MSEL5CR_17_0, MSEL5CR_17_1,
  3241. 0, 0,
  3242. MSEL5CR_15_0, MSEL5CR_15_1,
  3243. MSEL5CR_14_0, MSEL5CR_14_1,
  3244. MSEL5CR_13_0, MSEL5CR_13_1,
  3245. MSEL5CR_12_0, MSEL5CR_12_1,
  3246. MSEL5CR_11_0, MSEL5CR_11_1,
  3247. MSEL5CR_10_0, MSEL5CR_10_1,
  3248. 0, 0,
  3249. MSEL5CR_8_0, MSEL5CR_8_1,
  3250. MSEL5CR_7_0, MSEL5CR_7_1,
  3251. MSEL5CR_6_0, MSEL5CR_6_1,
  3252. MSEL5CR_5_0, MSEL5CR_5_1,
  3253. MSEL5CR_4_0, MSEL5CR_4_1,
  3254. MSEL5CR_3_0, MSEL5CR_3_1,
  3255. MSEL5CR_2_0, MSEL5CR_2_1,
  3256. 0, 0,
  3257. MSEL5CR_0_0, MSEL5CR_0_1,
  3258. }
  3259. },
  3260. { },
  3261. };
  3262. static const struct pinmux_data_reg pinmux_data_regs[] = {
  3263. { PINMUX_DATA_REG("PORTL031_000DR", 0xe6054800, 32) {
  3264. PORT31_DATA, PORT30_DATA, PORT29_DATA, PORT28_DATA,
  3265. PORT27_DATA, PORT26_DATA, PORT25_DATA, PORT24_DATA,
  3266. PORT23_DATA, PORT22_DATA, PORT21_DATA, PORT20_DATA,
  3267. PORT19_DATA, PORT18_DATA, PORT17_DATA, PORT16_DATA,
  3268. PORT15_DATA, PORT14_DATA, PORT13_DATA, PORT12_DATA,
  3269. PORT11_DATA, PORT10_DATA, PORT9_DATA, PORT8_DATA,
  3270. PORT7_DATA, PORT6_DATA, PORT5_DATA, PORT4_DATA,
  3271. PORT3_DATA, PORT2_DATA, PORT1_DATA, PORT0_DATA }
  3272. },
  3273. { PINMUX_DATA_REG("PORTL063_032DR", 0xe6054804, 32) {
  3274. PORT63_DATA, PORT62_DATA, PORT61_DATA, PORT60_DATA,
  3275. PORT59_DATA, PORT58_DATA, PORT57_DATA, PORT56_DATA,
  3276. PORT55_DATA, PORT54_DATA, PORT53_DATA, PORT52_DATA,
  3277. PORT51_DATA, PORT50_DATA, PORT49_DATA, PORT48_DATA,
  3278. PORT47_DATA, PORT46_DATA, PORT45_DATA, PORT44_DATA,
  3279. PORT43_DATA, PORT42_DATA, PORT41_DATA, PORT40_DATA,
  3280. PORT39_DATA, PORT38_DATA, PORT37_DATA, PORT36_DATA,
  3281. PORT35_DATA, PORT34_DATA, PORT33_DATA, PORT32_DATA }
  3282. },
  3283. { PINMUX_DATA_REG("PORTL095_064DR", 0xe6054808, 32) {
  3284. 0, 0, 0, 0,
  3285. 0, 0, 0, 0,
  3286. 0, 0, 0, 0,
  3287. PORT83_DATA, PORT82_DATA, PORT81_DATA, PORT80_DATA,
  3288. PORT79_DATA, PORT78_DATA, PORT77_DATA, PORT76_DATA,
  3289. PORT75_DATA, PORT74_DATA, PORT73_DATA, PORT72_DATA,
  3290. PORT71_DATA, PORT70_DATA, PORT69_DATA, PORT68_DATA,
  3291. PORT67_DATA, PORT66_DATA, PORT65_DATA, PORT64_DATA }
  3292. },
  3293. { PINMUX_DATA_REG("PORTD095_064DR", 0xe6055808, 32) {
  3294. PORT95_DATA, PORT94_DATA, PORT93_DATA, PORT92_DATA,
  3295. PORT91_DATA, PORT90_DATA, PORT89_DATA, PORT88_DATA,
  3296. PORT87_DATA, PORT86_DATA, PORT85_DATA, PORT84_DATA,
  3297. 0, 0, 0, 0,
  3298. 0, 0, 0, 0,
  3299. 0, 0, 0, 0,
  3300. 0, 0, 0, 0,
  3301. 0, 0, 0, 0 }
  3302. },
  3303. { PINMUX_DATA_REG("PORTD127_096DR", 0xe605580c, 32) {
  3304. 0, 0, 0, 0,
  3305. 0, 0, 0, 0,
  3306. 0, 0, 0, 0,
  3307. 0, PORT114_DATA, PORT113_DATA, PORT112_DATA,
  3308. PORT111_DATA, PORT110_DATA, PORT109_DATA, PORT108_DATA,
  3309. PORT107_DATA, PORT106_DATA, PORT105_DATA, PORT104_DATA,
  3310. PORT103_DATA, PORT102_DATA, PORT101_DATA, PORT100_DATA,
  3311. PORT99_DATA, PORT98_DATA, PORT97_DATA, PORT96_DATA }
  3312. },
  3313. { PINMUX_DATA_REG("PORTR127_096DR", 0xe605680C, 32) {
  3314. PORT127_DATA, PORT126_DATA, PORT125_DATA, PORT124_DATA,
  3315. PORT123_DATA, PORT122_DATA, PORT121_DATA, PORT120_DATA,
  3316. PORT119_DATA, PORT118_DATA, PORT117_DATA, PORT116_DATA,
  3317. PORT115_DATA, 0, 0, 0,
  3318. 0, 0, 0, 0,
  3319. 0, 0, 0, 0,
  3320. 0, 0, 0, 0,
  3321. 0, 0, 0, 0 }
  3322. },
  3323. { PINMUX_DATA_REG("PORTR159_128DR", 0xe6056810, 32) {
  3324. PORT159_DATA, PORT158_DATA, PORT157_DATA, PORT156_DATA,
  3325. PORT155_DATA, PORT154_DATA, PORT153_DATA, PORT152_DATA,
  3326. PORT151_DATA, PORT150_DATA, PORT149_DATA, PORT148_DATA,
  3327. PORT147_DATA, PORT146_DATA, PORT145_DATA, PORT144_DATA,
  3328. PORT143_DATA, PORT142_DATA, PORT141_DATA, PORT140_DATA,
  3329. PORT139_DATA, PORT138_DATA, PORT137_DATA, PORT136_DATA,
  3330. PORT135_DATA, PORT134_DATA, PORT133_DATA, PORT132_DATA,
  3331. PORT131_DATA, PORT130_DATA, PORT129_DATA, PORT128_DATA }
  3332. },
  3333. { PINMUX_DATA_REG("PORTR191_160DR", 0xe6056814, 32) {
  3334. PORT191_DATA, PORT190_DATA, PORT189_DATA, PORT188_DATA,
  3335. PORT187_DATA, PORT186_DATA, PORT185_DATA, PORT184_DATA,
  3336. PORT183_DATA, PORT182_DATA, PORT181_DATA, PORT180_DATA,
  3337. PORT179_DATA, PORT178_DATA, PORT177_DATA, PORT176_DATA,
  3338. PORT175_DATA, PORT174_DATA, PORT173_DATA, PORT172_DATA,
  3339. PORT171_DATA, PORT170_DATA, PORT169_DATA, PORT168_DATA,
  3340. PORT167_DATA, PORT166_DATA, PORT165_DATA, PORT164_DATA,
  3341. PORT163_DATA, PORT162_DATA, PORT161_DATA, PORT160_DATA }
  3342. },
  3343. { PINMUX_DATA_REG("PORTR223_192DR", 0xe6056818, 32) {
  3344. 0, 0, 0, 0,
  3345. 0, 0, 0, 0,
  3346. 0, 0, 0, 0,
  3347. 0, 0, PORT209_DATA, PORT208_DATA,
  3348. PORT207_DATA, PORT206_DATA, PORT205_DATA, PORT204_DATA,
  3349. PORT203_DATA, PORT202_DATA, PORT201_DATA, PORT200_DATA,
  3350. PORT199_DATA, PORT198_DATA, PORT197_DATA, PORT196_DATA,
  3351. PORT195_DATA, PORT194_DATA, PORT193_DATA, PORT192_DATA }
  3352. },
  3353. { PINMUX_DATA_REG("PORTU223_192DR", 0xe6057818, 32) {
  3354. 0, 0, 0, 0,
  3355. 0, 0, 0, 0,
  3356. 0, 0, 0, 0,
  3357. PORT211_DATA, PORT210_DATA, 0, 0,
  3358. 0, 0, 0, 0,
  3359. 0, 0, 0, 0,
  3360. 0, 0, 0, 0,
  3361. 0, 0, 0, 0 }
  3362. },
  3363. { },
  3364. };
  3365. static const struct pinmux_irq pinmux_irqs[] = {
  3366. PINMUX_IRQ(2, 13), /* IRQ0A */
  3367. PINMUX_IRQ(20), /* IRQ1A */
  3368. PINMUX_IRQ(11, 12), /* IRQ2A */
  3369. PINMUX_IRQ(10, 14), /* IRQ3A */
  3370. PINMUX_IRQ(15, 172), /* IRQ4A */
  3371. PINMUX_IRQ(0, 1), /* IRQ5A */
  3372. PINMUX_IRQ(121, 173), /* IRQ6A */
  3373. PINMUX_IRQ(120, 209), /* IRQ7A */
  3374. PINMUX_IRQ(119), /* IRQ8A */
  3375. PINMUX_IRQ(118, 210), /* IRQ9A */
  3376. PINMUX_IRQ(19), /* IRQ10A */
  3377. PINMUX_IRQ(104), /* IRQ11A */
  3378. PINMUX_IRQ(42, 97), /* IRQ12A */
  3379. PINMUX_IRQ(64, 98), /* IRQ13A */
  3380. PINMUX_IRQ(63, 99), /* IRQ14A */
  3381. PINMUX_IRQ(62, 100), /* IRQ15A */
  3382. PINMUX_IRQ(68, 211), /* IRQ16A */
  3383. PINMUX_IRQ(69), /* IRQ17A */
  3384. PINMUX_IRQ(70), /* IRQ18A */
  3385. PINMUX_IRQ(71), /* IRQ19A */
  3386. PINMUX_IRQ(67), /* IRQ20A */
  3387. PINMUX_IRQ(202), /* IRQ21A */
  3388. PINMUX_IRQ(95), /* IRQ22A */
  3389. PINMUX_IRQ(96), /* IRQ23A */
  3390. PINMUX_IRQ(180), /* IRQ24A */
  3391. PINMUX_IRQ(38), /* IRQ25A */
  3392. PINMUX_IRQ(58, 81), /* IRQ26A */
  3393. PINMUX_IRQ(57, 168), /* IRQ27A */
  3394. PINMUX_IRQ(56, 169), /* IRQ28A */
  3395. PINMUX_IRQ(50, 170), /* IRQ29A */
  3396. PINMUX_IRQ(49, 171), /* IRQ30A */
  3397. PINMUX_IRQ(41, 167), /* IRQ31A */
  3398. };
  3399. #define PORTnCR_PULMD_OFF (0 << 6)
  3400. #define PORTnCR_PULMD_DOWN (2 << 6)
  3401. #define PORTnCR_PULMD_UP (3 << 6)
  3402. #define PORTnCR_PULMD_MASK (3 << 6)
  3403. struct r8a7740_portcr_group {
  3404. unsigned int end_pin;
  3405. unsigned int offset;
  3406. };
  3407. static const struct r8a7740_portcr_group r8a7740_portcr_offsets[] = {
  3408. { 83, 0x0000 }, { 114, 0x1000 }, { 209, 0x2000 }, { 211, 0x3000 },
  3409. };
  3410. static void __iomem *r8a7740_pinmux_portcr(struct sh_pfc *pfc, unsigned int pin)
  3411. {
  3412. unsigned int i;
  3413. for (i = 0; i < ARRAY_SIZE(r8a7740_portcr_offsets); ++i) {
  3414. const struct r8a7740_portcr_group *group =
  3415. &r8a7740_portcr_offsets[i];
  3416. if (pin <= group->end_pin)
  3417. return pfc->windows->virt + group->offset + pin;
  3418. }
  3419. return NULL;
  3420. }
  3421. static unsigned int r8a7740_pinmux_get_bias(struct sh_pfc *pfc, unsigned int pin)
  3422. {
  3423. void __iomem *addr = r8a7740_pinmux_portcr(pfc, pin);
  3424. u32 value = ioread8(addr) & PORTnCR_PULMD_MASK;
  3425. switch (value) {
  3426. case PORTnCR_PULMD_UP:
  3427. return PIN_CONFIG_BIAS_PULL_UP;
  3428. case PORTnCR_PULMD_DOWN:
  3429. return PIN_CONFIG_BIAS_PULL_DOWN;
  3430. case PORTnCR_PULMD_OFF:
  3431. default:
  3432. return PIN_CONFIG_BIAS_DISABLE;
  3433. }
  3434. }
  3435. static void r8a7740_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin,
  3436. unsigned int bias)
  3437. {
  3438. void __iomem *addr = r8a7740_pinmux_portcr(pfc, pin);
  3439. u32 value = ioread8(addr) & ~PORTnCR_PULMD_MASK;
  3440. switch (bias) {
  3441. case PIN_CONFIG_BIAS_PULL_UP:
  3442. value |= PORTnCR_PULMD_UP;
  3443. break;
  3444. case PIN_CONFIG_BIAS_PULL_DOWN:
  3445. value |= PORTnCR_PULMD_DOWN;
  3446. break;
  3447. }
  3448. iowrite8(value, addr);
  3449. }
  3450. static const struct sh_pfc_soc_operations r8a7740_pfc_ops = {
  3451. .get_bias = r8a7740_pinmux_get_bias,
  3452. .set_bias = r8a7740_pinmux_set_bias,
  3453. };
  3454. const struct sh_pfc_soc_info r8a7740_pinmux_info = {
  3455. .name = "r8a7740_pfc",
  3456. .ops = &r8a7740_pfc_ops,
  3457. .input = { PINMUX_INPUT_BEGIN,
  3458. PINMUX_INPUT_END },
  3459. .output = { PINMUX_OUTPUT_BEGIN,
  3460. PINMUX_OUTPUT_END },
  3461. .function = { PINMUX_FUNCTION_BEGIN,
  3462. PINMUX_FUNCTION_END },
  3463. .pins = pinmux_pins,
  3464. .nr_pins = ARRAY_SIZE(pinmux_pins),
  3465. .groups = pinmux_groups,
  3466. .nr_groups = ARRAY_SIZE(pinmux_groups),
  3467. .functions = pinmux_functions,
  3468. .nr_functions = ARRAY_SIZE(pinmux_functions),
  3469. .cfg_regs = pinmux_config_regs,
  3470. .data_regs = pinmux_data_regs,
  3471. .pinmux_data = pinmux_data,
  3472. .pinmux_data_size = ARRAY_SIZE(pinmux_data),
  3473. .gpio_irq = pinmux_irqs,
  3474. .gpio_irq_size = ARRAY_SIZE(pinmux_irqs),
  3475. };