pfc-sh7203.c 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592
  1. /*
  2. * SH7203 Pinmux
  3. *
  4. * Copyright (C) 2008 Magnus Damm
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. */
  10. #include <linux/kernel.h>
  11. #include <linux/gpio.h>
  12. #include <cpu/sh7203.h>
  13. #include "sh_pfc.h"
  14. enum {
  15. PINMUX_RESERVED = 0,
  16. PINMUX_DATA_BEGIN,
  17. PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA,
  18. PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA,
  19. PB12_DATA,
  20. PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA,
  21. PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA,
  22. PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA,
  23. PC14_DATA, PC13_DATA, PC12_DATA,
  24. PC11_DATA, PC10_DATA, PC9_DATA, PC8_DATA,
  25. PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA,
  26. PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA,
  27. PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA,
  28. PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA,
  29. PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA,
  30. PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA,
  31. PE15_DATA, PE14_DATA, PE13_DATA, PE12_DATA,
  32. PE11_DATA, PE10_DATA, PE9_DATA, PE8_DATA,
  33. PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA,
  34. PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA,
  35. PF30_DATA, PF29_DATA, PF28_DATA,
  36. PF27_DATA, PF26_DATA, PF25_DATA, PF24_DATA,
  37. PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA,
  38. PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA,
  39. PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA,
  40. PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA,
  41. PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA,
  42. PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA,
  43. PINMUX_DATA_END,
  44. PINMUX_INPUT_BEGIN,
  45. FORCE_IN,
  46. PA7_IN, PA6_IN, PA5_IN, PA4_IN,
  47. PA3_IN, PA2_IN, PA1_IN, PA0_IN,
  48. PB11_IN, PB10_IN, PB9_IN, PB8_IN,
  49. PC14_IN, PC13_IN, PC12_IN,
  50. PC11_IN, PC10_IN, PC9_IN, PC8_IN,
  51. PC7_IN, PC6_IN, PC5_IN, PC4_IN,
  52. PC3_IN, PC2_IN, PC1_IN, PC0_IN,
  53. PD15_IN, PD14_IN, PD13_IN, PD12_IN,
  54. PD11_IN, PD10_IN, PD9_IN, PD8_IN,
  55. PD7_IN, PD6_IN, PD5_IN, PD4_IN,
  56. PD3_IN, PD2_IN, PD1_IN, PD0_IN,
  57. PE15_IN, PE14_IN, PE13_IN, PE12_IN,
  58. PE11_IN, PE10_IN, PE9_IN, PE8_IN,
  59. PE7_IN, PE6_IN, PE5_IN, PE4_IN,
  60. PE3_IN, PE2_IN, PE1_IN, PE0_IN,
  61. PF30_IN, PF29_IN, PF28_IN,
  62. PF27_IN, PF26_IN, PF25_IN, PF24_IN,
  63. PF23_IN, PF22_IN, PF21_IN, PF20_IN,
  64. PF19_IN, PF18_IN, PF17_IN, PF16_IN,
  65. PF15_IN, PF14_IN, PF13_IN, PF12_IN,
  66. PF11_IN, PF10_IN, PF9_IN, PF8_IN,
  67. PF7_IN, PF6_IN, PF5_IN, PF4_IN,
  68. PF3_IN, PF2_IN, PF1_IN, PF0_IN,
  69. PINMUX_INPUT_END,
  70. PINMUX_OUTPUT_BEGIN,
  71. FORCE_OUT,
  72. PB11_OUT, PB10_OUT, PB9_OUT, PB8_OUT,
  73. PC14_OUT, PC13_OUT, PC12_OUT,
  74. PC11_OUT, PC10_OUT, PC9_OUT, PC8_OUT,
  75. PC7_OUT, PC6_OUT, PC5_OUT, PC4_OUT,
  76. PC3_OUT, PC2_OUT, PC1_OUT, PC0_OUT,
  77. PD15_OUT, PD14_OUT, PD13_OUT, PD12_OUT,
  78. PD11_OUT, PD10_OUT, PD9_OUT, PD8_OUT,
  79. PD7_OUT, PD6_OUT, PD5_OUT, PD4_OUT,
  80. PD3_OUT, PD2_OUT, PD1_OUT, PD0_OUT,
  81. PE15_OUT, PE14_OUT, PE13_OUT, PE12_OUT,
  82. PE11_OUT, PE10_OUT, PE9_OUT, PE8_OUT,
  83. PE7_OUT, PE6_OUT, PE5_OUT, PE4_OUT,
  84. PE3_OUT, PE2_OUT, PE1_OUT, PE0_OUT,
  85. PF30_OUT, PF29_OUT, PF28_OUT,
  86. PF27_OUT, PF26_OUT, PF25_OUT, PF24_OUT,
  87. PF23_OUT, PF22_OUT, PF21_OUT, PF20_OUT,
  88. PF19_OUT, PF18_OUT, PF17_OUT, PF16_OUT,
  89. PF15_OUT, PF14_OUT, PF13_OUT, PF12_OUT,
  90. PF11_OUT, PF10_OUT, PF9_OUT, PF8_OUT,
  91. PF7_OUT, PF6_OUT, PF5_OUT, PF4_OUT,
  92. PF3_OUT, PF2_OUT, PF1_OUT, PF0_OUT,
  93. PINMUX_OUTPUT_END,
  94. PINMUX_FUNCTION_BEGIN,
  95. PB11_IOR_IN, PB11_IOR_OUT,
  96. PB10_IOR_IN, PB10_IOR_OUT,
  97. PB9_IOR_IN, PB9_IOR_OUT,
  98. PB8_IOR_IN, PB8_IOR_OUT,
  99. PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11,
  100. PB11MD_0, PB11MD_1,
  101. PB10MD_0, PB10MD_1,
  102. PB9MD_00, PB9MD_01, PB9MD_10,
  103. PB8MD_00, PB8MD_01, PB8MD_10,
  104. PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11,
  105. PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11,
  106. PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11,
  107. PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11,
  108. PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11,
  109. PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11,
  110. PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11,
  111. PB0MD_00, PB0MD_01, PB0MD_10, PB0MD_11,
  112. PB12IRQ_00, PB12IRQ_01, PB12IRQ_10,
  113. PC14MD_0, PC14MD_1,
  114. PC13MD_0, PC13MD_1,
  115. PC12MD_0, PC12MD_1,
  116. PC11MD_00, PC11MD_01, PC11MD_10,
  117. PC10MD_00, PC10MD_01, PC10MD_10,
  118. PC9MD_0, PC9MD_1,
  119. PC8MD_0, PC8MD_1,
  120. PC7MD_0, PC7MD_1,
  121. PC6MD_0, PC6MD_1,
  122. PC5MD_0, PC5MD_1,
  123. PC4MD_0, PC4MD_1,
  124. PC3MD_0, PC3MD_1,
  125. PC2MD_0, PC2MD_1,
  126. PC1MD_0, PC1MD_1,
  127. PC0MD_00, PC0MD_01, PC0MD_10,
  128. PD15MD_000, PD15MD_001, PD15MD_010, PD15MD_100, PD15MD_101,
  129. PD14MD_000, PD14MD_001, PD14MD_010, PD14MD_101,
  130. PD13MD_000, PD13MD_001, PD13MD_010, PD13MD_100, PD13MD_101,
  131. PD12MD_000, PD12MD_001, PD12MD_010, PD12MD_100, PD12MD_101,
  132. PD11MD_000, PD11MD_001, PD11MD_010, PD11MD_100, PD11MD_101,
  133. PD10MD_000, PD10MD_001, PD10MD_010, PD10MD_100, PD10MD_101,
  134. PD9MD_000, PD9MD_001, PD9MD_010, PD9MD_100, PD9MD_101,
  135. PD8MD_000, PD8MD_001, PD8MD_010, PD8MD_100, PD8MD_101,
  136. PD7MD_000, PD7MD_001, PD7MD_010, PD7MD_011, PD7MD_100, PD7MD_101,
  137. PD6MD_000, PD6MD_001, PD6MD_010, PD6MD_011, PD6MD_100, PD6MD_101,
  138. PD5MD_000, PD5MD_001, PD5MD_010, PD5MD_011, PD5MD_100, PD5MD_101,
  139. PD4MD_000, PD4MD_001, PD4MD_010, PD4MD_011, PD4MD_100, PD4MD_101,
  140. PD3MD_000, PD3MD_001, PD3MD_010, PD3MD_011, PD3MD_100, PD3MD_101,
  141. PD2MD_000, PD2MD_001, PD2MD_010, PD2MD_011, PD2MD_100, PD2MD_101,
  142. PD1MD_000, PD1MD_001, PD1MD_010, PD1MD_011, PD1MD_100, PD1MD_101,
  143. PD0MD_000, PD0MD_001, PD0MD_010, PD0MD_011, PD0MD_100, PD0MD_101,
  144. PE15MD_00, PE15MD_01, PE15MD_11,
  145. PE14MD_00, PE14MD_01, PE14MD_11,
  146. PE13MD_00, PE13MD_11,
  147. PE12MD_00, PE12MD_11,
  148. PE11MD_000, PE11MD_001, PE11MD_010, PE11MD_100,
  149. PE10MD_000, PE10MD_001, PE10MD_010, PE10MD_100,
  150. PE9MD_00, PE9MD_01, PE9MD_10, PE9MD_11,
  151. PE8MD_00, PE8MD_01, PE8MD_10, PE8MD_11,
  152. PE7MD_000, PE7MD_001, PE7MD_010, PE7MD_011, PE7MD_100,
  153. PE6MD_000, PE6MD_001, PE6MD_010, PE6MD_011, PE6MD_100,
  154. PE5MD_000, PE5MD_001, PE5MD_010, PE5MD_011, PE5MD_100,
  155. PE4MD_000, PE4MD_001, PE4MD_010, PE4MD_011, PE4MD_100,
  156. PE3MD_00, PE3MD_01, PE3MD_11,
  157. PE2MD_00, PE2MD_01, PE2MD_11,
  158. PE1MD_00, PE1MD_01, PE1MD_10, PE1MD_11,
  159. PE0MD_000, PE0MD_001, PE0MD_011, PE0MD_100,
  160. PF30MD_0, PF30MD_1,
  161. PF29MD_0, PF29MD_1,
  162. PF28MD_0, PF28MD_1,
  163. PF27MD_0, PF27MD_1,
  164. PF26MD_0, PF26MD_1,
  165. PF25MD_0, PF25MD_1,
  166. PF24MD_0, PF24MD_1,
  167. PF23MD_00, PF23MD_01, PF23MD_10,
  168. PF22MD_00, PF22MD_01, PF22MD_10,
  169. PF21MD_00, PF21MD_01, PF21MD_10,
  170. PF20MD_00, PF20MD_01, PF20MD_10,
  171. PF19MD_00, PF19MD_01, PF19MD_10,
  172. PF18MD_00, PF18MD_01, PF18MD_10,
  173. PF17MD_00, PF17MD_01, PF17MD_10,
  174. PF16MD_00, PF16MD_01, PF16MD_10,
  175. PF15MD_00, PF15MD_01, PF15MD_10,
  176. PF14MD_00, PF14MD_01, PF14MD_10,
  177. PF13MD_00, PF13MD_01, PF13MD_10,
  178. PF12MD_00, PF12MD_01, PF12MD_10,
  179. PF11MD_00, PF11MD_01, PF11MD_10,
  180. PF10MD_00, PF10MD_01, PF10MD_10,
  181. PF9MD_00, PF9MD_01, PF9MD_10,
  182. PF8MD_00, PF8MD_01, PF8MD_10,
  183. PF7MD_00, PF7MD_01, PF7MD_10, PF7MD_11,
  184. PF6MD_00, PF6MD_01, PF6MD_10, PF6MD_11,
  185. PF5MD_00, PF5MD_01, PF5MD_10, PF5MD_11,
  186. PF4MD_00, PF4MD_01, PF4MD_10, PF4MD_11,
  187. PF3MD_00, PF3MD_01, PF3MD_10, PF3MD_11,
  188. PF2MD_00, PF2MD_01, PF2MD_10, PF2MD_11,
  189. PF1MD_00, PF1MD_01, PF1MD_10, PF1MD_11,
  190. PF0MD_00, PF0MD_01, PF0MD_10, PF0MD_11,
  191. PINMUX_FUNCTION_END,
  192. PINMUX_MARK_BEGIN,
  193. PINT7_PB_MARK, PINT6_PB_MARK, PINT5_PB_MARK, PINT4_PB_MARK,
  194. PINT3_PB_MARK, PINT2_PB_MARK, PINT1_PB_MARK, PINT0_PB_MARK,
  195. PINT7_PD_MARK, PINT6_PD_MARK, PINT5_PD_MARK, PINT4_PD_MARK,
  196. PINT3_PD_MARK, PINT2_PD_MARK, PINT1_PD_MARK, PINT0_PD_MARK,
  197. IRQ7_PB_MARK, IRQ6_PB_MARK, IRQ5_PB_MARK, IRQ4_PB_MARK,
  198. IRQ3_PB_MARK, IRQ2_PB_MARK, IRQ1_PB_MARK, IRQ0_PB_MARK,
  199. IRQ7_PD_MARK, IRQ6_PD_MARK, IRQ5_PD_MARK, IRQ4_PD_MARK,
  200. IRQ3_PD_MARK, IRQ2_PD_MARK, IRQ1_PD_MARK, IRQ0_PD_MARK,
  201. IRQ7_PE_MARK, IRQ6_PE_MARK, IRQ5_PE_MARK, IRQ4_PE_MARK,
  202. IRQ3_PE_MARK, IRQ2_PE_MARK, IRQ1_PE_MARK, IRQ0_PE_MARK,
  203. WDTOVF_MARK, IRQOUT_MARK, REFOUT_MARK, IRQOUT_REFOUT_MARK,
  204. UBCTRG_MARK,
  205. CTX1_MARK, CRX1_MARK, CTX0_MARK, CTX0_CTX1_MARK,
  206. CRX0_MARK, CRX0_CRX1_MARK,
  207. SDA3_MARK, SCL3_MARK,
  208. SDA2_MARK, SCL2_MARK,
  209. SDA1_MARK, SCL1_MARK,
  210. SDA0_MARK, SCL0_MARK,
  211. TEND0_PD_MARK, TEND0_PE_MARK, DACK0_PD_MARK, DACK0_PE_MARK,
  212. DREQ0_PD_MARK, DREQ0_PE_MARK, TEND1_PD_MARK, TEND1_PE_MARK,
  213. DACK1_PD_MARK, DACK1_PE_MARK, DREQ1_PD_MARK, DREQ1_PE_MARK,
  214. DACK2_MARK, DREQ2_MARK, DACK3_MARK, DREQ3_MARK,
  215. ADTRG_PD_MARK, ADTRG_PE_MARK,
  216. D31_MARK, D30_MARK, D29_MARK, D28_MARK,
  217. D27_MARK, D26_MARK, D25_MARK, D24_MARK,
  218. D23_MARK, D22_MARK, D21_MARK, D20_MARK,
  219. D19_MARK, D18_MARK, D17_MARK, D16_MARK,
  220. A25_MARK, A24_MARK, A23_MARK, A22_MARK,
  221. A21_MARK, CS4_MARK, MRES_MARK, BS_MARK,
  222. IOIS16_MARK, CS1_MARK, CS6_CE1B_MARK, CE2B_MARK,
  223. CS5_CE1A_MARK, CE2A_MARK, FRAME_MARK, WAIT_MARK,
  224. RDWR_MARK, CKE_MARK, CASU_MARK, BREQ_MARK,
  225. RASU_MARK, BACK_MARK, CASL_MARK, RASL_MARK,
  226. WE3_DQMUU_AH_ICIO_WR_MARK, WE2_DQMUL_ICIORD_MARK,
  227. WE1_DQMLU_WE_MARK, WE0_DQMLL_MARK,
  228. CS3_MARK, CS2_MARK, A1_MARK, A0_MARK, CS7_MARK,
  229. TIOC4D_MARK, TIOC4C_MARK, TIOC4B_MARK, TIOC4A_MARK,
  230. TIOC3D_MARK, TIOC3C_MARK, TIOC3B_MARK, TIOC3A_MARK,
  231. TIOC2B_MARK, TIOC1B_MARK, TIOC2A_MARK, TIOC1A_MARK,
  232. TIOC0D_MARK, TIOC0C_MARK, TIOC0B_MARK, TIOC0A_MARK,
  233. TCLKD_PD_MARK, TCLKC_PD_MARK, TCLKB_PD_MARK, TCLKA_PD_MARK,
  234. TCLKD_PF_MARK, TCLKC_PF_MARK, TCLKB_PF_MARK, TCLKA_PF_MARK,
  235. SCS0_PD_MARK, SSO0_PD_MARK, SSI0_PD_MARK, SSCK0_PD_MARK,
  236. SCS0_PF_MARK, SSO0_PF_MARK, SSI0_PF_MARK, SSCK0_PF_MARK,
  237. SCS1_PD_MARK, SSO1_PD_MARK, SSI1_PD_MARK, SSCK1_PD_MARK,
  238. SCS1_PF_MARK, SSO1_PF_MARK, SSI1_PF_MARK, SSCK1_PF_MARK,
  239. TXD0_MARK, RXD0_MARK, SCK0_MARK,
  240. TXD1_MARK, RXD1_MARK, SCK1_MARK,
  241. TXD2_MARK, RXD2_MARK, SCK2_MARK,
  242. RTS3_MARK, CTS3_MARK, TXD3_MARK,
  243. RXD3_MARK, SCK3_MARK,
  244. AUDIO_CLK_MARK,
  245. SSIDATA3_MARK, SSIWS3_MARK, SSISCK3_MARK,
  246. SSIDATA2_MARK, SSIWS2_MARK, SSISCK2_MARK,
  247. SSIDATA1_MARK, SSIWS1_MARK, SSISCK1_MARK,
  248. SSIDATA0_MARK, SSIWS0_MARK, SSISCK0_MARK,
  249. FCE_MARK, FRB_MARK,
  250. NAF7_MARK, NAF6_MARK, NAF5_MARK, NAF4_MARK,
  251. NAF3_MARK, NAF2_MARK, NAF1_MARK, NAF0_MARK,
  252. FSC_MARK, FOE_MARK, FCDE_MARK, FWE_MARK,
  253. LCD_VEPWC_MARK, LCD_VCPWC_MARK, LCD_CLK_MARK, LCD_FLM_MARK,
  254. LCD_M_DISP_MARK, LCD_CL2_MARK, LCD_CL1_MARK, LCD_DON_MARK,
  255. LCD_DATA15_MARK, LCD_DATA14_MARK, LCD_DATA13_MARK, LCD_DATA12_MARK,
  256. LCD_DATA11_MARK, LCD_DATA10_MARK, LCD_DATA9_MARK, LCD_DATA8_MARK,
  257. LCD_DATA7_MARK, LCD_DATA6_MARK, LCD_DATA5_MARK, LCD_DATA4_MARK,
  258. LCD_DATA3_MARK, LCD_DATA2_MARK, LCD_DATA1_MARK, LCD_DATA0_MARK,
  259. PINMUX_MARK_END,
  260. };
  261. static const u16 pinmux_data[] = {
  262. /* PA */
  263. PINMUX_DATA(PA7_DATA, PA7_IN),
  264. PINMUX_DATA(PA6_DATA, PA6_IN),
  265. PINMUX_DATA(PA5_DATA, PA5_IN),
  266. PINMUX_DATA(PA4_DATA, PA4_IN),
  267. PINMUX_DATA(PA3_DATA, PA3_IN),
  268. PINMUX_DATA(PA2_DATA, PA2_IN),
  269. PINMUX_DATA(PA1_DATA, PA1_IN),
  270. PINMUX_DATA(PA0_DATA, PA0_IN),
  271. /* PB */
  272. PINMUX_DATA(PB12_DATA, PB12MD_00, FORCE_OUT),
  273. PINMUX_DATA(WDTOVF_MARK, PB12MD_01),
  274. PINMUX_DATA(IRQOUT_MARK, PB12MD_10, PB12IRQ_00),
  275. PINMUX_DATA(REFOUT_MARK, PB12MD_10, PB12IRQ_01),
  276. PINMUX_DATA(IRQOUT_REFOUT_MARK, PB12MD_10, PB12IRQ_10),
  277. PINMUX_DATA(UBCTRG_MARK, PB12MD_11),
  278. PINMUX_DATA(PB11_DATA, PB11MD_0, PB11_IN, PB11_OUT),
  279. PINMUX_DATA(CTX1_MARK, PB11MD_1),
  280. PINMUX_DATA(PB10_DATA, PB10MD_0, PB10_IN, PB10_OUT),
  281. PINMUX_DATA(CRX1_MARK, PB10MD_1),
  282. PINMUX_DATA(PB9_DATA, PB9MD_00, PB9_IN, PB9_OUT),
  283. PINMUX_DATA(CTX0_MARK, PB9MD_01),
  284. PINMUX_DATA(CTX0_CTX1_MARK, PB9MD_10),
  285. PINMUX_DATA(PB8_DATA, PB8MD_00, PB8_IN, PB8_OUT),
  286. PINMUX_DATA(CRX0_MARK, PB8MD_01),
  287. PINMUX_DATA(CRX0_CRX1_MARK, PB8MD_10),
  288. PINMUX_DATA(PB7_DATA, PB7MD_00, FORCE_IN),
  289. PINMUX_DATA(SDA3_MARK, PB7MD_01),
  290. PINMUX_DATA(PINT7_PB_MARK, PB7MD_10),
  291. PINMUX_DATA(IRQ7_PB_MARK, PB7MD_11),
  292. PINMUX_DATA(PB6_DATA, PB6MD_00, FORCE_IN),
  293. PINMUX_DATA(SCL3_MARK, PB6MD_01),
  294. PINMUX_DATA(PINT6_PB_MARK, PB6MD_10),
  295. PINMUX_DATA(IRQ6_PB_MARK, PB6MD_11),
  296. PINMUX_DATA(PB5_DATA, PB5MD_00, FORCE_IN),
  297. PINMUX_DATA(SDA2_MARK, PB6MD_01),
  298. PINMUX_DATA(PINT5_PB_MARK, PB6MD_10),
  299. PINMUX_DATA(IRQ5_PB_MARK, PB6MD_11),
  300. PINMUX_DATA(PB4_DATA, PB4MD_00, FORCE_IN),
  301. PINMUX_DATA(SCL2_MARK, PB4MD_01),
  302. PINMUX_DATA(PINT4_PB_MARK, PB4MD_10),
  303. PINMUX_DATA(IRQ4_PB_MARK, PB4MD_11),
  304. PINMUX_DATA(PB3_DATA, PB3MD_00, FORCE_IN),
  305. PINMUX_DATA(SDA1_MARK, PB3MD_01),
  306. PINMUX_DATA(PINT3_PB_MARK, PB3MD_10),
  307. PINMUX_DATA(IRQ3_PB_MARK, PB3MD_11),
  308. PINMUX_DATA(PB2_DATA, PB2MD_00, FORCE_IN),
  309. PINMUX_DATA(SCL1_MARK, PB2MD_01),
  310. PINMUX_DATA(PINT2_PB_MARK, PB2MD_10),
  311. PINMUX_DATA(IRQ2_PB_MARK, PB2MD_11),
  312. PINMUX_DATA(PB1_DATA, PB1MD_00, FORCE_IN),
  313. PINMUX_DATA(SDA0_MARK, PB1MD_01),
  314. PINMUX_DATA(PINT1_PB_MARK, PB1MD_10),
  315. PINMUX_DATA(IRQ1_PB_MARK, PB1MD_11),
  316. PINMUX_DATA(PB0_DATA, PB0MD_00, FORCE_IN),
  317. PINMUX_DATA(SCL0_MARK, PB0MD_01),
  318. PINMUX_DATA(PINT0_PB_MARK, PB0MD_10),
  319. PINMUX_DATA(IRQ0_PB_MARK, PB0MD_11),
  320. /* PC */
  321. PINMUX_DATA(PC14_DATA, PC14MD_0, PC14_IN, PC14_OUT),
  322. PINMUX_DATA(WAIT_MARK, PC14MD_1),
  323. PINMUX_DATA(PC13_DATA, PC13MD_0, PC13_IN, PC13_OUT),
  324. PINMUX_DATA(RDWR_MARK, PC13MD_1),
  325. PINMUX_DATA(PC12_DATA, PC12MD_0, PC12_IN, PC12_OUT),
  326. PINMUX_DATA(CKE_MARK, PC12MD_1),
  327. PINMUX_DATA(PC11_DATA, PC11MD_00, PC11_IN, PC11_OUT),
  328. PINMUX_DATA(CASU_MARK, PC11MD_01),
  329. PINMUX_DATA(BREQ_MARK, PC11MD_10),
  330. PINMUX_DATA(PC10_DATA, PC10MD_00, PC10_IN, PC10_OUT),
  331. PINMUX_DATA(RASU_MARK, PC10MD_01),
  332. PINMUX_DATA(BACK_MARK, PC10MD_10),
  333. PINMUX_DATA(PC9_DATA, PC9MD_0, PC9_IN, PC9_OUT),
  334. PINMUX_DATA(CASL_MARK, PC9MD_1),
  335. PINMUX_DATA(PC8_DATA, PC8MD_0, PC8_IN, PC8_OUT),
  336. PINMUX_DATA(RASL_MARK, PC8MD_1),
  337. PINMUX_DATA(PC7_DATA, PC7MD_0, PC7_IN, PC7_OUT),
  338. PINMUX_DATA(WE3_DQMUU_AH_ICIO_WR_MARK, PC7MD_1),
  339. PINMUX_DATA(PC6_DATA, PC6MD_0, PC6_IN, PC6_OUT),
  340. PINMUX_DATA(WE2_DQMUL_ICIORD_MARK, PC6MD_1),
  341. PINMUX_DATA(PC5_DATA, PC5MD_0, PC5_IN, PC5_OUT),
  342. PINMUX_DATA(WE1_DQMLU_WE_MARK, PC5MD_1),
  343. PINMUX_DATA(PC4_DATA, PC4MD_0, PC4_IN, PC4_OUT),
  344. PINMUX_DATA(WE0_DQMLL_MARK, PC4MD_1),
  345. PINMUX_DATA(PC3_DATA, PC3MD_0, PC3_IN, PC3_OUT),
  346. PINMUX_DATA(CS3_MARK, PC3MD_1),
  347. PINMUX_DATA(PC2_DATA, PC2MD_0, PC2_IN, PC2_OUT),
  348. PINMUX_DATA(CS2_MARK, PC2MD_1),
  349. PINMUX_DATA(PC1_DATA, PC1MD_0, PC1_IN, PC1_OUT),
  350. PINMUX_DATA(A1_MARK, PC1MD_1),
  351. PINMUX_DATA(PC0_DATA, PC0MD_00, PC0_IN, PC0_OUT),
  352. PINMUX_DATA(A0_MARK, PC0MD_01),
  353. PINMUX_DATA(CS7_MARK, PC0MD_10),
  354. /* PD */
  355. PINMUX_DATA(PD15_DATA, PD15MD_000, PD15_IN, PD15_OUT),
  356. PINMUX_DATA(D31_MARK, PD15MD_001),
  357. PINMUX_DATA(PINT7_PD_MARK, PD15MD_010),
  358. PINMUX_DATA(ADTRG_PD_MARK, PD15MD_100),
  359. PINMUX_DATA(TIOC4D_MARK, PD15MD_101),
  360. PINMUX_DATA(PD14_DATA, PD14MD_000, PD14_IN, PD14_OUT),
  361. PINMUX_DATA(D30_MARK, PD14MD_001),
  362. PINMUX_DATA(PINT6_PD_MARK, PD14MD_010),
  363. PINMUX_DATA(TIOC4C_MARK, PD14MD_101),
  364. PINMUX_DATA(PD13_DATA, PD13MD_000, PD13_IN, PD13_OUT),
  365. PINMUX_DATA(D29_MARK, PD13MD_001),
  366. PINMUX_DATA(PINT5_PD_MARK, PD13MD_010),
  367. PINMUX_DATA(TEND1_PD_MARK, PD13MD_100),
  368. PINMUX_DATA(TIOC4B_MARK, PD13MD_101),
  369. PINMUX_DATA(PD12_DATA, PD12MD_000, PD12_IN, PD12_OUT),
  370. PINMUX_DATA(D28_MARK, PD12MD_001),
  371. PINMUX_DATA(PINT4_PD_MARK, PD12MD_010),
  372. PINMUX_DATA(DACK1_PD_MARK, PD12MD_100),
  373. PINMUX_DATA(TIOC4A_MARK, PD12MD_101),
  374. PINMUX_DATA(PD11_DATA, PD11MD_000, PD11_IN, PD11_OUT),
  375. PINMUX_DATA(D27_MARK, PD11MD_001),
  376. PINMUX_DATA(PINT3_PD_MARK, PD11MD_010),
  377. PINMUX_DATA(DREQ1_PD_MARK, PD11MD_100),
  378. PINMUX_DATA(TIOC3D_MARK, PD11MD_101),
  379. PINMUX_DATA(PD10_DATA, PD10MD_000, PD10_IN, PD10_OUT),
  380. PINMUX_DATA(D26_MARK, PD10MD_001),
  381. PINMUX_DATA(PINT2_PD_MARK, PD10MD_010),
  382. PINMUX_DATA(TEND0_PD_MARK, PD10MD_100),
  383. PINMUX_DATA(TIOC3C_MARK, PD10MD_101),
  384. PINMUX_DATA(PD9_DATA, PD9MD_000, PD9_IN, PD9_OUT),
  385. PINMUX_DATA(D25_MARK, PD9MD_001),
  386. PINMUX_DATA(PINT1_PD_MARK, PD9MD_010),
  387. PINMUX_DATA(DACK0_PD_MARK, PD9MD_100),
  388. PINMUX_DATA(TIOC3B_MARK, PD9MD_101),
  389. PINMUX_DATA(PD8_DATA, PD8MD_000, PD8_IN, PD8_OUT),
  390. PINMUX_DATA(D24_MARK, PD8MD_001),
  391. PINMUX_DATA(PINT0_PD_MARK, PD8MD_010),
  392. PINMUX_DATA(DREQ0_PD_MARK, PD8MD_100),
  393. PINMUX_DATA(TIOC3A_MARK, PD8MD_101),
  394. PINMUX_DATA(PD7_DATA, PD7MD_000, PD7_IN, PD7_OUT),
  395. PINMUX_DATA(D23_MARK, PD7MD_001),
  396. PINMUX_DATA(IRQ7_PD_MARK, PD7MD_010),
  397. PINMUX_DATA(SCS1_PD_MARK, PD7MD_011),
  398. PINMUX_DATA(TCLKD_PD_MARK, PD7MD_100),
  399. PINMUX_DATA(TIOC2B_MARK, PD7MD_101),
  400. PINMUX_DATA(PD6_DATA, PD6MD_000, PD6_IN, PD6_OUT),
  401. PINMUX_DATA(D22_MARK, PD6MD_001),
  402. PINMUX_DATA(IRQ6_PD_MARK, PD6MD_010),
  403. PINMUX_DATA(SSO1_PD_MARK, PD6MD_011),
  404. PINMUX_DATA(TCLKC_PD_MARK, PD6MD_100),
  405. PINMUX_DATA(TIOC2A_MARK, PD6MD_101),
  406. PINMUX_DATA(PD5_DATA, PD5MD_000, PD5_IN, PD5_OUT),
  407. PINMUX_DATA(D21_MARK, PD5MD_001),
  408. PINMUX_DATA(IRQ5_PD_MARK, PD5MD_010),
  409. PINMUX_DATA(SSI1_PD_MARK, PD5MD_011),
  410. PINMUX_DATA(TCLKB_PD_MARK, PD5MD_100),
  411. PINMUX_DATA(TIOC1B_MARK, PD5MD_101),
  412. PINMUX_DATA(PD4_DATA, PD4MD_000, PD4_IN, PD4_OUT),
  413. PINMUX_DATA(D20_MARK, PD4MD_001),
  414. PINMUX_DATA(IRQ4_PD_MARK, PD4MD_010),
  415. PINMUX_DATA(SSCK1_PD_MARK, PD4MD_011),
  416. PINMUX_DATA(TCLKA_PD_MARK, PD4MD_100),
  417. PINMUX_DATA(TIOC1A_MARK, PD4MD_101),
  418. PINMUX_DATA(PD3_DATA, PD3MD_000, PD3_IN, PD3_OUT),
  419. PINMUX_DATA(D19_MARK, PD3MD_001),
  420. PINMUX_DATA(IRQ3_PD_MARK, PD3MD_010),
  421. PINMUX_DATA(SCS0_PD_MARK, PD3MD_011),
  422. PINMUX_DATA(DACK3_MARK, PD3MD_100),
  423. PINMUX_DATA(TIOC0D_MARK, PD3MD_101),
  424. PINMUX_DATA(PD2_DATA, PD2MD_000, PD2_IN, PD2_OUT),
  425. PINMUX_DATA(D18_MARK, PD2MD_001),
  426. PINMUX_DATA(IRQ2_PD_MARK, PD2MD_010),
  427. PINMUX_DATA(SSO0_PD_MARK, PD2MD_011),
  428. PINMUX_DATA(DREQ3_MARK, PD2MD_100),
  429. PINMUX_DATA(TIOC0C_MARK, PD2MD_101),
  430. PINMUX_DATA(PD1_DATA, PD1MD_000, PD1_IN, PD1_OUT),
  431. PINMUX_DATA(D17_MARK, PD1MD_001),
  432. PINMUX_DATA(IRQ1_PD_MARK, PD1MD_010),
  433. PINMUX_DATA(SSI0_PD_MARK, PD1MD_011),
  434. PINMUX_DATA(DACK2_MARK, PD1MD_100),
  435. PINMUX_DATA(TIOC0B_MARK, PD1MD_101),
  436. PINMUX_DATA(PD0_DATA, PD0MD_000, PD0_IN, PD0_OUT),
  437. PINMUX_DATA(D16_MARK, PD0MD_001),
  438. PINMUX_DATA(IRQ0_PD_MARK, PD0MD_010),
  439. PINMUX_DATA(SSCK0_PD_MARK, PD0MD_011),
  440. PINMUX_DATA(DREQ2_MARK, PD0MD_100),
  441. PINMUX_DATA(TIOC0A_MARK, PD0MD_101),
  442. /* PE */
  443. PINMUX_DATA(PE15_DATA, PE15MD_00, PE15_IN, PE15_OUT),
  444. PINMUX_DATA(IOIS16_MARK, PE15MD_01),
  445. PINMUX_DATA(RTS3_MARK, PE15MD_11),
  446. PINMUX_DATA(PE14_DATA, PE14MD_00, PE14_IN, PE14_OUT),
  447. PINMUX_DATA(CS1_MARK, PE14MD_01),
  448. PINMUX_DATA(CTS3_MARK, PE14MD_11),
  449. PINMUX_DATA(PE13_DATA, PE13MD_00, PE13_IN, PE13_OUT),
  450. PINMUX_DATA(TXD3_MARK, PE13MD_11),
  451. PINMUX_DATA(PE12_DATA, PE12MD_00, PE12_IN, PE12_OUT),
  452. PINMUX_DATA(RXD3_MARK, PE12MD_11),
  453. PINMUX_DATA(PE11_DATA, PE11MD_000, PE11_IN, PE11_OUT),
  454. PINMUX_DATA(CS6_CE1B_MARK, PE11MD_001),
  455. PINMUX_DATA(IRQ7_PE_MARK, PE11MD_010),
  456. PINMUX_DATA(TEND1_PE_MARK, PE11MD_100),
  457. PINMUX_DATA(PE10_DATA, PE10MD_000, PE10_IN, PE10_OUT),
  458. PINMUX_DATA(CE2B_MARK, PE10MD_001),
  459. PINMUX_DATA(IRQ6_PE_MARK, PE10MD_010),
  460. PINMUX_DATA(TEND0_PE_MARK, PE10MD_100),
  461. PINMUX_DATA(PE9_DATA, PE9MD_00, PE9_IN, PE9_OUT),
  462. PINMUX_DATA(CS5_CE1A_MARK, PE9MD_01),
  463. PINMUX_DATA(IRQ5_PE_MARK, PE9MD_10),
  464. PINMUX_DATA(SCK3_MARK, PE9MD_11),
  465. PINMUX_DATA(PE8_DATA, PE8MD_00, PE8_IN, PE8_OUT),
  466. PINMUX_DATA(CE2A_MARK, PE8MD_01),
  467. PINMUX_DATA(IRQ4_PE_MARK, PE8MD_10),
  468. PINMUX_DATA(SCK2_MARK, PE8MD_11),
  469. PINMUX_DATA(PE7_DATA, PE7MD_000, PE7_IN, PE7_OUT),
  470. PINMUX_DATA(FRAME_MARK, PE7MD_001),
  471. PINMUX_DATA(IRQ3_PE_MARK, PE7MD_010),
  472. PINMUX_DATA(TXD2_MARK, PE7MD_011),
  473. PINMUX_DATA(DACK1_PE_MARK, PE7MD_100),
  474. PINMUX_DATA(PE6_DATA, PE6MD_000, PE6_IN, PE6_OUT),
  475. PINMUX_DATA(A25_MARK, PE6MD_001),
  476. PINMUX_DATA(IRQ2_PE_MARK, PE6MD_010),
  477. PINMUX_DATA(RXD2_MARK, PE6MD_011),
  478. PINMUX_DATA(DREQ1_PE_MARK, PE6MD_100),
  479. PINMUX_DATA(PE5_DATA, PE5MD_000, PE5_IN, PE5_OUT),
  480. PINMUX_DATA(A24_MARK, PE5MD_001),
  481. PINMUX_DATA(IRQ1_PE_MARK, PE5MD_010),
  482. PINMUX_DATA(TXD1_MARK, PE5MD_011),
  483. PINMUX_DATA(DACK0_PE_MARK, PE5MD_100),
  484. PINMUX_DATA(PE4_DATA, PE4MD_000, PE4_IN, PE4_OUT),
  485. PINMUX_DATA(A23_MARK, PE4MD_001),
  486. PINMUX_DATA(IRQ0_PE_MARK, PE4MD_010),
  487. PINMUX_DATA(RXD1_MARK, PE4MD_011),
  488. PINMUX_DATA(DREQ0_PE_MARK, PE4MD_100),
  489. PINMUX_DATA(PE3_DATA, PE3MD_00, PE3_IN, PE3_OUT),
  490. PINMUX_DATA(A22_MARK, PE3MD_01),
  491. PINMUX_DATA(SCK1_MARK, PE3MD_11),
  492. PINMUX_DATA(PE2_DATA, PE2MD_00, PE2_IN, PE2_OUT),
  493. PINMUX_DATA(A21_MARK, PE2MD_01),
  494. PINMUX_DATA(SCK0_MARK, PE2MD_11),
  495. PINMUX_DATA(PE1_DATA, PE1MD_00, PE1_IN, PE1_OUT),
  496. PINMUX_DATA(CS4_MARK, PE1MD_01),
  497. PINMUX_DATA(MRES_MARK, PE1MD_10),
  498. PINMUX_DATA(TXD0_MARK, PE1MD_11),
  499. PINMUX_DATA(PE0_DATA, PE0MD_000, PE0_IN, PE0_OUT),
  500. PINMUX_DATA(BS_MARK, PE0MD_001),
  501. PINMUX_DATA(RXD0_MARK, PE0MD_011),
  502. PINMUX_DATA(ADTRG_PE_MARK, PE0MD_100),
  503. /* PF */
  504. PINMUX_DATA(PF30_DATA, PF30MD_0, PF30_IN, PF30_OUT),
  505. PINMUX_DATA(AUDIO_CLK_MARK, PF30MD_1),
  506. PINMUX_DATA(PF29_DATA, PF29MD_0, PF29_IN, PF29_OUT),
  507. PINMUX_DATA(SSIDATA3_MARK, PF29MD_1),
  508. PINMUX_DATA(PF28_DATA, PF28MD_0, PF28_IN, PF28_OUT),
  509. PINMUX_DATA(SSIWS3_MARK, PF28MD_1),
  510. PINMUX_DATA(PF27_DATA, PF27MD_0, PF27_IN, PF27_OUT),
  511. PINMUX_DATA(SSISCK3_MARK, PF27MD_1),
  512. PINMUX_DATA(PF26_DATA, PF26MD_0, PF26_IN, PF26_OUT),
  513. PINMUX_DATA(SSIDATA2_MARK, PF26MD_1),
  514. PINMUX_DATA(PF25_DATA, PF25MD_0, PF25_IN, PF25_OUT),
  515. PINMUX_DATA(SSIWS2_MARK, PF25MD_1),
  516. PINMUX_DATA(PF24_DATA, PF24MD_0, PF24_IN, PF24_OUT),
  517. PINMUX_DATA(SSISCK2_MARK, PF24MD_1),
  518. PINMUX_DATA(PF23_DATA, PF23MD_00, PF23_IN, PF23_OUT),
  519. PINMUX_DATA(SSIDATA1_MARK, PF23MD_01),
  520. PINMUX_DATA(LCD_VEPWC_MARK, PF23MD_10),
  521. PINMUX_DATA(PF22_DATA, PF22MD_00, PF22_IN, PF22_OUT),
  522. PINMUX_DATA(SSIWS1_MARK, PF22MD_01),
  523. PINMUX_DATA(LCD_VCPWC_MARK, PF22MD_10),
  524. PINMUX_DATA(PF21_DATA, PF21MD_00, PF21_IN, PF21_OUT),
  525. PINMUX_DATA(SSISCK1_MARK, PF21MD_01),
  526. PINMUX_DATA(LCD_CLK_MARK, PF21MD_10),
  527. PINMUX_DATA(PF20_DATA, PF20MD_00, PF20_IN, PF20_OUT),
  528. PINMUX_DATA(SSIDATA0_MARK, PF20MD_01),
  529. PINMUX_DATA(LCD_FLM_MARK, PF20MD_10),
  530. PINMUX_DATA(PF19_DATA, PF19MD_00, PF19_IN, PF19_OUT),
  531. PINMUX_DATA(SSIWS0_MARK, PF19MD_01),
  532. PINMUX_DATA(LCD_M_DISP_MARK, PF19MD_10),
  533. PINMUX_DATA(PF18_DATA, PF18MD_00, PF18_IN, PF18_OUT),
  534. PINMUX_DATA(SSISCK0_MARK, PF18MD_01),
  535. PINMUX_DATA(LCD_CL2_MARK, PF18MD_10),
  536. PINMUX_DATA(PF17_DATA, PF17MD_00, PF17_IN, PF17_OUT),
  537. PINMUX_DATA(FCE_MARK, PF17MD_01),
  538. PINMUX_DATA(LCD_CL1_MARK, PF17MD_10),
  539. PINMUX_DATA(PF16_DATA, PF16MD_00, PF16_IN, PF16_OUT),
  540. PINMUX_DATA(FRB_MARK, PF16MD_01),
  541. PINMUX_DATA(LCD_DON_MARK, PF16MD_10),
  542. PINMUX_DATA(PF15_DATA, PF15MD_00, PF15_IN, PF15_OUT),
  543. PINMUX_DATA(NAF7_MARK, PF15MD_01),
  544. PINMUX_DATA(LCD_DATA15_MARK, PF15MD_10),
  545. PINMUX_DATA(PF14_DATA, PF14MD_00, PF14_IN, PF14_OUT),
  546. PINMUX_DATA(NAF6_MARK, PF14MD_01),
  547. PINMUX_DATA(LCD_DATA14_MARK, PF14MD_10),
  548. PINMUX_DATA(PF13_DATA, PF13MD_00, PF13_IN, PF13_OUT),
  549. PINMUX_DATA(NAF5_MARK, PF13MD_01),
  550. PINMUX_DATA(LCD_DATA13_MARK, PF13MD_10),
  551. PINMUX_DATA(PF12_DATA, PF12MD_00, PF12_IN, PF12_OUT),
  552. PINMUX_DATA(NAF4_MARK, PF12MD_01),
  553. PINMUX_DATA(LCD_DATA12_MARK, PF12MD_10),
  554. PINMUX_DATA(PF11_DATA, PF11MD_00, PF11_IN, PF11_OUT),
  555. PINMUX_DATA(NAF3_MARK, PF11MD_01),
  556. PINMUX_DATA(LCD_DATA11_MARK, PF11MD_10),
  557. PINMUX_DATA(PF10_DATA, PF10MD_00, PF10_IN, PF10_OUT),
  558. PINMUX_DATA(NAF2_MARK, PF10MD_01),
  559. PINMUX_DATA(LCD_DATA10_MARK, PF10MD_10),
  560. PINMUX_DATA(PF9_DATA, PF9MD_00, PF9_IN, PF9_OUT),
  561. PINMUX_DATA(NAF1_MARK, PF9MD_01),
  562. PINMUX_DATA(LCD_DATA9_MARK, PF9MD_10),
  563. PINMUX_DATA(PF8_DATA, PF8MD_00, PF8_IN, PF8_OUT),
  564. PINMUX_DATA(NAF0_MARK, PF8MD_01),
  565. PINMUX_DATA(LCD_DATA8_MARK, PF8MD_10),
  566. PINMUX_DATA(PF7_DATA, PF7MD_00, PF7_IN, PF7_OUT),
  567. PINMUX_DATA(FSC_MARK, PF7MD_01),
  568. PINMUX_DATA(LCD_DATA7_MARK, PF7MD_10),
  569. PINMUX_DATA(SCS1_PF_MARK, PF7MD_11),
  570. PINMUX_DATA(PF6_DATA, PF6MD_00, PF6_IN, PF6_OUT),
  571. PINMUX_DATA(FOE_MARK, PF6MD_01),
  572. PINMUX_DATA(LCD_DATA6_MARK, PF6MD_10),
  573. PINMUX_DATA(SSO1_PF_MARK, PF6MD_11),
  574. PINMUX_DATA(PF5_DATA, PF5MD_00, PF5_IN, PF5_OUT),
  575. PINMUX_DATA(FCDE_MARK, PF5MD_01),
  576. PINMUX_DATA(LCD_DATA5_MARK, PF5MD_10),
  577. PINMUX_DATA(SSI1_PF_MARK, PF5MD_11),
  578. PINMUX_DATA(PF4_DATA, PF4MD_00, PF4_IN, PF4_OUT),
  579. PINMUX_DATA(FWE_MARK, PF4MD_01),
  580. PINMUX_DATA(LCD_DATA4_MARK, PF4MD_10),
  581. PINMUX_DATA(SSCK1_PF_MARK, PF4MD_11),
  582. PINMUX_DATA(PF3_DATA, PF3MD_00, PF3_IN, PF3_OUT),
  583. PINMUX_DATA(TCLKD_PF_MARK, PF3MD_01),
  584. PINMUX_DATA(LCD_DATA3_MARK, PF3MD_10),
  585. PINMUX_DATA(SCS0_PF_MARK, PF3MD_11),
  586. PINMUX_DATA(PF2_DATA, PF2MD_00, PF2_IN, PF2_OUT),
  587. PINMUX_DATA(TCLKC_PF_MARK, PF2MD_01),
  588. PINMUX_DATA(LCD_DATA2_MARK, PF2MD_10),
  589. PINMUX_DATA(SSO0_PF_MARK, PF2MD_11),
  590. PINMUX_DATA(PF1_DATA, PF1MD_00, PF1_IN, PF1_OUT),
  591. PINMUX_DATA(TCLKB_PF_MARK, PF1MD_01),
  592. PINMUX_DATA(LCD_DATA1_MARK, PF1MD_10),
  593. PINMUX_DATA(SSI0_PF_MARK, PF1MD_11),
  594. PINMUX_DATA(PF0_DATA, PF0MD_00, PF0_IN, PF0_OUT),
  595. PINMUX_DATA(TCLKA_PF_MARK, PF0MD_01),
  596. PINMUX_DATA(LCD_DATA0_MARK, PF0MD_10),
  597. PINMUX_DATA(SSCK0_PF_MARK, PF0MD_11),
  598. };
  599. static const struct sh_pfc_pin pinmux_pins[] = {
  600. /* PA */
  601. PINMUX_GPIO(PA7),
  602. PINMUX_GPIO(PA6),
  603. PINMUX_GPIO(PA5),
  604. PINMUX_GPIO(PA4),
  605. PINMUX_GPIO(PA3),
  606. PINMUX_GPIO(PA2),
  607. PINMUX_GPIO(PA1),
  608. PINMUX_GPIO(PA0),
  609. /* PB */
  610. PINMUX_GPIO(PB12),
  611. PINMUX_GPIO(PB11),
  612. PINMUX_GPIO(PB10),
  613. PINMUX_GPIO(PB9),
  614. PINMUX_GPIO(PB8),
  615. PINMUX_GPIO(PB7),
  616. PINMUX_GPIO(PB6),
  617. PINMUX_GPIO(PB5),
  618. PINMUX_GPIO(PB4),
  619. PINMUX_GPIO(PB3),
  620. PINMUX_GPIO(PB2),
  621. PINMUX_GPIO(PB1),
  622. PINMUX_GPIO(PB0),
  623. /* PC */
  624. PINMUX_GPIO(PC14),
  625. PINMUX_GPIO(PC13),
  626. PINMUX_GPIO(PC12),
  627. PINMUX_GPIO(PC11),
  628. PINMUX_GPIO(PC10),
  629. PINMUX_GPIO(PC9),
  630. PINMUX_GPIO(PC8),
  631. PINMUX_GPIO(PC7),
  632. PINMUX_GPIO(PC6),
  633. PINMUX_GPIO(PC5),
  634. PINMUX_GPIO(PC4),
  635. PINMUX_GPIO(PC3),
  636. PINMUX_GPIO(PC2),
  637. PINMUX_GPIO(PC1),
  638. PINMUX_GPIO(PC0),
  639. /* PD */
  640. PINMUX_GPIO(PD15),
  641. PINMUX_GPIO(PD14),
  642. PINMUX_GPIO(PD13),
  643. PINMUX_GPIO(PD12),
  644. PINMUX_GPIO(PD11),
  645. PINMUX_GPIO(PD10),
  646. PINMUX_GPIO(PD9),
  647. PINMUX_GPIO(PD8),
  648. PINMUX_GPIO(PD7),
  649. PINMUX_GPIO(PD6),
  650. PINMUX_GPIO(PD5),
  651. PINMUX_GPIO(PD4),
  652. PINMUX_GPIO(PD3),
  653. PINMUX_GPIO(PD2),
  654. PINMUX_GPIO(PD1),
  655. PINMUX_GPIO(PD0),
  656. /* PE */
  657. PINMUX_GPIO(PE15),
  658. PINMUX_GPIO(PE14),
  659. PINMUX_GPIO(PE13),
  660. PINMUX_GPIO(PE12),
  661. PINMUX_GPIO(PE11),
  662. PINMUX_GPIO(PE10),
  663. PINMUX_GPIO(PE9),
  664. PINMUX_GPIO(PE8),
  665. PINMUX_GPIO(PE7),
  666. PINMUX_GPIO(PE6),
  667. PINMUX_GPIO(PE5),
  668. PINMUX_GPIO(PE4),
  669. PINMUX_GPIO(PE3),
  670. PINMUX_GPIO(PE2),
  671. PINMUX_GPIO(PE1),
  672. PINMUX_GPIO(PE0),
  673. /* PF */
  674. PINMUX_GPIO(PF30),
  675. PINMUX_GPIO(PF29),
  676. PINMUX_GPIO(PF28),
  677. PINMUX_GPIO(PF27),
  678. PINMUX_GPIO(PF26),
  679. PINMUX_GPIO(PF25),
  680. PINMUX_GPIO(PF24),
  681. PINMUX_GPIO(PF23),
  682. PINMUX_GPIO(PF22),
  683. PINMUX_GPIO(PF21),
  684. PINMUX_GPIO(PF20),
  685. PINMUX_GPIO(PF19),
  686. PINMUX_GPIO(PF18),
  687. PINMUX_GPIO(PF17),
  688. PINMUX_GPIO(PF16),
  689. PINMUX_GPIO(PF15),
  690. PINMUX_GPIO(PF14),
  691. PINMUX_GPIO(PF13),
  692. PINMUX_GPIO(PF12),
  693. PINMUX_GPIO(PF11),
  694. PINMUX_GPIO(PF10),
  695. PINMUX_GPIO(PF9),
  696. PINMUX_GPIO(PF8),
  697. PINMUX_GPIO(PF7),
  698. PINMUX_GPIO(PF6),
  699. PINMUX_GPIO(PF5),
  700. PINMUX_GPIO(PF4),
  701. PINMUX_GPIO(PF3),
  702. PINMUX_GPIO(PF2),
  703. PINMUX_GPIO(PF1),
  704. PINMUX_GPIO(PF0),
  705. };
  706. #define PINMUX_FN_BASE ARRAY_SIZE(pinmux_pins)
  707. static const struct pinmux_func pinmux_func_gpios[] = {
  708. /* INTC */
  709. GPIO_FN(PINT7_PB),
  710. GPIO_FN(PINT6_PB),
  711. GPIO_FN(PINT5_PB),
  712. GPIO_FN(PINT4_PB),
  713. GPIO_FN(PINT3_PB),
  714. GPIO_FN(PINT2_PB),
  715. GPIO_FN(PINT1_PB),
  716. GPIO_FN(PINT0_PB),
  717. GPIO_FN(PINT7_PD),
  718. GPIO_FN(PINT6_PD),
  719. GPIO_FN(PINT5_PD),
  720. GPIO_FN(PINT4_PD),
  721. GPIO_FN(PINT3_PD),
  722. GPIO_FN(PINT2_PD),
  723. GPIO_FN(PINT1_PD),
  724. GPIO_FN(PINT0_PD),
  725. GPIO_FN(IRQ7_PB),
  726. GPIO_FN(IRQ6_PB),
  727. GPIO_FN(IRQ5_PB),
  728. GPIO_FN(IRQ4_PB),
  729. GPIO_FN(IRQ3_PB),
  730. GPIO_FN(IRQ2_PB),
  731. GPIO_FN(IRQ1_PB),
  732. GPIO_FN(IRQ0_PB),
  733. GPIO_FN(IRQ7_PD),
  734. GPIO_FN(IRQ6_PD),
  735. GPIO_FN(IRQ5_PD),
  736. GPIO_FN(IRQ4_PD),
  737. GPIO_FN(IRQ3_PD),
  738. GPIO_FN(IRQ2_PD),
  739. GPIO_FN(IRQ1_PD),
  740. GPIO_FN(IRQ0_PD),
  741. GPIO_FN(IRQ7_PE),
  742. GPIO_FN(IRQ6_PE),
  743. GPIO_FN(IRQ5_PE),
  744. GPIO_FN(IRQ4_PE),
  745. GPIO_FN(IRQ3_PE),
  746. GPIO_FN(IRQ2_PE),
  747. GPIO_FN(IRQ1_PE),
  748. GPIO_FN(IRQ0_PE),
  749. GPIO_FN(WDTOVF),
  750. GPIO_FN(IRQOUT),
  751. GPIO_FN(REFOUT),
  752. GPIO_FN(IRQOUT_REFOUT),
  753. GPIO_FN(UBCTRG),
  754. /* CAN */
  755. GPIO_FN(CTX1),
  756. GPIO_FN(CRX1),
  757. GPIO_FN(CTX0),
  758. GPIO_FN(CTX0_CTX1),
  759. GPIO_FN(CRX0),
  760. GPIO_FN(CRX0_CRX1),
  761. /* IIC3 */
  762. GPIO_FN(SDA3),
  763. GPIO_FN(SCL3),
  764. GPIO_FN(SDA2),
  765. GPIO_FN(SCL2),
  766. GPIO_FN(SDA1),
  767. GPIO_FN(SCL1),
  768. GPIO_FN(SDA0),
  769. GPIO_FN(SCL0),
  770. /* DMAC */
  771. GPIO_FN(TEND0_PD),
  772. GPIO_FN(TEND0_PE),
  773. GPIO_FN(DACK0_PD),
  774. GPIO_FN(DACK0_PE),
  775. GPIO_FN(DREQ0_PD),
  776. GPIO_FN(DREQ0_PE),
  777. GPIO_FN(TEND1_PD),
  778. GPIO_FN(TEND1_PE),
  779. GPIO_FN(DACK1_PD),
  780. GPIO_FN(DACK1_PE),
  781. GPIO_FN(DREQ1_PD),
  782. GPIO_FN(DREQ1_PE),
  783. GPIO_FN(DACK2),
  784. GPIO_FN(DREQ2),
  785. GPIO_FN(DACK3),
  786. GPIO_FN(DREQ3),
  787. /* ADC */
  788. GPIO_FN(ADTRG_PD),
  789. GPIO_FN(ADTRG_PE),
  790. /* BSC */
  791. GPIO_FN(D31),
  792. GPIO_FN(D30),
  793. GPIO_FN(D29),
  794. GPIO_FN(D28),
  795. GPIO_FN(D27),
  796. GPIO_FN(D26),
  797. GPIO_FN(D25),
  798. GPIO_FN(D24),
  799. GPIO_FN(D23),
  800. GPIO_FN(D22),
  801. GPIO_FN(D21),
  802. GPIO_FN(D20),
  803. GPIO_FN(D19),
  804. GPIO_FN(D18),
  805. GPIO_FN(D17),
  806. GPIO_FN(D16),
  807. GPIO_FN(A25),
  808. GPIO_FN(A24),
  809. GPIO_FN(A23),
  810. GPIO_FN(A22),
  811. GPIO_FN(A21),
  812. GPIO_FN(CS4),
  813. GPIO_FN(MRES),
  814. GPIO_FN(BS),
  815. GPIO_FN(IOIS16),
  816. GPIO_FN(CS1),
  817. GPIO_FN(CS6_CE1B),
  818. GPIO_FN(CE2B),
  819. GPIO_FN(CS5_CE1A),
  820. GPIO_FN(CE2A),
  821. GPIO_FN(FRAME),
  822. GPIO_FN(WAIT),
  823. GPIO_FN(RDWR),
  824. GPIO_FN(CKE),
  825. GPIO_FN(CASU),
  826. GPIO_FN(BREQ),
  827. GPIO_FN(RASU),
  828. GPIO_FN(BACK),
  829. GPIO_FN(CASL),
  830. GPIO_FN(RASL),
  831. GPIO_FN(WE3_DQMUU_AH_ICIO_WR),
  832. GPIO_FN(WE2_DQMUL_ICIORD),
  833. GPIO_FN(WE1_DQMLU_WE),
  834. GPIO_FN(WE0_DQMLL),
  835. GPIO_FN(CS3),
  836. GPIO_FN(CS2),
  837. GPIO_FN(A1),
  838. GPIO_FN(A0),
  839. GPIO_FN(CS7),
  840. /* TMU */
  841. GPIO_FN(TIOC4D),
  842. GPIO_FN(TIOC4C),
  843. GPIO_FN(TIOC4B),
  844. GPIO_FN(TIOC4A),
  845. GPIO_FN(TIOC3D),
  846. GPIO_FN(TIOC3C),
  847. GPIO_FN(TIOC3B),
  848. GPIO_FN(TIOC3A),
  849. GPIO_FN(TIOC2B),
  850. GPIO_FN(TIOC1B),
  851. GPIO_FN(TIOC2A),
  852. GPIO_FN(TIOC1A),
  853. GPIO_FN(TIOC0D),
  854. GPIO_FN(TIOC0C),
  855. GPIO_FN(TIOC0B),
  856. GPIO_FN(TIOC0A),
  857. GPIO_FN(TCLKD_PD),
  858. GPIO_FN(TCLKC_PD),
  859. GPIO_FN(TCLKB_PD),
  860. GPIO_FN(TCLKA_PD),
  861. GPIO_FN(TCLKD_PF),
  862. GPIO_FN(TCLKC_PF),
  863. GPIO_FN(TCLKB_PF),
  864. GPIO_FN(TCLKA_PF),
  865. /* SSU */
  866. GPIO_FN(SCS0_PD),
  867. GPIO_FN(SSO0_PD),
  868. GPIO_FN(SSI0_PD),
  869. GPIO_FN(SSCK0_PD),
  870. GPIO_FN(SCS0_PF),
  871. GPIO_FN(SSO0_PF),
  872. GPIO_FN(SSI0_PF),
  873. GPIO_FN(SSCK0_PF),
  874. GPIO_FN(SCS1_PD),
  875. GPIO_FN(SSO1_PD),
  876. GPIO_FN(SSI1_PD),
  877. GPIO_FN(SSCK1_PD),
  878. GPIO_FN(SCS1_PF),
  879. GPIO_FN(SSO1_PF),
  880. GPIO_FN(SSI1_PF),
  881. GPIO_FN(SSCK1_PF),
  882. /* SCIF */
  883. GPIO_FN(TXD0),
  884. GPIO_FN(RXD0),
  885. GPIO_FN(SCK0),
  886. GPIO_FN(TXD1),
  887. GPIO_FN(RXD1),
  888. GPIO_FN(SCK1),
  889. GPIO_FN(TXD2),
  890. GPIO_FN(RXD2),
  891. GPIO_FN(SCK2),
  892. GPIO_FN(RTS3),
  893. GPIO_FN(CTS3),
  894. GPIO_FN(TXD3),
  895. GPIO_FN(RXD3),
  896. GPIO_FN(SCK3),
  897. /* SSI */
  898. GPIO_FN(AUDIO_CLK),
  899. GPIO_FN(SSIDATA3),
  900. GPIO_FN(SSIWS3),
  901. GPIO_FN(SSISCK3),
  902. GPIO_FN(SSIDATA2),
  903. GPIO_FN(SSIWS2),
  904. GPIO_FN(SSISCK2),
  905. GPIO_FN(SSIDATA1),
  906. GPIO_FN(SSIWS1),
  907. GPIO_FN(SSISCK1),
  908. GPIO_FN(SSIDATA0),
  909. GPIO_FN(SSIWS0),
  910. GPIO_FN(SSISCK0),
  911. /* FLCTL */
  912. GPIO_FN(FCE),
  913. GPIO_FN(FRB),
  914. GPIO_FN(NAF7),
  915. GPIO_FN(NAF6),
  916. GPIO_FN(NAF5),
  917. GPIO_FN(NAF4),
  918. GPIO_FN(NAF3),
  919. GPIO_FN(NAF2),
  920. GPIO_FN(NAF1),
  921. GPIO_FN(NAF0),
  922. GPIO_FN(FSC),
  923. GPIO_FN(FOE),
  924. GPIO_FN(FCDE),
  925. GPIO_FN(FWE),
  926. /* LCDC */
  927. GPIO_FN(LCD_VEPWC),
  928. GPIO_FN(LCD_VCPWC),
  929. GPIO_FN(LCD_CLK),
  930. GPIO_FN(LCD_FLM),
  931. GPIO_FN(LCD_M_DISP),
  932. GPIO_FN(LCD_CL2),
  933. GPIO_FN(LCD_CL1),
  934. GPIO_FN(LCD_DON),
  935. GPIO_FN(LCD_DATA15),
  936. GPIO_FN(LCD_DATA14),
  937. GPIO_FN(LCD_DATA13),
  938. GPIO_FN(LCD_DATA12),
  939. GPIO_FN(LCD_DATA11),
  940. GPIO_FN(LCD_DATA10),
  941. GPIO_FN(LCD_DATA9),
  942. GPIO_FN(LCD_DATA8),
  943. GPIO_FN(LCD_DATA7),
  944. GPIO_FN(LCD_DATA6),
  945. GPIO_FN(LCD_DATA5),
  946. GPIO_FN(LCD_DATA4),
  947. GPIO_FN(LCD_DATA3),
  948. GPIO_FN(LCD_DATA2),
  949. GPIO_FN(LCD_DATA1),
  950. GPIO_FN(LCD_DATA0),
  951. };
  952. static const struct pinmux_cfg_reg pinmux_config_regs[] = {
  953. { PINMUX_CFG_REG("PBIORL", 0xfffe3886, 16, 1) {
  954. 0, 0,
  955. 0, 0,
  956. 0, 0,
  957. 0, 0,
  958. PB11_IN, PB11_OUT,
  959. PB10_IN, PB10_OUT,
  960. PB9_IN, PB9_OUT,
  961. PB8_IN, PB8_OUT,
  962. 0, 0,
  963. 0, 0,
  964. 0, 0,
  965. 0, 0,
  966. 0, 0,
  967. 0, 0,
  968. 0, 0,
  969. 0, 0 }
  970. },
  971. { PINMUX_CFG_REG("PBCRL4", 0xfffe3890, 16, 4) {
  972. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  973. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  974. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  975. PB12MD_00, PB12MD_01, PB12MD_10, PB12MD_11,
  976. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  977. },
  978. { PINMUX_CFG_REG("PBCRL3", 0xfffe3892, 16, 4) {
  979. PB11MD_0, PB11MD_1,
  980. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  981. PB10MD_0, PB10MD_1,
  982. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  983. PB9MD_00, PB9MD_01, PB9MD_10, 0,
  984. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  985. PB8MD_00, PB8MD_01, PB8MD_10, 0,
  986. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  987. },
  988. { PINMUX_CFG_REG("PBCRL2", 0xfffe3894, 16, 4) {
  989. PB7MD_00, PB7MD_01, PB7MD_10, PB7MD_11,
  990. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  991. PB6MD_00, PB6MD_01, PB6MD_10, PB6MD_11,
  992. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  993. PB5MD_00, PB5MD_01, PB5MD_10, PB5MD_11,
  994. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  995. PB4MD_00, PB4MD_01, PB4MD_10, PB4MD_11,
  996. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  997. },
  998. { PINMUX_CFG_REG("PBCRL1", 0xfffe3896, 16, 4) {
  999. PB3MD_00, PB3MD_01, PB3MD_10, PB3MD_11,
  1000. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1001. PB2MD_00, PB2MD_01, PB2MD_10, PB2MD_11,
  1002. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1003. PB1MD_00, PB1MD_01, PB1MD_10, PB1MD_11,
  1004. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1005. PB0MD_00, PB0MD_01, PB0MD_10, PB0MD_11,
  1006. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1007. },
  1008. { PINMUX_CFG_REG("IFCR", 0xfffe38a2, 16, 4) {
  1009. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1010. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1011. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1012. PB12IRQ_00, PB12IRQ_01, PB12IRQ_10, 0,
  1013. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1014. },
  1015. { PINMUX_CFG_REG("PCIORL", 0xfffe3906, 16, 1) {
  1016. 0, 0,
  1017. PC14_IN, PC14_OUT,
  1018. PC13_IN, PC13_OUT,
  1019. PC12_IN, PC12_OUT,
  1020. PC11_IN, PC11_OUT,
  1021. PC10_IN, PC10_OUT,
  1022. PC9_IN, PC9_OUT,
  1023. PC8_IN, PC8_OUT,
  1024. PC7_IN, PC7_OUT,
  1025. PC6_IN, PC6_OUT,
  1026. PC5_IN, PC5_OUT,
  1027. PC4_IN, PC4_OUT,
  1028. PC3_IN, PC3_OUT,
  1029. PC2_IN, PC2_OUT,
  1030. PC1_IN, PC1_OUT,
  1031. PC0_IN, PC0_OUT }
  1032. },
  1033. { PINMUX_CFG_REG("PCCRL4", 0xfffe3910, 16, 4) {
  1034. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1035. PC14MD_0, PC14MD_1,
  1036. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1037. PC13MD_0, PC13MD_1,
  1038. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1039. PC12MD_0, PC12MD_1,
  1040. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1041. },
  1042. { PINMUX_CFG_REG("PCCRL3", 0xfffe3912, 16, 4) {
  1043. PC11MD_00, PC11MD_01, PC11MD_10, 0,
  1044. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1045. PC10MD_00, PC10MD_01, PC10MD_10, 0,
  1046. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1047. PC9MD_0, PC9MD_1,
  1048. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1049. PC8MD_0, PC8MD_1,
  1050. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1051. },
  1052. { PINMUX_CFG_REG("PCCRL2", 0xfffe3914, 16, 4) {
  1053. PC7MD_0, PC7MD_1,
  1054. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1055. PC6MD_0, PC6MD_1,
  1056. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1057. PC5MD_0, PC5MD_1,
  1058. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1059. PC4MD_0, PC4MD_1,
  1060. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1061. },
  1062. { PINMUX_CFG_REG("PCCRL1", 0xfffe3916, 16, 4) {
  1063. PC3MD_0, PC3MD_1,
  1064. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1065. PC2MD_0, PC2MD_1,
  1066. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1067. PC1MD_0, PC1MD_1,
  1068. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1069. PC0MD_00, PC0MD_01, PC0MD_10, 0,
  1070. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1071. },
  1072. { PINMUX_CFG_REG("PDIORL", 0xfffe3986, 16, 1) {
  1073. PD15_IN, PD15_OUT,
  1074. PD14_IN, PD14_OUT,
  1075. PD13_IN, PD13_OUT,
  1076. PD12_IN, PD12_OUT,
  1077. PD11_IN, PD11_OUT,
  1078. PD10_IN, PD10_OUT,
  1079. PD9_IN, PD9_OUT,
  1080. PD8_IN, PD8_OUT,
  1081. PD7_IN, PD7_OUT,
  1082. PD6_IN, PD6_OUT,
  1083. PD5_IN, PD5_OUT,
  1084. PD4_IN, PD4_OUT,
  1085. PD3_IN, PD3_OUT,
  1086. PD2_IN, PD2_OUT,
  1087. PD1_IN, PD1_OUT,
  1088. PD0_IN, PD0_OUT }
  1089. },
  1090. { PINMUX_CFG_REG("PDCRL4", 0xfffe3990, 16, 4) {
  1091. PD15MD_000, PD15MD_001, PD15MD_010, 0,
  1092. PD15MD_100, PD15MD_101, 0, 0,
  1093. 0, 0, 0, 0, 0, 0, 0, 0,
  1094. PD14MD_000, PD14MD_001, PD14MD_010, 0,
  1095. 0, PD14MD_101, 0, 0,
  1096. 0, 0, 0, 0, 0, 0, 0, 0,
  1097. PD13MD_000, PD13MD_001, PD13MD_010, 0,
  1098. PD13MD_100, PD13MD_101, 0, 0,
  1099. 0, 0, 0, 0, 0, 0, 0, 0,
  1100. PD12MD_000, PD12MD_001, PD12MD_010, 0,
  1101. PD12MD_100, PD12MD_101, 0, 0,
  1102. 0, 0, 0, 0, 0, 0, 0, 0 }
  1103. },
  1104. { PINMUX_CFG_REG("PDCRL3", 0xfffe3992, 16, 4) {
  1105. PD11MD_000, PD11MD_001, PD11MD_010, 0,
  1106. PD11MD_100, PD11MD_101, 0, 0,
  1107. 0, 0, 0, 0, 0, 0, 0, 0,
  1108. PD10MD_000, PD10MD_001, PD10MD_010, 0,
  1109. PD10MD_100, PD10MD_101, 0, 0,
  1110. 0, 0, 0, 0, 0, 0, 0, 0,
  1111. PD9MD_000, PD9MD_001, PD9MD_010, 0,
  1112. PD9MD_100, PD9MD_101, 0, 0,
  1113. 0, 0, 0, 0, 0, 0, 0, 0,
  1114. PD8MD_000, PD8MD_001, PD8MD_010, 0,
  1115. PD8MD_100, PD8MD_101, 0, 0,
  1116. 0, 0, 0, 0, 0, 0, 0, 0 }
  1117. },
  1118. { PINMUX_CFG_REG("PDCRL2", 0xfffe3994, 16, 4) {
  1119. PD7MD_000, PD7MD_001, PD7MD_010, PD7MD_011,
  1120. PD7MD_100, PD7MD_101, 0, 0,
  1121. 0, 0, 0, 0, 0, 0, 0, 0,
  1122. PD6MD_000, PD6MD_001, PD6MD_010, PD6MD_011,
  1123. PD6MD_100, PD6MD_101, 0, 0,
  1124. 0, 0, 0, 0, 0, 0, 0, 0,
  1125. PD5MD_000, PD5MD_001, PD5MD_010, PD5MD_011,
  1126. PD5MD_100, PD5MD_101, 0, 0,
  1127. 0, 0, 0, 0, 0, 0, 0, 0,
  1128. PD4MD_000, PD4MD_001, PD4MD_010, PD4MD_011,
  1129. PD4MD_100, PD4MD_101, 0, 0,
  1130. 0, 0, 0, 0, 0, 0, 0, 0 }
  1131. },
  1132. { PINMUX_CFG_REG("PDCRL1", 0xfffe3996, 16, 4) {
  1133. PD3MD_000, PD3MD_001, PD3MD_010, PD3MD_011,
  1134. PD3MD_100, PD3MD_101, 0, 0,
  1135. 0, 0, 0, 0, 0, 0, 0, 0,
  1136. PD2MD_000, PD2MD_001, PD2MD_010, PD2MD_011,
  1137. PD2MD_100, PD2MD_101, 0, 0,
  1138. 0, 0, 0, 0, 0, 0, 0, 0,
  1139. PD1MD_000, PD1MD_001, PD1MD_010, PD1MD_011,
  1140. PD1MD_100, PD1MD_101, 0, 0,
  1141. 0, 0, 0, 0, 0, 0, 0, 0,
  1142. PD0MD_000, PD0MD_001, PD0MD_010, PD0MD_011,
  1143. PD0MD_100, PD0MD_101, 0, 0,
  1144. 0, 0, 0, 0, 0, 0, 0, 0 }
  1145. },
  1146. { PINMUX_CFG_REG("PEIORL", 0xfffe3a06, 16, 1) {
  1147. PE15_IN, PE15_OUT,
  1148. PE14_IN, PE14_OUT,
  1149. PE13_IN, PE13_OUT,
  1150. PE12_IN, PE12_OUT,
  1151. PE11_IN, PE11_OUT,
  1152. PE10_IN, PE10_OUT,
  1153. PE9_IN, PE9_OUT,
  1154. PE8_IN, PE8_OUT,
  1155. PE7_IN, PE7_OUT,
  1156. PE6_IN, PE6_OUT,
  1157. PE5_IN, PE5_OUT,
  1158. PE4_IN, PE4_OUT,
  1159. PE3_IN, PE3_OUT,
  1160. PE2_IN, PE2_OUT,
  1161. PE1_IN, PE1_OUT,
  1162. PE0_IN, PE0_OUT }
  1163. },
  1164. { PINMUX_CFG_REG("PECRL4", 0xfffe3a10, 16, 4) {
  1165. PE15MD_00, PE15MD_01, 0, PE15MD_11,
  1166. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1167. PE14MD_00, PE14MD_01, 0, PE14MD_11,
  1168. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1169. PE13MD_00, 0, 0, PE13MD_11,
  1170. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1171. PE12MD_00, 0, 0, PE12MD_11,
  1172. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1173. },
  1174. { PINMUX_CFG_REG("PECRL3", 0xfffe3a12, 16, 4) {
  1175. PE11MD_000, PE11MD_001, PE11MD_010, 0,
  1176. PE11MD_100, 0, 0, 0,
  1177. 0, 0, 0, 0, 0, 0, 0, 0,
  1178. PE10MD_000, PE10MD_001, PE10MD_010, 0,
  1179. PE10MD_100, 0, 0, 0,
  1180. 0, 0, 0, 0, 0, 0, 0, 0,
  1181. PE9MD_00, PE9MD_01, PE9MD_10, PE9MD_11,
  1182. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1183. PE8MD_00, PE8MD_01, PE8MD_10, PE8MD_11,
  1184. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1185. },
  1186. { PINMUX_CFG_REG("PECRL2", 0xfffe3a14, 16, 4) {
  1187. PE7MD_000, PE7MD_001, PE7MD_010, PE7MD_011,
  1188. PE7MD_100, 0, 0, 0,
  1189. 0, 0, 0, 0, 0, 0, 0, 0,
  1190. PE6MD_000, PE6MD_001, PE6MD_010, PE6MD_011,
  1191. PE6MD_100, 0, 0, 0,
  1192. 0, 0, 0, 0, 0, 0, 0, 0,
  1193. PE5MD_000, PE5MD_001, PE5MD_010, PE5MD_011,
  1194. PE5MD_100, 0, 0, 0,
  1195. 0, 0, 0, 0, 0, 0, 0, 0,
  1196. PE4MD_000, PE4MD_001, PE4MD_010, PE4MD_011,
  1197. PE4MD_100, 0, 0, 0,
  1198. 0, 0, 0, 0, 0, 0, 0, 0 }
  1199. },
  1200. { PINMUX_CFG_REG("PECRL1", 0xfffe3a16, 16, 4) {
  1201. PE3MD_00, PE3MD_01, 0, PE3MD_11,
  1202. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1203. PE2MD_00, PE2MD_01, 0, PE2MD_11,
  1204. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1205. PE1MD_00, PE1MD_01, PE1MD_10, PE1MD_11,
  1206. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1207. PE0MD_000, PE0MD_001, 0, PE0MD_011,
  1208. PE0MD_100, 0, 0, 0,
  1209. 0, 0, 0, 0, 0, 0, 0, 0 }
  1210. },
  1211. { PINMUX_CFG_REG("PFIORH", 0xfffe3a84, 16, 1) {
  1212. 0, 0,
  1213. PF30_IN, PF30_OUT,
  1214. PF29_IN, PF29_OUT,
  1215. PF28_IN, PF28_OUT,
  1216. PF27_IN, PF27_OUT,
  1217. PF26_IN, PF26_OUT,
  1218. PF25_IN, PF25_OUT,
  1219. PF24_IN, PF24_OUT,
  1220. PF23_IN, PF23_OUT,
  1221. PF22_IN, PF22_OUT,
  1222. PF21_IN, PF21_OUT,
  1223. PF20_IN, PF20_OUT,
  1224. PF19_IN, PF19_OUT,
  1225. PF18_IN, PF18_OUT,
  1226. PF17_IN, PF17_OUT,
  1227. PF16_IN, PF16_OUT }
  1228. },
  1229. { PINMUX_CFG_REG("PFIORL", 0xfffe3a86, 16, 1) {
  1230. PF15_IN, PF15_OUT,
  1231. PF14_IN, PF14_OUT,
  1232. PF13_IN, PF13_OUT,
  1233. PF12_IN, PF12_OUT,
  1234. PF11_IN, PF11_OUT,
  1235. PF10_IN, PF10_OUT,
  1236. PF9_IN, PF9_OUT,
  1237. PF8_IN, PF8_OUT,
  1238. PF7_IN, PF7_OUT,
  1239. PF6_IN, PF6_OUT,
  1240. PF5_IN, PF5_OUT,
  1241. PF4_IN, PF4_OUT,
  1242. PF3_IN, PF3_OUT,
  1243. PF2_IN, PF2_OUT,
  1244. PF1_IN, PF1_OUT,
  1245. PF0_IN, PF0_OUT }
  1246. },
  1247. { PINMUX_CFG_REG("PFCRH4", 0xfffe3a88, 16, 4) {
  1248. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1249. PF30MD_0, PF30MD_1,
  1250. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1251. PF29MD_0, PF29MD_1,
  1252. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1253. PF28MD_0, PF28MD_1,
  1254. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1255. },
  1256. { PINMUX_CFG_REG("PFCRH3", 0xfffe3a8a, 16, 4) {
  1257. PF27MD_0, PF27MD_1,
  1258. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1259. PF26MD_0, PF26MD_1,
  1260. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1261. PF25MD_0, PF25MD_1,
  1262. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1263. PF24MD_0, PF24MD_1,
  1264. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1265. },
  1266. { PINMUX_CFG_REG("PFCRH2", 0xfffe3a8c, 16, 4) {
  1267. PF23MD_00, PF23MD_01, PF23MD_10, 0,
  1268. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1269. PF22MD_00, PF22MD_01, PF22MD_10, 0,
  1270. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1271. PF21MD_00, PF21MD_01, PF21MD_10, 0,
  1272. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1273. PF20MD_00, PF20MD_01, PF20MD_10, 0,
  1274. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1275. },
  1276. { PINMUX_CFG_REG("PFCRH1", 0xfffe3a8e, 16, 4) {
  1277. PF19MD_00, PF19MD_01, PF19MD_10, 0,
  1278. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1279. PF18MD_00, PF18MD_01, PF18MD_10, 0,
  1280. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1281. PF17MD_00, PF17MD_01, PF17MD_10, 0,
  1282. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1283. PF16MD_00, PF16MD_01, PF16MD_10, 0,
  1284. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1285. },
  1286. { PINMUX_CFG_REG("PFCRL4", 0xfffe3a90, 16, 4) {
  1287. PF15MD_00, PF15MD_01, PF15MD_10, 0,
  1288. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1289. PF14MD_00, PF14MD_01, PF14MD_10, 0,
  1290. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1291. PF13MD_00, PF13MD_01, PF13MD_10, 0,
  1292. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1293. PF12MD_00, PF12MD_01, PF12MD_10, 0,
  1294. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1295. },
  1296. { PINMUX_CFG_REG("PFCRL3", 0xfffe3a92, 16, 4) {
  1297. PF11MD_00, PF11MD_01, PF11MD_10, 0,
  1298. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1299. PF10MD_00, PF10MD_01, PF10MD_10, 0,
  1300. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1301. PF9MD_00, PF9MD_01, PF9MD_10, 0,
  1302. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1303. PF8MD_00, PF8MD_01, PF8MD_10, 0,
  1304. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1305. },
  1306. { PINMUX_CFG_REG("PFCRL2", 0xfffe3a94, 16, 4) {
  1307. PF7MD_00, PF7MD_01, PF7MD_10, PF7MD_11,
  1308. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1309. PF6MD_00, PF6MD_01, PF6MD_10, PF6MD_11,
  1310. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1311. PF5MD_00, PF5MD_01, PF5MD_10, PF5MD_11,
  1312. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1313. PF4MD_00, PF4MD_01, PF4MD_10, PF4MD_11,
  1314. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1315. },
  1316. { PINMUX_CFG_REG("PFCRL1", 0xfffe3a96, 16, 4) {
  1317. PF3MD_00, PF3MD_01, PF3MD_10, PF3MD_11,
  1318. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1319. PF2MD_00, PF2MD_01, PF2MD_10, PF2MD_11,
  1320. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1321. PF1MD_00, PF1MD_01, PF1MD_10, PF1MD_11,
  1322. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1323. PF0MD_00, PF0MD_01, PF0MD_10, PF0MD_11,
  1324. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
  1325. },
  1326. {}
  1327. };
  1328. static const struct pinmux_data_reg pinmux_data_regs[] = {
  1329. { PINMUX_DATA_REG("PADRL", 0xfffe3802, 16) {
  1330. 0, 0, 0, 0,
  1331. 0, 0, 0, 0,
  1332. PA7_DATA, PA6_DATA, PA5_DATA, PA4_DATA,
  1333. PA3_DATA, PA2_DATA, PA1_DATA, PA0_DATA }
  1334. },
  1335. { PINMUX_DATA_REG("PBDRL", 0xfffe3882, 16) {
  1336. 0, 0, 0, PB12_DATA,
  1337. PB11_DATA, PB10_DATA, PB9_DATA, PB8_DATA,
  1338. PB7_DATA, PB6_DATA, PB5_DATA, PB4_DATA,
  1339. PB3_DATA, PB2_DATA, PB1_DATA, PB0_DATA }
  1340. },
  1341. { PINMUX_DATA_REG("PCDRL", 0xfffe3902, 16) {
  1342. 0, PC14_DATA, PC13_DATA, PC12_DATA,
  1343. PC11_DATA, PC10_DATA, PC9_DATA, PC8_DATA,
  1344. PC7_DATA, PC6_DATA, PC5_DATA, PC4_DATA,
  1345. PC3_DATA, PC2_DATA, PC1_DATA, PC0_DATA }
  1346. },
  1347. { PINMUX_DATA_REG("PDDRL", 0xfffe3982, 16) {
  1348. PD15_DATA, PD14_DATA, PD13_DATA, PD12_DATA,
  1349. PD11_DATA, PD10_DATA, PD9_DATA, PD8_DATA,
  1350. PD7_DATA, PD6_DATA, PD5_DATA, PD4_DATA,
  1351. PD3_DATA, PD2_DATA, PD1_DATA, PD0_DATA }
  1352. },
  1353. { PINMUX_DATA_REG("PEDRL", 0xfffe3a02, 16) {
  1354. PE15_DATA, PE14_DATA, PE13_DATA, PE12_DATA,
  1355. PE11_DATA, PE10_DATA, PE9_DATA, PE8_DATA,
  1356. PE7_DATA, PE6_DATA, PE5_DATA, PE4_DATA,
  1357. PE3_DATA, PE2_DATA, PE1_DATA, PE0_DATA }
  1358. },
  1359. { PINMUX_DATA_REG("PFDRH", 0xfffe3a80, 16) {
  1360. 0, PF30_DATA, PF29_DATA, PF28_DATA,
  1361. PF27_DATA, PF26_DATA, PF25_DATA, PF24_DATA,
  1362. PF23_DATA, PF22_DATA, PF21_DATA, PF20_DATA,
  1363. PF19_DATA, PF18_DATA, PF17_DATA, PF16_DATA }
  1364. },
  1365. { PINMUX_DATA_REG("PFDRL", 0xfffe3a82, 16) {
  1366. PF15_DATA, PF14_DATA, PF13_DATA, PF12_DATA,
  1367. PF11_DATA, PF10_DATA, PF9_DATA, PF8_DATA,
  1368. PF7_DATA, PF6_DATA, PF5_DATA, PF4_DATA,
  1369. PF3_DATA, PF2_DATA, PF1_DATA, PF0_DATA }
  1370. },
  1371. { },
  1372. };
  1373. const struct sh_pfc_soc_info sh7203_pinmux_info = {
  1374. .name = "sh7203_pfc",
  1375. .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END, FORCE_IN },
  1376. .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END, FORCE_OUT },
  1377. .function = { PINMUX_FUNCTION_BEGIN, PINMUX_FUNCTION_END },
  1378. .pins = pinmux_pins,
  1379. .nr_pins = ARRAY_SIZE(pinmux_pins),
  1380. .func_gpios = pinmux_func_gpios,
  1381. .nr_func_gpios = ARRAY_SIZE(pinmux_func_gpios),
  1382. .cfg_regs = pinmux_config_regs,
  1383. .data_regs = pinmux_data_regs,
  1384. .pinmux_data = pinmux_data,
  1385. .pinmux_data_size = ARRAY_SIZE(pinmux_data),
  1386. };