pfc-r8a7795.c 107 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816
  1. /*
  2. * R-Car Gen3 processor support - PFC hardware block.
  3. *
  4. * Copyright (C) 2015 Renesas Electronics Corporation
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; version 2 of the License.
  9. */
  10. #include <linux/kernel.h>
  11. #include "core.h"
  12. #include "sh_pfc.h"
  13. #define PORT_GP_3(bank, fn, sfx) \
  14. PORT_GP_1(bank, 0, fn, sfx), PORT_GP_1(bank, 1, fn, sfx), \
  15. PORT_GP_1(bank, 2, fn, sfx), PORT_GP_1(bank, 3, fn, sfx)
  16. #define PORT_GP_14(bank, fn, sfx) \
  17. PORT_GP_3(bank, fn, sfx), \
  18. PORT_GP_1(bank, 4, fn, sfx), PORT_GP_1(bank, 5, fn, sfx), \
  19. PORT_GP_1(bank, 6, fn, sfx), PORT_GP_1(bank, 7, fn, sfx), \
  20. PORT_GP_1(bank, 8, fn, sfx), PORT_GP_1(bank, 9, fn, sfx), \
  21. PORT_GP_1(bank, 10, fn, sfx), PORT_GP_1(bank, 11, fn, sfx), \
  22. PORT_GP_1(bank, 12, fn, sfx), PORT_GP_1(bank, 13, fn, sfx), \
  23. PORT_GP_1(bank, 14, fn, sfx)
  24. #define PORT_GP_15(bank, fn, sfx) \
  25. PORT_GP_14(bank, fn, sfx), PORT_GP_1(bank, 15, fn, sfx)
  26. #define PORT_GP_17(bank, fn, sfx) \
  27. PORT_GP_15(bank, fn, sfx), \
  28. PORT_GP_1(bank, 16, fn, sfx), PORT_GP_1(bank, 17, fn, sfx)
  29. #define PORT_GP_25(bank, fn, sfx) \
  30. PORT_GP_17(bank, fn, sfx), \
  31. PORT_GP_1(bank, 18, fn, sfx), PORT_GP_1(bank, 19, fn, sfx), \
  32. PORT_GP_1(bank, 20, fn, sfx), PORT_GP_1(bank, 21, fn, sfx), \
  33. PORT_GP_1(bank, 22, fn, sfx), PORT_GP_1(bank, 23, fn, sfx), \
  34. PORT_GP_1(bank, 24, fn, sfx), PORT_GP_1(bank, 25, fn, sfx)
  35. #define PORT_GP_27(bank, fn, sfx) \
  36. PORT_GP_25(bank, fn, sfx), \
  37. PORT_GP_1(bank, 26, fn, sfx), PORT_GP_1(bank, 27, fn, sfx)
  38. #define CPU_ALL_PORT(fn, sfx) \
  39. PORT_GP_15(0, fn, sfx), \
  40. PORT_GP_27(1, fn, sfx), \
  41. PORT_GP_14(2, fn, sfx), \
  42. PORT_GP_15(3, fn, sfx), \
  43. PORT_GP_17(4, fn, sfx), \
  44. PORT_GP_25(5, fn, sfx), \
  45. PORT_GP_32(6, fn, sfx), \
  46. PORT_GP_3(7, fn, sfx)
  47. /*
  48. * F_() : just information
  49. * FM() : macro for FN_xxx / xxx_MARK
  50. */
  51. /* GPSR0 */
  52. #define GPSR0_15 F_(D15, IP7_11_8)
  53. #define GPSR0_14 F_(D14, IP7_7_4)
  54. #define GPSR0_13 F_(D13, IP7_3_0)
  55. #define GPSR0_12 F_(D12, IP6_31_28)
  56. #define GPSR0_11 F_(D11, IP6_27_24)
  57. #define GPSR0_10 F_(D10, IP6_23_20)
  58. #define GPSR0_9 F_(D9, IP6_19_16)
  59. #define GPSR0_8 F_(D8, IP6_15_12)
  60. #define GPSR0_7 F_(D7, IP6_11_8)
  61. #define GPSR0_6 F_(D6, IP6_7_4)
  62. #define GPSR0_5 F_(D5, IP6_3_0)
  63. #define GPSR0_4 F_(D4, IP5_31_28)
  64. #define GPSR0_3 F_(D3, IP5_27_24)
  65. #define GPSR0_2 F_(D2, IP5_23_20)
  66. #define GPSR0_1 F_(D1, IP5_19_16)
  67. #define GPSR0_0 F_(D0, IP5_15_12)
  68. /* GPSR1 */
  69. #define GPSR1_27 F_(EX_WAIT0_A, IP5_11_8)
  70. #define GPSR1_26 F_(WE1_N, IP5_7_4)
  71. #define GPSR1_25 F_(WE0_N, IP5_3_0)
  72. #define GPSR1_24 F_(RD_WR_N, IP4_31_28)
  73. #define GPSR1_23 F_(RD_N, IP4_27_24)
  74. #define GPSR1_22 F_(BS_N, IP4_23_20)
  75. #define GPSR1_21 F_(CS1_N_A26, IP4_19_16)
  76. #define GPSR1_20 F_(CS0_N, IP4_15_12)
  77. #define GPSR1_19 F_(A19, IP4_11_8)
  78. #define GPSR1_18 F_(A18, IP4_7_4)
  79. #define GPSR1_17 F_(A17, IP4_3_0)
  80. #define GPSR1_16 F_(A16, IP3_31_28)
  81. #define GPSR1_15 F_(A15, IP3_27_24)
  82. #define GPSR1_14 F_(A14, IP3_23_20)
  83. #define GPSR1_13 F_(A13, IP3_19_16)
  84. #define GPSR1_12 F_(A12, IP3_15_12)
  85. #define GPSR1_11 F_(A11, IP3_11_8)
  86. #define GPSR1_10 F_(A10, IP3_7_4)
  87. #define GPSR1_9 F_(A9, IP3_3_0)
  88. #define GPSR1_8 F_(A8, IP2_31_28)
  89. #define GPSR1_7 F_(A7, IP2_27_24)
  90. #define GPSR1_6 F_(A6, IP2_23_20)
  91. #define GPSR1_5 F_(A5, IP2_19_16)
  92. #define GPSR1_4 F_(A4, IP2_15_12)
  93. #define GPSR1_3 F_(A3, IP2_11_8)
  94. #define GPSR1_2 F_(A2, IP2_7_4)
  95. #define GPSR1_1 F_(A1, IP2_3_0)
  96. #define GPSR1_0 F_(A0, IP1_31_28)
  97. /* GPSR2 */
  98. #define GPSR2_14 F_(AVB_AVTP_CAPTURE_A, IP0_23_20)
  99. #define GPSR2_13 F_(AVB_AVTP_MATCH_A, IP0_19_16)
  100. #define GPSR2_12 F_(AVB_LINK, IP0_15_12)
  101. #define GPSR2_11 F_(AVB_PHY_INT, IP0_11_8)
  102. #define GPSR2_10 F_(AVB_MAGIC, IP0_7_4)
  103. #define GPSR2_9 F_(AVB_MDC, IP0_3_0)
  104. #define GPSR2_8 F_(PWM2_A, IP1_27_24)
  105. #define GPSR2_7 F_(PWM1_A, IP1_23_20)
  106. #define GPSR2_6 F_(PWM0, IP1_19_16)
  107. #define GPSR2_5 F_(IRQ5, IP1_15_12)
  108. #define GPSR2_4 F_(IRQ4, IP1_11_8)
  109. #define GPSR2_3 F_(IRQ3, IP1_7_4)
  110. #define GPSR2_2 F_(IRQ2, IP1_3_0)
  111. #define GPSR2_1 F_(IRQ1, IP0_31_28)
  112. #define GPSR2_0 F_(IRQ0, IP0_27_24)
  113. /* GPSR3 */
  114. #define GPSR3_15 F_(SD1_WP, IP10_23_20)
  115. #define GPSR3_14 F_(SD1_CD, IP10_19_16)
  116. #define GPSR3_13 F_(SD0_WP, IP10_15_12)
  117. #define GPSR3_12 F_(SD0_CD, IP10_11_8)
  118. #define GPSR3_11 F_(SD1_DAT3, IP8_31_28)
  119. #define GPSR3_10 F_(SD1_DAT2, IP8_27_24)
  120. #define GPSR3_9 F_(SD1_DAT1, IP8_23_20)
  121. #define GPSR3_8 F_(SD1_DAT0, IP8_19_16)
  122. #define GPSR3_7 F_(SD1_CMD, IP8_15_12)
  123. #define GPSR3_6 F_(SD1_CLK, IP8_11_8)
  124. #define GPSR3_5 F_(SD0_DAT3, IP8_7_4)
  125. #define GPSR3_4 F_(SD0_DAT2, IP8_3_0)
  126. #define GPSR3_3 F_(SD0_DAT1, IP7_31_28)
  127. #define GPSR3_2 F_(SD0_DAT0, IP7_27_24)
  128. #define GPSR3_1 F_(SD0_CMD, IP7_23_20)
  129. #define GPSR3_0 F_(SD0_CLK, IP7_19_16)
  130. /* GPSR4 */
  131. #define GPSR4_17 FM(SD3_DS)
  132. #define GPSR4_16 F_(SD3_DAT7, IP10_7_4)
  133. #define GPSR4_15 F_(SD3_DAT6, IP10_3_0)
  134. #define GPSR4_14 F_(SD3_DAT5, IP9_31_28)
  135. #define GPSR4_13 F_(SD3_DAT4, IP9_27_24)
  136. #define GPSR4_12 FM(SD3_DAT3)
  137. #define GPSR4_11 FM(SD3_DAT2)
  138. #define GPSR4_10 FM(SD3_DAT1)
  139. #define GPSR4_9 FM(SD3_DAT0)
  140. #define GPSR4_8 FM(SD3_CMD)
  141. #define GPSR4_7 FM(SD3_CLK)
  142. #define GPSR4_6 F_(SD2_DS, IP9_23_20)
  143. #define GPSR4_5 F_(SD2_DAT3, IP9_19_16)
  144. #define GPSR4_4 F_(SD2_DAT2, IP9_15_12)
  145. #define GPSR4_3 F_(SD2_DAT1, IP9_11_8)
  146. #define GPSR4_2 F_(SD2_DAT0, IP9_7_4)
  147. #define GPSR4_1 FM(SD2_CMD)
  148. #define GPSR4_0 F_(SD2_CLK, IP9_3_0)
  149. /* GPSR5 */
  150. #define GPSR5_25 F_(MLB_DAT, IP13_19_16)
  151. #define GPSR5_24 F_(MLB_SIG, IP13_15_12)
  152. #define GPSR5_23 F_(MLB_CLK, IP13_11_8)
  153. #define GPSR5_22 FM(MSIOF0_RXD)
  154. #define GPSR5_21 F_(MSIOF0_SS2, IP13_7_4)
  155. #define GPSR5_20 FM(MSIOF0_TXD)
  156. #define GPSR5_19 F_(MSIOF0_SS1, IP13_3_0)
  157. #define GPSR5_18 F_(MSIOF0_SYNC, IP12_31_28)
  158. #define GPSR5_17 FM(MSIOF0_SCK)
  159. #define GPSR5_16 F_(HRTS0_N, IP12_27_24)
  160. #define GPSR5_15 F_(HCTS0_N, IP12_23_20)
  161. #define GPSR5_14 F_(HTX0, IP12_19_16)
  162. #define GPSR5_13 F_(HRX0, IP12_15_12)
  163. #define GPSR5_12 F_(HSCK0, IP12_11_8)
  164. #define GPSR5_11 F_(RX2_A, IP12_7_4)
  165. #define GPSR5_10 F_(TX2_A, IP12_3_0)
  166. #define GPSR5_9 F_(SCK2, IP11_31_28)
  167. #define GPSR5_8 F_(RTS1_N_TANS, IP11_27_24)
  168. #define GPSR5_7 F_(CTS1_N, IP11_23_20)
  169. #define GPSR5_6 F_(TX1_A, IP11_19_16)
  170. #define GPSR5_5 F_(RX1_A, IP11_15_12)
  171. #define GPSR5_4 F_(RTS0_N_TANS, IP11_11_8)
  172. #define GPSR5_3 F_(CTS0_N, IP11_7_4)
  173. #define GPSR5_2 F_(TX0, IP11_3_0)
  174. #define GPSR5_1 F_(RX0, IP10_31_28)
  175. #define GPSR5_0 F_(SCK0, IP10_27_24)
  176. /* GPSR6 */
  177. #define GPSR6_31 F_(USB31_OVC, IP17_7_4)
  178. #define GPSR6_30 F_(USB31_PWEN, IP17_3_0)
  179. #define GPSR6_29 F_(USB30_OVC, IP16_31_28)
  180. #define GPSR6_28 F_(USB30_PWEN, IP16_27_24)
  181. #define GPSR6_27 F_(USB1_OVC, IP16_23_20)
  182. #define GPSR6_26 F_(USB1_PWEN, IP16_19_16)
  183. #define GPSR6_25 F_(USB0_OVC, IP16_15_12)
  184. #define GPSR6_24 F_(USB0_PWEN, IP16_11_8)
  185. #define GPSR6_23 F_(AUDIO_CLKB_B, IP16_7_4)
  186. #define GPSR6_22 F_(AUDIO_CLKA_A, IP16_3_0)
  187. #define GPSR6_21 F_(SSI_SDATA9_A, IP15_31_28)
  188. #define GPSR6_20 F_(SSI_SDATA8, IP15_27_24)
  189. #define GPSR6_19 F_(SSI_SDATA7, IP15_23_20)
  190. #define GPSR6_18 F_(SSI_WS78, IP15_19_16)
  191. #define GPSR6_17 F_(SSI_SCK78, IP15_15_12)
  192. #define GPSR6_16 F_(SSI_SDATA6, IP15_11_8)
  193. #define GPSR6_15 F_(SSI_WS6, IP15_7_4)
  194. #define GPSR6_14 F_(SSI_SCK6, IP15_3_0)
  195. #define GPSR6_13 FM(SSI_SDATA5)
  196. #define GPSR6_12 FM(SSI_WS5)
  197. #define GPSR6_11 FM(SSI_SCK5)
  198. #define GPSR6_10 F_(SSI_SDATA4, IP14_31_28)
  199. #define GPSR6_9 F_(SSI_WS4, IP14_27_24)
  200. #define GPSR6_8 F_(SSI_SCK4, IP14_23_20)
  201. #define GPSR6_7 F_(SSI_SDATA3, IP14_19_16)
  202. #define GPSR6_6 F_(SSI_WS34, IP14_15_12)
  203. #define GPSR6_5 F_(SSI_SCK34, IP14_11_8)
  204. #define GPSR6_4 F_(SSI_SDATA2_A, IP14_7_4)
  205. #define GPSR6_3 F_(SSI_SDATA1_A, IP14_3_0)
  206. #define GPSR6_2 F_(SSI_SDATA0, IP13_31_28)
  207. #define GPSR6_1 F_(SSI_WS0129, IP13_27_24)
  208. #define GPSR6_0 F_(SSI_SCK0129, IP13_23_20)
  209. /* GPSR7 */
  210. #define GPSR7_3 FM(HDMI1_CEC)
  211. #define GPSR7_2 FM(HDMI0_CEC)
  212. #define GPSR7_1 FM(AVS2)
  213. #define GPSR7_0 FM(AVS1)
  214. /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
  215. #define IP0_3_0 FM(AVB_MDC) F_(0, 0) FM(MSIOF2_SS2_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  216. #define IP0_7_4 FM(AVB_MAGIC) F_(0, 0) FM(MSIOF2_SS1_C) FM(SCK4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  217. #define IP0_11_8 FM(AVB_PHY_INT) F_(0, 0) FM(MSIOF2_SYNC_C) FM(RX4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  218. #define IP0_15_12 FM(AVB_LINK) F_(0, 0) FM(MSIOF2_SCK_C) FM(TX4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  219. #define IP0_19_16 FM(AVB_AVTP_MATCH_A) F_(0, 0) FM(MSIOF2_RXD_C) FM(CTS4_N_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  220. #define IP0_23_20 FM(AVB_AVTP_CAPTURE_A) F_(0, 0) FM(MSIOF2_TXD_C) FM(RTS4_N_TANS_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  221. #define IP0_27_24 FM(IRQ0) FM(QPOLB) F_(0, 0) FM(DU_CDE) FM(VI4_DATA0_B) FM(CAN0_TX_B) FM(CANFD0_TX_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  222. #define IP0_31_28 FM(IRQ1) FM(QPOLA) F_(0, 0) FM(DU_DISP) FM(VI4_DATA1_B) FM(CAN0_RX_B) FM(CANFD0_RX_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  223. #define IP1_3_0 FM(IRQ2) FM(QCPV_QDE) F_(0, 0) FM(DU_EXODDF_DU_ODDF_DISP_CDE) FM(VI4_DATA2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(PWM3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  224. #define IP1_7_4 FM(IRQ3) FM(QSTVB_QVE) FM(A25) FM(DU_DOTCLKOUT1) FM(VI4_DATA3_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(PWM4_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  225. #define IP1_11_8 FM(IRQ4) FM(QSTH_QHS) FM(A24) FM(DU_EXHSYNC_DU_HSYNC) FM(VI4_DATA4_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(PWM5_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  226. #define IP1_15_12 FM(IRQ5) FM(QSTB_QHE) FM(A23) FM(DU_EXVSYNC_DU_VSYNC) FM(VI4_DATA5_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(PWM6_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  227. #define IP1_19_16 FM(PWM0) FM(AVB_AVTP_PPS)FM(A22) F_(0, 0) FM(VI4_DATA6_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(IECLK_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  228. #define IP1_23_20 FM(PWM1_A) F_(0, 0) FM(A21) FM(HRX3_D) FM(VI4_DATA7_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(IERX_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  229. #define IP1_27_24 FM(PWM2_A) F_(0, 0) FM(A20) FM(HTX3_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(IETX_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  230. #define IP1_31_28 FM(A0) FM(LCDOUT16) FM(MSIOF3_SYNC_B) F_(0, 0) FM(VI4_DATA8) F_(0, 0) FM(DU_DB0) F_(0, 0) F_(0, 0) FM(PWM3_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  231. #define IP2_3_0 FM(A1) FM(LCDOUT17) FM(MSIOF3_TXD_B) F_(0, 0) FM(VI4_DATA9) F_(0, 0) FM(DU_DB1) F_(0, 0) F_(0, 0) FM(PWM4_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  232. #define IP2_7_4 FM(A2) FM(LCDOUT18) FM(MSIOF3_SCK_B) F_(0, 0) FM(VI4_DATA10) F_(0, 0) FM(DU_DB2) F_(0, 0) F_(0, 0) FM(PWM5_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  233. #define IP2_11_8 FM(A3) FM(LCDOUT19) FM(MSIOF3_RXD_B) F_(0, 0) FM(VI4_DATA11) F_(0, 0) FM(DU_DB3) F_(0, 0) F_(0, 0) FM(PWM6_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  234. /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
  235. #define IP2_15_12 FM(A4) FM(LCDOUT20) FM(MSIOF3_SS1_B) F_(0, 0) FM(VI4_DATA12) FM(VI5_DATA12) FM(DU_DB4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  236. #define IP2_19_16 FM(A5) FM(LCDOUT21) FM(MSIOF3_SS2_B) FM(SCK4_B) FM(VI4_DATA13) FM(VI5_DATA13) FM(DU_DB5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  237. #define IP2_23_20 FM(A6) FM(LCDOUT22) FM(MSIOF2_SS1_A) FM(RX4_B) FM(VI4_DATA14) FM(VI5_DATA14) FM(DU_DB6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  238. #define IP2_27_24 FM(A7) FM(LCDOUT23) FM(MSIOF2_SS2_A) FM(TX4_B) FM(VI4_DATA15) FM(VI5_DATA15) FM(DU_DB7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  239. #define IP2_31_28 FM(A8) FM(RX3_B) FM(MSIOF2_SYNC_A) FM(HRX4_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(SDA6_A) FM(AVB_AVTP_MATCH_B) FM(PWM1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  240. #define IP3_3_0 FM(A9) F_(0, 0) FM(MSIOF2_SCK_A) FM(CTS4_N_B) F_(0, 0) FM(VI5_VSYNC_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  241. #define IP3_7_4 FM(A10) F_(0, 0) FM(MSIOF2_RXD_A) FM(RTS4_N_TANS_B) F_(0, 0) FM(VI5_HSYNC_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  242. #define IP3_11_8 FM(A11) FM(TX3_B) FM(MSIOF2_TXD_A) FM(HTX4_B) FM(HSCK4) FM(VI5_FIELD) F_(0, 0) FM(SCL6_A) FM(AVB_AVTP_CAPTURE_B) FM(PWM2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  243. #define IP3_15_12 FM(A12) FM(LCDOUT12) FM(MSIOF3_SCK_C) F_(0, 0) FM(HRX4_A) FM(VI5_DATA8) FM(DU_DG4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  244. #define IP3_19_16 FM(A13) FM(LCDOUT13) FM(MSIOF3_SYNC_C) F_(0, 0) FM(HTX4_A) FM(VI5_DATA9) FM(DU_DG5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  245. #define IP3_23_20 FM(A14) FM(LCDOUT14) FM(MSIOF3_RXD_C) F_(0, 0) FM(HCTS4_N) FM(VI5_DATA10) FM(DU_DG6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  246. #define IP3_27_24 FM(A15) FM(LCDOUT15) FM(MSIOF3_TXD_C) F_(0, 0) FM(HRTS4_N) FM(VI5_DATA11) FM(DU_DG7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  247. #define IP3_31_28 FM(A16) FM(LCDOUT8) F_(0, 0) F_(0, 0) FM(VI4_FIELD) F_(0, 0) FM(DU_DG0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  248. #define IP4_3_0 FM(A17) FM(LCDOUT9) F_(0, 0) F_(0, 0) FM(VI4_VSYNC_N) F_(0, 0) FM(DU_DG1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  249. #define IP4_7_4 FM(A18) FM(LCDOUT10) F_(0, 0) F_(0, 0) FM(VI4_HSYNC_N) F_(0, 0) FM(DU_DG2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  250. #define IP4_11_8 FM(A19) FM(LCDOUT11) F_(0, 0) F_(0, 0) FM(VI4_CLKENB) F_(0, 0) FM(DU_DG3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  251. #define IP4_15_12 FM(CS0_N) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(VI5_CLKENB) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  252. #define IP4_19_16 FM(CS1_N_A26) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(VI5_CLK) F_(0, 0) FM(EX_WAIT0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  253. #define IP4_23_20 FM(BS_N) FM(QSTVA_QVS) FM(MSIOF3_SCK_D) FM(SCK3) FM(HSCK3) F_(0, 0) F_(0, 0) F_(0, 0) FM(CAN1_TX) FM(CANFD1_TX) FM(IETX_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  254. #define IP4_27_24 FM(RD_N) F_(0, 0) FM(MSIOF3_SYNC_D) FM(RX3_A) FM(HRX3_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(CAN0_TX_A) FM(CANFD0_TX_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  255. #define IP4_31_28 FM(RD_WR_N) F_(0, 0) FM(MSIOF3_RXD_D) FM(TX3_A) FM(HTX3_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(CAN0_RX_A) FM(CANFD0_RX_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  256. #define IP5_3_0 FM(WE0_N) F_(0, 0) FM(MSIOF3_TXD_D) FM(CTS3_N) FM(HCTS3_N) F_(0, 0) F_(0, 0) FM(SCL6_B) FM(CAN_CLK) F_(0, 0) FM(IECLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  257. #define IP5_7_4 FM(WE1_N) F_(0, 0) FM(MSIOF3_SS1_D) FM(RTS3_N_TANS) FM(HRTS3_N) F_(0, 0) F_(0, 0) FM(SDA6_B) FM(CAN1_RX) FM(CANFD1_RX) FM(IERX_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  258. #define IP5_11_8 FM(EX_WAIT0_A) FM(QCLK) F_(0, 0) F_(0, 0) FM(VI4_CLK) F_(0, 0) FM(DU_DOTCLKOUT0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  259. #define IP5_15_12 FM(D0) FM(MSIOF2_SS1_B)FM(MSIOF3_SCK_A) F_(0, 0) FM(VI4_DATA16) FM(VI5_DATA0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  260. #define IP5_19_16 FM(D1) FM(MSIOF2_SS2_B)FM(MSIOF3_SYNC_A) F_(0, 0) FM(VI4_DATA17) FM(VI5_DATA1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  261. #define IP5_23_20 FM(D2) F_(0, 0) FM(MSIOF3_RXD_A) F_(0, 0) FM(VI4_DATA18) FM(VI5_DATA2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  262. #define IP5_27_24 FM(D3) F_(0, 0) FM(MSIOF3_TXD_A) F_(0, 0) FM(VI4_DATA19) FM(VI5_DATA3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  263. #define IP5_31_28 FM(D4) FM(MSIOF2_SCK_B)F_(0, 0) F_(0, 0) FM(VI4_DATA20) FM(VI5_DATA4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  264. #define IP6_3_0 FM(D5) FM(MSIOF2_SYNC_B)F_(0, 0) F_(0, 0) FM(VI4_DATA21) FM(VI5_DATA5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  265. #define IP6_7_4 FM(D6) FM(MSIOF2_RXD_B)F_(0, 0) F_(0, 0) FM(VI4_DATA22) FM(VI5_DATA6) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  266. #define IP6_11_8 FM(D7) FM(MSIOF2_TXD_B)F_(0, 0) F_(0, 0) FM(VI4_DATA23) FM(VI5_DATA7) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  267. #define IP6_15_12 FM(D8) FM(LCDOUT0) FM(MSIOF2_SCK_D) FM(SCK4_C) FM(VI4_DATA0_A) F_(0, 0) FM(DU_DR0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  268. #define IP6_19_16 FM(D9) FM(LCDOUT1) FM(MSIOF2_SYNC_D) F_(0, 0) FM(VI4_DATA1_A) F_(0, 0) FM(DU_DR1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  269. #define IP6_23_20 FM(D10) FM(LCDOUT2) FM(MSIOF2_RXD_D) FM(HRX3_B) FM(VI4_DATA2_A) FM(CTS4_N_C) FM(DU_DR2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  270. #define IP6_27_24 FM(D11) FM(LCDOUT3) FM(MSIOF2_TXD_D) FM(HTX3_B) FM(VI4_DATA3_A) FM(RTS4_N_TANS_C)FM(DU_DR3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  271. #define IP6_31_28 FM(D12) FM(LCDOUT4) FM(MSIOF2_SS1_D) FM(RX4_C) FM(VI4_DATA4_A) F_(0, 0) FM(DU_DR4) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  272. #define IP7_3_0 FM(D13) FM(LCDOUT5) FM(MSIOF2_SS2_D) FM(TX4_C) FM(VI4_DATA5_A) F_(0, 0) FM(DU_DR5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  273. #define IP7_7_4 FM(D14) FM(LCDOUT6) FM(MSIOF3_SS1_A) FM(HRX3_C) FM(VI4_DATA6_A) F_(0, 0) FM(DU_DR6) FM(SCL6_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  274. #define IP7_11_8 FM(D15) FM(LCDOUT7) FM(MSIOF3_SS2_A) FM(HTX3_C) FM(VI4_DATA7_A) F_(0, 0) FM(DU_DR7) FM(SDA6_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  275. #define IP7_15_12 FM(FSCLKST) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  276. #define IP7_19_16 FM(SD0_CLK) F_(0, 0) FM(MSIOF1_SCK_E) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_OPWM_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  277. /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
  278. #define IP7_23_20 FM(SD0_CMD) F_(0, 0) FM(MSIOF1_SYNC_E) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_IVCXO27_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  279. #define IP7_27_24 FM(SD0_DAT0) F_(0, 0) FM(MSIOF1_RXD_E) F_(0, 0) F_(0, 0) FM(TS_SCK0_B) FM(STP_ISCLK_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  280. #define IP7_31_28 FM(SD0_DAT1) F_(0, 0) FM(MSIOF1_TXD_E) F_(0, 0) F_(0, 0) FM(TS_SPSYNC0_B)FM(STP_ISSYNC_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  281. #define IP8_3_0 FM(SD0_DAT2) F_(0, 0) FM(MSIOF1_SS1_E) F_(0, 0) F_(0, 0) FM(TS_SDAT0_B) FM(STP_ISD_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  282. #define IP8_7_4 FM(SD0_DAT3) F_(0, 0) FM(MSIOF1_SS2_E) F_(0, 0) F_(0, 0) FM(TS_SDEN0_B) FM(STP_ISEN_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  283. #define IP8_11_8 FM(SD1_CLK) F_(0, 0) FM(MSIOF1_SCK_G) F_(0, 0) F_(0, 0) FM(SIM0_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  284. #define IP8_15_12 FM(SD1_CMD) F_(0, 0) FM(MSIOF1_SYNC_G) F_(0, 0) F_(0, 0) FM(SIM0_D_A) FM(STP_IVCXO27_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  285. #define IP8_19_16 FM(SD1_DAT0) FM(SD2_DAT4) FM(MSIOF1_RXD_G) F_(0, 0) F_(0, 0) FM(TS_SCK1_B) FM(STP_ISCLK_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  286. #define IP8_23_20 FM(SD1_DAT1) FM(SD2_DAT5) FM(MSIOF1_TXD_G) F_(0, 0) F_(0, 0) FM(TS_SPSYNC1_B)FM(STP_ISSYNC_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  287. #define IP8_27_24 FM(SD1_DAT2) FM(SD2_DAT6) FM(MSIOF1_SS1_G) F_(0, 0) F_(0, 0) FM(TS_SDAT1_B) FM(STP_ISD_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  288. #define IP8_31_28 FM(SD1_DAT3) FM(SD2_DAT7) FM(MSIOF1_SS2_G) F_(0, 0) F_(0, 0) FM(TS_SDEN1_B) FM(STP_ISEN_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  289. #define IP9_3_0 FM(SD2_CLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  290. #define IP9_7_4 FM(SD2_DAT0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  291. #define IP9_11_8 FM(SD2_DAT1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  292. #define IP9_15_12 FM(SD2_DAT2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  293. #define IP9_19_16 FM(SD2_DAT3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  294. #define IP9_23_20 FM(SD2_DS) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(SATA_DEVSLP_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  295. #define IP9_27_24 FM(SD3_DAT4) FM(SD2_CD_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  296. #define IP9_31_28 FM(SD3_DAT5) FM(SD2_WP_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  297. #define IP10_3_0 FM(SD3_DAT6) FM(SD3_CD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  298. #define IP10_7_4 FM(SD3_DAT7) FM(SD3_WP) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  299. #define IP10_11_8 FM(SD0_CD) F_(0, 0) F_(0, 0) F_(0, 0) FM(SCL2_B) FM(SIM0_RST_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  300. #define IP10_15_12 FM(SD0_WP) F_(0, 0) F_(0, 0) F_(0, 0) FM(SDA2_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  301. #define IP10_19_16 FM(SD1_CD) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(SIM0_CLK_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  302. #define IP10_23_20 FM(SD1_WP) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(SIM0_D_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  303. #define IP10_27_24 FM(SCK0) FM(HSCK1_B) FM(MSIOF1_SS2_B) FM(AUDIO_CLKC_B) FM(SDA2_A) FM(SIM0_RST_B) FM(STP_OPWM_0_C) FM(RIF0_CLK_B) F_(0, 0) FM(ADICHS2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  304. #define IP10_31_28 FM(RX0) FM(HRX1_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SCK0_C) FM(STP_ISCLK_0_C) FM(RIF0_D0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  305. #define IP11_3_0 FM(TX0) FM(HTX1_B) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SPSYNC0_C)FM(STP_ISSYNC_0_C) FM(RIF0_D1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  306. #define IP11_7_4 FM(CTS0_N) FM(HCTS1_N_B) FM(MSIOF1_SYNC_B) F_(0, 0) F_(0, 0) FM(TS_SPSYNC1_C)FM(STP_ISSYNC_1_C) FM(RIF1_SYNC_B) FM(AUDIO_CLKOUT_C) FM(ADICS_SAMP) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  307. #define IP11_11_8 FM(RTS0_N_TANS) FM(HRTS1_N_B) FM(MSIOF1_SS1_B) FM(AUDIO_CLKA_B) FM(SCL2_A) F_(0, 0) FM(STP_IVCXO27_1_C) FM(RIF0_SYNC_B) F_(0, 0) FM(ADICHS1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  308. #define IP11_15_12 FM(RX1_A) FM(HRX1_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SDAT0_C) FM(STP_ISD_0_C) FM(RIF1_CLK_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  309. #define IP11_19_16 FM(TX1_A) FM(HTX1_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(TS_SDEN0_C) FM(STP_ISEN_0_C) FM(RIF1_D0_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  310. #define IP11_23_20 FM(CTS1_N) FM(HCTS1_N_A) FM(MSIOF1_RXD_B) F_(0, 0) F_(0, 0) FM(TS_SDEN1_C) FM(STP_ISEN_1_C) FM(RIF1_D0_B) F_(0, 0) FM(ADIDATA) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  311. #define IP11_27_24 FM(RTS1_N_TANS) FM(HRTS1_N_A) FM(MSIOF1_TXD_B) F_(0, 0) F_(0, 0) FM(TS_SDAT1_C) FM(STP_ISD_1_C) FM(RIF1_D1_B) F_(0, 0) FM(ADICHS0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  312. #define IP11_31_28 FM(SCK2) FM(SCIF_CLK_B) FM(MSIOF1_SCK_B) F_(0, 0) F_(0, 0) FM(TS_SCK1_C) FM(STP_ISCLK_1_C) FM(RIF1_CLK_B) F_(0, 0) FM(ADICLK) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  313. #define IP12_3_0 FM(TX2_A) F_(0, 0) F_(0, 0) FM(SD2_CD_B) FM(SCL1_A) F_(0, 0) FM(FMCLK_A) FM(RIF1_D1_C) F_(0, 0) FM(FSO_CFE_0_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  314. #define IP12_7_4 FM(RX2_A) F_(0, 0) F_(0, 0) FM(SD2_WP_B) FM(SDA1_A) F_(0, 0) FM(FMIN_A) FM(RIF1_SYNC_C) F_(0, 0) FM(FSO_CFE_1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  315. #define IP12_11_8 FM(HSCK0) F_(0, 0) FM(MSIOF1_SCK_D) FM(AUDIO_CLKB_A) FM(SSI_SDATA1_B)FM(TS_SCK0_D) FM(STP_ISCLK_0_D) FM(RIF0_CLK_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  316. #define IP12_15_12 FM(HRX0) F_(0, 0) FM(MSIOF1_RXD_D) F_(0, 0) FM(SSI_SDATA2_B)FM(TS_SDEN0_D) FM(STP_ISEN_0_D) FM(RIF0_D0_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  317. #define IP12_19_16 FM(HTX0) F_(0, 0) FM(MSIOF1_TXD_D) F_(0, 0) FM(SSI_SDATA9_B)FM(TS_SDAT0_D) FM(STP_ISD_0_D) FM(RIF0_D1_C) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  318. #define IP12_23_20 FM(HCTS0_N) FM(RX2_B) FM(MSIOF1_SYNC_D) F_(0, 0) FM(SSI_SCK9_A) FM(TS_SPSYNC0_D)FM(STP_ISSYNC_0_D) FM(RIF0_SYNC_C) FM(AUDIO_CLKOUT1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  319. #define IP12_27_24 FM(HRTS0_N) FM(TX2_B) FM(MSIOF1_SS1_D) F_(0, 0) FM(SSI_WS9_A) F_(0, 0) FM(STP_IVCXO27_0_D) FM(BPFCLK_A) FM(AUDIO_CLKOUT2_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  320. /* IPSRx */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */ /* 8 */ /* 9 */ /* A */ /* B */ /* C - F */
  321. #define IP12_31_28 FM(MSIOF0_SYNC) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  322. #define IP13_3_0 FM(MSIOF0_SS1) FM(RX5) F_(0, 0) FM(AUDIO_CLKA_C) FM(SSI_SCK2_A) F_(0, 0) FM(STP_IVCXO27_0_C) F_(0, 0) FM(AUDIO_CLKOUT3_A) F_(0, 0) FM(TCLK1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  323. #define IP13_7_4 FM(MSIOF0_SS2) FM(TX5) FM(MSIOF1_SS2_D) FM(AUDIO_CLKC_A) FM(SSI_WS2_A) F_(0, 0) FM(STP_OPWM_0_D) F_(0, 0) FM(AUDIO_CLKOUT_D) F_(0, 0) FM(SPEEDIN_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  324. #define IP13_11_8 FM(MLB_CLK) F_(0, 0) FM(MSIOF1_SCK_F) F_(0, 0) FM(SCL1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  325. #define IP13_15_12 FM(MLB_SIG) FM(RX1_B) FM(MSIOF1_SYNC_F) F_(0, 0) FM(SDA1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  326. #define IP13_19_16 FM(MLB_DAT) FM(TX1_B) FM(MSIOF1_RXD_F) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  327. #define IP13_23_20 FM(SSI_SCK0129) F_(0, 0) FM(MSIOF1_TXD_F) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  328. #define IP13_27_24 FM(SSI_WS0129) F_(0, 0) FM(MSIOF1_SS1_F) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  329. #define IP13_31_28 FM(SSI_SDATA0) F_(0, 0) FM(MSIOF1_SS2_F) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  330. #define IP14_3_0 FM(SSI_SDATA1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  331. #define IP14_7_4 FM(SSI_SDATA2_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(SSI_SCK1_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  332. #define IP14_11_8 FM(SSI_SCK34) F_(0, 0) FM(MSIOF1_SS1_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_OPWM_0_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  333. #define IP14_15_12 FM(SSI_WS34) FM(HCTS2_N_A) FM(MSIOF1_SS2_A) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_IVCXO27_0_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  334. #define IP14_19_16 FM(SSI_SDATA3) FM(HRTS2_N_A) FM(MSIOF1_TXD_A) F_(0, 0) F_(0, 0) FM(TS_SCK0_A) FM(STP_ISCLK_0_A) FM(RIF0_D1_A) FM(RIF2_D0_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  335. #define IP14_23_20 FM(SSI_SCK4) FM(HRX2_A) FM(MSIOF1_SCK_A) F_(0, 0) F_(0, 0) FM(TS_SDAT0_A) FM(STP_ISD_0_A) FM(RIF0_CLK_A) FM(RIF2_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  336. #define IP14_27_24 FM(SSI_WS4) FM(HTX2_A) FM(MSIOF1_SYNC_A) F_(0, 0) F_(0, 0) FM(TS_SDEN0_A) FM(STP_ISEN_0_A) FM(RIF0_SYNC_A) FM(RIF2_SYNC_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  337. #define IP14_31_28 FM(SSI_SDATA4) FM(HSCK2_A) FM(MSIOF1_RXD_A) F_(0, 0) F_(0, 0) FM(TS_SPSYNC0_A)FM(STP_ISSYNC_0_A) FM(RIF0_D0_A) FM(RIF2_D1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  338. #define IP15_3_0 FM(SSI_SCK6) FM(USB2_PWEN) F_(0, 0) FM(SIM0_RST_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  339. #define IP15_7_4 FM(SSI_WS6) FM(USB2_OVC) F_(0, 0) FM(SIM0_D_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  340. #define IP15_11_8 FM(SSI_SDATA6) F_(0, 0) F_(0, 0) FM(SIM0_CLK_D) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(SATA_DEVSLP_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  341. #define IP15_15_12 FM(SSI_SCK78) FM(HRX2_B) FM(MSIOF1_SCK_C) F_(0, 0) F_(0, 0) FM(TS_SCK1_A) FM(STP_ISCLK_1_A) FM(RIF1_CLK_A) FM(RIF3_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  342. #define IP15_19_16 FM(SSI_WS78) FM(HTX2_B) FM(MSIOF1_SYNC_C) F_(0, 0) F_(0, 0) FM(TS_SDAT1_A) FM(STP_ISD_1_A) FM(RIF1_SYNC_A) FM(RIF3_SYNC_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  343. #define IP15_23_20 FM(SSI_SDATA7) FM(HCTS2_N_B) FM(MSIOF1_RXD_C) F_(0, 0) F_(0, 0) FM(TS_SDEN1_A) FM(STP_ISEN_1_A) FM(RIF1_D0_A) FM(RIF3_D0_A) F_(0, 0) FM(TCLK2_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  344. #define IP15_27_24 FM(SSI_SDATA8) FM(HRTS2_N_B) FM(MSIOF1_TXD_C) F_(0, 0) F_(0, 0) FM(TS_SPSYNC1_A)FM(STP_ISSYNC_1_A) FM(RIF1_D1_A) FM(RIF3_D1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  345. #define IP15_31_28 FM(SSI_SDATA9_A) FM(HSCK2_B) FM(MSIOF1_SS1_C) FM(HSCK1_A) FM(SSI_WS1_B) FM(SCK1) FM(STP_IVCXO27_1_A) FM(SCK5) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  346. #define IP16_3_0 FM(AUDIO_CLKA_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(CC5_OSCOUT) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  347. #define IP16_7_4 FM(AUDIO_CLKB_B) FM(SCIF_CLK_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) FM(STP_IVCXO27_1_D) FM(REMOCON_A) F_(0, 0) F_(0, 0) FM(TCLK1_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  348. #define IP16_11_8 FM(USB0_PWEN) F_(0, 0) F_(0, 0) FM(SIM0_RST_C) F_(0, 0) FM(TS_SCK1_D) FM(STP_ISCLK_1_D) FM(BPFCLK_B) FM(RIF3_CLK_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  349. #define IP16_15_12 FM(USB0_OVC) F_(0, 0) F_(0, 0) FM(SIM0_D_C) F_(0, 0) FM(TS_SDAT1_D) FM(STP_ISD_1_D) F_(0, 0) FM(RIF3_SYNC_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  350. #define IP16_19_16 FM(USB1_PWEN) F_(0, 0) F_(0, 0) FM(SIM0_CLK_C) FM(SSI_SCK1_A) FM(TS_SCK0_E) FM(STP_ISCLK_0_E) FM(FMCLK_B) FM(RIF2_CLK_B) F_(0, 0) FM(SPEEDIN_A) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  351. #define IP16_23_20 FM(USB1_OVC) F_(0, 0) FM(MSIOF1_SS2_C) F_(0, 0) FM(SSI_WS1_A) FM(TS_SDAT0_E) FM(STP_ISD_0_E) FM(FMIN_B) FM(RIF2_SYNC_B) F_(0, 0) FM(REMOCON_B) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  352. #define IP16_27_24 FM(USB30_PWEN) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT_B) FM(SSI_SCK2_B) FM(TS_SDEN1_D) FM(STP_ISEN_1_D) FM(STP_OPWM_0_E)FM(RIF3_D0_B) F_(0, 0) FM(TCLK2_B) FM(TPU0TO0) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  353. #define IP16_31_28 FM(USB30_OVC) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT1_B) FM(SSI_WS2_B) FM(TS_SPSYNC1_D)FM(STP_ISSYNC_1_D) FM(STP_IVCXO27_0_E)FM(RIF3_D1_B) F_(0, 0) FM(FSO_TOE_B) FM(TPU0TO1) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  354. #define IP17_3_0 FM(USB31_PWEN) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT2_B) FM(SSI_SCK9_B) FM(TS_SDEN0_E) FM(STP_ISEN_0_E) F_(0, 0) FM(RIF2_D0_B) F_(0, 0) F_(0, 0) FM(TPU0TO2) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  355. #define IP17_7_4 FM(USB31_OVC) F_(0, 0) F_(0, 0) FM(AUDIO_CLKOUT3_B) FM(SSI_WS9_B) FM(TS_SPSYNC0_E)FM(STP_ISSYNC_0_E) F_(0, 0) FM(RIF2_D1_B) F_(0, 0) F_(0, 0) FM(TPU0TO3) F_(0, 0) F_(0, 0) F_(0, 0) F_(0, 0)
  356. #define PINMUX_GPSR \
  357. \
  358. GPSR6_31 \
  359. GPSR6_30 \
  360. GPSR6_29 \
  361. GPSR6_28 \
  362. GPSR1_27 GPSR6_27 \
  363. GPSR1_26 GPSR6_26 \
  364. GPSR1_25 GPSR5_25 GPSR6_25 \
  365. GPSR1_24 GPSR5_24 GPSR6_24 \
  366. GPSR1_23 GPSR5_23 GPSR6_23 \
  367. GPSR1_22 GPSR5_22 GPSR6_22 \
  368. GPSR1_21 GPSR5_21 GPSR6_21 \
  369. GPSR1_20 GPSR5_20 GPSR6_20 \
  370. GPSR1_19 GPSR5_19 GPSR6_19 \
  371. GPSR1_18 GPSR5_18 GPSR6_18 \
  372. GPSR1_17 GPSR4_17 GPSR5_17 GPSR6_17 \
  373. GPSR1_16 GPSR4_16 GPSR5_16 GPSR6_16 \
  374. GPSR0_15 GPSR1_15 GPSR3_15 GPSR4_15 GPSR5_15 GPSR6_15 \
  375. GPSR0_14 GPSR1_14 GPSR2_14 GPSR3_14 GPSR4_14 GPSR5_14 GPSR6_14 \
  376. GPSR0_13 GPSR1_13 GPSR2_13 GPSR3_13 GPSR4_13 GPSR5_13 GPSR6_13 \
  377. GPSR0_12 GPSR1_12 GPSR2_12 GPSR3_12 GPSR4_12 GPSR5_12 GPSR6_12 \
  378. GPSR0_11 GPSR1_11 GPSR2_11 GPSR3_11 GPSR4_11 GPSR5_11 GPSR6_11 \
  379. GPSR0_10 GPSR1_10 GPSR2_10 GPSR3_10 GPSR4_10 GPSR5_10 GPSR6_10 \
  380. GPSR0_9 GPSR1_9 GPSR2_9 GPSR3_9 GPSR4_9 GPSR5_9 GPSR6_9 \
  381. GPSR0_8 GPSR1_8 GPSR2_8 GPSR3_8 GPSR4_8 GPSR5_8 GPSR6_8 \
  382. GPSR0_7 GPSR1_7 GPSR2_7 GPSR3_7 GPSR4_7 GPSR5_7 GPSR6_7 \
  383. GPSR0_6 GPSR1_6 GPSR2_6 GPSR3_6 GPSR4_6 GPSR5_6 GPSR6_6 \
  384. GPSR0_5 GPSR1_5 GPSR2_5 GPSR3_5 GPSR4_5 GPSR5_5 GPSR6_5 \
  385. GPSR0_4 GPSR1_4 GPSR2_4 GPSR3_4 GPSR4_4 GPSR5_4 GPSR6_4 \
  386. GPSR0_3 GPSR1_3 GPSR2_3 GPSR3_3 GPSR4_3 GPSR5_3 GPSR6_3 GPSR7_3 \
  387. GPSR0_2 GPSR1_2 GPSR2_2 GPSR3_2 GPSR4_2 GPSR5_2 GPSR6_2 GPSR7_2 \
  388. GPSR0_1 GPSR1_1 GPSR2_1 GPSR3_1 GPSR4_1 GPSR5_1 GPSR6_1 GPSR7_1 \
  389. GPSR0_0 GPSR1_0 GPSR2_0 GPSR3_0 GPSR4_0 GPSR5_0 GPSR6_0 GPSR7_0
  390. #define PINMUX_IPSR \
  391. \
  392. FM(IP0_3_0) IP0_3_0 FM(IP1_3_0) IP1_3_0 FM(IP2_3_0) IP2_3_0 FM(IP3_3_0) IP3_3_0 \
  393. FM(IP0_7_4) IP0_7_4 FM(IP1_7_4) IP1_7_4 FM(IP2_7_4) IP2_7_4 FM(IP3_7_4) IP3_7_4 \
  394. FM(IP0_11_8) IP0_11_8 FM(IP1_11_8) IP1_11_8 FM(IP2_11_8) IP2_11_8 FM(IP3_11_8) IP3_11_8 \
  395. FM(IP0_15_12) IP0_15_12 FM(IP1_15_12) IP1_15_12 FM(IP2_15_12) IP2_15_12 FM(IP3_15_12) IP3_15_12 \
  396. FM(IP0_19_16) IP0_19_16 FM(IP1_19_16) IP1_19_16 FM(IP2_19_16) IP2_19_16 FM(IP3_19_16) IP3_19_16 \
  397. FM(IP0_23_20) IP0_23_20 FM(IP1_23_20) IP1_23_20 FM(IP2_23_20) IP2_23_20 FM(IP3_23_20) IP3_23_20 \
  398. FM(IP0_27_24) IP0_27_24 FM(IP1_27_24) IP1_27_24 FM(IP2_27_24) IP2_27_24 FM(IP3_27_24) IP3_27_24 \
  399. FM(IP0_31_28) IP0_31_28 FM(IP1_31_28) IP1_31_28 FM(IP2_31_28) IP2_31_28 FM(IP3_31_28) IP3_31_28 \
  400. \
  401. FM(IP4_3_0) IP4_3_0 FM(IP5_3_0) IP5_3_0 FM(IP6_3_0) IP6_3_0 FM(IP7_3_0) IP7_3_0 \
  402. FM(IP4_7_4) IP4_7_4 FM(IP5_7_4) IP5_7_4 FM(IP6_7_4) IP6_7_4 FM(IP7_7_4) IP7_7_4 \
  403. FM(IP4_11_8) IP4_11_8 FM(IP5_11_8) IP5_11_8 FM(IP6_11_8) IP6_11_8 FM(IP7_11_8) IP7_11_8 \
  404. FM(IP4_15_12) IP4_15_12 FM(IP5_15_12) IP5_15_12 FM(IP6_15_12) IP6_15_12 FM(IP7_15_12) IP7_15_12 \
  405. FM(IP4_19_16) IP4_19_16 FM(IP5_19_16) IP5_19_16 FM(IP6_19_16) IP6_19_16 FM(IP7_19_16) IP7_19_16 \
  406. FM(IP4_23_20) IP4_23_20 FM(IP5_23_20) IP5_23_20 FM(IP6_23_20) IP6_23_20 FM(IP7_23_20) IP7_23_20 \
  407. FM(IP4_27_24) IP4_27_24 FM(IP5_27_24) IP5_27_24 FM(IP6_27_24) IP6_27_24 FM(IP7_27_24) IP7_27_24 \
  408. FM(IP4_31_28) IP4_31_28 FM(IP5_31_28) IP5_31_28 FM(IP6_31_28) IP6_31_28 FM(IP7_31_28) IP7_31_28 \
  409. \
  410. FM(IP8_3_0) IP8_3_0 FM(IP9_3_0) IP9_3_0 FM(IP10_3_0) IP10_3_0 FM(IP11_3_0) IP11_3_0 \
  411. FM(IP8_7_4) IP8_7_4 FM(IP9_7_4) IP9_7_4 FM(IP10_7_4) IP10_7_4 FM(IP11_7_4) IP11_7_4 \
  412. FM(IP8_11_8) IP8_11_8 FM(IP9_11_8) IP9_11_8 FM(IP10_11_8) IP10_11_8 FM(IP11_11_8) IP11_11_8 \
  413. FM(IP8_15_12) IP8_15_12 FM(IP9_15_12) IP9_15_12 FM(IP10_15_12) IP10_15_12 FM(IP11_15_12) IP11_15_12 \
  414. FM(IP8_19_16) IP8_19_16 FM(IP9_19_16) IP9_19_16 FM(IP10_19_16) IP10_19_16 FM(IP11_19_16) IP11_19_16 \
  415. FM(IP8_23_20) IP8_23_20 FM(IP9_23_20) IP9_23_20 FM(IP10_23_20) IP10_23_20 FM(IP11_23_20) IP11_23_20 \
  416. FM(IP8_27_24) IP8_27_24 FM(IP9_27_24) IP9_27_24 FM(IP10_27_24) IP10_27_24 FM(IP11_27_24) IP11_27_24 \
  417. FM(IP8_31_28) IP8_31_28 FM(IP9_31_28) IP9_31_28 FM(IP10_31_28) IP10_31_28 FM(IP11_31_28) IP11_31_28 \
  418. \
  419. FM(IP12_3_0) IP12_3_0 FM(IP13_3_0) IP13_3_0 FM(IP14_3_0) IP14_3_0 FM(IP15_3_0) IP15_3_0 \
  420. FM(IP12_7_4) IP12_7_4 FM(IP13_7_4) IP13_7_4 FM(IP14_7_4) IP14_7_4 FM(IP15_7_4) IP15_7_4 \
  421. FM(IP12_11_8) IP12_11_8 FM(IP13_11_8) IP13_11_8 FM(IP14_11_8) IP14_11_8 FM(IP15_11_8) IP15_11_8 \
  422. FM(IP12_15_12) IP12_15_12 FM(IP13_15_12) IP13_15_12 FM(IP14_15_12) IP14_15_12 FM(IP15_15_12) IP15_15_12 \
  423. FM(IP12_19_16) IP12_19_16 FM(IP13_19_16) IP13_19_16 FM(IP14_19_16) IP14_19_16 FM(IP15_19_16) IP15_19_16 \
  424. FM(IP12_23_20) IP12_23_20 FM(IP13_23_20) IP13_23_20 FM(IP14_23_20) IP14_23_20 FM(IP15_23_20) IP15_23_20 \
  425. FM(IP12_27_24) IP12_27_24 FM(IP13_27_24) IP13_27_24 FM(IP14_27_24) IP14_27_24 FM(IP15_27_24) IP15_27_24 \
  426. FM(IP12_31_28) IP12_31_28 FM(IP13_31_28) IP13_31_28 FM(IP14_31_28) IP14_31_28 FM(IP15_31_28) IP15_31_28 \
  427. \
  428. FM(IP16_3_0) IP16_3_0 FM(IP17_3_0) IP17_3_0 \
  429. FM(IP16_7_4) IP16_7_4 FM(IP17_7_4) IP17_7_4 \
  430. FM(IP16_11_8) IP16_11_8 \
  431. FM(IP16_15_12) IP16_15_12 \
  432. FM(IP16_19_16) IP16_19_16 \
  433. FM(IP16_23_20) IP16_23_20 \
  434. FM(IP16_27_24) IP16_27_24 \
  435. FM(IP16_31_28) IP16_31_28
  436. /* MOD_SEL0 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */
  437. #define MOD_SEL0_30_29 FM(SEL_MSIOF3_0) FM(SEL_MSIOF3_1) FM(SEL_MSIOF3_2) FM(SEL_MSIOF3_3)
  438. #define MOD_SEL0_28_27 FM(SEL_MSIOF2_0) FM(SEL_MSIOF2_1) FM(SEL_MSIOF2_2) FM(SEL_MSIOF2_3)
  439. #define MOD_SEL0_26_25_24 FM(SEL_MSIOF1_0) FM(SEL_MSIOF1_1) FM(SEL_MSIOF1_2) FM(SEL_MSIOF1_3) FM(SEL_MSIOF1_4) FM(SEL_MSIOF1_5) FM(SEL_MSIOF1_6) F_(0, 0)
  440. #define MOD_SEL0_23 FM(SEL_LBSC_0) FM(SEL_LBSC_1)
  441. #define MOD_SEL0_22 FM(SEL_IEBUS_0) FM(SEL_IEBUS_1)
  442. #define MOD_SEL0_21_20 FM(SEL_I2C6_0) FM(SEL_I2C6_1) FM(SEL_I2C6_2) F_(0, 0)
  443. #define MOD_SEL0_19 FM(SEL_I2C2_0) FM(SEL_I2C2_1)
  444. #define MOD_SEL0_18 FM(SEL_I2C1_0) FM(SEL_I2C1_1)
  445. #define MOD_SEL0_17 FM(SEL_HSCIF4_0) FM(SEL_HSCIF4_1)
  446. #define MOD_SEL0_16_15 FM(SEL_HSCIF3_0) FM(SEL_HSCIF3_1) FM(SEL_HSCIF3_2) FM(SEL_HSCIF3_3)
  447. #define MOD_SEL0_14 FM(SEL_HSCIF2_0) FM(SEL_HSCIF2_1)
  448. #define MOD_SEL0_13 FM(SEL_HSCIF1_0) FM(SEL_HSCIF1_1)
  449. #define MOD_SEL0_12 FM(SEL_FSO_0) FM(SEL_FSO_1)
  450. #define MOD_SEL0_11 FM(SEL_FM_0) FM(SEL_FM_1)
  451. #define MOD_SEL0_10 FM(SEL_ETHERAVB_0) FM(SEL_ETHERAVB_1)
  452. #define MOD_SEL0_9 FM(SEL_DRIF3_0) FM(SEL_DRIF3_1)
  453. #define MOD_SEL0_8 FM(SEL_DRIF2_0) FM(SEL_DRIF2_1)
  454. #define MOD_SEL0_7_6 FM(SEL_DRIF1_0) FM(SEL_DRIF1_1) FM(SEL_DRIF1_2) F_(0, 0)
  455. #define MOD_SEL0_5_4 FM(SEL_DRIF0_0) FM(SEL_DRIF0_1) FM(SEL_DRIF0_2) F_(0, 0)
  456. #define MOD_SEL0_3 FM(SEL_CANFD0_0) FM(SEL_CANFD0_1)
  457. #define MOD_SEL0_2_1 FM(SEL_ADG_0) FM(SEL_ADG_1) FM(SEL_ADG_2) FM(SEL_ADG_3)
  458. /* MOD_SEL1 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */ /* 4 */ /* 5 */ /* 6 */ /* 7 */
  459. #define MOD_SEL1_31_30 FM(SEL_TSIF1_0) FM(SEL_TSIF1_1) FM(SEL_TSIF1_2) FM(SEL_TSIF1_3)
  460. #define MOD_SEL1_29_28_27 FM(SEL_TSIF0_0) FM(SEL_TSIF0_1) FM(SEL_TSIF0_2) FM(SEL_TSIF0_3) FM(SEL_TSIF0_4) F_(0, 0) F_(0, 0) F_(0, 0)
  461. #define MOD_SEL1_26 FM(SEL_TIMER_TMU_0) FM(SEL_TIMER_TMU_1)
  462. #define MOD_SEL1_25_24 FM(SEL_SSP1_1_0) FM(SEL_SSP1_1_1) FM(SEL_SSP1_1_2) FM(SEL_SSP1_1_3)
  463. #define MOD_SEL1_23_22_21 FM(SEL_SSP1_0_0) FM(SEL_SSP1_0_1) FM(SEL_SSP1_0_2) FM(SEL_SSP1_0_3) FM(SEL_SSP1_0_4) F_(0, 0) F_(0, 0) F_(0, 0)
  464. #define MOD_SEL1_20 FM(SEL_SSI_0) FM(SEL_SSI_1)
  465. #define MOD_SEL1_19 FM(SEL_SPEED_PULSE_0) FM(SEL_SPEED_PULSE_1)
  466. #define MOD_SEL1_18_17 FM(SEL_SIMCARD_0) FM(SEL_SIMCARD_1) FM(SEL_SIMCARD_2) FM(SEL_SIMCARD_3)
  467. #define MOD_SEL1_16 FM(SEL_SDHI2_0) FM(SEL_SDHI2_1)
  468. #define MOD_SEL1_15_14 FM(SEL_SCIF4_0) FM(SEL_SCIF4_1) FM(SEL_SCIF4_2) F_(0, 0)
  469. #define MOD_SEL1_13 FM(SEL_SCIF3_0) FM(SEL_SCIF3_1)
  470. #define MOD_SEL1_12 FM(SEL_SCIF2_0) FM(SEL_SCIF2_1)
  471. #define MOD_SEL1_11 FM(SEL_SCIF1_0) FM(SEL_SCIF1_1)
  472. #define MOD_SEL1_10 FM(SEL_SCIF_0) FM(SEL_SCIF_1)
  473. #define MOD_SEL1_9 FM(SEL_REMOCON_0) FM(SEL_REMOCON_1)
  474. #define MOD_SEL1_6 FM(SEL_RCAN0_0) FM(SEL_RCAN0_1)
  475. #define MOD_SEL1_5 FM(SEL_PWM6_0) FM(SEL_PWM6_1)
  476. #define MOD_SEL1_4 FM(SEL_PWM5_0) FM(SEL_PWM5_1)
  477. #define MOD_SEL1_3 FM(SEL_PWM4_0) FM(SEL_PWM4_1)
  478. #define MOD_SEL1_2 FM(SEL_PWM3_0) FM(SEL_PWM3_1)
  479. #define MOD_SEL1_1 FM(SEL_PWM2_0) FM(SEL_PWM2_1)
  480. #define MOD_SEL1_0 FM(SEL_PWM1_0) FM(SEL_PWM1_1)
  481. /* MOD_SEL2 */ /* 0 */ /* 1 */ /* 2 */ /* 3 */
  482. #define MOD_SEL2_31 FM(I2C_SEL_5_0) FM(I2C_SEL_5_1)
  483. #define MOD_SEL2_30 FM(I2C_SEL_3_0) FM(I2C_SEL_3_1)
  484. #define MOD_SEL2_29 FM(I2C_SEL_0_0) FM(I2C_SEL_0_1)
  485. #define MOD_SEL2_2_1 FM(SEL_VSP_0) FM(SEL_VSP_1) FM(SEL_VSP_2) FM(SEL_VSP_3)
  486. #define MOD_SEL2_0 FM(SEL_VIN4_0) FM(SEL_VIN4_1)
  487. #define PINMUX_MOD_SELS\
  488. \
  489. MOD_SEL1_31_30 MOD_SEL2_31 \
  490. MOD_SEL0_30_29 MOD_SEL2_30 \
  491. MOD_SEL1_29_28_27 MOD_SEL2_29 \
  492. MOD_SEL0_28_27 \
  493. \
  494. MOD_SEL0_26_25_24 MOD_SEL1_26 \
  495. MOD_SEL1_25_24 \
  496. \
  497. MOD_SEL0_23 MOD_SEL1_23_22_21 \
  498. MOD_SEL0_22 \
  499. MOD_SEL0_21_20 \
  500. MOD_SEL1_20 \
  501. MOD_SEL0_19 MOD_SEL1_19 \
  502. MOD_SEL0_18 MOD_SEL1_18_17 \
  503. MOD_SEL0_17 \
  504. MOD_SEL0_16_15 MOD_SEL1_16 \
  505. MOD_SEL1_15_14 \
  506. MOD_SEL0_14 \
  507. MOD_SEL0_13 MOD_SEL1_13 \
  508. MOD_SEL0_12 MOD_SEL1_12 \
  509. MOD_SEL0_11 MOD_SEL1_11 \
  510. MOD_SEL0_10 MOD_SEL1_10 \
  511. MOD_SEL0_9 MOD_SEL1_9 \
  512. MOD_SEL0_8 \
  513. MOD_SEL0_7_6 \
  514. MOD_SEL1_6 \
  515. MOD_SEL0_5_4 MOD_SEL1_5 \
  516. MOD_SEL1_4 \
  517. MOD_SEL0_3 MOD_SEL1_3 \
  518. MOD_SEL0_2_1 MOD_SEL1_2 MOD_SEL2_2_1 \
  519. MOD_SEL1_1 \
  520. MOD_SEL1_0 MOD_SEL2_0
  521. enum {
  522. PINMUX_RESERVED = 0,
  523. PINMUX_DATA_BEGIN,
  524. GP_ALL(DATA),
  525. PINMUX_DATA_END,
  526. #define F_(x, y)
  527. #define FM(x) FN_##x,
  528. PINMUX_FUNCTION_BEGIN,
  529. GP_ALL(FN),
  530. PINMUX_GPSR
  531. PINMUX_IPSR
  532. PINMUX_MOD_SELS
  533. PINMUX_FUNCTION_END,
  534. #undef F_
  535. #undef FM
  536. #define F_(x, y)
  537. #define FM(x) x##_MARK,
  538. PINMUX_MARK_BEGIN,
  539. PINMUX_GPSR
  540. PINMUX_IPSR
  541. PINMUX_MOD_SELS
  542. PINMUX_MARK_END,
  543. #undef F_
  544. #undef FM
  545. };
  546. static const u16 pinmux_data[] = {
  547. PINMUX_DATA_GP_ALL(),
  548. /* IPSR0 */
  549. PINMUX_IPSR_DATA(IP0_3_0, AVB_MDC),
  550. PINMUX_IPSR_MSEL(IP0_3_0, MSIOF2_SS2_C, SEL_MSIOF2_2),
  551. PINMUX_IPSR_DATA(IP0_7_4, AVB_MAGIC),
  552. PINMUX_IPSR_MSEL(IP0_7_4, MSIOF2_SS1_C, SEL_MSIOF2_2),
  553. PINMUX_IPSR_MSEL(IP0_7_4, SCK4_A, SEL_SCIF4_0),
  554. PINMUX_IPSR_DATA(IP0_11_8, AVB_PHY_INT),
  555. PINMUX_IPSR_MSEL(IP0_11_8, MSIOF2_SYNC_C, SEL_MSIOF2_2),
  556. PINMUX_IPSR_MSEL(IP0_11_8, RX4_A, SEL_SCIF4_0),
  557. PINMUX_IPSR_DATA(IP0_15_12, AVB_LINK),
  558. PINMUX_IPSR_MSEL(IP0_15_12, MSIOF2_SCK_C, SEL_MSIOF2_2),
  559. PINMUX_IPSR_MSEL(IP0_15_12, TX4_A, SEL_SCIF4_0),
  560. PINMUX_IPSR_MSEL(IP0_19_16, AVB_AVTP_MATCH_A, SEL_ETHERAVB_0),
  561. PINMUX_IPSR_MSEL(IP0_19_16, MSIOF2_RXD_C, SEL_MSIOF2_2),
  562. PINMUX_IPSR_MSEL(IP0_19_16, CTS4_N_A, SEL_SCIF4_0),
  563. PINMUX_IPSR_MSEL(IP0_23_20, AVB_AVTP_CAPTURE_A, SEL_ETHERAVB_0),
  564. PINMUX_IPSR_MSEL(IP0_23_20, MSIOF2_TXD_C, SEL_MSIOF2_2),
  565. PINMUX_IPSR_MSEL(IP0_23_20, RTS4_N_TANS_A, SEL_SCIF4_0),
  566. PINMUX_IPSR_DATA(IP0_27_24, IRQ0),
  567. PINMUX_IPSR_DATA(IP0_27_24, QPOLB),
  568. PINMUX_IPSR_DATA(IP0_27_24, DU_CDE),
  569. PINMUX_IPSR_MSEL(IP0_27_24, VI4_DATA0_B, SEL_VIN4_1),
  570. PINMUX_IPSR_MSEL(IP0_27_24, CAN0_TX_B, SEL_RCAN0_1),
  571. PINMUX_IPSR_MSEL(IP0_27_24, CANFD0_TX_B, SEL_CANFD0_1),
  572. PINMUX_IPSR_DATA(IP0_31_28, IRQ1),
  573. PINMUX_IPSR_DATA(IP0_31_28, QPOLA),
  574. PINMUX_IPSR_DATA(IP0_31_28, DU_DISP),
  575. PINMUX_IPSR_MSEL(IP0_31_28, VI4_DATA1_B, SEL_VIN4_1),
  576. PINMUX_IPSR_MSEL(IP0_31_28, CAN0_RX_B, SEL_RCAN0_1),
  577. PINMUX_IPSR_MSEL(IP0_31_28, CANFD0_RX_B, SEL_CANFD0_1),
  578. /* IPSR1 */
  579. PINMUX_IPSR_DATA(IP1_3_0, IRQ2),
  580. PINMUX_IPSR_DATA(IP1_3_0, QCPV_QDE),
  581. PINMUX_IPSR_DATA(IP1_3_0, DU_EXODDF_DU_ODDF_DISP_CDE),
  582. PINMUX_IPSR_MSEL(IP1_3_0, VI4_DATA2_B, SEL_VIN4_1),
  583. PINMUX_IPSR_MSEL(IP1_3_0, PWM3_B, SEL_PWM3_1),
  584. PINMUX_IPSR_DATA(IP1_7_4, IRQ3),
  585. PINMUX_IPSR_DATA(IP1_7_4, QSTVB_QVE),
  586. PINMUX_IPSR_DATA(IP1_7_4, A25),
  587. PINMUX_IPSR_DATA(IP1_7_4, DU_DOTCLKOUT1),
  588. PINMUX_IPSR_MSEL(IP1_7_4, VI4_DATA3_B, SEL_VIN4_1),
  589. PINMUX_IPSR_MSEL(IP1_7_4, PWM4_B, SEL_PWM4_1),
  590. PINMUX_IPSR_DATA(IP1_11_8, IRQ4),
  591. PINMUX_IPSR_DATA(IP1_11_8, QSTH_QHS),
  592. PINMUX_IPSR_DATA(IP1_11_8, A24),
  593. PINMUX_IPSR_DATA(IP1_11_8, DU_EXHSYNC_DU_HSYNC),
  594. PINMUX_IPSR_MSEL(IP1_11_8, VI4_DATA4_B, SEL_VIN4_1),
  595. PINMUX_IPSR_MSEL(IP1_11_8, PWM5_B, SEL_PWM5_1),
  596. PINMUX_IPSR_DATA(IP1_15_12, IRQ5),
  597. PINMUX_IPSR_DATA(IP1_15_12, QSTB_QHE),
  598. PINMUX_IPSR_DATA(IP1_15_12, A23),
  599. PINMUX_IPSR_DATA(IP1_15_12, DU_EXVSYNC_DU_VSYNC),
  600. PINMUX_IPSR_MSEL(IP1_15_12, VI4_DATA5_B, SEL_VIN4_1),
  601. PINMUX_IPSR_MSEL(IP1_15_12, PWM6_B, SEL_PWM6_1),
  602. PINMUX_IPSR_DATA(IP1_19_16, PWM0),
  603. PINMUX_IPSR_DATA(IP1_19_16, AVB_AVTP_PPS),
  604. PINMUX_IPSR_DATA(IP1_19_16, A22),
  605. PINMUX_IPSR_MSEL(IP1_19_16, VI4_DATA6_B, SEL_VIN4_1),
  606. PINMUX_IPSR_MSEL(IP1_19_16, IECLK_B, SEL_IEBUS_1),
  607. PINMUX_IPSR_MSEL(IP1_23_20, PWM1_A, SEL_PWM1_0),
  608. PINMUX_IPSR_DATA(IP1_23_20, A21),
  609. PINMUX_IPSR_MSEL(IP1_23_20, HRX3_D, SEL_HSCIF3_3),
  610. PINMUX_IPSR_MSEL(IP1_23_20, VI4_DATA7_B, SEL_VIN4_1),
  611. PINMUX_IPSR_MSEL(IP1_23_20, IERX_B, SEL_IEBUS_1),
  612. PINMUX_IPSR_MSEL(IP1_27_24, PWM2_A, SEL_PWM2_0),
  613. PINMUX_IPSR_DATA(IP1_27_24, A20),
  614. PINMUX_IPSR_MSEL(IP1_27_24, HTX3_D, SEL_HSCIF3_3),
  615. PINMUX_IPSR_MSEL(IP1_27_24, IETX_B, SEL_IEBUS_1),
  616. PINMUX_IPSR_DATA(IP1_31_28, A0),
  617. PINMUX_IPSR_DATA(IP1_31_28, LCDOUT16),
  618. PINMUX_IPSR_MSEL(IP1_31_28, MSIOF3_SYNC_B, SEL_MSIOF3_1),
  619. PINMUX_IPSR_DATA(IP1_31_28, VI4_DATA8),
  620. PINMUX_IPSR_DATA(IP1_31_28, DU_DB0),
  621. PINMUX_IPSR_MSEL(IP1_31_28, PWM3_A, SEL_PWM3_0),
  622. /* IPSR2 */
  623. PINMUX_IPSR_DATA(IP2_3_0, A1),
  624. PINMUX_IPSR_DATA(IP2_3_0, LCDOUT17),
  625. PINMUX_IPSR_MSEL(IP2_3_0, MSIOF3_TXD_B, SEL_MSIOF3_1),
  626. PINMUX_IPSR_DATA(IP2_3_0, VI4_DATA9),
  627. PINMUX_IPSR_DATA(IP2_3_0, DU_DB1),
  628. PINMUX_IPSR_MSEL(IP2_3_0, PWM4_A, SEL_PWM4_0),
  629. PINMUX_IPSR_DATA(IP2_7_4, A2),
  630. PINMUX_IPSR_DATA(IP2_7_4, LCDOUT18),
  631. PINMUX_IPSR_MSEL(IP2_7_4, MSIOF3_SCK_B, SEL_MSIOF3_1),
  632. PINMUX_IPSR_DATA(IP2_7_4, VI4_DATA10),
  633. PINMUX_IPSR_DATA(IP2_7_4, DU_DB2),
  634. PINMUX_IPSR_MSEL(IP2_7_4, PWM5_A, SEL_PWM5_0),
  635. PINMUX_IPSR_DATA(IP2_11_8, A3),
  636. PINMUX_IPSR_DATA(IP2_11_8, LCDOUT19),
  637. PINMUX_IPSR_MSEL(IP2_11_8, MSIOF3_RXD_B, SEL_MSIOF3_1),
  638. PINMUX_IPSR_DATA(IP2_11_8, VI4_DATA11),
  639. PINMUX_IPSR_DATA(IP2_11_8, DU_DB3),
  640. PINMUX_IPSR_MSEL(IP2_11_8, PWM6_A, SEL_PWM6_0),
  641. PINMUX_IPSR_DATA(IP2_15_12, A4),
  642. PINMUX_IPSR_DATA(IP2_15_12, LCDOUT20),
  643. PINMUX_IPSR_MSEL(IP2_15_12, MSIOF3_SS1_B, SEL_MSIOF3_1),
  644. PINMUX_IPSR_DATA(IP2_15_12, VI4_DATA12),
  645. PINMUX_IPSR_DATA(IP2_15_12, VI5_DATA12),
  646. PINMUX_IPSR_DATA(IP2_15_12, DU_DB4),
  647. PINMUX_IPSR_DATA(IP2_19_16, A5),
  648. PINMUX_IPSR_DATA(IP2_19_16, LCDOUT21),
  649. PINMUX_IPSR_MSEL(IP2_19_16, MSIOF3_SS2_B, SEL_MSIOF3_1),
  650. PINMUX_IPSR_MSEL(IP2_19_16, SCK4_B, SEL_SCIF4_1),
  651. PINMUX_IPSR_DATA(IP2_19_16, VI4_DATA13),
  652. PINMUX_IPSR_DATA(IP2_19_16, VI5_DATA13),
  653. PINMUX_IPSR_DATA(IP2_19_16, DU_DB5),
  654. PINMUX_IPSR_DATA(IP2_23_20, A6),
  655. PINMUX_IPSR_DATA(IP2_23_20, LCDOUT22),
  656. PINMUX_IPSR_MSEL(IP2_23_20, MSIOF2_SS1_A, SEL_MSIOF2_0),
  657. PINMUX_IPSR_MSEL(IP2_23_20, RX4_B, SEL_SCIF4_1),
  658. PINMUX_IPSR_DATA(IP2_23_20, VI4_DATA14),
  659. PINMUX_IPSR_DATA(IP2_23_20, VI5_DATA14),
  660. PINMUX_IPSR_DATA(IP2_23_20, DU_DB6),
  661. PINMUX_IPSR_DATA(IP2_27_24, A7),
  662. PINMUX_IPSR_DATA(IP2_27_24, LCDOUT23),
  663. PINMUX_IPSR_MSEL(IP2_27_24, MSIOF2_SS2_A, SEL_MSIOF2_0),
  664. PINMUX_IPSR_MSEL(IP2_27_24, TX4_B, SEL_SCIF4_1),
  665. PINMUX_IPSR_DATA(IP2_27_24, VI4_DATA15),
  666. PINMUX_IPSR_DATA(IP2_27_24, VI5_DATA15),
  667. PINMUX_IPSR_DATA(IP2_27_24, DU_DB7),
  668. PINMUX_IPSR_DATA(IP2_31_28, A8),
  669. PINMUX_IPSR_MSEL(IP2_31_28, RX3_B, SEL_SCIF3_1),
  670. PINMUX_IPSR_MSEL(IP2_31_28, MSIOF2_SYNC_A, SEL_MSIOF2_0),
  671. PINMUX_IPSR_MSEL(IP2_31_28, HRX4_B, SEL_HSCIF4_1),
  672. PINMUX_IPSR_MSEL(IP2_31_28, SDA6_A, SEL_I2C6_0),
  673. PINMUX_IPSR_MSEL(IP2_31_28, AVB_AVTP_MATCH_B, SEL_ETHERAVB_1),
  674. PINMUX_IPSR_MSEL(IP2_31_28, PWM1_B, SEL_PWM1_1),
  675. /* IPSR3 */
  676. PINMUX_IPSR_DATA(IP3_3_0, A9),
  677. PINMUX_IPSR_MSEL(IP3_3_0, MSIOF2_SCK_A, SEL_MSIOF2_0),
  678. PINMUX_IPSR_MSEL(IP3_3_0, CTS4_N_B, SEL_SCIF4_1),
  679. PINMUX_IPSR_DATA(IP3_3_0, VI5_VSYNC_N),
  680. PINMUX_IPSR_DATA(IP3_7_4, A10),
  681. PINMUX_IPSR_MSEL(IP3_7_4, MSIOF2_RXD_A, SEL_MSIOF2_0),
  682. PINMUX_IPSR_MSEL(IP3_7_4, RTS4_N_TANS_B, SEL_SCIF4_1),
  683. PINMUX_IPSR_DATA(IP3_7_4, VI5_HSYNC_N),
  684. PINMUX_IPSR_DATA(IP3_11_8, A11),
  685. PINMUX_IPSR_MSEL(IP3_11_8, TX3_B, SEL_SCIF3_1),
  686. PINMUX_IPSR_MSEL(IP3_11_8, MSIOF2_TXD_A, SEL_MSIOF2_0),
  687. PINMUX_IPSR_MSEL(IP3_11_8, HTX4_B, SEL_HSCIF4_1),
  688. PINMUX_IPSR_DATA(IP3_11_8, HSCK4),
  689. PINMUX_IPSR_DATA(IP3_11_8, VI5_FIELD),
  690. PINMUX_IPSR_MSEL(IP3_11_8, SCL6_A, SEL_I2C6_0),
  691. PINMUX_IPSR_MSEL(IP3_11_8, AVB_AVTP_CAPTURE_B, SEL_ETHERAVB_1),
  692. PINMUX_IPSR_MSEL(IP3_11_8, PWM2_B, SEL_PWM2_1),
  693. PINMUX_IPSR_DATA(IP3_15_12, A12),
  694. PINMUX_IPSR_DATA(IP3_15_12, LCDOUT12),
  695. PINMUX_IPSR_MSEL(IP3_15_12, MSIOF3_SCK_C, SEL_MSIOF3_2),
  696. PINMUX_IPSR_MSEL(IP3_15_12, HRX4_A, SEL_HSCIF4_0),
  697. PINMUX_IPSR_DATA(IP3_15_12, VI5_DATA8),
  698. PINMUX_IPSR_DATA(IP3_15_12, DU_DG4),
  699. PINMUX_IPSR_DATA(IP3_19_16, A13),
  700. PINMUX_IPSR_DATA(IP3_19_16, LCDOUT13),
  701. PINMUX_IPSR_MSEL(IP3_19_16, MSIOF3_SYNC_C, SEL_MSIOF3_2),
  702. PINMUX_IPSR_MSEL(IP3_19_16, HTX4_A, SEL_HSCIF4_0),
  703. PINMUX_IPSR_DATA(IP3_19_16, VI5_DATA9),
  704. PINMUX_IPSR_DATA(IP3_19_16, DU_DG5),
  705. PINMUX_IPSR_DATA(IP3_23_20, A14),
  706. PINMUX_IPSR_DATA(IP3_23_20, LCDOUT14),
  707. PINMUX_IPSR_MSEL(IP3_23_20, MSIOF3_RXD_C, SEL_MSIOF3_2),
  708. PINMUX_IPSR_DATA(IP3_23_20, HCTS4_N),
  709. PINMUX_IPSR_DATA(IP3_23_20, VI5_DATA10),
  710. PINMUX_IPSR_DATA(IP3_23_20, DU_DG6),
  711. PINMUX_IPSR_DATA(IP3_27_24, A15),
  712. PINMUX_IPSR_DATA(IP3_27_24, LCDOUT15),
  713. PINMUX_IPSR_MSEL(IP3_27_24, MSIOF3_TXD_C, SEL_MSIOF3_2),
  714. PINMUX_IPSR_DATA(IP3_27_24, HRTS4_N),
  715. PINMUX_IPSR_DATA(IP3_27_24, VI5_DATA11),
  716. PINMUX_IPSR_DATA(IP3_27_24, DU_DG7),
  717. PINMUX_IPSR_DATA(IP3_31_28, A16),
  718. PINMUX_IPSR_DATA(IP3_31_28, LCDOUT8),
  719. PINMUX_IPSR_DATA(IP3_31_28, VI4_FIELD),
  720. PINMUX_IPSR_DATA(IP3_31_28, DU_DG0),
  721. /* IPSR4 */
  722. PINMUX_IPSR_DATA(IP4_3_0, A17),
  723. PINMUX_IPSR_DATA(IP4_3_0, LCDOUT9),
  724. PINMUX_IPSR_DATA(IP4_3_0, VI4_VSYNC_N),
  725. PINMUX_IPSR_DATA(IP4_3_0, DU_DG1),
  726. PINMUX_IPSR_DATA(IP4_7_4, A18),
  727. PINMUX_IPSR_DATA(IP4_7_4, LCDOUT10),
  728. PINMUX_IPSR_DATA(IP4_7_4, VI4_HSYNC_N),
  729. PINMUX_IPSR_DATA(IP4_7_4, DU_DG2),
  730. PINMUX_IPSR_DATA(IP4_11_8, A19),
  731. PINMUX_IPSR_DATA(IP4_11_8, LCDOUT11),
  732. PINMUX_IPSR_DATA(IP4_11_8, VI4_CLKENB),
  733. PINMUX_IPSR_DATA(IP4_11_8, DU_DG3),
  734. PINMUX_IPSR_DATA(IP4_15_12, CS0_N),
  735. PINMUX_IPSR_DATA(IP4_15_12, VI5_CLKENB),
  736. PINMUX_IPSR_DATA(IP4_19_16, CS1_N_A26),
  737. PINMUX_IPSR_DATA(IP4_19_16, VI5_CLK),
  738. PINMUX_IPSR_MSEL(IP4_19_16, EX_WAIT0_B, SEL_LBSC_1),
  739. PINMUX_IPSR_DATA(IP4_23_20, BS_N),
  740. PINMUX_IPSR_DATA(IP4_23_20, QSTVA_QVS),
  741. PINMUX_IPSR_MSEL(IP4_23_20, MSIOF3_SCK_D, SEL_MSIOF3_3),
  742. PINMUX_IPSR_DATA(IP4_23_20, SCK3),
  743. PINMUX_IPSR_DATA(IP4_23_20, HSCK3),
  744. PINMUX_IPSR_DATA(IP4_23_20, CAN1_TX),
  745. PINMUX_IPSR_DATA(IP4_23_20, CANFD1_TX),
  746. PINMUX_IPSR_MSEL(IP4_23_20, IETX_A, SEL_IEBUS_0),
  747. PINMUX_IPSR_DATA(IP4_27_24, RD_N),
  748. PINMUX_IPSR_MSEL(IP4_27_24, MSIOF3_SYNC_D, SEL_MSIOF3_3),
  749. PINMUX_IPSR_MSEL(IP4_27_24, RX3_A, SEL_SCIF3_0),
  750. PINMUX_IPSR_MSEL(IP4_27_24, HRX3_A, SEL_HSCIF3_0),
  751. PINMUX_IPSR_MSEL(IP4_27_24, CAN0_TX_A, SEL_RCAN0_0),
  752. PINMUX_IPSR_MSEL(IP4_27_24, CANFD0_TX_A, SEL_CANFD0_0),
  753. PINMUX_IPSR_DATA(IP4_31_28, RD_WR_N),
  754. PINMUX_IPSR_MSEL(IP4_31_28, MSIOF3_RXD_D, SEL_MSIOF3_3),
  755. PINMUX_IPSR_MSEL(IP4_31_28, TX3_A, SEL_SCIF3_0),
  756. PINMUX_IPSR_MSEL(IP4_31_28, HTX3_A, SEL_HSCIF3_0),
  757. PINMUX_IPSR_MSEL(IP4_31_28, CAN0_RX_A, SEL_RCAN0_0),
  758. PINMUX_IPSR_MSEL(IP4_31_28, CANFD0_RX_A, SEL_CANFD0_0),
  759. /* IPSR5 */
  760. PINMUX_IPSR_DATA(IP5_3_0, WE0_N),
  761. PINMUX_IPSR_MSEL(IP5_3_0, MSIOF3_TXD_D, SEL_MSIOF3_3),
  762. PINMUX_IPSR_DATA(IP5_3_0, CTS3_N),
  763. PINMUX_IPSR_DATA(IP5_3_0, HCTS3_N),
  764. PINMUX_IPSR_MSEL(IP5_3_0, SCL6_B, SEL_I2C6_1),
  765. PINMUX_IPSR_DATA(IP5_3_0, CAN_CLK),
  766. PINMUX_IPSR_MSEL(IP5_3_0, IECLK_A, SEL_IEBUS_0),
  767. PINMUX_IPSR_DATA(IP5_7_4, WE1_N),
  768. PINMUX_IPSR_MSEL(IP5_7_4, MSIOF3_SS1_D, SEL_MSIOF3_3),
  769. PINMUX_IPSR_DATA(IP5_7_4, RTS3_N_TANS),
  770. PINMUX_IPSR_DATA(IP5_7_4, HRTS3_N),
  771. PINMUX_IPSR_MSEL(IP5_7_4, SDA6_B, SEL_I2C6_1),
  772. PINMUX_IPSR_DATA(IP5_7_4, CAN1_RX),
  773. PINMUX_IPSR_DATA(IP5_7_4, CANFD1_RX),
  774. PINMUX_IPSR_MSEL(IP5_7_4, IERX_A, SEL_IEBUS_0),
  775. PINMUX_IPSR_MSEL(IP5_11_8, EX_WAIT0_A, SEL_LBSC_0),
  776. PINMUX_IPSR_DATA(IP5_11_8, QCLK),
  777. PINMUX_IPSR_DATA(IP5_11_8, VI4_CLK),
  778. PINMUX_IPSR_DATA(IP5_11_8, DU_DOTCLKOUT0),
  779. PINMUX_IPSR_DATA(IP5_15_12, D0),
  780. PINMUX_IPSR_MSEL(IP5_15_12, MSIOF2_SS1_B, SEL_MSIOF2_1),
  781. PINMUX_IPSR_MSEL(IP5_15_12, MSIOF3_SCK_A, SEL_MSIOF3_0),
  782. PINMUX_IPSR_DATA(IP5_15_12, VI4_DATA16),
  783. PINMUX_IPSR_DATA(IP5_15_12, VI5_DATA0),
  784. PINMUX_IPSR_DATA(IP5_19_16, D1),
  785. PINMUX_IPSR_MSEL(IP5_19_16, MSIOF2_SS2_B, SEL_MSIOF2_1),
  786. PINMUX_IPSR_MSEL(IP5_19_16, MSIOF3_SYNC_A, SEL_MSIOF3_0),
  787. PINMUX_IPSR_DATA(IP5_19_16, VI4_DATA17),
  788. PINMUX_IPSR_DATA(IP5_19_16, VI5_DATA1),
  789. PINMUX_IPSR_DATA(IP5_23_20, D2),
  790. PINMUX_IPSR_MSEL(IP5_23_20, MSIOF3_RXD_A, SEL_MSIOF3_0),
  791. PINMUX_IPSR_DATA(IP5_23_20, VI4_DATA18),
  792. PINMUX_IPSR_DATA(IP5_23_20, VI5_DATA2),
  793. PINMUX_IPSR_DATA(IP5_27_24, D3),
  794. PINMUX_IPSR_MSEL(IP5_27_24, MSIOF3_TXD_A, SEL_MSIOF3_0),
  795. PINMUX_IPSR_DATA(IP5_27_24, VI4_DATA19),
  796. PINMUX_IPSR_DATA(IP5_27_24, VI5_DATA3),
  797. PINMUX_IPSR_DATA(IP5_31_28, D4),
  798. PINMUX_IPSR_MSEL(IP5_31_28, MSIOF2_SCK_B, SEL_MSIOF2_1),
  799. PINMUX_IPSR_DATA(IP5_31_28, VI4_DATA20),
  800. PINMUX_IPSR_DATA(IP5_31_28, VI5_DATA4),
  801. /* IPSR6 */
  802. PINMUX_IPSR_DATA(IP6_3_0, D5),
  803. PINMUX_IPSR_MSEL(IP6_3_0, MSIOF2_SYNC_B, SEL_MSIOF2_1),
  804. PINMUX_IPSR_DATA(IP6_3_0, VI4_DATA21),
  805. PINMUX_IPSR_DATA(IP6_3_0, VI5_DATA5),
  806. PINMUX_IPSR_DATA(IP6_7_4, D6),
  807. PINMUX_IPSR_MSEL(IP6_7_4, MSIOF2_RXD_B, SEL_MSIOF2_1),
  808. PINMUX_IPSR_DATA(IP6_7_4, VI4_DATA22),
  809. PINMUX_IPSR_DATA(IP6_7_4, VI5_DATA6),
  810. PINMUX_IPSR_DATA(IP6_11_8, D7),
  811. PINMUX_IPSR_MSEL(IP6_11_8, MSIOF2_TXD_B, SEL_MSIOF2_1),
  812. PINMUX_IPSR_DATA(IP6_11_8, VI4_DATA23),
  813. PINMUX_IPSR_DATA(IP6_11_8, VI5_DATA7),
  814. PINMUX_IPSR_DATA(IP6_15_12, D8),
  815. PINMUX_IPSR_DATA(IP6_15_12, LCDOUT0),
  816. PINMUX_IPSR_MSEL(IP6_15_12, MSIOF2_SCK_D, SEL_MSIOF2_3),
  817. PINMUX_IPSR_MSEL(IP6_15_12, SCK4_C, SEL_SCIF4_2),
  818. PINMUX_IPSR_MSEL(IP6_15_12, VI4_DATA0_A, SEL_VIN4_0),
  819. PINMUX_IPSR_DATA(IP6_15_12, DU_DR0),
  820. PINMUX_IPSR_DATA(IP6_19_16, D9),
  821. PINMUX_IPSR_DATA(IP6_19_16, LCDOUT1),
  822. PINMUX_IPSR_MSEL(IP6_19_16, MSIOF2_SYNC_D, SEL_MSIOF2_3),
  823. PINMUX_IPSR_MSEL(IP6_19_16, VI4_DATA1_A, SEL_VIN4_0),
  824. PINMUX_IPSR_DATA(IP6_19_16, DU_DR1),
  825. PINMUX_IPSR_DATA(IP6_23_20, D10),
  826. PINMUX_IPSR_DATA(IP6_23_20, LCDOUT2),
  827. PINMUX_IPSR_MSEL(IP6_23_20, MSIOF2_RXD_D, SEL_MSIOF2_3),
  828. PINMUX_IPSR_MSEL(IP6_23_20, HRX3_B, SEL_HSCIF3_1),
  829. PINMUX_IPSR_MSEL(IP6_23_20, VI4_DATA2_A, SEL_VIN4_0),
  830. PINMUX_IPSR_MSEL(IP6_23_20, CTS4_N_C, SEL_SCIF4_2),
  831. PINMUX_IPSR_DATA(IP6_23_20, DU_DR2),
  832. PINMUX_IPSR_DATA(IP6_27_24, D11),
  833. PINMUX_IPSR_DATA(IP6_27_24, LCDOUT3),
  834. PINMUX_IPSR_MSEL(IP6_27_24, MSIOF2_TXD_D, SEL_MSIOF2_3),
  835. PINMUX_IPSR_MSEL(IP6_27_24, HTX3_B, SEL_HSCIF3_1),
  836. PINMUX_IPSR_MSEL(IP6_27_24, VI4_DATA3_A, SEL_VIN4_0),
  837. PINMUX_IPSR_MSEL(IP6_27_24, RTS4_N_TANS_C, SEL_SCIF4_2),
  838. PINMUX_IPSR_DATA(IP6_27_24, DU_DR3),
  839. PINMUX_IPSR_DATA(IP6_31_28, D12),
  840. PINMUX_IPSR_DATA(IP6_31_28, LCDOUT4),
  841. PINMUX_IPSR_MSEL(IP6_31_28, MSIOF2_SS1_D, SEL_MSIOF2_3),
  842. PINMUX_IPSR_MSEL(IP6_31_28, RX4_C, SEL_SCIF4_2),
  843. PINMUX_IPSR_MSEL(IP6_31_28, VI4_DATA4_A, SEL_VIN4_0),
  844. PINMUX_IPSR_DATA(IP6_31_28, DU_DR4),
  845. /* IPSR7 */
  846. PINMUX_IPSR_DATA(IP7_3_0, D13),
  847. PINMUX_IPSR_DATA(IP7_3_0, LCDOUT5),
  848. PINMUX_IPSR_MSEL(IP7_3_0, MSIOF2_SS2_D, SEL_MSIOF2_3),
  849. PINMUX_IPSR_MSEL(IP7_3_0, TX4_C, SEL_SCIF4_2),
  850. PINMUX_IPSR_MSEL(IP7_3_0, VI4_DATA5_A, SEL_VIN4_0),
  851. PINMUX_IPSR_DATA(IP7_3_0, DU_DR5),
  852. PINMUX_IPSR_DATA(IP7_7_4, D14),
  853. PINMUX_IPSR_DATA(IP7_7_4, LCDOUT6),
  854. PINMUX_IPSR_MSEL(IP7_7_4, MSIOF3_SS1_A, SEL_MSIOF3_0),
  855. PINMUX_IPSR_MSEL(IP7_7_4, HRX3_C, SEL_HSCIF3_2),
  856. PINMUX_IPSR_MSEL(IP7_7_4, VI4_DATA6_A, SEL_VIN4_0),
  857. PINMUX_IPSR_DATA(IP7_7_4, DU_DR6),
  858. PINMUX_IPSR_MSEL(IP7_7_4, SCL6_C, SEL_I2C6_2),
  859. PINMUX_IPSR_DATA(IP7_11_8, D15),
  860. PINMUX_IPSR_DATA(IP7_11_8, LCDOUT7),
  861. PINMUX_IPSR_MSEL(IP7_11_8, MSIOF3_SS2_A, SEL_MSIOF3_0),
  862. PINMUX_IPSR_MSEL(IP7_11_8, HTX3_C, SEL_HSCIF3_2),
  863. PINMUX_IPSR_MSEL(IP7_11_8, VI4_DATA7_A, SEL_VIN4_0),
  864. PINMUX_IPSR_DATA(IP7_11_8, DU_DR7),
  865. PINMUX_IPSR_MSEL(IP7_11_8, SDA6_C, SEL_I2C6_2),
  866. PINMUX_IPSR_DATA(IP7_15_12, FSCLKST),
  867. PINMUX_IPSR_DATA(IP7_19_16, SD0_CLK),
  868. PINMUX_IPSR_MSEL(IP7_19_16, MSIOF1_SCK_E, SEL_MSIOF1_4),
  869. PINMUX_IPSR_MSEL(IP7_19_16, STP_OPWM_0_B, SEL_SSP1_0_1),
  870. PINMUX_IPSR_DATA(IP7_23_20, SD0_CMD),
  871. PINMUX_IPSR_MSEL(IP7_23_20, MSIOF1_SYNC_E, SEL_MSIOF1_4),
  872. PINMUX_IPSR_MSEL(IP7_23_20, STP_IVCXO27_0_B, SEL_SSP1_0_1),
  873. PINMUX_IPSR_DATA(IP7_27_24, SD0_DAT0),
  874. PINMUX_IPSR_MSEL(IP7_27_24, MSIOF1_RXD_E, SEL_MSIOF1_4),
  875. PINMUX_IPSR_MSEL(IP7_27_24, TS_SCK0_B, SEL_TSIF0_1),
  876. PINMUX_IPSR_MSEL(IP7_27_24, STP_ISCLK_0_B, SEL_SSP1_0_1),
  877. PINMUX_IPSR_DATA(IP7_31_28, SD0_DAT1),
  878. PINMUX_IPSR_MSEL(IP7_31_28, MSIOF1_TXD_E, SEL_MSIOF1_4),
  879. PINMUX_IPSR_MSEL(IP7_31_28, TS_SPSYNC0_B, SEL_TSIF0_1),
  880. PINMUX_IPSR_MSEL(IP7_31_28, STP_ISSYNC_0_B, SEL_SSP1_0_1),
  881. /* IPSR8 */
  882. PINMUX_IPSR_DATA(IP8_3_0, SD0_DAT2),
  883. PINMUX_IPSR_MSEL(IP8_3_0, MSIOF1_SS1_E, SEL_MSIOF1_4),
  884. PINMUX_IPSR_MSEL(IP8_3_0, TS_SDAT0_B, SEL_TSIF0_1),
  885. PINMUX_IPSR_MSEL(IP8_3_0, STP_ISD_0_B, SEL_SSP1_0_1),
  886. PINMUX_IPSR_DATA(IP8_7_4, SD0_DAT3),
  887. PINMUX_IPSR_MSEL(IP8_7_4, MSIOF1_SS2_E, SEL_MSIOF1_4),
  888. PINMUX_IPSR_MSEL(IP8_7_4, TS_SDEN0_B, SEL_TSIF0_1),
  889. PINMUX_IPSR_MSEL(IP8_7_4, STP_ISEN_0_B, SEL_SSP1_0_1),
  890. PINMUX_IPSR_DATA(IP8_11_8, SD1_CLK),
  891. PINMUX_IPSR_MSEL(IP8_11_8, MSIOF1_SCK_G, SEL_MSIOF1_6),
  892. PINMUX_IPSR_MSEL(IP8_11_8, SIM0_CLK_A, SEL_SIMCARD_0),
  893. PINMUX_IPSR_DATA(IP8_15_12, SD1_CMD),
  894. PINMUX_IPSR_MSEL(IP8_15_12, MSIOF1_SYNC_G, SEL_MSIOF1_6),
  895. PINMUX_IPSR_MSEL(IP8_15_12, SIM0_D_A, SEL_SIMCARD_0),
  896. PINMUX_IPSR_MSEL(IP8_15_12, STP_IVCXO27_1_B, SEL_SSP1_1_1),
  897. PINMUX_IPSR_DATA(IP8_19_16, SD1_DAT0),
  898. PINMUX_IPSR_DATA(IP8_19_16, SD2_DAT4),
  899. PINMUX_IPSR_MSEL(IP8_19_16, MSIOF1_RXD_G, SEL_MSIOF1_6),
  900. PINMUX_IPSR_MSEL(IP8_19_16, TS_SCK1_B, SEL_TSIF1_1),
  901. PINMUX_IPSR_MSEL(IP8_19_16, STP_ISCLK_1_B, SEL_SSP1_1_1),
  902. PINMUX_IPSR_DATA(IP8_23_20, SD1_DAT1),
  903. PINMUX_IPSR_DATA(IP8_23_20, SD2_DAT5),
  904. PINMUX_IPSR_MSEL(IP8_23_20, MSIOF1_TXD_G, SEL_MSIOF1_6),
  905. PINMUX_IPSR_MSEL(IP8_23_20, TS_SPSYNC1_B, SEL_TSIF1_1),
  906. PINMUX_IPSR_MSEL(IP8_23_20, STP_ISSYNC_1_B, SEL_SSP1_1_1),
  907. PINMUX_IPSR_DATA(IP8_27_24, SD1_DAT2),
  908. PINMUX_IPSR_DATA(IP8_27_24, SD2_DAT6),
  909. PINMUX_IPSR_MSEL(IP8_27_24, MSIOF1_SS1_G, SEL_MSIOF1_6),
  910. PINMUX_IPSR_MSEL(IP8_27_24, TS_SDAT1_B, SEL_TSIF1_1),
  911. PINMUX_IPSR_MSEL(IP8_27_24, STP_ISD_1_B, SEL_SSP1_1_1),
  912. PINMUX_IPSR_DATA(IP8_31_28, SD1_DAT3),
  913. PINMUX_IPSR_DATA(IP8_31_28, SD2_DAT7),
  914. PINMUX_IPSR_MSEL(IP8_31_28, MSIOF1_SS2_G, SEL_MSIOF1_6),
  915. PINMUX_IPSR_MSEL(IP8_31_28, TS_SDEN1_B, SEL_TSIF1_1),
  916. PINMUX_IPSR_MSEL(IP8_31_28, STP_ISEN_1_B, SEL_SSP1_1_1),
  917. /* IPSR9 */
  918. PINMUX_IPSR_DATA(IP9_3_0, SD2_CLK),
  919. PINMUX_IPSR_DATA(IP9_7_4, SD2_DAT0),
  920. PINMUX_IPSR_DATA(IP9_11_8, SD2_DAT1),
  921. PINMUX_IPSR_DATA(IP9_15_12, SD2_DAT2),
  922. PINMUX_IPSR_DATA(IP9_19_16, SD2_DAT3),
  923. PINMUX_IPSR_DATA(IP9_23_20, SD2_DS),
  924. PINMUX_IPSR_MSEL(IP9_23_20, SATA_DEVSLP_B, SEL_SCIF_1),
  925. PINMUX_IPSR_DATA(IP9_27_24, SD3_DAT4),
  926. PINMUX_IPSR_MSEL(IP9_27_24, SD2_CD_A, SEL_SDHI2_0),
  927. PINMUX_IPSR_DATA(IP9_31_28, SD3_DAT5),
  928. PINMUX_IPSR_MSEL(IP9_31_28, SD2_WP_A, SEL_SDHI2_0),
  929. /* IPSR10 */
  930. PINMUX_IPSR_DATA(IP10_3_0, SD3_DAT6),
  931. PINMUX_IPSR_DATA(IP10_3_0, SD3_CD),
  932. PINMUX_IPSR_DATA(IP10_7_4, SD3_DAT7),
  933. PINMUX_IPSR_DATA(IP10_7_4, SD3_WP),
  934. PINMUX_IPSR_DATA(IP10_11_8, SD0_CD),
  935. PINMUX_IPSR_MSEL(IP10_11_8, SCL2_B, SEL_I2C2_1),
  936. PINMUX_IPSR_MSEL(IP10_11_8, SIM0_RST_A, SEL_SIMCARD_0),
  937. PINMUX_IPSR_DATA(IP10_15_12, SD0_WP),
  938. PINMUX_IPSR_MSEL(IP10_15_12, SDA2_B, SEL_I2C2_1),
  939. PINMUX_IPSR_DATA(IP10_19_16, SD1_CD),
  940. PINMUX_IPSR_MSEL(IP10_19_16, SIM0_CLK_B, SEL_SIMCARD_1),
  941. PINMUX_IPSR_DATA(IP10_23_20, SD1_WP),
  942. PINMUX_IPSR_MSEL(IP10_23_20, SIM0_D_B, SEL_SIMCARD_1),
  943. PINMUX_IPSR_DATA(IP10_27_24, SCK0),
  944. PINMUX_IPSR_MSEL(IP10_27_24, HSCK1_B, SEL_HSCIF1_1),
  945. PINMUX_IPSR_MSEL(IP10_27_24, MSIOF1_SS2_B, SEL_MSIOF1_1),
  946. PINMUX_IPSR_MSEL(IP10_27_24, AUDIO_CLKC_B, SEL_ADG_1),
  947. PINMUX_IPSR_MSEL(IP10_27_24, SDA2_A, SEL_I2C2_0),
  948. PINMUX_IPSR_MSEL(IP10_27_24, SIM0_RST_B, SEL_SIMCARD_1),
  949. PINMUX_IPSR_MSEL(IP10_27_24, STP_OPWM_0_C, SEL_SSP1_0_2),
  950. PINMUX_IPSR_MSEL(IP10_27_24, RIF0_CLK_B, SEL_DRIF0_1),
  951. PINMUX_IPSR_DATA(IP10_27_24, ADICHS2),
  952. PINMUX_IPSR_DATA(IP10_31_28, RX0),
  953. PINMUX_IPSR_MSEL(IP10_31_28, HRX1_B, SEL_HSCIF1_1),
  954. PINMUX_IPSR_MSEL(IP10_31_28, TS_SCK0_C, SEL_TSIF0_2),
  955. PINMUX_IPSR_MSEL(IP10_31_28, STP_ISCLK_0_C, SEL_SSP1_0_2),
  956. PINMUX_IPSR_MSEL(IP10_31_28, RIF0_D0_B, SEL_DRIF0_1),
  957. /* IPSR11 */
  958. PINMUX_IPSR_DATA(IP11_3_0, TX0),
  959. PINMUX_IPSR_MSEL(IP11_3_0, HTX1_B, SEL_HSCIF1_1),
  960. PINMUX_IPSR_MSEL(IP11_3_0, TS_SPSYNC0_C, SEL_TSIF0_2),
  961. PINMUX_IPSR_MSEL(IP11_3_0, STP_ISSYNC_0_C, SEL_SSP1_0_2),
  962. PINMUX_IPSR_MSEL(IP11_3_0, RIF0_D1_B, SEL_DRIF0_1),
  963. PINMUX_IPSR_DATA(IP11_7_4, CTS0_N),
  964. PINMUX_IPSR_MSEL(IP11_7_4, HCTS1_N_B, SEL_HSCIF1_1),
  965. PINMUX_IPSR_MSEL(IP11_7_4, MSIOF1_SYNC_B, SEL_MSIOF1_1),
  966. PINMUX_IPSR_MSEL(IP11_7_4, TS_SPSYNC1_C, SEL_TSIF1_2),
  967. PINMUX_IPSR_MSEL(IP11_7_4, STP_ISSYNC_1_C, SEL_SSP1_1_2),
  968. PINMUX_IPSR_MSEL(IP11_7_4, RIF1_SYNC_B, SEL_DRIF1_1),
  969. PINMUX_IPSR_MSEL(IP11_7_4, AUDIO_CLKOUT_C, SEL_ADG_2),
  970. PINMUX_IPSR_DATA(IP11_7_4, ADICS_SAMP),
  971. PINMUX_IPSR_DATA(IP11_11_8, RTS0_N_TANS),
  972. PINMUX_IPSR_MSEL(IP11_11_8, HRTS1_N_B, SEL_HSCIF1_1),
  973. PINMUX_IPSR_MSEL(IP11_11_8, MSIOF1_SS1_B, SEL_MSIOF1_1),
  974. PINMUX_IPSR_MSEL(IP11_11_8, AUDIO_CLKA_B, SEL_ADG_1),
  975. PINMUX_IPSR_MSEL(IP11_11_8, SCL2_A, SEL_I2C2_0),
  976. PINMUX_IPSR_MSEL(IP11_11_8, STP_IVCXO27_1_C, SEL_SSP1_1_2),
  977. PINMUX_IPSR_MSEL(IP11_11_8, RIF0_SYNC_B, SEL_DRIF0_1),
  978. PINMUX_IPSR_DATA(IP11_11_8, ADICHS1),
  979. PINMUX_IPSR_MSEL(IP11_15_12, RX1_A, SEL_SCIF1_0),
  980. PINMUX_IPSR_MSEL(IP11_15_12, HRX1_A, SEL_HSCIF1_0),
  981. PINMUX_IPSR_MSEL(IP11_15_12, TS_SDAT0_C, SEL_TSIF0_2),
  982. PINMUX_IPSR_MSEL(IP11_15_12, STP_ISD_0_C, SEL_SSP1_0_2),
  983. PINMUX_IPSR_MSEL(IP11_15_12, RIF1_CLK_C, SEL_DRIF1_2),
  984. PINMUX_IPSR_MSEL(IP11_19_16, TX1_A, SEL_SCIF1_0),
  985. PINMUX_IPSR_MSEL(IP11_19_16, HTX1_A, SEL_HSCIF1_0),
  986. PINMUX_IPSR_MSEL(IP11_19_16, TS_SDEN0_C, SEL_TSIF0_2),
  987. PINMUX_IPSR_MSEL(IP11_19_16, STP_ISEN_0_C, SEL_SSP1_0_2),
  988. PINMUX_IPSR_MSEL(IP11_19_16, RIF1_D0_C, SEL_DRIF1_2),
  989. PINMUX_IPSR_DATA(IP11_23_20, CTS1_N),
  990. PINMUX_IPSR_MSEL(IP11_23_20, HCTS1_N_A, SEL_HSCIF1_0),
  991. PINMUX_IPSR_MSEL(IP11_23_20, MSIOF1_RXD_B, SEL_MSIOF1_1),
  992. PINMUX_IPSR_MSEL(IP11_23_20, TS_SDEN1_C, SEL_TSIF1_2),
  993. PINMUX_IPSR_MSEL(IP11_23_20, STP_ISEN_1_C, SEL_SSP1_1_2),
  994. PINMUX_IPSR_MSEL(IP11_23_20, RIF1_D0_B, SEL_DRIF1_1),
  995. PINMUX_IPSR_DATA(IP11_23_20, ADIDATA),
  996. PINMUX_IPSR_DATA(IP11_27_24, RTS1_N_TANS),
  997. PINMUX_IPSR_MSEL(IP11_27_24, HRTS1_N_A, SEL_HSCIF1_0),
  998. PINMUX_IPSR_MSEL(IP11_27_24, MSIOF1_TXD_B, SEL_MSIOF1_1),
  999. PINMUX_IPSR_MSEL(IP11_27_24, TS_SDAT1_C, SEL_TSIF1_2),
  1000. PINMUX_IPSR_MSEL(IP11_27_24, STP_ISD_1_C, SEL_SSP1_1_2),
  1001. PINMUX_IPSR_MSEL(IP11_27_24, RIF1_D1_B, SEL_DRIF1_1),
  1002. PINMUX_IPSR_DATA(IP11_27_24, ADICHS0),
  1003. PINMUX_IPSR_DATA(IP11_31_28, SCK2),
  1004. PINMUX_IPSR_MSEL(IP11_31_28, SCIF_CLK_B, SEL_SCIF1_1),
  1005. PINMUX_IPSR_MSEL(IP11_31_28, MSIOF1_SCK_B, SEL_MSIOF1_1),
  1006. PINMUX_IPSR_MSEL(IP11_31_28, TS_SCK1_C, SEL_TSIF1_2),
  1007. PINMUX_IPSR_MSEL(IP11_31_28, STP_ISCLK_1_C, SEL_SSP1_1_2),
  1008. PINMUX_IPSR_MSEL(IP11_31_28, RIF1_CLK_B, SEL_DRIF1_1),
  1009. PINMUX_IPSR_DATA(IP11_31_28, ADICLK),
  1010. /* IPSR12 */
  1011. PINMUX_IPSR_MSEL(IP12_3_0, TX2_A, SEL_SCIF2_0),
  1012. PINMUX_IPSR_MSEL(IP12_3_0, SD2_CD_B, SEL_SDHI2_1),
  1013. PINMUX_IPSR_MSEL(IP12_3_0, SCL1_A, SEL_I2C1_0),
  1014. PINMUX_IPSR_MSEL(IP12_3_0, FMCLK_A, SEL_FM_0),
  1015. PINMUX_IPSR_MSEL(IP12_3_0, RIF1_D1_C, SEL_DRIF1_2),
  1016. PINMUX_IPSR_MSEL(IP12_3_0, FSO_CFE_0_B, SEL_FSO_1),
  1017. PINMUX_IPSR_MSEL(IP12_7_4, RX2_A, SEL_SCIF2_0),
  1018. PINMUX_IPSR_MSEL(IP12_7_4, SD2_WP_B, SEL_SDHI2_1),
  1019. PINMUX_IPSR_MSEL(IP12_7_4, SDA1_A, SEL_I2C1_0),
  1020. PINMUX_IPSR_MSEL(IP12_7_4, FMIN_A, SEL_FM_0),
  1021. PINMUX_IPSR_MSEL(IP12_7_4, RIF1_SYNC_C, SEL_DRIF1_2),
  1022. PINMUX_IPSR_MSEL(IP12_7_4, FSO_CFE_1_B, SEL_FSO_1),
  1023. PINMUX_IPSR_DATA(IP12_11_8, HSCK0),
  1024. PINMUX_IPSR_MSEL(IP12_11_8, MSIOF1_SCK_D, SEL_MSIOF1_3),
  1025. PINMUX_IPSR_MSEL(IP12_11_8, AUDIO_CLKB_A, SEL_ADG_0),
  1026. PINMUX_IPSR_MSEL(IP12_11_8, SSI_SDATA1_B, SEL_SSI_1),
  1027. PINMUX_IPSR_MSEL(IP12_11_8, TS_SCK0_D, SEL_TSIF0_3),
  1028. PINMUX_IPSR_MSEL(IP12_11_8, STP_ISCLK_0_D, SEL_SSP1_0_3),
  1029. PINMUX_IPSR_MSEL(IP12_11_8, RIF0_CLK_C, SEL_DRIF0_2),
  1030. PINMUX_IPSR_DATA(IP12_15_12, HRX0),
  1031. PINMUX_IPSR_MSEL(IP12_15_12, MSIOF1_RXD_D, SEL_MSIOF1_3),
  1032. PINMUX_IPSR_MSEL(IP12_15_12, SSI_SDATA2_B, SEL_SSI_1),
  1033. PINMUX_IPSR_MSEL(IP12_15_12, TS_SDEN0_D, SEL_TSIF0_3),
  1034. PINMUX_IPSR_MSEL(IP12_15_12, STP_ISEN_0_D, SEL_SSP1_0_3),
  1035. PINMUX_IPSR_MSEL(IP12_15_12, RIF0_D0_C, SEL_DRIF0_2),
  1036. PINMUX_IPSR_DATA(IP12_19_16, HTX0),
  1037. PINMUX_IPSR_MSEL(IP12_19_16, MSIOF1_TXD_D, SEL_MSIOF1_3),
  1038. PINMUX_IPSR_MSEL(IP12_19_16, SSI_SDATA9_B, SEL_SSI_1),
  1039. PINMUX_IPSR_MSEL(IP12_19_16, TS_SDAT0_D, SEL_TSIF0_3),
  1040. PINMUX_IPSR_MSEL(IP12_19_16, STP_ISD_0_D, SEL_SSP1_0_3),
  1041. PINMUX_IPSR_MSEL(IP12_19_16, RIF0_D1_C, SEL_DRIF0_2),
  1042. PINMUX_IPSR_DATA(IP12_23_20, HCTS0_N),
  1043. PINMUX_IPSR_MSEL(IP12_23_20, RX2_B, SEL_SCIF2_1),
  1044. PINMUX_IPSR_MSEL(IP12_23_20, MSIOF1_SYNC_D, SEL_MSIOF1_3),
  1045. PINMUX_IPSR_MSEL(IP12_23_20, SSI_SCK9_A, SEL_SSI_0),
  1046. PINMUX_IPSR_MSEL(IP12_23_20, TS_SPSYNC0_D, SEL_TSIF0_3),
  1047. PINMUX_IPSR_MSEL(IP12_23_20, STP_ISSYNC_0_D, SEL_SSP1_0_3),
  1048. PINMUX_IPSR_MSEL(IP12_23_20, RIF0_SYNC_C, SEL_DRIF0_2),
  1049. PINMUX_IPSR_MSEL(IP12_23_20, AUDIO_CLKOUT1_A, SEL_ADG_0),
  1050. PINMUX_IPSR_DATA(IP12_27_24, HRTS0_N),
  1051. PINMUX_IPSR_MSEL(IP12_27_24, TX2_B, SEL_SCIF2_1),
  1052. PINMUX_IPSR_MSEL(IP12_27_24, MSIOF1_SS1_D, SEL_MSIOF1_3),
  1053. PINMUX_IPSR_MSEL(IP12_27_24, SSI_WS9_A, SEL_SSI_0),
  1054. PINMUX_IPSR_MSEL(IP12_27_24, STP_IVCXO27_0_D, SEL_SSP1_0_3),
  1055. PINMUX_IPSR_MSEL(IP12_27_24, BPFCLK_A, SEL_FM_0),
  1056. PINMUX_IPSR_MSEL(IP12_27_24, AUDIO_CLKOUT2_A, SEL_ADG_0),
  1057. PINMUX_IPSR_DATA(IP12_31_28, MSIOF0_SYNC),
  1058. PINMUX_IPSR_MSEL(IP12_31_28, AUDIO_CLKOUT_A, SEL_ADG_0),
  1059. /* IPSR13 */
  1060. PINMUX_IPSR_DATA(IP13_3_0, MSIOF0_SS1),
  1061. PINMUX_IPSR_DATA(IP13_3_0, RX5),
  1062. PINMUX_IPSR_MSEL(IP13_3_0, AUDIO_CLKA_C, SEL_ADG_2),
  1063. PINMUX_IPSR_MSEL(IP13_3_0, SSI_SCK2_A, SEL_SSI_0),
  1064. PINMUX_IPSR_MSEL(IP13_3_0, STP_IVCXO27_0_C, SEL_SSP1_0_2),
  1065. PINMUX_IPSR_MSEL(IP13_3_0, AUDIO_CLKOUT3_A, SEL_ADG_0),
  1066. PINMUX_IPSR_MSEL(IP13_3_0, TCLK1_B, SEL_TIMER_TMU_1),
  1067. PINMUX_IPSR_DATA(IP13_7_4, MSIOF0_SS2),
  1068. PINMUX_IPSR_DATA(IP13_7_4, TX5),
  1069. PINMUX_IPSR_MSEL(IP13_7_4, MSIOF1_SS2_D, SEL_MSIOF1_3),
  1070. PINMUX_IPSR_MSEL(IP13_7_4, AUDIO_CLKC_A, SEL_ADG_0),
  1071. PINMUX_IPSR_MSEL(IP13_7_4, SSI_WS2_A, SEL_SSI_0),
  1072. PINMUX_IPSR_MSEL(IP13_7_4, STP_OPWM_0_D, SEL_SSP1_0_3),
  1073. PINMUX_IPSR_MSEL(IP13_7_4, AUDIO_CLKOUT_D, SEL_ADG_3),
  1074. PINMUX_IPSR_MSEL(IP13_7_4, SPEEDIN_B, SEL_SPEED_PULSE_1),
  1075. PINMUX_IPSR_DATA(IP13_11_8, MLB_CLK),
  1076. PINMUX_IPSR_MSEL(IP13_11_8, MSIOF1_SCK_F, SEL_MSIOF1_5),
  1077. PINMUX_IPSR_MSEL(IP13_11_8, SCL1_B, SEL_I2C1_1),
  1078. PINMUX_IPSR_DATA(IP13_15_12, MLB_SIG),
  1079. PINMUX_IPSR_MSEL(IP13_15_12, RX1_B, SEL_SCIF1_1),
  1080. PINMUX_IPSR_MSEL(IP13_15_12, MSIOF1_SYNC_F, SEL_MSIOF1_5),
  1081. PINMUX_IPSR_MSEL(IP13_15_12, SDA1_B, SEL_I2C1_1),
  1082. PINMUX_IPSR_DATA(IP13_19_16, MLB_DAT),
  1083. PINMUX_IPSR_MSEL(IP13_19_16, TX1_B, SEL_SCIF1_1),
  1084. PINMUX_IPSR_MSEL(IP13_19_16, MSIOF1_RXD_F, SEL_MSIOF1_5),
  1085. PINMUX_IPSR_DATA(IP13_23_20, SSI_SCK0129),
  1086. PINMUX_IPSR_MSEL(IP13_23_20, MSIOF1_TXD_F, SEL_MSIOF1_5),
  1087. PINMUX_IPSR_DATA(IP13_27_24, SSI_WS0129),
  1088. PINMUX_IPSR_MSEL(IP13_27_24, MSIOF1_SS1_F, SEL_MSIOF1_5),
  1089. PINMUX_IPSR_DATA(IP13_31_28, SSI_SDATA0),
  1090. PINMUX_IPSR_MSEL(IP13_31_28, MSIOF1_SS2_F, SEL_MSIOF1_5),
  1091. /* IPSR14 */
  1092. PINMUX_IPSR_MSEL(IP14_3_0, SSI_SDATA1_A, SEL_SSI_0),
  1093. PINMUX_IPSR_MSEL(IP14_7_4, SSI_SDATA2_A, SEL_SSI_0),
  1094. PINMUX_IPSR_MSEL(IP14_7_4, SSI_SCK1_B, SEL_SSI_1),
  1095. PINMUX_IPSR_DATA(IP14_11_8, SSI_SCK34),
  1096. PINMUX_IPSR_MSEL(IP14_11_8, MSIOF1_SS1_A, SEL_MSIOF1_0),
  1097. PINMUX_IPSR_MSEL(IP14_11_8, STP_OPWM_0_A, SEL_SSP1_0_0),
  1098. PINMUX_IPSR_DATA(IP14_15_12, SSI_WS34),
  1099. PINMUX_IPSR_MSEL(IP14_15_12, HCTS2_N_A, SEL_HSCIF2_0),
  1100. PINMUX_IPSR_MSEL(IP14_15_12, MSIOF1_SS2_A, SEL_MSIOF1_0),
  1101. PINMUX_IPSR_MSEL(IP14_15_12, STP_IVCXO27_0_A, SEL_SSP1_0_0),
  1102. PINMUX_IPSR_DATA(IP14_19_16, SSI_SDATA3),
  1103. PINMUX_IPSR_MSEL(IP14_19_16, HRTS2_N_A, SEL_HSCIF2_0),
  1104. PINMUX_IPSR_MSEL(IP14_19_16, MSIOF1_TXD_A, SEL_MSIOF1_0),
  1105. PINMUX_IPSR_MSEL(IP14_19_16, TS_SCK0_A, SEL_TSIF0_0),
  1106. PINMUX_IPSR_MSEL(IP14_19_16, STP_ISCLK_0_A, SEL_SSP1_0_0),
  1107. PINMUX_IPSR_MSEL(IP14_19_16, RIF0_D1_A, SEL_DRIF0_0),
  1108. PINMUX_IPSR_MSEL(IP14_19_16, RIF2_D0_A, SEL_DRIF2_0),
  1109. PINMUX_IPSR_DATA(IP14_23_20, SSI_SCK4),
  1110. PINMUX_IPSR_MSEL(IP14_23_20, HRX2_A, SEL_HSCIF2_0),
  1111. PINMUX_IPSR_MSEL(IP14_23_20, MSIOF1_SCK_A, SEL_MSIOF1_0),
  1112. PINMUX_IPSR_MSEL(IP14_23_20, TS_SDAT0_A, SEL_TSIF0_0),
  1113. PINMUX_IPSR_MSEL(IP14_23_20, STP_ISD_0_A, SEL_SSP1_0_0),
  1114. PINMUX_IPSR_MSEL(IP14_23_20, RIF0_CLK_A, SEL_DRIF0_0),
  1115. PINMUX_IPSR_MSEL(IP14_23_20, RIF2_CLK_A, SEL_DRIF2_0),
  1116. PINMUX_IPSR_DATA(IP14_27_24, SSI_WS4),
  1117. PINMUX_IPSR_MSEL(IP14_27_24, HTX2_A, SEL_HSCIF2_0),
  1118. PINMUX_IPSR_MSEL(IP14_27_24, MSIOF1_SYNC_A, SEL_MSIOF1_0),
  1119. PINMUX_IPSR_MSEL(IP14_27_24, TS_SDEN0_A, SEL_TSIF0_0),
  1120. PINMUX_IPSR_MSEL(IP14_27_24, STP_ISEN_0_A, SEL_SSP1_0_0),
  1121. PINMUX_IPSR_MSEL(IP14_27_24, RIF0_SYNC_A, SEL_DRIF0_0),
  1122. PINMUX_IPSR_MSEL(IP14_27_24, RIF2_SYNC_A, SEL_DRIF2_0),
  1123. PINMUX_IPSR_DATA(IP14_31_28, SSI_SDATA4),
  1124. PINMUX_IPSR_MSEL(IP14_31_28, HSCK2_A, SEL_HSCIF2_0),
  1125. PINMUX_IPSR_MSEL(IP14_31_28, MSIOF1_RXD_A, SEL_MSIOF1_0),
  1126. PINMUX_IPSR_MSEL(IP14_31_28, TS_SPSYNC0_A, SEL_TSIF0_0),
  1127. PINMUX_IPSR_MSEL(IP14_31_28, STP_ISSYNC_0_A, SEL_SSP1_0_0),
  1128. PINMUX_IPSR_MSEL(IP14_31_28, RIF0_D0_A, SEL_DRIF0_0),
  1129. PINMUX_IPSR_MSEL(IP14_31_28, RIF2_D1_A, SEL_DRIF2_0),
  1130. /* IPSR15 */
  1131. PINMUX_IPSR_DATA(IP15_3_0, SSI_SCK6),
  1132. PINMUX_IPSR_DATA(IP15_3_0, USB2_PWEN),
  1133. PINMUX_IPSR_MSEL(IP15_3_0, SIM0_RST_D, SEL_SIMCARD_3),
  1134. PINMUX_IPSR_DATA(IP15_7_4, SSI_WS6),
  1135. PINMUX_IPSR_DATA(IP15_7_4, USB2_OVC),
  1136. PINMUX_IPSR_MSEL(IP15_7_4, SIM0_D_D, SEL_SIMCARD_3),
  1137. PINMUX_IPSR_DATA(IP15_11_8, SSI_SDATA6),
  1138. PINMUX_IPSR_MSEL(IP15_11_8, SIM0_CLK_D, SEL_SIMCARD_3),
  1139. PINMUX_IPSR_MSEL(IP15_11_8, SATA_DEVSLP_A, SEL_SCIF_0),
  1140. PINMUX_IPSR_DATA(IP15_15_12, SSI_SCK78),
  1141. PINMUX_IPSR_MSEL(IP15_15_12, HRX2_B, SEL_HSCIF2_1),
  1142. PINMUX_IPSR_MSEL(IP15_15_12, MSIOF1_SCK_C, SEL_MSIOF1_2),
  1143. PINMUX_IPSR_MSEL(IP15_15_12, TS_SCK1_A, SEL_TSIF1_0),
  1144. PINMUX_IPSR_MSEL(IP15_15_12, STP_ISCLK_1_A, SEL_SSP1_1_0),
  1145. PINMUX_IPSR_MSEL(IP15_15_12, RIF1_CLK_A, SEL_DRIF1_0),
  1146. PINMUX_IPSR_MSEL(IP15_15_12, RIF3_CLK_A, SEL_DRIF3_0),
  1147. PINMUX_IPSR_DATA(IP15_19_16, SSI_WS78),
  1148. PINMUX_IPSR_MSEL(IP15_19_16, HTX2_B, SEL_HSCIF2_1),
  1149. PINMUX_IPSR_MSEL(IP15_19_16, MSIOF1_SYNC_C, SEL_MSIOF1_2),
  1150. PINMUX_IPSR_MSEL(IP15_19_16, TS_SDAT1_A, SEL_TSIF1_0),
  1151. PINMUX_IPSR_MSEL(IP15_19_16, STP_ISD_1_A, SEL_SSP1_1_0),
  1152. PINMUX_IPSR_MSEL(IP15_19_16, RIF1_SYNC_A, SEL_DRIF1_0),
  1153. PINMUX_IPSR_MSEL(IP15_19_16, RIF3_SYNC_A, SEL_DRIF3_0),
  1154. PINMUX_IPSR_DATA(IP15_23_20, SSI_SDATA7),
  1155. PINMUX_IPSR_MSEL(IP15_23_20, HCTS2_N_B, SEL_HSCIF2_1),
  1156. PINMUX_IPSR_MSEL(IP15_23_20, MSIOF1_RXD_C, SEL_MSIOF1_2),
  1157. PINMUX_IPSR_MSEL(IP15_23_20, TS_SDEN1_A, SEL_TSIF1_0),
  1158. PINMUX_IPSR_MSEL(IP15_23_20, STP_ISEN_1_A, SEL_SSP1_1_0),
  1159. PINMUX_IPSR_MSEL(IP15_23_20, RIF1_D0_A, SEL_DRIF1_0),
  1160. PINMUX_IPSR_MSEL(IP15_23_20, RIF3_D0_A, SEL_DRIF3_0),
  1161. PINMUX_IPSR_MSEL(IP15_23_20, TCLK2_A, SEL_TIMER_TMU_0),
  1162. PINMUX_IPSR_DATA(IP15_27_24, SSI_SDATA8),
  1163. PINMUX_IPSR_MSEL(IP15_27_24, HRTS2_N_B, SEL_HSCIF2_1),
  1164. PINMUX_IPSR_MSEL(IP15_27_24, MSIOF1_TXD_C, SEL_MSIOF1_2),
  1165. PINMUX_IPSR_MSEL(IP15_27_24, TS_SPSYNC1_A, SEL_TSIF1_0),
  1166. PINMUX_IPSR_MSEL(IP15_27_24, STP_ISSYNC_1_A, SEL_SSP1_1_0),
  1167. PINMUX_IPSR_MSEL(IP15_27_24, RIF1_D1_A, SEL_DRIF1_0),
  1168. PINMUX_IPSR_MSEL(IP15_27_24, RIF3_D1_A, SEL_DRIF3_0),
  1169. PINMUX_IPSR_MSEL(IP15_31_28, SSI_SDATA9_A, SEL_SSI_0),
  1170. PINMUX_IPSR_MSEL(IP15_31_28, HSCK2_B, SEL_HSCIF2_1),
  1171. PINMUX_IPSR_MSEL(IP15_31_28, MSIOF1_SS1_C, SEL_MSIOF1_2),
  1172. PINMUX_IPSR_MSEL(IP15_31_28, HSCK1_A, SEL_HSCIF1_0),
  1173. PINMUX_IPSR_MSEL(IP15_31_28, SSI_WS1_B, SEL_SSI_1),
  1174. PINMUX_IPSR_DATA(IP15_31_28, SCK1),
  1175. PINMUX_IPSR_MSEL(IP15_31_28, STP_IVCXO27_1_A, SEL_SSP1_1_0),
  1176. PINMUX_IPSR_DATA(IP15_31_28, SCK5),
  1177. /* IPSR16 */
  1178. PINMUX_IPSR_MSEL(IP16_3_0, AUDIO_CLKA_A, SEL_ADG_0),
  1179. PINMUX_IPSR_DATA(IP16_3_0, CC5_OSCOUT),
  1180. PINMUX_IPSR_MSEL(IP16_7_4, AUDIO_CLKB_B, SEL_ADG_1),
  1181. PINMUX_IPSR_MSEL(IP16_7_4, SCIF_CLK_A, SEL_SCIF1_0),
  1182. PINMUX_IPSR_MSEL(IP16_7_4, STP_IVCXO27_1_D, SEL_SSP1_1_3),
  1183. PINMUX_IPSR_MSEL(IP16_7_4, REMOCON_A, SEL_REMOCON_0),
  1184. PINMUX_IPSR_MSEL(IP16_7_4, TCLK1_A, SEL_TIMER_TMU_0),
  1185. PINMUX_IPSR_DATA(IP16_11_8, USB0_PWEN),
  1186. PINMUX_IPSR_MSEL(IP16_11_8, SIM0_RST_C, SEL_SIMCARD_2),
  1187. PINMUX_IPSR_MSEL(IP16_11_8, TS_SCK1_D, SEL_TSIF1_3),
  1188. PINMUX_IPSR_MSEL(IP16_11_8, STP_ISCLK_1_D, SEL_SSP1_1_3),
  1189. PINMUX_IPSR_MSEL(IP16_11_8, BPFCLK_B, SEL_FM_1),
  1190. PINMUX_IPSR_MSEL(IP16_11_8, RIF3_CLK_B, SEL_DRIF3_1),
  1191. PINMUX_IPSR_DATA(IP16_15_12, USB0_OVC),
  1192. PINMUX_IPSR_MSEL(IP16_11_8, SIM0_D_C, SEL_SIMCARD_2),
  1193. PINMUX_IPSR_MSEL(IP16_11_8, TS_SDAT1_D, SEL_TSIF1_3),
  1194. PINMUX_IPSR_MSEL(IP16_11_8, STP_ISD_1_D, SEL_SSP1_1_3),
  1195. PINMUX_IPSR_MSEL(IP16_11_8, RIF3_SYNC_B, SEL_DRIF3_1),
  1196. PINMUX_IPSR_DATA(IP16_19_16, USB1_PWEN),
  1197. PINMUX_IPSR_MSEL(IP16_19_16, SIM0_CLK_C, SEL_SIMCARD_2),
  1198. PINMUX_IPSR_MSEL(IP16_19_16, SSI_SCK1_A, SEL_SSI_0),
  1199. PINMUX_IPSR_MSEL(IP16_19_16, TS_SCK0_E, SEL_TSIF0_4),
  1200. PINMUX_IPSR_MSEL(IP16_19_16, STP_ISCLK_0_E, SEL_SSP1_0_4),
  1201. PINMUX_IPSR_MSEL(IP16_19_16, FMCLK_B, SEL_FM_1),
  1202. PINMUX_IPSR_MSEL(IP16_19_16, RIF2_CLK_B, SEL_DRIF2_1),
  1203. PINMUX_IPSR_MSEL(IP16_19_16, SPEEDIN_A, SEL_SPEED_PULSE_0),
  1204. PINMUX_IPSR_DATA(IP16_23_20, USB1_OVC),
  1205. PINMUX_IPSR_MSEL(IP16_23_20, MSIOF1_SS2_C, SEL_MSIOF1_2),
  1206. PINMUX_IPSR_MSEL(IP16_23_20, SSI_WS1_A, SEL_SSI_0),
  1207. PINMUX_IPSR_MSEL(IP16_23_20, TS_SDAT0_E, SEL_TSIF0_4),
  1208. PINMUX_IPSR_MSEL(IP16_23_20, STP_ISD_0_E, SEL_SSP1_0_4),
  1209. PINMUX_IPSR_MSEL(IP16_23_20, FMIN_B, SEL_FM_1),
  1210. PINMUX_IPSR_MSEL(IP16_23_20, RIF2_SYNC_B, SEL_DRIF2_1),
  1211. PINMUX_IPSR_MSEL(IP16_23_20, REMOCON_B, SEL_REMOCON_1),
  1212. PINMUX_IPSR_DATA(IP16_27_24, USB30_PWEN),
  1213. PINMUX_IPSR_MSEL(IP16_27_24, AUDIO_CLKOUT_B, SEL_ADG_1),
  1214. PINMUX_IPSR_MSEL(IP16_27_24, SSI_SCK2_B, SEL_SSI_1),
  1215. PINMUX_IPSR_MSEL(IP16_27_24, TS_SDEN1_D, SEL_TSIF1_3),
  1216. PINMUX_IPSR_MSEL(IP16_27_24, STP_ISEN_1_D, SEL_SSP1_1_2),
  1217. PINMUX_IPSR_MSEL(IP16_27_24, STP_OPWM_0_E, SEL_SSP1_0_4),
  1218. PINMUX_IPSR_MSEL(IP16_27_24, RIF3_D0_B, SEL_DRIF3_1),
  1219. PINMUX_IPSR_MSEL(IP16_27_24, TCLK2_B, SEL_TIMER_TMU_1),
  1220. PINMUX_IPSR_DATA(IP16_27_24, TPU0TO0),
  1221. PINMUX_IPSR_DATA(IP16_31_28, USB30_OVC),
  1222. PINMUX_IPSR_MSEL(IP16_31_28, AUDIO_CLKOUT1_B, SEL_ADG_1),
  1223. PINMUX_IPSR_MSEL(IP16_31_28, SSI_WS2_B, SEL_SSI_1),
  1224. PINMUX_IPSR_MSEL(IP16_31_28, TS_SPSYNC1_D, SEL_TSIF1_3),
  1225. PINMUX_IPSR_MSEL(IP16_31_28, STP_ISSYNC_1_D, SEL_SSP1_1_3),
  1226. PINMUX_IPSR_MSEL(IP16_31_28, STP_IVCXO27_0_E, SEL_SSP1_0_4),
  1227. PINMUX_IPSR_MSEL(IP16_31_28, RIF3_D1_B, SEL_DRIF3_1),
  1228. PINMUX_IPSR_MSEL(IP16_31_28, FSO_TOE_B, SEL_FSO_1),
  1229. PINMUX_IPSR_DATA(IP16_31_28, TPU0TO1),
  1230. /* IPSR17 */
  1231. PINMUX_IPSR_DATA(IP17_3_0, USB31_PWEN),
  1232. PINMUX_IPSR_MSEL(IP17_3_0, AUDIO_CLKOUT2_B, SEL_ADG_1),
  1233. PINMUX_IPSR_MSEL(IP17_3_0, SSI_SCK9_B, SEL_SSI_1),
  1234. PINMUX_IPSR_MSEL(IP17_3_0, TS_SDEN0_E, SEL_TSIF0_4),
  1235. PINMUX_IPSR_MSEL(IP17_3_0, STP_ISEN_0_E, SEL_SSP1_0_4),
  1236. PINMUX_IPSR_MSEL(IP17_3_0, RIF2_D0_B, SEL_DRIF2_1),
  1237. PINMUX_IPSR_DATA(IP17_3_0, TPU0TO2),
  1238. PINMUX_IPSR_DATA(IP17_7_4, USB31_OVC),
  1239. PINMUX_IPSR_MSEL(IP17_7_4, AUDIO_CLKOUT3_B, SEL_ADG_1),
  1240. PINMUX_IPSR_MSEL(IP17_7_4, SSI_WS9_B, SEL_SSI_1),
  1241. PINMUX_IPSR_MSEL(IP17_7_4, TS_SPSYNC0_E, SEL_TSIF0_4),
  1242. PINMUX_IPSR_MSEL(IP17_7_4, STP_ISSYNC_0_E, SEL_SSP1_0_4),
  1243. PINMUX_IPSR_MSEL(IP17_7_4, RIF2_D1_B, SEL_DRIF2_1),
  1244. PINMUX_IPSR_DATA(IP17_7_4, TPU0TO3),
  1245. /* I2C */
  1246. PINMUX_IPSR_NOGP(0, I2C_SEL_0_1),
  1247. PINMUX_IPSR_NOGP(0, I2C_SEL_3_1),
  1248. PINMUX_IPSR_NOGP(0, I2C_SEL_5_1),
  1249. };
  1250. static const struct sh_pfc_pin pinmux_pins[] = {
  1251. PINMUX_GPIO_GP_ALL(),
  1252. };
  1253. /* - AUDIO CLOCK ------------------------------------------------------------ */
  1254. static const unsigned int audio_clk_a_a_pins[] = {
  1255. /* CLK A */
  1256. RCAR_GP_PIN(6, 22),
  1257. };
  1258. static const unsigned int audio_clk_a_a_mux[] = {
  1259. AUDIO_CLKA_A_MARK,
  1260. };
  1261. static const unsigned int audio_clk_a_b_pins[] = {
  1262. /* CLK A */
  1263. RCAR_GP_PIN(5, 4),
  1264. };
  1265. static const unsigned int audio_clk_a_b_mux[] = {
  1266. AUDIO_CLKA_B_MARK,
  1267. };
  1268. static const unsigned int audio_clk_a_c_pins[] = {
  1269. /* CLK A */
  1270. RCAR_GP_PIN(5, 19),
  1271. };
  1272. static const unsigned int audio_clk_a_c_mux[] = {
  1273. AUDIO_CLKA_C_MARK,
  1274. };
  1275. static const unsigned int audio_clk_b_a_pins[] = {
  1276. /* CLK B */
  1277. RCAR_GP_PIN(5, 12),
  1278. };
  1279. static const unsigned int audio_clk_b_a_mux[] = {
  1280. AUDIO_CLKB_A_MARK,
  1281. };
  1282. static const unsigned int audio_clk_b_b_pins[] = {
  1283. /* CLK B */
  1284. RCAR_GP_PIN(6, 23),
  1285. };
  1286. static const unsigned int audio_clk_b_b_mux[] = {
  1287. AUDIO_CLKB_B_MARK,
  1288. };
  1289. static const unsigned int audio_clk_c_a_pins[] = {
  1290. /* CLK C */
  1291. RCAR_GP_PIN(5, 21),
  1292. };
  1293. static const unsigned int audio_clk_c_a_mux[] = {
  1294. AUDIO_CLKC_A_MARK,
  1295. };
  1296. static const unsigned int audio_clk_c_b_pins[] = {
  1297. /* CLK C */
  1298. RCAR_GP_PIN(5, 0),
  1299. };
  1300. static const unsigned int audio_clk_c_b_mux[] = {
  1301. AUDIO_CLKC_B_MARK,
  1302. };
  1303. static const unsigned int audio_clkout_a_pins[] = {
  1304. /* CLKOUT */
  1305. RCAR_GP_PIN(5, 18),
  1306. };
  1307. static const unsigned int audio_clkout_a_mux[] = {
  1308. AUDIO_CLKOUT_A_MARK,
  1309. };
  1310. static const unsigned int audio_clkout_b_pins[] = {
  1311. /* CLKOUT */
  1312. RCAR_GP_PIN(6, 28),
  1313. };
  1314. static const unsigned int audio_clkout_b_mux[] = {
  1315. AUDIO_CLKOUT_B_MARK,
  1316. };
  1317. static const unsigned int audio_clkout_c_pins[] = {
  1318. /* CLKOUT */
  1319. RCAR_GP_PIN(5, 3),
  1320. };
  1321. static const unsigned int audio_clkout_c_mux[] = {
  1322. AUDIO_CLKOUT_C_MARK,
  1323. };
  1324. static const unsigned int audio_clkout_d_pins[] = {
  1325. /* CLKOUT */
  1326. RCAR_GP_PIN(5, 21),
  1327. };
  1328. static const unsigned int audio_clkout_d_mux[] = {
  1329. AUDIO_CLKOUT_D_MARK,
  1330. };
  1331. static const unsigned int audio_clkout1_a_pins[] = {
  1332. /* CLKOUT1 */
  1333. RCAR_GP_PIN(5, 15),
  1334. };
  1335. static const unsigned int audio_clkout1_a_mux[] = {
  1336. AUDIO_CLKOUT1_A_MARK,
  1337. };
  1338. static const unsigned int audio_clkout1_b_pins[] = {
  1339. /* CLKOUT1 */
  1340. RCAR_GP_PIN(6, 29),
  1341. };
  1342. static const unsigned int audio_clkout1_b_mux[] = {
  1343. AUDIO_CLKOUT1_B_MARK,
  1344. };
  1345. static const unsigned int audio_clkout2_a_pins[] = {
  1346. /* CLKOUT2 */
  1347. RCAR_GP_PIN(5, 16),
  1348. };
  1349. static const unsigned int audio_clkout2_a_mux[] = {
  1350. AUDIO_CLKOUT2_A_MARK,
  1351. };
  1352. static const unsigned int audio_clkout2_b_pins[] = {
  1353. /* CLKOUT2 */
  1354. RCAR_GP_PIN(6, 30),
  1355. };
  1356. static const unsigned int audio_clkout2_b_mux[] = {
  1357. AUDIO_CLKOUT2_B_MARK,
  1358. };
  1359. static const unsigned int audio_clkout3_a_pins[] = {
  1360. /* CLKOUT3 */
  1361. RCAR_GP_PIN(5, 19),
  1362. };
  1363. static const unsigned int audio_clkout3_a_mux[] = {
  1364. AUDIO_CLKOUT3_A_MARK,
  1365. };
  1366. static const unsigned int audio_clkout3_b_pins[] = {
  1367. /* CLKOUT3 */
  1368. RCAR_GP_PIN(6, 31),
  1369. };
  1370. static const unsigned int audio_clkout3_b_mux[] = {
  1371. AUDIO_CLKOUT3_B_MARK,
  1372. };
  1373. /* - EtherAVB --------------------------------------------------------------- */
  1374. static const unsigned int avb_link_pins[] = {
  1375. /* AVB_LINK */
  1376. RCAR_GP_PIN(2, 12),
  1377. };
  1378. static const unsigned int avb_link_mux[] = {
  1379. AVB_LINK_MARK,
  1380. };
  1381. static const unsigned int avb_magic_pins[] = {
  1382. /* AVB_MAGIC_ */
  1383. RCAR_GP_PIN(2, 10),
  1384. };
  1385. static const unsigned int avb_magic_mux[] = {
  1386. AVB_MAGIC_MARK,
  1387. };
  1388. static const unsigned int avb_phy_int_pins[] = {
  1389. /* AVB_PHY_INT */
  1390. RCAR_GP_PIN(2, 11),
  1391. };
  1392. static const unsigned int avb_phy_int_mux[] = {
  1393. AVB_PHY_INT_MARK,
  1394. };
  1395. static const unsigned int avb_mdc_pins[] = {
  1396. /* AVB_MDC */
  1397. RCAR_GP_PIN(2, 9),
  1398. };
  1399. static const unsigned int avb_mdc_mux[] = {
  1400. AVB_MDC_MARK,
  1401. };
  1402. static const unsigned int avb_avtp_pps_pins[] = {
  1403. /* AVB_AVTP_PPS */
  1404. RCAR_GP_PIN(2, 6),
  1405. };
  1406. static const unsigned int avb_avtp_pps_mux[] = {
  1407. AVB_AVTP_PPS_MARK,
  1408. };
  1409. static const unsigned int avb_avtp_match_a_pins[] = {
  1410. /* AVB_AVTP_MATCH_A */
  1411. RCAR_GP_PIN(2, 13),
  1412. };
  1413. static const unsigned int avb_avtp_match_a_mux[] = {
  1414. AVB_AVTP_MATCH_A_MARK,
  1415. };
  1416. static const unsigned int avb_avtp_capture_a_pins[] = {
  1417. /* AVB_AVTP_CAPTURE_A */
  1418. RCAR_GP_PIN(2, 14),
  1419. };
  1420. static const unsigned int avb_avtp_capture_a_mux[] = {
  1421. AVB_AVTP_CAPTURE_A_MARK,
  1422. };
  1423. static const unsigned int avb_avtp_match_b_pins[] = {
  1424. /* AVB_AVTP_MATCH_B */
  1425. RCAR_GP_PIN(1, 8),
  1426. };
  1427. static const unsigned int avb_avtp_match_b_mux[] = {
  1428. AVB_AVTP_MATCH_B_MARK,
  1429. };
  1430. static const unsigned int avb_avtp_capture_b_pins[] = {
  1431. /* AVB_AVTP_CAPTURE_B */
  1432. RCAR_GP_PIN(1, 11),
  1433. };
  1434. static const unsigned int avb_avtp_capture_b_mux[] = {
  1435. AVB_AVTP_CAPTURE_B_MARK,
  1436. };
  1437. /* - I2C -------------------------------------------------------------------- */
  1438. static const unsigned int i2c1_a_pins[] = {
  1439. /* SDA, SCL */
  1440. RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 10),
  1441. };
  1442. static const unsigned int i2c1_a_mux[] = {
  1443. SDA1_A_MARK, SCL1_A_MARK,
  1444. };
  1445. static const unsigned int i2c1_b_pins[] = {
  1446. /* SDA, SCL */
  1447. RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 23),
  1448. };
  1449. static const unsigned int i2c1_b_mux[] = {
  1450. SDA1_B_MARK, SCL1_B_MARK,
  1451. };
  1452. static const unsigned int i2c2_a_pins[] = {
  1453. /* SDA, SCL */
  1454. RCAR_GP_PIN(5, 0), RCAR_GP_PIN(5, 4),
  1455. };
  1456. static const unsigned int i2c2_a_mux[] = {
  1457. SDA2_A_MARK, SCL2_A_MARK,
  1458. };
  1459. static const unsigned int i2c2_b_pins[] = {
  1460. /* SDA, SCL */
  1461. RCAR_GP_PIN(3, 13), RCAR_GP_PIN(3, 12),
  1462. };
  1463. static const unsigned int i2c2_b_mux[] = {
  1464. SDA2_B_MARK, SCL2_B_MARK,
  1465. };
  1466. static const unsigned int i2c6_a_pins[] = {
  1467. /* SDA, SCL */
  1468. RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
  1469. };
  1470. static const unsigned int i2c6_a_mux[] = {
  1471. SDA6_A_MARK, SCL6_A_MARK,
  1472. };
  1473. static const unsigned int i2c6_b_pins[] = {
  1474. /* SDA, SCL */
  1475. RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 25),
  1476. };
  1477. static const unsigned int i2c6_b_mux[] = {
  1478. SDA6_B_MARK, SCL6_B_MARK,
  1479. };
  1480. static const unsigned int i2c6_c_pins[] = {
  1481. /* SDA, SCL */
  1482. RCAR_GP_PIN(0, 15), RCAR_GP_PIN(0, 14),
  1483. };
  1484. static const unsigned int i2c6_c_mux[] = {
  1485. SDA6_C_MARK, SCL6_C_MARK,
  1486. };
  1487. /* - SCIF0 ------------------------------------------------------------------ */
  1488. static const unsigned int scif0_data_pins[] = {
  1489. /* RX, TX */
  1490. RCAR_GP_PIN(5, 1), RCAR_GP_PIN(5, 2),
  1491. };
  1492. static const unsigned int scif0_data_mux[] = {
  1493. RX0_MARK, TX0_MARK,
  1494. };
  1495. static const unsigned int scif0_clk_pins[] = {
  1496. /* SCK */
  1497. RCAR_GP_PIN(5, 0),
  1498. };
  1499. static const unsigned int scif0_clk_mux[] = {
  1500. SCK0_MARK,
  1501. };
  1502. static const unsigned int scif0_ctrl_pins[] = {
  1503. /* RTS, CTS */
  1504. RCAR_GP_PIN(5, 4), RCAR_GP_PIN(5, 3),
  1505. };
  1506. static const unsigned int scif0_ctrl_mux[] = {
  1507. RTS0_N_TANS_MARK, CTS0_N_MARK,
  1508. };
  1509. /* - SCIF1 ------------------------------------------------------------------ */
  1510. static const unsigned int scif1_data_a_pins[] = {
  1511. /* RX, TX */
  1512. RCAR_GP_PIN(5, 5), RCAR_GP_PIN(5, 6),
  1513. };
  1514. static const unsigned int scif1_data_a_mux[] = {
  1515. RX1_A_MARK, TX1_A_MARK,
  1516. };
  1517. static const unsigned int scif1_clk_pins[] = {
  1518. /* SCK */
  1519. RCAR_GP_PIN(6, 21),
  1520. };
  1521. static const unsigned int scif1_clk_mux[] = {
  1522. SCK1_MARK,
  1523. };
  1524. static const unsigned int scif1_ctrl_pins[] = {
  1525. /* RTS, CTS */
  1526. RCAR_GP_PIN(5, 8), RCAR_GP_PIN(5, 7),
  1527. };
  1528. static const unsigned int scif1_ctrl_mux[] = {
  1529. RTS1_N_TANS_MARK, CTS1_N_MARK,
  1530. };
  1531. static const unsigned int scif1_data_b_pins[] = {
  1532. /* RX, TX */
  1533. RCAR_GP_PIN(5, 24), RCAR_GP_PIN(5, 25),
  1534. };
  1535. static const unsigned int scif1_data_b_mux[] = {
  1536. RX1_B_MARK, TX1_B_MARK,
  1537. };
  1538. /* - SCIF2 ------------------------------------------------------------------ */
  1539. static const unsigned int scif2_data_a_pins[] = {
  1540. /* RX, TX */
  1541. RCAR_GP_PIN(5, 11), RCAR_GP_PIN(5, 10),
  1542. };
  1543. static const unsigned int scif2_data_a_mux[] = {
  1544. RX2_A_MARK, TX2_A_MARK,
  1545. };
  1546. static const unsigned int scif2_clk_pins[] = {
  1547. /* SCK */
  1548. RCAR_GP_PIN(5, 9),
  1549. };
  1550. static const unsigned int scif2_clk_mux[] = {
  1551. SCK2_MARK,
  1552. };
  1553. static const unsigned int scif2_data_b_pins[] = {
  1554. /* RX, TX */
  1555. RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 16),
  1556. };
  1557. static const unsigned int scif2_data_b_mux[] = {
  1558. RX2_B_MARK, TX2_B_MARK,
  1559. };
  1560. /* - SCIF3 ------------------------------------------------------------------ */
  1561. static const unsigned int scif3_data_a_pins[] = {
  1562. /* RX, TX */
  1563. RCAR_GP_PIN(1, 23), RCAR_GP_PIN(1, 24),
  1564. };
  1565. static const unsigned int scif3_data_a_mux[] = {
  1566. RX3_A_MARK, TX3_A_MARK,
  1567. };
  1568. static const unsigned int scif3_clk_pins[] = {
  1569. /* SCK */
  1570. RCAR_GP_PIN(1, 22),
  1571. };
  1572. static const unsigned int scif3_clk_mux[] = {
  1573. SCK3_MARK,
  1574. };
  1575. static const unsigned int scif3_ctrl_pins[] = {
  1576. /* RTS, CTS */
  1577. RCAR_GP_PIN(1, 26), RCAR_GP_PIN(1, 25),
  1578. };
  1579. static const unsigned int scif3_ctrl_mux[] = {
  1580. RTS3_N_TANS_MARK, CTS3_N_MARK,
  1581. };
  1582. static const unsigned int scif3_data_b_pins[] = {
  1583. /* RX, TX */
  1584. RCAR_GP_PIN(1, 8), RCAR_GP_PIN(1, 11),
  1585. };
  1586. static const unsigned int scif3_data_b_mux[] = {
  1587. RX3_B_MARK, TX3_B_MARK,
  1588. };
  1589. /* - SCIF4 ------------------------------------------------------------------ */
  1590. static const unsigned int scif4_data_a_pins[] = {
  1591. /* RX, TX */
  1592. RCAR_GP_PIN(2, 11), RCAR_GP_PIN(2, 12),
  1593. };
  1594. static const unsigned int scif4_data_a_mux[] = {
  1595. RX4_A_MARK, TX4_A_MARK,
  1596. };
  1597. static const unsigned int scif4_clk_a_pins[] = {
  1598. /* SCK */
  1599. RCAR_GP_PIN(2, 10),
  1600. };
  1601. static const unsigned int scif4_clk_a_mux[] = {
  1602. SCK4_A_MARK,
  1603. };
  1604. static const unsigned int scif4_ctrl_a_pins[] = {
  1605. /* RTS, CTS */
  1606. RCAR_GP_PIN(2, 14), RCAR_GP_PIN(2, 13),
  1607. };
  1608. static const unsigned int scif4_ctrl_a_mux[] = {
  1609. RTS4_N_TANS_A_MARK, CTS4_N_A_MARK,
  1610. };
  1611. static const unsigned int scif4_data_b_pins[] = {
  1612. /* RX, TX */
  1613. RCAR_GP_PIN(1, 6), RCAR_GP_PIN(1, 7),
  1614. };
  1615. static const unsigned int scif4_data_b_mux[] = {
  1616. RX4_B_MARK, TX4_B_MARK,
  1617. };
  1618. static const unsigned int scif4_clk_b_pins[] = {
  1619. /* SCK */
  1620. RCAR_GP_PIN(1, 5),
  1621. };
  1622. static const unsigned int scif4_clk_b_mux[] = {
  1623. SCK4_B_MARK,
  1624. };
  1625. static const unsigned int scif4_ctrl_b_pins[] = {
  1626. /* RTS, CTS */
  1627. RCAR_GP_PIN(1, 10), RCAR_GP_PIN(1, 9),
  1628. };
  1629. static const unsigned int scif4_ctrl_b_mux[] = {
  1630. RTS4_N_TANS_B_MARK, CTS4_N_B_MARK,
  1631. };
  1632. static const unsigned int scif4_data_c_pins[] = {
  1633. /* RX, TX */
  1634. RCAR_GP_PIN(0, 12), RCAR_GP_PIN(0, 13),
  1635. };
  1636. static const unsigned int scif4_data_c_mux[] = {
  1637. RX4_C_MARK, TX4_C_MARK,
  1638. };
  1639. static const unsigned int scif4_clk_c_pins[] = {
  1640. /* SCK */
  1641. RCAR_GP_PIN(0, 8),
  1642. };
  1643. static const unsigned int scif4_clk_c_mux[] = {
  1644. SCK4_C_MARK,
  1645. };
  1646. static const unsigned int scif4_ctrl_c_pins[] = {
  1647. /* RTS, CTS */
  1648. RCAR_GP_PIN(0, 11), RCAR_GP_PIN(0, 10),
  1649. };
  1650. static const unsigned int scif4_ctrl_c_mux[] = {
  1651. RTS4_N_TANS_C_MARK, CTS4_N_C_MARK,
  1652. };
  1653. /* - SCIF5 ------------------------------------------------------------------ */
  1654. static const unsigned int scif5_data_pins[] = {
  1655. /* RX, TX */
  1656. RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 21),
  1657. };
  1658. static const unsigned int scif5_data_mux[] = {
  1659. RX5_MARK, TX5_MARK,
  1660. };
  1661. static const unsigned int scif5_clk_pins[] = {
  1662. /* SCK */
  1663. RCAR_GP_PIN(6, 21),
  1664. };
  1665. static const unsigned int scif5_clk_mux[] = {
  1666. SCK5_MARK,
  1667. };
  1668. /* - SSI -------------------------------------------------------------------- */
  1669. static const unsigned int ssi0_data_pins[] = {
  1670. /* SDATA */
  1671. RCAR_GP_PIN(6, 2),
  1672. };
  1673. static const unsigned int ssi0_data_mux[] = {
  1674. SSI_SDATA0_MARK,
  1675. };
  1676. static const unsigned int ssi01239_ctrl_pins[] = {
  1677. /* SCK, WS */
  1678. RCAR_GP_PIN(6, 0), RCAR_GP_PIN(6, 1),
  1679. };
  1680. static const unsigned int ssi01239_ctrl_mux[] = {
  1681. SSI_SCK0129_MARK, SSI_WS0129_MARK,
  1682. };
  1683. static const unsigned int ssi1_data_a_pins[] = {
  1684. /* SDATA */
  1685. RCAR_GP_PIN(6, 3),
  1686. };
  1687. static const unsigned int ssi1_data_a_mux[] = {
  1688. SSI_SDATA1_A_MARK,
  1689. };
  1690. static const unsigned int ssi1_data_b_pins[] = {
  1691. /* SDATA */
  1692. RCAR_GP_PIN(5, 12),
  1693. };
  1694. static const unsigned int ssi1_data_b_mux[] = {
  1695. SSI_SDATA1_B_MARK,
  1696. };
  1697. static const unsigned int ssi1_ctrl_a_pins[] = {
  1698. /* SCK, WS */
  1699. RCAR_GP_PIN(6, 26), RCAR_GP_PIN(6, 27),
  1700. };
  1701. static const unsigned int ssi1_ctrl_a_mux[] = {
  1702. SSI_SCK1_A_MARK, SSI_WS1_A_MARK,
  1703. };
  1704. static const unsigned int ssi1_ctrl_b_pins[] = {
  1705. /* SCK, WS */
  1706. RCAR_GP_PIN(6, 4), RCAR_GP_PIN(6, 21),
  1707. };
  1708. static const unsigned int ssi1_ctrl_b_mux[] = {
  1709. SSI_SCK1_B_MARK, SSI_WS1_B_MARK,
  1710. };
  1711. static const unsigned int ssi2_data_a_pins[] = {
  1712. /* SDATA */
  1713. RCAR_GP_PIN(6, 4),
  1714. };
  1715. static const unsigned int ssi2_data_a_mux[] = {
  1716. SSI_SDATA2_A_MARK,
  1717. };
  1718. static const unsigned int ssi2_data_b_pins[] = {
  1719. /* SDATA */
  1720. RCAR_GP_PIN(5, 13),
  1721. };
  1722. static const unsigned int ssi2_data_b_mux[] = {
  1723. SSI_SDATA2_B_MARK,
  1724. };
  1725. static const unsigned int ssi2_ctrl_a_pins[] = {
  1726. /* SCK, WS */
  1727. RCAR_GP_PIN(5, 19), RCAR_GP_PIN(5, 21),
  1728. };
  1729. static const unsigned int ssi2_ctrl_a_mux[] = {
  1730. SSI_SCK2_A_MARK, SSI_WS2_A_MARK,
  1731. };
  1732. static const unsigned int ssi2_ctrl_b_pins[] = {
  1733. /* SCK, WS */
  1734. RCAR_GP_PIN(6, 28), RCAR_GP_PIN(6, 29),
  1735. };
  1736. static const unsigned int ssi2_ctrl_b_mux[] = {
  1737. SSI_SCK2_B_MARK, SSI_WS2_B_MARK,
  1738. };
  1739. static const unsigned int ssi3_data_pins[] = {
  1740. /* SDATA */
  1741. RCAR_GP_PIN(6, 7),
  1742. };
  1743. static const unsigned int ssi3_data_mux[] = {
  1744. SSI_SDATA3_MARK,
  1745. };
  1746. static const unsigned int ssi34_ctrl_pins[] = {
  1747. /* SCK, WS */
  1748. RCAR_GP_PIN(6, 5), RCAR_GP_PIN(6, 6),
  1749. };
  1750. static const unsigned int ssi34_ctrl_mux[] = {
  1751. SSI_SCK34_MARK, SSI_WS34_MARK,
  1752. };
  1753. static const unsigned int ssi4_data_pins[] = {
  1754. /* SDATA */
  1755. RCAR_GP_PIN(6, 10),
  1756. };
  1757. static const unsigned int ssi4_data_mux[] = {
  1758. SSI_SDATA4_MARK,
  1759. };
  1760. static const unsigned int ssi4_ctrl_pins[] = {
  1761. /* SCK, WS */
  1762. RCAR_GP_PIN(6, 8), RCAR_GP_PIN(6, 9),
  1763. };
  1764. static const unsigned int ssi4_ctrl_mux[] = {
  1765. SSI_SCK4_MARK, SSI_WS4_MARK,
  1766. };
  1767. static const unsigned int ssi5_data_pins[] = {
  1768. /* SDATA */
  1769. RCAR_GP_PIN(6, 13),
  1770. };
  1771. static const unsigned int ssi5_data_mux[] = {
  1772. SSI_SDATA5_MARK,
  1773. };
  1774. static const unsigned int ssi5_ctrl_pins[] = {
  1775. /* SCK, WS */
  1776. RCAR_GP_PIN(6, 11), RCAR_GP_PIN(6, 12),
  1777. };
  1778. static const unsigned int ssi5_ctrl_mux[] = {
  1779. SSI_SCK5_MARK, SSI_WS5_MARK,
  1780. };
  1781. static const unsigned int ssi6_data_pins[] = {
  1782. /* SDATA */
  1783. RCAR_GP_PIN(6, 16),
  1784. };
  1785. static const unsigned int ssi6_data_mux[] = {
  1786. SSI_SDATA6_MARK,
  1787. };
  1788. static const unsigned int ssi6_ctrl_pins[] = {
  1789. /* SCK, WS */
  1790. RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 15),
  1791. };
  1792. static const unsigned int ssi6_ctrl_mux[] = {
  1793. SSI_SCK6_MARK, SSI_WS6_MARK,
  1794. };
  1795. static const unsigned int ssi7_data_pins[] = {
  1796. /* SDATA */
  1797. RCAR_GP_PIN(6, 19),
  1798. };
  1799. static const unsigned int ssi7_data_mux[] = {
  1800. SSI_SDATA7_MARK,
  1801. };
  1802. static const unsigned int ssi78_ctrl_pins[] = {
  1803. /* SCK, WS */
  1804. RCAR_GP_PIN(6, 17), RCAR_GP_PIN(6, 18),
  1805. };
  1806. static const unsigned int ssi78_ctrl_mux[] = {
  1807. SSI_SCK78_MARK, SSI_WS78_MARK,
  1808. };
  1809. static const unsigned int ssi8_data_pins[] = {
  1810. /* SDATA */
  1811. RCAR_GP_PIN(6, 20),
  1812. };
  1813. static const unsigned int ssi8_data_mux[] = {
  1814. SSI_SDATA8_MARK,
  1815. };
  1816. static const unsigned int ssi9_data_a_pins[] = {
  1817. /* SDATA */
  1818. RCAR_GP_PIN(6, 21),
  1819. };
  1820. static const unsigned int ssi9_data_a_mux[] = {
  1821. SSI_SDATA9_A_MARK,
  1822. };
  1823. static const unsigned int ssi9_data_b_pins[] = {
  1824. /* SDATA */
  1825. RCAR_GP_PIN(5, 14),
  1826. };
  1827. static const unsigned int ssi9_data_b_mux[] = {
  1828. SSI_SDATA9_B_MARK,
  1829. };
  1830. static const unsigned int ssi9_ctrl_a_pins[] = {
  1831. /* SCK, WS */
  1832. RCAR_GP_PIN(5, 15), RCAR_GP_PIN(5, 16),
  1833. };
  1834. static const unsigned int ssi9_ctrl_a_mux[] = {
  1835. SSI_SCK9_A_MARK, SSI_WS9_A_MARK,
  1836. };
  1837. static const unsigned int ssi9_ctrl_b_pins[] = {
  1838. /* SCK, WS */
  1839. RCAR_GP_PIN(6, 30), RCAR_GP_PIN(6, 31),
  1840. };
  1841. static const unsigned int ssi9_ctrl_b_mux[] = {
  1842. SSI_SCK9_B_MARK, SSI_WS9_B_MARK,
  1843. };
  1844. static const struct sh_pfc_pin_group pinmux_groups[] = {
  1845. SH_PFC_PIN_GROUP(audio_clk_a_a),
  1846. SH_PFC_PIN_GROUP(audio_clk_a_b),
  1847. SH_PFC_PIN_GROUP(audio_clk_a_c),
  1848. SH_PFC_PIN_GROUP(audio_clk_b_a),
  1849. SH_PFC_PIN_GROUP(audio_clk_b_b),
  1850. SH_PFC_PIN_GROUP(audio_clk_c_a),
  1851. SH_PFC_PIN_GROUP(audio_clk_c_b),
  1852. SH_PFC_PIN_GROUP(audio_clkout_a),
  1853. SH_PFC_PIN_GROUP(audio_clkout_b),
  1854. SH_PFC_PIN_GROUP(audio_clkout_c),
  1855. SH_PFC_PIN_GROUP(audio_clkout_d),
  1856. SH_PFC_PIN_GROUP(audio_clkout1_a),
  1857. SH_PFC_PIN_GROUP(audio_clkout1_b),
  1858. SH_PFC_PIN_GROUP(audio_clkout2_a),
  1859. SH_PFC_PIN_GROUP(audio_clkout2_b),
  1860. SH_PFC_PIN_GROUP(audio_clkout3_a),
  1861. SH_PFC_PIN_GROUP(audio_clkout3_b),
  1862. SH_PFC_PIN_GROUP(avb_link),
  1863. SH_PFC_PIN_GROUP(avb_magic),
  1864. SH_PFC_PIN_GROUP(avb_phy_int),
  1865. SH_PFC_PIN_GROUP(avb_mdc),
  1866. SH_PFC_PIN_GROUP(avb_avtp_pps),
  1867. SH_PFC_PIN_GROUP(avb_avtp_match_a),
  1868. SH_PFC_PIN_GROUP(avb_avtp_capture_a),
  1869. SH_PFC_PIN_GROUP(avb_avtp_match_b),
  1870. SH_PFC_PIN_GROUP(avb_avtp_capture_b),
  1871. SH_PFC_PIN_GROUP(i2c1_a),
  1872. SH_PFC_PIN_GROUP(i2c1_b),
  1873. SH_PFC_PIN_GROUP(i2c2_a),
  1874. SH_PFC_PIN_GROUP(i2c2_b),
  1875. SH_PFC_PIN_GROUP(i2c6_a),
  1876. SH_PFC_PIN_GROUP(i2c6_b),
  1877. SH_PFC_PIN_GROUP(i2c6_c),
  1878. SH_PFC_PIN_GROUP(scif0_data),
  1879. SH_PFC_PIN_GROUP(scif0_clk),
  1880. SH_PFC_PIN_GROUP(scif0_ctrl),
  1881. SH_PFC_PIN_GROUP(scif1_data_a),
  1882. SH_PFC_PIN_GROUP(scif1_clk),
  1883. SH_PFC_PIN_GROUP(scif1_ctrl),
  1884. SH_PFC_PIN_GROUP(scif1_data_b),
  1885. SH_PFC_PIN_GROUP(scif2_data_a),
  1886. SH_PFC_PIN_GROUP(scif2_clk),
  1887. SH_PFC_PIN_GROUP(scif2_data_b),
  1888. SH_PFC_PIN_GROUP(scif3_data_a),
  1889. SH_PFC_PIN_GROUP(scif3_clk),
  1890. SH_PFC_PIN_GROUP(scif3_ctrl),
  1891. SH_PFC_PIN_GROUP(scif3_data_b),
  1892. SH_PFC_PIN_GROUP(scif4_data_a),
  1893. SH_PFC_PIN_GROUP(scif4_clk_a),
  1894. SH_PFC_PIN_GROUP(scif4_ctrl_a),
  1895. SH_PFC_PIN_GROUP(scif4_data_b),
  1896. SH_PFC_PIN_GROUP(scif4_clk_b),
  1897. SH_PFC_PIN_GROUP(scif4_ctrl_b),
  1898. SH_PFC_PIN_GROUP(scif4_data_c),
  1899. SH_PFC_PIN_GROUP(scif4_clk_c),
  1900. SH_PFC_PIN_GROUP(scif4_ctrl_c),
  1901. SH_PFC_PIN_GROUP(scif5_data),
  1902. SH_PFC_PIN_GROUP(scif5_clk),
  1903. SH_PFC_PIN_GROUP(ssi0_data),
  1904. SH_PFC_PIN_GROUP(ssi01239_ctrl),
  1905. SH_PFC_PIN_GROUP(ssi1_data_a),
  1906. SH_PFC_PIN_GROUP(ssi1_data_b),
  1907. SH_PFC_PIN_GROUP(ssi1_ctrl_a),
  1908. SH_PFC_PIN_GROUP(ssi1_ctrl_b),
  1909. SH_PFC_PIN_GROUP(ssi2_data_a),
  1910. SH_PFC_PIN_GROUP(ssi2_data_b),
  1911. SH_PFC_PIN_GROUP(ssi2_ctrl_a),
  1912. SH_PFC_PIN_GROUP(ssi2_ctrl_b),
  1913. SH_PFC_PIN_GROUP(ssi3_data),
  1914. SH_PFC_PIN_GROUP(ssi34_ctrl),
  1915. SH_PFC_PIN_GROUP(ssi4_data),
  1916. SH_PFC_PIN_GROUP(ssi4_ctrl),
  1917. SH_PFC_PIN_GROUP(ssi5_data),
  1918. SH_PFC_PIN_GROUP(ssi5_ctrl),
  1919. SH_PFC_PIN_GROUP(ssi6_data),
  1920. SH_PFC_PIN_GROUP(ssi6_ctrl),
  1921. SH_PFC_PIN_GROUP(ssi7_data),
  1922. SH_PFC_PIN_GROUP(ssi78_ctrl),
  1923. SH_PFC_PIN_GROUP(ssi8_data),
  1924. SH_PFC_PIN_GROUP(ssi9_data_a),
  1925. SH_PFC_PIN_GROUP(ssi9_data_b),
  1926. SH_PFC_PIN_GROUP(ssi9_ctrl_a),
  1927. SH_PFC_PIN_GROUP(ssi9_ctrl_b),
  1928. };
  1929. static const char * const audio_clk_groups[] = {
  1930. "audio_clk_a_a",
  1931. "audio_clk_a_b",
  1932. "audio_clk_a_c",
  1933. "audio_clk_b_a",
  1934. "audio_clk_b_b",
  1935. "audio_clk_c_a",
  1936. "audio_clk_c_b",
  1937. "audio_clkout_a",
  1938. "audio_clkout_b",
  1939. "audio_clkout_c",
  1940. "audio_clkout_d",
  1941. "audio_clkout1_a",
  1942. "audio_clkout1_b",
  1943. "audio_clkout2_a",
  1944. "audio_clkout2_b",
  1945. "audio_clkout3_a",
  1946. "audio_clkout3_b",
  1947. };
  1948. static const char * const avb_groups[] = {
  1949. "avb_link",
  1950. "avb_magic",
  1951. "avb_phy_int",
  1952. "avb_mdc",
  1953. "avb_avtp_pps",
  1954. "avb_avtp_match_a",
  1955. "avb_avtp_capture_a",
  1956. "avb_avtp_match_b",
  1957. "avb_avtp_capture_b",
  1958. };
  1959. static const char * const i2c1_groups[] = {
  1960. "i2c1_a",
  1961. "i2c1_b",
  1962. };
  1963. static const char * const i2c2_groups[] = {
  1964. "i2c2_a",
  1965. "i2c2_b",
  1966. };
  1967. static const char * const i2c6_groups[] = {
  1968. "i2c6_a",
  1969. "i2c6_b",
  1970. "i2c6_c",
  1971. };
  1972. static const char * const scif0_groups[] = {
  1973. "scif0_data",
  1974. "scif0_clk",
  1975. "scif0_ctrl",
  1976. };
  1977. static const char * const scif1_groups[] = {
  1978. "scif1_data_a",
  1979. "scif1_clk",
  1980. "scif1_ctrl",
  1981. "scif1_data_b",
  1982. };
  1983. static const char * const scif2_groups[] = {
  1984. "scif2_data_a",
  1985. "scif2_clk",
  1986. "scif2_data_b",
  1987. };
  1988. static const char * const scif3_groups[] = {
  1989. "scif3_data_a",
  1990. "scif3_clk",
  1991. "scif3_ctrl",
  1992. "scif3_data_b",
  1993. };
  1994. static const char * const scif4_groups[] = {
  1995. "scif4_data_a",
  1996. "scif4_clk_a",
  1997. "scif4_ctrl_a",
  1998. "scif4_data_b",
  1999. "scif4_clk_b",
  2000. "scif4_ctrl_b",
  2001. "scif4_data_c",
  2002. "scif4_clk_c",
  2003. "scif4_ctrl_c",
  2004. };
  2005. static const char * const scif5_groups[] = {
  2006. "scif5_data",
  2007. "scif5_clk",
  2008. };
  2009. static const char * const ssi_groups[] = {
  2010. "ssi0_data",
  2011. "ssi01239_ctrl",
  2012. "ssi1_data_a",
  2013. "ssi1_data_b",
  2014. "ssi1_ctrl_a",
  2015. "ssi1_ctrl_b",
  2016. "ssi2_data_a",
  2017. "ssi2_data_b",
  2018. "ssi2_ctrl_a",
  2019. "ssi2_ctrl_b",
  2020. "ssi3_data",
  2021. "ssi34_ctrl",
  2022. "ssi4_data",
  2023. "ssi4_ctrl",
  2024. "ssi5_data",
  2025. "ssi5_ctrl",
  2026. "ssi6_data",
  2027. "ssi6_ctrl",
  2028. "ssi7_data",
  2029. "ssi78_ctrl",
  2030. "ssi8_data",
  2031. "ssi9_data_a",
  2032. "ssi9_data_b",
  2033. "ssi9_ctrl_a",
  2034. "ssi9_ctrl_b",
  2035. };
  2036. static const struct sh_pfc_function pinmux_functions[] = {
  2037. SH_PFC_FUNCTION(audio_clk),
  2038. SH_PFC_FUNCTION(avb),
  2039. SH_PFC_FUNCTION(i2c1),
  2040. SH_PFC_FUNCTION(i2c2),
  2041. SH_PFC_FUNCTION(i2c6),
  2042. SH_PFC_FUNCTION(scif0),
  2043. SH_PFC_FUNCTION(scif1),
  2044. SH_PFC_FUNCTION(scif2),
  2045. SH_PFC_FUNCTION(scif3),
  2046. SH_PFC_FUNCTION(scif4),
  2047. SH_PFC_FUNCTION(scif5),
  2048. SH_PFC_FUNCTION(ssi),
  2049. };
  2050. static const struct pinmux_cfg_reg pinmux_config_regs[] = {
  2051. #define F_(x, y) FN_##y
  2052. #define FM(x) FN_##x
  2053. { PINMUX_CFG_REG("GPSR0", 0xe6060100, 32, 1) {
  2054. 0, 0,
  2055. 0, 0,
  2056. 0, 0,
  2057. 0, 0,
  2058. 0, 0,
  2059. 0, 0,
  2060. 0, 0,
  2061. 0, 0,
  2062. 0, 0,
  2063. 0, 0,
  2064. 0, 0,
  2065. 0, 0,
  2066. 0, 0,
  2067. 0, 0,
  2068. 0, 0,
  2069. 0, 0,
  2070. GP_0_15_FN, GPSR0_15,
  2071. GP_0_14_FN, GPSR0_14,
  2072. GP_0_13_FN, GPSR0_13,
  2073. GP_0_12_FN, GPSR0_12,
  2074. GP_0_11_FN, GPSR0_11,
  2075. GP_0_10_FN, GPSR0_10,
  2076. GP_0_9_FN, GPSR0_9,
  2077. GP_0_8_FN, GPSR0_8,
  2078. GP_0_7_FN, GPSR0_7,
  2079. GP_0_6_FN, GPSR0_6,
  2080. GP_0_5_FN, GPSR0_5,
  2081. GP_0_4_FN, GPSR0_4,
  2082. GP_0_3_FN, GPSR0_3,
  2083. GP_0_2_FN, GPSR0_2,
  2084. GP_0_1_FN, GPSR0_1,
  2085. GP_0_0_FN, GPSR0_0, }
  2086. },
  2087. { PINMUX_CFG_REG("GPSR1", 0xe6060104, 32, 1) {
  2088. 0, 0,
  2089. 0, 0,
  2090. 0, 0,
  2091. 0, 0,
  2092. GP_1_27_FN, GPSR1_27,
  2093. GP_1_26_FN, GPSR1_26,
  2094. GP_1_25_FN, GPSR1_25,
  2095. GP_1_24_FN, GPSR1_24,
  2096. GP_1_23_FN, GPSR1_23,
  2097. GP_1_22_FN, GPSR1_22,
  2098. GP_1_21_FN, GPSR1_21,
  2099. GP_1_20_FN, GPSR1_20,
  2100. GP_1_19_FN, GPSR1_19,
  2101. GP_1_18_FN, GPSR1_18,
  2102. GP_1_17_FN, GPSR1_17,
  2103. GP_1_16_FN, GPSR1_16,
  2104. GP_1_15_FN, GPSR1_15,
  2105. GP_1_14_FN, GPSR1_14,
  2106. GP_1_13_FN, GPSR1_13,
  2107. GP_1_12_FN, GPSR1_12,
  2108. GP_1_11_FN, GPSR1_11,
  2109. GP_1_10_FN, GPSR1_10,
  2110. GP_1_9_FN, GPSR1_9,
  2111. GP_1_8_FN, GPSR1_8,
  2112. GP_1_7_FN, GPSR1_7,
  2113. GP_1_6_FN, GPSR1_6,
  2114. GP_1_5_FN, GPSR1_5,
  2115. GP_1_4_FN, GPSR1_4,
  2116. GP_1_3_FN, GPSR1_3,
  2117. GP_1_2_FN, GPSR1_2,
  2118. GP_1_1_FN, GPSR1_1,
  2119. GP_1_0_FN, GPSR1_0, }
  2120. },
  2121. { PINMUX_CFG_REG("GPSR2", 0xe6060108, 32, 1) {
  2122. 0, 0,
  2123. 0, 0,
  2124. 0, 0,
  2125. 0, 0,
  2126. 0, 0,
  2127. 0, 0,
  2128. 0, 0,
  2129. 0, 0,
  2130. 0, 0,
  2131. 0, 0,
  2132. 0, 0,
  2133. 0, 0,
  2134. 0, 0,
  2135. 0, 0,
  2136. 0, 0,
  2137. 0, 0,
  2138. 0, 0,
  2139. GP_2_14_FN, GPSR2_14,
  2140. GP_2_13_FN, GPSR2_13,
  2141. GP_2_12_FN, GPSR2_12,
  2142. GP_2_11_FN, GPSR2_11,
  2143. GP_2_10_FN, GPSR2_10,
  2144. GP_2_9_FN, GPSR2_9,
  2145. GP_2_8_FN, GPSR2_8,
  2146. GP_2_7_FN, GPSR2_7,
  2147. GP_2_6_FN, GPSR2_6,
  2148. GP_2_5_FN, GPSR2_5,
  2149. GP_2_4_FN, GPSR2_4,
  2150. GP_2_3_FN, GPSR2_3,
  2151. GP_2_2_FN, GPSR2_2,
  2152. GP_2_1_FN, GPSR2_1,
  2153. GP_2_0_FN, GPSR2_0, }
  2154. },
  2155. { PINMUX_CFG_REG("GPSR3", 0xe606010c, 32, 1) {
  2156. 0, 0,
  2157. 0, 0,
  2158. 0, 0,
  2159. 0, 0,
  2160. 0, 0,
  2161. 0, 0,
  2162. 0, 0,
  2163. 0, 0,
  2164. 0, 0,
  2165. 0, 0,
  2166. 0, 0,
  2167. 0, 0,
  2168. 0, 0,
  2169. 0, 0,
  2170. 0, 0,
  2171. 0, 0,
  2172. GP_3_15_FN, GPSR3_15,
  2173. GP_3_14_FN, GPSR3_14,
  2174. GP_3_13_FN, GPSR3_13,
  2175. GP_3_12_FN, GPSR3_12,
  2176. GP_3_11_FN, GPSR3_11,
  2177. GP_3_10_FN, GPSR3_10,
  2178. GP_3_9_FN, GPSR3_9,
  2179. GP_3_8_FN, GPSR3_8,
  2180. GP_3_7_FN, GPSR3_7,
  2181. GP_3_6_FN, GPSR3_6,
  2182. GP_3_5_FN, GPSR3_5,
  2183. GP_3_4_FN, GPSR3_4,
  2184. GP_3_3_FN, GPSR3_3,
  2185. GP_3_2_FN, GPSR3_2,
  2186. GP_3_1_FN, GPSR3_1,
  2187. GP_3_0_FN, GPSR3_0, }
  2188. },
  2189. { PINMUX_CFG_REG("GPSR4", 0xe6060110, 32, 1) {
  2190. 0, 0,
  2191. 0, 0,
  2192. 0, 0,
  2193. 0, 0,
  2194. 0, 0,
  2195. 0, 0,
  2196. 0, 0,
  2197. 0, 0,
  2198. 0, 0,
  2199. 0, 0,
  2200. 0, 0,
  2201. 0, 0,
  2202. 0, 0,
  2203. 0, 0,
  2204. GP_4_17_FN, GPSR4_17,
  2205. GP_4_16_FN, GPSR4_16,
  2206. GP_4_15_FN, GPSR4_15,
  2207. GP_4_14_FN, GPSR4_14,
  2208. GP_4_13_FN, GPSR4_13,
  2209. GP_4_12_FN, GPSR4_12,
  2210. GP_4_11_FN, GPSR4_11,
  2211. GP_4_10_FN, GPSR4_10,
  2212. GP_4_9_FN, GPSR4_9,
  2213. GP_4_8_FN, GPSR4_8,
  2214. GP_4_7_FN, GPSR4_7,
  2215. GP_4_6_FN, GPSR4_6,
  2216. GP_4_5_FN, GPSR4_5,
  2217. GP_4_4_FN, GPSR4_4,
  2218. GP_4_3_FN, GPSR4_3,
  2219. GP_4_2_FN, GPSR4_2,
  2220. GP_4_1_FN, GPSR4_1,
  2221. GP_4_0_FN, GPSR4_0, }
  2222. },
  2223. { PINMUX_CFG_REG("GPSR5", 0xe6060114, 32, 1) {
  2224. 0, 0,
  2225. 0, 0,
  2226. 0, 0,
  2227. 0, 0,
  2228. 0, 0,
  2229. 0, 0,
  2230. GP_5_25_FN, GPSR5_25,
  2231. GP_5_24_FN, GPSR5_24,
  2232. GP_5_23_FN, GPSR5_23,
  2233. GP_5_22_FN, GPSR5_22,
  2234. GP_5_21_FN, GPSR5_21,
  2235. GP_5_20_FN, GPSR5_20,
  2236. GP_5_19_FN, GPSR5_19,
  2237. GP_5_18_FN, GPSR5_18,
  2238. GP_5_17_FN, GPSR5_17,
  2239. GP_5_16_FN, GPSR5_16,
  2240. GP_5_15_FN, GPSR5_15,
  2241. GP_5_14_FN, GPSR5_14,
  2242. GP_5_13_FN, GPSR5_13,
  2243. GP_5_12_FN, GPSR5_12,
  2244. GP_5_11_FN, GPSR5_11,
  2245. GP_5_10_FN, GPSR5_10,
  2246. GP_5_9_FN, GPSR5_9,
  2247. GP_5_8_FN, GPSR5_8,
  2248. GP_5_7_FN, GPSR5_7,
  2249. GP_5_6_FN, GPSR5_6,
  2250. GP_5_5_FN, GPSR5_5,
  2251. GP_5_4_FN, GPSR5_4,
  2252. GP_5_3_FN, GPSR5_3,
  2253. GP_5_2_FN, GPSR5_2,
  2254. GP_5_1_FN, GPSR5_1,
  2255. GP_5_0_FN, GPSR5_0, }
  2256. },
  2257. { PINMUX_CFG_REG("GPSR6", 0xe6060118, 32, 1) {
  2258. GP_6_31_FN, GPSR6_31,
  2259. GP_6_30_FN, GPSR6_30,
  2260. GP_6_29_FN, GPSR6_29,
  2261. GP_6_28_FN, GPSR6_28,
  2262. GP_6_27_FN, GPSR6_27,
  2263. GP_6_26_FN, GPSR6_26,
  2264. GP_6_25_FN, GPSR6_25,
  2265. GP_6_24_FN, GPSR6_24,
  2266. GP_6_23_FN, GPSR6_23,
  2267. GP_6_22_FN, GPSR6_22,
  2268. GP_6_21_FN, GPSR6_21,
  2269. GP_6_20_FN, GPSR6_20,
  2270. GP_6_19_FN, GPSR6_19,
  2271. GP_6_18_FN, GPSR6_18,
  2272. GP_6_17_FN, GPSR6_17,
  2273. GP_6_16_FN, GPSR6_16,
  2274. GP_6_15_FN, GPSR6_15,
  2275. GP_6_14_FN, GPSR6_14,
  2276. GP_6_13_FN, GPSR6_13,
  2277. GP_6_12_FN, GPSR6_12,
  2278. GP_6_11_FN, GPSR6_11,
  2279. GP_6_10_FN, GPSR6_10,
  2280. GP_6_9_FN, GPSR6_9,
  2281. GP_6_8_FN, GPSR6_8,
  2282. GP_6_7_FN, GPSR6_7,
  2283. GP_6_6_FN, GPSR6_6,
  2284. GP_6_5_FN, GPSR6_5,
  2285. GP_6_4_FN, GPSR6_4,
  2286. GP_6_3_FN, GPSR6_3,
  2287. GP_6_2_FN, GPSR6_2,
  2288. GP_6_1_FN, GPSR6_1,
  2289. GP_6_0_FN, GPSR6_0, }
  2290. },
  2291. { PINMUX_CFG_REG("GPSR7", 0xe606011c, 32, 1) {
  2292. 0, 0,
  2293. 0, 0,
  2294. 0, 0,
  2295. 0, 0,
  2296. 0, 0,
  2297. 0, 0,
  2298. 0, 0,
  2299. 0, 0,
  2300. 0, 0,
  2301. 0, 0,
  2302. 0, 0,
  2303. 0, 0,
  2304. 0, 0,
  2305. 0, 0,
  2306. 0, 0,
  2307. 0, 0,
  2308. 0, 0,
  2309. 0, 0,
  2310. 0, 0,
  2311. 0, 0,
  2312. 0, 0,
  2313. 0, 0,
  2314. 0, 0,
  2315. 0, 0,
  2316. 0, 0,
  2317. 0, 0,
  2318. 0, 0,
  2319. 0, 0,
  2320. GP_7_3_FN, GPSR7_3,
  2321. GP_7_2_FN, GPSR7_2,
  2322. GP_7_1_FN, GPSR7_1,
  2323. GP_7_0_FN, GPSR7_0, }
  2324. },
  2325. #undef F_
  2326. #undef FM
  2327. #define F_(x, y) x,
  2328. #define FM(x) FN_##x,
  2329. { PINMUX_CFG_REG("IPSR0", 0xe6060200, 32, 4) {
  2330. IP0_31_28
  2331. IP0_27_24
  2332. IP0_23_20
  2333. IP0_19_16
  2334. IP0_15_12
  2335. IP0_11_8
  2336. IP0_7_4
  2337. IP0_3_0 }
  2338. },
  2339. { PINMUX_CFG_REG("IPSR1", 0xe6060204, 32, 4) {
  2340. IP1_31_28
  2341. IP1_27_24
  2342. IP1_23_20
  2343. IP1_19_16
  2344. IP1_15_12
  2345. IP1_11_8
  2346. IP1_7_4
  2347. IP1_3_0 }
  2348. },
  2349. { PINMUX_CFG_REG("IPSR2", 0xe6060208, 32, 4) {
  2350. IP2_31_28
  2351. IP2_27_24
  2352. IP2_23_20
  2353. IP2_19_16
  2354. IP2_15_12
  2355. IP2_11_8
  2356. IP2_7_4
  2357. IP2_3_0 }
  2358. },
  2359. { PINMUX_CFG_REG("IPSR3", 0xe606020c, 32, 4) {
  2360. IP3_31_28
  2361. IP3_27_24
  2362. IP3_23_20
  2363. IP3_19_16
  2364. IP3_15_12
  2365. IP3_11_8
  2366. IP3_7_4
  2367. IP3_3_0 }
  2368. },
  2369. { PINMUX_CFG_REG("IPSR4", 0xe6060210, 32, 4) {
  2370. IP4_31_28
  2371. IP4_27_24
  2372. IP4_23_20
  2373. IP4_19_16
  2374. IP4_15_12
  2375. IP4_11_8
  2376. IP4_7_4
  2377. IP4_3_0 }
  2378. },
  2379. { PINMUX_CFG_REG("IPSR5", 0xe6060214, 32, 4) {
  2380. IP5_31_28
  2381. IP5_27_24
  2382. IP5_23_20
  2383. IP5_19_16
  2384. IP5_15_12
  2385. IP5_11_8
  2386. IP5_7_4
  2387. IP5_3_0 }
  2388. },
  2389. { PINMUX_CFG_REG("IPSR6", 0xe6060218, 32, 4) {
  2390. IP6_31_28
  2391. IP6_27_24
  2392. IP6_23_20
  2393. IP6_19_16
  2394. IP6_15_12
  2395. IP6_11_8
  2396. IP6_7_4
  2397. IP6_3_0 }
  2398. },
  2399. { PINMUX_CFG_REG("IPSR7", 0xe606021c, 32, 4) {
  2400. IP7_31_28
  2401. IP7_27_24
  2402. IP7_23_20
  2403. IP7_19_16
  2404. IP7_15_12
  2405. IP7_11_8
  2406. IP7_7_4
  2407. IP7_3_0 }
  2408. },
  2409. { PINMUX_CFG_REG("IPSR8", 0xe6060220, 32, 4) {
  2410. IP8_31_28
  2411. IP8_27_24
  2412. IP8_23_20
  2413. IP8_19_16
  2414. IP8_15_12
  2415. IP8_11_8
  2416. IP8_7_4
  2417. IP8_3_0 }
  2418. },
  2419. { PINMUX_CFG_REG("IPSR9", 0xe6060224, 32, 4) {
  2420. IP9_31_28
  2421. IP9_27_24
  2422. IP9_23_20
  2423. IP9_19_16
  2424. IP9_15_12
  2425. IP9_11_8
  2426. IP9_7_4
  2427. IP9_3_0 }
  2428. },
  2429. { PINMUX_CFG_REG("IPSR10", 0xe6060228, 32, 4) {
  2430. IP10_31_28
  2431. IP10_27_24
  2432. IP10_23_20
  2433. IP10_19_16
  2434. IP10_15_12
  2435. IP10_11_8
  2436. IP10_7_4
  2437. IP10_3_0 }
  2438. },
  2439. { PINMUX_CFG_REG("IPSR11", 0xe606022c, 32, 4) {
  2440. IP11_31_28
  2441. IP11_27_24
  2442. IP11_23_20
  2443. IP11_19_16
  2444. IP11_15_12
  2445. IP11_11_8
  2446. IP11_7_4
  2447. IP11_3_0 }
  2448. },
  2449. { PINMUX_CFG_REG("IPSR12", 0xe6060230, 32, 4) {
  2450. IP12_31_28
  2451. IP12_27_24
  2452. IP12_23_20
  2453. IP12_19_16
  2454. IP12_15_12
  2455. IP12_11_8
  2456. IP12_7_4
  2457. IP12_3_0 }
  2458. },
  2459. { PINMUX_CFG_REG("IPSR13", 0xe6060234, 32, 4) {
  2460. IP13_31_28
  2461. IP13_27_24
  2462. IP13_23_20
  2463. IP13_19_16
  2464. IP13_15_12
  2465. IP13_11_8
  2466. IP13_7_4
  2467. IP13_3_0 }
  2468. },
  2469. { PINMUX_CFG_REG("IPSR14", 0xe6060238, 32, 4) {
  2470. IP14_31_28
  2471. IP14_27_24
  2472. IP14_23_20
  2473. IP14_19_16
  2474. IP14_15_12
  2475. IP14_11_8
  2476. IP14_7_4
  2477. IP14_3_0 }
  2478. },
  2479. { PINMUX_CFG_REG("IPSR15", 0xe606023c, 32, 4) {
  2480. IP15_31_28
  2481. IP15_27_24
  2482. IP15_23_20
  2483. IP15_19_16
  2484. IP15_15_12
  2485. IP15_11_8
  2486. IP15_7_4
  2487. IP15_3_0 }
  2488. },
  2489. { PINMUX_CFG_REG("IPSR16", 0xe6060240, 32, 4) {
  2490. IP16_31_28
  2491. IP16_27_24
  2492. IP16_23_20
  2493. IP16_19_16
  2494. IP16_15_12
  2495. IP16_11_8
  2496. IP16_7_4
  2497. IP16_3_0 }
  2498. },
  2499. { PINMUX_CFG_REG("IPSR17", 0xe6060244, 32, 4) {
  2500. /* IP17_31_28 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2501. /* IP17_27_24 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2502. /* IP17_23_20 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2503. /* IP17_19_16 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2504. /* IP17_15_12 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2505. /* IP17_11_8 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2506. IP17_7_4
  2507. IP17_3_0 }
  2508. },
  2509. #undef F_
  2510. #undef FM
  2511. #define F_(x, y) x,
  2512. #define FM(x) FN_##x,
  2513. { PINMUX_CFG_REG_VAR("MOD_SEL0", 0xe6060500, 32,
  2514. 1, 2, 2, 3, 1, 1, 2, 1, 1, 1,
  2515. 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2, 1) {
  2516. 0, 0, /* RESERVED 31 */
  2517. MOD_SEL0_30_29
  2518. MOD_SEL0_28_27
  2519. MOD_SEL0_26_25_24
  2520. MOD_SEL0_23
  2521. MOD_SEL0_22
  2522. MOD_SEL0_21_20
  2523. MOD_SEL0_19
  2524. MOD_SEL0_18
  2525. MOD_SEL0_17
  2526. MOD_SEL0_16_15
  2527. MOD_SEL0_14
  2528. MOD_SEL0_13
  2529. MOD_SEL0_12
  2530. MOD_SEL0_11
  2531. MOD_SEL0_10
  2532. MOD_SEL0_9
  2533. MOD_SEL0_8
  2534. MOD_SEL0_7_6
  2535. MOD_SEL0_5_4
  2536. MOD_SEL0_3
  2537. MOD_SEL0_2_1
  2538. 0, 0, /* RESERVED 0 */ }
  2539. },
  2540. { PINMUX_CFG_REG_VAR("MOD_SEL1", 0xe6060504, 32,
  2541. 2, 3, 1, 2, 3, 1, 1, 2, 1,
  2542. 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1) {
  2543. MOD_SEL1_31_30
  2544. MOD_SEL1_29_28_27
  2545. MOD_SEL1_26
  2546. MOD_SEL1_25_24
  2547. MOD_SEL1_23_22_21
  2548. MOD_SEL1_20
  2549. MOD_SEL1_19
  2550. MOD_SEL1_18_17
  2551. MOD_SEL1_16
  2552. MOD_SEL1_15_14
  2553. MOD_SEL1_13
  2554. MOD_SEL1_12
  2555. MOD_SEL1_11
  2556. MOD_SEL1_10
  2557. MOD_SEL1_9
  2558. 0, 0, 0, 0, /* RESERVED 8, 7 */
  2559. MOD_SEL1_6
  2560. MOD_SEL1_5
  2561. MOD_SEL1_4
  2562. MOD_SEL1_3
  2563. MOD_SEL1_2
  2564. MOD_SEL1_1
  2565. MOD_SEL1_0 }
  2566. },
  2567. { PINMUX_CFG_REG_VAR("MOD_SEL2", 0xe6060508, 32,
  2568. 1, 1, 1, 1, 4, 4, 4,
  2569. 4, 4, 4, 1, 2, 1) {
  2570. MOD_SEL2_31
  2571. MOD_SEL2_30
  2572. MOD_SEL2_29
  2573. /* RESERVED 28 */
  2574. 0, 0,
  2575. /* RESERVED 27, 26, 25, 24 */
  2576. 0, 0, 0, 0, 0, 0, 0, 0,
  2577. 0, 0, 0, 0, 0, 0, 0, 0,
  2578. /* RESERVED 23, 22, 21, 20 */
  2579. 0, 0, 0, 0, 0, 0, 0, 0,
  2580. 0, 0, 0, 0, 0, 0, 0, 0,
  2581. /* RESERVED 19, 18, 17, 16 */
  2582. 0, 0, 0, 0, 0, 0, 0, 0,
  2583. 0, 0, 0, 0, 0, 0, 0, 0,
  2584. /* RESERVED 15, 14, 13, 12 */
  2585. 0, 0, 0, 0, 0, 0, 0, 0,
  2586. 0, 0, 0, 0, 0, 0, 0, 0,
  2587. /* RESERVED 11, 10, 9, 8 */
  2588. 0, 0, 0, 0, 0, 0, 0, 0,
  2589. 0, 0, 0, 0, 0, 0, 0, 0,
  2590. /* RESERVED 7, 6, 5, 4 */
  2591. 0, 0, 0, 0, 0, 0, 0, 0,
  2592. 0, 0, 0, 0, 0, 0, 0, 0,
  2593. /* RESERVED 3 */
  2594. 0, 0,
  2595. MOD_SEL2_2_1
  2596. MOD_SEL2_0 }
  2597. },
  2598. { },
  2599. };
  2600. const struct sh_pfc_soc_info r8a7795_pinmux_info = {
  2601. .name = "r8a77950_pfc",
  2602. .unlock_reg = 0xe6060000, /* PMMR */
  2603. .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
  2604. .pins = pinmux_pins,
  2605. .nr_pins = ARRAY_SIZE(pinmux_pins),
  2606. .groups = pinmux_groups,
  2607. .nr_groups = ARRAY_SIZE(pinmux_groups),
  2608. .functions = pinmux_functions,
  2609. .nr_functions = ARRAY_SIZE(pinmux_functions),
  2610. .cfg_regs = pinmux_config_regs,
  2611. .pinmux_data = pinmux_data,
  2612. .pinmux_data_size = ARRAY_SIZE(pinmux_data),
  2613. };