Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Eric Miao | a7a89d9 | 2009-01-20 17:20:56 +0800 | [diff] [blame] | 2 | #ifndef __ASM_MACH_MFP_PXA168_H |
| 3 | #define __ASM_MACH_MFP_PXA168_H |
| 4 | |
Arnd Bergmann | b501fd7 | 2014-04-15 20:38:32 +0200 | [diff] [blame] | 5 | #include "mfp.h" |
Eric Miao | a7a89d9 | 2009-01-20 17:20:56 +0800 | [diff] [blame] | 6 | |
Mingwei Wang | 0e1b74d | 2009-05-20 16:49:57 +0800 | [diff] [blame] | 7 | #define MFP_DRIVE_VERY_SLOW (0x0 << 13) |
| 8 | #define MFP_DRIVE_SLOW (0x1 << 13) |
| 9 | #define MFP_DRIVE_MEDIUM (0x2 << 13) |
| 10 | #define MFP_DRIVE_FAST (0x3 << 13) |
| 11 | |
Haojian Zhuang | 6932613 | 2011-04-08 20:15:39 +0800 | [diff] [blame] | 12 | #undef MFP_CFG |
| 13 | #undef MFP_CFG_DRV |
| 14 | |
| 15 | #define MFP_CFG(pin, af) \ |
| 16 | (MFP_LPM_INPUT | MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DRIVE_MEDIUM) |
| 17 | |
| 18 | #define MFP_CFG_DRV(pin, af, drv) \ |
| 19 | (MFP_LPM_INPUT | MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DRIVE_##drv) |
| 20 | |
Eric Miao | a7a89d9 | 2009-01-20 17:20:56 +0800 | [diff] [blame] | 21 | /* GPIO */ |
| 22 | #define GPIO0_GPIO MFP_CFG(GPIO0, AF5) |
| 23 | #define GPIO1_GPIO MFP_CFG(GPIO1, AF5) |
| 24 | #define GPIO2_GPIO MFP_CFG(GPIO2, AF5) |
| 25 | #define GPIO3_GPIO MFP_CFG(GPIO3, AF5) |
| 26 | #define GPIO4_GPIO MFP_CFG(GPIO4, AF5) |
| 27 | #define GPIO5_GPIO MFP_CFG(GPIO5, AF5) |
| 28 | #define GPIO6_GPIO MFP_CFG(GPIO6, AF5) |
| 29 | #define GPIO7_GPIO MFP_CFG(GPIO7, AF5) |
| 30 | #define GPIO8_GPIO MFP_CFG(GPIO8, AF5) |
| 31 | #define GPIO9_GPIO MFP_CFG(GPIO9, AF5) |
| 32 | #define GPIO10_GPIO MFP_CFG(GPIO10, AF5) |
| 33 | #define GPIO11_GPIO MFP_CFG(GPIO11, AF5) |
| 34 | #define GPIO12_GPIO MFP_CFG(GPIO12, AF5) |
| 35 | #define GPIO13_GPIO MFP_CFG(GPIO13, AF5) |
| 36 | #define GPIO14_GPIO MFP_CFG(GPIO14, AF5) |
| 37 | #define GPIO15_GPIO MFP_CFG(GPIO15, AF5) |
| 38 | #define GPIO16_GPIO MFP_CFG(GPIO16, AF0) |
| 39 | #define GPIO17_GPIO MFP_CFG(GPIO17, AF5) |
| 40 | #define GPIO18_GPIO MFP_CFG(GPIO18, AF0) |
| 41 | #define GPIO19_GPIO MFP_CFG(GPIO19, AF5) |
| 42 | #define GPIO20_GPIO MFP_CFG(GPIO20, AF0) |
| 43 | #define GPIO21_GPIO MFP_CFG(GPIO21, AF5) |
| 44 | #define GPIO22_GPIO MFP_CFG(GPIO22, AF5) |
| 45 | #define GPIO23_GPIO MFP_CFG(GPIO23, AF5) |
| 46 | #define GPIO24_GPIO MFP_CFG(GPIO24, AF5) |
| 47 | #define GPIO25_GPIO MFP_CFG(GPIO25, AF5) |
| 48 | #define GPIO26_GPIO MFP_CFG(GPIO26, AF0) |
| 49 | #define GPIO27_GPIO MFP_CFG(GPIO27, AF5) |
| 50 | #define GPIO28_GPIO MFP_CFG(GPIO28, AF5) |
| 51 | #define GPIO29_GPIO MFP_CFG(GPIO29, AF5) |
| 52 | #define GPIO30_GPIO MFP_CFG(GPIO30, AF5) |
| 53 | #define GPIO31_GPIO MFP_CFG(GPIO31, AF5) |
| 54 | #define GPIO32_GPIO MFP_CFG(GPIO32, AF5) |
| 55 | #define GPIO33_GPIO MFP_CFG(GPIO33, AF5) |
| 56 | #define GPIO34_GPIO MFP_CFG(GPIO34, AF0) |
| 57 | #define GPIO35_GPIO MFP_CFG(GPIO35, AF0) |
| 58 | #define GPIO36_GPIO MFP_CFG(GPIO36, AF0) |
| 59 | #define GPIO37_GPIO MFP_CFG(GPIO37, AF0) |
| 60 | #define GPIO38_GPIO MFP_CFG(GPIO38, AF0) |
| 61 | #define GPIO39_GPIO MFP_CFG(GPIO39, AF0) |
| 62 | #define GPIO40_GPIO MFP_CFG(GPIO40, AF0) |
| 63 | #define GPIO41_GPIO MFP_CFG(GPIO41, AF0) |
| 64 | #define GPIO42_GPIO MFP_CFG(GPIO42, AF0) |
| 65 | #define GPIO43_GPIO MFP_CFG(GPIO43, AF0) |
| 66 | #define GPIO44_GPIO MFP_CFG(GPIO44, AF0) |
| 67 | #define GPIO45_GPIO MFP_CFG(GPIO45, AF0) |
| 68 | #define GPIO46_GPIO MFP_CFG(GPIO46, AF0) |
| 69 | #define GPIO47_GPIO MFP_CFG(GPIO47, AF0) |
| 70 | #define GPIO48_GPIO MFP_CFG(GPIO48, AF0) |
| 71 | #define GPIO49_GPIO MFP_CFG(GPIO49, AF0) |
| 72 | #define GPIO50_GPIO MFP_CFG(GPIO50, AF0) |
| 73 | #define GPIO51_GPIO MFP_CFG(GPIO51, AF0) |
| 74 | #define GPIO52_GPIO MFP_CFG(GPIO52, AF0) |
| 75 | #define GPIO53_GPIO MFP_CFG(GPIO53, AF0) |
| 76 | #define GPIO54_GPIO MFP_CFG(GPIO54, AF0) |
| 77 | #define GPIO55_GPIO MFP_CFG(GPIO55, AF0) |
| 78 | #define GPIO56_GPIO MFP_CFG(GPIO56, AF0) |
| 79 | #define GPIO57_GPIO MFP_CFG(GPIO57, AF0) |
| 80 | #define GPIO58_GPIO MFP_CFG(GPIO58, AF0) |
| 81 | #define GPIO59_GPIO MFP_CFG(GPIO59, AF0) |
| 82 | #define GPIO60_GPIO MFP_CFG(GPIO60, AF0) |
| 83 | #define GPIO61_GPIO MFP_CFG(GPIO61, AF0) |
| 84 | #define GPIO62_GPIO MFP_CFG(GPIO62, AF0) |
| 85 | #define GPIO63_GPIO MFP_CFG(GPIO63, AF0) |
| 86 | #define GPIO64_GPIO MFP_CFG(GPIO64, AF0) |
| 87 | #define GPIO65_GPIO MFP_CFG(GPIO65, AF0) |
| 88 | #define GPIO66_GPIO MFP_CFG(GPIO66, AF0) |
| 89 | #define GPIO67_GPIO MFP_CFG(GPIO67, AF0) |
| 90 | #define GPIO68_GPIO MFP_CFG(GPIO68, AF0) |
| 91 | #define GPIO69_GPIO MFP_CFG(GPIO69, AF0) |
| 92 | #define GPIO70_GPIO MFP_CFG(GPIO70, AF0) |
| 93 | #define GPIO71_GPIO MFP_CFG(GPIO71, AF0) |
| 94 | #define GPIO72_GPIO MFP_CFG(GPIO72, AF0) |
| 95 | #define GPIO73_GPIO MFP_CFG(GPIO73, AF0) |
| 96 | #define GPIO74_GPIO MFP_CFG(GPIO74, AF0) |
| 97 | #define GPIO75_GPIO MFP_CFG(GPIO75, AF0) |
| 98 | #define GPIO76_GPIO MFP_CFG(GPIO76, AF0) |
| 99 | #define GPIO77_GPIO MFP_CFG(GPIO77, AF0) |
| 100 | #define GPIO78_GPIO MFP_CFG(GPIO78, AF0) |
| 101 | #define GPIO79_GPIO MFP_CFG(GPIO79, AF0) |
| 102 | #define GPIO80_GPIO MFP_CFG(GPIO80, AF0) |
| 103 | #define GPIO81_GPIO MFP_CFG(GPIO81, AF0) |
| 104 | #define GPIO82_GPIO MFP_CFG(GPIO82, AF0) |
| 105 | #define GPIO83_GPIO MFP_CFG(GPIO83, AF0) |
| 106 | #define GPIO84_GPIO MFP_CFG(GPIO84, AF0) |
| 107 | #define GPIO85_GPIO MFP_CFG(GPIO85, AF0) |
| 108 | #define GPIO86_GPIO MFP_CFG(GPIO86, AF0) |
| 109 | #define GPIO87_GPIO MFP_CFG(GPIO87, AF0) |
| 110 | #define GPIO88_GPIO MFP_CFG(GPIO88, AF0) |
| 111 | #define GPIO89_GPIO MFP_CFG(GPIO89, AF0) |
| 112 | #define GPIO90_GPIO MFP_CFG(GPIO90, AF0) |
| 113 | #define GPIO91_GPIO MFP_CFG(GPIO91, AF0) |
| 114 | #define GPIO92_GPIO MFP_CFG(GPIO92, AF0) |
| 115 | #define GPIO93_GPIO MFP_CFG(GPIO93, AF0) |
| 116 | #define GPIO94_GPIO MFP_CFG(GPIO94, AF0) |
| 117 | #define GPIO95_GPIO MFP_CFG(GPIO95, AF0) |
| 118 | #define GPIO96_GPIO MFP_CFG(GPIO96, AF0) |
| 119 | #define GPIO97_GPIO MFP_CFG(GPIO97, AF0) |
| 120 | #define GPIO98_GPIO MFP_CFG(GPIO98, AF0) |
| 121 | #define GPIO99_GPIO MFP_CFG(GPIO99, AF0) |
| 122 | #define GPIO100_GPIO MFP_CFG(GPIO100, AF0) |
| 123 | #define GPIO101_GPIO MFP_CFG(GPIO101, AF0) |
| 124 | #define GPIO102_GPIO MFP_CFG(GPIO102, AF0) |
| 125 | #define GPIO103_GPIO MFP_CFG(GPIO103, AF0) |
| 126 | #define GPIO104_GPIO MFP_CFG(GPIO104, AF0) |
| 127 | #define GPIO105_GPIO MFP_CFG(GPIO105, AF0) |
| 128 | #define GPIO106_GPIO MFP_CFG(GPIO106, AF0) |
| 129 | #define GPIO107_GPIO MFP_CFG(GPIO107, AF0) |
| 130 | #define GPIO108_GPIO MFP_CFG(GPIO108, AF0) |
| 131 | #define GPIO109_GPIO MFP_CFG(GPIO109, AF0) |
| 132 | #define GPIO110_GPIO MFP_CFG(GPIO110, AF0) |
| 133 | #define GPIO111_GPIO MFP_CFG(GPIO111, AF0) |
| 134 | #define GPIO112_GPIO MFP_CFG(GPIO112, AF0) |
| 135 | #define GPIO113_GPIO MFP_CFG(GPIO113, AF0) |
| 136 | #define GPIO114_GPIO MFP_CFG(GPIO114, AF0) |
| 137 | #define GPIO115_GPIO MFP_CFG(GPIO115, AF0) |
| 138 | #define GPIO116_GPIO MFP_CFG(GPIO116, AF0) |
| 139 | #define GPIO117_GPIO MFP_CFG(GPIO117, AF0) |
| 140 | #define GPIO118_GPIO MFP_CFG(GPIO118, AF0) |
| 141 | #define GPIO119_GPIO MFP_CFG(GPIO119, AF0) |
| 142 | #define GPIO120_GPIO MFP_CFG(GPIO120, AF0) |
| 143 | #define GPIO121_GPIO MFP_CFG(GPIO121, AF0) |
| 144 | #define GPIO122_GPIO MFP_CFG(GPIO122, AF0) |
| 145 | |
| 146 | /* DFI */ |
| 147 | #define GPIO0_DFI_D15 MFP_CFG(GPIO0, AF0) |
| 148 | #define GPIO1_DFI_D14 MFP_CFG(GPIO1, AF0) |
| 149 | #define GPIO2_DFI_D13 MFP_CFG(GPIO2, AF0) |
| 150 | #define GPIO3_DFI_D12 MFP_CFG(GPIO3, AF0) |
| 151 | #define GPIO4_DFI_D11 MFP_CFG(GPIO4, AF0) |
| 152 | #define GPIO5_DFI_D10 MFP_CFG(GPIO5, AF0) |
| 153 | #define GPIO6_DFI_D9 MFP_CFG(GPIO6, AF0) |
| 154 | #define GPIO7_DFI_D8 MFP_CFG(GPIO7, AF0) |
| 155 | #define GPIO8_DFI_D7 MFP_CFG(GPIO8, AF0) |
| 156 | #define GPIO9_DFI_D6 MFP_CFG(GPIO9, AF0) |
| 157 | #define GPIO10_DFI_D5 MFP_CFG(GPIO10, AF0) |
| 158 | #define GPIO11_DFI_D4 MFP_CFG(GPIO11, AF0) |
| 159 | #define GPIO12_DFI_D3 MFP_CFG(GPIO12, AF0) |
| 160 | #define GPIO13_DFI_D2 MFP_CFG(GPIO13, AF0) |
| 161 | #define GPIO14_DFI_D1 MFP_CFG(GPIO14, AF0) |
| 162 | #define GPIO15_DFI_D0 MFP_CFG(GPIO15, AF0) |
| 163 | |
| 164 | #define GPIO30_DFI_ADDR0 MFP_CFG(GPIO30, AF0) |
| 165 | #define GPIO31_DFI_ADDR1 MFP_CFG(GPIO31, AF0) |
| 166 | #define GPIO32_DFI_ADDR2 MFP_CFG(GPIO32, AF0) |
| 167 | #define GPIO33_DFI_ADDR3 MFP_CFG(GPIO33, AF0) |
| 168 | |
| 169 | /* NAND */ |
| 170 | #define GPIO16_ND_nCS0 MFP_CFG(GPIO16, AF1) |
| 171 | #define GPIO17_ND_nWE MFP_CFG(GPIO17, AF0) |
| 172 | #define GPIO21_ND_ALE MFP_CFG(GPIO21, AF0) |
| 173 | #define GPIO22_ND_CLE MFP_CFG(GPIO22, AF0) |
| 174 | #define GPIO24_ND_nRE MFP_CFG(GPIO24, AF0) |
| 175 | #define GPIO26_ND_RnB1 MFP_CFG(GPIO26, AF1) |
| 176 | #define GPIO27_ND_RnB2 MFP_CFG(GPIO27, AF1) |
| 177 | |
| 178 | /* Static Memory Controller */ |
| 179 | #define GPIO18_SMC_nCS0 MFP_CFG(GPIO18, AF3) |
| 180 | #define GPIO18_SMC_nCS1 MFP_CFG(GPIO18, AF2) |
| 181 | #define GPIO16_SMC_nCS0 MFP_CFG(GPIO16, AF2) |
| 182 | #define GPIO16_SMC_nCS1 MFP_CFG(GPIO16, AF3) |
| 183 | #define GPIO19_SMC_nCS0 MFP_CFG(GPIO19, AF0) |
| 184 | #define GPIO20_SMC_nCS1 MFP_CFG(GPIO20, AF2) |
| 185 | #define GPIO23_SMC_nLUA MFP_CFG(GPIO23, AF0) |
| 186 | #define GPIO25_SMC_nLLA MFP_CFG(GPIO25, AF0) |
| 187 | #define GPIO27_SMC_IRQ MFP_CFG(GPIO27, AF0) |
| 188 | #define GPIO28_SMC_RDY MFP_CFG(GPIO28, AF0) |
| 189 | #define GPIO29_SMC_SCLK MFP_CFG(GPIO29, AF0) |
| 190 | #define GPIO34_SMC_nCS1 MFP_CFG(GPIO34, AF2) |
| 191 | #define GPIO35_SMC_BE1 MFP_CFG(GPIO35, AF2) |
| 192 | #define GPIO36_SMC_BE2 MFP_CFG(GPIO36, AF2) |
| 193 | |
| 194 | /* Compact Flash */ |
| 195 | #define GPIO19_CF_nCE1 MFP_CFG(GPIO19, AF3) |
| 196 | #define GPIO20_CF_nCE2 MFP_CFG(GPIO20, AF3) |
| 197 | #define GPIO23_CF_nALE MFP_CFG(GPIO23, AF3) |
| 198 | #define GPIO25_CF_nRESET MFP_CFG(GPIO25, AF3) |
| 199 | #define GPIO28_CF_RDY MFP_CFG(GPIO28, AF3) |
| 200 | #define GPIO29_CF_STSCH MFP_CFG(GPIO29, AF3) |
| 201 | #define GPIO30_CF_nREG MFP_CFG(GPIO30, AF3) |
| 202 | #define GPIO31_CF_nIOIS16 MFP_CFG(GPIO31, AF3) |
| 203 | #define GPIO32_CF_nCD1 MFP_CFG(GPIO32, AF3) |
| 204 | #define GPIO33_CF_nCD2 MFP_CFG(GPIO33, AF3) |
| 205 | |
Haojian Zhuang | 9896de7 | 2010-01-12 08:54:50 +0800 | [diff] [blame] | 206 | /* UART */ |
Tanmay Upadhyay | 3647a40 | 2011-07-14 15:07:15 +0530 | [diff] [blame] | 207 | #define GPIO8_UART3_TXD MFP_CFG(GPIO8, AF2) |
| 208 | #define GPIO9_UART3_RXD MFP_CFG(GPIO9, AF2) |
| 209 | #define GPIO1O_UART3_CTS MFP_CFG(GPIO10, AF2) |
| 210 | #define GPIO11_UART3_RTS MFP_CFG(GPIO11, AF2) |
Haojian Zhuang | 9896de7 | 2010-01-12 08:54:50 +0800 | [diff] [blame] | 211 | #define GPIO88_UART2_TXD MFP_CFG(GPIO88, AF2) |
| 212 | #define GPIO89_UART2_RXD MFP_CFG(GPIO89, AF2) |
Eric Miao | a7a89d9 | 2009-01-20 17:20:56 +0800 | [diff] [blame] | 213 | #define GPIO107_UART1_TXD MFP_CFG_DRV(GPIO107, AF1, FAST) |
| 214 | #define GPIO107_UART1_RXD MFP_CFG_DRV(GPIO107, AF2, FAST) |
| 215 | #define GPIO108_UART1_RXD MFP_CFG_DRV(GPIO108, AF1, FAST) |
| 216 | #define GPIO108_UART1_TXD MFP_CFG_DRV(GPIO108, AF2, FAST) |
| 217 | #define GPIO109_UART1_CTS MFP_CFG(GPIO109, AF1) |
| 218 | #define GPIO109_UART1_RTS MFP_CFG(GPIO109, AF2) |
| 219 | #define GPIO110_UART1_RTS MFP_CFG(GPIO110, AF1) |
| 220 | #define GPIO110_UART1_CTS MFP_CFG(GPIO110, AF2) |
| 221 | #define GPIO111_UART1_RI MFP_CFG(GPIO111, AF1) |
| 222 | #define GPIO111_UART1_DSR MFP_CFG(GPIO111, AF2) |
| 223 | #define GPIO112_UART1_DTR MFP_CFG(GPIO111, AF1) |
| 224 | #define GPIO112_UART1_DCD MFP_CFG(GPIO112, AF2) |
| 225 | |
| 226 | /* MMC1 */ |
| 227 | #define GPIO37_MMC1_DAT7 MFP_CFG(GPIO37, AF1) |
| 228 | #define GPIO38_MMC1_DAT6 MFP_CFG(GPIO38, AF1) |
| 229 | #define GPIO54_MMC1_DAT5 MFP_CFG(GPIO54, AF1) |
| 230 | #define GPIO48_MMC1_DAT4 MFP_CFG(GPIO48, AF1) |
| 231 | #define GPIO51_MMC1_DAT3 MFP_CFG(GPIO51, AF1) |
| 232 | #define GPIO52_MMC1_DAT2 MFP_CFG(GPIO52, AF1) |
| 233 | #define GPIO40_MMC1_DAT1 MFP_CFG(GPIO40, AF1) |
| 234 | #define GPIO41_MMC1_DAT0 MFP_CFG(GPIO41, AF1) |
| 235 | #define GPIO49_MMC1_CMD MFP_CFG(GPIO49, AF1) |
| 236 | #define GPIO43_MMC1_CLK MFP_CFG(GPIO43, AF1) |
| 237 | #define GPIO53_MMC1_CD MFP_CFG(GPIO53, AF1) |
| 238 | #define GPIO46_MMC1_WP MFP_CFG(GPIO46, AF1) |
| 239 | |
Tanmay Upadhyay | 3647a40 | 2011-07-14 15:07:15 +0530 | [diff] [blame] | 240 | /* MMC2 */ |
| 241 | #define GPIO28_MMC2_CMD MFP_CFG_DRV(GPIO28, AF6, FAST) |
| 242 | #define GPIO29_MMC2_CLK MFP_CFG_DRV(GPIO29, AF6, FAST) |
| 243 | #define GPIO30_MMC2_DAT0 MFP_CFG_DRV(GPIO30, AF6, FAST) |
| 244 | #define GPIO31_MMC2_DAT1 MFP_CFG_DRV(GPIO31, AF6, FAST) |
| 245 | #define GPIO32_MMC2_DAT2 MFP_CFG_DRV(GPIO32, AF6, FAST) |
| 246 | #define GPIO33_MMC2_DAT3 MFP_CFG_DRV(GPIO33, AF6, FAST) |
| 247 | |
| 248 | /* MMC4 */ |
| 249 | #define GPIO125_MMC4_DAT3 MFP_CFG_DRV(GPIO125, AF7, FAST) |
| 250 | #define GPIO126_MMC4_DAT2 MFP_CFG_DRV(GPIO126, AF7, FAST) |
| 251 | #define GPIO127_MMC4_DAT1 MFP_CFG_DRV(GPIO127, AF7, FAST) |
| 252 | #define GPIO0_2_MMC4_DAT0 MFP_CFG_DRV(GPIO0_2, AF7, FAST) |
| 253 | #define GPIO1_2_MMC4_CMD MFP_CFG_DRV(GPIO1_2, AF7, FAST) |
| 254 | #define GPIO2_2_MMC4_CLK MFP_CFG_DRV(GPIO2_2, AF7, FAST) |
| 255 | |
Eric Miao | a7a89d9 | 2009-01-20 17:20:56 +0800 | [diff] [blame] | 256 | /* LCD */ |
| 257 | #define GPIO84_LCD_CS MFP_CFG(GPIO84, AF1) |
| 258 | #define GPIO60_LCD_DD0 MFP_CFG(GPIO60, AF1) |
| 259 | #define GPIO61_LCD_DD1 MFP_CFG(GPIO61, AF1) |
| 260 | #define GPIO70_LCD_DD10 MFP_CFG(GPIO70, AF1) |
| 261 | #define GPIO71_LCD_DD11 MFP_CFG(GPIO71, AF1) |
| 262 | #define GPIO72_LCD_DD12 MFP_CFG(GPIO72, AF1) |
| 263 | #define GPIO73_LCD_DD13 MFP_CFG(GPIO73, AF1) |
| 264 | #define GPIO74_LCD_DD14 MFP_CFG(GPIO74, AF1) |
| 265 | #define GPIO75_LCD_DD15 MFP_CFG(GPIO75, AF1) |
| 266 | #define GPIO76_LCD_DD16 MFP_CFG(GPIO76, AF1) |
| 267 | #define GPIO77_LCD_DD17 MFP_CFG(GPIO77, AF1) |
| 268 | #define GPIO78_LCD_DD18 MFP_CFG(GPIO78, AF1) |
| 269 | #define GPIO79_LCD_DD19 MFP_CFG(GPIO79, AF1) |
| 270 | #define GPIO62_LCD_DD2 MFP_CFG(GPIO62, AF1) |
| 271 | #define GPIO80_LCD_DD20 MFP_CFG(GPIO80, AF1) |
| 272 | #define GPIO81_LCD_DD21 MFP_CFG(GPIO81, AF1) |
| 273 | #define GPIO82_LCD_DD22 MFP_CFG(GPIO82, AF1) |
| 274 | #define GPIO83_LCD_DD23 MFP_CFG(GPIO83, AF1) |
| 275 | #define GPIO63_LCD_DD3 MFP_CFG(GPIO63, AF1) |
| 276 | #define GPIO64_LCD_DD4 MFP_CFG(GPIO64, AF1) |
| 277 | #define GPIO65_LCD_DD5 MFP_CFG(GPIO65, AF1) |
| 278 | #define GPIO66_LCD_DD6 MFP_CFG(GPIO66, AF1) |
| 279 | #define GPIO67_LCD_DD7 MFP_CFG(GPIO67, AF1) |
| 280 | #define GPIO68_LCD_DD8 MFP_CFG(GPIO68, AF1) |
| 281 | #define GPIO69_LCD_DD9 MFP_CFG(GPIO69, AF1) |
| 282 | #define GPIO59_LCD_DENA_BIAS MFP_CFG(GPIO59, AF1) |
| 283 | #define GPIO56_LCD_FCLK_RD MFP_CFG(GPIO56, AF1) |
| 284 | #define GPIO57_LCD_LCLK_A0 MFP_CFG(GPIO57, AF1) |
| 285 | #define GPIO58_LCD_PCLK_WR MFP_CFG(GPIO58, AF1) |
| 286 | #define GPIO85_LCD_VSYNC MFP_CFG(GPIO85, AF1) |
| 287 | |
Eric Miao | 1a77920 | 2009-04-13 15:34:54 +0800 | [diff] [blame] | 288 | /* I2C */ |
| 289 | #define GPIO105_CI2C_SDA MFP_CFG(GPIO105, AF1) |
| 290 | #define GPIO106_CI2C_SCL MFP_CFG(GPIO106, AF1) |
| 291 | |
Eric Miao | a7a89d9 | 2009-01-20 17:20:56 +0800 | [diff] [blame] | 292 | /* I2S */ |
Tanmay Upadhyay | 3647a40 | 2011-07-14 15:07:15 +0530 | [diff] [blame] | 293 | #define GPIO113_I2S_MCLK MFP_CFG(GPIO113, AF6) |
| 294 | #define GPIO114_I2S_FRM MFP_CFG(GPIO114, AF1) |
| 295 | #define GPIO115_I2S_BCLK MFP_CFG(GPIO115, AF1) |
| 296 | #define GPIO116_I2S_RXD MFP_CFG(GPIO116, AF2) |
| 297 | #define GPIO116_I2S_TXD MFP_CFG(GPIO116, AF1) |
| 298 | #define GPIO117_I2S_TXD MFP_CFG(GPIO117, AF2) |
Eric Miao | a7a89d9 | 2009-01-20 17:20:56 +0800 | [diff] [blame] | 299 | |
Eric Miao | a27ba76 | 2009-04-13 18:29:52 +0800 | [diff] [blame] | 300 | /* PWM */ |
| 301 | #define GPIO96_PWM3_OUT MFP_CFG(GPIO96, AF1) |
| 302 | #define GPIO97_PWM2_OUT MFP_CFG(GPIO97, AF1) |
| 303 | #define GPIO98_PWM1_OUT MFP_CFG(GPIO98, AF1) |
| 304 | #define GPIO104_PWM4_OUT MFP_CFG(GPIO104, AF1) |
| 305 | #define GPIO106_PWM2_OUT MFP_CFG(GPIO106, AF2) |
| 306 | #define GPIO74_PWM4_OUT MFP_CFG(GPIO74, AF2) |
| 307 | #define GPIO75_PWM3_OUT MFP_CFG(GPIO75, AF2) |
| 308 | #define GPIO76_PWM2_OUT MFP_CFG(GPIO76, AF2) |
| 309 | #define GPIO77_PWM1_OUT MFP_CFG(GPIO77, AF2) |
| 310 | #define GPIO82_PWM4_OUT MFP_CFG(GPIO82, AF2) |
| 311 | #define GPIO83_PWM3_OUT MFP_CFG(GPIO83, AF2) |
| 312 | #define GPIO84_PWM2_OUT MFP_CFG(GPIO84, AF2) |
| 313 | #define GPIO85_PWM1_OUT MFP_CFG(GPIO85, AF2) |
| 314 | #define GPIO84_PWM1_OUT MFP_CFG(GPIO84, AF4) |
| 315 | #define GPIO122_PWM3_OUT MFP_CFG(GPIO122, AF3) |
| 316 | #define GPIO123_PWM1_OUT MFP_CFG(GPIO123, AF1) |
| 317 | #define GPIO124_PWM2_OUT MFP_CFG(GPIO124, AF1) |
| 318 | #define GPIO125_PWM3_OUT MFP_CFG(GPIO125, AF1) |
| 319 | #define GPIO126_PWM4_OUT MFP_CFG(GPIO126, AF1) |
| 320 | #define GPIO86_PWM1_OUT MFP_CFG(GPIO86, AF2) |
| 321 | #define GPIO86_PWM2_OUT MFP_CFG(GPIO86, AF3) |
| 322 | |
Mark F. Brown | 6d10946 | 2010-09-03 18:28:07 -0400 | [diff] [blame] | 323 | /* Keypad */ |
| 324 | #define GPIO109_KP_MKIN1 MFP_CFG(GPIO109, AF7) |
| 325 | #define GPIO110_KP_MKIN0 MFP_CFG(GPIO110, AF7) |
| 326 | #define GPIO111_KP_MKOUT7 MFP_CFG(GPIO111, AF7) |
| 327 | #define GPIO112_KP_MKOUT6 MFP_CFG(GPIO112, AF7) |
| 328 | #define GPIO121_KP_MKIN4 MFP_CFG(GPIO121, AF7) |
| 329 | |
Tanmay Upadhyay | 80def0d | 2011-05-02 11:29:59 +0530 | [diff] [blame] | 330 | /* Fast Ethernet */ |
| 331 | #define GPIO86_TX_CLK MFP_CFG(GPIO86, AF5) |
| 332 | #define GPIO87_TX_EN MFP_CFG(GPIO87, AF5) |
| 333 | #define GPIO88_TX_DQ3 MFP_CFG(GPIO88, AF5) |
| 334 | #define GPIO89_TX_DQ2 MFP_CFG(GPIO89, AF5) |
| 335 | #define GPIO90_TX_DQ1 MFP_CFG(GPIO90, AF5) |
| 336 | #define GPIO91_TX_DQ0 MFP_CFG(GPIO91, AF5) |
| 337 | #define GPIO92_MII_CRS MFP_CFG(GPIO92, AF5) |
| 338 | #define GPIO93_MII_COL MFP_CFG(GPIO93, AF5) |
| 339 | #define GPIO94_RX_CLK MFP_CFG(GPIO94, AF5) |
| 340 | #define GPIO95_RX_ER MFP_CFG(GPIO95, AF5) |
| 341 | #define GPIO96_RX_DQ3 MFP_CFG(GPIO96, AF5) |
| 342 | #define GPIO97_RX_DQ2 MFP_CFG(GPIO97, AF5) |
| 343 | #define GPIO98_RX_DQ1 MFP_CFG(GPIO98, AF5) |
| 344 | #define GPIO99_RX_DQ0 MFP_CFG(GPIO99, AF5) |
| 345 | #define GPIO100_MII_MDC MFP_CFG(GPIO100, AF5) |
| 346 | #define GPIO101_MII_MDIO MFP_CFG(GPIO101, AF5) |
| 347 | #define GPIO103_RX_DV MFP_CFG(GPIO103, AF5) |
| 348 | |
Tanmay Upadhyay | 3647a40 | 2011-07-14 15:07:15 +0530 | [diff] [blame] | 349 | /* SSP2 */ |
| 350 | #define GPIO107_SSP2_RXD MFP_CFG(GPIO107, AF4) |
| 351 | #define GPIO108_SSP2_TXD MFP_CFG(GPIO108, AF4) |
| 352 | #define GPIO111_SSP2_CLK MFP_CFG(GPIO111, AF4) |
| 353 | #define GPIO112_SSP2_FRM MFP_CFG(GPIO112, AF4) |
| 354 | |
Eric Miao | a7a89d9 | 2009-01-20 17:20:56 +0800 | [diff] [blame] | 355 | #endif /* __ASM_MACH_MFP_PXA168_H */ |