mfp-pxa320.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. /*
  2. * arch/arm/mach-pxa/include/mach/mfp-pxa320.h
  3. *
  4. * PXA320 specific MFP configuration definitions
  5. *
  6. * Copyright (C) 2007 Marvell International Ltd.
  7. * 2007-08-21: eric miao <eric.miao@marvell.com>
  8. * initial version
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #ifndef __ASM_ARCH_MFP_PXA320_H
  15. #define __ASM_ARCH_MFP_PXA320_H
  16. #include "mfp-pxa3xx.h"
  17. /* GPIO */
  18. #define GPIO46_GPIO MFP_CFG(GPIO46, AF0)
  19. #define GPIO49_GPIO MFP_CFG(GPIO49, AF0)
  20. #define GPIO50_GPIO MFP_CFG(GPIO50, AF0)
  21. #define GPIO51_GPIO MFP_CFG(GPIO51, AF0)
  22. #define GPIO52_GPIO MFP_CFG(GPIO52, AF0)
  23. #define GPIO7_2_GPIO MFP_CFG(GPIO7_2, AF0)
  24. #define GPIO8_2_GPIO MFP_CFG(GPIO8_2, AF0)
  25. #define GPIO9_2_GPIO MFP_CFG(GPIO9_2, AF0)
  26. #define GPIO10_2_GPIO MFP_CFG(GPIO10_2, AF0)
  27. #define GPIO11_2_GPIO MFP_CFG(GPIO11_2, AF0)
  28. #define GPIO12_2_GPIO MFP_CFG(GPIO12_2, AF0)
  29. #define GPIO13_2_GPIO MFP_CFG(GPIO13_2, AF0)
  30. #define GPIO14_2_GPIO MFP_CFG(GPIO14_2, AF0)
  31. #define GPIO15_2_GPIO MFP_CFG(GPIO15_2, AF0)
  32. #define GPIO16_2_GPIO MFP_CFG(GPIO16_2, AF0)
  33. #define GPIO17_2_GPIO MFP_CFG(GPIO17_2, AF0)
  34. /* Chip Select */
  35. #define GPIO3_nCS2 MFP_CFG(GPIO3, AF1)
  36. #define GPIO4_nCS3 MFP_CFG(GPIO4, AF1)
  37. /* AC97 */
  38. #define GPIO34_AC97_SYSCLK MFP_CFG(GPIO34, AF1)
  39. #define GPIO39_AC97_BITCLK MFP_CFG(GPIO39, AF1)
  40. #define GPIO40_AC97_nACRESET MFP_CFG(GPIO40, AF1)
  41. #define GPIO35_AC97_SDATA_IN_0 MFP_CFG(GPIO35, AF1)
  42. #define GPIO36_AC97_SDATA_IN_1 MFP_CFG(GPIO36, AF1)
  43. #define GPIO32_AC97_SDATA_IN_2 MFP_CFG(GPIO32, AF2)
  44. #define GPIO33_AC97_SDATA_IN_3 MFP_CFG(GPIO33, AF2)
  45. #define GPIO11_AC97_SDATA_IN_2 MFP_CFG(GPIO11, AF3)
  46. #define GPIO12_AC97_SDATA_IN_3 MFP_CFG(GPIO12, AF3)
  47. #define GPIO37_AC97_SDATA_OUT MFP_CFG(GPIO37, AF1)
  48. #define GPIO38_AC97_SYNC MFP_CFG(GPIO38, AF1)
  49. /* I2C */
  50. #define GPIO32_I2C_SCL MFP_CFG_LPM(GPIO32, AF1, PULL_HIGH)
  51. #define GPIO33_I2C_SDA MFP_CFG_LPM(GPIO33, AF1, PULL_HIGH)
  52. /* QCI */
  53. #define GPIO49_CI_DD_0 MFP_CFG_DRV(GPIO49, AF1, DS04X)
  54. #define GPIO50_CI_DD_1 MFP_CFG_DRV(GPIO50, AF1, DS04X)
  55. #define GPIO51_CI_DD_2 MFP_CFG_DRV(GPIO51, AF1, DS04X)
  56. #define GPIO52_CI_DD_3 MFP_CFG_DRV(GPIO52, AF1, DS04X)
  57. #define GPIO53_CI_DD_4 MFP_CFG_DRV(GPIO53, AF1, DS04X)
  58. #define GPIO54_CI_DD_5 MFP_CFG_DRV(GPIO54, AF1, DS04X)
  59. #define GPIO55_CI_DD_6 MFP_CFG_DRV(GPIO55, AF1, DS04X)
  60. #define GPIO56_CI_DD_7 MFP_CFG_DRV(GPIO56, AF0, DS04X)
  61. #define GPIO57_CI_DD_8 MFP_CFG_DRV(GPIO57, AF1, DS04X)
  62. #define GPIO58_CI_DD_9 MFP_CFG_DRV(GPIO58, AF1, DS04X)
  63. #define GPIO59_CI_MCLK MFP_CFG_DRV(GPIO59, AF0, DS04X)
  64. #define GPIO60_CI_PCLK MFP_CFG_DRV(GPIO60, AF0, DS04X)
  65. #define GPIO61_CI_HSYNC MFP_CFG_DRV(GPIO61, AF0, DS04X)
  66. #define GPIO62_CI_VSYNC MFP_CFG_DRV(GPIO62, AF0, DS04X)
  67. #define GPIO31_CIR_OUT MFP_CFG(GPIO31, AF5)
  68. #define GPIO0_2_CLK_EXT MFP_CFG(GPIO0_2, AF3)
  69. #define GPIO0_DRQ MFP_CFG(GPIO0, AF2)
  70. #define GPIO11_EXT_SYNC0 MFP_CFG(GPIO11, AF5)
  71. #define GPIO12_EXT_SYNC1 MFP_CFG(GPIO12, AF6)
  72. #define GPIO0_2_HZ_CLK MFP_CFG(GPIO0_2, AF1)
  73. #define GPIO14_HZ_CLK MFP_CFG(GPIO14, AF4)
  74. #define GPIO30_ICP_RXD MFP_CFG(GPIO30, AF1)
  75. #define GPIO31_ICP_TXD MFP_CFG(GPIO31, AF1)
  76. #define GPIO83_KP_DKIN_0 MFP_CFG_LPM(GPIO83, AF3, FLOAT)
  77. #define GPIO84_KP_DKIN_1 MFP_CFG_LPM(GPIO84, AF3, FLOAT)
  78. #define GPIO85_KP_DKIN_2 MFP_CFG_LPM(GPIO85, AF3, FLOAT)
  79. #define GPIO86_KP_DKIN_3 MFP_CFG_LPM(GPIO86, AF3, FLOAT)
  80. #define GPIO105_KP_DKIN_0 MFP_CFG_LPM(GPIO105, AF2, FLOAT)
  81. #define GPIO106_KP_DKIN_1 MFP_CFG_LPM(GPIO106, AF2, FLOAT)
  82. #define GPIO107_KP_DKIN_2 MFP_CFG_LPM(GPIO107, AF2, FLOAT)
  83. #define GPIO108_KP_DKIN_3 MFP_CFG_LPM(GPIO108, AF2, FLOAT)
  84. #define GPIO109_KP_DKIN_4 MFP_CFG_LPM(GPIO109, AF2, FLOAT)
  85. #define GPIO110_KP_DKIN_5 MFP_CFG_LPM(GPIO110, AF2, FLOAT)
  86. #define GPIO111_KP_DKIN_6 MFP_CFG_LPM(GPIO111, AF2, FLOAT)
  87. #define GPIO112_KP_DKIN_7 MFP_CFG_LPM(GPIO112, AF2, FLOAT)
  88. #define GPIO113_KP_DKIN_0 MFP_CFG_LPM(GPIO113, AF2, FLOAT)
  89. #define GPIO114_KP_DKIN_1 MFP_CFG_LPM(GPIO114, AF2, FLOAT)
  90. #define GPIO115_KP_DKIN_2 MFP_CFG_LPM(GPIO115, AF2, FLOAT)
  91. #define GPIO116_KP_DKIN_3 MFP_CFG_LPM(GPIO116, AF2, FLOAT)
  92. #define GPIO117_KP_DKIN_4 MFP_CFG_LPM(GPIO117, AF2, FLOAT)
  93. #define GPIO118_KP_DKIN_5 MFP_CFG_LPM(GPIO118, AF2, FLOAT)
  94. #define GPIO119_KP_DKIN_6 MFP_CFG_LPM(GPIO119, AF2, FLOAT)
  95. #define GPIO120_KP_DKIN_7 MFP_CFG_LPM(GPIO120, AF2, FLOAT)
  96. #define GPIO127_KP_DKIN_0 MFP_CFG_LPM(GPIO127, AF2, FLOAT)
  97. #define GPIO126_KP_DKIN_1 MFP_CFG_LPM(GPIO126, AF2, FLOAT)
  98. #define GPIO2_2_KP_DKIN_0 MFP_CFG_LPM(GPIO2_2, AF2, FLOAT)
  99. #define GPIO3_2_KP_DKIN_1 MFP_CFG_LPM(GPIO3_2, AF2, FLOAT)
  100. #define GPIO125_KP_DKIN_2 MFP_CFG_LPM(GPIO125, AF2, FLOAT)
  101. #define GPIO124_KP_DKIN_3 MFP_CFG_LPM(GPIO124, AF2, FLOAT)
  102. #define GPIO123_KP_DKIN_4 MFP_CFG_LPM(GPIO123, AF2, FLOAT)
  103. #define GPIO122_KP_DKIN_5 MFP_CFG_LPM(GPIO122, AF2, FLOAT)
  104. #define GPIO121_KP_DKIN_6 MFP_CFG_LPM(GPIO121, AF2, FLOAT)
  105. #define GPIO4_2_KP_DKIN_7 MFP_CFG_LPM(GPIO4_2, AF2, FLOAT)
  106. #define GPIO113_KP_MKIN_0 MFP_CFG_LPM(GPIO113, AF1, FLOAT)
  107. #define GPIO114_KP_MKIN_1 MFP_CFG_LPM(GPIO114, AF1, FLOAT)
  108. #define GPIO115_KP_MKIN_2 MFP_CFG_LPM(GPIO115, AF1, FLOAT)
  109. #define GPIO116_KP_MKIN_3 MFP_CFG_LPM(GPIO116, AF1, FLOAT)
  110. #define GPIO117_KP_MKIN_4 MFP_CFG_LPM(GPIO117, AF1, FLOAT)
  111. #define GPIO118_KP_MKIN_5 MFP_CFG_LPM(GPIO118, AF1, FLOAT)
  112. #define GPIO119_KP_MKIN_6 MFP_CFG_LPM(GPIO119, AF1, FLOAT)
  113. #define GPIO120_KP_MKIN_7 MFP_CFG_LPM(GPIO120, AF1, FLOAT)
  114. #define GPIO83_KP_MKOUT_0 MFP_CFG_LPM(GPIO83, AF2, DRIVE_HIGH)
  115. #define GPIO84_KP_MKOUT_1 MFP_CFG_LPM(GPIO84, AF2, DRIVE_HIGH)
  116. #define GPIO85_KP_MKOUT_2 MFP_CFG_LPM(GPIO85, AF2, DRIVE_HIGH)
  117. #define GPIO86_KP_MKOUT_3 MFP_CFG_LPM(GPIO86, AF2, DRIVE_HIGH)
  118. #define GPIO13_KP_MKOUT_4 MFP_CFG_LPM(GPIO13, AF3, DRIVE_HIGH)
  119. #define GPIO14_KP_MKOUT_5 MFP_CFG_LPM(GPIO14, AF3, DRIVE_HIGH)
  120. #define GPIO121_KP_MKOUT_0 MFP_CFG_LPM(GPIO121, AF1, DRIVE_HIGH)
  121. #define GPIO122_KP_MKOUT_1 MFP_CFG_LPM(GPIO122, AF1, DRIVE_HIGH)
  122. #define GPIO123_KP_MKOUT_2 MFP_CFG_LPM(GPIO123, AF1, DRIVE_HIGH)
  123. #define GPIO124_KP_MKOUT_3 MFP_CFG_LPM(GPIO124, AF1, DRIVE_HIGH)
  124. #define GPIO125_KP_MKOUT_4 MFP_CFG_LPM(GPIO125, AF1, DRIVE_HIGH)
  125. #define GPIO126_KP_MKOUT_5 MFP_CFG_LPM(GPIO126, AF1, DRIVE_HIGH)
  126. #define GPIO127_KP_MKOUT_6 MFP_CFG_LPM(GPIO127, AF1, DRIVE_HIGH)
  127. #define GPIO5_2_KP_MKOUT_7 MFP_CFG_LPM(GPIO5_2, AF1, DRIVE_HIGH)
  128. /* LCD */
  129. #define GPIO6_2_LCD_LDD_0 MFP_CFG_DRV(GPIO6_2, AF1, DS01X)
  130. #define GPIO7_2_LCD_LDD_1 MFP_CFG_DRV(GPIO7_2, AF1, DS01X)
  131. #define GPIO8_2_LCD_LDD_2 MFP_CFG_DRV(GPIO8_2, AF1, DS01X)
  132. #define GPIO9_2_LCD_LDD_3 MFP_CFG_DRV(GPIO9_2, AF1, DS01X)
  133. #define GPIO10_2_LCD_LDD_4 MFP_CFG_DRV(GPIO10_2, AF1, DS01X)
  134. #define GPIO11_2_LCD_LDD_5 MFP_CFG_DRV(GPIO11_2, AF1, DS01X)
  135. #define GPIO12_2_LCD_LDD_6 MFP_CFG_DRV(GPIO12_2, AF1, DS01X)
  136. #define GPIO13_2_LCD_LDD_7 MFP_CFG_DRV(GPIO13_2, AF1, DS01X)
  137. #define GPIO63_LCD_LDD_8 MFP_CFG_DRV(GPIO63, AF1, DS01X)
  138. #define GPIO64_LCD_LDD_9 MFP_CFG_DRV(GPIO64, AF1, DS01X)
  139. #define GPIO65_LCD_LDD_10 MFP_CFG_DRV(GPIO65, AF1, DS01X)
  140. #define GPIO66_LCD_LDD_11 MFP_CFG_DRV(GPIO66, AF1, DS01X)
  141. #define GPIO67_LCD_LDD_12 MFP_CFG_DRV(GPIO67, AF1, DS01X)
  142. #define GPIO68_LCD_LDD_13 MFP_CFG_DRV(GPIO68, AF1, DS01X)
  143. #define GPIO69_LCD_LDD_14 MFP_CFG_DRV(GPIO69, AF1, DS01X)
  144. #define GPIO70_LCD_LDD_15 MFP_CFG_DRV(GPIO70, AF1, DS01X)
  145. #define GPIO71_LCD_LDD_16 MFP_CFG_DRV(GPIO71, AF1, DS01X)
  146. #define GPIO72_LCD_LDD_17 MFP_CFG_DRV(GPIO72, AF1, DS01X)
  147. #define GPIO73_LCD_CS_N MFP_CFG_DRV(GPIO73, AF2, DS01X)
  148. #define GPIO74_LCD_VSYNC MFP_CFG_DRV(GPIO74, AF2, DS01X)
  149. #define GPIO14_2_LCD_FCLK MFP_CFG_DRV(GPIO14_2, AF1, DS01X)
  150. #define GPIO15_2_LCD_LCLK MFP_CFG_DRV(GPIO15_2, AF1, DS01X)
  151. #define GPIO16_2_LCD_PCLK MFP_CFG_DRV(GPIO16_2, AF1, DS01X)
  152. #define GPIO17_2_LCD_BIAS MFP_CFG_DRV(GPIO17_2, AF1, DS01X)
  153. #define GPIO64_LCD_VSYNC MFP_CFG_DRV(GPIO64, AF2, DS01X)
  154. #define GPIO63_LCD_CS_N MFP_CFG_DRV(GPIO63, AF2, DS01X)
  155. #define GPIO6_2_MLCD_DD_0 MFP_CFG_DRV(GPIO6_2, AF7, DS08X)
  156. #define GPIO7_2_MLCD_DD_1 MFP_CFG_DRV(GPIO7_2, AF7, DS08X)
  157. #define GPIO8_2_MLCD_DD_2 MFP_CFG_DRV(GPIO8_2, AF7, DS08X)
  158. #define GPIO9_2_MLCD_DD_3 MFP_CFG_DRV(GPIO9_2, AF7, DS08X)
  159. #define GPIO10_2_MLCD_DD_4 MFP_CFG_DRV(GPIO10_2, AF7, DS08X)
  160. #define GPIO11_2_MLCD_DD_5 MFP_CFG_DRV(GPIO11_2, AF7, DS08X)
  161. #define GPIO12_2_MLCD_DD_6 MFP_CFG_DRV(GPIO12_2, AF7, DS08X)
  162. #define GPIO13_2_MLCD_DD_7 MFP_CFG_DRV(GPIO13_2, AF7, DS08X)
  163. #define GPIO63_MLCD_DD_8 MFP_CFG_DRV(GPIO63, AF7, DS08X)
  164. #define GPIO64_MLCD_DD_9 MFP_CFG_DRV(GPIO64, AF7, DS08X)
  165. #define GPIO65_MLCD_DD_10 MFP_CFG_DRV(GPIO65, AF7, DS08X)
  166. #define GPIO66_MLCD_DD_11 MFP_CFG_DRV(GPIO66, AF7, DS08X)
  167. #define GPIO67_MLCD_DD_12 MFP_CFG_DRV(GPIO67, AF7, DS08X)
  168. #define GPIO68_MLCD_DD_13 MFP_CFG_DRV(GPIO68, AF7, DS08X)
  169. #define GPIO69_MLCD_DD_14 MFP_CFG_DRV(GPIO69, AF7, DS08X)
  170. #define GPIO70_MLCD_DD_15 MFP_CFG_DRV(GPIO70, AF7, DS08X)
  171. #define GPIO71_MLCD_DD_16 MFP_CFG_DRV(GPIO71, AF7, DS08X)
  172. #define GPIO72_MLCD_DD_17 MFP_CFG_DRV(GPIO72, AF7, DS08X)
  173. #define GPIO73_MLCD_CS MFP_CFG_DRV(GPIO73, AF7, DS08X)
  174. #define GPIO74_MLCD_VSYNC MFP_CFG_DRV(GPIO74, AF7, DS08X)
  175. #define GPIO14_2_MLCD_FCLK MFP_CFG_DRV(GPIO14_2, AF7, DS08X)
  176. #define GPIO15_2_MLCD_LCLK MFP_CFG_DRV(GPIO15_2, AF7, DS08X)
  177. #define GPIO16_2_MLCD_PCLK MFP_CFG_DRV(GPIO16_2, AF7, DS08X)
  178. #define GPIO17_2_MLCD_BIAS MFP_CFG_DRV(GPIO17_2, AF7, DS08X)
  179. /* MMC1 */
  180. #define GPIO9_MMC1_CMD MFP_CFG_LPM(GPIO9, AF4, DRIVE_HIGH)
  181. #define GPIO22_MMC1_CLK MFP_CFG_LPM(GPIO22, AF4, DRIVE_HIGH)
  182. #define GPIO23_MMC1_CMD MFP_CFG_LPM(GPIO23, AF4, DRIVE_HIGH)
  183. #define GPIO30_MMC1_CLK MFP_CFG_LPM(GPIO30, AF4, DRIVE_HIGH)
  184. #define GPIO31_MMC1_CMD MFP_CFG_LPM(GPIO31, AF4, DRIVE_HIGH)
  185. #define GPIO5_MMC1_DAT0 MFP_CFG_LPM(GPIO5, AF4, DRIVE_HIGH)
  186. #define GPIO6_MMC1_DAT1 MFP_CFG_LPM(GPIO6, AF4, DRIVE_HIGH)
  187. #define GPIO7_MMC1_DAT2 MFP_CFG_LPM(GPIO7, AF4, DRIVE_HIGH)
  188. #define GPIO8_MMC1_DAT3 MFP_CFG_LPM(GPIO8, AF4, DRIVE_HIGH)
  189. #define GPIO18_MMC1_DAT0 MFP_CFG_LPM(GPIO18, AF4, DRIVE_HIGH)
  190. #define GPIO19_MMC1_DAT1 MFP_CFG_LPM(GPIO19, AF4, DRIVE_HIGH)
  191. #define GPIO20_MMC1_DAT2 MFP_CFG_LPM(GPIO20, AF4, DRIVE_HIGH)
  192. #define GPIO21_MMC1_DAT3 MFP_CFG_LPM(GPIO21, AF4, DRIVE_HIGH)
  193. #define GPIO28_MMC2_CLK MFP_CFG_LPM(GPIO28, AF4, PULL_HIGH)
  194. #define GPIO29_MMC2_CMD MFP_CFG_LPM(GPIO29, AF4, PULL_HIGH)
  195. #define GPIO30_MMC2_CLK MFP_CFG_LPM(GPIO30, AF3, PULL_HIGH)
  196. #define GPIO31_MMC2_CMD MFP_CFG_LPM(GPIO31, AF3, PULL_HIGH)
  197. #define GPIO79_MMC2_CLK MFP_CFG_LPM(GPIO79, AF4, PULL_HIGH)
  198. #define GPIO80_MMC2_CMD MFP_CFG_LPM(GPIO80, AF4, PULL_HIGH)
  199. #define GPIO5_MMC2_DAT0 MFP_CFG_LPM(GPIO5, AF2, PULL_HIGH)
  200. #define GPIO6_MMC2_DAT1 MFP_CFG_LPM(GPIO6, AF2, PULL_HIGH)
  201. #define GPIO7_MMC2_DAT2 MFP_CFG_LPM(GPIO7, AF2, PULL_HIGH)
  202. #define GPIO8_MMC2_DAT3 MFP_CFG_LPM(GPIO8, AF2, PULL_HIGH)
  203. #define GPIO24_MMC2_DAT0 MFP_CFG_LPM(GPIO24, AF4, PULL_HIGH)
  204. #define GPIO75_MMC2_DAT0 MFP_CFG_LPM(GPIO75, AF4, PULL_HIGH)
  205. #define GPIO25_MMC2_DAT1 MFP_CFG_LPM(GPIO25, AF4, PULL_HIGH)
  206. #define GPIO76_MMC2_DAT1 MFP_CFG_LPM(GPIO76, AF4, PULL_HIGH)
  207. #define GPIO26_MMC2_DAT2 MFP_CFG_LPM(GPIO26, AF4, PULL_HIGH)
  208. #define GPIO77_MMC2_DAT2 MFP_CFG_LPM(GPIO77, AF4, PULL_HIGH)
  209. #define GPIO27_MMC2_DAT3 MFP_CFG_LPM(GPIO27, AF4, PULL_HIGH)
  210. #define GPIO78_MMC2_DAT3 MFP_CFG_LPM(GPIO78, AF4, PULL_HIGH)
  211. /* 1-Wire */
  212. #define GPIO14_ONE_WIRE MFP_CFG_LPM(GPIO14, AF5, FLOAT)
  213. #define GPIO0_2_ONE_WIRE MFP_CFG_LPM(GPIO0_2, AF2, FLOAT)
  214. /* SSP1 */
  215. #define GPIO87_SSP1_EXTCLK MFP_CFG(GPIO87, AF1)
  216. #define GPIO88_SSP1_SYSCLK MFP_CFG(GPIO88, AF1)
  217. #define GPIO83_SSP1_SCLK MFP_CFG(GPIO83, AF1)
  218. #define GPIO84_SSP1_SFRM MFP_CFG(GPIO84, AF1)
  219. #define GPIO85_SSP1_RXD MFP_CFG(GPIO85, AF6)
  220. #define GPIO85_SSP1_TXD MFP_CFG(GPIO85, AF1)
  221. #define GPIO86_SSP1_RXD MFP_CFG(GPIO86, AF1)
  222. #define GPIO86_SSP1_TXD MFP_CFG(GPIO86, AF6)
  223. /* SSP2 */
  224. #define GPIO39_SSP2_EXTCLK MFP_CFG(GPIO39, AF2)
  225. #define GPIO40_SSP2_SYSCLK MFP_CFG(GPIO40, AF2)
  226. #define GPIO12_SSP2_SCLK MFP_CFG(GPIO12, AF2)
  227. #define GPIO35_SSP2_SCLK MFP_CFG(GPIO35, AF2)
  228. #define GPIO36_SSP2_SFRM MFP_CFG(GPIO36, AF2)
  229. #define GPIO37_SSP2_RXD MFP_CFG(GPIO37, AF5)
  230. #define GPIO37_SSP2_TXD MFP_CFG(GPIO37, AF2)
  231. #define GPIO38_SSP2_RXD MFP_CFG(GPIO38, AF2)
  232. #define GPIO38_SSP2_TXD MFP_CFG(GPIO38, AF5)
  233. #define GPIO69_SSP3_SCLK MFP_CFG_X(GPIO69, AF2, DS08X, FLOAT)
  234. #define GPIO70_SSP3_FRM MFP_CFG_X(GPIO70, AF2, DS08X, DRIVE_LOW)
  235. #define GPIO89_SSP3_SCLK MFP_CFG_X(GPIO89, AF1, DS08X, FLOAT)
  236. #define GPIO90_SSP3_FRM MFP_CFG_X(GPIO90, AF1, DS08X, DRIVE_LOW)
  237. #define GPIO71_SSP3_RXD MFP_CFG_X(GPIO71, AF5, DS08X, FLOAT)
  238. #define GPIO71_SSP3_TXD MFP_CFG_X(GPIO71, AF2, DS08X, DRIVE_LOW)
  239. #define GPIO72_SSP3_RXD MFP_CFG_X(GPIO72, AF2, DS08X, FLOAT)
  240. #define GPIO72_SSP3_TXD MFP_CFG_X(GPIO72, AF5, DS08X, DRIVE_LOW)
  241. #define GPIO91_SSP3_RXD MFP_CFG_X(GPIO91, AF5, DS08X, FLOAT)
  242. #define GPIO91_SSP3_TXD MFP_CFG_X(GPIO91, AF1, DS08X, DRIVE_LOW)
  243. #define GPIO92_SSP3_RXD MFP_CFG_X(GPIO92, AF1, DS08X, FLOAT)
  244. #define GPIO92_SSP3_TXD MFP_CFG_X(GPIO92, AF5, DS08X, DRIVE_LOW)
  245. #define GPIO93_SSP4_SCLK MFP_CFG_LPM(GPIO93, AF1, PULL_HIGH)
  246. #define GPIO94_SSP4_FRM MFP_CFG_LPM(GPIO94, AF1, PULL_HIGH)
  247. #define GPIO94_SSP4_RXD MFP_CFG_LPM(GPIO94, AF5, PULL_HIGH)
  248. #define GPIO95_SSP4_RXD MFP_CFG_LPM(GPIO95, AF5, PULL_HIGH)
  249. #define GPIO95_SSP4_TXD MFP_CFG_LPM(GPIO95, AF1, PULL_HIGH)
  250. #define GPIO96_SSP4_RXD MFP_CFG_LPM(GPIO96, AF1, PULL_HIGH)
  251. #define GPIO96_SSP4_TXD MFP_CFG_LPM(GPIO96, AF5, PULL_HIGH)
  252. /* UART1 */
  253. #define GPIO41_UART1_RXD MFP_CFG_LPM(GPIO41, AF2, FLOAT)
  254. #define GPIO41_UART1_TXD MFP_CFG_LPM(GPIO41, AF4, FLOAT)
  255. #define GPIO42_UART1_RXD MFP_CFG_LPM(GPIO42, AF4, FLOAT)
  256. #define GPIO42_UART1_TXD MFP_CFG_LPM(GPIO42, AF2, FLOAT)
  257. #define GPIO75_UART1_RXD MFP_CFG_LPM(GPIO75, AF1, FLOAT)
  258. #define GPIO76_UART1_RXD MFP_CFG_LPM(GPIO76, AF3, FLOAT)
  259. #define GPIO76_UART1_TXD MFP_CFG_LPM(GPIO76, AF1, FLOAT)
  260. #define GPIO97_UART1_RXD MFP_CFG_LPM(GPIO97, AF1, FLOAT)
  261. #define GPIO97_UART1_TXD MFP_CFG_LPM(GPIO97, AF6, FLOAT)
  262. #define GPIO98_UART1_RXD MFP_CFG_LPM(GPIO98, AF6, FLOAT)
  263. #define GPIO98_UART1_TXD MFP_CFG_LPM(GPIO98, AF1, FLOAT)
  264. #define GPIO43_UART1_CTS MFP_CFG_LPM(GPIO43, AF2, FLOAT)
  265. #define GPIO43_UART1_RTS MFP_CFG_LPM(GPIO43, AF4, FLOAT)
  266. #define GPIO48_UART1_CTS MFP_CFG_LPM(GPIO48, AF4, FLOAT)
  267. #define GPIO48_UART1_RTS MFP_CFG_LPM(GPIO48, AF2, FLOAT)
  268. #define GPIO77_UART1_CTS MFP_CFG_LPM(GPIO77, AF1, FLOAT)
  269. #define GPIO82_UART1_RTS MFP_CFG_LPM(GPIO82, AF1, FLOAT)
  270. #define GPIO82_UART1_CTS MFP_CFG_LPM(GPIO82, AF3, FLOAT)
  271. #define GPIO99_UART1_CTS MFP_CFG_LPM(GPIO99, AF1, FLOAT)
  272. #define GPIO99_UART1_RTS MFP_CFG_LPM(GPIO99, AF6, FLOAT)
  273. #define GPIO104_UART1_CTS MFP_CFG_LPM(GPIO104, AF6, FLOAT)
  274. #define GPIO104_UART1_RTS MFP_CFG_LPM(GPIO104, AF1, FLOAT)
  275. #define GPIO45_UART1_DTR MFP_CFG_LPM(GPIO45, AF4, FLOAT)
  276. #define GPIO45_UART1_DSR MFP_CFG_LPM(GPIO45, AF2, FLOAT)
  277. #define GPIO47_UART1_DTR MFP_CFG_LPM(GPIO47, AF2, FLOAT)
  278. #define GPIO47_UART1_DSR MFP_CFG_LPM(GPIO47, AF4, FLOAT)
  279. #define GPIO79_UART1_DSR MFP_CFG_LPM(GPIO79, AF1, FLOAT)
  280. #define GPIO81_UART1_DTR MFP_CFG_LPM(GPIO81, AF1, FLOAT)
  281. #define GPIO81_UART1_DSR MFP_CFG_LPM(GPIO81, AF3, FLOAT)
  282. #define GPIO101_UART1_DTR MFP_CFG_LPM(GPIO101, AF6, FLOAT)
  283. #define GPIO101_UART1_DSR MFP_CFG_LPM(GPIO101, AF1, FLOAT)
  284. #define GPIO103_UART1_DTR MFP_CFG_LPM(GPIO103, AF1, FLOAT)
  285. #define GPIO103_UART1_DSR MFP_CFG_LPM(GPIO103, AF6, FLOAT)
  286. #define GPIO44_UART1_DCD MFP_CFG_LPM(GPIO44, AF2, FLOAT)
  287. #define GPIO78_UART1_DCD MFP_CFG_LPM(GPIO78, AF1, FLOAT)
  288. #define GPIO100_UART1_DCD MFP_CFG_LPM(GPIO100, AF1, FLOAT)
  289. #define GPIO46_UART1_RI MFP_CFG_LPM(GPIO46, AF2, FLOAT)
  290. #define GPIO80_UART1_RI MFP_CFG_LPM(GPIO80, AF1, FLOAT)
  291. #define GPIO102_UART1_RI MFP_CFG_LPM(GPIO102, AF1, FLOAT)
  292. /* UART2 */
  293. #define GPIO109_UART2_CTS MFP_CFG_LPM(GPIO109, AF3, FLOAT)
  294. #define GPIO109_UART2_RTS MFP_CFG_LPM(GPIO109, AF1, FLOAT)
  295. #define GPIO112_UART2_CTS MFP_CFG_LPM(GPIO112, AF1, FLOAT)
  296. #define GPIO112_UART2_RTS MFP_CFG_LPM(GPIO112, AF3, FLOAT)
  297. #define GPIO110_UART2_RXD MFP_CFG_LPM(GPIO110, AF1, FLOAT)
  298. #define GPIO110_UART2_TXD MFP_CFG_LPM(GPIO110, AF3, FLOAT)
  299. #define GPIO111_UART2_RXD MFP_CFG_LPM(GPIO111, AF3, FLOAT)
  300. #define GPIO111_UART2_TXD MFP_CFG_LPM(GPIO111, AF1, FLOAT)
  301. /* UART3 */
  302. #define GPIO89_UART3_CTS MFP_CFG_LPM(GPIO89, AF2, FLOAT)
  303. #define GPIO89_UART3_RTS MFP_CFG_LPM(GPIO89, AF4, FLOAT)
  304. #define GPIO90_UART3_CTS MFP_CFG_LPM(GPIO90, AF4, FLOAT)
  305. #define GPIO90_UART3_RTS MFP_CFG_LPM(GPIO90, AF2, FLOAT)
  306. #define GPIO105_UART3_CTS MFP_CFG_LPM(GPIO105, AF1, FLOAT)
  307. #define GPIO105_UART3_RTS MFP_CFG_LPM(GPIO105, AF3, FLOAT)
  308. #define GPIO106_UART3_CTS MFP_CFG_LPM(GPIO106, AF3, FLOAT)
  309. #define GPIO106_UART3_RTS MFP_CFG_LPM(GPIO106, AF1, FLOAT)
  310. #define GPIO30_UART3_RXD MFP_CFG_LPM(GPIO30, AF2, FLOAT)
  311. #define GPIO30_UART3_TXD MFP_CFG_LPM(GPIO30, AF6, FLOAT)
  312. #define GPIO31_UART3_RXD MFP_CFG_LPM(GPIO31, AF6, FLOAT)
  313. #define GPIO31_UART3_TXD MFP_CFG_LPM(GPIO31, AF2, FLOAT)
  314. #define GPIO91_UART3_RXD MFP_CFG_LPM(GPIO91, AF4, FLOAT)
  315. #define GPIO91_UART3_TXD MFP_CFG_LPM(GPIO91, AF2, FLOAT)
  316. #define GPIO92_UART3_RXD MFP_CFG_LPM(GPIO92, AF2, FLOAT)
  317. #define GPIO92_UART3_TXD MFP_CFG_LPM(GPIO92, AF4, FLOAT)
  318. #define GPIO107_UART3_RXD MFP_CFG_LPM(GPIO107, AF3, FLOAT)
  319. #define GPIO107_UART3_TXD MFP_CFG_LPM(GPIO107, AF1, FLOAT)
  320. #define GPIO108_UART3_RXD MFP_CFG_LPM(GPIO108, AF1, FLOAT)
  321. #define GPIO108_UART3_TXD MFP_CFG_LPM(GPIO108, AF3, FLOAT)
  322. /* USB 2.0 UTMI */
  323. #define GPIO10_UTM_CLK MFP_CFG(GPIO10, AF1)
  324. #define GPIO36_U2D_RXERROR MFP_CFG(GPIO36, AF3)
  325. #define GPIO60_U2D_RXERROR MFP_CFG(GPIO60, AF1)
  326. #define GPIO87_U2D_RXERROR MFP_CFG(GPIO87, AF5)
  327. #define GPIO34_UTM_RXVALID MFP_CFG(GPIO34, AF3)
  328. #define GPIO58_UTM_RXVALID MFP_CFG(GPIO58, AF2)
  329. #define GPIO85_UTM_RXVALID MFP_CFG(GPIO85, AF5)
  330. #define GPIO35_UTM_RXACTIVE MFP_CFG(GPIO35, AF3)
  331. #define GPIO59_UTM_RXACTIVE MFP_CFG(GPIO59, AF1)
  332. #define GPIO86_UTM_RXACTIVE MFP_CFG(GPIO86, AF5)
  333. #define GPIO73_UTM_TXREADY MFP_CFG(GPIO73, AF1)
  334. #define GPIO68_UTM_LINESTATE_0 MFP_CFG(GPIO68, AF3)
  335. #define GPIO90_UTM_LINESTATE_0 MFP_CFG(GPIO90, AF3)
  336. #define GPIO102_UTM_LINESTATE_0 MFP_CFG(GPIO102, AF3)
  337. #define GPIO107_UTM_LINESTATE_0 MFP_CFG(GPIO107, AF4)
  338. #define GPIO69_UTM_LINESTATE_1 MFP_CFG(GPIO69, AF3)
  339. #define GPIO91_UTM_LINESTATE_1 MFP_CFG(GPIO91, AF3)
  340. #define GPIO103_UTM_LINESTATE_1 MFP_CFG(GPIO103, AF3)
  341. #define GPIO41_U2D_PHYDATA_0 MFP_CFG(GPIO41, AF3)
  342. #define GPIO42_U2D_PHYDATA_1 MFP_CFG(GPIO42, AF3)
  343. #define GPIO43_U2D_PHYDATA_2 MFP_CFG(GPIO43, AF3)
  344. #define GPIO44_U2D_PHYDATA_3 MFP_CFG(GPIO44, AF3)
  345. #define GPIO45_U2D_PHYDATA_4 MFP_CFG(GPIO45, AF3)
  346. #define GPIO46_U2D_PHYDATA_5 MFP_CFG(GPIO46, AF3)
  347. #define GPIO47_U2D_PHYDATA_6 MFP_CFG(GPIO47, AF3)
  348. #define GPIO48_U2D_PHYDATA_7 MFP_CFG(GPIO48, AF3)
  349. #define GPIO49_U2D_PHYDATA_0 MFP_CFG(GPIO49, AF3)
  350. #define GPIO50_U2D_PHYDATA_1 MFP_CFG(GPIO50, AF3)
  351. #define GPIO51_U2D_PHYDATA_2 MFP_CFG(GPIO51, AF3)
  352. #define GPIO52_U2D_PHYDATA_3 MFP_CFG(GPIO52, AF3)
  353. #define GPIO53_U2D_PHYDATA_4 MFP_CFG(GPIO53, AF3)
  354. #define GPIO54_U2D_PHYDATA_5 MFP_CFG(GPIO54, AF3)
  355. #define GPIO55_U2D_PHYDATA_6 MFP_CFG(GPIO55, AF3)
  356. #define GPIO56_U2D_PHYDATA_7 MFP_CFG(GPIO56, AF3)
  357. #define GPIO37_U2D_OPMODE0 MFP_CFG(GPIO37, AF4)
  358. #define GPIO61_U2D_OPMODE0 MFP_CFG(GPIO61, AF2)
  359. #define GPIO88_U2D_OPMODE0 MFP_CFG(GPIO88, AF7)
  360. #define GPIO38_U2D_OPMODE1 MFP_CFG(GPIO38, AF4)
  361. #define GPIO62_U2D_OPMODE1 MFP_CFG(GPIO62, AF2)
  362. #define GPIO104_U2D_OPMODE1 MFP_CFG(GPIO104, AF4)
  363. #define GPIO108_U2D_OPMODE1 MFP_CFG(GPIO108, AF5)
  364. #define GPIO74_U2D_RESET MFP_CFG(GPIO74, AF1)
  365. #define GPIO93_U2D_RESET MFP_CFG(GPIO93, AF2)
  366. #define GPIO98_U2D_RESET MFP_CFG(GPIO98, AF3)
  367. #define GPIO67_U2D_SUSPEND MFP_CFG(GPIO67, AF3)
  368. #define GPIO96_U2D_SUSPEND MFP_CFG(GPIO96, AF2)
  369. #define GPIO101_U2D_SUSPEND MFP_CFG(GPIO101, AF3)
  370. #define GPIO66_U2D_TERM_SEL MFP_CFG(GPIO66, AF5)
  371. #define GPIO95_U2D_TERM_SEL MFP_CFG(GPIO95, AF3)
  372. #define GPIO97_U2D_TERM_SEL MFP_CFG(GPIO97, AF7)
  373. #define GPIO100_U2D_TERM_SEL MFP_CFG(GPIO100, AF5)
  374. #define GPIO39_U2D_TXVALID MFP_CFG(GPIO39, AF4)
  375. #define GPIO70_U2D_TXVALID MFP_CFG(GPIO70, AF5)
  376. #define GPIO83_U2D_TXVALID MFP_CFG(GPIO83, AF7)
  377. #define GPIO65_U2D_XCVR_SEL MFP_CFG(GPIO65, AF5)
  378. #define GPIO94_U2D_XCVR_SEL MFP_CFG(GPIO94, AF3)
  379. #define GPIO99_U2D_XCVR_SEL MFP_CFG(GPIO99, AF5)
  380. /* USB Host 1.1 */
  381. #define GPIO2_2_USBH_PEN MFP_CFG(GPIO2_2, AF1)
  382. #define GPIO3_2_USBH_PWR MFP_CFG(GPIO3_2, AF1)
  383. /* USB P2 */
  384. #define GPIO97_USB_P2_2 MFP_CFG(GPIO97, AF2)
  385. #define GPIO97_USB_P2_6 MFP_CFG(GPIO97, AF4)
  386. #define GPIO98_USB_P2_2 MFP_CFG(GPIO98, AF4)
  387. #define GPIO98_USB_P2_6 MFP_CFG(GPIO98, AF2)
  388. #define GPIO99_USB_P2_1 MFP_CFG(GPIO99, AF2)
  389. #define GPIO100_USB_P2_4 MFP_CFG(GPIO100, AF2)
  390. #define GPIO101_USB_P2_8 MFP_CFG(GPIO101, AF2)
  391. #define GPIO102_USB_P2_3 MFP_CFG(GPIO102, AF2)
  392. #define GPIO103_USB_P2_5 MFP_CFG(GPIO103, AF2)
  393. #define GPIO104_USB_P2_7 MFP_CFG(GPIO104, AF2)
  394. /* USB P3 */
  395. #define GPIO75_USB_P3_1 MFP_CFG(GPIO75, AF2)
  396. #define GPIO76_USB_P3_2 MFP_CFG(GPIO76, AF2)
  397. #define GPIO77_USB_P3_3 MFP_CFG(GPIO77, AF2)
  398. #define GPIO78_USB_P3_4 MFP_CFG(GPIO78, AF2)
  399. #define GPIO79_USB_P3_5 MFP_CFG(GPIO79, AF2)
  400. #define GPIO80_USB_P3_6 MFP_CFG(GPIO80, AF2)
  401. #define GPIO13_CHOUT0 MFP_CFG(GPIO13, AF6)
  402. #define GPIO14_CHOUT1 MFP_CFG(GPIO14, AF6)
  403. #define GPIO2_RDY MFP_CFG(GPIO2, AF1)
  404. #define GPIO5_NPIOR MFP_CFG(GPIO5, AF3)
  405. #define GPIO6_NPIOW MFP_CFG(GPIO6, AF3)
  406. #define GPIO7_NPIOS16 MFP_CFG(GPIO7, AF3)
  407. #define GPIO8_NPWAIT MFP_CFG(GPIO8, AF3)
  408. #define GPIO11_PWM0_OUT MFP_CFG(GPIO11, AF1)
  409. #define GPIO12_PWM1_OUT MFP_CFG(GPIO12, AF1)
  410. #define GPIO13_PWM2_OUT MFP_CFG(GPIO13, AF1)
  411. #define GPIO14_PWM3_OUT MFP_CFG(GPIO14, AF1)
  412. #endif /* __ASM_ARCH_MFP_PXA320_H */