pfc-r8a7779.c 129 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872
  1. /*
  2. * r8a7779 processor support - PFC hardware block
  3. *
  4. * Copyright (C) 2011, 2013 Renesas Solutions Corp.
  5. * Copyright (C) 2011 Magnus Damm
  6. * Copyright (C) 2013 Cogent Embedded, Inc.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; version 2 of the 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/kernel.h>
  22. #include "sh_pfc.h"
  23. #define PORT_GP_9(bank, fn, sfx) \
  24. PORT_GP_1(bank, 0, fn, sfx), PORT_GP_1(bank, 1, fn, sfx), \
  25. PORT_GP_1(bank, 2, fn, sfx), PORT_GP_1(bank, 3, fn, sfx), \
  26. PORT_GP_1(bank, 4, fn, sfx), PORT_GP_1(bank, 5, fn, sfx), \
  27. PORT_GP_1(bank, 6, fn, sfx), PORT_GP_1(bank, 7, fn, sfx), \
  28. PORT_GP_1(bank, 8, fn, sfx)
  29. #define CPU_ALL_PORT(fn, sfx) \
  30. PORT_GP_32(0, fn, sfx), \
  31. PORT_GP_32(1, fn, sfx), \
  32. PORT_GP_32(2, fn, sfx), \
  33. PORT_GP_32(3, fn, sfx), \
  34. PORT_GP_32(4, fn, sfx), \
  35. PORT_GP_32(5, fn, sfx), \
  36. PORT_GP_9(6, fn, sfx)
  37. enum {
  38. PINMUX_RESERVED = 0,
  39. PINMUX_DATA_BEGIN,
  40. GP_ALL(DATA), /* GP_0_0_DATA -> GP_6_8_DATA */
  41. PINMUX_DATA_END,
  42. PINMUX_FUNCTION_BEGIN,
  43. GP_ALL(FN), /* GP_0_0_FN -> GP_6_8_FN */
  44. /* GPSR0 */
  45. FN_AVS1, FN_AVS2, FN_IP0_7_6, FN_A17,
  46. FN_A18, FN_A19, FN_IP0_9_8, FN_IP0_11_10,
  47. FN_IP0_13_12, FN_IP0_15_14, FN_IP0_18_16, FN_IP0_22_19,
  48. FN_IP0_24_23, FN_IP0_25, FN_IP0_27_26, FN_IP1_1_0,
  49. FN_IP1_3_2, FN_IP1_6_4, FN_IP1_10_7, FN_IP1_14_11,
  50. FN_IP1_18_15, FN_IP0_5_3, FN_IP0_30_28, FN_IP2_18_16,
  51. FN_IP2_21_19, FN_IP2_30_28, FN_IP3_2_0, FN_IP3_11_9,
  52. FN_IP3_14_12, FN_IP3_22_21, FN_IP3_26_24, FN_IP3_31_29,
  53. /* GPSR1 */
  54. FN_IP4_1_0, FN_IP4_4_2, FN_IP4_7_5, FN_IP4_10_8,
  55. FN_IP4_11, FN_IP4_12, FN_IP4_13, FN_IP4_14,
  56. FN_IP4_15, FN_IP4_16, FN_IP4_19_17, FN_IP4_22_20,
  57. FN_IP4_23, FN_IP4_24, FN_IP4_25, FN_IP4_26,
  58. FN_IP4_27, FN_IP4_28, FN_IP4_31_29, FN_IP5_2_0,
  59. FN_IP5_3, FN_IP5_4, FN_IP5_5, FN_IP5_6,
  60. FN_IP5_7, FN_IP5_8, FN_IP5_10_9, FN_IP5_12_11,
  61. FN_IP5_14_13, FN_IP5_16_15, FN_IP5_20_17, FN_IP5_23_21,
  62. /* GPSR2 */
  63. FN_IP5_27_24, FN_IP8_20, FN_IP8_22_21, FN_IP8_24_23,
  64. FN_IP8_27_25, FN_IP8_30_28, FN_IP9_1_0, FN_IP9_3_2,
  65. FN_IP9_4, FN_IP9_5, FN_IP9_6, FN_IP9_7,
  66. FN_IP9_9_8, FN_IP9_11_10, FN_IP9_13_12, FN_IP9_15_14,
  67. FN_IP9_18_16, FN_IP9_21_19, FN_IP9_23_22, FN_IP9_25_24,
  68. FN_IP9_27_26, FN_IP9_29_28, FN_IP10_2_0, FN_IP10_5_3,
  69. FN_IP10_8_6, FN_IP10_11_9, FN_IP10_14_12, FN_IP10_17_15,
  70. FN_IP10_20_18, FN_IP10_23_21, FN_IP10_25_24, FN_IP10_28_26,
  71. /* GPSR3 */
  72. FN_IP10_31_29, FN_IP11_2_0, FN_IP11_5_3, FN_IP11_8_6,
  73. FN_IP11_11_9, FN_IP11_14_12, FN_IP11_17_15, FN_IP11_20_18,
  74. FN_IP11_23_21, FN_IP11_26_24, FN_IP11_29_27, FN_IP12_2_0,
  75. FN_IP12_5_3, FN_IP12_8_6, FN_IP12_11_9, FN_IP12_14_12,
  76. FN_IP12_17_15, FN_IP7_16_15, FN_IP7_18_17, FN_IP7_28_27,
  77. FN_IP7_30_29, FN_IP7_20_19, FN_IP7_22_21, FN_IP7_24_23,
  78. FN_IP7_26_25, FN_IP1_20_19, FN_IP1_22_21, FN_IP1_24_23,
  79. FN_IP5_28, FN_IP5_30_29, FN_IP6_1_0, FN_IP6_3_2,
  80. /* GPSR4 */
  81. FN_IP6_5_4, FN_IP6_7_6, FN_IP6_8, FN_IP6_11_9,
  82. FN_IP6_14_12, FN_IP6_17_15, FN_IP6_19_18, FN_IP6_22_20,
  83. FN_IP6_24_23, FN_IP6_26_25, FN_IP6_30_29, FN_IP7_1_0,
  84. FN_IP7_3_2, FN_IP7_6_4, FN_IP7_9_7, FN_IP7_12_10,
  85. FN_IP7_14_13, FN_IP2_7_4, FN_IP2_11_8, FN_IP2_15_12,
  86. FN_IP1_28_25, FN_IP2_3_0, FN_IP8_3_0, FN_IP8_7_4,
  87. FN_IP8_11_8, FN_IP8_15_12, FN_USB_PENC0, FN_USB_PENC1,
  88. FN_IP0_2_0, FN_IP8_17_16, FN_IP8_18, FN_IP8_19,
  89. /* GPSR5 */
  90. FN_A1, FN_A2, FN_A3, FN_A4,
  91. FN_A5, FN_A6, FN_A7, FN_A8,
  92. FN_A9, FN_A10, FN_A11, FN_A12,
  93. FN_A13, FN_A14, FN_A15, FN_A16,
  94. FN_RD, FN_WE0, FN_WE1, FN_EX_WAIT0,
  95. FN_IP3_23, FN_IP3_27, FN_IP3_28, FN_IP2_22,
  96. FN_IP2_23, FN_IP2_24, FN_IP2_25, FN_IP2_26,
  97. FN_IP2_27, FN_IP3_3, FN_IP3_4, FN_IP3_5,
  98. /* GPSR6 */
  99. FN_IP3_6, FN_IP3_7, FN_IP3_8, FN_IP3_15,
  100. FN_IP3_16, FN_IP3_17, FN_IP3_18, FN_IP3_19,
  101. FN_IP3_20,
  102. /* IPSR0 */
  103. FN_RD_WR, FN_FWE, FN_ATAG0, FN_VI1_R7,
  104. FN_HRTS1, FN_RX4_C,
  105. FN_CS1_A26, FN_HSPI_TX2, FN_SDSELF_B,
  106. FN_CS0, FN_HSPI_CS2_B,
  107. FN_CLKOUT, FN_TX3C_IRDA_TX_C, FN_PWM0_B,
  108. FN_A25, FN_SD1_WP, FN_MMC0_D5, FN_FD5,
  109. FN_HSPI_RX2, FN_VI1_R3, FN_TX5_B, FN_SSI_SDATA7_B,
  110. FN_CTS0_B,
  111. FN_A24, FN_SD1_CD, FN_MMC0_D4, FN_FD4,
  112. FN_HSPI_CS2, FN_VI1_R2, FN_SSI_WS78_B,
  113. FN_A23, FN_FCLE, FN_HSPI_CLK2, FN_VI1_R1,
  114. FN_A22, FN_RX5_D, FN_HSPI_RX2_B, FN_VI1_R0,
  115. FN_A21, FN_SCK5_D, FN_HSPI_CLK2_B,
  116. FN_A20, FN_TX5_D, FN_HSPI_TX2_B,
  117. FN_A0, FN_SD1_DAT3, FN_MMC0_D3, FN_FD3,
  118. FN_BS, FN_SD1_DAT2, FN_MMC0_D2, FN_FD2,
  119. FN_ATADIR0, FN_SDSELF, FN_HCTS1, FN_TX4_C,
  120. FN_USB_PENC2, FN_SCK0, FN_PWM1, FN_PWMFSW0,
  121. FN_SCIF_CLK, FN_TCLK0_C,
  122. /* IPSR1 */
  123. FN_EX_CS0, FN_RX3_C_IRDA_RX_C, FN_MMC0_D6,
  124. FN_FD6, FN_EX_CS1, FN_MMC0_D7, FN_FD7,
  125. FN_EX_CS2, FN_SD1_CLK, FN_MMC0_CLK, FN_FALE,
  126. FN_ATACS00, FN_EX_CS3, FN_SD1_CMD, FN_MMC0_CMD,
  127. FN_FRE, FN_ATACS10, FN_VI1_R4, FN_RX5_B,
  128. FN_HSCK1, FN_SSI_SDATA8_B, FN_RTS0_B_TANS_B, FN_SSI_SDATA9,
  129. FN_EX_CS4, FN_SD1_DAT0, FN_MMC0_D0, FN_FD0,
  130. FN_ATARD0, FN_VI1_R5, FN_SCK5_B, FN_HTX1,
  131. FN_TX2_E, FN_TX0_B, FN_SSI_SCK9, FN_EX_CS5,
  132. FN_SD1_DAT1, FN_MMC0_D1, FN_FD1, FN_ATAWR0,
  133. FN_VI1_R6, FN_HRX1, FN_RX2_E, FN_RX0_B,
  134. FN_SSI_WS9, FN_MLB_CLK, FN_PWM2, FN_SCK4,
  135. FN_MLB_SIG, FN_PWM3, FN_TX4, FN_MLB_DAT,
  136. FN_PWM4, FN_RX4, FN_HTX0, FN_TX1,
  137. FN_SDATA, FN_CTS0_C, FN_SUB_TCK, FN_CC5_STATE2,
  138. FN_CC5_STATE10, FN_CC5_STATE18, FN_CC5_STATE26, FN_CC5_STATE34,
  139. /* IPSR2 */
  140. FN_HRX0, FN_RX1, FN_SCKZ, FN_RTS0_C_TANS_C,
  141. FN_SUB_TDI, FN_CC5_STATE3, FN_CC5_STATE11, FN_CC5_STATE19,
  142. FN_CC5_STATE27, FN_CC5_STATE35, FN_HSCK0, FN_SCK1,
  143. FN_MTS, FN_PWM5, FN_SCK0_C, FN_SSI_SDATA9_B,
  144. FN_SUB_TDO, FN_CC5_STATE0, FN_CC5_STATE8, FN_CC5_STATE16,
  145. FN_CC5_STATE24, FN_CC5_STATE32, FN_HCTS0, FN_CTS1,
  146. FN_STM, FN_PWM0_D, FN_RX0_C, FN_SCIF_CLK_C,
  147. FN_SUB_TRST, FN_TCLK1_B, FN_CC5_OSCOUT, FN_HRTS0,
  148. FN_RTS1_TANS, FN_MDATA, FN_TX0_C, FN_SUB_TMS,
  149. FN_CC5_STATE1, FN_CC5_STATE9, FN_CC5_STATE17, FN_CC5_STATE25,
  150. FN_CC5_STATE33, FN_DU0_DR0, FN_LCDOUT0, FN_DREQ0,
  151. FN_GPS_CLK_B, FN_AUDATA0, FN_TX5_C, FN_DU0_DR1,
  152. FN_LCDOUT1, FN_DACK0, FN_DRACK0, FN_GPS_SIGN_B,
  153. FN_AUDATA1, FN_RX5_C, FN_DU0_DR2, FN_LCDOUT2,
  154. FN_DU0_DR3, FN_LCDOUT3, FN_DU0_DR4, FN_LCDOUT4,
  155. FN_DU0_DR5, FN_LCDOUT5, FN_DU0_DR6, FN_LCDOUT6,
  156. FN_DU0_DR7, FN_LCDOUT7, FN_DU0_DG0, FN_LCDOUT8,
  157. FN_DREQ1, FN_SCL2, FN_AUDATA2,
  158. /* IPSR3 */
  159. FN_DU0_DG1, FN_LCDOUT9, FN_DACK1, FN_SDA2,
  160. FN_AUDATA3, FN_DU0_DG2, FN_LCDOUT10, FN_DU0_DG3,
  161. FN_LCDOUT11, FN_DU0_DG4, FN_LCDOUT12, FN_DU0_DG5,
  162. FN_LCDOUT13, FN_DU0_DG6, FN_LCDOUT14, FN_DU0_DG7,
  163. FN_LCDOUT15, FN_DU0_DB0, FN_LCDOUT16, FN_EX_WAIT1,
  164. FN_SCL1, FN_TCLK1, FN_AUDATA4, FN_DU0_DB1,
  165. FN_LCDOUT17, FN_EX_WAIT2, FN_SDA1, FN_GPS_MAG_B,
  166. FN_AUDATA5, FN_SCK5_C, FN_DU0_DB2, FN_LCDOUT18,
  167. FN_DU0_DB3, FN_LCDOUT19, FN_DU0_DB4, FN_LCDOUT20,
  168. FN_DU0_DB5, FN_LCDOUT21, FN_DU0_DB6, FN_LCDOUT22,
  169. FN_DU0_DB7, FN_LCDOUT23, FN_DU0_DOTCLKIN, FN_QSTVA_QVS,
  170. FN_TX3_D_IRDA_TX_D, FN_SCL3_B, FN_DU0_DOTCLKOUT0, FN_QCLK,
  171. FN_DU0_DOTCLKOUT1, FN_QSTVB_QVE, FN_RX3_D_IRDA_RX_D, FN_SDA3_B,
  172. FN_SDA2_C, FN_DACK0_B, FN_DRACK0_B, FN_DU0_EXHSYNC_DU0_HSYNC,
  173. FN_QSTH_QHS, FN_DU0_EXVSYNC_DU0_VSYNC, FN_QSTB_QHE,
  174. FN_DU0_EXODDF_DU0_ODDF_DISP_CDE, FN_QCPV_QDE, FN_CAN1_TX,
  175. FN_TX2_C, FN_SCL2_C, FN_REMOCON,
  176. /* IPSR4 */
  177. FN_DU0_DISP, FN_QPOLA, FN_CAN_CLK_C, FN_SCK2_C,
  178. FN_DU0_CDE, FN_QPOLB, FN_CAN1_RX, FN_RX2_C,
  179. FN_DREQ0_B, FN_SSI_SCK78_B, FN_SCK0_B, FN_DU1_DR0,
  180. FN_VI2_DATA0_VI2_B0, FN_PWM6, FN_SD3_CLK, FN_TX3_E_IRDA_TX_E,
  181. FN_AUDCK, FN_PWMFSW0_B, FN_DU1_DR1, FN_VI2_DATA1_VI2_B1,
  182. FN_PWM0, FN_SD3_CMD, FN_RX3_E_IRDA_RX_E, FN_AUDSYNC,
  183. FN_CTS0_D, FN_DU1_DR2, FN_VI2_G0, FN_DU1_DR3,
  184. FN_VI2_G1, FN_DU1_DR4, FN_VI2_G2, FN_DU1_DR5,
  185. FN_VI2_G3, FN_DU1_DR6, FN_VI2_G4, FN_DU1_DR7,
  186. FN_VI2_G5, FN_DU1_DG0, FN_VI2_DATA2_VI2_B2, FN_SCL1_B,
  187. FN_SD3_DAT2, FN_SCK3_E, FN_AUDATA6, FN_TX0_D,
  188. FN_DU1_DG1, FN_VI2_DATA3_VI2_B3, FN_SDA1_B, FN_SD3_DAT3,
  189. FN_SCK5, FN_AUDATA7, FN_RX0_D, FN_DU1_DG2,
  190. FN_VI2_G6, FN_DU1_DG3, FN_VI2_G7, FN_DU1_DG4,
  191. FN_VI2_R0, FN_DU1_DG5, FN_VI2_R1, FN_DU1_DG6,
  192. FN_VI2_R2, FN_DU1_DG7, FN_VI2_R3, FN_DU1_DB0,
  193. FN_VI2_DATA4_VI2_B4, FN_SCL2_B, FN_SD3_DAT0, FN_TX5,
  194. FN_SCK0_D,
  195. /* IPSR5 */
  196. FN_DU1_DB1, FN_VI2_DATA5_VI2_B5, FN_SDA2_B, FN_SD3_DAT1,
  197. FN_RX5, FN_RTS0_D_TANS_D, FN_DU1_DB2, FN_VI2_R4,
  198. FN_DU1_DB3, FN_VI2_R5, FN_DU1_DB4, FN_VI2_R6,
  199. FN_DU1_DB5, FN_VI2_R7, FN_DU1_DB6, FN_SCL2_D,
  200. FN_DU1_DB7, FN_SDA2_D, FN_DU1_DOTCLKIN, FN_VI2_CLKENB,
  201. FN_HSPI_CS1, FN_SCL1_D, FN_DU1_DOTCLKOUT, FN_VI2_FIELD,
  202. FN_SDA1_D, FN_DU1_EXHSYNC_DU1_HSYNC, FN_VI2_HSYNC,
  203. FN_VI3_HSYNC, FN_DU1_EXVSYNC_DU1_VSYNC, FN_VI2_VSYNC, FN_VI3_VSYNC,
  204. FN_DU1_EXODDF_DU1_ODDF_DISP_CDE, FN_VI2_CLK, FN_TX3_B_IRDA_TX_B,
  205. FN_SD3_CD, FN_HSPI_TX1, FN_VI1_CLKENB, FN_VI3_CLKENB,
  206. FN_AUDIO_CLKC, FN_TX2_D, FN_SPEEDIN, FN_GPS_SIGN_D,
  207. FN_DU1_DISP, FN_VI2_DATA6_VI2_B6, FN_TCLK0, FN_QSTVA_B_QVS_B,
  208. FN_HSPI_CLK1, FN_SCK2_D, FN_AUDIO_CLKOUT_B, FN_GPS_MAG_D,
  209. FN_DU1_CDE, FN_VI2_DATA7_VI2_B7, FN_RX3_B_IRDA_RX_B,
  210. FN_SD3_WP, FN_HSPI_RX1, FN_VI1_FIELD, FN_VI3_FIELD,
  211. FN_AUDIO_CLKOUT, FN_RX2_D, FN_GPS_CLK_C, FN_GPS_CLK_D,
  212. FN_AUDIO_CLKA, FN_CAN_TXCLK, FN_AUDIO_CLKB, FN_USB_OVC2,
  213. FN_CAN_DEBUGOUT0, FN_MOUT0,
  214. /* IPSR6 */
  215. FN_SSI_SCK0129, FN_CAN_DEBUGOUT1, FN_MOUT1, FN_SSI_WS0129,
  216. FN_CAN_DEBUGOUT2, FN_MOUT2, FN_SSI_SDATA0, FN_CAN_DEBUGOUT3,
  217. FN_MOUT5, FN_SSI_SDATA1, FN_CAN_DEBUGOUT4, FN_MOUT6,
  218. FN_SSI_SDATA2, FN_CAN_DEBUGOUT5, FN_SSI_SCK34, FN_CAN_DEBUGOUT6,
  219. FN_CAN0_TX_B, FN_IERX, FN_SSI_SCK9_C, FN_SSI_WS34,
  220. FN_CAN_DEBUGOUT7, FN_CAN0_RX_B, FN_IETX, FN_SSI_WS9_C,
  221. FN_SSI_SDATA3, FN_PWM0_C, FN_CAN_DEBUGOUT8, FN_CAN_CLK_B,
  222. FN_IECLK, FN_SCIF_CLK_B, FN_TCLK0_B, FN_SSI_SDATA4,
  223. FN_CAN_DEBUGOUT9, FN_SSI_SDATA9_C, FN_SSI_SCK5, FN_ADICLK,
  224. FN_CAN_DEBUGOUT10, FN_SCK3, FN_TCLK0_D, FN_SSI_WS5,
  225. FN_ADICS_SAMP, FN_CAN_DEBUGOUT11, FN_TX3_IRDA_TX, FN_SSI_SDATA5,
  226. FN_ADIDATA, FN_CAN_DEBUGOUT12, FN_RX3_IRDA_RX, FN_SSI_SCK6,
  227. FN_ADICHS0, FN_CAN0_TX, FN_IERX_B,
  228. /* IPSR7 */
  229. FN_SSI_WS6, FN_ADICHS1, FN_CAN0_RX, FN_IETX_B,
  230. FN_SSI_SDATA6, FN_ADICHS2, FN_CAN_CLK, FN_IECLK_B,
  231. FN_SSI_SCK78, FN_CAN_DEBUGOUT13, FN_IRQ0_B, FN_SSI_SCK9_B,
  232. FN_HSPI_CLK1_C, FN_SSI_WS78, FN_CAN_DEBUGOUT14, FN_IRQ1_B,
  233. FN_SSI_WS9_B, FN_HSPI_CS1_C, FN_SSI_SDATA7, FN_CAN_DEBUGOUT15,
  234. FN_IRQ2_B, FN_TCLK1_C, FN_HSPI_TX1_C, FN_SSI_SDATA8,
  235. FN_VSP, FN_IRQ3_B, FN_HSPI_RX1_C, FN_SD0_CLK,
  236. FN_ATACS01, FN_SCK1_B, FN_SD0_CMD, FN_ATACS11,
  237. FN_TX1_B, FN_CC5_TDO, FN_SD0_DAT0, FN_ATADIR1,
  238. FN_RX1_B, FN_CC5_TRST, FN_SD0_DAT1, FN_ATAG1,
  239. FN_SCK2_B, FN_CC5_TMS, FN_SD0_DAT2, FN_ATARD1,
  240. FN_TX2_B, FN_CC5_TCK, FN_SD0_DAT3, FN_ATAWR1,
  241. FN_RX2_B, FN_CC5_TDI, FN_SD0_CD, FN_DREQ2,
  242. FN_RTS1_B_TANS_B, FN_SD0_WP, FN_DACK2, FN_CTS1_B,
  243. /* IPSR8 */
  244. FN_HSPI_CLK0, FN_CTS0, FN_USB_OVC0, FN_AD_CLK,
  245. FN_CC5_STATE4, FN_CC5_STATE12, FN_CC5_STATE20, FN_CC5_STATE28,
  246. FN_CC5_STATE36, FN_HSPI_CS0, FN_RTS0_TANS, FN_USB_OVC1,
  247. FN_AD_DI, FN_CC5_STATE5, FN_CC5_STATE13, FN_CC5_STATE21,
  248. FN_CC5_STATE29, FN_CC5_STATE37, FN_HSPI_TX0, FN_TX0,
  249. FN_CAN_DEBUG_HW_TRIGGER, FN_AD_DO, FN_CC5_STATE6, FN_CC5_STATE14,
  250. FN_CC5_STATE22, FN_CC5_STATE30, FN_CC5_STATE38, FN_HSPI_RX0,
  251. FN_RX0, FN_CAN_STEP0, FN_AD_NCS, FN_CC5_STATE7,
  252. FN_CC5_STATE15, FN_CC5_STATE23, FN_CC5_STATE31, FN_CC5_STATE39,
  253. FN_FMCLK, FN_RDS_CLK, FN_PCMOE, FN_BPFCLK,
  254. FN_PCMWE, FN_FMIN, FN_RDS_DATA, FN_VI0_CLK,
  255. FN_MMC1_CLK, FN_VI0_CLKENB, FN_TX1_C, FN_HTX1_B,
  256. FN_MT1_SYNC, FN_VI0_FIELD, FN_RX1_C, FN_HRX1_B,
  257. FN_VI0_HSYNC, FN_VI0_DATA0_B_VI0_B0_B, FN_CTS1_C, FN_TX4_D,
  258. FN_MMC1_CMD, FN_HSCK1_B, FN_VI0_VSYNC, FN_VI0_DATA1_B_VI0_B1_B,
  259. FN_RTS1_C_TANS_C, FN_RX4_D, FN_PWMFSW0_C,
  260. /* IPSR9 */
  261. FN_VI0_DATA0_VI0_B0, FN_HRTS1_B, FN_MT1_VCXO, FN_VI0_DATA1_VI0_B1,
  262. FN_HCTS1_B, FN_MT1_PWM, FN_VI0_DATA2_VI0_B2, FN_MMC1_D0,
  263. FN_VI0_DATA3_VI0_B3, FN_MMC1_D1, FN_VI0_DATA4_VI0_B4, FN_MMC1_D2,
  264. FN_VI0_DATA5_VI0_B5, FN_MMC1_D3, FN_VI0_DATA6_VI0_B6, FN_MMC1_D4,
  265. FN_ARM_TRACEDATA_0, FN_VI0_DATA7_VI0_B7, FN_MMC1_D5,
  266. FN_ARM_TRACEDATA_1, FN_VI0_G0, FN_SSI_SCK78_C, FN_IRQ0,
  267. FN_ARM_TRACEDATA_2, FN_VI0_G1, FN_SSI_WS78_C, FN_IRQ1,
  268. FN_ARM_TRACEDATA_3, FN_VI0_G2, FN_ETH_TXD1, FN_MMC1_D6,
  269. FN_ARM_TRACEDATA_4, FN_TS_SPSYNC0, FN_VI0_G3, FN_ETH_CRS_DV,
  270. FN_MMC1_D7, FN_ARM_TRACEDATA_5, FN_TS_SDAT0, FN_VI0_G4,
  271. FN_ETH_TX_EN, FN_SD2_DAT0_B, FN_ARM_TRACEDATA_6, FN_VI0_G5,
  272. FN_ETH_RX_ER, FN_SD2_DAT1_B, FN_ARM_TRACEDATA_7, FN_VI0_G6,
  273. FN_ETH_RXD0, FN_SD2_DAT2_B, FN_ARM_TRACEDATA_8, FN_VI0_G7,
  274. FN_ETH_RXD1, FN_SD2_DAT3_B, FN_ARM_TRACEDATA_9,
  275. /* IPSR10 */
  276. FN_VI0_R0, FN_SSI_SDATA7_C, FN_SCK1_C, FN_DREQ1_B,
  277. FN_ARM_TRACEDATA_10, FN_DREQ0_C, FN_VI0_R1, FN_SSI_SDATA8_C,
  278. FN_DACK1_B, FN_ARM_TRACEDATA_11, FN_DACK0_C, FN_DRACK0_C,
  279. FN_VI0_R2, FN_ETH_LINK, FN_SD2_CLK_B, FN_IRQ2,
  280. FN_ARM_TRACEDATA_12, FN_VI0_R3, FN_ETH_MAGIC, FN_SD2_CMD_B,
  281. FN_IRQ3, FN_ARM_TRACEDATA_13, FN_VI0_R4, FN_ETH_REFCLK,
  282. FN_SD2_CD_B, FN_HSPI_CLK1_B, FN_ARM_TRACEDATA_14, FN_MT1_CLK,
  283. FN_TS_SCK0, FN_VI0_R5, FN_ETH_TXD0, FN_SD2_WP_B, FN_HSPI_CS1_B,
  284. FN_ARM_TRACEDATA_15, FN_MT1_D, FN_TS_SDEN0, FN_VI0_R6,
  285. FN_ETH_MDC, FN_DREQ2_C, FN_HSPI_TX1_B, FN_TRACECLK,
  286. FN_MT1_BEN, FN_PWMFSW0_D, FN_VI0_R7, FN_ETH_MDIO,
  287. FN_DACK2_C, FN_HSPI_RX1_B, FN_SCIF_CLK_D, FN_TRACECTL,
  288. FN_MT1_PEN, FN_VI1_CLK, FN_SIM_D, FN_SDA3,
  289. FN_VI1_HSYNC, FN_VI3_CLK, FN_SSI_SCK4, FN_GPS_SIGN_C,
  290. FN_PWMFSW0_E, FN_VI1_VSYNC, FN_AUDIO_CLKOUT_C, FN_SSI_WS4,
  291. FN_SIM_CLK, FN_GPS_MAG_C, FN_SPV_TRST, FN_SCL3,
  292. /* IPSR11 */
  293. FN_VI1_DATA0_VI1_B0, FN_SD2_DAT0, FN_SIM_RST, FN_SPV_TCK,
  294. FN_ADICLK_B, FN_VI1_DATA1_VI1_B1, FN_SD2_DAT1, FN_MT0_CLK,
  295. FN_SPV_TMS, FN_ADICS_B_SAMP_B, FN_VI1_DATA2_VI1_B2, FN_SD2_DAT2,
  296. FN_MT0_D, FN_SPVTDI, FN_ADIDATA_B, FN_VI1_DATA3_VI1_B3,
  297. FN_SD2_DAT3, FN_MT0_BEN, FN_SPV_TDO, FN_ADICHS0_B,
  298. FN_VI1_DATA4_VI1_B4, FN_SD2_CLK, FN_MT0_PEN, FN_SPA_TRST,
  299. FN_HSPI_CLK1_D, FN_ADICHS1_B, FN_VI1_DATA5_VI1_B5, FN_SD2_CMD,
  300. FN_MT0_SYNC, FN_SPA_TCK, FN_HSPI_CS1_D, FN_ADICHS2_B,
  301. FN_VI1_DATA6_VI1_B6, FN_SD2_CD, FN_MT0_VCXO, FN_SPA_TMS,
  302. FN_HSPI_TX1_D, FN_VI1_DATA7_VI1_B7, FN_SD2_WP, FN_MT0_PWM,
  303. FN_SPA_TDI, FN_HSPI_RX1_D, FN_VI1_G0, FN_VI3_DATA0,
  304. FN_TS_SCK1, FN_DREQ2_B, FN_TX2,
  305. FN_SPA_TDO, FN_HCTS0_B, FN_VI1_G1, FN_VI3_DATA1,
  306. FN_SSI_SCK1, FN_TS_SDEN1, FN_DACK2_B, FN_RX2, FN_HRTS0_B,
  307. /* IPSR12 */
  308. FN_VI1_G2, FN_VI3_DATA2, FN_SSI_WS1, FN_TS_SPSYNC1,
  309. FN_SCK2, FN_HSCK0_B, FN_VI1_G3, FN_VI3_DATA3,
  310. FN_SSI_SCK2, FN_TS_SDAT1, FN_SCL1_C, FN_HTX0_B,
  311. FN_VI1_G4, FN_VI3_DATA4, FN_SSI_WS2, FN_SDA1_C,
  312. FN_SIM_RST_B, FN_HRX0_B, FN_VI1_G5, FN_VI3_DATA5,
  313. FN_GPS_CLK, FN_FSE, FN_TX4_B, FN_SIM_D_B,
  314. FN_VI1_G6, FN_VI3_DATA6, FN_GPS_SIGN, FN_FRB,
  315. FN_RX4_B, FN_SIM_CLK_B, FN_VI1_G7, FN_VI3_DATA7,
  316. FN_GPS_MAG, FN_FCE, FN_SCK4_B,
  317. FN_SEL_SCIF5_0, FN_SEL_SCIF5_1, FN_SEL_SCIF5_2, FN_SEL_SCIF5_3,
  318. FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, FN_SEL_SCIF4_2, FN_SEL_SCIF4_3,
  319. FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2,
  320. FN_SEL_SCIF3_3, FN_SEL_SCIF3_4,
  321. FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2,
  322. FN_SEL_SCIF2_3, FN_SEL_SCIF2_4,
  323. FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2,
  324. FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2, FN_SEL_SCIF0_3,
  325. FN_SEL_SSI9_0, FN_SEL_SSI9_1, FN_SEL_SSI9_2,
  326. FN_SEL_SSI8_0, FN_SEL_SSI8_1, FN_SEL_SSI8_2,
  327. FN_SEL_SSI7_0, FN_SEL_SSI7_1, FN_SEL_SSI7_2,
  328. FN_SEL_VI0_0, FN_SEL_VI0_1,
  329. FN_SEL_SD2_0, FN_SEL_SD2_1,
  330. FN_SEL_INT3_0, FN_SEL_INT3_1,
  331. FN_SEL_INT2_0, FN_SEL_INT2_1,
  332. FN_SEL_INT1_0, FN_SEL_INT1_1,
  333. FN_SEL_INT0_0, FN_SEL_INT0_1,
  334. FN_SEL_IE_0, FN_SEL_IE_1,
  335. FN_SEL_EXBUS2_0, FN_SEL_EXBUS2_1, FN_SEL_EXBUS2_2,
  336. FN_SEL_EXBUS1_0, FN_SEL_EXBUS1_1,
  337. FN_SEL_EXBUS0_0, FN_SEL_EXBUS0_1, FN_SEL_EXBUS0_2,
  338. FN_SEL_TMU1_0, FN_SEL_TMU1_1, FN_SEL_TMU1_2,
  339. FN_SEL_TMU0_0, FN_SEL_TMU0_1, FN_SEL_TMU0_2, FN_SEL_TMU0_3,
  340. FN_SEL_SCIF_0, FN_SEL_SCIF_1, FN_SEL_SCIF_2, FN_SEL_SCIF_3,
  341. FN_SEL_CANCLK_0, FN_SEL_CANCLK_1, FN_SEL_CANCLK_2,
  342. FN_SEL_CAN0_0, FN_SEL_CAN0_1,
  343. FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1,
  344. FN_SEL_HSCIF0_0, FN_SEL_HSCIF0_1,
  345. FN_SEL_PWMFSW_0, FN_SEL_PWMFSW_1, FN_SEL_PWMFSW_2,
  346. FN_SEL_PWMFSW_3, FN_SEL_PWMFSW_4,
  347. FN_SEL_ADI_0, FN_SEL_ADI_1,
  348. FN_SEL_GPS_0, FN_SEL_GPS_1, FN_SEL_GPS_2, FN_SEL_GPS_3,
  349. FN_SEL_SIM_0, FN_SEL_SIM_1,
  350. FN_SEL_HSPI2_0, FN_SEL_HSPI2_1,
  351. FN_SEL_HSPI1_0, FN_SEL_HSPI1_1, FN_SEL_HSPI1_2, FN_SEL_HSPI1_3,
  352. FN_SEL_I2C3_0, FN_SEL_I2C3_1,
  353. FN_SEL_I2C2_0, FN_SEL_I2C2_1, FN_SEL_I2C2_2, FN_SEL_I2C2_3,
  354. FN_SEL_I2C1_0, FN_SEL_I2C1_1, FN_SEL_I2C1_2, FN_SEL_I2C1_3,
  355. PINMUX_FUNCTION_END,
  356. PINMUX_MARK_BEGIN,
  357. AVS1_MARK, AVS2_MARK, A17_MARK, A18_MARK,
  358. A19_MARK,
  359. RD_WR_MARK, FWE_MARK, ATAG0_MARK, VI1_R7_MARK,
  360. HRTS1_MARK, RX4_C_MARK,
  361. CS1_A26_MARK, HSPI_TX2_MARK, SDSELF_B_MARK,
  362. CS0_MARK, HSPI_CS2_B_MARK,
  363. CLKOUT_MARK, TX3C_IRDA_TX_C_MARK, PWM0_B_MARK,
  364. A25_MARK, SD1_WP_MARK, MMC0_D5_MARK, FD5_MARK,
  365. HSPI_RX2_MARK, VI1_R3_MARK, TX5_B_MARK, SSI_SDATA7_B_MARK, CTS0_B_MARK,
  366. A24_MARK, SD1_CD_MARK, MMC0_D4_MARK, FD4_MARK,
  367. HSPI_CS2_MARK, VI1_R2_MARK, SSI_WS78_B_MARK,
  368. A23_MARK, FCLE_MARK, HSPI_CLK2_MARK, VI1_R1_MARK,
  369. A22_MARK, RX5_D_MARK, HSPI_RX2_B_MARK, VI1_R0_MARK,
  370. A21_MARK, SCK5_D_MARK, HSPI_CLK2_B_MARK,
  371. A20_MARK, TX5_D_MARK, HSPI_TX2_B_MARK,
  372. A0_MARK, SD1_DAT3_MARK, MMC0_D3_MARK, FD3_MARK,
  373. BS_MARK, SD1_DAT2_MARK, MMC0_D2_MARK, FD2_MARK,
  374. ATADIR0_MARK, SDSELF_MARK, HCTS1_MARK, TX4_C_MARK,
  375. USB_PENC0_MARK, USB_PENC1_MARK, USB_PENC2_MARK,
  376. SCK0_MARK, PWM1_MARK, PWMFSW0_MARK,
  377. SCIF_CLK_MARK, TCLK0_C_MARK,
  378. EX_CS0_MARK, RX3_C_IRDA_RX_C_MARK, MMC0_D6_MARK,
  379. FD6_MARK, EX_CS1_MARK, MMC0_D7_MARK, FD7_MARK,
  380. EX_CS2_MARK, SD1_CLK_MARK, MMC0_CLK_MARK, FALE_MARK,
  381. ATACS00_MARK, EX_CS3_MARK, SD1_CMD_MARK, MMC0_CMD_MARK,
  382. FRE_MARK, ATACS10_MARK, VI1_R4_MARK, RX5_B_MARK,
  383. HSCK1_MARK, SSI_SDATA8_B_MARK, RTS0_B_TANS_B_MARK, SSI_SDATA9_MARK,
  384. EX_CS4_MARK, SD1_DAT0_MARK, MMC0_D0_MARK, FD0_MARK,
  385. ATARD0_MARK, VI1_R5_MARK, SCK5_B_MARK, HTX1_MARK,
  386. TX2_E_MARK, TX0_B_MARK, SSI_SCK9_MARK, EX_CS5_MARK,
  387. SD1_DAT1_MARK, MMC0_D1_MARK, FD1_MARK, ATAWR0_MARK,
  388. VI1_R6_MARK, HRX1_MARK, RX2_E_MARK, RX0_B_MARK,
  389. SSI_WS9_MARK, MLB_CLK_MARK, PWM2_MARK, SCK4_MARK,
  390. MLB_SIG_MARK, PWM3_MARK, TX4_MARK, MLB_DAT_MARK,
  391. PWM4_MARK, RX4_MARK, HTX0_MARK, TX1_MARK,
  392. SDATA_MARK, CTS0_C_MARK, SUB_TCK_MARK, CC5_STATE2_MARK,
  393. CC5_STATE10_MARK, CC5_STATE18_MARK, CC5_STATE26_MARK, CC5_STATE34_MARK,
  394. HRX0_MARK, RX1_MARK, SCKZ_MARK, RTS0_C_TANS_C_MARK,
  395. SUB_TDI_MARK, CC5_STATE3_MARK, CC5_STATE11_MARK, CC5_STATE19_MARK,
  396. CC5_STATE27_MARK, CC5_STATE35_MARK, HSCK0_MARK, SCK1_MARK,
  397. MTS_MARK, PWM5_MARK, SCK0_C_MARK, SSI_SDATA9_B_MARK,
  398. SUB_TDO_MARK, CC5_STATE0_MARK, CC5_STATE8_MARK, CC5_STATE16_MARK,
  399. CC5_STATE24_MARK, CC5_STATE32_MARK, HCTS0_MARK, CTS1_MARK,
  400. STM_MARK, PWM0_D_MARK, RX0_C_MARK, SCIF_CLK_C_MARK,
  401. SUB_TRST_MARK, TCLK1_B_MARK, CC5_OSCOUT_MARK, HRTS0_MARK,
  402. RTS1_TANS_MARK, MDATA_MARK, TX0_C_MARK, SUB_TMS_MARK,
  403. CC5_STATE1_MARK, CC5_STATE9_MARK, CC5_STATE17_MARK, CC5_STATE25_MARK,
  404. CC5_STATE33_MARK, DU0_DR0_MARK, LCDOUT0_MARK, DREQ0_MARK,
  405. GPS_CLK_B_MARK, AUDATA0_MARK, TX5_C_MARK, DU0_DR1_MARK,
  406. LCDOUT1_MARK, DACK0_MARK, DRACK0_MARK, GPS_SIGN_B_MARK,
  407. AUDATA1_MARK, RX5_C_MARK, DU0_DR2_MARK, LCDOUT2_MARK,
  408. DU0_DR3_MARK, LCDOUT3_MARK, DU0_DR4_MARK, LCDOUT4_MARK,
  409. DU0_DR5_MARK, LCDOUT5_MARK, DU0_DR6_MARK, LCDOUT6_MARK,
  410. DU0_DR7_MARK, LCDOUT7_MARK, DU0_DG0_MARK, LCDOUT8_MARK,
  411. DREQ1_MARK, SCL2_MARK, AUDATA2_MARK,
  412. DU0_DG1_MARK, LCDOUT9_MARK, DACK1_MARK, SDA2_MARK,
  413. AUDATA3_MARK, DU0_DG2_MARK, LCDOUT10_MARK, DU0_DG3_MARK,
  414. LCDOUT11_MARK, DU0_DG4_MARK, LCDOUT12_MARK, DU0_DG5_MARK,
  415. LCDOUT13_MARK, DU0_DG6_MARK, LCDOUT14_MARK, DU0_DG7_MARK,
  416. LCDOUT15_MARK, DU0_DB0_MARK, LCDOUT16_MARK, EX_WAIT1_MARK,
  417. SCL1_MARK, TCLK1_MARK, AUDATA4_MARK, DU0_DB1_MARK,
  418. LCDOUT17_MARK, EX_WAIT2_MARK, SDA1_MARK, GPS_MAG_B_MARK,
  419. AUDATA5_MARK, SCK5_C_MARK, DU0_DB2_MARK, LCDOUT18_MARK,
  420. DU0_DB3_MARK, LCDOUT19_MARK, DU0_DB4_MARK, LCDOUT20_MARK,
  421. DU0_DB5_MARK, LCDOUT21_MARK, DU0_DB6_MARK, LCDOUT22_MARK,
  422. DU0_DB7_MARK, LCDOUT23_MARK, DU0_DOTCLKIN_MARK, QSTVA_QVS_MARK,
  423. TX3_D_IRDA_TX_D_MARK, SCL3_B_MARK, DU0_DOTCLKOUT0_MARK, QCLK_MARK,
  424. DU0_DOTCLKOUT1_MARK, QSTVB_QVE_MARK, RX3_D_IRDA_RX_D_MARK, SDA3_B_MARK,
  425. SDA2_C_MARK, DACK0_B_MARK, DRACK0_B_MARK, DU0_EXHSYNC_DU0_HSYNC_MARK,
  426. QSTH_QHS_MARK, DU0_EXVSYNC_DU0_VSYNC_MARK, QSTB_QHE_MARK,
  427. DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK, QCPV_QDE_MARK, CAN1_TX_MARK,
  428. TX2_C_MARK, SCL2_C_MARK, REMOCON_MARK,
  429. DU0_DISP_MARK, QPOLA_MARK, CAN_CLK_C_MARK, SCK2_C_MARK,
  430. DU0_CDE_MARK, QPOLB_MARK, CAN1_RX_MARK, RX2_C_MARK,
  431. DREQ0_B_MARK, SSI_SCK78_B_MARK, SCK0_B_MARK, DU1_DR0_MARK,
  432. VI2_DATA0_VI2_B0_MARK, PWM6_MARK, SD3_CLK_MARK, TX3_E_IRDA_TX_E_MARK,
  433. AUDCK_MARK, PWMFSW0_B_MARK, DU1_DR1_MARK, VI2_DATA1_VI2_B1_MARK,
  434. PWM0_MARK, SD3_CMD_MARK, RX3_E_IRDA_RX_E_MARK, AUDSYNC_MARK,
  435. CTS0_D_MARK, DU1_DR2_MARK, VI2_G0_MARK, DU1_DR3_MARK,
  436. VI2_G1_MARK, DU1_DR4_MARK, VI2_G2_MARK, DU1_DR5_MARK,
  437. VI2_G3_MARK, DU1_DR6_MARK, VI2_G4_MARK, DU1_DR7_MARK,
  438. VI2_G5_MARK, DU1_DG0_MARK, VI2_DATA2_VI2_B2_MARK, SCL1_B_MARK,
  439. SD3_DAT2_MARK, SCK3_E_MARK, AUDATA6_MARK, TX0_D_MARK,
  440. DU1_DG1_MARK, VI2_DATA3_VI2_B3_MARK, SDA1_B_MARK, SD3_DAT3_MARK,
  441. SCK5_MARK, AUDATA7_MARK, RX0_D_MARK, DU1_DG2_MARK,
  442. VI2_G6_MARK, DU1_DG3_MARK, VI2_G7_MARK, DU1_DG4_MARK,
  443. VI2_R0_MARK, DU1_DG5_MARK, VI2_R1_MARK, DU1_DG6_MARK,
  444. VI2_R2_MARK, DU1_DG7_MARK, VI2_R3_MARK, DU1_DB0_MARK,
  445. VI2_DATA4_VI2_B4_MARK, SCL2_B_MARK, SD3_DAT0_MARK, TX5_MARK,
  446. SCK0_D_MARK,
  447. DU1_DB1_MARK, VI2_DATA5_VI2_B5_MARK, SDA2_B_MARK, SD3_DAT1_MARK,
  448. RX5_MARK, RTS0_D_TANS_D_MARK, DU1_DB2_MARK, VI2_R4_MARK,
  449. DU1_DB3_MARK, VI2_R5_MARK, DU1_DB4_MARK, VI2_R6_MARK,
  450. DU1_DB5_MARK, VI2_R7_MARK, DU1_DB6_MARK, SCL2_D_MARK,
  451. DU1_DB7_MARK, SDA2_D_MARK, DU1_DOTCLKIN_MARK, VI2_CLKENB_MARK,
  452. HSPI_CS1_MARK, SCL1_D_MARK, DU1_DOTCLKOUT_MARK, VI2_FIELD_MARK,
  453. SDA1_D_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK, VI2_HSYNC_MARK,
  454. VI3_HSYNC_MARK, DU1_EXVSYNC_DU1_VSYNC_MARK, VI2_VSYNC_MARK,
  455. VI3_VSYNC_MARK, DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK, VI2_CLK_MARK,
  456. TX3_B_IRDA_TX_B_MARK, SD3_CD_MARK, HSPI_TX1_MARK, VI1_CLKENB_MARK,
  457. VI3_CLKENB_MARK, AUDIO_CLKC_MARK, TX2_D_MARK, SPEEDIN_MARK,
  458. GPS_SIGN_D_MARK, DU1_DISP_MARK, VI2_DATA6_VI2_B6_MARK, TCLK0_MARK,
  459. QSTVA_B_QVS_B_MARK, HSPI_CLK1_MARK, SCK2_D_MARK, AUDIO_CLKOUT_B_MARK,
  460. GPS_MAG_D_MARK, DU1_CDE_MARK, VI2_DATA7_VI2_B7_MARK,
  461. RX3_B_IRDA_RX_B_MARK, SD3_WP_MARK, HSPI_RX1_MARK, VI1_FIELD_MARK,
  462. VI3_FIELD_MARK, AUDIO_CLKOUT_MARK, RX2_D_MARK, GPS_CLK_C_MARK,
  463. GPS_CLK_D_MARK, AUDIO_CLKA_MARK, CAN_TXCLK_MARK, AUDIO_CLKB_MARK,
  464. USB_OVC2_MARK, CAN_DEBUGOUT0_MARK, MOUT0_MARK,
  465. SSI_SCK0129_MARK, CAN_DEBUGOUT1_MARK, MOUT1_MARK, SSI_WS0129_MARK,
  466. CAN_DEBUGOUT2_MARK, MOUT2_MARK, SSI_SDATA0_MARK, CAN_DEBUGOUT3_MARK,
  467. MOUT5_MARK, SSI_SDATA1_MARK, CAN_DEBUGOUT4_MARK, MOUT6_MARK,
  468. SSI_SDATA2_MARK, CAN_DEBUGOUT5_MARK, SSI_SCK34_MARK,
  469. CAN_DEBUGOUT6_MARK, CAN0_TX_B_MARK, IERX_MARK, SSI_SCK9_C_MARK,
  470. SSI_WS34_MARK, CAN_DEBUGOUT7_MARK, CAN0_RX_B_MARK, IETX_MARK,
  471. SSI_WS9_C_MARK, SSI_SDATA3_MARK, PWM0_C_MARK, CAN_DEBUGOUT8_MARK,
  472. CAN_CLK_B_MARK, IECLK_MARK, SCIF_CLK_B_MARK, TCLK0_B_MARK,
  473. SSI_SDATA4_MARK, CAN_DEBUGOUT9_MARK, SSI_SDATA9_C_MARK, SSI_SCK5_MARK,
  474. ADICLK_MARK, CAN_DEBUGOUT10_MARK, SCK3_MARK, TCLK0_D_MARK,
  475. SSI_WS5_MARK, ADICS_SAMP_MARK, CAN_DEBUGOUT11_MARK, TX3_IRDA_TX_MARK,
  476. SSI_SDATA5_MARK, ADIDATA_MARK, CAN_DEBUGOUT12_MARK, RX3_IRDA_RX_MARK,
  477. SSI_SCK6_MARK, ADICHS0_MARK, CAN0_TX_MARK, IERX_B_MARK,
  478. SSI_WS6_MARK, ADICHS1_MARK, CAN0_RX_MARK, IETX_B_MARK,
  479. SSI_SDATA6_MARK, ADICHS2_MARK, CAN_CLK_MARK, IECLK_B_MARK,
  480. SSI_SCK78_MARK, CAN_DEBUGOUT13_MARK, IRQ0_B_MARK, SSI_SCK9_B_MARK,
  481. HSPI_CLK1_C_MARK, SSI_WS78_MARK, CAN_DEBUGOUT14_MARK, IRQ1_B_MARK,
  482. SSI_WS9_B_MARK, HSPI_CS1_C_MARK, SSI_SDATA7_MARK, CAN_DEBUGOUT15_MARK,
  483. IRQ2_B_MARK, TCLK1_C_MARK, HSPI_TX1_C_MARK, SSI_SDATA8_MARK,
  484. VSP_MARK, IRQ3_B_MARK, HSPI_RX1_C_MARK, SD0_CLK_MARK,
  485. ATACS01_MARK, SCK1_B_MARK, SD0_CMD_MARK, ATACS11_MARK,
  486. TX1_B_MARK, CC5_TDO_MARK, SD0_DAT0_MARK, ATADIR1_MARK,
  487. RX1_B_MARK, CC5_TRST_MARK, SD0_DAT1_MARK, ATAG1_MARK,
  488. SCK2_B_MARK, CC5_TMS_MARK, SD0_DAT2_MARK, ATARD1_MARK,
  489. TX2_B_MARK, CC5_TCK_MARK, SD0_DAT3_MARK, ATAWR1_MARK,
  490. RX2_B_MARK, CC5_TDI_MARK, SD0_CD_MARK, DREQ2_MARK,
  491. RTS1_B_TANS_B_MARK, SD0_WP_MARK, DACK2_MARK, CTS1_B_MARK,
  492. HSPI_CLK0_MARK, CTS0_MARK, USB_OVC0_MARK, AD_CLK_MARK,
  493. CC5_STATE4_MARK, CC5_STATE12_MARK, CC5_STATE20_MARK, CC5_STATE28_MARK,
  494. CC5_STATE36_MARK, HSPI_CS0_MARK, RTS0_TANS_MARK, USB_OVC1_MARK,
  495. AD_DI_MARK, CC5_STATE5_MARK, CC5_STATE13_MARK, CC5_STATE21_MARK,
  496. CC5_STATE29_MARK, CC5_STATE37_MARK, HSPI_TX0_MARK, TX0_MARK,
  497. CAN_DEBUG_HW_TRIGGER_MARK, AD_DO_MARK, CC5_STATE6_MARK,
  498. CC5_STATE14_MARK, CC5_STATE22_MARK, CC5_STATE30_MARK,
  499. CC5_STATE38_MARK, HSPI_RX0_MARK, RX0_MARK, CAN_STEP0_MARK,
  500. AD_NCS_MARK, CC5_STATE7_MARK, CC5_STATE15_MARK, CC5_STATE23_MARK,
  501. CC5_STATE31_MARK, CC5_STATE39_MARK, FMCLK_MARK, RDS_CLK_MARK,
  502. PCMOE_MARK, BPFCLK_MARK, PCMWE_MARK, FMIN_MARK, RDS_DATA_MARK,
  503. VI0_CLK_MARK, MMC1_CLK_MARK, VI0_CLKENB_MARK, TX1_C_MARK, HTX1_B_MARK,
  504. MT1_SYNC_MARK, VI0_FIELD_MARK, RX1_C_MARK, HRX1_B_MARK,
  505. VI0_HSYNC_MARK, VI0_DATA0_B_VI0_B0_B_MARK, CTS1_C_MARK, TX4_D_MARK,
  506. MMC1_CMD_MARK, HSCK1_B_MARK, VI0_VSYNC_MARK, VI0_DATA1_B_VI0_B1_B_MARK,
  507. RTS1_C_TANS_C_MARK, RX4_D_MARK, PWMFSW0_C_MARK,
  508. VI0_DATA0_VI0_B0_MARK, HRTS1_B_MARK, MT1_VCXO_MARK,
  509. VI0_DATA1_VI0_B1_MARK, HCTS1_B_MARK, MT1_PWM_MARK,
  510. VI0_DATA2_VI0_B2_MARK, MMC1_D0_MARK, VI0_DATA3_VI0_B3_MARK,
  511. MMC1_D1_MARK, VI0_DATA4_VI0_B4_MARK, MMC1_D2_MARK,
  512. VI0_DATA5_VI0_B5_MARK, MMC1_D3_MARK, VI0_DATA6_VI0_B6_MARK,
  513. MMC1_D4_MARK, ARM_TRACEDATA_0_MARK, VI0_DATA7_VI0_B7_MARK,
  514. MMC1_D5_MARK, ARM_TRACEDATA_1_MARK, VI0_G0_MARK, SSI_SCK78_C_MARK,
  515. IRQ0_MARK, ARM_TRACEDATA_2_MARK, VI0_G1_MARK, SSI_WS78_C_MARK,
  516. IRQ1_MARK, ARM_TRACEDATA_3_MARK, VI0_G2_MARK, ETH_TXD1_MARK,
  517. MMC1_D6_MARK, ARM_TRACEDATA_4_MARK, TS_SPSYNC0_MARK, VI0_G3_MARK,
  518. ETH_CRS_DV_MARK, MMC1_D7_MARK, ARM_TRACEDATA_5_MARK, TS_SDAT0_MARK,
  519. VI0_G4_MARK, ETH_TX_EN_MARK, SD2_DAT0_B_MARK, ARM_TRACEDATA_6_MARK,
  520. VI0_G5_MARK, ETH_RX_ER_MARK, SD2_DAT1_B_MARK, ARM_TRACEDATA_7_MARK,
  521. VI0_G6_MARK, ETH_RXD0_MARK, SD2_DAT2_B_MARK, ARM_TRACEDATA_8_MARK,
  522. VI0_G7_MARK, ETH_RXD1_MARK, SD2_DAT3_B_MARK, ARM_TRACEDATA_9_MARK,
  523. VI0_R0_MARK, SSI_SDATA7_C_MARK, SCK1_C_MARK, DREQ1_B_MARK,
  524. ARM_TRACEDATA_10_MARK, DREQ0_C_MARK, VI0_R1_MARK, SSI_SDATA8_C_MARK,
  525. DACK1_B_MARK, ARM_TRACEDATA_11_MARK, DACK0_C_MARK, DRACK0_C_MARK,
  526. VI0_R2_MARK, ETH_LINK_MARK, SD2_CLK_B_MARK, IRQ2_MARK,
  527. ARM_TRACEDATA_12_MARK, VI0_R3_MARK, ETH_MAGIC_MARK, SD2_CMD_B_MARK,
  528. IRQ3_MARK, ARM_TRACEDATA_13_MARK, VI0_R4_MARK, ETH_REFCLK_MARK,
  529. SD2_CD_B_MARK, HSPI_CLK1_B_MARK, ARM_TRACEDATA_14_MARK, MT1_CLK_MARK,
  530. TS_SCK0_MARK, VI0_R5_MARK, ETH_TXD0_MARK, SD2_WP_B_MARK,
  531. HSPI_CS1_B_MARK, ARM_TRACEDATA_15_MARK, MT1_D_MARK, TS_SDEN0_MARK,
  532. VI0_R6_MARK, ETH_MDC_MARK, DREQ2_C_MARK, HSPI_TX1_B_MARK,
  533. TRACECLK_MARK, MT1_BEN_MARK, PWMFSW0_D_MARK, VI0_R7_MARK,
  534. ETH_MDIO_MARK, DACK2_C_MARK, HSPI_RX1_B_MARK, SCIF_CLK_D_MARK,
  535. TRACECTL_MARK, MT1_PEN_MARK, VI1_CLK_MARK, SIM_D_MARK, SDA3_MARK,
  536. VI1_HSYNC_MARK, VI3_CLK_MARK, SSI_SCK4_MARK, GPS_SIGN_C_MARK,
  537. PWMFSW0_E_MARK, VI1_VSYNC_MARK, AUDIO_CLKOUT_C_MARK, SSI_WS4_MARK,
  538. SIM_CLK_MARK, GPS_MAG_C_MARK, SPV_TRST_MARK, SCL3_MARK,
  539. VI1_DATA0_VI1_B0_MARK, SD2_DAT0_MARK, SIM_RST_MARK, SPV_TCK_MARK,
  540. ADICLK_B_MARK, VI1_DATA1_VI1_B1_MARK, SD2_DAT1_MARK, MT0_CLK_MARK,
  541. SPV_TMS_MARK, ADICS_B_SAMP_B_MARK, VI1_DATA2_VI1_B2_MARK,
  542. SD2_DAT2_MARK, MT0_D_MARK, SPVTDI_MARK, ADIDATA_B_MARK,
  543. VI1_DATA3_VI1_B3_MARK, SD2_DAT3_MARK, MT0_BEN_MARK, SPV_TDO_MARK,
  544. ADICHS0_B_MARK, VI1_DATA4_VI1_B4_MARK, SD2_CLK_MARK, MT0_PEN_MARK,
  545. SPA_TRST_MARK, HSPI_CLK1_D_MARK, ADICHS1_B_MARK,
  546. VI1_DATA5_VI1_B5_MARK, SD2_CMD_MARK, MT0_SYNC_MARK, SPA_TCK_MARK,
  547. HSPI_CS1_D_MARK, ADICHS2_B_MARK, VI1_DATA6_VI1_B6_MARK, SD2_CD_MARK,
  548. MT0_VCXO_MARK, SPA_TMS_MARK, HSPI_TX1_D_MARK, VI1_DATA7_VI1_B7_MARK,
  549. SD2_WP_MARK, MT0_PWM_MARK, SPA_TDI_MARK, HSPI_RX1_D_MARK,
  550. VI1_G0_MARK, VI3_DATA0_MARK, TS_SCK1_MARK,
  551. DREQ2_B_MARK, TX2_MARK, SPA_TDO_MARK, HCTS0_B_MARK,
  552. VI1_G1_MARK, VI3_DATA1_MARK, SSI_SCK1_MARK, TS_SDEN1_MARK,
  553. DACK2_B_MARK, RX2_MARK, HRTS0_B_MARK,
  554. VI1_G2_MARK, VI3_DATA2_MARK, SSI_WS1_MARK, TS_SPSYNC1_MARK,
  555. SCK2_MARK, HSCK0_B_MARK, VI1_G3_MARK, VI3_DATA3_MARK,
  556. SSI_SCK2_MARK, TS_SDAT1_MARK, SCL1_C_MARK, HTX0_B_MARK,
  557. VI1_G4_MARK, VI3_DATA4_MARK, SSI_WS2_MARK, SDA1_C_MARK,
  558. SIM_RST_B_MARK, HRX0_B_MARK, VI1_G5_MARK, VI3_DATA5_MARK,
  559. GPS_CLK_MARK, FSE_MARK, TX4_B_MARK, SIM_D_B_MARK,
  560. VI1_G6_MARK, VI3_DATA6_MARK, GPS_SIGN_MARK, FRB_MARK,
  561. RX4_B_MARK, SIM_CLK_B_MARK, VI1_G7_MARK, VI3_DATA7_MARK,
  562. GPS_MAG_MARK, FCE_MARK, SCK4_B_MARK,
  563. PINMUX_MARK_END,
  564. };
  565. static const u16 pinmux_data[] = {
  566. PINMUX_DATA_GP_ALL(), /* PINMUX_DATA(GP_M_N_DATA, GP_M_N_FN...), */
  567. PINMUX_DATA(AVS1_MARK, FN_AVS1),
  568. PINMUX_DATA(AVS1_MARK, FN_AVS1),
  569. PINMUX_DATA(A17_MARK, FN_A17),
  570. PINMUX_DATA(A18_MARK, FN_A18),
  571. PINMUX_DATA(A19_MARK, FN_A19),
  572. PINMUX_DATA(USB_PENC0_MARK, FN_USB_PENC0),
  573. PINMUX_DATA(USB_PENC1_MARK, FN_USB_PENC1),
  574. PINMUX_IPSR_DATA(IP0_2_0, USB_PENC2),
  575. PINMUX_IPSR_MSEL(IP0_2_0, SCK0, SEL_SCIF0_0),
  576. PINMUX_IPSR_DATA(IP0_2_0, PWM1),
  577. PINMUX_IPSR_MSEL(IP0_2_0, PWMFSW0, SEL_PWMFSW_0),
  578. PINMUX_IPSR_MSEL(IP0_2_0, SCIF_CLK, SEL_SCIF_0),
  579. PINMUX_IPSR_MSEL(IP0_2_0, TCLK0_C, SEL_TMU0_2),
  580. PINMUX_IPSR_DATA(IP0_5_3, BS),
  581. PINMUX_IPSR_DATA(IP0_5_3, SD1_DAT2),
  582. PINMUX_IPSR_DATA(IP0_5_3, MMC0_D2),
  583. PINMUX_IPSR_DATA(IP0_5_3, FD2),
  584. PINMUX_IPSR_DATA(IP0_5_3, ATADIR0),
  585. PINMUX_IPSR_DATA(IP0_5_3, SDSELF),
  586. PINMUX_IPSR_MSEL(IP0_5_3, HCTS1, SEL_HSCIF1_0),
  587. PINMUX_IPSR_DATA(IP0_5_3, TX4_C),
  588. PINMUX_IPSR_DATA(IP0_7_6, A0),
  589. PINMUX_IPSR_DATA(IP0_7_6, SD1_DAT3),
  590. PINMUX_IPSR_DATA(IP0_7_6, MMC0_D3),
  591. PINMUX_IPSR_DATA(IP0_7_6, FD3),
  592. PINMUX_IPSR_DATA(IP0_9_8, A20),
  593. PINMUX_IPSR_DATA(IP0_9_8, TX5_D),
  594. PINMUX_IPSR_DATA(IP0_9_8, HSPI_TX2_B),
  595. PINMUX_IPSR_DATA(IP0_11_10, A21),
  596. PINMUX_IPSR_MSEL(IP0_11_10, SCK5_D, SEL_SCIF5_3),
  597. PINMUX_IPSR_MSEL(IP0_11_10, HSPI_CLK2_B, SEL_HSPI2_1),
  598. PINMUX_IPSR_DATA(IP0_13_12, A22),
  599. PINMUX_IPSR_MSEL(IP0_13_12, RX5_D, SEL_SCIF5_3),
  600. PINMUX_IPSR_MSEL(IP0_13_12, HSPI_RX2_B, SEL_HSPI2_1),
  601. PINMUX_IPSR_DATA(IP0_13_12, VI1_R0),
  602. PINMUX_IPSR_DATA(IP0_15_14, A23),
  603. PINMUX_IPSR_DATA(IP0_15_14, FCLE),
  604. PINMUX_IPSR_MSEL(IP0_15_14, HSPI_CLK2, SEL_HSPI2_0),
  605. PINMUX_IPSR_DATA(IP0_15_14, VI1_R1),
  606. PINMUX_IPSR_DATA(IP0_18_16, A24),
  607. PINMUX_IPSR_DATA(IP0_18_16, SD1_CD),
  608. PINMUX_IPSR_DATA(IP0_18_16, MMC0_D4),
  609. PINMUX_IPSR_DATA(IP0_18_16, FD4),
  610. PINMUX_IPSR_MSEL(IP0_18_16, HSPI_CS2, SEL_HSPI2_0),
  611. PINMUX_IPSR_DATA(IP0_18_16, VI1_R2),
  612. PINMUX_IPSR_MSEL(IP0_18_16, SSI_WS78_B, SEL_SSI7_1),
  613. PINMUX_IPSR_DATA(IP0_22_19, A25),
  614. PINMUX_IPSR_DATA(IP0_22_19, SD1_WP),
  615. PINMUX_IPSR_DATA(IP0_22_19, MMC0_D5),
  616. PINMUX_IPSR_DATA(IP0_22_19, FD5),
  617. PINMUX_IPSR_MSEL(IP0_22_19, HSPI_RX2, SEL_HSPI2_0),
  618. PINMUX_IPSR_DATA(IP0_22_19, VI1_R3),
  619. PINMUX_IPSR_DATA(IP0_22_19, TX5_B),
  620. PINMUX_IPSR_MSEL(IP0_22_19, SSI_SDATA7_B, SEL_SSI7_1),
  621. PINMUX_IPSR_MSEL(IP0_22_19, CTS0_B, SEL_SCIF0_1),
  622. PINMUX_IPSR_DATA(IP0_24_23, CLKOUT),
  623. PINMUX_IPSR_DATA(IP0_24_23, TX3C_IRDA_TX_C),
  624. PINMUX_IPSR_DATA(IP0_24_23, PWM0_B),
  625. PINMUX_IPSR_DATA(IP0_25, CS0),
  626. PINMUX_IPSR_MSEL(IP0_25, HSPI_CS2_B, SEL_HSPI2_1),
  627. PINMUX_IPSR_DATA(IP0_27_26, CS1_A26),
  628. PINMUX_IPSR_DATA(IP0_27_26, HSPI_TX2),
  629. PINMUX_IPSR_DATA(IP0_27_26, SDSELF_B),
  630. PINMUX_IPSR_DATA(IP0_30_28, RD_WR),
  631. PINMUX_IPSR_DATA(IP0_30_28, FWE),
  632. PINMUX_IPSR_DATA(IP0_30_28, ATAG0),
  633. PINMUX_IPSR_DATA(IP0_30_28, VI1_R7),
  634. PINMUX_IPSR_MSEL(IP0_30_28, HRTS1, SEL_HSCIF1_0),
  635. PINMUX_IPSR_MSEL(IP0_30_28, RX4_C, SEL_SCIF4_2),
  636. PINMUX_IPSR_DATA(IP1_1_0, EX_CS0),
  637. PINMUX_IPSR_MSEL(IP1_1_0, RX3_C_IRDA_RX_C, SEL_SCIF3_2),
  638. PINMUX_IPSR_DATA(IP1_1_0, MMC0_D6),
  639. PINMUX_IPSR_DATA(IP1_1_0, FD6),
  640. PINMUX_IPSR_DATA(IP1_3_2, EX_CS1),
  641. PINMUX_IPSR_DATA(IP1_3_2, MMC0_D7),
  642. PINMUX_IPSR_DATA(IP1_3_2, FD7),
  643. PINMUX_IPSR_DATA(IP1_6_4, EX_CS2),
  644. PINMUX_IPSR_DATA(IP1_6_4, SD1_CLK),
  645. PINMUX_IPSR_DATA(IP1_6_4, MMC0_CLK),
  646. PINMUX_IPSR_DATA(IP1_6_4, FALE),
  647. PINMUX_IPSR_DATA(IP1_6_4, ATACS00),
  648. PINMUX_IPSR_DATA(IP1_10_7, EX_CS3),
  649. PINMUX_IPSR_DATA(IP1_10_7, SD1_CMD),
  650. PINMUX_IPSR_DATA(IP1_10_7, MMC0_CMD),
  651. PINMUX_IPSR_DATA(IP1_10_7, FRE),
  652. PINMUX_IPSR_DATA(IP1_10_7, ATACS10),
  653. PINMUX_IPSR_DATA(IP1_10_7, VI1_R4),
  654. PINMUX_IPSR_MSEL(IP1_10_7, RX5_B, SEL_SCIF5_1),
  655. PINMUX_IPSR_MSEL(IP1_10_7, HSCK1, SEL_HSCIF1_0),
  656. PINMUX_IPSR_MSEL(IP1_10_7, SSI_SDATA8_B, SEL_SSI8_1),
  657. PINMUX_IPSR_MSEL(IP1_10_7, RTS0_B_TANS_B, SEL_SCIF0_1),
  658. PINMUX_IPSR_MSEL(IP1_10_7, SSI_SDATA9, SEL_SSI9_0),
  659. PINMUX_IPSR_DATA(IP1_14_11, EX_CS4),
  660. PINMUX_IPSR_DATA(IP1_14_11, SD1_DAT0),
  661. PINMUX_IPSR_DATA(IP1_14_11, MMC0_D0),
  662. PINMUX_IPSR_DATA(IP1_14_11, FD0),
  663. PINMUX_IPSR_DATA(IP1_14_11, ATARD0),
  664. PINMUX_IPSR_DATA(IP1_14_11, VI1_R5),
  665. PINMUX_IPSR_MSEL(IP1_14_11, SCK5_B, SEL_SCIF5_1),
  666. PINMUX_IPSR_DATA(IP1_14_11, HTX1),
  667. PINMUX_IPSR_DATA(IP1_14_11, TX2_E),
  668. PINMUX_IPSR_DATA(IP1_14_11, TX0_B),
  669. PINMUX_IPSR_MSEL(IP1_14_11, SSI_SCK9, SEL_SSI9_0),
  670. PINMUX_IPSR_DATA(IP1_18_15, EX_CS5),
  671. PINMUX_IPSR_DATA(IP1_18_15, SD1_DAT1),
  672. PINMUX_IPSR_DATA(IP1_18_15, MMC0_D1),
  673. PINMUX_IPSR_DATA(IP1_18_15, FD1),
  674. PINMUX_IPSR_DATA(IP1_18_15, ATAWR0),
  675. PINMUX_IPSR_DATA(IP1_18_15, VI1_R6),
  676. PINMUX_IPSR_MSEL(IP1_18_15, HRX1, SEL_HSCIF1_0),
  677. PINMUX_IPSR_MSEL(IP1_18_15, RX2_E, SEL_SCIF2_4),
  678. PINMUX_IPSR_MSEL(IP1_18_15, RX0_B, SEL_SCIF0_1),
  679. PINMUX_IPSR_MSEL(IP1_18_15, SSI_WS9, SEL_SSI9_0),
  680. PINMUX_IPSR_DATA(IP1_20_19, MLB_CLK),
  681. PINMUX_IPSR_DATA(IP1_20_19, PWM2),
  682. PINMUX_IPSR_MSEL(IP1_20_19, SCK4, SEL_SCIF4_0),
  683. PINMUX_IPSR_DATA(IP1_22_21, MLB_SIG),
  684. PINMUX_IPSR_DATA(IP1_22_21, PWM3),
  685. PINMUX_IPSR_DATA(IP1_22_21, TX4),
  686. PINMUX_IPSR_DATA(IP1_24_23, MLB_DAT),
  687. PINMUX_IPSR_DATA(IP1_24_23, PWM4),
  688. PINMUX_IPSR_MSEL(IP1_24_23, RX4, SEL_SCIF4_0),
  689. PINMUX_IPSR_DATA(IP1_28_25, HTX0),
  690. PINMUX_IPSR_DATA(IP1_28_25, TX1),
  691. PINMUX_IPSR_DATA(IP1_28_25, SDATA),
  692. PINMUX_IPSR_MSEL(IP1_28_25, CTS0_C, SEL_SCIF0_2),
  693. PINMUX_IPSR_DATA(IP1_28_25, SUB_TCK),
  694. PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE2),
  695. PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE10),
  696. PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE18),
  697. PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE26),
  698. PINMUX_IPSR_DATA(IP1_28_25, CC5_STATE34),
  699. PINMUX_IPSR_MSEL(IP2_3_0, HRX0, SEL_HSCIF0_0),
  700. PINMUX_IPSR_MSEL(IP2_3_0, RX1, SEL_SCIF1_0),
  701. PINMUX_IPSR_DATA(IP2_3_0, SCKZ),
  702. PINMUX_IPSR_MSEL(IP2_3_0, RTS0_C_TANS_C, SEL_SCIF0_2),
  703. PINMUX_IPSR_DATA(IP2_3_0, SUB_TDI),
  704. PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE3),
  705. PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE11),
  706. PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE19),
  707. PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE27),
  708. PINMUX_IPSR_DATA(IP2_3_0, CC5_STATE35),
  709. PINMUX_IPSR_MSEL(IP2_7_4, HSCK0, SEL_HSCIF0_0),
  710. PINMUX_IPSR_MSEL(IP2_7_4, SCK1, SEL_SCIF1_0),
  711. PINMUX_IPSR_DATA(IP2_7_4, MTS),
  712. PINMUX_IPSR_DATA(IP2_7_4, PWM5),
  713. PINMUX_IPSR_MSEL(IP2_7_4, SCK0_C, SEL_SCIF0_2),
  714. PINMUX_IPSR_MSEL(IP2_7_4, SSI_SDATA9_B, SEL_SSI9_1),
  715. PINMUX_IPSR_DATA(IP2_7_4, SUB_TDO),
  716. PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE0),
  717. PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE8),
  718. PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE16),
  719. PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE24),
  720. PINMUX_IPSR_DATA(IP2_7_4, CC5_STATE32),
  721. PINMUX_IPSR_MSEL(IP2_11_8, HCTS0, SEL_HSCIF0_0),
  722. PINMUX_IPSR_MSEL(IP2_11_8, CTS1, SEL_SCIF1_0),
  723. PINMUX_IPSR_DATA(IP2_11_8, STM),
  724. PINMUX_IPSR_DATA(IP2_11_8, PWM0_D),
  725. PINMUX_IPSR_MSEL(IP2_11_8, RX0_C, SEL_SCIF0_2),
  726. PINMUX_IPSR_MSEL(IP2_11_8, SCIF_CLK_C, SEL_SCIF_2),
  727. PINMUX_IPSR_DATA(IP2_11_8, SUB_TRST),
  728. PINMUX_IPSR_MSEL(IP2_11_8, TCLK1_B, SEL_TMU1_1),
  729. PINMUX_IPSR_DATA(IP2_11_8, CC5_OSCOUT),
  730. PINMUX_IPSR_MSEL(IP2_15_12, HRTS0, SEL_HSCIF0_0),
  731. PINMUX_IPSR_MSEL(IP2_15_12, RTS1_TANS, SEL_SCIF1_0),
  732. PINMUX_IPSR_DATA(IP2_15_12, MDATA),
  733. PINMUX_IPSR_DATA(IP2_15_12, TX0_C),
  734. PINMUX_IPSR_DATA(IP2_15_12, SUB_TMS),
  735. PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE1),
  736. PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE9),
  737. PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE17),
  738. PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE25),
  739. PINMUX_IPSR_DATA(IP2_15_12, CC5_STATE33),
  740. PINMUX_IPSR_DATA(IP2_18_16, DU0_DR0),
  741. PINMUX_IPSR_DATA(IP2_18_16, LCDOUT0),
  742. PINMUX_IPSR_MSEL(IP2_18_16, DREQ0, SEL_EXBUS0_0),
  743. PINMUX_IPSR_MSEL(IP2_18_16, GPS_CLK_B, SEL_GPS_1),
  744. PINMUX_IPSR_DATA(IP2_18_16, AUDATA0),
  745. PINMUX_IPSR_DATA(IP2_18_16, TX5_C),
  746. PINMUX_IPSR_DATA(IP2_21_19, DU0_DR1),
  747. PINMUX_IPSR_DATA(IP2_21_19, LCDOUT1),
  748. PINMUX_IPSR_DATA(IP2_21_19, DACK0),
  749. PINMUX_IPSR_DATA(IP2_21_19, DRACK0),
  750. PINMUX_IPSR_MSEL(IP2_21_19, GPS_SIGN_B, SEL_GPS_1),
  751. PINMUX_IPSR_DATA(IP2_21_19, AUDATA1),
  752. PINMUX_IPSR_MSEL(IP2_21_19, RX5_C, SEL_SCIF5_2),
  753. PINMUX_IPSR_DATA(IP2_22, DU0_DR2),
  754. PINMUX_IPSR_DATA(IP2_22, LCDOUT2),
  755. PINMUX_IPSR_DATA(IP2_23, DU0_DR3),
  756. PINMUX_IPSR_DATA(IP2_23, LCDOUT3),
  757. PINMUX_IPSR_DATA(IP2_24, DU0_DR4),
  758. PINMUX_IPSR_DATA(IP2_24, LCDOUT4),
  759. PINMUX_IPSR_DATA(IP2_25, DU0_DR5),
  760. PINMUX_IPSR_DATA(IP2_25, LCDOUT5),
  761. PINMUX_IPSR_DATA(IP2_26, DU0_DR6),
  762. PINMUX_IPSR_DATA(IP2_26, LCDOUT6),
  763. PINMUX_IPSR_DATA(IP2_27, DU0_DR7),
  764. PINMUX_IPSR_DATA(IP2_27, LCDOUT7),
  765. PINMUX_IPSR_DATA(IP2_30_28, DU0_DG0),
  766. PINMUX_IPSR_DATA(IP2_30_28, LCDOUT8),
  767. PINMUX_IPSR_MSEL(IP2_30_28, DREQ1, SEL_EXBUS1_0),
  768. PINMUX_IPSR_MSEL(IP2_30_28, SCL2, SEL_I2C2_0),
  769. PINMUX_IPSR_DATA(IP2_30_28, AUDATA2),
  770. PINMUX_IPSR_DATA(IP3_2_0, DU0_DG1),
  771. PINMUX_IPSR_DATA(IP3_2_0, LCDOUT9),
  772. PINMUX_IPSR_DATA(IP3_2_0, DACK1),
  773. PINMUX_IPSR_MSEL(IP3_2_0, SDA2, SEL_I2C2_0),
  774. PINMUX_IPSR_DATA(IP3_2_0, AUDATA3),
  775. PINMUX_IPSR_DATA(IP3_3, DU0_DG2),
  776. PINMUX_IPSR_DATA(IP3_3, LCDOUT10),
  777. PINMUX_IPSR_DATA(IP3_4, DU0_DG3),
  778. PINMUX_IPSR_DATA(IP3_4, LCDOUT11),
  779. PINMUX_IPSR_DATA(IP3_5, DU0_DG4),
  780. PINMUX_IPSR_DATA(IP3_5, LCDOUT12),
  781. PINMUX_IPSR_DATA(IP3_6, DU0_DG5),
  782. PINMUX_IPSR_DATA(IP3_6, LCDOUT13),
  783. PINMUX_IPSR_DATA(IP3_7, DU0_DG6),
  784. PINMUX_IPSR_DATA(IP3_7, LCDOUT14),
  785. PINMUX_IPSR_DATA(IP3_8, DU0_DG7),
  786. PINMUX_IPSR_DATA(IP3_8, LCDOUT15),
  787. PINMUX_IPSR_DATA(IP3_11_9, DU0_DB0),
  788. PINMUX_IPSR_DATA(IP3_11_9, LCDOUT16),
  789. PINMUX_IPSR_DATA(IP3_11_9, EX_WAIT1),
  790. PINMUX_IPSR_MSEL(IP3_11_9, SCL1, SEL_I2C1_0),
  791. PINMUX_IPSR_MSEL(IP3_11_9, TCLK1, SEL_TMU1_0),
  792. PINMUX_IPSR_DATA(IP3_11_9, AUDATA4),
  793. PINMUX_IPSR_DATA(IP3_14_12, DU0_DB1),
  794. PINMUX_IPSR_DATA(IP3_14_12, LCDOUT17),
  795. PINMUX_IPSR_DATA(IP3_14_12, EX_WAIT2),
  796. PINMUX_IPSR_MSEL(IP3_14_12, SDA1, SEL_I2C1_0),
  797. PINMUX_IPSR_MSEL(IP3_14_12, GPS_MAG_B, SEL_GPS_1),
  798. PINMUX_IPSR_DATA(IP3_14_12, AUDATA5),
  799. PINMUX_IPSR_MSEL(IP3_14_12, SCK5_C, SEL_SCIF5_2),
  800. PINMUX_IPSR_DATA(IP3_15, DU0_DB2),
  801. PINMUX_IPSR_DATA(IP3_15, LCDOUT18),
  802. PINMUX_IPSR_DATA(IP3_16, DU0_DB3),
  803. PINMUX_IPSR_DATA(IP3_16, LCDOUT19),
  804. PINMUX_IPSR_DATA(IP3_17, DU0_DB4),
  805. PINMUX_IPSR_DATA(IP3_17, LCDOUT20),
  806. PINMUX_IPSR_DATA(IP3_18, DU0_DB5),
  807. PINMUX_IPSR_DATA(IP3_18, LCDOUT21),
  808. PINMUX_IPSR_DATA(IP3_19, DU0_DB6),
  809. PINMUX_IPSR_DATA(IP3_19, LCDOUT22),
  810. PINMUX_IPSR_DATA(IP3_20, DU0_DB7),
  811. PINMUX_IPSR_DATA(IP3_20, LCDOUT23),
  812. PINMUX_IPSR_DATA(IP3_22_21, DU0_DOTCLKIN),
  813. PINMUX_IPSR_DATA(IP3_22_21, QSTVA_QVS),
  814. PINMUX_IPSR_DATA(IP3_22_21, TX3_D_IRDA_TX_D),
  815. PINMUX_IPSR_MSEL(IP3_22_21, SCL3_B, SEL_I2C3_1),
  816. PINMUX_IPSR_DATA(IP3_23, DU0_DOTCLKOUT0),
  817. PINMUX_IPSR_DATA(IP3_23, QCLK),
  818. PINMUX_IPSR_DATA(IP3_26_24, DU0_DOTCLKOUT1),
  819. PINMUX_IPSR_DATA(IP3_26_24, QSTVB_QVE),
  820. PINMUX_IPSR_MSEL(IP3_26_24, RX3_D_IRDA_RX_D, SEL_SCIF3_3),
  821. PINMUX_IPSR_MSEL(IP3_26_24, SDA3_B, SEL_I2C3_1),
  822. PINMUX_IPSR_MSEL(IP3_26_24, SDA2_C, SEL_I2C2_2),
  823. PINMUX_IPSR_DATA(IP3_26_24, DACK0_B),
  824. PINMUX_IPSR_DATA(IP3_26_24, DRACK0_B),
  825. PINMUX_IPSR_DATA(IP3_27, DU0_EXHSYNC_DU0_HSYNC),
  826. PINMUX_IPSR_DATA(IP3_27, QSTH_QHS),
  827. PINMUX_IPSR_DATA(IP3_28, DU0_EXVSYNC_DU0_VSYNC),
  828. PINMUX_IPSR_DATA(IP3_28, QSTB_QHE),
  829. PINMUX_IPSR_DATA(IP3_31_29, DU0_EXODDF_DU0_ODDF_DISP_CDE),
  830. PINMUX_IPSR_DATA(IP3_31_29, QCPV_QDE),
  831. PINMUX_IPSR_DATA(IP3_31_29, CAN1_TX),
  832. PINMUX_IPSR_DATA(IP3_31_29, TX2_C),
  833. PINMUX_IPSR_MSEL(IP3_31_29, SCL2_C, SEL_I2C2_2),
  834. PINMUX_IPSR_DATA(IP3_31_29, REMOCON),
  835. PINMUX_IPSR_DATA(IP4_1_0, DU0_DISP),
  836. PINMUX_IPSR_DATA(IP4_1_0, QPOLA),
  837. PINMUX_IPSR_MSEL(IP4_1_0, CAN_CLK_C, SEL_CANCLK_2),
  838. PINMUX_IPSR_MSEL(IP4_1_0, SCK2_C, SEL_SCIF2_2),
  839. PINMUX_IPSR_DATA(IP4_4_2, DU0_CDE),
  840. PINMUX_IPSR_DATA(IP4_4_2, QPOLB),
  841. PINMUX_IPSR_DATA(IP4_4_2, CAN1_RX),
  842. PINMUX_IPSR_MSEL(IP4_4_2, RX2_C, SEL_SCIF2_2),
  843. PINMUX_IPSR_MSEL(IP4_4_2, DREQ0_B, SEL_EXBUS0_1),
  844. PINMUX_IPSR_MSEL(IP4_4_2, SSI_SCK78_B, SEL_SSI7_1),
  845. PINMUX_IPSR_MSEL(IP4_4_2, SCK0_B, SEL_SCIF0_1),
  846. PINMUX_IPSR_DATA(IP4_7_5, DU1_DR0),
  847. PINMUX_IPSR_DATA(IP4_7_5, VI2_DATA0_VI2_B0),
  848. PINMUX_IPSR_DATA(IP4_7_5, PWM6),
  849. PINMUX_IPSR_DATA(IP4_7_5, SD3_CLK),
  850. PINMUX_IPSR_DATA(IP4_7_5, TX3_E_IRDA_TX_E),
  851. PINMUX_IPSR_DATA(IP4_7_5, AUDCK),
  852. PINMUX_IPSR_MSEL(IP4_7_5, PWMFSW0_B, SEL_PWMFSW_1),
  853. PINMUX_IPSR_DATA(IP4_10_8, DU1_DR1),
  854. PINMUX_IPSR_DATA(IP4_10_8, VI2_DATA1_VI2_B1),
  855. PINMUX_IPSR_DATA(IP4_10_8, PWM0),
  856. PINMUX_IPSR_DATA(IP4_10_8, SD3_CMD),
  857. PINMUX_IPSR_MSEL(IP4_10_8, RX3_E_IRDA_RX_E, SEL_SCIF3_4),
  858. PINMUX_IPSR_DATA(IP4_10_8, AUDSYNC),
  859. PINMUX_IPSR_MSEL(IP4_10_8, CTS0_D, SEL_SCIF0_3),
  860. PINMUX_IPSR_DATA(IP4_11, DU1_DR2),
  861. PINMUX_IPSR_DATA(IP4_11, VI2_G0),
  862. PINMUX_IPSR_DATA(IP4_12, DU1_DR3),
  863. PINMUX_IPSR_DATA(IP4_12, VI2_G1),
  864. PINMUX_IPSR_DATA(IP4_13, DU1_DR4),
  865. PINMUX_IPSR_DATA(IP4_13, VI2_G2),
  866. PINMUX_IPSR_DATA(IP4_14, DU1_DR5),
  867. PINMUX_IPSR_DATA(IP4_14, VI2_G3),
  868. PINMUX_IPSR_DATA(IP4_15, DU1_DR6),
  869. PINMUX_IPSR_DATA(IP4_15, VI2_G4),
  870. PINMUX_IPSR_DATA(IP4_16, DU1_DR7),
  871. PINMUX_IPSR_DATA(IP4_16, VI2_G5),
  872. PINMUX_IPSR_DATA(IP4_19_17, DU1_DG0),
  873. PINMUX_IPSR_DATA(IP4_19_17, VI2_DATA2_VI2_B2),
  874. PINMUX_IPSR_MSEL(IP4_19_17, SCL1_B, SEL_I2C1_1),
  875. PINMUX_IPSR_DATA(IP4_19_17, SD3_DAT2),
  876. PINMUX_IPSR_MSEL(IP4_19_17, SCK3_E, SEL_SCIF3_4),
  877. PINMUX_IPSR_DATA(IP4_19_17, AUDATA6),
  878. PINMUX_IPSR_DATA(IP4_19_17, TX0_D),
  879. PINMUX_IPSR_DATA(IP4_22_20, DU1_DG1),
  880. PINMUX_IPSR_DATA(IP4_22_20, VI2_DATA3_VI2_B3),
  881. PINMUX_IPSR_MSEL(IP4_22_20, SDA1_B, SEL_I2C1_1),
  882. PINMUX_IPSR_DATA(IP4_22_20, SD3_DAT3),
  883. PINMUX_IPSR_MSEL(IP4_22_20, SCK5, SEL_SCIF5_0),
  884. PINMUX_IPSR_DATA(IP4_22_20, AUDATA7),
  885. PINMUX_IPSR_MSEL(IP4_22_20, RX0_D, SEL_SCIF0_3),
  886. PINMUX_IPSR_DATA(IP4_23, DU1_DG2),
  887. PINMUX_IPSR_DATA(IP4_23, VI2_G6),
  888. PINMUX_IPSR_DATA(IP4_24, DU1_DG3),
  889. PINMUX_IPSR_DATA(IP4_24, VI2_G7),
  890. PINMUX_IPSR_DATA(IP4_25, DU1_DG4),
  891. PINMUX_IPSR_DATA(IP4_25, VI2_R0),
  892. PINMUX_IPSR_DATA(IP4_26, DU1_DG5),
  893. PINMUX_IPSR_DATA(IP4_26, VI2_R1),
  894. PINMUX_IPSR_DATA(IP4_27, DU1_DG6),
  895. PINMUX_IPSR_DATA(IP4_27, VI2_R2),
  896. PINMUX_IPSR_DATA(IP4_28, DU1_DG7),
  897. PINMUX_IPSR_DATA(IP4_28, VI2_R3),
  898. PINMUX_IPSR_DATA(IP4_31_29, DU1_DB0),
  899. PINMUX_IPSR_DATA(IP4_31_29, VI2_DATA4_VI2_B4),
  900. PINMUX_IPSR_MSEL(IP4_31_29, SCL2_B, SEL_I2C2_1),
  901. PINMUX_IPSR_DATA(IP4_31_29, SD3_DAT0),
  902. PINMUX_IPSR_DATA(IP4_31_29, TX5),
  903. PINMUX_IPSR_MSEL(IP4_31_29, SCK0_D, SEL_SCIF0_3),
  904. PINMUX_IPSR_DATA(IP5_2_0, DU1_DB1),
  905. PINMUX_IPSR_DATA(IP5_2_0, VI2_DATA5_VI2_B5),
  906. PINMUX_IPSR_MSEL(IP5_2_0, SDA2_B, SEL_I2C2_1),
  907. PINMUX_IPSR_DATA(IP5_2_0, SD3_DAT1),
  908. PINMUX_IPSR_MSEL(IP5_2_0, RX5, SEL_SCIF5_0),
  909. PINMUX_IPSR_MSEL(IP5_2_0, RTS0_D_TANS_D, SEL_SCIF0_3),
  910. PINMUX_IPSR_DATA(IP5_3, DU1_DB2),
  911. PINMUX_IPSR_DATA(IP5_3, VI2_R4),
  912. PINMUX_IPSR_DATA(IP5_4, DU1_DB3),
  913. PINMUX_IPSR_DATA(IP5_4, VI2_R5),
  914. PINMUX_IPSR_DATA(IP5_5, DU1_DB4),
  915. PINMUX_IPSR_DATA(IP5_5, VI2_R6),
  916. PINMUX_IPSR_DATA(IP5_6, DU1_DB5),
  917. PINMUX_IPSR_DATA(IP5_6, VI2_R7),
  918. PINMUX_IPSR_DATA(IP5_7, DU1_DB6),
  919. PINMUX_IPSR_MSEL(IP5_7, SCL2_D, SEL_I2C2_3),
  920. PINMUX_IPSR_DATA(IP5_8, DU1_DB7),
  921. PINMUX_IPSR_MSEL(IP5_8, SDA2_D, SEL_I2C2_3),
  922. PINMUX_IPSR_DATA(IP5_10_9, DU1_DOTCLKIN),
  923. PINMUX_IPSR_DATA(IP5_10_9, VI2_CLKENB),
  924. PINMUX_IPSR_MSEL(IP5_10_9, HSPI_CS1, SEL_HSPI1_0),
  925. PINMUX_IPSR_MSEL(IP5_10_9, SCL1_D, SEL_I2C1_3),
  926. PINMUX_IPSR_DATA(IP5_12_11, DU1_DOTCLKOUT),
  927. PINMUX_IPSR_DATA(IP5_12_11, VI2_FIELD),
  928. PINMUX_IPSR_MSEL(IP5_12_11, SDA1_D, SEL_I2C1_3),
  929. PINMUX_IPSR_DATA(IP5_14_13, DU1_EXHSYNC_DU1_HSYNC),
  930. PINMUX_IPSR_DATA(IP5_14_13, VI2_HSYNC),
  931. PINMUX_IPSR_DATA(IP5_14_13, VI3_HSYNC),
  932. PINMUX_IPSR_DATA(IP5_16_15, DU1_EXVSYNC_DU1_VSYNC),
  933. PINMUX_IPSR_DATA(IP5_16_15, VI2_VSYNC),
  934. PINMUX_IPSR_DATA(IP5_16_15, VI3_VSYNC),
  935. PINMUX_IPSR_DATA(IP5_20_17, DU1_EXODDF_DU1_ODDF_DISP_CDE),
  936. PINMUX_IPSR_DATA(IP5_20_17, VI2_CLK),
  937. PINMUX_IPSR_DATA(IP5_20_17, TX3_B_IRDA_TX_B),
  938. PINMUX_IPSR_DATA(IP5_20_17, SD3_CD),
  939. PINMUX_IPSR_DATA(IP5_20_17, HSPI_TX1),
  940. PINMUX_IPSR_DATA(IP5_20_17, VI1_CLKENB),
  941. PINMUX_IPSR_DATA(IP5_20_17, VI3_CLKENB),
  942. PINMUX_IPSR_DATA(IP5_20_17, AUDIO_CLKC),
  943. PINMUX_IPSR_DATA(IP5_20_17, TX2_D),
  944. PINMUX_IPSR_DATA(IP5_20_17, SPEEDIN),
  945. PINMUX_IPSR_MSEL(IP5_20_17, GPS_SIGN_D, SEL_GPS_3),
  946. PINMUX_IPSR_DATA(IP5_23_21, DU1_DISP),
  947. PINMUX_IPSR_DATA(IP5_23_21, VI2_DATA6_VI2_B6),
  948. PINMUX_IPSR_MSEL(IP5_23_21, TCLK0, SEL_TMU0_0),
  949. PINMUX_IPSR_DATA(IP5_23_21, QSTVA_B_QVS_B),
  950. PINMUX_IPSR_MSEL(IP5_23_21, HSPI_CLK1, SEL_HSPI1_0),
  951. PINMUX_IPSR_MSEL(IP5_23_21, SCK2_D, SEL_SCIF2_3),
  952. PINMUX_IPSR_DATA(IP5_23_21, AUDIO_CLKOUT_B),
  953. PINMUX_IPSR_MSEL(IP5_23_21, GPS_MAG_D, SEL_GPS_3),
  954. PINMUX_IPSR_DATA(IP5_27_24, DU1_CDE),
  955. PINMUX_IPSR_DATA(IP5_27_24, VI2_DATA7_VI2_B7),
  956. PINMUX_IPSR_MSEL(IP5_27_24, RX3_B_IRDA_RX_B, SEL_SCIF3_1),
  957. PINMUX_IPSR_DATA(IP5_27_24, SD3_WP),
  958. PINMUX_IPSR_MSEL(IP5_27_24, HSPI_RX1, SEL_HSPI1_0),
  959. PINMUX_IPSR_DATA(IP5_27_24, VI1_FIELD),
  960. PINMUX_IPSR_DATA(IP5_27_24, VI3_FIELD),
  961. PINMUX_IPSR_DATA(IP5_27_24, AUDIO_CLKOUT),
  962. PINMUX_IPSR_MSEL(IP5_27_24, RX2_D, SEL_SCIF2_3),
  963. PINMUX_IPSR_MSEL(IP5_27_24, GPS_CLK_C, SEL_GPS_2),
  964. PINMUX_IPSR_MSEL(IP5_27_24, GPS_CLK_D, SEL_GPS_3),
  965. PINMUX_IPSR_DATA(IP5_28, AUDIO_CLKA),
  966. PINMUX_IPSR_DATA(IP5_28, CAN_TXCLK),
  967. PINMUX_IPSR_DATA(IP5_30_29, AUDIO_CLKB),
  968. PINMUX_IPSR_DATA(IP5_30_29, USB_OVC2),
  969. PINMUX_IPSR_DATA(IP5_30_29, CAN_DEBUGOUT0),
  970. PINMUX_IPSR_DATA(IP5_30_29, MOUT0),
  971. PINMUX_IPSR_DATA(IP6_1_0, SSI_SCK0129),
  972. PINMUX_IPSR_DATA(IP6_1_0, CAN_DEBUGOUT1),
  973. PINMUX_IPSR_DATA(IP6_1_0, MOUT1),
  974. PINMUX_IPSR_DATA(IP6_3_2, SSI_WS0129),
  975. PINMUX_IPSR_DATA(IP6_3_2, CAN_DEBUGOUT2),
  976. PINMUX_IPSR_DATA(IP6_3_2, MOUT2),
  977. PINMUX_IPSR_DATA(IP6_5_4, SSI_SDATA0),
  978. PINMUX_IPSR_DATA(IP6_5_4, CAN_DEBUGOUT3),
  979. PINMUX_IPSR_DATA(IP6_5_4, MOUT5),
  980. PINMUX_IPSR_DATA(IP6_7_6, SSI_SDATA1),
  981. PINMUX_IPSR_DATA(IP6_7_6, CAN_DEBUGOUT4),
  982. PINMUX_IPSR_DATA(IP6_7_6, MOUT6),
  983. PINMUX_IPSR_DATA(IP6_8, SSI_SDATA2),
  984. PINMUX_IPSR_DATA(IP6_8, CAN_DEBUGOUT5),
  985. PINMUX_IPSR_DATA(IP6_11_9, SSI_SCK34),
  986. PINMUX_IPSR_DATA(IP6_11_9, CAN_DEBUGOUT6),
  987. PINMUX_IPSR_DATA(IP6_11_9, CAN0_TX_B),
  988. PINMUX_IPSR_MSEL(IP6_11_9, IERX, SEL_IE_0),
  989. PINMUX_IPSR_MSEL(IP6_11_9, SSI_SCK9_C, SEL_SSI9_2),
  990. PINMUX_IPSR_DATA(IP6_14_12, SSI_WS34),
  991. PINMUX_IPSR_DATA(IP6_14_12, CAN_DEBUGOUT7),
  992. PINMUX_IPSR_MSEL(IP6_14_12, CAN0_RX_B, SEL_CAN0_1),
  993. PINMUX_IPSR_DATA(IP6_14_12, IETX),
  994. PINMUX_IPSR_MSEL(IP6_14_12, SSI_WS9_C, SEL_SSI9_2),
  995. PINMUX_IPSR_DATA(IP6_17_15, SSI_SDATA3),
  996. PINMUX_IPSR_DATA(IP6_17_15, PWM0_C),
  997. PINMUX_IPSR_DATA(IP6_17_15, CAN_DEBUGOUT8),
  998. PINMUX_IPSR_MSEL(IP6_17_15, CAN_CLK_B, SEL_CANCLK_1),
  999. PINMUX_IPSR_MSEL(IP6_17_15, IECLK, SEL_IE_0),
  1000. PINMUX_IPSR_MSEL(IP6_17_15, SCIF_CLK_B, SEL_SCIF_1),
  1001. PINMUX_IPSR_MSEL(IP6_17_15, TCLK0_B, SEL_TMU0_1),
  1002. PINMUX_IPSR_DATA(IP6_19_18, SSI_SDATA4),
  1003. PINMUX_IPSR_DATA(IP6_19_18, CAN_DEBUGOUT9),
  1004. PINMUX_IPSR_MSEL(IP6_19_18, SSI_SDATA9_C, SEL_SSI9_2),
  1005. PINMUX_IPSR_DATA(IP6_22_20, SSI_SCK5),
  1006. PINMUX_IPSR_DATA(IP6_22_20, ADICLK),
  1007. PINMUX_IPSR_DATA(IP6_22_20, CAN_DEBUGOUT10),
  1008. PINMUX_IPSR_MSEL(IP6_22_20, SCK3, SEL_SCIF3_0),
  1009. PINMUX_IPSR_MSEL(IP6_22_20, TCLK0_D, SEL_TMU0_3),
  1010. PINMUX_IPSR_DATA(IP6_24_23, SSI_WS5),
  1011. PINMUX_IPSR_MSEL(IP6_24_23, ADICS_SAMP, SEL_ADI_0),
  1012. PINMUX_IPSR_DATA(IP6_24_23, CAN_DEBUGOUT11),
  1013. PINMUX_IPSR_DATA(IP6_24_23, TX3_IRDA_TX),
  1014. PINMUX_IPSR_DATA(IP6_26_25, SSI_SDATA5),
  1015. PINMUX_IPSR_MSEL(IP6_26_25, ADIDATA, SEL_ADI_0),
  1016. PINMUX_IPSR_DATA(IP6_26_25, CAN_DEBUGOUT12),
  1017. PINMUX_IPSR_MSEL(IP6_26_25, RX3_IRDA_RX, SEL_SCIF3_0),
  1018. PINMUX_IPSR_DATA(IP6_30_29, SSI_SCK6),
  1019. PINMUX_IPSR_DATA(IP6_30_29, ADICHS0),
  1020. PINMUX_IPSR_DATA(IP6_30_29, CAN0_TX),
  1021. PINMUX_IPSR_MSEL(IP6_30_29, IERX_B, SEL_IE_1),
  1022. PINMUX_IPSR_DATA(IP7_1_0, SSI_WS6),
  1023. PINMUX_IPSR_DATA(IP7_1_0, ADICHS1),
  1024. PINMUX_IPSR_MSEL(IP7_1_0, CAN0_RX, SEL_CAN0_0),
  1025. PINMUX_IPSR_DATA(IP7_1_0, IETX_B),
  1026. PINMUX_IPSR_DATA(IP7_3_2, SSI_SDATA6),
  1027. PINMUX_IPSR_DATA(IP7_3_2, ADICHS2),
  1028. PINMUX_IPSR_MSEL(IP7_3_2, CAN_CLK, SEL_CANCLK_0),
  1029. PINMUX_IPSR_MSEL(IP7_3_2, IECLK_B, SEL_IE_1),
  1030. PINMUX_IPSR_MSEL(IP7_6_4, SSI_SCK78, SEL_SSI7_0),
  1031. PINMUX_IPSR_DATA(IP7_6_4, CAN_DEBUGOUT13),
  1032. PINMUX_IPSR_MSEL(IP7_6_4, IRQ0_B, SEL_INT0_1),
  1033. PINMUX_IPSR_MSEL(IP7_6_4, SSI_SCK9_B, SEL_SSI9_1),
  1034. PINMUX_IPSR_MSEL(IP7_6_4, HSPI_CLK1_C, SEL_HSPI1_2),
  1035. PINMUX_IPSR_MSEL(IP7_9_7, SSI_WS78, SEL_SSI7_0),
  1036. PINMUX_IPSR_DATA(IP7_9_7, CAN_DEBUGOUT14),
  1037. PINMUX_IPSR_MSEL(IP7_9_7, IRQ1_B, SEL_INT1_1),
  1038. PINMUX_IPSR_MSEL(IP7_9_7, SSI_WS9_B, SEL_SSI9_1),
  1039. PINMUX_IPSR_MSEL(IP7_9_7, HSPI_CS1_C, SEL_HSPI1_2),
  1040. PINMUX_IPSR_MSEL(IP7_12_10, SSI_SDATA7, SEL_SSI7_0),
  1041. PINMUX_IPSR_DATA(IP7_12_10, CAN_DEBUGOUT15),
  1042. PINMUX_IPSR_MSEL(IP7_12_10, IRQ2_B, SEL_INT2_1),
  1043. PINMUX_IPSR_MSEL(IP7_12_10, TCLK1_C, SEL_TMU1_2),
  1044. PINMUX_IPSR_DATA(IP7_12_10, HSPI_TX1_C),
  1045. PINMUX_IPSR_MSEL(IP7_14_13, SSI_SDATA8, SEL_SSI8_0),
  1046. PINMUX_IPSR_DATA(IP7_14_13, VSP),
  1047. PINMUX_IPSR_MSEL(IP7_14_13, IRQ3_B, SEL_INT3_1),
  1048. PINMUX_IPSR_MSEL(IP7_14_13, HSPI_RX1_C, SEL_HSPI1_2),
  1049. PINMUX_IPSR_DATA(IP7_16_15, SD0_CLK),
  1050. PINMUX_IPSR_DATA(IP7_16_15, ATACS01),
  1051. PINMUX_IPSR_MSEL(IP7_16_15, SCK1_B, SEL_SCIF1_1),
  1052. PINMUX_IPSR_DATA(IP7_18_17, SD0_CMD),
  1053. PINMUX_IPSR_DATA(IP7_18_17, ATACS11),
  1054. PINMUX_IPSR_DATA(IP7_18_17, TX1_B),
  1055. PINMUX_IPSR_DATA(IP7_18_17, CC5_TDO),
  1056. PINMUX_IPSR_DATA(IP7_20_19, SD0_DAT0),
  1057. PINMUX_IPSR_DATA(IP7_20_19, ATADIR1),
  1058. PINMUX_IPSR_MSEL(IP7_20_19, RX1_B, SEL_SCIF1_1),
  1059. PINMUX_IPSR_DATA(IP7_20_19, CC5_TRST),
  1060. PINMUX_IPSR_DATA(IP7_22_21, SD0_DAT1),
  1061. PINMUX_IPSR_DATA(IP7_22_21, ATAG1),
  1062. PINMUX_IPSR_MSEL(IP7_22_21, SCK2_B, SEL_SCIF2_1),
  1063. PINMUX_IPSR_DATA(IP7_22_21, CC5_TMS),
  1064. PINMUX_IPSR_DATA(IP7_24_23, SD0_DAT2),
  1065. PINMUX_IPSR_DATA(IP7_24_23, ATARD1),
  1066. PINMUX_IPSR_DATA(IP7_24_23, TX2_B),
  1067. PINMUX_IPSR_DATA(IP7_24_23, CC5_TCK),
  1068. PINMUX_IPSR_DATA(IP7_26_25, SD0_DAT3),
  1069. PINMUX_IPSR_DATA(IP7_26_25, ATAWR1),
  1070. PINMUX_IPSR_MSEL(IP7_26_25, RX2_B, SEL_SCIF2_1),
  1071. PINMUX_IPSR_DATA(IP7_26_25, CC5_TDI),
  1072. PINMUX_IPSR_DATA(IP7_28_27, SD0_CD),
  1073. PINMUX_IPSR_MSEL(IP7_28_27, DREQ2, SEL_EXBUS2_0),
  1074. PINMUX_IPSR_MSEL(IP7_28_27, RTS1_B_TANS_B, SEL_SCIF1_1),
  1075. PINMUX_IPSR_DATA(IP7_30_29, SD0_WP),
  1076. PINMUX_IPSR_DATA(IP7_30_29, DACK2),
  1077. PINMUX_IPSR_MSEL(IP7_30_29, CTS1_B, SEL_SCIF1_1),
  1078. PINMUX_IPSR_DATA(IP8_3_0, HSPI_CLK0),
  1079. PINMUX_IPSR_MSEL(IP8_3_0, CTS0, SEL_SCIF0_0),
  1080. PINMUX_IPSR_DATA(IP8_3_0, USB_OVC0),
  1081. PINMUX_IPSR_DATA(IP8_3_0, AD_CLK),
  1082. PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE4),
  1083. PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE12),
  1084. PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE20),
  1085. PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE28),
  1086. PINMUX_IPSR_DATA(IP8_3_0, CC5_STATE36),
  1087. PINMUX_IPSR_DATA(IP8_7_4, HSPI_CS0),
  1088. PINMUX_IPSR_MSEL(IP8_7_4, RTS0_TANS, SEL_SCIF0_0),
  1089. PINMUX_IPSR_DATA(IP8_7_4, USB_OVC1),
  1090. PINMUX_IPSR_DATA(IP8_7_4, AD_DI),
  1091. PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE5),
  1092. PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE13),
  1093. PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE21),
  1094. PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE29),
  1095. PINMUX_IPSR_DATA(IP8_7_4, CC5_STATE37),
  1096. PINMUX_IPSR_DATA(IP8_11_8, HSPI_TX0),
  1097. PINMUX_IPSR_DATA(IP8_11_8, TX0),
  1098. PINMUX_IPSR_DATA(IP8_11_8, CAN_DEBUG_HW_TRIGGER),
  1099. PINMUX_IPSR_DATA(IP8_11_8, AD_DO),
  1100. PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE6),
  1101. PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE14),
  1102. PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE22),
  1103. PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE30),
  1104. PINMUX_IPSR_DATA(IP8_11_8, CC5_STATE38),
  1105. PINMUX_IPSR_DATA(IP8_15_12, HSPI_RX0),
  1106. PINMUX_IPSR_MSEL(IP8_15_12, RX0, SEL_SCIF0_0),
  1107. PINMUX_IPSR_DATA(IP8_15_12, CAN_STEP0),
  1108. PINMUX_IPSR_DATA(IP8_15_12, AD_NCS),
  1109. PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE7),
  1110. PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE15),
  1111. PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE23),
  1112. PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE31),
  1113. PINMUX_IPSR_DATA(IP8_15_12, CC5_STATE39),
  1114. PINMUX_IPSR_DATA(IP8_17_16, FMCLK),
  1115. PINMUX_IPSR_DATA(IP8_17_16, RDS_CLK),
  1116. PINMUX_IPSR_DATA(IP8_17_16, PCMOE),
  1117. PINMUX_IPSR_DATA(IP8_18, BPFCLK),
  1118. PINMUX_IPSR_DATA(IP8_18, PCMWE),
  1119. PINMUX_IPSR_DATA(IP8_19, FMIN),
  1120. PINMUX_IPSR_DATA(IP8_19, RDS_DATA),
  1121. PINMUX_IPSR_DATA(IP8_20, VI0_CLK),
  1122. PINMUX_IPSR_DATA(IP8_20, MMC1_CLK),
  1123. PINMUX_IPSR_DATA(IP8_22_21, VI0_CLKENB),
  1124. PINMUX_IPSR_DATA(IP8_22_21, TX1_C),
  1125. PINMUX_IPSR_DATA(IP8_22_21, HTX1_B),
  1126. PINMUX_IPSR_DATA(IP8_22_21, MT1_SYNC),
  1127. PINMUX_IPSR_DATA(IP8_24_23, VI0_FIELD),
  1128. PINMUX_IPSR_MSEL(IP8_24_23, RX1_C, SEL_SCIF1_2),
  1129. PINMUX_IPSR_MSEL(IP8_24_23, HRX1_B, SEL_HSCIF1_1),
  1130. PINMUX_IPSR_DATA(IP8_27_25, VI0_HSYNC),
  1131. PINMUX_IPSR_MSEL(IP8_27_25, VI0_DATA0_B_VI0_B0_B, SEL_VI0_1),
  1132. PINMUX_IPSR_MSEL(IP8_27_25, CTS1_C, SEL_SCIF1_2),
  1133. PINMUX_IPSR_DATA(IP8_27_25, TX4_D),
  1134. PINMUX_IPSR_DATA(IP8_27_25, MMC1_CMD),
  1135. PINMUX_IPSR_MSEL(IP8_27_25, HSCK1_B, SEL_HSCIF1_1),
  1136. PINMUX_IPSR_DATA(IP8_30_28, VI0_VSYNC),
  1137. PINMUX_IPSR_MSEL(IP8_30_28, VI0_DATA1_B_VI0_B1_B, SEL_VI0_1),
  1138. PINMUX_IPSR_MSEL(IP8_30_28, RTS1_C_TANS_C, SEL_SCIF1_2),
  1139. PINMUX_IPSR_MSEL(IP8_30_28, RX4_D, SEL_SCIF4_3),
  1140. PINMUX_IPSR_MSEL(IP8_30_28, PWMFSW0_C, SEL_PWMFSW_2),
  1141. PINMUX_IPSR_MSEL(IP9_1_0, VI0_DATA0_VI0_B0, SEL_VI0_0),
  1142. PINMUX_IPSR_MSEL(IP9_1_0, HRTS1_B, SEL_HSCIF1_1),
  1143. PINMUX_IPSR_DATA(IP9_1_0, MT1_VCXO),
  1144. PINMUX_IPSR_MSEL(IP9_3_2, VI0_DATA1_VI0_B1, SEL_VI0_0),
  1145. PINMUX_IPSR_MSEL(IP9_3_2, HCTS1_B, SEL_HSCIF1_1),
  1146. PINMUX_IPSR_DATA(IP9_3_2, MT1_PWM),
  1147. PINMUX_IPSR_DATA(IP9_4, VI0_DATA2_VI0_B2),
  1148. PINMUX_IPSR_DATA(IP9_4, MMC1_D0),
  1149. PINMUX_IPSR_DATA(IP9_5, VI0_DATA3_VI0_B3),
  1150. PINMUX_IPSR_DATA(IP9_5, MMC1_D1),
  1151. PINMUX_IPSR_DATA(IP9_6, VI0_DATA4_VI0_B4),
  1152. PINMUX_IPSR_DATA(IP9_6, MMC1_D2),
  1153. PINMUX_IPSR_DATA(IP9_7, VI0_DATA5_VI0_B5),
  1154. PINMUX_IPSR_DATA(IP9_7, MMC1_D3),
  1155. PINMUX_IPSR_DATA(IP9_9_8, VI0_DATA6_VI0_B6),
  1156. PINMUX_IPSR_DATA(IP9_9_8, MMC1_D4),
  1157. PINMUX_IPSR_DATA(IP9_9_8, ARM_TRACEDATA_0),
  1158. PINMUX_IPSR_DATA(IP9_11_10, VI0_DATA7_VI0_B7),
  1159. PINMUX_IPSR_DATA(IP9_11_10, MMC1_D5),
  1160. PINMUX_IPSR_DATA(IP9_11_10, ARM_TRACEDATA_1),
  1161. PINMUX_IPSR_DATA(IP9_13_12, VI0_G0),
  1162. PINMUX_IPSR_MSEL(IP9_13_12, SSI_SCK78_C, SEL_SSI7_2),
  1163. PINMUX_IPSR_MSEL(IP9_13_12, IRQ0, SEL_INT0_0),
  1164. PINMUX_IPSR_DATA(IP9_13_12, ARM_TRACEDATA_2),
  1165. PINMUX_IPSR_DATA(IP9_15_14, VI0_G1),
  1166. PINMUX_IPSR_MSEL(IP9_15_14, SSI_WS78_C, SEL_SSI7_2),
  1167. PINMUX_IPSR_MSEL(IP9_15_14, IRQ1, SEL_INT1_0),
  1168. PINMUX_IPSR_DATA(IP9_15_14, ARM_TRACEDATA_3),
  1169. PINMUX_IPSR_DATA(IP9_18_16, VI0_G2),
  1170. PINMUX_IPSR_DATA(IP9_18_16, ETH_TXD1),
  1171. PINMUX_IPSR_DATA(IP9_18_16, MMC1_D6),
  1172. PINMUX_IPSR_DATA(IP9_18_16, ARM_TRACEDATA_4),
  1173. PINMUX_IPSR_DATA(IP9_18_16, TS_SPSYNC0),
  1174. PINMUX_IPSR_DATA(IP9_21_19, VI0_G3),
  1175. PINMUX_IPSR_DATA(IP9_21_19, ETH_CRS_DV),
  1176. PINMUX_IPSR_DATA(IP9_21_19, MMC1_D7),
  1177. PINMUX_IPSR_DATA(IP9_21_19, ARM_TRACEDATA_5),
  1178. PINMUX_IPSR_DATA(IP9_21_19, TS_SDAT0),
  1179. PINMUX_IPSR_DATA(IP9_23_22, VI0_G4),
  1180. PINMUX_IPSR_DATA(IP9_23_22, ETH_TX_EN),
  1181. PINMUX_IPSR_MSEL(IP9_23_22, SD2_DAT0_B, SEL_SD2_1),
  1182. PINMUX_IPSR_DATA(IP9_23_22, ARM_TRACEDATA_6),
  1183. PINMUX_IPSR_DATA(IP9_25_24, VI0_G5),
  1184. PINMUX_IPSR_DATA(IP9_25_24, ETH_RX_ER),
  1185. PINMUX_IPSR_MSEL(IP9_25_24, SD2_DAT1_B, SEL_SD2_1),
  1186. PINMUX_IPSR_DATA(IP9_25_24, ARM_TRACEDATA_7),
  1187. PINMUX_IPSR_DATA(IP9_27_26, VI0_G6),
  1188. PINMUX_IPSR_DATA(IP9_27_26, ETH_RXD0),
  1189. PINMUX_IPSR_MSEL(IP9_27_26, SD2_DAT2_B, SEL_SD2_1),
  1190. PINMUX_IPSR_DATA(IP9_27_26, ARM_TRACEDATA_8),
  1191. PINMUX_IPSR_DATA(IP9_29_28, VI0_G7),
  1192. PINMUX_IPSR_DATA(IP9_29_28, ETH_RXD1),
  1193. PINMUX_IPSR_MSEL(IP9_29_28, SD2_DAT3_B, SEL_SD2_1),
  1194. PINMUX_IPSR_DATA(IP9_29_28, ARM_TRACEDATA_9),
  1195. PINMUX_IPSR_DATA(IP10_2_0, VI0_R0),
  1196. PINMUX_IPSR_MSEL(IP10_2_0, SSI_SDATA7_C, SEL_SSI7_2),
  1197. PINMUX_IPSR_MSEL(IP10_2_0, SCK1_C, SEL_SCIF1_2),
  1198. PINMUX_IPSR_MSEL(IP10_2_0, DREQ1_B, SEL_EXBUS1_0),
  1199. PINMUX_IPSR_DATA(IP10_2_0, ARM_TRACEDATA_10),
  1200. PINMUX_IPSR_MSEL(IP10_2_0, DREQ0_C, SEL_EXBUS0_2),
  1201. PINMUX_IPSR_DATA(IP10_5_3, VI0_R1),
  1202. PINMUX_IPSR_MSEL(IP10_5_3, SSI_SDATA8_C, SEL_SSI8_2),
  1203. PINMUX_IPSR_DATA(IP10_5_3, DACK1_B),
  1204. PINMUX_IPSR_DATA(IP10_5_3, ARM_TRACEDATA_11),
  1205. PINMUX_IPSR_DATA(IP10_5_3, DACK0_C),
  1206. PINMUX_IPSR_DATA(IP10_5_3, DRACK0_C),
  1207. PINMUX_IPSR_DATA(IP10_8_6, VI0_R2),
  1208. PINMUX_IPSR_DATA(IP10_8_6, ETH_LINK),
  1209. PINMUX_IPSR_DATA(IP10_8_6, SD2_CLK_B),
  1210. PINMUX_IPSR_MSEL(IP10_8_6, IRQ2, SEL_INT2_0),
  1211. PINMUX_IPSR_DATA(IP10_8_6, ARM_TRACEDATA_12),
  1212. PINMUX_IPSR_DATA(IP10_11_9, VI0_R3),
  1213. PINMUX_IPSR_DATA(IP10_11_9, ETH_MAGIC),
  1214. PINMUX_IPSR_MSEL(IP10_11_9, SD2_CMD_B, SEL_SD2_1),
  1215. PINMUX_IPSR_MSEL(IP10_11_9, IRQ3, SEL_INT3_0),
  1216. PINMUX_IPSR_DATA(IP10_11_9, ARM_TRACEDATA_13),
  1217. PINMUX_IPSR_DATA(IP10_14_12, VI0_R4),
  1218. PINMUX_IPSR_DATA(IP10_14_12, ETH_REFCLK),
  1219. PINMUX_IPSR_MSEL(IP10_14_12, SD2_CD_B, SEL_SD2_1),
  1220. PINMUX_IPSR_MSEL(IP10_14_12, HSPI_CLK1_B, SEL_HSPI1_1),
  1221. PINMUX_IPSR_DATA(IP10_14_12, ARM_TRACEDATA_14),
  1222. PINMUX_IPSR_DATA(IP10_14_12, MT1_CLK),
  1223. PINMUX_IPSR_DATA(IP10_14_12, TS_SCK0),
  1224. PINMUX_IPSR_DATA(IP10_17_15, VI0_R5),
  1225. PINMUX_IPSR_DATA(IP10_17_15, ETH_TXD0),
  1226. PINMUX_IPSR_MSEL(IP10_17_15, SD2_WP_B, SEL_SD2_1),
  1227. PINMUX_IPSR_MSEL(IP10_17_15, HSPI_CS1_B, SEL_HSPI1_1),
  1228. PINMUX_IPSR_DATA(IP10_17_15, ARM_TRACEDATA_15),
  1229. PINMUX_IPSR_DATA(IP10_17_15, MT1_D),
  1230. PINMUX_IPSR_DATA(IP10_17_15, TS_SDEN0),
  1231. PINMUX_IPSR_DATA(IP10_20_18, VI0_R6),
  1232. PINMUX_IPSR_DATA(IP10_20_18, ETH_MDC),
  1233. PINMUX_IPSR_MSEL(IP10_20_18, DREQ2_C, SEL_EXBUS2_2),
  1234. PINMUX_IPSR_DATA(IP10_20_18, HSPI_TX1_B),
  1235. PINMUX_IPSR_DATA(IP10_20_18, TRACECLK),
  1236. PINMUX_IPSR_DATA(IP10_20_18, MT1_BEN),
  1237. PINMUX_IPSR_MSEL(IP10_20_18, PWMFSW0_D, SEL_PWMFSW_3),
  1238. PINMUX_IPSR_DATA(IP10_23_21, VI0_R7),
  1239. PINMUX_IPSR_DATA(IP10_23_21, ETH_MDIO),
  1240. PINMUX_IPSR_DATA(IP10_23_21, DACK2_C),
  1241. PINMUX_IPSR_MSEL(IP10_23_21, HSPI_RX1_B, SEL_HSPI1_1),
  1242. PINMUX_IPSR_MSEL(IP10_23_21, SCIF_CLK_D, SEL_SCIF_3),
  1243. PINMUX_IPSR_DATA(IP10_23_21, TRACECTL),
  1244. PINMUX_IPSR_DATA(IP10_23_21, MT1_PEN),
  1245. PINMUX_IPSR_DATA(IP10_25_24, VI1_CLK),
  1246. PINMUX_IPSR_MSEL(IP10_25_24, SIM_D, SEL_SIM_0),
  1247. PINMUX_IPSR_MSEL(IP10_25_24, SDA3, SEL_I2C3_0),
  1248. PINMUX_IPSR_DATA(IP10_28_26, VI1_HSYNC),
  1249. PINMUX_IPSR_DATA(IP10_28_26, VI3_CLK),
  1250. PINMUX_IPSR_DATA(IP10_28_26, SSI_SCK4),
  1251. PINMUX_IPSR_MSEL(IP10_28_26, GPS_SIGN_C, SEL_GPS_2),
  1252. PINMUX_IPSR_MSEL(IP10_28_26, PWMFSW0_E, SEL_PWMFSW_4),
  1253. PINMUX_IPSR_DATA(IP10_31_29, VI1_VSYNC),
  1254. PINMUX_IPSR_DATA(IP10_31_29, AUDIO_CLKOUT_C),
  1255. PINMUX_IPSR_DATA(IP10_31_29, SSI_WS4),
  1256. PINMUX_IPSR_DATA(IP10_31_29, SIM_CLK),
  1257. PINMUX_IPSR_MSEL(IP10_31_29, GPS_MAG_C, SEL_GPS_2),
  1258. PINMUX_IPSR_DATA(IP10_31_29, SPV_TRST),
  1259. PINMUX_IPSR_MSEL(IP10_31_29, SCL3, SEL_I2C3_0),
  1260. PINMUX_IPSR_DATA(IP11_2_0, VI1_DATA0_VI1_B0),
  1261. PINMUX_IPSR_MSEL(IP11_2_0, SD2_DAT0, SEL_SD2_0),
  1262. PINMUX_IPSR_DATA(IP11_2_0, SIM_RST),
  1263. PINMUX_IPSR_DATA(IP11_2_0, SPV_TCK),
  1264. PINMUX_IPSR_DATA(IP11_2_0, ADICLK_B),
  1265. PINMUX_IPSR_DATA(IP11_5_3, VI1_DATA1_VI1_B1),
  1266. PINMUX_IPSR_MSEL(IP11_5_3, SD2_DAT1, SEL_SD2_0),
  1267. PINMUX_IPSR_DATA(IP11_5_3, MT0_CLK),
  1268. PINMUX_IPSR_DATA(IP11_5_3, SPV_TMS),
  1269. PINMUX_IPSR_MSEL(IP11_5_3, ADICS_B_SAMP_B, SEL_ADI_1),
  1270. PINMUX_IPSR_DATA(IP11_8_6, VI1_DATA2_VI1_B2),
  1271. PINMUX_IPSR_MSEL(IP11_8_6, SD2_DAT2, SEL_SD2_0),
  1272. PINMUX_IPSR_DATA(IP11_8_6, MT0_D),
  1273. PINMUX_IPSR_DATA(IP11_8_6, SPVTDI),
  1274. PINMUX_IPSR_MSEL(IP11_8_6, ADIDATA_B, SEL_ADI_1),
  1275. PINMUX_IPSR_DATA(IP11_11_9, VI1_DATA3_VI1_B3),
  1276. PINMUX_IPSR_MSEL(IP11_11_9, SD2_DAT3, SEL_SD2_0),
  1277. PINMUX_IPSR_DATA(IP11_11_9, MT0_BEN),
  1278. PINMUX_IPSR_DATA(IP11_11_9, SPV_TDO),
  1279. PINMUX_IPSR_DATA(IP11_11_9, ADICHS0_B),
  1280. PINMUX_IPSR_DATA(IP11_14_12, VI1_DATA4_VI1_B4),
  1281. PINMUX_IPSR_DATA(IP11_14_12, SD2_CLK),
  1282. PINMUX_IPSR_DATA(IP11_14_12, MT0_PEN),
  1283. PINMUX_IPSR_DATA(IP11_14_12, SPA_TRST),
  1284. PINMUX_IPSR_MSEL(IP11_14_12, HSPI_CLK1_D, SEL_HSPI1_3),
  1285. PINMUX_IPSR_DATA(IP11_14_12, ADICHS1_B),
  1286. PINMUX_IPSR_DATA(IP11_17_15, VI1_DATA5_VI1_B5),
  1287. PINMUX_IPSR_MSEL(IP11_17_15, SD2_CMD, SEL_SD2_0),
  1288. PINMUX_IPSR_DATA(IP11_17_15, MT0_SYNC),
  1289. PINMUX_IPSR_DATA(IP11_17_15, SPA_TCK),
  1290. PINMUX_IPSR_MSEL(IP11_17_15, HSPI_CS1_D, SEL_HSPI1_3),
  1291. PINMUX_IPSR_DATA(IP11_17_15, ADICHS2_B),
  1292. PINMUX_IPSR_DATA(IP11_20_18, VI1_DATA6_VI1_B6),
  1293. PINMUX_IPSR_MSEL(IP11_20_18, SD2_CD, SEL_SD2_0),
  1294. PINMUX_IPSR_DATA(IP11_20_18, MT0_VCXO),
  1295. PINMUX_IPSR_DATA(IP11_20_18, SPA_TMS),
  1296. PINMUX_IPSR_DATA(IP11_20_18, HSPI_TX1_D),
  1297. PINMUX_IPSR_DATA(IP11_23_21, VI1_DATA7_VI1_B7),
  1298. PINMUX_IPSR_MSEL(IP11_23_21, SD2_WP, SEL_SD2_0),
  1299. PINMUX_IPSR_DATA(IP11_23_21, MT0_PWM),
  1300. PINMUX_IPSR_DATA(IP11_23_21, SPA_TDI),
  1301. PINMUX_IPSR_MSEL(IP11_23_21, HSPI_RX1_D, SEL_HSPI1_3),
  1302. PINMUX_IPSR_DATA(IP11_26_24, VI1_G0),
  1303. PINMUX_IPSR_DATA(IP11_26_24, VI3_DATA0),
  1304. PINMUX_IPSR_DATA(IP11_26_24, TS_SCK1),
  1305. PINMUX_IPSR_MSEL(IP11_26_24, DREQ2_B, SEL_EXBUS2_1),
  1306. PINMUX_IPSR_DATA(IP11_26_24, TX2),
  1307. PINMUX_IPSR_DATA(IP11_26_24, SPA_TDO),
  1308. PINMUX_IPSR_MSEL(IP11_26_24, HCTS0_B, SEL_HSCIF0_1),
  1309. PINMUX_IPSR_DATA(IP11_29_27, VI1_G1),
  1310. PINMUX_IPSR_DATA(IP11_29_27, VI3_DATA1),
  1311. PINMUX_IPSR_DATA(IP11_29_27, SSI_SCK1),
  1312. PINMUX_IPSR_DATA(IP11_29_27, TS_SDEN1),
  1313. PINMUX_IPSR_DATA(IP11_29_27, DACK2_B),
  1314. PINMUX_IPSR_MSEL(IP11_29_27, RX2, SEL_SCIF2_0),
  1315. PINMUX_IPSR_MSEL(IP11_29_27, HRTS0_B, SEL_HSCIF0_1),
  1316. PINMUX_IPSR_DATA(IP12_2_0, VI1_G2),
  1317. PINMUX_IPSR_DATA(IP12_2_0, VI3_DATA2),
  1318. PINMUX_IPSR_DATA(IP12_2_0, SSI_WS1),
  1319. PINMUX_IPSR_DATA(IP12_2_0, TS_SPSYNC1),
  1320. PINMUX_IPSR_MSEL(IP12_2_0, SCK2, SEL_SCIF2_0),
  1321. PINMUX_IPSR_MSEL(IP12_2_0, HSCK0_B, SEL_HSCIF0_1),
  1322. PINMUX_IPSR_DATA(IP12_5_3, VI1_G3),
  1323. PINMUX_IPSR_DATA(IP12_5_3, VI3_DATA3),
  1324. PINMUX_IPSR_DATA(IP12_5_3, SSI_SCK2),
  1325. PINMUX_IPSR_DATA(IP12_5_3, TS_SDAT1),
  1326. PINMUX_IPSR_MSEL(IP12_5_3, SCL1_C, SEL_I2C1_2),
  1327. PINMUX_IPSR_DATA(IP12_5_3, HTX0_B),
  1328. PINMUX_IPSR_DATA(IP12_8_6, VI1_G4),
  1329. PINMUX_IPSR_DATA(IP12_8_6, VI3_DATA4),
  1330. PINMUX_IPSR_DATA(IP12_8_6, SSI_WS2),
  1331. PINMUX_IPSR_MSEL(IP12_8_6, SDA1_C, SEL_I2C1_2),
  1332. PINMUX_IPSR_DATA(IP12_8_6, SIM_RST_B),
  1333. PINMUX_IPSR_MSEL(IP12_8_6, HRX0_B, SEL_HSCIF0_1),
  1334. PINMUX_IPSR_DATA(IP12_11_9, VI1_G5),
  1335. PINMUX_IPSR_DATA(IP12_11_9, VI3_DATA5),
  1336. PINMUX_IPSR_MSEL(IP12_11_9, GPS_CLK, SEL_GPS_0),
  1337. PINMUX_IPSR_DATA(IP12_11_9, FSE),
  1338. PINMUX_IPSR_DATA(IP12_11_9, TX4_B),
  1339. PINMUX_IPSR_MSEL(IP12_11_9, SIM_D_B, SEL_SIM_1),
  1340. PINMUX_IPSR_DATA(IP12_14_12, VI1_G6),
  1341. PINMUX_IPSR_DATA(IP12_14_12, VI3_DATA6),
  1342. PINMUX_IPSR_MSEL(IP12_14_12, GPS_SIGN, SEL_GPS_0),
  1343. PINMUX_IPSR_DATA(IP12_14_12, FRB),
  1344. PINMUX_IPSR_MSEL(IP12_14_12, RX4_B, SEL_SCIF4_1),
  1345. PINMUX_IPSR_DATA(IP12_14_12, SIM_CLK_B),
  1346. PINMUX_IPSR_DATA(IP12_17_15, VI1_G7),
  1347. PINMUX_IPSR_DATA(IP12_17_15, VI3_DATA7),
  1348. PINMUX_IPSR_MSEL(IP12_17_15, GPS_MAG, SEL_GPS_0),
  1349. PINMUX_IPSR_DATA(IP12_17_15, FCE),
  1350. PINMUX_IPSR_MSEL(IP12_17_15, SCK4_B, SEL_SCIF4_1),
  1351. };
  1352. static const struct sh_pfc_pin pinmux_pins[] = {
  1353. PINMUX_GPIO_GP_ALL(),
  1354. };
  1355. /* - DU0 -------------------------------------------------------------------- */
  1356. static const unsigned int du0_rgb666_pins[] = {
  1357. /* R[7:2], G[7:2], B[7:2] */
  1358. RCAR_GP_PIN(5, 28), RCAR_GP_PIN(5, 27), RCAR_GP_PIN(5, 26),
  1359. RCAR_GP_PIN(5, 25), RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 23),
  1360. RCAR_GP_PIN(6, 2), RCAR_GP_PIN(6, 1), RCAR_GP_PIN(6, 0),
  1361. RCAR_GP_PIN(5, 31), RCAR_GP_PIN(5, 30), RCAR_GP_PIN(5, 29),
  1362. RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 7), RCAR_GP_PIN(6, 6),
  1363. RCAR_GP_PIN(6, 5), RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 3),
  1364. };
  1365. static const unsigned int du0_rgb666_mux[] = {
  1366. DU0_DR7_MARK, DU0_DR6_MARK, DU0_DR5_MARK, DU0_DR4_MARK,
  1367. DU0_DR3_MARK, DU0_DR2_MARK,
  1368. DU0_DG7_MARK, DU0_DG6_MARK, DU0_DG5_MARK, DU0_DG4_MARK,
  1369. DU0_DG3_MARK, DU0_DG2_MARK,
  1370. DU0_DB7_MARK, DU0_DB6_MARK, DU0_DB5_MARK, DU0_DB4_MARK,
  1371. DU0_DB3_MARK, DU0_DB2_MARK,
  1372. };
  1373. static const unsigned int du0_rgb888_pins[] = {
  1374. /* R[7:0], G[7:0], B[7:0] */
  1375. RCAR_GP_PIN(5, 28), RCAR_GP_PIN(5, 27), RCAR_GP_PIN(5, 26),
  1376. RCAR_GP_PIN(5, 25), RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 23),
  1377. RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 23), RCAR_GP_PIN(6, 2),
  1378. RCAR_GP_PIN(6, 1), RCAR_GP_PIN(6, 0), RCAR_GP_PIN(5, 31),
  1379. RCAR_GP_PIN(5, 30), RCAR_GP_PIN(5, 29), RCAR_GP_PIN(0, 26),
  1380. RCAR_GP_PIN(0, 25), RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 7),
  1381. RCAR_GP_PIN(6, 6), RCAR_GP_PIN(6, 5), RCAR_GP_PIN(6, 4),
  1382. RCAR_GP_PIN(6, 3), RCAR_GP_PIN(0, 28), RCAR_GP_PIN(0, 27),
  1383. };
  1384. static const unsigned int du0_rgb888_mux[] = {
  1385. DU0_DR7_MARK, DU0_DR6_MARK, DU0_DR5_MARK, DU0_DR4_MARK,
  1386. DU0_DR3_MARK, DU0_DR2_MARK, DU0_DR1_MARK, DU0_DR0_MARK,
  1387. DU0_DG7_MARK, DU0_DG6_MARK, DU0_DG5_MARK, DU0_DG4_MARK,
  1388. DU0_DG3_MARK, DU0_DG2_MARK, DU0_DG1_MARK, DU0_DG0_MARK,
  1389. DU0_DB7_MARK, DU0_DB6_MARK, DU0_DB5_MARK, DU0_DB4_MARK,
  1390. DU0_DB3_MARK, DU0_DB2_MARK, DU0_DB1_MARK, DU0_DB0_MARK,
  1391. };
  1392. static const unsigned int du0_clk_in_pins[] = {
  1393. /* CLKIN */
  1394. RCAR_GP_PIN(0, 29),
  1395. };
  1396. static const unsigned int du0_clk_in_mux[] = {
  1397. DU0_DOTCLKIN_MARK,
  1398. };
  1399. static const unsigned int du0_clk_out_0_pins[] = {
  1400. /* CLKOUT */
  1401. RCAR_GP_PIN(5, 20),
  1402. };
  1403. static const unsigned int du0_clk_out_0_mux[] = {
  1404. DU0_DOTCLKOUT0_MARK,
  1405. };
  1406. static const unsigned int du0_clk_out_1_pins[] = {
  1407. /* CLKOUT */
  1408. RCAR_GP_PIN(0, 30),
  1409. };
  1410. static const unsigned int du0_clk_out_1_mux[] = {
  1411. DU0_DOTCLKOUT1_MARK,
  1412. };
  1413. static const unsigned int du0_sync_0_pins[] = {
  1414. /* VSYNC, HSYNC, DISP */
  1415. RCAR_GP_PIN(5, 22), RCAR_GP_PIN(5, 21), RCAR_GP_PIN(0, 31),
  1416. };
  1417. static const unsigned int du0_sync_0_mux[] = {
  1418. DU0_EXHSYNC_DU0_HSYNC_MARK, DU0_EXVSYNC_DU0_VSYNC_MARK,
  1419. DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK
  1420. };
  1421. static const unsigned int du0_sync_1_pins[] = {
  1422. /* VSYNC, HSYNC, DISP */
  1423. RCAR_GP_PIN(5, 22), RCAR_GP_PIN(5, 21), RCAR_GP_PIN(1, 0),
  1424. };
  1425. static const unsigned int du0_sync_1_mux[] = {
  1426. DU0_EXHSYNC_DU0_HSYNC_MARK, DU0_EXVSYNC_DU0_VSYNC_MARK,
  1427. DU0_DISP_MARK
  1428. };
  1429. static const unsigned int du0_oddf_pins[] = {
  1430. /* ODDF */
  1431. RCAR_GP_PIN(0, 31),
  1432. };
  1433. static const unsigned int du0_oddf_mux[] = {
  1434. DU0_EXODDF_DU0_ODDF_DISP_CDE_MARK
  1435. };
  1436. static const unsigned int du0_cde_pins[] = {
  1437. /* CDE */
  1438. RCAR_GP_PIN(1, 1),
  1439. };
  1440. static const unsigned int du0_cde_mux[] = {
  1441. DU0_CDE_MARK
  1442. };
  1443. /* - DU1 -------------------------------------------------------------------- */
  1444. static const unsigned int du1_rgb666_pins[] = {
  1445. /* R[7:2], G[7:2], B[7:2] */
  1446. RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 7),
  1447. RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 4),
  1448. RCAR_GP_PIN(1, 17), RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 15),
  1449. RCAR_GP_PIN(1, 14), RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 12),
  1450. RCAR_GP_PIN(1, 25), RCAR_GP_PIN(1, 24), RCAR_GP_PIN(1, 23),
  1451. RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 21), RCAR_GP_PIN(1, 20),
  1452. };
  1453. static const unsigned int du1_rgb666_mux[] = {
  1454. DU1_DR7_MARK, DU1_DR6_MARK, DU1_DR5_MARK, DU1_DR4_MARK,
  1455. DU1_DR3_MARK, DU1_DR2_MARK,
  1456. DU1_DG7_MARK, DU1_DG6_MARK, DU1_DG5_MARK, DU1_DG4_MARK,
  1457. DU1_DG3_MARK, DU1_DG2_MARK,
  1458. DU1_DB7_MARK, DU1_DB6_MARK, DU1_DB5_MARK, DU1_DB4_MARK,
  1459. DU1_DB3_MARK, DU1_DB2_MARK,
  1460. };
  1461. static const unsigned int du1_rgb888_pins[] = {
  1462. /* R[7:0], G[7:0], B[7:0] */
  1463. RCAR_GP_PIN(1, 9), RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 7),
  1464. RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 5), RCAR_GP_PIN(1, 4),
  1465. RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 17),
  1466. RCAR_GP_PIN(1, 16), RCAR_GP_PIN(1, 15), RCAR_GP_PIN(1, 14),
  1467. RCAR_GP_PIN(1, 13), RCAR_GP_PIN(1, 12), RCAR_GP_PIN(1, 11),
  1468. RCAR_GP_PIN(1, 0), RCAR_GP_PIN(1, 25), RCAR_GP_PIN(1, 24),
  1469. RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 21),
  1470. RCAR_GP_PIN(1, 20), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
  1471. };
  1472. static const unsigned int du1_rgb888_mux[] = {
  1473. DU1_DR7_MARK, DU1_DR6_MARK, DU1_DR5_MARK, DU1_DR4_MARK,
  1474. DU1_DR3_MARK, DU1_DR2_MARK, DU1_DR1_MARK, DU1_DR0_MARK,
  1475. DU1_DG7_MARK, DU1_DG6_MARK, DU1_DG5_MARK, DU1_DG4_MARK,
  1476. DU1_DG3_MARK, DU1_DG2_MARK, DU1_DG1_MARK, DU1_DG0_MARK,
  1477. DU1_DB7_MARK, DU1_DB6_MARK, DU1_DB5_MARK, DU1_DB4_MARK,
  1478. DU1_DB3_MARK, DU1_DB2_MARK, DU1_DB1_MARK, DU1_DB0_MARK,
  1479. };
  1480. static const unsigned int du1_clk_in_pins[] = {
  1481. /* CLKIN */
  1482. RCAR_GP_PIN(1, 26),
  1483. };
  1484. static const unsigned int du1_clk_in_mux[] = {
  1485. DU1_DOTCLKIN_MARK,
  1486. };
  1487. static const unsigned int du1_clk_out_pins[] = {
  1488. /* CLKOUT */
  1489. RCAR_GP_PIN(1, 27),
  1490. };
  1491. static const unsigned int du1_clk_out_mux[] = {
  1492. DU1_DOTCLKOUT_MARK,
  1493. };
  1494. static const unsigned int du1_sync_0_pins[] = {
  1495. /* VSYNC, HSYNC, DISP */
  1496. RCAR_GP_PIN(1, 29), RCAR_GP_PIN(1, 28), RCAR_GP_PIN(1, 30),
  1497. };
  1498. static const unsigned int du1_sync_0_mux[] = {
  1499. DU1_EXVSYNC_DU1_VSYNC_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK,
  1500. DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK
  1501. };
  1502. static const unsigned int du1_sync_1_pins[] = {
  1503. /* VSYNC, HSYNC, DISP */
  1504. RCAR_GP_PIN(1, 29), RCAR_GP_PIN(1, 28), RCAR_GP_PIN(1, 31),
  1505. };
  1506. static const unsigned int du1_sync_1_mux[] = {
  1507. DU1_EXVSYNC_DU1_VSYNC_MARK, DU1_EXHSYNC_DU1_HSYNC_MARK,
  1508. DU1_DISP_MARK
  1509. };
  1510. static const unsigned int du1_oddf_pins[] = {
  1511. /* ODDF */
  1512. RCAR_GP_PIN(1, 30),
  1513. };
  1514. static const unsigned int du1_oddf_mux[] = {
  1515. DU1_EXODDF_DU1_ODDF_DISP_CDE_MARK
  1516. };
  1517. static const unsigned int du1_cde_pins[] = {
  1518. /* CDE */
  1519. RCAR_GP_PIN(2, 0),
  1520. };
  1521. static const unsigned int du1_cde_mux[] = {
  1522. DU1_CDE_MARK
  1523. };
  1524. /* - Ether ------------------------------------------------------------------ */
  1525. static const unsigned int ether_rmii_pins[] = {
  1526. /*
  1527. * ETH_TXD0, ETH_TXD1, ETH_TX_EN, ETH_REFCLK,
  1528. * ETH_RXD0, ETH_RXD1, ETH_CRS_DV, ETH_RX_ER,
  1529. * ETH_MDIO, ETH_MDC
  1530. */
  1531. RCAR_GP_PIN(2, 27), RCAR_GP_PIN(2, 16), RCAR_GP_PIN(2, 18),
  1532. RCAR_GP_PIN(2, 26),
  1533. RCAR_GP_PIN(2, 20), RCAR_GP_PIN(2, 21), RCAR_GP_PIN(2, 17),
  1534. RCAR_GP_PIN(2, 19),
  1535. RCAR_GP_PIN(2, 29), RCAR_GP_PIN(2, 28),
  1536. };
  1537. static const unsigned int ether_rmii_mux[] = {
  1538. ETH_TXD0_MARK, ETH_TXD1_MARK, ETH_TX_EN_MARK, ETH_REFCLK_MARK,
  1539. ETH_RXD0_MARK, ETH_RXD1_MARK, ETH_CRS_DV_MARK, ETH_RX_ER_MARK,
  1540. ETH_MDIO_MARK, ETH_MDC_MARK,
  1541. };
  1542. static const unsigned int ether_link_pins[] = {
  1543. /* ETH_LINK */
  1544. RCAR_GP_PIN(2, 24),
  1545. };
  1546. static const unsigned int ether_link_mux[] = {
  1547. ETH_LINK_MARK,
  1548. };
  1549. static const unsigned int ether_magic_pins[] = {
  1550. /* ETH_MAGIC */
  1551. RCAR_GP_PIN(2, 25),
  1552. };
  1553. static const unsigned int ether_magic_mux[] = {
  1554. ETH_MAGIC_MARK,
  1555. };
  1556. /* - HSPI0 ------------------------------------------------------------------ */
  1557. static const unsigned int hspi0_pins[] = {
  1558. /* CLK, CS, RX, TX */
  1559. RCAR_GP_PIN(4, 22), RCAR_GP_PIN(4, 23), RCAR_GP_PIN(4, 25),
  1560. RCAR_GP_PIN(4, 24),
  1561. };
  1562. static const unsigned int hspi0_mux[] = {
  1563. HSPI_CLK0_MARK, HSPI_CS0_MARK, HSPI_RX0_MARK, HSPI_TX0_MARK,
  1564. };
  1565. /* - HSPI1 ------------------------------------------------------------------ */
  1566. static const unsigned int hspi1_pins[] = {
  1567. /* CLK, CS, RX, TX */
  1568. RCAR_GP_PIN(1, 31), RCAR_GP_PIN(1, 26), RCAR_GP_PIN(2, 0),
  1569. RCAR_GP_PIN(1, 30),
  1570. };
  1571. static const unsigned int hspi1_mux[] = {
  1572. HSPI_CLK1_MARK, HSPI_CS1_MARK, HSPI_RX1_MARK, HSPI_TX1_MARK,
  1573. };
  1574. static const unsigned int hspi1_b_pins[] = {
  1575. /* CLK, CS, RX, TX */
  1576. RCAR_GP_PIN(2, 26), RCAR_GP_PIN(2, 27), RCAR_GP_PIN(2, 29),
  1577. RCAR_GP_PIN(2, 28),
  1578. };
  1579. static const unsigned int hspi1_b_mux[] = {
  1580. HSPI_CLK1_B_MARK, HSPI_CS1_B_MARK, HSPI_RX1_B_MARK, HSPI_TX1_B_MARK,
  1581. };
  1582. static const unsigned int hspi1_c_pins[] = {
  1583. /* CLK, CS, RX, TX */
  1584. RCAR_GP_PIN(4, 13), RCAR_GP_PIN(4, 14), RCAR_GP_PIN(4, 16),
  1585. RCAR_GP_PIN(4, 15),
  1586. };
  1587. static const unsigned int hspi1_c_mux[] = {
  1588. HSPI_CLK1_C_MARK, HSPI_CS1_C_MARK, HSPI_RX1_C_MARK, HSPI_TX1_C_MARK,
  1589. };
  1590. static const unsigned int hspi1_d_pins[] = {
  1591. /* CLK, CS, RX, TX */
  1592. RCAR_GP_PIN(3, 5), RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 8),
  1593. RCAR_GP_PIN(3, 7),
  1594. };
  1595. static const unsigned int hspi1_d_mux[] = {
  1596. HSPI_CLK1_D_MARK, HSPI_CS1_D_MARK, HSPI_RX1_D_MARK, HSPI_TX1_D_MARK,
  1597. };
  1598. /* - HSPI2 ------------------------------------------------------------------ */
  1599. static const unsigned int hspi2_pins[] = {
  1600. /* CLK, CS, RX, TX */
  1601. RCAR_GP_PIN(0, 9), RCAR_GP_PIN(0, 10), RCAR_GP_PIN(0, 11),
  1602. RCAR_GP_PIN(0, 14),
  1603. };
  1604. static const unsigned int hspi2_mux[] = {
  1605. HSPI_CLK2_MARK, HSPI_CS2_MARK, HSPI_RX2_MARK, HSPI_TX2_MARK,
  1606. };
  1607. static const unsigned int hspi2_b_pins[] = {
  1608. /* CLK, CS, RX, TX */
  1609. RCAR_GP_PIN(0, 7), RCAR_GP_PIN(0, 13), RCAR_GP_PIN(0, 8),
  1610. RCAR_GP_PIN(0, 6),
  1611. };
  1612. static const unsigned int hspi2_b_mux[] = {
  1613. HSPI_CLK2_B_MARK, HSPI_CS2_B_MARK, HSPI_RX2_B_MARK, HSPI_TX2_B_MARK,
  1614. };
  1615. /* - I2C1 ------------------------------------------------------------------ */
  1616. static const unsigned int i2c1_pins[] = {
  1617. /* SCL, SDA, */
  1618. RCAR_GP_PIN(0, 27), RCAR_GP_PIN(0, 28),
  1619. };
  1620. static const unsigned int i2c1_mux[] = {
  1621. SCL1_MARK, SDA1_MARK,
  1622. };
  1623. static const unsigned int i2c1_b_pins[] = {
  1624. /* SCL, SDA, */
  1625. RCAR_GP_PIN(1, 10), RCAR_GP_PIN(1, 11),
  1626. };
  1627. static const unsigned int i2c1_b_mux[] = {
  1628. SCL1_B_MARK, SDA1_B_MARK,
  1629. };
  1630. static const unsigned int i2c1_c_pins[] = {
  1631. /* SCL, SDA, */
  1632. RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13),
  1633. };
  1634. static const unsigned int i2c1_c_mux[] = {
  1635. SCL1_C_MARK, SDA1_C_MARK,
  1636. };
  1637. static const unsigned int i2c1_d_pins[] = {
  1638. /* SCL, SDA, */
  1639. RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 27),
  1640. };
  1641. static const unsigned int i2c1_d_mux[] = {
  1642. SCL1_D_MARK, SDA1_D_MARK,
  1643. };
  1644. /* - I2C2 ------------------------------------------------------------------ */
  1645. static const unsigned int i2c2_pins[] = {
  1646. /* SCL, SDA, */
  1647. RCAR_GP_PIN(0, 25), RCAR_GP_PIN(0, 26),
  1648. };
  1649. static const unsigned int i2c2_mux[] = {
  1650. SCL2_MARK, SDA2_MARK,
  1651. };
  1652. static const unsigned int i2c2_b_pins[] = {
  1653. /* SCL, SDA, */
  1654. RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19),
  1655. };
  1656. static const unsigned int i2c2_b_mux[] = {
  1657. SCL2_B_MARK, SDA2_B_MARK,
  1658. };
  1659. static const unsigned int i2c2_c_pins[] = {
  1660. /* SCL, SDA */
  1661. RCAR_GP_PIN(0, 31), RCAR_GP_PIN(0, 30),
  1662. };
  1663. static const unsigned int i2c2_c_mux[] = {
  1664. SCL2_C_MARK, SDA2_C_MARK,
  1665. };
  1666. static const unsigned int i2c2_d_pins[] = {
  1667. /* SCL, SDA */
  1668. RCAR_GP_PIN(1, 24), RCAR_GP_PIN(1, 25),
  1669. };
  1670. static const unsigned int i2c2_d_mux[] = {
  1671. SCL2_D_MARK, SDA2_D_MARK,
  1672. };
  1673. /* - I2C3 ------------------------------------------------------------------ */
  1674. static const unsigned int i2c3_pins[] = {
  1675. /* SCL, SDA, */
  1676. RCAR_GP_PIN(3, 0), RCAR_GP_PIN(2, 30),
  1677. };
  1678. static const unsigned int i2c3_mux[] = {
  1679. SCL3_MARK, SDA3_MARK,
  1680. };
  1681. static const unsigned int i2c3_b_pins[] = {
  1682. /* SCL, SDA, */
  1683. RCAR_GP_PIN(0, 29), RCAR_GP_PIN(0, 30),
  1684. };
  1685. static const unsigned int i2c3_b_mux[] = {
  1686. SCL3_B_MARK, SDA3_B_MARK,
  1687. };
  1688. /* - INTC ------------------------------------------------------------------- */
  1689. static const unsigned int intc_irq0_pins[] = {
  1690. /* IRQ */
  1691. RCAR_GP_PIN(2, 14),
  1692. };
  1693. static const unsigned int intc_irq0_mux[] = {
  1694. IRQ0_MARK,
  1695. };
  1696. static const unsigned int intc_irq0_b_pins[] = {
  1697. /* IRQ */
  1698. RCAR_GP_PIN(4, 13),
  1699. };
  1700. static const unsigned int intc_irq0_b_mux[] = {
  1701. IRQ0_B_MARK,
  1702. };
  1703. static const unsigned int intc_irq1_pins[] = {
  1704. /* IRQ */
  1705. RCAR_GP_PIN(2, 15),
  1706. };
  1707. static const unsigned int intc_irq1_mux[] = {
  1708. IRQ1_MARK,
  1709. };
  1710. static const unsigned int intc_irq1_b_pins[] = {
  1711. /* IRQ */
  1712. RCAR_GP_PIN(4, 14),
  1713. };
  1714. static const unsigned int intc_irq1_b_mux[] = {
  1715. IRQ1_B_MARK,
  1716. };
  1717. static const unsigned int intc_irq2_pins[] = {
  1718. /* IRQ */
  1719. RCAR_GP_PIN(2, 24),
  1720. };
  1721. static const unsigned int intc_irq2_mux[] = {
  1722. IRQ2_MARK,
  1723. };
  1724. static const unsigned int intc_irq2_b_pins[] = {
  1725. /* IRQ */
  1726. RCAR_GP_PIN(4, 15),
  1727. };
  1728. static const unsigned int intc_irq2_b_mux[] = {
  1729. IRQ2_B_MARK,
  1730. };
  1731. static const unsigned int intc_irq3_pins[] = {
  1732. /* IRQ */
  1733. RCAR_GP_PIN(2, 25),
  1734. };
  1735. static const unsigned int intc_irq3_mux[] = {
  1736. IRQ3_MARK,
  1737. };
  1738. static const unsigned int intc_irq3_b_pins[] = {
  1739. /* IRQ */
  1740. RCAR_GP_PIN(4, 16),
  1741. };
  1742. static const unsigned int intc_irq3_b_mux[] = {
  1743. IRQ3_B_MARK,
  1744. };
  1745. /* - LSBC ------------------------------------------------------------------- */
  1746. static const unsigned int lbsc_cs0_pins[] = {
  1747. /* CS */
  1748. RCAR_GP_PIN(0, 13),
  1749. };
  1750. static const unsigned int lbsc_cs0_mux[] = {
  1751. CS0_MARK,
  1752. };
  1753. static const unsigned int lbsc_cs1_pins[] = {
  1754. /* CS */
  1755. RCAR_GP_PIN(0, 14),
  1756. };
  1757. static const unsigned int lbsc_cs1_mux[] = {
  1758. CS1_A26_MARK,
  1759. };
  1760. static const unsigned int lbsc_ex_cs0_pins[] = {
  1761. /* CS */
  1762. RCAR_GP_PIN(0, 15),
  1763. };
  1764. static const unsigned int lbsc_ex_cs0_mux[] = {
  1765. EX_CS0_MARK,
  1766. };
  1767. static const unsigned int lbsc_ex_cs1_pins[] = {
  1768. /* CS */
  1769. RCAR_GP_PIN(0, 16),
  1770. };
  1771. static const unsigned int lbsc_ex_cs1_mux[] = {
  1772. EX_CS1_MARK,
  1773. };
  1774. static const unsigned int lbsc_ex_cs2_pins[] = {
  1775. /* CS */
  1776. RCAR_GP_PIN(0, 17),
  1777. };
  1778. static const unsigned int lbsc_ex_cs2_mux[] = {
  1779. EX_CS2_MARK,
  1780. };
  1781. static const unsigned int lbsc_ex_cs3_pins[] = {
  1782. /* CS */
  1783. RCAR_GP_PIN(0, 18),
  1784. };
  1785. static const unsigned int lbsc_ex_cs3_mux[] = {
  1786. EX_CS3_MARK,
  1787. };
  1788. static const unsigned int lbsc_ex_cs4_pins[] = {
  1789. /* CS */
  1790. RCAR_GP_PIN(0, 19),
  1791. };
  1792. static const unsigned int lbsc_ex_cs4_mux[] = {
  1793. EX_CS4_MARK,
  1794. };
  1795. static const unsigned int lbsc_ex_cs5_pins[] = {
  1796. /* CS */
  1797. RCAR_GP_PIN(0, 20),
  1798. };
  1799. static const unsigned int lbsc_ex_cs5_mux[] = {
  1800. EX_CS5_MARK,
  1801. };
  1802. /* - MMCIF ------------------------------------------------------------------ */
  1803. static const unsigned int mmc0_data1_pins[] = {
  1804. /* D[0] */
  1805. RCAR_GP_PIN(0, 19),
  1806. };
  1807. static const unsigned int mmc0_data1_mux[] = {
  1808. MMC0_D0_MARK,
  1809. };
  1810. static const unsigned int mmc0_data4_pins[] = {
  1811. /* D[0:3] */
  1812. RCAR_GP_PIN(0, 19), RCAR_GP_PIN(0, 20), RCAR_GP_PIN(0, 21),
  1813. RCAR_GP_PIN(0, 2),
  1814. };
  1815. static const unsigned int mmc0_data4_mux[] = {
  1816. MMC0_D0_MARK, MMC0_D1_MARK, MMC0_D2_MARK, MMC0_D3_MARK,
  1817. };
  1818. static const unsigned int mmc0_data8_pins[] = {
  1819. /* D[0:7] */
  1820. RCAR_GP_PIN(0, 19), RCAR_GP_PIN(0, 20), RCAR_GP_PIN(0, 21),
  1821. RCAR_GP_PIN(0, 2), RCAR_GP_PIN(0, 10), RCAR_GP_PIN(0, 11),
  1822. RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 16),
  1823. };
  1824. static const unsigned int mmc0_data8_mux[] = {
  1825. MMC0_D0_MARK, MMC0_D1_MARK, MMC0_D2_MARK, MMC0_D3_MARK,
  1826. MMC0_D4_MARK, MMC0_D5_MARK, MMC0_D6_MARK, MMC0_D7_MARK,
  1827. };
  1828. static const unsigned int mmc0_ctrl_pins[] = {
  1829. /* CMD, CLK */
  1830. RCAR_GP_PIN(0, 18), RCAR_GP_PIN(0, 17),
  1831. };
  1832. static const unsigned int mmc0_ctrl_mux[] = {
  1833. MMC0_CMD_MARK, MMC0_CLK_MARK,
  1834. };
  1835. static const unsigned int mmc1_data1_pins[] = {
  1836. /* D[0] */
  1837. RCAR_GP_PIN(2, 8),
  1838. };
  1839. static const unsigned int mmc1_data1_mux[] = {
  1840. MMC1_D0_MARK,
  1841. };
  1842. static const unsigned int mmc1_data4_pins[] = {
  1843. /* D[0:3] */
  1844. RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9), RCAR_GP_PIN(2, 10),
  1845. RCAR_GP_PIN(2, 11),
  1846. };
  1847. static const unsigned int mmc1_data4_mux[] = {
  1848. MMC1_D0_MARK, MMC1_D1_MARK, MMC1_D2_MARK, MMC1_D3_MARK,
  1849. };
  1850. static const unsigned int mmc1_data8_pins[] = {
  1851. /* D[0:7] */
  1852. RCAR_GP_PIN(2, 8), RCAR_GP_PIN(2, 9), RCAR_GP_PIN(2, 10),
  1853. RCAR_GP_PIN(2, 11), RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
  1854. RCAR_GP_PIN(2, 16), RCAR_GP_PIN(2, 17),
  1855. };
  1856. static const unsigned int mmc1_data8_mux[] = {
  1857. MMC1_D0_MARK, MMC1_D1_MARK, MMC1_D2_MARK, MMC1_D3_MARK,
  1858. MMC1_D4_MARK, MMC1_D5_MARK, MMC1_D6_MARK, MMC1_D7_MARK,
  1859. };
  1860. static const unsigned int mmc1_ctrl_pins[] = {
  1861. /* CMD, CLK */
  1862. RCAR_GP_PIN(2, 4), RCAR_GP_PIN(2, 1),
  1863. };
  1864. static const unsigned int mmc1_ctrl_mux[] = {
  1865. MMC1_CMD_MARK, MMC1_CLK_MARK,
  1866. };
  1867. /* - SCIF0 ------------------------------------------------------------------ */
  1868. static const unsigned int scif0_data_pins[] = {
  1869. /* RXD, TXD */
  1870. RCAR_GP_PIN(4, 25), RCAR_GP_PIN(4, 24),
  1871. };
  1872. static const unsigned int scif0_data_mux[] = {
  1873. RX0_MARK, TX0_MARK,
  1874. };
  1875. static const unsigned int scif0_clk_pins[] = {
  1876. /* SCK */
  1877. RCAR_GP_PIN(4, 28),
  1878. };
  1879. static const unsigned int scif0_clk_mux[] = {
  1880. SCK0_MARK,
  1881. };
  1882. static const unsigned int scif0_ctrl_pins[] = {
  1883. /* RTS, CTS */
  1884. RCAR_GP_PIN(4, 23), RCAR_GP_PIN(4, 22),
  1885. };
  1886. static const unsigned int scif0_ctrl_mux[] = {
  1887. RTS0_TANS_MARK, CTS0_MARK,
  1888. };
  1889. static const unsigned int scif0_data_b_pins[] = {
  1890. /* RXD, TXD */
  1891. RCAR_GP_PIN(0, 20), RCAR_GP_PIN(0, 19),
  1892. };
  1893. static const unsigned int scif0_data_b_mux[] = {
  1894. RX0_B_MARK, TX0_B_MARK,
  1895. };
  1896. static const unsigned int scif0_clk_b_pins[] = {
  1897. /* SCK */
  1898. RCAR_GP_PIN(1, 1),
  1899. };
  1900. static const unsigned int scif0_clk_b_mux[] = {
  1901. SCK0_B_MARK,
  1902. };
  1903. static const unsigned int scif0_ctrl_b_pins[] = {
  1904. /* RTS, CTS */
  1905. RCAR_GP_PIN(0, 18), RCAR_GP_PIN(0, 11),
  1906. };
  1907. static const unsigned int scif0_ctrl_b_mux[] = {
  1908. RTS0_B_TANS_B_MARK, CTS0_B_MARK,
  1909. };
  1910. static const unsigned int scif0_data_c_pins[] = {
  1911. /* RXD, TXD */
  1912. RCAR_GP_PIN(4, 18), RCAR_GP_PIN(4, 19),
  1913. };
  1914. static const unsigned int scif0_data_c_mux[] = {
  1915. RX0_C_MARK, TX0_C_MARK,
  1916. };
  1917. static const unsigned int scif0_clk_c_pins[] = {
  1918. /* SCK */
  1919. RCAR_GP_PIN(4, 17),
  1920. };
  1921. static const unsigned int scif0_clk_c_mux[] = {
  1922. SCK0_C_MARK,
  1923. };
  1924. static const unsigned int scif0_ctrl_c_pins[] = {
  1925. /* RTS, CTS */
  1926. RCAR_GP_PIN(4, 21), RCAR_GP_PIN(4, 20),
  1927. };
  1928. static const unsigned int scif0_ctrl_c_mux[] = {
  1929. RTS0_C_TANS_C_MARK, CTS0_C_MARK,
  1930. };
  1931. static const unsigned int scif0_data_d_pins[] = {
  1932. /* RXD, TXD */
  1933. RCAR_GP_PIN(1, 11), RCAR_GP_PIN(1, 10),
  1934. };
  1935. static const unsigned int scif0_data_d_mux[] = {
  1936. RX0_D_MARK, TX0_D_MARK,
  1937. };
  1938. static const unsigned int scif0_clk_d_pins[] = {
  1939. /* SCK */
  1940. RCAR_GP_PIN(1, 18),
  1941. };
  1942. static const unsigned int scif0_clk_d_mux[] = {
  1943. SCK0_D_MARK,
  1944. };
  1945. static const unsigned int scif0_ctrl_d_pins[] = {
  1946. /* RTS, CTS */
  1947. RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 3),
  1948. };
  1949. static const unsigned int scif0_ctrl_d_mux[] = {
  1950. RTS0_D_TANS_D_MARK, CTS0_D_MARK,
  1951. };
  1952. /* - SCIF1 ------------------------------------------------------------------ */
  1953. static const unsigned int scif1_data_pins[] = {
  1954. /* RXD, TXD */
  1955. RCAR_GP_PIN(4, 21), RCAR_GP_PIN(4, 20),
  1956. };
  1957. static const unsigned int scif1_data_mux[] = {
  1958. RX1_MARK, TX1_MARK,
  1959. };
  1960. static const unsigned int scif1_clk_pins[] = {
  1961. /* SCK */
  1962. RCAR_GP_PIN(4, 17),
  1963. };
  1964. static const unsigned int scif1_clk_mux[] = {
  1965. SCK1_MARK,
  1966. };
  1967. static const unsigned int scif1_ctrl_pins[] = {
  1968. /* RTS, CTS */
  1969. RCAR_GP_PIN(4, 19), RCAR_GP_PIN(4, 18),
  1970. };
  1971. static const unsigned int scif1_ctrl_mux[] = {
  1972. RTS1_TANS_MARK, CTS1_MARK,
  1973. };
  1974. static const unsigned int scif1_data_b_pins[] = {
  1975. /* RXD, TXD */
  1976. RCAR_GP_PIN(3, 21), RCAR_GP_PIN(3, 18),
  1977. };
  1978. static const unsigned int scif1_data_b_mux[] = {
  1979. RX1_B_MARK, TX1_B_MARK,
  1980. };
  1981. static const unsigned int scif1_clk_b_pins[] = {
  1982. /* SCK */
  1983. RCAR_GP_PIN(3, 17),
  1984. };
  1985. static const unsigned int scif1_clk_b_mux[] = {
  1986. SCK1_B_MARK,
  1987. };
  1988. static const unsigned int scif1_ctrl_b_pins[] = {
  1989. /* RTS, CTS */
  1990. RCAR_GP_PIN(3, 19), RCAR_GP_PIN(3, 20),
  1991. };
  1992. static const unsigned int scif1_ctrl_b_mux[] = {
  1993. RTS1_B_TANS_B_MARK, CTS1_B_MARK,
  1994. };
  1995. static const unsigned int scif1_data_c_pins[] = {
  1996. /* RXD, TXD */
  1997. RCAR_GP_PIN(2, 3), RCAR_GP_PIN(2, 2),
  1998. };
  1999. static const unsigned int scif1_data_c_mux[] = {
  2000. RX1_C_MARK, TX1_C_MARK,
  2001. };
  2002. static const unsigned int scif1_clk_c_pins[] = {
  2003. /* SCK */
  2004. RCAR_GP_PIN(2, 22),
  2005. };
  2006. static const unsigned int scif1_clk_c_mux[] = {
  2007. SCK1_C_MARK,
  2008. };
  2009. static const unsigned int scif1_ctrl_c_pins[] = {
  2010. /* RTS, CTS */
  2011. RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 4),
  2012. };
  2013. static const unsigned int scif1_ctrl_c_mux[] = {
  2014. RTS1_C_TANS_C_MARK, CTS1_C_MARK,
  2015. };
  2016. /* - SCIF2 ------------------------------------------------------------------ */
  2017. static const unsigned int scif2_data_pins[] = {
  2018. /* RXD, TXD */
  2019. RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 9),
  2020. };
  2021. static const unsigned int scif2_data_mux[] = {
  2022. RX2_MARK, TX2_MARK,
  2023. };
  2024. static const unsigned int scif2_clk_pins[] = {
  2025. /* SCK */
  2026. RCAR_GP_PIN(3, 11),
  2027. };
  2028. static const unsigned int scif2_clk_mux[] = {
  2029. SCK2_MARK,
  2030. };
  2031. static const unsigned int scif2_data_b_pins[] = {
  2032. /* RXD, TXD */
  2033. RCAR_GP_PIN(3, 24), RCAR_GP_PIN(3, 23),
  2034. };
  2035. static const unsigned int scif2_data_b_mux[] = {
  2036. RX2_B_MARK, TX2_B_MARK,
  2037. };
  2038. static const unsigned int scif2_clk_b_pins[] = {
  2039. /* SCK */
  2040. RCAR_GP_PIN(3, 22),
  2041. };
  2042. static const unsigned int scif2_clk_b_mux[] = {
  2043. SCK2_B_MARK,
  2044. };
  2045. static const unsigned int scif2_data_c_pins[] = {
  2046. /* RXD, TXD */
  2047. RCAR_GP_PIN(1, 1), RCAR_GP_PIN(0, 31),
  2048. };
  2049. static const unsigned int scif2_data_c_mux[] = {
  2050. RX2_C_MARK, TX2_C_MARK,
  2051. };
  2052. static const unsigned int scif2_clk_c_pins[] = {
  2053. /* SCK */
  2054. RCAR_GP_PIN(1, 0),
  2055. };
  2056. static const unsigned int scif2_clk_c_mux[] = {
  2057. SCK2_C_MARK,
  2058. };
  2059. static const unsigned int scif2_data_d_pins[] = {
  2060. /* RXD, TXD */
  2061. RCAR_GP_PIN(2, 0), RCAR_GP_PIN(1, 30),
  2062. };
  2063. static const unsigned int scif2_data_d_mux[] = {
  2064. RX2_D_MARK, TX2_D_MARK,
  2065. };
  2066. static const unsigned int scif2_clk_d_pins[] = {
  2067. /* SCK */
  2068. RCAR_GP_PIN(1, 31),
  2069. };
  2070. static const unsigned int scif2_clk_d_mux[] = {
  2071. SCK2_D_MARK,
  2072. };
  2073. static const unsigned int scif2_data_e_pins[] = {
  2074. /* RXD, TXD */
  2075. RCAR_GP_PIN(0, 20), RCAR_GP_PIN(0, 19),
  2076. };
  2077. static const unsigned int scif2_data_e_mux[] = {
  2078. RX2_E_MARK, TX2_E_MARK,
  2079. };
  2080. /* - SCIF3 ------------------------------------------------------------------ */
  2081. static const unsigned int scif3_data_pins[] = {
  2082. /* RXD, TXD */
  2083. RCAR_GP_PIN(4, 9), RCAR_GP_PIN(4, 8),
  2084. };
  2085. static const unsigned int scif3_data_mux[] = {
  2086. RX3_IRDA_RX_MARK, TX3_IRDA_TX_MARK,
  2087. };
  2088. static const unsigned int scif3_clk_pins[] = {
  2089. /* SCK */
  2090. RCAR_GP_PIN(4, 7),
  2091. };
  2092. static const unsigned int scif3_clk_mux[] = {
  2093. SCK3_MARK,
  2094. };
  2095. static const unsigned int scif3_data_b_pins[] = {
  2096. /* RXD, TXD */
  2097. RCAR_GP_PIN(2, 0), RCAR_GP_PIN(1, 30),
  2098. };
  2099. static const unsigned int scif3_data_b_mux[] = {
  2100. RX3_B_IRDA_RX_B_MARK, TX3_B_IRDA_TX_B_MARK,
  2101. };
  2102. static const unsigned int scif3_data_c_pins[] = {
  2103. /* RXD, TXD */
  2104. RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 12),
  2105. };
  2106. static const unsigned int scif3_data_c_mux[] = {
  2107. RX3_C_IRDA_RX_C_MARK, TX3C_IRDA_TX_C_MARK,
  2108. };
  2109. static const unsigned int scif3_data_d_pins[] = {
  2110. /* RXD, TXD */
  2111. RCAR_GP_PIN(0, 30), RCAR_GP_PIN(0, 29),
  2112. };
  2113. static const unsigned int scif3_data_d_mux[] = {
  2114. RX3_D_IRDA_RX_D_MARK, TX3_D_IRDA_TX_D_MARK,
  2115. };
  2116. static const unsigned int scif3_data_e_pins[] = {
  2117. /* RXD, TXD */
  2118. RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 2),
  2119. };
  2120. static const unsigned int scif3_data_e_mux[] = {
  2121. RX3_E_IRDA_RX_E_MARK, TX3_E_IRDA_TX_E_MARK,
  2122. };
  2123. static const unsigned int scif3_clk_e_pins[] = {
  2124. /* SCK */
  2125. RCAR_GP_PIN(1, 10),
  2126. };
  2127. static const unsigned int scif3_clk_e_mux[] = {
  2128. SCK3_E_MARK,
  2129. };
  2130. /* - SCIF4 ------------------------------------------------------------------ */
  2131. static const unsigned int scif4_data_pins[] = {
  2132. /* RXD, TXD */
  2133. RCAR_GP_PIN(3, 27), RCAR_GP_PIN(3, 26),
  2134. };
  2135. static const unsigned int scif4_data_mux[] = {
  2136. RX4_MARK, TX4_MARK,
  2137. };
  2138. static const unsigned int scif4_clk_pins[] = {
  2139. /* SCK */
  2140. RCAR_GP_PIN(3, 25),
  2141. };
  2142. static const unsigned int scif4_clk_mux[] = {
  2143. SCK4_MARK,
  2144. };
  2145. static const unsigned int scif4_data_b_pins[] = {
  2146. /* RXD, TXD */
  2147. RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 14),
  2148. };
  2149. static const unsigned int scif4_data_b_mux[] = {
  2150. RX4_B_MARK, TX4_B_MARK,
  2151. };
  2152. static const unsigned int scif4_clk_b_pins[] = {
  2153. /* SCK */
  2154. RCAR_GP_PIN(3, 16),
  2155. };
  2156. static const unsigned int scif4_clk_b_mux[] = {
  2157. SCK4_B_MARK,
  2158. };
  2159. static const unsigned int scif4_data_c_pins[] = {
  2160. /* RXD, TXD */
  2161. RCAR_GP_PIN(0, 22), RCAR_GP_PIN(0, 21),
  2162. };
  2163. static const unsigned int scif4_data_c_mux[] = {
  2164. RX4_C_MARK, TX4_C_MARK,
  2165. };
  2166. static const unsigned int scif4_data_d_pins[] = {
  2167. /* RXD, TXD */
  2168. RCAR_GP_PIN(2, 5), RCAR_GP_PIN(2, 4),
  2169. };
  2170. static const unsigned int scif4_data_d_mux[] = {
  2171. RX4_D_MARK, TX4_D_MARK,
  2172. };
  2173. /* - SCIF5 ------------------------------------------------------------------ */
  2174. static const unsigned int scif5_data_pins[] = {
  2175. /* RXD, TXD */
  2176. RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 18),
  2177. };
  2178. static const unsigned int scif5_data_mux[] = {
  2179. RX5_MARK, TX5_MARK,
  2180. };
  2181. static const unsigned int scif5_clk_pins[] = {
  2182. /* SCK */
  2183. RCAR_GP_PIN(1, 11),
  2184. };
  2185. static const unsigned int scif5_clk_mux[] = {
  2186. SCK5_MARK,
  2187. };
  2188. static const unsigned int scif5_data_b_pins[] = {
  2189. /* RXD, TXD */
  2190. RCAR_GP_PIN(0, 18), RCAR_GP_PIN(0, 11),
  2191. };
  2192. static const unsigned int scif5_data_b_mux[] = {
  2193. RX5_B_MARK, TX5_B_MARK,
  2194. };
  2195. static const unsigned int scif5_clk_b_pins[] = {
  2196. /* SCK */
  2197. RCAR_GP_PIN(0, 19),
  2198. };
  2199. static const unsigned int scif5_clk_b_mux[] = {
  2200. SCK5_B_MARK,
  2201. };
  2202. static const unsigned int scif5_data_c_pins[] = {
  2203. /* RXD, TXD */
  2204. RCAR_GP_PIN(0, 24), RCAR_GP_PIN(0, 23),
  2205. };
  2206. static const unsigned int scif5_data_c_mux[] = {
  2207. RX5_C_MARK, TX5_C_MARK,
  2208. };
  2209. static const unsigned int scif5_clk_c_pins[] = {
  2210. /* SCK */
  2211. RCAR_GP_PIN(0, 28),
  2212. };
  2213. static const unsigned int scif5_clk_c_mux[] = {
  2214. SCK5_C_MARK,
  2215. };
  2216. static const unsigned int scif5_data_d_pins[] = {
  2217. /* RXD, TXD */
  2218. RCAR_GP_PIN(0, 8), RCAR_GP_PIN(0, 6),
  2219. };
  2220. static const unsigned int scif5_data_d_mux[] = {
  2221. RX5_D_MARK, TX5_D_MARK,
  2222. };
  2223. static const unsigned int scif5_clk_d_pins[] = {
  2224. /* SCK */
  2225. RCAR_GP_PIN(0, 7),
  2226. };
  2227. static const unsigned int scif5_clk_d_mux[] = {
  2228. SCK5_D_MARK,
  2229. };
  2230. /* - SDHI0 ------------------------------------------------------------------ */
  2231. static const unsigned int sdhi0_data1_pins[] = {
  2232. /* D0 */
  2233. RCAR_GP_PIN(3, 21),
  2234. };
  2235. static const unsigned int sdhi0_data1_mux[] = {
  2236. SD0_DAT0_MARK,
  2237. };
  2238. static const unsigned int sdhi0_data4_pins[] = {
  2239. /* D[0:3] */
  2240. RCAR_GP_PIN(3, 21), RCAR_GP_PIN(3, 22), RCAR_GP_PIN(3, 23),
  2241. RCAR_GP_PIN(3, 24),
  2242. };
  2243. static const unsigned int sdhi0_data4_mux[] = {
  2244. SD0_DAT0_MARK, SD0_DAT1_MARK, SD0_DAT2_MARK, SD0_DAT3_MARK,
  2245. };
  2246. static const unsigned int sdhi0_ctrl_pins[] = {
  2247. /* CMD, CLK */
  2248. RCAR_GP_PIN(3, 18), RCAR_GP_PIN(3, 17),
  2249. };
  2250. static const unsigned int sdhi0_ctrl_mux[] = {
  2251. SD0_CMD_MARK, SD0_CLK_MARK,
  2252. };
  2253. static const unsigned int sdhi0_cd_pins[] = {
  2254. /* CD */
  2255. RCAR_GP_PIN(3, 19),
  2256. };
  2257. static const unsigned int sdhi0_cd_mux[] = {
  2258. SD0_CD_MARK,
  2259. };
  2260. static const unsigned int sdhi0_wp_pins[] = {
  2261. /* WP */
  2262. RCAR_GP_PIN(3, 20),
  2263. };
  2264. static const unsigned int sdhi0_wp_mux[] = {
  2265. SD0_WP_MARK,
  2266. };
  2267. /* - SDHI1 ------------------------------------------------------------------ */
  2268. static const unsigned int sdhi1_data1_pins[] = {
  2269. /* D0 */
  2270. RCAR_GP_PIN(0, 19),
  2271. };
  2272. static const unsigned int sdhi1_data1_mux[] = {
  2273. SD1_DAT0_MARK,
  2274. };
  2275. static const unsigned int sdhi1_data4_pins[] = {
  2276. /* D[0:3] */
  2277. RCAR_GP_PIN(0, 19), RCAR_GP_PIN(0, 20), RCAR_GP_PIN(0, 21),
  2278. RCAR_GP_PIN(0, 2),
  2279. };
  2280. static const unsigned int sdhi1_data4_mux[] = {
  2281. SD1_DAT0_MARK, SD1_DAT1_MARK, SD1_DAT2_MARK, SD1_DAT3_MARK,
  2282. };
  2283. static const unsigned int sdhi1_ctrl_pins[] = {
  2284. /* CMD, CLK */
  2285. RCAR_GP_PIN(0, 18), RCAR_GP_PIN(0, 17),
  2286. };
  2287. static const unsigned int sdhi1_ctrl_mux[] = {
  2288. SD1_CMD_MARK, SD1_CLK_MARK,
  2289. };
  2290. static const unsigned int sdhi1_cd_pins[] = {
  2291. /* CD */
  2292. RCAR_GP_PIN(0, 10),
  2293. };
  2294. static const unsigned int sdhi1_cd_mux[] = {
  2295. SD1_CD_MARK,
  2296. };
  2297. static const unsigned int sdhi1_wp_pins[] = {
  2298. /* WP */
  2299. RCAR_GP_PIN(0, 11),
  2300. };
  2301. static const unsigned int sdhi1_wp_mux[] = {
  2302. SD1_WP_MARK,
  2303. };
  2304. /* - SDHI2 ------------------------------------------------------------------ */
  2305. static const unsigned int sdhi2_data1_pins[] = {
  2306. /* D0 */
  2307. RCAR_GP_PIN(3, 1),
  2308. };
  2309. static const unsigned int sdhi2_data1_mux[] = {
  2310. SD2_DAT0_MARK,
  2311. };
  2312. static const unsigned int sdhi2_data4_pins[] = {
  2313. /* D[0:3] */
  2314. RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3),
  2315. RCAR_GP_PIN(3, 4),
  2316. };
  2317. static const unsigned int sdhi2_data4_mux[] = {
  2318. SD2_DAT0_MARK, SD2_DAT1_MARK, SD2_DAT2_MARK, SD2_DAT3_MARK,
  2319. };
  2320. static const unsigned int sdhi2_ctrl_pins[] = {
  2321. /* CMD, CLK */
  2322. RCAR_GP_PIN(3, 6), RCAR_GP_PIN(3, 5),
  2323. };
  2324. static const unsigned int sdhi2_ctrl_mux[] = {
  2325. SD2_CMD_MARK, SD2_CLK_MARK,
  2326. };
  2327. static const unsigned int sdhi2_cd_pins[] = {
  2328. /* CD */
  2329. RCAR_GP_PIN(3, 7),
  2330. };
  2331. static const unsigned int sdhi2_cd_mux[] = {
  2332. SD2_CD_MARK,
  2333. };
  2334. static const unsigned int sdhi2_wp_pins[] = {
  2335. /* WP */
  2336. RCAR_GP_PIN(3, 8),
  2337. };
  2338. static const unsigned int sdhi2_wp_mux[] = {
  2339. SD2_WP_MARK,
  2340. };
  2341. /* - SDHI3 ------------------------------------------------------------------ */
  2342. static const unsigned int sdhi3_data1_pins[] = {
  2343. /* D0 */
  2344. RCAR_GP_PIN(1, 18),
  2345. };
  2346. static const unsigned int sdhi3_data1_mux[] = {
  2347. SD3_DAT0_MARK,
  2348. };
  2349. static const unsigned int sdhi3_data4_pins[] = {
  2350. /* D[0:3] */
  2351. RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19), RCAR_GP_PIN(1, 20),
  2352. RCAR_GP_PIN(1, 21),
  2353. };
  2354. static const unsigned int sdhi3_data4_mux[] = {
  2355. SD3_DAT0_MARK, SD3_DAT1_MARK, SD3_DAT2_MARK, SD3_DAT3_MARK,
  2356. };
  2357. static const unsigned int sdhi3_ctrl_pins[] = {
  2358. /* CMD, CLK */
  2359. RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 2),
  2360. };
  2361. static const unsigned int sdhi3_ctrl_mux[] = {
  2362. SD3_CMD_MARK, SD3_CLK_MARK,
  2363. };
  2364. static const unsigned int sdhi3_cd_pins[] = {
  2365. /* CD */
  2366. RCAR_GP_PIN(1, 30),
  2367. };
  2368. static const unsigned int sdhi3_cd_mux[] = {
  2369. SD3_CD_MARK,
  2370. };
  2371. static const unsigned int sdhi3_wp_pins[] = {
  2372. /* WP */
  2373. RCAR_GP_PIN(2, 0),
  2374. };
  2375. static const unsigned int sdhi3_wp_mux[] = {
  2376. SD3_WP_MARK,
  2377. };
  2378. /* - USB0 ------------------------------------------------------------------- */
  2379. static const unsigned int usb0_pins[] = {
  2380. /* PENC */
  2381. RCAR_GP_PIN(4, 26),
  2382. };
  2383. static const unsigned int usb0_mux[] = {
  2384. USB_PENC0_MARK,
  2385. };
  2386. static const unsigned int usb0_ovc_pins[] = {
  2387. /* USB_OVC */
  2388. RCAR_GP_PIN(4, 22),
  2389. };
  2390. static const unsigned int usb0_ovc_mux[] = {
  2391. USB_OVC0_MARK,
  2392. };
  2393. /* - USB1 ------------------------------------------------------------------- */
  2394. static const unsigned int usb1_pins[] = {
  2395. /* PENC */
  2396. RCAR_GP_PIN(4, 27),
  2397. };
  2398. static const unsigned int usb1_mux[] = {
  2399. USB_PENC1_MARK,
  2400. };
  2401. static const unsigned int usb1_ovc_pins[] = {
  2402. /* USB_OVC */
  2403. RCAR_GP_PIN(4, 24),
  2404. };
  2405. static const unsigned int usb1_ovc_mux[] = {
  2406. USB_OVC1_MARK,
  2407. };
  2408. /* - USB2 ------------------------------------------------------------------- */
  2409. static const unsigned int usb2_pins[] = {
  2410. /* PENC */
  2411. RCAR_GP_PIN(4, 28),
  2412. };
  2413. static const unsigned int usb2_mux[] = {
  2414. USB_PENC2_MARK,
  2415. };
  2416. static const unsigned int usb2_ovc_pins[] = {
  2417. /* USB_OVC */
  2418. RCAR_GP_PIN(3, 29),
  2419. };
  2420. static const unsigned int usb2_ovc_mux[] = {
  2421. USB_OVC2_MARK,
  2422. };
  2423. /* - VIN0 ------------------------------------------------------------------- */
  2424. static const unsigned int vin0_data8_pins[] = {
  2425. /* D[0:7] */
  2426. RCAR_GP_PIN(2, 6), RCAR_GP_PIN(2, 7), RCAR_GP_PIN(2, 8),
  2427. RCAR_GP_PIN(2, 9), RCAR_GP_PIN(2, 10), RCAR_GP_PIN(2, 11),
  2428. RCAR_GP_PIN(2, 12), RCAR_GP_PIN(2, 13),
  2429. };
  2430. static const unsigned int vin0_data8_mux[] = {
  2431. VI0_DATA0_VI0_B0_MARK, VI0_DATA1_VI0_B1_MARK, VI0_DATA2_VI0_B2_MARK,
  2432. VI0_DATA3_VI0_B3_MARK, VI0_DATA4_VI0_B4_MARK, VI0_DATA5_VI0_B5_MARK,
  2433. VI0_DATA6_VI0_B6_MARK, VI0_DATA7_VI0_B7_MARK,
  2434. };
  2435. static const unsigned int vin0_clk_pins[] = {
  2436. /* CLK */
  2437. RCAR_GP_PIN(2, 1),
  2438. };
  2439. static const unsigned int vin0_clk_mux[] = {
  2440. VI0_CLK_MARK,
  2441. };
  2442. static const unsigned int vin0_sync_pins[] = {
  2443. /* HSYNC, VSYNC */
  2444. RCAR_GP_PIN(2, 4), RCAR_GP_PIN(2, 5),
  2445. };
  2446. static const unsigned int vin0_sync_mux[] = {
  2447. VI0_HSYNC_MARK, VI0_VSYNC_MARK,
  2448. };
  2449. /* - VIN1 ------------------------------------------------------------------- */
  2450. static const unsigned int vin1_data8_pins[] = {
  2451. /* D[0:7] */
  2452. RCAR_GP_PIN(3, 1), RCAR_GP_PIN(3, 2), RCAR_GP_PIN(3, 3),
  2453. RCAR_GP_PIN(3, 4), RCAR_GP_PIN(3, 5), RCAR_GP_PIN(3, 6),
  2454. RCAR_GP_PIN(3, 7), RCAR_GP_PIN(3, 8),
  2455. };
  2456. static const unsigned int vin1_data8_mux[] = {
  2457. VI1_DATA0_VI1_B0_MARK, VI1_DATA1_VI1_B1_MARK, VI1_DATA2_VI1_B2_MARK,
  2458. VI1_DATA3_VI1_B3_MARK, VI1_DATA4_VI1_B4_MARK, VI1_DATA5_VI1_B5_MARK,
  2459. VI1_DATA6_VI1_B6_MARK, VI1_DATA7_VI1_B7_MARK,
  2460. };
  2461. static const unsigned int vin1_clk_pins[] = {
  2462. /* CLK */
  2463. RCAR_GP_PIN(2, 30),
  2464. };
  2465. static const unsigned int vin1_clk_mux[] = {
  2466. VI1_CLK_MARK,
  2467. };
  2468. static const unsigned int vin1_sync_pins[] = {
  2469. /* HSYNC, VSYNC */
  2470. RCAR_GP_PIN(2, 31), RCAR_GP_PIN(3, 0),
  2471. };
  2472. static const unsigned int vin1_sync_mux[] = {
  2473. VI1_HSYNC_MARK, VI1_VSYNC_MARK,
  2474. };
  2475. /* - VIN2 ------------------------------------------------------------------- */
  2476. static const unsigned int vin2_data8_pins[] = {
  2477. /* D[0:7] */
  2478. RCAR_GP_PIN(1, 2), RCAR_GP_PIN(1, 3), RCAR_GP_PIN(1, 10),
  2479. RCAR_GP_PIN(1, 11), RCAR_GP_PIN(1, 18), RCAR_GP_PIN(1, 19),
  2480. RCAR_GP_PIN(1, 31), RCAR_GP_PIN(2, 0),
  2481. };
  2482. static const unsigned int vin2_data8_mux[] = {
  2483. VI2_DATA0_VI2_B0_MARK, VI2_DATA1_VI2_B1_MARK, VI2_DATA2_VI2_B2_MARK,
  2484. VI2_DATA3_VI2_B3_MARK, VI2_DATA4_VI2_B4_MARK, VI2_DATA5_VI2_B5_MARK,
  2485. VI2_DATA6_VI2_B6_MARK, VI2_DATA7_VI2_B7_MARK,
  2486. };
  2487. static const unsigned int vin2_clk_pins[] = {
  2488. /* CLK */
  2489. RCAR_GP_PIN(1, 30),
  2490. };
  2491. static const unsigned int vin2_clk_mux[] = {
  2492. VI2_CLK_MARK,
  2493. };
  2494. static const unsigned int vin2_sync_pins[] = {
  2495. /* HSYNC, VSYNC */
  2496. RCAR_GP_PIN(1, 28), RCAR_GP_PIN(1, 29),
  2497. };
  2498. static const unsigned int vin2_sync_mux[] = {
  2499. VI2_HSYNC_MARK, VI2_VSYNC_MARK,
  2500. };
  2501. /* - VIN3 ------------------------------------------------------------------- */
  2502. static const unsigned int vin3_data8_pins[] = {
  2503. /* D[0:7] */
  2504. RCAR_GP_PIN(3, 9), RCAR_GP_PIN(3, 10), RCAR_GP_PIN(3, 11),
  2505. RCAR_GP_PIN(3, 12), RCAR_GP_PIN(3, 13), RCAR_GP_PIN(3, 14),
  2506. RCAR_GP_PIN(3, 15), RCAR_GP_PIN(3, 16),
  2507. };
  2508. static const unsigned int vin3_data8_mux[] = {
  2509. VI3_DATA0_MARK, VI3_DATA1_MARK, VI3_DATA2_MARK,
  2510. VI3_DATA3_MARK, VI3_DATA4_MARK, VI3_DATA5_MARK,
  2511. VI3_DATA6_MARK, VI3_DATA7_MARK,
  2512. };
  2513. static const unsigned int vin3_clk_pins[] = {
  2514. /* CLK */
  2515. RCAR_GP_PIN(2, 31),
  2516. };
  2517. static const unsigned int vin3_clk_mux[] = {
  2518. VI3_CLK_MARK,
  2519. };
  2520. static const unsigned int vin3_sync_pins[] = {
  2521. /* HSYNC, VSYNC */
  2522. RCAR_GP_PIN(1, 28), RCAR_GP_PIN(1, 29),
  2523. };
  2524. static const unsigned int vin3_sync_mux[] = {
  2525. VI3_HSYNC_MARK, VI3_VSYNC_MARK,
  2526. };
  2527. static const struct sh_pfc_pin_group pinmux_groups[] = {
  2528. SH_PFC_PIN_GROUP(du0_rgb666),
  2529. SH_PFC_PIN_GROUP(du0_rgb888),
  2530. SH_PFC_PIN_GROUP(du0_clk_in),
  2531. SH_PFC_PIN_GROUP(du0_clk_out_0),
  2532. SH_PFC_PIN_GROUP(du0_clk_out_1),
  2533. SH_PFC_PIN_GROUP(du0_sync_0),
  2534. SH_PFC_PIN_GROUP(du0_sync_1),
  2535. SH_PFC_PIN_GROUP(du0_oddf),
  2536. SH_PFC_PIN_GROUP(du0_cde),
  2537. SH_PFC_PIN_GROUP(du1_rgb666),
  2538. SH_PFC_PIN_GROUP(du1_rgb888),
  2539. SH_PFC_PIN_GROUP(du1_clk_in),
  2540. SH_PFC_PIN_GROUP(du1_clk_out),
  2541. SH_PFC_PIN_GROUP(du1_sync_0),
  2542. SH_PFC_PIN_GROUP(du1_sync_1),
  2543. SH_PFC_PIN_GROUP(du1_oddf),
  2544. SH_PFC_PIN_GROUP(du1_cde),
  2545. SH_PFC_PIN_GROUP(ether_rmii),
  2546. SH_PFC_PIN_GROUP(ether_link),
  2547. SH_PFC_PIN_GROUP(ether_magic),
  2548. SH_PFC_PIN_GROUP(hspi0),
  2549. SH_PFC_PIN_GROUP(hspi1),
  2550. SH_PFC_PIN_GROUP(hspi1_b),
  2551. SH_PFC_PIN_GROUP(hspi1_c),
  2552. SH_PFC_PIN_GROUP(hspi1_d),
  2553. SH_PFC_PIN_GROUP(hspi2),
  2554. SH_PFC_PIN_GROUP(hspi2_b),
  2555. SH_PFC_PIN_GROUP(i2c1),
  2556. SH_PFC_PIN_GROUP(i2c1_b),
  2557. SH_PFC_PIN_GROUP(i2c1_c),
  2558. SH_PFC_PIN_GROUP(i2c1_d),
  2559. SH_PFC_PIN_GROUP(i2c2),
  2560. SH_PFC_PIN_GROUP(i2c2_b),
  2561. SH_PFC_PIN_GROUP(i2c2_c),
  2562. SH_PFC_PIN_GROUP(i2c2_d),
  2563. SH_PFC_PIN_GROUP(i2c3),
  2564. SH_PFC_PIN_GROUP(i2c3_b),
  2565. SH_PFC_PIN_GROUP(intc_irq0),
  2566. SH_PFC_PIN_GROUP(intc_irq0_b),
  2567. SH_PFC_PIN_GROUP(intc_irq1),
  2568. SH_PFC_PIN_GROUP(intc_irq1_b),
  2569. SH_PFC_PIN_GROUP(intc_irq2),
  2570. SH_PFC_PIN_GROUP(intc_irq2_b),
  2571. SH_PFC_PIN_GROUP(intc_irq3),
  2572. SH_PFC_PIN_GROUP(intc_irq3_b),
  2573. SH_PFC_PIN_GROUP(lbsc_cs0),
  2574. SH_PFC_PIN_GROUP(lbsc_cs1),
  2575. SH_PFC_PIN_GROUP(lbsc_ex_cs0),
  2576. SH_PFC_PIN_GROUP(lbsc_ex_cs1),
  2577. SH_PFC_PIN_GROUP(lbsc_ex_cs2),
  2578. SH_PFC_PIN_GROUP(lbsc_ex_cs3),
  2579. SH_PFC_PIN_GROUP(lbsc_ex_cs4),
  2580. SH_PFC_PIN_GROUP(lbsc_ex_cs5),
  2581. SH_PFC_PIN_GROUP(mmc0_data1),
  2582. SH_PFC_PIN_GROUP(mmc0_data4),
  2583. SH_PFC_PIN_GROUP(mmc0_data8),
  2584. SH_PFC_PIN_GROUP(mmc0_ctrl),
  2585. SH_PFC_PIN_GROUP(mmc1_data1),
  2586. SH_PFC_PIN_GROUP(mmc1_data4),
  2587. SH_PFC_PIN_GROUP(mmc1_data8),
  2588. SH_PFC_PIN_GROUP(mmc1_ctrl),
  2589. SH_PFC_PIN_GROUP(scif0_data),
  2590. SH_PFC_PIN_GROUP(scif0_clk),
  2591. SH_PFC_PIN_GROUP(scif0_ctrl),
  2592. SH_PFC_PIN_GROUP(scif0_data_b),
  2593. SH_PFC_PIN_GROUP(scif0_clk_b),
  2594. SH_PFC_PIN_GROUP(scif0_ctrl_b),
  2595. SH_PFC_PIN_GROUP(scif0_data_c),
  2596. SH_PFC_PIN_GROUP(scif0_clk_c),
  2597. SH_PFC_PIN_GROUP(scif0_ctrl_c),
  2598. SH_PFC_PIN_GROUP(scif0_data_d),
  2599. SH_PFC_PIN_GROUP(scif0_clk_d),
  2600. SH_PFC_PIN_GROUP(scif0_ctrl_d),
  2601. SH_PFC_PIN_GROUP(scif1_data),
  2602. SH_PFC_PIN_GROUP(scif1_clk),
  2603. SH_PFC_PIN_GROUP(scif1_ctrl),
  2604. SH_PFC_PIN_GROUP(scif1_data_b),
  2605. SH_PFC_PIN_GROUP(scif1_clk_b),
  2606. SH_PFC_PIN_GROUP(scif1_ctrl_b),
  2607. SH_PFC_PIN_GROUP(scif1_data_c),
  2608. SH_PFC_PIN_GROUP(scif1_clk_c),
  2609. SH_PFC_PIN_GROUP(scif1_ctrl_c),
  2610. SH_PFC_PIN_GROUP(scif2_data),
  2611. SH_PFC_PIN_GROUP(scif2_clk),
  2612. SH_PFC_PIN_GROUP(scif2_data_b),
  2613. SH_PFC_PIN_GROUP(scif2_clk_b),
  2614. SH_PFC_PIN_GROUP(scif2_data_c),
  2615. SH_PFC_PIN_GROUP(scif2_clk_c),
  2616. SH_PFC_PIN_GROUP(scif2_data_d),
  2617. SH_PFC_PIN_GROUP(scif2_clk_d),
  2618. SH_PFC_PIN_GROUP(scif2_data_e),
  2619. SH_PFC_PIN_GROUP(scif3_data),
  2620. SH_PFC_PIN_GROUP(scif3_clk),
  2621. SH_PFC_PIN_GROUP(scif3_data_b),
  2622. SH_PFC_PIN_GROUP(scif3_data_c),
  2623. SH_PFC_PIN_GROUP(scif3_data_d),
  2624. SH_PFC_PIN_GROUP(scif3_data_e),
  2625. SH_PFC_PIN_GROUP(scif3_clk_e),
  2626. SH_PFC_PIN_GROUP(scif4_data),
  2627. SH_PFC_PIN_GROUP(scif4_clk),
  2628. SH_PFC_PIN_GROUP(scif4_data_b),
  2629. SH_PFC_PIN_GROUP(scif4_clk_b),
  2630. SH_PFC_PIN_GROUP(scif4_data_c),
  2631. SH_PFC_PIN_GROUP(scif4_data_d),
  2632. SH_PFC_PIN_GROUP(scif5_data),
  2633. SH_PFC_PIN_GROUP(scif5_clk),
  2634. SH_PFC_PIN_GROUP(scif5_data_b),
  2635. SH_PFC_PIN_GROUP(scif5_clk_b),
  2636. SH_PFC_PIN_GROUP(scif5_data_c),
  2637. SH_PFC_PIN_GROUP(scif5_clk_c),
  2638. SH_PFC_PIN_GROUP(scif5_data_d),
  2639. SH_PFC_PIN_GROUP(scif5_clk_d),
  2640. SH_PFC_PIN_GROUP(sdhi0_data1),
  2641. SH_PFC_PIN_GROUP(sdhi0_data4),
  2642. SH_PFC_PIN_GROUP(sdhi0_ctrl),
  2643. SH_PFC_PIN_GROUP(sdhi0_cd),
  2644. SH_PFC_PIN_GROUP(sdhi0_wp),
  2645. SH_PFC_PIN_GROUP(sdhi1_data1),
  2646. SH_PFC_PIN_GROUP(sdhi1_data4),
  2647. SH_PFC_PIN_GROUP(sdhi1_ctrl),
  2648. SH_PFC_PIN_GROUP(sdhi1_cd),
  2649. SH_PFC_PIN_GROUP(sdhi1_wp),
  2650. SH_PFC_PIN_GROUP(sdhi2_data1),
  2651. SH_PFC_PIN_GROUP(sdhi2_data4),
  2652. SH_PFC_PIN_GROUP(sdhi2_ctrl),
  2653. SH_PFC_PIN_GROUP(sdhi2_cd),
  2654. SH_PFC_PIN_GROUP(sdhi2_wp),
  2655. SH_PFC_PIN_GROUP(sdhi3_data1),
  2656. SH_PFC_PIN_GROUP(sdhi3_data4),
  2657. SH_PFC_PIN_GROUP(sdhi3_ctrl),
  2658. SH_PFC_PIN_GROUP(sdhi3_cd),
  2659. SH_PFC_PIN_GROUP(sdhi3_wp),
  2660. SH_PFC_PIN_GROUP(usb0),
  2661. SH_PFC_PIN_GROUP(usb0_ovc),
  2662. SH_PFC_PIN_GROUP(usb1),
  2663. SH_PFC_PIN_GROUP(usb1_ovc),
  2664. SH_PFC_PIN_GROUP(usb2),
  2665. SH_PFC_PIN_GROUP(usb2_ovc),
  2666. SH_PFC_PIN_GROUP(vin0_data8),
  2667. SH_PFC_PIN_GROUP(vin0_clk),
  2668. SH_PFC_PIN_GROUP(vin0_sync),
  2669. SH_PFC_PIN_GROUP(vin1_data8),
  2670. SH_PFC_PIN_GROUP(vin1_clk),
  2671. SH_PFC_PIN_GROUP(vin1_sync),
  2672. SH_PFC_PIN_GROUP(vin2_data8),
  2673. SH_PFC_PIN_GROUP(vin2_clk),
  2674. SH_PFC_PIN_GROUP(vin2_sync),
  2675. SH_PFC_PIN_GROUP(vin3_data8),
  2676. SH_PFC_PIN_GROUP(vin3_clk),
  2677. SH_PFC_PIN_GROUP(vin3_sync),
  2678. };
  2679. static const char * const du0_groups[] = {
  2680. "du0_rgb666",
  2681. "du0_rgb888",
  2682. "du0_clk_in",
  2683. "du0_clk_out_0",
  2684. "du0_clk_out_1",
  2685. "du0_sync_0",
  2686. "du0_sync_1",
  2687. "du0_oddf",
  2688. "du0_cde",
  2689. };
  2690. static const char * const du1_groups[] = {
  2691. "du1_rgb666",
  2692. "du1_rgb888",
  2693. "du1_clk_in",
  2694. "du1_clk_out",
  2695. "du1_sync_0",
  2696. "du1_sync_1",
  2697. "du1_oddf",
  2698. "du1_cde",
  2699. };
  2700. static const char * const ether_groups[] = {
  2701. "ether_rmii",
  2702. "ether_link",
  2703. "ether_magic",
  2704. };
  2705. static const char * const hspi0_groups[] = {
  2706. "hspi0",
  2707. };
  2708. static const char * const hspi1_groups[] = {
  2709. "hspi1",
  2710. "hspi1_b",
  2711. "hspi1_c",
  2712. "hspi1_d",
  2713. };
  2714. static const char * const hspi2_groups[] = {
  2715. "hspi2",
  2716. "hspi2_b",
  2717. };
  2718. static const char * const i2c1_groups[] = {
  2719. "i2c1",
  2720. "i2c1_b",
  2721. "i2c1_c",
  2722. "i2c1_d",
  2723. };
  2724. static const char * const i2c2_groups[] = {
  2725. "i2c2",
  2726. "i2c2_b",
  2727. "i2c2_c",
  2728. "i2c2_d",
  2729. };
  2730. static const char * const i2c3_groups[] = {
  2731. "i2c3",
  2732. "i2c3_b",
  2733. };
  2734. static const char * const intc_groups[] = {
  2735. "intc_irq0",
  2736. "intc_irq0_b",
  2737. "intc_irq1",
  2738. "intc_irq1_b",
  2739. "intc_irq2",
  2740. "intc_irq2_b",
  2741. "intc_irq3",
  2742. "intc_irq3_b",
  2743. };
  2744. static const char * const lbsc_groups[] = {
  2745. "lbsc_cs0",
  2746. "lbsc_cs1",
  2747. "lbsc_ex_cs0",
  2748. "lbsc_ex_cs1",
  2749. "lbsc_ex_cs2",
  2750. "lbsc_ex_cs3",
  2751. "lbsc_ex_cs4",
  2752. "lbsc_ex_cs5",
  2753. };
  2754. static const char * const mmc0_groups[] = {
  2755. "mmc0_data1",
  2756. "mmc0_data4",
  2757. "mmc0_data8",
  2758. "mmc0_ctrl",
  2759. };
  2760. static const char * const mmc1_groups[] = {
  2761. "mmc1_data1",
  2762. "mmc1_data4",
  2763. "mmc1_data8",
  2764. "mmc1_ctrl",
  2765. };
  2766. static const char * const scif0_groups[] = {
  2767. "scif0_data",
  2768. "scif0_clk",
  2769. "scif0_ctrl",
  2770. "scif0_data_b",
  2771. "scif0_clk_b",
  2772. "scif0_ctrl_b",
  2773. "scif0_data_c",
  2774. "scif0_clk_c",
  2775. "scif0_ctrl_c",
  2776. "scif0_data_d",
  2777. "scif0_clk_d",
  2778. "scif0_ctrl_d",
  2779. };
  2780. static const char * const scif1_groups[] = {
  2781. "scif1_data",
  2782. "scif1_clk",
  2783. "scif1_ctrl",
  2784. "scif1_data_b",
  2785. "scif1_clk_b",
  2786. "scif1_ctrl_b",
  2787. "scif1_data_c",
  2788. "scif1_clk_c",
  2789. "scif1_ctrl_c",
  2790. };
  2791. static const char * const scif2_groups[] = {
  2792. "scif2_data",
  2793. "scif2_clk",
  2794. "scif2_data_b",
  2795. "scif2_clk_b",
  2796. "scif2_data_c",
  2797. "scif2_clk_c",
  2798. "scif2_data_d",
  2799. "scif2_clk_d",
  2800. "scif2_data_e",
  2801. };
  2802. static const char * const scif3_groups[] = {
  2803. "scif3_data",
  2804. "scif3_clk",
  2805. "scif3_data_b",
  2806. "scif3_data_c",
  2807. "scif3_data_d",
  2808. "scif3_data_e",
  2809. "scif3_clk_e",
  2810. };
  2811. static const char * const scif4_groups[] = {
  2812. "scif4_data",
  2813. "scif4_clk",
  2814. "scif4_data_b",
  2815. "scif4_clk_b",
  2816. "scif4_data_c",
  2817. "scif4_data_d",
  2818. };
  2819. static const char * const scif5_groups[] = {
  2820. "scif5_data",
  2821. "scif5_clk",
  2822. "scif5_data_b",
  2823. "scif5_clk_b",
  2824. "scif5_data_c",
  2825. "scif5_clk_c",
  2826. "scif5_data_d",
  2827. "scif5_clk_d",
  2828. };
  2829. static const char * const sdhi0_groups[] = {
  2830. "sdhi0_data1",
  2831. "sdhi0_data4",
  2832. "sdhi0_ctrl",
  2833. "sdhi0_cd",
  2834. "sdhi0_wp",
  2835. };
  2836. static const char * const sdhi1_groups[] = {
  2837. "sdhi1_data1",
  2838. "sdhi1_data4",
  2839. "sdhi1_ctrl",
  2840. "sdhi1_cd",
  2841. "sdhi1_wp",
  2842. };
  2843. static const char * const sdhi2_groups[] = {
  2844. "sdhi2_data1",
  2845. "sdhi2_data4",
  2846. "sdhi2_ctrl",
  2847. "sdhi2_cd",
  2848. "sdhi2_wp",
  2849. };
  2850. static const char * const sdhi3_groups[] = {
  2851. "sdhi3_data1",
  2852. "sdhi3_data4",
  2853. "sdhi3_ctrl",
  2854. "sdhi3_cd",
  2855. "sdhi3_wp",
  2856. };
  2857. static const char * const usb0_groups[] = {
  2858. "usb0",
  2859. "usb0_ovc",
  2860. };
  2861. static const char * const usb1_groups[] = {
  2862. "usb1",
  2863. "usb1_ovc",
  2864. };
  2865. static const char * const usb2_groups[] = {
  2866. "usb2",
  2867. "usb2_ovc",
  2868. };
  2869. static const char * const vin0_groups[] = {
  2870. "vin0_data8",
  2871. "vin0_clk",
  2872. "vin0_sync",
  2873. };
  2874. static const char * const vin1_groups[] = {
  2875. "vin1_data8",
  2876. "vin1_clk",
  2877. "vin1_sync",
  2878. };
  2879. static const char * const vin2_groups[] = {
  2880. "vin2_data8",
  2881. "vin2_clk",
  2882. "vin2_sync",
  2883. };
  2884. static const char * const vin3_groups[] = {
  2885. "vin3_data8",
  2886. "vin3_clk",
  2887. "vin3_sync",
  2888. };
  2889. static const struct sh_pfc_function pinmux_functions[] = {
  2890. SH_PFC_FUNCTION(du0),
  2891. SH_PFC_FUNCTION(du1),
  2892. SH_PFC_FUNCTION(ether),
  2893. SH_PFC_FUNCTION(hspi0),
  2894. SH_PFC_FUNCTION(hspi1),
  2895. SH_PFC_FUNCTION(hspi2),
  2896. SH_PFC_FUNCTION(i2c1),
  2897. SH_PFC_FUNCTION(i2c2),
  2898. SH_PFC_FUNCTION(i2c3),
  2899. SH_PFC_FUNCTION(intc),
  2900. SH_PFC_FUNCTION(lbsc),
  2901. SH_PFC_FUNCTION(mmc0),
  2902. SH_PFC_FUNCTION(mmc1),
  2903. SH_PFC_FUNCTION(sdhi0),
  2904. SH_PFC_FUNCTION(sdhi1),
  2905. SH_PFC_FUNCTION(sdhi2),
  2906. SH_PFC_FUNCTION(sdhi3),
  2907. SH_PFC_FUNCTION(scif0),
  2908. SH_PFC_FUNCTION(scif1),
  2909. SH_PFC_FUNCTION(scif2),
  2910. SH_PFC_FUNCTION(scif3),
  2911. SH_PFC_FUNCTION(scif4),
  2912. SH_PFC_FUNCTION(scif5),
  2913. SH_PFC_FUNCTION(usb0),
  2914. SH_PFC_FUNCTION(usb1),
  2915. SH_PFC_FUNCTION(usb2),
  2916. SH_PFC_FUNCTION(vin0),
  2917. SH_PFC_FUNCTION(vin1),
  2918. SH_PFC_FUNCTION(vin2),
  2919. SH_PFC_FUNCTION(vin3),
  2920. };
  2921. static const struct pinmux_cfg_reg pinmux_config_regs[] = {
  2922. { PINMUX_CFG_REG("GPSR0", 0xfffc0004, 32, 1) {
  2923. GP_0_31_FN, FN_IP3_31_29,
  2924. GP_0_30_FN, FN_IP3_26_24,
  2925. GP_0_29_FN, FN_IP3_22_21,
  2926. GP_0_28_FN, FN_IP3_14_12,
  2927. GP_0_27_FN, FN_IP3_11_9,
  2928. GP_0_26_FN, FN_IP3_2_0,
  2929. GP_0_25_FN, FN_IP2_30_28,
  2930. GP_0_24_FN, FN_IP2_21_19,
  2931. GP_0_23_FN, FN_IP2_18_16,
  2932. GP_0_22_FN, FN_IP0_30_28,
  2933. GP_0_21_FN, FN_IP0_5_3,
  2934. GP_0_20_FN, FN_IP1_18_15,
  2935. GP_0_19_FN, FN_IP1_14_11,
  2936. GP_0_18_FN, FN_IP1_10_7,
  2937. GP_0_17_FN, FN_IP1_6_4,
  2938. GP_0_16_FN, FN_IP1_3_2,
  2939. GP_0_15_FN, FN_IP1_1_0,
  2940. GP_0_14_FN, FN_IP0_27_26,
  2941. GP_0_13_FN, FN_IP0_25,
  2942. GP_0_12_FN, FN_IP0_24_23,
  2943. GP_0_11_FN, FN_IP0_22_19,
  2944. GP_0_10_FN, FN_IP0_18_16,
  2945. GP_0_9_FN, FN_IP0_15_14,
  2946. GP_0_8_FN, FN_IP0_13_12,
  2947. GP_0_7_FN, FN_IP0_11_10,
  2948. GP_0_6_FN, FN_IP0_9_8,
  2949. GP_0_5_FN, FN_A19,
  2950. GP_0_4_FN, FN_A18,
  2951. GP_0_3_FN, FN_A17,
  2952. GP_0_2_FN, FN_IP0_7_6,
  2953. GP_0_1_FN, FN_AVS2,
  2954. GP_0_0_FN, FN_AVS1 }
  2955. },
  2956. { PINMUX_CFG_REG("GPSR1", 0xfffc0008, 32, 1) {
  2957. GP_1_31_FN, FN_IP5_23_21,
  2958. GP_1_30_FN, FN_IP5_20_17,
  2959. GP_1_29_FN, FN_IP5_16_15,
  2960. GP_1_28_FN, FN_IP5_14_13,
  2961. GP_1_27_FN, FN_IP5_12_11,
  2962. GP_1_26_FN, FN_IP5_10_9,
  2963. GP_1_25_FN, FN_IP5_8,
  2964. GP_1_24_FN, FN_IP5_7,
  2965. GP_1_23_FN, FN_IP5_6,
  2966. GP_1_22_FN, FN_IP5_5,
  2967. GP_1_21_FN, FN_IP5_4,
  2968. GP_1_20_FN, FN_IP5_3,
  2969. GP_1_19_FN, FN_IP5_2_0,
  2970. GP_1_18_FN, FN_IP4_31_29,
  2971. GP_1_17_FN, FN_IP4_28,
  2972. GP_1_16_FN, FN_IP4_27,
  2973. GP_1_15_FN, FN_IP4_26,
  2974. GP_1_14_FN, FN_IP4_25,
  2975. GP_1_13_FN, FN_IP4_24,
  2976. GP_1_12_FN, FN_IP4_23,
  2977. GP_1_11_FN, FN_IP4_22_20,
  2978. GP_1_10_FN, FN_IP4_19_17,
  2979. GP_1_9_FN, FN_IP4_16,
  2980. GP_1_8_FN, FN_IP4_15,
  2981. GP_1_7_FN, FN_IP4_14,
  2982. GP_1_6_FN, FN_IP4_13,
  2983. GP_1_5_FN, FN_IP4_12,
  2984. GP_1_4_FN, FN_IP4_11,
  2985. GP_1_3_FN, FN_IP4_10_8,
  2986. GP_1_2_FN, FN_IP4_7_5,
  2987. GP_1_1_FN, FN_IP4_4_2,
  2988. GP_1_0_FN, FN_IP4_1_0 }
  2989. },
  2990. { PINMUX_CFG_REG("GPSR2", 0xfffc000c, 32, 1) {
  2991. GP_2_31_FN, FN_IP10_28_26,
  2992. GP_2_30_FN, FN_IP10_25_24,
  2993. GP_2_29_FN, FN_IP10_23_21,
  2994. GP_2_28_FN, FN_IP10_20_18,
  2995. GP_2_27_FN, FN_IP10_17_15,
  2996. GP_2_26_FN, FN_IP10_14_12,
  2997. GP_2_25_FN, FN_IP10_11_9,
  2998. GP_2_24_FN, FN_IP10_8_6,
  2999. GP_2_23_FN, FN_IP10_5_3,
  3000. GP_2_22_FN, FN_IP10_2_0,
  3001. GP_2_21_FN, FN_IP9_29_28,
  3002. GP_2_20_FN, FN_IP9_27_26,
  3003. GP_2_19_FN, FN_IP9_25_24,
  3004. GP_2_18_FN, FN_IP9_23_22,
  3005. GP_2_17_FN, FN_IP9_21_19,
  3006. GP_2_16_FN, FN_IP9_18_16,
  3007. GP_2_15_FN, FN_IP9_15_14,
  3008. GP_2_14_FN, FN_IP9_13_12,
  3009. GP_2_13_FN, FN_IP9_11_10,
  3010. GP_2_12_FN, FN_IP9_9_8,
  3011. GP_2_11_FN, FN_IP9_7,
  3012. GP_2_10_FN, FN_IP9_6,
  3013. GP_2_9_FN, FN_IP9_5,
  3014. GP_2_8_FN, FN_IP9_4,
  3015. GP_2_7_FN, FN_IP9_3_2,
  3016. GP_2_6_FN, FN_IP9_1_0,
  3017. GP_2_5_FN, FN_IP8_30_28,
  3018. GP_2_4_FN, FN_IP8_27_25,
  3019. GP_2_3_FN, FN_IP8_24_23,
  3020. GP_2_2_FN, FN_IP8_22_21,
  3021. GP_2_1_FN, FN_IP8_20,
  3022. GP_2_0_FN, FN_IP5_27_24 }
  3023. },
  3024. { PINMUX_CFG_REG("GPSR3", 0xfffc0010, 32, 1) {
  3025. GP_3_31_FN, FN_IP6_3_2,
  3026. GP_3_30_FN, FN_IP6_1_0,
  3027. GP_3_29_FN, FN_IP5_30_29,
  3028. GP_3_28_FN, FN_IP5_28,
  3029. GP_3_27_FN, FN_IP1_24_23,
  3030. GP_3_26_FN, FN_IP1_22_21,
  3031. GP_3_25_FN, FN_IP1_20_19,
  3032. GP_3_24_FN, FN_IP7_26_25,
  3033. GP_3_23_FN, FN_IP7_24_23,
  3034. GP_3_22_FN, FN_IP7_22_21,
  3035. GP_3_21_FN, FN_IP7_20_19,
  3036. GP_3_20_FN, FN_IP7_30_29,
  3037. GP_3_19_FN, FN_IP7_28_27,
  3038. GP_3_18_FN, FN_IP7_18_17,
  3039. GP_3_17_FN, FN_IP7_16_15,
  3040. GP_3_16_FN, FN_IP12_17_15,
  3041. GP_3_15_FN, FN_IP12_14_12,
  3042. GP_3_14_FN, FN_IP12_11_9,
  3043. GP_3_13_FN, FN_IP12_8_6,
  3044. GP_3_12_FN, FN_IP12_5_3,
  3045. GP_3_11_FN, FN_IP12_2_0,
  3046. GP_3_10_FN, FN_IP11_29_27,
  3047. GP_3_9_FN, FN_IP11_26_24,
  3048. GP_3_8_FN, FN_IP11_23_21,
  3049. GP_3_7_FN, FN_IP11_20_18,
  3050. GP_3_6_FN, FN_IP11_17_15,
  3051. GP_3_5_FN, FN_IP11_14_12,
  3052. GP_3_4_FN, FN_IP11_11_9,
  3053. GP_3_3_FN, FN_IP11_8_6,
  3054. GP_3_2_FN, FN_IP11_5_3,
  3055. GP_3_1_FN, FN_IP11_2_0,
  3056. GP_3_0_FN, FN_IP10_31_29 }
  3057. },
  3058. { PINMUX_CFG_REG("GPSR4", 0xfffc0014, 32, 1) {
  3059. GP_4_31_FN, FN_IP8_19,
  3060. GP_4_30_FN, FN_IP8_18,
  3061. GP_4_29_FN, FN_IP8_17_16,
  3062. GP_4_28_FN, FN_IP0_2_0,
  3063. GP_4_27_FN, FN_USB_PENC1,
  3064. GP_4_26_FN, FN_USB_PENC0,
  3065. GP_4_25_FN, FN_IP8_15_12,
  3066. GP_4_24_FN, FN_IP8_11_8,
  3067. GP_4_23_FN, FN_IP8_7_4,
  3068. GP_4_22_FN, FN_IP8_3_0,
  3069. GP_4_21_FN, FN_IP2_3_0,
  3070. GP_4_20_FN, FN_IP1_28_25,
  3071. GP_4_19_FN, FN_IP2_15_12,
  3072. GP_4_18_FN, FN_IP2_11_8,
  3073. GP_4_17_FN, FN_IP2_7_4,
  3074. GP_4_16_FN, FN_IP7_14_13,
  3075. GP_4_15_FN, FN_IP7_12_10,
  3076. GP_4_14_FN, FN_IP7_9_7,
  3077. GP_4_13_FN, FN_IP7_6_4,
  3078. GP_4_12_FN, FN_IP7_3_2,
  3079. GP_4_11_FN, FN_IP7_1_0,
  3080. GP_4_10_FN, FN_IP6_30_29,
  3081. GP_4_9_FN, FN_IP6_26_25,
  3082. GP_4_8_FN, FN_IP6_24_23,
  3083. GP_4_7_FN, FN_IP6_22_20,
  3084. GP_4_6_FN, FN_IP6_19_18,
  3085. GP_4_5_FN, FN_IP6_17_15,
  3086. GP_4_4_FN, FN_IP6_14_12,
  3087. GP_4_3_FN, FN_IP6_11_9,
  3088. GP_4_2_FN, FN_IP6_8,
  3089. GP_4_1_FN, FN_IP6_7_6,
  3090. GP_4_0_FN, FN_IP6_5_4 }
  3091. },
  3092. { PINMUX_CFG_REG("GPSR5", 0xfffc0018, 32, 1) {
  3093. GP_5_31_FN, FN_IP3_5,
  3094. GP_5_30_FN, FN_IP3_4,
  3095. GP_5_29_FN, FN_IP3_3,
  3096. GP_5_28_FN, FN_IP2_27,
  3097. GP_5_27_FN, FN_IP2_26,
  3098. GP_5_26_FN, FN_IP2_25,
  3099. GP_5_25_FN, FN_IP2_24,
  3100. GP_5_24_FN, FN_IP2_23,
  3101. GP_5_23_FN, FN_IP2_22,
  3102. GP_5_22_FN, FN_IP3_28,
  3103. GP_5_21_FN, FN_IP3_27,
  3104. GP_5_20_FN, FN_IP3_23,
  3105. GP_5_19_FN, FN_EX_WAIT0,
  3106. GP_5_18_FN, FN_WE1,
  3107. GP_5_17_FN, FN_WE0,
  3108. GP_5_16_FN, FN_RD,
  3109. GP_5_15_FN, FN_A16,
  3110. GP_5_14_FN, FN_A15,
  3111. GP_5_13_FN, FN_A14,
  3112. GP_5_12_FN, FN_A13,
  3113. GP_5_11_FN, FN_A12,
  3114. GP_5_10_FN, FN_A11,
  3115. GP_5_9_FN, FN_A10,
  3116. GP_5_8_FN, FN_A9,
  3117. GP_5_7_FN, FN_A8,
  3118. GP_5_6_FN, FN_A7,
  3119. GP_5_5_FN, FN_A6,
  3120. GP_5_4_FN, FN_A5,
  3121. GP_5_3_FN, FN_A4,
  3122. GP_5_2_FN, FN_A3,
  3123. GP_5_1_FN, FN_A2,
  3124. GP_5_0_FN, FN_A1 }
  3125. },
  3126. { PINMUX_CFG_REG("GPSR6", 0xfffc001c, 32, 1) {
  3127. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  3128. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  3129. 0, 0, 0, 0, 0, 0, 0, 0,
  3130. 0, 0,
  3131. 0, 0,
  3132. 0, 0,
  3133. GP_6_8_FN, FN_IP3_20,
  3134. GP_6_7_FN, FN_IP3_19,
  3135. GP_6_6_FN, FN_IP3_18,
  3136. GP_6_5_FN, FN_IP3_17,
  3137. GP_6_4_FN, FN_IP3_16,
  3138. GP_6_3_FN, FN_IP3_15,
  3139. GP_6_2_FN, FN_IP3_8,
  3140. GP_6_1_FN, FN_IP3_7,
  3141. GP_6_0_FN, FN_IP3_6 }
  3142. },
  3143. { PINMUX_CFG_REG_VAR("IPSR0", 0xfffc0020, 32,
  3144. 1, 3, 2, 1, 2, 4, 3, 2, 2, 2, 2, 2, 3, 3) {
  3145. /* IP0_31 [1] */
  3146. 0, 0,
  3147. /* IP0_30_28 [3] */
  3148. FN_RD_WR, FN_FWE, FN_ATAG0, FN_VI1_R7,
  3149. FN_HRTS1, FN_RX4_C, 0, 0,
  3150. /* IP0_27_26 [2] */
  3151. FN_CS1_A26, FN_HSPI_TX2, FN_SDSELF_B, 0,
  3152. /* IP0_25 [1] */
  3153. FN_CS0, FN_HSPI_CS2_B,
  3154. /* IP0_24_23 [2] */
  3155. FN_CLKOUT, FN_TX3C_IRDA_TX_C, FN_PWM0_B, 0,
  3156. /* IP0_22_19 [4] */
  3157. FN_A25, FN_SD1_WP, FN_MMC0_D5, FN_FD5,
  3158. FN_HSPI_RX2, FN_VI1_R3, FN_TX5_B, FN_SSI_SDATA7_B,
  3159. FN_CTS0_B, 0, 0, 0,
  3160. 0, 0, 0, 0,
  3161. /* IP0_18_16 [3] */
  3162. FN_A24, FN_SD1_CD, FN_MMC0_D4, FN_FD4,
  3163. FN_HSPI_CS2, FN_VI1_R2, FN_SSI_WS78_B, 0,
  3164. /* IP0_15_14 [2] */
  3165. FN_A23, FN_FCLE, FN_HSPI_CLK2, FN_VI1_R1,
  3166. /* IP0_13_12 [2] */
  3167. FN_A22, FN_RX5_D, FN_HSPI_RX2_B, FN_VI1_R0,
  3168. /* IP0_11_10 [2] */
  3169. FN_A21, FN_SCK5_D, FN_HSPI_CLK2_B, 0,
  3170. /* IP0_9_8 [2] */
  3171. FN_A20, FN_TX5_D, FN_HSPI_TX2_B, 0,
  3172. /* IP0_7_6 [2] */
  3173. FN_A0, FN_SD1_DAT3, FN_MMC0_D3, FN_FD3,
  3174. /* IP0_5_3 [3] */
  3175. FN_BS, FN_SD1_DAT2, FN_MMC0_D2, FN_FD2,
  3176. FN_ATADIR0, FN_SDSELF, FN_HCTS1, FN_TX4_C,
  3177. /* IP0_2_0 [3] */
  3178. FN_USB_PENC2, FN_SCK0, FN_PWM1, FN_PWMFSW0,
  3179. FN_SCIF_CLK, FN_TCLK0_C, 0, 0 }
  3180. },
  3181. { PINMUX_CFG_REG_VAR("IPSR1", 0xfffc0024, 32,
  3182. 3, 4, 2, 2, 2, 4, 4, 4, 3, 2, 2) {
  3183. /* IP1_31_29 [3] */
  3184. 0, 0, 0, 0, 0, 0, 0, 0,
  3185. /* IP1_28_25 [4] */
  3186. FN_HTX0, FN_TX1, FN_SDATA, FN_CTS0_C,
  3187. FN_SUB_TCK, FN_CC5_STATE2, FN_CC5_STATE10, FN_CC5_STATE18,
  3188. FN_CC5_STATE26, FN_CC5_STATE34, 0, 0,
  3189. 0, 0, 0, 0,
  3190. /* IP1_24_23 [2] */
  3191. FN_MLB_DAT, FN_PWM4, FN_RX4, 0,
  3192. /* IP1_22_21 [2] */
  3193. FN_MLB_SIG, FN_PWM3, FN_TX4, 0,
  3194. /* IP1_20_19 [2] */
  3195. FN_MLB_CLK, FN_PWM2, FN_SCK4, 0,
  3196. /* IP1_18_15 [4] */
  3197. FN_EX_CS5, FN_SD1_DAT1, FN_MMC0_D1, FN_FD1,
  3198. FN_ATAWR0, FN_VI1_R6, FN_HRX1, FN_RX2_E,
  3199. FN_RX0_B, FN_SSI_WS9, 0, 0,
  3200. 0, 0, 0, 0,
  3201. /* IP1_14_11 [4] */
  3202. FN_EX_CS4, FN_SD1_DAT0, FN_MMC0_D0, FN_FD0,
  3203. FN_ATARD0, FN_VI1_R5, FN_SCK5_B, FN_HTX1,
  3204. FN_TX2_E, FN_TX0_B, FN_SSI_SCK9, 0,
  3205. 0, 0, 0, 0,
  3206. /* IP1_10_7 [4] */
  3207. FN_EX_CS3, FN_SD1_CMD, FN_MMC0_CMD, FN_FRE,
  3208. FN_ATACS10, FN_VI1_R4, FN_RX5_B, FN_HSCK1,
  3209. FN_SSI_SDATA8_B, FN_RTS0_B_TANS_B, FN_SSI_SDATA9, 0,
  3210. 0, 0, 0, 0,
  3211. /* IP1_6_4 [3] */
  3212. FN_EX_CS2, FN_SD1_CLK, FN_MMC0_CLK, FN_FALE,
  3213. FN_ATACS00, 0, 0, 0,
  3214. /* IP1_3_2 [2] */
  3215. FN_EX_CS1, FN_MMC0_D7, FN_FD7, 0,
  3216. /* IP1_1_0 [2] */
  3217. FN_EX_CS0, FN_RX3_C_IRDA_RX_C, FN_MMC0_D6, FN_FD6 }
  3218. },
  3219. { PINMUX_CFG_REG_VAR("IPSR2", 0xfffc0028, 32,
  3220. 1, 3, 1, 1, 1, 1, 1, 1, 3, 3, 4, 4, 4, 4) {
  3221. /* IP2_31 [1] */
  3222. 0, 0,
  3223. /* IP2_30_28 [3] */
  3224. FN_DU0_DG0, FN_LCDOUT8, FN_DREQ1, FN_SCL2,
  3225. FN_AUDATA2, 0, 0, 0,
  3226. /* IP2_27 [1] */
  3227. FN_DU0_DR7, FN_LCDOUT7,
  3228. /* IP2_26 [1] */
  3229. FN_DU0_DR6, FN_LCDOUT6,
  3230. /* IP2_25 [1] */
  3231. FN_DU0_DR5, FN_LCDOUT5,
  3232. /* IP2_24 [1] */
  3233. FN_DU0_DR4, FN_LCDOUT4,
  3234. /* IP2_23 [1] */
  3235. FN_DU0_DR3, FN_LCDOUT3,
  3236. /* IP2_22 [1] */
  3237. FN_DU0_DR2, FN_LCDOUT2,
  3238. /* IP2_21_19 [3] */
  3239. FN_DU0_DR1, FN_LCDOUT1, FN_DACK0, FN_DRACK0,
  3240. FN_GPS_SIGN_B, FN_AUDATA1, FN_RX5_C, 0,
  3241. /* IP2_18_16 [3] */
  3242. FN_DU0_DR0, FN_LCDOUT0, FN_DREQ0, FN_GPS_CLK_B,
  3243. FN_AUDATA0, FN_TX5_C, 0, 0,
  3244. /* IP2_15_12 [4] */
  3245. FN_HRTS0, FN_RTS1_TANS, FN_MDATA, FN_TX0_C,
  3246. FN_SUB_TMS, FN_CC5_STATE1, FN_CC5_STATE9, FN_CC5_STATE17,
  3247. FN_CC5_STATE25, FN_CC5_STATE33, 0, 0,
  3248. 0, 0, 0, 0,
  3249. /* IP2_11_8 [4] */
  3250. FN_HCTS0, FN_CTS1, FN_STM, FN_PWM0_D,
  3251. FN_RX0_C, FN_SCIF_CLK_C, FN_SUB_TRST, FN_TCLK1_B,
  3252. FN_CC5_OSCOUT, 0, 0, 0,
  3253. 0, 0, 0, 0,
  3254. /* IP2_7_4 [4] */
  3255. FN_HSCK0, FN_SCK1, FN_MTS, FN_PWM5,
  3256. FN_SCK0_C, FN_SSI_SDATA9_B, FN_SUB_TDO, FN_CC5_STATE0,
  3257. FN_CC5_STATE8, FN_CC5_STATE16, FN_CC5_STATE24, FN_CC5_STATE32,
  3258. 0, 0, 0, 0,
  3259. /* IP2_3_0 [4] */
  3260. FN_HRX0, FN_RX1, FN_SCKZ, FN_RTS0_C_TANS_C,
  3261. FN_SUB_TDI, FN_CC5_STATE3, FN_CC5_STATE11, FN_CC5_STATE19,
  3262. FN_CC5_STATE27, FN_CC5_STATE35, 0, 0,
  3263. 0, 0, 0, 0 }
  3264. },
  3265. { PINMUX_CFG_REG_VAR("IPSR3", 0xfffc002c, 32,
  3266. 3, 1, 1, 3, 1, 2, 1, 1, 1, 1, 1,
  3267. 1, 3, 3, 1, 1, 1, 1, 1, 1, 3) {
  3268. /* IP3_31_29 [3] */
  3269. FN_DU0_EXODDF_DU0_ODDF_DISP_CDE, FN_QCPV_QDE, FN_CAN1_TX, FN_TX2_C,
  3270. FN_SCL2_C, FN_REMOCON, 0, 0,
  3271. /* IP3_28 [1] */
  3272. FN_DU0_EXVSYNC_DU0_VSYNC, FN_QSTB_QHE,
  3273. /* IP3_27 [1] */
  3274. FN_DU0_EXHSYNC_DU0_HSYNC, FN_QSTH_QHS,
  3275. /* IP3_26_24 [3] */
  3276. FN_DU0_DOTCLKOUT1, FN_QSTVB_QVE, FN_RX3_D_IRDA_RX_D, FN_SDA3_B,
  3277. FN_SDA2_C, FN_DACK0_B, FN_DRACK0_B, 0,
  3278. /* IP3_23 [1] */
  3279. FN_DU0_DOTCLKOUT0, FN_QCLK,
  3280. /* IP3_22_21 [2] */
  3281. FN_DU0_DOTCLKIN, FN_QSTVA_QVS, FN_TX3_D_IRDA_TX_D, FN_SCL3_B,
  3282. /* IP3_20 [1] */
  3283. FN_DU0_DB7, FN_LCDOUT23,
  3284. /* IP3_19 [1] */
  3285. FN_DU0_DB6, FN_LCDOUT22,
  3286. /* IP3_18 [1] */
  3287. FN_DU0_DB5, FN_LCDOUT21,
  3288. /* IP3_17 [1] */
  3289. FN_DU0_DB4, FN_LCDOUT20,
  3290. /* IP3_16 [1] */
  3291. FN_DU0_DB3, FN_LCDOUT19,
  3292. /* IP3_15 [1] */
  3293. FN_DU0_DB2, FN_LCDOUT18,
  3294. /* IP3_14_12 [3] */
  3295. FN_DU0_DB1, FN_LCDOUT17, FN_EX_WAIT2, FN_SDA1,
  3296. FN_GPS_MAG_B, FN_AUDATA5, FN_SCK5_C, 0,
  3297. /* IP3_11_9 [3] */
  3298. FN_DU0_DB0, FN_LCDOUT16, FN_EX_WAIT1, FN_SCL1,
  3299. FN_TCLK1, FN_AUDATA4, 0, 0,
  3300. /* IP3_8 [1] */
  3301. FN_DU0_DG7, FN_LCDOUT15,
  3302. /* IP3_7 [1] */
  3303. FN_DU0_DG6, FN_LCDOUT14,
  3304. /* IP3_6 [1] */
  3305. FN_DU0_DG5, FN_LCDOUT13,
  3306. /* IP3_5 [1] */
  3307. FN_DU0_DG4, FN_LCDOUT12,
  3308. /* IP3_4 [1] */
  3309. FN_DU0_DG3, FN_LCDOUT11,
  3310. /* IP3_3 [1] */
  3311. FN_DU0_DG2, FN_LCDOUT10,
  3312. /* IP3_2_0 [3] */
  3313. FN_DU0_DG1, FN_LCDOUT9, FN_DACK1, FN_SDA2,
  3314. FN_AUDATA3, 0, 0, 0 }
  3315. },
  3316. { PINMUX_CFG_REG_VAR("IPSR4", 0xfffc0030, 32,
  3317. 3, 1, 1, 1, 1, 1, 1, 3, 3,
  3318. 1, 1, 1, 1, 1, 1, 3, 3, 3, 2) {
  3319. /* IP4_31_29 [3] */
  3320. FN_DU1_DB0, FN_VI2_DATA4_VI2_B4, FN_SCL2_B, FN_SD3_DAT0,
  3321. FN_TX5, FN_SCK0_D, 0, 0,
  3322. /* IP4_28 [1] */
  3323. FN_DU1_DG7, FN_VI2_R3,
  3324. /* IP4_27 [1] */
  3325. FN_DU1_DG6, FN_VI2_R2,
  3326. /* IP4_26 [1] */
  3327. FN_DU1_DG5, FN_VI2_R1,
  3328. /* IP4_25 [1] */
  3329. FN_DU1_DG4, FN_VI2_R0,
  3330. /* IP4_24 [1] */
  3331. FN_DU1_DG3, FN_VI2_G7,
  3332. /* IP4_23 [1] */
  3333. FN_DU1_DG2, FN_VI2_G6,
  3334. /* IP4_22_20 [3] */
  3335. FN_DU1_DG1, FN_VI2_DATA3_VI2_B3, FN_SDA1_B, FN_SD3_DAT3,
  3336. FN_SCK5, FN_AUDATA7, FN_RX0_D, 0,
  3337. /* IP4_19_17 [3] */
  3338. FN_DU1_DG0, FN_VI2_DATA2_VI2_B2, FN_SCL1_B, FN_SD3_DAT2,
  3339. FN_SCK3_E, FN_AUDATA6, FN_TX0_D, 0,
  3340. /* IP4_16 [1] */
  3341. FN_DU1_DR7, FN_VI2_G5,
  3342. /* IP4_15 [1] */
  3343. FN_DU1_DR6, FN_VI2_G4,
  3344. /* IP4_14 [1] */
  3345. FN_DU1_DR5, FN_VI2_G3,
  3346. /* IP4_13 [1] */
  3347. FN_DU1_DR4, FN_VI2_G2,
  3348. /* IP4_12 [1] */
  3349. FN_DU1_DR3, FN_VI2_G1,
  3350. /* IP4_11 [1] */
  3351. FN_DU1_DR2, FN_VI2_G0,
  3352. /* IP4_10_8 [3] */
  3353. FN_DU1_DR1, FN_VI2_DATA1_VI2_B1, FN_PWM0, FN_SD3_CMD,
  3354. FN_RX3_E_IRDA_RX_E, FN_AUDSYNC, FN_CTS0_D, 0,
  3355. /* IP4_7_5 [3] */
  3356. FN_DU1_DR0, FN_VI2_DATA0_VI2_B0, FN_PWM6, FN_SD3_CLK,
  3357. FN_TX3_E_IRDA_TX_E, FN_AUDCK, FN_PWMFSW0_B, 0,
  3358. /* IP4_4_2 [3] */
  3359. FN_DU0_CDE, FN_QPOLB, FN_CAN1_RX, FN_RX2_C,
  3360. FN_DREQ0_B, FN_SSI_SCK78_B, FN_SCK0_B, 0,
  3361. /* IP4_1_0 [2] */
  3362. FN_DU0_DISP, FN_QPOLA, FN_CAN_CLK_C, FN_SCK2_C }
  3363. },
  3364. { PINMUX_CFG_REG_VAR("IPSR5", 0xfffc0034, 32,
  3365. 1, 2, 1, 4, 3, 4, 2, 2,
  3366. 2, 2, 1, 1, 1, 1, 1, 1, 3) {
  3367. /* IP5_31 [1] */
  3368. 0, 0,
  3369. /* IP5_30_29 [2] */
  3370. FN_AUDIO_CLKB, FN_USB_OVC2, FN_CAN_DEBUGOUT0, FN_MOUT0,
  3371. /* IP5_28 [1] */
  3372. FN_AUDIO_CLKA, FN_CAN_TXCLK,
  3373. /* IP5_27_24 [4] */
  3374. FN_DU1_CDE, FN_VI2_DATA7_VI2_B7, FN_RX3_B_IRDA_RX_B, FN_SD3_WP,
  3375. FN_HSPI_RX1, FN_VI1_FIELD, FN_VI3_FIELD, FN_AUDIO_CLKOUT,
  3376. FN_RX2_D, FN_GPS_CLK_C, FN_GPS_CLK_D, 0,
  3377. 0, 0, 0, 0,
  3378. /* IP5_23_21 [3] */
  3379. FN_DU1_DISP, FN_VI2_DATA6_VI2_B6, FN_TCLK0, FN_QSTVA_B_QVS_B,
  3380. FN_HSPI_CLK1, FN_SCK2_D, FN_AUDIO_CLKOUT_B, FN_GPS_MAG_D,
  3381. /* IP5_20_17 [4] */
  3382. FN_DU1_EXODDF_DU1_ODDF_DISP_CDE, FN_VI2_CLK, FN_TX3_B_IRDA_TX_B,
  3383. FN_SD3_CD, FN_HSPI_TX1, FN_VI1_CLKENB, FN_VI3_CLKENB,
  3384. FN_AUDIO_CLKC, FN_TX2_D, FN_SPEEDIN, FN_GPS_SIGN_D, 0,
  3385. 0, 0, 0, 0,
  3386. /* IP5_16_15 [2] */
  3387. FN_DU1_EXVSYNC_DU1_VSYNC, FN_VI2_VSYNC, FN_VI3_VSYNC, 0,
  3388. /* IP5_14_13 [2] */
  3389. FN_DU1_EXHSYNC_DU1_HSYNC, FN_VI2_HSYNC, FN_VI3_HSYNC, 0,
  3390. /* IP5_12_11 [2] */
  3391. FN_DU1_DOTCLKOUT, FN_VI2_FIELD, FN_SDA1_D, 0,
  3392. /* IP5_10_9 [2] */
  3393. FN_DU1_DOTCLKIN, FN_VI2_CLKENB, FN_HSPI_CS1, FN_SCL1_D,
  3394. /* IP5_8 [1] */
  3395. FN_DU1_DB7, FN_SDA2_D,
  3396. /* IP5_7 [1] */
  3397. FN_DU1_DB6, FN_SCL2_D,
  3398. /* IP5_6 [1] */
  3399. FN_DU1_DB5, FN_VI2_R7,
  3400. /* IP5_5 [1] */
  3401. FN_DU1_DB4, FN_VI2_R6,
  3402. /* IP5_4 [1] */
  3403. FN_DU1_DB3, FN_VI2_R5,
  3404. /* IP5_3 [1] */
  3405. FN_DU1_DB2, FN_VI2_R4,
  3406. /* IP5_2_0 [3] */
  3407. FN_DU1_DB1, FN_VI2_DATA5_VI2_B5, FN_SDA2_B, FN_SD3_DAT1,
  3408. FN_RX5, FN_RTS0_D_TANS_D, 0, 0 }
  3409. },
  3410. { PINMUX_CFG_REG_VAR("IPSR6", 0xfffc0038, 32,
  3411. 1, 2, 2, 2, 2, 3, 2, 3, 3, 3, 1, 2, 2, 2, 2) {
  3412. /* IP6_31 [1] */
  3413. 0, 0,
  3414. /* IP6_30_29 [2] */
  3415. FN_SSI_SCK6, FN_ADICHS0, FN_CAN0_TX, FN_IERX_B,
  3416. /* IP_28_27 [2] */
  3417. 0, 0, 0, 0,
  3418. /* IP6_26_25 [2] */
  3419. FN_SSI_SDATA5, FN_ADIDATA, FN_CAN_DEBUGOUT12, FN_RX3_IRDA_RX,
  3420. /* IP6_24_23 [2] */
  3421. FN_SSI_WS5, FN_ADICS_SAMP, FN_CAN_DEBUGOUT11, FN_TX3_IRDA_TX,
  3422. /* IP6_22_20 [3] */
  3423. FN_SSI_SCK5, FN_ADICLK, FN_CAN_DEBUGOUT10, FN_SCK3,
  3424. FN_TCLK0_D, 0, 0, 0,
  3425. /* IP6_19_18 [2] */
  3426. FN_SSI_SDATA4, FN_CAN_DEBUGOUT9, FN_SSI_SDATA9_C, 0,
  3427. /* IP6_17_15 [3] */
  3428. FN_SSI_SDATA3, FN_PWM0_C, FN_CAN_DEBUGOUT8, FN_CAN_CLK_B,
  3429. FN_IECLK, FN_SCIF_CLK_B, FN_TCLK0_B, 0,
  3430. /* IP6_14_12 [3] */
  3431. FN_SSI_WS34, FN_CAN_DEBUGOUT7, FN_CAN0_RX_B, FN_IETX,
  3432. FN_SSI_WS9_C, 0, 0, 0,
  3433. /* IP6_11_9 [3] */
  3434. FN_SSI_SCK34, FN_CAN_DEBUGOUT6, FN_CAN0_TX_B, FN_IERX,
  3435. FN_SSI_SCK9_C, 0, 0, 0,
  3436. /* IP6_8 [1] */
  3437. FN_SSI_SDATA2, FN_CAN_DEBUGOUT5,
  3438. /* IP6_7_6 [2] */
  3439. FN_SSI_SDATA1, FN_CAN_DEBUGOUT4, FN_MOUT6, 0,
  3440. /* IP6_5_4 [2] */
  3441. FN_SSI_SDATA0, FN_CAN_DEBUGOUT3, FN_MOUT5, 0,
  3442. /* IP6_3_2 [2] */
  3443. FN_SSI_WS0129, FN_CAN_DEBUGOUT2, FN_MOUT2, 0,
  3444. /* IP6_1_0 [2] */
  3445. FN_SSI_SCK0129, FN_CAN_DEBUGOUT1, FN_MOUT1, 0 }
  3446. },
  3447. { PINMUX_CFG_REG_VAR("IPSR7", 0xfffc003c, 32,
  3448. 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 2, 2) {
  3449. /* IP7_31 [1] */
  3450. 0, 0,
  3451. /* IP7_30_29 [2] */
  3452. FN_SD0_WP, FN_DACK2, FN_CTS1_B, 0,
  3453. /* IP7_28_27 [2] */
  3454. FN_SD0_CD, FN_DREQ2, FN_RTS1_B_TANS_B, 0,
  3455. /* IP7_26_25 [2] */
  3456. FN_SD0_DAT3, FN_ATAWR1, FN_RX2_B, FN_CC5_TDI,
  3457. /* IP7_24_23 [2] */
  3458. FN_SD0_DAT2, FN_ATARD1, FN_TX2_B, FN_CC5_TCK,
  3459. /* IP7_22_21 [2] */
  3460. FN_SD0_DAT1, FN_ATAG1, FN_SCK2_B, FN_CC5_TMS,
  3461. /* IP7_20_19 [2] */
  3462. FN_SD0_DAT0, FN_ATADIR1, FN_RX1_B, FN_CC5_TRST,
  3463. /* IP7_18_17 [2] */
  3464. FN_SD0_CMD, FN_ATACS11, FN_TX1_B, FN_CC5_TDO,
  3465. /* IP7_16_15 [2] */
  3466. FN_SD0_CLK, FN_ATACS01, FN_SCK1_B, 0,
  3467. /* IP7_14_13 [2] */
  3468. FN_SSI_SDATA8, FN_VSP, FN_IRQ3_B, FN_HSPI_RX1_C,
  3469. /* IP7_12_10 [3] */
  3470. FN_SSI_SDATA7, FN_CAN_DEBUGOUT15, FN_IRQ2_B, FN_TCLK1_C,
  3471. FN_HSPI_TX1_C, 0, 0, 0,
  3472. /* IP7_9_7 [3] */
  3473. FN_SSI_WS78, FN_CAN_DEBUGOUT14, FN_IRQ1_B, FN_SSI_WS9_B,
  3474. FN_HSPI_CS1_C, 0, 0, 0,
  3475. /* IP7_6_4 [3] */
  3476. FN_SSI_SCK78, FN_CAN_DEBUGOUT13, FN_IRQ0_B, FN_SSI_SCK9_B,
  3477. FN_HSPI_CLK1_C, 0, 0, 0,
  3478. /* IP7_3_2 [2] */
  3479. FN_SSI_SDATA6, FN_ADICHS2, FN_CAN_CLK, FN_IECLK_B,
  3480. /* IP7_1_0 [2] */
  3481. FN_SSI_WS6, FN_ADICHS1, FN_CAN0_RX, FN_IETX_B }
  3482. },
  3483. { PINMUX_CFG_REG_VAR("IPSR8", 0xfffc0040, 32,
  3484. 1, 3, 3, 2, 2, 1, 1, 1, 2, 4, 4, 4, 4) {
  3485. /* IP8_31 [1] */
  3486. 0, 0,
  3487. /* IP8_30_28 [3] */
  3488. FN_VI0_VSYNC, FN_VI0_DATA1_B_VI0_B1_B, FN_RTS1_C_TANS_C, FN_RX4_D,
  3489. FN_PWMFSW0_C, 0, 0, 0,
  3490. /* IP8_27_25 [3] */
  3491. FN_VI0_HSYNC, FN_VI0_DATA0_B_VI0_B0_B, FN_CTS1_C, FN_TX4_D,
  3492. FN_MMC1_CMD, FN_HSCK1_B, 0, 0,
  3493. /* IP8_24_23 [2] */
  3494. FN_VI0_FIELD, FN_RX1_C, FN_HRX1_B, 0,
  3495. /* IP8_22_21 [2] */
  3496. FN_VI0_CLKENB, FN_TX1_C, FN_HTX1_B, FN_MT1_SYNC,
  3497. /* IP8_20 [1] */
  3498. FN_VI0_CLK, FN_MMC1_CLK,
  3499. /* IP8_19 [1] */
  3500. FN_FMIN, FN_RDS_DATA,
  3501. /* IP8_18 [1] */
  3502. FN_BPFCLK, FN_PCMWE,
  3503. /* IP8_17_16 [2] */
  3504. FN_FMCLK, FN_RDS_CLK, FN_PCMOE, 0,
  3505. /* IP8_15_12 [4] */
  3506. FN_HSPI_RX0, FN_RX0, FN_CAN_STEP0, FN_AD_NCS,
  3507. FN_CC5_STATE7, FN_CC5_STATE15, FN_CC5_STATE23, FN_CC5_STATE31,
  3508. FN_CC5_STATE39, 0, 0, 0,
  3509. 0, 0, 0, 0,
  3510. /* IP8_11_8 [4] */
  3511. FN_HSPI_TX0, FN_TX0, FN_CAN_DEBUG_HW_TRIGGER, FN_AD_DO,
  3512. FN_CC5_STATE6, FN_CC5_STATE14, FN_CC5_STATE22, FN_CC5_STATE30,
  3513. FN_CC5_STATE38, 0, 0, 0,
  3514. 0, 0, 0, 0,
  3515. /* IP8_7_4 [4] */
  3516. FN_HSPI_CS0, FN_RTS0_TANS, FN_USB_OVC1, FN_AD_DI,
  3517. FN_CC5_STATE5, FN_CC5_STATE13, FN_CC5_STATE21, FN_CC5_STATE29,
  3518. FN_CC5_STATE37, 0, 0, 0,
  3519. 0, 0, 0, 0,
  3520. /* IP8_3_0 [4] */
  3521. FN_HSPI_CLK0, FN_CTS0, FN_USB_OVC0, FN_AD_CLK,
  3522. FN_CC5_STATE4, FN_CC5_STATE12, FN_CC5_STATE20, FN_CC5_STATE28,
  3523. FN_CC5_STATE36, 0, 0, 0,
  3524. 0, 0, 0, 0 }
  3525. },
  3526. { PINMUX_CFG_REG_VAR("IPSR9", 0xfffc0044, 32,
  3527. 2, 2, 2, 2, 2, 3, 3, 2, 2,
  3528. 2, 2, 1, 1, 1, 1, 2, 2) {
  3529. /* IP9_31_30 [2] */
  3530. 0, 0, 0, 0,
  3531. /* IP9_29_28 [2] */
  3532. FN_VI0_G7, FN_ETH_RXD1, FN_SD2_DAT3_B, FN_ARM_TRACEDATA_9,
  3533. /* IP9_27_26 [2] */
  3534. FN_VI0_G6, FN_ETH_RXD0, FN_SD2_DAT2_B, FN_ARM_TRACEDATA_8,
  3535. /* IP9_25_24 [2] */
  3536. FN_VI0_G5, FN_ETH_RX_ER, FN_SD2_DAT1_B, FN_ARM_TRACEDATA_7,
  3537. /* IP9_23_22 [2] */
  3538. FN_VI0_G4, FN_ETH_TX_EN, FN_SD2_DAT0_B, FN_ARM_TRACEDATA_6,
  3539. /* IP9_21_19 [3] */
  3540. FN_VI0_G3, FN_ETH_CRS_DV, FN_MMC1_D7, FN_ARM_TRACEDATA_5,
  3541. FN_TS_SDAT0, 0, 0, 0,
  3542. /* IP9_18_16 [3] */
  3543. FN_VI0_G2, FN_ETH_TXD1, FN_MMC1_D6, FN_ARM_TRACEDATA_4,
  3544. FN_TS_SPSYNC0, 0, 0, 0,
  3545. /* IP9_15_14 [2] */
  3546. FN_VI0_G1, FN_SSI_WS78_C, FN_IRQ1, FN_ARM_TRACEDATA_3,
  3547. /* IP9_13_12 [2] */
  3548. FN_VI0_G0, FN_SSI_SCK78_C, FN_IRQ0, FN_ARM_TRACEDATA_2,
  3549. /* IP9_11_10 [2] */
  3550. FN_VI0_DATA7_VI0_B7, FN_MMC1_D5, FN_ARM_TRACEDATA_1, 0,
  3551. /* IP9_9_8 [2] */
  3552. FN_VI0_DATA6_VI0_B6, FN_MMC1_D4, FN_ARM_TRACEDATA_0, 0,
  3553. /* IP9_7 [1] */
  3554. FN_VI0_DATA5_VI0_B5, FN_MMC1_D3,
  3555. /* IP9_6 [1] */
  3556. FN_VI0_DATA4_VI0_B4, FN_MMC1_D2,
  3557. /* IP9_5 [1] */
  3558. FN_VI0_DATA3_VI0_B3, FN_MMC1_D1,
  3559. /* IP9_4 [1] */
  3560. FN_VI0_DATA2_VI0_B2, FN_MMC1_D0,
  3561. /* IP9_3_2 [2] */
  3562. FN_VI0_DATA1_VI0_B1, FN_HCTS1_B, FN_MT1_PWM, 0,
  3563. /* IP9_1_0 [2] */
  3564. FN_VI0_DATA0_VI0_B0, FN_HRTS1_B, FN_MT1_VCXO, 0 }
  3565. },
  3566. { PINMUX_CFG_REG_VAR("IPSR10", 0xfffc0048, 32,
  3567. 3, 3, 2, 3, 3, 3, 3, 3, 3, 3, 3) {
  3568. /* IP10_31_29 [3] */
  3569. FN_VI1_VSYNC, FN_AUDIO_CLKOUT_C, FN_SSI_WS4, FN_SIM_CLK,
  3570. FN_GPS_MAG_C, FN_SPV_TRST, FN_SCL3, 0,
  3571. /* IP10_28_26 [3] */
  3572. FN_VI1_HSYNC, FN_VI3_CLK, FN_SSI_SCK4, FN_GPS_SIGN_C,
  3573. FN_PWMFSW0_E, 0, 0, 0,
  3574. /* IP10_25_24 [2] */
  3575. FN_VI1_CLK, FN_SIM_D, FN_SDA3, 0,
  3576. /* IP10_23_21 [3] */
  3577. FN_VI0_R7, FN_ETH_MDIO, FN_DACK2_C, FN_HSPI_RX1_B,
  3578. FN_SCIF_CLK_D, FN_TRACECTL, FN_MT1_PEN, 0,
  3579. /* IP10_20_18 [3] */
  3580. FN_VI0_R6, FN_ETH_MDC, FN_DREQ2_C, FN_HSPI_TX1_B,
  3581. FN_TRACECLK, FN_MT1_BEN, FN_PWMFSW0_D, 0,
  3582. /* IP10_17_15 [3] */
  3583. FN_VI0_R5, FN_ETH_TXD0, FN_SD2_WP_B, FN_HSPI_CS1_B,
  3584. FN_ARM_TRACEDATA_15, FN_MT1_D, FN_TS_SDEN0, 0,
  3585. /* IP10_14_12 [3] */
  3586. FN_VI0_R4, FN_ETH_REFCLK, FN_SD2_CD_B, FN_HSPI_CLK1_B,
  3587. FN_ARM_TRACEDATA_14, FN_MT1_CLK, FN_TS_SCK0, 0,
  3588. /* IP10_11_9 [3] */
  3589. FN_VI0_R3, FN_ETH_MAGIC, FN_SD2_CMD_B, FN_IRQ3,
  3590. FN_ARM_TRACEDATA_13, 0, 0, 0,
  3591. /* IP10_8_6 [3] */
  3592. FN_VI0_R2, FN_ETH_LINK, FN_SD2_CLK_B, FN_IRQ2,
  3593. FN_ARM_TRACEDATA_12, 0, 0, 0,
  3594. /* IP10_5_3 [3] */
  3595. FN_VI0_R1, FN_SSI_SDATA8_C, FN_DACK1_B, FN_ARM_TRACEDATA_11,
  3596. FN_DACK0_C, FN_DRACK0_C, 0, 0,
  3597. /* IP10_2_0 [3] */
  3598. FN_VI0_R0, FN_SSI_SDATA7_C, FN_SCK1_C, FN_DREQ1_B,
  3599. FN_ARM_TRACEDATA_10, FN_DREQ0_C, 0, 0 }
  3600. },
  3601. { PINMUX_CFG_REG_VAR("IPSR11", 0xfffc004c, 32,
  3602. 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3) {
  3603. /* IP11_31_30 [2] */
  3604. 0, 0, 0, 0,
  3605. /* IP11_29_27 [3] */
  3606. FN_VI1_G1, FN_VI3_DATA1, FN_SSI_SCK1, FN_TS_SDEN1,
  3607. FN_DACK2_B, FN_RX2, FN_HRTS0_B, 0,
  3608. /* IP11_26_24 [3] */
  3609. FN_VI1_G0, FN_VI3_DATA0, 0, FN_TS_SCK1,
  3610. FN_DREQ2_B, FN_TX2, FN_SPA_TDO, FN_HCTS0_B,
  3611. /* IP11_23_21 [3] */
  3612. FN_VI1_DATA7_VI1_B7, FN_SD2_WP, FN_MT0_PWM, FN_SPA_TDI,
  3613. FN_HSPI_RX1_D, 0, 0, 0,
  3614. /* IP11_20_18 [3] */
  3615. FN_VI1_DATA6_VI1_B6, FN_SD2_CD, FN_MT0_VCXO, FN_SPA_TMS,
  3616. FN_HSPI_TX1_D, 0, 0, 0,
  3617. /* IP11_17_15 [3] */
  3618. FN_VI1_DATA5_VI1_B5, FN_SD2_CMD, FN_MT0_SYNC, FN_SPA_TCK,
  3619. FN_HSPI_CS1_D, FN_ADICHS2_B, 0, 0,
  3620. /* IP11_14_12 [3] */
  3621. FN_VI1_DATA4_VI1_B4, FN_SD2_CLK, FN_MT0_PEN, FN_SPA_TRST,
  3622. FN_HSPI_CLK1_D, FN_ADICHS1_B, 0, 0,
  3623. /* IP11_11_9 [3] */
  3624. FN_VI1_DATA3_VI1_B3, FN_SD2_DAT3, FN_MT0_BEN, FN_SPV_TDO,
  3625. FN_ADICHS0_B, 0, 0, 0,
  3626. /* IP11_8_6 [3] */
  3627. FN_VI1_DATA2_VI1_B2, FN_SD2_DAT2, FN_MT0_D, FN_SPVTDI,
  3628. FN_ADIDATA_B, 0, 0, 0,
  3629. /* IP11_5_3 [3] */
  3630. FN_VI1_DATA1_VI1_B1, FN_SD2_DAT1, FN_MT0_CLK, FN_SPV_TMS,
  3631. FN_ADICS_B_SAMP_B, 0, 0, 0,
  3632. /* IP11_2_0 [3] */
  3633. FN_VI1_DATA0_VI1_B0, FN_SD2_DAT0, FN_SIM_RST, FN_SPV_TCK,
  3634. FN_ADICLK_B, 0, 0, 0 }
  3635. },
  3636. { PINMUX_CFG_REG_VAR("IPSR12", 0xfffc0050, 32,
  3637. 4, 4, 4, 2, 3, 3, 3, 3, 3, 3) {
  3638. /* IP12_31_28 [4] */
  3639. 0, 0, 0, 0, 0, 0, 0, 0,
  3640. 0, 0, 0, 0, 0, 0, 0, 0,
  3641. /* IP12_27_24 [4] */
  3642. 0, 0, 0, 0, 0, 0, 0, 0,
  3643. 0, 0, 0, 0, 0, 0, 0, 0,
  3644. /* IP12_23_20 [4] */
  3645. 0, 0, 0, 0, 0, 0, 0, 0,
  3646. 0, 0, 0, 0, 0, 0, 0, 0,
  3647. /* IP12_19_18 [2] */
  3648. 0, 0, 0, 0,
  3649. /* IP12_17_15 [3] */
  3650. FN_VI1_G7, FN_VI3_DATA7, FN_GPS_MAG, FN_FCE,
  3651. FN_SCK4_B, 0, 0, 0,
  3652. /* IP12_14_12 [3] */
  3653. FN_VI1_G6, FN_VI3_DATA6, FN_GPS_SIGN, FN_FRB,
  3654. FN_RX4_B, FN_SIM_CLK_B, 0, 0,
  3655. /* IP12_11_9 [3] */
  3656. FN_VI1_G5, FN_VI3_DATA5, FN_GPS_CLK, FN_FSE,
  3657. FN_TX4_B, FN_SIM_D_B, 0, 0,
  3658. /* IP12_8_6 [3] */
  3659. FN_VI1_G4, FN_VI3_DATA4, FN_SSI_WS2, FN_SDA1_C,
  3660. FN_SIM_RST_B, FN_HRX0_B, 0, 0,
  3661. /* IP12_5_3 [3] */
  3662. FN_VI1_G3, FN_VI3_DATA3, FN_SSI_SCK2, FN_TS_SDAT1,
  3663. FN_SCL1_C, FN_HTX0_B, 0, 0,
  3664. /* IP12_2_0 [3] */
  3665. FN_VI1_G2, FN_VI3_DATA2, FN_SSI_WS1, FN_TS_SPSYNC1,
  3666. FN_SCK2, FN_HSCK0_B, 0, 0 }
  3667. },
  3668. { PINMUX_CFG_REG_VAR("MOD_SEL", 0xfffc0090, 32,
  3669. 2, 2, 3, 3, 2, 2, 2, 2, 2,
  3670. 1, 1, 1, 1, 1, 1, 1, 2, 1, 2) {
  3671. /* SEL_SCIF5 [2] */
  3672. FN_SEL_SCIF5_0, FN_SEL_SCIF5_1, FN_SEL_SCIF5_2, FN_SEL_SCIF5_3,
  3673. /* SEL_SCIF4 [2] */
  3674. FN_SEL_SCIF4_0, FN_SEL_SCIF4_1, FN_SEL_SCIF4_2, FN_SEL_SCIF4_3,
  3675. /* SEL_SCIF3 [3] */
  3676. FN_SEL_SCIF3_0, FN_SEL_SCIF3_1, FN_SEL_SCIF3_2, FN_SEL_SCIF3_3,
  3677. FN_SEL_SCIF3_4, 0, 0, 0,
  3678. /* SEL_SCIF2 [3] */
  3679. FN_SEL_SCIF2_0, FN_SEL_SCIF2_1, FN_SEL_SCIF2_2, FN_SEL_SCIF2_3,
  3680. FN_SEL_SCIF2_4, 0, 0, 0,
  3681. /* SEL_SCIF1 [2] */
  3682. FN_SEL_SCIF1_0, FN_SEL_SCIF1_1, FN_SEL_SCIF1_2, 0,
  3683. /* SEL_SCIF0 [2] */
  3684. FN_SEL_SCIF0_0, FN_SEL_SCIF0_1, FN_SEL_SCIF0_2, FN_SEL_SCIF0_3,
  3685. /* SEL_SSI9 [2] */
  3686. FN_SEL_SSI9_0, FN_SEL_SSI9_1, FN_SEL_SSI9_2, 0,
  3687. /* SEL_SSI8 [2] */
  3688. FN_SEL_SSI8_0, FN_SEL_SSI8_1, FN_SEL_SSI8_2, 0,
  3689. /* SEL_SSI7 [2] */
  3690. FN_SEL_SSI7_0, FN_SEL_SSI7_1, FN_SEL_SSI7_2, 0,
  3691. /* SEL_VI0 [1] */
  3692. FN_SEL_VI0_0, FN_SEL_VI0_1,
  3693. /* SEL_SD2 [1] */
  3694. FN_SEL_SD2_0, FN_SEL_SD2_1,
  3695. /* SEL_INT3 [1] */
  3696. FN_SEL_INT3_0, FN_SEL_INT3_1,
  3697. /* SEL_INT2 [1] */
  3698. FN_SEL_INT2_0, FN_SEL_INT2_1,
  3699. /* SEL_INT1 [1] */
  3700. FN_SEL_INT1_0, FN_SEL_INT1_1,
  3701. /* SEL_INT0 [1] */
  3702. FN_SEL_INT0_0, FN_SEL_INT0_1,
  3703. /* SEL_IE [1] */
  3704. FN_SEL_IE_0, FN_SEL_IE_1,
  3705. /* SEL_EXBUS2 [2] */
  3706. FN_SEL_EXBUS2_0, FN_SEL_EXBUS2_1, FN_SEL_EXBUS2_2, 0,
  3707. /* SEL_EXBUS1 [1] */
  3708. FN_SEL_EXBUS1_0, FN_SEL_EXBUS1_1,
  3709. /* SEL_EXBUS0 [2] */
  3710. FN_SEL_EXBUS0_0, FN_SEL_EXBUS0_1, FN_SEL_EXBUS0_2, 0 }
  3711. },
  3712. { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xfffc0094, 32,
  3713. 2, 2, 2, 2, 1, 1, 1, 3, 1,
  3714. 2, 2, 2, 2, 1, 1, 2, 1, 2, 2) {
  3715. /* SEL_TMU1 [2] */
  3716. FN_SEL_TMU1_0, FN_SEL_TMU1_1, FN_SEL_TMU1_2, 0,
  3717. /* SEL_TMU0 [2] */
  3718. FN_SEL_TMU0_0, FN_SEL_TMU0_1, FN_SEL_TMU0_2, FN_SEL_TMU0_3,
  3719. /* SEL_SCIF [2] */
  3720. FN_SEL_SCIF_0, FN_SEL_SCIF_1, FN_SEL_SCIF_2, FN_SEL_SCIF_3,
  3721. /* SEL_CANCLK [2] */
  3722. FN_SEL_CANCLK_0, FN_SEL_CANCLK_1, FN_SEL_CANCLK_2, 0,
  3723. /* SEL_CAN0 [1] */
  3724. FN_SEL_CAN0_0, FN_SEL_CAN0_1,
  3725. /* SEL_HSCIF1 [1] */
  3726. FN_SEL_HSCIF1_0, FN_SEL_HSCIF1_1,
  3727. /* SEL_HSCIF0 [1] */
  3728. FN_SEL_HSCIF0_0, FN_SEL_HSCIF0_1,
  3729. /* SEL_PWMFSW [3] */
  3730. FN_SEL_PWMFSW_0, FN_SEL_PWMFSW_1, FN_SEL_PWMFSW_2,
  3731. FN_SEL_PWMFSW_3, FN_SEL_PWMFSW_4, 0, 0, 0,
  3732. /* SEL_ADI [1] */
  3733. FN_SEL_ADI_0, FN_SEL_ADI_1,
  3734. /* [2] */
  3735. 0, 0, 0, 0,
  3736. /* [2] */
  3737. 0, 0, 0, 0,
  3738. /* [2] */
  3739. 0, 0, 0, 0,
  3740. /* SEL_GPS [2] */
  3741. FN_SEL_GPS_0, FN_SEL_GPS_1, FN_SEL_GPS_2, FN_SEL_GPS_3,
  3742. /* SEL_SIM [1] */
  3743. FN_SEL_SIM_0, FN_SEL_SIM_1,
  3744. /* SEL_HSPI2 [1] */
  3745. FN_SEL_HSPI2_0, FN_SEL_HSPI2_1,
  3746. /* SEL_HSPI1 [2] */
  3747. FN_SEL_HSPI1_0, FN_SEL_HSPI1_1, FN_SEL_HSPI1_2, FN_SEL_HSPI1_3,
  3748. /* SEL_I2C3 [1] */
  3749. FN_SEL_I2C3_0, FN_SEL_I2C3_1,
  3750. /* SEL_I2C2 [2] */
  3751. FN_SEL_I2C2_0, FN_SEL_I2C2_1, FN_SEL_I2C2_2, FN_SEL_I2C2_3,
  3752. /* SEL_I2C1 [2] */
  3753. FN_SEL_I2C1_0, FN_SEL_I2C1_1, FN_SEL_I2C1_2, FN_SEL_I2C1_3 }
  3754. },
  3755. { },
  3756. };
  3757. const struct sh_pfc_soc_info r8a7779_pinmux_info = {
  3758. .name = "r8a7779_pfc",
  3759. .unlock_reg = 0xfffc0000, /* PMMR */
  3760. .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
  3761. .pins = pinmux_pins,
  3762. .nr_pins = ARRAY_SIZE(pinmux_pins),
  3763. .groups = pinmux_groups,
  3764. .nr_groups = ARRAY_SIZE(pinmux_groups),
  3765. .functions = pinmux_functions,
  3766. .nr_functions = ARRAY_SIZE(pinmux_functions),
  3767. .cfg_regs = pinmux_config_regs,
  3768. .pinmux_data = pinmux_data,
  3769. .pinmux_data_size = ARRAY_SIZE(pinmux_data),
  3770. };