pfc-sh7269.c 80 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836
  1. /*
  2. * SH7269 Pinmux
  3. *
  4. * Copyright (C) 2012 Renesas Electronics Europe Ltd
  5. * Copyright (C) 2012 Phil Edworthy
  6. *
  7. * This file is subject to the terms and conditions of the GNU General Public
  8. * License. See the file "COPYING" in the main directory of this archive
  9. * for more details.
  10. */
  11. #include <linux/kernel.h>
  12. #include <linux/gpio.h>
  13. #include <cpu/sh7269.h>
  14. #include "sh_pfc.h"
  15. enum {
  16. PINMUX_RESERVED = 0,
  17. PINMUX_DATA_BEGIN,
  18. /* Port A */
  19. PA1_DATA, PA0_DATA,
  20. /* Port B */
  21. PB22_DATA, PB21_DATA, PB20_DATA,
  22. PB19_DATA, PB18_DATA, PB17_DATA, PB16_DATA,
  23. PB15_DATA, PB14_DATA, PB13_DATA, PB12_DATA,
  24. PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA,
  25. PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA,
  26. PB3_DATA, PB2_DATA, PB1_DATA,
  27. /* Port C */
  28. PC8_DATA,
  29. PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA,
  30. PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA,
  31. /* Port D */
  32. PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA,
  33. PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA,
  34. PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA,
  35. PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA,
  36. /* Port E */
  37. PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA,
  38. PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA,
  39. /* Port F */
  40. PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA,
  41. PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA,
  42. PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA,
  43. PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA,
  44. PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA,
  45. PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA,
  46. /* Port G */
  47. PG27_DATA, PG26_DATA, PG25_DATA, PG24_DATA,
  48. PG23_DATA, PG22_DATA, PG21_DATA, PG20_DATA,
  49. PG19_DATA, PG18_DATA, PG17_DATA, PG16_DATA,
  50. PG15_DATA, PG14_DATA, PG13_DATA, PG12_DATA,
  51. PG11_DATA, PG10_DATA, PG9_DATA, PG8_DATA,
  52. PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA,
  53. PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA,
  54. /* Port H */
  55. /* NOTE - Port H does not have a Data Register, but PH Data is
  56. connected to PH Port Register */
  57. PH7_DATA, PH6_DATA, PH5_DATA, PH4_DATA,
  58. PH3_DATA, PH2_DATA, PH1_DATA, PH0_DATA,
  59. /* Port I - not on device */
  60. /* Port J */
  61. PJ31_DATA, PJ30_DATA, PJ29_DATA, PJ28_DATA,
  62. PJ27_DATA, PJ26_DATA, PJ25_DATA, PJ24_DATA,
  63. PJ23_DATA, PJ22_DATA, PJ21_DATA, PJ20_DATA,
  64. PJ19_DATA, PJ18_DATA, PJ17_DATA, PJ16_DATA,
  65. PJ15_DATA, PJ14_DATA, PJ13_DATA, PJ12_DATA,
  66. PJ11_DATA, PJ10_DATA, PJ9_DATA, PJ8_DATA,
  67. PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA,
  68. PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA,
  69. PINMUX_DATA_END,
  70. PINMUX_INPUT_BEGIN,
  71. FORCE_IN,
  72. /* Port A */
  73. PA1_IN, PA0_IN,
  74. /* Port B */
  75. PB22_IN, PB21_IN, PB20_IN,
  76. PB19_IN, PB18_IN, PB17_IN, PB16_IN,
  77. PB15_IN, PB14_IN, PB13_IN, PB12_IN,
  78. PB11_IN, PB10_IN, PB9_IN, PB8_IN,
  79. PB7_IN, PB6_IN, PB5_IN, PB4_IN,
  80. PB3_IN, PB2_IN, PB1_IN,
  81. /* Port C */
  82. PC8_IN,
  83. PC7_IN, PC6_IN, PC5_IN, PC4_IN,
  84. PC3_IN, PC2_IN, PC1_IN, PC0_IN,
  85. /* Port D */
  86. PD15_IN, PD14_IN, PD13_IN, PD12_IN,
  87. PD11_IN, PD10_IN, PD9_IN, PD8_IN,
  88. PD7_IN, PD6_IN, PD5_IN, PD4_IN,
  89. PD3_IN, PD2_IN, PD1_IN, PD0_IN,
  90. /* Port E */
  91. PE7_IN, PE6_IN, PE5_IN, PE4_IN,
  92. PE3_IN, PE2_IN, PE1_IN, PE0_IN,
  93. /* Port F */
  94. PF23_IN, PF22_IN, PF21_IN, PF20_IN,
  95. PF19_IN, PF18_IN, PF17_IN, PF16_IN,
  96. PF15_IN, PF14_IN, PF13_IN, PF12_IN,
  97. PF11_IN, PF10_IN, PF9_IN, PF8_IN,
  98. PF7_IN, PF6_IN, PF5_IN, PF4_IN,
  99. PF3_IN, PF2_IN, PF1_IN, PF0_IN,
  100. /* Port G */
  101. PG27_IN, PG26_IN, PG25_IN, PG24_IN,
  102. PG23_IN, PG22_IN, PG21_IN, PG20_IN,
  103. PG19_IN, PG18_IN, PG17_IN, PG16_IN,
  104. PG15_IN, PG14_IN, PG13_IN, PG12_IN,
  105. PG11_IN, PG10_IN, PG9_IN, PG8_IN,
  106. PG7_IN, PG6_IN, PG5_IN, PG4_IN,
  107. PG3_IN, PG2_IN, PG1_IN, PG0_IN,
  108. /* Port H - Port H does not have a Data Register */
  109. /* Port I - not on device */
  110. /* Port J */
  111. PJ31_IN, PJ30_IN, PJ29_IN, PJ28_IN,
  112. PJ27_IN, PJ26_IN, PJ25_IN, PJ24_IN,
  113. PJ23_IN, PJ22_IN, PJ21_IN, PJ20_IN,
  114. PJ19_IN, PJ18_IN, PJ17_IN, PJ16_IN,
  115. PJ15_IN, PJ14_IN, PJ13_IN, PJ12_IN,
  116. PJ11_IN, PJ10_IN, PJ9_IN, PJ8_IN,
  117. PJ7_IN, PJ6_IN, PJ5_IN, PJ4_IN,
  118. PJ3_IN, PJ2_IN, PJ1_IN, PJ0_IN,
  119. PINMUX_INPUT_END,
  120. PINMUX_OUTPUT_BEGIN,
  121. FORCE_OUT,
  122. /* Port A */
  123. PA1_OUT, PA0_OUT,
  124. /* Port B */
  125. PB22_OUT, PB21_OUT, PB20_OUT,
  126. PB19_OUT, PB18_OUT, PB17_OUT, PB16_OUT,
  127. PB15_OUT, PB14_OUT, PB13_OUT, PB12_OUT,
  128. PB11_OUT, PB10_OUT, PB9_OUT, PB8_OUT,
  129. PB7_OUT, PB6_OUT, PB5_OUT, PB4_OUT,
  130. PB3_OUT, PB2_OUT, PB1_OUT,
  131. /* Port C */
  132. PC8_OUT,
  133. PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT,
  134. PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT,
  135. /* Port D */
  136. PD15_OUT, PD14_OUT, PD13_OUT, PD12_OUT,
  137. PD11_OUT, PD10_OUT, PD9_OUT, PD8_OUT,
  138. PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT,
  139. PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT,
  140. /* Port E */
  141. PE7_OUT, PE6_OUT, PE5_OUT, PE4_OUT,
  142. PE3_OUT, PE2_OUT, PE1_OUT, PE0_OUT,
  143. /* Port F */
  144. PF23_OUT, PF22_OUT, PF21_OUT, PF20_OUT,
  145. PF19_OUT, PF18_OUT, PF17_OUT, PF16_OUT,
  146. PF15_OUT, PF14_OUT, PF13_OUT, PF12_OUT,
  147. PF11_OUT, PF10_OUT, PF9_OUT, PF8_OUT,
  148. PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT,
  149. PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT,
  150. /* Port G */
  151. PG27_OUT, PG26_OUT, PG25_OUT, PG24_OUT,
  152. PG23_OUT, PG22_OUT, PG21_OUT, PG20_OUT,
  153. PG19_OUT, PG18_OUT, PG17_OUT, PG16_OUT,
  154. PG15_OUT, PG14_OUT, PG13_OUT, PG12_OUT,
  155. PG11_OUT, PG10_OUT, PG9_OUT, PG8_OUT,
  156. PG7_OUT, PG6_OUT, PG5_OUT, PG4_OUT,
  157. PG3_OUT, PG2_OUT, PG1_OUT, PG0_OUT,
  158. /* Port H - Port H does not have a Data Register */
  159. /* Port I - not on device */
  160. /* Port J */
  161. PJ31_OUT, PJ30_OUT, PJ29_OUT, PJ28_OUT,
  162. PJ27_OUT, PJ26_OUT, PJ25_OUT, PJ24_OUT,
  163. PJ23_OUT, PJ22_OUT, PJ21_OUT, PJ20_OUT,
  164. PJ19_OUT, PJ18_OUT, PJ17_OUT, PJ16_OUT,
  165. PJ15_OUT, PJ14_OUT, PJ13_OUT, PJ12_OUT,
  166. PJ11_OUT, PJ10_OUT, PJ9_OUT, PJ8_OUT,
  167. PJ7_OUT, PJ6_OUT, PJ5_OUT, PJ4_OUT,
  168. PJ3_OUT, PJ2_OUT, PJ1_OUT, PJ0_OUT,
  169. PINMUX_OUTPUT_END,
  170. PINMUX_FUNCTION_BEGIN,
  171. /* Port A */
  172. PA1_IOR_IN, PA1_IOR_OUT,
  173. PA0_IOR_IN, PA0_IOR_OUT,
  174. /* Port B */
  175. PB22_IOR_IN, PB22_IOR_OUT,
  176. PB21_IOR_IN, PB21_IOR_OUT,
  177. PB20_IOR_IN, PB20_IOR_OUT,
  178. PB19_IOR_IN, PB19_IOR_OUT,
  179. PB18_IOR_IN, PB18_IOR_OUT,
  180. PB17_IOR_IN, PB17_IOR_OUT,
  181. PB16_IOR_IN, PB16_IOR_OUT,
  182. PB15_IOR_IN, PB15_IOR_OUT,
  183. PB14_IOR_IN, PB14_IOR_OUT,
  184. PB13_IOR_IN, PB13_IOR_OUT,
  185. PB12_IOR_IN, PB12_IOR_OUT,
  186. PB11_IOR_IN, PB11_IOR_OUT,
  187. PB10_IOR_IN, PB10_IOR_OUT,
  188. PB9_IOR_IN, PB9_IOR_OUT,
  189. PB8_IOR_IN, PB8_IOR_OUT,
  190. PB7_IOR_IN, PB7_IOR_OUT,
  191. PB6_IOR_IN, PB6_IOR_OUT,
  192. PB5_IOR_IN, PB5_IOR_OUT,
  193. PB4_IOR_IN, PB4_IOR_OUT,
  194. PB3_IOR_IN, PB3_IOR_OUT,
  195. PB2_IOR_IN, PB2_IOR_OUT,
  196. PB1_IOR_IN, PB1_IOR_OUT,
  197. PB0_IOR_IN, PB0_IOR_OUT,
  198. PB22MD_000, PB22MD_001, PB22MD_010, PB22MD_011,
  199. PB22MD_100, PB22MD_101, PB22MD_110, PB22MD_111,
  200. PB21MD_00, PB21MD_01, PB21MD_10, PB21MD_11,
  201. PB20MD_000, PB20MD_001, PB20MD_010, PB20MD_011,
  202. PB20MD_100, PB20MD_101, PB20MD_110, PB20MD_111,
  203. PB19MD_000, PB19MD_001, PB19MD_010, PB19MD_011,
  204. PB19MD_100, PB19MD_101, PB19MD_110, PB19MD_111,
  205. PB18MD_000, PB18MD_001, PB18MD_010, PB18MD_011,
  206. PB18MD_100, PB18MD_101, PB18MD_110, PB18MD_111,
  207. PB17MD_000, PB17MD_001, PB17MD_010, PB17MD_011,
  208. PB17MD_100, PB17MD_101, PB17MD_110, PB17MD_111,
  209. PB16MD_000, PB16MD_001, PB16MD_010, PB16MD_011,
  210. PB16MD_100, PB16MD_101, PB16MD_110, PB16MD_111,
  211. PB15MD_000, PB15MD_001, PB15MD_010, PB15MD_011,
  212. PB15MD_100, PB15MD_101, PB15MD_110, PB15MD_111,
  213. PB14MD_000, PB14MD_001, PB14MD_010, PB14MD_011,
  214. PB14MD_100, PB14MD_101, PB14MD_110, PB14MD_111,
  215. PB13MD_000, PB13MD_001, PB13MD_010, PB13MD_011,
  216. PB13MD_100, PB13MD_101, PB13MD_110, PB13MD_111,
  217. PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11,
  218. PB11MD_00, PB11MD_01, PB11MD_10, PB11MD_11,
  219. PB10MD_00, PB10MD_01, PB10MD_10, PB10MD_11,
  220. PB9MD_00, PB9MD_01, PB9MD_10, PB9MD_11,
  221. PB8MD_00, PB8MD_01, PB8MD_10, PB8MD_11,
  222. PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11,
  223. PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11,
  224. PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11,
  225. PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11,
  226. PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11,
  227. PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11,
  228. PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11,
  229. /* Port C */
  230. PC8_IOR_IN, PC8_IOR_OUT,
  231. PC7_IOR_IN, PC7_IOR_OUT,
  232. PC6_IOR_IN, PC6_IOR_OUT,
  233. PC5_IOR_IN, PC5_IOR_OUT,
  234. PC4_IOR_IN, PC4_IOR_OUT,
  235. PC3_IOR_IN, PC3_IOR_OUT,
  236. PC2_IOR_IN, PC2_IOR_OUT,
  237. PC1_IOR_IN, PC1_IOR_OUT,
  238. PC0_IOR_IN, PC0_IOR_OUT,
  239. PC8MD_000, PC8MD_001, PC8MD_010, PC8MD_011,
  240. PC8MD_100, PC8MD_101, PC8MD_110, PC8MD_111,
  241. PC7MD_000, PC7MD_001, PC7MD_010, PC7MD_011,
  242. PC7MD_100, PC7MD_101, PC7MD_110, PC7MD_111,
  243. PC6MD_000, PC6MD_001, PC6MD_010, PC6MD_011,
  244. PC6MD_100, PC6MD_101, PC6MD_110, PC6MD_111,
  245. PC5MD_000, PC5MD_001, PC5MD_010, PC5MD_011,
  246. PC5MD_100, PC5MD_101, PC5MD_110, PC5MD_111,
  247. PC4MD_00, PC4MD_01, PC4MD_10, PC4MD_11,
  248. PC3MD_00, PC3MD_01, PC3MD_10, PC3MD_11,
  249. PC2MD_00, PC2MD_01, PC2MD_10, PC2MD_11,
  250. PC1MD_0, PC1MD_1,
  251. PC0MD_0, PC0MD_1,
  252. /* Port D */
  253. PD15_IOR_IN, PD15_IOR_OUT,
  254. PD14_IOR_IN, PD14_IOR_OUT,
  255. PD13_IOR_IN, PD13_IOR_OUT,
  256. PD12_IOR_IN, PD12_IOR_OUT,
  257. PD11_IOR_IN, PD11_IOR_OUT,
  258. PD10_IOR_IN, PD10_IOR_OUT,
  259. PD9_IOR_IN, PD9_IOR_OUT,
  260. PD8_IOR_IN, PD8_IOR_OUT,
  261. PD7_IOR_IN, PD7_IOR_OUT,
  262. PD6_IOR_IN, PD6_IOR_OUT,
  263. PD5_IOR_IN, PD5_IOR_OUT,
  264. PD4_IOR_IN, PD4_IOR_OUT,
  265. PD3_IOR_IN, PD3_IOR_OUT,
  266. PD2_IOR_IN, PD2_IOR_OUT,
  267. PD1_IOR_IN, PD1_IOR_OUT,
  268. PD0_IOR_IN, PD0_IOR_OUT,
  269. PD15MD_00, PD15MD_01, PD15MD_10, PD15MD_11,
  270. PD14MD_00, PD14MD_01, PD14MD_10, PD14MD_11,
  271. PD13MD_00, PD13MD_01, PD13MD_10, PD13MD_11,
  272. PD12MD_00, PD12MD_01, PD12MD_10, PD12MD_11,
  273. PD11MD_00, PD11MD_01, PD11MD_10, PD11MD_11,
  274. PD10MD_00, PD10MD_01, PD10MD_10, PD10MD_11,
  275. PD9MD_00, PD9MD_01, PD9MD_10, PD9MD_11,
  276. PD8MD_00, PD8MD_01, PD8MD_10, PD8MD_11,
  277. PD7MD_00, PD7MD_01, PD7MD_10, PD7MD_11,
  278. PD6MD_00, PD6MD_01, PD6MD_10, PD6MD_11,
  279. PD5MD_00, PD5MD_01, PD5MD_10, PD5MD_11,
  280. PD4MD_00, PD4MD_01, PD4MD_10, PD4MD_11,
  281. PD3MD_00, PD3MD_01, PD3MD_10, PD3MD_11,
  282. PD2MD_00, PD2MD_01, PD2MD_10, PD2MD_11,
  283. PD1MD_00, PD1MD_01, PD1MD_10, PD1MD_11,
  284. PD0MD_00, PD0MD_01, PD0MD_10, PD0MD_11,
  285. /* Port E */
  286. PE7_IOR_IN, PE7_IOR_OUT,
  287. PE6_IOR_IN, PE6_IOR_OUT,
  288. PE5_IOR_IN, PE5_IOR_OUT,
  289. PE4_IOR_IN, PE4_IOR_OUT,
  290. PE3_IOR_IN, PE3_IOR_OUT,
  291. PE2_IOR_IN, PE2_IOR_OUT,
  292. PE1_IOR_IN, PE1_IOR_OUT,
  293. PE0_IOR_IN, PE0_IOR_OUT,
  294. PE7MD_00, PE7MD_01, PE7MD_10, PE7MD_11,
  295. PE6MD_00, PE6MD_01, PE6MD_10, PE6MD_11,
  296. PE5MD_00, PE5MD_01, PE5MD_10, PE5MD_11,
  297. PE4MD_00, PE4MD_01, PE4MD_10, PE4MD_11,
  298. PE3MD_000, PE3MD_001, PE3MD_010, PE3MD_011,
  299. PE3MD_100, PE3MD_101, PE3MD_110, PE3MD_111,
  300. PE2MD_000, PE2MD_001, PE2MD_010, PE2MD_011,
  301. PE2MD_100, PE2MD_101, PE2MD_110, PE2MD_111,
  302. PE1MD_000, PE1MD_001, PE1MD_010, PE1MD_011,
  303. PE1MD_100, PE1MD_101, PE1MD_110, PE1MD_111,
  304. PE0MD_00, PE0MD_01, PE0MD_10, PE0MD_11,
  305. /* Port F */
  306. PF23_IOR_IN, PF23_IOR_OUT,
  307. PF22_IOR_IN, PF22_IOR_OUT,
  308. PF21_IOR_IN, PF21_IOR_OUT,
  309. PF20_IOR_IN, PF20_IOR_OUT,
  310. PF19_IOR_IN, PF19_IOR_OUT,
  311. PF18_IOR_IN, PF18_IOR_OUT,
  312. PF17_IOR_IN, PF17_IOR_OUT,
  313. PF16_IOR_IN, PF16_IOR_OUT,
  314. PF15_IOR_IN, PF15_IOR_OUT,
  315. PF14_IOR_IN, PF14_IOR_OUT,
  316. PF13_IOR_IN, PF13_IOR_OUT,
  317. PF12_IOR_IN, PF12_IOR_OUT,
  318. PF11_IOR_IN, PF11_IOR_OUT,
  319. PF10_IOR_IN, PF10_IOR_OUT,
  320. PF9_IOR_IN, PF9_IOR_OUT,
  321. PF8_IOR_IN, PF8_IOR_OUT,
  322. PF7_IOR_IN, PF7_IOR_OUT,
  323. PF6_IOR_IN, PF6_IOR_OUT,
  324. PF5_IOR_IN, PF5_IOR_OUT,
  325. PF4_IOR_IN, PF4_IOR_OUT,
  326. PF3_IOR_IN, PF3_IOR_OUT,
  327. PF2_IOR_IN, PF2_IOR_OUT,
  328. PF1_IOR_IN, PF1_IOR_OUT,
  329. PF0_IOR_IN, PF0_IOR_OUT,
  330. PF23MD_000, PF23MD_001, PF23MD_010, PF23MD_011,
  331. PF23MD_100, PF23MD_101, PF23MD_110, PF23MD_111,
  332. PF22MD_000, PF22MD_001, PF22MD_010, PF22MD_011,
  333. PF22MD_100, PF22MD_101, PF22MD_110, PF22MD_111,
  334. PF21MD_000, PF21MD_001, PF21MD_010, PF21MD_011,
  335. PF21MD_100, PF21MD_101, PF21MD_110, PF21MD_111,
  336. PF20MD_000, PF20MD_001, PF20MD_010, PF20MD_011,
  337. PF20MD_100, PF20MD_101, PF20MD_110, PF20MD_111,
  338. PF19MD_000, PF19MD_001, PF19MD_010, PF19MD_011,
  339. PF19MD_100, PF19MD_101, PF19MD_110, PF19MD_111,
  340. PF18MD_000, PF18MD_001, PF18MD_010, PF18MD_011,
  341. PF18MD_100, PF18MD_101, PF18MD_110, PF18MD_111,
  342. PF17MD_000, PF17MD_001, PF17MD_010, PF17MD_011,
  343. PF17MD_100, PF17MD_101, PF17MD_110, PF17MD_111,
  344. PF16MD_000, PF16MD_001, PF16MD_010, PF16MD_011,
  345. PF16MD_100, PF16MD_101, PF16MD_110, PF16MD_111,
  346. PF15MD_000, PF15MD_001, PF15MD_010, PF15MD_011,
  347. PF15MD_100, PF15MD_101, PF15MD_110, PF15MD_111,
  348. PF14MD_000, PF14MD_001, PF14MD_010, PF14MD_011,
  349. PF14MD_100, PF14MD_101, PF14MD_110, PF14MD_111,
  350. PF13MD_000, PF13MD_001, PF13MD_010, PF13MD_011,
  351. PF13MD_100, PF13MD_101, PF13MD_110, PF13MD_111,
  352. PF12MD_000, PF12MD_001, PF12MD_010, PF12MD_011,
  353. PF12MD_100, PF12MD_101, PF12MD_110, PF12MD_111,
  354. PF11MD_000, PF11MD_001, PF11MD_010, PF11MD_011,
  355. PF11MD_100, PF11MD_101, PF11MD_110, PF11MD_111,
  356. PF10MD_000, PF10MD_001, PF10MD_010, PF10MD_011,
  357. PF10MD_100, PF10MD_101, PF10MD_110, PF10MD_111,
  358. PF9MD_000, PF9MD_001, PF9MD_010, PF9MD_011,
  359. PF9MD_100, PF9MD_101, PF9MD_110, PF9MD_111,
  360. PF8MD_000, PF8MD_001, PF8MD_010, PF8MD_011,
  361. PF8MD_100, PF8MD_101, PF8MD_110, PF8MD_111,
  362. PF7MD_000, PF7MD_001, PF7MD_010, PF7MD_011,
  363. PF7MD_100, PF7MD_101, PF7MD_110, PF7MD_111,
  364. PF6MD_000, PF6MD_001, PF6MD_010, PF6MD_011,
  365. PF6MD_100, PF6MD_101, PF6MD_110, PF6MD_111,
  366. PF5MD_000, PF5MD_001, PF5MD_010, PF5MD_011,
  367. PF5MD_100, PF5MD_101, PF5MD_110, PF5MD_111,
  368. PF4MD_000, PF4MD_001, PF4MD_010, PF4MD_011,
  369. PF4MD_100, PF4MD_101, PF4MD_110, PF4MD_111,
  370. PF3MD_000, PF3MD_001, PF3MD_010, PF3MD_011,
  371. PF3MD_100, PF3MD_101, PF3MD_110, PF3MD_111,
  372. PF2MD_000, PF2MD_001, PF2MD_010, PF2MD_011,
  373. PF2MD_100, PF2MD_101, PF2MD_110, PF2MD_111,
  374. PF1MD_000, PF1MD_001, PF1MD_010, PF1MD_011,
  375. PF1MD_100, PF1MD_101, PF1MD_110, PF1MD_111,
  376. PF0MD_000, PF0MD_001, PF0MD_010, PF0MD_011,
  377. PF0MD_100, PF0MD_101, PF0MD_110, PF0MD_111,
  378. /* Port G */
  379. PG27_IOR_IN, PG27_IOR_OUT,
  380. PG26_IOR_IN, PG26_IOR_OUT,
  381. PG25_IOR_IN, PG25_IOR_OUT,
  382. PG24_IOR_IN, PG24_IOR_OUT,
  383. PG23_IOR_IN, PG23_IOR_OUT,
  384. PG22_IOR_IN, PG22_IOR_OUT,
  385. PG21_IOR_IN, PG21_IOR_OUT,
  386. PG20_IOR_IN, PG20_IOR_OUT,
  387. PG19_IOR_IN, PG19_IOR_OUT,
  388. PG18_IOR_IN, PG18_IOR_OUT,
  389. PG17_IOR_IN, PG17_IOR_OUT,
  390. PG16_IOR_IN, PG16_IOR_OUT,
  391. PG15_IOR_IN, PG15_IOR_OUT,
  392. PG14_IOR_IN, PG14_IOR_OUT,
  393. PG13_IOR_IN, PG13_IOR_OUT,
  394. PG12_IOR_IN, PG12_IOR_OUT,
  395. PG11_IOR_IN, PG11_IOR_OUT,
  396. PG10_IOR_IN, PG10_IOR_OUT,
  397. PG9_IOR_IN, PG9_IOR_OUT,
  398. PG8_IOR_IN, PG8_IOR_OUT,
  399. PG7_IOR_IN, PG7_IOR_OUT,
  400. PG6_IOR_IN, PG6_IOR_OUT,
  401. PG5_IOR_IN, PG5_IOR_OUT,
  402. PG4_IOR_IN, PG4_IOR_OUT,
  403. PG3_IOR_IN, PG3_IOR_OUT,
  404. PG2_IOR_IN, PG2_IOR_OUT,
  405. PG1_IOR_IN, PG1_IOR_OUT,
  406. PG0_IOR_IN, PG0_IOR_OUT,
  407. PG27MD_00, PG27MD_01, PG27MD_10, PG27MD_11,
  408. PG26MD_00, PG26MD_01, PG26MD_10, PG26MD_11,
  409. PG25MD_00, PG25MD_01, PG25MD_10, PG25MD_11,
  410. PG24MD_00, PG24MD_01, PG24MD_10, PG24MD_11,
  411. PG23MD_000, PG23MD_001, PG23MD_010, PG23MD_011,
  412. PG23MD_100, PG23MD_101, PG23MD_110, PG23MD_111,
  413. PG22MD_000, PG22MD_001, PG22MD_010, PG22MD_011,
  414. PG22MD_100, PG22MD_101, PG22MD_110, PG22MD_111,
  415. PG21MD_000, PG21MD_001, PG21MD_010, PG21MD_011,
  416. PG21MD_100, PG21MD_101, PG21MD_110, PG21MD_111,
  417. PG20MD_000, PG20MD_001, PG20MD_010, PG20MD_011,
  418. PG20MD_100, PG20MD_101, PG20MD_110, PG20MD_111,
  419. PG19MD_000, PG19MD_001, PG19MD_010, PG19MD_011,
  420. PG19MD_100, PG19MD_101, PG19MD_110, PG19MD_111,
  421. PG18MD_000, PG18MD_001, PG18MD_010, PG18MD_011,
  422. PG18MD_100, PG18MD_101, PG18MD_110, PG18MD_111,
  423. PG17MD_00, PG17MD_01, PG17MD_10, PG17MD_11,
  424. PG16MD_00, PG16MD_01, PG16MD_10, PG16MD_11,
  425. PG15MD_00, PG15MD_01, PG15MD_10, PG15MD_11,
  426. PG14MD_00, PG14MD_01, PG14MD_10, PG14MD_11,
  427. PG13MD_00, PG13MD_01, PG13MD_10, PG13MD_11,
  428. PG12MD_00, PG12MD_01, PG12MD_10, PG12MD_11,
  429. PG11MD_000, PG11MD_001, PG11MD_010, PG11MD_011,
  430. PG11MD_100, PG11MD_101, PG11MD_110, PG11MD_111,
  431. PG10MD_000, PG10MD_001, PG10MD_010, PG10MD_011,
  432. PG10MD_100, PG10MD_101, PG10MD_110, PG10MD_111,
  433. PG9MD_000, PG9MD_001, PG9MD_010, PG9MD_011,
  434. PG9MD_100, PG9MD_101, PG9MD_110, PG9MD_111,
  435. PG8MD_000, PG8MD_001, PG8MD_010, PG8MD_011,
  436. PG8MD_100, PG8MD_101, PG8MD_110, PG8MD_111,
  437. PG7MD_000, PG7MD_001, PG7MD_010, PG7MD_011,
  438. PG7MD_100, PG7MD_101, PG7MD_110, PG7MD_111,
  439. PG6MD_000, PG6MD_001, PG6MD_010, PG6MD_011,
  440. PG6MD_100, PG6MD_101, PG6MD_110, PG6MD_111,
  441. PG5MD_000, PG5MD_001, PG5MD_010, PG5MD_011,
  442. PG5MD_100, PG5MD_101, PG5MD_110, PG5MD_111,
  443. PG4MD_000, PG4MD_001, PG4MD_010, PG4MD_011,
  444. PG4MD_100, PG4MD_101, PG4MD_110, PG4MD_111,
  445. PG3MD_000, PG3MD_001, PG3MD_010, PG3MD_011,
  446. PG3MD_100, PG3MD_101, PG3MD_110, PG3MD_111,
  447. PG2MD_000, PG2MD_001, PG2MD_010, PG2MD_011,
  448. PG2MD_100, PG2MD_101, PG2MD_110, PG2MD_111,
  449. PG1MD_000, PG1MD_001, PG1MD_010, PG1MD_011,
  450. PG1MD_100, PG1MD_101, PG1MD_110, PG1MD_111,
  451. PG0MD_000, PG0MD_001, PG0MD_010, PG0MD_011,
  452. PG0MD_100, PG0MD_101, PG0MD_110, PG0MD_111,
  453. /* Port H */
  454. PH7MD_00, PH7MD_01, PH7MD_10, PH7MD_11,
  455. PH6MD_00, PH6MD_01, PH6MD_10, PH6MD_11,
  456. PH5MD_00, PH5MD_01, PH5MD_10, PH5MD_11,
  457. PH4MD_00, PH4MD_01, PH4MD_10, PH4MD_11,
  458. PH3MD_00, PH3MD_01, PH3MD_10, PH3MD_11,
  459. PH2MD_00, PH2MD_01, PH2MD_10, PH2MD_11,
  460. PH1MD_00, PH1MD_01, PH1MD_10, PH1MD_11,
  461. PH0MD_00, PH0MD_01, PH0MD_10, PH0MD_11,
  462. /* Port I - not on device */
  463. /* Port J */
  464. PJ31_IOR_IN, PJ31_IOR_OUT,
  465. PJ30_IOR_IN, PJ30_IOR_OUT,
  466. PJ29_IOR_IN, PJ29_IOR_OUT,
  467. PJ28_IOR_IN, PJ28_IOR_OUT,
  468. PJ27_IOR_IN, PJ27_IOR_OUT,
  469. PJ26_IOR_IN, PJ26_IOR_OUT,
  470. PJ25_IOR_IN, PJ25_IOR_OUT,
  471. PJ24_IOR_IN, PJ24_IOR_OUT,
  472. PJ23_IOR_IN, PJ23_IOR_OUT,
  473. PJ22_IOR_IN, PJ22_IOR_OUT,
  474. PJ21_IOR_IN, PJ21_IOR_OUT,
  475. PJ20_IOR_IN, PJ20_IOR_OUT,
  476. PJ19_IOR_IN, PJ19_IOR_OUT,
  477. PJ18_IOR_IN, PJ18_IOR_OUT,
  478. PJ17_IOR_IN, PJ17_IOR_OUT,
  479. PJ16_IOR_IN, PJ16_IOR_OUT,
  480. PJ15_IOR_IN, PJ15_IOR_OUT,
  481. PJ14_IOR_IN, PJ14_IOR_OUT,
  482. PJ13_IOR_IN, PJ13_IOR_OUT,
  483. PJ12_IOR_IN, PJ12_IOR_OUT,
  484. PJ11_IOR_IN, PJ11_IOR_OUT,
  485. PJ10_IOR_IN, PJ10_IOR_OUT,
  486. PJ9_IOR_IN, PJ9_IOR_OUT,
  487. PJ8_IOR_IN, PJ8_IOR_OUT,
  488. PJ7_IOR_IN, PJ7_IOR_OUT,
  489. PJ6_IOR_IN, PJ6_IOR_OUT,
  490. PJ5_IOR_IN, PJ5_IOR_OUT,
  491. PJ4_IOR_IN, PJ4_IOR_OUT,
  492. PJ3_IOR_IN, PJ3_IOR_OUT,
  493. PJ2_IOR_IN, PJ2_IOR_OUT,
  494. PJ1_IOR_IN, PJ1_IOR_OUT,
  495. PJ0_IOR_IN, PJ0_IOR_OUT,
  496. PJ31MD_0, PJ31MD_1,
  497. PJ30MD_000, PJ30MD_001, PJ30MD_010, PJ30MD_011,
  498. PJ30MD_100, PJ30MD_101, PJ30MD_110, PJ30MD_111,
  499. PJ29MD_000, PJ29MD_001, PJ29MD_010, PJ29MD_011,
  500. PJ29MD_100, PJ29MD_101, PJ29MD_110, PJ29MD_111,
  501. PJ28MD_000, PJ28MD_001, PJ28MD_010, PJ28MD_011,
  502. PJ28MD_100, PJ28MD_101, PJ28MD_110, PJ28MD_111,
  503. PJ27MD_000, PJ27MD_001, PJ27MD_010, PJ27MD_011,
  504. PJ27MD_100, PJ27MD_101, PJ27MD_110, PJ27MD_111,
  505. PJ26MD_000, PJ26MD_001, PJ26MD_010, PJ26MD_011,
  506. PJ26MD_100, PJ26MD_101, PJ26MD_110, PJ26MD_111,
  507. PJ25MD_000, PJ25MD_001, PJ25MD_010, PJ25MD_011,
  508. PJ25MD_100, PJ25MD_101, PJ25MD_110, PJ25MD_111,
  509. PJ24MD_000, PJ24MD_001, PJ24MD_010, PJ24MD_011,
  510. PJ24MD_100, PJ24MD_101, PJ24MD_110, PJ24MD_111,
  511. PJ23MD_000, PJ23MD_001, PJ23MD_010, PJ23MD_011,
  512. PJ23MD_100, PJ23MD_101, PJ23MD_110, PJ23MD_111,
  513. PJ22MD_000, PJ22MD_001, PJ22MD_010, PJ22MD_011,
  514. PJ22MD_100, PJ22MD_101, PJ22MD_110, PJ22MD_111,
  515. PJ21MD_000, PJ21MD_001, PJ21MD_010, PJ21MD_011,
  516. PJ21MD_100, PJ21MD_101, PJ21MD_110, PJ21MD_111,
  517. PJ20MD_000, PJ20MD_001, PJ20MD_010, PJ20MD_011,
  518. PJ20MD_100, PJ20MD_101, PJ20MD_110, PJ20MD_111,
  519. PJ19MD_000, PJ19MD_001, PJ19MD_010, PJ19MD_011,
  520. PJ19MD_100, PJ19MD_101, PJ19MD_110, PJ19MD_111,
  521. PJ18MD_000, PJ18MD_001, PJ18MD_010, PJ18MD_011,
  522. PJ18MD_100, PJ18MD_101, PJ18MD_110, PJ18MD_111,
  523. PJ17MD_000, PJ17MD_001, PJ17MD_010, PJ17MD_011,
  524. PJ17MD_100, PJ17MD_101, PJ17MD_110, PJ17MD_111,
  525. PJ16MD_000, PJ16MD_001, PJ16MD_010, PJ16MD_011,
  526. PJ16MD_100, PJ16MD_101, PJ16MD_110, PJ16MD_111,
  527. PJ15MD_000, PJ15MD_001, PJ15MD_010, PJ15MD_011,
  528. PJ15MD_100, PJ15MD_101, PJ15MD_110, PJ15MD_111,
  529. PJ14MD_000, PJ14MD_001, PJ14MD_010, PJ14MD_011,
  530. PJ14MD_100, PJ14MD_101, PJ14MD_110, PJ14MD_111,
  531. PJ13MD_000, PJ13MD_001, PJ13MD_010, PJ13MD_011,
  532. PJ13MD_100, PJ13MD_101, PJ13MD_110, PJ13MD_111,
  533. PJ12MD_000, PJ12MD_001, PJ12MD_010, PJ12MD_011,
  534. PJ12MD_100, PJ12MD_101, PJ12MD_110, PJ12MD_111,
  535. PJ11MD_000, PJ11MD_001, PJ11MD_010, PJ11MD_011,
  536. PJ11MD_100, PJ11MD_101, PJ11MD_110, PJ11MD_111,
  537. PJ10MD_000, PJ10MD_001, PJ10MD_010, PJ10MD_011,
  538. PJ10MD_100, PJ10MD_101, PJ10MD_110, PJ10MD_111,
  539. PJ9MD_000, PJ9MD_001, PJ9MD_010, PJ9MD_011,
  540. PJ9MD_100, PJ9MD_101, PJ9MD_110, PJ9MD_111,
  541. PJ8MD_000, PJ8MD_001, PJ8MD_010, PJ8MD_011,
  542. PJ8MD_100, PJ8MD_101, PJ8MD_110, PJ8MD_111,
  543. PJ7MD_000, PJ7MD_001, PJ7MD_010, PJ7MD_011,
  544. PJ7MD_100, PJ7MD_101, PJ7MD_110, PJ7MD_111,
  545. PJ6MD_000, PJ6MD_001, PJ6MD_010, PJ6MD_011,
  546. PJ6MD_100, PJ6MD_101, PJ6MD_110, PJ6MD_111,
  547. PJ5MD_000, PJ5MD_001, PJ5MD_010, PJ5MD_011,
  548. PJ5MD_100, PJ5MD_101, PJ5MD_110, PJ5MD_111,
  549. PJ4MD_000, PJ4MD_001, PJ4MD_010, PJ4MD_011,
  550. PJ4MD_100, PJ4MD_101, PJ4MD_110, PJ4MD_111,
  551. PJ3MD_000, PJ3MD_001, PJ3MD_010, PJ3MD_011,
  552. PJ3MD_100, PJ3MD_101, PJ3MD_110, PJ3MD_111,
  553. PJ2MD_000, PJ2MD_001, PJ2MD_010, PJ2MD_011,
  554. PJ2MD_100, PJ2MD_101, PJ2MD_110, PJ2MD_111,
  555. PJ1MD_000, PJ1MD_001, PJ1MD_010, PJ1MD_011,
  556. PJ1MD_100, PJ1MD_101, PJ1MD_110, PJ1MD_111,
  557. PJ0MD_000, PJ0MD_001, PJ0MD_010, PJ0MD_011,
  558. PJ0MD_100, PJ0MD_101, PJ0MD_110, PJ0MD_111,
  559. PINMUX_FUNCTION_END,
  560. PINMUX_MARK_BEGIN,
  561. /* Port H */
  562. PHAN7_MARK, PHAN6_MARK, PHAN5_MARK, PHAN4_MARK,
  563. PHAN3_MARK, PHAN2_MARK, PHAN1_MARK, PHAN0_MARK,
  564. /* IRQs */
  565. IRQ7_PG_MARK, IRQ6_PG_MARK, IRQ5_PG_MARK, IRQ4_PG_MARK,
  566. IRQ3_PG_MARK, IRQ2_PG_MARK, IRQ1_PG_MARK, IRQ0_PG_MARK,
  567. IRQ7_PF_MARK, IRQ6_PF_MARK, IRQ5_PF_MARK, IRQ4_PF_MARK,
  568. IRQ3_PJ_MARK, IRQ2_PJ_MARK, IRQ1_PJ_MARK, IRQ0_PJ_MARK,
  569. IRQ1_PC_MARK, IRQ0_PC_MARK,
  570. PINT7_PG_MARK, PINT6_PG_MARK, PINT5_PG_MARK, PINT4_PG_MARK,
  571. PINT3_PG_MARK, PINT2_PG_MARK, PINT1_PG_MARK, PINT0_PG_MARK,
  572. PINT7_PH_MARK, PINT6_PH_MARK, PINT5_PH_MARK, PINT4_PH_MARK,
  573. PINT3_PH_MARK, PINT2_PH_MARK, PINT1_PH_MARK, PINT0_PH_MARK,
  574. PINT7_PJ_MARK, PINT6_PJ_MARK, PINT5_PJ_MARK, PINT4_PJ_MARK,
  575. PINT3_PJ_MARK, PINT2_PJ_MARK, PINT1_PJ_MARK, PINT0_PJ_MARK,
  576. /* SD */
  577. SD_D0_MARK, SD_D1_MARK, SD_D2_MARK, SD_D3_MARK,
  578. SD_WP_MARK, SD_CLK_MARK, SD_CMD_MARK, SD_CD_MARK,
  579. /* MMC */
  580. MMC_D0_MARK, MMC_D1_MARK, MMC_D2_MARK, MMC_D3_MARK,
  581. MMC_D4_MARK, MMC_D5_MARK, MMC_D6_MARK, MMC_D7_MARK,
  582. MMC_CLK_MARK, MMC_CMD_MARK, MMC_CD_MARK,
  583. /* PWM */
  584. PWM1A_MARK, PWM1B_MARK, PWM1C_MARK, PWM1D_MARK,
  585. PWM1E_MARK, PWM1F_MARK, PWM1G_MARK, PWM1H_MARK,
  586. PWM2A_MARK, PWM2B_MARK, PWM2C_MARK, PWM2D_MARK,
  587. PWM2E_MARK, PWM2F_MARK, PWM2G_MARK, PWM2H_MARK,
  588. /* IEBus */
  589. IERXD_MARK, IETXD_MARK,
  590. /* WDT */
  591. WDTOVF_MARK,
  592. /* DMAC */
  593. TEND0_MARK, DACK0_MARK, DREQ0_MARK,
  594. TEND1_MARK, DACK1_MARK, DREQ1_MARK,
  595. /* ADC */
  596. ADTRG_MARK,
  597. /* BSC */
  598. A25_MARK, A24_MARK,
  599. A23_MARK, A22_MARK, A21_MARK, A20_MARK,
  600. A19_MARK, A18_MARK, A17_MARK, A16_MARK,
  601. A15_MARK, A14_MARK, A13_MARK, A12_MARK,
  602. A11_MARK, A10_MARK, A9_MARK, A8_MARK,
  603. A7_MARK, A6_MARK, A5_MARK, A4_MARK,
  604. A3_MARK, A2_MARK, A1_MARK, A0_MARK,
  605. D31_MARK, D30_MARK, D29_MARK, D28_MARK,
  606. D27_MARK, D26_MARK, D25_MARK, D24_MARK,
  607. D23_MARK, D22_MARK, D21_MARK, D20_MARK,
  608. D19_MARK, D18_MARK, D17_MARK, D16_MARK,
  609. D15_MARK, D14_MARK, D13_MARK, D12_MARK,
  610. D11_MARK, D10_MARK, D9_MARK, D8_MARK,
  611. D7_MARK, D6_MARK, D5_MARK, D4_MARK,
  612. D3_MARK, D2_MARK, D1_MARK, D0_MARK,
  613. BS_MARK,
  614. CS4_MARK, CS3_MARK, CS2_MARK, CS1_MARK, CS0_MARK,
  615. CS5CE1A_MARK,
  616. CE2A_MARK, CE2B_MARK,
  617. RD_MARK, RDWR_MARK,
  618. WE3ICIOWRAHDQMUU_MARK,
  619. WE2ICIORDDQMUL_MARK,
  620. WE1DQMUWE_MARK,
  621. WE0DQML_MARK,
  622. RAS_MARK, CAS_MARK, CKE_MARK,
  623. WAIT_MARK, BREQ_MARK, BACK_MARK, IOIS16_MARK,
  624. /* TMU */
  625. TIOC0A_MARK, TIOC0B_MARK, TIOC0C_MARK, TIOC0D_MARK,
  626. TIOC1A_MARK, TIOC1B_MARK,
  627. TIOC2A_MARK, TIOC2B_MARK,
  628. TIOC3A_MARK, TIOC3B_MARK, TIOC3C_MARK, TIOC3D_MARK,
  629. TIOC4A_MARK, TIOC4B_MARK, TIOC4C_MARK, TIOC4D_MARK,
  630. TCLKA_MARK, TCLKB_MARK, TCLKC_MARK, TCLKD_MARK,
  631. /* SCIF */
  632. SCK0_MARK, RXD0_MARK, TXD0_MARK,
  633. SCK1_MARK, RXD1_MARK, TXD1_MARK, RTS1_MARK, CTS1_MARK,
  634. SCK2_MARK, RXD2_MARK, TXD2_MARK,
  635. SCK3_MARK, RXD3_MARK, TXD3_MARK,
  636. SCK4_MARK, RXD4_MARK, TXD4_MARK,
  637. SCK5_MARK, RXD5_MARK, TXD5_MARK, RTS5_MARK, CTS5_MARK,
  638. SCK6_MARK, RXD6_MARK, TXD6_MARK,
  639. SCK7_MARK, RXD7_MARK, TXD7_MARK, RTS7_MARK, CTS7_MARK,
  640. /* RSPI */
  641. MISO0_PB20_MARK, MOSI0_PB19_MARK, SSL00_PB18_MARK, RSPCK0_PB17_MARK,
  642. MISO0_PJ19_MARK, MOSI0_PJ18_MARK, SSL00_PJ17_MARK, RSPCK0_PJ16_MARK,
  643. MISO1_MARK, MOSI1_MARK, SSL10_MARK, RSPCK1_MARK,
  644. /* IIC3 */
  645. SCL0_MARK, SDA0_MARK,
  646. SCL1_MARK, SDA1_MARK,
  647. SCL2_MARK, SDA2_MARK,
  648. SCL3_MARK, SDA3_MARK,
  649. /* SSI */
  650. SSISCK0_MARK, SSIWS0_MARK, SSITXD0_MARK, SSIRXD0_MARK,
  651. SSISCK1_MARK, SSIWS1_MARK, SSIDATA1_MARK,
  652. SSISCK2_MARK, SSIWS2_MARK, SSIDATA2_MARK,
  653. SSISCK3_MARK, SSIWS3_MARK, SSIDATA3_MARK,
  654. SSISCK4_MARK, SSIWS4_MARK, SSIDATA4_MARK,
  655. SSISCK5_MARK, SSIWS5_MARK, SSIDATA5_MARK,
  656. AUDIO_CLK_MARK,
  657. AUDIO_XOUT_MARK,
  658. /* SIOF */ /* NOTE Shares AUDIO_CLK with SSI */
  659. SIOFTXD_MARK, SIOFRXD_MARK, SIOFSYNC_MARK, SIOFSCK_MARK,
  660. /* SPDIF */ /* NOTE Shares AUDIO_CLK with SSI */
  661. SPDIF_IN_MARK, SPDIF_OUT_MARK,
  662. SPDIF_IN_PJ24_MARK, SPDIF_OUT_PJ25_MARK,
  663. /* NANDFMC */ /* NOTE Controller is not available in boot mode 0 */
  664. FCE_MARK,
  665. FRB_MARK,
  666. /* CAN */
  667. CRX0_MARK, CTX0_MARK,
  668. CRX1_MARK, CTX1_MARK,
  669. CRX2_MARK, CTX2_MARK,
  670. CRX0_CRX1_MARK,
  671. CRX0_CRX1_CRX2_MARK,
  672. CTX0CTX1CTX2_MARK,
  673. CRX1_PJ22_MARK, CTX1_PJ23_MARK,
  674. CRX2_PJ20_MARK, CTX2_PJ21_MARK,
  675. CRX0CRX1_PJ22_MARK,
  676. CRX0CRX1CRX2_PJ20_MARK,
  677. /* VDC */
  678. DV_CLK_MARK,
  679. DV_VSYNC_MARK, DV_HSYNC_MARK,
  680. DV_DATA23_MARK, DV_DATA22_MARK, DV_DATA21_MARK, DV_DATA20_MARK,
  681. DV_DATA19_MARK, DV_DATA18_MARK, DV_DATA17_MARK, DV_DATA16_MARK,
  682. DV_DATA15_MARK, DV_DATA14_MARK, DV_DATA13_MARK, DV_DATA12_MARK,
  683. DV_DATA11_MARK, DV_DATA10_MARK, DV_DATA9_MARK, DV_DATA8_MARK,
  684. DV_DATA7_MARK, DV_DATA6_MARK, DV_DATA5_MARK, DV_DATA4_MARK,
  685. DV_DATA3_MARK, DV_DATA2_MARK, DV_DATA1_MARK, DV_DATA0_MARK,
  686. LCD_CLK_MARK, LCD_EXTCLK_MARK,
  687. LCD_VSYNC_MARK, LCD_HSYNC_MARK, LCD_DE_MARK,
  688. LCD_DATA23_PG23_MARK, LCD_DATA22_PG22_MARK, LCD_DATA21_PG21_MARK,
  689. LCD_DATA20_PG20_MARK, LCD_DATA19_PG19_MARK, LCD_DATA18_PG18_MARK,
  690. LCD_DATA17_PG17_MARK, LCD_DATA16_PG16_MARK, LCD_DATA15_PG15_MARK,
  691. LCD_DATA14_PG14_MARK, LCD_DATA13_PG13_MARK, LCD_DATA12_PG12_MARK,
  692. LCD_DATA11_PG11_MARK, LCD_DATA10_PG10_MARK, LCD_DATA9_PG9_MARK,
  693. LCD_DATA8_PG8_MARK, LCD_DATA7_PG7_MARK, LCD_DATA6_PG6_MARK,
  694. LCD_DATA5_PG5_MARK, LCD_DATA4_PG4_MARK, LCD_DATA3_PG3_MARK,
  695. LCD_DATA2_PG2_MARK, LCD_DATA1_PG1_MARK, LCD_DATA0_PG0_MARK,
  696. LCD_DATA23_PJ23_MARK, LCD_DATA22_PJ22_MARK, LCD_DATA21_PJ21_MARK,
  697. LCD_DATA20_PJ20_MARK, LCD_DATA19_PJ19_MARK, LCD_DATA18_PJ18_MARK,
  698. LCD_DATA17_PJ17_MARK, LCD_DATA16_PJ16_MARK, LCD_DATA15_PJ15_MARK,
  699. LCD_DATA14_PJ14_MARK, LCD_DATA13_PJ13_MARK, LCD_DATA12_PJ12_MARK,
  700. LCD_DATA11_PJ11_MARK, LCD_DATA10_PJ10_MARK, LCD_DATA9_PJ9_MARK,
  701. LCD_DATA8_PJ8_MARK, LCD_DATA7_PJ7_MARK, LCD_DATA6_PJ6_MARK,
  702. LCD_DATA5_PJ5_MARK, LCD_DATA4_PJ4_MARK, LCD_DATA3_PJ3_MARK,
  703. LCD_DATA2_PJ2_MARK, LCD_DATA1_PJ1_MARK, LCD_DATA0_PJ0_MARK,
  704. LCD_TCON6_MARK, LCD_TCON5_MARK, LCD_TCON4_MARK,
  705. LCD_TCON3_MARK, LCD_TCON2_MARK, LCD_TCON1_MARK, LCD_TCON0_MARK,
  706. LCD_M_DISP_MARK,
  707. PINMUX_MARK_END,
  708. };
  709. static const u16 pinmux_data[] = {
  710. /* Port A */
  711. PINMUX_DATA(PA1_DATA, PA1_IN),
  712. PINMUX_DATA(PA0_DATA, PA0_IN),
  713. /* Port B */
  714. PINMUX_DATA(PB22_DATA, PB22MD_000, PB22_IN, PB22_OUT),
  715. PINMUX_DATA(A22_MARK, PB22MD_001),
  716. PINMUX_DATA(CTX2_MARK, PB22MD_010),
  717. PINMUX_DATA(IETXD_MARK, PB22MD_011),
  718. PINMUX_DATA(CS4_MARK, PB22MD_100),
  719. PINMUX_DATA(PB21_DATA, PB21MD_00, PB21_IN, PB21_OUT),
  720. PINMUX_DATA(A21_MARK, PB21MD_01),
  721. PINMUX_DATA(CRX2_MARK, PB21MD_10),
  722. PINMUX_DATA(IERXD_MARK, PB21MD_11),
  723. PINMUX_DATA(A20_MARK, PB20MD_001),
  724. PINMUX_DATA(A19_MARK, PB19MD_001),
  725. PINMUX_DATA(A18_MARK, PB18MD_001),
  726. PINMUX_DATA(A17_MARK, PB17MD_001),
  727. PINMUX_DATA(A16_MARK, PB16MD_001),
  728. PINMUX_DATA(A15_MARK, PB15MD_001),
  729. PINMUX_DATA(A14_MARK, PB14MD_001),
  730. PINMUX_DATA(A13_MARK, PB13MD_001),
  731. PINMUX_DATA(A12_MARK, PB12MD_01),
  732. PINMUX_DATA(A11_MARK, PB11MD_01),
  733. PINMUX_DATA(A10_MARK, PB10MD_01),
  734. PINMUX_DATA(A9_MARK, PB9MD_01),
  735. PINMUX_DATA(A8_MARK, PB8MD_01),
  736. PINMUX_DATA(A7_MARK, PB7MD_01),
  737. PINMUX_DATA(A6_MARK, PB6MD_01),
  738. PINMUX_DATA(A5_MARK, PB5MD_01),
  739. PINMUX_DATA(A4_MARK, PB4MD_01),
  740. PINMUX_DATA(A3_MARK, PB3MD_01),
  741. PINMUX_DATA(A2_MARK, PB2MD_01),
  742. PINMUX_DATA(A1_MARK, PB1MD_01),
  743. /* Port C */
  744. PINMUX_DATA(PC8_DATA, PC8MD_000),
  745. PINMUX_DATA(CS3_MARK, PC8MD_001),
  746. PINMUX_DATA(TXD7_MARK, PC8MD_010),
  747. PINMUX_DATA(CTX1_MARK, PC8MD_011),
  748. PINMUX_DATA(PC7_DATA, PC7MD_000),
  749. PINMUX_DATA(CKE_MARK, PC7MD_001),
  750. PINMUX_DATA(RXD7_MARK, PC7MD_010),
  751. PINMUX_DATA(CRX1_MARK, PC7MD_011),
  752. PINMUX_DATA(CRX0_CRX1_MARK, PC7MD_100),
  753. PINMUX_DATA(IRQ1_PC_MARK, PC7MD_101),
  754. PINMUX_DATA(PC6_DATA, PC6MD_000),
  755. PINMUX_DATA(CAS_MARK, PC6MD_001),
  756. PINMUX_DATA(SCK7_MARK, PC6MD_010),
  757. PINMUX_DATA(CTX0_MARK, PC6MD_011),
  758. PINMUX_DATA(PC5_DATA, PC5MD_000),
  759. PINMUX_DATA(RAS_MARK, PC5MD_001),
  760. PINMUX_DATA(CRX0_MARK, PC5MD_011),
  761. PINMUX_DATA(CTX0CTX1CTX2_MARK, PC5MD_100),
  762. PINMUX_DATA(IRQ0_PC_MARK, PC5MD_101),
  763. PINMUX_DATA(PC4_DATA, PC4MD_00),
  764. PINMUX_DATA(WE1DQMUWE_MARK, PC4MD_01),
  765. PINMUX_DATA(TXD6_MARK, PC4MD_10),
  766. PINMUX_DATA(PC3_DATA, PC3MD_00),
  767. PINMUX_DATA(WE0DQML_MARK, PC3MD_01),
  768. PINMUX_DATA(RXD6_MARK, PC3MD_10),
  769. PINMUX_DATA(PC2_DATA, PC2MD_00),
  770. PINMUX_DATA(RDWR_MARK, PC2MD_01),
  771. PINMUX_DATA(SCK5_MARK, PC2MD_10),
  772. PINMUX_DATA(PC1_DATA, PC1MD_0),
  773. PINMUX_DATA(RD_MARK, PC1MD_1),
  774. PINMUX_DATA(PC0_DATA, PC0MD_0),
  775. PINMUX_DATA(CS0_MARK, PC0MD_1),
  776. /* Port D */
  777. PINMUX_DATA(D15_MARK, PD15MD_01),
  778. PINMUX_DATA(D14_MARK, PD14MD_01),
  779. PINMUX_DATA(PD13_DATA, PD13MD_00),
  780. PINMUX_DATA(D13_MARK, PD13MD_01),
  781. PINMUX_DATA(PWM2F_MARK, PD13MD_10),
  782. PINMUX_DATA(PD12_DATA, PD12MD_00),
  783. PINMUX_DATA(D12_MARK, PD12MD_01),
  784. PINMUX_DATA(PWM2E_MARK, PD12MD_10),
  785. PINMUX_DATA(D11_MARK, PD11MD_01),
  786. PINMUX_DATA(D10_MARK, PD10MD_01),
  787. PINMUX_DATA(D9_MARK, PD9MD_01),
  788. PINMUX_DATA(D8_MARK, PD8MD_01),
  789. PINMUX_DATA(D7_MARK, PD7MD_01),
  790. PINMUX_DATA(D6_MARK, PD6MD_01),
  791. PINMUX_DATA(D5_MARK, PD5MD_01),
  792. PINMUX_DATA(D4_MARK, PD4MD_01),
  793. PINMUX_DATA(D3_MARK, PD3MD_01),
  794. PINMUX_DATA(D2_MARK, PD2MD_01),
  795. PINMUX_DATA(D1_MARK, PD1MD_01),
  796. PINMUX_DATA(D0_MARK, PD0MD_01),
  797. /* Port E */
  798. PINMUX_DATA(PE7_DATA, PE7MD_00),
  799. PINMUX_DATA(SDA3_MARK, PE7MD_01),
  800. PINMUX_DATA(RXD7_MARK, PE7MD_10),
  801. PINMUX_DATA(PE6_DATA, PE6MD_00),
  802. PINMUX_DATA(SCL3_MARK, PE6MD_01),
  803. PINMUX_DATA(RXD6_MARK, PE6MD_10),
  804. PINMUX_DATA(PE5_DATA, PE5MD_00),
  805. PINMUX_DATA(SDA2_MARK, PE5MD_01),
  806. PINMUX_DATA(RXD5_MARK, PE5MD_10),
  807. PINMUX_DATA(DV_HSYNC_MARK, PE5MD_11),
  808. PINMUX_DATA(PE4_DATA, PE4MD_00),
  809. PINMUX_DATA(SCL2_MARK, PE4MD_01),
  810. PINMUX_DATA(DV_VSYNC_MARK, PE4MD_11),
  811. PINMUX_DATA(PE3_DATA, PE3MD_000),
  812. PINMUX_DATA(SDA1_MARK, PE3MD_001),
  813. PINMUX_DATA(TCLKD_MARK, PE3MD_010),
  814. PINMUX_DATA(ADTRG_MARK, PE3MD_011),
  815. PINMUX_DATA(DV_HSYNC_MARK, PE3MD_100),
  816. PINMUX_DATA(PE2_DATA, PE2MD_000),
  817. PINMUX_DATA(SCL1_MARK, PE2MD_001),
  818. PINMUX_DATA(TCLKD_MARK, PE2MD_010),
  819. PINMUX_DATA(IOIS16_MARK, PE2MD_011),
  820. PINMUX_DATA(DV_VSYNC_MARK, PE2MD_100),
  821. PINMUX_DATA(PE1_DATA, PE1MD_000),
  822. PINMUX_DATA(SDA0_MARK, PE1MD_001),
  823. PINMUX_DATA(TCLKB_MARK, PE1MD_010),
  824. PINMUX_DATA(AUDIO_CLK_MARK, PE1MD_010),
  825. PINMUX_DATA(DV_CLK_MARK, PE1MD_100),
  826. PINMUX_DATA(PE0_DATA, PE0MD_00),
  827. PINMUX_DATA(SCL0_MARK, PE0MD_01),
  828. PINMUX_DATA(TCLKA_MARK, PE0MD_10),
  829. PINMUX_DATA(LCD_EXTCLK_MARK, PE0MD_11),
  830. /* Port F */
  831. PINMUX_DATA(PF23_DATA, PF23MD_000),
  832. PINMUX_DATA(SD_D2_MARK, PF23MD_001),
  833. PINMUX_DATA(TXD3_MARK, PF23MD_100),
  834. PINMUX_DATA(MMC_D2_MARK, PF23MD_101),
  835. PINMUX_DATA(PF22_DATA, PF22MD_000),
  836. PINMUX_DATA(SD_D3_MARK, PF22MD_001),
  837. PINMUX_DATA(RXD3_MARK, PF22MD_100),
  838. PINMUX_DATA(MMC_D3_MARK, PF22MD_101),
  839. PINMUX_DATA(PF21_DATA, PF21MD_000),
  840. PINMUX_DATA(SD_CMD_MARK, PF21MD_001),
  841. PINMUX_DATA(SCK3_MARK, PF21MD_100),
  842. PINMUX_DATA(MMC_CMD_MARK, PF21MD_101),
  843. PINMUX_DATA(PF20_DATA, PF20MD_000),
  844. PINMUX_DATA(SD_CLK_MARK, PF20MD_001),
  845. PINMUX_DATA(SSIDATA3_MARK, PF20MD_010),
  846. PINMUX_DATA(MMC_CLK_MARK, PF20MD_101),
  847. PINMUX_DATA(PF19_DATA, PF19MD_000),
  848. PINMUX_DATA(SD_D0_MARK, PF19MD_001),
  849. PINMUX_DATA(SSIWS3_MARK, PF19MD_010),
  850. PINMUX_DATA(IRQ7_PF_MARK, PF19MD_100),
  851. PINMUX_DATA(MMC_D0_MARK, PF19MD_101),
  852. PINMUX_DATA(PF18_DATA, PF18MD_000),
  853. PINMUX_DATA(SD_D1_MARK, PF18MD_001),
  854. PINMUX_DATA(SSISCK3_MARK, PF18MD_010),
  855. PINMUX_DATA(IRQ6_PF_MARK, PF18MD_100),
  856. PINMUX_DATA(MMC_D1_MARK, PF18MD_101),
  857. PINMUX_DATA(PF17_DATA, PF17MD_000),
  858. PINMUX_DATA(SD_WP_MARK, PF17MD_001),
  859. PINMUX_DATA(FRB_MARK, PF17MD_011),
  860. PINMUX_DATA(IRQ5_PF_MARK, PF17MD_100),
  861. PINMUX_DATA(PF16_DATA, PF16MD_000),
  862. PINMUX_DATA(SD_CD_MARK, PF16MD_001),
  863. PINMUX_DATA(FCE_MARK, PF16MD_011),
  864. PINMUX_DATA(IRQ4_PF_MARK, PF16MD_100),
  865. PINMUX_DATA(MMC_CD_MARK, PF16MD_101),
  866. PINMUX_DATA(PF15_DATA, PF15MD_000),
  867. PINMUX_DATA(A0_MARK, PF15MD_001),
  868. PINMUX_DATA(SSIDATA2_MARK, PF15MD_010),
  869. PINMUX_DATA(WDTOVF_MARK, PF15MD_011),
  870. PINMUX_DATA(TXD2_MARK, PF15MD_100),
  871. PINMUX_DATA(PF14_DATA, PF14MD_000),
  872. PINMUX_DATA(A25_MARK, PF14MD_001),
  873. PINMUX_DATA(SSIWS2_MARK, PF14MD_010),
  874. PINMUX_DATA(RXD2_MARK, PF14MD_100),
  875. PINMUX_DATA(PF13_DATA, PF13MD_000),
  876. PINMUX_DATA(A24_MARK, PF13MD_001),
  877. PINMUX_DATA(SSISCK2_MARK, PF13MD_010),
  878. PINMUX_DATA(SCK2_MARK, PF13MD_100),
  879. PINMUX_DATA(PF12_DATA, PF12MD_000),
  880. PINMUX_DATA(SSIDATA1_MARK, PF12MD_010),
  881. PINMUX_DATA(DV_DATA12_MARK, PF12MD_011),
  882. PINMUX_DATA(TXD1_MARK, PF12MD_100),
  883. PINMUX_DATA(MMC_D7_MARK, PF12MD_101),
  884. PINMUX_DATA(PF11_DATA, PF11MD_000),
  885. PINMUX_DATA(SSIWS1_MARK, PF11MD_010),
  886. PINMUX_DATA(DV_DATA2_MARK, PF11MD_011),
  887. PINMUX_DATA(RXD1_MARK, PF11MD_100),
  888. PINMUX_DATA(MMC_D6_MARK, PF11MD_101),
  889. PINMUX_DATA(PF10_DATA, PF10MD_000),
  890. PINMUX_DATA(CS1_MARK, PF10MD_001),
  891. PINMUX_DATA(SSISCK1_MARK, PF10MD_010),
  892. PINMUX_DATA(DV_DATA1_MARK, PF10MD_011),
  893. PINMUX_DATA(SCK1_MARK, PF10MD_100),
  894. PINMUX_DATA(MMC_D5_MARK, PF10MD_101),
  895. PINMUX_DATA(PF9_DATA, PF9MD_000),
  896. PINMUX_DATA(BS_MARK, PF9MD_001),
  897. PINMUX_DATA(DV_DATA0_MARK, PF9MD_011),
  898. PINMUX_DATA(SCK0_MARK, PF9MD_100),
  899. PINMUX_DATA(MMC_D4_MARK, PF9MD_101),
  900. PINMUX_DATA(RTS1_MARK, PF9MD_110),
  901. PINMUX_DATA(PF8_DATA, PF8MD_000),
  902. PINMUX_DATA(A23_MARK, PF8MD_001),
  903. PINMUX_DATA(TXD0_MARK, PF8MD_100),
  904. PINMUX_DATA(PF7_DATA, PF7MD_000),
  905. PINMUX_DATA(SSIRXD0_MARK, PF7MD_010),
  906. PINMUX_DATA(RXD0_MARK, PF7MD_100),
  907. PINMUX_DATA(CTS1_MARK, PF7MD_110),
  908. PINMUX_DATA(PF6_DATA, PF6MD_000),
  909. PINMUX_DATA(CE2A_MARK, PF6MD_001),
  910. PINMUX_DATA(SSITXD0_MARK, PF6MD_010),
  911. PINMUX_DATA(PF5_DATA, PF5MD_000),
  912. PINMUX_DATA(SSIWS0_MARK, PF5MD_010),
  913. PINMUX_DATA(PF4_DATA, PF4MD_000),
  914. PINMUX_DATA(CS5CE1A_MARK, PF4MD_001),
  915. PINMUX_DATA(SSISCK0_MARK, PF4MD_010),
  916. PINMUX_DATA(PF3_DATA, PF3MD_000),
  917. PINMUX_DATA(CS2_MARK, PF3MD_001),
  918. PINMUX_DATA(MISO1_MARK, PF3MD_011),
  919. PINMUX_DATA(TIOC4D_MARK, PF3MD_100),
  920. PINMUX_DATA(PF2_DATA, PF2MD_000),
  921. PINMUX_DATA(WAIT_MARK, PF2MD_001),
  922. PINMUX_DATA(MOSI1_MARK, PF2MD_011),
  923. PINMUX_DATA(TIOC4C_MARK, PF2MD_100),
  924. PINMUX_DATA(TEND0_MARK, PF2MD_101),
  925. PINMUX_DATA(PF1_DATA, PF1MD_000),
  926. PINMUX_DATA(BACK_MARK, PF1MD_001),
  927. PINMUX_DATA(SSL10_MARK, PF1MD_011),
  928. PINMUX_DATA(TIOC4B_MARK, PF1MD_100),
  929. PINMUX_DATA(DACK0_MARK, PF1MD_101),
  930. PINMUX_DATA(PF0_DATA, PF0MD_000),
  931. PINMUX_DATA(BREQ_MARK, PF0MD_001),
  932. PINMUX_DATA(RSPCK1_MARK, PF0MD_011),
  933. PINMUX_DATA(TIOC4A_MARK, PF0MD_100),
  934. PINMUX_DATA(DREQ0_MARK, PF0MD_101),
  935. /* Port G */
  936. PINMUX_DATA(PG27_DATA, PG27MD_00),
  937. PINMUX_DATA(LCD_TCON2_MARK, PG27MD_10),
  938. PINMUX_DATA(LCD_EXTCLK_MARK, PG27MD_11),
  939. PINMUX_DATA(LCD_DE_MARK, PG27MD_11),
  940. PINMUX_DATA(PG26_DATA, PG26MD_00),
  941. PINMUX_DATA(LCD_TCON1_MARK, PG26MD_10),
  942. PINMUX_DATA(LCD_HSYNC_MARK, PG26MD_10),
  943. PINMUX_DATA(PG25_DATA, PG25MD_00),
  944. PINMUX_DATA(LCD_TCON0_MARK, PG25MD_10),
  945. PINMUX_DATA(LCD_VSYNC_MARK, PG25MD_10),
  946. PINMUX_DATA(PG24_DATA, PG24MD_00),
  947. PINMUX_DATA(LCD_CLK_MARK, PG24MD_10),
  948. PINMUX_DATA(PG23_DATA, PG23MD_000),
  949. PINMUX_DATA(LCD_DATA23_PG23_MARK, PG23MD_010),
  950. PINMUX_DATA(LCD_TCON6_MARK, PG23MD_011),
  951. PINMUX_DATA(TXD5_MARK, PG23MD_100),
  952. PINMUX_DATA(PG22_DATA, PG22MD_000),
  953. PINMUX_DATA(LCD_DATA22_PG22_MARK, PG22MD_010),
  954. PINMUX_DATA(LCD_TCON5_MARK, PG22MD_011),
  955. PINMUX_DATA(RXD5_MARK, PG22MD_100),
  956. PINMUX_DATA(PG21_DATA, PG21MD_000),
  957. PINMUX_DATA(DV_DATA7_MARK, PG21MD_001),
  958. PINMUX_DATA(LCD_DATA21_PG21_MARK, PG21MD_010),
  959. PINMUX_DATA(LCD_TCON4_MARK, PG21MD_011),
  960. PINMUX_DATA(TXD4_MARK, PG21MD_100),
  961. PINMUX_DATA(PG20_DATA, PG20MD_000),
  962. PINMUX_DATA(DV_DATA6_MARK, PG20MD_001),
  963. PINMUX_DATA(LCD_DATA20_PG20_MARK, PG21MD_010),
  964. PINMUX_DATA(LCD_TCON3_MARK, PG20MD_011),
  965. PINMUX_DATA(RXD4_MARK, PG20MD_100),
  966. PINMUX_DATA(PG19_DATA, PG19MD_000),
  967. PINMUX_DATA(DV_DATA5_MARK, PG19MD_001),
  968. PINMUX_DATA(LCD_DATA19_PG19_MARK, PG19MD_010),
  969. PINMUX_DATA(SPDIF_OUT_MARK, PG19MD_011),
  970. PINMUX_DATA(SCK5_MARK, PG19MD_100),
  971. PINMUX_DATA(PG18_DATA, PG18MD_000),
  972. PINMUX_DATA(DV_DATA4_MARK, PG18MD_001),
  973. PINMUX_DATA(LCD_DATA18_PG18_MARK, PG18MD_010),
  974. PINMUX_DATA(SPDIF_IN_MARK, PG18MD_011),
  975. PINMUX_DATA(SCK4_MARK, PG18MD_100),
  976. // TODO hardware manual has PG17 3 bits wide in reg picture and 2 bits in description
  977. // we're going with 2 bits
  978. PINMUX_DATA(PG17_DATA, PG17MD_00),
  979. PINMUX_DATA(WE3ICIOWRAHDQMUU_MARK, PG17MD_01),
  980. PINMUX_DATA(LCD_DATA17_PG17_MARK, PG17MD_10),
  981. // TODO hardware manual has PG16 3 bits wide in reg picture and 2 bits in description
  982. // we're going with 2 bits
  983. PINMUX_DATA(PG16_DATA, PG16MD_00),
  984. PINMUX_DATA(WE2ICIORDDQMUL_MARK, PG16MD_01),
  985. PINMUX_DATA(LCD_DATA16_PG16_MARK, PG16MD_10),
  986. PINMUX_DATA(PG15_DATA, PG15MD_00),
  987. PINMUX_DATA(D31_MARK, PG15MD_01),
  988. PINMUX_DATA(LCD_DATA15_PG15_MARK, PG15MD_10),
  989. PINMUX_DATA(PINT7_PG_MARK, PG15MD_11),
  990. PINMUX_DATA(PG14_DATA, PG14MD_00),
  991. PINMUX_DATA(D30_MARK, PG14MD_01),
  992. PINMUX_DATA(LCD_DATA14_PG14_MARK, PG14MD_10),
  993. PINMUX_DATA(PINT6_PG_MARK, PG14MD_11),
  994. PINMUX_DATA(PG13_DATA, PG13MD_00),
  995. PINMUX_DATA(D29_MARK, PG13MD_01),
  996. PINMUX_DATA(LCD_DATA13_PG13_MARK, PG13MD_10),
  997. PINMUX_DATA(PINT5_PG_MARK, PG13MD_11),
  998. PINMUX_DATA(PG12_DATA, PG12MD_00),
  999. PINMUX_DATA(D28_MARK, PG12MD_01),
  1000. PINMUX_DATA(LCD_DATA12_PG12_MARK, PG12MD_10),
  1001. PINMUX_DATA(PINT4_PG_MARK, PG12MD_11),
  1002. PINMUX_DATA(PG11_DATA, PG11MD_000),
  1003. PINMUX_DATA(D27_MARK, PG11MD_001),
  1004. PINMUX_DATA(LCD_DATA11_PG11_MARK, PG11MD_010),
  1005. PINMUX_DATA(PINT3_PG_MARK, PG11MD_011),
  1006. PINMUX_DATA(TIOC3D_MARK, PG11MD_100),
  1007. PINMUX_DATA(PG10_DATA, PG10MD_000),
  1008. PINMUX_DATA(D26_MARK, PG10MD_001),
  1009. PINMUX_DATA(LCD_DATA10_PG10_MARK, PG10MD_010),
  1010. PINMUX_DATA(PINT2_PG_MARK, PG10MD_011),
  1011. PINMUX_DATA(TIOC3C_MARK, PG10MD_100),
  1012. PINMUX_DATA(PG9_DATA, PG9MD_000),
  1013. PINMUX_DATA(D25_MARK, PG9MD_001),
  1014. PINMUX_DATA(LCD_DATA9_PG9_MARK, PG9MD_010),
  1015. PINMUX_DATA(PINT1_PG_MARK, PG9MD_011),
  1016. PINMUX_DATA(TIOC3B_MARK, PG9MD_100),
  1017. PINMUX_DATA(PG8_DATA, PG8MD_000),
  1018. PINMUX_DATA(D24_MARK, PG8MD_001),
  1019. PINMUX_DATA(LCD_DATA8_PG8_MARK, PG8MD_010),
  1020. PINMUX_DATA(PINT0_PG_MARK, PG8MD_011),
  1021. PINMUX_DATA(TIOC3A_MARK, PG8MD_100),
  1022. PINMUX_DATA(PG7_DATA, PG7MD_000),
  1023. PINMUX_DATA(D23_MARK, PG7MD_001),
  1024. PINMUX_DATA(LCD_DATA7_PG7_MARK, PG7MD_010),
  1025. PINMUX_DATA(IRQ7_PG_MARK, PG7MD_011),
  1026. PINMUX_DATA(TIOC2B_MARK, PG7MD_100),
  1027. PINMUX_DATA(PG6_DATA, PG6MD_000),
  1028. PINMUX_DATA(D22_MARK, PG6MD_001),
  1029. PINMUX_DATA(LCD_DATA6_PG6_MARK, PG6MD_010),
  1030. PINMUX_DATA(IRQ6_PG_MARK, PG6MD_011),
  1031. PINMUX_DATA(TIOC2A_MARK, PG6MD_100),
  1032. PINMUX_DATA(PG5_DATA, PG5MD_000),
  1033. PINMUX_DATA(D21_MARK, PG5MD_001),
  1034. PINMUX_DATA(LCD_DATA5_PG5_MARK, PG5MD_010),
  1035. PINMUX_DATA(IRQ5_PG_MARK, PG5MD_011),
  1036. PINMUX_DATA(TIOC1B_MARK, PG5MD_100),
  1037. PINMUX_DATA(PG4_DATA, PG4MD_000),
  1038. PINMUX_DATA(D20_MARK, PG4MD_001),
  1039. PINMUX_DATA(LCD_DATA4_PG4_MARK, PG4MD_010),
  1040. PINMUX_DATA(IRQ4_PG_MARK, PG4MD_011),
  1041. PINMUX_DATA(TIOC1A_MARK, PG4MD_100),
  1042. PINMUX_DATA(PG3_DATA, PG3MD_000),
  1043. PINMUX_DATA(D19_MARK, PG3MD_001),
  1044. PINMUX_DATA(LCD_DATA3_PG3_MARK, PG3MD_010),
  1045. PINMUX_DATA(IRQ3_PG_MARK, PG3MD_011),
  1046. PINMUX_DATA(TIOC0D_MARK, PG3MD_100),
  1047. PINMUX_DATA(PG2_DATA, PG2MD_000),
  1048. PINMUX_DATA(D18_MARK, PG2MD_001),
  1049. PINMUX_DATA(LCD_DATA2_PG2_MARK, PG2MD_010),
  1050. PINMUX_DATA(IRQ2_PG_MARK, PG2MD_011),
  1051. PINMUX_DATA(TIOC0C_MARK, PG2MD_100),
  1052. PINMUX_DATA(PG1_DATA, PG1MD_000),
  1053. PINMUX_DATA(D17_MARK, PG1MD_001),
  1054. PINMUX_DATA(LCD_DATA1_PG1_MARK, PG1MD_010),
  1055. PINMUX_DATA(IRQ1_PG_MARK, PG1MD_011),
  1056. PINMUX_DATA(TIOC0B_MARK, PG1MD_100),
  1057. PINMUX_DATA(PG0_DATA, PG0MD_000),
  1058. PINMUX_DATA(D16_MARK, PG0MD_001),
  1059. PINMUX_DATA(LCD_DATA0_PG0_MARK, PG0MD_010),
  1060. PINMUX_DATA(IRQ0_PG_MARK, PG0MD_011),
  1061. PINMUX_DATA(TIOC0A_MARK, PG0MD_100),
  1062. /* Port H */
  1063. PINMUX_DATA(PH7_DATA, PH7MD_00),
  1064. PINMUX_DATA(PHAN7_MARK, PH7MD_01),
  1065. PINMUX_DATA(PINT7_PH_MARK, PH7MD_10),
  1066. PINMUX_DATA(PH6_DATA, PH6MD_00),
  1067. PINMUX_DATA(PHAN6_MARK, PH6MD_01),
  1068. PINMUX_DATA(PINT6_PH_MARK, PH6MD_10),
  1069. PINMUX_DATA(PH5_DATA, PH5MD_00),
  1070. PINMUX_DATA(PHAN5_MARK, PH5MD_01),
  1071. PINMUX_DATA(PINT5_PH_MARK, PH5MD_10),
  1072. PINMUX_DATA(LCD_EXTCLK_MARK, PH5MD_11),
  1073. PINMUX_DATA(PH4_DATA, PH4MD_00),
  1074. PINMUX_DATA(PHAN4_MARK, PH4MD_01),
  1075. PINMUX_DATA(PINT4_PH_MARK, PH4MD_10),
  1076. PINMUX_DATA(PH3_DATA, PH3MD_00),
  1077. PINMUX_DATA(PHAN3_MARK, PH3MD_01),
  1078. PINMUX_DATA(PINT3_PH_MARK, PH3MD_10),
  1079. PINMUX_DATA(PH2_DATA, PH2MD_00),
  1080. PINMUX_DATA(PHAN2_MARK, PH2MD_01),
  1081. PINMUX_DATA(PINT2_PH_MARK, PH2MD_10),
  1082. PINMUX_DATA(PH1_DATA, PH1MD_00),
  1083. PINMUX_DATA(PHAN1_MARK, PH1MD_01),
  1084. PINMUX_DATA(PINT1_PH_MARK, PH1MD_10),
  1085. PINMUX_DATA(PH0_DATA, PH0MD_00),
  1086. PINMUX_DATA(PHAN0_MARK, PH0MD_01),
  1087. PINMUX_DATA(PINT0_PH_MARK, PH0MD_10),
  1088. /* Port I - not on device */
  1089. /* Port J */
  1090. PINMUX_DATA(PJ31_DATA, PJ31MD_0),
  1091. PINMUX_DATA(DV_CLK_MARK, PJ31MD_1),
  1092. PINMUX_DATA(PJ30_DATA, PJ30MD_000),
  1093. PINMUX_DATA(SSIDATA5_MARK, PJ30MD_010),
  1094. PINMUX_DATA(TIOC2B_MARK, PJ30MD_100),
  1095. PINMUX_DATA(IETXD_MARK, PJ30MD_101),
  1096. PINMUX_DATA(PJ29_DATA, PJ29MD_000),
  1097. PINMUX_DATA(SSIWS5_MARK, PJ29MD_010),
  1098. PINMUX_DATA(TIOC2A_MARK, PJ29MD_100),
  1099. PINMUX_DATA(IERXD_MARK, PJ29MD_101),
  1100. PINMUX_DATA(PJ28_DATA, PJ28MD_000),
  1101. PINMUX_DATA(SSISCK5_MARK, PJ28MD_010),
  1102. PINMUX_DATA(TIOC1B_MARK, PJ28MD_100),
  1103. PINMUX_DATA(RTS7_MARK, PJ28MD_101),
  1104. PINMUX_DATA(PJ27_DATA, PJ27MD_000),
  1105. PINMUX_DATA(TIOC1A_MARK, PJ27MD_100),
  1106. PINMUX_DATA(CTS7_MARK, PJ27MD_101),
  1107. PINMUX_DATA(PJ26_DATA, PJ26MD_000),
  1108. PINMUX_DATA(SSIDATA4_MARK, PJ26MD_010),
  1109. PINMUX_DATA(LCD_TCON5_MARK, PJ26MD_011),
  1110. PINMUX_DATA(TXD7_MARK, PJ26MD_101),
  1111. PINMUX_DATA(PJ25_DATA, PJ25MD_000),
  1112. PINMUX_DATA(SSIWS4_MARK, PJ25MD_010),
  1113. PINMUX_DATA(LCD_TCON4_MARK, PJ25MD_011),
  1114. PINMUX_DATA(SPDIF_OUT_MARK, PJ25MD_100),
  1115. PINMUX_DATA(RXD7_MARK, PJ25MD_101),
  1116. PINMUX_DATA(PJ24_DATA, PJ24MD_000),
  1117. PINMUX_DATA(SSISCK4_MARK, PJ24MD_010),
  1118. PINMUX_DATA(LCD_TCON3_MARK, PJ24MD_011),
  1119. PINMUX_DATA(SPDIF_IN_MARK, PJ24MD_100),
  1120. PINMUX_DATA(SCK7_MARK, PJ24MD_101),
  1121. PINMUX_DATA(PJ23_DATA, PJ23MD_000),
  1122. PINMUX_DATA(DV_DATA23_MARK, PJ23MD_001),
  1123. PINMUX_DATA(LCD_DATA23_PJ23_MARK, PJ23MD_010),
  1124. PINMUX_DATA(LCD_TCON6_MARK, PJ23MD_011),
  1125. PINMUX_DATA(IRQ3_PJ_MARK, PJ23MD_100),
  1126. PINMUX_DATA(CTX1_MARK, PJ23MD_101),
  1127. PINMUX_DATA(PJ22_DATA, PJ22MD_000),
  1128. PINMUX_DATA(DV_DATA22_MARK, PJ22MD_001),
  1129. PINMUX_DATA(LCD_DATA22_PJ22_MARK, PJ22MD_010),
  1130. PINMUX_DATA(LCD_TCON5_MARK, PJ22MD_011),
  1131. PINMUX_DATA(IRQ2_PJ_MARK, PJ22MD_100),
  1132. PINMUX_DATA(CRX1_MARK, PJ22MD_101),
  1133. PINMUX_DATA(CRX0_CRX1_MARK, PJ22MD_110),
  1134. PINMUX_DATA(PJ21_DATA, PJ21MD_000),
  1135. PINMUX_DATA(DV_DATA21_MARK, PJ21MD_001),
  1136. PINMUX_DATA(LCD_DATA21_PJ21_MARK, PJ21MD_010),
  1137. PINMUX_DATA(LCD_TCON4_MARK, PJ21MD_011),
  1138. PINMUX_DATA(IRQ1_PJ_MARK, PJ21MD_100),
  1139. PINMUX_DATA(CTX2_MARK, PJ21MD_101),
  1140. PINMUX_DATA(PJ20_DATA, PJ20MD_000),
  1141. PINMUX_DATA(DV_DATA20_MARK, PJ20MD_001),
  1142. PINMUX_DATA(LCD_DATA20_PJ20_MARK, PJ20MD_010),
  1143. PINMUX_DATA(LCD_TCON3_MARK, PJ20MD_011),
  1144. PINMUX_DATA(IRQ0_PJ_MARK, PJ20MD_100),
  1145. PINMUX_DATA(CRX2_MARK, PJ20MD_101),
  1146. PINMUX_DATA(CRX0CRX1CRX2_PJ20_MARK, PJ20MD_110),
  1147. PINMUX_DATA(PJ19_DATA, PJ19MD_000),
  1148. PINMUX_DATA(DV_DATA19_MARK, PJ19MD_001),
  1149. PINMUX_DATA(LCD_DATA19_PJ19_MARK, PJ19MD_010),
  1150. PINMUX_DATA(MISO0_PJ19_MARK, PJ19MD_011),
  1151. PINMUX_DATA(TIOC0D_MARK, PJ19MD_100),
  1152. PINMUX_DATA(SIOFRXD_MARK, PJ19MD_101),
  1153. PINMUX_DATA(AUDIO_XOUT_MARK, PJ19MD_110),
  1154. PINMUX_DATA(PJ18_DATA, PJ18MD_000),
  1155. PINMUX_DATA(DV_DATA18_MARK, PJ18MD_001),
  1156. PINMUX_DATA(LCD_DATA18_PJ18_MARK, PJ18MD_010),
  1157. PINMUX_DATA(MOSI0_PJ18_MARK, PJ18MD_011),
  1158. PINMUX_DATA(TIOC0C_MARK, PJ18MD_100),
  1159. PINMUX_DATA(SIOFTXD_MARK, PJ18MD_101),
  1160. PINMUX_DATA(PJ17_DATA, PJ17MD_000),
  1161. PINMUX_DATA(DV_DATA17_MARK, PJ17MD_001),
  1162. PINMUX_DATA(LCD_DATA17_PJ17_MARK, PJ17MD_010),
  1163. PINMUX_DATA(SSL00_PJ17_MARK, PJ17MD_011),
  1164. PINMUX_DATA(TIOC0B_MARK, PJ17MD_100),
  1165. PINMUX_DATA(SIOFSYNC_MARK, PJ17MD_101),
  1166. PINMUX_DATA(PJ16_DATA, PJ16MD_000),
  1167. PINMUX_DATA(DV_DATA16_MARK, PJ16MD_001),
  1168. PINMUX_DATA(LCD_DATA16_PJ16_MARK, PJ16MD_010),
  1169. PINMUX_DATA(RSPCK0_PJ16_MARK, PJ16MD_011),
  1170. PINMUX_DATA(TIOC0A_MARK, PJ16MD_100),
  1171. PINMUX_DATA(SIOFSCK_MARK, PJ16MD_101),
  1172. PINMUX_DATA(PJ15_DATA, PJ15MD_000),
  1173. PINMUX_DATA(DV_DATA15_MARK, PJ15MD_001),
  1174. PINMUX_DATA(LCD_DATA15_PJ15_MARK, PJ15MD_010),
  1175. PINMUX_DATA(PINT7_PJ_MARK, PJ15MD_011),
  1176. PINMUX_DATA(PWM2H_MARK, PJ15MD_100),
  1177. PINMUX_DATA(TXD7_MARK, PJ15MD_101),
  1178. PINMUX_DATA(PJ14_DATA, PJ14MD_000),
  1179. PINMUX_DATA(DV_DATA14_MARK, PJ14MD_001),
  1180. PINMUX_DATA(LCD_DATA14_PJ14_MARK, PJ14MD_010),
  1181. PINMUX_DATA(PINT6_PJ_MARK, PJ14MD_011),
  1182. PINMUX_DATA(PWM2G_MARK, PJ14MD_100),
  1183. PINMUX_DATA(TXD6_MARK, PJ14MD_101),
  1184. PINMUX_DATA(PJ13_DATA, PJ13MD_000),
  1185. PINMUX_DATA(DV_DATA13_MARK, PJ13MD_001),
  1186. PINMUX_DATA(LCD_DATA13_PJ13_MARK, PJ13MD_010),
  1187. PINMUX_DATA(PINT5_PJ_MARK, PJ13MD_011),
  1188. PINMUX_DATA(PWM2F_MARK, PJ13MD_100),
  1189. PINMUX_DATA(TXD5_MARK, PJ13MD_101),
  1190. PINMUX_DATA(PJ12_DATA, PJ12MD_000),
  1191. PINMUX_DATA(DV_DATA12_MARK, PJ12MD_001),
  1192. PINMUX_DATA(LCD_DATA12_PJ12_MARK, PJ12MD_010),
  1193. PINMUX_DATA(PINT4_PJ_MARK, PJ12MD_011),
  1194. PINMUX_DATA(PWM2E_MARK, PJ12MD_100),
  1195. PINMUX_DATA(SCK7_MARK, PJ12MD_101),
  1196. PINMUX_DATA(PJ11_DATA, PJ11MD_000),
  1197. PINMUX_DATA(DV_DATA11_MARK, PJ11MD_001),
  1198. PINMUX_DATA(LCD_DATA11_PJ11_MARK, PJ11MD_010),
  1199. PINMUX_DATA(PINT3_PJ_MARK, PJ11MD_011),
  1200. PINMUX_DATA(PWM2D_MARK, PJ11MD_100),
  1201. PINMUX_DATA(SCK6_MARK, PJ11MD_101),
  1202. PINMUX_DATA(PJ10_DATA, PJ10MD_000),
  1203. PINMUX_DATA(DV_DATA10_MARK, PJ10MD_001),
  1204. PINMUX_DATA(LCD_DATA10_PJ10_MARK, PJ10MD_010),
  1205. PINMUX_DATA(PINT2_PJ_MARK, PJ10MD_011),
  1206. PINMUX_DATA(PWM2C_MARK, PJ10MD_100),
  1207. PINMUX_DATA(SCK5_MARK, PJ10MD_101),
  1208. PINMUX_DATA(PJ9_DATA, PJ9MD_000),
  1209. PINMUX_DATA(DV_DATA9_MARK, PJ9MD_001),
  1210. PINMUX_DATA(LCD_DATA9_PJ9_MARK, PJ9MD_010),
  1211. PINMUX_DATA(PINT1_PJ_MARK, PJ9MD_011),
  1212. PINMUX_DATA(PWM2B_MARK, PJ9MD_100),
  1213. PINMUX_DATA(RTS5_MARK, PJ9MD_101),
  1214. PINMUX_DATA(PJ8_DATA, PJ8MD_000),
  1215. PINMUX_DATA(DV_DATA8_MARK, PJ8MD_001),
  1216. PINMUX_DATA(LCD_DATA8_PJ8_MARK, PJ8MD_010),
  1217. PINMUX_DATA(PINT0_PJ_MARK, PJ8MD_011),
  1218. PINMUX_DATA(PWM2A_MARK, PJ8MD_100),
  1219. PINMUX_DATA(CTS5_MARK, PJ8MD_101),
  1220. PINMUX_DATA(PJ7_DATA, PJ7MD_000),
  1221. PINMUX_DATA(DV_DATA7_MARK, PJ7MD_001),
  1222. PINMUX_DATA(LCD_DATA7_PJ7_MARK, PJ7MD_010),
  1223. PINMUX_DATA(SD_D2_MARK, PJ7MD_011),
  1224. PINMUX_DATA(PWM1H_MARK, PJ7MD_100),
  1225. PINMUX_DATA(PJ6_DATA, PJ6MD_000),
  1226. PINMUX_DATA(DV_DATA6_MARK, PJ6MD_001),
  1227. PINMUX_DATA(LCD_DATA6_PJ6_MARK, PJ6MD_010),
  1228. PINMUX_DATA(SD_D3_MARK, PJ6MD_011),
  1229. PINMUX_DATA(PWM1G_MARK, PJ6MD_100),
  1230. PINMUX_DATA(PJ5_DATA, PJ5MD_000),
  1231. PINMUX_DATA(DV_DATA5_MARK, PJ5MD_001),
  1232. PINMUX_DATA(LCD_DATA5_PJ5_MARK, PJ5MD_010),
  1233. PINMUX_DATA(SD_CMD_MARK, PJ5MD_011),
  1234. PINMUX_DATA(PWM1F_MARK, PJ5MD_100),
  1235. PINMUX_DATA(PJ4_DATA, PJ4MD_000),
  1236. PINMUX_DATA(DV_DATA4_MARK, PJ4MD_001),
  1237. PINMUX_DATA(LCD_DATA4_PJ4_MARK, PJ4MD_010),
  1238. PINMUX_DATA(SD_CLK_MARK, PJ4MD_011),
  1239. PINMUX_DATA(PWM1E_MARK, PJ4MD_100),
  1240. PINMUX_DATA(PJ3_DATA, PJ3MD_000),
  1241. PINMUX_DATA(DV_DATA3_MARK, PJ3MD_001),
  1242. PINMUX_DATA(LCD_DATA3_PJ3_MARK, PJ3MD_010),
  1243. PINMUX_DATA(SD_D0_MARK, PJ3MD_011),
  1244. PINMUX_DATA(PWM1D_MARK, PJ3MD_100),
  1245. PINMUX_DATA(PJ2_DATA, PJ2MD_000),
  1246. PINMUX_DATA(DV_DATA2_MARK, PJ2MD_001),
  1247. PINMUX_DATA(LCD_DATA2_PJ2_MARK, PJ2MD_010),
  1248. PINMUX_DATA(SD_D1_MARK, PJ2MD_011),
  1249. PINMUX_DATA(PWM1C_MARK, PJ2MD_100),
  1250. PINMUX_DATA(PJ1_DATA, PJ1MD_000),
  1251. PINMUX_DATA(DV_DATA1_MARK, PJ1MD_001),
  1252. PINMUX_DATA(LCD_DATA1_PJ1_MARK, PJ1MD_010),
  1253. PINMUX_DATA(SD_WP_MARK, PJ1MD_011),
  1254. PINMUX_DATA(PWM1B_MARK, PJ1MD_100),
  1255. PINMUX_DATA(PJ0_DATA, PJ0MD_000),
  1256. PINMUX_DATA(DV_DATA0_MARK, PJ0MD_001),
  1257. PINMUX_DATA(LCD_DATA0_PJ0_MARK, PJ0MD_010),
  1258. PINMUX_DATA(SD_CD_MARK, PJ0MD_011),
  1259. PINMUX_DATA(PWM1A_MARK, PJ0MD_100),
  1260. };
  1261. static const struct sh_pfc_pin pinmux_pins[] = {
  1262. /* Port A */
  1263. PINMUX_GPIO(PA1),
  1264. PINMUX_GPIO(PA0),
  1265. /* Port B */
  1266. PINMUX_GPIO(PB22),
  1267. PINMUX_GPIO(PB21),
  1268. PINMUX_GPIO(PB20),
  1269. PINMUX_GPIO(PB19),
  1270. PINMUX_GPIO(PB18),
  1271. PINMUX_GPIO(PB17),
  1272. PINMUX_GPIO(PB16),
  1273. PINMUX_GPIO(PB15),
  1274. PINMUX_GPIO(PB14),
  1275. PINMUX_GPIO(PB13),
  1276. PINMUX_GPIO(PB12),
  1277. PINMUX_GPIO(PB11),
  1278. PINMUX_GPIO(PB10),
  1279. PINMUX_GPIO(PB9),
  1280. PINMUX_GPIO(PB8),
  1281. PINMUX_GPIO(PB7),
  1282. PINMUX_GPIO(PB6),
  1283. PINMUX_GPIO(PB5),
  1284. PINMUX_GPIO(PB4),
  1285. PINMUX_GPIO(PB3),
  1286. PINMUX_GPIO(PB2),
  1287. PINMUX_GPIO(PB1),
  1288. /* Port C */
  1289. PINMUX_GPIO(PC8),
  1290. PINMUX_GPIO(PC7),
  1291. PINMUX_GPIO(PC6),
  1292. PINMUX_GPIO(PC5),
  1293. PINMUX_GPIO(PC4),
  1294. PINMUX_GPIO(PC3),
  1295. PINMUX_GPIO(PC2),
  1296. PINMUX_GPIO(PC1),
  1297. PINMUX_GPIO(PC0),
  1298. /* Port D */
  1299. PINMUX_GPIO(PD15),
  1300. PINMUX_GPIO(PD14),
  1301. PINMUX_GPIO(PD13),
  1302. PINMUX_GPIO(PD12),
  1303. PINMUX_GPIO(PD11),
  1304. PINMUX_GPIO(PD10),
  1305. PINMUX_GPIO(PD9),
  1306. PINMUX_GPIO(PD8),
  1307. PINMUX_GPIO(PD7),
  1308. PINMUX_GPIO(PD6),
  1309. PINMUX_GPIO(PD5),
  1310. PINMUX_GPIO(PD4),
  1311. PINMUX_GPIO(PD3),
  1312. PINMUX_GPIO(PD2),
  1313. PINMUX_GPIO(PD1),
  1314. PINMUX_GPIO(PD0),
  1315. /* Port E */
  1316. PINMUX_GPIO(PE7),
  1317. PINMUX_GPIO(PE6),
  1318. PINMUX_GPIO(PE5),
  1319. PINMUX_GPIO(PE4),
  1320. PINMUX_GPIO(PE3),
  1321. PINMUX_GPIO(PE2),
  1322. PINMUX_GPIO(PE1),
  1323. PINMUX_GPIO(PE0),
  1324. /* Port F */
  1325. PINMUX_GPIO(PF23),
  1326. PINMUX_GPIO(PF22),
  1327. PINMUX_GPIO(PF21),
  1328. PINMUX_GPIO(PF20),
  1329. PINMUX_GPIO(PF19),
  1330. PINMUX_GPIO(PF18),
  1331. PINMUX_GPIO(PF17),
  1332. PINMUX_GPIO(PF16),
  1333. PINMUX_GPIO(PF15),
  1334. PINMUX_GPIO(PF14),
  1335. PINMUX_GPIO(PF13),
  1336. PINMUX_GPIO(PF12),
  1337. PINMUX_GPIO(PF11),
  1338. PINMUX_GPIO(PF10),
  1339. PINMUX_GPIO(PF9),
  1340. PINMUX_GPIO(PF8),
  1341. PINMUX_GPIO(PF7),
  1342. PINMUX_GPIO(PF6),
  1343. PINMUX_GPIO(PF5),
  1344. PINMUX_GPIO(PF4),
  1345. PINMUX_GPIO(PF3),
  1346. PINMUX_GPIO(PF2),
  1347. PINMUX_GPIO(PF1),
  1348. PINMUX_GPIO(PF0),
  1349. /* Port G */
  1350. PINMUX_GPIO(PG27),
  1351. PINMUX_GPIO(PG26),
  1352. PINMUX_GPIO(PG25),
  1353. PINMUX_GPIO(PG24),
  1354. PINMUX_GPIO(PG23),
  1355. PINMUX_GPIO(PG22),
  1356. PINMUX_GPIO(PG21),
  1357. PINMUX_GPIO(PG20),
  1358. PINMUX_GPIO(PG19),
  1359. PINMUX_GPIO(PG18),
  1360. PINMUX_GPIO(PG17),
  1361. PINMUX_GPIO(PG16),
  1362. PINMUX_GPIO(PG15),
  1363. PINMUX_GPIO(PG14),
  1364. PINMUX_GPIO(PG13),
  1365. PINMUX_GPIO(PG12),
  1366. PINMUX_GPIO(PG11),
  1367. PINMUX_GPIO(PG10),
  1368. PINMUX_GPIO(PG9),
  1369. PINMUX_GPIO(PG8),
  1370. PINMUX_GPIO(PG7),
  1371. PINMUX_GPIO(PG6),
  1372. PINMUX_GPIO(PG5),
  1373. PINMUX_GPIO(PG4),
  1374. PINMUX_GPIO(PG3),
  1375. PINMUX_GPIO(PG2),
  1376. PINMUX_GPIO(PG1),
  1377. PINMUX_GPIO(PG0),
  1378. /* Port H - Port H does not have a Data Register */
  1379. /* Port I - not on device */
  1380. /* Port J */
  1381. PINMUX_GPIO(PJ31),
  1382. PINMUX_GPIO(PJ30),
  1383. PINMUX_GPIO(PJ29),
  1384. PINMUX_GPIO(PJ28),
  1385. PINMUX_GPIO(PJ27),
  1386. PINMUX_GPIO(PJ26),
  1387. PINMUX_GPIO(PJ25),
  1388. PINMUX_GPIO(PJ24),
  1389. PINMUX_GPIO(PJ23),
  1390. PINMUX_GPIO(PJ22),
  1391. PINMUX_GPIO(PJ21),
  1392. PINMUX_GPIO(PJ20),
  1393. PINMUX_GPIO(PJ19),
  1394. PINMUX_GPIO(PJ18),
  1395. PINMUX_GPIO(PJ17),
  1396. PINMUX_GPIO(PJ16),
  1397. PINMUX_GPIO(PJ15),
  1398. PINMUX_GPIO(PJ14),
  1399. PINMUX_GPIO(PJ13),
  1400. PINMUX_GPIO(PJ12),
  1401. PINMUX_GPIO(PJ11),
  1402. PINMUX_GPIO(PJ10),
  1403. PINMUX_GPIO(PJ9),
  1404. PINMUX_GPIO(PJ8),
  1405. PINMUX_GPIO(PJ7),
  1406. PINMUX_GPIO(PJ6),
  1407. PINMUX_GPIO(PJ5),
  1408. PINMUX_GPIO(PJ4),
  1409. PINMUX_GPIO(PJ3),
  1410. PINMUX_GPIO(PJ2),
  1411. PINMUX_GPIO(PJ1),
  1412. PINMUX_GPIO(PJ0),
  1413. };
  1414. #define PINMUX_FN_BASE ARRAY_SIZE(pinmux_pins)
  1415. static const struct pinmux_func pinmux_func_gpios[] = {
  1416. /* INTC */
  1417. GPIO_FN(IRQ7_PG),
  1418. GPIO_FN(IRQ6_PG),
  1419. GPIO_FN(IRQ5_PG),
  1420. GPIO_FN(IRQ4_PG),
  1421. GPIO_FN(IRQ3_PG),
  1422. GPIO_FN(IRQ2_PG),
  1423. GPIO_FN(IRQ1_PG),
  1424. GPIO_FN(IRQ0_PG),
  1425. GPIO_FN(IRQ7_PF),
  1426. GPIO_FN(IRQ6_PF),
  1427. GPIO_FN(IRQ5_PF),
  1428. GPIO_FN(IRQ4_PF),
  1429. GPIO_FN(IRQ3_PJ),
  1430. GPIO_FN(IRQ2_PJ),
  1431. GPIO_FN(IRQ1_PJ),
  1432. GPIO_FN(IRQ0_PJ),
  1433. GPIO_FN(IRQ1_PC),
  1434. GPIO_FN(IRQ0_PC),
  1435. GPIO_FN(PINT7_PG),
  1436. GPIO_FN(PINT6_PG),
  1437. GPIO_FN(PINT5_PG),
  1438. GPIO_FN(PINT4_PG),
  1439. GPIO_FN(PINT3_PG),
  1440. GPIO_FN(PINT2_PG),
  1441. GPIO_FN(PINT1_PG),
  1442. GPIO_FN(PINT0_PG),
  1443. GPIO_FN(PINT7_PH),
  1444. GPIO_FN(PINT6_PH),
  1445. GPIO_FN(PINT5_PH),
  1446. GPIO_FN(PINT4_PH),
  1447. GPIO_FN(PINT3_PH),
  1448. GPIO_FN(PINT2_PH),
  1449. GPIO_FN(PINT1_PH),
  1450. GPIO_FN(PINT0_PH),
  1451. GPIO_FN(PINT7_PJ),
  1452. GPIO_FN(PINT6_PJ),
  1453. GPIO_FN(PINT5_PJ),
  1454. GPIO_FN(PINT4_PJ),
  1455. GPIO_FN(PINT3_PJ),
  1456. GPIO_FN(PINT2_PJ),
  1457. GPIO_FN(PINT1_PJ),
  1458. GPIO_FN(PINT0_PJ),
  1459. /* WDT */
  1460. GPIO_FN(WDTOVF),
  1461. /* CAN */
  1462. GPIO_FN(CTX1),
  1463. GPIO_FN(CRX1),
  1464. GPIO_FN(CTX0),
  1465. GPIO_FN(CRX0),
  1466. GPIO_FN(CRX0_CRX1),
  1467. GPIO_FN(CRX0_CRX1_CRX2),
  1468. /* DMAC */
  1469. GPIO_FN(TEND0),
  1470. GPIO_FN(DACK0),
  1471. GPIO_FN(DREQ0),
  1472. GPIO_FN(TEND1),
  1473. GPIO_FN(DACK1),
  1474. GPIO_FN(DREQ1),
  1475. /* ADC */
  1476. GPIO_FN(ADTRG),
  1477. /* BSCh */
  1478. GPIO_FN(A25),
  1479. GPIO_FN(A24),
  1480. GPIO_FN(A23),
  1481. GPIO_FN(A22),
  1482. GPIO_FN(A21),
  1483. GPIO_FN(A20),
  1484. GPIO_FN(A19),
  1485. GPIO_FN(A18),
  1486. GPIO_FN(A17),
  1487. GPIO_FN(A16),
  1488. GPIO_FN(A15),
  1489. GPIO_FN(A14),
  1490. GPIO_FN(A13),
  1491. GPIO_FN(A12),
  1492. GPIO_FN(A11),
  1493. GPIO_FN(A10),
  1494. GPIO_FN(A9),
  1495. GPIO_FN(A8),
  1496. GPIO_FN(A7),
  1497. GPIO_FN(A6),
  1498. GPIO_FN(A5),
  1499. GPIO_FN(A4),
  1500. GPIO_FN(A3),
  1501. GPIO_FN(A2),
  1502. GPIO_FN(A1),
  1503. GPIO_FN(A0),
  1504. GPIO_FN(D15),
  1505. GPIO_FN(D14),
  1506. GPIO_FN(D13),
  1507. GPIO_FN(D12),
  1508. GPIO_FN(D11),
  1509. GPIO_FN(D10),
  1510. GPIO_FN(D9),
  1511. GPIO_FN(D8),
  1512. GPIO_FN(D7),
  1513. GPIO_FN(D6),
  1514. GPIO_FN(D5),
  1515. GPIO_FN(D4),
  1516. GPIO_FN(D3),
  1517. GPIO_FN(D2),
  1518. GPIO_FN(D1),
  1519. GPIO_FN(D0),
  1520. GPIO_FN(BS),
  1521. GPIO_FN(CS4),
  1522. GPIO_FN(CS3),
  1523. GPIO_FN(CS2),
  1524. GPIO_FN(CS1),
  1525. GPIO_FN(CS0),
  1526. GPIO_FN(CS5CE1A),
  1527. GPIO_FN(CE2A),
  1528. GPIO_FN(CE2B),
  1529. GPIO_FN(RD),
  1530. GPIO_FN(RDWR),
  1531. GPIO_FN(WE3ICIOWRAHDQMUU),
  1532. GPIO_FN(WE2ICIORDDQMUL),
  1533. GPIO_FN(WE1DQMUWE),
  1534. GPIO_FN(WE0DQML),
  1535. GPIO_FN(RAS),
  1536. GPIO_FN(CAS),
  1537. GPIO_FN(CKE),
  1538. GPIO_FN(WAIT),
  1539. GPIO_FN(BREQ),
  1540. GPIO_FN(BACK),
  1541. GPIO_FN(IOIS16),
  1542. /* TMU */
  1543. GPIO_FN(TIOC4D),
  1544. GPIO_FN(TIOC4C),
  1545. GPIO_FN(TIOC4B),
  1546. GPIO_FN(TIOC4A),
  1547. GPIO_FN(TIOC3D),
  1548. GPIO_FN(TIOC3C),
  1549. GPIO_FN(TIOC3B),
  1550. GPIO_FN(TIOC3A),
  1551. GPIO_FN(TIOC2B),
  1552. GPIO_FN(TIOC1B),
  1553. GPIO_FN(TIOC2A),
  1554. GPIO_FN(TIOC1A),
  1555. GPIO_FN(TIOC0D),
  1556. GPIO_FN(TIOC0C),
  1557. GPIO_FN(TIOC0B),
  1558. GPIO_FN(TIOC0A),
  1559. GPIO_FN(TCLKD),
  1560. GPIO_FN(TCLKC),
  1561. GPIO_FN(TCLKB),
  1562. GPIO_FN(TCLKA),
  1563. /* SCIF */
  1564. GPIO_FN(SCK0),
  1565. GPIO_FN(TXD0),
  1566. GPIO_FN(RXD0),
  1567. GPIO_FN(SCK1),
  1568. GPIO_FN(TXD1),
  1569. GPIO_FN(RXD1),
  1570. GPIO_FN(RTS1),
  1571. GPIO_FN(CTS1),
  1572. GPIO_FN(SCK2),
  1573. GPIO_FN(TXD2),
  1574. GPIO_FN(RXD2),
  1575. GPIO_FN(SCK3),
  1576. GPIO_FN(TXD3),
  1577. GPIO_FN(RXD3),
  1578. GPIO_FN(SCK4),
  1579. GPIO_FN(TXD4),
  1580. GPIO_FN(RXD4),
  1581. GPIO_FN(SCK5),
  1582. GPIO_FN(TXD5),
  1583. GPIO_FN(RXD5),
  1584. GPIO_FN(RTS5),
  1585. GPIO_FN(CTS5),
  1586. GPIO_FN(SCK6),
  1587. GPIO_FN(TXD6),
  1588. GPIO_FN(RXD6),
  1589. GPIO_FN(SCK7),
  1590. GPIO_FN(TXD7),
  1591. GPIO_FN(RXD7),
  1592. GPIO_FN(RTS7),
  1593. GPIO_FN(CTS7),
  1594. /* RSPI */
  1595. GPIO_FN(RSPCK0_PJ16),
  1596. GPIO_FN(SSL00_PJ17),
  1597. GPIO_FN(MOSI0_PJ18),
  1598. GPIO_FN(MISO0_PJ19),
  1599. GPIO_FN(RSPCK0_PB17),
  1600. GPIO_FN(SSL00_PB18),
  1601. GPIO_FN(MOSI0_PB19),
  1602. GPIO_FN(MISO0_PB20),
  1603. GPIO_FN(RSPCK1),
  1604. GPIO_FN(MOSI1),
  1605. GPIO_FN(MISO1),
  1606. GPIO_FN(SSL10),
  1607. /* IIC3 */
  1608. GPIO_FN(SCL0),
  1609. GPIO_FN(SCL1),
  1610. GPIO_FN(SCL2),
  1611. GPIO_FN(SDA0),
  1612. GPIO_FN(SDA1),
  1613. GPIO_FN(SDA2),
  1614. /* SSI */
  1615. GPIO_FN(SSISCK0),
  1616. GPIO_FN(SSIWS0),
  1617. GPIO_FN(SSITXD0),
  1618. GPIO_FN(SSIRXD0),
  1619. GPIO_FN(SSIWS1),
  1620. GPIO_FN(SSIWS2),
  1621. GPIO_FN(SSIWS3),
  1622. GPIO_FN(SSISCK1),
  1623. GPIO_FN(SSISCK2),
  1624. GPIO_FN(SSISCK3),
  1625. GPIO_FN(SSIDATA1),
  1626. GPIO_FN(SSIDATA2),
  1627. GPIO_FN(SSIDATA3),
  1628. GPIO_FN(AUDIO_CLK),
  1629. GPIO_FN(AUDIO_XOUT),
  1630. /* SIOF */ /* NOTE Shares AUDIO_CLK with SSI */
  1631. GPIO_FN(SIOFTXD),
  1632. GPIO_FN(SIOFRXD),
  1633. GPIO_FN(SIOFSYNC),
  1634. GPIO_FN(SIOFSCK),
  1635. /* SPDIF */ /* NOTE Shares AUDIO_CLK with SSI */
  1636. GPIO_FN(SPDIF_IN),
  1637. GPIO_FN(SPDIF_OUT),
  1638. /* NANDFMC */ /* NOTE Controller is not available in boot mode 0 */
  1639. GPIO_FN(FCE),
  1640. GPIO_FN(FRB),
  1641. /* VDC3 */
  1642. GPIO_FN(DV_CLK),
  1643. GPIO_FN(DV_VSYNC),
  1644. GPIO_FN(DV_HSYNC),
  1645. GPIO_FN(DV_DATA23),
  1646. GPIO_FN(DV_DATA22),
  1647. GPIO_FN(DV_DATA21),
  1648. GPIO_FN(DV_DATA20),
  1649. GPIO_FN(DV_DATA19),
  1650. GPIO_FN(DV_DATA18),
  1651. GPIO_FN(DV_DATA17),
  1652. GPIO_FN(DV_DATA16),
  1653. GPIO_FN(DV_DATA15),
  1654. GPIO_FN(DV_DATA14),
  1655. GPIO_FN(DV_DATA13),
  1656. GPIO_FN(DV_DATA12),
  1657. GPIO_FN(DV_DATA11),
  1658. GPIO_FN(DV_DATA10),
  1659. GPIO_FN(DV_DATA9),
  1660. GPIO_FN(DV_DATA8),
  1661. GPIO_FN(DV_DATA7),
  1662. GPIO_FN(DV_DATA6),
  1663. GPIO_FN(DV_DATA5),
  1664. GPIO_FN(DV_DATA4),
  1665. GPIO_FN(DV_DATA3),
  1666. GPIO_FN(DV_DATA2),
  1667. GPIO_FN(DV_DATA1),
  1668. GPIO_FN(DV_DATA0),
  1669. GPIO_FN(LCD_CLK),
  1670. GPIO_FN(LCD_EXTCLK),
  1671. GPIO_FN(LCD_VSYNC),
  1672. GPIO_FN(LCD_HSYNC),
  1673. GPIO_FN(LCD_DE),
  1674. GPIO_FN(LCD_DATA23_PG23),
  1675. GPIO_FN(LCD_DATA22_PG22),
  1676. GPIO_FN(LCD_DATA21_PG21),
  1677. GPIO_FN(LCD_DATA20_PG20),
  1678. GPIO_FN(LCD_DATA19_PG19),
  1679. GPIO_FN(LCD_DATA18_PG18),
  1680. GPIO_FN(LCD_DATA17_PG17),
  1681. GPIO_FN(LCD_DATA16_PG16),
  1682. GPIO_FN(LCD_DATA15_PG15),
  1683. GPIO_FN(LCD_DATA14_PG14),
  1684. GPIO_FN(LCD_DATA13_PG13),
  1685. GPIO_FN(LCD_DATA12_PG12),
  1686. GPIO_FN(LCD_DATA11_PG11),
  1687. GPIO_FN(LCD_DATA10_PG10),
  1688. GPIO_FN(LCD_DATA9_PG9),
  1689. GPIO_FN(LCD_DATA8_PG8),
  1690. GPIO_FN(LCD_DATA7_PG7),
  1691. GPIO_FN(LCD_DATA6_PG6),
  1692. GPIO_FN(LCD_DATA5_PG5),
  1693. GPIO_FN(LCD_DATA4_PG4),
  1694. GPIO_FN(LCD_DATA3_PG3),
  1695. GPIO_FN(LCD_DATA2_PG2),
  1696. GPIO_FN(LCD_DATA1_PG1),
  1697. GPIO_FN(LCD_DATA0_PG0),
  1698. GPIO_FN(LCD_DATA23_PJ23),
  1699. GPIO_FN(LCD_DATA22_PJ22),
  1700. GPIO_FN(LCD_DATA21_PJ21),
  1701. GPIO_FN(LCD_DATA20_PJ20),
  1702. GPIO_FN(LCD_DATA19_PJ19),
  1703. GPIO_FN(LCD_DATA18_PJ18),
  1704. GPIO_FN(LCD_DATA17_PJ17),
  1705. GPIO_FN(LCD_DATA16_PJ16),
  1706. GPIO_FN(LCD_DATA15_PJ15),
  1707. GPIO_FN(LCD_DATA14_PJ14),
  1708. GPIO_FN(LCD_DATA13_PJ13),
  1709. GPIO_FN(LCD_DATA12_PJ12),
  1710. GPIO_FN(LCD_DATA11_PJ11),
  1711. GPIO_FN(LCD_DATA10_PJ10),
  1712. GPIO_FN(LCD_DATA9_PJ9),
  1713. GPIO_FN(LCD_DATA8_PJ8),
  1714. GPIO_FN(LCD_DATA7_PJ7),
  1715. GPIO_FN(LCD_DATA6_PJ6),
  1716. GPIO_FN(LCD_DATA5_PJ5),
  1717. GPIO_FN(LCD_DATA4_PJ4),
  1718. GPIO_FN(LCD_DATA3_PJ3),
  1719. GPIO_FN(LCD_DATA2_PJ2),
  1720. GPIO_FN(LCD_DATA1_PJ1),
  1721. GPIO_FN(LCD_DATA0_PJ0),
  1722. GPIO_FN(LCD_M_DISP),
  1723. };
  1724. static const struct pinmux_cfg_reg pinmux_config_regs[] = {
  1725. /* "name" addr register_size Field_Width */
  1726. /* where Field_Width is 1 for single mode registers or 4 for upto 16
  1727. mode registers and modes are described in assending order [0..16] */
  1728. { PINMUX_CFG_REG("PAIOR0", 0xfffe3812, 16, 1) {
  1729. 0, 0, 0, 0, 0, 0, 0, 0,
  1730. 0, 0, 0, 0, 0, 0, PA1_IN, PA1_OUT,
  1731. 0, 0, 0, 0, 0, 0, 0, 0,
  1732. 0, 0, 0, 0, 0, 0, PA0_IN, PA0_OUT }
  1733. },
  1734. { PINMUX_CFG_REG("PBCR5", 0xfffe3824, 16, 4) {
  1735. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1736. PB22MD_000, PB22MD_001, PB22MD_010, PB22MD_011,
  1737. PB22MD_100, PB22MD_101, PB22MD_110, PB22MD_111,
  1738. 0, 0, 0, 0, 0, 0, 0, 0,
  1739. PB21MD_00, PB21MD_01, PB21MD_10, PB21MD_11, 0, 0, 0, 0,
  1740. 0, 0, 0, 0, 0, 0, 0, 0,
  1741. PB20MD_000, PB20MD_001, PB20MD_010, PB20MD_011,
  1742. PB20MD_100, PB20MD_101, PB20MD_110, PB20MD_111,
  1743. 0, 0, 0, 0, 0, 0, 0, 0 }
  1744. },
  1745. { PINMUX_CFG_REG("PBCR4", 0xfffe3826, 16, 4) {
  1746. PB19MD_000, PB19MD_001, PB19MD_010, PB19MD_011,
  1747. PB19MD_100, PB19MD_101, PB19MD_110, PB19MD_111,
  1748. 0, 0, 0, 0, 0, 0, 0, 0,
  1749. PB18MD_000, PB18MD_001, PB18MD_010, PB18MD_011,
  1750. PB18MD_100, PB18MD_101, PB18MD_110, PB18MD_111,
  1751. 0, 0, 0, 0, 0, 0, 0, 0,
  1752. PB17MD_000, PB17MD_001, PB17MD_010, PB17MD_011,
  1753. PB17MD_100, PB17MD_101, PB17MD_110, PB17MD_111,
  1754. 0, 0, 0, 0, 0, 0, 0, 0,
  1755. PB16MD_000, PB16MD_001, PB16MD_010, PB16MD_011,
  1756. PB16MD_100, PB16MD_101, PB16MD_110, PB16MD_111,
  1757. 0, 0, 0, 0, 0, 0, 0, 0 }
  1758. },
  1759. { PINMUX_CFG_REG("PBCR3", 0xfffe3828, 16, 4) {
  1760. PB15MD_000, PB15MD_001, PB15MD_010, PB15MD_011,
  1761. PB15MD_100, PB15MD_101, PB15MD_110, PB15MD_111,
  1762. 0, 0, 0, 0, 0, 0, 0, 0,
  1763. PB14MD_000, PB14MD_001, PB14MD_010, PB14MD_011,
  1764. PB14MD_100, PB14MD_101, PB14MD_110, PB14MD_111,
  1765. 0, 0, 0, 0, 0, 0, 0, 0,
  1766. PB13MD_000, PB13MD_001, PB13MD_010, PB13MD_011,
  1767. PB13MD_100, PB13MD_101, PB13MD_110, PB13MD_111,
  1768. 0, 0, 0, 0, 0, 0, 0, 0,
  1769. PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11, 0, 0, 0, 0,
  1770. 0, 0, 0, 0, 0, 0, 0, 0 }
  1771. },
  1772. { PINMUX_CFG_REG("PBCR2", 0xfffe382a, 16, 4) {
  1773. PB11MD_00, PB11MD_01, PB11MD_10, PB11MD_11, 0, 0, 0, 0,
  1774. 0, 0, 0, 0, 0, 0, 0, 0,
  1775. PB10MD_00, PB10MD_01, PB10MD_10, PB10MD_11, 0, 0, 0, 0,
  1776. 0, 0, 0, 0, 0, 0, 0, 0,
  1777. PB9MD_00, PB9MD_01, PB9MD_10, PB9MD_11, 0, 0, 0, 0,
  1778. 0, 0, 0, 0, 0, 0, 0, 0,
  1779. PB8MD_00, PB8MD_01, PB8MD_10, PB8MD_11, 0, 0, 0, 0,
  1780. 0, 0, 0, 0, 0, 0, 0, 0 }
  1781. },
  1782. { PINMUX_CFG_REG("PBCR1", 0xfffe382c, 16, 4) {
  1783. PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11, 0, 0, 0, 0,
  1784. 0, 0, 0, 0, 0, 0, 0, 0,
  1785. PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11, 0, 0, 0, 0,
  1786. 0, 0, 0, 0, 0, 0, 0, 0,
  1787. PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11, 0, 0, 0, 0,
  1788. 0, 0, 0, 0, 0, 0, 0, 0,
  1789. PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11, 0, 0, 0, 0,
  1790. 0, 0, 0, 0, 0, 0, 0, 0 }
  1791. },
  1792. { PINMUX_CFG_REG("PBCR0", 0xfffe382e, 16, 4) {
  1793. PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11, 0, 0, 0, 0,
  1794. 0, 0, 0, 0, 0, 0, 0, 0,
  1795. PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11, 0, 0, 0, 0,
  1796. 0, 0, 0, 0, 0, 0, 0, 0,
  1797. PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11, 0, 0, 0, 0,
  1798. 0, 0, 0, 0, 0, 0, 0, 0,
  1799. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1800. },
  1801. { PINMUX_CFG_REG("PBIOR1", 0xfffe3830, 16, 1) {
  1802. 0, 0, 0, 0, 0, 0, 0, 0,
  1803. 0, 0, 0, 0, 0, 0, 0, 0,
  1804. 0, 0,
  1805. PB22_IN, PB22_OUT,
  1806. PB21_IN, PB21_OUT,
  1807. PB20_IN, PB20_OUT,
  1808. PB19_IN, PB19_OUT,
  1809. PB18_IN, PB18_OUT,
  1810. PB17_IN, PB17_OUT,
  1811. PB16_IN, PB16_OUT }
  1812. },
  1813. { PINMUX_CFG_REG("PBIOR0", 0xfffe3832, 16, 1) {
  1814. PB15_IN, PB15_OUT,
  1815. PB14_IN, PB14_OUT,
  1816. PB13_IN, PB13_OUT,
  1817. PB12_IN, PB12_OUT,
  1818. PB11_IN, PB11_OUT,
  1819. PB10_IN, PB10_OUT,
  1820. PB9_IN, PB9_OUT,
  1821. PB8_IN, PB8_OUT,
  1822. PB7_IN, PB7_OUT,
  1823. PB6_IN, PB6_OUT,
  1824. PB5_IN, PB5_OUT,
  1825. PB4_IN, PB4_OUT,
  1826. PB3_IN, PB3_OUT,
  1827. PB2_IN, PB2_OUT,
  1828. PB1_IN, PB1_OUT,
  1829. 0, 0 }
  1830. },
  1831. { PINMUX_CFG_REG("PCCR2", 0xfffe384a, 16, 4) {
  1832. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1833. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1834. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1835. PC8MD_000, PC8MD_001, PC8MD_010, PC8MD_011,
  1836. PC8MD_100, PC8MD_101, PC8MD_110, PC8MD_111,
  1837. 0, 0, 0, 0, 0, 0, 0, 0 }
  1838. },
  1839. { PINMUX_CFG_REG("PCCR1", 0xfffe384c, 16, 4) {
  1840. PC7MD_000, PC7MD_001, PC7MD_010, PC7MD_011,
  1841. PC7MD_100, PC7MD_101, PC7MD_110, PC7MD_111,
  1842. 0, 0, 0, 0, 0, 0, 0, 0,
  1843. PC6MD_000, PC6MD_001, PC6MD_010, PC6MD_011,
  1844. PC6MD_100, PC6MD_101, PC6MD_110, PC6MD_111,
  1845. 0, 0, 0, 0, 0, 0, 0, 0,
  1846. PC5MD_000, PC5MD_001, PC5MD_010, PC5MD_011,
  1847. PC5MD_100, PC5MD_101, PC5MD_110, PC5MD_111,
  1848. 0, 0, 0, 0, 0, 0, 0, 0,
  1849. PC4MD_00, PC4MD_01, PC4MD_10, PC4MD_11, 0, 0, 0, 0,
  1850. 0, 0, 0, 0, 0, 0, 0, 0 }
  1851. },
  1852. { PINMUX_CFG_REG("PCCR0", 0xfffe384e, 16, 4) {
  1853. PC3MD_00, PC3MD_01, PC3MD_10, PC3MD_11, 0, 0, 0, 0,
  1854. 0, 0, 0, 0, 0, 0, 0, 0,
  1855. PC2MD_00, PC2MD_01, PC2MD_10, PC2MD_11, 0, 0, 0, 0,
  1856. 0, 0, 0, 0, 0, 0, 0, 0,
  1857. PC1MD_0, PC1MD_1, 0, 0, 0, 0, 0, 0,
  1858. 0, 0, 0, 0, 0, 0, 0, 0,
  1859. PC0MD_0, PC0MD_1, 0, 0, 0, 0, 0, 0,
  1860. 0, 0, 0, 0, 0, 0, 0, 0 }
  1861. },
  1862. { PINMUX_CFG_REG("PCIOR0", 0xfffe3852, 16, 1) {
  1863. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1864. PC8_IN, PC8_OUT,
  1865. PC7_IN, PC7_OUT,
  1866. PC6_IN, PC6_OUT,
  1867. PC5_IN, PC5_OUT,
  1868. PC4_IN, PC4_OUT,
  1869. PC3_IN, PC3_OUT,
  1870. PC2_IN, PC2_OUT,
  1871. PC1_IN, PC1_OUT,
  1872. PC0_IN, PC0_OUT }
  1873. },
  1874. { PINMUX_CFG_REG("PDCR3", 0xfffe3868, 16, 4) {
  1875. PD15MD_00, PD15MD_01, PD15MD_10, PD15MD_11, 0, 0, 0, 0,
  1876. 0, 0, 0, 0, 0, 0, 0, 0,
  1877. PD14MD_00, PD14MD_01, PD14MD_10, PD14MD_11, 0, 0, 0, 0,
  1878. 0, 0, 0, 0, 0, 0, 0, 0,
  1879. PD13MD_00, PD13MD_01, PD13MD_10, PD13MD_11, 0, 0, 0, 0,
  1880. 0, 0, 0, 0, 0, 0, 0, 0,
  1881. PD12MD_00, PD12MD_01, PD12MD_10, PD12MD_11, 0, 0, 0, 0,
  1882. 0, 0, 0, 0, 0, 0, 0, 0 }
  1883. },
  1884. { PINMUX_CFG_REG("PDCR2", 0xfffe386a, 16, 4) {
  1885. PD11MD_00, PD11MD_01, PD11MD_10, PD11MD_11, 0, 0, 0, 0,
  1886. 0, 0, 0, 0, 0, 0, 0, 0,
  1887. PD10MD_00, PD10MD_01, PD10MD_10, PD10MD_11, 0, 0, 0, 0,
  1888. 0, 0, 0, 0, 0, 0, 0, 0,
  1889. PD9MD_00, PD9MD_01, PD9MD_10, PD9MD_11, 0, 0, 0, 0,
  1890. 0, 0, 0, 0, 0, 0, 0, 0,
  1891. PD8MD_00, PD8MD_01, PD8MD_10, PD8MD_11, 0, 0, 0, 0,
  1892. 0, 0, 0, 0, 0, 0, 0, 0 }
  1893. },
  1894. { PINMUX_CFG_REG("PDCR1", 0xfffe386c, 16, 4) {
  1895. PD7MD_00, PD7MD_01, PD7MD_10, PD7MD_11, 0, 0, 0, 0,
  1896. 0, 0, 0, 0, 0, 0, 0, 0,
  1897. PD6MD_00, PD6MD_01, PD6MD_10, PD6MD_11, 0, 0, 0, 0,
  1898. 0, 0, 0, 0, 0, 0, 0, 0,
  1899. PD5MD_00, PD5MD_01, PD5MD_10, PD5MD_11, 0, 0, 0, 0,
  1900. 0, 0, 0, 0, 0, 0, 0, 0,
  1901. PD4MD_00, PD4MD_01, PD4MD_10, PD4MD_11, 0, 0, 0, 0,
  1902. 0, 0, 0, 0, 0, 0, 0, 0 }
  1903. },
  1904. { PINMUX_CFG_REG("PDCR0", 0xfffe386e, 16, 4) {
  1905. PD3MD_00, PD3MD_01, PD3MD_10, PD3MD_11, 0, 0, 0, 0,
  1906. 0, 0, 0, 0, 0, 0, 0, 0,
  1907. PD2MD_00, PD2MD_01, PD2MD_10, PD2MD_11, 0, 0, 0, 0,
  1908. 0, 0, 0, 0, 0, 0, 0, 0,
  1909. PD1MD_00, PD1MD_01, PD1MD_10, PD1MD_11, 0, 0, 0, 0,
  1910. 0, 0, 0, 0, 0, 0, 0, 0,
  1911. PD0MD_00, PD0MD_01, PD0MD_10, PD0MD_11, 0, 0, 0, 0,
  1912. 0, 0, 0, 0, 0, 0, 0, 0 }
  1913. },
  1914. { PINMUX_CFG_REG("PDIOR0", 0xfffe3872, 16, 1) {
  1915. PD15_IN, PD15_OUT,
  1916. PD14_IN, PD14_OUT,
  1917. PD13_IN, PD13_OUT,
  1918. PD12_IN, PD12_OUT,
  1919. PD11_IN, PD11_OUT,
  1920. PD10_IN, PD10_OUT,
  1921. PD9_IN, PD9_OUT,
  1922. PD8_IN, PD8_OUT,
  1923. PD7_IN, PD7_OUT,
  1924. PD6_IN, PD6_OUT,
  1925. PD5_IN, PD5_OUT,
  1926. PD4_IN, PD4_OUT,
  1927. PD3_IN, PD3_OUT,
  1928. PD2_IN, PD2_OUT,
  1929. PD1_IN, PD1_OUT,
  1930. PD0_IN, PD0_OUT }
  1931. },
  1932. { PINMUX_CFG_REG("PECR1", 0xfffe388c, 16, 4) {
  1933. PE7MD_00, PE7MD_01, PE7MD_10, PE7MD_11, 0, 0, 0, 0,
  1934. 0, 0, 0, 0, 0, 0, 0, 0,
  1935. PE6MD_00, PE6MD_01, PE6MD_10, PE6MD_11, 0, 0, 0, 0,
  1936. 0, 0, 0, 0, 0, 0, 0, 0,
  1937. PE5MD_00, PE5MD_01, PE5MD_10, PE5MD_11, 0, 0, 0, 0,
  1938. 0, 0, 0, 0, 0, 0, 0, 0,
  1939. PE4MD_00, PE4MD_01, PE4MD_10, PE4MD_11, 0, 0, 0, 0,
  1940. 0, 0, 0, 0, 0, 0, 0, 0 }
  1941. },
  1942. { PINMUX_CFG_REG("PECR0", 0xfffe388e, 16, 4) {
  1943. PE3MD_000, PE3MD_001, PE3MD_010, PE3MD_011,
  1944. PE3MD_100, PE3MD_101, PE3MD_110, PE3MD_111,
  1945. 0, 0, 0, 0, 0, 0, 0, 0,
  1946. PE2MD_000, PE2MD_001, PE2MD_010, PE2MD_011,
  1947. PE2MD_100, PE2MD_101, PE2MD_110, PE2MD_111,
  1948. 0, 0, 0, 0, 0, 0, 0, 0,
  1949. PE1MD_000, PE1MD_001, PE1MD_010, PE1MD_011,
  1950. PE1MD_100, PE1MD_101, PE1MD_110, PE1MD_111,
  1951. 0, 0, 0, 0, 0, 0, 0, 0,
  1952. PE0MD_00, PE0MD_01, PE0MD_10, PE0MD_11, 0, 0, 0, 0,
  1953. 0, 0, 0, 0, 0, 0, 0, 0 }
  1954. },
  1955. { PINMUX_CFG_REG("PEIOR0", 0xfffe3892, 16, 1) {
  1956. 0, 0, 0, 0, 0, 0, 0, 0,
  1957. 0, 0, 0, 0, 0, 0, 0, 0,
  1958. PE7_IN, PE7_OUT,
  1959. PE6_IN, PE6_OUT,
  1960. PE5_IN, PE5_OUT,
  1961. PE4_IN, PE4_OUT,
  1962. PE3_IN, PE3_OUT,
  1963. PE2_IN, PE2_OUT,
  1964. PE1_IN, PE1_OUT,
  1965. PE0_IN, PE0_OUT }
  1966. },
  1967. { PINMUX_CFG_REG("PFCR6", 0xfffe38a2, 16, 4) {
  1968. PF23MD_000, PF23MD_001, PF23MD_010, PF23MD_011,
  1969. PF23MD_100, PF23MD_101, PF23MD_110, PF23MD_111,
  1970. 0, 0, 0, 0, 0, 0, 0, 0,
  1971. PF22MD_000, PF22MD_001, PF22MD_010, PF22MD_011,
  1972. PF22MD_100, PF22MD_101, PF22MD_110, PF22MD_111,
  1973. 0, 0, 0, 0, 0, 0, 0, 0,
  1974. PF21MD_000, PF21MD_001, PF21MD_010, PF21MD_011,
  1975. PF21MD_100, PF21MD_101, PF21MD_110, PF21MD_111,
  1976. 0, 0, 0, 0, 0, 0, 0, 0,
  1977. PF20MD_000, PF20MD_001, PF20MD_010, PF20MD_011,
  1978. PF20MD_100, PF20MD_101, PF20MD_110, PF20MD_111,
  1979. 0, 0, 0, 0, 0, 0, 0, 0 }
  1980. },
  1981. { PINMUX_CFG_REG("PFCR5", 0xfffe38a4, 16, 4) {
  1982. PF19MD_000, PF19MD_001, PF19MD_010, PF19MD_011,
  1983. PF19MD_100, PF19MD_101, PF19MD_110, PF19MD_111,
  1984. 0, 0, 0, 0, 0, 0, 0, 0,
  1985. PF18MD_000, PF18MD_001, PF18MD_010, PF18MD_011,
  1986. PF18MD_100, PF18MD_101, PF18MD_110, PF18MD_111,
  1987. 0, 0, 0, 0, 0, 0, 0, 0,
  1988. PF17MD_000, PF17MD_001, PF17MD_010, PF17MD_011,
  1989. PF17MD_100, PF17MD_101, PF17MD_110, PF17MD_111,
  1990. 0, 0, 0, 0, 0, 0, 0, 0,
  1991. PF16MD_000, PF16MD_001, PF16MD_010, PF16MD_011,
  1992. PF16MD_100, PF16MD_101, PF16MD_110, PF16MD_111,
  1993. 0, 0, 0, 0, 0, 0, 0, 0 }
  1994. },
  1995. { PINMUX_CFG_REG("PFCR4", 0xfffe38a6, 16, 4) {
  1996. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1997. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1998. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1999. PF15MD_000, PF15MD_001, PF15MD_010, PF15MD_011,
  2000. PF15MD_100, PF15MD_101, PF15MD_110, PF15MD_111,
  2001. 0, 0, 0, 0, 0, 0, 0, 0 }
  2002. },
  2003. { PINMUX_CFG_REG("PFCR3", 0xfffe38a8, 16, 4) {
  2004. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  2005. PF14MD_000, PF14MD_001, PF14MD_010, PF14MD_011,
  2006. PF14MD_100, PF14MD_101, PF14MD_110, PF14MD_111,
  2007. 0, 0, 0, 0, 0, 0, 0, 0,
  2008. PF13MD_000, PF13MD_001, PF13MD_010, PF13MD_011,
  2009. PF13MD_100, PF13MD_101, PF13MD_110, PF13MD_111,
  2010. 0, 0, 0, 0, 0, 0, 0, 0,
  2011. PF12MD_000, PF12MD_001, PF12MD_010, PF12MD_011,
  2012. PF12MD_100, PF12MD_101, PF12MD_110, PF12MD_111,
  2013. 0, 0, 0, 0, 0, 0, 0, 0 }
  2014. },
  2015. { PINMUX_CFG_REG("PFCR2", 0xfffe38aa, 16, 4) {
  2016. PF11MD_000, PF11MD_001, PF11MD_010, PF11MD_011,
  2017. PF11MD_100, PF11MD_101, PF11MD_110, PF11MD_111,
  2018. 0, 0, 0, 0, 0, 0, 0, 0,
  2019. PF10MD_000, PF10MD_001, PF10MD_010, PF10MD_011,
  2020. PF10MD_100, PF10MD_101, PF10MD_110, PF10MD_111,
  2021. 0, 0, 0, 0, 0, 0, 0, 0,
  2022. PF9MD_000, PF9MD_001, PF9MD_010, PF9MD_011,
  2023. PF9MD_100, PF9MD_101, PF9MD_110, PF9MD_111,
  2024. 0, 0, 0, 0, 0, 0, 0, 0,
  2025. PF8MD_000, PF8MD_001, PF8MD_010, PF8MD_011,
  2026. PF8MD_100, PF8MD_101, PF8MD_110, PF8MD_111,
  2027. 0, 0, 0, 0, 0, 0, 0, 0 }
  2028. },
  2029. { PINMUX_CFG_REG("PFCR1", 0xfffe38ac, 16, 4) {
  2030. PF7MD_000, PF7MD_001, PF7MD_010, PF7MD_011,
  2031. PF7MD_100, PF7MD_101, PF7MD_110, PF7MD_111,
  2032. 0, 0, 0, 0, 0, 0, 0, 0,
  2033. PF6MD_000, PF6MD_001, PF6MD_010, PF6MD_011,
  2034. PF6MD_100, PF6MD_101, PF6MD_110, PF6MD_111,
  2035. 0, 0, 0, 0, 0, 0, 0, 0,
  2036. PF5MD_000, PF5MD_001, PF5MD_010, PF5MD_011,
  2037. PF5MD_100, PF5MD_101, PF5MD_110, PF5MD_111,
  2038. 0, 0, 0, 0, 0, 0, 0, 0,
  2039. PF4MD_000, PF4MD_001, PF4MD_010, PF4MD_011,
  2040. PF4MD_100, PF4MD_101, PF4MD_110, PF4MD_111,
  2041. 0, 0, 0, 0, 0, 0, 0, 0 }
  2042. },
  2043. { PINMUX_CFG_REG("PFCR0", 0xfffe38ae, 16, 4) {
  2044. PF3MD_000, PF3MD_001, PF3MD_010, PF3MD_011,
  2045. PF3MD_100, PF3MD_101, PF3MD_110, PF3MD_111,
  2046. 0, 0, 0, 0, 0, 0, 0, 0,
  2047. PF2MD_000, PF2MD_001, PF2MD_010, PF2MD_011,
  2048. PF2MD_100, PF2MD_101, PF2MD_110, PF2MD_111,
  2049. 0, 0, 0, 0, 0, 0, 0, 0,
  2050. PF1MD_000, PF1MD_001, PF1MD_010, PF1MD_011,
  2051. PF1MD_100, PF1MD_101, PF1MD_110, PF1MD_111,
  2052. 0, 0, 0, 0, 0, 0, 0, 0,
  2053. PF0MD_000, PF0MD_001, PF0MD_010, PF0MD_011,
  2054. PF0MD_100, PF0MD_101, PF0MD_110, PF0MD_111,
  2055. 0, 0, 0, 0, 0, 0, 0, 0 }
  2056. },
  2057. { PINMUX_CFG_REG("PFIOR1", 0xfffe38b0, 16, 1) {
  2058. 0, 0, 0, 0, 0, 0, 0, 0,
  2059. 0, 0, 0, 0, 0, 0, 0, 0,
  2060. PF23_IN, PF23_OUT,
  2061. PF22_IN, PF22_OUT,
  2062. PF21_IN, PF21_OUT,
  2063. PF20_IN, PF20_OUT,
  2064. PF19_IN, PF19_OUT,
  2065. PF18_IN, PF18_OUT,
  2066. PF17_IN, PF17_OUT,
  2067. PF16_IN, PF16_OUT }
  2068. },
  2069. { PINMUX_CFG_REG("PFIOR0", 0xfffe38b2, 16, 1) {
  2070. PF15_IN, PF15_OUT,
  2071. PF14_IN, PF14_OUT,
  2072. PF13_IN, PF13_OUT,
  2073. PF12_IN, PF12_OUT,
  2074. PF11_IN, PF11_OUT,
  2075. PF10_IN, PF10_OUT,
  2076. PF9_IN, PF9_OUT,
  2077. PF8_IN, PF8_OUT,
  2078. PF7_IN, PF7_OUT,
  2079. PF6_IN, PF6_OUT,
  2080. PF5_IN, PF5_OUT,
  2081. PF4_IN, PF4_OUT,
  2082. PF3_IN, PF3_OUT,
  2083. PF2_IN, PF2_OUT,
  2084. PF1_IN, PF1_OUT,
  2085. PF0_IN, PF0_OUT }
  2086. },
  2087. { PINMUX_CFG_REG("PGCR6", 0xfffe38c2, 16, 4) {
  2088. PG27MD_00, PG27MD_01, PG27MD_10, PG27MD_11, 0, 0, 0, 0,
  2089. 0, 0, 0, 0, 0, 0, 0, 0,
  2090. PG26MD_00, PG26MD_01, PG26MD_10, PG26MD_11, 0, 0, 0, 0,
  2091. 0, 0, 0, 0, 0, 0, 0, 0,
  2092. PG25MD_00, PG25MD_01, PG25MD_10, PG25MD_11, 0, 0, 0, 0,
  2093. 0, 0, 0, 0, 0, 0, 0, 0,
  2094. PG24MD_00, PG24MD_01, PG24MD_10, PG24MD_11, 0, 0, 0, 0,
  2095. 0, 0, 0, 0, 0, 0, 0, 0 }
  2096. },
  2097. { PINMUX_CFG_REG("PGCR5", 0xfffe38c4, 16, 4) {
  2098. PG23MD_000, PG23MD_001, PG23MD_010, PG23MD_011,
  2099. PG23MD_100, PG23MD_101, PG23MD_110, PG23MD_111,
  2100. 0, 0, 0, 0, 0, 0, 0, 0,
  2101. PG22MD_000, PG22MD_001, PG22MD_010, PG22MD_011,
  2102. PG22MD_100, PG22MD_101, PG22MD_110, PG22MD_111,
  2103. 0, 0, 0, 0, 0, 0, 0, 0,
  2104. PG21MD_000, PG21MD_001, PG21MD_010, PG21MD_011,
  2105. PG21MD_100, PG21MD_101, PG21MD_110, PG21MD_111,
  2106. 0, 0, 0, 0, 0, 0, 0, 0,
  2107. PG20MD_000, PG20MD_001, PG20MD_010, PG20MD_011,
  2108. PG20MD_100, PG20MD_101, PG20MD_110, PG20MD_111,
  2109. 0, 0, 0, 0, 0, 0, 0, 0 }
  2110. },
  2111. { PINMUX_CFG_REG("PGCR4", 0xfffe38c6, 16, 4) {
  2112. PG19MD_000, PG19MD_001, PG19MD_010, PG19MD_011,
  2113. PG19MD_100, PG19MD_101, PG19MD_110, PG19MD_111,
  2114. 0, 0, 0, 0, 0, 0, 0, 0,
  2115. PG18MD_000, PG18MD_001, PG18MD_010, PG18MD_011,
  2116. PG18MD_100, PG18MD_101, PG18MD_110, PG18MD_111,
  2117. 0, 0, 0, 0, 0, 0, 0, 0,
  2118. PG17MD_00, PG17MD_01, PG17MD_10, PG17MD_11, 0, 0, 0, 0,
  2119. 0, 0, 0, 0, 0, 0, 0, 0,
  2120. PG16MD_00, PG16MD_01, PG16MD_10, PG16MD_11, 0, 0, 0, 0,
  2121. 0, 0, 0, 0, 0, 0, 0, 0 }
  2122. },
  2123. { PINMUX_CFG_REG("PGCR3", 0xfffe38c8, 16, 4) {
  2124. PG15MD_00, PG15MD_01, PG15MD_10, PG15MD_11, 0, 0, 0, 0,
  2125. 0, 0, 0, 0, 0, 0, 0, 0,
  2126. PG14MD_00, PG14MD_01, PG14MD_10, PG14MD_11, 0, 0, 0, 0,
  2127. 0, 0, 0, 0, 0, 0, 0, 0,
  2128. PG13MD_00, PG13MD_01, PG13MD_10, PG13MD_11, 0, 0, 0, 0,
  2129. 0, 0, 0, 0, 0, 0, 0, 0,
  2130. PG12MD_00, PG12MD_01, PG12MD_10, PG12MD_11, 0, 0, 0, 0,
  2131. 0, 0, 0, 0, 0, 0, 0, 0 }
  2132. },
  2133. { PINMUX_CFG_REG("PGCR2", 0xfffe38ca, 16, 4) {
  2134. PG11MD_000, PG11MD_001, PG11MD_010, PG11MD_011,
  2135. PG11MD_100, PG11MD_101, PG11MD_110, PG11MD_111,
  2136. 0, 0, 0, 0, 0, 0, 0, 0,
  2137. PG10MD_000, PG10MD_001, PG10MD_010, PG10MD_011,
  2138. PG10MD_100, PG10MD_101, PG10MD_110, PG10MD_111,
  2139. 0, 0, 0, 0, 0, 0, 0, 0,
  2140. PG9MD_000, PG9MD_001, PG9MD_010, PG9MD_011,
  2141. PG9MD_100, PG9MD_101, PG9MD_110, PG9MD_111,
  2142. 0, 0, 0, 0, 0, 0, 0, 0,
  2143. PG8MD_000, PG8MD_001, PG8MD_010, PG8MD_011,
  2144. PG8MD_100, PG8MD_101, PG8MD_110, PG8MD_111,
  2145. 0, 0, 0, 0, 0, 0, 0, 0 }
  2146. },
  2147. { PINMUX_CFG_REG("PGCR1", 0xfffe38cc, 16, 4) {
  2148. PG7MD_000, PG7MD_001, PG7MD_010, PG7MD_011,
  2149. PG7MD_100, PG7MD_101, PG7MD_110, PG7MD_111,
  2150. 0, 0, 0, 0, 0, 0, 0, 0,
  2151. PG6MD_000, PG6MD_001, PG6MD_010, PG6MD_011,
  2152. PG6MD_100, PG6MD_101, PG6MD_110, PG6MD_111,
  2153. 0, 0, 0, 0, 0, 0, 0, 0,
  2154. PG5MD_000, PG5MD_001, PG5MD_010, PG5MD_011,
  2155. PG5MD_100, PG5MD_101, PG5MD_110, PG5MD_111,
  2156. 0, 0, 0, 0, 0, 0, 0, 0,
  2157. PG4MD_000, PG4MD_001, PG4MD_010, PG4MD_011,
  2158. PG4MD_100, PG4MD_101, PG4MD_110, PG4MD_111,
  2159. 0, 0, 0, 0, 0, 0, 0, 0 }
  2160. },
  2161. { PINMUX_CFG_REG("PGCR0", 0xfffe38ce, 16, 4) {
  2162. PG3MD_000, PG3MD_001, PG3MD_010, PG3MD_011,
  2163. PG3MD_100, PG3MD_101, PG3MD_110, PG3MD_111,
  2164. 0, 0, 0, 0, 0, 0, 0, 0,
  2165. PG2MD_000, PG2MD_001, PG2MD_010, PG2MD_011,
  2166. PG2MD_100, PG2MD_101, PG2MD_110, PG2MD_111,
  2167. 0, 0, 0, 0, 0, 0, 0, 0,
  2168. PG1MD_000, PG1MD_001, PG1MD_010, PG1MD_011,
  2169. PG1MD_100, PG1MD_101, PG1MD_110, PG1MD_111,
  2170. 0, 0, 0, 0, 0, 0, 0, 0,
  2171. PG0MD_000, PG0MD_001, PG0MD_010, PG0MD_011,
  2172. PG0MD_100, PG0MD_101, PG0MD_110, PG0MD_111,
  2173. 0, 0, 0, 0, 0, 0, 0, 0 }
  2174. },
  2175. { PINMUX_CFG_REG("PGIOR1", 0xfffe38d0, 16, 1) {
  2176. 0, 0, 0, 0, 0, 0, 0, 0,
  2177. PG27_IN, PG27_OUT,
  2178. PG26_IN, PG26_OUT,
  2179. PG25_IN, PG25_OUT,
  2180. PG24_IN, PG24_OUT,
  2181. PG23_IN, PG23_OUT,
  2182. PG22_IN, PG22_OUT,
  2183. PG21_IN, PG21_OUT,
  2184. PG20_IN, PG20_OUT,
  2185. PG19_IN, PG19_OUT,
  2186. PG18_IN, PG18_OUT,
  2187. PG17_IN, PG17_OUT,
  2188. PG16_IN, PG16_OUT }
  2189. },
  2190. { PINMUX_CFG_REG("PGIOR0", 0xfffe38d2, 16, 1) {
  2191. PG15_IN, PG15_OUT,
  2192. PG14_IN, PG14_OUT,
  2193. PG13_IN, PG13_OUT,
  2194. PG12_IN, PG12_OUT,
  2195. PG11_IN, PG11_OUT,
  2196. PG10_IN, PG10_OUT,
  2197. PG9_IN, PG9_OUT,
  2198. PG8_IN, PG8_OUT,
  2199. PG7_IN, PG7_OUT,
  2200. PG6_IN, PG6_OUT,
  2201. PG5_IN, PG5_OUT,
  2202. PG4_IN, PG4_OUT,
  2203. PG3_IN, PG3_OUT,
  2204. PG2_IN, PG2_OUT,
  2205. PG1_IN, PG1_OUT,
  2206. PG0_IN, PG0_OUT }
  2207. },
  2208. { PINMUX_CFG_REG("PHCR1", 0xfffe38ec, 16, 4) {
  2209. PH7MD_00, PH7MD_01, PH7MD_10, PH7MD_11, 0, 0, 0, 0,
  2210. 0, 0, 0, 0, 0, 0, 0, 0,
  2211. PH6MD_00, PH6MD_01, PH6MD_10, PH6MD_11, 0, 0, 0, 0,
  2212. 0, 0, 0, 0, 0, 0, 0, 0,
  2213. PH5MD_00, PH5MD_01, PH5MD_10, PH5MD_11, 0, 0, 0, 0,
  2214. 0, 0, 0, 0, 0, 0, 0, 0,
  2215. PH4MD_00, PH4MD_01, PH4MD_10, PH4MD_11, 0, 0, 0, 0,
  2216. 0, 0, 0, 0, 0, 0, 0, 0 }
  2217. },
  2218. { PINMUX_CFG_REG("PHCR0", 0xfffe38ee, 16, 4) {
  2219. PH3MD_00, PH3MD_01, PH3MD_10, PH3MD_11, 0, 0, 0, 0,
  2220. 0, 0, 0, 0, 0, 0, 0, 0,
  2221. PH2MD_00, PH2MD_01, PH2MD_10, PH2MD_11, 0, 0, 0, 0,
  2222. 0, 0, 0, 0, 0, 0, 0, 0,
  2223. PH1MD_00, PH1MD_01, PH1MD_10, PH1MD_11, 0, 0, 0, 0,
  2224. 0, 0, 0, 0, 0, 0, 0, 0,
  2225. PH0MD_00, PH0MD_01, PH0MD_10, PH0MD_11, 0, 0, 0, 0,
  2226. 0, 0, 0, 0, 0, 0, 0, 0 }
  2227. },
  2228. { PINMUX_CFG_REG("PJCR7", 0xfffe3900, 16, 4) {
  2229. PJ31MD_0, PJ31MD_1, 0, 0, 0, 0, 0, 0,
  2230. 0, 0, 0, 0, 0, 0, 0, 0,
  2231. PJ30MD_000, PJ30MD_001, PJ30MD_010, PJ30MD_011,
  2232. PJ30MD_100, PJ30MD_101, PJ30MD_110, PJ30MD_111,
  2233. 0, 0, 0, 0, 0, 0, 0, 0,
  2234. PJ29MD_000, PJ29MD_001, PJ29MD_010, PJ29MD_011,
  2235. PJ29MD_100, PJ29MD_101, PJ29MD_110, PJ29MD_111,
  2236. 0, 0, 0, 0, 0, 0, 0, 0,
  2237. PJ28MD_000, PJ28MD_001, PJ28MD_010, PJ28MD_011,
  2238. PJ28MD_100, PJ28MD_101, PJ28MD_110, PJ28MD_111,
  2239. 0, 0, 0, 0, 0, 0, 0, 0 }
  2240. },
  2241. { PINMUX_CFG_REG("PJCR6", 0xfffe3902, 16, 4) {
  2242. PJ27MD_000, PJ27MD_001, PJ27MD_010, PJ27MD_011,
  2243. PJ27MD_100, PJ27MD_101, PJ27MD_110, PJ27MD_111,
  2244. 0, 0, 0, 0, 0, 0, 0, 0,
  2245. PJ26MD_000, PJ26MD_001, PJ26MD_010, PJ26MD_011,
  2246. PJ26MD_100, PJ26MD_101, PJ26MD_110, PJ26MD_111,
  2247. 0, 0, 0, 0, 0, 0, 0, 0,
  2248. PJ25MD_000, PJ25MD_001, PJ25MD_010, PJ25MD_011,
  2249. PJ25MD_100, PJ25MD_101, PJ25MD_110, PJ25MD_111,
  2250. 0, 0, 0, 0, 0, 0, 0, 0,
  2251. PJ24MD_000, PJ24MD_001, PJ24MD_010, PJ24MD_011,
  2252. PJ24MD_100, PJ24MD_101, PJ24MD_110, PJ24MD_111,
  2253. 0, 0, 0, 0, 0, 0, 0, 0 }
  2254. },
  2255. { PINMUX_CFG_REG("PJCR5", 0xfffe3904, 16, 4) {
  2256. PJ23MD_000, PJ23MD_001, PJ23MD_010, PJ23MD_011,
  2257. PJ23MD_100, PJ23MD_101, PJ23MD_110, PJ23MD_111,
  2258. 0, 0, 0, 0, 0, 0, 0, 0,
  2259. PJ22MD_000, PJ22MD_001, PJ22MD_010, PJ22MD_011,
  2260. PJ22MD_100, PJ22MD_101, PJ22MD_110, PJ22MD_111,
  2261. 0, 0, 0, 0, 0, 0, 0, 0,
  2262. PJ21MD_000, PJ21MD_001, PJ21MD_010, PJ21MD_011,
  2263. PJ21MD_100, PJ21MD_101, PJ21MD_110, PJ21MD_111,
  2264. 0, 0, 0, 0, 0, 0, 0, 0,
  2265. PJ20MD_000, PJ20MD_001, PJ20MD_010, PJ20MD_011,
  2266. PJ20MD_100, PJ20MD_101, PJ20MD_110, PJ20MD_111,
  2267. 0, 0, 0, 0, 0, 0, 0, 0 }
  2268. },
  2269. { PINMUX_CFG_REG("PJCR4", 0xfffe3906, 16, 4) {
  2270. PJ19MD_000, PJ19MD_001, PJ19MD_010, PJ19MD_011,
  2271. PJ19MD_100, PJ19MD_101, PJ19MD_110, PJ19MD_111,
  2272. 0, 0, 0, 0, 0, 0, 0, 0,
  2273. PJ18MD_000, PJ18MD_001, PJ18MD_010, PJ18MD_011,
  2274. PJ18MD_100, PJ18MD_101, PJ18MD_110, PJ18MD_111,
  2275. 0, 0, 0, 0, 0, 0, 0, 0,
  2276. PJ17MD_000, PJ17MD_001, PJ17MD_010, PJ17MD_011,
  2277. PJ17MD_100, PJ17MD_101, PJ17MD_110, PJ17MD_111,
  2278. 0, 0, 0, 0, 0, 0, 0, 0,
  2279. PJ16MD_000, PJ16MD_001, PJ16MD_010, PJ16MD_011,
  2280. PJ16MD_100, PJ16MD_101, PJ16MD_110, PJ16MD_111,
  2281. 0, 0, 0, 0, 0, 0, 0, 0 }
  2282. },
  2283. { PINMUX_CFG_REG("PJCR3", 0xfffe3908, 16, 4) {
  2284. PJ15MD_000, PJ15MD_001, PJ15MD_010, PJ15MD_011,
  2285. PJ15MD_100, PJ15MD_101, PJ15MD_110, PJ15MD_111,
  2286. 0, 0, 0, 0, 0, 0, 0, 0,
  2287. PJ14MD_000, PJ14MD_001, PJ14MD_010, PJ14MD_011,
  2288. PJ14MD_100, PJ14MD_101, PJ14MD_110, PJ14MD_111,
  2289. 0, 0, 0, 0, 0, 0, 0, 0,
  2290. PJ13MD_000, PJ13MD_001, PJ13MD_010, PJ13MD_011,
  2291. PJ13MD_100, PJ13MD_101, PJ13MD_110, PJ13MD_111,
  2292. 0, 0, 0, 0, 0, 0, 0, 0,
  2293. PJ12MD_000, PJ12MD_001, PJ12MD_010, PJ12MD_011,
  2294. PJ12MD_100, PJ12MD_101, PJ12MD_110, PJ12MD_111,
  2295. 0, 0, 0, 0, 0, 0, 0, 0 }
  2296. },
  2297. { PINMUX_CFG_REG("PJCR2", 0xfffe390a, 16, 4) {
  2298. PJ11MD_000, PJ11MD_001, PJ11MD_010, PJ11MD_011,
  2299. PJ11MD_100, PJ11MD_101, PJ11MD_110, PJ11MD_111,
  2300. 0, 0, 0, 0, 0, 0, 0, 0,
  2301. PJ10MD_000, PJ10MD_001, PJ10MD_010, PJ10MD_011,
  2302. PJ10MD_100, PJ10MD_101, PJ10MD_110, PJ10MD_111,
  2303. 0, 0, 0, 0, 0, 0, 0, 0,
  2304. PJ9MD_000, PJ9MD_001, PJ9MD_010, PJ9MD_011,
  2305. PJ9MD_100, PJ9MD_101, PJ9MD_110, PJ9MD_111,
  2306. 0, 0, 0, 0, 0, 0, 0, 0,
  2307. PJ8MD_000, PJ8MD_001, PJ8MD_010, PJ8MD_011,
  2308. PJ8MD_100, PJ8MD_101, PJ8MD_110, PJ8MD_111,
  2309. 0, 0, 0, 0, 0, 0, 0, 0 }
  2310. },
  2311. { PINMUX_CFG_REG("PJCR1", 0xfffe390c, 16, 4) {
  2312. PJ7MD_000, PJ7MD_001, PJ7MD_010, PJ7MD_011,
  2313. PJ7MD_100, PJ7MD_101, PJ7MD_110, PJ7MD_111,
  2314. 0, 0, 0, 0, 0, 0, 0, 0,
  2315. PJ6MD_000, PJ6MD_001, PJ6MD_010, PJ6MD_011,
  2316. PJ6MD_100, PJ6MD_101, PJ6MD_110, PJ6MD_111,
  2317. 0, 0, 0, 0, 0, 0, 0, 0,
  2318. PJ5MD_000, PJ5MD_001, PJ5MD_010, PJ5MD_011,
  2319. PJ5MD_100, PJ5MD_101, PJ5MD_110, PJ5MD_111,
  2320. 0, 0, 0, 0, 0, 0, 0, 0,
  2321. PJ4MD_000, PJ4MD_001, PJ4MD_010, PJ4MD_011,
  2322. PJ4MD_100, PJ4MD_101, PJ4MD_110, PJ4MD_111,
  2323. 0, 0, 0, 0, 0, 0, 0, 0 }
  2324. },
  2325. { PINMUX_CFG_REG("PJCR0", 0xfffe390e, 16, 4) {
  2326. PJ3MD_000, PJ3MD_001, PJ3MD_010, PJ3MD_011,
  2327. PJ3MD_100, PJ3MD_101, PJ3MD_110, PJ3MD_111,
  2328. 0, 0, 0, 0, 0, 0, 0, 0,
  2329. PJ2MD_000, PJ2MD_001, PJ2MD_010, PJ2MD_011,
  2330. PJ2MD_100, PJ2MD_101, PJ2MD_110, PJ2MD_111,
  2331. 0, 0, 0, 0, 0, 0, 0, 0,
  2332. PJ1MD_000, PJ1MD_001, PJ1MD_010, PJ1MD_011,
  2333. PJ1MD_100, PJ1MD_101, PJ1MD_110, PJ1MD_111,
  2334. 0, 0, 0, 0, 0, 0, 0, 0,
  2335. PJ0MD_000, PJ0MD_001, PJ0MD_010, PJ0MD_011,
  2336. PJ0MD_100, PJ0MD_101, PJ0MD_110, PJ0MD_111,
  2337. 0, 0, 0, 0, 0, 0, 0, 0 }
  2338. },
  2339. { PINMUX_CFG_REG("PJIOR1", 0xfffe3910, 16, 1) {
  2340. PJ31_IN, PJ31_OUT,
  2341. PJ30_IN, PJ30_OUT,
  2342. PJ29_IN, PJ29_OUT,
  2343. PJ28_IN, PJ28_OUT,
  2344. PJ27_IN, PJ27_OUT,
  2345. PJ26_IN, PJ26_OUT,
  2346. PJ25_IN, PJ25_OUT,
  2347. PJ24_IN, PJ24_OUT,
  2348. PJ23_IN, PJ23_OUT,
  2349. PJ22_IN, PJ22_OUT,
  2350. PJ21_IN, PJ21_OUT,
  2351. PJ20_IN, PJ20_OUT,
  2352. PJ19_IN, PJ19_OUT,
  2353. PJ18_IN, PJ18_OUT,
  2354. PJ17_IN, PJ17_OUT,
  2355. PJ16_IN, PJ16_OUT }
  2356. },
  2357. { PINMUX_CFG_REG("PJIOR0", 0xfffe3912, 16, 1) {
  2358. PJ15_IN, PJ15_OUT,
  2359. PJ14_IN, PJ14_OUT,
  2360. PJ13_IN, PJ13_OUT,
  2361. PJ12_IN, PJ12_OUT,
  2362. PJ11_IN, PJ11_OUT,
  2363. PJ10_IN, PJ10_OUT,
  2364. PJ9_IN, PJ9_OUT,
  2365. PJ8_IN, PJ8_OUT,
  2366. PJ7_IN, PJ7_OUT,
  2367. PJ6_IN, PJ6_OUT,
  2368. PJ5_IN, PJ5_OUT,
  2369. PJ4_IN, PJ4_OUT,
  2370. PJ3_IN, PJ3_OUT,
  2371. PJ2_IN, PJ2_OUT,
  2372. PJ1_IN, PJ1_OUT,
  2373. PJ0_IN, PJ0_OUT }
  2374. },
  2375. {}
  2376. };
  2377. static const struct pinmux_data_reg pinmux_data_regs[] = {
  2378. { PINMUX_DATA_REG("PADR0", 0xfffe3816, 16) {
  2379. 0, 0, 0, 0, 0, 0, 0, PA1_DATA,
  2380. 0, 0, 0, 0, 0, 0, 0, PA0_DATA }
  2381. },
  2382. { PINMUX_DATA_REG("PBDR1", 0xfffe3834, 16) {
  2383. 0, 0, 0, 0, 0, 0, 0, 0,
  2384. 0, PB22_DATA, PB21_DATA, PB20_DATA,
  2385. PB19_DATA, PB18_DATA, PB17_DATA, PB16_DATA }
  2386. },
  2387. { PINMUX_DATA_REG("PBDR0", 0xfffe3836, 16) {
  2388. PB15_DATA, PB14_DATA, PB13_DATA, PB12_DATA,
  2389. PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA,
  2390. PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA,
  2391. PB3_DATA, PB2_DATA, PB1_DATA, 0 }
  2392. },
  2393. { PINMUX_DATA_REG("PCDR0", 0xfffe3856, 16) {
  2394. 0, 0, 0, 0,
  2395. 0, 0, 0, PC8_DATA,
  2396. PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA,
  2397. PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA }
  2398. },
  2399. { PINMUX_DATA_REG("PDDR0", 0xfffe3876, 16) {
  2400. PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA,
  2401. PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA,
  2402. PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA,
  2403. PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA }
  2404. },
  2405. { PINMUX_DATA_REG("PEDR0", 0xfffe3896, 16) {
  2406. 0, 0, 0, 0, 0, 0, 0, 0,
  2407. PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA,
  2408. PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA }
  2409. },
  2410. { PINMUX_DATA_REG("PFDR1", 0xfffe38b4, 16) {
  2411. 0, 0, 0, 0, 0, 0, 0, 0,
  2412. PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA,
  2413. PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA }
  2414. },
  2415. { PINMUX_DATA_REG("PFDR0", 0xfffe38b6, 16) {
  2416. PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA,
  2417. PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA,
  2418. PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA,
  2419. PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA }
  2420. },
  2421. { PINMUX_DATA_REG("PGDR1", 0xfffe38d4, 16) {
  2422. 0, 0, 0, 0,
  2423. PG27_DATA, PG26_DATA, PG25_DATA, PG24_DATA,
  2424. PG23_DATA, PG22_DATA, PG21_DATA, PG20_DATA,
  2425. PG19_DATA, PG18_DATA, PG17_DATA, PG16_DATA }
  2426. },
  2427. { PINMUX_DATA_REG("PGDR0", 0xfffe38d6, 16) {
  2428. PG15_DATA, PG14_DATA, PG13_DATA, PG12_DATA,
  2429. PG11_DATA, PG10_DATA, PG9_DATA, PG8_DATA,
  2430. PG7_DATA, PG6_DATA, PG5_DATA, PG4_DATA,
  2431. PG3_DATA, PG2_DATA, PG1_DATA, PG0_DATA }
  2432. },
  2433. { PINMUX_DATA_REG("PJDR1", 0xfffe3914, 16) {
  2434. PJ31_DATA, PJ30_DATA, PJ29_DATA, PJ28_DATA,
  2435. PJ27_DATA, PJ26_DATA, PJ25_DATA, PJ24_DATA,
  2436. PJ23_DATA, PJ22_DATA, PJ21_DATA, PJ20_DATA,
  2437. PJ19_DATA, PJ18_DATA, PJ17_DATA, PJ16_DATA }
  2438. },
  2439. { PINMUX_DATA_REG("PJDR0", 0xfffe3916, 16) {
  2440. PJ15_DATA, PJ14_DATA, PJ13_DATA, PJ12_DATA,
  2441. PJ11_DATA, PJ10_DATA, PJ9_DATA, PJ8_DATA,
  2442. PJ7_DATA, PJ6_DATA, PJ5_DATA, PJ4_DATA,
  2443. PJ3_DATA, PJ2_DATA, PJ1_DATA, PJ0_DATA }
  2444. },
  2445. { }
  2446. };
  2447. const struct sh_pfc_soc_info sh7269_pinmux_info = {
  2448. .name = "sh7269_pfc",
  2449. .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END, FORCE_IN },
  2450. .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END, FORCE_OUT },
  2451. .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
  2452. .pins = pinmux_pins,
  2453. .nr_pins = ARRAY_SIZE(pinmux_pins),
  2454. .func_gpios = pinmux_func_gpios,
  2455. .nr_func_gpios = ARRAY_SIZE(pinmux_func_gpios),
  2456. .cfg_regs = pinmux_config_regs,
  2457. .data_regs = pinmux_data_regs,
  2458. .pinmux_data = pinmux_data,
  2459. .pinmux_data_size = ARRAY_SIZE(pinmux_data),
  2460. };