Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * linux/include/asm-arm/arch-omap/mux.h |
| 3 | * |
| 4 | * Table of the Omap register configurations for the FUNC_MUX and |
| 5 | * PULL_DWN combinations. |
| 6 | * |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 7 | * Copyright (C) 2003 - 2005 Nokia Corporation |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | * |
| 9 | * Written by Tony Lindgren <tony.lindgren@nokia.com> |
| 10 | * |
| 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by |
| 13 | * the Free Software Foundation; either version 2 of the License, or |
| 14 | * (at your option) any later version. |
| 15 | * |
| 16 | * This program is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License |
| 22 | * along with this program; if not, write to the Free Software |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 24 | * |
| 25 | * NOTE: Please use the following naming style for new pin entries. |
| 26 | * For example, W8_1610_MMC2_DAT0, where: |
| 27 | * - W8 = ball |
| 28 | * - 1610 = 1510 or 1610, none if common for both 1510 and 1610 |
| 29 | * - MMC2_DAT0 = function |
| 30 | * |
| 31 | * Change log: |
| 32 | * Added entry for the I2C interface. (02Feb 2004) |
| 33 | * Copyright (C) 2004 Texas Instruments |
| 34 | * |
| 35 | * Added entry for the keypad and uwire CS1. (09Mar 2004) |
| 36 | * Copyright (C) 2004 Texas Instruments |
| 37 | * |
| 38 | */ |
| 39 | |
| 40 | #ifndef __ASM_ARCH_MUX_H |
| 41 | #define __ASM_ARCH_MUX_H |
| 42 | |
| 43 | #define PU_PD_SEL_NA 0 /* No pu_pd reg available */ |
| 44 | #define PULL_DWN_CTRL_NA 0 /* No pull-down control needed */ |
| 45 | |
| 46 | #ifdef CONFIG_OMAP_MUX_DEBUG |
| 47 | #define MUX_REG(reg, mode_offset, mode) .mux_reg_name = "FUNC_MUX_CTRL_"#reg, \ |
| 48 | .mux_reg = FUNC_MUX_CTRL_##reg, \ |
| 49 | .mask_offset = mode_offset, \ |
| 50 | .mask = mode, |
| 51 | |
| 52 | #define PULL_REG(reg, bit, status) .pull_name = "PULL_DWN_CTRL_"#reg, \ |
| 53 | .pull_reg = PULL_DWN_CTRL_##reg, \ |
| 54 | .pull_bit = bit, \ |
| 55 | .pull_val = status, |
| 56 | |
| 57 | #define PU_PD_REG(reg, status) .pu_pd_name = "PU_PD_SEL_"#reg, \ |
| 58 | .pu_pd_reg = PU_PD_SEL_##reg, \ |
| 59 | .pu_pd_val = status, |
| 60 | |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 61 | #define MUX_REG_730(reg, mode_offset, mode) .mux_reg_name = "OMAP730_IO_CONF_"#reg, \ |
| 62 | .mux_reg = OMAP730_IO_CONF_##reg, \ |
| 63 | .mask_offset = mode_offset, \ |
| 64 | .mask = mode, |
| 65 | |
| 66 | #define PULL_REG_730(reg, bit, status) .pull_name = "OMAP730_IO_CONF_"#reg, \ |
| 67 | .pull_reg = OMAP730_IO_CONF_##reg, \ |
| 68 | .pull_bit = bit, \ |
| 69 | .pull_val = status, |
| 70 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 71 | #else |
| 72 | |
| 73 | #define MUX_REG(reg, mode_offset, mode) .mux_reg = FUNC_MUX_CTRL_##reg, \ |
| 74 | .mask_offset = mode_offset, \ |
| 75 | .mask = mode, |
| 76 | |
| 77 | #define PULL_REG(reg, bit, status) .pull_reg = PULL_DWN_CTRL_##reg, \ |
| 78 | .pull_bit = bit, \ |
| 79 | .pull_val = status, |
| 80 | |
| 81 | #define PU_PD_REG(reg, status) .pu_pd_reg = PU_PD_SEL_##reg, \ |
| 82 | .pu_pd_val = status, |
| 83 | |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 84 | #define MUX_REG_730(reg, mode_offset, mode) \ |
| 85 | .mux_reg = OMAP730_IO_CONF_##reg, \ |
| 86 | .mask_offset = mode_offset, \ |
| 87 | .mask = mode, |
| 88 | |
| 89 | #define PULL_REG_730(reg, bit, status) .pull_reg = OMAP730_IO_CONF_##reg, \ |
| 90 | .pull_bit = bit, \ |
| 91 | .pull_val = status, |
| 92 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 93 | #endif /* CONFIG_OMAP_MUX_DEBUG */ |
| 94 | |
| 95 | #define MUX_CFG(desc, mux_reg, mode_offset, mode, \ |
| 96 | pull_reg, pull_bit, pull_status, \ |
| 97 | pu_pd_reg, pu_pd_status, debug_status) \ |
| 98 | { \ |
| 99 | .name = desc, \ |
| 100 | .debug = debug_status, \ |
| 101 | MUX_REG(mux_reg, mode_offset, mode) \ |
| 102 | PULL_REG(pull_reg, pull_bit, pull_status) \ |
| 103 | PU_PD_REG(pu_pd_reg, pu_pd_status) \ |
| 104 | }, |
| 105 | |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 106 | |
| 107 | /* |
| 108 | * OMAP730 has a slightly different config for the pin mux. |
| 109 | * - config regs are the OMAP730_IO_CONF_x regs (see omap730.h) regs and |
| 110 | * not the FUNC_MUX_CTRL_x regs from hardware.h |
| 111 | * - for pull-up/down, only has one enable bit which is is in the same register |
| 112 | * as mux config |
| 113 | */ |
| 114 | #define MUX_CFG_730(desc, mux_reg, mode_offset, mode, \ |
Tony Lindgren | 8d7f9f5 | 2006-04-02 17:46:22 +0100 | [diff] [blame] | 115 | pull_bit, pull_status, debug_status)\ |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 116 | { \ |
| 117 | .name = desc, \ |
| 118 | .debug = debug_status, \ |
| 119 | MUX_REG_730(mux_reg, mode_offset, mode) \ |
| 120 | PULL_REG_730(mux_reg, pull_bit, pull_status) \ |
Tony Lindgren | 8d7f9f5 | 2006-04-02 17:46:22 +0100 | [diff] [blame] | 121 | PU_PD_REG(NA, 0) \ |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 122 | }, |
| 123 | |
| 124 | #define MUX_CFG_24XX(desc, reg_offset, mode, \ |
| 125 | pull_en, pull_mode, dbg) \ |
| 126 | { \ |
| 127 | .name = desc, \ |
| 128 | .debug = dbg, \ |
| 129 | .mux_reg = reg_offset, \ |
| 130 | .mask = mode, \ |
| 131 | .pull_val = pull_en, \ |
| 132 | .pu_pd_val = pull_mode, \ |
| 133 | }, |
| 134 | |
| 135 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 136 | #define PULL_DISABLED 0 |
| 137 | #define PULL_ENABLED 1 |
| 138 | |
| 139 | #define PULL_DOWN 0 |
| 140 | #define PULL_UP 1 |
| 141 | |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 142 | struct pin_config { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 143 | char *name; |
| 144 | unsigned char busy; |
| 145 | unsigned char debug; |
| 146 | |
| 147 | const char *mux_reg_name; |
| 148 | const unsigned int mux_reg; |
| 149 | const unsigned char mask_offset; |
| 150 | const unsigned char mask; |
| 151 | |
| 152 | const char *pull_name; |
| 153 | const unsigned int pull_reg; |
| 154 | const unsigned char pull_val; |
| 155 | const unsigned char pull_bit; |
| 156 | |
| 157 | const char *pu_pd_name; |
| 158 | const unsigned int pu_pd_reg; |
| 159 | const unsigned char pu_pd_val; |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 160 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 161 | |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 162 | enum omap730_index { |
| 163 | /* OMAP 730 keyboard */ |
| 164 | E2_730_KBR0, |
| 165 | J7_730_KBR1, |
| 166 | E1_730_KBR2, |
| 167 | F3_730_KBR3, |
| 168 | D2_730_KBR4, |
| 169 | C2_730_KBC0, |
| 170 | D3_730_KBC1, |
| 171 | E4_730_KBC2, |
| 172 | F4_730_KBC3, |
| 173 | E3_730_KBC4, |
Tony Lindgren | 8d7f9f5 | 2006-04-02 17:46:22 +0100 | [diff] [blame] | 174 | |
| 175 | /* USB */ |
| 176 | AA17_730_USB_DM, |
| 177 | W16_730_USB_PU_EN, |
| 178 | W17_730_USB_VBUSI, |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 179 | }; |
| 180 | |
| 181 | enum omap1xxx_index { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 182 | /* UART1 (BT_UART_GATING)*/ |
| 183 | UART1_TX = 0, |
| 184 | UART1_RTS, |
| 185 | |
| 186 | /* UART2 (COM_UART_GATING)*/ |
| 187 | UART2_TX, |
| 188 | UART2_RX, |
| 189 | UART2_CTS, |
| 190 | UART2_RTS, |
| 191 | |
| 192 | /* UART3 (GIGA_UART_GATING) */ |
| 193 | UART3_TX, |
| 194 | UART3_RX, |
| 195 | UART3_CTS, |
| 196 | UART3_RTS, |
| 197 | UART3_CLKREQ, |
| 198 | UART3_BCLK, /* 12MHz clock out */ |
| 199 | Y15_1610_UART3_RTS, |
| 200 | |
| 201 | /* PWT & PWL */ |
| 202 | PWT, |
| 203 | PWL, |
| 204 | |
| 205 | /* USB master generic */ |
| 206 | R18_USB_VBUS, |
| 207 | R18_1510_USB_GPIO0, |
| 208 | W4_USB_PUEN, |
| 209 | W4_USB_CLKO, |
| 210 | W4_USB_HIGHZ, |
| 211 | W4_GPIO58, |
| 212 | |
| 213 | /* USB1 master */ |
| 214 | USB1_SUSP, |
| 215 | USB1_SEO, |
| 216 | W13_1610_USB1_SE0, |
| 217 | USB1_TXEN, |
| 218 | USB1_TXD, |
| 219 | USB1_VP, |
| 220 | USB1_VM, |
| 221 | USB1_RCV, |
| 222 | USB1_SPEED, |
| 223 | R13_1610_USB1_SPEED, |
| 224 | R13_1710_USB1_SE0, |
| 225 | |
| 226 | /* USB2 master */ |
| 227 | USB2_SUSP, |
| 228 | USB2_VP, |
| 229 | USB2_TXEN, |
| 230 | USB2_VM, |
| 231 | USB2_RCV, |
| 232 | USB2_SEO, |
| 233 | USB2_TXD, |
| 234 | |
| 235 | /* OMAP-1510 GPIO */ |
| 236 | R18_1510_GPIO0, |
| 237 | R19_1510_GPIO1, |
| 238 | M14_1510_GPIO2, |
| 239 | |
| 240 | /* OMAP1610 GPIO */ |
| 241 | P18_1610_GPIO3, |
| 242 | Y15_1610_GPIO17, |
| 243 | |
| 244 | /* OMAP-1710 GPIO */ |
| 245 | R18_1710_GPIO0, |
| 246 | V2_1710_GPIO10, |
| 247 | N21_1710_GPIO14, |
| 248 | W15_1710_GPIO40, |
| 249 | |
| 250 | /* MPUIO */ |
| 251 | MPUIO2, |
Tony Lindgren | 9839c6b | 2005-09-07 17:20:27 +0100 | [diff] [blame] | 252 | N15_1610_MPUIO2, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 253 | MPUIO4, |
| 254 | MPUIO5, |
| 255 | T20_1610_MPUIO5, |
| 256 | W11_1610_MPUIO6, |
| 257 | V10_1610_MPUIO7, |
| 258 | W11_1610_MPUIO9, |
| 259 | V10_1610_MPUIO10, |
| 260 | W10_1610_MPUIO11, |
| 261 | E20_1610_MPUIO13, |
| 262 | U20_1610_MPUIO14, |
| 263 | E19_1610_MPUIO15, |
| 264 | |
| 265 | /* MCBSP2 */ |
| 266 | MCBSP2_CLKR, |
| 267 | MCBSP2_CLKX, |
| 268 | MCBSP2_DR, |
| 269 | MCBSP2_DX, |
| 270 | MCBSP2_FSR, |
| 271 | MCBSP2_FSX, |
| 272 | |
| 273 | /* MCBSP3 */ |
| 274 | MCBSP3_CLKX, |
| 275 | |
| 276 | /* Misc ballouts */ |
| 277 | BALLOUT_V8_ARMIO3, |
Tony Lindgren | 9839c6b | 2005-09-07 17:20:27 +0100 | [diff] [blame] | 278 | N20_HDQ, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 279 | |
| 280 | /* OMAP-1610 MMC2 */ |
| 281 | W8_1610_MMC2_DAT0, |
| 282 | V8_1610_MMC2_DAT1, |
| 283 | W15_1610_MMC2_DAT2, |
| 284 | R10_1610_MMC2_DAT3, |
| 285 | Y10_1610_MMC2_CLK, |
| 286 | Y8_1610_MMC2_CMD, |
| 287 | V9_1610_MMC2_CMDDIR, |
| 288 | V5_1610_MMC2_DATDIR0, |
| 289 | W19_1610_MMC2_DATDIR1, |
| 290 | R18_1610_MMC2_CLKIN, |
| 291 | |
| 292 | /* OMAP-1610 External Trace Interface */ |
| 293 | M19_1610_ETM_PSTAT0, |
| 294 | L15_1610_ETM_PSTAT1, |
| 295 | L18_1610_ETM_PSTAT2, |
| 296 | L19_1610_ETM_D0, |
| 297 | J19_1610_ETM_D6, |
| 298 | J18_1610_ETM_D7, |
| 299 | |
Tony Lindgren | bb13b5f | 2005-07-10 19:58:18 +0100 | [diff] [blame] | 300 | /* OMAP16XX GPIO */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 301 | P20_1610_GPIO4, |
| 302 | V9_1610_GPIO7, |
| 303 | W8_1610_GPIO9, |
Tony Lindgren | 9839c6b | 2005-09-07 17:20:27 +0100 | [diff] [blame] | 304 | N20_1610_GPIO11, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 305 | N19_1610_GPIO13, |
| 306 | P10_1610_GPIO22, |
| 307 | V5_1610_GPIO24, |
| 308 | AA20_1610_GPIO_41, |
| 309 | W19_1610_GPIO48, |
| 310 | M7_1610_GPIO62, |
Tony Lindgren | bb13b5f | 2005-07-10 19:58:18 +0100 | [diff] [blame] | 311 | V14_16XX_GPIO37, |
| 312 | R9_16XX_GPIO18, |
| 313 | L14_16XX_GPIO49, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 314 | |
| 315 | /* OMAP-1610 uWire */ |
| 316 | V19_1610_UWIRE_SCLK, |
| 317 | U18_1610_UWIRE_SDI, |
| 318 | W21_1610_UWIRE_SDO, |
| 319 | N14_1610_UWIRE_CS0, |
Tony Lindgren | 9839c6b | 2005-09-07 17:20:27 +0100 | [diff] [blame] | 320 | P15_1610_UWIRE_CS3, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 321 | N15_1610_UWIRE_CS1, |
| 322 | |
Mark Howell | 75a1d10 | 2006-09-25 12:41:29 +0300 | [diff] [blame] | 323 | /* OMAP-1610 SPI */ |
| 324 | U19_1610_SPIF_SCK, |
| 325 | U18_1610_SPIF_DIN, |
| 326 | P20_1610_SPIF_DIN, |
| 327 | W21_1610_SPIF_DOUT, |
| 328 | R18_1610_SPIF_DOUT, |
| 329 | N14_1610_SPIF_CS0, |
| 330 | N15_1610_SPIF_CS1, |
| 331 | T19_1610_SPIF_CS2, |
| 332 | P15_1610_SPIF_CS3, |
| 333 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 334 | /* OMAP-1610 Flash */ |
| 335 | L3_1610_FLASH_CS2B_OE, |
| 336 | M8_1610_FLASH_CS2B_WE, |
| 337 | |
| 338 | /* First MMC */ |
| 339 | MMC_CMD, |
| 340 | MMC_DAT1, |
| 341 | MMC_DAT2, |
| 342 | MMC_DAT0, |
| 343 | MMC_CLK, |
| 344 | MMC_DAT3, |
| 345 | |
| 346 | /* OMAP-1710 MMC CMDDIR and DATDIR0 */ |
| 347 | M15_1710_MMC_CLKI, |
| 348 | P19_1710_MMC_CMDDIR, |
| 349 | P20_1710_MMC_DATDIR0, |
| 350 | |
| 351 | /* OMAP-1610 USB0 alternate pin configuration */ |
| 352 | W9_USB0_TXEN, |
| 353 | AA9_USB0_VP, |
| 354 | Y5_USB0_RCV, |
| 355 | R9_USB0_VM, |
| 356 | V6_USB0_TXD, |
| 357 | W5_USB0_SE0, |
| 358 | V9_USB0_SPEED, |
| 359 | V9_USB0_SUSP, |
| 360 | |
| 361 | /* USB2 */ |
| 362 | W9_USB2_TXEN, |
| 363 | AA9_USB2_VP, |
| 364 | Y5_USB2_RCV, |
| 365 | R9_USB2_VM, |
| 366 | V6_USB2_TXD, |
| 367 | W5_USB2_SE0, |
| 368 | |
Tony Lindgren | bb13b5f | 2005-07-10 19:58:18 +0100 | [diff] [blame] | 369 | /* 16XX UART */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 370 | R13_1610_UART1_TX, |
Tony Lindgren | bb13b5f | 2005-07-10 19:58:18 +0100 | [diff] [blame] | 371 | V14_16XX_UART1_RX, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 372 | R14_1610_UART1_CTS, |
| 373 | AA15_1610_UART1_RTS, |
Tony Lindgren | bb13b5f | 2005-07-10 19:58:18 +0100 | [diff] [blame] | 374 | R9_16XX_UART2_RX, |
| 375 | L14_16XX_UART3_RX, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 376 | |
| 377 | /* I2C OMAP-1610 */ |
| 378 | I2C_SCL, |
| 379 | I2C_SDA, |
| 380 | |
| 381 | /* Keypad */ |
| 382 | F18_1610_KBC0, |
| 383 | D20_1610_KBC1, |
| 384 | D19_1610_KBC2, |
| 385 | E18_1610_KBC3, |
| 386 | C21_1610_KBC4, |
| 387 | G18_1610_KBR0, |
| 388 | F19_1610_KBR1, |
| 389 | H14_1610_KBR2, |
| 390 | E20_1610_KBR3, |
| 391 | E19_1610_KBR4, |
| 392 | N19_1610_KBR5, |
| 393 | |
| 394 | /* Power management */ |
| 395 | T20_1610_LOW_PWR, |
| 396 | |
| 397 | /* MCLK Settings */ |
| 398 | V5_1710_MCLK_ON, |
| 399 | V5_1710_MCLK_OFF, |
| 400 | R10_1610_MCLK_ON, |
| 401 | R10_1610_MCLK_OFF, |
| 402 | |
| 403 | /* CompactFlash controller */ |
| 404 | P11_1610_CF_CD2, |
| 405 | R11_1610_CF_IOIS16, |
| 406 | V10_1610_CF_IREQ, |
| 407 | W10_1610_CF_RESET, |
| 408 | W11_1610_CF_CD1, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 409 | }; |
| 410 | |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 411 | enum omap24xx_index { |
| 412 | /* 24xx I2C */ |
| 413 | M19_24XX_I2C1_SCL, |
| 414 | L15_24XX_I2C1_SDA, |
| 415 | J15_24XX_I2C2_SCL, |
| 416 | H19_24XX_I2C2_SDA, |
| 417 | |
| 418 | /* 24xx Menelaus interrupt */ |
| 419 | W19_24XX_SYS_NIRQ, |
| 420 | |
Tony Lindgren | 8d7f9f5 | 2006-04-02 17:46:22 +0100 | [diff] [blame] | 421 | /* 24xx clock */ |
| 422 | W14_24XX_SYS_CLKOUT, |
| 423 | |
Tony Lindgren | 3cbc960 | 2006-06-26 16:16:25 -0700 | [diff] [blame] | 424 | /* 24xx GPMC wait pin monitoring */ |
| 425 | L3_GPMC_WAIT0, |
| 426 | N7_GPMC_WAIT1, |
| 427 | M1_GPMC_WAIT2, |
| 428 | P1_GPMC_WAIT3, |
| 429 | |
Tony Lindgren | 8d7f9f5 | 2006-04-02 17:46:22 +0100 | [diff] [blame] | 430 | /* 242X McBSP */ |
| 431 | Y15_24XX_MCBSP2_CLKX, |
| 432 | R14_24XX_MCBSP2_FSX, |
| 433 | W15_24XX_MCBSP2_DR, |
| 434 | V15_24XX_MCBSP2_DX, |
| 435 | |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 436 | /* 24xx GPIO */ |
Tony Lindgren | 8d7f9f5 | 2006-04-02 17:46:22 +0100 | [diff] [blame] | 437 | M21_242X_GPIO11, |
| 438 | AA10_242X_GPIO13, |
| 439 | AA6_242X_GPIO14, |
| 440 | AA4_242X_GPIO15, |
| 441 | Y11_242X_GPIO16, |
| 442 | AA12_242X_GPIO17, |
| 443 | AA8_242X_GPIO58, |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 444 | Y20_24XX_GPIO60, |
Tony Lindgren | 8d7f9f5 | 2006-04-02 17:46:22 +0100 | [diff] [blame] | 445 | W4__24XX_GPIO74, |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 446 | M15_24XX_GPIO92, |
Tony Lindgren | 8d7f9f5 | 2006-04-02 17:46:22 +0100 | [diff] [blame] | 447 | V14_24XX_GPIO117, |
| 448 | |
Tony Lindgren | 5ac4215 | 2006-06-26 16:16:20 -0700 | [diff] [blame] | 449 | /* 242x DBG GPIO */ |
| 450 | V4_242X_GPIO49, |
| 451 | W2_242X_GPIO50, |
| 452 | U4_242X_GPIO51, |
| 453 | V3_242X_GPIO52, |
| 454 | V2_242X_GPIO53, |
| 455 | V6_242X_GPIO53, |
| 456 | T4_242X_GPIO54, |
| 457 | Y4_242X_GPIO54, |
| 458 | T3_242X_GPIO55, |
| 459 | U2_242X_GPIO56, |
| 460 | |
| 461 | /* 24xx external DMA requests */ |
| 462 | AA10_242X_DMAREQ0, |
| 463 | AA6_242X_DMAREQ1, |
| 464 | E4_242X_DMAREQ2, |
| 465 | G4_242X_DMAREQ3, |
| 466 | D3_242X_DMAREQ4, |
| 467 | E3_242X_DMAREQ5, |
| 468 | |
Tony Lindgren | 8d7f9f5 | 2006-04-02 17:46:22 +0100 | [diff] [blame] | 469 | P20_24XX_TSC_IRQ, |
| 470 | |
| 471 | /* UART3 */ |
| 472 | K15_24XX_UART3_TX, |
| 473 | K14_24XX_UART3_RX, |
| 474 | |
Kyungmin Park | abc45e1 | 2006-09-25 12:41:25 +0300 | [diff] [blame] | 475 | /* MMC/SDIO */ |
| 476 | G19_24XX_MMC_CLKO, |
| 477 | H18_24XX_MMC_CMD, |
| 478 | F20_24XX_MMC_DAT0, |
| 479 | H14_24XX_MMC_DAT1, |
| 480 | E19_24XX_MMC_DAT2, |
| 481 | D19_24XX_MMC_DAT3, |
| 482 | F19_24XX_MMC_DAT_DIR0, |
| 483 | E20_24XX_MMC_DAT_DIR1, |
| 484 | F18_24XX_MMC_DAT_DIR2, |
| 485 | E18_24XX_MMC_DAT_DIR3, |
| 486 | G18_24XX_MMC_CMD_DIR, |
| 487 | H15_24XX_MMC_CLKI, |
| 488 | |
Tony Lindgren | 8d7f9f5 | 2006-04-02 17:46:22 +0100 | [diff] [blame] | 489 | /* Keypad GPIO*/ |
| 490 | T19_24XX_KBR0, |
| 491 | R19_24XX_KBR1, |
| 492 | V18_24XX_KBR2, |
| 493 | M21_24XX_KBR3, |
| 494 | E5__24XX_KBR4, |
| 495 | M18_24XX_KBR5, |
| 496 | R20_24XX_KBC0, |
| 497 | M14_24XX_KBC1, |
| 498 | H19_24XX_KBC2, |
| 499 | V17_24XX_KBC3, |
| 500 | P21_24XX_KBC4, |
| 501 | L14_24XX_KBC5, |
| 502 | N19_24XX_KBC6, |
| 503 | |
| 504 | /* 24xx Menelaus Keypad GPIO */ |
| 505 | B3__24XX_KBR5, |
| 506 | AA4_24XX_KBC2, |
| 507 | B13_24XX_KBC6, |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 508 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 509 | |
| 510 | #ifdef CONFIG_OMAP_MUX |
| 511 | /* setup pin muxing in Linux */ |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 512 | extern int omap1_mux_init(void); |
| 513 | extern int omap2_mux_init(void); |
| 514 | extern int omap_mux_register(struct pin_config * pins, unsigned long size); |
| 515 | extern int omap_cfg_reg(unsigned long reg_cfg); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 516 | #else |
| 517 | /* boot loader does it all (no warnings from CONFIG_OMAP_MUX_WARNINGS) */ |
Tony Lindgren | 9ad5897 | 2005-11-10 14:26:53 +0000 | [diff] [blame] | 518 | static inline int omap1_mux_init(void) { return 0; } |
| 519 | static inline int omap2_mux_init(void) { return 0; } |
| 520 | static inline int omap_cfg_reg(unsigned long reg_cfg) { return 0; } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 521 | #endif |
| 522 | |
| 523 | #endif |