pfc-r8a7740.c 85 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563
  1. /*
  2. * R8A7740 processor support
  3. *
  4. * Copyright (C) 2011 Renesas Solutions Corp.
  5. * Copyright (C) 2011 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; version 2 of the
  10. * License.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  20. */
  21. #include <linux/init.h>
  22. #include <linux/kernel.h>
  23. #include <linux/gpio.h>
  24. #include <mach/r8a7740.h>
  25. #define CPU_ALL_PORT(fn, pfx, sfx) \
  26. PORT_10(fn, pfx, sfx), PORT_90(fn, pfx, sfx), \
  27. PORT_10(fn, pfx##10, sfx), PORT_90(fn, pfx##1, sfx), \
  28. PORT_10(fn, pfx##20, sfx), \
  29. PORT_1(fn, pfx##210, sfx), PORT_1(fn, pfx##211, sfx)
  30. enum {
  31. PINMUX_RESERVED = 0,
  32. /* PORT0_DATA -> PORT211_DATA */
  33. PINMUX_DATA_BEGIN,
  34. PORT_ALL(DATA),
  35. PINMUX_DATA_END,
  36. /* PORT0_IN -> PORT211_IN */
  37. PINMUX_INPUT_BEGIN,
  38. PORT_ALL(IN),
  39. PINMUX_INPUT_END,
  40. /* PORT0_IN_PU -> PORT211_IN_PU */
  41. PINMUX_INPUT_PULLUP_BEGIN,
  42. PORT_ALL(IN_PU),
  43. PINMUX_INPUT_PULLUP_END,
  44. /* PORT0_IN_PD -> PORT211_IN_PD */
  45. PINMUX_INPUT_PULLDOWN_BEGIN,
  46. PORT_ALL(IN_PD),
  47. PINMUX_INPUT_PULLDOWN_END,
  48. /* PORT0_OUT -> PORT211_OUT */
  49. PINMUX_OUTPUT_BEGIN,
  50. PORT_ALL(OUT),
  51. PINMUX_OUTPUT_END,
  52. PINMUX_FUNCTION_BEGIN,
  53. PORT_ALL(FN_IN), /* PORT0_FN_IN -> PORT211_FN_IN */
  54. PORT_ALL(FN_OUT), /* PORT0_FN_OUT -> PORT211_FN_OUT */
  55. PORT_ALL(FN0), /* PORT0_FN0 -> PORT211_FN0 */
  56. PORT_ALL(FN1), /* PORT0_FN1 -> PORT211_FN1 */
  57. PORT_ALL(FN2), /* PORT0_FN2 -> PORT211_FN2 */
  58. PORT_ALL(FN3), /* PORT0_FN3 -> PORT211_FN3 */
  59. PORT_ALL(FN4), /* PORT0_FN4 -> PORT211_FN4 */
  60. PORT_ALL(FN5), /* PORT0_FN5 -> PORT211_FN5 */
  61. PORT_ALL(FN6), /* PORT0_FN6 -> PORT211_FN6 */
  62. PORT_ALL(FN7), /* PORT0_FN7 -> PORT211_FN7 */
  63. MSEL1CR_31_0, MSEL1CR_31_1,
  64. MSEL1CR_30_0, MSEL1CR_30_1,
  65. MSEL1CR_29_0, MSEL1CR_29_1,
  66. MSEL1CR_28_0, MSEL1CR_28_1,
  67. MSEL1CR_27_0, MSEL1CR_27_1,
  68. MSEL1CR_26_0, MSEL1CR_26_1,
  69. MSEL1CR_16_0, MSEL1CR_16_1,
  70. MSEL1CR_15_0, MSEL1CR_15_1,
  71. MSEL1CR_14_0, MSEL1CR_14_1,
  72. MSEL1CR_13_0, MSEL1CR_13_1,
  73. MSEL1CR_12_0, MSEL1CR_12_1,
  74. MSEL1CR_9_0, MSEL1CR_9_1,
  75. MSEL1CR_7_0, MSEL1CR_7_1,
  76. MSEL1CR_6_0, MSEL1CR_6_1,
  77. MSEL1CR_5_0, MSEL1CR_5_1,
  78. MSEL1CR_4_0, MSEL1CR_4_1,
  79. MSEL1CR_3_0, MSEL1CR_3_1,
  80. MSEL1CR_2_0, MSEL1CR_2_1,
  81. MSEL1CR_0_0, MSEL1CR_0_1,
  82. MSEL3CR_15_0, MSEL3CR_15_1, /* Trace / Debug ? */
  83. MSEL3CR_6_0, MSEL3CR_6_1,
  84. MSEL4CR_19_0, MSEL4CR_19_1,
  85. MSEL4CR_18_0, MSEL4CR_18_1,
  86. MSEL4CR_15_0, MSEL4CR_15_1,
  87. MSEL4CR_10_0, MSEL4CR_10_1,
  88. MSEL4CR_6_0, MSEL4CR_6_1,
  89. MSEL4CR_4_0, MSEL4CR_4_1,
  90. MSEL4CR_1_0, MSEL4CR_1_1,
  91. MSEL5CR_31_0, MSEL5CR_31_1, /* irq/fiq output */
  92. MSEL5CR_30_0, MSEL5CR_30_1,
  93. MSEL5CR_29_0, MSEL5CR_29_1,
  94. MSEL5CR_27_0, MSEL5CR_27_1,
  95. MSEL5CR_25_0, MSEL5CR_25_1,
  96. MSEL5CR_23_0, MSEL5CR_23_1,
  97. MSEL5CR_21_0, MSEL5CR_21_1,
  98. MSEL5CR_19_0, MSEL5CR_19_1,
  99. MSEL5CR_17_0, MSEL5CR_17_1,
  100. MSEL5CR_15_0, MSEL5CR_15_1,
  101. MSEL5CR_14_0, MSEL5CR_14_1,
  102. MSEL5CR_13_0, MSEL5CR_13_1,
  103. MSEL5CR_12_0, MSEL5CR_12_1,
  104. MSEL5CR_11_0, MSEL5CR_11_1,
  105. MSEL5CR_10_0, MSEL5CR_10_1,
  106. MSEL5CR_8_0, MSEL5CR_8_1,
  107. MSEL5CR_7_0, MSEL5CR_7_1,
  108. MSEL5CR_6_0, MSEL5CR_6_1,
  109. MSEL5CR_5_0, MSEL5CR_5_1,
  110. MSEL5CR_4_0, MSEL5CR_4_1,
  111. MSEL5CR_3_0, MSEL5CR_3_1,
  112. MSEL5CR_2_0, MSEL5CR_2_1,
  113. MSEL5CR_0_0, MSEL5CR_0_1,
  114. PINMUX_FUNCTION_END,
  115. PINMUX_MARK_BEGIN,
  116. /* IRQ */
  117. IRQ0_PORT2_MARK, IRQ0_PORT13_MARK,
  118. IRQ1_MARK,
  119. IRQ2_PORT11_MARK, IRQ2_PORT12_MARK,
  120. IRQ3_PORT10_MARK, IRQ3_PORT14_MARK,
  121. IRQ4_PORT15_MARK, IRQ4_PORT172_MARK,
  122. IRQ5_PORT0_MARK, IRQ5_PORT1_MARK,
  123. IRQ6_PORT121_MARK, IRQ6_PORT173_MARK,
  124. IRQ7_PORT120_MARK, IRQ7_PORT209_MARK,
  125. IRQ8_MARK,
  126. IRQ9_PORT118_MARK, IRQ9_PORT210_MARK,
  127. IRQ10_MARK,
  128. IRQ11_MARK,
  129. IRQ12_PORT42_MARK, IRQ12_PORT97_MARK,
  130. IRQ13_PORT64_MARK, IRQ13_PORT98_MARK,
  131. IRQ14_PORT63_MARK, IRQ14_PORT99_MARK,
  132. IRQ15_PORT62_MARK, IRQ15_PORT100_MARK,
  133. IRQ16_PORT68_MARK, IRQ16_PORT211_MARK,
  134. IRQ17_MARK,
  135. IRQ18_MARK,
  136. IRQ19_MARK,
  137. IRQ20_MARK,
  138. IRQ21_MARK,
  139. IRQ22_MARK,
  140. IRQ23_MARK,
  141. IRQ24_MARK,
  142. IRQ25_MARK,
  143. IRQ26_PORT58_MARK, IRQ26_PORT81_MARK,
  144. IRQ27_PORT57_MARK, IRQ27_PORT168_MARK,
  145. IRQ28_PORT56_MARK, IRQ28_PORT169_MARK,
  146. IRQ29_PORT50_MARK, IRQ29_PORT170_MARK,
  147. IRQ30_PORT49_MARK, IRQ30_PORT171_MARK,
  148. IRQ31_PORT41_MARK, IRQ31_PORT167_MARK,
  149. /* Function */
  150. /* DBGT */
  151. DBGMDT2_MARK, DBGMDT1_MARK, DBGMDT0_MARK,
  152. DBGMD10_MARK, DBGMD11_MARK, DBGMD20_MARK,
  153. DBGMD21_MARK,
  154. /* FSI */
  155. FSIAISLD_PORT0_MARK, /* FSIAISLD Port 0/5 */
  156. FSIAISLD_PORT5_MARK,
  157. FSIASPDIF_PORT9_MARK, /* FSIASPDIF Port 9/18 */
  158. FSIASPDIF_PORT18_MARK,
  159. FSIAOSLD1_MARK, FSIAOSLD2_MARK, FSIAOLR_MARK,
  160. FSIAOBT_MARK, FSIAOSLD_MARK, FSIAOMC_MARK,
  161. FSIACK_MARK, FSIAILR_MARK, FSIAIBT_MARK,
  162. /* FMSI */
  163. FMSISLD_PORT1_MARK, /* FMSISLD Port 1/6 */
  164. FMSISLD_PORT6_MARK,
  165. FMSIILR_MARK, FMSIIBT_MARK, FMSIOLR_MARK, FMSIOBT_MARK,
  166. FMSICK_MARK, FMSOILR_MARK, FMSOIBT_MARK, FMSOOLR_MARK,
  167. FMSOOBT_MARK, FMSOSLD_MARK, FMSOCK_MARK,
  168. /* SCIFA0 */
  169. SCIFA0_SCK_MARK, SCIFA0_CTS_MARK, SCIFA0_RTS_MARK,
  170. SCIFA0_RXD_MARK, SCIFA0_TXD_MARK,
  171. /* SCIFA1 */
  172. SCIFA1_CTS_MARK, SCIFA1_SCK_MARK, SCIFA1_RXD_MARK,
  173. SCIFA1_TXD_MARK, SCIFA1_RTS_MARK,
  174. /* SCIFA2 */
  175. SCIFA2_SCK_PORT22_MARK, /* SCIFA2_SCK Port 22/199 */
  176. SCIFA2_SCK_PORT199_MARK,
  177. SCIFA2_RXD_MARK, SCIFA2_TXD_MARK,
  178. SCIFA2_CTS_MARK, SCIFA2_RTS_MARK,
  179. /* SCIFA3 */
  180. SCIFA3_RTS_PORT105_MARK, /* MSEL5CR_8_0 */
  181. SCIFA3_SCK_PORT116_MARK,
  182. SCIFA3_CTS_PORT117_MARK,
  183. SCIFA3_RXD_PORT174_MARK,
  184. SCIFA3_TXD_PORT175_MARK,
  185. SCIFA3_RTS_PORT161_MARK, /* MSEL5CR_8_1 */
  186. SCIFA3_SCK_PORT158_MARK,
  187. SCIFA3_CTS_PORT162_MARK,
  188. SCIFA3_RXD_PORT159_MARK,
  189. SCIFA3_TXD_PORT160_MARK,
  190. /* SCIFA4 */
  191. SCIFA4_RXD_PORT12_MARK, /* MSEL5CR[12:11] = 00 */
  192. SCIFA4_TXD_PORT13_MARK,
  193. SCIFA4_RXD_PORT204_MARK, /* MSEL5CR[12:11] = 01 */
  194. SCIFA4_TXD_PORT203_MARK,
  195. SCIFA4_RXD_PORT94_MARK, /* MSEL5CR[12:11] = 10 */
  196. SCIFA4_TXD_PORT93_MARK,
  197. SCIFA4_SCK_PORT21_MARK, /* SCIFA4_SCK Port 21/205 */
  198. SCIFA4_SCK_PORT205_MARK,
  199. /* SCIFA5 */
  200. SCIFA5_TXD_PORT20_MARK, /* MSEL5CR[15:14] = 00 */
  201. SCIFA5_RXD_PORT10_MARK,
  202. SCIFA5_RXD_PORT207_MARK, /* MSEL5CR[15:14] = 01 */
  203. SCIFA5_TXD_PORT208_MARK,
  204. SCIFA5_TXD_PORT91_MARK, /* MSEL5CR[15:14] = 10 */
  205. SCIFA5_RXD_PORT92_MARK,
  206. SCIFA5_SCK_PORT23_MARK, /* SCIFA5_SCK Port 23/206 */
  207. SCIFA5_SCK_PORT206_MARK,
  208. /* SCIFA6 */
  209. SCIFA6_SCK_MARK, SCIFA6_RXD_MARK, SCIFA6_TXD_MARK,
  210. /* SCIFA7 */
  211. SCIFA7_TXD_MARK, SCIFA7_RXD_MARK,
  212. /* SCIFAB */
  213. SCIFB_SCK_PORT190_MARK, /* MSEL5CR_17_0 */
  214. SCIFB_RXD_PORT191_MARK,
  215. SCIFB_TXD_PORT192_MARK,
  216. SCIFB_RTS_PORT186_MARK,
  217. SCIFB_CTS_PORT187_MARK,
  218. SCIFB_SCK_PORT2_MARK, /* MSEL5CR_17_1 */
  219. SCIFB_RXD_PORT3_MARK,
  220. SCIFB_TXD_PORT4_MARK,
  221. SCIFB_RTS_PORT172_MARK,
  222. SCIFB_CTS_PORT173_MARK,
  223. /* LCD0 */
  224. LCDC0_SELECT_MARK,
  225. LCD0_D0_MARK, LCD0_D1_MARK, LCD0_D2_MARK, LCD0_D3_MARK,
  226. LCD0_D4_MARK, LCD0_D5_MARK, LCD0_D6_MARK, LCD0_D7_MARK,
  227. LCD0_D8_MARK, LCD0_D9_MARK, LCD0_D10_MARK, LCD0_D11_MARK,
  228. LCD0_D12_MARK, LCD0_D13_MARK, LCD0_D14_MARK, LCD0_D15_MARK,
  229. LCD0_D16_MARK, LCD0_D17_MARK,
  230. LCD0_DON_MARK, LCD0_VCPWC_MARK, LCD0_VEPWC_MARK,
  231. LCD0_DCK_MARK, LCD0_VSYN_MARK, /* for RGB */
  232. LCD0_HSYN_MARK, LCD0_DISP_MARK, /* for RGB */
  233. LCD0_WR_MARK, LCD0_RD_MARK, /* for SYS */
  234. LCD0_CS_MARK, LCD0_RS_MARK, /* for SYS */
  235. LCD0_D21_PORT158_MARK, LCD0_D23_PORT159_MARK, /* MSEL5CR_6_1 */
  236. LCD0_D22_PORT160_MARK, LCD0_D20_PORT161_MARK,
  237. LCD0_D19_PORT162_MARK, LCD0_D18_PORT163_MARK,
  238. LCD0_LCLK_PORT165_MARK,
  239. LCD0_D18_PORT40_MARK, LCD0_D22_PORT0_MARK, /* MSEL5CR_6_0 */
  240. LCD0_D23_PORT1_MARK, LCD0_D21_PORT2_MARK,
  241. LCD0_D20_PORT3_MARK, LCD0_D19_PORT4_MARK,
  242. LCD0_LCLK_PORT102_MARK,
  243. /* LCD1 */
  244. LCDC1_SELECT_MARK,
  245. LCD1_D0_MARK, LCD1_D1_MARK, LCD1_D2_MARK, LCD1_D3_MARK,
  246. LCD1_D4_MARK, LCD1_D5_MARK, LCD1_D6_MARK, LCD1_D7_MARK,
  247. LCD1_D8_MARK, LCD1_D9_MARK, LCD1_D10_MARK, LCD1_D11_MARK,
  248. LCD1_D12_MARK, LCD1_D13_MARK, LCD1_D14_MARK, LCD1_D15_MARK,
  249. LCD1_D16_MARK, LCD1_D17_MARK, LCD1_D18_MARK, LCD1_D19_MARK,
  250. LCD1_D20_MARK, LCD1_D21_MARK, LCD1_D22_MARK, LCD1_D23_MARK,
  251. LCD1_DON_MARK, LCD1_VCPWC_MARK,
  252. LCD1_LCLK_MARK, LCD1_VEPWC_MARK,
  253. LCD1_DCK_MARK, LCD1_VSYN_MARK, /* for RGB */
  254. LCD1_HSYN_MARK, LCD1_DISP_MARK, /* for RGB */
  255. LCD1_RS_MARK, LCD1_CS_MARK, /* for SYS */
  256. LCD1_RD_MARK, LCD1_WR_MARK, /* for SYS */
  257. /* RSPI */
  258. RSPI_SSL0_A_MARK, RSPI_SSL1_A_MARK, RSPI_SSL2_A_MARK,
  259. RSPI_SSL3_A_MARK, RSPI_CK_A_MARK, RSPI_MOSI_A_MARK,
  260. RSPI_MISO_A_MARK,
  261. /* VIO CKO */
  262. VIO_CKO1_MARK, /* needs fixup */
  263. VIO_CKO2_MARK,
  264. VIO_CKO_1_MARK,
  265. VIO_CKO_MARK,
  266. /* VIO0 */
  267. VIO0_D0_MARK, VIO0_D1_MARK, VIO0_D2_MARK, VIO0_D3_MARK,
  268. VIO0_D4_MARK, VIO0_D5_MARK, VIO0_D6_MARK, VIO0_D7_MARK,
  269. VIO0_D8_MARK, VIO0_D9_MARK, VIO0_D10_MARK, VIO0_D11_MARK,
  270. VIO0_D12_MARK, VIO0_VD_MARK, VIO0_HD_MARK, VIO0_CLK_MARK,
  271. VIO0_FIELD_MARK,
  272. VIO0_D13_PORT26_MARK, /* MSEL5CR_27_0 */
  273. VIO0_D14_PORT25_MARK,
  274. VIO0_D15_PORT24_MARK,
  275. VIO0_D13_PORT22_MARK, /* MSEL5CR_27_1 */
  276. VIO0_D14_PORT95_MARK,
  277. VIO0_D15_PORT96_MARK,
  278. /* VIO1 */
  279. VIO1_D0_MARK, VIO1_D1_MARK, VIO1_D2_MARK, VIO1_D3_MARK,
  280. VIO1_D4_MARK, VIO1_D5_MARK, VIO1_D6_MARK, VIO1_D7_MARK,
  281. VIO1_VD_MARK, VIO1_HD_MARK, VIO1_CLK_MARK, VIO1_FIELD_MARK,
  282. /* TPU0 */
  283. TPU0TO0_MARK, TPU0TO1_MARK, TPU0TO3_MARK,
  284. TPU0TO2_PORT66_MARK, /* TPU0TO2 Port 66/202 */
  285. TPU0TO2_PORT202_MARK,
  286. /* SSP1 0 */
  287. STP0_IPD0_MARK, STP0_IPD1_MARK, STP0_IPD2_MARK, STP0_IPD3_MARK,
  288. STP0_IPD4_MARK, STP0_IPD5_MARK, STP0_IPD6_MARK, STP0_IPD7_MARK,
  289. STP0_IPEN_MARK, STP0_IPCLK_MARK, STP0_IPSYNC_MARK,
  290. /* SSP1 1 */
  291. STP1_IPD1_MARK, STP1_IPD2_MARK, STP1_IPD3_MARK, STP1_IPD4_MARK,
  292. STP1_IPD5_MARK, STP1_IPD6_MARK, STP1_IPD7_MARK, STP1_IPCLK_MARK,
  293. STP1_IPSYNC_MARK,
  294. STP1_IPD0_PORT186_MARK, /* MSEL5CR_23_0 */
  295. STP1_IPEN_PORT187_MARK,
  296. STP1_IPD0_PORT194_MARK, /* MSEL5CR_23_1 */
  297. STP1_IPEN_PORT193_MARK,
  298. /* SIM */
  299. SIM_RST_MARK, SIM_CLK_MARK,
  300. SIM_D_PORT22_MARK, /* SIM_D Port 22/199 */
  301. SIM_D_PORT199_MARK,
  302. /* SDHI0 */
  303. SDHI0_D0_MARK, SDHI0_D1_MARK, SDHI0_D2_MARK, SDHI0_D3_MARK,
  304. SDHI0_CD_MARK, SDHI0_WP_MARK, SDHI0_CMD_MARK, SDHI0_CLK_MARK,
  305. /* SDHI1 */
  306. SDHI1_D0_MARK, SDHI1_D1_MARK, SDHI1_D2_MARK, SDHI1_D3_MARK,
  307. SDHI1_CD_MARK, SDHI1_WP_MARK, SDHI1_CMD_MARK, SDHI1_CLK_MARK,
  308. /* SDHI2 */
  309. SDHI2_D0_MARK, SDHI2_D1_MARK, SDHI2_D2_MARK, SDHI2_D3_MARK,
  310. SDHI2_CLK_MARK, SDHI2_CMD_MARK,
  311. SDHI2_CD_PORT24_MARK, /* MSEL5CR_19_0 */
  312. SDHI2_WP_PORT25_MARK,
  313. SDHI2_WP_PORT177_MARK, /* MSEL5CR_19_1 */
  314. SDHI2_CD_PORT202_MARK,
  315. /* MSIOF2 */
  316. MSIOF2_TXD_MARK, MSIOF2_RXD_MARK, MSIOF2_TSCK_MARK,
  317. MSIOF2_SS2_MARK, MSIOF2_TSYNC_MARK, MSIOF2_SS1_MARK,
  318. MSIOF2_MCK1_MARK, MSIOF2_MCK0_MARK, MSIOF2_RSYNC_MARK,
  319. MSIOF2_RSCK_MARK,
  320. /* KEYSC */
  321. KEYIN4_MARK, KEYIN5_MARK, KEYIN6_MARK, KEYIN7_MARK,
  322. KEYOUT0_MARK, KEYOUT1_MARK, KEYOUT2_MARK, KEYOUT3_MARK,
  323. KEYOUT4_MARK, KEYOUT5_MARK, KEYOUT6_MARK, KEYOUT7_MARK,
  324. KEYIN0_PORT43_MARK, /* MSEL4CR_18_0 */
  325. KEYIN1_PORT44_MARK,
  326. KEYIN2_PORT45_MARK,
  327. KEYIN3_PORT46_MARK,
  328. KEYIN0_PORT58_MARK, /* MSEL4CR_18_1 */
  329. KEYIN1_PORT57_MARK,
  330. KEYIN2_PORT56_MARK,
  331. KEYIN3_PORT55_MARK,
  332. /* VOU */
  333. DV_D0_MARK, DV_D1_MARK, DV_D2_MARK, DV_D3_MARK,
  334. DV_D4_MARK, DV_D5_MARK, DV_D6_MARK, DV_D7_MARK,
  335. DV_D8_MARK, DV_D9_MARK, DV_D10_MARK, DV_D11_MARK,
  336. DV_D12_MARK, DV_D13_MARK, DV_D14_MARK, DV_D15_MARK,
  337. DV_CLK_MARK, DV_VSYNC_MARK, DV_HSYNC_MARK,
  338. /* MEMC */
  339. MEMC_AD0_MARK, MEMC_AD1_MARK, MEMC_AD2_MARK, MEMC_AD3_MARK,
  340. MEMC_AD4_MARK, MEMC_AD5_MARK, MEMC_AD6_MARK, MEMC_AD7_MARK,
  341. MEMC_AD8_MARK, MEMC_AD9_MARK, MEMC_AD10_MARK, MEMC_AD11_MARK,
  342. MEMC_AD12_MARK, MEMC_AD13_MARK, MEMC_AD14_MARK, MEMC_AD15_MARK,
  343. MEMC_CS0_MARK, MEMC_INT_MARK, MEMC_NWE_MARK, MEMC_NOE_MARK,
  344. MEMC_CS1_MARK, /* MSEL4CR_6_0 */
  345. MEMC_ADV_MARK,
  346. MEMC_WAIT_MARK,
  347. MEMC_BUSCLK_MARK,
  348. MEMC_A1_MARK, /* MSEL4CR_6_1 */
  349. MEMC_DREQ0_MARK,
  350. MEMC_DREQ1_MARK,
  351. MEMC_A0_MARK,
  352. /* MMC */
  353. MMC0_D0_PORT68_MARK, MMC0_D1_PORT69_MARK, MMC0_D2_PORT70_MARK,
  354. MMC0_D3_PORT71_MARK, MMC0_D4_PORT72_MARK, MMC0_D5_PORT73_MARK,
  355. MMC0_D6_PORT74_MARK, MMC0_D7_PORT75_MARK, MMC0_CLK_PORT66_MARK,
  356. MMC0_CMD_PORT67_MARK, /* MSEL4CR_15_0 */
  357. MMC1_D0_PORT149_MARK, MMC1_D1_PORT148_MARK, MMC1_D2_PORT147_MARK,
  358. MMC1_D3_PORT146_MARK, MMC1_D4_PORT145_MARK, MMC1_D5_PORT144_MARK,
  359. MMC1_D6_PORT143_MARK, MMC1_D7_PORT142_MARK, MMC1_CLK_PORT103_MARK,
  360. MMC1_CMD_PORT104_MARK, /* MSEL4CR_15_1 */
  361. /* MSIOF0 */
  362. MSIOF0_SS1_MARK, MSIOF0_SS2_MARK, MSIOF0_RXD_MARK,
  363. MSIOF0_TXD_MARK, MSIOF0_MCK0_MARK, MSIOF0_MCK1_MARK,
  364. MSIOF0_RSYNC_MARK, MSIOF0_RSCK_MARK, MSIOF0_TSCK_MARK,
  365. MSIOF0_TSYNC_MARK,
  366. /* MSIOF1 */
  367. MSIOF1_RSCK_MARK, MSIOF1_RSYNC_MARK,
  368. MSIOF1_MCK0_MARK, MSIOF1_MCK1_MARK,
  369. MSIOF1_SS2_PORT116_MARK, MSIOF1_SS1_PORT117_MARK,
  370. MSIOF1_RXD_PORT118_MARK, MSIOF1_TXD_PORT119_MARK,
  371. MSIOF1_TSYNC_PORT120_MARK,
  372. MSIOF1_TSCK_PORT121_MARK, /* MSEL4CR_10_0 */
  373. MSIOF1_SS1_PORT67_MARK, MSIOF1_TSCK_PORT72_MARK,
  374. MSIOF1_TSYNC_PORT73_MARK, MSIOF1_TXD_PORT74_MARK,
  375. MSIOF1_RXD_PORT75_MARK,
  376. MSIOF1_SS2_PORT202_MARK, /* MSEL4CR_10_1 */
  377. /* GPIO */
  378. GPO0_MARK, GPI0_MARK, GPO1_MARK, GPI1_MARK,
  379. /* USB0 */
  380. USB0_OCI_MARK, USB0_PPON_MARK, VBUS_MARK,
  381. /* USB1 */
  382. USB1_OCI_MARK, USB1_PPON_MARK,
  383. /* BBIF1 */
  384. BBIF1_RXD_MARK, BBIF1_TXD_MARK, BBIF1_TSYNC_MARK,
  385. BBIF1_TSCK_MARK, BBIF1_RSCK_MARK, BBIF1_RSYNC_MARK,
  386. BBIF1_FLOW_MARK, BBIF1_RX_FLOW_N_MARK,
  387. /* BBIF2 */
  388. BBIF2_TXD2_PORT5_MARK, /* MSEL5CR_0_0 */
  389. BBIF2_RXD2_PORT60_MARK,
  390. BBIF2_TSYNC2_PORT6_MARK,
  391. BBIF2_TSCK2_PORT59_MARK,
  392. BBIF2_RXD2_PORT90_MARK, /* MSEL5CR_0_1 */
  393. BBIF2_TXD2_PORT183_MARK,
  394. BBIF2_TSCK2_PORT89_MARK,
  395. BBIF2_TSYNC2_PORT184_MARK,
  396. /* BSC / FLCTL / PCMCIA */
  397. CS0_MARK, CS2_MARK, CS4_MARK,
  398. CS5B_MARK, CS6A_MARK,
  399. CS5A_PORT105_MARK, /* CS5A PORT 19/105 */
  400. CS5A_PORT19_MARK,
  401. IOIS16_MARK, /* ? */
  402. A0_MARK, A1_MARK, A2_MARK, A3_MARK,
  403. A4_FOE_MARK, /* share with FLCTL */
  404. A5_FCDE_MARK, /* share with FLCTL */
  405. A6_MARK, A7_MARK, A8_MARK, A9_MARK,
  406. A10_MARK, A11_MARK, A12_MARK, A13_MARK,
  407. A14_MARK, A15_MARK, A16_MARK, A17_MARK,
  408. A18_MARK, A19_MARK, A20_MARK, A21_MARK,
  409. A22_MARK, A23_MARK, A24_MARK, A25_MARK,
  410. A26_MARK,
  411. D0_NAF0_MARK, D1_NAF1_MARK, D2_NAF2_MARK, /* share with FLCTL */
  412. D3_NAF3_MARK, D4_NAF4_MARK, D5_NAF5_MARK, /* share with FLCTL */
  413. D6_NAF6_MARK, D7_NAF7_MARK, D8_NAF8_MARK, /* share with FLCTL */
  414. D9_NAF9_MARK, D10_NAF10_MARK, D11_NAF11_MARK, /* share with FLCTL */
  415. D12_NAF12_MARK, D13_NAF13_MARK, D14_NAF14_MARK, /* share with FLCTL */
  416. D15_NAF15_MARK, /* share with FLCTL */
  417. D16_MARK, D17_MARK, D18_MARK, D19_MARK,
  418. D20_MARK, D21_MARK, D22_MARK, D23_MARK,
  419. D24_MARK, D25_MARK, D26_MARK, D27_MARK,
  420. D28_MARK, D29_MARK, D30_MARK, D31_MARK,
  421. WE0_FWE_MARK, /* share with FLCTL */
  422. WE1_MARK,
  423. WE2_ICIORD_MARK, /* share with PCMCIA */
  424. WE3_ICIOWR_MARK, /* share with PCMCIA */
  425. CKO_MARK, BS_MARK, RDWR_MARK,
  426. RD_FSC_MARK, /* share with FLCTL */
  427. WAIT_PORT177_MARK, /* WAIT Port 90/177 */
  428. WAIT_PORT90_MARK,
  429. FCE0_MARK, FCE1_MARK, FRB_MARK, /* FLCTL */
  430. /* IRDA */
  431. IRDA_FIRSEL_MARK, IRDA_IN_MARK, IRDA_OUT_MARK,
  432. /* ATAPI */
  433. IDE_D0_MARK, IDE_D1_MARK, IDE_D2_MARK, IDE_D3_MARK,
  434. IDE_D4_MARK, IDE_D5_MARK, IDE_D6_MARK, IDE_D7_MARK,
  435. IDE_D8_MARK, IDE_D9_MARK, IDE_D10_MARK, IDE_D11_MARK,
  436. IDE_D12_MARK, IDE_D13_MARK, IDE_D14_MARK, IDE_D15_MARK,
  437. IDE_A0_MARK, IDE_A1_MARK, IDE_A2_MARK, IDE_CS0_MARK,
  438. IDE_CS1_MARK, IDE_IOWR_MARK, IDE_IORD_MARK, IDE_IORDY_MARK,
  439. IDE_INT_MARK, IDE_RST_MARK, IDE_DIRECTION_MARK,
  440. IDE_EXBUF_ENB_MARK, IDE_IODACK_MARK, IDE_IODREQ_MARK,
  441. /* RMII */
  442. RMII_CRS_DV_MARK, RMII_RX_ER_MARK, RMII_RXD0_MARK,
  443. RMII_RXD1_MARK, RMII_TX_EN_MARK, RMII_TXD0_MARK,
  444. RMII_MDC_MARK, RMII_TXD1_MARK, RMII_MDIO_MARK,
  445. RMII_REF50CK_MARK, /* for RMII */
  446. RMII_REF125CK_MARK, /* for GMII */
  447. /* GEther */
  448. ET_TX_CLK_MARK, ET_TX_EN_MARK, ET_ETXD0_MARK, ET_ETXD1_MARK,
  449. ET_ETXD2_MARK, ET_ETXD3_MARK,
  450. ET_ETXD4_MARK, ET_ETXD5_MARK, /* for GEther */
  451. ET_ETXD6_MARK, ET_ETXD7_MARK, /* for GEther */
  452. ET_COL_MARK, ET_TX_ER_MARK, ET_RX_CLK_MARK, ET_RX_DV_MARK,
  453. ET_ERXD0_MARK, ET_ERXD1_MARK, ET_ERXD2_MARK, ET_ERXD3_MARK,
  454. ET_ERXD4_MARK, ET_ERXD5_MARK, /* for GEther */
  455. ET_ERXD6_MARK, ET_ERXD7_MARK, /* for GEther */
  456. ET_RX_ER_MARK, ET_CRS_MARK, ET_MDC_MARK, ET_MDIO_MARK,
  457. ET_LINK_MARK, ET_PHY_INT_MARK, ET_WOL_MARK, ET_GTX_CLK_MARK,
  458. /* DMA0 */
  459. DREQ0_MARK, DACK0_MARK,
  460. /* DMA1 */
  461. DREQ1_MARK, DACK1_MARK,
  462. /* SYSC */
  463. RESETOUTS_MARK, RESETP_PULLUP_MARK, RESETP_PLAIN_MARK,
  464. /* IRREM */
  465. IROUT_MARK,
  466. /* SDENC */
  467. SDENC_CPG_MARK, SDENC_DV_CLKI_MARK,
  468. /* DEBUG */
  469. EDEBGREQ_PULLUP_MARK, /* for JTAG */
  470. EDEBGREQ_PULLDOWN_MARK,
  471. TRACEAUD_FROM_VIO_MARK, /* for TRACE/AUD */
  472. TRACEAUD_FROM_LCDC0_MARK,
  473. TRACEAUD_FROM_MEMC_MARK,
  474. PINMUX_MARK_END,
  475. };
  476. static pinmux_enum_t pinmux_data[] = {
  477. /* specify valid pin states for each pin in GPIO mode */
  478. /* I/O and Pull U/D */
  479. PORT_DATA_IO_PD(0), PORT_DATA_IO_PD(1),
  480. PORT_DATA_IO_PD(2), PORT_DATA_IO_PD(3),
  481. PORT_DATA_IO_PD(4), PORT_DATA_IO_PD(5),
  482. PORT_DATA_IO_PD(6), PORT_DATA_IO(7),
  483. PORT_DATA_IO(8), PORT_DATA_IO(9),
  484. PORT_DATA_IO_PD(10), PORT_DATA_IO_PD(11),
  485. PORT_DATA_IO_PD(12), PORT_DATA_IO_PU_PD(13),
  486. PORT_DATA_IO_PD(14), PORT_DATA_IO_PD(15),
  487. PORT_DATA_IO_PD(16), PORT_DATA_IO_PD(17),
  488. PORT_DATA_IO(18), PORT_DATA_IO_PU(19),
  489. PORT_DATA_IO_PU_PD(20), PORT_DATA_IO_PD(21),
  490. PORT_DATA_IO_PU_PD(22), PORT_DATA_IO(23),
  491. PORT_DATA_IO_PU(24), PORT_DATA_IO_PU(25),
  492. PORT_DATA_IO_PU(26), PORT_DATA_IO_PU(27),
  493. PORT_DATA_IO_PU(28), PORT_DATA_IO_PU(29),
  494. PORT_DATA_IO_PU(30), PORT_DATA_IO_PD(31),
  495. PORT_DATA_IO_PD(32), PORT_DATA_IO_PD(33),
  496. PORT_DATA_IO_PD(34), PORT_DATA_IO_PU(35),
  497. PORT_DATA_IO_PU(36), PORT_DATA_IO_PD(37),
  498. PORT_DATA_IO_PU(38), PORT_DATA_IO_PD(39),
  499. PORT_DATA_IO_PU_PD(40), PORT_DATA_IO_PD(41),
  500. PORT_DATA_IO_PD(42), PORT_DATA_IO_PU_PD(43),
  501. PORT_DATA_IO_PU_PD(44), PORT_DATA_IO_PU_PD(45),
  502. PORT_DATA_IO_PU_PD(46), PORT_DATA_IO_PU_PD(47),
  503. PORT_DATA_IO_PU_PD(48), PORT_DATA_IO_PU_PD(49),
  504. PORT_DATA_IO_PU_PD(50), PORT_DATA_IO_PD(51),
  505. PORT_DATA_IO_PD(52), PORT_DATA_IO_PD(53),
  506. PORT_DATA_IO_PD(54), PORT_DATA_IO_PU_PD(55),
  507. PORT_DATA_IO_PU_PD(56), PORT_DATA_IO_PU_PD(57),
  508. PORT_DATA_IO_PU_PD(58), PORT_DATA_IO_PU_PD(59),
  509. PORT_DATA_IO_PU_PD(60), PORT_DATA_IO_PD(61),
  510. PORT_DATA_IO_PD(62), PORT_DATA_IO_PD(63),
  511. PORT_DATA_IO_PD(64), PORT_DATA_IO_PD(65),
  512. PORT_DATA_IO_PU_PD(66), PORT_DATA_IO_PU_PD(67),
  513. PORT_DATA_IO_PU_PD(68), PORT_DATA_IO_PU_PD(69),
  514. PORT_DATA_IO_PU_PD(70), PORT_DATA_IO_PU_PD(71),
  515. PORT_DATA_IO_PU_PD(72), PORT_DATA_IO_PU_PD(73),
  516. PORT_DATA_IO_PU_PD(74), PORT_DATA_IO_PU_PD(75),
  517. PORT_DATA_IO_PU_PD(76), PORT_DATA_IO_PU_PD(77),
  518. PORT_DATA_IO_PU_PD(78), PORT_DATA_IO_PU_PD(79),
  519. PORT_DATA_IO_PU_PD(80), PORT_DATA_IO_PU_PD(81),
  520. PORT_DATA_IO(82), PORT_DATA_IO_PU_PD(83),
  521. PORT_DATA_IO(84), PORT_DATA_IO_PD(85),
  522. PORT_DATA_IO_PD(86), PORT_DATA_IO_PD(87),
  523. PORT_DATA_IO_PD(88), PORT_DATA_IO_PD(89),
  524. PORT_DATA_IO_PD(90), PORT_DATA_IO_PU_PD(91),
  525. PORT_DATA_IO_PU_PD(92), PORT_DATA_IO_PU_PD(93),
  526. PORT_DATA_IO_PU_PD(94), PORT_DATA_IO_PU_PD(95),
  527. PORT_DATA_IO_PU_PD(96), PORT_DATA_IO_PU_PD(97),
  528. PORT_DATA_IO_PU_PD(98), PORT_DATA_IO_PU_PD(99),
  529. PORT_DATA_IO_PU_PD(100), PORT_DATA_IO(101),
  530. PORT_DATA_IO_PU(102), PORT_DATA_IO_PU_PD(103),
  531. PORT_DATA_IO_PU(104), PORT_DATA_IO_PU(105),
  532. PORT_DATA_IO_PU_PD(106), PORT_DATA_IO(107),
  533. PORT_DATA_IO(108), PORT_DATA_IO(109),
  534. PORT_DATA_IO(110), PORT_DATA_IO(111),
  535. PORT_DATA_IO(112), PORT_DATA_IO(113),
  536. PORT_DATA_IO_PU_PD(114), PORT_DATA_IO(115),
  537. PORT_DATA_IO_PD(116), PORT_DATA_IO_PD(117),
  538. PORT_DATA_IO_PD(118), PORT_DATA_IO_PD(119),
  539. PORT_DATA_IO_PD(120), PORT_DATA_IO_PD(121),
  540. PORT_DATA_IO_PD(122), PORT_DATA_IO_PD(123),
  541. PORT_DATA_IO_PD(124), PORT_DATA_IO(125),
  542. PORT_DATA_IO(126), PORT_DATA_IO(127),
  543. PORT_DATA_IO(128), PORT_DATA_IO(129),
  544. PORT_DATA_IO(130), PORT_DATA_IO(131),
  545. PORT_DATA_IO(132), PORT_DATA_IO(133),
  546. PORT_DATA_IO(134), PORT_DATA_IO(135),
  547. PORT_DATA_IO(136), PORT_DATA_IO(137),
  548. PORT_DATA_IO(138), PORT_DATA_IO(139),
  549. PORT_DATA_IO(140), PORT_DATA_IO(141),
  550. PORT_DATA_IO_PU(142), PORT_DATA_IO_PU(143),
  551. PORT_DATA_IO_PU(144), PORT_DATA_IO_PU(145),
  552. PORT_DATA_IO_PU(146), PORT_DATA_IO_PU(147),
  553. PORT_DATA_IO_PU(148), PORT_DATA_IO_PU(149),
  554. PORT_DATA_IO_PU(150), PORT_DATA_IO_PU(151),
  555. PORT_DATA_IO_PU(152), PORT_DATA_IO_PU(153),
  556. PORT_DATA_IO_PU(154), PORT_DATA_IO_PU(155),
  557. PORT_DATA_IO_PU(156), PORT_DATA_IO_PU(157),
  558. PORT_DATA_IO_PD(158), PORT_DATA_IO_PD(159),
  559. PORT_DATA_IO_PU_PD(160), PORT_DATA_IO_PD(161),
  560. PORT_DATA_IO_PD(162), PORT_DATA_IO_PD(163),
  561. PORT_DATA_IO_PD(164), PORT_DATA_IO_PD(165),
  562. PORT_DATA_IO_PU(166), PORT_DATA_IO_PU(167),
  563. PORT_DATA_IO_PU(168), PORT_DATA_IO_PU(169),
  564. PORT_DATA_IO_PU(170), PORT_DATA_IO_PU(171),
  565. PORT_DATA_IO_PD(172), PORT_DATA_IO_PD(173),
  566. PORT_DATA_IO_PD(174), PORT_DATA_IO_PD(175),
  567. PORT_DATA_IO_PU(176), PORT_DATA_IO_PU_PD(177),
  568. PORT_DATA_IO_PU(178), PORT_DATA_IO_PD(179),
  569. PORT_DATA_IO_PD(180), PORT_DATA_IO_PU(181),
  570. PORT_DATA_IO_PU(182), PORT_DATA_IO(183),
  571. PORT_DATA_IO_PD(184), PORT_DATA_IO_PD(185),
  572. PORT_DATA_IO_PD(186), PORT_DATA_IO_PD(187),
  573. PORT_DATA_IO_PD(188), PORT_DATA_IO_PD(189),
  574. PORT_DATA_IO_PD(190), PORT_DATA_IO_PD(191),
  575. PORT_DATA_IO_PD(192), PORT_DATA_IO_PU_PD(193),
  576. PORT_DATA_IO_PU_PD(194), PORT_DATA_IO_PD(195),
  577. PORT_DATA_IO_PU_PD(196), PORT_DATA_IO_PD(197),
  578. PORT_DATA_IO_PU_PD(198), PORT_DATA_IO_PU_PD(199),
  579. PORT_DATA_IO_PU_PD(200), PORT_DATA_IO_PU(201),
  580. PORT_DATA_IO_PU_PD(202), PORT_DATA_IO(203),
  581. PORT_DATA_IO_PU_PD(204), PORT_DATA_IO_PU_PD(205),
  582. PORT_DATA_IO_PU_PD(206), PORT_DATA_IO_PU_PD(207),
  583. PORT_DATA_IO_PU_PD(208), PORT_DATA_IO_PD(209),
  584. PORT_DATA_IO_PD(210), PORT_DATA_IO_PD(211),
  585. /* Port0 */
  586. PINMUX_DATA(DBGMDT2_MARK, PORT0_FN1),
  587. PINMUX_DATA(FSIAISLD_PORT0_MARK, PORT0_FN2, MSEL5CR_3_0),
  588. PINMUX_DATA(FSIAOSLD1_MARK, PORT0_FN3),
  589. PINMUX_DATA(LCD0_D22_PORT0_MARK, PORT0_FN4, MSEL5CR_6_0),
  590. PINMUX_DATA(SCIFA7_RXD_MARK, PORT0_FN6),
  591. PINMUX_DATA(LCD1_D4_MARK, PORT0_FN7),
  592. PINMUX_DATA(IRQ5_PORT0_MARK, PORT0_FN0, MSEL1CR_5_0),
  593. /* Port1 */
  594. PINMUX_DATA(DBGMDT1_MARK, PORT1_FN1),
  595. PINMUX_DATA(FMSISLD_PORT1_MARK, PORT1_FN2, MSEL5CR_5_0),
  596. PINMUX_DATA(FSIAOSLD2_MARK, PORT1_FN3),
  597. PINMUX_DATA(LCD0_D23_PORT1_MARK, PORT1_FN4, MSEL5CR_6_0),
  598. PINMUX_DATA(SCIFA7_TXD_MARK, PORT1_FN6),
  599. PINMUX_DATA(LCD1_D3_MARK, PORT1_FN7),
  600. PINMUX_DATA(IRQ5_PORT1_MARK, PORT1_FN0, MSEL1CR_5_1),
  601. /* Port2 */
  602. PINMUX_DATA(DBGMDT0_MARK, PORT2_FN1),
  603. PINMUX_DATA(SCIFB_SCK_PORT2_MARK, PORT2_FN2, MSEL5CR_17_1),
  604. PINMUX_DATA(LCD0_D21_PORT2_MARK, PORT2_FN4, MSEL5CR_6_0),
  605. PINMUX_DATA(LCD1_D2_MARK, PORT2_FN7),
  606. PINMUX_DATA(IRQ0_PORT2_MARK, PORT2_FN0, MSEL1CR_0_1),
  607. /* Port3 */
  608. PINMUX_DATA(DBGMD21_MARK, PORT3_FN1),
  609. PINMUX_DATA(SCIFB_RXD_PORT3_MARK, PORT3_FN2, MSEL5CR_17_1),
  610. PINMUX_DATA(LCD0_D20_PORT3_MARK, PORT3_FN4, MSEL5CR_6_0),
  611. PINMUX_DATA(LCD1_D1_MARK, PORT3_FN7),
  612. /* Port4 */
  613. PINMUX_DATA(DBGMD20_MARK, PORT4_FN1),
  614. PINMUX_DATA(SCIFB_TXD_PORT4_MARK, PORT4_FN2, MSEL5CR_17_1),
  615. PINMUX_DATA(LCD0_D19_PORT4_MARK, PORT4_FN4, MSEL5CR_6_0),
  616. PINMUX_DATA(LCD1_D0_MARK, PORT4_FN7),
  617. /* Port5 */
  618. PINMUX_DATA(DBGMD11_MARK, PORT5_FN1),
  619. PINMUX_DATA(BBIF2_TXD2_PORT5_MARK, PORT5_FN2, MSEL5CR_0_0),
  620. PINMUX_DATA(FSIAISLD_PORT5_MARK, PORT5_FN4, MSEL5CR_3_1),
  621. PINMUX_DATA(RSPI_SSL0_A_MARK, PORT5_FN6),
  622. PINMUX_DATA(LCD1_VCPWC_MARK, PORT5_FN7),
  623. /* Port6 */
  624. PINMUX_DATA(DBGMD10_MARK, PORT6_FN1),
  625. PINMUX_DATA(BBIF2_TSYNC2_PORT6_MARK, PORT6_FN2, MSEL5CR_0_0),
  626. PINMUX_DATA(FMSISLD_PORT6_MARK, PORT6_FN4, MSEL5CR_5_1),
  627. PINMUX_DATA(RSPI_SSL1_A_MARK, PORT6_FN6),
  628. PINMUX_DATA(LCD1_VEPWC_MARK, PORT6_FN7),
  629. /* Port7 */
  630. PINMUX_DATA(FSIAOLR_MARK, PORT7_FN1),
  631. /* Port8 */
  632. PINMUX_DATA(FSIAOBT_MARK, PORT8_FN1),
  633. /* Port9 */
  634. PINMUX_DATA(FSIAOSLD_MARK, PORT9_FN1),
  635. PINMUX_DATA(FSIASPDIF_PORT9_MARK, PORT9_FN2, MSEL5CR_4_0),
  636. /* Port10 */
  637. PINMUX_DATA(FSIAOMC_MARK, PORT10_FN1),
  638. PINMUX_DATA(SCIFA5_RXD_PORT10_MARK, PORT10_FN3, MSEL5CR_14_0, MSEL5CR_15_0),
  639. PINMUX_DATA(IRQ3_PORT10_MARK, PORT10_FN0, MSEL1CR_3_0),
  640. /* Port11 */
  641. PINMUX_DATA(FSIACK_MARK, PORT11_FN1),
  642. PINMUX_DATA(IRQ2_PORT11_MARK, PORT11_FN0, MSEL1CR_2_0),
  643. /* Port12 */
  644. PINMUX_DATA(FSIAILR_MARK, PORT12_FN1),
  645. PINMUX_DATA(SCIFA4_RXD_PORT12_MARK, PORT12_FN2, MSEL5CR_12_0, MSEL5CR_11_0),
  646. PINMUX_DATA(LCD1_RS_MARK, PORT12_FN6),
  647. PINMUX_DATA(LCD1_DISP_MARK, PORT12_FN7),
  648. PINMUX_DATA(IRQ2_PORT12_MARK, PORT12_FN0, MSEL1CR_2_1),
  649. /* Port13 */
  650. PINMUX_DATA(FSIAIBT_MARK, PORT13_FN1),
  651. PINMUX_DATA(SCIFA4_TXD_PORT13_MARK, PORT13_FN2, MSEL5CR_12_0, MSEL5CR_11_0),
  652. PINMUX_DATA(LCD1_RD_MARK, PORT13_FN7),
  653. PINMUX_DATA(IRQ0_PORT13_MARK, PORT13_FN0, MSEL1CR_0_0),
  654. /* Port14 */
  655. PINMUX_DATA(FMSOILR_MARK, PORT14_FN1),
  656. PINMUX_DATA(FMSIILR_MARK, PORT14_FN2),
  657. PINMUX_DATA(VIO_CKO1_MARK, PORT14_FN3),
  658. PINMUX_DATA(LCD1_D23_MARK, PORT14_FN7),
  659. PINMUX_DATA(IRQ3_PORT14_MARK, PORT14_FN0, MSEL1CR_3_1),
  660. /* Port15 */
  661. PINMUX_DATA(FMSOIBT_MARK, PORT15_FN1),
  662. PINMUX_DATA(FMSIIBT_MARK, PORT15_FN2),
  663. PINMUX_DATA(VIO_CKO2_MARK, PORT15_FN3),
  664. PINMUX_DATA(LCD1_D22_MARK, PORT15_FN7),
  665. PINMUX_DATA(IRQ4_PORT15_MARK, PORT15_FN0, MSEL1CR_4_0),
  666. /* Port16 */
  667. PINMUX_DATA(FMSOOLR_MARK, PORT16_FN1),
  668. PINMUX_DATA(FMSIOLR_MARK, PORT16_FN2),
  669. /* Port17 */
  670. PINMUX_DATA(FMSOOBT_MARK, PORT17_FN1),
  671. PINMUX_DATA(FMSIOBT_MARK, PORT17_FN2),
  672. /* Port18 */
  673. PINMUX_DATA(FMSOSLD_MARK, PORT18_FN1),
  674. PINMUX_DATA(FSIASPDIF_PORT18_MARK, PORT18_FN2, MSEL5CR_4_1),
  675. /* Port19 */
  676. PINMUX_DATA(FMSICK_MARK, PORT19_FN1),
  677. PINMUX_DATA(CS5A_PORT19_MARK, PORT19_FN7, MSEL5CR_2_1),
  678. PINMUX_DATA(IRQ10_MARK, PORT19_FN0),
  679. /* Port20 */
  680. PINMUX_DATA(FMSOCK_MARK, PORT20_FN1),
  681. PINMUX_DATA(SCIFA5_TXD_PORT20_MARK, PORT20_FN3, MSEL5CR_15_0, MSEL5CR_14_0),
  682. PINMUX_DATA(IRQ1_MARK, PORT20_FN0),
  683. /* Port21 */
  684. PINMUX_DATA(SCIFA1_CTS_MARK, PORT21_FN1),
  685. PINMUX_DATA(SCIFA4_SCK_PORT21_MARK, PORT21_FN2, MSEL5CR_10_0),
  686. PINMUX_DATA(TPU0TO1_MARK, PORT21_FN4),
  687. PINMUX_DATA(VIO1_FIELD_MARK, PORT21_FN5),
  688. PINMUX_DATA(STP0_IPD5_MARK, PORT21_FN6),
  689. PINMUX_DATA(LCD1_D10_MARK, PORT21_FN7),
  690. /* Port22 */
  691. PINMUX_DATA(SCIFA2_SCK_PORT22_MARK, PORT22_FN1, MSEL5CR_7_0),
  692. PINMUX_DATA(SIM_D_PORT22_MARK, PORT22_FN4, MSEL5CR_21_0),
  693. PINMUX_DATA(VIO0_D13_PORT22_MARK, PORT22_FN7, MSEL5CR_27_1),
  694. /* Port23 */
  695. PINMUX_DATA(SCIFA1_RTS_MARK, PORT23_FN1),
  696. PINMUX_DATA(SCIFA5_SCK_PORT23_MARK, PORT23_FN3, MSEL5CR_13_0),
  697. PINMUX_DATA(TPU0TO0_MARK, PORT23_FN4),
  698. PINMUX_DATA(VIO_CKO_1_MARK, PORT23_FN5),
  699. PINMUX_DATA(STP0_IPD2_MARK, PORT23_FN6),
  700. PINMUX_DATA(LCD1_D7_MARK, PORT23_FN7),
  701. /* Port24 */
  702. PINMUX_DATA(VIO0_D15_PORT24_MARK, PORT24_FN1, MSEL5CR_27_0),
  703. PINMUX_DATA(VIO1_D7_MARK, PORT24_FN5),
  704. PINMUX_DATA(SCIFA6_SCK_MARK, PORT24_FN6),
  705. PINMUX_DATA(SDHI2_CD_PORT24_MARK, PORT24_FN7, MSEL5CR_19_0),
  706. /* Port25 */
  707. PINMUX_DATA(VIO0_D14_PORT25_MARK, PORT25_FN1, MSEL5CR_27_0),
  708. PINMUX_DATA(VIO1_D6_MARK, PORT25_FN5),
  709. PINMUX_DATA(SCIFA6_RXD_MARK, PORT25_FN6),
  710. PINMUX_DATA(SDHI2_WP_PORT25_MARK, PORT25_FN7, MSEL5CR_19_0),
  711. /* Port26 */
  712. PINMUX_DATA(VIO0_D13_PORT26_MARK, PORT26_FN1, MSEL5CR_27_0),
  713. PINMUX_DATA(VIO1_D5_MARK, PORT26_FN5),
  714. PINMUX_DATA(SCIFA6_TXD_MARK, PORT26_FN6),
  715. /* Port27 - Port39 Function */
  716. PINMUX_DATA(VIO0_D7_MARK, PORT27_FN1),
  717. PINMUX_DATA(VIO0_D6_MARK, PORT28_FN1),
  718. PINMUX_DATA(VIO0_D5_MARK, PORT29_FN1),
  719. PINMUX_DATA(VIO0_D4_MARK, PORT30_FN1),
  720. PINMUX_DATA(VIO0_D3_MARK, PORT31_FN1),
  721. PINMUX_DATA(VIO0_D2_MARK, PORT32_FN1),
  722. PINMUX_DATA(VIO0_D1_MARK, PORT33_FN1),
  723. PINMUX_DATA(VIO0_D0_MARK, PORT34_FN1),
  724. PINMUX_DATA(VIO0_CLK_MARK, PORT35_FN1),
  725. PINMUX_DATA(VIO_CKO_MARK, PORT36_FN1),
  726. PINMUX_DATA(VIO0_HD_MARK, PORT37_FN1),
  727. PINMUX_DATA(VIO0_FIELD_MARK, PORT38_FN1),
  728. PINMUX_DATA(VIO0_VD_MARK, PORT39_FN1),
  729. /* Port38 IRQ */
  730. PINMUX_DATA(IRQ25_MARK, PORT38_FN0),
  731. /* Port40 */
  732. PINMUX_DATA(LCD0_D18_PORT40_MARK, PORT40_FN4, MSEL5CR_6_0),
  733. PINMUX_DATA(RSPI_CK_A_MARK, PORT40_FN6),
  734. PINMUX_DATA(LCD1_LCLK_MARK, PORT40_FN7),
  735. /* Port41 */
  736. PINMUX_DATA(LCD0_D17_MARK, PORT41_FN1),
  737. PINMUX_DATA(MSIOF2_SS1_MARK, PORT41_FN2),
  738. PINMUX_DATA(IRQ31_PORT41_MARK, PORT41_FN0, MSEL1CR_31_1),
  739. /* Port42 */
  740. PINMUX_DATA(LCD0_D16_MARK, PORT42_FN1),
  741. PINMUX_DATA(MSIOF2_MCK1_MARK, PORT42_FN2),
  742. PINMUX_DATA(IRQ12_PORT42_MARK, PORT42_FN0, MSEL1CR_12_1),
  743. /* Port43 */
  744. PINMUX_DATA(LCD0_D15_MARK, PORT43_FN1),
  745. PINMUX_DATA(MSIOF2_MCK0_MARK, PORT43_FN2),
  746. PINMUX_DATA(KEYIN0_PORT43_MARK, PORT43_FN3, MSEL4CR_18_0),
  747. PINMUX_DATA(DV_D15_MARK, PORT43_FN6),
  748. /* Port44 */
  749. PINMUX_DATA(LCD0_D14_MARK, PORT44_FN1),
  750. PINMUX_DATA(MSIOF2_RSYNC_MARK, PORT44_FN2),
  751. PINMUX_DATA(KEYIN1_PORT44_MARK, PORT44_FN3, MSEL4CR_18_0),
  752. PINMUX_DATA(DV_D14_MARK, PORT44_FN6),
  753. /* Port45 */
  754. PINMUX_DATA(LCD0_D13_MARK, PORT45_FN1),
  755. PINMUX_DATA(MSIOF2_RSCK_MARK, PORT45_FN2),
  756. PINMUX_DATA(KEYIN2_PORT45_MARK, PORT45_FN3, MSEL4CR_18_0),
  757. PINMUX_DATA(DV_D13_MARK, PORT45_FN6),
  758. /* Port46 */
  759. PINMUX_DATA(LCD0_D12_MARK, PORT46_FN1),
  760. PINMUX_DATA(KEYIN3_PORT46_MARK, PORT46_FN3, MSEL4CR_18_0),
  761. PINMUX_DATA(DV_D12_MARK, PORT46_FN6),
  762. /* Port47 */
  763. PINMUX_DATA(LCD0_D11_MARK, PORT47_FN1),
  764. PINMUX_DATA(KEYIN4_MARK, PORT47_FN3),
  765. PINMUX_DATA(DV_D11_MARK, PORT47_FN6),
  766. /* Port48 */
  767. PINMUX_DATA(LCD0_D10_MARK, PORT48_FN1),
  768. PINMUX_DATA(KEYIN5_MARK, PORT48_FN3),
  769. PINMUX_DATA(DV_D10_MARK, PORT48_FN6),
  770. /* Port49 */
  771. PINMUX_DATA(LCD0_D9_MARK, PORT49_FN1),
  772. PINMUX_DATA(KEYIN6_MARK, PORT49_FN3),
  773. PINMUX_DATA(DV_D9_MARK, PORT49_FN6),
  774. PINMUX_DATA(IRQ30_PORT49_MARK, PORT49_FN0, MSEL1CR_30_1),
  775. /* Port50 */
  776. PINMUX_DATA(LCD0_D8_MARK, PORT50_FN1),
  777. PINMUX_DATA(KEYIN7_MARK, PORT50_FN3),
  778. PINMUX_DATA(DV_D8_MARK, PORT50_FN6),
  779. PINMUX_DATA(IRQ29_PORT50_MARK, PORT50_FN0, MSEL1CR_29_1),
  780. /* Port51 */
  781. PINMUX_DATA(LCD0_D7_MARK, PORT51_FN1),
  782. PINMUX_DATA(KEYOUT0_MARK, PORT51_FN3),
  783. PINMUX_DATA(DV_D7_MARK, PORT51_FN6),
  784. /* Port52 */
  785. PINMUX_DATA(LCD0_D6_MARK, PORT52_FN1),
  786. PINMUX_DATA(KEYOUT1_MARK, PORT52_FN3),
  787. PINMUX_DATA(DV_D6_MARK, PORT52_FN6),
  788. /* Port53 */
  789. PINMUX_DATA(LCD0_D5_MARK, PORT53_FN1),
  790. PINMUX_DATA(KEYOUT2_MARK, PORT53_FN3),
  791. PINMUX_DATA(DV_D5_MARK, PORT53_FN6),
  792. /* Port54 */
  793. PINMUX_DATA(LCD0_D4_MARK, PORT54_FN1),
  794. PINMUX_DATA(KEYOUT3_MARK, PORT54_FN3),
  795. PINMUX_DATA(DV_D4_MARK, PORT54_FN6),
  796. /* Port55 */
  797. PINMUX_DATA(LCD0_D3_MARK, PORT55_FN1),
  798. PINMUX_DATA(KEYOUT4_MARK, PORT55_FN3),
  799. PINMUX_DATA(KEYIN3_PORT55_MARK, PORT55_FN4, MSEL4CR_18_1),
  800. PINMUX_DATA(DV_D3_MARK, PORT55_FN6),
  801. /* Port56 */
  802. PINMUX_DATA(LCD0_D2_MARK, PORT56_FN1),
  803. PINMUX_DATA(KEYOUT5_MARK, PORT56_FN3),
  804. PINMUX_DATA(KEYIN2_PORT56_MARK, PORT56_FN4, MSEL4CR_18_1),
  805. PINMUX_DATA(DV_D2_MARK, PORT56_FN6),
  806. PINMUX_DATA(IRQ28_PORT56_MARK, PORT56_FN0, MSEL1CR_28_1),
  807. /* Port57 */
  808. PINMUX_DATA(LCD0_D1_MARK, PORT57_FN1),
  809. PINMUX_DATA(KEYOUT6_MARK, PORT57_FN3),
  810. PINMUX_DATA(KEYIN1_PORT57_MARK, PORT57_FN4, MSEL4CR_18_1),
  811. PINMUX_DATA(DV_D1_MARK, PORT57_FN6),
  812. PINMUX_DATA(IRQ27_PORT57_MARK, PORT57_FN0, MSEL1CR_27_1),
  813. /* Port58 */
  814. PINMUX_DATA(LCD0_D0_MARK, PORT58_FN1),
  815. PINMUX_DATA(KEYOUT7_MARK, PORT58_FN3),
  816. PINMUX_DATA(KEYIN0_PORT58_MARK, PORT58_FN4, MSEL4CR_18_1),
  817. PINMUX_DATA(DV_D0_MARK, PORT58_FN6),
  818. PINMUX_DATA(IRQ26_PORT58_MARK, PORT58_FN0, MSEL1CR_26_1),
  819. /* Port59 */
  820. PINMUX_DATA(LCD0_VCPWC_MARK, PORT59_FN1),
  821. PINMUX_DATA(BBIF2_TSCK2_PORT59_MARK, PORT59_FN2, MSEL5CR_0_0),
  822. PINMUX_DATA(RSPI_MOSI_A_MARK, PORT59_FN6),
  823. /* Port60 */
  824. PINMUX_DATA(LCD0_VEPWC_MARK, PORT60_FN1),
  825. PINMUX_DATA(BBIF2_RXD2_PORT60_MARK, PORT60_FN2, MSEL5CR_0_0),
  826. PINMUX_DATA(RSPI_MISO_A_MARK, PORT60_FN6),
  827. /* Port61 */
  828. PINMUX_DATA(LCD0_DON_MARK, PORT61_FN1),
  829. PINMUX_DATA(MSIOF2_TXD_MARK, PORT61_FN2),
  830. /* Port62 */
  831. PINMUX_DATA(LCD0_DCK_MARK, PORT62_FN1),
  832. PINMUX_DATA(LCD0_WR_MARK, PORT62_FN4),
  833. PINMUX_DATA(DV_CLK_MARK, PORT62_FN6),
  834. PINMUX_DATA(IRQ15_PORT62_MARK, PORT62_FN0, MSEL1CR_15_1),
  835. /* Port63 */
  836. PINMUX_DATA(LCD0_VSYN_MARK, PORT63_FN1),
  837. PINMUX_DATA(DV_VSYNC_MARK, PORT63_FN6),
  838. PINMUX_DATA(IRQ14_PORT63_MARK, PORT63_FN0, MSEL1CR_14_1),
  839. /* Port64 */
  840. PINMUX_DATA(LCD0_HSYN_MARK, PORT64_FN1),
  841. PINMUX_DATA(LCD0_CS_MARK, PORT64_FN4),
  842. PINMUX_DATA(DV_HSYNC_MARK, PORT64_FN6),
  843. PINMUX_DATA(IRQ13_PORT64_MARK, PORT64_FN0, MSEL1CR_13_1),
  844. /* Port65 */
  845. PINMUX_DATA(LCD0_DISP_MARK, PORT65_FN1),
  846. PINMUX_DATA(MSIOF2_TSCK_MARK, PORT65_FN2),
  847. PINMUX_DATA(LCD0_RS_MARK, PORT65_FN4),
  848. /* Port66 */
  849. PINMUX_DATA(MEMC_INT_MARK, PORT66_FN1),
  850. PINMUX_DATA(TPU0TO2_PORT66_MARK, PORT66_FN3, MSEL5CR_25_0),
  851. PINMUX_DATA(MMC0_CLK_PORT66_MARK, PORT66_FN4, MSEL4CR_15_0),
  852. PINMUX_DATA(SDHI1_CLK_MARK, PORT66_FN6),
  853. /* Port67 - Port73 Function1 */
  854. PINMUX_DATA(MEMC_CS0_MARK, PORT67_FN1),
  855. PINMUX_DATA(MEMC_AD8_MARK, PORT68_FN1),
  856. PINMUX_DATA(MEMC_AD9_MARK, PORT69_FN1),
  857. PINMUX_DATA(MEMC_AD10_MARK, PORT70_FN1),
  858. PINMUX_DATA(MEMC_AD11_MARK, PORT71_FN1),
  859. PINMUX_DATA(MEMC_AD12_MARK, PORT72_FN1),
  860. PINMUX_DATA(MEMC_AD13_MARK, PORT73_FN1),
  861. /* Port67 - Port73 Function2 */
  862. PINMUX_DATA(MSIOF1_SS1_PORT67_MARK, PORT67_FN2, MSEL4CR_10_1),
  863. PINMUX_DATA(MSIOF1_RSCK_MARK, PORT68_FN2),
  864. PINMUX_DATA(MSIOF1_RSYNC_MARK, PORT69_FN2),
  865. PINMUX_DATA(MSIOF1_MCK0_MARK, PORT70_FN2),
  866. PINMUX_DATA(MSIOF1_MCK1_MARK, PORT71_FN2),
  867. PINMUX_DATA(MSIOF1_TSCK_PORT72_MARK, PORT72_FN2, MSEL4CR_10_1),
  868. PINMUX_DATA(MSIOF1_TSYNC_PORT73_MARK, PORT73_FN2, MSEL4CR_10_1),
  869. /* Port67 - Port73 Function4 */
  870. PINMUX_DATA(MMC0_CMD_PORT67_MARK, PORT67_FN4, MSEL4CR_15_0),
  871. PINMUX_DATA(MMC0_D0_PORT68_MARK, PORT68_FN4, MSEL4CR_15_0),
  872. PINMUX_DATA(MMC0_D1_PORT69_MARK, PORT69_FN4, MSEL4CR_15_0),
  873. PINMUX_DATA(MMC0_D2_PORT70_MARK, PORT70_FN4, MSEL4CR_15_0),
  874. PINMUX_DATA(MMC0_D3_PORT71_MARK, PORT71_FN4, MSEL4CR_15_0),
  875. PINMUX_DATA(MMC0_D4_PORT72_MARK, PORT72_FN4, MSEL4CR_15_0),
  876. PINMUX_DATA(MMC0_D5_PORT73_MARK, PORT73_FN4, MSEL4CR_15_0),
  877. /* Port67 - Port73 Function6 */
  878. PINMUX_DATA(SDHI1_CMD_MARK, PORT67_FN6),
  879. PINMUX_DATA(SDHI1_D0_MARK, PORT68_FN6),
  880. PINMUX_DATA(SDHI1_D1_MARK, PORT69_FN6),
  881. PINMUX_DATA(SDHI1_D2_MARK, PORT70_FN6),
  882. PINMUX_DATA(SDHI1_D3_MARK, PORT71_FN6),
  883. PINMUX_DATA(SDHI1_CD_MARK, PORT72_FN6),
  884. PINMUX_DATA(SDHI1_WP_MARK, PORT73_FN6),
  885. /* Port67 - Port71 IRQ */
  886. PINMUX_DATA(IRQ20_MARK, PORT67_FN0),
  887. PINMUX_DATA(IRQ16_PORT68_MARK, PORT68_FN0, MSEL1CR_16_0),
  888. PINMUX_DATA(IRQ17_MARK, PORT69_FN0),
  889. PINMUX_DATA(IRQ18_MARK, PORT70_FN0),
  890. PINMUX_DATA(IRQ19_MARK, PORT71_FN0),
  891. /* Port74 */
  892. PINMUX_DATA(MEMC_AD14_MARK, PORT74_FN1),
  893. PINMUX_DATA(MSIOF1_TXD_PORT74_MARK, PORT74_FN2, MSEL4CR_10_1),
  894. PINMUX_DATA(MMC0_D6_PORT74_MARK, PORT74_FN4, MSEL4CR_15_0),
  895. PINMUX_DATA(STP1_IPD7_MARK, PORT74_FN6),
  896. PINMUX_DATA(LCD1_D21_MARK, PORT74_FN7),
  897. /* Port75 */
  898. PINMUX_DATA(MEMC_AD15_MARK, PORT75_FN1),
  899. PINMUX_DATA(MSIOF1_RXD_PORT75_MARK, PORT75_FN2, MSEL4CR_10_1),
  900. PINMUX_DATA(MMC0_D7_PORT75_MARK, PORT75_FN4, MSEL4CR_15_0),
  901. PINMUX_DATA(STP1_IPD6_MARK, PORT75_FN6),
  902. PINMUX_DATA(LCD1_D20_MARK, PORT75_FN7),
  903. /* Port76 - Port80 Function */
  904. PINMUX_DATA(SDHI0_CMD_MARK, PORT76_FN1),
  905. PINMUX_DATA(SDHI0_D0_MARK, PORT77_FN1),
  906. PINMUX_DATA(SDHI0_D1_MARK, PORT78_FN1),
  907. PINMUX_DATA(SDHI0_D2_MARK, PORT79_FN1),
  908. PINMUX_DATA(SDHI0_D3_MARK, PORT80_FN1),
  909. /* Port81 */
  910. PINMUX_DATA(SDHI0_CD_MARK, PORT81_FN1),
  911. PINMUX_DATA(IRQ26_PORT81_MARK, PORT81_FN0, MSEL1CR_26_0),
  912. /* Port82 - Port88 Function */
  913. PINMUX_DATA(SDHI0_CLK_MARK, PORT82_FN1),
  914. PINMUX_DATA(SDHI0_WP_MARK, PORT83_FN1),
  915. PINMUX_DATA(RESETOUTS_MARK, PORT84_FN1),
  916. PINMUX_DATA(USB0_PPON_MARK, PORT85_FN1),
  917. PINMUX_DATA(USB0_OCI_MARK, PORT86_FN1),
  918. PINMUX_DATA(USB1_PPON_MARK, PORT87_FN1),
  919. PINMUX_DATA(USB1_OCI_MARK, PORT88_FN1),
  920. /* Port89 */
  921. PINMUX_DATA(DREQ0_MARK, PORT89_FN1),
  922. PINMUX_DATA(BBIF2_TSCK2_PORT89_MARK, PORT89_FN2, MSEL5CR_0_1),
  923. PINMUX_DATA(RSPI_SSL3_A_MARK, PORT89_FN6),
  924. /* Port90 */
  925. PINMUX_DATA(DACK0_MARK, PORT90_FN1),
  926. PINMUX_DATA(BBIF2_RXD2_PORT90_MARK, PORT90_FN2, MSEL5CR_0_1),
  927. PINMUX_DATA(RSPI_SSL2_A_MARK, PORT90_FN6),
  928. PINMUX_DATA(WAIT_PORT90_MARK, PORT90_FN7, MSEL5CR_2_1),
  929. /* Port91 */
  930. PINMUX_DATA(MEMC_AD0_MARK, PORT91_FN1),
  931. PINMUX_DATA(BBIF1_RXD_MARK, PORT91_FN2),
  932. PINMUX_DATA(SCIFA5_TXD_PORT91_MARK, PORT91_FN3, MSEL5CR_15_1, MSEL5CR_14_0),
  933. PINMUX_DATA(LCD1_D5_MARK, PORT91_FN7),
  934. /* Port92 */
  935. PINMUX_DATA(MEMC_AD1_MARK, PORT92_FN1),
  936. PINMUX_DATA(BBIF1_TSYNC_MARK, PORT92_FN2),
  937. PINMUX_DATA(SCIFA5_RXD_PORT92_MARK, PORT92_FN3, MSEL5CR_15_1, MSEL5CR_14_0),
  938. PINMUX_DATA(STP0_IPD1_MARK, PORT92_FN6),
  939. PINMUX_DATA(LCD1_D6_MARK, PORT92_FN7),
  940. /* Port93 */
  941. PINMUX_DATA(MEMC_AD2_MARK, PORT93_FN1),
  942. PINMUX_DATA(BBIF1_TSCK_MARK, PORT93_FN2),
  943. PINMUX_DATA(SCIFA4_TXD_PORT93_MARK, PORT93_FN3, MSEL5CR_12_1, MSEL5CR_11_0),
  944. PINMUX_DATA(STP0_IPD3_MARK, PORT93_FN6),
  945. PINMUX_DATA(LCD1_D8_MARK, PORT93_FN7),
  946. /* Port94 */
  947. PINMUX_DATA(MEMC_AD3_MARK, PORT94_FN1),
  948. PINMUX_DATA(BBIF1_TXD_MARK, PORT94_FN2),
  949. PINMUX_DATA(SCIFA4_RXD_PORT94_MARK, PORT94_FN3, MSEL5CR_12_1, MSEL5CR_11_0),
  950. PINMUX_DATA(STP0_IPD4_MARK, PORT94_FN6),
  951. PINMUX_DATA(LCD1_D9_MARK, PORT94_FN7),
  952. /* Port95 */
  953. PINMUX_DATA(MEMC_CS1_MARK, PORT95_FN1, MSEL4CR_6_0),
  954. PINMUX_DATA(MEMC_A1_MARK, PORT95_FN1, MSEL4CR_6_1),
  955. PINMUX_DATA(SCIFA2_CTS_MARK, PORT95_FN2),
  956. PINMUX_DATA(SIM_RST_MARK, PORT95_FN4),
  957. PINMUX_DATA(VIO0_D14_PORT95_MARK, PORT95_FN7, MSEL5CR_27_1),
  958. PINMUX_DATA(IRQ22_MARK, PORT95_FN0),
  959. /* Port96 */
  960. PINMUX_DATA(MEMC_ADV_MARK, PORT96_FN1, MSEL4CR_6_0),
  961. PINMUX_DATA(MEMC_DREQ0_MARK, PORT96_FN1, MSEL4CR_6_1),
  962. PINMUX_DATA(SCIFA2_RTS_MARK, PORT96_FN2),
  963. PINMUX_DATA(SIM_CLK_MARK, PORT96_FN4),
  964. PINMUX_DATA(VIO0_D15_PORT96_MARK, PORT96_FN7, MSEL5CR_27_1),
  965. PINMUX_DATA(IRQ23_MARK, PORT96_FN0),
  966. /* Port97 */
  967. PINMUX_DATA(MEMC_AD4_MARK, PORT97_FN1),
  968. PINMUX_DATA(BBIF1_RSCK_MARK, PORT97_FN2),
  969. PINMUX_DATA(LCD1_CS_MARK, PORT97_FN6),
  970. PINMUX_DATA(LCD1_HSYN_MARK, PORT97_FN7),
  971. PINMUX_DATA(IRQ12_PORT97_MARK, PORT97_FN0, MSEL1CR_12_0),
  972. /* Port98 */
  973. PINMUX_DATA(MEMC_AD5_MARK, PORT98_FN1),
  974. PINMUX_DATA(BBIF1_RSYNC_MARK, PORT98_FN2),
  975. PINMUX_DATA(LCD1_VSYN_MARK, PORT98_FN7),
  976. PINMUX_DATA(IRQ13_PORT98_MARK, PORT98_FN0, MSEL1CR_13_0),
  977. /* Port99 */
  978. PINMUX_DATA(MEMC_AD6_MARK, PORT99_FN1),
  979. PINMUX_DATA(BBIF1_FLOW_MARK, PORT99_FN2),
  980. PINMUX_DATA(LCD1_WR_MARK, PORT99_FN6),
  981. PINMUX_DATA(LCD1_DCK_MARK, PORT99_FN7),
  982. PINMUX_DATA(IRQ14_PORT99_MARK, PORT99_FN0, MSEL1CR_14_0),
  983. /* Port100 */
  984. PINMUX_DATA(MEMC_AD7_MARK, PORT100_FN1),
  985. PINMUX_DATA(BBIF1_RX_FLOW_N_MARK, PORT100_FN2),
  986. PINMUX_DATA(LCD1_DON_MARK, PORT100_FN7),
  987. PINMUX_DATA(IRQ15_PORT100_MARK, PORT100_FN0, MSEL1CR_15_0),
  988. /* Port101 */
  989. PINMUX_DATA(FCE0_MARK, PORT101_FN1),
  990. /* Port102 */
  991. PINMUX_DATA(FRB_MARK, PORT102_FN1),
  992. PINMUX_DATA(LCD0_LCLK_PORT102_MARK, PORT102_FN4, MSEL5CR_6_0),
  993. /* Port103 */
  994. PINMUX_DATA(CS5B_MARK, PORT103_FN1),
  995. PINMUX_DATA(FCE1_MARK, PORT103_FN2),
  996. PINMUX_DATA(MMC1_CLK_PORT103_MARK, PORT103_FN3, MSEL4CR_15_1),
  997. /* Port104 */
  998. PINMUX_DATA(CS6A_MARK, PORT104_FN1),
  999. PINMUX_DATA(MMC1_CMD_PORT104_MARK, PORT104_FN3, MSEL4CR_15_1),
  1000. PINMUX_DATA(IRQ11_MARK, PORT104_FN0),
  1001. /* Port105 */
  1002. PINMUX_DATA(CS5A_PORT105_MARK, PORT105_FN1, MSEL5CR_2_0),
  1003. PINMUX_DATA(SCIFA3_RTS_PORT105_MARK, PORT105_FN4, MSEL5CR_8_0),
  1004. /* Port106 */
  1005. PINMUX_DATA(IOIS16_MARK, PORT106_FN1),
  1006. PINMUX_DATA(IDE_EXBUF_ENB_MARK, PORT106_FN6),
  1007. /* Port107 - Port115 Function */
  1008. PINMUX_DATA(WE3_ICIOWR_MARK, PORT107_FN1),
  1009. PINMUX_DATA(WE2_ICIORD_MARK, PORT108_FN1),
  1010. PINMUX_DATA(CS0_MARK, PORT109_FN1),
  1011. PINMUX_DATA(CS2_MARK, PORT110_FN1),
  1012. PINMUX_DATA(CS4_MARK, PORT111_FN1),
  1013. PINMUX_DATA(WE1_MARK, PORT112_FN1),
  1014. PINMUX_DATA(WE0_FWE_MARK, PORT113_FN1),
  1015. PINMUX_DATA(RDWR_MARK, PORT114_FN1),
  1016. PINMUX_DATA(RD_FSC_MARK, PORT115_FN1),
  1017. /* Port116 */
  1018. PINMUX_DATA(A25_MARK, PORT116_FN1),
  1019. PINMUX_DATA(MSIOF0_SS2_MARK, PORT116_FN2),
  1020. PINMUX_DATA(MSIOF1_SS2_PORT116_MARK, PORT116_FN3, MSEL4CR_10_0),
  1021. PINMUX_DATA(SCIFA3_SCK_PORT116_MARK, PORT116_FN4, MSEL5CR_8_0),
  1022. PINMUX_DATA(GPO1_MARK, PORT116_FN5),
  1023. /* Port117 */
  1024. PINMUX_DATA(A24_MARK, PORT117_FN1),
  1025. PINMUX_DATA(MSIOF0_SS1_MARK, PORT117_FN2),
  1026. PINMUX_DATA(MSIOF1_SS1_PORT117_MARK, PORT117_FN3, MSEL4CR_10_0),
  1027. PINMUX_DATA(SCIFA3_CTS_PORT117_MARK, PORT117_FN4, MSEL5CR_8_0),
  1028. PINMUX_DATA(GPO0_MARK, PORT117_FN5),
  1029. /* Port118 */
  1030. PINMUX_DATA(A23_MARK, PORT118_FN1),
  1031. PINMUX_DATA(MSIOF0_MCK1_MARK, PORT118_FN2),
  1032. PINMUX_DATA(MSIOF1_RXD_PORT118_MARK, PORT118_FN3, MSEL4CR_10_0),
  1033. PINMUX_DATA(GPI1_MARK, PORT118_FN5),
  1034. PINMUX_DATA(IRQ9_PORT118_MARK, PORT118_FN0, MSEL1CR_9_0),
  1035. /* Port119 */
  1036. PINMUX_DATA(A22_MARK, PORT119_FN1),
  1037. PINMUX_DATA(MSIOF0_MCK0_MARK, PORT119_FN2),
  1038. PINMUX_DATA(MSIOF1_TXD_PORT119_MARK, PORT119_FN3, MSEL4CR_10_0),
  1039. PINMUX_DATA(GPI0_MARK, PORT119_FN5),
  1040. PINMUX_DATA(IRQ8_MARK, PORT119_FN0),
  1041. /* Port120 */
  1042. PINMUX_DATA(A21_MARK, PORT120_FN1),
  1043. PINMUX_DATA(MSIOF0_RSYNC_MARK, PORT120_FN2),
  1044. PINMUX_DATA(MSIOF1_TSYNC_PORT120_MARK, PORT120_FN3, MSEL4CR_10_0),
  1045. PINMUX_DATA(IRQ7_PORT120_MARK, PORT120_FN0, MSEL1CR_7_0),
  1046. /* Port121 */
  1047. PINMUX_DATA(A20_MARK, PORT121_FN1),
  1048. PINMUX_DATA(MSIOF0_RSCK_MARK, PORT121_FN2),
  1049. PINMUX_DATA(MSIOF1_TSCK_PORT121_MARK, PORT121_FN3, MSEL4CR_10_0),
  1050. PINMUX_DATA(IRQ6_PORT121_MARK, PORT121_FN0, MSEL1CR_6_0),
  1051. /* Port122 */
  1052. PINMUX_DATA(A19_MARK, PORT122_FN1),
  1053. PINMUX_DATA(MSIOF0_RXD_MARK, PORT122_FN2),
  1054. /* Port123 */
  1055. PINMUX_DATA(A18_MARK, PORT123_FN1),
  1056. PINMUX_DATA(MSIOF0_TSCK_MARK, PORT123_FN2),
  1057. /* Port124 */
  1058. PINMUX_DATA(A17_MARK, PORT124_FN1),
  1059. PINMUX_DATA(MSIOF0_TSYNC_MARK, PORT124_FN2),
  1060. /* Port125 - Port141 Function */
  1061. PINMUX_DATA(A16_MARK, PORT125_FN1),
  1062. PINMUX_DATA(A15_MARK, PORT126_FN1),
  1063. PINMUX_DATA(A14_MARK, PORT127_FN1),
  1064. PINMUX_DATA(A13_MARK, PORT128_FN1),
  1065. PINMUX_DATA(A12_MARK, PORT129_FN1),
  1066. PINMUX_DATA(A11_MARK, PORT130_FN1),
  1067. PINMUX_DATA(A10_MARK, PORT131_FN1),
  1068. PINMUX_DATA(A9_MARK, PORT132_FN1),
  1069. PINMUX_DATA(A8_MARK, PORT133_FN1),
  1070. PINMUX_DATA(A7_MARK, PORT134_FN1),
  1071. PINMUX_DATA(A6_MARK, PORT135_FN1),
  1072. PINMUX_DATA(A5_FCDE_MARK, PORT136_FN1),
  1073. PINMUX_DATA(A4_FOE_MARK, PORT137_FN1),
  1074. PINMUX_DATA(A3_MARK, PORT138_FN1),
  1075. PINMUX_DATA(A2_MARK, PORT139_FN1),
  1076. PINMUX_DATA(A1_MARK, PORT140_FN1),
  1077. PINMUX_DATA(CKO_MARK, PORT141_FN1),
  1078. /* Port142 - Port157 Function1 */
  1079. PINMUX_DATA(D15_NAF15_MARK, PORT142_FN1),
  1080. PINMUX_DATA(D14_NAF14_MARK, PORT143_FN1),
  1081. PINMUX_DATA(D13_NAF13_MARK, PORT144_FN1),
  1082. PINMUX_DATA(D12_NAF12_MARK, PORT145_FN1),
  1083. PINMUX_DATA(D11_NAF11_MARK, PORT146_FN1),
  1084. PINMUX_DATA(D10_NAF10_MARK, PORT147_FN1),
  1085. PINMUX_DATA(D9_NAF9_MARK, PORT148_FN1),
  1086. PINMUX_DATA(D8_NAF8_MARK, PORT149_FN1),
  1087. PINMUX_DATA(D7_NAF7_MARK, PORT150_FN1),
  1088. PINMUX_DATA(D6_NAF6_MARK, PORT151_FN1),
  1089. PINMUX_DATA(D5_NAF5_MARK, PORT152_FN1),
  1090. PINMUX_DATA(D4_NAF4_MARK, PORT153_FN1),
  1091. PINMUX_DATA(D3_NAF3_MARK, PORT154_FN1),
  1092. PINMUX_DATA(D2_NAF2_MARK, PORT155_FN1),
  1093. PINMUX_DATA(D1_NAF1_MARK, PORT156_FN1),
  1094. PINMUX_DATA(D0_NAF0_MARK, PORT157_FN1),
  1095. /* Port142 - Port149 Function3 */
  1096. PINMUX_DATA(MMC1_D7_PORT142_MARK, PORT142_FN3, MSEL4CR_15_1),
  1097. PINMUX_DATA(MMC1_D6_PORT143_MARK, PORT143_FN3, MSEL4CR_15_1),
  1098. PINMUX_DATA(MMC1_D5_PORT144_MARK, PORT144_FN3, MSEL4CR_15_1),
  1099. PINMUX_DATA(MMC1_D4_PORT145_MARK, PORT145_FN3, MSEL4CR_15_1),
  1100. PINMUX_DATA(MMC1_D3_PORT146_MARK, PORT146_FN3, MSEL4CR_15_1),
  1101. PINMUX_DATA(MMC1_D2_PORT147_MARK, PORT147_FN3, MSEL4CR_15_1),
  1102. PINMUX_DATA(MMC1_D1_PORT148_MARK, PORT148_FN3, MSEL4CR_15_1),
  1103. PINMUX_DATA(MMC1_D0_PORT149_MARK, PORT149_FN3, MSEL4CR_15_1),
  1104. /* Port158 */
  1105. PINMUX_DATA(D31_MARK, PORT158_FN1),
  1106. PINMUX_DATA(SCIFA3_SCK_PORT158_MARK, PORT158_FN2, MSEL5CR_8_1),
  1107. PINMUX_DATA(RMII_REF125CK_MARK, PORT158_FN3),
  1108. PINMUX_DATA(LCD0_D21_PORT158_MARK, PORT158_FN4, MSEL5CR_6_1),
  1109. PINMUX_DATA(IRDA_FIRSEL_MARK, PORT158_FN5),
  1110. PINMUX_DATA(IDE_D15_MARK, PORT158_FN6),
  1111. /* Port159 */
  1112. PINMUX_DATA(D30_MARK, PORT159_FN1),
  1113. PINMUX_DATA(SCIFA3_RXD_PORT159_MARK, PORT159_FN2, MSEL5CR_8_1),
  1114. PINMUX_DATA(RMII_REF50CK_MARK, PORT159_FN3),
  1115. PINMUX_DATA(LCD0_D23_PORT159_MARK, PORT159_FN4, MSEL5CR_6_1),
  1116. PINMUX_DATA(IDE_D14_MARK, PORT159_FN6),
  1117. /* Port160 */
  1118. PINMUX_DATA(D29_MARK, PORT160_FN1),
  1119. PINMUX_DATA(SCIFA3_TXD_PORT160_MARK, PORT160_FN2, MSEL5CR_8_1),
  1120. PINMUX_DATA(LCD0_D22_PORT160_MARK, PORT160_FN4, MSEL5CR_6_1),
  1121. PINMUX_DATA(VIO1_HD_MARK, PORT160_FN5),
  1122. PINMUX_DATA(IDE_D13_MARK, PORT160_FN6),
  1123. /* Port161 */
  1124. PINMUX_DATA(D28_MARK, PORT161_FN1),
  1125. PINMUX_DATA(SCIFA3_RTS_PORT161_MARK, PORT161_FN2, MSEL5CR_8_1),
  1126. PINMUX_DATA(ET_RX_DV_MARK, PORT161_FN3),
  1127. PINMUX_DATA(LCD0_D20_PORT161_MARK, PORT161_FN4, MSEL5CR_6_1),
  1128. PINMUX_DATA(IRDA_IN_MARK, PORT161_FN5),
  1129. PINMUX_DATA(IDE_D12_MARK, PORT161_FN6),
  1130. /* Port162 */
  1131. PINMUX_DATA(D27_MARK, PORT162_FN1),
  1132. PINMUX_DATA(SCIFA3_CTS_PORT162_MARK, PORT162_FN2, MSEL5CR_8_1),
  1133. PINMUX_DATA(LCD0_D19_PORT162_MARK, PORT162_FN4, MSEL5CR_6_1),
  1134. PINMUX_DATA(IRDA_OUT_MARK, PORT162_FN5),
  1135. PINMUX_DATA(IDE_D11_MARK, PORT162_FN6),
  1136. /* Port163 */
  1137. PINMUX_DATA(D26_MARK, PORT163_FN1),
  1138. PINMUX_DATA(MSIOF2_SS2_MARK, PORT163_FN2),
  1139. PINMUX_DATA(ET_COL_MARK, PORT163_FN3),
  1140. PINMUX_DATA(LCD0_D18_PORT163_MARK, PORT163_FN4, MSEL5CR_6_1),
  1141. PINMUX_DATA(IROUT_MARK, PORT163_FN5),
  1142. PINMUX_DATA(IDE_D10_MARK, PORT163_FN6),
  1143. /* Port164 */
  1144. PINMUX_DATA(D25_MARK, PORT164_FN1),
  1145. PINMUX_DATA(MSIOF2_TSYNC_MARK, PORT164_FN2),
  1146. PINMUX_DATA(ET_PHY_INT_MARK, PORT164_FN3),
  1147. PINMUX_DATA(LCD0_RD_MARK, PORT164_FN4),
  1148. PINMUX_DATA(IDE_D9_MARK, PORT164_FN6),
  1149. /* Port165 */
  1150. PINMUX_DATA(D24_MARK, PORT165_FN1),
  1151. PINMUX_DATA(MSIOF2_RXD_MARK, PORT165_FN2),
  1152. PINMUX_DATA(LCD0_LCLK_PORT165_MARK, PORT165_FN4, MSEL5CR_6_1),
  1153. PINMUX_DATA(IDE_D8_MARK, PORT165_FN6),
  1154. /* Port166 - Port171 Function1 */
  1155. PINMUX_DATA(D21_MARK, PORT166_FN1),
  1156. PINMUX_DATA(D20_MARK, PORT167_FN1),
  1157. PINMUX_DATA(D19_MARK, PORT168_FN1),
  1158. PINMUX_DATA(D18_MARK, PORT169_FN1),
  1159. PINMUX_DATA(D17_MARK, PORT170_FN1),
  1160. PINMUX_DATA(D16_MARK, PORT171_FN1),
  1161. /* Port166 - Port171 Function3 */
  1162. PINMUX_DATA(ET_ETXD5_MARK, PORT166_FN3),
  1163. PINMUX_DATA(ET_ETXD4_MARK, PORT167_FN3),
  1164. PINMUX_DATA(ET_ETXD3_MARK, PORT168_FN3),
  1165. PINMUX_DATA(ET_ETXD2_MARK, PORT169_FN3),
  1166. PINMUX_DATA(ET_ETXD1_MARK, PORT170_FN3),
  1167. PINMUX_DATA(ET_ETXD0_MARK, PORT171_FN3),
  1168. /* Port166 - Port171 Function6 */
  1169. PINMUX_DATA(IDE_D5_MARK, PORT166_FN6),
  1170. PINMUX_DATA(IDE_D4_MARK, PORT167_FN6),
  1171. PINMUX_DATA(IDE_D3_MARK, PORT168_FN6),
  1172. PINMUX_DATA(IDE_D2_MARK, PORT169_FN6),
  1173. PINMUX_DATA(IDE_D1_MARK, PORT170_FN6),
  1174. PINMUX_DATA(IDE_D0_MARK, PORT171_FN6),
  1175. /* Port167 - Port171 IRQ */
  1176. PINMUX_DATA(IRQ31_PORT167_MARK, PORT167_FN0, MSEL1CR_31_0),
  1177. PINMUX_DATA(IRQ27_PORT168_MARK, PORT168_FN0, MSEL1CR_27_0),
  1178. PINMUX_DATA(IRQ28_PORT169_MARK, PORT169_FN0, MSEL1CR_28_0),
  1179. PINMUX_DATA(IRQ29_PORT170_MARK, PORT170_FN0, MSEL1CR_29_0),
  1180. PINMUX_DATA(IRQ30_PORT171_MARK, PORT171_FN0, MSEL1CR_30_0),
  1181. /* Port172 */
  1182. PINMUX_DATA(D23_MARK, PORT172_FN1),
  1183. PINMUX_DATA(SCIFB_RTS_PORT172_MARK, PORT172_FN2, MSEL5CR_17_1),
  1184. PINMUX_DATA(ET_ETXD7_MARK, PORT172_FN3),
  1185. PINMUX_DATA(IDE_D7_MARK, PORT172_FN6),
  1186. PINMUX_DATA(IRQ4_PORT172_MARK, PORT172_FN0, MSEL1CR_4_1),
  1187. /* Port173 */
  1188. PINMUX_DATA(D22_MARK, PORT173_FN1),
  1189. PINMUX_DATA(SCIFB_CTS_PORT173_MARK, PORT173_FN2, MSEL5CR_17_1),
  1190. PINMUX_DATA(ET_ETXD6_MARK, PORT173_FN3),
  1191. PINMUX_DATA(IDE_D6_MARK, PORT173_FN6),
  1192. PINMUX_DATA(IRQ6_PORT173_MARK, PORT173_FN0, MSEL1CR_6_1),
  1193. /* Port174 */
  1194. PINMUX_DATA(A26_MARK, PORT174_FN1),
  1195. PINMUX_DATA(MSIOF0_TXD_MARK, PORT174_FN2),
  1196. PINMUX_DATA(ET_RX_CLK_MARK, PORT174_FN3),
  1197. PINMUX_DATA(SCIFA3_RXD_PORT174_MARK, PORT174_FN4, MSEL5CR_8_0),
  1198. /* Port175 */
  1199. PINMUX_DATA(A0_MARK, PORT175_FN1),
  1200. PINMUX_DATA(BS_MARK, PORT175_FN2),
  1201. PINMUX_DATA(ET_WOL_MARK, PORT175_FN3),
  1202. PINMUX_DATA(SCIFA3_TXD_PORT175_MARK, PORT175_FN4, MSEL5CR_8_0),
  1203. /* Port176 */
  1204. PINMUX_DATA(ET_GTX_CLK_MARK, PORT176_FN3),
  1205. /* Port177 */
  1206. PINMUX_DATA(WAIT_PORT177_MARK, PORT177_FN1, MSEL5CR_2_0),
  1207. PINMUX_DATA(ET_LINK_MARK, PORT177_FN3),
  1208. PINMUX_DATA(IDE_IOWR_MARK, PORT177_FN6),
  1209. PINMUX_DATA(SDHI2_WP_PORT177_MARK, PORT177_FN7, MSEL5CR_19_1),
  1210. /* Port178 */
  1211. PINMUX_DATA(VIO0_D12_MARK, PORT178_FN1),
  1212. PINMUX_DATA(VIO1_D4_MARK, PORT178_FN5),
  1213. PINMUX_DATA(IDE_IORD_MARK, PORT178_FN6),
  1214. /* Port179 */
  1215. PINMUX_DATA(VIO0_D11_MARK, PORT179_FN1),
  1216. PINMUX_DATA(VIO1_D3_MARK, PORT179_FN5),
  1217. PINMUX_DATA(IDE_IORDY_MARK, PORT179_FN6),
  1218. /* Port180 */
  1219. PINMUX_DATA(VIO0_D10_MARK, PORT180_FN1),
  1220. PINMUX_DATA(TPU0TO3_MARK, PORT180_FN4),
  1221. PINMUX_DATA(VIO1_D2_MARK, PORT180_FN5),
  1222. PINMUX_DATA(IDE_INT_MARK, PORT180_FN6),
  1223. PINMUX_DATA(IRQ24_MARK, PORT180_FN0),
  1224. /* Port181 */
  1225. PINMUX_DATA(VIO0_D9_MARK, PORT181_FN1),
  1226. PINMUX_DATA(VIO1_D1_MARK, PORT181_FN5),
  1227. PINMUX_DATA(IDE_RST_MARK, PORT181_FN6),
  1228. /* Port182 */
  1229. PINMUX_DATA(VIO0_D8_MARK, PORT182_FN1),
  1230. PINMUX_DATA(VIO1_D0_MARK, PORT182_FN5),
  1231. PINMUX_DATA(IDE_DIRECTION_MARK, PORT182_FN6),
  1232. /* Port183 */
  1233. PINMUX_DATA(DREQ1_MARK, PORT183_FN1),
  1234. PINMUX_DATA(BBIF2_TXD2_PORT183_MARK, PORT183_FN2, MSEL5CR_0_1),
  1235. PINMUX_DATA(ET_TX_EN_MARK, PORT183_FN3),
  1236. /* Port184 */
  1237. PINMUX_DATA(DACK1_MARK, PORT184_FN1),
  1238. PINMUX_DATA(BBIF2_TSYNC2_PORT184_MARK, PORT184_FN2, MSEL5CR_0_1),
  1239. PINMUX_DATA(ET_TX_CLK_MARK, PORT184_FN3),
  1240. /* Port185 - Port192 Function1 */
  1241. PINMUX_DATA(SCIFA1_SCK_MARK, PORT185_FN1),
  1242. PINMUX_DATA(SCIFB_RTS_PORT186_MARK, PORT186_FN1, MSEL5CR_17_0),
  1243. PINMUX_DATA(SCIFB_CTS_PORT187_MARK, PORT187_FN1, MSEL5CR_17_0),
  1244. PINMUX_DATA(SCIFA0_SCK_MARK, PORT188_FN1),
  1245. PINMUX_DATA(SCIFB_SCK_PORT190_MARK, PORT190_FN1, MSEL5CR_17_0),
  1246. PINMUX_DATA(SCIFB_RXD_PORT191_MARK, PORT191_FN1, MSEL5CR_17_0),
  1247. PINMUX_DATA(SCIFB_TXD_PORT192_MARK, PORT192_FN1, MSEL5CR_17_0),
  1248. /* Port185 - Port192 Function3 */
  1249. PINMUX_DATA(ET_ERXD0_MARK, PORT185_FN3),
  1250. PINMUX_DATA(ET_ERXD1_MARK, PORT186_FN3),
  1251. PINMUX_DATA(ET_ERXD2_MARK, PORT187_FN3),
  1252. PINMUX_DATA(ET_ERXD3_MARK, PORT188_FN3),
  1253. PINMUX_DATA(ET_ERXD4_MARK, PORT189_FN3),
  1254. PINMUX_DATA(ET_ERXD5_MARK, PORT190_FN3),
  1255. PINMUX_DATA(ET_ERXD6_MARK, PORT191_FN3),
  1256. PINMUX_DATA(ET_ERXD7_MARK, PORT192_FN3),
  1257. /* Port185 - Port192 Function6 */
  1258. PINMUX_DATA(STP1_IPCLK_MARK, PORT185_FN6),
  1259. PINMUX_DATA(STP1_IPD0_PORT186_MARK, PORT186_FN6, MSEL5CR_23_0),
  1260. PINMUX_DATA(STP1_IPEN_PORT187_MARK, PORT187_FN6, MSEL5CR_23_0),
  1261. PINMUX_DATA(STP1_IPSYNC_MARK, PORT188_FN6),
  1262. PINMUX_DATA(STP0_IPCLK_MARK, PORT189_FN6),
  1263. PINMUX_DATA(STP0_IPD0_MARK, PORT190_FN6),
  1264. PINMUX_DATA(STP0_IPEN_MARK, PORT191_FN6),
  1265. PINMUX_DATA(STP0_IPSYNC_MARK, PORT192_FN6),
  1266. /* Port193 */
  1267. PINMUX_DATA(SCIFA0_CTS_MARK, PORT193_FN1),
  1268. PINMUX_DATA(RMII_CRS_DV_MARK, PORT193_FN3),
  1269. PINMUX_DATA(STP1_IPEN_PORT193_MARK, PORT193_FN6, MSEL5CR_23_1), /* ? */
  1270. PINMUX_DATA(LCD1_D17_MARK, PORT193_FN7),
  1271. /* Port194 */
  1272. PINMUX_DATA(SCIFA0_RTS_MARK, PORT194_FN1),
  1273. PINMUX_DATA(RMII_RX_ER_MARK, PORT194_FN3),
  1274. PINMUX_DATA(STP1_IPD0_PORT194_MARK, PORT194_FN6, MSEL5CR_23_1), /* ? */
  1275. PINMUX_DATA(LCD1_D16_MARK, PORT194_FN7),
  1276. /* Port195 */
  1277. PINMUX_DATA(SCIFA1_RXD_MARK, PORT195_FN1),
  1278. PINMUX_DATA(RMII_RXD0_MARK, PORT195_FN3),
  1279. PINMUX_DATA(STP1_IPD3_MARK, PORT195_FN6),
  1280. PINMUX_DATA(LCD1_D15_MARK, PORT195_FN7),
  1281. /* Port196 */
  1282. PINMUX_DATA(SCIFA1_TXD_MARK, PORT196_FN1),
  1283. PINMUX_DATA(RMII_RXD1_MARK, PORT196_FN3),
  1284. PINMUX_DATA(STP1_IPD2_MARK, PORT196_FN6),
  1285. PINMUX_DATA(LCD1_D14_MARK, PORT196_FN7),
  1286. /* Port197 */
  1287. PINMUX_DATA(SCIFA0_RXD_MARK, PORT197_FN1),
  1288. PINMUX_DATA(VIO1_CLK_MARK, PORT197_FN5),
  1289. PINMUX_DATA(STP1_IPD5_MARK, PORT197_FN6),
  1290. PINMUX_DATA(LCD1_D19_MARK, PORT197_FN7),
  1291. /* Port198 */
  1292. PINMUX_DATA(SCIFA0_TXD_MARK, PORT198_FN1),
  1293. PINMUX_DATA(VIO1_VD_MARK, PORT198_FN5),
  1294. PINMUX_DATA(STP1_IPD4_MARK, PORT198_FN6),
  1295. PINMUX_DATA(LCD1_D18_MARK, PORT198_FN7),
  1296. /* Port199 */
  1297. PINMUX_DATA(MEMC_NWE_MARK, PORT199_FN1),
  1298. PINMUX_DATA(SCIFA2_SCK_PORT199_MARK, PORT199_FN2, MSEL5CR_7_1),
  1299. PINMUX_DATA(RMII_TX_EN_MARK, PORT199_FN3),
  1300. PINMUX_DATA(SIM_D_PORT199_MARK, PORT199_FN4, MSEL5CR_21_1),
  1301. PINMUX_DATA(STP1_IPD1_MARK, PORT199_FN6),
  1302. PINMUX_DATA(LCD1_D13_MARK, PORT199_FN7),
  1303. /* Port200 */
  1304. PINMUX_DATA(MEMC_NOE_MARK, PORT200_FN1),
  1305. PINMUX_DATA(SCIFA2_RXD_MARK, PORT200_FN2),
  1306. PINMUX_DATA(RMII_TXD0_MARK, PORT200_FN3),
  1307. PINMUX_DATA(STP0_IPD7_MARK, PORT200_FN6),
  1308. PINMUX_DATA(LCD1_D12_MARK, PORT200_FN7),
  1309. /* Port201 */
  1310. PINMUX_DATA(MEMC_WAIT_MARK, PORT201_FN1, MSEL4CR_6_0),
  1311. PINMUX_DATA(MEMC_DREQ1_MARK, PORT201_FN1, MSEL4CR_6_1),
  1312. PINMUX_DATA(SCIFA2_TXD_MARK, PORT201_FN2),
  1313. PINMUX_DATA(RMII_TXD1_MARK, PORT201_FN3),
  1314. PINMUX_DATA(STP0_IPD6_MARK, PORT201_FN6),
  1315. PINMUX_DATA(LCD1_D11_MARK, PORT201_FN7),
  1316. /* Port202 */
  1317. PINMUX_DATA(MEMC_BUSCLK_MARK, PORT202_FN1, MSEL4CR_6_0),
  1318. PINMUX_DATA(MEMC_A0_MARK, PORT202_FN1, MSEL4CR_6_1),
  1319. PINMUX_DATA(MSIOF1_SS2_PORT202_MARK, PORT202_FN2, MSEL4CR_10_1),
  1320. PINMUX_DATA(RMII_MDC_MARK, PORT202_FN3),
  1321. PINMUX_DATA(TPU0TO2_PORT202_MARK, PORT202_FN4, MSEL5CR_25_1),
  1322. PINMUX_DATA(IDE_CS0_MARK, PORT202_FN6),
  1323. PINMUX_DATA(SDHI2_CD_PORT202_MARK, PORT202_FN7, MSEL5CR_19_1),
  1324. PINMUX_DATA(IRQ21_MARK, PORT202_FN0),
  1325. /* Port203 - Port208 Function1 */
  1326. PINMUX_DATA(SDHI2_CLK_MARK, PORT203_FN1),
  1327. PINMUX_DATA(SDHI2_CMD_MARK, PORT204_FN1),
  1328. PINMUX_DATA(SDHI2_D0_MARK, PORT205_FN1),
  1329. PINMUX_DATA(SDHI2_D1_MARK, PORT206_FN1),
  1330. PINMUX_DATA(SDHI2_D2_MARK, PORT207_FN1),
  1331. PINMUX_DATA(SDHI2_D3_MARK, PORT208_FN1),
  1332. /* Port203 - Port208 Function3 */
  1333. PINMUX_DATA(ET_TX_ER_MARK, PORT203_FN3),
  1334. PINMUX_DATA(ET_RX_ER_MARK, PORT204_FN3),
  1335. PINMUX_DATA(ET_CRS_MARK, PORT205_FN3),
  1336. PINMUX_DATA(ET_MDC_MARK, PORT206_FN3),
  1337. PINMUX_DATA(ET_MDIO_MARK, PORT207_FN3),
  1338. PINMUX_DATA(RMII_MDIO_MARK, PORT208_FN3),
  1339. /* Port203 - Port208 Function6 */
  1340. PINMUX_DATA(IDE_A2_MARK, PORT203_FN6),
  1341. PINMUX_DATA(IDE_A1_MARK, PORT204_FN6),
  1342. PINMUX_DATA(IDE_A0_MARK, PORT205_FN6),
  1343. PINMUX_DATA(IDE_IODACK_MARK, PORT206_FN6),
  1344. PINMUX_DATA(IDE_IODREQ_MARK, PORT207_FN6),
  1345. PINMUX_DATA(IDE_CS1_MARK, PORT208_FN6),
  1346. /* Port203 - Port208 Function7 */
  1347. PINMUX_DATA(SCIFA4_TXD_PORT203_MARK, PORT203_FN7, MSEL5CR_12_0, MSEL5CR_11_1),
  1348. PINMUX_DATA(SCIFA4_RXD_PORT204_MARK, PORT204_FN7, MSEL5CR_12_0, MSEL5CR_11_1),
  1349. PINMUX_DATA(SCIFA4_SCK_PORT205_MARK, PORT205_FN7, MSEL5CR_10_1),
  1350. PINMUX_DATA(SCIFA5_SCK_PORT206_MARK, PORT206_FN7, MSEL5CR_13_1),
  1351. PINMUX_DATA(SCIFA5_RXD_PORT207_MARK, PORT207_FN7, MSEL5CR_15_0, MSEL5CR_14_1),
  1352. PINMUX_DATA(SCIFA5_TXD_PORT208_MARK, PORT208_FN7, MSEL5CR_15_0, MSEL5CR_14_1),
  1353. /* Port209 */
  1354. PINMUX_DATA(VBUS_MARK, PORT209_FN1),
  1355. PINMUX_DATA(IRQ7_PORT209_MARK, PORT209_FN0, MSEL1CR_7_1),
  1356. /* Port210 */
  1357. PINMUX_DATA(IRQ9_PORT210_MARK, PORT210_FN0, MSEL1CR_9_1),
  1358. /* Port211 */
  1359. PINMUX_DATA(IRQ16_PORT211_MARK, PORT211_FN0, MSEL1CR_16_1),
  1360. /* LCDC select */
  1361. PINMUX_DATA(LCDC0_SELECT_MARK, MSEL3CR_6_0),
  1362. PINMUX_DATA(LCDC1_SELECT_MARK, MSEL3CR_6_1),
  1363. /* SDENC */
  1364. PINMUX_DATA(SDENC_CPG_MARK, MSEL4CR_19_0),
  1365. PINMUX_DATA(SDENC_DV_CLKI_MARK, MSEL4CR_19_1),
  1366. /* SYSC */
  1367. PINMUX_DATA(RESETP_PULLUP_MARK, MSEL4CR_4_0),
  1368. PINMUX_DATA(RESETP_PLAIN_MARK, MSEL4CR_4_1),
  1369. /* DEBUG */
  1370. PINMUX_DATA(EDEBGREQ_PULLDOWN_MARK, MSEL4CR_1_0),
  1371. PINMUX_DATA(EDEBGREQ_PULLUP_MARK, MSEL4CR_1_1),
  1372. PINMUX_DATA(TRACEAUD_FROM_VIO_MARK, MSEL5CR_30_0, MSEL5CR_29_0),
  1373. PINMUX_DATA(TRACEAUD_FROM_LCDC0_MARK, MSEL5CR_30_0, MSEL5CR_29_1),
  1374. PINMUX_DATA(TRACEAUD_FROM_MEMC_MARK, MSEL5CR_30_1, MSEL5CR_29_0),
  1375. };
  1376. static struct pinmux_gpio pinmux_gpios[] = {
  1377. /* PORT */
  1378. GPIO_PORT_ALL(),
  1379. /* IRQ */
  1380. GPIO_FN(IRQ0_PORT2), GPIO_FN(IRQ0_PORT13),
  1381. GPIO_FN(IRQ1),
  1382. GPIO_FN(IRQ2_PORT11), GPIO_FN(IRQ2_PORT12),
  1383. GPIO_FN(IRQ3_PORT10), GPIO_FN(IRQ3_PORT14),
  1384. GPIO_FN(IRQ4_PORT15), GPIO_FN(IRQ4_PORT172),
  1385. GPIO_FN(IRQ5_PORT0), GPIO_FN(IRQ5_PORT1),
  1386. GPIO_FN(IRQ6_PORT121), GPIO_FN(IRQ6_PORT173),
  1387. GPIO_FN(IRQ7_PORT120), GPIO_FN(IRQ7_PORT209),
  1388. GPIO_FN(IRQ8),
  1389. GPIO_FN(IRQ9_PORT118), GPIO_FN(IRQ9_PORT210),
  1390. GPIO_FN(IRQ10),
  1391. GPIO_FN(IRQ11),
  1392. GPIO_FN(IRQ12_PORT42), GPIO_FN(IRQ12_PORT97),
  1393. GPIO_FN(IRQ13_PORT64), GPIO_FN(IRQ13_PORT98),
  1394. GPIO_FN(IRQ14_PORT63), GPIO_FN(IRQ14_PORT99),
  1395. GPIO_FN(IRQ15_PORT62), GPIO_FN(IRQ15_PORT100),
  1396. GPIO_FN(IRQ16_PORT68), GPIO_FN(IRQ16_PORT211),
  1397. GPIO_FN(IRQ17),
  1398. GPIO_FN(IRQ18),
  1399. GPIO_FN(IRQ19),
  1400. GPIO_FN(IRQ20),
  1401. GPIO_FN(IRQ21),
  1402. GPIO_FN(IRQ22),
  1403. GPIO_FN(IRQ23),
  1404. GPIO_FN(IRQ24),
  1405. GPIO_FN(IRQ25),
  1406. GPIO_FN(IRQ26_PORT58), GPIO_FN(IRQ26_PORT81),
  1407. GPIO_FN(IRQ27_PORT57), GPIO_FN(IRQ27_PORT168),
  1408. GPIO_FN(IRQ28_PORT56), GPIO_FN(IRQ28_PORT169),
  1409. GPIO_FN(IRQ29_PORT50), GPIO_FN(IRQ29_PORT170),
  1410. GPIO_FN(IRQ30_PORT49), GPIO_FN(IRQ30_PORT171),
  1411. GPIO_FN(IRQ31_PORT41), GPIO_FN(IRQ31_PORT167),
  1412. /* Function */
  1413. /* DBGT */
  1414. GPIO_FN(DBGMDT2), GPIO_FN(DBGMDT1), GPIO_FN(DBGMDT0),
  1415. GPIO_FN(DBGMD10), GPIO_FN(DBGMD11), GPIO_FN(DBGMD20),
  1416. GPIO_FN(DBGMD21),
  1417. /* FSI */
  1418. GPIO_FN(FSIAISLD_PORT0), /* FSIAISLD Port 0/5 */
  1419. GPIO_FN(FSIAISLD_PORT5),
  1420. GPIO_FN(FSIASPDIF_PORT9), /* FSIASPDIF Port 9/18 */
  1421. GPIO_FN(FSIASPDIF_PORT18),
  1422. GPIO_FN(FSIAOSLD1), GPIO_FN(FSIAOSLD2), GPIO_FN(FSIAOLR),
  1423. GPIO_FN(FSIAOBT), GPIO_FN(FSIAOSLD), GPIO_FN(FSIAOMC),
  1424. GPIO_FN(FSIACK), GPIO_FN(FSIAILR), GPIO_FN(FSIAIBT),
  1425. /* FMSI */
  1426. GPIO_FN(FMSISLD_PORT1), /* FMSISLD Port 1/6 */
  1427. GPIO_FN(FMSISLD_PORT6),
  1428. GPIO_FN(FMSIILR), GPIO_FN(FMSIIBT), GPIO_FN(FMSIOLR),
  1429. GPIO_FN(FMSIOBT), GPIO_FN(FMSICK), GPIO_FN(FMSOILR),
  1430. GPIO_FN(FMSOIBT), GPIO_FN(FMSOOLR), GPIO_FN(FMSOOBT),
  1431. GPIO_FN(FMSOSLD), GPIO_FN(FMSOCK),
  1432. /* SCIFA0 */
  1433. GPIO_FN(SCIFA0_SCK), GPIO_FN(SCIFA0_CTS), GPIO_FN(SCIFA0_RTS),
  1434. GPIO_FN(SCIFA0_RXD), GPIO_FN(SCIFA0_TXD),
  1435. /* SCIFA1 */
  1436. GPIO_FN(SCIFA1_CTS), GPIO_FN(SCIFA1_SCK),
  1437. GPIO_FN(SCIFA1_RXD), GPIO_FN(SCIFA1_TXD), GPIO_FN(SCIFA1_RTS),
  1438. /* SCIFA2 */
  1439. GPIO_FN(SCIFA2_SCK_PORT22), /* SCIFA2_SCK Port 22/199 */
  1440. GPIO_FN(SCIFA2_SCK_PORT199),
  1441. GPIO_FN(SCIFA2_RXD), GPIO_FN(SCIFA2_TXD),
  1442. GPIO_FN(SCIFA2_CTS), GPIO_FN(SCIFA2_RTS),
  1443. /* SCIFA3 */
  1444. GPIO_FN(SCIFA3_RTS_PORT105), /* MSEL5CR_8_0 */
  1445. GPIO_FN(SCIFA3_SCK_PORT116),
  1446. GPIO_FN(SCIFA3_CTS_PORT117),
  1447. GPIO_FN(SCIFA3_RXD_PORT174),
  1448. GPIO_FN(SCIFA3_TXD_PORT175),
  1449. GPIO_FN(SCIFA3_RTS_PORT161), /* MSEL5CR_8_1 */
  1450. GPIO_FN(SCIFA3_SCK_PORT158),
  1451. GPIO_FN(SCIFA3_CTS_PORT162),
  1452. GPIO_FN(SCIFA3_RXD_PORT159),
  1453. GPIO_FN(SCIFA3_TXD_PORT160),
  1454. /* SCIFA4 */
  1455. GPIO_FN(SCIFA4_RXD_PORT12), /* MSEL5CR[12:11] = 00 */
  1456. GPIO_FN(SCIFA4_TXD_PORT13),
  1457. GPIO_FN(SCIFA4_RXD_PORT204), /* MSEL5CR[12:11] = 01 */
  1458. GPIO_FN(SCIFA4_TXD_PORT203),
  1459. GPIO_FN(SCIFA4_RXD_PORT94), /* MSEL5CR[12:11] = 10 */
  1460. GPIO_FN(SCIFA4_TXD_PORT93),
  1461. GPIO_FN(SCIFA4_SCK_PORT21), /* SCIFA4_SCK Port 21/205 */
  1462. GPIO_FN(SCIFA4_SCK_PORT205),
  1463. /* SCIFA5 */
  1464. GPIO_FN(SCIFA5_TXD_PORT20), /* MSEL5CR[15:14] = 00 */
  1465. GPIO_FN(SCIFA5_RXD_PORT10),
  1466. GPIO_FN(SCIFA5_RXD_PORT207), /* MSEL5CR[15:14] = 01 */
  1467. GPIO_FN(SCIFA5_TXD_PORT208),
  1468. GPIO_FN(SCIFA5_TXD_PORT91), /* MSEL5CR[15:14] = 10 */
  1469. GPIO_FN(SCIFA5_RXD_PORT92),
  1470. GPIO_FN(SCIFA5_SCK_PORT23), /* SCIFA5_SCK Port 23/206 */
  1471. GPIO_FN(SCIFA5_SCK_PORT206),
  1472. /* SCIFA6 */
  1473. GPIO_FN(SCIFA6_SCK), GPIO_FN(SCIFA6_RXD), GPIO_FN(SCIFA6_TXD),
  1474. /* SCIFA7 */
  1475. GPIO_FN(SCIFA7_TXD), GPIO_FN(SCIFA7_RXD),
  1476. /* SCIFAB */
  1477. GPIO_FN(SCIFB_SCK_PORT190), /* MSEL5CR_17_0 */
  1478. GPIO_FN(SCIFB_RXD_PORT191),
  1479. GPIO_FN(SCIFB_TXD_PORT192),
  1480. GPIO_FN(SCIFB_RTS_PORT186),
  1481. GPIO_FN(SCIFB_CTS_PORT187),
  1482. GPIO_FN(SCIFB_SCK_PORT2), /* MSEL5CR_17_1 */
  1483. GPIO_FN(SCIFB_RXD_PORT3),
  1484. GPIO_FN(SCIFB_TXD_PORT4),
  1485. GPIO_FN(SCIFB_RTS_PORT172),
  1486. GPIO_FN(SCIFB_CTS_PORT173),
  1487. /* LCD0 */
  1488. GPIO_FN(LCD0_D0), GPIO_FN(LCD0_D1), GPIO_FN(LCD0_D2),
  1489. GPIO_FN(LCD0_D3), GPIO_FN(LCD0_D4), GPIO_FN(LCD0_D5),
  1490. GPIO_FN(LCD0_D6), GPIO_FN(LCD0_D7), GPIO_FN(LCD0_D8),
  1491. GPIO_FN(LCD0_D9), GPIO_FN(LCD0_D10), GPIO_FN(LCD0_D11),
  1492. GPIO_FN(LCD0_D12), GPIO_FN(LCD0_D13), GPIO_FN(LCD0_D14),
  1493. GPIO_FN(LCD0_D15), GPIO_FN(LCD0_D16), GPIO_FN(LCD0_D17),
  1494. GPIO_FN(LCD0_DON), GPIO_FN(LCD0_VCPWC), GPIO_FN(LCD0_VEPWC),
  1495. GPIO_FN(LCD0_DCK), GPIO_FN(LCD0_VSYN),
  1496. GPIO_FN(LCD0_HSYN), GPIO_FN(LCD0_DISP),
  1497. GPIO_FN(LCD0_WR), GPIO_FN(LCD0_RD),
  1498. GPIO_FN(LCD0_CS), GPIO_FN(LCD0_RS),
  1499. GPIO_FN(LCD0_D18_PORT163), GPIO_FN(LCD0_D19_PORT162),
  1500. GPIO_FN(LCD0_D20_PORT161), GPIO_FN(LCD0_D21_PORT158),
  1501. GPIO_FN(LCD0_D22_PORT160), GPIO_FN(LCD0_D23_PORT159),
  1502. GPIO_FN(LCD0_LCLK_PORT165), /* MSEL5CR_6_1 */
  1503. GPIO_FN(LCD0_D18_PORT40), GPIO_FN(LCD0_D19_PORT4),
  1504. GPIO_FN(LCD0_D20_PORT3), GPIO_FN(LCD0_D21_PORT2),
  1505. GPIO_FN(LCD0_D22_PORT0), GPIO_FN(LCD0_D23_PORT1),
  1506. GPIO_FN(LCD0_LCLK_PORT102), /* MSEL5CR_6_0 */
  1507. /* LCD1 */
  1508. GPIO_FN(LCD1_D0), GPIO_FN(LCD1_D1), GPIO_FN(LCD1_D2),
  1509. GPIO_FN(LCD1_D3), GPIO_FN(LCD1_D4), GPIO_FN(LCD1_D5),
  1510. GPIO_FN(LCD1_D6), GPIO_FN(LCD1_D7), GPIO_FN(LCD1_D8),
  1511. GPIO_FN(LCD1_D9), GPIO_FN(LCD1_D10), GPIO_FN(LCD1_D11),
  1512. GPIO_FN(LCD1_D12), GPIO_FN(LCD1_D13), GPIO_FN(LCD1_D14),
  1513. GPIO_FN(LCD1_D15), GPIO_FN(LCD1_D16), GPIO_FN(LCD1_D17),
  1514. GPIO_FN(LCD1_D18), GPIO_FN(LCD1_D19), GPIO_FN(LCD1_D20),
  1515. GPIO_FN(LCD1_D21), GPIO_FN(LCD1_D22), GPIO_FN(LCD1_D23),
  1516. GPIO_FN(LCD1_RS), GPIO_FN(LCD1_RD), GPIO_FN(LCD1_CS),
  1517. GPIO_FN(LCD1_WR), GPIO_FN(LCD1_DCK), GPIO_FN(LCD1_DON),
  1518. GPIO_FN(LCD1_VCPWC), GPIO_FN(LCD1_LCLK), GPIO_FN(LCD1_HSYN),
  1519. GPIO_FN(LCD1_VSYN), GPIO_FN(LCD1_VEPWC), GPIO_FN(LCD1_DISP),
  1520. /* RSPI */
  1521. GPIO_FN(RSPI_SSL0_A), GPIO_FN(RSPI_SSL1_A), GPIO_FN(RSPI_SSL2_A),
  1522. GPIO_FN(RSPI_SSL3_A), GPIO_FN(RSPI_CK_A), GPIO_FN(RSPI_MOSI_A),
  1523. GPIO_FN(RSPI_MISO_A),
  1524. /* VIO CKO */
  1525. GPIO_FN(VIO_CKO1),
  1526. GPIO_FN(VIO_CKO2),
  1527. GPIO_FN(VIO_CKO_1),
  1528. GPIO_FN(VIO_CKO),
  1529. /* VIO0 */
  1530. GPIO_FN(VIO0_D0), GPIO_FN(VIO0_D1), GPIO_FN(VIO0_D2),
  1531. GPIO_FN(VIO0_D3), GPIO_FN(VIO0_D4), GPIO_FN(VIO0_D5),
  1532. GPIO_FN(VIO0_D6), GPIO_FN(VIO0_D7), GPIO_FN(VIO0_D8),
  1533. GPIO_FN(VIO0_D9), GPIO_FN(VIO0_D10), GPIO_FN(VIO0_D11),
  1534. GPIO_FN(VIO0_D12), GPIO_FN(VIO0_VD), GPIO_FN(VIO0_HD),
  1535. GPIO_FN(VIO0_CLK), GPIO_FN(VIO0_FIELD),
  1536. GPIO_FN(VIO0_D13_PORT26), /* MSEL5CR_27_0 */
  1537. GPIO_FN(VIO0_D14_PORT25),
  1538. GPIO_FN(VIO0_D15_PORT24),
  1539. GPIO_FN(VIO0_D13_PORT22), /* MSEL5CR_27_1 */
  1540. GPIO_FN(VIO0_D14_PORT95),
  1541. GPIO_FN(VIO0_D15_PORT96),
  1542. /* VIO1 */
  1543. GPIO_FN(VIO1_D0), GPIO_FN(VIO1_D1), GPIO_FN(VIO1_D2),
  1544. GPIO_FN(VIO1_D3), GPIO_FN(VIO1_D4), GPIO_FN(VIO1_D5),
  1545. GPIO_FN(VIO1_D6), GPIO_FN(VIO1_D7), GPIO_FN(VIO1_VD),
  1546. GPIO_FN(VIO1_HD), GPIO_FN(VIO1_CLK), GPIO_FN(VIO1_FIELD),
  1547. /* TPU0 */
  1548. GPIO_FN(TPU0TO0), GPIO_FN(TPU0TO1), GPIO_FN(TPU0TO3),
  1549. GPIO_FN(TPU0TO2_PORT66), /* TPU0TO2 Port 66/202 */
  1550. GPIO_FN(TPU0TO2_PORT202),
  1551. /* SSP1 0 */
  1552. GPIO_FN(STP0_IPD0), GPIO_FN(STP0_IPD1), GPIO_FN(STP0_IPD2),
  1553. GPIO_FN(STP0_IPD3), GPIO_FN(STP0_IPD4), GPIO_FN(STP0_IPD5),
  1554. GPIO_FN(STP0_IPD6), GPIO_FN(STP0_IPD7), GPIO_FN(STP0_IPEN),
  1555. GPIO_FN(STP0_IPCLK), GPIO_FN(STP0_IPSYNC),
  1556. /* SSP1 1 */
  1557. GPIO_FN(STP1_IPD1), GPIO_FN(STP1_IPD2), GPIO_FN(STP1_IPD3),
  1558. GPIO_FN(STP1_IPD4), GPIO_FN(STP1_IPD5), GPIO_FN(STP1_IPD6),
  1559. GPIO_FN(STP1_IPD7), GPIO_FN(STP1_IPCLK), GPIO_FN(STP1_IPSYNC),
  1560. GPIO_FN(STP1_IPD0_PORT186), /* MSEL5CR_23_0 */
  1561. GPIO_FN(STP1_IPEN_PORT187),
  1562. GPIO_FN(STP1_IPD0_PORT194), /* MSEL5CR_23_1 */
  1563. GPIO_FN(STP1_IPEN_PORT193),
  1564. /* SIM */
  1565. GPIO_FN(SIM_RST), GPIO_FN(SIM_CLK),
  1566. GPIO_FN(SIM_D_PORT22), /* SIM_D Port 22/199 */
  1567. GPIO_FN(SIM_D_PORT199),
  1568. /* SDHI0 */
  1569. GPIO_FN(SDHI0_D0), GPIO_FN(SDHI0_D1), GPIO_FN(SDHI0_D2),
  1570. GPIO_FN(SDHI0_D3), GPIO_FN(SDHI0_CD), GPIO_FN(SDHI0_WP),
  1571. GPIO_FN(SDHI0_CMD), GPIO_FN(SDHI0_CLK),
  1572. /* SDHI1 */
  1573. GPIO_FN(SDHI1_D0), GPIO_FN(SDHI1_D1), GPIO_FN(SDHI1_D2),
  1574. GPIO_FN(SDHI1_D3), GPIO_FN(SDHI1_CD), GPIO_FN(SDHI1_WP),
  1575. GPIO_FN(SDHI1_CMD), GPIO_FN(SDHI1_CLK),
  1576. /* SDHI2 */
  1577. GPIO_FN(SDHI2_D0), GPIO_FN(SDHI2_D1), GPIO_FN(SDHI2_D2),
  1578. GPIO_FN(SDHI2_D3), GPIO_FN(SDHI2_CLK), GPIO_FN(SDHI2_CMD),
  1579. GPIO_FN(SDHI2_CD_PORT24), /* MSEL5CR_19_0 */
  1580. GPIO_FN(SDHI2_WP_PORT25),
  1581. GPIO_FN(SDHI2_WP_PORT177), /* MSEL5CR_19_1 */
  1582. GPIO_FN(SDHI2_CD_PORT202),
  1583. /* MSIOF2 */
  1584. GPIO_FN(MSIOF2_TXD), GPIO_FN(MSIOF2_RXD), GPIO_FN(MSIOF2_TSCK),
  1585. GPIO_FN(MSIOF2_SS2), GPIO_FN(MSIOF2_TSYNC), GPIO_FN(MSIOF2_SS1),
  1586. GPIO_FN(MSIOF2_MCK1), GPIO_FN(MSIOF2_MCK0), GPIO_FN(MSIOF2_RSYNC),
  1587. GPIO_FN(MSIOF2_RSCK),
  1588. /* KEYSC */
  1589. GPIO_FN(KEYIN4), GPIO_FN(KEYIN5),
  1590. GPIO_FN(KEYIN6), GPIO_FN(KEYIN7),
  1591. GPIO_FN(KEYOUT0), GPIO_FN(KEYOUT1), GPIO_FN(KEYOUT2),
  1592. GPIO_FN(KEYOUT3), GPIO_FN(KEYOUT4), GPIO_FN(KEYOUT5),
  1593. GPIO_FN(KEYOUT6), GPIO_FN(KEYOUT7),
  1594. GPIO_FN(KEYIN0_PORT43), /* MSEL4CR_18_0 */
  1595. GPIO_FN(KEYIN1_PORT44),
  1596. GPIO_FN(KEYIN2_PORT45),
  1597. GPIO_FN(KEYIN3_PORT46),
  1598. GPIO_FN(KEYIN0_PORT58), /* MSEL4CR_18_1 */
  1599. GPIO_FN(KEYIN1_PORT57),
  1600. GPIO_FN(KEYIN2_PORT56),
  1601. GPIO_FN(KEYIN3_PORT55),
  1602. /* VOU */
  1603. GPIO_FN(DV_D0), GPIO_FN(DV_D1), GPIO_FN(DV_D2),
  1604. GPIO_FN(DV_D3), GPIO_FN(DV_D4), GPIO_FN(DV_D5),
  1605. GPIO_FN(DV_D6), GPIO_FN(DV_D7), GPIO_FN(DV_D8),
  1606. GPIO_FN(DV_D9), GPIO_FN(DV_D10), GPIO_FN(DV_D11),
  1607. GPIO_FN(DV_D12), GPIO_FN(DV_D13), GPIO_FN(DV_D14),
  1608. GPIO_FN(DV_D15), GPIO_FN(DV_CLK),
  1609. GPIO_FN(DV_VSYNC), GPIO_FN(DV_HSYNC),
  1610. /* MEMC */
  1611. GPIO_FN(MEMC_AD0), GPIO_FN(MEMC_AD1), GPIO_FN(MEMC_AD2),
  1612. GPIO_FN(MEMC_AD3), GPIO_FN(MEMC_AD4), GPIO_FN(MEMC_AD5),
  1613. GPIO_FN(MEMC_AD6), GPIO_FN(MEMC_AD7), GPIO_FN(MEMC_AD8),
  1614. GPIO_FN(MEMC_AD9), GPIO_FN(MEMC_AD10), GPIO_FN(MEMC_AD11),
  1615. GPIO_FN(MEMC_AD12), GPIO_FN(MEMC_AD13), GPIO_FN(MEMC_AD14),
  1616. GPIO_FN(MEMC_AD15), GPIO_FN(MEMC_CS0), GPIO_FN(MEMC_INT),
  1617. GPIO_FN(MEMC_NWE), GPIO_FN(MEMC_NOE), GPIO_FN(MEMC_CS1),
  1618. GPIO_FN(MEMC_A1), GPIO_FN(MEMC_ADV), GPIO_FN(MEMC_DREQ0),
  1619. GPIO_FN(MEMC_WAIT), GPIO_FN(MEMC_DREQ1), GPIO_FN(MEMC_BUSCLK),
  1620. GPIO_FN(MEMC_A0),
  1621. /* MMC */
  1622. GPIO_FN(MMC0_D0_PORT68), GPIO_FN(MMC0_D1_PORT69),
  1623. GPIO_FN(MMC0_D2_PORT70), GPIO_FN(MMC0_D3_PORT71),
  1624. GPIO_FN(MMC0_D4_PORT72), GPIO_FN(MMC0_D5_PORT73),
  1625. GPIO_FN(MMC0_D6_PORT74), GPIO_FN(MMC0_D7_PORT75),
  1626. GPIO_FN(MMC0_CLK_PORT66),
  1627. GPIO_FN(MMC0_CMD_PORT67), /* MSEL4CR_15_0 */
  1628. GPIO_FN(MMC1_D0_PORT149), GPIO_FN(MMC1_D1_PORT148),
  1629. GPIO_FN(MMC1_D2_PORT147), GPIO_FN(MMC1_D3_PORT146),
  1630. GPIO_FN(MMC1_D4_PORT145), GPIO_FN(MMC1_D5_PORT144),
  1631. GPIO_FN(MMC1_D6_PORT143), GPIO_FN(MMC1_D7_PORT142),
  1632. GPIO_FN(MMC1_CLK_PORT103),
  1633. GPIO_FN(MMC1_CMD_PORT104), /* MSEL4CR_15_1 */
  1634. /* MSIOF0 */
  1635. GPIO_FN(MSIOF0_SS1), GPIO_FN(MSIOF0_SS2), GPIO_FN(MSIOF0_RXD),
  1636. GPIO_FN(MSIOF0_TXD), GPIO_FN(MSIOF0_MCK0), GPIO_FN(MSIOF0_MCK1),
  1637. GPIO_FN(MSIOF0_RSYNC), GPIO_FN(MSIOF0_RSCK), GPIO_FN(MSIOF0_TSCK),
  1638. GPIO_FN(MSIOF0_TSYNC),
  1639. /* MSIOF1 */
  1640. GPIO_FN(MSIOF1_RSCK), GPIO_FN(MSIOF1_RSYNC),
  1641. GPIO_FN(MSIOF1_MCK0), GPIO_FN(MSIOF1_MCK1),
  1642. GPIO_FN(MSIOF1_SS2_PORT116), GPIO_FN(MSIOF1_SS1_PORT117),
  1643. GPIO_FN(MSIOF1_RXD_PORT118), GPIO_FN(MSIOF1_TXD_PORT119),
  1644. GPIO_FN(MSIOF1_TSYNC_PORT120),
  1645. GPIO_FN(MSIOF1_TSCK_PORT121), /* MSEL4CR_10_0 */
  1646. GPIO_FN(MSIOF1_SS1_PORT67), GPIO_FN(MSIOF1_TSCK_PORT72),
  1647. GPIO_FN(MSIOF1_TSYNC_PORT73), GPIO_FN(MSIOF1_TXD_PORT74),
  1648. GPIO_FN(MSIOF1_RXD_PORT75),
  1649. GPIO_FN(MSIOF1_SS2_PORT202), /* MSEL4CR_10_1 */
  1650. /* GPIO */
  1651. GPIO_FN(GPO0), GPIO_FN(GPI0),
  1652. GPIO_FN(GPO1), GPIO_FN(GPI1),
  1653. /* USB0 */
  1654. GPIO_FN(USB0_OCI), GPIO_FN(USB0_PPON), GPIO_FN(VBUS),
  1655. /* USB1 */
  1656. GPIO_FN(USB1_OCI), GPIO_FN(USB1_PPON),
  1657. /* BBIF1 */
  1658. GPIO_FN(BBIF1_RXD), GPIO_FN(BBIF1_TXD), GPIO_FN(BBIF1_TSYNC),
  1659. GPIO_FN(BBIF1_TSCK), GPIO_FN(BBIF1_RSCK), GPIO_FN(BBIF1_RSYNC),
  1660. GPIO_FN(BBIF1_FLOW), GPIO_FN(BBIF1_RX_FLOW_N),
  1661. /* BBIF2 */
  1662. GPIO_FN(BBIF2_TXD2_PORT5), /* MSEL5CR_0_0 */
  1663. GPIO_FN(BBIF2_RXD2_PORT60),
  1664. GPIO_FN(BBIF2_TSYNC2_PORT6),
  1665. GPIO_FN(BBIF2_TSCK2_PORT59),
  1666. GPIO_FN(BBIF2_RXD2_PORT90), /* MSEL5CR_0_1 */
  1667. GPIO_FN(BBIF2_TXD2_PORT183),
  1668. GPIO_FN(BBIF2_TSCK2_PORT89),
  1669. GPIO_FN(BBIF2_TSYNC2_PORT184),
  1670. /* BSC / FLCTL / PCMCIA */
  1671. GPIO_FN(CS0), GPIO_FN(CS2), GPIO_FN(CS4),
  1672. GPIO_FN(CS5B), GPIO_FN(CS6A),
  1673. GPIO_FN(CS5A_PORT105), /* CS5A PORT 19/105 */
  1674. GPIO_FN(CS5A_PORT19),
  1675. GPIO_FN(IOIS16), /* ? */
  1676. GPIO_FN(A0), GPIO_FN(A1), GPIO_FN(A2), GPIO_FN(A3),
  1677. GPIO_FN(A4_FOE), GPIO_FN(A5_FCDE), /* share with FLCTL */
  1678. GPIO_FN(A6), GPIO_FN(A7), GPIO_FN(A8), GPIO_FN(A9),
  1679. GPIO_FN(A10), GPIO_FN(A11), GPIO_FN(A12), GPIO_FN(A13),
  1680. GPIO_FN(A14), GPIO_FN(A15), GPIO_FN(A16), GPIO_FN(A17),
  1681. GPIO_FN(A18), GPIO_FN(A19), GPIO_FN(A20), GPIO_FN(A21),
  1682. GPIO_FN(A22), GPIO_FN(A23), GPIO_FN(A24), GPIO_FN(A25),
  1683. GPIO_FN(A26),
  1684. GPIO_FN(D0_NAF0), GPIO_FN(D1_NAF1), /* share with FLCTL */
  1685. GPIO_FN(D2_NAF2), GPIO_FN(D3_NAF3), /* share with FLCTL */
  1686. GPIO_FN(D4_NAF4), GPIO_FN(D5_NAF5), /* share with FLCTL */
  1687. GPIO_FN(D6_NAF6), GPIO_FN(D7_NAF7), /* share with FLCTL */
  1688. GPIO_FN(D8_NAF8), GPIO_FN(D9_NAF9), /* share with FLCTL */
  1689. GPIO_FN(D10_NAF10), GPIO_FN(D11_NAF11), /* share with FLCTL */
  1690. GPIO_FN(D12_NAF12), GPIO_FN(D13_NAF13), /* share with FLCTL */
  1691. GPIO_FN(D14_NAF14), GPIO_FN(D15_NAF15), /* share with FLCTL */
  1692. GPIO_FN(D16), GPIO_FN(D17), GPIO_FN(D18), GPIO_FN(D19),
  1693. GPIO_FN(D20), GPIO_FN(D21), GPIO_FN(D22), GPIO_FN(D23),
  1694. GPIO_FN(D24), GPIO_FN(D25), GPIO_FN(D26), GPIO_FN(D27),
  1695. GPIO_FN(D28), GPIO_FN(D29), GPIO_FN(D30), GPIO_FN(D31),
  1696. GPIO_FN(WE0_FWE), /* share with FLCTL */
  1697. GPIO_FN(WE1),
  1698. GPIO_FN(WE2_ICIORD), /* share with PCMCIA */
  1699. GPIO_FN(WE3_ICIOWR), /* share with PCMCIA */
  1700. GPIO_FN(CKO), GPIO_FN(BS), GPIO_FN(RDWR),
  1701. GPIO_FN(RD_FSC), /* share with FLCTL */
  1702. GPIO_FN(WAIT_PORT177), /* WAIT Port 90/177 */
  1703. GPIO_FN(WAIT_PORT90),
  1704. GPIO_FN(FCE0), GPIO_FN(FCE1), GPIO_FN(FRB), /* FLCTL */
  1705. /* IRDA */
  1706. GPIO_FN(IRDA_FIRSEL), GPIO_FN(IRDA_IN), GPIO_FN(IRDA_OUT),
  1707. /* ATAPI */
  1708. GPIO_FN(IDE_D0), GPIO_FN(IDE_D1), GPIO_FN(IDE_D2),
  1709. GPIO_FN(IDE_D3), GPIO_FN(IDE_D4), GPIO_FN(IDE_D5),
  1710. GPIO_FN(IDE_D6), GPIO_FN(IDE_D7), GPIO_FN(IDE_D8),
  1711. GPIO_FN(IDE_D9), GPIO_FN(IDE_D10), GPIO_FN(IDE_D11),
  1712. GPIO_FN(IDE_D12), GPIO_FN(IDE_D13), GPIO_FN(IDE_D14),
  1713. GPIO_FN(IDE_D15), GPIO_FN(IDE_A0), GPIO_FN(IDE_A1),
  1714. GPIO_FN(IDE_A2), GPIO_FN(IDE_CS0), GPIO_FN(IDE_CS1),
  1715. GPIO_FN(IDE_IOWR), GPIO_FN(IDE_IORD), GPIO_FN(IDE_IORDY),
  1716. GPIO_FN(IDE_INT), GPIO_FN(IDE_RST), GPIO_FN(IDE_DIRECTION),
  1717. GPIO_FN(IDE_EXBUF_ENB), GPIO_FN(IDE_IODACK), GPIO_FN(IDE_IODREQ),
  1718. /* RMII */
  1719. GPIO_FN(RMII_CRS_DV), GPIO_FN(RMII_RX_ER), GPIO_FN(RMII_RXD0),
  1720. GPIO_FN(RMII_RXD1), GPIO_FN(RMII_TX_EN), GPIO_FN(RMII_TXD0),
  1721. GPIO_FN(RMII_MDC), GPIO_FN(RMII_TXD1), GPIO_FN(RMII_MDIO),
  1722. GPIO_FN(RMII_REF50CK), GPIO_FN(RMII_REF125CK), /* for GMII */
  1723. /* GEther */
  1724. GPIO_FN(ET_TX_CLK), GPIO_FN(ET_TX_EN), GPIO_FN(ET_ETXD0),
  1725. GPIO_FN(ET_ETXD1), GPIO_FN(ET_ETXD2), GPIO_FN(ET_ETXD3),
  1726. GPIO_FN(ET_ETXD4), GPIO_FN(ET_ETXD5), /* for GEther */
  1727. GPIO_FN(ET_ETXD6), GPIO_FN(ET_ETXD7), /* for GEther */
  1728. GPIO_FN(ET_COL), GPIO_FN(ET_TX_ER), GPIO_FN(ET_RX_CLK),
  1729. GPIO_FN(ET_RX_DV), GPIO_FN(ET_ERXD0), GPIO_FN(ET_ERXD1),
  1730. GPIO_FN(ET_ERXD2), GPIO_FN(ET_ERXD3),
  1731. GPIO_FN(ET_ERXD4), GPIO_FN(ET_ERXD5), /* for GEther */
  1732. GPIO_FN(ET_ERXD6), GPIO_FN(ET_ERXD7), /* for GEther */
  1733. GPIO_FN(ET_RX_ER), GPIO_FN(ET_CRS), GPIO_FN(ET_MDC),
  1734. GPIO_FN(ET_MDIO), GPIO_FN(ET_LINK), GPIO_FN(ET_PHY_INT),
  1735. GPIO_FN(ET_WOL), GPIO_FN(ET_GTX_CLK),
  1736. /* DMA0 */
  1737. GPIO_FN(DREQ0), GPIO_FN(DACK0),
  1738. /* DMA1 */
  1739. GPIO_FN(DREQ1), GPIO_FN(DACK1),
  1740. /* SYSC */
  1741. GPIO_FN(RESETOUTS),
  1742. /* IRREM */
  1743. GPIO_FN(IROUT),
  1744. /* LCDC */
  1745. GPIO_FN(LCDC0_SELECT),
  1746. GPIO_FN(LCDC1_SELECT),
  1747. /* SDENC */
  1748. GPIO_FN(SDENC_CPG),
  1749. GPIO_FN(SDENC_DV_CLKI),
  1750. /* SYSC */
  1751. GPIO_FN(RESETP_PULLUP),
  1752. GPIO_FN(RESETP_PLAIN),
  1753. /* DEBUG */
  1754. GPIO_FN(EDEBGREQ_PULLDOWN),
  1755. GPIO_FN(EDEBGREQ_PULLUP),
  1756. GPIO_FN(TRACEAUD_FROM_VIO),
  1757. GPIO_FN(TRACEAUD_FROM_LCDC0),
  1758. GPIO_FN(TRACEAUD_FROM_MEMC),
  1759. };
  1760. static struct pinmux_cfg_reg pinmux_config_regs[] = {
  1761. PORTCR(0, 0xe6050000), /* PORT0CR */
  1762. PORTCR(1, 0xe6050001), /* PORT1CR */
  1763. PORTCR(2, 0xe6050002), /* PORT2CR */
  1764. PORTCR(3, 0xe6050003), /* PORT3CR */
  1765. PORTCR(4, 0xe6050004), /* PORT4CR */
  1766. PORTCR(5, 0xe6050005), /* PORT5CR */
  1767. PORTCR(6, 0xe6050006), /* PORT6CR */
  1768. PORTCR(7, 0xe6050007), /* PORT7CR */
  1769. PORTCR(8, 0xe6050008), /* PORT8CR */
  1770. PORTCR(9, 0xe6050009), /* PORT9CR */
  1771. PORTCR(10, 0xe605000a), /* PORT10CR */
  1772. PORTCR(11, 0xe605000b), /* PORT11CR */
  1773. PORTCR(12, 0xe605000c), /* PORT12CR */
  1774. PORTCR(13, 0xe605000d), /* PORT13CR */
  1775. PORTCR(14, 0xe605000e), /* PORT14CR */
  1776. PORTCR(15, 0xe605000f), /* PORT15CR */
  1777. PORTCR(16, 0xe6050010), /* PORT16CR */
  1778. PORTCR(17, 0xe6050011), /* PORT17CR */
  1779. PORTCR(18, 0xe6050012), /* PORT18CR */
  1780. PORTCR(19, 0xe6050013), /* PORT19CR */
  1781. PORTCR(20, 0xe6050014), /* PORT20CR */
  1782. PORTCR(21, 0xe6050015), /* PORT21CR */
  1783. PORTCR(22, 0xe6050016), /* PORT22CR */
  1784. PORTCR(23, 0xe6050017), /* PORT23CR */
  1785. PORTCR(24, 0xe6050018), /* PORT24CR */
  1786. PORTCR(25, 0xe6050019), /* PORT25CR */
  1787. PORTCR(26, 0xe605001a), /* PORT26CR */
  1788. PORTCR(27, 0xe605001b), /* PORT27CR */
  1789. PORTCR(28, 0xe605001c), /* PORT28CR */
  1790. PORTCR(29, 0xe605001d), /* PORT29CR */
  1791. PORTCR(30, 0xe605001e), /* PORT30CR */
  1792. PORTCR(31, 0xe605001f), /* PORT31CR */
  1793. PORTCR(32, 0xe6050020), /* PORT32CR */
  1794. PORTCR(33, 0xe6050021), /* PORT33CR */
  1795. PORTCR(34, 0xe6050022), /* PORT34CR */
  1796. PORTCR(35, 0xe6050023), /* PORT35CR */
  1797. PORTCR(36, 0xe6050024), /* PORT36CR */
  1798. PORTCR(37, 0xe6050025), /* PORT37CR */
  1799. PORTCR(38, 0xe6050026), /* PORT38CR */
  1800. PORTCR(39, 0xe6050027), /* PORT39CR */
  1801. PORTCR(40, 0xe6050028), /* PORT40CR */
  1802. PORTCR(41, 0xe6050029), /* PORT41CR */
  1803. PORTCR(42, 0xe605002a), /* PORT42CR */
  1804. PORTCR(43, 0xe605002b), /* PORT43CR */
  1805. PORTCR(44, 0xe605002c), /* PORT44CR */
  1806. PORTCR(45, 0xe605002d), /* PORT45CR */
  1807. PORTCR(46, 0xe605002e), /* PORT46CR */
  1808. PORTCR(47, 0xe605002f), /* PORT47CR */
  1809. PORTCR(48, 0xe6050030), /* PORT48CR */
  1810. PORTCR(49, 0xe6050031), /* PORT49CR */
  1811. PORTCR(50, 0xe6050032), /* PORT50CR */
  1812. PORTCR(51, 0xe6050033), /* PORT51CR */
  1813. PORTCR(52, 0xe6050034), /* PORT52CR */
  1814. PORTCR(53, 0xe6050035), /* PORT53CR */
  1815. PORTCR(54, 0xe6050036), /* PORT54CR */
  1816. PORTCR(55, 0xe6050037), /* PORT55CR */
  1817. PORTCR(56, 0xe6050038), /* PORT56CR */
  1818. PORTCR(57, 0xe6050039), /* PORT57CR */
  1819. PORTCR(58, 0xe605003a), /* PORT58CR */
  1820. PORTCR(59, 0xe605003b), /* PORT59CR */
  1821. PORTCR(60, 0xe605003c), /* PORT60CR */
  1822. PORTCR(61, 0xe605003d), /* PORT61CR */
  1823. PORTCR(62, 0xe605003e), /* PORT62CR */
  1824. PORTCR(63, 0xe605003f), /* PORT63CR */
  1825. PORTCR(64, 0xe6050040), /* PORT64CR */
  1826. PORTCR(65, 0xe6050041), /* PORT65CR */
  1827. PORTCR(66, 0xe6050042), /* PORT66CR */
  1828. PORTCR(67, 0xe6050043), /* PORT67CR */
  1829. PORTCR(68, 0xe6050044), /* PORT68CR */
  1830. PORTCR(69, 0xe6050045), /* PORT69CR */
  1831. PORTCR(70, 0xe6050046), /* PORT70CR */
  1832. PORTCR(71, 0xe6050047), /* PORT71CR */
  1833. PORTCR(72, 0xe6050048), /* PORT72CR */
  1834. PORTCR(73, 0xe6050049), /* PORT73CR */
  1835. PORTCR(74, 0xe605004a), /* PORT74CR */
  1836. PORTCR(75, 0xe605004b), /* PORT75CR */
  1837. PORTCR(76, 0xe605004c), /* PORT76CR */
  1838. PORTCR(77, 0xe605004d), /* PORT77CR */
  1839. PORTCR(78, 0xe605004e), /* PORT78CR */
  1840. PORTCR(79, 0xe605004f), /* PORT79CR */
  1841. PORTCR(80, 0xe6050050), /* PORT80CR */
  1842. PORTCR(81, 0xe6050051), /* PORT81CR */
  1843. PORTCR(82, 0xe6050052), /* PORT82CR */
  1844. PORTCR(83, 0xe6050053), /* PORT83CR */
  1845. PORTCR(84, 0xe6051054), /* PORT84CR */
  1846. PORTCR(85, 0xe6051055), /* PORT85CR */
  1847. PORTCR(86, 0xe6051056), /* PORT86CR */
  1848. PORTCR(87, 0xe6051057), /* PORT87CR */
  1849. PORTCR(88, 0xe6051058), /* PORT88CR */
  1850. PORTCR(89, 0xe6051059), /* PORT89CR */
  1851. PORTCR(90, 0xe605105a), /* PORT90CR */
  1852. PORTCR(91, 0xe605105b), /* PORT91CR */
  1853. PORTCR(92, 0xe605105c), /* PORT92CR */
  1854. PORTCR(93, 0xe605105d), /* PORT93CR */
  1855. PORTCR(94, 0xe605105e), /* PORT94CR */
  1856. PORTCR(95, 0xe605105f), /* PORT95CR */
  1857. PORTCR(96, 0xe6051060), /* PORT96CR */
  1858. PORTCR(97, 0xe6051061), /* PORT97CR */
  1859. PORTCR(98, 0xe6051062), /* PORT98CR */
  1860. PORTCR(99, 0xe6051063), /* PORT99CR */
  1861. PORTCR(100, 0xe6051064), /* PORT100CR */
  1862. PORTCR(101, 0xe6051065), /* PORT101CR */
  1863. PORTCR(102, 0xe6051066), /* PORT102CR */
  1864. PORTCR(103, 0xe6051067), /* PORT103CR */
  1865. PORTCR(104, 0xe6051068), /* PORT104CR */
  1866. PORTCR(105, 0xe6051069), /* PORT105CR */
  1867. PORTCR(106, 0xe605106a), /* PORT106CR */
  1868. PORTCR(107, 0xe605106b), /* PORT107CR */
  1869. PORTCR(108, 0xe605106c), /* PORT108CR */
  1870. PORTCR(109, 0xe605106d), /* PORT109CR */
  1871. PORTCR(110, 0xe605106e), /* PORT110CR */
  1872. PORTCR(111, 0xe605106f), /* PORT111CR */
  1873. PORTCR(112, 0xe6051070), /* PORT112CR */
  1874. PORTCR(113, 0xe6051071), /* PORT113CR */
  1875. PORTCR(114, 0xe6051072), /* PORT114CR */
  1876. PORTCR(115, 0xe6052073), /* PORT115CR */
  1877. PORTCR(116, 0xe6052074), /* PORT116CR */
  1878. PORTCR(117, 0xe6052075), /* PORT117CR */
  1879. PORTCR(118, 0xe6052076), /* PORT118CR */
  1880. PORTCR(119, 0xe6052077), /* PORT119CR */
  1881. PORTCR(120, 0xe6052078), /* PORT120CR */
  1882. PORTCR(121, 0xe6052079), /* PORT121CR */
  1883. PORTCR(122, 0xe605207a), /* PORT122CR */
  1884. PORTCR(123, 0xe605207b), /* PORT123CR */
  1885. PORTCR(124, 0xe605207c), /* PORT124CR */
  1886. PORTCR(125, 0xe605207d), /* PORT125CR */
  1887. PORTCR(126, 0xe605207e), /* PORT126CR */
  1888. PORTCR(127, 0xe605207f), /* PORT127CR */
  1889. PORTCR(128, 0xe6052080), /* PORT128CR */
  1890. PORTCR(129, 0xe6052081), /* PORT129CR */
  1891. PORTCR(130, 0xe6052082), /* PORT130CR */
  1892. PORTCR(131, 0xe6052083), /* PORT131CR */
  1893. PORTCR(132, 0xe6052084), /* PORT132CR */
  1894. PORTCR(133, 0xe6052085), /* PORT133CR */
  1895. PORTCR(134, 0xe6052086), /* PORT134CR */
  1896. PORTCR(135, 0xe6052087), /* PORT135CR */
  1897. PORTCR(136, 0xe6052088), /* PORT136CR */
  1898. PORTCR(137, 0xe6052089), /* PORT137CR */
  1899. PORTCR(138, 0xe605208a), /* PORT138CR */
  1900. PORTCR(139, 0xe605208b), /* PORT139CR */
  1901. PORTCR(140, 0xe605208c), /* PORT140CR */
  1902. PORTCR(141, 0xe605208d), /* PORT141CR */
  1903. PORTCR(142, 0xe605208e), /* PORT142CR */
  1904. PORTCR(143, 0xe605208f), /* PORT143CR */
  1905. PORTCR(144, 0xe6052090), /* PORT144CR */
  1906. PORTCR(145, 0xe6052091), /* PORT145CR */
  1907. PORTCR(146, 0xe6052092), /* PORT146CR */
  1908. PORTCR(147, 0xe6052093), /* PORT147CR */
  1909. PORTCR(148, 0xe6052094), /* PORT148CR */
  1910. PORTCR(149, 0xe6052095), /* PORT149CR */
  1911. PORTCR(150, 0xe6052096), /* PORT150CR */
  1912. PORTCR(151, 0xe6052097), /* PORT151CR */
  1913. PORTCR(152, 0xe6052098), /* PORT152CR */
  1914. PORTCR(153, 0xe6052099), /* PORT153CR */
  1915. PORTCR(154, 0xe605209a), /* PORT154CR */
  1916. PORTCR(155, 0xe605209b), /* PORT155CR */
  1917. PORTCR(156, 0xe605209c), /* PORT156CR */
  1918. PORTCR(157, 0xe605209d), /* PORT157CR */
  1919. PORTCR(158, 0xe605209e), /* PORT158CR */
  1920. PORTCR(159, 0xe605209f), /* PORT159CR */
  1921. PORTCR(160, 0xe60520a0), /* PORT160CR */
  1922. PORTCR(161, 0xe60520a1), /* PORT161CR */
  1923. PORTCR(162, 0xe60520a2), /* PORT162CR */
  1924. PORTCR(163, 0xe60520a3), /* PORT163CR */
  1925. PORTCR(164, 0xe60520a4), /* PORT164CR */
  1926. PORTCR(165, 0xe60520a5), /* PORT165CR */
  1927. PORTCR(166, 0xe60520a6), /* PORT166CR */
  1928. PORTCR(167, 0xe60520a7), /* PORT167CR */
  1929. PORTCR(168, 0xe60520a8), /* PORT168CR */
  1930. PORTCR(169, 0xe60520a9), /* PORT169CR */
  1931. PORTCR(170, 0xe60520aa), /* PORT170CR */
  1932. PORTCR(171, 0xe60520ab), /* PORT171CR */
  1933. PORTCR(172, 0xe60520ac), /* PORT172CR */
  1934. PORTCR(173, 0xe60520ad), /* PORT173CR */
  1935. PORTCR(174, 0xe60520ae), /* PORT174CR */
  1936. PORTCR(175, 0xe60520af), /* PORT175CR */
  1937. PORTCR(176, 0xe60520b0), /* PORT176CR */
  1938. PORTCR(177, 0xe60520b1), /* PORT177CR */
  1939. PORTCR(178, 0xe60520b2), /* PORT178CR */
  1940. PORTCR(179, 0xe60520b3), /* PORT179CR */
  1941. PORTCR(180, 0xe60520b4), /* PORT180CR */
  1942. PORTCR(181, 0xe60520b5), /* PORT181CR */
  1943. PORTCR(182, 0xe60520b6), /* PORT182CR */
  1944. PORTCR(183, 0xe60520b7), /* PORT183CR */
  1945. PORTCR(184, 0xe60520b8), /* PORT184CR */
  1946. PORTCR(185, 0xe60520b9), /* PORT185CR */
  1947. PORTCR(186, 0xe60520ba), /* PORT186CR */
  1948. PORTCR(187, 0xe60520bb), /* PORT187CR */
  1949. PORTCR(188, 0xe60520bc), /* PORT188CR */
  1950. PORTCR(189, 0xe60520bd), /* PORT189CR */
  1951. PORTCR(190, 0xe60520be), /* PORT190CR */
  1952. PORTCR(191, 0xe60520bf), /* PORT191CR */
  1953. PORTCR(192, 0xe60520c0), /* PORT192CR */
  1954. PORTCR(193, 0xe60520c1), /* PORT193CR */
  1955. PORTCR(194, 0xe60520c2), /* PORT194CR */
  1956. PORTCR(195, 0xe60520c3), /* PORT195CR */
  1957. PORTCR(196, 0xe60520c4), /* PORT196CR */
  1958. PORTCR(197, 0xe60520c5), /* PORT197CR */
  1959. PORTCR(198, 0xe60520c6), /* PORT198CR */
  1960. PORTCR(199, 0xe60520c7), /* PORT199CR */
  1961. PORTCR(200, 0xe60520c8), /* PORT200CR */
  1962. PORTCR(201, 0xe60520c9), /* PORT201CR */
  1963. PORTCR(202, 0xe60520ca), /* PORT202CR */
  1964. PORTCR(203, 0xe60520cb), /* PORT203CR */
  1965. PORTCR(204, 0xe60520cc), /* PORT204CR */
  1966. PORTCR(205, 0xe60520cd), /* PORT205CR */
  1967. PORTCR(206, 0xe60520ce), /* PORT206CR */
  1968. PORTCR(207, 0xe60520cf), /* PORT207CR */
  1969. PORTCR(208, 0xe60520d0), /* PORT208CR */
  1970. PORTCR(209, 0xe60520d1), /* PORT209CR */
  1971. PORTCR(210, 0xe60530d2), /* PORT210CR */
  1972. PORTCR(211, 0xe60530d3), /* PORT211CR */
  1973. { PINMUX_CFG_REG("MSEL1CR", 0xe605800c, 32, 1) {
  1974. MSEL1CR_31_0, MSEL1CR_31_1,
  1975. MSEL1CR_30_0, MSEL1CR_30_1,
  1976. MSEL1CR_29_0, MSEL1CR_29_1,
  1977. MSEL1CR_28_0, MSEL1CR_28_1,
  1978. MSEL1CR_27_0, MSEL1CR_27_1,
  1979. MSEL1CR_26_0, MSEL1CR_26_1,
  1980. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1981. 0, 0, 0, 0, 0, 0, 0, 0,
  1982. MSEL1CR_16_0, MSEL1CR_16_1,
  1983. MSEL1CR_15_0, MSEL1CR_15_1,
  1984. MSEL1CR_14_0, MSEL1CR_14_1,
  1985. MSEL1CR_13_0, MSEL1CR_13_1,
  1986. MSEL1CR_12_0, MSEL1CR_12_1,
  1987. 0, 0, 0, 0,
  1988. MSEL1CR_9_0, MSEL1CR_9_1,
  1989. 0, 0,
  1990. MSEL1CR_7_0, MSEL1CR_7_1,
  1991. MSEL1CR_6_0, MSEL1CR_6_1,
  1992. MSEL1CR_5_0, MSEL1CR_5_1,
  1993. MSEL1CR_4_0, MSEL1CR_4_1,
  1994. MSEL1CR_3_0, MSEL1CR_3_1,
  1995. MSEL1CR_2_0, MSEL1CR_2_1,
  1996. 0, 0,
  1997. MSEL1CR_0_0, MSEL1CR_0_1,
  1998. }
  1999. },
  2000. { PINMUX_CFG_REG("MSEL3CR", 0xE6058020, 32, 1) {
  2001. 0, 0, 0, 0, 0, 0, 0, 0,
  2002. 0, 0, 0, 0, 0, 0, 0, 0,
  2003. 0, 0, 0, 0, 0, 0, 0, 0,
  2004. 0, 0, 0, 0, 0, 0, 0, 0,
  2005. MSEL3CR_15_0, MSEL3CR_15_1,
  2006. 0, 0, 0, 0, 0, 0, 0, 0,
  2007. 0, 0, 0, 0, 0, 0, 0, 0,
  2008. MSEL3CR_6_0, MSEL3CR_6_1,
  2009. 0, 0, 0, 0, 0, 0, 0, 0,
  2010. 0, 0, 0, 0,
  2011. }
  2012. },
  2013. { PINMUX_CFG_REG("MSEL4CR", 0xE6058024, 32, 1) {
  2014. 0, 0, 0, 0, 0, 0, 0, 0,
  2015. 0, 0, 0, 0, 0, 0, 0, 0,
  2016. 0, 0, 0, 0, 0, 0, 0, 0,
  2017. MSEL4CR_19_0, MSEL4CR_19_1,
  2018. MSEL4CR_18_0, MSEL4CR_18_1,
  2019. 0, 0, 0, 0,
  2020. MSEL4CR_15_0, MSEL4CR_15_1,
  2021. 0, 0, 0, 0, 0, 0, 0, 0,
  2022. MSEL4CR_10_0, MSEL4CR_10_1,
  2023. 0, 0, 0, 0, 0, 0,
  2024. MSEL4CR_6_0, MSEL4CR_6_1,
  2025. 0, 0,
  2026. MSEL4CR_4_0, MSEL4CR_4_1,
  2027. 0, 0, 0, 0,
  2028. MSEL4CR_1_0, MSEL4CR_1_1,
  2029. 0, 0,
  2030. }
  2031. },
  2032. { PINMUX_CFG_REG("MSEL5CR", 0xE6058028, 32, 1) {
  2033. MSEL5CR_31_0, MSEL5CR_31_1,
  2034. MSEL5CR_30_0, MSEL5CR_30_1,
  2035. MSEL5CR_29_0, MSEL5CR_29_1,
  2036. 0, 0,
  2037. MSEL5CR_27_0, MSEL5CR_27_1,
  2038. 0, 0,
  2039. MSEL5CR_25_0, MSEL5CR_25_1,
  2040. 0, 0,
  2041. MSEL5CR_23_0, MSEL5CR_23_1,
  2042. 0, 0,
  2043. MSEL5CR_21_0, MSEL5CR_21_1,
  2044. 0, 0,
  2045. MSEL5CR_19_0, MSEL5CR_19_1,
  2046. 0, 0,
  2047. MSEL5CR_17_0, MSEL5CR_17_1,
  2048. 0, 0,
  2049. MSEL5CR_15_0, MSEL5CR_15_1,
  2050. MSEL5CR_14_0, MSEL5CR_14_1,
  2051. MSEL5CR_13_0, MSEL5CR_13_1,
  2052. MSEL5CR_12_0, MSEL5CR_12_1,
  2053. MSEL5CR_11_0, MSEL5CR_11_1,
  2054. MSEL5CR_10_0, MSEL5CR_10_1,
  2055. 0, 0,
  2056. MSEL5CR_8_0, MSEL5CR_8_1,
  2057. MSEL5CR_7_0, MSEL5CR_7_1,
  2058. MSEL5CR_6_0, MSEL5CR_6_1,
  2059. MSEL5CR_5_0, MSEL5CR_5_1,
  2060. MSEL5CR_4_0, MSEL5CR_4_1,
  2061. MSEL5CR_3_0, MSEL5CR_3_1,
  2062. MSEL5CR_2_0, MSEL5CR_2_1,
  2063. 0, 0,
  2064. MSEL5CR_0_0, MSEL5CR_0_1,
  2065. }
  2066. },
  2067. { },
  2068. };
  2069. static struct pinmux_data_reg pinmux_data_regs[] = {
  2070. { PINMUX_DATA_REG("PORTL031_000DR", 0xe6054800, 32) {
  2071. PORT31_DATA, PORT30_DATA, PORT29_DATA, PORT28_DATA,
  2072. PORT27_DATA, PORT26_DATA, PORT25_DATA, PORT24_DATA,
  2073. PORT23_DATA, PORT22_DATA, PORT21_DATA, PORT20_DATA,
  2074. PORT19_DATA, PORT18_DATA, PORT17_DATA, PORT16_DATA,
  2075. PORT15_DATA, PORT14_DATA, PORT13_DATA, PORT12_DATA,
  2076. PORT11_DATA, PORT10_DATA, PORT9_DATA, PORT8_DATA,
  2077. PORT7_DATA, PORT6_DATA, PORT5_DATA, PORT4_DATA,
  2078. PORT3_DATA, PORT2_DATA, PORT1_DATA, PORT0_DATA }
  2079. },
  2080. { PINMUX_DATA_REG("PORTL063_032DR", 0xe6054804, 32) {
  2081. PORT63_DATA, PORT62_DATA, PORT61_DATA, PORT60_DATA,
  2082. PORT59_DATA, PORT58_DATA, PORT57_DATA, PORT56_DATA,
  2083. PORT55_DATA, PORT54_DATA, PORT53_DATA, PORT52_DATA,
  2084. PORT51_DATA, PORT50_DATA, PORT49_DATA, PORT48_DATA,
  2085. PORT47_DATA, PORT46_DATA, PORT45_DATA, PORT44_DATA,
  2086. PORT43_DATA, PORT42_DATA, PORT41_DATA, PORT40_DATA,
  2087. PORT39_DATA, PORT38_DATA, PORT37_DATA, PORT36_DATA,
  2088. PORT35_DATA, PORT34_DATA, PORT33_DATA, PORT32_DATA }
  2089. },
  2090. { PINMUX_DATA_REG("PORTL095_064DR", 0xe6054808, 32) {
  2091. 0, 0, 0, 0,
  2092. 0, 0, 0, 0,
  2093. 0, 0, 0, 0,
  2094. PORT83_DATA, PORT82_DATA, PORT81_DATA, PORT80_DATA,
  2095. PORT79_DATA, PORT78_DATA, PORT77_DATA, PORT76_DATA,
  2096. PORT75_DATA, PORT74_DATA, PORT73_DATA, PORT72_DATA,
  2097. PORT71_DATA, PORT70_DATA, PORT69_DATA, PORT68_DATA,
  2098. PORT67_DATA, PORT66_DATA, PORT65_DATA, PORT64_DATA }
  2099. },
  2100. { PINMUX_DATA_REG("PORTD095_064DR", 0xe6055808, 32) {
  2101. PORT95_DATA, PORT94_DATA, PORT93_DATA, PORT92_DATA,
  2102. PORT91_DATA, PORT90_DATA, PORT89_DATA, PORT88_DATA,
  2103. PORT87_DATA, PORT86_DATA, PORT85_DATA, PORT84_DATA,
  2104. 0, 0, 0, 0,
  2105. 0, 0, 0, 0,
  2106. 0, 0, 0, 0,
  2107. 0, 0, 0, 0,
  2108. 0, 0, 0, 0 }
  2109. },
  2110. { PINMUX_DATA_REG("PORTD127_096DR", 0xe605580c, 32) {
  2111. 0, 0, 0, 0,
  2112. 0, 0, 0, 0,
  2113. 0, 0, 0, 0,
  2114. 0, PORT114_DATA, PORT113_DATA, PORT112_DATA,
  2115. PORT111_DATA, PORT110_DATA, PORT109_DATA, PORT108_DATA,
  2116. PORT107_DATA, PORT106_DATA, PORT105_DATA, PORT104_DATA,
  2117. PORT103_DATA, PORT102_DATA, PORT101_DATA, PORT100_DATA,
  2118. PORT99_DATA, PORT98_DATA, PORT97_DATA, PORT96_DATA }
  2119. },
  2120. { PINMUX_DATA_REG("PORTR127_096DR", 0xe605680C, 32) {
  2121. PORT127_DATA, PORT126_DATA, PORT125_DATA, PORT124_DATA,
  2122. PORT123_DATA, PORT122_DATA, PORT121_DATA, PORT120_DATA,
  2123. PORT119_DATA, PORT118_DATA, PORT117_DATA, PORT116_DATA,
  2124. PORT115_DATA, 0, 0, 0,
  2125. 0, 0, 0, 0,
  2126. 0, 0, 0, 0,
  2127. 0, 0, 0, 0,
  2128. 0, 0, 0, 0 }
  2129. },
  2130. { PINMUX_DATA_REG("PORTR159_128DR", 0xe6056810, 32) {
  2131. PORT159_DATA, PORT158_DATA, PORT157_DATA, PORT156_DATA,
  2132. PORT155_DATA, PORT154_DATA, PORT153_DATA, PORT152_DATA,
  2133. PORT151_DATA, PORT150_DATA, PORT149_DATA, PORT148_DATA,
  2134. PORT147_DATA, PORT146_DATA, PORT145_DATA, PORT144_DATA,
  2135. PORT143_DATA, PORT142_DATA, PORT141_DATA, PORT140_DATA,
  2136. PORT139_DATA, PORT138_DATA, PORT137_DATA, PORT136_DATA,
  2137. PORT135_DATA, PORT134_DATA, PORT133_DATA, PORT132_DATA,
  2138. PORT131_DATA, PORT130_DATA, PORT129_DATA, PORT128_DATA }
  2139. },
  2140. { PINMUX_DATA_REG("PORTR191_160DR", 0xe6056814, 32) {
  2141. PORT191_DATA, PORT190_DATA, PORT189_DATA, PORT188_DATA,
  2142. PORT187_DATA, PORT186_DATA, PORT185_DATA, PORT184_DATA,
  2143. PORT183_DATA, PORT182_DATA, PORT181_DATA, PORT180_DATA,
  2144. PORT179_DATA, PORT178_DATA, PORT177_DATA, PORT176_DATA,
  2145. PORT175_DATA, PORT174_DATA, PORT173_DATA, PORT172_DATA,
  2146. PORT171_DATA, PORT170_DATA, PORT169_DATA, PORT168_DATA,
  2147. PORT167_DATA, PORT166_DATA, PORT165_DATA, PORT164_DATA,
  2148. PORT163_DATA, PORT162_DATA, PORT161_DATA, PORT160_DATA }
  2149. },
  2150. { PINMUX_DATA_REG("PORTR223_192DR", 0xe6056818, 32) {
  2151. 0, 0, 0, 0,
  2152. 0, 0, 0, 0,
  2153. 0, 0, 0, 0,
  2154. 0, 0, PORT209_DATA, PORT208_DATA,
  2155. PORT207_DATA, PORT206_DATA, PORT205_DATA, PORT204_DATA,
  2156. PORT203_DATA, PORT202_DATA, PORT201_DATA, PORT200_DATA,
  2157. PORT199_DATA, PORT198_DATA, PORT197_DATA, PORT196_DATA,
  2158. PORT195_DATA, PORT194_DATA, PORT193_DATA, PORT192_DATA }
  2159. },
  2160. { PINMUX_DATA_REG("PORTU223_192DR", 0xe6057818, 32) {
  2161. 0, 0, 0, 0,
  2162. 0, 0, 0, 0,
  2163. 0, 0, 0, 0,
  2164. PORT211_DATA, PORT210_DATA, 0, 0,
  2165. 0, 0, 0, 0,
  2166. 0, 0, 0, 0,
  2167. 0, 0, 0, 0,
  2168. 0, 0, 0, 0 }
  2169. },
  2170. { },
  2171. };
  2172. static struct pinmux_info r8a7740_pinmux_info = {
  2173. .name = "r8a7740_pfc",
  2174. .reserved_id = PINMUX_RESERVED,
  2175. .data = { PINMUX_DATA_BEGIN,
  2176. PINMUX_DATA_END },
  2177. .input = { PINMUX_INPUT_BEGIN,
  2178. PINMUX_INPUT_END },
  2179. .input_pu = { PINMUX_INPUT_PULLUP_BEGIN,
  2180. PINMUX_INPUT_PULLUP_END },
  2181. .input_pd = { PINMUX_INPUT_PULLDOWN_BEGIN,
  2182. PINMUX_INPUT_PULLDOWN_END },
  2183. .output = { PINMUX_OUTPUT_BEGIN,
  2184. PINMUX_OUTPUT_END },
  2185. .mark = { PINMUX_MARK_BEGIN,
  2186. PINMUX_MARK_END },
  2187. .function = { PINMUX_FUNCTION_BEGIN,
  2188. PINMUX_FUNCTION_END },
  2189. .first_gpio = GPIO_PORT0,
  2190. .last_gpio = GPIO_FN_TRACEAUD_FROM_MEMC,
  2191. .gpios = pinmux_gpios,
  2192. .cfg_regs = pinmux_config_regs,
  2193. .data_regs = pinmux_data_regs,
  2194. .gpio_data = pinmux_data,
  2195. .gpio_data_size = ARRAY_SIZE(pinmux_data),
  2196. };
  2197. void r8a7740_pinmux_init(void)
  2198. {
  2199. register_pinmux(&r8a7740_pinmux_info);
  2200. }