pfc-sh7367.c 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728
  1. /*
  2. * sh7367 processor support - PFC hardware block
  3. *
  4. * Copyright (C) 2010 Magnus Damm
  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. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  18. */
  19. #include <linux/init.h>
  20. #include <linux/kernel.h>
  21. #include <linux/gpio.h>
  22. #include <mach/sh7367.h>
  23. #define CPU_ALL_PORT(fn, pfx, sfx) \
  24. PORT_10(fn, pfx, sfx), PORT_90(fn, pfx, sfx), \
  25. PORT_10(fn, pfx##10, sfx), PORT_90(fn, pfx##1, sfx), \
  26. PORT_10(fn, pfx##20, sfx), PORT_10(fn, pfx##21, sfx), \
  27. PORT_10(fn, pfx##22, sfx), PORT_10(fn, pfx##23, sfx), \
  28. PORT_10(fn, pfx##24, sfx), PORT_10(fn, pfx##25, sfx), \
  29. PORT_10(fn, pfx##26, sfx), PORT_1(fn, pfx##270, sfx), \
  30. PORT_1(fn, pfx##271, sfx), PORT_1(fn, pfx##272, sfx)
  31. enum {
  32. PINMUX_RESERVED = 0,
  33. PINMUX_DATA_BEGIN,
  34. PORT_ALL(DATA), /* PORT0_DATA -> PORT272_DATA */
  35. PINMUX_DATA_END,
  36. PINMUX_INPUT_BEGIN,
  37. PORT_ALL(IN), /* PORT0_IN -> PORT272_IN */
  38. PINMUX_INPUT_END,
  39. PINMUX_INPUT_PULLUP_BEGIN,
  40. PORT_ALL(IN_PU), /* PORT0_IN_PU -> PORT272_IN_PU */
  41. PINMUX_INPUT_PULLUP_END,
  42. PINMUX_INPUT_PULLDOWN_BEGIN,
  43. PORT_ALL(IN_PD), /* PORT0_IN_PD -> PORT272_IN_PD */
  44. PINMUX_INPUT_PULLDOWN_END,
  45. PINMUX_OUTPUT_BEGIN,
  46. PORT_ALL(OUT), /* PORT0_OUT -> PORT272_OUT */
  47. PINMUX_OUTPUT_END,
  48. PINMUX_FUNCTION_BEGIN,
  49. PORT_ALL(FN_IN), /* PORT0_FN_IN -> PORT272_FN_IN */
  50. PORT_ALL(FN_OUT), /* PORT0_FN_OUT -> PORT272_FN_OUT */
  51. PORT_ALL(FN0), /* PORT0_FN0 -> PORT272_FN0 */
  52. PORT_ALL(FN1), /* PORT0_FN1 -> PORT272_FN1 */
  53. PORT_ALL(FN2), /* PORT0_FN2 -> PORT272_FN2 */
  54. PORT_ALL(FN3), /* PORT0_FN3 -> PORT272_FN3 */
  55. PORT_ALL(FN4), /* PORT0_FN4 -> PORT272_FN4 */
  56. PORT_ALL(FN5), /* PORT0_FN5 -> PORT272_FN5 */
  57. PORT_ALL(FN6), /* PORT0_FN6 -> PORT272_FN6 */
  58. PORT_ALL(FN7), /* PORT0_FN7 -> PORT272_FN7 */
  59. MSELBCR_MSEL2_1, MSELBCR_MSEL2_0,
  60. PINMUX_FUNCTION_END,
  61. PINMUX_MARK_BEGIN,
  62. /* Special Pull-up / Pull-down Functions */
  63. PORT48_KEYIN0_PU_MARK, PORT49_KEYIN1_PU_MARK,
  64. PORT50_KEYIN2_PU_MARK, PORT55_KEYIN3_PU_MARK,
  65. PORT56_KEYIN4_PU_MARK, PORT57_KEYIN5_PU_MARK,
  66. PORT58_KEYIN6_PU_MARK,
  67. /* 49-1 */
  68. VBUS0_MARK, CPORT0_MARK, CPORT1_MARK, CPORT2_MARK,
  69. CPORT3_MARK, CPORT4_MARK, CPORT5_MARK, CPORT6_MARK,
  70. CPORT7_MARK, CPORT8_MARK, CPORT9_MARK, CPORT10_MARK,
  71. CPORT11_MARK, SIN2_MARK, CPORT12_MARK, XCTS2_MARK,
  72. CPORT13_MARK, RFSPO4_MARK, CPORT14_MARK, RFSPO5_MARK,
  73. CPORT15_MARK, CPORT16_MARK, CPORT17_MARK, SOUT2_MARK,
  74. CPORT18_MARK, XRTS2_MARK, CPORT19_MARK, CPORT20_MARK,
  75. RFSPO6_MARK, CPORT21_MARK, STATUS0_MARK, CPORT22_MARK,
  76. STATUS1_MARK, CPORT23_MARK, STATUS2_MARK, RFSPO7_MARK,
  77. MPORT0_MARK, MPORT1_MARK, B_SYNLD1_MARK, B_SYNLD2_MARK,
  78. XMAINPS_MARK, XDIVPS_MARK, XIDRST_MARK, IDCLK_MARK,
  79. IDIO_MARK, SOUT1_MARK, SCIFA4_TXD_MARK,
  80. M02_BERDAT_MARK, SIN1_MARK, SCIFA4_RXD_MARK, XWUP_MARK,
  81. XRTS1_MARK, SCIFA4_RTS_MARK, M03_BERCLK_MARK,
  82. XCTS1_MARK, SCIFA4_CTS_MARK,
  83. /* 49-2 */
  84. HSU_IQ_AGC6_MARK, MFG2_IN2_MARK, MSIOF2_MCK0_MARK,
  85. HSU_IQ_AGC5_MARK, MFG2_IN1_MARK, MSIOF2_MCK1_MARK,
  86. HSU_IQ_AGC4_MARK, MSIOF2_RSYNC_MARK,
  87. HSU_IQ_AGC3_MARK, MFG2_OUT1_MARK, MSIOF2_RSCK_MARK,
  88. HSU_IQ_AGC2_MARK, PORT42_KEYOUT0_MARK,
  89. HSU_IQ_AGC1_MARK, PORT43_KEYOUT1_MARK,
  90. HSU_IQ_AGC0_MARK, PORT44_KEYOUT2_MARK,
  91. HSU_IQ_AGC_ST_MARK, PORT45_KEYOUT3_MARK,
  92. HSU_IQ_PDO_MARK, PORT46_KEYOUT4_MARK,
  93. HSU_IQ_PYO_MARK, PORT47_KEYOUT5_MARK,
  94. HSU_EN_TXMUX_G3MO_MARK, PORT48_KEYIN0_MARK,
  95. HSU_I_TXMUX_G3MO_MARK, PORT49_KEYIN1_MARK,
  96. HSU_Q_TXMUX_G3MO_MARK, PORT50_KEYIN2_MARK,
  97. HSU_SYO_MARK, PORT51_MSIOF2_TSYNC_MARK,
  98. HSU_SDO_MARK, PORT52_MSIOF2_TSCK_MARK,
  99. HSU_TGTTI_G3MO_MARK, PORT53_MSIOF2_TXD_MARK,
  100. B_TIME_STAMP_MARK, PORT54_MSIOF2_RXD_MARK,
  101. HSU_SDI_MARK, PORT55_KEYIN3_MARK,
  102. HSU_SCO_MARK, PORT56_KEYIN4_MARK,
  103. HSU_DREQ_MARK, PORT57_KEYIN5_MARK,
  104. HSU_DACK_MARK, PORT58_KEYIN6_MARK,
  105. HSU_CLK61M_MARK, PORT59_MSIOF2_SS1_MARK,
  106. HSU_XRST_MARK, PORT60_MSIOF2_SS2_MARK,
  107. PCMCLKO_MARK, SYNC8KO_MARK, DNPCM_A_MARK, UPPCM_A_MARK,
  108. XTALB1L_MARK,
  109. GPS_AGC1_MARK, SCIFA0_RTS_MARK,
  110. GPS_AGC2_MARK, SCIFA0_SCK_MARK,
  111. GPS_AGC3_MARK, SCIFA0_TXD_MARK,
  112. GPS_AGC4_MARK, SCIFA0_RXD_MARK,
  113. GPS_PWRD_MARK, SCIFA0_CTS_MARK,
  114. GPS_IM_MARK, GPS_IS_MARK, GPS_QM_MARK, GPS_QS_MARK,
  115. SIUBOMC_MARK, TPU2TO0_MARK,
  116. SIUCKB_MARK, TPU2TO1_MARK,
  117. SIUBOLR_MARK, BBIF2_TSYNC_MARK, TPU2TO2_MARK,
  118. SIUBOBT_MARK, BBIF2_TSCK_MARK, TPU2TO3_MARK,
  119. SIUBOSLD_MARK, BBIF2_TXD_MARK, TPU3TO0_MARK,
  120. SIUBILR_MARK, TPU3TO1_MARK,
  121. SIUBIBT_MARK, TPU3TO2_MARK,
  122. SIUBISLD_MARK, TPU3TO3_MARK,
  123. NMI_MARK, TPU4TO0_MARK,
  124. DNPCM_M_MARK, TPU4TO1_MARK, TPU4TO2_MARK, TPU4TO3_MARK,
  125. IRQ_TMPB_MARK,
  126. PWEN_MARK, MFG1_OUT1_MARK,
  127. OVCN_MARK, MFG1_IN1_MARK,
  128. OVCN2_MARK, MFG1_IN2_MARK,
  129. /* 49-3 */
  130. RFSPO1_MARK, RFSPO2_MARK, RFSPO3_MARK, PORT93_VIO_CKO2_MARK,
  131. USBTERM_MARK, EXTLP_MARK, IDIN_MARK,
  132. SCIFA5_CTS_MARK, MFG0_IN1_MARK,
  133. SCIFA5_RTS_MARK, MFG0_IN2_MARK,
  134. SCIFA5_RXD_MARK,
  135. SCIFA5_TXD_MARK,
  136. SCIFA5_SCK_MARK, MFG0_OUT1_MARK,
  137. A0_EA0_MARK, BS_MARK,
  138. A14_EA14_MARK, PORT102_KEYOUT0_MARK,
  139. A15_EA15_MARK, PORT103_KEYOUT1_MARK, DV_CLKOL_MARK,
  140. A16_EA16_MARK, PORT104_KEYOUT2_MARK,
  141. DV_VSYNCL_MARK, MSIOF0_SS1_MARK,
  142. A17_EA17_MARK, PORT105_KEYOUT3_MARK,
  143. DV_HSYNCL_MARK, MSIOF0_TSYNC_MARK,
  144. A18_EA18_MARK, PORT106_KEYOUT4_MARK,
  145. DV_DL0_MARK, MSIOF0_TSCK_MARK,
  146. A19_EA19_MARK, PORT107_KEYOUT5_MARK,
  147. DV_DL1_MARK, MSIOF0_TXD_MARK,
  148. A20_EA20_MARK, PORT108_KEYIN0_MARK,
  149. DV_DL2_MARK, MSIOF0_RSCK_MARK,
  150. A21_EA21_MARK, PORT109_KEYIN1_MARK,
  151. DV_DL3_MARK, MSIOF0_RSYNC_MARK,
  152. A22_EA22_MARK, PORT110_KEYIN2_MARK,
  153. DV_DL4_MARK, MSIOF0_MCK0_MARK,
  154. A23_EA23_MARK, PORT111_KEYIN3_MARK,
  155. DV_DL5_MARK, MSIOF0_MCK1_MARK,
  156. A24_EA24_MARK, PORT112_KEYIN4_MARK,
  157. DV_DL6_MARK, MSIOF0_RXD_MARK,
  158. A25_EA25_MARK, PORT113_KEYIN5_MARK,
  159. DV_DL7_MARK, MSIOF0_SS2_MARK,
  160. A26_MARK, PORT113_KEYIN6_MARK, DV_CLKIL_MARK,
  161. D0_ED0_NAF0_MARK, D1_ED1_NAF1_MARK, D2_ED2_NAF2_MARK,
  162. D3_ED3_NAF3_MARK, D4_ED4_NAF4_MARK, D5_ED5_NAF5_MARK,
  163. D6_ED6_NAF6_MARK, D7_ED7_NAF7_MARK, D8_ED8_NAF8_MARK,
  164. D9_ED9_NAF9_MARK, D10_ED10_NAF10_MARK, D11_ED11_NAF11_MARK,
  165. D12_ED12_NAF12_MARK, D13_ED13_NAF13_MARK,
  166. D14_ED14_NAF14_MARK, D15_ED15_NAF15_MARK,
  167. CS4_MARK, CS5A_MARK, CS5B_MARK, FCE1_MARK,
  168. CS6B_MARK, XCS2_MARK, FCE0_MARK, CS6A_MARK,
  169. DACK0_MARK, WAIT_MARK, DREQ0_MARK, RD_XRD_MARK,
  170. A27_MARK, RDWR_XWE_MARK, WE0_XWR0_FWE_MARK,
  171. WE1_XWR1_MARK, FRB_MARK, CKO_MARK,
  172. NBRSTOUT_MARK, NBRST_MARK,
  173. /* 49-4 */
  174. RFSPO0_MARK, PORT146_VIO_CKO2_MARK, TSTMD_MARK,
  175. VIO_VD_MARK, VIO_HD_MARK,
  176. VIO_D0_MARK, VIO_D1_MARK, VIO_D2_MARK,
  177. VIO_D3_MARK, VIO_D4_MARK, VIO_D5_MARK,
  178. VIO_D6_MARK, VIO_D7_MARK, VIO_D8_MARK,
  179. VIO_D9_MARK, VIO_D10_MARK, VIO_D11_MARK,
  180. VIO_D12_MARK, VIO_D13_MARK, VIO_D14_MARK,
  181. VIO_D15_MARK, VIO_CLK_MARK, VIO_FIELD_MARK,
  182. VIO_CKO_MARK,
  183. MFG3_IN1_MARK, MFG3_IN2_MARK,
  184. M9_SLCD_A01_MARK, MFG3_OUT1_MARK, TPU0TO0_MARK,
  185. M10_SLCD_CK1_MARK, MFG4_IN1_MARK, TPU0TO1_MARK,
  186. M11_SLCD_SO1_MARK, MFG4_IN2_MARK, TPU0TO2_MARK,
  187. M12_SLCD_CE1_MARK, MFG4_OUT1_MARK, TPU0TO3_MARK,
  188. LCDD0_MARK, PORT175_KEYOUT0_MARK, DV_D0_MARK,
  189. SIUCKA_MARK, MFG0_OUT2_MARK,
  190. LCDD1_MARK, PORT176_KEYOUT1_MARK, DV_D1_MARK,
  191. SIUAOLR_MARK, BBIF2_TSYNC1_MARK,
  192. LCDD2_MARK, PORT177_KEYOUT2_MARK, DV_D2_MARK,
  193. SIUAOBT_MARK, BBIF2_TSCK1_MARK,
  194. LCDD3_MARK, PORT178_KEYOUT3_MARK, DV_D3_MARK,
  195. SIUAOSLD_MARK, BBIF2_TXD1_MARK,
  196. LCDD4_MARK, PORT179_KEYOUT4_MARK, DV_D4_MARK,
  197. SIUAISPD_MARK, MFG1_OUT2_MARK,
  198. LCDD5_MARK, PORT180_KEYOUT5_MARK, DV_D5_MARK,
  199. SIUAILR_MARK, MFG2_OUT2_MARK,
  200. LCDD6_MARK, DV_D6_MARK,
  201. SIUAIBT_MARK, MFG3_OUT2_MARK, XWR2_MARK,
  202. LCDD7_MARK, DV_D7_MARK,
  203. SIUAISLD_MARK, MFG4_OUT2_MARK, XWR3_MARK,
  204. LCDD8_MARK, DV_D8_MARK, D16_MARK, ED16_MARK,
  205. LCDD9_MARK, DV_D9_MARK, D17_MARK, ED17_MARK,
  206. LCDD10_MARK, DV_D10_MARK, D18_MARK, ED18_MARK,
  207. LCDD11_MARK, DV_D11_MARK, D19_MARK, ED19_MARK,
  208. LCDD12_MARK, DV_D12_MARK, D20_MARK, ED20_MARK,
  209. LCDD13_MARK, DV_D13_MARK, D21_MARK, ED21_MARK,
  210. LCDD14_MARK, DV_D14_MARK, D22_MARK, ED22_MARK,
  211. LCDD15_MARK, DV_D15_MARK, D23_MARK, ED23_MARK,
  212. LCDD16_MARK, DV_HSYNC_MARK, D24_MARK, ED24_MARK,
  213. LCDD17_MARK, DV_VSYNC_MARK, D25_MARK, ED25_MARK,
  214. LCDD18_MARK, DREQ2_MARK, MSIOF0L_TSCK_MARK,
  215. D26_MARK, ED26_MARK,
  216. LCDD19_MARK, MSIOF0L_TSYNC_MARK,
  217. D27_MARK, ED27_MARK,
  218. LCDD20_MARK, TS_SPSYNC1_MARK, MSIOF0L_MCK0_MARK,
  219. D28_MARK, ED28_MARK,
  220. LCDD21_MARK, TS_SDAT1_MARK, MSIOF0L_MCK1_MARK,
  221. D29_MARK, ED29_MARK,
  222. LCDD22_MARK, TS_SDEN1_MARK, MSIOF0L_SS1_MARK,
  223. D30_MARK, ED30_MARK,
  224. LCDD23_MARK, TS_SCK1_MARK, MSIOF0L_SS2_MARK,
  225. D31_MARK, ED31_MARK,
  226. LCDDCK_MARK, LCDWR_MARK, DV_CKO_MARK, SIUAOSPD_MARK,
  227. LCDRD_MARK, DACK2_MARK, MSIOF0L_RSYNC_MARK,
  228. /* 49-5 */
  229. LCDHSYN_MARK, LCDCS_MARK, LCDCS2_MARK, DACK3_MARK,
  230. LCDDISP_MARK, LCDRS_MARK, DREQ3_MARK, MSIOF0L_RSCK_MARK,
  231. LCDCSYN_MARK, LCDCSYN2_MARK, DV_CKI_MARK,
  232. LCDLCLK_MARK, DREQ1_MARK, MSIOF0L_RXD_MARK,
  233. LCDDON_MARK, LCDDON2_MARK, DACK1_MARK, MSIOF0L_TXD_MARK,
  234. VIO_DR0_MARK, VIO_DR1_MARK, VIO_DR2_MARK, VIO_DR3_MARK,
  235. VIO_DR4_MARK, VIO_DR5_MARK, VIO_DR6_MARK, VIO_DR7_MARK,
  236. VIO_VDR_MARK, VIO_HDR_MARK,
  237. VIO_CLKR_MARK, VIO_CKOR_MARK,
  238. SCIFA1_TXD_MARK, GPS_PGFA0_MARK,
  239. SCIFA1_SCK_MARK, GPS_PGFA1_MARK,
  240. SCIFA1_RTS_MARK, GPS_EPPSINMON_MARK,
  241. SCIFA1_RXD_MARK, SCIFA1_CTS_MARK,
  242. MSIOF1_TXD_MARK, SCIFA1_TXD2_MARK, GPS_TXD_MARK,
  243. MSIOF1_TSYNC_MARK, SCIFA1_CTS2_MARK, I2C_SDA2_MARK,
  244. MSIOF1_TSCK_MARK, SCIFA1_SCK2_MARK,
  245. MSIOF1_RXD_MARK, SCIFA1_RXD2_MARK, GPS_RXD_MARK,
  246. MSIOF1_RSCK_MARK, SCIFA1_RTS2_MARK,
  247. MSIOF1_RSYNC_MARK, I2C_SCL2_MARK,
  248. MSIOF1_MCK0_MARK, MSIOF1_MCK1_MARK,
  249. MSIOF1_SS1_MARK, EDBGREQ3_MARK,
  250. MSIOF1_SS2_MARK,
  251. PORT236_IROUT_MARK, IRDA_OUT_MARK,
  252. IRDA_IN_MARK, IRDA_FIRSEL_MARK,
  253. TPU1TO0_MARK, TS_SPSYNC3_MARK,
  254. TPU1TO1_MARK, TS_SDAT3_MARK,
  255. TPU1TO2_MARK, TS_SDEN3_MARK, PORT241_MSIOF2_SS1_MARK,
  256. TPU1TO3_MARK, PORT242_MSIOF2_TSCK_MARK,
  257. M13_BSW_MARK, PORT243_MSIOF2_TSYNC_MARK,
  258. M14_GSW_MARK, PORT244_MSIOF2_TXD_MARK,
  259. PORT245_IROUT_MARK, M15_RSW_MARK,
  260. SOUT3_MARK, SCIFA2_TXD1_MARK,
  261. SIN3_MARK, SCIFA2_RXD1_MARK,
  262. XRTS3_MARK, SCIFA2_RTS1_MARK, PORT248_MSIOF2_SS2_MARK,
  263. XCTS3_MARK, SCIFA2_CTS1_MARK, PORT249_MSIOF2_RXD_MARK,
  264. DINT_MARK, SCIFA2_SCK1_MARK, TS_SCK3_MARK,
  265. SDHICLK0_MARK, TCK2_MARK,
  266. SDHICD0_MARK,
  267. SDHID0_0_MARK, TMS2_MARK,
  268. SDHID0_1_MARK, TDO2_MARK,
  269. SDHID0_2_MARK, TDI2_MARK,
  270. SDHID0_3_MARK, RTCK2_MARK,
  271. /* 49-6 */
  272. SDHICMD0_MARK, TRST2_MARK,
  273. SDHIWP0_MARK, EDBGREQ2_MARK,
  274. SDHICLK1_MARK, TCK3_MARK,
  275. SDHID1_0_MARK, M11_SLCD_SO2_MARK,
  276. TS_SPSYNC2_MARK, TMS3_MARK,
  277. SDHID1_1_MARK, M9_SLCD_AO2_MARK,
  278. TS_SDAT2_MARK, TDO3_MARK,
  279. SDHID1_2_MARK, M10_SLCD_CK2_MARK,
  280. TS_SDEN2_MARK, TDI3_MARK,
  281. SDHID1_3_MARK, M12_SLCD_CE2_MARK,
  282. TS_SCK2_MARK, RTCK3_MARK,
  283. SDHICMD1_MARK, TRST3_MARK,
  284. SDHICLK2_MARK, SCIFB_SCK_MARK,
  285. SDHID2_0_MARK, SCIFB_TXD_MARK,
  286. SDHID2_1_MARK, SCIFB_CTS_MARK,
  287. SDHID2_2_MARK, SCIFB_RXD_MARK,
  288. SDHID2_3_MARK, SCIFB_RTS_MARK,
  289. SDHICMD2_MARK,
  290. RESETOUTS_MARK,
  291. DIVLOCK_MARK,
  292. PINMUX_MARK_END,
  293. };
  294. static pinmux_enum_t pinmux_data[] = {
  295. /* specify valid pin states for each pin in GPIO mode */
  296. /* 49-1 (GPIO) */
  297. PORT_DATA_I_PD(0),
  298. PORT_DATA_I_PU(1), PORT_DATA_I_PU(2), PORT_DATA_I_PU(3),
  299. PORT_DATA_I_PU(4), PORT_DATA_I_PU(5), PORT_DATA_I_PU(6),
  300. PORT_DATA_I_PU(7), PORT_DATA_I_PU(8), PORT_DATA_I_PU(9),
  301. PORT_DATA_I_PU(10), PORT_DATA_I_PU(11), PORT_DATA_I_PU(12),
  302. PORT_DATA_I_PU(13),
  303. PORT_DATA_IO_PU_PD(14), PORT_DATA_IO_PU_PD(15),
  304. PORT_DATA_O(16), PORT_DATA_O(17), PORT_DATA_O(18), PORT_DATA_O(19),
  305. PORT_DATA_O(20), PORT_DATA_O(21), PORT_DATA_O(22), PORT_DATA_O(23),
  306. PORT_DATA_O(24), PORT_DATA_O(25), PORT_DATA_O(26),
  307. PORT_DATA_I_PD(27), PORT_DATA_I_PD(28),
  308. PORT_DATA_O(29), PORT_DATA_O(30), PORT_DATA_O(31), PORT_DATA_O(32),
  309. PORT_DATA_IO_PU(33),
  310. PORT_DATA_O(34),
  311. PORT_DATA_I_PU(35),
  312. PORT_DATA_O(36),
  313. PORT_DATA_I_PU_PD(37),
  314. /* 49-2 (GPIO) */
  315. PORT_DATA_IO_PU_PD(38),
  316. PORT_DATA_IO_PD(39), PORT_DATA_IO_PD(40), PORT_DATA_IO_PD(41),
  317. PORT_DATA_O(42), PORT_DATA_O(43), PORT_DATA_O(44), PORT_DATA_O(45),
  318. PORT_DATA_O(46), PORT_DATA_O(47),
  319. PORT_DATA_I_PU_PD(48), PORT_DATA_I_PU_PD(49), PORT_DATA_I_PU_PD(50),
  320. PORT_DATA_IO_PD(51), PORT_DATA_IO_PD(52),
  321. PORT_DATA_O(53),
  322. PORT_DATA_IO_PD(54),
  323. PORT_DATA_I_PU_PD(55),
  324. PORT_DATA_IO_PU_PD(56),
  325. PORT_DATA_I_PU_PD(57),
  326. PORT_DATA_IO_PU_PD(58),
  327. PORT_DATA_O(59), PORT_DATA_O(60), PORT_DATA_O(61), PORT_DATA_O(62),
  328. PORT_DATA_O(63),
  329. PORT_DATA_I_PU(64),
  330. PORT_DATA_O(65), PORT_DATA_O(66), PORT_DATA_O(67), PORT_DATA_O(68),
  331. PORT_DATA_IO_PD(69), PORT_DATA_IO_PD(70),
  332. PORT_DATA_I_PD(71), PORT_DATA_I_PD(72), PORT_DATA_I_PD(73),
  333. PORT_DATA_I_PD(74),
  334. PORT_DATA_IO_PU_PD(75), PORT_DATA_IO_PU_PD(76),
  335. PORT_DATA_IO_PD(77), PORT_DATA_IO_PD(78),
  336. PORT_DATA_O(79),
  337. PORT_DATA_IO_PD(80), PORT_DATA_IO_PD(81), PORT_DATA_IO_PD(82),
  338. PORT_DATA_IO_PU_PD(83), PORT_DATA_IO_PU_PD(84),
  339. PORT_DATA_IO_PU_PD(85), PORT_DATA_IO_PU_PD(86),
  340. PORT_DATA_I_PD(87),
  341. PORT_DATA_IO_PU_PD(88),
  342. PORT_DATA_I_PU_PD(89), PORT_DATA_I_PU_PD(90),
  343. /* 49-3 (GPIO) */
  344. PORT_DATA_O(91), PORT_DATA_O(92), PORT_DATA_O(93), PORT_DATA_O(94),
  345. PORT_DATA_I_PU_PD(95),
  346. PORT_DATA_IO_PU_PD(96), PORT_DATA_IO_PU_PD(97), PORT_DATA_IO_PU_PD(98),
  347. PORT_DATA_IO_PU_PD(99), PORT_DATA_IO_PU_PD(100),
  348. PORT_DATA_IO(101), PORT_DATA_IO(102), PORT_DATA_IO(103),
  349. PORT_DATA_IO_PD(104), PORT_DATA_IO_PD(105), PORT_DATA_IO_PD(106),
  350. PORT_DATA_IO_PD(107),
  351. PORT_DATA_IO_PU_PD(108), PORT_DATA_IO_PU_PD(109),
  352. PORT_DATA_IO_PU_PD(110), PORT_DATA_IO_PU_PD(111),
  353. PORT_DATA_IO_PU_PD(112), PORT_DATA_IO_PU_PD(113),
  354. PORT_DATA_IO_PU_PD(114),
  355. PORT_DATA_IO_PU(115), PORT_DATA_IO_PU(116), PORT_DATA_IO_PU(117),
  356. PORT_DATA_IO_PU(118), PORT_DATA_IO_PU(119), PORT_DATA_IO_PU(120),
  357. PORT_DATA_IO_PU(121), PORT_DATA_IO_PU(122), PORT_DATA_IO_PU(123),
  358. PORT_DATA_IO_PU(124), PORT_DATA_IO_PU(125), PORT_DATA_IO_PU(126),
  359. PORT_DATA_IO_PU(127), PORT_DATA_IO_PU(128), PORT_DATA_IO_PU(129),
  360. PORT_DATA_IO_PU(130),
  361. PORT_DATA_O(131), PORT_DATA_O(132), PORT_DATA_O(133),
  362. PORT_DATA_IO_PU(134),
  363. PORT_DATA_O(135), PORT_DATA_O(136),
  364. PORT_DATA_I_PU_PD(137),
  365. PORT_DATA_IO(138),
  366. PORT_DATA_IO_PU_PD(139),
  367. PORT_DATA_IO(140), PORT_DATA_IO(141),
  368. PORT_DATA_I_PU(142),
  369. PORT_DATA_O(143), PORT_DATA_O(144),
  370. PORT_DATA_I_PU(145),
  371. /* 49-4 (GPIO) */
  372. PORT_DATA_O(146),
  373. PORT_DATA_I_PU_PD(147),
  374. PORT_DATA_I_PD(148), PORT_DATA_I_PD(149),
  375. PORT_DATA_IO_PD(150), PORT_DATA_IO_PD(151), PORT_DATA_IO_PD(152),
  376. PORT_DATA_IO_PD(153), PORT_DATA_IO_PD(154), PORT_DATA_IO_PD(155),
  377. PORT_DATA_IO_PD(156), PORT_DATA_IO_PD(157), PORT_DATA_IO_PD(158),
  378. PORT_DATA_IO_PD(159), PORT_DATA_IO_PD(160), PORT_DATA_IO_PD(161),
  379. PORT_DATA_IO_PD(162), PORT_DATA_IO_PD(163), PORT_DATA_IO_PD(164),
  380. PORT_DATA_IO_PD(165), PORT_DATA_IO_PD(166),
  381. PORT_DATA_IO_PU_PD(167),
  382. PORT_DATA_O(168),
  383. PORT_DATA_I_PD(169), PORT_DATA_I_PD(170),
  384. PORT_DATA_O(171),
  385. PORT_DATA_IO_PD(172), PORT_DATA_IO_PD(173),
  386. PORT_DATA_O(174),
  387. PORT_DATA_IO_PD(175), PORT_DATA_IO_PD(176), PORT_DATA_IO_PD(177),
  388. PORT_DATA_IO_PD(178), PORT_DATA_IO_PD(179), PORT_DATA_IO_PD(180),
  389. PORT_DATA_IO_PD(181), PORT_DATA_IO_PD(182), PORT_DATA_IO_PD(183),
  390. PORT_DATA_IO_PD(184), PORT_DATA_IO_PD(185), PORT_DATA_IO_PD(186),
  391. PORT_DATA_IO_PD(187), PORT_DATA_IO_PD(188), PORT_DATA_IO_PD(189),
  392. PORT_DATA_IO_PD(190), PORT_DATA_IO_PD(191), PORT_DATA_IO_PD(192),
  393. PORT_DATA_IO_PD(193), PORT_DATA_IO_PD(194), PORT_DATA_IO_PD(195),
  394. PORT_DATA_IO_PD(196), PORT_DATA_IO_PD(197), PORT_DATA_IO_PD(198),
  395. PORT_DATA_O(199),
  396. PORT_DATA_IO_PD(200),
  397. /* 49-5 (GPIO) */
  398. PORT_DATA_O(201),
  399. PORT_DATA_IO_PD(202), PORT_DATA_IO_PD(203),
  400. PORT_DATA_I(204),
  401. PORT_DATA_O(205),
  402. PORT_DATA_IO_PD(206), PORT_DATA_IO_PD(207), PORT_DATA_IO_PD(208),
  403. PORT_DATA_IO_PD(209), PORT_DATA_IO_PD(210), PORT_DATA_IO_PD(211),
  404. PORT_DATA_IO_PD(212), PORT_DATA_IO_PD(213), PORT_DATA_IO_PD(214),
  405. PORT_DATA_IO_PD(215), PORT_DATA_IO_PD(216),
  406. PORT_DATA_O(217),
  407. PORT_DATA_I_PU_PD(218), PORT_DATA_I_PU_PD(219),
  408. PORT_DATA_O(220), PORT_DATA_O(221), PORT_DATA_O(222),
  409. PORT_DATA_I_PD(223),
  410. PORT_DATA_I_PU_PD(224),
  411. PORT_DATA_O(225),
  412. PORT_DATA_IO_PD(226),
  413. PORT_DATA_IO_PU_PD(227),
  414. PORT_DATA_I_PD(228),
  415. PORT_DATA_IO_PD(229), PORT_DATA_IO_PD(230),
  416. PORT_DATA_I_PU_PD(231), PORT_DATA_I_PU_PD(232),
  417. PORT_DATA_IO_PU_PD(233), PORT_DATA_IO_PU_PD(234),
  418. PORT_DATA_I_PU_PD(235),
  419. PORT_DATA_O(236),
  420. PORT_DATA_I_PD(237),
  421. PORT_DATA_IO_PU_PD(238), PORT_DATA_IO_PU_PD(239),
  422. PORT_DATA_IO_PD(240), PORT_DATA_IO_PD(241),
  423. PORT_DATA_IO_PD(242), PORT_DATA_IO_PD(243),
  424. PORT_DATA_O(244),
  425. PORT_DATA_IO_PU_PD(245),
  426. PORT_DATA_O(246),
  427. PORT_DATA_I_PD(247),
  428. PORT_DATA_IO_PU_PD(248),
  429. PORT_DATA_I_PU_PD(249),
  430. PORT_DATA_IO_PD(250), PORT_DATA_IO_PD(251),
  431. PORT_DATA_IO_PU_PD(252), PORT_DATA_IO_PU_PD(253),
  432. PORT_DATA_IO_PU_PD(254), PORT_DATA_IO_PU_PD(255),
  433. PORT_DATA_IO_PU_PD(256),
  434. /* 49-6 (GPIO) */
  435. PORT_DATA_IO_PU_PD(257), PORT_DATA_IO_PU_PD(258),
  436. PORT_DATA_IO_PD(259),
  437. PORT_DATA_IO_PU(260), PORT_DATA_IO_PU(261), PORT_DATA_IO_PU(262),
  438. PORT_DATA_IO_PU(263), PORT_DATA_IO_PU(264),
  439. PORT_DATA_O(265),
  440. PORT_DATA_IO_PU(266), PORT_DATA_IO_PU(267), PORT_DATA_IO_PU(268),
  441. PORT_DATA_IO_PU(269), PORT_DATA_IO_PU(270),
  442. PORT_DATA_O(271),
  443. PORT_DATA_I_PD(272),
  444. /* Special Pull-up / Pull-down Functions */
  445. PINMUX_DATA(PORT48_KEYIN0_PU_MARK, MSELBCR_MSEL2_1,
  446. PORT48_FN2, PORT48_IN_PU),
  447. PINMUX_DATA(PORT49_KEYIN1_PU_MARK, MSELBCR_MSEL2_1,
  448. PORT49_FN2, PORT49_IN_PU),
  449. PINMUX_DATA(PORT50_KEYIN2_PU_MARK, MSELBCR_MSEL2_1,
  450. PORT50_FN2, PORT50_IN_PU),
  451. PINMUX_DATA(PORT55_KEYIN3_PU_MARK, MSELBCR_MSEL2_1,
  452. PORT55_FN2, PORT55_IN_PU),
  453. PINMUX_DATA(PORT56_KEYIN4_PU_MARK, MSELBCR_MSEL2_1,
  454. PORT56_FN2, PORT56_IN_PU),
  455. PINMUX_DATA(PORT57_KEYIN5_PU_MARK, MSELBCR_MSEL2_1,
  456. PORT57_FN2, PORT57_IN_PU),
  457. PINMUX_DATA(PORT58_KEYIN6_PU_MARK, MSELBCR_MSEL2_1,
  458. PORT58_FN2, PORT58_IN_PU),
  459. /* 49-1 (FN) */
  460. PINMUX_DATA(VBUS0_MARK, PORT0_FN1),
  461. PINMUX_DATA(CPORT0_MARK, PORT1_FN1),
  462. PINMUX_DATA(CPORT1_MARK, PORT2_FN1),
  463. PINMUX_DATA(CPORT2_MARK, PORT3_FN1),
  464. PINMUX_DATA(CPORT3_MARK, PORT4_FN1),
  465. PINMUX_DATA(CPORT4_MARK, PORT5_FN1),
  466. PINMUX_DATA(CPORT5_MARK, PORT6_FN1),
  467. PINMUX_DATA(CPORT6_MARK, PORT7_FN1),
  468. PINMUX_DATA(CPORT7_MARK, PORT8_FN1),
  469. PINMUX_DATA(CPORT8_MARK, PORT9_FN1),
  470. PINMUX_DATA(CPORT9_MARK, PORT10_FN1),
  471. PINMUX_DATA(CPORT10_MARK, PORT11_FN1),
  472. PINMUX_DATA(CPORT11_MARK, PORT12_FN1),
  473. PINMUX_DATA(SIN2_MARK, PORT12_FN2),
  474. PINMUX_DATA(CPORT12_MARK, PORT13_FN1),
  475. PINMUX_DATA(XCTS2_MARK, PORT13_FN2),
  476. PINMUX_DATA(CPORT13_MARK, PORT14_FN1),
  477. PINMUX_DATA(RFSPO4_MARK, PORT14_FN2),
  478. PINMUX_DATA(CPORT14_MARK, PORT15_FN1),
  479. PINMUX_DATA(RFSPO5_MARK, PORT15_FN2),
  480. PINMUX_DATA(CPORT15_MARK, PORT16_FN1),
  481. PINMUX_DATA(CPORT16_MARK, PORT17_FN1),
  482. PINMUX_DATA(CPORT17_MARK, PORT18_FN1),
  483. PINMUX_DATA(SOUT2_MARK, PORT18_FN2),
  484. PINMUX_DATA(CPORT18_MARK, PORT19_FN1),
  485. PINMUX_DATA(XRTS2_MARK, PORT19_FN1),
  486. PINMUX_DATA(CPORT19_MARK, PORT20_FN1),
  487. PINMUX_DATA(CPORT20_MARK, PORT21_FN1),
  488. PINMUX_DATA(RFSPO6_MARK, PORT21_FN2),
  489. PINMUX_DATA(CPORT21_MARK, PORT22_FN1),
  490. PINMUX_DATA(STATUS0_MARK, PORT22_FN2),
  491. PINMUX_DATA(CPORT22_MARK, PORT23_FN1),
  492. PINMUX_DATA(STATUS1_MARK, PORT23_FN2),
  493. PINMUX_DATA(CPORT23_MARK, PORT24_FN1),
  494. PINMUX_DATA(STATUS2_MARK, PORT24_FN2),
  495. PINMUX_DATA(RFSPO7_MARK, PORT24_FN3),
  496. PINMUX_DATA(MPORT0_MARK, PORT25_FN1),
  497. PINMUX_DATA(MPORT1_MARK, PORT26_FN1),
  498. PINMUX_DATA(B_SYNLD1_MARK, PORT27_FN1),
  499. PINMUX_DATA(B_SYNLD2_MARK, PORT28_FN1),
  500. PINMUX_DATA(XMAINPS_MARK, PORT29_FN1),
  501. PINMUX_DATA(XDIVPS_MARK, PORT30_FN1),
  502. PINMUX_DATA(XIDRST_MARK, PORT31_FN1),
  503. PINMUX_DATA(IDCLK_MARK, PORT32_FN1),
  504. PINMUX_DATA(IDIO_MARK, PORT33_FN1),
  505. PINMUX_DATA(SOUT1_MARK, PORT34_FN1),
  506. PINMUX_DATA(SCIFA4_TXD_MARK, PORT34_FN2),
  507. PINMUX_DATA(M02_BERDAT_MARK, PORT34_FN3),
  508. PINMUX_DATA(SIN1_MARK, PORT35_FN1),
  509. PINMUX_DATA(SCIFA4_RXD_MARK, PORT35_FN2),
  510. PINMUX_DATA(XWUP_MARK, PORT35_FN3),
  511. PINMUX_DATA(XRTS1_MARK, PORT36_FN1),
  512. PINMUX_DATA(SCIFA4_RTS_MARK, PORT36_FN2),
  513. PINMUX_DATA(M03_BERCLK_MARK, PORT36_FN3),
  514. PINMUX_DATA(XCTS1_MARK, PORT37_FN1),
  515. PINMUX_DATA(SCIFA4_CTS_MARK, PORT37_FN2),
  516. /* 49-2 (FN) */
  517. PINMUX_DATA(HSU_IQ_AGC6_MARK, PORT38_FN1),
  518. PINMUX_DATA(MFG2_IN2_MARK, PORT38_FN2),
  519. PINMUX_DATA(MSIOF2_MCK0_MARK, PORT38_FN3),
  520. PINMUX_DATA(HSU_IQ_AGC5_MARK, PORT39_FN1),
  521. PINMUX_DATA(MFG2_IN1_MARK, PORT39_FN2),
  522. PINMUX_DATA(MSIOF2_MCK1_MARK, PORT39_FN3),
  523. PINMUX_DATA(HSU_IQ_AGC4_MARK, PORT40_FN1),
  524. PINMUX_DATA(MSIOF2_RSYNC_MARK, PORT40_FN3),
  525. PINMUX_DATA(HSU_IQ_AGC3_MARK, PORT41_FN1),
  526. PINMUX_DATA(MFG2_OUT1_MARK, PORT41_FN2),
  527. PINMUX_DATA(MSIOF2_RSCK_MARK, PORT41_FN3),
  528. PINMUX_DATA(HSU_IQ_AGC2_MARK, PORT42_FN1),
  529. PINMUX_DATA(PORT42_KEYOUT0_MARK, MSELBCR_MSEL2_1, PORT42_FN2),
  530. PINMUX_DATA(HSU_IQ_AGC1_MARK, PORT43_FN1),
  531. PINMUX_DATA(PORT43_KEYOUT1_MARK, MSELBCR_MSEL2_1, PORT43_FN2),
  532. PINMUX_DATA(HSU_IQ_AGC0_MARK, PORT44_FN1),
  533. PINMUX_DATA(PORT44_KEYOUT2_MARK, MSELBCR_MSEL2_1, PORT44_FN2),
  534. PINMUX_DATA(HSU_IQ_AGC_ST_MARK, PORT45_FN1),
  535. PINMUX_DATA(PORT45_KEYOUT3_MARK, MSELBCR_MSEL2_1, PORT45_FN2),
  536. PINMUX_DATA(HSU_IQ_PDO_MARK, PORT46_FN1),
  537. PINMUX_DATA(PORT46_KEYOUT4_MARK, MSELBCR_MSEL2_1, PORT46_FN2),
  538. PINMUX_DATA(HSU_IQ_PYO_MARK, PORT47_FN1),
  539. PINMUX_DATA(PORT47_KEYOUT5_MARK, MSELBCR_MSEL2_1, PORT47_FN2),
  540. PINMUX_DATA(HSU_EN_TXMUX_G3MO_MARK, PORT48_FN1),
  541. PINMUX_DATA(PORT48_KEYIN0_MARK, MSELBCR_MSEL2_1, PORT48_FN2),
  542. PINMUX_DATA(HSU_I_TXMUX_G3MO_MARK, PORT49_FN1),
  543. PINMUX_DATA(PORT49_KEYIN1_MARK, MSELBCR_MSEL2_1, PORT49_FN2),
  544. PINMUX_DATA(HSU_Q_TXMUX_G3MO_MARK, PORT50_FN1),
  545. PINMUX_DATA(PORT50_KEYIN2_MARK, MSELBCR_MSEL2_1, PORT50_FN2),
  546. PINMUX_DATA(HSU_SYO_MARK, PORT51_FN1),
  547. PINMUX_DATA(PORT51_MSIOF2_TSYNC_MARK, PORT51_FN2),
  548. PINMUX_DATA(HSU_SDO_MARK, PORT52_FN1),
  549. PINMUX_DATA(PORT52_MSIOF2_TSCK_MARK, PORT52_FN2),
  550. PINMUX_DATA(HSU_TGTTI_G3MO_MARK, PORT53_FN1),
  551. PINMUX_DATA(PORT53_MSIOF2_TXD_MARK, PORT53_FN2),
  552. PINMUX_DATA(B_TIME_STAMP_MARK, PORT54_FN1),
  553. PINMUX_DATA(PORT54_MSIOF2_RXD_MARK, PORT54_FN2),
  554. PINMUX_DATA(HSU_SDI_MARK, PORT55_FN1),
  555. PINMUX_DATA(PORT55_KEYIN3_MARK, MSELBCR_MSEL2_1, PORT55_FN2),
  556. PINMUX_DATA(HSU_SCO_MARK, PORT56_FN1),
  557. PINMUX_DATA(PORT56_KEYIN4_MARK, MSELBCR_MSEL2_1, PORT56_FN2),
  558. PINMUX_DATA(HSU_DREQ_MARK, PORT57_FN1),
  559. PINMUX_DATA(PORT57_KEYIN5_MARK, MSELBCR_MSEL2_1, PORT57_FN2),
  560. PINMUX_DATA(HSU_DACK_MARK, PORT58_FN1),
  561. PINMUX_DATA(PORT58_KEYIN6_MARK, MSELBCR_MSEL2_1, PORT58_FN2),
  562. PINMUX_DATA(HSU_CLK61M_MARK, PORT59_FN1),
  563. PINMUX_DATA(PORT59_MSIOF2_SS1_MARK, PORT59_FN2),
  564. PINMUX_DATA(HSU_XRST_MARK, PORT60_FN1),
  565. PINMUX_DATA(PORT60_MSIOF2_SS2_MARK, PORT60_FN2),
  566. PINMUX_DATA(PCMCLKO_MARK, PORT61_FN1),
  567. PINMUX_DATA(SYNC8KO_MARK, PORT62_FN1),
  568. PINMUX_DATA(DNPCM_A_MARK, PORT63_FN1),
  569. PINMUX_DATA(UPPCM_A_MARK, PORT64_FN1),
  570. PINMUX_DATA(XTALB1L_MARK, PORT65_FN1),
  571. PINMUX_DATA(GPS_AGC1_MARK, PORT66_FN1),
  572. PINMUX_DATA(SCIFA0_RTS_MARK, PORT66_FN2),
  573. PINMUX_DATA(GPS_AGC2_MARK, PORT67_FN1),
  574. PINMUX_DATA(SCIFA0_SCK_MARK, PORT67_FN2),
  575. PINMUX_DATA(GPS_AGC3_MARK, PORT68_FN1),
  576. PINMUX_DATA(SCIFA0_TXD_MARK, PORT68_FN2),
  577. PINMUX_DATA(GPS_AGC4_MARK, PORT69_FN1),
  578. PINMUX_DATA(SCIFA0_RXD_MARK, PORT69_FN2),
  579. PINMUX_DATA(GPS_PWRD_MARK, PORT70_FN1),
  580. PINMUX_DATA(SCIFA0_CTS_MARK, PORT70_FN2),
  581. PINMUX_DATA(GPS_IM_MARK, PORT71_FN1),
  582. PINMUX_DATA(GPS_IS_MARK, PORT72_FN1),
  583. PINMUX_DATA(GPS_QM_MARK, PORT73_FN1),
  584. PINMUX_DATA(GPS_QS_MARK, PORT74_FN1),
  585. PINMUX_DATA(SIUBOMC_MARK, PORT75_FN1),
  586. PINMUX_DATA(TPU2TO0_MARK, PORT75_FN3),
  587. PINMUX_DATA(SIUCKB_MARK, PORT76_FN1),
  588. PINMUX_DATA(TPU2TO1_MARK, PORT76_FN3),
  589. PINMUX_DATA(SIUBOLR_MARK, PORT77_FN1),
  590. PINMUX_DATA(BBIF2_TSYNC_MARK, PORT77_FN2),
  591. PINMUX_DATA(TPU2TO2_MARK, PORT77_FN3),
  592. PINMUX_DATA(SIUBOBT_MARK, PORT78_FN1),
  593. PINMUX_DATA(BBIF2_TSCK_MARK, PORT78_FN2),
  594. PINMUX_DATA(TPU2TO3_MARK, PORT78_FN3),
  595. PINMUX_DATA(SIUBOSLD_MARK, PORT79_FN1),
  596. PINMUX_DATA(BBIF2_TXD_MARK, PORT79_FN2),
  597. PINMUX_DATA(TPU3TO0_MARK, PORT79_FN3),
  598. PINMUX_DATA(SIUBILR_MARK, PORT80_FN1),
  599. PINMUX_DATA(TPU3TO1_MARK, PORT80_FN3),
  600. PINMUX_DATA(SIUBIBT_MARK, PORT81_FN1),
  601. PINMUX_DATA(TPU3TO2_MARK, PORT81_FN3),
  602. PINMUX_DATA(SIUBISLD_MARK, PORT82_FN1),
  603. PINMUX_DATA(TPU3TO3_MARK, PORT82_FN3),
  604. PINMUX_DATA(NMI_MARK, PORT83_FN1),
  605. PINMUX_DATA(TPU4TO0_MARK, PORT83_FN3),
  606. PINMUX_DATA(DNPCM_M_MARK, PORT84_FN1),
  607. PINMUX_DATA(TPU4TO1_MARK, PORT84_FN3),
  608. PINMUX_DATA(TPU4TO2_MARK, PORT85_FN3),
  609. PINMUX_DATA(TPU4TO3_MARK, PORT86_FN3),
  610. PINMUX_DATA(IRQ_TMPB_MARK, PORT87_FN1),
  611. PINMUX_DATA(PWEN_MARK, PORT88_FN1),
  612. PINMUX_DATA(MFG1_OUT1_MARK, PORT88_FN2),
  613. PINMUX_DATA(OVCN_MARK, PORT89_FN1),
  614. PINMUX_DATA(MFG1_IN1_MARK, PORT89_FN2),
  615. PINMUX_DATA(OVCN2_MARK, PORT90_FN1),
  616. PINMUX_DATA(MFG1_IN2_MARK, PORT90_FN2),
  617. /* 49-3 (FN) */
  618. PINMUX_DATA(RFSPO1_MARK, PORT91_FN1),
  619. PINMUX_DATA(RFSPO2_MARK, PORT92_FN1),
  620. PINMUX_DATA(RFSPO3_MARK, PORT93_FN1),
  621. PINMUX_DATA(PORT93_VIO_CKO2_MARK, PORT93_FN2),
  622. PINMUX_DATA(USBTERM_MARK, PORT94_FN1),
  623. PINMUX_DATA(EXTLP_MARK, PORT94_FN2),
  624. PINMUX_DATA(IDIN_MARK, PORT95_FN1),
  625. PINMUX_DATA(SCIFA5_CTS_MARK, PORT96_FN1),
  626. PINMUX_DATA(MFG0_IN1_MARK, PORT96_FN2),
  627. PINMUX_DATA(SCIFA5_RTS_MARK, PORT97_FN1),
  628. PINMUX_DATA(MFG0_IN2_MARK, PORT97_FN2),
  629. PINMUX_DATA(SCIFA5_RXD_MARK, PORT98_FN1),
  630. PINMUX_DATA(SCIFA5_TXD_MARK, PORT99_FN1),
  631. PINMUX_DATA(SCIFA5_SCK_MARK, PORT100_FN1),
  632. PINMUX_DATA(MFG0_OUT1_MARK, PORT100_FN2),
  633. PINMUX_DATA(A0_EA0_MARK, PORT101_FN1),
  634. PINMUX_DATA(BS_MARK, PORT101_FN2),
  635. PINMUX_DATA(A14_EA14_MARK, PORT102_FN1),
  636. PINMUX_DATA(PORT102_KEYOUT0_MARK, MSELBCR_MSEL2_0, PORT102_FN2),
  637. PINMUX_DATA(A15_EA15_MARK, PORT103_FN1),
  638. PINMUX_DATA(PORT103_KEYOUT1_MARK, MSELBCR_MSEL2_0, PORT103_FN2),
  639. PINMUX_DATA(DV_CLKOL_MARK, PORT103_FN3),
  640. PINMUX_DATA(A16_EA16_MARK, PORT104_FN1),
  641. PINMUX_DATA(PORT104_KEYOUT2_MARK, MSELBCR_MSEL2_0, PORT104_FN2),
  642. PINMUX_DATA(DV_VSYNCL_MARK, PORT104_FN3),
  643. PINMUX_DATA(MSIOF0_SS1_MARK, PORT104_FN4),
  644. PINMUX_DATA(A17_EA17_MARK, PORT105_FN1),
  645. PINMUX_DATA(PORT105_KEYOUT3_MARK, MSELBCR_MSEL2_0, PORT105_FN2),
  646. PINMUX_DATA(DV_HSYNCL_MARK, PORT105_FN3),
  647. PINMUX_DATA(MSIOF0_TSYNC_MARK, PORT105_FN4),
  648. PINMUX_DATA(A18_EA18_MARK, PORT106_FN1),
  649. PINMUX_DATA(PORT106_KEYOUT4_MARK, MSELBCR_MSEL2_0, PORT106_FN2),
  650. PINMUX_DATA(DV_DL0_MARK, PORT106_FN3),
  651. PINMUX_DATA(MSIOF0_TSCK_MARK, PORT106_FN4),
  652. PINMUX_DATA(A19_EA19_MARK, PORT107_FN1),
  653. PINMUX_DATA(PORT107_KEYOUT5_MARK, MSELBCR_MSEL2_0, PORT107_FN2),
  654. PINMUX_DATA(DV_DL1_MARK, PORT107_FN3),
  655. PINMUX_DATA(MSIOF0_TXD_MARK, PORT107_FN4),
  656. PINMUX_DATA(A20_EA20_MARK, PORT108_FN1),
  657. PINMUX_DATA(PORT108_KEYIN0_MARK, MSELBCR_MSEL2_0, PORT108_FN2),
  658. PINMUX_DATA(DV_DL2_MARK, PORT108_FN3),
  659. PINMUX_DATA(MSIOF0_RSCK_MARK, PORT108_FN4),
  660. PINMUX_DATA(A21_EA21_MARK, PORT109_FN1),
  661. PINMUX_DATA(PORT109_KEYIN1_MARK, MSELBCR_MSEL2_0, PORT109_FN2),
  662. PINMUX_DATA(DV_DL3_MARK, PORT109_FN3),
  663. PINMUX_DATA(MSIOF0_RSYNC_MARK, PORT109_FN4),
  664. PINMUX_DATA(A22_EA22_MARK, PORT110_FN1),
  665. PINMUX_DATA(PORT110_KEYIN2_MARK, MSELBCR_MSEL2_0, PORT110_FN2),
  666. PINMUX_DATA(DV_DL4_MARK, PORT110_FN3),
  667. PINMUX_DATA(MSIOF0_MCK0_MARK, PORT110_FN4),
  668. PINMUX_DATA(A23_EA23_MARK, PORT111_FN1),
  669. PINMUX_DATA(PORT111_KEYIN3_MARK, MSELBCR_MSEL2_0, PORT111_FN2),
  670. PINMUX_DATA(DV_DL5_MARK, PORT111_FN3),
  671. PINMUX_DATA(MSIOF0_MCK1_MARK, PORT111_FN4),
  672. PINMUX_DATA(A24_EA24_MARK, PORT112_FN1),
  673. PINMUX_DATA(PORT112_KEYIN4_MARK, MSELBCR_MSEL2_0, PORT112_FN2),
  674. PINMUX_DATA(DV_DL6_MARK, PORT112_FN3),
  675. PINMUX_DATA(MSIOF0_RXD_MARK, PORT112_FN4),
  676. PINMUX_DATA(A25_EA25_MARK, PORT113_FN1),
  677. PINMUX_DATA(PORT113_KEYIN5_MARK, MSELBCR_MSEL2_0, PORT113_FN2),
  678. PINMUX_DATA(DV_DL7_MARK, PORT113_FN3),
  679. PINMUX_DATA(MSIOF0_SS2_MARK, PORT113_FN4),
  680. PINMUX_DATA(A26_MARK, PORT114_FN1),
  681. PINMUX_DATA(PORT113_KEYIN6_MARK, MSELBCR_MSEL2_0, PORT114_FN2),
  682. PINMUX_DATA(DV_CLKIL_MARK, PORT114_FN3),
  683. PINMUX_DATA(D0_ED0_NAF0_MARK, PORT115_FN1),
  684. PINMUX_DATA(D1_ED1_NAF1_MARK, PORT116_FN1),
  685. PINMUX_DATA(D2_ED2_NAF2_MARK, PORT117_FN1),
  686. PINMUX_DATA(D3_ED3_NAF3_MARK, PORT118_FN1),
  687. PINMUX_DATA(D4_ED4_NAF4_MARK, PORT119_FN1),
  688. PINMUX_DATA(D5_ED5_NAF5_MARK, PORT120_FN1),
  689. PINMUX_DATA(D6_ED6_NAF6_MARK, PORT121_FN1),
  690. PINMUX_DATA(D7_ED7_NAF7_MARK, PORT122_FN1),
  691. PINMUX_DATA(D8_ED8_NAF8_MARK, PORT123_FN1),
  692. PINMUX_DATA(D9_ED9_NAF9_MARK, PORT124_FN1),
  693. PINMUX_DATA(D10_ED10_NAF10_MARK, PORT125_FN1),
  694. PINMUX_DATA(D11_ED11_NAF11_MARK, PORT126_FN1),
  695. PINMUX_DATA(D12_ED12_NAF12_MARK, PORT127_FN1),
  696. PINMUX_DATA(D13_ED13_NAF13_MARK, PORT128_FN1),
  697. PINMUX_DATA(D14_ED14_NAF14_MARK, PORT129_FN1),
  698. PINMUX_DATA(D15_ED15_NAF15_MARK, PORT130_FN1),
  699. PINMUX_DATA(CS4_MARK, PORT131_FN1),
  700. PINMUX_DATA(CS5A_MARK, PORT132_FN1),
  701. PINMUX_DATA(CS5B_MARK, PORT133_FN1),
  702. PINMUX_DATA(FCE1_MARK, PORT133_FN2),
  703. PINMUX_DATA(CS6B_MARK, PORT134_FN1),
  704. PINMUX_DATA(XCS2_MARK, PORT134_FN2),
  705. PINMUX_DATA(FCE0_MARK, PORT135_FN1),
  706. PINMUX_DATA(CS6A_MARK, PORT136_FN1),
  707. PINMUX_DATA(DACK0_MARK, PORT136_FN2),
  708. PINMUX_DATA(WAIT_MARK, PORT137_FN1),
  709. PINMUX_DATA(DREQ0_MARK, PORT137_FN2),
  710. PINMUX_DATA(RD_XRD_MARK, PORT138_FN1),
  711. PINMUX_DATA(A27_MARK, PORT139_FN1),
  712. PINMUX_DATA(RDWR_XWE_MARK, PORT139_FN2),
  713. PINMUX_DATA(WE0_XWR0_FWE_MARK, PORT140_FN1),
  714. PINMUX_DATA(WE1_XWR1_MARK, PORT141_FN1),
  715. PINMUX_DATA(FRB_MARK, PORT142_FN1),
  716. PINMUX_DATA(CKO_MARK, PORT143_FN1),
  717. PINMUX_DATA(NBRSTOUT_MARK, PORT144_FN1),
  718. PINMUX_DATA(NBRST_MARK, PORT145_FN1),
  719. /* 49-4 (FN) */
  720. PINMUX_DATA(RFSPO0_MARK, PORT146_FN1),
  721. PINMUX_DATA(PORT146_VIO_CKO2_MARK, PORT146_FN2),
  722. PINMUX_DATA(TSTMD_MARK, PORT147_FN1),
  723. PINMUX_DATA(VIO_VD_MARK, PORT148_FN1),
  724. PINMUX_DATA(VIO_HD_MARK, PORT149_FN1),
  725. PINMUX_DATA(VIO_D0_MARK, PORT150_FN1),
  726. PINMUX_DATA(VIO_D1_MARK, PORT151_FN1),
  727. PINMUX_DATA(VIO_D2_MARK, PORT152_FN1),
  728. PINMUX_DATA(VIO_D3_MARK, PORT153_FN1),
  729. PINMUX_DATA(VIO_D4_MARK, PORT154_FN1),
  730. PINMUX_DATA(VIO_D5_MARK, PORT155_FN1),
  731. PINMUX_DATA(VIO_D6_MARK, PORT156_FN1),
  732. PINMUX_DATA(VIO_D7_MARK, PORT157_FN1),
  733. PINMUX_DATA(VIO_D8_MARK, PORT158_FN1),
  734. PINMUX_DATA(VIO_D9_MARK, PORT159_FN1),
  735. PINMUX_DATA(VIO_D10_MARK, PORT160_FN1),
  736. PINMUX_DATA(VIO_D11_MARK, PORT161_FN1),
  737. PINMUX_DATA(VIO_D12_MARK, PORT162_FN1),
  738. PINMUX_DATA(VIO_D13_MARK, PORT163_FN1),
  739. PINMUX_DATA(VIO_D14_MARK, PORT164_FN1),
  740. PINMUX_DATA(VIO_D15_MARK, PORT165_FN1),
  741. PINMUX_DATA(VIO_CLK_MARK, PORT166_FN1),
  742. PINMUX_DATA(VIO_FIELD_MARK, PORT167_FN1),
  743. PINMUX_DATA(VIO_CKO_MARK, PORT168_FN1),
  744. PINMUX_DATA(MFG3_IN1_MARK, PORT169_FN2),
  745. PINMUX_DATA(MFG3_IN2_MARK, PORT170_FN2),
  746. PINMUX_DATA(M9_SLCD_A01_MARK, PORT171_FN1),
  747. PINMUX_DATA(MFG3_OUT1_MARK, PORT171_FN2),
  748. PINMUX_DATA(TPU0TO0_MARK, PORT171_FN3),
  749. PINMUX_DATA(M10_SLCD_CK1_MARK, PORT172_FN1),
  750. PINMUX_DATA(MFG4_IN1_MARK, PORT172_FN2),
  751. PINMUX_DATA(TPU0TO1_MARK, PORT172_FN3),
  752. PINMUX_DATA(M11_SLCD_SO1_MARK, PORT173_FN1),
  753. PINMUX_DATA(MFG4_IN2_MARK, PORT173_FN2),
  754. PINMUX_DATA(TPU0TO2_MARK, PORT173_FN3),
  755. PINMUX_DATA(M12_SLCD_CE1_MARK, PORT174_FN1),
  756. PINMUX_DATA(MFG4_OUT1_MARK, PORT174_FN2),
  757. PINMUX_DATA(TPU0TO3_MARK, PORT174_FN3),
  758. PINMUX_DATA(LCDD0_MARK, PORT175_FN1),
  759. PINMUX_DATA(PORT175_KEYOUT0_MARK, PORT175_FN2),
  760. PINMUX_DATA(DV_D0_MARK, PORT175_FN3),
  761. PINMUX_DATA(SIUCKA_MARK, PORT175_FN4),
  762. PINMUX_DATA(MFG0_OUT2_MARK, PORT175_FN5),
  763. PINMUX_DATA(LCDD1_MARK, PORT176_FN1),
  764. PINMUX_DATA(PORT176_KEYOUT1_MARK, PORT176_FN2),
  765. PINMUX_DATA(DV_D1_MARK, PORT176_FN3),
  766. PINMUX_DATA(SIUAOLR_MARK, PORT176_FN4),
  767. PINMUX_DATA(BBIF2_TSYNC1_MARK, PORT176_FN5),
  768. PINMUX_DATA(LCDD2_MARK, PORT177_FN1),
  769. PINMUX_DATA(PORT177_KEYOUT2_MARK, PORT177_FN2),
  770. PINMUX_DATA(DV_D2_MARK, PORT177_FN3),
  771. PINMUX_DATA(SIUAOBT_MARK, PORT177_FN4),
  772. PINMUX_DATA(BBIF2_TSCK1_MARK, PORT177_FN5),
  773. PINMUX_DATA(LCDD3_MARK, PORT178_FN1),
  774. PINMUX_DATA(PORT178_KEYOUT3_MARK, PORT178_FN2),
  775. PINMUX_DATA(DV_D3_MARK, PORT178_FN3),
  776. PINMUX_DATA(SIUAOSLD_MARK, PORT178_FN4),
  777. PINMUX_DATA(BBIF2_TXD1_MARK, PORT178_FN5),
  778. PINMUX_DATA(LCDD4_MARK, PORT179_FN1),
  779. PINMUX_DATA(PORT179_KEYOUT4_MARK, PORT179_FN2),
  780. PINMUX_DATA(DV_D4_MARK, PORT179_FN3),
  781. PINMUX_DATA(SIUAISPD_MARK, PORT179_FN4),
  782. PINMUX_DATA(MFG1_OUT2_MARK, PORT179_FN5),
  783. PINMUX_DATA(LCDD5_MARK, PORT180_FN1),
  784. PINMUX_DATA(PORT180_KEYOUT5_MARK, PORT180_FN2),
  785. PINMUX_DATA(DV_D5_MARK, PORT180_FN3),
  786. PINMUX_DATA(SIUAILR_MARK, PORT180_FN4),
  787. PINMUX_DATA(MFG2_OUT2_MARK, PORT180_FN5),
  788. PINMUX_DATA(LCDD6_MARK, PORT181_FN1),
  789. PINMUX_DATA(DV_D6_MARK, PORT181_FN3),
  790. PINMUX_DATA(SIUAIBT_MARK, PORT181_FN4),
  791. PINMUX_DATA(MFG3_OUT2_MARK, PORT181_FN5),
  792. PINMUX_DATA(XWR2_MARK, PORT181_FN7),
  793. PINMUX_DATA(LCDD7_MARK, PORT182_FN1),
  794. PINMUX_DATA(DV_D7_MARK, PORT182_FN3),
  795. PINMUX_DATA(SIUAISLD_MARK, PORT182_FN4),
  796. PINMUX_DATA(MFG4_OUT2_MARK, PORT182_FN5),
  797. PINMUX_DATA(XWR3_MARK, PORT182_FN7),
  798. PINMUX_DATA(LCDD8_MARK, PORT183_FN1),
  799. PINMUX_DATA(DV_D8_MARK, PORT183_FN3),
  800. PINMUX_DATA(D16_MARK, PORT183_FN6),
  801. PINMUX_DATA(ED16_MARK, PORT183_FN7),
  802. PINMUX_DATA(LCDD9_MARK, PORT184_FN1),
  803. PINMUX_DATA(DV_D9_MARK, PORT184_FN3),
  804. PINMUX_DATA(D17_MARK, PORT184_FN6),
  805. PINMUX_DATA(ED17_MARK, PORT184_FN7),
  806. PINMUX_DATA(LCDD10_MARK, PORT185_FN1),
  807. PINMUX_DATA(DV_D10_MARK, PORT185_FN3),
  808. PINMUX_DATA(D18_MARK, PORT185_FN6),
  809. PINMUX_DATA(ED18_MARK, PORT185_FN7),
  810. PINMUX_DATA(LCDD11_MARK, PORT186_FN1),
  811. PINMUX_DATA(DV_D11_MARK, PORT186_FN3),
  812. PINMUX_DATA(D19_MARK, PORT186_FN6),
  813. PINMUX_DATA(ED19_MARK, PORT186_FN7),
  814. PINMUX_DATA(LCDD12_MARK, PORT187_FN1),
  815. PINMUX_DATA(DV_D12_MARK, PORT187_FN3),
  816. PINMUX_DATA(D20_MARK, PORT187_FN6),
  817. PINMUX_DATA(ED20_MARK, PORT187_FN7),
  818. PINMUX_DATA(LCDD13_MARK, PORT188_FN1),
  819. PINMUX_DATA(DV_D13_MARK, PORT188_FN3),
  820. PINMUX_DATA(D21_MARK, PORT188_FN6),
  821. PINMUX_DATA(ED21_MARK, PORT188_FN7),
  822. PINMUX_DATA(LCDD14_MARK, PORT189_FN1),
  823. PINMUX_DATA(DV_D14_MARK, PORT189_FN3),
  824. PINMUX_DATA(D22_MARK, PORT189_FN6),
  825. PINMUX_DATA(ED22_MARK, PORT189_FN7),
  826. PINMUX_DATA(LCDD15_MARK, PORT190_FN1),
  827. PINMUX_DATA(DV_D15_MARK, PORT190_FN3),
  828. PINMUX_DATA(D23_MARK, PORT190_FN6),
  829. PINMUX_DATA(ED23_MARK, PORT190_FN7),
  830. PINMUX_DATA(LCDD16_MARK, PORT191_FN1),
  831. PINMUX_DATA(DV_HSYNC_MARK, PORT191_FN3),
  832. PINMUX_DATA(D24_MARK, PORT191_FN6),
  833. PINMUX_DATA(ED24_MARK, PORT191_FN7),
  834. PINMUX_DATA(LCDD17_MARK, PORT192_FN1),
  835. PINMUX_DATA(DV_VSYNC_MARK, PORT192_FN3),
  836. PINMUX_DATA(D25_MARK, PORT192_FN6),
  837. PINMUX_DATA(ED25_MARK, PORT192_FN7),
  838. PINMUX_DATA(LCDD18_MARK, PORT193_FN1),
  839. PINMUX_DATA(DREQ2_MARK, PORT193_FN2),
  840. PINMUX_DATA(MSIOF0L_TSCK_MARK, PORT193_FN5),
  841. PINMUX_DATA(D26_MARK, PORT193_FN6),
  842. PINMUX_DATA(ED26_MARK, PORT193_FN7),
  843. PINMUX_DATA(LCDD19_MARK, PORT194_FN1),
  844. PINMUX_DATA(MSIOF0L_TSYNC_MARK, PORT194_FN5),
  845. PINMUX_DATA(D27_MARK, PORT194_FN6),
  846. PINMUX_DATA(ED27_MARK, PORT194_FN7),
  847. PINMUX_DATA(LCDD20_MARK, PORT195_FN1),
  848. PINMUX_DATA(TS_SPSYNC1_MARK, PORT195_FN2),
  849. PINMUX_DATA(MSIOF0L_MCK0_MARK, PORT195_FN5),
  850. PINMUX_DATA(D28_MARK, PORT195_FN6),
  851. PINMUX_DATA(ED28_MARK, PORT195_FN7),
  852. PINMUX_DATA(LCDD21_MARK, PORT196_FN1),
  853. PINMUX_DATA(TS_SDAT1_MARK, PORT196_FN2),
  854. PINMUX_DATA(MSIOF0L_MCK1_MARK, PORT196_FN5),
  855. PINMUX_DATA(D29_MARK, PORT196_FN6),
  856. PINMUX_DATA(ED29_MARK, PORT196_FN7),
  857. PINMUX_DATA(LCDD22_MARK, PORT197_FN1),
  858. PINMUX_DATA(TS_SDEN1_MARK, PORT197_FN2),
  859. PINMUX_DATA(MSIOF0L_SS1_MARK, PORT197_FN5),
  860. PINMUX_DATA(D30_MARK, PORT197_FN6),
  861. PINMUX_DATA(ED30_MARK, PORT197_FN7),
  862. PINMUX_DATA(LCDD23_MARK, PORT198_FN1),
  863. PINMUX_DATA(TS_SCK1_MARK, PORT198_FN2),
  864. PINMUX_DATA(MSIOF0L_SS2_MARK, PORT198_FN5),
  865. PINMUX_DATA(D31_MARK, PORT198_FN6),
  866. PINMUX_DATA(ED31_MARK, PORT198_FN7),
  867. PINMUX_DATA(LCDDCK_MARK, PORT199_FN1),
  868. PINMUX_DATA(LCDWR_MARK, PORT199_FN2),
  869. PINMUX_DATA(DV_CKO_MARK, PORT199_FN3),
  870. PINMUX_DATA(SIUAOSPD_MARK, PORT199_FN4),
  871. PINMUX_DATA(LCDRD_MARK, PORT200_FN1),
  872. PINMUX_DATA(DACK2_MARK, PORT200_FN2),
  873. PINMUX_DATA(MSIOF0L_RSYNC_MARK, PORT200_FN5),
  874. /* 49-5 (FN) */
  875. PINMUX_DATA(LCDHSYN_MARK, PORT201_FN1),
  876. PINMUX_DATA(LCDCS_MARK, PORT201_FN2),
  877. PINMUX_DATA(LCDCS2_MARK, PORT201_FN3),
  878. PINMUX_DATA(DACK3_MARK, PORT201_FN4),
  879. PINMUX_DATA(LCDDISP_MARK, PORT202_FN1),
  880. PINMUX_DATA(LCDRS_MARK, PORT202_FN2),
  881. PINMUX_DATA(DREQ3_MARK, PORT202_FN4),
  882. PINMUX_DATA(MSIOF0L_RSCK_MARK, PORT202_FN5),
  883. PINMUX_DATA(LCDCSYN_MARK, PORT203_FN1),
  884. PINMUX_DATA(LCDCSYN2_MARK, PORT203_FN2),
  885. PINMUX_DATA(DV_CKI_MARK, PORT203_FN3),
  886. PINMUX_DATA(LCDLCLK_MARK, PORT204_FN1),
  887. PINMUX_DATA(DREQ1_MARK, PORT204_FN3),
  888. PINMUX_DATA(MSIOF0L_RXD_MARK, PORT204_FN5),
  889. PINMUX_DATA(LCDDON_MARK, PORT205_FN1),
  890. PINMUX_DATA(LCDDON2_MARK, PORT205_FN2),
  891. PINMUX_DATA(DACK1_MARK, PORT205_FN3),
  892. PINMUX_DATA(MSIOF0L_TXD_MARK, PORT205_FN5),
  893. PINMUX_DATA(VIO_DR0_MARK, PORT206_FN1),
  894. PINMUX_DATA(VIO_DR1_MARK, PORT207_FN1),
  895. PINMUX_DATA(VIO_DR2_MARK, PORT208_FN1),
  896. PINMUX_DATA(VIO_DR3_MARK, PORT209_FN1),
  897. PINMUX_DATA(VIO_DR4_MARK, PORT210_FN1),
  898. PINMUX_DATA(VIO_DR5_MARK, PORT211_FN1),
  899. PINMUX_DATA(VIO_DR6_MARK, PORT212_FN1),
  900. PINMUX_DATA(VIO_DR7_MARK, PORT213_FN1),
  901. PINMUX_DATA(VIO_VDR_MARK, PORT214_FN1),
  902. PINMUX_DATA(VIO_HDR_MARK, PORT215_FN1),
  903. PINMUX_DATA(VIO_CLKR_MARK, PORT216_FN1),
  904. PINMUX_DATA(VIO_CKOR_MARK, PORT217_FN1),
  905. PINMUX_DATA(SCIFA1_TXD_MARK, PORT220_FN2),
  906. PINMUX_DATA(GPS_PGFA0_MARK, PORT220_FN3),
  907. PINMUX_DATA(SCIFA1_SCK_MARK, PORT221_FN2),
  908. PINMUX_DATA(GPS_PGFA1_MARK, PORT221_FN3),
  909. PINMUX_DATA(SCIFA1_RTS_MARK, PORT222_FN2),
  910. PINMUX_DATA(GPS_EPPSINMON_MARK, PORT222_FN3),
  911. PINMUX_DATA(SCIFA1_RXD_MARK, PORT223_FN2),
  912. PINMUX_DATA(SCIFA1_CTS_MARK, PORT224_FN2),
  913. PINMUX_DATA(MSIOF1_TXD_MARK, PORT225_FN1),
  914. PINMUX_DATA(SCIFA1_TXD2_MARK, PORT225_FN2),
  915. PINMUX_DATA(GPS_TXD_MARK, PORT225_FN3),
  916. PINMUX_DATA(MSIOF1_TSYNC_MARK, PORT226_FN1),
  917. PINMUX_DATA(SCIFA1_CTS2_MARK, PORT226_FN2),
  918. PINMUX_DATA(I2C_SDA2_MARK, PORT226_FN3),
  919. PINMUX_DATA(MSIOF1_TSCK_MARK, PORT227_FN1),
  920. PINMUX_DATA(SCIFA1_SCK2_MARK, PORT227_FN2),
  921. PINMUX_DATA(MSIOF1_RXD_MARK, PORT228_FN1),
  922. PINMUX_DATA(SCIFA1_RXD2_MARK, PORT228_FN2),
  923. PINMUX_DATA(GPS_RXD_MARK, PORT228_FN3),
  924. PINMUX_DATA(MSIOF1_RSCK_MARK, PORT229_FN1),
  925. PINMUX_DATA(SCIFA1_RTS2_MARK, PORT229_FN2),
  926. PINMUX_DATA(MSIOF1_RSYNC_MARK, PORT230_FN1),
  927. PINMUX_DATA(I2C_SCL2_MARK, PORT230_FN3),
  928. PINMUX_DATA(MSIOF1_MCK0_MARK, PORT231_FN1),
  929. PINMUX_DATA(MSIOF1_MCK1_MARK, PORT232_FN1),
  930. PINMUX_DATA(MSIOF1_SS1_MARK, PORT233_FN1),
  931. PINMUX_DATA(EDBGREQ3_MARK, PORT233_FN2),
  932. PINMUX_DATA(MSIOF1_SS2_MARK, PORT234_FN1),
  933. PINMUX_DATA(PORT236_IROUT_MARK, PORT236_FN1),
  934. PINMUX_DATA(IRDA_OUT_MARK, PORT236_FN2),
  935. PINMUX_DATA(IRDA_IN_MARK, PORT237_FN2),
  936. PINMUX_DATA(IRDA_FIRSEL_MARK, PORT238_FN1),
  937. PINMUX_DATA(TPU1TO0_MARK, PORT239_FN3),
  938. PINMUX_DATA(TS_SPSYNC3_MARK, PORT239_FN4),
  939. PINMUX_DATA(TPU1TO1_MARK, PORT240_FN3),
  940. PINMUX_DATA(TS_SDAT3_MARK, PORT240_FN4),
  941. PINMUX_DATA(TPU1TO2_MARK, PORT241_FN3),
  942. PINMUX_DATA(TS_SDEN3_MARK, PORT241_FN4),
  943. PINMUX_DATA(PORT241_MSIOF2_SS1_MARK, PORT241_FN5),
  944. PINMUX_DATA(TPU1TO3_MARK, PORT242_FN3),
  945. PINMUX_DATA(PORT242_MSIOF2_TSCK_MARK, PORT242_FN5),
  946. PINMUX_DATA(M13_BSW_MARK, PORT243_FN2),
  947. PINMUX_DATA(PORT243_MSIOF2_TSYNC_MARK, PORT243_FN5),
  948. PINMUX_DATA(M14_GSW_MARK, PORT244_FN2),
  949. PINMUX_DATA(PORT244_MSIOF2_TXD_MARK, PORT244_FN5),
  950. PINMUX_DATA(PORT245_IROUT_MARK, PORT245_FN1),
  951. PINMUX_DATA(M15_RSW_MARK, PORT245_FN2),
  952. PINMUX_DATA(SOUT3_MARK, PORT246_FN1),
  953. PINMUX_DATA(SCIFA2_TXD1_MARK, PORT246_FN2),
  954. PINMUX_DATA(SIN3_MARK, PORT247_FN1),
  955. PINMUX_DATA(SCIFA2_RXD1_MARK, PORT247_FN2),
  956. PINMUX_DATA(XRTS3_MARK, PORT248_FN1),
  957. PINMUX_DATA(SCIFA2_RTS1_MARK, PORT248_FN2),
  958. PINMUX_DATA(PORT248_MSIOF2_SS2_MARK, PORT248_FN5),
  959. PINMUX_DATA(XCTS3_MARK, PORT249_FN1),
  960. PINMUX_DATA(SCIFA2_CTS1_MARK, PORT249_FN2),
  961. PINMUX_DATA(PORT249_MSIOF2_RXD_MARK, PORT249_FN5),
  962. PINMUX_DATA(DINT_MARK, PORT250_FN1),
  963. PINMUX_DATA(SCIFA2_SCK1_MARK, PORT250_FN2),
  964. PINMUX_DATA(TS_SCK3_MARK, PORT250_FN4),
  965. PINMUX_DATA(SDHICLK0_MARK, PORT251_FN1),
  966. PINMUX_DATA(TCK2_MARK, PORT251_FN2),
  967. PINMUX_DATA(SDHICD0_MARK, PORT252_FN1),
  968. PINMUX_DATA(SDHID0_0_MARK, PORT253_FN1),
  969. PINMUX_DATA(TMS2_MARK, PORT253_FN2),
  970. PINMUX_DATA(SDHID0_1_MARK, PORT254_FN1),
  971. PINMUX_DATA(TDO2_MARK, PORT254_FN2),
  972. PINMUX_DATA(SDHID0_2_MARK, PORT255_FN1),
  973. PINMUX_DATA(TDI2_MARK, PORT255_FN2),
  974. PINMUX_DATA(SDHID0_3_MARK, PORT256_FN1),
  975. PINMUX_DATA(RTCK2_MARK, PORT256_FN2),
  976. /* 49-6 (FN) */
  977. PINMUX_DATA(SDHICMD0_MARK, PORT257_FN1),
  978. PINMUX_DATA(TRST2_MARK, PORT257_FN2),
  979. PINMUX_DATA(SDHIWP0_MARK, PORT258_FN1),
  980. PINMUX_DATA(EDBGREQ2_MARK, PORT258_FN2),
  981. PINMUX_DATA(SDHICLK1_MARK, PORT259_FN1),
  982. PINMUX_DATA(TCK3_MARK, PORT259_FN4),
  983. PINMUX_DATA(SDHID1_0_MARK, PORT260_FN1),
  984. PINMUX_DATA(M11_SLCD_SO2_MARK, PORT260_FN2),
  985. PINMUX_DATA(TS_SPSYNC2_MARK, PORT260_FN3),
  986. PINMUX_DATA(TMS3_MARK, PORT260_FN4),
  987. PINMUX_DATA(SDHID1_1_MARK, PORT261_FN1),
  988. PINMUX_DATA(M9_SLCD_AO2_MARK, PORT261_FN2),
  989. PINMUX_DATA(TS_SDAT2_MARK, PORT261_FN3),
  990. PINMUX_DATA(TDO3_MARK, PORT261_FN4),
  991. PINMUX_DATA(SDHID1_2_MARK, PORT262_FN1),
  992. PINMUX_DATA(M10_SLCD_CK2_MARK, PORT262_FN2),
  993. PINMUX_DATA(TS_SDEN2_MARK, PORT262_FN3),
  994. PINMUX_DATA(TDI3_MARK, PORT262_FN4),
  995. PINMUX_DATA(SDHID1_3_MARK, PORT263_FN1),
  996. PINMUX_DATA(M12_SLCD_CE2_MARK, PORT263_FN2),
  997. PINMUX_DATA(TS_SCK2_MARK, PORT263_FN3),
  998. PINMUX_DATA(RTCK3_MARK, PORT263_FN4),
  999. PINMUX_DATA(SDHICMD1_MARK, PORT264_FN1),
  1000. PINMUX_DATA(TRST3_MARK, PORT264_FN4),
  1001. PINMUX_DATA(SDHICLK2_MARK, PORT265_FN1),
  1002. PINMUX_DATA(SCIFB_SCK_MARK, PORT265_FN2),
  1003. PINMUX_DATA(SDHID2_0_MARK, PORT266_FN1),
  1004. PINMUX_DATA(SCIFB_TXD_MARK, PORT266_FN2),
  1005. PINMUX_DATA(SDHID2_1_MARK, PORT267_FN1),
  1006. PINMUX_DATA(SCIFB_CTS_MARK, PORT267_FN2),
  1007. PINMUX_DATA(SDHID2_2_MARK, PORT268_FN1),
  1008. PINMUX_DATA(SCIFB_RXD_MARK, PORT268_FN2),
  1009. PINMUX_DATA(SDHID2_3_MARK, PORT269_FN1),
  1010. PINMUX_DATA(SCIFB_RTS_MARK, PORT269_FN2),
  1011. PINMUX_DATA(SDHICMD2_MARK, PORT270_FN1),
  1012. PINMUX_DATA(RESETOUTS_MARK, PORT271_FN1),
  1013. PINMUX_DATA(DIVLOCK_MARK, PORT272_FN1),
  1014. };
  1015. static struct pinmux_gpio pinmux_gpios[] = {
  1016. /* 49-1 -> 49-6 (GPIO) */
  1017. GPIO_PORT_ALL(),
  1018. /* Special Pull-up / Pull-down Functions */
  1019. GPIO_FN(PORT48_KEYIN0_PU), GPIO_FN(PORT49_KEYIN1_PU),
  1020. GPIO_FN(PORT50_KEYIN2_PU), GPIO_FN(PORT55_KEYIN3_PU),
  1021. GPIO_FN(PORT56_KEYIN4_PU), GPIO_FN(PORT57_KEYIN5_PU),
  1022. GPIO_FN(PORT58_KEYIN6_PU),
  1023. /* 49-1 (FN) */
  1024. GPIO_FN(VBUS0), GPIO_FN(CPORT0), GPIO_FN(CPORT1), GPIO_FN(CPORT2),
  1025. GPIO_FN(CPORT3), GPIO_FN(CPORT4), GPIO_FN(CPORT5), GPIO_FN(CPORT6),
  1026. GPIO_FN(CPORT7), GPIO_FN(CPORT8), GPIO_FN(CPORT9), GPIO_FN(CPORT10),
  1027. GPIO_FN(CPORT11), GPIO_FN(SIN2), GPIO_FN(CPORT12), GPIO_FN(XCTS2),
  1028. GPIO_FN(CPORT13), GPIO_FN(RFSPO4), GPIO_FN(CPORT14), GPIO_FN(RFSPO5),
  1029. GPIO_FN(CPORT15), GPIO_FN(CPORT16), GPIO_FN(CPORT17), GPIO_FN(SOUT2),
  1030. GPIO_FN(CPORT18), GPIO_FN(XRTS2), GPIO_FN(CPORT19), GPIO_FN(CPORT20),
  1031. GPIO_FN(RFSPO6), GPIO_FN(CPORT21), GPIO_FN(STATUS0), GPIO_FN(CPORT22),
  1032. GPIO_FN(STATUS1), GPIO_FN(CPORT23), GPIO_FN(STATUS2), GPIO_FN(RFSPO7),
  1033. GPIO_FN(MPORT0), GPIO_FN(MPORT1), GPIO_FN(B_SYNLD1), GPIO_FN(B_SYNLD2),
  1034. GPIO_FN(XMAINPS), GPIO_FN(XDIVPS), GPIO_FN(XIDRST), GPIO_FN(IDCLK),
  1035. GPIO_FN(IDIO), GPIO_FN(SOUT1), GPIO_FN(SCIFA4_TXD),
  1036. GPIO_FN(M02_BERDAT), GPIO_FN(SIN1), GPIO_FN(SCIFA4_RXD), GPIO_FN(XWUP),
  1037. GPIO_FN(XRTS1), GPIO_FN(SCIFA4_RTS), GPIO_FN(M03_BERCLK),
  1038. GPIO_FN(XCTS1), GPIO_FN(SCIFA4_CTS),
  1039. /* 49-2 (FN) */
  1040. GPIO_FN(HSU_IQ_AGC6), GPIO_FN(MFG2_IN2), GPIO_FN(MSIOF2_MCK0),
  1041. GPIO_FN(HSU_IQ_AGC5), GPIO_FN(MFG2_IN1), GPIO_FN(MSIOF2_MCK1),
  1042. GPIO_FN(HSU_IQ_AGC4), GPIO_FN(MSIOF2_RSYNC),
  1043. GPIO_FN(HSU_IQ_AGC3), GPIO_FN(MFG2_OUT1), GPIO_FN(MSIOF2_RSCK),
  1044. GPIO_FN(HSU_IQ_AGC2), GPIO_FN(PORT42_KEYOUT0),
  1045. GPIO_FN(HSU_IQ_AGC1), GPIO_FN(PORT43_KEYOUT1),
  1046. GPIO_FN(HSU_IQ_AGC0), GPIO_FN(PORT44_KEYOUT2),
  1047. GPIO_FN(HSU_IQ_AGC_ST), GPIO_FN(PORT45_KEYOUT3),
  1048. GPIO_FN(HSU_IQ_PDO), GPIO_FN(PORT46_KEYOUT4),
  1049. GPIO_FN(HSU_IQ_PYO), GPIO_FN(PORT47_KEYOUT5),
  1050. GPIO_FN(HSU_EN_TXMUX_G3MO), GPIO_FN(PORT48_KEYIN0),
  1051. GPIO_FN(HSU_I_TXMUX_G3MO), GPIO_FN(PORT49_KEYIN1),
  1052. GPIO_FN(HSU_Q_TXMUX_G3MO), GPIO_FN(PORT50_KEYIN2),
  1053. GPIO_FN(HSU_SYO), GPIO_FN(PORT51_MSIOF2_TSYNC),
  1054. GPIO_FN(HSU_SDO), GPIO_FN(PORT52_MSIOF2_TSCK),
  1055. GPIO_FN(HSU_TGTTI_G3MO), GPIO_FN(PORT53_MSIOF2_TXD),
  1056. GPIO_FN(B_TIME_STAMP), GPIO_FN(PORT54_MSIOF2_RXD),
  1057. GPIO_FN(HSU_SDI), GPIO_FN(PORT55_KEYIN3),
  1058. GPIO_FN(HSU_SCO), GPIO_FN(PORT56_KEYIN4),
  1059. GPIO_FN(HSU_DREQ), GPIO_FN(PORT57_KEYIN5),
  1060. GPIO_FN(HSU_DACK), GPIO_FN(PORT58_KEYIN6),
  1061. GPIO_FN(HSU_CLK61M), GPIO_FN(PORT59_MSIOF2_SS1),
  1062. GPIO_FN(HSU_XRST), GPIO_FN(PORT60_MSIOF2_SS2),
  1063. GPIO_FN(PCMCLKO), GPIO_FN(SYNC8KO), GPIO_FN(DNPCM_A), GPIO_FN(UPPCM_A),
  1064. GPIO_FN(XTALB1L),
  1065. GPIO_FN(GPS_AGC1), GPIO_FN(SCIFA0_RTS),
  1066. GPIO_FN(GPS_AGC2), GPIO_FN(SCIFA0_SCK),
  1067. GPIO_FN(GPS_AGC3), GPIO_FN(SCIFA0_TXD),
  1068. GPIO_FN(GPS_AGC4), GPIO_FN(SCIFA0_RXD),
  1069. GPIO_FN(GPS_PWRD), GPIO_FN(SCIFA0_CTS),
  1070. GPIO_FN(GPS_IM), GPIO_FN(GPS_IS), GPIO_FN(GPS_QM), GPIO_FN(GPS_QS),
  1071. GPIO_FN(SIUBOMC), GPIO_FN(TPU2TO0),
  1072. GPIO_FN(SIUCKB), GPIO_FN(TPU2TO1),
  1073. GPIO_FN(SIUBOLR), GPIO_FN(BBIF2_TSYNC), GPIO_FN(TPU2TO2),
  1074. GPIO_FN(SIUBOBT), GPIO_FN(BBIF2_TSCK), GPIO_FN(TPU2TO3),
  1075. GPIO_FN(SIUBOSLD), GPIO_FN(BBIF2_TXD), GPIO_FN(TPU3TO0),
  1076. GPIO_FN(SIUBILR), GPIO_FN(TPU3TO1),
  1077. GPIO_FN(SIUBIBT), GPIO_FN(TPU3TO2),
  1078. GPIO_FN(SIUBISLD), GPIO_FN(TPU3TO3),
  1079. GPIO_FN(NMI), GPIO_FN(TPU4TO0),
  1080. GPIO_FN(DNPCM_M), GPIO_FN(TPU4TO1), GPIO_FN(TPU4TO2), GPIO_FN(TPU4TO3),
  1081. GPIO_FN(IRQ_TMPB),
  1082. GPIO_FN(PWEN), GPIO_FN(MFG1_OUT1),
  1083. GPIO_FN(OVCN), GPIO_FN(MFG1_IN1),
  1084. GPIO_FN(OVCN2), GPIO_FN(MFG1_IN2),
  1085. /* 49-3 (FN) */
  1086. GPIO_FN(RFSPO1), GPIO_FN(RFSPO2), GPIO_FN(RFSPO3),
  1087. GPIO_FN(PORT93_VIO_CKO2),
  1088. GPIO_FN(USBTERM), GPIO_FN(EXTLP), GPIO_FN(IDIN),
  1089. GPIO_FN(SCIFA5_CTS), GPIO_FN(MFG0_IN1),
  1090. GPIO_FN(SCIFA5_RTS), GPIO_FN(MFG0_IN2),
  1091. GPIO_FN(SCIFA5_RXD),
  1092. GPIO_FN(SCIFA5_TXD),
  1093. GPIO_FN(SCIFA5_SCK), GPIO_FN(MFG0_OUT1),
  1094. GPIO_FN(A0_EA0), GPIO_FN(BS),
  1095. GPIO_FN(A14_EA14), GPIO_FN(PORT102_KEYOUT0),
  1096. GPIO_FN(A15_EA15), GPIO_FN(PORT103_KEYOUT1), GPIO_FN(DV_CLKOL),
  1097. GPIO_FN(A16_EA16), GPIO_FN(PORT104_KEYOUT2),
  1098. GPIO_FN(DV_VSYNCL), GPIO_FN(MSIOF0_SS1),
  1099. GPIO_FN(A17_EA17), GPIO_FN(PORT105_KEYOUT3),
  1100. GPIO_FN(DV_HSYNCL), GPIO_FN(MSIOF0_TSYNC),
  1101. GPIO_FN(A18_EA18), GPIO_FN(PORT106_KEYOUT4),
  1102. GPIO_FN(DV_DL0), GPIO_FN(MSIOF0_TSCK),
  1103. GPIO_FN(A19_EA19), GPIO_FN(PORT107_KEYOUT5),
  1104. GPIO_FN(DV_DL1), GPIO_FN(MSIOF0_TXD),
  1105. GPIO_FN(A20_EA20), GPIO_FN(PORT108_KEYIN0),
  1106. GPIO_FN(DV_DL2), GPIO_FN(MSIOF0_RSCK),
  1107. GPIO_FN(A21_EA21), GPIO_FN(PORT109_KEYIN1),
  1108. GPIO_FN(DV_DL3), GPIO_FN(MSIOF0_RSYNC),
  1109. GPIO_FN(A22_EA22), GPIO_FN(PORT110_KEYIN2),
  1110. GPIO_FN(DV_DL4), GPIO_FN(MSIOF0_MCK0),
  1111. GPIO_FN(A23_EA23), GPIO_FN(PORT111_KEYIN3),
  1112. GPIO_FN(DV_DL5), GPIO_FN(MSIOF0_MCK1),
  1113. GPIO_FN(A24_EA24), GPIO_FN(PORT112_KEYIN4),
  1114. GPIO_FN(DV_DL6), GPIO_FN(MSIOF0_RXD),
  1115. GPIO_FN(A25_EA25), GPIO_FN(PORT113_KEYIN5),
  1116. GPIO_FN(DV_DL7), GPIO_FN(MSIOF0_SS2),
  1117. GPIO_FN(A26), GPIO_FN(PORT113_KEYIN6), GPIO_FN(DV_CLKIL),
  1118. GPIO_FN(D0_ED0_NAF0), GPIO_FN(D1_ED1_NAF1), GPIO_FN(D2_ED2_NAF2),
  1119. GPIO_FN(D3_ED3_NAF3), GPIO_FN(D4_ED4_NAF4), GPIO_FN(D5_ED5_NAF5),
  1120. GPIO_FN(D6_ED6_NAF6), GPIO_FN(D7_ED7_NAF7), GPIO_FN(D8_ED8_NAF8),
  1121. GPIO_FN(D9_ED9_NAF9), GPIO_FN(D10_ED10_NAF10), GPIO_FN(D11_ED11_NAF11),
  1122. GPIO_FN(D12_ED12_NAF12), GPIO_FN(D13_ED13_NAF13),
  1123. GPIO_FN(D14_ED14_NAF14), GPIO_FN(D15_ED15_NAF15),
  1124. GPIO_FN(CS4), GPIO_FN(CS5A), GPIO_FN(CS5B), GPIO_FN(FCE1),
  1125. GPIO_FN(CS6B), GPIO_FN(XCS2), GPIO_FN(FCE0), GPIO_FN(CS6A),
  1126. GPIO_FN(DACK0), GPIO_FN(WAIT), GPIO_FN(DREQ0), GPIO_FN(RD_XRD),
  1127. GPIO_FN(A27), GPIO_FN(RDWR_XWE), GPIO_FN(WE0_XWR0_FWE),
  1128. GPIO_FN(WE1_XWR1), GPIO_FN(FRB), GPIO_FN(CKO),
  1129. GPIO_FN(NBRSTOUT), GPIO_FN(NBRST),
  1130. /* 49-4 (FN) */
  1131. GPIO_FN(RFSPO0), GPIO_FN(PORT146_VIO_CKO2), GPIO_FN(TSTMD),
  1132. GPIO_FN(VIO_VD), GPIO_FN(VIO_HD),
  1133. GPIO_FN(VIO_D0), GPIO_FN(VIO_D1), GPIO_FN(VIO_D2),
  1134. GPIO_FN(VIO_D3), GPIO_FN(VIO_D4), GPIO_FN(VIO_D5),
  1135. GPIO_FN(VIO_D6), GPIO_FN(VIO_D7), GPIO_FN(VIO_D8),
  1136. GPIO_FN(VIO_D9), GPIO_FN(VIO_D10), GPIO_FN(VIO_D11),
  1137. GPIO_FN(VIO_D12), GPIO_FN(VIO_D13), GPIO_FN(VIO_D14),
  1138. GPIO_FN(VIO_D15), GPIO_FN(VIO_CLK), GPIO_FN(VIO_FIELD),
  1139. GPIO_FN(VIO_CKO),
  1140. GPIO_FN(MFG3_IN1), GPIO_FN(MFG3_IN2),
  1141. GPIO_FN(M9_SLCD_A01), GPIO_FN(MFG3_OUT1), GPIO_FN(TPU0TO0),
  1142. GPIO_FN(M10_SLCD_CK1), GPIO_FN(MFG4_IN1), GPIO_FN(TPU0TO1),
  1143. GPIO_FN(M11_SLCD_SO1), GPIO_FN(MFG4_IN2), GPIO_FN(TPU0TO2),
  1144. GPIO_FN(M12_SLCD_CE1), GPIO_FN(MFG4_OUT1), GPIO_FN(TPU0TO3),
  1145. GPIO_FN(LCDD0), GPIO_FN(PORT175_KEYOUT0), GPIO_FN(DV_D0),
  1146. GPIO_FN(SIUCKA), GPIO_FN(MFG0_OUT2),
  1147. GPIO_FN(LCDD1), GPIO_FN(PORT176_KEYOUT1), GPIO_FN(DV_D1),
  1148. GPIO_FN(SIUAOLR), GPIO_FN(BBIF2_TSYNC1),
  1149. GPIO_FN(LCDD2), GPIO_FN(PORT177_KEYOUT2), GPIO_FN(DV_D2),
  1150. GPIO_FN(SIUAOBT), GPIO_FN(BBIF2_TSCK1),
  1151. GPIO_FN(LCDD3), GPIO_FN(PORT178_KEYOUT3), GPIO_FN(DV_D3),
  1152. GPIO_FN(SIUAOSLD), GPIO_FN(BBIF2_TXD1),
  1153. GPIO_FN(LCDD4), GPIO_FN(PORT179_KEYOUT4), GPIO_FN(DV_D4),
  1154. GPIO_FN(SIUAISPD), GPIO_FN(MFG1_OUT2),
  1155. GPIO_FN(LCDD5), GPIO_FN(PORT180_KEYOUT5), GPIO_FN(DV_D5),
  1156. GPIO_FN(SIUAILR), GPIO_FN(MFG2_OUT2),
  1157. GPIO_FN(LCDD6), GPIO_FN(DV_D6),
  1158. GPIO_FN(SIUAIBT), GPIO_FN(MFG3_OUT2), GPIO_FN(XWR2),
  1159. GPIO_FN(LCDD7), GPIO_FN(DV_D7),
  1160. GPIO_FN(SIUAISLD), GPIO_FN(MFG4_OUT2), GPIO_FN(XWR3),
  1161. GPIO_FN(LCDD8), GPIO_FN(DV_D8), GPIO_FN(D16), GPIO_FN(ED16),
  1162. GPIO_FN(LCDD9), GPIO_FN(DV_D9), GPIO_FN(D17), GPIO_FN(ED17),
  1163. GPIO_FN(LCDD10), GPIO_FN(DV_D10), GPIO_FN(D18), GPIO_FN(ED18),
  1164. GPIO_FN(LCDD11), GPIO_FN(DV_D11), GPIO_FN(D19), GPIO_FN(ED19),
  1165. GPIO_FN(LCDD12), GPIO_FN(DV_D12), GPIO_FN(D20), GPIO_FN(ED20),
  1166. GPIO_FN(LCDD13), GPIO_FN(DV_D13), GPIO_FN(D21), GPIO_FN(ED21),
  1167. GPIO_FN(LCDD14), GPIO_FN(DV_D14), GPIO_FN(D22), GPIO_FN(ED22),
  1168. GPIO_FN(LCDD15), GPIO_FN(DV_D15), GPIO_FN(D23), GPIO_FN(ED23),
  1169. GPIO_FN(LCDD16), GPIO_FN(DV_HSYNC), GPIO_FN(D24), GPIO_FN(ED24),
  1170. GPIO_FN(LCDD17), GPIO_FN(DV_VSYNC), GPIO_FN(D25), GPIO_FN(ED25),
  1171. GPIO_FN(LCDD18), GPIO_FN(DREQ2), GPIO_FN(MSIOF0L_TSCK),
  1172. GPIO_FN(D26), GPIO_FN(ED26),
  1173. GPIO_FN(LCDD19), GPIO_FN(MSIOF0L_TSYNC),
  1174. GPIO_FN(D27), GPIO_FN(ED27),
  1175. GPIO_FN(LCDD20), GPIO_FN(TS_SPSYNC1), GPIO_FN(MSIOF0L_MCK0),
  1176. GPIO_FN(D28), GPIO_FN(ED28),
  1177. GPIO_FN(LCDD21), GPIO_FN(TS_SDAT1), GPIO_FN(MSIOF0L_MCK1),
  1178. GPIO_FN(D29), GPIO_FN(ED29),
  1179. GPIO_FN(LCDD22), GPIO_FN(TS_SDEN1), GPIO_FN(MSIOF0L_SS1),
  1180. GPIO_FN(D30), GPIO_FN(ED30),
  1181. GPIO_FN(LCDD23), GPIO_FN(TS_SCK1), GPIO_FN(MSIOF0L_SS2),
  1182. GPIO_FN(D31), GPIO_FN(ED31),
  1183. GPIO_FN(LCDDCK), GPIO_FN(LCDWR), GPIO_FN(DV_CKO), GPIO_FN(SIUAOSPD),
  1184. GPIO_FN(LCDRD), GPIO_FN(DACK2), GPIO_FN(MSIOF0L_RSYNC),
  1185. /* 49-5 (FN) */
  1186. GPIO_FN(LCDHSYN), GPIO_FN(LCDCS), GPIO_FN(LCDCS2), GPIO_FN(DACK3),
  1187. GPIO_FN(LCDDISP), GPIO_FN(LCDRS), GPIO_FN(DREQ3), GPIO_FN(MSIOF0L_RSCK),
  1188. GPIO_FN(LCDCSYN), GPIO_FN(LCDCSYN2), GPIO_FN(DV_CKI),
  1189. GPIO_FN(LCDLCLK), GPIO_FN(DREQ1), GPIO_FN(MSIOF0L_RXD),
  1190. GPIO_FN(LCDDON), GPIO_FN(LCDDON2), GPIO_FN(DACK1), GPIO_FN(MSIOF0L_TXD),
  1191. GPIO_FN(VIO_DR0), GPIO_FN(VIO_DR1), GPIO_FN(VIO_DR2), GPIO_FN(VIO_DR3),
  1192. GPIO_FN(VIO_DR4), GPIO_FN(VIO_DR5), GPIO_FN(VIO_DR6), GPIO_FN(VIO_DR7),
  1193. GPIO_FN(VIO_VDR), GPIO_FN(VIO_HDR),
  1194. GPIO_FN(VIO_CLKR), GPIO_FN(VIO_CKOR),
  1195. GPIO_FN(SCIFA1_TXD), GPIO_FN(GPS_PGFA0),
  1196. GPIO_FN(SCIFA1_SCK), GPIO_FN(GPS_PGFA1),
  1197. GPIO_FN(SCIFA1_RTS), GPIO_FN(GPS_EPPSINMON),
  1198. GPIO_FN(SCIFA1_RXD), GPIO_FN(SCIFA1_CTS),
  1199. GPIO_FN(MSIOF1_TXD), GPIO_FN(SCIFA1_TXD2), GPIO_FN(GPS_TXD),
  1200. GPIO_FN(MSIOF1_TSYNC), GPIO_FN(SCIFA1_CTS2), GPIO_FN(I2C_SDA2),
  1201. GPIO_FN(MSIOF1_TSCK), GPIO_FN(SCIFA1_SCK2),
  1202. GPIO_FN(MSIOF1_RXD), GPIO_FN(SCIFA1_RXD2), GPIO_FN(GPS_RXD),
  1203. GPIO_FN(MSIOF1_RSCK), GPIO_FN(SCIFA1_RTS2),
  1204. GPIO_FN(MSIOF1_RSYNC), GPIO_FN(I2C_SCL2),
  1205. GPIO_FN(MSIOF1_MCK0), GPIO_FN(MSIOF1_MCK1),
  1206. GPIO_FN(MSIOF1_SS1), GPIO_FN(EDBGREQ3),
  1207. GPIO_FN(MSIOF1_SS2),
  1208. GPIO_FN(PORT236_IROUT), GPIO_FN(IRDA_OUT),
  1209. GPIO_FN(IRDA_IN), GPIO_FN(IRDA_FIRSEL),
  1210. GPIO_FN(TPU1TO0), GPIO_FN(TS_SPSYNC3),
  1211. GPIO_FN(TPU1TO1), GPIO_FN(TS_SDAT3),
  1212. GPIO_FN(TPU1TO2), GPIO_FN(TS_SDEN3), GPIO_FN(PORT241_MSIOF2_SS1),
  1213. GPIO_FN(TPU1TO3), GPIO_FN(PORT242_MSIOF2_TSCK),
  1214. GPIO_FN(M13_BSW), GPIO_FN(PORT243_MSIOF2_TSYNC),
  1215. GPIO_FN(M14_GSW), GPIO_FN(PORT244_MSIOF2_TXD),
  1216. GPIO_FN(PORT245_IROUT), GPIO_FN(M15_RSW),
  1217. GPIO_FN(SOUT3), GPIO_FN(SCIFA2_TXD1),
  1218. GPIO_FN(SIN3), GPIO_FN(SCIFA2_RXD1),
  1219. GPIO_FN(XRTS3), GPIO_FN(SCIFA2_RTS1), GPIO_FN(PORT248_MSIOF2_SS2),
  1220. GPIO_FN(XCTS3), GPIO_FN(SCIFA2_CTS1), GPIO_FN(PORT249_MSIOF2_RXD),
  1221. GPIO_FN(DINT), GPIO_FN(SCIFA2_SCK1), GPIO_FN(TS_SCK3),
  1222. GPIO_FN(SDHICLK0), GPIO_FN(TCK2),
  1223. GPIO_FN(SDHICD0),
  1224. GPIO_FN(SDHID0_0), GPIO_FN(TMS2),
  1225. GPIO_FN(SDHID0_1), GPIO_FN(TDO2),
  1226. GPIO_FN(SDHID0_2), GPIO_FN(TDI2),
  1227. GPIO_FN(SDHID0_3), GPIO_FN(RTCK2),
  1228. /* 49-6 (FN) */
  1229. GPIO_FN(SDHICMD0), GPIO_FN(TRST2),
  1230. GPIO_FN(SDHIWP0), GPIO_FN(EDBGREQ2),
  1231. GPIO_FN(SDHICLK1), GPIO_FN(TCK3),
  1232. GPIO_FN(SDHID1_0), GPIO_FN(M11_SLCD_SO2),
  1233. GPIO_FN(TS_SPSYNC2), GPIO_FN(TMS3),
  1234. GPIO_FN(SDHID1_1), GPIO_FN(M9_SLCD_AO2),
  1235. GPIO_FN(TS_SDAT2), GPIO_FN(TDO3),
  1236. GPIO_FN(SDHID1_2), GPIO_FN(M10_SLCD_CK2),
  1237. GPIO_FN(TS_SDEN2), GPIO_FN(TDI3),
  1238. GPIO_FN(SDHID1_3), GPIO_FN(M12_SLCD_CE2),
  1239. GPIO_FN(TS_SCK2), GPIO_FN(RTCK3),
  1240. GPIO_FN(SDHICMD1), GPIO_FN(TRST3),
  1241. GPIO_FN(SDHICLK2), GPIO_FN(SCIFB_SCK),
  1242. GPIO_FN(SDHID2_0), GPIO_FN(SCIFB_TXD),
  1243. GPIO_FN(SDHID2_1), GPIO_FN(SCIFB_CTS),
  1244. GPIO_FN(SDHID2_2), GPIO_FN(SCIFB_RXD),
  1245. GPIO_FN(SDHID2_3), GPIO_FN(SCIFB_RTS),
  1246. GPIO_FN(SDHICMD2),
  1247. GPIO_FN(RESETOUTS),
  1248. GPIO_FN(DIVLOCK),
  1249. };
  1250. static struct pinmux_cfg_reg pinmux_config_regs[] = {
  1251. PORTCR(0, 0xe6050000), /* PORT0CR */
  1252. PORTCR(1, 0xe6050001), /* PORT1CR */
  1253. PORTCR(2, 0xe6050002), /* PORT2CR */
  1254. PORTCR(3, 0xe6050003), /* PORT3CR */
  1255. PORTCR(4, 0xe6050004), /* PORT4CR */
  1256. PORTCR(5, 0xe6050005), /* PORT5CR */
  1257. PORTCR(6, 0xe6050006), /* PORT6CR */
  1258. PORTCR(7, 0xe6050007), /* PORT7CR */
  1259. PORTCR(8, 0xe6050008), /* PORT8CR */
  1260. PORTCR(9, 0xe6050009), /* PORT9CR */
  1261. PORTCR(10, 0xe605000a), /* PORT10CR */
  1262. PORTCR(11, 0xe605000b), /* PORT11CR */
  1263. PORTCR(12, 0xe605000c), /* PORT12CR */
  1264. PORTCR(13, 0xe605000d), /* PORT13CR */
  1265. PORTCR(14, 0xe605000e), /* PORT14CR */
  1266. PORTCR(15, 0xe605000f), /* PORT15CR */
  1267. PORTCR(16, 0xe6050010), /* PORT16CR */
  1268. PORTCR(17, 0xe6050011), /* PORT17CR */
  1269. PORTCR(18, 0xe6050012), /* PORT18CR */
  1270. PORTCR(19, 0xe6050013), /* PORT19CR */
  1271. PORTCR(20, 0xe6050014), /* PORT20CR */
  1272. PORTCR(21, 0xe6050015), /* PORT21CR */
  1273. PORTCR(22, 0xe6050016), /* PORT22CR */
  1274. PORTCR(23, 0xe6050017), /* PORT23CR */
  1275. PORTCR(24, 0xe6050018), /* PORT24CR */
  1276. PORTCR(25, 0xe6050019), /* PORT25CR */
  1277. PORTCR(26, 0xe605001a), /* PORT26CR */
  1278. PORTCR(27, 0xe605001b), /* PORT27CR */
  1279. PORTCR(28, 0xe605001c), /* PORT28CR */
  1280. PORTCR(29, 0xe605001d), /* PORT29CR */
  1281. PORTCR(30, 0xe605001e), /* PORT30CR */
  1282. PORTCR(31, 0xe605001f), /* PORT31CR */
  1283. PORTCR(32, 0xe6050020), /* PORT32CR */
  1284. PORTCR(33, 0xe6050021), /* PORT33CR */
  1285. PORTCR(34, 0xe6050022), /* PORT34CR */
  1286. PORTCR(35, 0xe6050023), /* PORT35CR */
  1287. PORTCR(36, 0xe6050024), /* PORT36CR */
  1288. PORTCR(37, 0xe6050025), /* PORT37CR */
  1289. PORTCR(38, 0xe6050026), /* PORT38CR */
  1290. PORTCR(39, 0xe6050027), /* PORT39CR */
  1291. PORTCR(40, 0xe6050028), /* PORT40CR */
  1292. PORTCR(41, 0xe6050029), /* PORT41CR */
  1293. PORTCR(42, 0xe605002a), /* PORT42CR */
  1294. PORTCR(43, 0xe605002b), /* PORT43CR */
  1295. PORTCR(44, 0xe605002c), /* PORT44CR */
  1296. PORTCR(45, 0xe605002d), /* PORT45CR */
  1297. PORTCR(46, 0xe605002e), /* PORT46CR */
  1298. PORTCR(47, 0xe605002f), /* PORT47CR */
  1299. PORTCR(48, 0xe6050030), /* PORT48CR */
  1300. PORTCR(49, 0xe6050031), /* PORT49CR */
  1301. PORTCR(50, 0xe6050032), /* PORT50CR */
  1302. PORTCR(51, 0xe6050033), /* PORT51CR */
  1303. PORTCR(52, 0xe6050034), /* PORT52CR */
  1304. PORTCR(53, 0xe6050035), /* PORT53CR */
  1305. PORTCR(54, 0xe6050036), /* PORT54CR */
  1306. PORTCR(55, 0xe6050037), /* PORT55CR */
  1307. PORTCR(56, 0xe6050038), /* PORT56CR */
  1308. PORTCR(57, 0xe6050039), /* PORT57CR */
  1309. PORTCR(58, 0xe605003a), /* PORT58CR */
  1310. PORTCR(59, 0xe605003b), /* PORT59CR */
  1311. PORTCR(60, 0xe605003c), /* PORT60CR */
  1312. PORTCR(61, 0xe605003d), /* PORT61CR */
  1313. PORTCR(62, 0xe605003e), /* PORT62CR */
  1314. PORTCR(63, 0xe605003f), /* PORT63CR */
  1315. PORTCR(64, 0xe6050040), /* PORT64CR */
  1316. PORTCR(65, 0xe6050041), /* PORT65CR */
  1317. PORTCR(66, 0xe6050042), /* PORT66CR */
  1318. PORTCR(67, 0xe6050043), /* PORT67CR */
  1319. PORTCR(68, 0xe6050044), /* PORT68CR */
  1320. PORTCR(69, 0xe6050045), /* PORT69CR */
  1321. PORTCR(70, 0xe6050046), /* PORT70CR */
  1322. PORTCR(71, 0xe6050047), /* PORT71CR */
  1323. PORTCR(72, 0xe6050048), /* PORT72CR */
  1324. PORTCR(73, 0xe6050049), /* PORT73CR */
  1325. PORTCR(74, 0xe605004a), /* PORT74CR */
  1326. PORTCR(75, 0xe605004b), /* PORT75CR */
  1327. PORTCR(76, 0xe605004c), /* PORT76CR */
  1328. PORTCR(77, 0xe605004d), /* PORT77CR */
  1329. PORTCR(78, 0xe605004e), /* PORT78CR */
  1330. PORTCR(79, 0xe605004f), /* PORT79CR */
  1331. PORTCR(80, 0xe6050050), /* PORT80CR */
  1332. PORTCR(81, 0xe6050051), /* PORT81CR */
  1333. PORTCR(82, 0xe6050052), /* PORT82CR */
  1334. PORTCR(83, 0xe6050053), /* PORT83CR */
  1335. PORTCR(84, 0xe6050054), /* PORT84CR */
  1336. PORTCR(85, 0xe6050055), /* PORT85CR */
  1337. PORTCR(86, 0xe6050056), /* PORT86CR */
  1338. PORTCR(87, 0xe6050057), /* PORT87CR */
  1339. PORTCR(88, 0xe6051058), /* PORT88CR */
  1340. PORTCR(89, 0xe6051059), /* PORT89CR */
  1341. PORTCR(90, 0xe605105a), /* PORT90CR */
  1342. PORTCR(91, 0xe605105b), /* PORT91CR */
  1343. PORTCR(92, 0xe605105c), /* PORT92CR */
  1344. PORTCR(93, 0xe605105d), /* PORT93CR */
  1345. PORTCR(94, 0xe605105e), /* PORT94CR */
  1346. PORTCR(95, 0xe605105f), /* PORT95CR */
  1347. PORTCR(96, 0xe6051060), /* PORT96CR */
  1348. PORTCR(97, 0xe6051061), /* PORT97CR */
  1349. PORTCR(98, 0xe6051062), /* PORT98CR */
  1350. PORTCR(99, 0xe6051063), /* PORT99CR */
  1351. PORTCR(100, 0xe6051064), /* PORT100CR */
  1352. PORTCR(101, 0xe6051065), /* PORT101CR */
  1353. PORTCR(102, 0xe6051066), /* PORT102CR */
  1354. PORTCR(103, 0xe6051067), /* PORT103CR */
  1355. PORTCR(104, 0xe6051068), /* PORT104CR */
  1356. PORTCR(105, 0xe6051069), /* PORT105CR */
  1357. PORTCR(106, 0xe605106a), /* PORT106CR */
  1358. PORTCR(107, 0xe605106b), /* PORT107CR */
  1359. PORTCR(108, 0xe605106c), /* PORT108CR */
  1360. PORTCR(109, 0xe605106d), /* PORT109CR */
  1361. PORTCR(110, 0xe605106e), /* PORT110CR */
  1362. PORTCR(111, 0xe605106f), /* PORT111CR */
  1363. PORTCR(112, 0xe6051070), /* PORT112CR */
  1364. PORTCR(113, 0xe6051071), /* PORT113CR */
  1365. PORTCR(114, 0xe6051072), /* PORT114CR */
  1366. PORTCR(115, 0xe6051073), /* PORT115CR */
  1367. PORTCR(116, 0xe6051074), /* PORT116CR */
  1368. PORTCR(117, 0xe6051075), /* PORT117CR */
  1369. PORTCR(118, 0xe6051076), /* PORT118CR */
  1370. PORTCR(119, 0xe6051077), /* PORT119CR */
  1371. PORTCR(120, 0xe6051078), /* PORT120CR */
  1372. PORTCR(121, 0xe6051079), /* PORT121CR */
  1373. PORTCR(122, 0xe605107a), /* PORT122CR */
  1374. PORTCR(123, 0xe605107b), /* PORT123CR */
  1375. PORTCR(124, 0xe605107c), /* PORT124CR */
  1376. PORTCR(125, 0xe605107d), /* PORT125CR */
  1377. PORTCR(126, 0xe605107e), /* PORT126CR */
  1378. PORTCR(127, 0xe605107f), /* PORT127CR */
  1379. PORTCR(128, 0xe6051080), /* PORT128CR */
  1380. PORTCR(129, 0xe6051081), /* PORT129CR */
  1381. PORTCR(130, 0xe6051082), /* PORT130CR */
  1382. PORTCR(131, 0xe6051083), /* PORT131CR */
  1383. PORTCR(132, 0xe6051084), /* PORT132CR */
  1384. PORTCR(133, 0xe6051085), /* PORT133CR */
  1385. PORTCR(134, 0xe6051086), /* PORT134CR */
  1386. PORTCR(135, 0xe6051087), /* PORT135CR */
  1387. PORTCR(136, 0xe6051088), /* PORT136CR */
  1388. PORTCR(137, 0xe6051089), /* PORT137CR */
  1389. PORTCR(138, 0xe605108a), /* PORT138CR */
  1390. PORTCR(139, 0xe605108b), /* PORT139CR */
  1391. PORTCR(140, 0xe605108c), /* PORT140CR */
  1392. PORTCR(141, 0xe605108d), /* PORT141CR */
  1393. PORTCR(142, 0xe605108e), /* PORT142CR */
  1394. PORTCR(143, 0xe605108f), /* PORT143CR */
  1395. PORTCR(144, 0xe6051090), /* PORT144CR */
  1396. PORTCR(145, 0xe6051091), /* PORT145CR */
  1397. PORTCR(146, 0xe6051092), /* PORT146CR */
  1398. PORTCR(147, 0xe6051093), /* PORT147CR */
  1399. PORTCR(148, 0xe6051094), /* PORT148CR */
  1400. PORTCR(149, 0xe6051095), /* PORT149CR */
  1401. PORTCR(150, 0xe6051096), /* PORT150CR */
  1402. PORTCR(151, 0xe6051097), /* PORT151CR */
  1403. PORTCR(152, 0xe6051098), /* PORT152CR */
  1404. PORTCR(153, 0xe6051099), /* PORT153CR */
  1405. PORTCR(154, 0xe605109a), /* PORT154CR */
  1406. PORTCR(155, 0xe605109b), /* PORT155CR */
  1407. PORTCR(156, 0xe605109c), /* PORT156CR */
  1408. PORTCR(157, 0xe605109d), /* PORT157CR */
  1409. PORTCR(158, 0xe605109e), /* PORT158CR */
  1410. PORTCR(159, 0xe605109f), /* PORT159CR */
  1411. PORTCR(160, 0xe60510a0), /* PORT160CR */
  1412. PORTCR(161, 0xe60510a1), /* PORT161CR */
  1413. PORTCR(162, 0xe60510a2), /* PORT162CR */
  1414. PORTCR(163, 0xe60510a3), /* PORT163CR */
  1415. PORTCR(164, 0xe60510a4), /* PORT164CR */
  1416. PORTCR(165, 0xe60510a5), /* PORT165CR */
  1417. PORTCR(166, 0xe60510a6), /* PORT166CR */
  1418. PORTCR(167, 0xe60510a7), /* PORT167CR */
  1419. PORTCR(168, 0xe60510a8), /* PORT168CR */
  1420. PORTCR(169, 0xe60510a9), /* PORT169CR */
  1421. PORTCR(170, 0xe60510aa), /* PORT170CR */
  1422. PORTCR(171, 0xe60510ab), /* PORT171CR */
  1423. PORTCR(172, 0xe60510ac), /* PORT172CR */
  1424. PORTCR(173, 0xe60510ad), /* PORT173CR */
  1425. PORTCR(174, 0xe60510ae), /* PORT174CR */
  1426. PORTCR(175, 0xe60520af), /* PORT175CR */
  1427. PORTCR(176, 0xe60520b0), /* PORT176CR */
  1428. PORTCR(177, 0xe60520b1), /* PORT177CR */
  1429. PORTCR(178, 0xe60520b2), /* PORT178CR */
  1430. PORTCR(179, 0xe60520b3), /* PORT179CR */
  1431. PORTCR(180, 0xe60520b4), /* PORT180CR */
  1432. PORTCR(181, 0xe60520b5), /* PORT181CR */
  1433. PORTCR(182, 0xe60520b6), /* PORT182CR */
  1434. PORTCR(183, 0xe60520b7), /* PORT183CR */
  1435. PORTCR(184, 0xe60520b8), /* PORT184CR */
  1436. PORTCR(185, 0xe60520b9), /* PORT185CR */
  1437. PORTCR(186, 0xe60520ba), /* PORT186CR */
  1438. PORTCR(187, 0xe60520bb), /* PORT187CR */
  1439. PORTCR(188, 0xe60520bc), /* PORT188CR */
  1440. PORTCR(189, 0xe60520bd), /* PORT189CR */
  1441. PORTCR(190, 0xe60520be), /* PORT190CR */
  1442. PORTCR(191, 0xe60520bf), /* PORT191CR */
  1443. PORTCR(192, 0xe60520c0), /* PORT192CR */
  1444. PORTCR(193, 0xe60520c1), /* PORT193CR */
  1445. PORTCR(194, 0xe60520c2), /* PORT194CR */
  1446. PORTCR(195, 0xe60520c3), /* PORT195CR */
  1447. PORTCR(196, 0xe60520c4), /* PORT196CR */
  1448. PORTCR(197, 0xe60520c5), /* PORT197CR */
  1449. PORTCR(198, 0xe60520c6), /* PORT198CR */
  1450. PORTCR(199, 0xe60520c7), /* PORT199CR */
  1451. PORTCR(200, 0xe60520c8), /* PORT200CR */
  1452. PORTCR(201, 0xe60520c9), /* PORT201CR */
  1453. PORTCR(202, 0xe60520ca), /* PORT202CR */
  1454. PORTCR(203, 0xe60520cb), /* PORT203CR */
  1455. PORTCR(204, 0xe60520cc), /* PORT204CR */
  1456. PORTCR(205, 0xe60520cd), /* PORT205CR */
  1457. PORTCR(206, 0xe60520ce), /* PORT206CR */
  1458. PORTCR(207, 0xe60520cf), /* PORT207CR */
  1459. PORTCR(208, 0xe60520d0), /* PORT208CR */
  1460. PORTCR(209, 0xe60520d1), /* PORT209CR */
  1461. PORTCR(210, 0xe60520d2), /* PORT210CR */
  1462. PORTCR(211, 0xe60520d3), /* PORT211CR */
  1463. PORTCR(212, 0xe60520d4), /* PORT212CR */
  1464. PORTCR(213, 0xe60520d5), /* PORT213CR */
  1465. PORTCR(214, 0xe60520d6), /* PORT214CR */
  1466. PORTCR(215, 0xe60520d7), /* PORT215CR */
  1467. PORTCR(216, 0xe60520d8), /* PORT216CR */
  1468. PORTCR(217, 0xe60520d9), /* PORT217CR */
  1469. PORTCR(218, 0xe60520da), /* PORT218CR */
  1470. PORTCR(219, 0xe60520db), /* PORT219CR */
  1471. PORTCR(220, 0xe60520dc), /* PORT220CR */
  1472. PORTCR(221, 0xe60520dd), /* PORT221CR */
  1473. PORTCR(222, 0xe60520de), /* PORT222CR */
  1474. PORTCR(223, 0xe60520df), /* PORT223CR */
  1475. PORTCR(224, 0xe60520e0), /* PORT224CR */
  1476. PORTCR(225, 0xe60520e1), /* PORT225CR */
  1477. PORTCR(226, 0xe60520e2), /* PORT226CR */
  1478. PORTCR(227, 0xe60520e3), /* PORT227CR */
  1479. PORTCR(228, 0xe60520e4), /* PORT228CR */
  1480. PORTCR(229, 0xe60520e5), /* PORT229CR */
  1481. PORTCR(230, 0xe60520e6), /* PORT230CR */
  1482. PORTCR(231, 0xe60520e7), /* PORT231CR */
  1483. PORTCR(232, 0xe60520e8), /* PORT232CR */
  1484. PORTCR(233, 0xe60520e9), /* PORT233CR */
  1485. PORTCR(234, 0xe60520ea), /* PORT234CR */
  1486. PORTCR(235, 0xe60520eb), /* PORT235CR */
  1487. PORTCR(236, 0xe60530ec), /* PORT236CR */
  1488. PORTCR(237, 0xe60530ed), /* PORT237CR */
  1489. PORTCR(238, 0xe60530ee), /* PORT238CR */
  1490. PORTCR(239, 0xe60530ef), /* PORT239CR */
  1491. PORTCR(240, 0xe60530f0), /* PORT240CR */
  1492. PORTCR(241, 0xe60530f1), /* PORT241CR */
  1493. PORTCR(242, 0xe60530f2), /* PORT242CR */
  1494. PORTCR(243, 0xe60530f3), /* PORT243CR */
  1495. PORTCR(244, 0xe60530f4), /* PORT244CR */
  1496. PORTCR(245, 0xe60530f5), /* PORT245CR */
  1497. PORTCR(246, 0xe60530f6), /* PORT246CR */
  1498. PORTCR(247, 0xe60530f7), /* PORT247CR */
  1499. PORTCR(248, 0xe60530f8), /* PORT248CR */
  1500. PORTCR(249, 0xe60530f9), /* PORT249CR */
  1501. PORTCR(250, 0xe60530fa), /* PORT250CR */
  1502. PORTCR(251, 0xe60530fb), /* PORT251CR */
  1503. PORTCR(252, 0xe60530fc), /* PORT252CR */
  1504. PORTCR(253, 0xe60530fd), /* PORT253CR */
  1505. PORTCR(254, 0xe60530fe), /* PORT254CR */
  1506. PORTCR(255, 0xe60530ff), /* PORT255CR */
  1507. PORTCR(256, 0xe6053100), /* PORT256CR */
  1508. PORTCR(257, 0xe6053101), /* PORT257CR */
  1509. PORTCR(258, 0xe6053102), /* PORT258CR */
  1510. PORTCR(259, 0xe6053103), /* PORT259CR */
  1511. PORTCR(260, 0xe6053104), /* PORT260CR */
  1512. PORTCR(261, 0xe6053105), /* PORT261CR */
  1513. PORTCR(262, 0xe6053106), /* PORT262CR */
  1514. PORTCR(263, 0xe6053107), /* PORT263CR */
  1515. PORTCR(264, 0xe6053108), /* PORT264CR */
  1516. PORTCR(265, 0xe6053109), /* PORT265CR */
  1517. PORTCR(266, 0xe605310a), /* PORT266CR */
  1518. PORTCR(267, 0xe605310b), /* PORT267CR */
  1519. PORTCR(268, 0xe605310c), /* PORT268CR */
  1520. PORTCR(269, 0xe605310d), /* PORT269CR */
  1521. PORTCR(270, 0xe605310e), /* PORT270CR */
  1522. PORTCR(271, 0xe605310f), /* PORT271CR */
  1523. PORTCR(272, 0xe6053110), /* PORT272CR */
  1524. { PINMUX_CFG_REG("MSELBCR", 0xe6058024, 32, 1) {
  1525. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1526. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1527. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1528. 0, 0,
  1529. 0, 0,
  1530. 0, 0,
  1531. 0, 0,
  1532. 0, 0,
  1533. MSELBCR_MSEL2_0, MSELBCR_MSEL2_1,
  1534. 0, 0,
  1535. 0, 0 }
  1536. },
  1537. { },
  1538. };
  1539. static struct pinmux_data_reg pinmux_data_regs[] = {
  1540. { PINMUX_DATA_REG("PORTL031_000DR", 0xe6054000, 32) {
  1541. PORT31_DATA, PORT30_DATA, PORT29_DATA, PORT28_DATA,
  1542. PORT27_DATA, PORT26_DATA, PORT25_DATA, PORT24_DATA,
  1543. PORT23_DATA, PORT22_DATA, PORT21_DATA, PORT20_DATA,
  1544. PORT19_DATA, PORT18_DATA, PORT17_DATA, PORT16_DATA,
  1545. PORT15_DATA, PORT14_DATA, PORT13_DATA, PORT12_DATA,
  1546. PORT11_DATA, PORT10_DATA, PORT9_DATA, PORT8_DATA,
  1547. PORT7_DATA, PORT6_DATA, PORT5_DATA, PORT4_DATA,
  1548. PORT3_DATA, PORT2_DATA, PORT1_DATA, PORT0_DATA }
  1549. },
  1550. { PINMUX_DATA_REG("PORTL063_032DR", 0xe6054004, 32) {
  1551. PORT63_DATA, PORT62_DATA, PORT61_DATA, PORT60_DATA,
  1552. PORT59_DATA, PORT58_DATA, PORT57_DATA, PORT56_DATA,
  1553. PORT55_DATA, PORT54_DATA, PORT53_DATA, PORT52_DATA,
  1554. PORT51_DATA, PORT50_DATA, PORT49_DATA, PORT48_DATA,
  1555. PORT47_DATA, PORT46_DATA, PORT45_DATA, PORT44_DATA,
  1556. PORT43_DATA, PORT42_DATA, PORT41_DATA, PORT40_DATA,
  1557. PORT39_DATA, PORT38_DATA, PORT37_DATA, PORT36_DATA,
  1558. PORT35_DATA, PORT34_DATA, PORT33_DATA, PORT32_DATA }
  1559. },
  1560. { PINMUX_DATA_REG("PORTL095_064DR", 0xe6054008, 32) {
  1561. PORT95_DATA, PORT94_DATA, PORT93_DATA, PORT92_DATA,
  1562. PORT91_DATA, PORT90_DATA, PORT89_DATA, PORT88_DATA,
  1563. PORT87_DATA, PORT86_DATA, PORT85_DATA, PORT84_DATA,
  1564. PORT83_DATA, PORT82_DATA, PORT81_DATA, PORT80_DATA,
  1565. PORT79_DATA, PORT78_DATA, PORT77_DATA, PORT76_DATA,
  1566. PORT75_DATA, PORT74_DATA, PORT73_DATA, PORT72_DATA,
  1567. PORT71_DATA, PORT70_DATA, PORT69_DATA, PORT68_DATA,
  1568. PORT67_DATA, PORT66_DATA, PORT65_DATA, PORT64_DATA }
  1569. },
  1570. { PINMUX_DATA_REG("PORTD127_096DR", 0xe6055004, 32) {
  1571. PORT127_DATA, PORT126_DATA, PORT125_DATA, PORT124_DATA,
  1572. PORT123_DATA, PORT122_DATA, PORT121_DATA, PORT120_DATA,
  1573. PORT119_DATA, PORT118_DATA, PORT117_DATA, PORT116_DATA,
  1574. PORT115_DATA, PORT114_DATA, PORT113_DATA, PORT112_DATA,
  1575. PORT111_DATA, PORT110_DATA, PORT109_DATA, PORT108_DATA,
  1576. PORT107_DATA, PORT106_DATA, PORT105_DATA, PORT104_DATA,
  1577. PORT103_DATA, PORT102_DATA, PORT101_DATA, PORT100_DATA,
  1578. PORT99_DATA, PORT98_DATA, PORT97_DATA, PORT96_DATA }
  1579. },
  1580. { PINMUX_DATA_REG("PORTD159_128DR", 0xe6055008, 32) {
  1581. PORT159_DATA, PORT158_DATA, PORT157_DATA, PORT156_DATA,
  1582. PORT155_DATA, PORT154_DATA, PORT153_DATA, PORT152_DATA,
  1583. PORT151_DATA, PORT150_DATA, PORT149_DATA, PORT148_DATA,
  1584. PORT147_DATA, PORT146_DATA, PORT145_DATA, PORT144_DATA,
  1585. PORT143_DATA, PORT142_DATA, PORT141_DATA, PORT140_DATA,
  1586. PORT139_DATA, PORT138_DATA, PORT137_DATA, PORT136_DATA,
  1587. PORT135_DATA, PORT134_DATA, PORT133_DATA, PORT132_DATA,
  1588. PORT131_DATA, PORT130_DATA, PORT129_DATA, PORT128_DATA }
  1589. },
  1590. { PINMUX_DATA_REG("PORTR191_160DR", 0xe6056000, 32) {
  1591. PORT191_DATA, PORT190_DATA, PORT189_DATA, PORT188_DATA,
  1592. PORT187_DATA, PORT186_DATA, PORT185_DATA, PORT184_DATA,
  1593. PORT183_DATA, PORT182_DATA, PORT181_DATA, PORT180_DATA,
  1594. PORT179_DATA, PORT178_DATA, PORT177_DATA, PORT176_DATA,
  1595. PORT175_DATA, PORT174_DATA, PORT173_DATA, PORT172_DATA,
  1596. PORT171_DATA, PORT170_DATA, PORT169_DATA, PORT168_DATA,
  1597. PORT167_DATA, PORT166_DATA, PORT165_DATA, PORT164_DATA,
  1598. PORT163_DATA, PORT162_DATA, PORT161_DATA, PORT160_DATA }
  1599. },
  1600. { PINMUX_DATA_REG("PORTR223_192DR", 0xe6056004, 32) {
  1601. PORT223_DATA, PORT222_DATA, PORT221_DATA, PORT220_DATA,
  1602. PORT219_DATA, PORT218_DATA, PORT217_DATA, PORT216_DATA,
  1603. PORT215_DATA, PORT214_DATA, PORT213_DATA, PORT212_DATA,
  1604. PORT211_DATA, PORT210_DATA, PORT209_DATA, PORT208_DATA,
  1605. PORT207_DATA, PORT206_DATA, PORT205_DATA, PORT204_DATA,
  1606. PORT203_DATA, PORT202_DATA, PORT201_DATA, PORT200_DATA,
  1607. PORT199_DATA, PORT198_DATA, PORT197_DATA, PORT196_DATA,
  1608. PORT195_DATA, PORT194_DATA, PORT193_DATA, PORT192_DATA }
  1609. },
  1610. { PINMUX_DATA_REG("PORTU255_224DR", 0xe6057000, 32) {
  1611. PORT255_DATA, PORT254_DATA, PORT253_DATA, PORT252_DATA,
  1612. PORT251_DATA, PORT250_DATA, PORT249_DATA, PORT248_DATA,
  1613. PORT247_DATA, PORT246_DATA, PORT245_DATA, PORT244_DATA,
  1614. PORT243_DATA, PORT242_DATA, PORT241_DATA, PORT240_DATA,
  1615. PORT239_DATA, PORT238_DATA, PORT237_DATA, PORT236_DATA,
  1616. PORT235_DATA, PORT234_DATA, PORT233_DATA, PORT232_DATA,
  1617. PORT231_DATA, PORT230_DATA, PORT229_DATA, PORT228_DATA,
  1618. PORT227_DATA, PORT226_DATA, PORT225_DATA, PORT224_DATA }
  1619. },
  1620. { PINMUX_DATA_REG("PORTU287_256DR", 0xe6057004, 32) {
  1621. 0, 0, 0, 0,
  1622. 0, 0, 0, 0,
  1623. 0, 0, 0, 0,
  1624. 0, 0, 0, PORT272_DATA,
  1625. PORT271_DATA, PORT270_DATA, PORT269_DATA, PORT268_DATA,
  1626. PORT267_DATA, PORT266_DATA, PORT265_DATA, PORT264_DATA,
  1627. PORT263_DATA, PORT262_DATA, PORT261_DATA, PORT260_DATA,
  1628. PORT259_DATA, PORT258_DATA, PORT257_DATA, PORT256_DATA }
  1629. },
  1630. { },
  1631. };
  1632. static struct pinmux_info sh7367_pinmux_info = {
  1633. .name = "sh7367_pfc",
  1634. .reserved_id = PINMUX_RESERVED,
  1635. .data = { PINMUX_DATA_BEGIN, PINMUX_DATA_END },
  1636. .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END },
  1637. .input_pu = { PINMUX_INPUT_PULLUP_BEGIN, PINMUX_INPUT_PULLUP_END },
  1638. .input_pd = { PINMUX_INPUT_PULLDOWN_BEGIN, PINMUX_INPUT_PULLDOWN_END },
  1639. .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END },
  1640. .mark = { PINMUX_MARK_BEGIN, PINMUX_MARK_END },
  1641. .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
  1642. .first_gpio = GPIO_PORT0,
  1643. .last_gpio = GPIO_FN_DIVLOCK,
  1644. .gpios = pinmux_gpios,
  1645. .cfg_regs = pinmux_config_regs,
  1646. .data_regs = pinmux_data_regs,
  1647. .gpio_data = pinmux_data,
  1648. .gpio_data_size = ARRAY_SIZE(pinmux_data),
  1649. };
  1650. void sh7367_pinmux_init(void)
  1651. {
  1652. register_pinmux(&sh7367_pinmux_info);
  1653. }