1 /* SPDX-License-Identifier: GPL-2.0-only */ 1 2 /* 3 * arch/arm/mach-pxa/include/mach/mfp-pxa300.h 4 * 5 * PXA300/PXA310 specific MFP configuration de 6 * 7 * Copyright (C) 2007 Marvell International Lt 8 * 2007-08-21: eric miao <eric.miao@marvell.co 9 * initial version 10 */ 11 12 #ifndef __ASM_ARCH_MFP_PXA300_H 13 #define __ASM_ARCH_MFP_PXA300_H 14 15 #include "mfp-pxa3xx.h" 16 17 /* GPIO */ 18 #define GPIO46_GPIO MFP_CFG(GPIO46 19 #define GPIO49_GPIO MFP_CFG(GPIO49 20 #define GPIO50_GPIO MFP_CFG(GPIO50 21 #define GPIO51_GPIO MFP_CFG(GPIO51 22 #define GPIO52_GPIO MFP_CFG(GPIO52 23 #define GPIO56_GPIO MFP_CFG(GPIO56 24 #define GPIO58_GPIO MFP_CFG(GPIO58 25 #define GPIO59_GPIO MFP_CFG(GPIO59 26 #define GPIO60_GPIO MFP_CFG(GPIO60 27 #define GPIO61_GPIO MFP_CFG(GPIO61 28 #define GPIO62_GPIO MFP_CFG(GPIO62 29 30 #ifdef CONFIG_CPU_PXA310 31 #define GPIO7_2_GPIO MFP_CFG(GPIO7_ 32 #define GPIO8_2_GPIO MFP_CFG(GPIO8_ 33 #define GPIO9_2_GPIO MFP_CFG(GPIO9_ 34 #define GPIO10_2_GPIO MFP_CFG(GPIO10 35 #define GPIO11_2_GPIO MFP_CFG(GPIO11 36 #define GPIO12_2_GPIO MFP_CFG(GPIO12 37 #endif 38 39 /* Chip Select */ 40 #define GPIO1_nCS2 MFP_CFG(GPIO1, 41 #define GPIO2_nCS3 MFP_CFG(GPIO2, 42 43 /* AC97 */ 44 #define GPIO23_AC97_nACRESET MFP_CFG(GPIO23 45 #define GPIO24_AC97_SYSCLK MFP_CFG(GPIO24 46 #define GPIO29_AC97_BITCLK MFP_CFG(GPIO29 47 #define GPIO25_AC97_SDATA_IN_0 MFP_CFG(GPIO25 48 #define GPIO26_AC97_SDATA_IN_1 MFP_CFG(GPIO26 49 #define GPIO17_AC97_SDATA_IN_2 MFP_CFG(GPIO17 50 #define GPIO21_AC97_SDATA_IN_2 MFP_CFG(GPIO21 51 #define GPIO18_AC97_SDATA_IN_3 MFP_CFG(GPIO18 52 #define GPIO22_AC97_SDATA_IN_3 MFP_CFG(GPIO22 53 #define GPIO27_AC97_SDATA_OUT MFP_CFG(GPIO27 54 #define GPIO28_AC97_SYNC MFP_CFG(GPIO28 55 56 /* I2C */ 57 #define GPIO21_I2C_SCL MFP_CFG_LPM(GP 58 #define GPIO22_I2C_SDA MFP_CFG_LPM(GP 59 60 /* QCI */ 61 #define GPIO39_CI_DD_0 MFP_CFG_DRV(GP 62 #define GPIO40_CI_DD_1 MFP_CFG_DRV(GP 63 #define GPIO41_CI_DD_2 MFP_CFG_DRV(GP 64 #define GPIO42_CI_DD_3 MFP_CFG_DRV(GP 65 #define GPIO43_CI_DD_4 MFP_CFG_DRV(GP 66 #define GPIO44_CI_DD_5 MFP_CFG_DRV(GP 67 #define GPIO45_CI_DD_6 MFP_CFG_DRV(GP 68 #define GPIO46_CI_DD_7 MFP_CFG_DRV(GP 69 #define GPIO47_CI_DD_8 MFP_CFG_DRV(GP 70 #define GPIO48_CI_DD_9 MFP_CFG_DRV(GP 71 #define GPIO49_CI_MCLK MFP_CFG_DRV(GP 72 #define GPIO50_CI_PCLK MFP_CFG_DRV(GP 73 #define GPIO51_CI_HSYNC MFP_CFG_DRV(GP 74 #define GPIO52_CI_VSYNC MFP_CFG_DRV(GP 75 76 /* KEYPAD */ 77 #define GPIO3_KP_DKIN_6 MFP_CFG_LPM(GP 78 #define GPIO4_KP_DKIN_7 MFP_CFG_LPM(GP 79 #define GPIO16_KP_DKIN_6 MFP_CFG_LPM(GP 80 #define GPIO83_KP_DKIN_2 MFP_CFG_LPM(GP 81 #define GPIO84_KP_DKIN_1 MFP_CFG_LPM(GP 82 #define GPIO85_KP_DKIN_0 MFP_CFG_LPM(GP 83 #define GPIO86_KP_DKIN_1 MFP_CFG_LPM(GP 84 #define GPIO87_KP_DKIN_2 MFP_CFG_LPM(GP 85 #define GPIO88_KP_DKIN_3 MFP_CFG_LPM(GP 86 #define GPIO89_KP_DKIN_3 MFP_CFG_LPM(GP 87 #define GPIO107_KP_DKIN_0 MFP_CFG_LPM(GP 88 #define GPIO108_KP_DKIN_1 MFP_CFG_LPM(GP 89 #define GPIO109_KP_DKIN_2 MFP_CFG_LPM(GP 90 #define GPIO110_KP_DKIN_3 MFP_CFG_LPM(GP 91 #define GPIO111_KP_DKIN_4 MFP_CFG_LPM(GP 92 #define GPIO112_KP_DKIN_5 MFP_CFG_LPM(GP 93 #define GPIO113_KP_DKIN_6 MFP_CFG_LPM(GP 94 #define GPIO114_KP_DKIN_7 MFP_CFG_LPM(GP 95 #define GPIO115_KP_DKIN_0 MFP_CFG_LPM(GP 96 #define GPIO116_KP_DKIN_1 MFP_CFG_LPM(GP 97 #define GPIO117_KP_DKIN_2 MFP_CFG_LPM(GP 98 #define GPIO118_KP_DKIN_3 MFP_CFG_LPM(GP 99 #define GPIO119_KP_DKIN_4 MFP_CFG_LPM(GP 100 #define GPIO120_KP_DKIN_5 MFP_CFG_LPM(GP 101 #define GPIO121_KP_DKIN_6 MFP_CFG_LPM(GP 102 #define GPIO122_KP_DKIN_5 MFP_CFG_LPM(GP 103 #define GPIO123_KP_DKIN_4 MFP_CFG_LPM(GP 104 #define GPIO124_KP_DKIN_3 MFP_CFG_LPM(GP 105 #define GPIO127_KP_DKIN_0 MFP_CFG_LPM(GP 106 #define GPIO0_2_KP_DKIN_0 MFP_CFG_LPM(GP 107 #define GPIO1_2_KP_DKIN_1 MFP_CFG_LPM(GP 108 #define GPIO2_2_KP_DKIN_6 MFP_CFG_LPM(GP 109 #define GPIO3_2_KP_DKIN_7 MFP_CFG_LPM(GP 110 #define GPIO4_2_KP_DKIN_1 MFP_CFG_LPM(GP 111 #define GPIO5_2_KP_DKIN_0 MFP_CFG_LPM(GP 112 113 #define GPIO5_KP_MKIN_0 MFP_CFG_LPM(GP 114 #define GPIO6_KP_MKIN_1 MFP_CFG_LPM(GP 115 #define GPIO9_KP_MKIN_6 MFP_CFG_LPM(GP 116 #define GPIO10_KP_MKIN_7 MFP_CFG_LPM(GP 117 #define GPIO70_KP_MKIN_6 MFP_CFG_LPM(GP 118 #define GPIO71_KP_MKIN_7 MFP_CFG_LPM(GP 119 #define GPIO100_KP_MKIN_6 MFP_CFG_LPM(GP 120 #define GPIO101_KP_MKIN_7 MFP_CFG_LPM(GP 121 #define GPIO112_KP_MKIN_6 MFP_CFG_LPM(GP 122 #define GPIO113_KP_MKIN_7 MFP_CFG_LPM(GP 123 #define GPIO115_KP_MKIN_0 MFP_CFG_LPM(GP 124 #define GPIO116_KP_MKIN_1 MFP_CFG_LPM(GP 125 #define GPIO117_KP_MKIN_2 MFP_CFG_LPM(GP 126 #define GPIO118_KP_MKIN_3 MFP_CFG_LPM(GP 127 #define GPIO119_KP_MKIN_4 MFP_CFG_LPM(GP 128 #define GPIO120_KP_MKIN_5 MFP_CFG_LPM(GP 129 #define GPIO125_KP_MKIN_2 MFP_CFG_LPM(GP 130 #define GPIO2_2_KP_MKIN_6 MFP_CFG_LPM(GP 131 #define GPIO3_2_KP_MKIN_7 MFP_CFG_LPM(GP 132 133 #define GPIO7_KP_MKOUT_5 MFP_CFG_LPM(GP 134 #define GPIO11_KP_MKOUT_5 MFP_CFG_LPM(GP 135 #define GPIO12_KP_MKOUT_6 MFP_CFG_LPM(GP 136 #define GPIO13_KP_MKOUT_7 MFP_CFG_LPM(GP 137 #define GPIO19_KP_MKOUT_4 MFP_CFG_LPM(GP 138 #define GPIO20_KP_MKOUT_5 MFP_CFG_LPM(GP 139 #define GPIO38_KP_MKOUT_5 MFP_CFG_LPM(GP 140 #define GPIO53_KP_MKOUT_6 MFP_CFG_LPM(GP 141 #define GPIO78_KP_MKOUT_7 MFP_CFG_LPM(GP 142 #define GPIO85_KP_MKOUT_0 MFP_CFG_LPM(GP 143 #define GPIO86_KP_MKOUT_1 MFP_CFG_LPM(GP 144 #define GPIO87_KP_MKOUT_2 MFP_CFG_LPM(GP 145 #define GPIO88_KP_MKOUT_3 MFP_CFG_LPM(GP 146 #define GPIO104_KP_MKOUT_6 MFP_CFG_LPM(GP 147 #define GPIO105_KP_MKOUT_7 MFP_CFG_LPM(GP 148 #define GPIO121_KP_MKOUT_0 MFP_CFG_LPM(GP 149 #define GPIO122_KP_MKOUT_1 MFP_CFG_LPM(GP 150 #define GPIO123_KP_MKOUT_2 MFP_CFG_LPM(GP 151 #define GPIO124_KP_MKOUT_3 MFP_CFG_LPM(GP 152 #define GPIO125_KP_MKOUT_4 MFP_CFG_LPM(GP 153 #define GPIO126_KP_MKOUT_7 MFP_CFG_LPM(GP 154 #define GPIO5_2_KP_MKOUT_6 MFP_CFG_LPM(GP 155 #define GPIO4_2_KP_MKOUT_5 MFP_CFG_LPM(GP 156 #define GPIO6_2_KP_MKOUT_7 MFP_CFG_LPM(GP 157 158 /* LCD */ 159 #define GPIO54_LCD_LDD_0 MFP_CFG_DRV(GP 160 #define GPIO55_LCD_LDD_1 MFP_CFG_DRV(GP 161 #define GPIO56_LCD_LDD_2 MFP_CFG_DRV(GP 162 #define GPIO57_LCD_LDD_3 MFP_CFG_DRV(GP 163 #define GPIO58_LCD_LDD_4 MFP_CFG_DRV(GP 164 #define GPIO59_LCD_LDD_5 MFP_CFG_DRV(GP 165 #define GPIO60_LCD_LDD_6 MFP_CFG_DRV(GP 166 #define GPIO61_LCD_LDD_7 MFP_CFG_DRV(GP 167 #define GPIO62_LCD_LDD_8 MFP_CFG_DRV(GP 168 #define GPIO63_LCD_LDD_9 MFP_CFG_DRV(GP 169 #define GPIO64_LCD_LDD_10 MFP_CFG_DRV(GP 170 #define GPIO65_LCD_LDD_11 MFP_CFG_DRV(GP 171 #define GPIO66_LCD_LDD_12 MFP_CFG_DRV(GP 172 #define GPIO67_LCD_LDD_13 MFP_CFG_DRV(GP 173 #define GPIO68_LCD_LDD_14 MFP_CFG_DRV(GP 174 #define GPIO69_LCD_LDD_15 MFP_CFG_DRV(GP 175 #define GPIO70_LCD_LDD_16 MFP_CFG_DRV(GP 176 #define GPIO71_LCD_LDD_17 MFP_CFG_DRV(GP 177 #define GPIO62_LCD_CS_N MFP_CFG_DRV(GP 178 #define GPIO72_LCD_FCLK MFP_CFG_DRV(GP 179 #define GPIO73_LCD_LCLK MFP_CFG_DRV(GP 180 #define GPIO74_LCD_PCLK MFP_CFG_DRV(GP 181 #define GPIO75_LCD_BIAS MFP_CFG_DRV(GP 182 #define GPIO76_LCD_VSYNC MFP_CFG_DRV(GP 183 184 #define GPIO15_LCD_CS_N MFP_CFG_DRV(GP 185 #define GPIO127_LCD_CS_N MFP_CFG_DRV(GP 186 #define GPIO63_LCD_VSYNC MFP_CFG_DRV(GP 187 188 /* Mini-LCD */ 189 #define GPIO72_MLCD_FCLK MFP_CFG_DRV(GP 190 #define GPIO73_MLCD_LCLK MFP_CFG_DRV(GP 191 #define GPIO54_MLCD_LDD_0 MFP_CFG_DRV(GP 192 #define GPIO55_MLCD_LDD_1 MFP_CFG_DRV(GP 193 #define GPIO56_MLCD_LDD_2 MFP_CFG_DRV(GP 194 #define GPIO57_MLCD_LDD_3 MFP_CFG_DRV(GP 195 #define GPIO58_MLCD_LDD_4 MFP_CFG_DRV(GP 196 #define GPIO59_MLCD_LDD_5 MFP_CFG_DRV(GP 197 #define GPIO60_MLCD_LDD_6 MFP_CFG_DRV(GP 198 #define GPIO61_MLCD_LDD_7 MFP_CFG_DRV(GP 199 #define GPIO62_MLCD_LDD_8 MFP_CFG_DRV(GP 200 #define GPIO63_MLCD_LDD_9 MFP_CFG_DRV(GP 201 #define GPIO64_MLCD_LDD_10 MFP_CFG_DRV(GP 202 #define GPIO65_MLCD_LDD_11 MFP_CFG_DRV(GP 203 #define GPIO66_MLCD_LDD_12 MFP_CFG_DRV(GP 204 #define GPIO67_MLCD_LDD_13 MFP_CFG_DRV(GP 205 #define GPIO68_MLCD_LDD_14 MFP_CFG_DRV(GP 206 #define GPIO69_MLCD_LDD_15 MFP_CFG_DRV(GP 207 #define GPIO74_MLCD_PCLK MFP_CFG_DRV(GP 208 #define GPIO75_MLCD_BIAS MFP_CFG_DRV(GP 209 210 /* MMC1 */ 211 #define GPIO7_MMC1_CLK MFP_CFG_LPM(GP 212 #define GPIO8_MMC1_CMD MFP_CFG_LPM(GP 213 #define GPIO14_MMC1_CMD MFP_CFG_LPM(GP 214 #define GPIO15_MMC1_CMD MFP_CFG_LPM(GP 215 #define GPIO3_MMC1_DAT0 MFP_CFG_LPM(GP 216 #define GPIO4_MMC1_DAT1 MFP_CFG_LPM(GP 217 #define GPIO5_MMC1_DAT2 MFP_CFG_LPM(GP 218 #define GPIO6_MMC1_DAT3 MFP_CFG_LPM(GP 219 220 /* MMC2 */ 221 #define GPIO9_MMC2_DAT0 MFP_CFG_LPM(GP 222 #define GPIO10_MMC2_DAT1 MFP_CFG_LPM(GP 223 #define GPIO11_MMC2_DAT2 MFP_CFG_LPM(GP 224 #define GPIO12_MMC2_DAT3 MFP_CFG_LPM(GP 225 #define GPIO13_MMC2_CLK MFP_CFG_LPM(GP 226 #define GPIO14_MMC2_CMD MFP_CFG_LPM(GP 227 #define GPIO77_MMC2_DAT0 MFP_CFG_LPM(GP 228 #define GPIO78_MMC2_DAT1 MFP_CFG_LPM(GP 229 #define GPIO79_MMC2_DAT2 MFP_CFG_LPM(GP 230 #define GPIO80_MMC2_DAT3 MFP_CFG_LPM(GP 231 #define GPIO81_MMC2_CLK MFP_CFG_LPM(GP 232 #define GPIO82_MMC2_CMD MFP_CFG_LPM(GP 233 234 /* SSP1 */ 235 #define GPIO89_SSP1_EXTCLK MFP_CFG(GPIO89 236 #define GPIO90_SSP1_SYSCLK MFP_CFG(GPIO90 237 #define GPIO15_SSP1_SCLK MFP_CFG(GPIO15 238 #define GPIO16_SSP1_FRM MFP_CFG(GPIO16 239 #define GPIO33_SSP1_SCLK MFP_CFG(GPIO33 240 #define GPIO34_SSP1_FRM MFP_CFG(GPIO34 241 #define GPIO85_SSP1_SCLK MFP_CFG(GPIO85 242 #define GPIO86_SSP1_FRM MFP_CFG(GPIO86 243 #define GPIO18_SSP1_TXD MFP_CFG(GPIO18 244 #define GPIO18_SSP1_RXD MFP_CFG(GPIO18 245 #define GPIO20_SSP1_TXD MFP_CFG(GPIO20 246 #define GPIO20_SSP1_RXD MFP_CFG(GPIO20 247 #define GPIO35_SSP1_TXD MFP_CFG(GPIO35 248 #define GPIO35_SSP1_RXD MFP_CFG(GPIO35 249 #define GPIO36_SSP1_TXD MFP_CFG(GPIO36 250 #define GPIO36_SSP1_RXD MFP_CFG(GPIO36 251 #define GPIO87_SSP1_TXD MFP_CFG(GPIO87 252 #define GPIO87_SSP1_RXD MFP_CFG(GPIO87 253 #define GPIO88_SSP1_TXD MFP_CFG(GPIO88 254 #define GPIO88_SSP1_RXD MFP_CFG(GPIO88 255 256 /* SSP2 */ 257 #define GPIO29_SSP2_EXTCLK MFP_CFG(GPIO29 258 #define GPIO23_SSP2_SCLK MFP_CFG(GPIO23 259 #define GPIO17_SSP2_FRM MFP_CFG(GPIO17 260 #define GPIO25_SSP2_SCLK MFP_CFG(GPIO25 261 #define GPIO26_SSP2_FRM MFP_CFG(GPIO26 262 #define GPIO33_SSP2_SCLK MFP_CFG(GPIO33 263 #define GPIO34_SSP2_FRM MFP_CFG(GPIO34 264 #define GPIO64_SSP2_SCLK MFP_CFG(GPIO64 265 #define GPIO65_SSP2_FRM MFP_CFG(GPIO65 266 #define GPIO19_SSP2_TXD MFP_CFG(GPIO19 267 #define GPIO19_SSP2_RXD MFP_CFG(GPIO19 268 #define GPIO24_SSP2_TXD MFP_CFG(GPIO24 269 #define GPIO24_SSP2_RXD MFP_CFG(GPIO24 270 #define GPIO27_SSP2_TXD MFP_CFG(GPIO27 271 #define GPIO27_SSP2_RXD MFP_CFG(GPIO27 272 #define GPIO28_SSP2_TXD MFP_CFG(GPIO28 273 #define GPIO28_SSP2_RXD MFP_CFG(GPIO28 274 #define GPIO35_SSP2_TXD MFP_CFG(GPIO35 275 #define GPIO35_SSP2_RXD MFP_CFG(GPIO35 276 #define GPIO66_SSP2_TXD MFP_CFG(GPIO66 277 #define GPIO66_SSP2_RXD MFP_CFG(GPIO66 278 #define GPIO67_SSP2_TXD MFP_CFG(GPIO67 279 #define GPIO67_SSP2_RXD MFP_CFG(GPIO67 280 #define GPIO36_SSP2_TXD MFP_CFG(GPIO36 281 282 /* SSP3 */ 283 #define GPIO69_SSP3_FRM MFP_CFG_X(GPIO 284 #define GPIO68_SSP3_SCLK MFP_CFG_X(GPIO 285 #define GPIO92_SSP3_FRM MFP_CFG_X(GPIO 286 #define GPIO91_SSP3_SCLK MFP_CFG_X(GPIO 287 #define GPIO70_SSP3_TXD MFP_CFG_X(GPIO 288 #define GPIO70_SSP3_RXD MFP_CFG_X(GPIO 289 #define GPIO71_SSP3_TXD MFP_CFG_X(GPIO 290 #define GPIO71_SSP3_RXD MFP_CFG_X(GPIO 291 #define GPIO93_SSP3_TXD MFP_CFG_X(GPIO 292 #define GPIO93_SSP3_RXD MFP_CFG_X(GPIO 293 #define GPIO94_SSP3_TXD MFP_CFG_X(GPIO 294 #define GPIO94_SSP3_RXD MFP_CFG_X(GPIO 295 296 /* SSP4 */ 297 #define GPIO95_SSP4_SCLK MFP_CFG_LPM(GP 298 #define GPIO96_SSP4_FRM MFP_CFG_LPM(GP 299 #define GPIO97_SSP4_TXD MFP_CFG_LPM(GP 300 #define GPIO97_SSP4_RXD MFP_CFG_LPM(GP 301 #define GPIO98_SSP4_TXD MFP_CFG_LPM(GP 302 #define GPIO98_SSP4_RXD MFP_CFG_LPM(GP 303 304 /* UART1 */ 305 #define GPIO32_UART1_CTS MFP_CFG_LPM(GP 306 #define GPIO37_UART1_CTS MFP_CFG_LPM(GP 307 #define GPIO79_UART1_CTS MFP_CFG_LPM(GP 308 #define GPIO84_UART1_CTS MFP_CFG_LPM(GP 309 #define GPIO101_UART1_CTS MFP_CFG_LPM(GP 310 #define GPIO106_UART1_CTS MFP_CFG_LPM(GP 311 312 #define GPIO32_UART1_RTS MFP_CFG_LPM(GP 313 #define GPIO37_UART1_RTS MFP_CFG_LPM(GP 314 #define GPIO79_UART1_RTS MFP_CFG_LPM(GP 315 #define GPIO84_UART1_RTS MFP_CFG_LPM(GP 316 #define GPIO101_UART1_RTS MFP_CFG_LPM(GP 317 #define GPIO106_UART1_RTS MFP_CFG_LPM(GP 318 319 #define GPIO34_UART1_DSR MFP_CFG_LPM(GP 320 #define GPIO36_UART1_DSR MFP_CFG_LPM(GP 321 #define GPIO81_UART1_DSR MFP_CFG_LPM(GP 322 #define GPIO83_UART1_DSR MFP_CFG_LPM(GP 323 #define GPIO103_UART1_DSR MFP_CFG_LPM(GP 324 #define GPIO105_UART1_DSR MFP_CFG_LPM(GP 325 326 #define GPIO34_UART1_DTR MFP_CFG_LPM(GP 327 #define GPIO36_UART1_DTR MFP_CFG_LPM(GP 328 #define GPIO81_UART1_DTR MFP_CFG_LPM(GP 329 #define GPIO83_UART1_DTR MFP_CFG_LPM(GP 330 #define GPIO103_UART1_DTR MFP_CFG_LPM(GP 331 #define GPIO105_UART1_DTR MFP_CFG_LPM(GP 332 333 #define GPIO35_UART1_RI MFP_CFG_LPM(GP 334 #define GPIO82_UART1_RI MFP_CFG_LPM(GP 335 #define GPIO104_UART1_RI MFP_CFG_LPM(GP 336 337 #define GPIO33_UART1_DCD MFP_CFG_LPM(GP 338 #define GPIO80_UART1_DCD MFP_CFG_LPM(GP 339 #define GPIO102_UART1_DCD MFP_CFG_LPM(GP 340 341 #define GPIO30_UART1_RXD MFP_CFG_LPM(GP 342 #define GPIO31_UART1_RXD MFP_CFG_LPM(GP 343 #define GPIO77_UART1_RXD MFP_CFG_LPM(GP 344 #define GPIO78_UART1_RXD MFP_CFG_LPM(GP 345 #define GPIO99_UART1_RXD MFP_CFG_LPM(GP 346 #define GPIO100_UART1_RXD MFP_CFG_LPM(GP 347 #define GPIO102_UART1_RXD MFP_CFG_LPM(GP 348 #define GPIO104_UART1_RXD MFP_CFG_LPM(GP 349 350 #define GPIO30_UART1_TXD MFP_CFG_LPM(GP 351 #define GPIO31_UART1_TXD MFP_CFG_LPM(GP 352 #define GPIO77_UART1_TXD MFP_CFG_LPM(GP 353 #define GPIO78_UART1_TXD MFP_CFG_LPM(GP 354 #define GPIO99_UART1_TXD MFP_CFG_LPM(GP 355 #define GPIO100_UART1_TXD MFP_CFG_LPM(GP 356 #define GPIO102_UART1_TXD MFP_CFG_LPM(GP 357 358 /* UART2 */ 359 #define GPIO15_UART2_CTS MFP_CFG_LPM(GP 360 #define GPIO16_UART2_CTS MFP_CFG_LPM(GP 361 #define GPIO111_UART2_CTS MFP_CFG_LPM(GP 362 #define GPIO114_UART2_CTS MFP_CFG_LPM(GP 363 364 #define GPIO15_UART2_RTS MFP_CFG_LPM(GP 365 #define GPIO16_UART2_RTS MFP_CFG_LPM(GP 366 #define GPIO114_UART2_RTS MFP_CFG_LPM(GP 367 #define GPIO111_UART2_RTS MFP_CFG_LPM(GP 368 369 #define GPIO18_UART2_RXD MFP_CFG_LPM(GP 370 #define GPIO19_UART2_RXD MFP_CFG_LPM(GP 371 #define GPIO112_UART2_RXD MFP_CFG_LPM(GP 372 #define GPIO113_UART2_RXD MFP_CFG_LPM(GP 373 374 #define GPIO18_UART2_TXD MFP_CFG_LPM(GP 375 #define GPIO19_UART2_TXD MFP_CFG_LPM(GP 376 #define GPIO112_UART2_TXD MFP_CFG_LPM(GP 377 #define GPIO113_UART2_TXD MFP_CFG_LPM(GP 378 379 /* UART3 */ 380 #define GPIO91_UART3_CTS MFP_CFG_LPM(GP 381 #define GPIO92_UART3_CTS MFP_CFG_LPM(GP 382 #define GPIO107_UART3_CTS MFP_CFG_LPM(GP 383 #define GPIO108_UART3_CTS MFP_CFG_LPM(GP 384 385 #define GPIO91_UART3_RTS MFP_CFG_LPM(GP 386 #define GPIO92_UART3_RTS MFP_CFG_LPM(GP 387 #define GPIO107_UART3_RTS MFP_CFG_LPM(GP 388 #define GPIO108_UART3_RTS MFP_CFG_LPM(GP 389 390 #define GPIO7_UART3_RXD MFP_CFG_LPM(GP 391 #define GPIO8_UART3_RXD MFP_CFG_LPM(GP 392 #define GPIO93_UART3_RXD MFP_CFG_LPM(GP 393 #define GPIO94_UART3_RXD MFP_CFG_LPM(GP 394 #define GPIO109_UART3_RXD MFP_CFG_LPM(GP 395 #define GPIO110_UART3_RXD MFP_CFG_LPM(GP 396 397 #define GPIO7_UART3_TXD MFP_CFG_LPM(GP 398 #define GPIO8_UART3_TXD MFP_CFG_LPM(GP 399 #define GPIO93_UART3_TXD MFP_CFG_LPM(GP 400 #define GPIO94_UART3_TXD MFP_CFG_LPM(GP 401 #define GPIO109_UART3_TXD MFP_CFG_LPM(GP 402 #define GPIO110_UART3_TXD MFP_CFG_LPM(GP 403 404 /* USB Host */ 405 #define GPIO0_2_USBH_PEN MFP_CFG(GPIO0_ 406 #define GPIO1_2_USBH_PWR MFP_CFG(GPIO1_ 407 408 /* USB P3 */ 409 #define GPIO77_USB_P3_1 MFP_CFG(GPIO77 410 #define GPIO78_USB_P3_2 MFP_CFG(GPIO78 411 #define GPIO79_USB_P3_3 MFP_CFG(GPIO79 412 #define GPIO80_USB_P3_4 MFP_CFG(GPIO80 413 #define GPIO81_USB_P3_5 MFP_CFG(GPIO81 414 #define GPIO82_USB_P3_6 MFP_CFG(GPIO82 415 416 /* PWM */ 417 #define GPIO17_PWM0_OUT MFP_CFG(GPIO17 418 #define GPIO18_PWM1_OUT MFP_CFG(GPIO18 419 #define GPIO19_PWM2_OUT MFP_CFG(GPIO19 420 #define GPIO20_PWM3_OUT MFP_CFG(GPIO20 421 422 /* CIR */ 423 #define GPIO8_CIR_OUT MFP_CFG(GPIO8, 424 #define GPIO16_CIR_OUT MFP_CFG(GPIO16 425 426 #define GPIO20_OW_DQ_IN MFP_CFG(GPIO20 427 #define GPIO126_OW_DQ MFP_CFG(GPIO12 428 429 #define GPIO0_DF_RDY MFP_CFG(GPIO0, 430 #define GPIO7_CLK_BYPASS_XSC MFP_CFG(GPIO7, 431 #define GPIO17_EXT_SYNC_MVT_0 MFP_CFG(GPIO17 432 #define GPIO18_EXT_SYNC_MVT_1 MFP_CFG(GPIO18 433 #define GPIO19_OST_CHOUT_MVT_0 MFP_CFG(GPIO19 434 #define GPIO20_OST_CHOUT_MVT_1 MFP_CFG(GPIO20 435 #define GPIO49_48M_CLK MFP_CFG(GPIO49 436 #define GPIO126_EXT_CLK MFP_CFG(GPIO12 437 #define GPIO127_CLK_BYPASS_GB MFP_CFG(GPIO12 438 #define GPIO71_EXT_MATCH_MVT MFP_CFG(GPIO71 439 440 #define GPIO3_uIO_IN MFP_CFG(GPIO3, 441 442 #define GPIO4_uSIM_CARD_STATE MFP_CFG(GPIO4, 443 #define GPIO5_uSIM_uCLK MFP_CFG(GPIO5, 444 #define GPIO6_uSIM_uRST MFP_CFG(GPIO6, 445 #define GPIO16_uSIM_UVS_0 MFP_CFG(GPIO16 446 447 #define GPIO9_SCIO MFP_CFG(GPIO9, 448 #define GPIO20_RTC_MVT MFP_CFG(GPIO20 449 #define GPIO126_RTC_MVT MFP_CFG(GPIO12 450 451 /* 452 * PXA300 specific MFP configurations 453 */ 454 #ifdef CONFIG_CPU_PXA300 455 #define GPIO99_USB_P2_2 MFP_CFG(GPIO99 456 #define GPIO99_USB_P2_5 MFP_CFG(GPIO99 457 #define GPIO99_USB_P2_6 MFP_CFG(GPIO99 458 #define GPIO100_USB_P2_2 MFP_CFG(GPIO10 459 #define GPIO100_USB_P2_5 MFP_CFG(GPIO10 460 #define GPIO101_USB_P2_1 MFP_CFG(GPIO10 461 #define GPIO102_USB_P2_4 MFP_CFG(GPIO10 462 #define GPIO104_USB_P2_3 MFP_CFG(GPIO10 463 #define GPIO105_USB_P2_5 MFP_CFG(GPIO10 464 #define GPIO100_USB_P2_6 MFP_CFG(GPIO10 465 #define GPIO106_USB_P2_7 MFP_CFG(GPIO10 466 #define GPIO103_USB_P2_8 MFP_CFG(GPIO10 467 468 /* U2D UTMI */ 469 #define GPIO38_UTM_CLK MFP_CFG(GPIO38 470 #define GPIO26_U2D_RXERROR MFP_CFG(GPIO26 471 #define GPIO50_U2D_RXERROR MFP_CFG(GPIO50 472 #define GPIO89_U2D_RXERROR MFP_CFG(GPIO89 473 #define GPIO24_UTM_RXVALID MFP_CFG(GPIO24 474 #define GPIO48_UTM_RXVALID MFP_CFG(GPIO48 475 #define GPIO87_UTM_RXVALID MFP_CFG(GPIO87 476 #define GPIO25_UTM_RXACTIVE MFP_CFG(GPIO25 477 #define GPIO47_UTM_RXACTIVE MFP_CFG(GPIO47 478 #define GPIO49_UTM_RXACTIVE MFP_CFG(GPIO49 479 #define GPIO88_UTM_RXACTIVE MFP_CFG(GPIO88 480 #define GPIO53_UTM_TXREADY MFP_CFG(GPIO53 481 #define GPIO67_UTM_LINESTATE_0 MFP_CFG(GPIO67 482 #define GPIO92_UTM_LINESTATE_0 MFP_CFG(GPIO92 483 #define GPIO104_UTM_LINESTATE_0 MFP_CFG(GPIO10 484 #define GPIO109_UTM_LINESTATE_0 MFP_CFG(GPIO10 485 #define GPIO68_UTM_LINESTATE_1 MFP_CFG(GPIO68 486 #define GPIO93_UTM_LINESTATE_1 MFP_CFG(GPIO93 487 #define GPIO105_UTM_LINESTATE_1 MFP_CFG(GPIO10 488 #define GPIO27_U2D_OPMODE_0 MFP_CFG(GPIO27 489 #define GPIO51_U2D_OPMODE_0 MFP_CFG(GPIO51 490 #define GPIO90_U2D_OPMODE_0 MFP_CFG(GPIO90 491 #define GPIO28_U2D_OPMODE_1 MFP_CFG(GPIO28 492 #define GPIO52_U2D_OPMODE_1 MFP_CFG(GPIO52 493 #define GPIO106_U2D_OPMODE_1 MFP_CFG(GPIO10 494 #define GPIO110_U2D_OPMODE_1 MFP_CFG(GPIO11 495 #define GPIO76_U2D_RESET MFP_CFG(GPIO76 496 #define GPIO95_U2D_RESET MFP_CFG(GPIO95 497 #define GPIO100_U2D_RESET MFP_CFG(GPIO10 498 #define GPIO66_U2D_SUSPEND MFP_CFG(GPIO66 499 #define GPIO98_U2D_SUSPEND MFP_CFG(GPIO98 500 #define GPIO103_U2D_SUSPEND MFP_CFG(GPIO10 501 #define GPIO65_U2D_TERM_SEL MFP_CFG(GPIO65 502 #define GPIO97_U2D_TERM_SEL MFP_CFG(GPIO97 503 #define GPIO102_U2D_TERM_SEL MFP_CFG(GPIO10 504 #define GPIO29_U2D_TXVALID MFP_CFG(GPIO29 505 #define GPIO52_U2D_TXVALID MFP_CFG(GPIO52 506 #define GPIO69_U2D_TXVALID MFP_CFG(GPIO69 507 #define GPIO85_U2D_TXVALID MFP_CFG(GPIO85 508 #define GPIO64_U2D_XCVR_SEL MFP_CFG(GPIO64 509 #define GPIO96_U2D_XCVR_SEL MFP_CFG(GPIO96 510 #define GPIO101_U2D_XCVR_SEL MFP_CFG(GPIO10 511 #define GPIO30_UTM_PHYDATA_0 MFP_CFG(GPIO30 512 #define GPIO31_UTM_PHYDATA_1 MFP_CFG(GPIO31 513 #define GPIO32_UTM_PHYDATA_2 MFP_CFG(GPIO32 514 #define GPIO33_UTM_PHYDATA_3 MFP_CFG(GPIO33 515 #define GPIO34_UTM_PHYDATA_4 MFP_CFG(GPIO34 516 #define GPIO35_UTM_PHYDATA_5 MFP_CFG(GPIO35 517 #define GPIO36_UTM_PHYDATA_6 MFP_CFG(GPIO36 518 #define GPIO37_UTM_PHYDATA_7 MFP_CFG(GPIO37 519 #define GPIO39_UTM_PHYDATA_0 MFP_CFG(GPIO39 520 #define GPIO40_UTM_PHYDATA_1 MFP_CFG(GPIO40 521 #define GPIO41_UTM_PHYDATA_2 MFP_CFG(GPIO41 522 #define GPIO42_UTM_PHYDATA_3 MFP_CFG(GPIO42 523 #define GPIO43_UTM_PHYDATA_4 MFP_CFG(GPIO43 524 #define GPIO44_UTM_PHYDATA_5 MFP_CFG(GPIO44 525 #define GPIO45_UTM_PHYDATA_6 MFP_CFG(GPIO45 526 #define GPIO46_UTM_PHYDATA_7 MFP_CFG(GPIO46 527 #endif /* CONFIG_CPU_PXA300 */ 528 529 /* 530 * PXA310 specific MFP configurations 531 */ 532 #ifdef CONFIG_CPU_PXA310 533 /* USB P2 */ 534 #define GPIO36_USB_P2_1 MFP_CFG(GPIO36 535 #define GPIO30_USB_P2_2 MFP_CFG(GPIO30 536 #define GPIO35_USB_P2_3 MFP_CFG(GPIO35 537 #define GPIO32_USB_P2_4 MFP_CFG(GPIO32 538 #define GPIO34_USB_P2_5 MFP_CFG(GPIO34 539 #define GPIO31_USB_P2_6 MFP_CFG(GPIO31 540 541 /* MMC1 */ 542 #define GPIO24_MMC1_CMD MFP_CFG(GPIO24 543 #define GPIO29_MMC1_DAT0 MFP_CFG(GPIO29 544 545 /* MMC3 */ 546 #define GPIO103_MMC3_CLK MFP_CFG(GPIO10 547 #define GPIO105_MMC3_CMD MFP_CFG(GPIO10 548 #define GPIO11_2_MMC3_CLK MFP_CFG(GPIO11 549 #define GPIO12_2_MMC3_CMD MFP_CFG(GPIO12 550 #define GPIO7_2_MMC3_DAT0 MFP_CFG(GPIO7_ 551 #define GPIO8_2_MMC3_DAT1 MFP_CFG(GPIO8_ 552 #define GPIO9_2_MMC3_DAT2 MFP_CFG(GPIO9_ 553 #define GPIO10_2_MMC3_DAT3 MFP_CFG(GPIO10 554 555 /* ULPI */ 556 #define GPIO38_ULPI_CLK MFP_CFG(GPIO38 557 #define GPIO30_ULPI_DATA_OUT_0 MFP_CFG(GPIO30 558 #define GPIO31_ULPI_DATA_OUT_1 MFP_CFG(GPIO31 559 #define GPIO32_ULPI_DATA_OUT_2 MFP_CFG(GPIO32 560 #define GPIO33_ULPI_DATA_OUT_3 MFP_CFG(GPIO33 561 #define GPIO34_ULPI_DATA_OUT_4 MFP_CFG(GPIO34 562 #define GPIO35_ULPI_DATA_OUT_5 MFP_CFG(GPIO35 563 #define GPIO36_ULPI_DATA_OUT_6 MFP_CFG(GPIO36 564 #define GPIO37_ULPI_DATA_OUT_7 MFP_CFG(GPIO37 565 #define GPIO33_ULPI_OTG_INTR MFP_CFG(GPIO33 566 567 #define ULPI_DIR MFP_CFG_DRV(ULPI_DIR, 568 #define ULPI_NXT MFP_CFG_DRV(ULPI_NXT, 569 #define ULPI_STP MFP_CFG_DRV(ULPI_STP, 570 #endif /* CONFIG_CPU_PXA310 */ 571 572 #endif /* __ASM_ARCH_MFP_PXA300_H */ 573
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.