1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 24c25c5d2SArnd Bergmann #ifndef __ASM_ARCH_MFP_PXA27X_H 34c25c5d2SArnd Bergmann #define __ASM_ARCH_MFP_PXA27X_H 44c25c5d2SArnd Bergmann 54c25c5d2SArnd Bergmann /* 64c25c5d2SArnd Bergmann * NOTE: for those special-function bidirectional GPIOs, as described 74c25c5d2SArnd Bergmann * in the "PXA27x Developer's Manual" Section 24.4.2.1, only its input 84c25c5d2SArnd Bergmann * alternative is preserved, the direction is actually selected by the 94c25c5d2SArnd Bergmann * specific controller, and this should work in most cases. 104c25c5d2SArnd Bergmann */ 114c25c5d2SArnd Bergmann 124c25c5d2SArnd Bergmann #include "mfp-pxa2xx.h" 134c25c5d2SArnd Bergmann 144c25c5d2SArnd Bergmann /* Note: GPIO3/GPIO4 will be driven by Power I2C when PCFR/PI2C_EN 154c25c5d2SArnd Bergmann * bit is set, regardless of the GPIO configuration 164c25c5d2SArnd Bergmann */ 174c25c5d2SArnd Bergmann #define GPIO3_GPIO MFP_CFG_IN(GPIO3, AF0) 184c25c5d2SArnd Bergmann #define GPIO4_GPIO MFP_CFG_IN(GPIO4, AF0) 194c25c5d2SArnd Bergmann 204c25c5d2SArnd Bergmann /* GPIO */ 214c25c5d2SArnd Bergmann #define GPIO85_GPIO MFP_CFG_IN(GPIO85, AF0) 224c25c5d2SArnd Bergmann #define GPIO86_GPIO MFP_CFG_IN(GPIO86, AF0) 234c25c5d2SArnd Bergmann #define GPIO87_GPIO MFP_CFG_IN(GPIO87, AF0) 244c25c5d2SArnd Bergmann #define GPIO88_GPIO MFP_CFG_IN(GPIO88, AF0) 254c25c5d2SArnd Bergmann #define GPIO89_GPIO MFP_CFG_IN(GPIO89, AF0) 264c25c5d2SArnd Bergmann #define GPIO90_GPIO MFP_CFG_IN(GPIO90, AF0) 274c25c5d2SArnd Bergmann #define GPIO91_GPIO MFP_CFG_IN(GPIO91, AF0) 284c25c5d2SArnd Bergmann #define GPIO92_GPIO MFP_CFG_IN(GPIO92, AF0) 294c25c5d2SArnd Bergmann #define GPIO93_GPIO MFP_CFG_IN(GPIO93, AF0) 304c25c5d2SArnd Bergmann #define GPIO94_GPIO MFP_CFG_IN(GPIO94, AF0) 314c25c5d2SArnd Bergmann #define GPIO95_GPIO MFP_CFG_IN(GPIO95, AF0) 324c25c5d2SArnd Bergmann #define GPIO96_GPIO MFP_CFG_IN(GPIO96, AF0) 334c25c5d2SArnd Bergmann #define GPIO97_GPIO MFP_CFG_IN(GPIO97, AF0) 344c25c5d2SArnd Bergmann #define GPIO98_GPIO MFP_CFG_IN(GPIO98, AF0) 354c25c5d2SArnd Bergmann #define GPIO99_GPIO MFP_CFG_IN(GPIO99, AF0) 364c25c5d2SArnd Bergmann #define GPIO100_GPIO MFP_CFG_IN(GPIO100, AF0) 374c25c5d2SArnd Bergmann #define GPIO101_GPIO MFP_CFG_IN(GPIO101, AF0) 384c25c5d2SArnd Bergmann #define GPIO102_GPIO MFP_CFG_IN(GPIO102, AF0) 394c25c5d2SArnd Bergmann #define GPIO103_GPIO MFP_CFG_IN(GPIO103, AF0) 404c25c5d2SArnd Bergmann #define GPIO104_GPIO MFP_CFG_IN(GPIO104, AF0) 414c25c5d2SArnd Bergmann #define GPIO105_GPIO MFP_CFG_IN(GPIO105, AF0) 424c25c5d2SArnd Bergmann #define GPIO106_GPIO MFP_CFG_IN(GPIO106, AF0) 434c25c5d2SArnd Bergmann #define GPIO107_GPIO MFP_CFG_IN(GPIO107, AF0) 444c25c5d2SArnd Bergmann #define GPIO108_GPIO MFP_CFG_IN(GPIO108, AF0) 454c25c5d2SArnd Bergmann #define GPIO109_GPIO MFP_CFG_IN(GPIO109, AF0) 464c25c5d2SArnd Bergmann #define GPIO110_GPIO MFP_CFG_IN(GPIO110, AF0) 474c25c5d2SArnd Bergmann #define GPIO111_GPIO MFP_CFG_IN(GPIO111, AF0) 484c25c5d2SArnd Bergmann #define GPIO112_GPIO MFP_CFG_IN(GPIO112, AF0) 494c25c5d2SArnd Bergmann #define GPIO113_GPIO MFP_CFG_IN(GPIO113, AF0) 504c25c5d2SArnd Bergmann #define GPIO114_GPIO MFP_CFG_IN(GPIO114, AF0) 514c25c5d2SArnd Bergmann #define GPIO115_GPIO MFP_CFG_IN(GPIO115, AF0) 524c25c5d2SArnd Bergmann #define GPIO116_GPIO MFP_CFG_IN(GPIO116, AF0) 534c25c5d2SArnd Bergmann #define GPIO117_GPIO MFP_CFG_IN(GPIO117, AF0) 544c25c5d2SArnd Bergmann #define GPIO118_GPIO MFP_CFG_IN(GPIO118, AF0) 554c25c5d2SArnd Bergmann #define GPIO119_GPIO MFP_CFG_IN(GPIO119, AF0) 564c25c5d2SArnd Bergmann #define GPIO120_GPIO MFP_CFG_IN(GPIO120, AF0) 574c25c5d2SArnd Bergmann 584c25c5d2SArnd Bergmann /* Crystal and Clock Signals */ 594c25c5d2SArnd Bergmann #define GPIO9_HZ_CLK MFP_CFG_OUT(GPIO9, AF1, DRIVE_LOW) 604c25c5d2SArnd Bergmann #define GPIO10_HZ_CLK MFP_CFG_OUT(GPIO10, AF1, DRIVE_LOW) 614c25c5d2SArnd Bergmann #define GPIO11_48_MHz MFP_CFG_OUT(GPIO11, AF3, DRIVE_LOW) 624c25c5d2SArnd Bergmann #define GPIO12_48_MHz MFP_CFG_OUT(GPIO12, AF3, DRIVE_LOW) 634c25c5d2SArnd Bergmann #define GPIO13_CLK_EXT MFP_CFG_IN(GPIO13, AF1) 644c25c5d2SArnd Bergmann 654c25c5d2SArnd Bergmann /* OS Timer Signals */ 664c25c5d2SArnd Bergmann #define GPIO11_EXT_SYNC_0 MFP_CFG_IN(GPIO11, AF1) 674c25c5d2SArnd Bergmann #define GPIO12_EXT_SYNC_1 MFP_CFG_IN(GPIO12, AF1) 684c25c5d2SArnd Bergmann #define GPIO9_CHOUT_0 MFP_CFG_OUT(GPIO9, AF3, DRIVE_LOW) 694c25c5d2SArnd Bergmann #define GPIO10_CHOUT_1 MFP_CFG_OUT(GPIO10, AF3, DRIVE_LOW) 704c25c5d2SArnd Bergmann #define GPIO11_CHOUT_0 MFP_CFG_OUT(GPIO11, AF1, DRIVE_LOW) 714c25c5d2SArnd Bergmann #define GPIO12_CHOUT_1 MFP_CFG_OUT(GPIO12, AF1, DRIVE_LOW) 724c25c5d2SArnd Bergmann 734c25c5d2SArnd Bergmann /* SDRAM and Static Memory I/O Signals */ 744c25c5d2SArnd Bergmann #define GPIO20_nSDCS_2 MFP_CFG_OUT(GPIO20, AF1, DRIVE_HIGH) 754c25c5d2SArnd Bergmann #define GPIO21_nSDCS_3 MFP_CFG_OUT(GPIO21, AF1, DRIVE_HIGH) 764c25c5d2SArnd Bergmann #define GPIO15_nCS_1 MFP_CFG_OUT(GPIO15, AF2, DRIVE_HIGH) 774c25c5d2SArnd Bergmann #define GPIO78_nCS_2 MFP_CFG_OUT(GPIO78, AF2, DRIVE_HIGH) 784c25c5d2SArnd Bergmann #define GPIO79_nCS_3 MFP_CFG_OUT(GPIO79, AF2, DRIVE_HIGH) 794c25c5d2SArnd Bergmann #define GPIO80_nCS_4 MFP_CFG_OUT(GPIO80, AF2, DRIVE_HIGH) 804c25c5d2SArnd Bergmann #define GPIO33_nCS_5 MFP_CFG_OUT(GPIO33, AF2, DRIVE_HIGH) 814c25c5d2SArnd Bergmann 824c25c5d2SArnd Bergmann /* Miscellaneous I/O and DMA Signals */ 834c25c5d2SArnd Bergmann #define GPIO21_DVAL_0 MFP_CFG_OUT(GPIO21, AF2, DRIVE_HIGH) 844c25c5d2SArnd Bergmann #define GPIO116_DVAL_0 MFP_CFG_OUT(GPIO116, AF1, DRIVE_HIGH) 854c25c5d2SArnd Bergmann #define GPIO33_DVAL_1 MFP_CFG_OUT(GPIO33, AF1, DRIVE_HIGH) 864c25c5d2SArnd Bergmann #define GPIO96_DVAL_1 MFP_CFG_OUT(GPIO96, AF2, DRIVE_HIGH) 874c25c5d2SArnd Bergmann #define GPIO18_RDY MFP_CFG_IN(GPIO18, AF1) 884c25c5d2SArnd Bergmann #define GPIO20_DREQ_0 MFP_CFG_IN(GPIO20, AF1) 894c25c5d2SArnd Bergmann #define GPIO115_DREQ_0 MFP_CFG_IN(GPIO115, AF1) 904c25c5d2SArnd Bergmann #define GPIO80_DREQ_1 MFP_CFG_IN(GPIO80, AF1) 914c25c5d2SArnd Bergmann #define GPIO97_DREQ_1 MFP_CFG_IN(GPIO97, AF2) 924c25c5d2SArnd Bergmann #define GPIO85_DREQ_2 MFP_CFG_IN(GPIO85, AF2) 934c25c5d2SArnd Bergmann #define GPIO100_DREQ_2 MFP_CFG_IN(GPIO100, AF2) 944c25c5d2SArnd Bergmann 954c25c5d2SArnd Bergmann /* Alternate Bus Master Mode I/O Signals */ 964c25c5d2SArnd Bergmann #define GPIO20_MBREQ MFP_CFG_IN(GPIO20, AF2) 974c25c5d2SArnd Bergmann #define GPIO80_MBREQ MFP_CFG_IN(GPIO80, AF2) 984c25c5d2SArnd Bergmann #define GPIO96_MBREQ MFP_CFG_IN(GPIO96, AF2) 994c25c5d2SArnd Bergmann #define GPIO115_MBREQ MFP_CFG_IN(GPIO115, AF3) 1004c25c5d2SArnd Bergmann #define GPIO21_MBGNT MFP_CFG_OUT(GPIO21, AF3, DRIVE_LOW) 1014c25c5d2SArnd Bergmann #define GPIO33_MBGNT MFP_CFG_OUT(GPIO33, AF3, DRIVE_LOW) 1024c25c5d2SArnd Bergmann #define GPIO97_MBGNT MFP_CFG_OUT(GPIO97, AF2, DRIVE_LOW) 1034c25c5d2SArnd Bergmann #define GPIO116_MBGNT MFP_CFG_OUT(GPIO116, AF3, DRIVE_LOW) 1044c25c5d2SArnd Bergmann 1054c25c5d2SArnd Bergmann /* PC CARD */ 1064c25c5d2SArnd Bergmann #define GPIO15_nPCE_1 MFP_CFG_OUT(GPIO15, AF1, DRIVE_HIGH) 1074c25c5d2SArnd Bergmann #define GPIO85_nPCE_1 MFP_CFG_OUT(GPIO85, AF1, DRIVE_HIGH) 1084c25c5d2SArnd Bergmann #define GPIO86_nPCE_1 MFP_CFG_OUT(GPIO86, AF1, DRIVE_HIGH) 1094c25c5d2SArnd Bergmann #define GPIO102_nPCE_1 MFP_CFG_OUT(GPIO102, AF1, DRIVE_HIGH) 1104c25c5d2SArnd Bergmann #define GPIO54_nPCE_2 MFP_CFG_OUT(GPIO54, AF2, DRIVE_HIGH) 1114c25c5d2SArnd Bergmann #define GPIO78_nPCE_2 MFP_CFG_OUT(GPIO78, AF1, DRIVE_HIGH) 1124c25c5d2SArnd Bergmann #define GPIO87_nPCE_2 MFP_CFG_IN(GPIO87, AF1) 1134c25c5d2SArnd Bergmann #define GPIO55_nPREG MFP_CFG_OUT(GPIO55, AF2, DRIVE_HIGH) 1144c25c5d2SArnd Bergmann #define GPIO50_nPIOR MFP_CFG_OUT(GPIO50, AF2, DRIVE_HIGH) 1154c25c5d2SArnd Bergmann #define GPIO51_nPIOW MFP_CFG_OUT(GPIO51, AF2, DRIVE_HIGH) 1164c25c5d2SArnd Bergmann #define GPIO49_nPWE MFP_CFG_OUT(GPIO49, AF2, DRIVE_HIGH) 1174c25c5d2SArnd Bergmann #define GPIO48_nPOE MFP_CFG_OUT(GPIO48, AF2, DRIVE_HIGH) 1184c25c5d2SArnd Bergmann #define GPIO57_nIOIS16 MFP_CFG_IN(GPIO57, AF1) 1194c25c5d2SArnd Bergmann #define GPIO56_nPWAIT MFP_CFG_IN(GPIO56, AF1) 1204c25c5d2SArnd Bergmann #define GPIO79_PSKTSEL MFP_CFG_OUT(GPIO79, AF1, DRIVE_HIGH) 1214c25c5d2SArnd Bergmann #define GPIO104_PSKTSEL MFP_CFG_OUT(GPIO104, AF1, DRIVE_HIGH) 1224c25c5d2SArnd Bergmann 1234c25c5d2SArnd Bergmann /* I2C */ 1244c25c5d2SArnd Bergmann #define GPIO117_I2C_SCL MFP_CFG_IN(GPIO117, AF1) 1254c25c5d2SArnd Bergmann #define GPIO118_I2C_SDA MFP_CFG_IN(GPIO118, AF1) 1264c25c5d2SArnd Bergmann 1274c25c5d2SArnd Bergmann /* FFUART */ 1284c25c5d2SArnd Bergmann #define GPIO9_FFUART_CTS MFP_CFG_IN(GPIO9, AF3) 1294c25c5d2SArnd Bergmann #define GPIO26_FFUART_CTS MFP_CFG_IN(GPIO26, AF3) 1304c25c5d2SArnd Bergmann #define GPIO35_FFUART_CTS MFP_CFG_IN(GPIO35, AF1) 1314c25c5d2SArnd Bergmann #define GPIO100_FFUART_CTS MFP_CFG_IN(GPIO100, AF3) 1324c25c5d2SArnd Bergmann #define GPIO10_FFUART_DCD MFP_CFG_IN(GPIO10, AF1) 1334c25c5d2SArnd Bergmann #define GPIO36_FFUART_DCD MFP_CFG_IN(GPIO36, AF1) 1344c25c5d2SArnd Bergmann #define GPIO33_FFUART_DSR MFP_CFG_IN(GPIO33, AF2) 1354c25c5d2SArnd Bergmann #define GPIO37_FFUART_DSR MFP_CFG_IN(GPIO37, AF1) 1364c25c5d2SArnd Bergmann #define GPIO38_FFUART_RI MFP_CFG_IN(GPIO38, AF1) 1374c25c5d2SArnd Bergmann #define GPIO89_FFUART_RI MFP_CFG_IN(GPIO89, AF3) 1384c25c5d2SArnd Bergmann #define GPIO19_FFUART_RXD MFP_CFG_IN(GPIO19, AF3) 1394c25c5d2SArnd Bergmann #define GPIO33_FFUART_RXD MFP_CFG_IN(GPIO33, AF1) 1404c25c5d2SArnd Bergmann #define GPIO34_FFUART_RXD MFP_CFG_IN(GPIO34, AF1) 1414c25c5d2SArnd Bergmann #define GPIO41_FFUART_RXD MFP_CFG_IN(GPIO41, AF1) 1424c25c5d2SArnd Bergmann #define GPIO53_FFUART_RXD MFP_CFG_IN(GPIO53, AF1) 1434c25c5d2SArnd Bergmann #define GPIO85_FFUART_RXD MFP_CFG_IN(GPIO85, AF1) 1444c25c5d2SArnd Bergmann #define GPIO96_FFUART_RXD MFP_CFG_IN(GPIO96, AF3) 1454c25c5d2SArnd Bergmann #define GPIO102_FFUART_RXD MFP_CFG_IN(GPIO102, AF3) 1464c25c5d2SArnd Bergmann #define GPIO16_FFUART_TXD MFP_CFG_OUT(GPIO16, AF3, DRIVE_HIGH) 1474c25c5d2SArnd Bergmann #define GPIO37_FFUART_TXD MFP_CFG_OUT(GPIO37, AF3, DRIVE_HIGH) 1484c25c5d2SArnd Bergmann #define GPIO39_FFUART_TXD MFP_CFG_OUT(GPIO39, AF2, DRIVE_HIGH) 1494c25c5d2SArnd Bergmann #define GPIO83_FFUART_TXD MFP_CFG_OUT(GPIO83, AF2, DRIVE_HIGH) 1504c25c5d2SArnd Bergmann #define GPIO99_FFUART_TXD MFP_CFG_OUT(GPIO99, AF3, DRIVE_HIGH) 1514c25c5d2SArnd Bergmann #define GPIO27_FFUART_RTS MFP_CFG_OUT(GPIO27, AF3, DRIVE_HIGH) 1524c25c5d2SArnd Bergmann #define GPIO41_FFUART_RTS MFP_CFG_OUT(GPIO41, AF2, DRIVE_HIGH) 1534c25c5d2SArnd Bergmann #define GPIO83_FFUART_RTS MFP_CFG_OUT(GPIO83, AF3, DRIVE_HIGH) 1544c25c5d2SArnd Bergmann #define GPIO98_FFUART_RTS MFP_CFG_OUT(GPIO98, AF3, DRIVE_HIGH) 1554c25c5d2SArnd Bergmann #define GPIO40_FFUART_DTR MFP_CFG_OUT(GPIO40, AF2, DRIVE_HIGH) 1564c25c5d2SArnd Bergmann #define GPIO82_FFUART_DTR MFP_CFG_OUT(GPIO82, AF3, DRIVE_HIGH) 1574c25c5d2SArnd Bergmann 1584c25c5d2SArnd Bergmann /* BTUART */ 1594c25c5d2SArnd Bergmann #define GPIO44_BTUART_CTS MFP_CFG_IN(GPIO44, AF1) 1604c25c5d2SArnd Bergmann #define GPIO42_BTUART_RXD MFP_CFG_IN(GPIO42, AF1) 1614c25c5d2SArnd Bergmann #define GPIO45_BTUART_RTS MFP_CFG_OUT(GPIO45, AF2, DRIVE_HIGH) 1624c25c5d2SArnd Bergmann #define GPIO45_BTUART_RTS_LPM_LOW MFP_CFG_OUT(GPIO45, AF2, DRIVE_LOW) 1634c25c5d2SArnd Bergmann #define GPIO43_BTUART_TXD MFP_CFG_OUT(GPIO43, AF2, DRIVE_HIGH) 1644c25c5d2SArnd Bergmann #define GPIO43_BTUART_TXD_LPM_LOW MFP_CFG_OUT(GPIO43, AF2, DRIVE_LOW) 1654c25c5d2SArnd Bergmann 1664c25c5d2SArnd Bergmann /* STUART */ 1674c25c5d2SArnd Bergmann #define GPIO46_STUART_RXD MFP_CFG_IN(GPIO46, AF2) 1684c25c5d2SArnd Bergmann #define GPIO47_STUART_TXD MFP_CFG_OUT(GPIO47, AF1, DRIVE_HIGH) 1694c25c5d2SArnd Bergmann 1704c25c5d2SArnd Bergmann /* FICP */ 1714c25c5d2SArnd Bergmann #define GPIO42_FICP_RXD MFP_CFG_IN(GPIO42, AF2) 1724c25c5d2SArnd Bergmann #define GPIO46_FICP_RXD MFP_CFG_IN(GPIO46, AF1) 1734c25c5d2SArnd Bergmann #define GPIO43_FICP_TXD MFP_CFG_OUT(GPIO43, AF1, DRIVE_HIGH) 1744c25c5d2SArnd Bergmann #define GPIO47_FICP_TXD MFP_CFG_OUT(GPIO47, AF2, DRIVE_HIGH) 1754c25c5d2SArnd Bergmann 1764c25c5d2SArnd Bergmann /* PWM 0/1/2/3 */ 1774c25c5d2SArnd Bergmann #define GPIO11_PWM2_OUT MFP_CFG_OUT(GPIO11, AF2, DRIVE_LOW) 1784c25c5d2SArnd Bergmann #define GPIO12_PWM3_OUT MFP_CFG_OUT(GPIO12, AF2, DRIVE_LOW) 1794c25c5d2SArnd Bergmann #define GPIO16_PWM0_OUT MFP_CFG_OUT(GPIO16, AF2, DRIVE_LOW) 1804c25c5d2SArnd Bergmann #define GPIO17_PWM1_OUT MFP_CFG_OUT(GPIO17, AF2, DRIVE_LOW) 1814c25c5d2SArnd Bergmann #define GPIO38_PWM1_OUT MFP_CFG_OUT(GPIO38, AF3, DRIVE_LOW) 1824c25c5d2SArnd Bergmann #define GPIO46_PWM2_OUT MFP_CFG_OUT(GPIO46, AF2, DRIVE_LOW) 1834c25c5d2SArnd Bergmann #define GPIO47_PWM3_OUT MFP_CFG_OUT(GPIO47, AF3, DRIVE_LOW) 1844c25c5d2SArnd Bergmann #define GPIO79_PWM2_OUT MFP_CFG_OUT(GPIO79, AF3, DRIVE_LOW) 1854c25c5d2SArnd Bergmann #define GPIO80_PWM3_OUT MFP_CFG_OUT(GPIO80, AF3, DRIVE_LOW) 1864c25c5d2SArnd Bergmann #define GPIO115_PWM1_OUT MFP_CFG_OUT(GPIO115, AF3, DRIVE_LOW) 1874c25c5d2SArnd Bergmann 1884c25c5d2SArnd Bergmann /* AC97 */ 1894c25c5d2SArnd Bergmann #define GPIO31_AC97_SYNC MFP_CFG_OUT(GPIO31, AF2, DRIVE_LOW) 1904c25c5d2SArnd Bergmann #define GPIO94_AC97_SYNC MFP_CFG_OUT(GPIO94, AF1, DRIVE_LOW) 1914c25c5d2SArnd Bergmann #define GPIO30_AC97_SDATA_OUT MFP_CFG_OUT(GPIO30, AF2, DRIVE_LOW) 1924c25c5d2SArnd Bergmann #define GPIO93_AC97_SDATA_OUT MFP_CFG_OUT(GPIO93, AF1, DRIVE_LOW) 1934c25c5d2SArnd Bergmann #define GPIO45_AC97_SYSCLK MFP_CFG_OUT(GPIO45, AF1, DRIVE_LOW) 1944c25c5d2SArnd Bergmann #define GPIO89_AC97_SYSCLK MFP_CFG_OUT(GPIO89, AF1, DRIVE_LOW) 1954c25c5d2SArnd Bergmann #define GPIO98_AC97_SYSCLK MFP_CFG_OUT(GPIO98, AF1, DRIVE_LOW) 1964c25c5d2SArnd Bergmann #define GPIO95_AC97_nRESET MFP_CFG_OUT(GPIO95, AF1, DRIVE_LOW) 1974c25c5d2SArnd Bergmann #define GPIO113_AC97_nRESET MFP_CFG_OUT(GPIO113, AF2, DRIVE_LOW) 1984c25c5d2SArnd Bergmann #define GPIO28_AC97_BITCLK MFP_CFG_IN(GPIO28, AF1) 1994c25c5d2SArnd Bergmann #define GPIO29_AC97_SDATA_IN_0 MFP_CFG_IN(GPIO29, AF1) 2004c25c5d2SArnd Bergmann #define GPIO116_AC97_SDATA_IN_0 MFP_CFG_IN(GPIO116, AF2) 2014c25c5d2SArnd Bergmann #define GPIO99_AC97_SDATA_IN_1 MFP_CFG_IN(GPIO99, AF2) 2024c25c5d2SArnd Bergmann 2034c25c5d2SArnd Bergmann /* I2S */ 2044c25c5d2SArnd Bergmann #define GPIO28_I2S_BITCLK_IN MFP_CFG_IN(GPIO28, AF2) 2054c25c5d2SArnd Bergmann #define GPIO28_I2S_BITCLK_OUT MFP_CFG_OUT(GPIO28, AF1, DRIVE_LOW) 2064c25c5d2SArnd Bergmann #define GPIO29_I2S_SDATA_IN MFP_CFG_IN(GPIO29, AF2) 2074c25c5d2SArnd Bergmann #define GPIO30_I2S_SDATA_OUT MFP_CFG_OUT(GPIO30, AF1, DRIVE_LOW) 2084c25c5d2SArnd Bergmann #define GPIO31_I2S_SYNC MFP_CFG_OUT(GPIO31, AF1, DRIVE_LOW) 2094c25c5d2SArnd Bergmann #define GPIO113_I2S_SYSCLK MFP_CFG_OUT(GPIO113, AF1, DRIVE_LOW) 2104c25c5d2SArnd Bergmann 2114c25c5d2SArnd Bergmann /* SSP 1 */ 2124c25c5d2SArnd Bergmann #define GPIO23_SSP1_SCLK_IN MFP_CFG_IN(GPIO23, AF2) 2134c25c5d2SArnd Bergmann #define GPIO23_SSP1_SCLK MFP_CFG_OUT(GPIO23, AF2, DRIVE_LOW) 2144c25c5d2SArnd Bergmann #define GPIO29_SSP1_SCLK MFP_CFG_IN(GPIO29, AF3) 2154c25c5d2SArnd Bergmann #define GPIO27_SSP1_SYSCLK MFP_CFG_OUT(GPIO27, AF1, DRIVE_LOW) 2164c25c5d2SArnd Bergmann #define GPIO53_SSP1_SYSCLK MFP_CFG_OUT(GPIO53, AF3, DRIVE_LOW) 2174c25c5d2SArnd Bergmann #define GPIO24_SSP1_SFRM MFP_CFG_IN(GPIO24, AF2) 2184c25c5d2SArnd Bergmann #define GPIO28_SSP1_SFRM MFP_CFG_IN(GPIO28, AF3) 2194c25c5d2SArnd Bergmann #define GPIO25_SSP1_TXD MFP_CFG_OUT(GPIO25, AF2, DRIVE_LOW) 2204c25c5d2SArnd Bergmann #define GPIO57_SSP1_TXD MFP_CFG_OUT(GPIO57, AF3, DRIVE_LOW) 2214c25c5d2SArnd Bergmann #define GPIO26_SSP1_RXD MFP_CFG_IN(GPIO26, AF1) 2224c25c5d2SArnd Bergmann #define GPIO27_SSP1_SCLKEN MFP_CFG_IN(GPIO27, AF2) 2234c25c5d2SArnd Bergmann 2244c25c5d2SArnd Bergmann /* SSP 2 */ 2254c25c5d2SArnd Bergmann #define GPIO19_SSP2_SCLK MFP_CFG_IN(GPIO19, AF1) 2264c25c5d2SArnd Bergmann #define GPIO22_SSP2_SCLK MFP_CFG_IN(GPIO22, AF3) 2274c25c5d2SArnd Bergmann #define GPIO29_SSP2_SCLK MFP_CFG_OUT(GPIO29, AF3, DRIVE_LOW) 2284c25c5d2SArnd Bergmann #define GPIO36_SSP2_SCLK MFP_CFG_IN(GPIO36, AF2) 2294c25c5d2SArnd Bergmann #define GPIO50_SSP2_SCLK MFP_CFG_IN(GPIO50, AF3) 2304c25c5d2SArnd Bergmann #define GPIO22_SSP2_SYSCLK MFP_CFG_OUT(GPIO22, AF2, DRIVE_LOW) 2314c25c5d2SArnd Bergmann #define GPIO14_SSP2_SFRM MFP_CFG_IN(GPIO14, AF2) 2324c25c5d2SArnd Bergmann #define GPIO37_SSP2_SFRM MFP_CFG_IN(GPIO37, AF2) 2334c25c5d2SArnd Bergmann #define GPIO87_SSP2_SFRM MFP_CFG_OUT(GPIO87, AF3, DRIVE_LOW) 2344c25c5d2SArnd Bergmann #define GPIO88_SSP2_SFRM MFP_CFG_IN(GPIO88, AF3) 2354c25c5d2SArnd Bergmann #define GPIO13_SSP2_TXD MFP_CFG_OUT(GPIO13, AF1, DRIVE_LOW) 2364c25c5d2SArnd Bergmann #define GPIO38_SSP2_TXD MFP_CFG_OUT(GPIO38, AF2, DRIVE_LOW) 2374c25c5d2SArnd Bergmann #define GPIO87_SSP2_TXD MFP_CFG_OUT(GPIO87, AF1, DRIVE_LOW) 2384c25c5d2SArnd Bergmann #define GPIO89_SSP2_TXD MFP_CFG_OUT(GPIO89, AF3, DRIVE_LOW) 2394c25c5d2SArnd Bergmann #define GPIO11_SSP2_RXD MFP_CFG_IN(GPIO11, AF2) 2404c25c5d2SArnd Bergmann #define GPIO29_SSP2_RXD MFP_CFG_OUT(GPIO29, AF1, DRIVE_LOW) 2414c25c5d2SArnd Bergmann #define GPIO40_SSP2_RXD MFP_CFG_IN(GPIO40, AF1) 2424c25c5d2SArnd Bergmann #define GPIO86_SSP2_RXD MFP_CFG_IN(GPIO86, AF1) 2434c25c5d2SArnd Bergmann #define GPIO88_SSP2_RXD MFP_CFG_IN(GPIO88, AF2) 2444c25c5d2SArnd Bergmann #define GPIO22_SSP2_EXTCLK MFP_CFG_IN(GPIO22, AF1) 2454c25c5d2SArnd Bergmann #define GPIO27_SSP2_EXTCLK MFP_CFG_IN(GPIO27, AF1) 2464c25c5d2SArnd Bergmann #define GPIO22_SSP2_SCLKEN MFP_CFG_IN(GPIO22, AF2) 2474c25c5d2SArnd Bergmann #define GPIO23_SSP2_SCLKEN MFP_CFG_IN(GPIO23, AF2) 2484c25c5d2SArnd Bergmann 2494c25c5d2SArnd Bergmann /* SSP 3 */ 2504c25c5d2SArnd Bergmann #define GPIO34_SSP3_SCLK MFP_CFG_IN(GPIO34, AF3) 2514c25c5d2SArnd Bergmann #define GPIO40_SSP3_SCLK MFP_CFG_OUT(GPIO40, AF3, DRIVE_LOW) 2524c25c5d2SArnd Bergmann #define GPIO52_SSP3_SCLK MFP_CFG_IN(GPIO52, AF2) 2534c25c5d2SArnd Bergmann #define GPIO84_SSP3_SCLK MFP_CFG_IN(GPIO84, AF1) 2544c25c5d2SArnd Bergmann #define GPIO45_SSP3_SYSCLK MFP_CFG_OUT(GPIO45, AF3, DRIVE_LOW) 2554c25c5d2SArnd Bergmann #define GPIO35_SSP3_SFRM MFP_CFG_IN(GPIO35, AF3) 2564c25c5d2SArnd Bergmann #define GPIO39_SSP3_SFRM MFP_CFG_IN(GPIO39, AF3) 2574c25c5d2SArnd Bergmann #define GPIO83_SSP3_SFRM MFP_CFG_IN(GPIO83, AF1) 2584c25c5d2SArnd Bergmann #define GPIO35_SSP3_TXD MFP_CFG_OUT(GPIO35, AF3, DRIVE_LOW) 2594c25c5d2SArnd Bergmann #define GPIO38_SSP3_TXD MFP_CFG_OUT(GPIO38, AF1, DRIVE_LOW) 2604c25c5d2SArnd Bergmann #define GPIO81_SSP3_TXD MFP_CFG_OUT(GPIO81, AF1, DRIVE_LOW) 2614c25c5d2SArnd Bergmann #define GPIO41_SSP3_RXD MFP_CFG_IN(GPIO41, AF3) 2624c25c5d2SArnd Bergmann #define GPIO82_SSP3_RXD MFP_CFG_IN(GPIO82, AF1) 2634c25c5d2SArnd Bergmann #define GPIO89_SSP3_RXD MFP_CFG_IN(GPIO89, AF1) 2644c25c5d2SArnd Bergmann 2654c25c5d2SArnd Bergmann /* MMC */ 2664c25c5d2SArnd Bergmann #define GPIO32_MMC_CLK MFP_CFG_OUT(GPIO32, AF2, DRIVE_LOW) 2674c25c5d2SArnd Bergmann #define GPIO92_MMC_DAT_0 MFP_CFG_IN(GPIO92, AF1) 2684c25c5d2SArnd Bergmann #define GPIO109_MMC_DAT_1 MFP_CFG_IN(GPIO109, AF1) 2694c25c5d2SArnd Bergmann #define GPIO110_MMC_DAT_2 MFP_CFG_IN(GPIO110, AF1) 2704c25c5d2SArnd Bergmann #define GPIO111_MMC_DAT_3 MFP_CFG_IN(GPIO111, AF1) 2714c25c5d2SArnd Bergmann #define GPIO112_MMC_CMD MFP_CFG_IN(GPIO112, AF1) 2724c25c5d2SArnd Bergmann 2734c25c5d2SArnd Bergmann /* LCD */ 2744c25c5d2SArnd Bergmann #define GPIO58_LCD_LDD_0 MFP_CFG_OUT(GPIO58, AF2, DRIVE_LOW) 2754c25c5d2SArnd Bergmann #define GPIO59_LCD_LDD_1 MFP_CFG_OUT(GPIO59, AF2, DRIVE_LOW) 2764c25c5d2SArnd Bergmann #define GPIO60_LCD_LDD_2 MFP_CFG_OUT(GPIO60, AF2, DRIVE_LOW) 2774c25c5d2SArnd Bergmann #define GPIO61_LCD_LDD_3 MFP_CFG_OUT(GPIO61, AF2, DRIVE_LOW) 2784c25c5d2SArnd Bergmann #define GPIO62_LCD_LDD_4 MFP_CFG_OUT(GPIO62, AF2, DRIVE_LOW) 2794c25c5d2SArnd Bergmann #define GPIO63_LCD_LDD_5 MFP_CFG_OUT(GPIO63, AF2, DRIVE_LOW) 2804c25c5d2SArnd Bergmann #define GPIO64_LCD_LDD_6 MFP_CFG_OUT(GPIO64, AF2, DRIVE_LOW) 2814c25c5d2SArnd Bergmann #define GPIO65_LCD_LDD_7 MFP_CFG_OUT(GPIO65, AF2, DRIVE_LOW) 2824c25c5d2SArnd Bergmann #define GPIO66_LCD_LDD_8 MFP_CFG_OUT(GPIO66, AF2, DRIVE_LOW) 2834c25c5d2SArnd Bergmann #define GPIO67_LCD_LDD_9 MFP_CFG_OUT(GPIO67, AF2, DRIVE_LOW) 2844c25c5d2SArnd Bergmann #define GPIO68_LCD_LDD_10 MFP_CFG_OUT(GPIO68, AF2, DRIVE_LOW) 2854c25c5d2SArnd Bergmann #define GPIO69_LCD_LDD_11 MFP_CFG_OUT(GPIO69, AF2, DRIVE_LOW) 2864c25c5d2SArnd Bergmann #define GPIO70_LCD_LDD_12 MFP_CFG_OUT(GPIO70, AF2, DRIVE_LOW) 2874c25c5d2SArnd Bergmann #define GPIO71_LCD_LDD_13 MFP_CFG_OUT(GPIO71, AF2, DRIVE_LOW) 2884c25c5d2SArnd Bergmann #define GPIO72_LCD_LDD_14 MFP_CFG_OUT(GPIO72, AF2, DRIVE_LOW) 2894c25c5d2SArnd Bergmann #define GPIO73_LCD_LDD_15 MFP_CFG_OUT(GPIO73, AF2, DRIVE_LOW) 2904c25c5d2SArnd Bergmann #define GPIO86_LCD_LDD_16 MFP_CFG_OUT(GPIO86, AF2, DRIVE_LOW) 2914c25c5d2SArnd Bergmann #define GPIO87_LCD_LDD_17 MFP_CFG_OUT(GPIO87, AF2, DRIVE_LOW) 2924c25c5d2SArnd Bergmann #define GPIO74_LCD_FCLK MFP_CFG_OUT(GPIO74, AF2, DRIVE_LOW) 2934c25c5d2SArnd Bergmann #define GPIO75_LCD_LCLK MFP_CFG_OUT(GPIO75, AF2, DRIVE_LOW) 2944c25c5d2SArnd Bergmann #define GPIO76_LCD_PCLK MFP_CFG_OUT(GPIO76, AF2, DRIVE_LOW) 2954c25c5d2SArnd Bergmann #define GPIO77_LCD_BIAS MFP_CFG_OUT(GPIO77, AF2, DRIVE_LOW) 2964c25c5d2SArnd Bergmann #define GPIO14_LCD_VSYNC MFP_CFG_IN(GPIO14, AF1) 2974c25c5d2SArnd Bergmann #define GPIO19_LCD_CS MFP_CFG_OUT(GPIO19, AF2, DRIVE_LOW) 2984c25c5d2SArnd Bergmann 2994c25c5d2SArnd Bergmann /* Keypad */ 3004c25c5d2SArnd Bergmann #define GPIO93_KP_DKIN_0 MFP_CFG_IN(GPIO93, AF1) 3014c25c5d2SArnd Bergmann #define GPIO94_KP_DKIN_1 MFP_CFG_IN(GPIO94, AF1) 3024c25c5d2SArnd Bergmann #define GPIO95_KP_DKIN_2 MFP_CFG_IN(GPIO95, AF1) 3034c25c5d2SArnd Bergmann #define GPIO96_KP_DKIN_3 MFP_CFG_IN(GPIO96, AF1) 3044c25c5d2SArnd Bergmann #define GPIO97_KP_DKIN_4 MFP_CFG_IN(GPIO97, AF1) 3054c25c5d2SArnd Bergmann #define GPIO98_KP_DKIN_5 MFP_CFG_IN(GPIO98, AF1) 3064c25c5d2SArnd Bergmann #define GPIO99_KP_DKIN_6 MFP_CFG_IN(GPIO99, AF1) 3074c25c5d2SArnd Bergmann #define GPIO13_KP_KDIN_7 MFP_CFG_IN(GPIO13, AF2) 3084c25c5d2SArnd Bergmann #define GPIO100_KP_MKIN_0 MFP_CFG_IN(GPIO100, AF1) 3094c25c5d2SArnd Bergmann #define GPIO101_KP_MKIN_1 MFP_CFG_IN(GPIO101, AF1) 3104c25c5d2SArnd Bergmann #define GPIO102_KP_MKIN_2 MFP_CFG_IN(GPIO102, AF1) 3114c25c5d2SArnd Bergmann #define GPIO34_KP_MKIN_3 MFP_CFG_IN(GPIO34, AF2) 3124c25c5d2SArnd Bergmann #define GPIO37_KP_MKIN_3 MFP_CFG_IN(GPIO37, AF3) 3134c25c5d2SArnd Bergmann #define GPIO97_KP_MKIN_3 MFP_CFG_IN(GPIO97, AF3) 3144c25c5d2SArnd Bergmann #define GPIO98_KP_MKIN_4 MFP_CFG_IN(GPIO98, AF3) 3154c25c5d2SArnd Bergmann #define GPIO38_KP_MKIN_4 MFP_CFG_IN(GPIO38, AF2) 3164c25c5d2SArnd Bergmann #define GPIO39_KP_MKIN_4 MFP_CFG_IN(GPIO39, AF1) 3174c25c5d2SArnd Bergmann #define GPIO16_KP_MKIN_5 MFP_CFG_IN(GPIO16, AF1) 3184c25c5d2SArnd Bergmann #define GPIO90_KP_MKIN_5 MFP_CFG_IN(GPIO90, AF1) 3194c25c5d2SArnd Bergmann #define GPIO99_KP_MKIN_5 MFP_CFG_IN(GPIO99, AF3) 3204c25c5d2SArnd Bergmann #define GPIO17_KP_MKIN_6 MFP_CFG_IN(GPIO17, AF1) 3214c25c5d2SArnd Bergmann #define GPIO91_KP_MKIN_6 MFP_CFG_IN(GPIO91, AF1) 3224c25c5d2SArnd Bergmann #define GPIO95_KP_MKIN_6 MFP_CFG_IN(GPIO95, AF3) 3234c25c5d2SArnd Bergmann #define GPIO13_KP_MKIN_7 MFP_CFG_IN(GPIO13, AF3) 3244c25c5d2SArnd Bergmann #define GPIO36_KP_MKIN_7 MFP_CFG_IN(GPIO36, AF3) 3254c25c5d2SArnd Bergmann #define GPIO103_KP_MKOUT_0 MFP_CFG_OUT(GPIO103, AF2, DRIVE_HIGH) 3264c25c5d2SArnd Bergmann #define GPIO104_KP_MKOUT_1 MFP_CFG_OUT(GPIO104, AF2, DRIVE_HIGH) 3274c25c5d2SArnd Bergmann #define GPIO105_KP_MKOUT_2 MFP_CFG_OUT(GPIO105, AF2, DRIVE_HIGH) 3284c25c5d2SArnd Bergmann #define GPIO106_KP_MKOUT_3 MFP_CFG_OUT(GPIO106, AF2, DRIVE_HIGH) 3294c25c5d2SArnd Bergmann #define GPIO107_KP_MKOUT_4 MFP_CFG_OUT(GPIO107, AF2, DRIVE_HIGH) 3304c25c5d2SArnd Bergmann #define GPIO108_KP_MKOUT_5 MFP_CFG_OUT(GPIO108, AF2, DRIVE_HIGH) 3314c25c5d2SArnd Bergmann #define GPIO35_KP_MKOUT_6 MFP_CFG_OUT(GPIO35, AF2, DRIVE_HIGH) 3324c25c5d2SArnd Bergmann #define GPIO22_KP_MKOUT_7 MFP_CFG_OUT(GPIO22, AF1, DRIVE_HIGH) 3334c25c5d2SArnd Bergmann #define GPIO40_KP_MKOUT_6 MFP_CFG_OUT(GPIO40, AF1, DRIVE_HIGH) 3344c25c5d2SArnd Bergmann #define GPIO41_KP_MKOUT_7 MFP_CFG_OUT(GPIO41, AF1, DRIVE_HIGH) 3354c25c5d2SArnd Bergmann #define GPIO96_KP_MKOUT_6 MFP_CFG_OUT(GPIO96, AF3, DRIVE_HIGH) 3364c25c5d2SArnd Bergmann 3374c25c5d2SArnd Bergmann /* USB P3 */ 3384c25c5d2SArnd Bergmann #define GPIO10_USB_P3_5 MFP_CFG_IN(GPIO10, AF3) 3394c25c5d2SArnd Bergmann #define GPIO11_USB_P3_1 MFP_CFG_IN(GPIO11, AF3) 3404c25c5d2SArnd Bergmann #define GPIO30_USB_P3_2 MFP_CFG_OUT(GPIO30, AF3, DRIVE_LOW) 3414c25c5d2SArnd Bergmann #define GPIO31_USB_P3_6 MFP_CFG_OUT(GPIO31, AF3, DRIVE_LOW) 3424c25c5d2SArnd Bergmann #define GPIO56_USB_P3_4 MFP_CFG_OUT(GPIO56, AF1, DRIVE_LOW) 3434c25c5d2SArnd Bergmann #define GPIO86_USB_P3_5 MFP_CFG_IN(GPIO86, AF3) 3444c25c5d2SArnd Bergmann #define GPIO87_USB_P3_1 MFP_CFG_IN(GPIO87, AF3) 3454c25c5d2SArnd Bergmann #define GPIO90_USB_P3_5 MFP_CFG_IN(GPIO90, AF2) 3464c25c5d2SArnd Bergmann #define GPIO91_USB_P3_1 MFP_CFG_IN(GPIO91, AF2) 3474c25c5d2SArnd Bergmann #define GPIO113_USB_P3_3 MFP_CFG_IN(GPIO113, AF3) 3484c25c5d2SArnd Bergmann 3494c25c5d2SArnd Bergmann /* USB P2 */ 3504c25c5d2SArnd Bergmann #define GPIO34_USB_P2_2 MFP_CFG_OUT(GPIO34, AF1, DRIVE_LOW) 3514c25c5d2SArnd Bergmann #define GPIO35_USB_P2_1 MFP_CFG_IN(GPIO35, AF2) 3524c25c5d2SArnd Bergmann #define GPIO36_USB_P2_4 MFP_CFG_OUT(GPIO36, AF1, DRIVE_LOW) 3534c25c5d2SArnd Bergmann #define GPIO37_USB_P2_8 MFP_CFG_OUT(GPIO37, AF1, DRIVE_LOW) 3544c25c5d2SArnd Bergmann #define GPIO38_USB_P2_3 MFP_CFG_IN(GPIO38, AF3) 3554c25c5d2SArnd Bergmann #define GPIO39_USB_P2_6 MFP_CFG_OUT(GPIO39, AF1, DRIVE_LOW) 3564c25c5d2SArnd Bergmann #define GPIO40_USB_P2_5 MFP_CFG_IN(GPIO40, AF3) 3574c25c5d2SArnd Bergmann #define GPIO41_USB_P2_7 MFP_CFG_IN(GPIO41, AF2) 3584c25c5d2SArnd Bergmann #define GPIO53_USB_P2_3 MFP_CFG_IN(GPIO53, AF2) 3594c25c5d2SArnd Bergmann 3604c25c5d2SArnd Bergmann /* USB Host Port 1/2 */ 3614c25c5d2SArnd Bergmann #define GPIO88_USBH1_PWR MFP_CFG_IN(GPIO88, AF1) 3624c25c5d2SArnd Bergmann #define GPIO89_USBH1_PEN MFP_CFG_OUT(GPIO89, AF2, DRIVE_LOW) 3634c25c5d2SArnd Bergmann #define GPIO119_USBH2_PWR MFP_CFG_IN(GPIO119, AF1) 3644c25c5d2SArnd Bergmann #define GPIO120_USBH2_PEN MFP_CFG_OUT(GPIO120, AF2, DRIVE_LOW) 3654c25c5d2SArnd Bergmann 3664c25c5d2SArnd Bergmann /* QCI - default to Master Mode: CIF_FV/CIF_LV Direction In */ 3674c25c5d2SArnd Bergmann #define GPIO115_CIF_DD_3 MFP_CFG_IN(GPIO115, AF2) 3684c25c5d2SArnd Bergmann #define GPIO116_CIF_DD_2 MFP_CFG_IN(GPIO116, AF1) 3694c25c5d2SArnd Bergmann #define GPIO12_CIF_DD_7 MFP_CFG_IN(GPIO12, AF2) 3704c25c5d2SArnd Bergmann #define GPIO17_CIF_DD_6 MFP_CFG_IN(GPIO17, AF2) 3714c25c5d2SArnd Bergmann #define GPIO23_CIF_MCLK MFP_CFG_OUT(GPIO23, AF1, DRIVE_LOW) 3724c25c5d2SArnd Bergmann #define GPIO24_CIF_FV MFP_CFG_IN(GPIO24, AF1) 3734c25c5d2SArnd Bergmann #define GPIO25_CIF_LV MFP_CFG_IN(GPIO25, AF1) 3744c25c5d2SArnd Bergmann #define GPIO26_CIF_PCLK MFP_CFG_IN(GPIO26, AF2) 3754c25c5d2SArnd Bergmann #define GPIO27_CIF_DD_0 MFP_CFG_IN(GPIO27, AF3) 3764c25c5d2SArnd Bergmann #define GPIO42_CIF_MCLK MFP_CFG_OUT(GPIO42, AF3, DRIVE_LOW) 3774c25c5d2SArnd Bergmann #define GPIO43_CIF_FV MFP_CFG_IN(GPIO43, AF3) 3784c25c5d2SArnd Bergmann #define GPIO44_CIF_LV MFP_CFG_IN(GPIO44, AF3) 3794c25c5d2SArnd Bergmann #define GPIO45_CIF_PCLK MFP_CFG_IN(GPIO45, AF3) 3804c25c5d2SArnd Bergmann #define GPIO47_CIF_DD_0 MFP_CFG_IN(GPIO47, AF1) 3814c25c5d2SArnd Bergmann #define GPIO48_CIF_DD_5 MFP_CFG_IN(GPIO48, AF1) 3824c25c5d2SArnd Bergmann #define GPIO50_CIF_DD_3 MFP_CFG_IN(GPIO50, AF1) 3834c25c5d2SArnd Bergmann #define GPIO51_CIF_DD_2 MFP_CFG_IN(GPIO51, AF1) 3844c25c5d2SArnd Bergmann #define GPIO52_CIF_DD_4 MFP_CFG_IN(GPIO52, AF1) 3854c25c5d2SArnd Bergmann #define GPIO53_CIF_MCLK MFP_CFG_OUT(GPIO53, AF2, DRIVE_LOW) 3864c25c5d2SArnd Bergmann #define GPIO54_CIF_PCLK MFP_CFG_IN(GPIO54, AF3) 3874c25c5d2SArnd Bergmann #define GPIO55_CIF_DD_1 MFP_CFG_IN(GPIO55, AF1) 3884c25c5d2SArnd Bergmann #define GPIO81_CIF_DD_0 MFP_CFG_IN(GPIO81, AF2) 3894c25c5d2SArnd Bergmann #define GPIO82_CIF_DD_5 MFP_CFG_IN(GPIO82, AF3) 3904c25c5d2SArnd Bergmann #define GPIO83_CIF_DD_4 MFP_CFG_IN(GPIO83, AF3) 3914c25c5d2SArnd Bergmann #define GPIO84_CIF_FV MFP_CFG_IN(GPIO84, AF3) 3924c25c5d2SArnd Bergmann #define GPIO85_CIF_LV MFP_CFG_IN(GPIO85, AF3) 3934c25c5d2SArnd Bergmann #define GPIO90_CIF_DD_4 MFP_CFG_IN(GPIO90, AF3) 3944c25c5d2SArnd Bergmann #define GPIO91_CIF_DD_5 MFP_CFG_IN(GPIO91, AF3) 3954c25c5d2SArnd Bergmann #define GPIO93_CIF_DD_6 MFP_CFG_IN(GPIO93, AF2) 3964c25c5d2SArnd Bergmann #define GPIO94_CIF_DD_5 MFP_CFG_IN(GPIO94, AF2) 3974c25c5d2SArnd Bergmann #define GPIO95_CIF_DD_4 MFP_CFG_IN(GPIO95, AF2) 3984c25c5d2SArnd Bergmann #define GPIO98_CIF_DD_0 MFP_CFG_IN(GPIO98, AF2) 3994c25c5d2SArnd Bergmann #define GPIO103_CIF_DD_3 MFP_CFG_IN(GPIO103, AF1) 4004c25c5d2SArnd Bergmann #define GPIO104_CIF_DD_2 MFP_CFG_IN(GPIO104, AF1) 4014c25c5d2SArnd Bergmann #define GPIO105_CIF_DD_1 MFP_CFG_IN(GPIO105, AF1) 4024c25c5d2SArnd Bergmann #define GPIO106_CIF_DD_9 MFP_CFG_IN(GPIO106, AF1) 4034c25c5d2SArnd Bergmann #define GPIO107_CIF_DD_8 MFP_CFG_IN(GPIO107, AF1) 4044c25c5d2SArnd Bergmann #define GPIO108_CIF_DD_7 MFP_CFG_IN(GPIO108, AF1) 4054c25c5d2SArnd Bergmann #define GPIO114_CIF_DD_1 MFP_CFG_IN(GPIO114, AF1) 4064c25c5d2SArnd Bergmann 4074c25c5d2SArnd Bergmann /* Universal Subscriber ID Interface */ 4084c25c5d2SArnd Bergmann #define GPIO114_UVS0 MFP_CFG_OUT(GPIO114, AF2, DRIVE_LOW) 4094c25c5d2SArnd Bergmann #define GPIO115_nUVS1 MFP_CFG_OUT(GPIO115, AF2, DRIVE_LOW) 4104c25c5d2SArnd Bergmann #define GPIO116_nUVS2 MFP_CFG_OUT(GPIO116, AF2, DRIVE_LOW) 4114c25c5d2SArnd Bergmann #define GPIO14_UCLK MFP_CFG_OUT(GPIO14, AF3, DRIVE_LOW) 4124c25c5d2SArnd Bergmann #define GPIO91_UCLK MFP_CFG_OUT(GPIO91, AF2, DRIVE_LOW) 4134c25c5d2SArnd Bergmann #define GPIO19_nURST MFP_CFG_OUT(GPIO19, AF3, DRIVE_LOW) 4144c25c5d2SArnd Bergmann #define GPIO90_nURST MFP_CFG_OUT(GPIO90, AF2, DRIVE_LOW) 4154c25c5d2SArnd Bergmann #define GPIO116_UDET MFP_CFG_IN(GPIO116, AF3) 4164c25c5d2SArnd Bergmann #define GPIO114_UEN MFP_CFG_OUT(GPIO114, AF1, DRIVE_LOW) 4174c25c5d2SArnd Bergmann #define GPIO115_UEN MFP_CFG_OUT(GPIO115, AF1, DRIVE_LOW) 4184c25c5d2SArnd Bergmann 4194c25c5d2SArnd Bergmann /* Mobile Scalable Link (MSL) Interface */ 4204c25c5d2SArnd Bergmann #define GPIO81_BB_OB_DAT_0 MFP_CFG_OUT(GPIO81, AF2, DRIVE_LOW) 4214c25c5d2SArnd Bergmann #define GPIO48_BB_OB_DAT_1 MFP_CFG_OUT(GPIO48, AF1, DRIVE_LOW) 4224c25c5d2SArnd Bergmann #define GPIO50_BB_OB_DAT_2 MFP_CFG_OUT(GPIO50, AF1, DRIVE_LOW) 4234c25c5d2SArnd Bergmann #define GPIO51_BB_OB_DAT_3 MFP_CFG_OUT(GPIO51, AF1, DRIVE_LOW) 4244c25c5d2SArnd Bergmann #define GPIO52_BB_OB_CLK MFP_CFG_OUT(GPIO52, AF1, DRIVE_LOW) 4254c25c5d2SArnd Bergmann #define GPIO53_BB_OB_STB MFP_CFG_OUT(GPIO53, AF1, DRIVE_LOW) 4264c25c5d2SArnd Bergmann #define GPIO54_BB_OB_WAIT MFP_CFG_IN(GPIO54, AF2) 4274c25c5d2SArnd Bergmann #define GPIO82_BB_IB_DAT_0 MFP_CFG_IN(GPIO82, AF2) 4284c25c5d2SArnd Bergmann #define GPIO55_BB_IB_DAT_1 MFP_CFG_IN(GPIO55, AF2) 4294c25c5d2SArnd Bergmann #define GPIO56_BB_IB_DAT_2 MFP_CFG_IN(GPIO56, AF2) 4304c25c5d2SArnd Bergmann #define GPIO57_BB_IB_DAT_3 MFP_CFG_IN(GPIO57, AF2) 4314c25c5d2SArnd Bergmann #define GPIO83_BB_IB_CLK MFP_CFG_IN(GPIO83, AF2) 4324c25c5d2SArnd Bergmann #define GPIO84_BB_IB_STB MFP_CFG_IN(GPIO84, AF2) 4334c25c5d2SArnd Bergmann #define GPIO85_BB_IB_WAIT MFP_CFG_OUT(GPIO85, AF2, DRIVE_LOW) 4344c25c5d2SArnd Bergmann 4354c25c5d2SArnd Bergmann /* Memory Stick Host Controller */ 4364c25c5d2SArnd Bergmann #define GPIO92_MSBS MFP_CFG_OUT(GPIO92, AF2, DRIVE_LOW) 4374c25c5d2SArnd Bergmann #define GPIO109_MSSDIO MFP_CFG_IN(GPIO109, AF2) 4384c25c5d2SArnd Bergmann #define GPIO112_nMSINS MFP_CFG_IN(GPIO112, AF2) 4394c25c5d2SArnd Bergmann #define GPIO32_MSSCLK MFP_CFG_OUT(GPIO32, AF1, DRIVE_LOW) 4404c25c5d2SArnd Bergmann 4414c25c5d2SArnd Bergmann /* commonly used pin configurations */ 4424c25c5d2SArnd Bergmann #define GPIOxx_LCD_16BPP \ 4434c25c5d2SArnd Bergmann GPIO58_LCD_LDD_0, \ 4444c25c5d2SArnd Bergmann GPIO59_LCD_LDD_1, \ 4454c25c5d2SArnd Bergmann GPIO60_LCD_LDD_2, \ 4464c25c5d2SArnd Bergmann GPIO61_LCD_LDD_3, \ 4474c25c5d2SArnd Bergmann GPIO62_LCD_LDD_4, \ 4484c25c5d2SArnd Bergmann GPIO63_LCD_LDD_5, \ 4494c25c5d2SArnd Bergmann GPIO64_LCD_LDD_6, \ 4504c25c5d2SArnd Bergmann GPIO65_LCD_LDD_7, \ 4514c25c5d2SArnd Bergmann GPIO66_LCD_LDD_8, \ 4524c25c5d2SArnd Bergmann GPIO67_LCD_LDD_9, \ 4534c25c5d2SArnd Bergmann GPIO68_LCD_LDD_10, \ 4544c25c5d2SArnd Bergmann GPIO69_LCD_LDD_11, \ 4554c25c5d2SArnd Bergmann GPIO70_LCD_LDD_12, \ 4564c25c5d2SArnd Bergmann GPIO71_LCD_LDD_13, \ 4574c25c5d2SArnd Bergmann GPIO72_LCD_LDD_14, \ 4584c25c5d2SArnd Bergmann GPIO73_LCD_LDD_15 4594c25c5d2SArnd Bergmann 4604c25c5d2SArnd Bergmann #define GPIOxx_LCD_TFT_16BPP \ 4614c25c5d2SArnd Bergmann GPIOxx_LCD_16BPP, \ 4624c25c5d2SArnd Bergmann GPIO74_LCD_FCLK, \ 4634c25c5d2SArnd Bergmann GPIO75_LCD_LCLK, \ 4644c25c5d2SArnd Bergmann GPIO76_LCD_PCLK, \ 4654c25c5d2SArnd Bergmann GPIO77_LCD_BIAS 4664c25c5d2SArnd Bergmann 4674c25c5d2SArnd Bergmann /* these enable a work-around for a hw bug in pxa27x during ac97 warm reset */ 4684c25c5d2SArnd Bergmann #define GPIO113_AC97_nRESET_GPIO_HIGH MFP_CFG_OUT(GPIO113, AF0, DEFAULT) 4694c25c5d2SArnd Bergmann #define GPIO95_AC97_nRESET_GPIO_HIGH MFP_CFG_OUT(GPIO95, AF0, DEFAULT) 4704c25c5d2SArnd Bergmann 4714c25c5d2SArnd Bergmann extern int keypad_set_wake(unsigned int on); 4724c25c5d2SArnd Bergmann #endif /* __ASM_ARCH_MFP_PXA27X_H */ 473