pfc-sh7723.c 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899
  1. /*
  2. * SH7723 Pinmux
  3. *
  4. * Copyright (C) 2008 Magnus Damm
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. */
  10. #include <linux/init.h>
  11. #include <linux/kernel.h>
  12. #include <cpu/sh7723.h>
  13. #include "sh_pfc.h"
  14. enum {
  15. PINMUX_RESERVED = 0,
  16. PINMUX_DATA_BEGIN,
  17. PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA,
  18. PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA,
  19. PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA,
  20. PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA,
  21. PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA,
  22. PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA,
  23. PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA,
  24. PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA,
  25. PTE5_DATA, PTE4_DATA, PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA,
  26. PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA,
  27. PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA,
  28. PTG5_DATA, PTG4_DATA, PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA,
  29. PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA,
  30. PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA,
  31. PTJ7_DATA, PTJ5_DATA, PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA,
  32. PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA,
  33. PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA,
  34. PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA,
  35. PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA,
  36. PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA,
  37. PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA,
  38. PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA,
  39. PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA,
  40. PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA,
  41. PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA,
  42. PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA,
  43. PTS7_DATA, PTS6_DATA, PTS5_DATA, PTS4_DATA,
  44. PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA,
  45. PTT5_DATA, PTT4_DATA, PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA,
  46. PTU5_DATA, PTU4_DATA, PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA,
  47. PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA,
  48. PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA,
  49. PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA,
  50. PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA,
  51. PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA,
  52. PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA,
  53. PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA,
  54. PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA,
  55. PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA,
  56. PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA,
  57. PINMUX_DATA_END,
  58. PINMUX_INPUT_BEGIN,
  59. PTA7_IN, PTA6_IN, PTA5_IN, PTA4_IN,
  60. PTA3_IN, PTA2_IN, PTA1_IN, PTA0_IN,
  61. PTB7_IN, PTB6_IN, PTB5_IN, PTB4_IN,
  62. PTB3_IN, PTB2_IN, PTB1_IN, PTB0_IN,
  63. PTC7_IN, PTC6_IN, PTC5_IN, PTC4_IN,
  64. PTC3_IN, PTC2_IN, PTC1_IN, PTC0_IN,
  65. PTD7_IN, PTD6_IN, PTD5_IN, PTD4_IN,
  66. PTD3_IN, PTD2_IN, PTD1_IN, PTD0_IN,
  67. PTE5_IN, PTE4_IN, PTE3_IN, PTE2_IN, PTE1_IN, PTE0_IN,
  68. PTF7_IN, PTF6_IN, PTF5_IN, PTF4_IN,
  69. PTF3_IN, PTF2_IN, PTF1_IN, PTF0_IN,
  70. PTH7_IN, PTH6_IN, PTH5_IN, PTH4_IN,
  71. PTH3_IN, PTH2_IN, PTH1_IN, PTH0_IN,
  72. PTJ3_IN, PTJ2_IN, PTJ1_IN, PTJ0_IN,
  73. PTK7_IN, PTK6_IN, PTK5_IN, PTK4_IN,
  74. PTK3_IN, PTK2_IN, PTK1_IN, PTK0_IN,
  75. PTL7_IN, PTL6_IN, PTL5_IN, PTL4_IN,
  76. PTL3_IN, PTL2_IN, PTL1_IN, PTL0_IN,
  77. PTM7_IN, PTM6_IN, PTM5_IN, PTM4_IN,
  78. PTM3_IN, PTM2_IN, PTM1_IN, PTM0_IN,
  79. PTN7_IN, PTN6_IN, PTN5_IN, PTN4_IN,
  80. PTN3_IN, PTN2_IN, PTN1_IN, PTN0_IN,
  81. PTQ3_IN, PTQ2_IN, PTQ1_IN, PTQ0_IN,
  82. PTR7_IN, PTR6_IN, PTR5_IN, PTR4_IN,
  83. PTR3_IN, PTR2_IN, PTR1_IN, PTR0_IN,
  84. PTS7_IN, PTS6_IN, PTS5_IN, PTS4_IN,
  85. PTS3_IN, PTS2_IN, PTS1_IN, PTS0_IN,
  86. PTT5_IN, PTT4_IN, PTT3_IN, PTT2_IN, PTT1_IN, PTT0_IN,
  87. PTU5_IN, PTU4_IN, PTU3_IN, PTU2_IN, PTU1_IN, PTU0_IN,
  88. PTV7_IN, PTV6_IN, PTV5_IN, PTV4_IN,
  89. PTV3_IN, PTV2_IN, PTV1_IN, PTV0_IN,
  90. PTW7_IN, PTW6_IN, PTW5_IN, PTW4_IN,
  91. PTW3_IN, PTW2_IN, PTW1_IN, PTW0_IN,
  92. PTX7_IN, PTX6_IN, PTX5_IN, PTX4_IN,
  93. PTX3_IN, PTX2_IN, PTX1_IN, PTX0_IN,
  94. PTY7_IN, PTY6_IN, PTY5_IN, PTY4_IN,
  95. PTY3_IN, PTY2_IN, PTY1_IN, PTY0_IN,
  96. PTZ7_IN, PTZ6_IN, PTZ5_IN, PTZ4_IN,
  97. PTZ3_IN, PTZ2_IN, PTZ1_IN, PTZ0_IN,
  98. PINMUX_INPUT_END,
  99. PINMUX_OUTPUT_BEGIN,
  100. PTA7_OUT, PTA6_OUT, PTA5_OUT, PTA4_OUT,
  101. PTA3_OUT, PTA2_OUT, PTA1_OUT, PTA0_OUT,
  102. PTB7_OUT, PTB6_OUT, PTB5_OUT, PTB4_OUT,
  103. PTB3_OUT, PTB2_OUT, PTB1_OUT, PTB0_OUT,
  104. PTC7_OUT, PTC6_OUT, PTC5_OUT, PTC4_OUT,
  105. PTC3_OUT, PTC2_OUT, PTC1_OUT, PTC0_OUT,
  106. PTD7_OUT, PTD6_OUT, PTD5_OUT, PTD4_OUT,
  107. PTD3_OUT, PTD2_OUT, PTD1_OUT, PTD0_OUT,
  108. PTE5_OUT, PTE4_OUT, PTE3_OUT, PTE2_OUT, PTE1_OUT, PTE0_OUT,
  109. PTF7_OUT, PTF6_OUT, PTF5_OUT, PTF4_OUT,
  110. PTF3_OUT, PTF2_OUT, PTF1_OUT, PTF0_OUT,
  111. PTG5_OUT, PTG4_OUT, PTG3_OUT, PTG2_OUT, PTG1_OUT, PTG0_OUT,
  112. PTH7_OUT, PTH6_OUT, PTH5_OUT, PTH4_OUT,
  113. PTH3_OUT, PTH2_OUT, PTH1_OUT, PTH0_OUT,
  114. PTJ7_OUT, PTJ5_OUT, PTJ3_OUT, PTJ2_OUT, PTJ1_OUT, PTJ0_OUT,
  115. PTK7_OUT, PTK6_OUT, PTK5_OUT, PTK4_OUT,
  116. PTK3_OUT, PTK2_OUT, PTK1_OUT, PTK0_OUT,
  117. PTL7_OUT, PTL6_OUT, PTL5_OUT, PTL4_OUT,
  118. PTL3_OUT, PTL2_OUT, PTL1_OUT, PTL0_OUT,
  119. PTM7_OUT, PTM6_OUT, PTM5_OUT, PTM4_OUT,
  120. PTM3_OUT, PTM2_OUT, PTM1_OUT, PTM0_OUT,
  121. PTN7_OUT, PTN6_OUT, PTN5_OUT, PTN4_OUT,
  122. PTN3_OUT, PTN2_OUT, PTN1_OUT, PTN0_OUT,
  123. PTR7_OUT, PTR6_OUT, PTR5_OUT, PTR4_OUT,
  124. PTR1_OUT, PTR0_OUT,
  125. PTS7_OUT, PTS6_OUT, PTS5_OUT, PTS4_OUT,
  126. PTS3_OUT, PTS2_OUT, PTS1_OUT, PTS0_OUT,
  127. PTT5_OUT, PTT4_OUT, PTT3_OUT, PTT2_OUT, PTT1_OUT, PTT0_OUT,
  128. PTU5_OUT, PTU4_OUT, PTU3_OUT, PTU2_OUT, PTU1_OUT, PTU0_OUT,
  129. PTV7_OUT, PTV6_OUT, PTV5_OUT, PTV4_OUT,
  130. PTV3_OUT, PTV2_OUT, PTV1_OUT, PTV0_OUT,
  131. PTW7_OUT, PTW6_OUT, PTW5_OUT, PTW4_OUT,
  132. PTW3_OUT, PTW2_OUT, PTW1_OUT, PTW0_OUT,
  133. PTX7_OUT, PTX6_OUT, PTX5_OUT, PTX4_OUT,
  134. PTX3_OUT, PTX2_OUT, PTX1_OUT, PTX0_OUT,
  135. PTY7_OUT, PTY6_OUT, PTY5_OUT, PTY4_OUT,
  136. PTY3_OUT, PTY2_OUT, PTY1_OUT, PTY0_OUT,
  137. PTZ7_OUT, PTZ6_OUT, PTZ5_OUT, PTZ4_OUT,
  138. PTZ3_OUT, PTZ2_OUT, PTZ1_OUT, PTZ0_OUT,
  139. PINMUX_OUTPUT_END,
  140. PINMUX_FUNCTION_BEGIN,
  141. PTA7_FN, PTA6_FN, PTA5_FN, PTA4_FN,
  142. PTA3_FN, PTA2_FN, PTA1_FN, PTA0_FN,
  143. PTB7_FN, PTB6_FN, PTB5_FN, PTB4_FN,
  144. PTB3_FN, PTB2_FN, PTB1_FN, PTB0_FN,
  145. PTC7_FN, PTC6_FN, PTC5_FN, PTC4_FN,
  146. PTC3_FN, PTC2_FN, PTC1_FN, PTC0_FN,
  147. PTD7_FN, PTD6_FN, PTD5_FN, PTD4_FN,
  148. PTD3_FN, PTD2_FN, PTD1_FN, PTD0_FN,
  149. PTE5_FN, PTE4_FN, PTE3_FN, PTE2_FN, PTE1_FN, PTE0_FN,
  150. PTF7_FN, PTF6_FN, PTF5_FN, PTF4_FN,
  151. PTF3_FN, PTF2_FN, PTF1_FN, PTF0_FN,
  152. PTG5_FN, PTG4_FN, PTG3_FN, PTG2_FN, PTG1_FN, PTG0_FN,
  153. PTH7_FN, PTH6_FN, PTH5_FN, PTH4_FN,
  154. PTH3_FN, PTH2_FN, PTH1_FN, PTH0_FN,
  155. PTJ7_FN, PTJ5_FN, PTJ3_FN, PTJ2_FN, PTJ1_FN, PTJ0_FN,
  156. PTK7_FN, PTK6_FN, PTK5_FN, PTK4_FN,
  157. PTK3_FN, PTK2_FN, PTK1_FN, PTK0_FN,
  158. PTL7_FN, PTL6_FN, PTL5_FN, PTL4_FN,
  159. PTL3_FN, PTL2_FN, PTL1_FN, PTL0_FN,
  160. PTM7_FN, PTM6_FN, PTM5_FN, PTM4_FN,
  161. PTM3_FN, PTM2_FN, PTM1_FN, PTM0_FN,
  162. PTN7_FN, PTN6_FN, PTN5_FN, PTN4_FN,
  163. PTN3_FN, PTN2_FN, PTN1_FN, PTN0_FN,
  164. PTQ3_FN, PTQ2_FN, PTQ1_FN, PTQ0_FN,
  165. PTR7_FN, PTR6_FN, PTR5_FN, PTR4_FN,
  166. PTR3_FN, PTR2_FN, PTR1_FN, PTR0_FN,
  167. PTS7_FN, PTS6_FN, PTS5_FN, PTS4_FN,
  168. PTS3_FN, PTS2_FN, PTS1_FN, PTS0_FN,
  169. PTT5_FN, PTT4_FN, PTT3_FN, PTT2_FN, PTT1_FN, PTT0_FN,
  170. PTU5_FN, PTU4_FN, PTU3_FN, PTU2_FN, PTU1_FN, PTU0_FN,
  171. PTV7_FN, PTV6_FN, PTV5_FN, PTV4_FN,
  172. PTV3_FN, PTV2_FN, PTV1_FN, PTV0_FN,
  173. PTW7_FN, PTW6_FN, PTW5_FN, PTW4_FN,
  174. PTW3_FN, PTW2_FN, PTW1_FN, PTW0_FN,
  175. PTX7_FN, PTX6_FN, PTX5_FN, PTX4_FN,
  176. PTX3_FN, PTX2_FN, PTX1_FN, PTX0_FN,
  177. PTY7_FN, PTY6_FN, PTY5_FN, PTY4_FN,
  178. PTY3_FN, PTY2_FN, PTY1_FN, PTY0_FN,
  179. PTZ7_FN, PTZ6_FN, PTZ5_FN, PTZ4_FN,
  180. PTZ3_FN, PTZ2_FN, PTZ1_FN, PTZ0_FN,
  181. PSA15_PSA14_FN1, PSA15_PSA14_FN2,
  182. PSA13_PSA12_FN1, PSA13_PSA12_FN2,
  183. PSA11_PSA10_FN1, PSA11_PSA10_FN2,
  184. PSA5_PSA4_FN1, PSA5_PSA4_FN2, PSA5_PSA4_FN3,
  185. PSA3_PSA2_FN1, PSA3_PSA2_FN2,
  186. PSB15_PSB14_FN1, PSB15_PSB14_FN2,
  187. PSB13_PSB12_LCDC_RGB, PSB13_PSB12_LCDC_SYS,
  188. PSB9_PSB8_FN1, PSB9_PSB8_FN2, PSB9_PSB8_FN3,
  189. PSB7_PSB6_FN1, PSB7_PSB6_FN2,
  190. PSB5_PSB4_FN1, PSB5_PSB4_FN2,
  191. PSB3_PSB2_FN1, PSB3_PSB2_FN2,
  192. PSC15_PSC14_FN1, PSC15_PSC14_FN2,
  193. PSC13_PSC12_FN1, PSC13_PSC12_FN2,
  194. PSC11_PSC10_FN1, PSC11_PSC10_FN2, PSC11_PSC10_FN3,
  195. PSC9_PSC8_FN1, PSC9_PSC8_FN2,
  196. PSC7_PSC6_FN1, PSC7_PSC6_FN2, PSC7_PSC6_FN3,
  197. PSD15_PSD14_FN1, PSD15_PSD14_FN2,
  198. PSD13_PSD12_FN1, PSD13_PSD12_FN2,
  199. PSD11_PSD10_FN1, PSD11_PSD10_FN2, PSD11_PSD10_FN3,
  200. PSD9_PSD8_FN1, PSD9_PSD8_FN2,
  201. PSD7_PSD6_FN1, PSD7_PSD6_FN2,
  202. PSD5_PSD4_FN1, PSD5_PSD4_FN2,
  203. PSD3_PSD2_FN1, PSD3_PSD2_FN2,
  204. PSD1_PSD0_FN1, PSD1_PSD0_FN2,
  205. PINMUX_FUNCTION_END,
  206. PINMUX_MARK_BEGIN,
  207. SCIF0_PTT_TXD_MARK, SCIF0_PTT_RXD_MARK,
  208. SCIF0_PTT_SCK_MARK, SCIF0_PTU_TXD_MARK,
  209. SCIF0_PTU_RXD_MARK, SCIF0_PTU_SCK_MARK,
  210. SCIF1_PTS_TXD_MARK, SCIF1_PTS_RXD_MARK,
  211. SCIF1_PTS_SCK_MARK, SCIF1_PTV_TXD_MARK,
  212. SCIF1_PTV_RXD_MARK, SCIF1_PTV_SCK_MARK,
  213. SCIF2_PTT_TXD_MARK, SCIF2_PTT_RXD_MARK,
  214. SCIF2_PTT_SCK_MARK, SCIF2_PTU_TXD_MARK,
  215. SCIF2_PTU_RXD_MARK, SCIF2_PTU_SCK_MARK,
  216. SCIF3_PTS_TXD_MARK, SCIF3_PTS_RXD_MARK,
  217. SCIF3_PTS_SCK_MARK, SCIF3_PTS_RTS_MARK,
  218. SCIF3_PTS_CTS_MARK, SCIF3_PTV_TXD_MARK,
  219. SCIF3_PTV_RXD_MARK, SCIF3_PTV_SCK_MARK,
  220. SCIF3_PTV_RTS_MARK, SCIF3_PTV_CTS_MARK,
  221. SCIF4_PTE_TXD_MARK, SCIF4_PTE_RXD_MARK,
  222. SCIF4_PTE_SCK_MARK, SCIF4_PTN_TXD_MARK,
  223. SCIF4_PTN_RXD_MARK, SCIF4_PTN_SCK_MARK,
  224. SCIF5_PTE_TXD_MARK, SCIF5_PTE_RXD_MARK,
  225. SCIF5_PTE_SCK_MARK, SCIF5_PTN_TXD_MARK,
  226. SCIF5_PTN_RXD_MARK, SCIF5_PTN_SCK_MARK,
  227. VIO_D15_MARK, VIO_D14_MARK, VIO_D13_MARK, VIO_D12_MARK,
  228. VIO_D11_MARK, VIO_D10_MARK, VIO_D9_MARK, VIO_D8_MARK,
  229. VIO_D7_MARK, VIO_D6_MARK, VIO_D5_MARK, VIO_D4_MARK,
  230. VIO_D3_MARK, VIO_D2_MARK, VIO_D1_MARK, VIO_D0_MARK,
  231. VIO_FLD_MARK, VIO_CKO_MARK,
  232. VIO_VD1_MARK, VIO_HD1_MARK, VIO_CLK1_MARK,
  233. VIO_HD2_MARK, VIO_VD2_MARK, VIO_CLK2_MARK,
  234. LCDD23_MARK, LCDD22_MARK, LCDD21_MARK, LCDD20_MARK,
  235. LCDD19_MARK, LCDD18_MARK, LCDD17_MARK, LCDD16_MARK,
  236. LCDD15_MARK, LCDD14_MARK, LCDD13_MARK, LCDD12_MARK,
  237. LCDD11_MARK, LCDD10_MARK, LCDD9_MARK, LCDD8_MARK,
  238. LCDD7_MARK, LCDD6_MARK, LCDD5_MARK, LCDD4_MARK,
  239. LCDD3_MARK, LCDD2_MARK, LCDD1_MARK, LCDD0_MARK,
  240. LCDDON_MARK, LCDVCPWC_MARK, LCDVEPWC_MARK,
  241. LCDVSYN_MARK, LCDDCK_MARK, LCDHSYN_MARK, LCDDISP_MARK,
  242. LCDRS_MARK, LCDCS_MARK, LCDWR_MARK, LCDRD_MARK,
  243. LCDLCLK_PTR_MARK, LCDLCLK_PTW_MARK,
  244. IRQ0_MARK, IRQ1_MARK, IRQ2_MARK, IRQ3_MARK,
  245. IRQ4_MARK, IRQ5_MARK, IRQ6_MARK, IRQ7_MARK,
  246. AUDATA3_MARK, AUDATA2_MARK, AUDATA1_MARK, AUDATA0_MARK,
  247. AUDCK_MARK, AUDSYNC_MARK,
  248. SDHI0CD_PTD_MARK, SDHI0WP_PTD_MARK,
  249. SDHI0D3_PTD_MARK, SDHI0D2_PTD_MARK,
  250. SDHI0D1_PTD_MARK, SDHI0D0_PTD_MARK,
  251. SDHI0CMD_PTD_MARK, SDHI0CLK_PTD_MARK,
  252. SDHI0CD_PTS_MARK, SDHI0WP_PTS_MARK,
  253. SDHI0D3_PTS_MARK, SDHI0D2_PTS_MARK,
  254. SDHI0D1_PTS_MARK, SDHI0D0_PTS_MARK,
  255. SDHI0CMD_PTS_MARK, SDHI0CLK_PTS_MARK,
  256. SDHI1CD_MARK, SDHI1WP_MARK, SDHI1D3_MARK, SDHI1D2_MARK,
  257. SDHI1D1_MARK, SDHI1D0_MARK, SDHI1CMD_MARK, SDHI1CLK_MARK,
  258. SIUAFCK_MARK, SIUAILR_MARK, SIUAIBT_MARK, SIUAISLD_MARK,
  259. SIUAOLR_MARK, SIUAOBT_MARK, SIUAOSLD_MARK, SIUAMCK_MARK,
  260. SIUAISPD_MARK, SIUAOSPD_MARK,
  261. SIUBFCK_MARK, SIUBILR_MARK, SIUBIBT_MARK, SIUBISLD_MARK,
  262. SIUBOLR_MARK, SIUBOBT_MARK, SIUBOSLD_MARK, SIUBMCK_MARK,
  263. IRDA_IN_MARK, IRDA_OUT_MARK,
  264. DV_CLKI_MARK, DV_CLK_MARK, DV_HSYNC_MARK, DV_VSYNC_MARK,
  265. DV_D15_MARK, DV_D14_MARK, DV_D13_MARK, DV_D12_MARK,
  266. DV_D11_MARK, DV_D10_MARK, DV_D9_MARK, DV_D8_MARK,
  267. DV_D7_MARK, DV_D6_MARK, DV_D5_MARK, DV_D4_MARK,
  268. DV_D3_MARK, DV_D2_MARK, DV_D1_MARK, DV_D0_MARK,
  269. KEYIN0_MARK, KEYIN1_MARK, KEYIN2_MARK, KEYIN3_MARK, KEYIN4_MARK,
  270. KEYOUT0_MARK, KEYOUT1_MARK, KEYOUT2_MARK, KEYOUT3_MARK,
  271. KEYOUT4_IN6_MARK, KEYOUT5_IN5_MARK,
  272. MSIOF0_PTF_TXD_MARK, MSIOF0_PTF_RXD_MARK, MSIOF0_PTF_MCK_MARK,
  273. MSIOF0_PTF_TSYNC_MARK, MSIOF0_PTF_TSCK_MARK, MSIOF0_PTF_RSYNC_MARK,
  274. MSIOF0_PTF_RSCK_MARK, MSIOF0_PTF_SS1_MARK, MSIOF0_PTF_SS2_MARK,
  275. MSIOF0_PTT_TXD_MARK, MSIOF0_PTT_RXD_MARK, MSIOF0_PTX_MCK_MARK,
  276. MSIOF0_PTT_TSYNC_MARK, MSIOF0_PTT_TSCK_MARK, MSIOF0_PTT_RSYNC_MARK,
  277. MSIOF0_PTT_RSCK_MARK, MSIOF0_PTT_SS1_MARK, MSIOF0_PTT_SS2_MARK,
  278. MSIOF1_TXD_MARK, MSIOF1_RXD_MARK, MSIOF1_MCK_MARK,
  279. MSIOF1_TSYNC_MARK, MSIOF1_TSCK_MARK, MSIOF1_RSYNC_MARK,
  280. MSIOF1_RSCK_MARK, MSIOF1_SS1_MARK, MSIOF1_SS2_MARK,
  281. TS0_SDAT_MARK, TS0_SCK_MARK, TS0_SDEN_MARK, TS0_SPSYNC_MARK,
  282. FCE_MARK, NAF7_MARK, NAF6_MARK, NAF5_MARK, NAF4_MARK,
  283. NAF3_MARK, NAF2_MARK, NAF1_MARK, NAF0_MARK, FCDE_MARK,
  284. FOE_MARK, FSC_MARK, FWE_MARK, FRB_MARK,
  285. DACK1_MARK, DREQ1_MARK, DACK0_MARK, DREQ0_MARK,
  286. AN3_MARK, AN2_MARK, AN1_MARK, AN0_MARK, ADTRG_MARK,
  287. STATUS0_MARK, PDSTATUS_MARK,
  288. TPUTO3_MARK, TPUTO2_MARK, TPUTO1_MARK, TPUTO0_MARK,
  289. D31_MARK, D30_MARK, D29_MARK, D28_MARK,
  290. D27_MARK, D26_MARK, D25_MARK, D24_MARK,
  291. D23_MARK, D22_MARK, D21_MARK, D20_MARK,
  292. D19_MARK, D18_MARK, D17_MARK, D16_MARK,
  293. IOIS16_MARK, WAIT_MARK, BS_MARK,
  294. A25_MARK, A24_MARK, A23_MARK, A22_MARK,
  295. CS6B_CE1B_MARK, CS6A_CE2B_MARK,
  296. CS5B_CE1A_MARK, CS5A_CE2A_MARK,
  297. WE3_ICIOWR_MARK, WE2_ICIORD_MARK,
  298. IDED15_MARK, IDED14_MARK, IDED13_MARK, IDED12_MARK,
  299. IDED11_MARK, IDED10_MARK, IDED9_MARK, IDED8_MARK,
  300. IDED7_MARK, IDED6_MARK, IDED5_MARK, IDED4_MARK,
  301. IDED3_MARK, IDED2_MARK, IDED1_MARK, IDED0_MARK,
  302. DIRECTION_MARK, EXBUF_ENB_MARK, IDERST_MARK, IODACK_MARK,
  303. IODREQ_MARK, IDEIORDY_MARK, IDEINT_MARK, IDEIOWR_MARK,
  304. IDEIORD_MARK, IDECS1_MARK, IDECS0_MARK, IDEA2_MARK,
  305. IDEA1_MARK, IDEA0_MARK,
  306. PINMUX_MARK_END,
  307. };
  308. static const u16 pinmux_data[] = {
  309. /* PTA GPIO */
  310. PINMUX_DATA(PTA7_DATA, PTA7_IN, PTA7_OUT),
  311. PINMUX_DATA(PTA6_DATA, PTA6_IN, PTA6_OUT),
  312. PINMUX_DATA(PTA5_DATA, PTA5_IN, PTA5_OUT),
  313. PINMUX_DATA(PTA4_DATA, PTA4_IN, PTA4_OUT),
  314. PINMUX_DATA(PTA3_DATA, PTA3_IN, PTA3_OUT),
  315. PINMUX_DATA(PTA2_DATA, PTA2_IN, PTA2_OUT),
  316. PINMUX_DATA(PTA1_DATA, PTA1_IN, PTA1_OUT),
  317. PINMUX_DATA(PTA0_DATA, PTA0_IN, PTA0_OUT),
  318. /* PTB GPIO */
  319. PINMUX_DATA(PTB7_DATA, PTB7_IN, PTB7_OUT),
  320. PINMUX_DATA(PTB6_DATA, PTB6_IN, PTB6_OUT),
  321. PINMUX_DATA(PTB5_DATA, PTB5_IN, PTB5_OUT),
  322. PINMUX_DATA(PTB4_DATA, PTB4_IN, PTB4_OUT),
  323. PINMUX_DATA(PTB3_DATA, PTB3_IN, PTB3_OUT),
  324. PINMUX_DATA(PTB2_DATA, PTB2_IN, PTB2_OUT),
  325. PINMUX_DATA(PTB1_DATA, PTB1_IN, PTB1_OUT),
  326. PINMUX_DATA(PTB0_DATA, PTB0_IN, PTB0_OUT),
  327. /* PTC GPIO */
  328. PINMUX_DATA(PTC7_DATA, PTC7_IN, PTC7_OUT),
  329. PINMUX_DATA(PTC6_DATA, PTC6_IN, PTC6_OUT),
  330. PINMUX_DATA(PTC5_DATA, PTC5_IN, PTC5_OUT),
  331. PINMUX_DATA(PTC4_DATA, PTC4_IN, PTC4_OUT),
  332. PINMUX_DATA(PTC3_DATA, PTC3_IN, PTC3_OUT),
  333. PINMUX_DATA(PTC2_DATA, PTC2_IN, PTC2_OUT),
  334. PINMUX_DATA(PTC1_DATA, PTC1_IN, PTC1_OUT),
  335. PINMUX_DATA(PTC0_DATA, PTC0_IN, PTC0_OUT),
  336. /* PTD GPIO */
  337. PINMUX_DATA(PTD7_DATA, PTD7_IN, PTD7_OUT),
  338. PINMUX_DATA(PTD6_DATA, PTD6_IN, PTD6_OUT),
  339. PINMUX_DATA(PTD5_DATA, PTD5_IN, PTD5_OUT),
  340. PINMUX_DATA(PTD4_DATA, PTD4_IN, PTD4_OUT),
  341. PINMUX_DATA(PTD3_DATA, PTD3_IN, PTD3_OUT),
  342. PINMUX_DATA(PTD2_DATA, PTD2_IN, PTD2_OUT),
  343. PINMUX_DATA(PTD1_DATA, PTD1_IN, PTD1_OUT),
  344. PINMUX_DATA(PTD0_DATA, PTD0_IN, PTD0_OUT),
  345. /* PTE GPIO */
  346. PINMUX_DATA(PTE5_DATA, PTE5_IN, PTE5_OUT),
  347. PINMUX_DATA(PTE4_DATA, PTE4_IN, PTE4_OUT),
  348. PINMUX_DATA(PTE3_DATA, PTE3_IN, PTE3_OUT),
  349. PINMUX_DATA(PTE2_DATA, PTE2_IN, PTE2_OUT),
  350. PINMUX_DATA(PTE1_DATA, PTE1_IN, PTE1_OUT),
  351. PINMUX_DATA(PTE0_DATA, PTE0_IN, PTE0_OUT),
  352. /* PTF GPIO */
  353. PINMUX_DATA(PTF7_DATA, PTF7_IN, PTF7_OUT),
  354. PINMUX_DATA(PTF6_DATA, PTF6_IN, PTF6_OUT),
  355. PINMUX_DATA(PTF5_DATA, PTF5_IN, PTF5_OUT),
  356. PINMUX_DATA(PTF4_DATA, PTF4_IN, PTF4_OUT),
  357. PINMUX_DATA(PTF3_DATA, PTF3_IN, PTF3_OUT),
  358. PINMUX_DATA(PTF2_DATA, PTF2_IN, PTF2_OUT),
  359. PINMUX_DATA(PTF1_DATA, PTF1_IN, PTF1_OUT),
  360. PINMUX_DATA(PTF0_DATA, PTF0_IN, PTF0_OUT),
  361. /* PTG GPIO */
  362. PINMUX_DATA(PTG5_DATA, PTG5_OUT),
  363. PINMUX_DATA(PTG4_DATA, PTG4_OUT),
  364. PINMUX_DATA(PTG3_DATA, PTG3_OUT),
  365. PINMUX_DATA(PTG2_DATA, PTG2_OUT),
  366. PINMUX_DATA(PTG1_DATA, PTG1_OUT),
  367. PINMUX_DATA(PTG0_DATA, PTG0_OUT),
  368. /* PTH GPIO */
  369. PINMUX_DATA(PTH7_DATA, PTH7_IN, PTH7_OUT),
  370. PINMUX_DATA(PTH6_DATA, PTH6_IN, PTH6_OUT),
  371. PINMUX_DATA(PTH5_DATA, PTH5_IN, PTH5_OUT),
  372. PINMUX_DATA(PTH4_DATA, PTH4_IN, PTH4_OUT),
  373. PINMUX_DATA(PTH3_DATA, PTH3_IN, PTH3_OUT),
  374. PINMUX_DATA(PTH2_DATA, PTH2_IN, PTH2_OUT),
  375. PINMUX_DATA(PTH1_DATA, PTH1_IN, PTH1_OUT),
  376. PINMUX_DATA(PTH0_DATA, PTH0_IN, PTH0_OUT),
  377. /* PTJ GPIO */
  378. PINMUX_DATA(PTJ7_DATA, PTJ7_OUT),
  379. PINMUX_DATA(PTJ5_DATA, PTJ5_OUT),
  380. PINMUX_DATA(PTJ3_DATA, PTJ3_IN, PTJ3_OUT),
  381. PINMUX_DATA(PTJ2_DATA, PTJ2_IN, PTJ2_OUT),
  382. PINMUX_DATA(PTJ1_DATA, PTJ1_IN, PTJ1_OUT),
  383. PINMUX_DATA(PTJ0_DATA, PTJ0_IN, PTJ0_OUT),
  384. /* PTK GPIO */
  385. PINMUX_DATA(PTK7_DATA, PTK7_IN, PTK7_OUT),
  386. PINMUX_DATA(PTK6_DATA, PTK6_IN, PTK6_OUT),
  387. PINMUX_DATA(PTK5_DATA, PTK5_IN, PTK5_OUT),
  388. PINMUX_DATA(PTK4_DATA, PTK4_IN, PTK4_OUT),
  389. PINMUX_DATA(PTK3_DATA, PTK3_IN, PTK3_OUT),
  390. PINMUX_DATA(PTK2_DATA, PTK2_IN, PTK2_OUT),
  391. PINMUX_DATA(PTK1_DATA, PTK1_IN, PTK1_OUT),
  392. PINMUX_DATA(PTK0_DATA, PTK0_IN, PTK0_OUT),
  393. /* PTL GPIO */
  394. PINMUX_DATA(PTL7_DATA, PTL7_IN, PTL7_OUT),
  395. PINMUX_DATA(PTL6_DATA, PTL6_IN, PTL6_OUT),
  396. PINMUX_DATA(PTL5_DATA, PTL5_IN, PTL5_OUT),
  397. PINMUX_DATA(PTL4_DATA, PTL4_IN, PTL4_OUT),
  398. PINMUX_DATA(PTL3_DATA, PTL3_IN, PTL3_OUT),
  399. PINMUX_DATA(PTL2_DATA, PTL2_IN, PTL2_OUT),
  400. PINMUX_DATA(PTL1_DATA, PTL1_IN, PTL1_OUT),
  401. PINMUX_DATA(PTL0_DATA, PTL0_IN, PTL0_OUT),
  402. /* PTM GPIO */
  403. PINMUX_DATA(PTM7_DATA, PTM7_IN, PTM7_OUT),
  404. PINMUX_DATA(PTM6_DATA, PTM6_IN, PTM6_OUT),
  405. PINMUX_DATA(PTM5_DATA, PTM5_IN, PTM5_OUT),
  406. PINMUX_DATA(PTM4_DATA, PTM4_IN, PTM4_OUT),
  407. PINMUX_DATA(PTM3_DATA, PTM3_IN, PTM3_OUT),
  408. PINMUX_DATA(PTM2_DATA, PTM2_IN, PTM2_OUT),
  409. PINMUX_DATA(PTM1_DATA, PTM1_IN, PTM1_OUT),
  410. PINMUX_DATA(PTM0_DATA, PTM0_IN, PTM0_OUT),
  411. /* PTN GPIO */
  412. PINMUX_DATA(PTN7_DATA, PTN7_IN, PTN7_OUT),
  413. PINMUX_DATA(PTN6_DATA, PTN6_IN, PTN6_OUT),
  414. PINMUX_DATA(PTN5_DATA, PTN5_IN, PTN5_OUT),
  415. PINMUX_DATA(PTN4_DATA, PTN4_IN, PTN4_OUT),
  416. PINMUX_DATA(PTN3_DATA, PTN3_IN, PTN3_OUT),
  417. PINMUX_DATA(PTN2_DATA, PTN2_IN, PTN2_OUT),
  418. PINMUX_DATA(PTN1_DATA, PTN1_IN, PTN1_OUT),
  419. PINMUX_DATA(PTN0_DATA, PTN0_IN, PTN0_OUT),
  420. /* PTQ GPIO */
  421. PINMUX_DATA(PTQ3_DATA, PTQ3_IN),
  422. PINMUX_DATA(PTQ2_DATA, PTQ2_IN),
  423. PINMUX_DATA(PTQ1_DATA, PTQ1_IN),
  424. PINMUX_DATA(PTQ0_DATA, PTQ0_IN),
  425. /* PTR GPIO */
  426. PINMUX_DATA(PTR7_DATA, PTR7_IN, PTR7_OUT),
  427. PINMUX_DATA(PTR6_DATA, PTR6_IN, PTR6_OUT),
  428. PINMUX_DATA(PTR5_DATA, PTR5_IN, PTR5_OUT),
  429. PINMUX_DATA(PTR4_DATA, PTR4_IN, PTR4_OUT),
  430. PINMUX_DATA(PTR3_DATA, PTR3_IN),
  431. PINMUX_DATA(PTR2_DATA, PTR2_IN),
  432. PINMUX_DATA(PTR1_DATA, PTR1_IN, PTR1_OUT),
  433. PINMUX_DATA(PTR0_DATA, PTR0_IN, PTR0_OUT),
  434. /* PTS GPIO */
  435. PINMUX_DATA(PTS7_DATA, PTS7_IN, PTS7_OUT),
  436. PINMUX_DATA(PTS6_DATA, PTS6_IN, PTS6_OUT),
  437. PINMUX_DATA(PTS5_DATA, PTS5_IN, PTS5_OUT),
  438. PINMUX_DATA(PTS4_DATA, PTS4_IN, PTS4_OUT),
  439. PINMUX_DATA(PTS3_DATA, PTS3_IN, PTS3_OUT),
  440. PINMUX_DATA(PTS2_DATA, PTS2_IN, PTS2_OUT),
  441. PINMUX_DATA(PTS1_DATA, PTS1_IN, PTS1_OUT),
  442. PINMUX_DATA(PTS0_DATA, PTS0_IN, PTS0_OUT),
  443. /* PTT GPIO */
  444. PINMUX_DATA(PTT5_DATA, PTT5_IN, PTT5_OUT),
  445. PINMUX_DATA(PTT4_DATA, PTT4_IN, PTT4_OUT),
  446. PINMUX_DATA(PTT3_DATA, PTT3_IN, PTT3_OUT),
  447. PINMUX_DATA(PTT2_DATA, PTT2_IN, PTT2_OUT),
  448. PINMUX_DATA(PTT1_DATA, PTT1_IN, PTT1_OUT),
  449. PINMUX_DATA(PTT0_DATA, PTT0_IN, PTT0_OUT),
  450. /* PTU GPIO */
  451. PINMUX_DATA(PTU5_DATA, PTU5_IN, PTU5_OUT),
  452. PINMUX_DATA(PTU4_DATA, PTU4_IN, PTU4_OUT),
  453. PINMUX_DATA(PTU3_DATA, PTU3_IN, PTU3_OUT),
  454. PINMUX_DATA(PTU2_DATA, PTU2_IN, PTU2_OUT),
  455. PINMUX_DATA(PTU1_DATA, PTU1_IN, PTU1_OUT),
  456. PINMUX_DATA(PTU0_DATA, PTU0_IN, PTU0_OUT),
  457. /* PTV GPIO */
  458. PINMUX_DATA(PTV7_DATA, PTV7_IN, PTV7_OUT),
  459. PINMUX_DATA(PTV6_DATA, PTV6_IN, PTV6_OUT),
  460. PINMUX_DATA(PTV5_DATA, PTV5_IN, PTV5_OUT),
  461. PINMUX_DATA(PTV4_DATA, PTV4_IN, PTV4_OUT),
  462. PINMUX_DATA(PTV3_DATA, PTV3_IN, PTV3_OUT),
  463. PINMUX_DATA(PTV2_DATA, PTV2_IN, PTV2_OUT),
  464. PINMUX_DATA(PTV1_DATA, PTV1_IN, PTV1_OUT),
  465. PINMUX_DATA(PTV0_DATA, PTV0_IN, PTV0_OUT),
  466. /* PTW GPIO */
  467. PINMUX_DATA(PTW7_DATA, PTW7_IN, PTW7_OUT),
  468. PINMUX_DATA(PTW6_DATA, PTW6_IN, PTW6_OUT),
  469. PINMUX_DATA(PTW5_DATA, PTW5_IN, PTW5_OUT),
  470. PINMUX_DATA(PTW4_DATA, PTW4_IN, PTW4_OUT),
  471. PINMUX_DATA(PTW3_DATA, PTW3_IN, PTW3_OUT),
  472. PINMUX_DATA(PTW2_DATA, PTW2_IN, PTW2_OUT),
  473. PINMUX_DATA(PTW1_DATA, PTW1_IN, PTW1_OUT),
  474. PINMUX_DATA(PTW0_DATA, PTW0_IN, PTW0_OUT),
  475. /* PTX GPIO */
  476. PINMUX_DATA(PTX7_DATA, PTX7_IN, PTX7_OUT),
  477. PINMUX_DATA(PTX6_DATA, PTX6_IN, PTX6_OUT),
  478. PINMUX_DATA(PTX5_DATA, PTX5_IN, PTX5_OUT),
  479. PINMUX_DATA(PTX4_DATA, PTX4_IN, PTX4_OUT),
  480. PINMUX_DATA(PTX3_DATA, PTX3_IN, PTX3_OUT),
  481. PINMUX_DATA(PTX2_DATA, PTX2_IN, PTX2_OUT),
  482. PINMUX_DATA(PTX1_DATA, PTX1_IN, PTX1_OUT),
  483. PINMUX_DATA(PTX0_DATA, PTX0_IN, PTX0_OUT),
  484. /* PTY GPIO */
  485. PINMUX_DATA(PTY7_DATA, PTY7_IN, PTY7_OUT),
  486. PINMUX_DATA(PTY6_DATA, PTY6_IN, PTY6_OUT),
  487. PINMUX_DATA(PTY5_DATA, PTY5_IN, PTY5_OUT),
  488. PINMUX_DATA(PTY4_DATA, PTY4_IN, PTY4_OUT),
  489. PINMUX_DATA(PTY3_DATA, PTY3_IN, PTY3_OUT),
  490. PINMUX_DATA(PTY2_DATA, PTY2_IN, PTY2_OUT),
  491. PINMUX_DATA(PTY1_DATA, PTY1_IN, PTY1_OUT),
  492. PINMUX_DATA(PTY0_DATA, PTY0_IN, PTY0_OUT),
  493. /* PTZ GPIO */
  494. PINMUX_DATA(PTZ7_DATA, PTZ7_IN, PTZ7_OUT),
  495. PINMUX_DATA(PTZ6_DATA, PTZ6_IN, PTZ6_OUT),
  496. PINMUX_DATA(PTZ5_DATA, PTZ5_IN, PTZ5_OUT),
  497. PINMUX_DATA(PTZ4_DATA, PTZ4_IN, PTZ4_OUT),
  498. PINMUX_DATA(PTZ3_DATA, PTZ3_IN, PTZ3_OUT),
  499. PINMUX_DATA(PTZ2_DATA, PTZ2_IN, PTZ2_OUT),
  500. PINMUX_DATA(PTZ1_DATA, PTZ1_IN, PTZ1_OUT),
  501. PINMUX_DATA(PTZ0_DATA, PTZ0_IN, PTZ0_OUT),
  502. /* PTA FN */
  503. PINMUX_DATA(D23_MARK, PSA15_PSA14_FN1, PTA7_FN),
  504. PINMUX_DATA(KEYOUT2_MARK, PSA15_PSA14_FN2, PTA7_FN),
  505. PINMUX_DATA(D22_MARK, PSA15_PSA14_FN1, PTA6_FN),
  506. PINMUX_DATA(KEYOUT1_MARK, PSA15_PSA14_FN2, PTA6_FN),
  507. PINMUX_DATA(D21_MARK, PSA15_PSA14_FN1, PTA5_FN),
  508. PINMUX_DATA(KEYOUT0_MARK, PSA15_PSA14_FN2, PTA5_FN),
  509. PINMUX_DATA(D20_MARK, PSA15_PSA14_FN1, PTA4_FN),
  510. PINMUX_DATA(KEYIN4_MARK, PSA15_PSA14_FN2, PTA4_FN),
  511. PINMUX_DATA(D19_MARK, PSA15_PSA14_FN1, PTA3_FN),
  512. PINMUX_DATA(KEYIN3_MARK, PSA15_PSA14_FN2, PTA3_FN),
  513. PINMUX_DATA(D18_MARK, PSA15_PSA14_FN1, PTA2_FN),
  514. PINMUX_DATA(KEYIN2_MARK, PSA15_PSA14_FN2, PTA2_FN),
  515. PINMUX_DATA(D17_MARK, PSA15_PSA14_FN1, PTA1_FN),
  516. PINMUX_DATA(KEYIN1_MARK, PSA15_PSA14_FN2, PTA1_FN),
  517. PINMUX_DATA(D16_MARK, PSA15_PSA14_FN1, PTA0_FN),
  518. PINMUX_DATA(KEYIN0_MARK, PSA15_PSA14_FN2, PTA0_FN),
  519. /* PTB FN */
  520. PINMUX_DATA(D31_MARK, PTB7_FN),
  521. PINMUX_DATA(D30_MARK, PTB6_FN),
  522. PINMUX_DATA(D29_MARK, PTB5_FN),
  523. PINMUX_DATA(D28_MARK, PTB4_FN),
  524. PINMUX_DATA(D27_MARK, PTB3_FN),
  525. PINMUX_DATA(D26_MARK, PSA15_PSA14_FN1, PTB2_FN),
  526. PINMUX_DATA(KEYOUT5_IN5_MARK, PSA15_PSA14_FN2, PTB2_FN),
  527. PINMUX_DATA(D25_MARK, PSA15_PSA14_FN1, PTB1_FN),
  528. PINMUX_DATA(KEYOUT4_IN6_MARK, PSA15_PSA14_FN2, PTB1_FN),
  529. PINMUX_DATA(D24_MARK, PSA15_PSA14_FN1, PTB0_FN),
  530. PINMUX_DATA(KEYOUT3_MARK, PSA15_PSA14_FN2, PTB0_FN),
  531. /* PTC FN */
  532. PINMUX_DATA(IDED15_MARK, PSA11_PSA10_FN1, PTC7_FN),
  533. PINMUX_DATA(SDHI1CD_MARK, PSA11_PSA10_FN2, PTC7_FN),
  534. PINMUX_DATA(IDED14_MARK, PSA11_PSA10_FN1, PTC6_FN),
  535. PINMUX_DATA(SDHI1WP_MARK, PSA11_PSA10_FN2, PTC6_FN),
  536. PINMUX_DATA(IDED13_MARK, PSA11_PSA10_FN1, PTC5_FN),
  537. PINMUX_DATA(SDHI1D3_MARK, PSA11_PSA10_FN2, PTC5_FN),
  538. PINMUX_DATA(IDED12_MARK, PSA11_PSA10_FN1, PTC4_FN),
  539. PINMUX_DATA(SDHI1D2_MARK, PSA11_PSA10_FN2, PTC4_FN),
  540. PINMUX_DATA(IDED11_MARK, PSA11_PSA10_FN1, PTC3_FN),
  541. PINMUX_DATA(SDHI1D1_MARK, PSA11_PSA10_FN2, PTC3_FN),
  542. PINMUX_DATA(IDED10_MARK, PSA11_PSA10_FN1, PTC2_FN),
  543. PINMUX_DATA(SDHI1D0_MARK, PSA11_PSA10_FN2, PTC2_FN),
  544. PINMUX_DATA(IDED9_MARK, PSA11_PSA10_FN1, PTC1_FN),
  545. PINMUX_DATA(SDHI1CMD_MARK, PSA11_PSA10_FN2, PTC1_FN),
  546. PINMUX_DATA(IDED8_MARK, PSA11_PSA10_FN1, PTC0_FN),
  547. PINMUX_DATA(SDHI1CLK_MARK, PSA11_PSA10_FN2, PTC0_FN),
  548. /* PTD FN */
  549. PINMUX_DATA(IDED7_MARK, PSA11_PSA10_FN1, PTD7_FN),
  550. PINMUX_DATA(SDHI0CD_PTD_MARK, PSA11_PSA10_FN2, PTD7_FN),
  551. PINMUX_DATA(IDED6_MARK, PSA11_PSA10_FN1, PTD6_FN),
  552. PINMUX_DATA(SDHI0WP_PTD_MARK, PSA11_PSA10_FN2, PTD6_FN),
  553. PINMUX_DATA(IDED5_MARK, PSA11_PSA10_FN1, PTD5_FN),
  554. PINMUX_DATA(SDHI0D3_PTD_MARK, PSA11_PSA10_FN2, PTD5_FN),
  555. PINMUX_DATA(IDED4_MARK, PSA11_PSA10_FN1, PTD4_FN),
  556. PINMUX_DATA(SDHI0D2_PTD_MARK, PSA11_PSA10_FN2, PTD4_FN),
  557. PINMUX_DATA(IDED3_MARK, PSA11_PSA10_FN1, PTD3_FN),
  558. PINMUX_DATA(SDHI0D1_PTD_MARK, PSA11_PSA10_FN2, PTD3_FN),
  559. PINMUX_DATA(IDED2_MARK, PSA11_PSA10_FN1, PTD2_FN),
  560. PINMUX_DATA(SDHI0D0_PTD_MARK, PSA11_PSA10_FN2, PTD2_FN),
  561. PINMUX_DATA(IDED1_MARK, PSA11_PSA10_FN1, PTD1_FN),
  562. PINMUX_DATA(SDHI0CMD_PTD_MARK, PSA11_PSA10_FN2, PTD1_FN),
  563. PINMUX_DATA(IDED0_MARK, PSA11_PSA10_FN1, PTD0_FN),
  564. PINMUX_DATA(SDHI0CLK_PTD_MARK, PSA11_PSA10_FN2, PTD0_FN),
  565. /* PTE FN */
  566. PINMUX_DATA(DIRECTION_MARK, PSA11_PSA10_FN1, PTE5_FN),
  567. PINMUX_DATA(SCIF5_PTE_SCK_MARK, PSA11_PSA10_FN2, PTE5_FN),
  568. PINMUX_DATA(EXBUF_ENB_MARK, PSA11_PSA10_FN1, PTE4_FN),
  569. PINMUX_DATA(SCIF5_PTE_RXD_MARK, PSA11_PSA10_FN2, PTE4_FN),
  570. PINMUX_DATA(IDERST_MARK, PSA11_PSA10_FN1, PTE3_FN),
  571. PINMUX_DATA(SCIF5_PTE_TXD_MARK, PSA11_PSA10_FN2, PTE3_FN),
  572. PINMUX_DATA(IODACK_MARK, PSA11_PSA10_FN1, PTE2_FN),
  573. PINMUX_DATA(SCIF4_PTE_SCK_MARK, PSA11_PSA10_FN2, PTE2_FN),
  574. PINMUX_DATA(IODREQ_MARK, PSA11_PSA10_FN1, PTE1_FN),
  575. PINMUX_DATA(SCIF4_PTE_RXD_MARK, PSA11_PSA10_FN2, PTE1_FN),
  576. PINMUX_DATA(IDEIORDY_MARK, PSA11_PSA10_FN1, PTE0_FN),
  577. PINMUX_DATA(SCIF4_PTE_TXD_MARK, PSA11_PSA10_FN2, PTE0_FN),
  578. /* PTF FN */
  579. PINMUX_DATA(IDEINT_MARK, PTF7_FN),
  580. PINMUX_DATA(IDEIOWR_MARK, PSA5_PSA4_FN1, PTF6_FN),
  581. PINMUX_DATA(MSIOF0_PTF_SS2_MARK, PSA5_PSA4_FN2, PTF6_FN),
  582. PINMUX_DATA(MSIOF0_PTF_RSYNC_MARK, PSA5_PSA4_FN3, PTF6_FN),
  583. PINMUX_DATA(IDEIORD_MARK, PSA5_PSA4_FN1, PTF5_FN),
  584. PINMUX_DATA(MSIOF0_PTF_SS1_MARK, PSA5_PSA4_FN2, PTF5_FN),
  585. PINMUX_DATA(MSIOF0_PTF_RSCK_MARK, PSA5_PSA4_FN3, PTF5_FN),
  586. PINMUX_DATA(IDECS1_MARK, PSA11_PSA10_FN1, PTF4_FN),
  587. PINMUX_DATA(MSIOF0_PTF_TSYNC_MARK, PSA11_PSA10_FN2, PTF4_FN),
  588. PINMUX_DATA(IDECS0_MARK, PSA11_PSA10_FN1, PTF3_FN),
  589. PINMUX_DATA(MSIOF0_PTF_TSCK_MARK, PSA11_PSA10_FN2, PTF3_FN),
  590. PINMUX_DATA(IDEA2_MARK, PSA11_PSA10_FN1, PTF2_FN),
  591. PINMUX_DATA(MSIOF0_PTF_RXD_MARK, PSA11_PSA10_FN2, PTF2_FN),
  592. PINMUX_DATA(IDEA1_MARK, PSA11_PSA10_FN1, PTF1_FN),
  593. PINMUX_DATA(MSIOF0_PTF_TXD_MARK, PSA11_PSA10_FN2, PTF1_FN),
  594. PINMUX_DATA(IDEA0_MARK, PSA11_PSA10_FN1, PTF0_FN),
  595. PINMUX_DATA(MSIOF0_PTF_MCK_MARK, PSA11_PSA10_FN2, PTF0_FN),
  596. /* PTG FN */
  597. PINMUX_DATA(AUDCK_MARK, PTG5_FN),
  598. PINMUX_DATA(AUDSYNC_MARK, PTG4_FN),
  599. PINMUX_DATA(AUDATA3_MARK, PSA3_PSA2_FN1, PTG3_FN),
  600. PINMUX_DATA(TPUTO3_MARK, PSA3_PSA2_FN2, PTG3_FN),
  601. PINMUX_DATA(AUDATA2_MARK, PSA3_PSA2_FN1, PTG2_FN),
  602. PINMUX_DATA(TPUTO2_MARK, PSA3_PSA2_FN2, PTG2_FN),
  603. PINMUX_DATA(AUDATA1_MARK, PSA3_PSA2_FN1, PTG1_FN),
  604. PINMUX_DATA(TPUTO1_MARK, PSA3_PSA2_FN2, PTG1_FN),
  605. PINMUX_DATA(AUDATA0_MARK, PSA3_PSA2_FN1, PTG0_FN),
  606. PINMUX_DATA(TPUTO0_MARK, PSA3_PSA2_FN2, PTG0_FN),
  607. /* PTG FN */
  608. PINMUX_DATA(LCDVCPWC_MARK, PTH7_FN),
  609. PINMUX_DATA(LCDRD_MARK, PSB15_PSB14_FN1, PTH6_FN),
  610. PINMUX_DATA(DV_CLKI_MARK, PSB15_PSB14_FN2, PTH6_FN),
  611. PINMUX_DATA(LCDVSYN_MARK, PSB15_PSB14_FN1, PTH5_FN),
  612. PINMUX_DATA(DV_CLK_MARK, PSB15_PSB14_FN2, PTH5_FN),
  613. PINMUX_DATA(LCDDISP_MARK, PSB13_PSB12_LCDC_RGB, PTH4_FN),
  614. PINMUX_DATA(LCDRS_MARK, PSB13_PSB12_LCDC_SYS, PTH4_FN),
  615. PINMUX_DATA(LCDHSYN_MARK, PSB13_PSB12_LCDC_RGB, PTH3_FN),
  616. PINMUX_DATA(LCDCS_MARK, PSB13_PSB12_LCDC_SYS, PTH3_FN),
  617. PINMUX_DATA(LCDDON_MARK, PTH2_FN),
  618. PINMUX_DATA(LCDDCK_MARK, PSB13_PSB12_LCDC_RGB, PTH1_FN),
  619. PINMUX_DATA(LCDWR_MARK, PSB13_PSB12_LCDC_SYS, PTH1_FN),
  620. PINMUX_DATA(LCDVEPWC_MARK, PTH0_FN),
  621. /* PTJ FN */
  622. PINMUX_DATA(STATUS0_MARK, PTJ7_FN),
  623. PINMUX_DATA(PDSTATUS_MARK, PTJ5_FN),
  624. PINMUX_DATA(A25_MARK, PTJ3_FN),
  625. PINMUX_DATA(A24_MARK, PTJ2_FN),
  626. PINMUX_DATA(A23_MARK, PTJ1_FN),
  627. PINMUX_DATA(A22_MARK, PTJ0_FN),
  628. /* PTK FN */
  629. PINMUX_DATA(SIUAFCK_MARK, PTK7_FN),
  630. PINMUX_DATA(SIUAILR_MARK, PSB9_PSB8_FN1, PTK6_FN),
  631. PINMUX_DATA(MSIOF1_SS2_MARK, PSB9_PSB8_FN2, PTK6_FN),
  632. PINMUX_DATA(MSIOF1_RSYNC_MARK, PSB9_PSB8_FN3, PTK6_FN),
  633. PINMUX_DATA(SIUAIBT_MARK, PSB9_PSB8_FN1, PTK5_FN),
  634. PINMUX_DATA(MSIOF1_SS1_MARK, PSB9_PSB8_FN2, PTK5_FN),
  635. PINMUX_DATA(MSIOF1_RSCK_MARK, PSB9_PSB8_FN3, PTK5_FN),
  636. PINMUX_DATA(SIUAISLD_MARK, PSB7_PSB6_FN1, PTK4_FN),
  637. PINMUX_DATA(MSIOF1_RXD_MARK, PSB7_PSB6_FN2, PTK4_FN),
  638. PINMUX_DATA(SIUAOLR_MARK, PSB7_PSB6_FN1, PTK3_FN),
  639. PINMUX_DATA(MSIOF1_TSYNC_MARK, PSB7_PSB6_FN2, PTK3_FN),
  640. PINMUX_DATA(SIUAOBT_MARK, PSB7_PSB6_FN1, PTK2_FN),
  641. PINMUX_DATA(MSIOF1_TSCK_MARK, PSB7_PSB6_FN2, PTK2_FN),
  642. PINMUX_DATA(SIUAOSLD_MARK, PSB7_PSB6_FN1, PTK1_FN),
  643. PINMUX_DATA(MSIOF1_RXD_MARK, PSB7_PSB6_FN2, PTK1_FN),
  644. PINMUX_DATA(SIUAMCK_MARK, PSB7_PSB6_FN1, PTK0_FN),
  645. PINMUX_DATA(MSIOF1_MCK_MARK, PSB7_PSB6_FN2, PTK0_FN),
  646. /* PTL FN */
  647. PINMUX_DATA(LCDD15_MARK, PSB5_PSB4_FN1, PTL7_FN),
  648. PINMUX_DATA(DV_D15_MARK, PSB5_PSB4_FN2, PTL7_FN),
  649. PINMUX_DATA(LCDD14_MARK, PSB5_PSB4_FN1, PTL6_FN),
  650. PINMUX_DATA(DV_D14_MARK, PSB5_PSB4_FN2, PTL6_FN),
  651. PINMUX_DATA(LCDD13_MARK, PSB5_PSB4_FN1, PTL5_FN),
  652. PINMUX_DATA(DV_D13_MARK, PSB5_PSB4_FN2, PTL5_FN),
  653. PINMUX_DATA(LCDD12_MARK, PSB5_PSB4_FN1, PTL4_FN),
  654. PINMUX_DATA(DV_D12_MARK, PSB5_PSB4_FN2, PTL4_FN),
  655. PINMUX_DATA(LCDD11_MARK, PSB5_PSB4_FN1, PTL3_FN),
  656. PINMUX_DATA(DV_D11_MARK, PSB5_PSB4_FN2, PTL3_FN),
  657. PINMUX_DATA(LCDD10_MARK, PSB5_PSB4_FN1, PTL2_FN),
  658. PINMUX_DATA(DV_D10_MARK, PSB5_PSB4_FN2, PTL2_FN),
  659. PINMUX_DATA(LCDD9_MARK, PSB5_PSB4_FN1, PTL1_FN),
  660. PINMUX_DATA(DV_D9_MARK, PSB5_PSB4_FN2, PTL1_FN),
  661. PINMUX_DATA(LCDD8_MARK, PSB5_PSB4_FN1, PTL0_FN),
  662. PINMUX_DATA(DV_D8_MARK, PSB5_PSB4_FN2, PTL0_FN),
  663. /* PTM FN */
  664. PINMUX_DATA(LCDD7_MARK, PSB5_PSB4_FN1, PTM7_FN),
  665. PINMUX_DATA(DV_D7_MARK, PSB5_PSB4_FN2, PTM7_FN),
  666. PINMUX_DATA(LCDD6_MARK, PSB5_PSB4_FN1, PTM6_FN),
  667. PINMUX_DATA(DV_D6_MARK, PSB5_PSB4_FN2, PTM6_FN),
  668. PINMUX_DATA(LCDD5_MARK, PSB5_PSB4_FN1, PTM5_FN),
  669. PINMUX_DATA(DV_D5_MARK, PSB5_PSB4_FN2, PTM5_FN),
  670. PINMUX_DATA(LCDD4_MARK, PSB5_PSB4_FN1, PTM4_FN),
  671. PINMUX_DATA(DV_D4_MARK, PSB5_PSB4_FN2, PTM4_FN),
  672. PINMUX_DATA(LCDD3_MARK, PSB5_PSB4_FN1, PTM3_FN),
  673. PINMUX_DATA(DV_D3_MARK, PSB5_PSB4_FN2, PTM3_FN),
  674. PINMUX_DATA(LCDD2_MARK, PSB5_PSB4_FN1, PTM2_FN),
  675. PINMUX_DATA(DV_D2_MARK, PSB5_PSB4_FN2, PTM2_FN),
  676. PINMUX_DATA(LCDD1_MARK, PSB5_PSB4_FN1, PTM1_FN),
  677. PINMUX_DATA(DV_D1_MARK, PSB5_PSB4_FN2, PTM1_FN),
  678. PINMUX_DATA(LCDD0_MARK, PSB5_PSB4_FN1, PTM0_FN),
  679. PINMUX_DATA(DV_D0_MARK, PSB5_PSB4_FN2, PTM0_FN),
  680. /* PTN FN */
  681. PINMUX_DATA(LCDD23_MARK, PSB3_PSB2_FN1, PTN7_FN),
  682. PINMUX_DATA(SCIF5_PTN_SCK_MARK, PSB3_PSB2_FN2, PTN7_FN),
  683. PINMUX_DATA(LCDD22_MARK, PSB3_PSB2_FN1, PTN6_FN),
  684. PINMUX_DATA(SCIF5_PTN_RXD_MARK, PSB3_PSB2_FN2, PTN6_FN),
  685. PINMUX_DATA(LCDD21_MARK, PSB3_PSB2_FN1, PTN5_FN),
  686. PINMUX_DATA(SCIF5_PTN_TXD_MARK, PSB3_PSB2_FN2, PTN5_FN),
  687. PINMUX_DATA(LCDD20_MARK, PSB3_PSB2_FN1, PTN4_FN),
  688. PINMUX_DATA(SCIF4_PTN_SCK_MARK, PSB3_PSB2_FN2, PTN4_FN),
  689. PINMUX_DATA(LCDD19_MARK, PSB3_PSB2_FN1, PTN3_FN),
  690. PINMUX_DATA(SCIF4_PTN_RXD_MARK, PSB3_PSB2_FN2, PTN3_FN),
  691. PINMUX_DATA(LCDD18_MARK, PSB3_PSB2_FN1, PTN2_FN),
  692. PINMUX_DATA(SCIF4_PTN_TXD_MARK, PSB3_PSB2_FN2, PTN2_FN),
  693. PINMUX_DATA(LCDD17_MARK, PSB5_PSB4_FN1, PTN1_FN),
  694. PINMUX_DATA(DV_VSYNC_MARK, PSB5_PSB4_FN2, PTN1_FN),
  695. PINMUX_DATA(LCDD16_MARK, PSB5_PSB4_FN1, PTN0_FN),
  696. PINMUX_DATA(DV_HSYNC_MARK, PSB5_PSB4_FN2, PTN0_FN),
  697. /* PTQ FN */
  698. PINMUX_DATA(AN3_MARK, PTQ3_FN),
  699. PINMUX_DATA(AN2_MARK, PTQ2_FN),
  700. PINMUX_DATA(AN1_MARK, PTQ1_FN),
  701. PINMUX_DATA(AN0_MARK, PTQ0_FN),
  702. /* PTR FN */
  703. PINMUX_DATA(CS6B_CE1B_MARK, PTR7_FN),
  704. PINMUX_DATA(CS6A_CE2B_MARK, PTR6_FN),
  705. PINMUX_DATA(CS5B_CE1A_MARK, PTR5_FN),
  706. PINMUX_DATA(CS5A_CE2A_MARK, PTR4_FN),
  707. PINMUX_DATA(IOIS16_MARK, PSA13_PSA12_FN1, PTR3_FN),
  708. PINMUX_DATA(LCDLCLK_PTR_MARK, PSA13_PSA12_FN2, PTR3_FN),
  709. PINMUX_DATA(WAIT_MARK, PTR2_FN),
  710. PINMUX_DATA(WE3_ICIOWR_MARK, PTR1_FN),
  711. PINMUX_DATA(WE2_ICIORD_MARK, PTR0_FN),
  712. /* PTS FN */
  713. PINMUX_DATA(SCIF1_PTS_SCK_MARK, PSC15_PSC14_FN1, PTS7_FN),
  714. PINMUX_DATA(SDHI0CD_PTS_MARK, PSC15_PSC14_FN2, PTS7_FN),
  715. PINMUX_DATA(SCIF1_PTS_RXD_MARK, PSC15_PSC14_FN1, PTS6_FN),
  716. PINMUX_DATA(SDHI0WP_PTS_MARK, PSC15_PSC14_FN2, PTS6_FN),
  717. PINMUX_DATA(SCIF1_PTS_TXD_MARK, PSC15_PSC14_FN1, PTS5_FN),
  718. PINMUX_DATA(SDHI0D3_PTS_MARK, PSC15_PSC14_FN2, PTS5_FN),
  719. PINMUX_DATA(SCIF3_PTS_CTS_MARK, PSC15_PSC14_FN1, PTS4_FN),
  720. PINMUX_DATA(SDHI0D2_PTS_MARK, PSC15_PSC14_FN2, PTS4_FN),
  721. PINMUX_DATA(SCIF3_PTS_RTS_MARK, PSC15_PSC14_FN1, PTS3_FN),
  722. PINMUX_DATA(SDHI0D1_PTS_MARK, PSC15_PSC14_FN2, PTS3_FN),
  723. PINMUX_DATA(SCIF3_PTS_SCK_MARK, PSC15_PSC14_FN1, PTS2_FN),
  724. PINMUX_DATA(SDHI0D0_PTS_MARK, PSC15_PSC14_FN2, PTS2_FN),
  725. PINMUX_DATA(SCIF3_PTS_RXD_MARK, PSC15_PSC14_FN1, PTS1_FN),
  726. PINMUX_DATA(SDHI0CMD_PTS_MARK, PSC15_PSC14_FN2, PTS1_FN),
  727. PINMUX_DATA(SCIF3_PTS_TXD_MARK, PSC15_PSC14_FN1, PTS0_FN),
  728. PINMUX_DATA(SDHI0CLK_PTS_MARK, PSC15_PSC14_FN2, PTS0_FN),
  729. /* PTT FN */
  730. PINMUX_DATA(SCIF0_PTT_SCK_MARK, PSC13_PSC12_FN1, PTT5_FN),
  731. PINMUX_DATA(MSIOF0_PTT_TSCK_MARK, PSC13_PSC12_FN2, PTT5_FN),
  732. PINMUX_DATA(SCIF0_PTT_RXD_MARK, PSC13_PSC12_FN1, PTT4_FN),
  733. PINMUX_DATA(MSIOF0_PTT_RXD_MARK, PSC13_PSC12_FN2, PTT4_FN),
  734. PINMUX_DATA(SCIF0_PTT_TXD_MARK, PSC13_PSC12_FN1, PTT3_FN),
  735. PINMUX_DATA(MSIOF0_PTT_TXD_MARK, PSC13_PSC12_FN2, PTT3_FN),
  736. PINMUX_DATA(SCIF2_PTT_SCK_MARK, PSC11_PSC10_FN1, PTT2_FN),
  737. PINMUX_DATA(MSIOF0_PTT_TSYNC_MARK, PSC11_PSC10_FN2, PTT2_FN),
  738. PINMUX_DATA(SCIF2_PTT_RXD_MARK, PSC11_PSC10_FN1, PTT1_FN),
  739. PINMUX_DATA(MSIOF0_PTT_SS1_MARK, PSC11_PSC10_FN2, PTT1_FN),
  740. PINMUX_DATA(MSIOF0_PTT_RSCK_MARK, PSC11_PSC10_FN3, PTT1_FN),
  741. PINMUX_DATA(SCIF2_PTT_TXD_MARK, PSC11_PSC10_FN1, PTT0_FN),
  742. PINMUX_DATA(MSIOF0_PTT_SS2_MARK, PSC11_PSC10_FN2, PTT0_FN),
  743. PINMUX_DATA(MSIOF0_PTT_RSYNC_MARK, PSC11_PSC10_FN3, PTT0_FN),
  744. /* PTU FN */
  745. PINMUX_DATA(FCDE_MARK, PSC9_PSC8_FN1, PTU5_FN),
  746. PINMUX_DATA(SCIF0_PTU_SCK_MARK, PSC9_PSC8_FN2, PTU5_FN),
  747. PINMUX_DATA(FSC_MARK, PSC9_PSC8_FN1, PTU4_FN),
  748. PINMUX_DATA(SCIF0_PTU_RXD_MARK, PSC9_PSC8_FN2, PTU4_FN),
  749. PINMUX_DATA(FWE_MARK, PSC9_PSC8_FN1, PTU3_FN),
  750. PINMUX_DATA(SCIF0_PTU_TXD_MARK, PSC9_PSC8_FN2, PTU3_FN),
  751. PINMUX_DATA(FOE_MARK, PSC7_PSC6_FN1, PTU2_FN),
  752. PINMUX_DATA(SCIF2_PTU_SCK_MARK, PSC7_PSC6_FN2, PTU2_FN),
  753. PINMUX_DATA(VIO_VD2_MARK, PSC7_PSC6_FN3, PTU2_FN),
  754. PINMUX_DATA(FRB_MARK, PSC7_PSC6_FN1, PTU1_FN),
  755. PINMUX_DATA(SCIF2_PTU_RXD_MARK, PSC7_PSC6_FN2, PTU1_FN),
  756. PINMUX_DATA(VIO_CLK2_MARK, PSC7_PSC6_FN3, PTU1_FN),
  757. PINMUX_DATA(FCE_MARK, PSC7_PSC6_FN1, PTU0_FN),
  758. PINMUX_DATA(SCIF2_PTU_TXD_MARK, PSC7_PSC6_FN2, PTU0_FN),
  759. PINMUX_DATA(VIO_HD2_MARK, PSC7_PSC6_FN3, PTU0_FN),
  760. /* PTV FN */
  761. PINMUX_DATA(NAF7_MARK, PSC7_PSC6_FN1, PTV7_FN),
  762. PINMUX_DATA(SCIF1_PTV_SCK_MARK, PSC7_PSC6_FN2, PTV7_FN),
  763. PINMUX_DATA(VIO_D15_MARK, PSC7_PSC6_FN3, PTV7_FN),
  764. PINMUX_DATA(NAF6_MARK, PSC7_PSC6_FN1, PTV6_FN),
  765. PINMUX_DATA(SCIF1_PTV_RXD_MARK, PSC7_PSC6_FN2, PTV6_FN),
  766. PINMUX_DATA(VIO_D14_MARK, PSC7_PSC6_FN3, PTV6_FN),
  767. PINMUX_DATA(NAF5_MARK, PSC7_PSC6_FN1, PTV5_FN),
  768. PINMUX_DATA(SCIF1_PTV_TXD_MARK, PSC7_PSC6_FN2, PTV5_FN),
  769. PINMUX_DATA(VIO_D13_MARK, PSC7_PSC6_FN3, PTV5_FN),
  770. PINMUX_DATA(NAF4_MARK, PSC7_PSC6_FN1, PTV4_FN),
  771. PINMUX_DATA(SCIF3_PTV_CTS_MARK, PSC7_PSC6_FN2, PTV4_FN),
  772. PINMUX_DATA(VIO_D12_MARK, PSC7_PSC6_FN3, PTV4_FN),
  773. PINMUX_DATA(NAF3_MARK, PSC7_PSC6_FN1, PTV3_FN),
  774. PINMUX_DATA(SCIF3_PTV_RTS_MARK, PSC7_PSC6_FN2, PTV3_FN),
  775. PINMUX_DATA(VIO_D11_MARK, PSC7_PSC6_FN3, PTV3_FN),
  776. PINMUX_DATA(NAF2_MARK, PSC7_PSC6_FN1, PTV2_FN),
  777. PINMUX_DATA(SCIF3_PTV_SCK_MARK, PSC7_PSC6_FN2, PTV2_FN),
  778. PINMUX_DATA(VIO_D10_MARK, PSC7_PSC6_FN3, PTV2_FN),
  779. PINMUX_DATA(NAF1_MARK, PSC7_PSC6_FN1, PTV1_FN),
  780. PINMUX_DATA(SCIF3_PTV_RXD_MARK, PSC7_PSC6_FN2, PTV1_FN),
  781. PINMUX_DATA(VIO_D9_MARK, PSC7_PSC6_FN3, PTV1_FN),
  782. PINMUX_DATA(NAF0_MARK, PSC7_PSC6_FN1, PTV0_FN),
  783. PINMUX_DATA(SCIF3_PTV_TXD_MARK, PSC7_PSC6_FN2, PTV0_FN),
  784. PINMUX_DATA(VIO_D8_MARK, PSC7_PSC6_FN3, PTV0_FN),
  785. /* PTW FN */
  786. PINMUX_DATA(IRQ7_MARK, PTW7_FN),
  787. PINMUX_DATA(IRQ6_MARK, PTW6_FN),
  788. PINMUX_DATA(IRQ5_MARK, PTW5_FN),
  789. PINMUX_DATA(IRQ4_MARK, PSD15_PSD14_FN1, PTW4_FN),
  790. PINMUX_DATA(LCDLCLK_PTW_MARK, PSD15_PSD14_FN2, PTW4_FN),
  791. PINMUX_DATA(IRQ3_MARK, PSD13_PSD12_FN1, PTW3_FN),
  792. PINMUX_DATA(ADTRG_MARK, PSD13_PSD12_FN2, PTW3_FN),
  793. PINMUX_DATA(IRQ2_MARK, PSD11_PSD10_FN1, PTW2_FN),
  794. PINMUX_DATA(BS_MARK, PSD11_PSD10_FN2, PTW2_FN),
  795. PINMUX_DATA(VIO_CKO_MARK, PSD11_PSD10_FN3, PTW2_FN),
  796. PINMUX_DATA(IRQ1_MARK, PSD9_PSD8_FN1, PTW1_FN),
  797. PINMUX_DATA(SIUAISPD_MARK, PSD9_PSD8_FN2, PTW1_FN),
  798. PINMUX_DATA(IRQ0_MARK, PSD7_PSD6_FN1, PTW0_FN),
  799. PINMUX_DATA(SIUAOSPD_MARK, PSD7_PSD6_FN2, PTW0_FN),
  800. /* PTX FN */
  801. PINMUX_DATA(DACK1_MARK, PTX7_FN),
  802. PINMUX_DATA(DREQ1_MARK, PSD3_PSD2_FN1, PTX6_FN),
  803. PINMUX_DATA(MSIOF0_PTX_MCK_MARK, PSD3_PSD2_FN2, PTX6_FN),
  804. PINMUX_DATA(DACK1_MARK, PTX5_FN),
  805. PINMUX_DATA(IRDA_OUT_MARK, PSD5_PSD4_FN2, PTX5_FN),
  806. PINMUX_DATA(DREQ1_MARK, PTX4_FN),
  807. PINMUX_DATA(IRDA_IN_MARK, PSD5_PSD4_FN2, PTX4_FN),
  808. PINMUX_DATA(TS0_SDAT_MARK, PTX3_FN),
  809. PINMUX_DATA(TS0_SCK_MARK, PTX2_FN),
  810. PINMUX_DATA(TS0_SDEN_MARK, PTX1_FN),
  811. PINMUX_DATA(TS0_SPSYNC_MARK, PTX0_FN),
  812. /* PTY FN */
  813. PINMUX_DATA(VIO_D7_MARK, PTY7_FN),
  814. PINMUX_DATA(VIO_D6_MARK, PTY6_FN),
  815. PINMUX_DATA(VIO_D5_MARK, PTY5_FN),
  816. PINMUX_DATA(VIO_D4_MARK, PTY4_FN),
  817. PINMUX_DATA(VIO_D3_MARK, PTY3_FN),
  818. PINMUX_DATA(VIO_D2_MARK, PTY2_FN),
  819. PINMUX_DATA(VIO_D1_MARK, PTY1_FN),
  820. PINMUX_DATA(VIO_D0_MARK, PTY0_FN),
  821. /* PTZ FN */
  822. PINMUX_DATA(SIUBOBT_MARK, PTZ7_FN),
  823. PINMUX_DATA(SIUBOLR_MARK, PTZ6_FN),
  824. PINMUX_DATA(SIUBOSLD_MARK, PTZ5_FN),
  825. PINMUX_DATA(SIUBMCK_MARK, PTZ4_FN),
  826. PINMUX_DATA(VIO_FLD_MARK, PSD1_PSD0_FN1, PTZ3_FN),
  827. PINMUX_DATA(SIUBFCK_MARK, PSD1_PSD0_FN2, PTZ3_FN),
  828. PINMUX_DATA(VIO_HD1_MARK, PSD1_PSD0_FN1, PTZ2_FN),
  829. PINMUX_DATA(SIUBILR_MARK, PSD1_PSD0_FN2, PTZ2_FN),
  830. PINMUX_DATA(VIO_VD1_MARK, PSD1_PSD0_FN1, PTZ1_FN),
  831. PINMUX_DATA(SIUBIBT_MARK, PSD1_PSD0_FN2, PTZ1_FN),
  832. PINMUX_DATA(VIO_CLK1_MARK, PSD1_PSD0_FN1, PTZ0_FN),
  833. PINMUX_DATA(SIUBISLD_MARK, PSD1_PSD0_FN2, PTZ0_FN),
  834. };
  835. static const struct sh_pfc_pin pinmux_pins[] = {
  836. /* PTA */
  837. PINMUX_GPIO(PTA7),
  838. PINMUX_GPIO(PTA6),
  839. PINMUX_GPIO(PTA5),
  840. PINMUX_GPIO(PTA4),
  841. PINMUX_GPIO(PTA3),
  842. PINMUX_GPIO(PTA2),
  843. PINMUX_GPIO(PTA1),
  844. PINMUX_GPIO(PTA0),
  845. /* PTB */
  846. PINMUX_GPIO(PTB7),
  847. PINMUX_GPIO(PTB6),
  848. PINMUX_GPIO(PTB5),
  849. PINMUX_GPIO(PTB4),
  850. PINMUX_GPIO(PTB3),
  851. PINMUX_GPIO(PTB2),
  852. PINMUX_GPIO(PTB1),
  853. PINMUX_GPIO(PTB0),
  854. /* PTC */
  855. PINMUX_GPIO(PTC7),
  856. PINMUX_GPIO(PTC6),
  857. PINMUX_GPIO(PTC5),
  858. PINMUX_GPIO(PTC4),
  859. PINMUX_GPIO(PTC3),
  860. PINMUX_GPIO(PTC2),
  861. PINMUX_GPIO(PTC1),
  862. PINMUX_GPIO(PTC0),
  863. /* PTD */
  864. PINMUX_GPIO(PTD7),
  865. PINMUX_GPIO(PTD6),
  866. PINMUX_GPIO(PTD5),
  867. PINMUX_GPIO(PTD4),
  868. PINMUX_GPIO(PTD3),
  869. PINMUX_GPIO(PTD2),
  870. PINMUX_GPIO(PTD1),
  871. PINMUX_GPIO(PTD0),
  872. /* PTE */
  873. PINMUX_GPIO(PTE5),
  874. PINMUX_GPIO(PTE4),
  875. PINMUX_GPIO(PTE3),
  876. PINMUX_GPIO(PTE2),
  877. PINMUX_GPIO(PTE1),
  878. PINMUX_GPIO(PTE0),
  879. /* PTF */
  880. PINMUX_GPIO(PTF7),
  881. PINMUX_GPIO(PTF6),
  882. PINMUX_GPIO(PTF5),
  883. PINMUX_GPIO(PTF4),
  884. PINMUX_GPIO(PTF3),
  885. PINMUX_GPIO(PTF2),
  886. PINMUX_GPIO(PTF1),
  887. PINMUX_GPIO(PTF0),
  888. /* PTG */
  889. PINMUX_GPIO(PTG5),
  890. PINMUX_GPIO(PTG4),
  891. PINMUX_GPIO(PTG3),
  892. PINMUX_GPIO(PTG2),
  893. PINMUX_GPIO(PTG1),
  894. PINMUX_GPIO(PTG0),
  895. /* PTH */
  896. PINMUX_GPIO(PTH7),
  897. PINMUX_GPIO(PTH6),
  898. PINMUX_GPIO(PTH5),
  899. PINMUX_GPIO(PTH4),
  900. PINMUX_GPIO(PTH3),
  901. PINMUX_GPIO(PTH2),
  902. PINMUX_GPIO(PTH1),
  903. PINMUX_GPIO(PTH0),
  904. /* PTJ */
  905. PINMUX_GPIO(PTJ7),
  906. PINMUX_GPIO(PTJ5),
  907. PINMUX_GPIO(PTJ3),
  908. PINMUX_GPIO(PTJ2),
  909. PINMUX_GPIO(PTJ1),
  910. PINMUX_GPIO(PTJ0),
  911. /* PTK */
  912. PINMUX_GPIO(PTK7),
  913. PINMUX_GPIO(PTK6),
  914. PINMUX_GPIO(PTK5),
  915. PINMUX_GPIO(PTK4),
  916. PINMUX_GPIO(PTK3),
  917. PINMUX_GPIO(PTK2),
  918. PINMUX_GPIO(PTK1),
  919. PINMUX_GPIO(PTK0),
  920. /* PTL */
  921. PINMUX_GPIO(PTL7),
  922. PINMUX_GPIO(PTL6),
  923. PINMUX_GPIO(PTL5),
  924. PINMUX_GPIO(PTL4),
  925. PINMUX_GPIO(PTL3),
  926. PINMUX_GPIO(PTL2),
  927. PINMUX_GPIO(PTL1),
  928. PINMUX_GPIO(PTL0),
  929. /* PTM */
  930. PINMUX_GPIO(PTM7),
  931. PINMUX_GPIO(PTM6),
  932. PINMUX_GPIO(PTM5),
  933. PINMUX_GPIO(PTM4),
  934. PINMUX_GPIO(PTM3),
  935. PINMUX_GPIO(PTM2),
  936. PINMUX_GPIO(PTM1),
  937. PINMUX_GPIO(PTM0),
  938. /* PTN */
  939. PINMUX_GPIO(PTN7),
  940. PINMUX_GPIO(PTN6),
  941. PINMUX_GPIO(PTN5),
  942. PINMUX_GPIO(PTN4),
  943. PINMUX_GPIO(PTN3),
  944. PINMUX_GPIO(PTN2),
  945. PINMUX_GPIO(PTN1),
  946. PINMUX_GPIO(PTN0),
  947. /* PTQ */
  948. PINMUX_GPIO(PTQ3),
  949. PINMUX_GPIO(PTQ2),
  950. PINMUX_GPIO(PTQ1),
  951. PINMUX_GPIO(PTQ0),
  952. /* PTR */
  953. PINMUX_GPIO(PTR7),
  954. PINMUX_GPIO(PTR6),
  955. PINMUX_GPIO(PTR5),
  956. PINMUX_GPIO(PTR4),
  957. PINMUX_GPIO(PTR3),
  958. PINMUX_GPIO(PTR2),
  959. PINMUX_GPIO(PTR1),
  960. PINMUX_GPIO(PTR0),
  961. /* PTS */
  962. PINMUX_GPIO(PTS7),
  963. PINMUX_GPIO(PTS6),
  964. PINMUX_GPIO(PTS5),
  965. PINMUX_GPIO(PTS4),
  966. PINMUX_GPIO(PTS3),
  967. PINMUX_GPIO(PTS2),
  968. PINMUX_GPIO(PTS1),
  969. PINMUX_GPIO(PTS0),
  970. /* PTT */
  971. PINMUX_GPIO(PTT5),
  972. PINMUX_GPIO(PTT4),
  973. PINMUX_GPIO(PTT3),
  974. PINMUX_GPIO(PTT2),
  975. PINMUX_GPIO(PTT1),
  976. PINMUX_GPIO(PTT0),
  977. /* PTU */
  978. PINMUX_GPIO(PTU5),
  979. PINMUX_GPIO(PTU4),
  980. PINMUX_GPIO(PTU3),
  981. PINMUX_GPIO(PTU2),
  982. PINMUX_GPIO(PTU1),
  983. PINMUX_GPIO(PTU0),
  984. /* PTV */
  985. PINMUX_GPIO(PTV7),
  986. PINMUX_GPIO(PTV6),
  987. PINMUX_GPIO(PTV5),
  988. PINMUX_GPIO(PTV4),
  989. PINMUX_GPIO(PTV3),
  990. PINMUX_GPIO(PTV2),
  991. PINMUX_GPIO(PTV1),
  992. PINMUX_GPIO(PTV0),
  993. /* PTW */
  994. PINMUX_GPIO(PTW7),
  995. PINMUX_GPIO(PTW6),
  996. PINMUX_GPIO(PTW5),
  997. PINMUX_GPIO(PTW4),
  998. PINMUX_GPIO(PTW3),
  999. PINMUX_GPIO(PTW2),
  1000. PINMUX_GPIO(PTW1),
  1001. PINMUX_GPIO(PTW0),
  1002. /* PTX */
  1003. PINMUX_GPIO(PTX7),
  1004. PINMUX_GPIO(PTX6),
  1005. PINMUX_GPIO(PTX5),
  1006. PINMUX_GPIO(PTX4),
  1007. PINMUX_GPIO(PTX3),
  1008. PINMUX_GPIO(PTX2),
  1009. PINMUX_GPIO(PTX1),
  1010. PINMUX_GPIO(PTX0),
  1011. /* PTY */
  1012. PINMUX_GPIO(PTY7),
  1013. PINMUX_GPIO(PTY6),
  1014. PINMUX_GPIO(PTY5),
  1015. PINMUX_GPIO(PTY4),
  1016. PINMUX_GPIO(PTY3),
  1017. PINMUX_GPIO(PTY2),
  1018. PINMUX_GPIO(PTY1),
  1019. PINMUX_GPIO(PTY0),
  1020. /* PTZ */
  1021. PINMUX_GPIO(PTZ7),
  1022. PINMUX_GPIO(PTZ6),
  1023. PINMUX_GPIO(PTZ5),
  1024. PINMUX_GPIO(PTZ4),
  1025. PINMUX_GPIO(PTZ3),
  1026. PINMUX_GPIO(PTZ2),
  1027. PINMUX_GPIO(PTZ1),
  1028. PINMUX_GPIO(PTZ0),
  1029. };
  1030. #define PINMUX_FN_BASE ARRAY_SIZE(pinmux_pins)
  1031. static const struct pinmux_func pinmux_func_gpios[] = {
  1032. /* SCIF0 */
  1033. GPIO_FN(SCIF0_PTT_TXD),
  1034. GPIO_FN(SCIF0_PTT_RXD),
  1035. GPIO_FN(SCIF0_PTT_SCK),
  1036. GPIO_FN(SCIF0_PTU_TXD),
  1037. GPIO_FN(SCIF0_PTU_RXD),
  1038. GPIO_FN(SCIF0_PTU_SCK),
  1039. /* SCIF1 */
  1040. GPIO_FN(SCIF1_PTS_TXD),
  1041. GPIO_FN(SCIF1_PTS_RXD),
  1042. GPIO_FN(SCIF1_PTS_SCK),
  1043. GPIO_FN(SCIF1_PTV_TXD),
  1044. GPIO_FN(SCIF1_PTV_RXD),
  1045. GPIO_FN(SCIF1_PTV_SCK),
  1046. /* SCIF2 */
  1047. GPIO_FN(SCIF2_PTT_TXD),
  1048. GPIO_FN(SCIF2_PTT_RXD),
  1049. GPIO_FN(SCIF2_PTT_SCK),
  1050. GPIO_FN(SCIF2_PTU_TXD),
  1051. GPIO_FN(SCIF2_PTU_RXD),
  1052. GPIO_FN(SCIF2_PTU_SCK),
  1053. /* SCIF3 */
  1054. GPIO_FN(SCIF3_PTS_TXD),
  1055. GPIO_FN(SCIF3_PTS_RXD),
  1056. GPIO_FN(SCIF3_PTS_SCK),
  1057. GPIO_FN(SCIF3_PTS_RTS),
  1058. GPIO_FN(SCIF3_PTS_CTS),
  1059. GPIO_FN(SCIF3_PTV_TXD),
  1060. GPIO_FN(SCIF3_PTV_RXD),
  1061. GPIO_FN(SCIF3_PTV_SCK),
  1062. GPIO_FN(SCIF3_PTV_RTS),
  1063. GPIO_FN(SCIF3_PTV_CTS),
  1064. /* SCIF4 */
  1065. GPIO_FN(SCIF4_PTE_TXD),
  1066. GPIO_FN(SCIF4_PTE_RXD),
  1067. GPIO_FN(SCIF4_PTE_SCK),
  1068. GPIO_FN(SCIF4_PTN_TXD),
  1069. GPIO_FN(SCIF4_PTN_RXD),
  1070. GPIO_FN(SCIF4_PTN_SCK),
  1071. /* SCIF5 */
  1072. GPIO_FN(SCIF5_PTE_TXD),
  1073. GPIO_FN(SCIF5_PTE_RXD),
  1074. GPIO_FN(SCIF5_PTE_SCK),
  1075. GPIO_FN(SCIF5_PTN_TXD),
  1076. GPIO_FN(SCIF5_PTN_RXD),
  1077. GPIO_FN(SCIF5_PTN_SCK),
  1078. /* CEU */
  1079. GPIO_FN(VIO_D15),
  1080. GPIO_FN(VIO_D14),
  1081. GPIO_FN(VIO_D13),
  1082. GPIO_FN(VIO_D12),
  1083. GPIO_FN(VIO_D11),
  1084. GPIO_FN(VIO_D10),
  1085. GPIO_FN(VIO_D9),
  1086. GPIO_FN(VIO_D8),
  1087. GPIO_FN(VIO_D7),
  1088. GPIO_FN(VIO_D6),
  1089. GPIO_FN(VIO_D5),
  1090. GPIO_FN(VIO_D4),
  1091. GPIO_FN(VIO_D3),
  1092. GPIO_FN(VIO_D2),
  1093. GPIO_FN(VIO_D1),
  1094. GPIO_FN(VIO_D0),
  1095. GPIO_FN(VIO_CLK1),
  1096. GPIO_FN(VIO_VD1),
  1097. GPIO_FN(VIO_HD1),
  1098. GPIO_FN(VIO_FLD),
  1099. GPIO_FN(VIO_CKO),
  1100. GPIO_FN(VIO_VD2),
  1101. GPIO_FN(VIO_HD2),
  1102. GPIO_FN(VIO_CLK2),
  1103. /* LCDC */
  1104. GPIO_FN(LCDD23),
  1105. GPIO_FN(LCDD22),
  1106. GPIO_FN(LCDD21),
  1107. GPIO_FN(LCDD20),
  1108. GPIO_FN(LCDD19),
  1109. GPIO_FN(LCDD18),
  1110. GPIO_FN(LCDD17),
  1111. GPIO_FN(LCDD16),
  1112. GPIO_FN(LCDD15),
  1113. GPIO_FN(LCDD14),
  1114. GPIO_FN(LCDD13),
  1115. GPIO_FN(LCDD12),
  1116. GPIO_FN(LCDD11),
  1117. GPIO_FN(LCDD10),
  1118. GPIO_FN(LCDD9),
  1119. GPIO_FN(LCDD8),
  1120. GPIO_FN(LCDD7),
  1121. GPIO_FN(LCDD6),
  1122. GPIO_FN(LCDD5),
  1123. GPIO_FN(LCDD4),
  1124. GPIO_FN(LCDD3),
  1125. GPIO_FN(LCDD2),
  1126. GPIO_FN(LCDD1),
  1127. GPIO_FN(LCDD0),
  1128. GPIO_FN(LCDLCLK_PTR),
  1129. GPIO_FN(LCDLCLK_PTW),
  1130. /* Main LCD */
  1131. GPIO_FN(LCDDON),
  1132. GPIO_FN(LCDVCPWC),
  1133. GPIO_FN(LCDVEPWC),
  1134. GPIO_FN(LCDVSYN),
  1135. /* Main LCD - RGB Mode */
  1136. GPIO_FN(LCDDCK),
  1137. GPIO_FN(LCDHSYN),
  1138. GPIO_FN(LCDDISP),
  1139. /* Main LCD - SYS Mode */
  1140. GPIO_FN(LCDRS),
  1141. GPIO_FN(LCDCS),
  1142. GPIO_FN(LCDWR),
  1143. GPIO_FN(LCDRD),
  1144. /* IRQ */
  1145. GPIO_FN(IRQ0),
  1146. GPIO_FN(IRQ1),
  1147. GPIO_FN(IRQ2),
  1148. GPIO_FN(IRQ3),
  1149. GPIO_FN(IRQ4),
  1150. GPIO_FN(IRQ5),
  1151. GPIO_FN(IRQ6),
  1152. GPIO_FN(IRQ7),
  1153. /* AUD */
  1154. GPIO_FN(AUDCK),
  1155. GPIO_FN(AUDSYNC),
  1156. GPIO_FN(AUDATA3),
  1157. GPIO_FN(AUDATA2),
  1158. GPIO_FN(AUDATA1),
  1159. GPIO_FN(AUDATA0),
  1160. /* SDHI0 (PTD) */
  1161. GPIO_FN(SDHI0CD_PTD),
  1162. GPIO_FN(SDHI0WP_PTD),
  1163. GPIO_FN(SDHI0D3_PTD),
  1164. GPIO_FN(SDHI0D2_PTD),
  1165. GPIO_FN(SDHI0D1_PTD),
  1166. GPIO_FN(SDHI0D0_PTD),
  1167. GPIO_FN(SDHI0CMD_PTD),
  1168. GPIO_FN(SDHI0CLK_PTD),
  1169. /* SDHI0 (PTS) */
  1170. GPIO_FN(SDHI0CD_PTS),
  1171. GPIO_FN(SDHI0WP_PTS),
  1172. GPIO_FN(SDHI0D3_PTS),
  1173. GPIO_FN(SDHI0D2_PTS),
  1174. GPIO_FN(SDHI0D1_PTS),
  1175. GPIO_FN(SDHI0D0_PTS),
  1176. GPIO_FN(SDHI0CMD_PTS),
  1177. GPIO_FN(SDHI0CLK_PTS),
  1178. /* SDHI1 */
  1179. GPIO_FN(SDHI1CD),
  1180. GPIO_FN(SDHI1WP),
  1181. GPIO_FN(SDHI1D3),
  1182. GPIO_FN(SDHI1D2),
  1183. GPIO_FN(SDHI1D1),
  1184. GPIO_FN(SDHI1D0),
  1185. GPIO_FN(SDHI1CMD),
  1186. GPIO_FN(SDHI1CLK),
  1187. /* SIUA */
  1188. GPIO_FN(SIUAFCK),
  1189. GPIO_FN(SIUAILR),
  1190. GPIO_FN(SIUAIBT),
  1191. GPIO_FN(SIUAISLD),
  1192. GPIO_FN(SIUAOLR),
  1193. GPIO_FN(SIUAOBT),
  1194. GPIO_FN(SIUAOSLD),
  1195. GPIO_FN(SIUAMCK),
  1196. GPIO_FN(SIUAISPD),
  1197. GPIO_FN(SIUAOSPD),
  1198. /* SIUB */
  1199. GPIO_FN(SIUBFCK),
  1200. GPIO_FN(SIUBILR),
  1201. GPIO_FN(SIUBIBT),
  1202. GPIO_FN(SIUBISLD),
  1203. GPIO_FN(SIUBOLR),
  1204. GPIO_FN(SIUBOBT),
  1205. GPIO_FN(SIUBOSLD),
  1206. GPIO_FN(SIUBMCK),
  1207. /* IRDA */
  1208. GPIO_FN(IRDA_IN),
  1209. GPIO_FN(IRDA_OUT),
  1210. /* VOU */
  1211. GPIO_FN(DV_CLKI),
  1212. GPIO_FN(DV_CLK),
  1213. GPIO_FN(DV_HSYNC),
  1214. GPIO_FN(DV_VSYNC),
  1215. GPIO_FN(DV_D15),
  1216. GPIO_FN(DV_D14),
  1217. GPIO_FN(DV_D13),
  1218. GPIO_FN(DV_D12),
  1219. GPIO_FN(DV_D11),
  1220. GPIO_FN(DV_D10),
  1221. GPIO_FN(DV_D9),
  1222. GPIO_FN(DV_D8),
  1223. GPIO_FN(DV_D7),
  1224. GPIO_FN(DV_D6),
  1225. GPIO_FN(DV_D5),
  1226. GPIO_FN(DV_D4),
  1227. GPIO_FN(DV_D3),
  1228. GPIO_FN(DV_D2),
  1229. GPIO_FN(DV_D1),
  1230. GPIO_FN(DV_D0),
  1231. /* KEYSC */
  1232. GPIO_FN(KEYIN0),
  1233. GPIO_FN(KEYIN1),
  1234. GPIO_FN(KEYIN2),
  1235. GPIO_FN(KEYIN3),
  1236. GPIO_FN(KEYIN4),
  1237. GPIO_FN(KEYOUT0),
  1238. GPIO_FN(KEYOUT1),
  1239. GPIO_FN(KEYOUT2),
  1240. GPIO_FN(KEYOUT3),
  1241. GPIO_FN(KEYOUT4_IN6),
  1242. GPIO_FN(KEYOUT5_IN5),
  1243. /* MSIOF0 (PTF) */
  1244. GPIO_FN(MSIOF0_PTF_TXD),
  1245. GPIO_FN(MSIOF0_PTF_RXD),
  1246. GPIO_FN(MSIOF0_PTF_MCK),
  1247. GPIO_FN(MSIOF0_PTF_TSYNC),
  1248. GPIO_FN(MSIOF0_PTF_TSCK),
  1249. GPIO_FN(MSIOF0_PTF_RSYNC),
  1250. GPIO_FN(MSIOF0_PTF_RSCK),
  1251. GPIO_FN(MSIOF0_PTF_SS1),
  1252. GPIO_FN(MSIOF0_PTF_SS2),
  1253. /* MSIOF0 (PTT+PTX) */
  1254. GPIO_FN(MSIOF0_PTT_TXD),
  1255. GPIO_FN(MSIOF0_PTT_RXD),
  1256. GPIO_FN(MSIOF0_PTX_MCK),
  1257. GPIO_FN(MSIOF0_PTT_TSYNC),
  1258. GPIO_FN(MSIOF0_PTT_TSCK),
  1259. GPIO_FN(MSIOF0_PTT_RSYNC),
  1260. GPIO_FN(MSIOF0_PTT_RSCK),
  1261. GPIO_FN(MSIOF0_PTT_SS1),
  1262. GPIO_FN(MSIOF0_PTT_SS2),
  1263. /* MSIOF1 */
  1264. GPIO_FN(MSIOF1_TXD),
  1265. GPIO_FN(MSIOF1_RXD),
  1266. GPIO_FN(MSIOF1_MCK),
  1267. GPIO_FN(MSIOF1_TSYNC),
  1268. GPIO_FN(MSIOF1_TSCK),
  1269. GPIO_FN(MSIOF1_RSYNC),
  1270. GPIO_FN(MSIOF1_RSCK),
  1271. GPIO_FN(MSIOF1_SS1),
  1272. GPIO_FN(MSIOF1_SS2),
  1273. /* TSIF */
  1274. GPIO_FN(TS0_SDAT),
  1275. GPIO_FN(TS0_SCK),
  1276. GPIO_FN(TS0_SDEN),
  1277. GPIO_FN(TS0_SPSYNC),
  1278. /* FLCTL */
  1279. GPIO_FN(FCE),
  1280. GPIO_FN(NAF7),
  1281. GPIO_FN(NAF6),
  1282. GPIO_FN(NAF5),
  1283. GPIO_FN(NAF4),
  1284. GPIO_FN(NAF3),
  1285. GPIO_FN(NAF2),
  1286. GPIO_FN(NAF1),
  1287. GPIO_FN(NAF0),
  1288. GPIO_FN(FCDE),
  1289. GPIO_FN(FOE),
  1290. GPIO_FN(FSC),
  1291. GPIO_FN(FWE),
  1292. GPIO_FN(FRB),
  1293. /* DMAC */
  1294. GPIO_FN(DACK1),
  1295. GPIO_FN(DREQ1),
  1296. GPIO_FN(DACK0),
  1297. GPIO_FN(DREQ0),
  1298. /* ADC */
  1299. GPIO_FN(AN3),
  1300. GPIO_FN(AN2),
  1301. GPIO_FN(AN1),
  1302. GPIO_FN(AN0),
  1303. GPIO_FN(ADTRG),
  1304. /* CPG */
  1305. GPIO_FN(STATUS0),
  1306. GPIO_FN(PDSTATUS),
  1307. /* TPU */
  1308. GPIO_FN(TPUTO0),
  1309. GPIO_FN(TPUTO1),
  1310. GPIO_FN(TPUTO2),
  1311. GPIO_FN(TPUTO3),
  1312. /* BSC */
  1313. GPIO_FN(D31),
  1314. GPIO_FN(D30),
  1315. GPIO_FN(D29),
  1316. GPIO_FN(D28),
  1317. GPIO_FN(D27),
  1318. GPIO_FN(D26),
  1319. GPIO_FN(D25),
  1320. GPIO_FN(D24),
  1321. GPIO_FN(D23),
  1322. GPIO_FN(D22),
  1323. GPIO_FN(D21),
  1324. GPIO_FN(D20),
  1325. GPIO_FN(D19),
  1326. GPIO_FN(D18),
  1327. GPIO_FN(D17),
  1328. GPIO_FN(D16),
  1329. GPIO_FN(IOIS16),
  1330. GPIO_FN(WAIT),
  1331. GPIO_FN(BS),
  1332. GPIO_FN(A25),
  1333. GPIO_FN(A24),
  1334. GPIO_FN(A23),
  1335. GPIO_FN(A22),
  1336. GPIO_FN(CS6B_CE1B),
  1337. GPIO_FN(CS6A_CE2B),
  1338. GPIO_FN(CS5B_CE1A),
  1339. GPIO_FN(CS5A_CE2A),
  1340. GPIO_FN(WE3_ICIOWR),
  1341. GPIO_FN(WE2_ICIORD),
  1342. /* ATAPI */
  1343. GPIO_FN(IDED15),
  1344. GPIO_FN(IDED14),
  1345. GPIO_FN(IDED13),
  1346. GPIO_FN(IDED12),
  1347. GPIO_FN(IDED11),
  1348. GPIO_FN(IDED10),
  1349. GPIO_FN(IDED9),
  1350. GPIO_FN(IDED8),
  1351. GPIO_FN(IDED7),
  1352. GPIO_FN(IDED6),
  1353. GPIO_FN(IDED5),
  1354. GPIO_FN(IDED4),
  1355. GPIO_FN(IDED3),
  1356. GPIO_FN(IDED2),
  1357. GPIO_FN(IDED1),
  1358. GPIO_FN(IDED0),
  1359. GPIO_FN(DIRECTION),
  1360. GPIO_FN(EXBUF_ENB),
  1361. GPIO_FN(IDERST),
  1362. GPIO_FN(IODACK),
  1363. GPIO_FN(IODREQ),
  1364. GPIO_FN(IDEIORDY),
  1365. GPIO_FN(IDEINT),
  1366. GPIO_FN(IDEIOWR),
  1367. GPIO_FN(IDEIORD),
  1368. GPIO_FN(IDECS1),
  1369. GPIO_FN(IDECS0),
  1370. GPIO_FN(IDEA2),
  1371. GPIO_FN(IDEA1),
  1372. GPIO_FN(IDEA0),
  1373. };
  1374. static const struct pinmux_cfg_reg pinmux_config_regs[] = {
  1375. { PINMUX_CFG_REG("PACR", 0xa4050100, 16, 2) {
  1376. PTA7_FN, PTA7_OUT, 0, PTA7_IN,
  1377. PTA6_FN, PTA6_OUT, 0, PTA6_IN,
  1378. PTA5_FN, PTA5_OUT, 0, PTA5_IN,
  1379. PTA4_FN, PTA4_OUT, 0, PTA4_IN,
  1380. PTA3_FN, PTA3_OUT, 0, PTA3_IN,
  1381. PTA2_FN, PTA2_OUT, 0, PTA2_IN,
  1382. PTA1_FN, PTA1_OUT, 0, PTA1_IN,
  1383. PTA0_FN, PTA0_OUT, 0, PTA0_IN }
  1384. },
  1385. { PINMUX_CFG_REG("PBCR", 0xa4050102, 16, 2) {
  1386. PTB7_FN, PTB7_OUT, 0, PTB7_IN,
  1387. PTB6_FN, PTB6_OUT, 0, PTB6_IN,
  1388. PTB5_FN, PTB5_OUT, 0, PTB5_IN,
  1389. PTB4_FN, PTB4_OUT, 0, PTB4_IN,
  1390. PTB3_FN, PTB3_OUT, 0, PTB3_IN,
  1391. PTB2_FN, PTB2_OUT, 0, PTB2_IN,
  1392. PTB1_FN, PTB1_OUT, 0, PTB1_IN,
  1393. PTB0_FN, PTB0_OUT, 0, PTB0_IN }
  1394. },
  1395. { PINMUX_CFG_REG("PCCR", 0xa4050104, 16, 2) {
  1396. PTC7_FN, PTC7_OUT, 0, PTC7_IN,
  1397. PTC6_FN, PTC6_OUT, 0, PTC6_IN,
  1398. PTC5_FN, PTC5_OUT, 0, PTC5_IN,
  1399. PTC4_FN, PTC4_OUT, 0, PTC4_IN,
  1400. PTC3_FN, PTC3_OUT, 0, PTC3_IN,
  1401. PTC2_FN, PTC2_OUT, 0, PTC2_IN,
  1402. PTC1_FN, PTC1_OUT, 0, PTC1_IN,
  1403. PTC0_FN, PTC0_OUT, 0, PTC0_IN }
  1404. },
  1405. { PINMUX_CFG_REG("PDCR", 0xa4050106, 16, 2) {
  1406. PTD7_FN, PTD7_OUT, 0, PTD7_IN,
  1407. PTD6_FN, PTD6_OUT, 0, PTD6_IN,
  1408. PTD5_FN, PTD5_OUT, 0, PTD5_IN,
  1409. PTD4_FN, PTD4_OUT, 0, PTD4_IN,
  1410. PTD3_FN, PTD3_OUT, 0, PTD3_IN,
  1411. PTD2_FN, PTD2_OUT, 0, PTD2_IN,
  1412. PTD1_FN, PTD1_OUT, 0, PTD1_IN,
  1413. PTD0_FN, PTD0_OUT, 0, PTD0_IN }
  1414. },
  1415. { PINMUX_CFG_REG("PECR", 0xa4050108, 16, 2) {
  1416. 0, 0, 0, 0,
  1417. 0, 0, 0, 0,
  1418. PTE5_FN, PTE5_OUT, 0, PTE5_IN,
  1419. PTE4_FN, PTE4_OUT, 0, PTE4_IN,
  1420. PTE3_FN, PTE3_OUT, 0, PTE3_IN,
  1421. PTE2_FN, PTE2_OUT, 0, PTE2_IN,
  1422. PTE1_FN, PTE1_OUT, 0, PTE1_IN,
  1423. PTE0_FN, PTE0_OUT, 0, PTE0_IN }
  1424. },
  1425. { PINMUX_CFG_REG("PFCR", 0xa405010a, 16, 2) {
  1426. PTF7_FN, PTF7_OUT, 0, PTF7_IN,
  1427. PTF6_FN, PTF6_OUT, 0, PTF6_IN,
  1428. PTF5_FN, PTF5_OUT, 0, PTF5_IN,
  1429. PTF4_FN, PTF4_OUT, 0, PTF4_IN,
  1430. PTF3_FN, PTF3_OUT, 0, PTF3_IN,
  1431. PTF2_FN, PTF2_OUT, 0, PTF2_IN,
  1432. PTF1_FN, PTF1_OUT, 0, PTF1_IN,
  1433. PTF0_FN, PTF0_OUT, 0, PTF0_IN }
  1434. },
  1435. { PINMUX_CFG_REG("PGCR", 0xa405010c, 16, 2) {
  1436. 0, 0, 0, 0,
  1437. 0, 0, 0, 0,
  1438. PTG5_FN, PTG5_OUT, 0, 0,
  1439. PTG4_FN, PTG4_OUT, 0, 0,
  1440. PTG3_FN, PTG3_OUT, 0, 0,
  1441. PTG2_FN, PTG2_OUT, 0, 0,
  1442. PTG1_FN, PTG1_OUT, 0, 0,
  1443. PTG0_FN, PTG0_OUT, 0, 0 }
  1444. },
  1445. { PINMUX_CFG_REG("PHCR", 0xa405010e, 16, 2) {
  1446. PTH7_FN, PTH7_OUT, 0, PTH7_IN,
  1447. PTH6_FN, PTH6_OUT, 0, PTH6_IN,
  1448. PTH5_FN, PTH5_OUT, 0, PTH5_IN,
  1449. PTH4_FN, PTH4_OUT, 0, PTH4_IN,
  1450. PTH3_FN, PTH3_OUT, 0, PTH3_IN,
  1451. PTH2_FN, PTH2_OUT, 0, PTH2_IN,
  1452. PTH1_FN, PTH1_OUT, 0, PTH1_IN,
  1453. PTH0_FN, PTH0_OUT, 0, PTH0_IN }
  1454. },
  1455. { PINMUX_CFG_REG("PJCR", 0xa4050110, 16, 2) {
  1456. PTJ7_FN, PTJ7_OUT, 0, 0,
  1457. 0, 0, 0, 0,
  1458. PTJ5_FN, PTJ5_OUT, 0, 0,
  1459. 0, 0, 0, 0,
  1460. PTJ3_FN, PTJ3_OUT, 0, PTJ3_IN,
  1461. PTJ2_FN, PTJ2_OUT, 0, PTJ2_IN,
  1462. PTJ1_FN, PTJ1_OUT, 0, PTJ1_IN,
  1463. PTJ0_FN, PTJ0_OUT, 0, PTJ0_IN }
  1464. },
  1465. { PINMUX_CFG_REG("PKCR", 0xa4050112, 16, 2) {
  1466. PTK7_FN, PTK7_OUT, 0, PTK7_IN,
  1467. PTK6_FN, PTK6_OUT, 0, PTK6_IN,
  1468. PTK5_FN, PTK5_OUT, 0, PTK5_IN,
  1469. PTK4_FN, PTK4_OUT, 0, PTK4_IN,
  1470. PTK3_FN, PTK3_OUT, 0, PTK3_IN,
  1471. PTK2_FN, PTK2_OUT, 0, PTK2_IN,
  1472. PTK1_FN, PTK1_OUT, 0, PTK1_IN,
  1473. PTK0_FN, PTK0_OUT, 0, PTK0_IN }
  1474. },
  1475. { PINMUX_CFG_REG("PLCR", 0xa4050114, 16, 2) {
  1476. PTL7_FN, PTL7_OUT, 0, PTL7_IN,
  1477. PTL6_FN, PTL6_OUT, 0, PTL6_IN,
  1478. PTL5_FN, PTL5_OUT, 0, PTL5_IN,
  1479. PTL4_FN, PTL4_OUT, 0, PTL4_IN,
  1480. PTL3_FN, PTL3_OUT, 0, PTL3_IN,
  1481. PTL2_FN, PTL2_OUT, 0, PTL2_IN,
  1482. PTL1_FN, PTL1_OUT, 0, PTL1_IN,
  1483. PTL0_FN, PTL0_OUT, 0, PTL0_IN }
  1484. },
  1485. { PINMUX_CFG_REG("PMCR", 0xa4050116, 16, 2) {
  1486. PTM7_FN, PTM7_OUT, 0, PTM7_IN,
  1487. PTM6_FN, PTM6_OUT, 0, PTM6_IN,
  1488. PTM5_FN, PTM5_OUT, 0, PTM5_IN,
  1489. PTM4_FN, PTM4_OUT, 0, PTM4_IN,
  1490. PTM3_FN, PTM3_OUT, 0, PTM3_IN,
  1491. PTM2_FN, PTM2_OUT, 0, PTM2_IN,
  1492. PTM1_FN, PTM1_OUT, 0, PTM1_IN,
  1493. PTM0_FN, PTM0_OUT, 0, PTM0_IN }
  1494. },
  1495. { PINMUX_CFG_REG("PNCR", 0xa4050118, 16, 2) {
  1496. PTN7_FN, PTN7_OUT, 0, PTN7_IN,
  1497. PTN6_FN, PTN6_OUT, 0, PTN6_IN,
  1498. PTN5_FN, PTN5_OUT, 0, PTN5_IN,
  1499. PTN4_FN, PTN4_OUT, 0, PTN4_IN,
  1500. PTN3_FN, PTN3_OUT, 0, PTN3_IN,
  1501. PTN2_FN, PTN2_OUT, 0, PTN2_IN,
  1502. PTN1_FN, PTN1_OUT, 0, PTN1_IN,
  1503. PTN0_FN, PTN0_OUT, 0, PTN0_IN }
  1504. },
  1505. { PINMUX_CFG_REG("PQCR", 0xa405011a, 16, 2) {
  1506. 0, 0, 0, 0,
  1507. 0, 0, 0, 0,
  1508. 0, 0, 0, 0,
  1509. 0, 0, 0, 0,
  1510. PTQ3_FN, 0, 0, PTQ3_IN,
  1511. PTQ2_FN, 0, 0, PTQ2_IN,
  1512. PTQ1_FN, 0, 0, PTQ1_IN,
  1513. PTQ0_FN, 0, 0, PTQ0_IN }
  1514. },
  1515. { PINMUX_CFG_REG("PRCR", 0xa405011c, 16, 2) {
  1516. PTR7_FN, PTR7_OUT, 0, PTR7_IN,
  1517. PTR6_FN, PTR6_OUT, 0, PTR6_IN,
  1518. PTR5_FN, PTR5_OUT, 0, PTR5_IN,
  1519. PTR4_FN, PTR4_OUT, 0, PTR4_IN,
  1520. PTR3_FN, 0, 0, PTR3_IN,
  1521. PTR2_FN, 0, 0, PTR2_IN,
  1522. PTR1_FN, PTR1_OUT, 0, PTR1_IN,
  1523. PTR0_FN, PTR0_OUT, 0, PTR0_IN }
  1524. },
  1525. { PINMUX_CFG_REG("PSCR", 0xa405011e, 16, 2) {
  1526. PTS7_FN, PTS7_OUT, 0, PTS7_IN,
  1527. PTS6_FN, PTS6_OUT, 0, PTS6_IN,
  1528. PTS5_FN, PTS5_OUT, 0, PTS5_IN,
  1529. PTS4_FN, PTS4_OUT, 0, PTS4_IN,
  1530. PTS3_FN, PTS3_OUT, 0, PTS3_IN,
  1531. PTS2_FN, PTS2_OUT, 0, PTS2_IN,
  1532. PTS1_FN, PTS1_OUT, 0, PTS1_IN,
  1533. PTS0_FN, PTS0_OUT, 0, PTS0_IN }
  1534. },
  1535. { PINMUX_CFG_REG("PTCR", 0xa4050140, 16, 2) {
  1536. 0, 0, 0, 0,
  1537. 0, 0, 0, 0,
  1538. PTT5_FN, PTT5_OUT, 0, PTT5_IN,
  1539. PTT4_FN, PTT4_OUT, 0, PTT4_IN,
  1540. PTT3_FN, PTT3_OUT, 0, PTT3_IN,
  1541. PTT2_FN, PTT2_OUT, 0, PTT2_IN,
  1542. PTT1_FN, PTT1_OUT, 0, PTT1_IN,
  1543. PTT0_FN, PTT0_OUT, 0, PTT0_IN }
  1544. },
  1545. { PINMUX_CFG_REG("PUCR", 0xa4050142, 16, 2) {
  1546. 0, 0, 0, 0,
  1547. 0, 0, 0, 0,
  1548. PTU5_FN, PTU5_OUT, 0, PTU5_IN,
  1549. PTU4_FN, PTU4_OUT, 0, PTU4_IN,
  1550. PTU3_FN, PTU3_OUT, 0, PTU3_IN,
  1551. PTU2_FN, PTU2_OUT, 0, PTU2_IN,
  1552. PTU1_FN, PTU1_OUT, 0, PTU1_IN,
  1553. PTU0_FN, PTU0_OUT, 0, PTU0_IN }
  1554. },
  1555. { PINMUX_CFG_REG("PVCR", 0xa4050144, 16, 2) {
  1556. PTV7_FN, PTV7_OUT, 0, PTV7_IN,
  1557. PTV6_FN, PTV6_OUT, 0, PTV6_IN,
  1558. PTV5_FN, PTV5_OUT, 0, PTV5_IN,
  1559. PTV4_FN, PTV4_OUT, 0, PTV4_IN,
  1560. PTV3_FN, PTV3_OUT, 0, PTV3_IN,
  1561. PTV2_FN, PTV2_OUT, 0, PTV2_IN,
  1562. PTV1_FN, PTV1_OUT, 0, PTV1_IN,
  1563. PTV0_FN, PTV0_OUT, 0, PTV0_IN }
  1564. },
  1565. { PINMUX_CFG_REG("PWCR", 0xa4050146, 16, 2) {
  1566. PTW7_FN, PTW7_OUT, 0, PTW7_IN,
  1567. PTW6_FN, PTW6_OUT, 0, PTW6_IN,
  1568. PTW5_FN, PTW5_OUT, 0, PTW5_IN,
  1569. PTW4_FN, PTW4_OUT, 0, PTW4_IN,
  1570. PTW3_FN, PTW3_OUT, 0, PTW3_IN,
  1571. PTW2_FN, PTW2_OUT, 0, PTW2_IN,
  1572. PTW1_FN, PTW1_OUT, 0, PTW1_IN,
  1573. PTW0_FN, PTW0_OUT, 0, PTW0_IN }
  1574. },
  1575. { PINMUX_CFG_REG("PXCR", 0xa4050148, 16, 2) {
  1576. PTX7_FN, PTX7_OUT, 0, PTX7_IN,
  1577. PTX6_FN, PTX6_OUT, 0, PTX6_IN,
  1578. PTX5_FN, PTX5_OUT, 0, PTX5_IN,
  1579. PTX4_FN, PTX4_OUT, 0, PTX4_IN,
  1580. PTX3_FN, PTX3_OUT, 0, PTX3_IN,
  1581. PTX2_FN, PTX2_OUT, 0, PTX2_IN,
  1582. PTX1_FN, PTX1_OUT, 0, PTX1_IN,
  1583. PTX0_FN, PTX0_OUT, 0, PTX0_IN }
  1584. },
  1585. { PINMUX_CFG_REG("PYCR", 0xa405014a, 16, 2) {
  1586. PTY7_FN, PTY7_OUT, 0, PTY7_IN,
  1587. PTY6_FN, PTY6_OUT, 0, PTY6_IN,
  1588. PTY5_FN, PTY5_OUT, 0, PTY5_IN,
  1589. PTY4_FN, PTY4_OUT, 0, PTY4_IN,
  1590. PTY3_FN, PTY3_OUT, 0, PTY3_IN,
  1591. PTY2_FN, PTY2_OUT, 0, PTY2_IN,
  1592. PTY1_FN, PTY1_OUT, 0, PTY1_IN,
  1593. PTY0_FN, PTY0_OUT, 0, PTY0_IN }
  1594. },
  1595. { PINMUX_CFG_REG("PZCR", 0xa405014c, 16, 2) {
  1596. PTZ7_FN, PTZ7_OUT, 0, PTZ7_IN,
  1597. PTZ6_FN, PTZ6_OUT, 0, PTZ6_IN,
  1598. PTZ5_FN, PTZ5_OUT, 0, PTZ5_IN,
  1599. PTZ4_FN, PTZ4_OUT, 0, PTZ4_IN,
  1600. PTZ3_FN, PTZ3_OUT, 0, PTZ3_IN,
  1601. PTZ2_FN, PTZ2_OUT, 0, PTZ2_IN,
  1602. PTZ1_FN, PTZ1_OUT, 0, PTZ1_IN,
  1603. PTZ0_FN, PTZ0_OUT, 0, PTZ0_IN }
  1604. },
  1605. { PINMUX_CFG_REG("PSELA", 0xa405014e, 16, 2) {
  1606. PSA15_PSA14_FN1, PSA15_PSA14_FN2, 0, 0,
  1607. PSA13_PSA12_FN1, PSA13_PSA12_FN2, 0, 0,
  1608. PSA11_PSA10_FN1, PSA11_PSA10_FN2, 0, 0,
  1609. 0, 0, 0, 0,
  1610. 0, 0, 0, 0,
  1611. PSA5_PSA4_FN1, PSA5_PSA4_FN2, PSA5_PSA4_FN3, 0,
  1612. PSA3_PSA2_FN1, PSA3_PSA2_FN2, 0, 0,
  1613. 0, 0, 0, 0 }
  1614. },
  1615. { PINMUX_CFG_REG("PSELB", 0xa4050150, 16, 2) {
  1616. PSB15_PSB14_FN1, PSB15_PSB14_FN2, 0, 0,
  1617. PSB13_PSB12_LCDC_RGB, PSB13_PSB12_LCDC_SYS, 0, 0,
  1618. 0, 0, 0, 0,
  1619. PSB9_PSB8_FN1, PSB9_PSB8_FN2, PSB9_PSB8_FN3, 0,
  1620. PSB7_PSB6_FN1, PSB7_PSB6_FN2, 0, 0,
  1621. PSB5_PSB4_FN1, PSB5_PSB4_FN2, 0, 0,
  1622. PSB3_PSB2_FN1, PSB3_PSB2_FN2, 0, 0,
  1623. 0, 0, 0, 0 }
  1624. },
  1625. { PINMUX_CFG_REG("PSELC", 0xa4050152, 16, 2) {
  1626. PSC15_PSC14_FN1, PSC15_PSC14_FN2, 0, 0,
  1627. PSC13_PSC12_FN1, PSC13_PSC12_FN2, 0, 0,
  1628. PSC11_PSC10_FN1, PSC11_PSC10_FN2, PSC11_PSC10_FN3, 0,
  1629. PSC9_PSC8_FN1, PSC9_PSC8_FN2, 0, 0,
  1630. PSC7_PSC6_FN1, PSC7_PSC6_FN2, PSC7_PSC6_FN3, 0,
  1631. 0, 0, 0, 0,
  1632. 0, 0, 0, 0,
  1633. 0, 0, 0, 0 }
  1634. },
  1635. { PINMUX_CFG_REG("PSELD", 0xa4050154, 16, 2) {
  1636. PSD15_PSD14_FN1, PSD15_PSD14_FN2, 0, 0,
  1637. PSD13_PSD12_FN1, PSD13_PSD12_FN2, 0, 0,
  1638. PSD11_PSD10_FN1, PSD11_PSD10_FN2, PSD11_PSD10_FN3, 0,
  1639. PSD9_PSD8_FN1, PSD9_PSD8_FN2, 0, 0,
  1640. PSD7_PSD6_FN1, PSD7_PSD6_FN2, 0, 0,
  1641. PSD5_PSD4_FN1, PSD5_PSD4_FN2, 0, 0,
  1642. PSD3_PSD2_FN1, PSD3_PSD2_FN2, 0, 0,
  1643. PSD1_PSD0_FN1, PSD1_PSD0_FN2, 0, 0 }
  1644. },
  1645. {}
  1646. };
  1647. static const struct pinmux_data_reg pinmux_data_regs[] = {
  1648. { PINMUX_DATA_REG("PADR", 0xa4050120, 8) {
  1649. PTA7_DATA, PTA6_DATA, PTA5_DATA, PTA4_DATA,
  1650. PTA3_DATA, PTA2_DATA, PTA1_DATA, PTA0_DATA }
  1651. },
  1652. { PINMUX_DATA_REG("PBDR", 0xa4050122, 8) {
  1653. PTB7_DATA, PTB6_DATA, PTB5_DATA, PTB4_DATA,
  1654. PTB3_DATA, PTB2_DATA, PTB1_DATA, PTB0_DATA }
  1655. },
  1656. { PINMUX_DATA_REG("PCDR", 0xa4050124, 8) {
  1657. PTC7_DATA, PTC6_DATA, PTC5_DATA, PTC4_DATA,
  1658. PTC3_DATA, PTC2_DATA, PTC1_DATA, PTC0_DATA }
  1659. },
  1660. { PINMUX_DATA_REG("PDDR", 0xa4050126, 8) {
  1661. PTD7_DATA, PTD6_DATA, PTD5_DATA, PTD4_DATA,
  1662. PTD3_DATA, PTD2_DATA, PTD1_DATA, PTD0_DATA }
  1663. },
  1664. { PINMUX_DATA_REG("PEDR", 0xa4050128, 8) {
  1665. 0, 0, PTE5_DATA, PTE4_DATA,
  1666. PTE3_DATA, PTE2_DATA, PTE1_DATA, PTE0_DATA }
  1667. },
  1668. { PINMUX_DATA_REG("PFDR", 0xa405012a, 8) {
  1669. PTF7_DATA, PTF6_DATA, PTF5_DATA, PTF4_DATA,
  1670. PTF3_DATA, PTF2_DATA, PTF1_DATA, PTF0_DATA }
  1671. },
  1672. { PINMUX_DATA_REG("PGDR", 0xa405012c, 8) {
  1673. 0, 0, PTG5_DATA, PTG4_DATA,
  1674. PTG3_DATA, PTG2_DATA, PTG1_DATA, PTG0_DATA }
  1675. },
  1676. { PINMUX_DATA_REG("PHDR", 0xa405012e, 8) {
  1677. PTH7_DATA, PTH6_DATA, PTH5_DATA, PTH4_DATA,
  1678. PTH3_DATA, PTH2_DATA, PTH1_DATA, PTH0_DATA }
  1679. },
  1680. { PINMUX_DATA_REG("PJDR", 0xa4050130, 8) {
  1681. PTJ7_DATA, 0, PTJ5_DATA, 0,
  1682. PTJ3_DATA, PTJ2_DATA, PTJ1_DATA, PTJ0_DATA }
  1683. },
  1684. { PINMUX_DATA_REG("PKDR", 0xa4050132, 8) {
  1685. PTK7_DATA, PTK6_DATA, PTK5_DATA, PTK4_DATA,
  1686. PTK3_DATA, PTK2_DATA, PTK1_DATA, PTK0_DATA }
  1687. },
  1688. { PINMUX_DATA_REG("PLDR", 0xa4050134, 8) {
  1689. PTL7_DATA, PTL6_DATA, PTL5_DATA, PTL4_DATA,
  1690. PTL3_DATA, PTL2_DATA, PTL1_DATA, PTL0_DATA }
  1691. },
  1692. { PINMUX_DATA_REG("PMDR", 0xa4050136, 8) {
  1693. PTM7_DATA, PTM6_DATA, PTM5_DATA, PTM4_DATA,
  1694. PTM3_DATA, PTM2_DATA, PTM1_DATA, PTM0_DATA }
  1695. },
  1696. { PINMUX_DATA_REG("PNDR", 0xa4050138, 8) {
  1697. PTN7_DATA, PTN6_DATA, PTN5_DATA, PTN4_DATA,
  1698. PTN3_DATA, PTN2_DATA, PTN1_DATA, PTN0_DATA }
  1699. },
  1700. { PINMUX_DATA_REG("PQDR", 0xa405013a, 8) {
  1701. 0, 0, 0, 0,
  1702. PTQ3_DATA, PTQ2_DATA, PTQ1_DATA, PTQ0_DATA }
  1703. },
  1704. { PINMUX_DATA_REG("PRDR", 0xa405013c, 8) {
  1705. PTR7_DATA, PTR6_DATA, PTR5_DATA, PTR4_DATA,
  1706. PTR3_DATA, PTR2_DATA, PTR1_DATA, PTR0_DATA }
  1707. },
  1708. { PINMUX_DATA_REG("PSDR", 0xa405013e, 8) {
  1709. PTS7_DATA, PTS6_DATA, PTS5_DATA, PTS4_DATA,
  1710. PTS3_DATA, PTS2_DATA, PTS1_DATA, PTS0_DATA }
  1711. },
  1712. { PINMUX_DATA_REG("PTDR", 0xa4050160, 8) {
  1713. 0, 0, PTT5_DATA, PTT4_DATA,
  1714. PTT3_DATA, PTT2_DATA, PTT1_DATA, PTT0_DATA }
  1715. },
  1716. { PINMUX_DATA_REG("PUDR", 0xa4050162, 8) {
  1717. 0, 0, PTU5_DATA, PTU4_DATA,
  1718. PTU3_DATA, PTU2_DATA, PTU1_DATA, PTU0_DATA }
  1719. },
  1720. { PINMUX_DATA_REG("PVDR", 0xa4050164, 8) {
  1721. PTV7_DATA, PTV6_DATA, PTV5_DATA, PTV4_DATA,
  1722. PTV3_DATA, PTV2_DATA, PTV1_DATA, PTV0_DATA }
  1723. },
  1724. { PINMUX_DATA_REG("PWDR", 0xa4050166, 8) {
  1725. PTW7_DATA, PTW6_DATA, PTW5_DATA, PTW4_DATA,
  1726. PTW3_DATA, PTW2_DATA, PTW1_DATA, PTW0_DATA }
  1727. },
  1728. { PINMUX_DATA_REG("PXDR", 0xa4050168, 8) {
  1729. PTX7_DATA, PTX6_DATA, PTX5_DATA, PTX4_DATA,
  1730. PTX3_DATA, PTX2_DATA, PTX1_DATA, PTX0_DATA }
  1731. },
  1732. { PINMUX_DATA_REG("PYDR", 0xa405016a, 8) {
  1733. PTY7_DATA, PTY6_DATA, PTY5_DATA, PTY4_DATA,
  1734. PTY3_DATA, PTY2_DATA, PTY1_DATA, PTY0_DATA }
  1735. },
  1736. { PINMUX_DATA_REG("PZDR", 0xa405016c, 8) {
  1737. PTZ7_DATA, PTZ6_DATA, PTZ5_DATA, PTZ4_DATA,
  1738. PTZ3_DATA, PTZ2_DATA, PTZ1_DATA, PTZ0_DATA }
  1739. },
  1740. { },
  1741. };
  1742. const struct sh_pfc_soc_info sh7723_pinmux_info = {
  1743. .name = "sh7723_pfc",
  1744. .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END },
  1745. .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END },
  1746. .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
  1747. .pins = pinmux_pins,
  1748. .nr_pins = ARRAY_SIZE(pinmux_pins),
  1749. .func_gpios = pinmux_func_gpios,
  1750. .nr_func_gpios = ARRAY_SIZE(pinmux_func_gpios),
  1751. .cfg_regs = pinmux_config_regs,
  1752. .data_regs = pinmux_data_regs,
  1753. .pinmux_data = pinmux_data,
  1754. .pinmux_data_size = ARRAY_SIZE(pinmux_data),
  1755. };