diff options
Diffstat (limited to 'include/asm-arm')
-rw-r--r-- | include/asm-arm/arch-pxa/mfp-pxa25x.h | 161 | ||||
-rw-r--r-- | include/asm-arm/arch-pxa/mfp-pxa27x.h | 431 | ||||
-rw-r--r-- | include/asm-arm/arch-pxa/mfp-pxa2xx.h | 131 |
3 files changed, 723 insertions, 0 deletions
diff --git a/include/asm-arm/arch-pxa/mfp-pxa25x.h b/include/asm-arm/arch-pxa/mfp-pxa25x.h new file mode 100644 index 000000000000..0499323010ba --- /dev/null +++ b/include/asm-arm/arch-pxa/mfp-pxa25x.h | |||
@@ -0,0 +1,161 @@ | |||
1 | #ifndef __ASM_ARCH_MFP_PXA25X_H | ||
2 | #define __ASM_ARCH_MFP_PXA25X_H | ||
3 | |||
4 | #include <asm/arch/mfp.h> | ||
5 | #include <asm/arch/mfp-pxa2xx.h> | ||
6 | |||
7 | /* GPIO */ | ||
8 | #define GPIO2_GPIO MFP_CFG_IN(GPIO2, AF0) | ||
9 | #define GPIO3_GPIO MFP_CFG_IN(GPIO3, AF0) | ||
10 | #define GPIO4_GPIO MFP_CFG_IN(GPIO4, AF0) | ||
11 | #define GPIO5_GPIO MFP_CFG_IN(GPIO5, AF0) | ||
12 | #define GPIO6_GPIO MFP_CFG_IN(GPIO6, AF0) | ||
13 | #define GPIO7_GPIO MFP_CFG_IN(GPIO7, AF0) | ||
14 | #define GPIO8_GPIO MFP_CFG_IN(GPIO8, AF0) | ||
15 | |||
16 | #define GPIO1_RST MFP_CFG_IN(GPIO1, AF1) | ||
17 | |||
18 | /* Crystal and Clock Signals */ | ||
19 | #define GPIO10_RTCCLK MFP_CFG_OUT(GPIO10, AF1, DRIVE_LOW) | ||
20 | #define GPIO70_RTC_CLK MFP_CFG_OUT(GPIO70, AF1, DRIVE_LOW) | ||
21 | #define GPIO7_48MHz MFP_CFG_OUT(GPIO7, AF1, DRIVE_LOW) | ||
22 | #define GPIO11_3_6MHz MFP_CFG_OUT(GPIO11, AF1, DRIVE_LOW) | ||
23 | #define GPIO71_3_6MHz MFP_CFG_OUT(GPIO71, AF1, DRIVE_LOW) | ||
24 | #define GPIO12_32KHz MFP_CFG_OUT(GPIO12, AF1, DRIVE_LOW) | ||
25 | #define GPIO72_32kHz MFP_CFG_OUT(GPIO72, AF1, DRIVE_LOW) | ||
26 | |||
27 | /* SDRAM and Static Memory I/O Signals */ | ||
28 | #define GPIO15_nCS_1 MFP_CFG_OUT(GPIO15, AF2, DRIVE_HIGH) | ||
29 | #define GPIO78_nCS_2 MFP_CFG_OUT(GPIO78, AF2, DRIVE_HIGH) | ||
30 | #define GPIO79_nCS_3 MFP_CFG_OUT(GPIO79, AF2, DRIVE_HIGH) | ||
31 | #define GPIO80_nCS_4 MFP_CFG_OUT(GPIO80, AF2, DRIVE_HIGH) | ||
32 | #define GPIO33_nCS_5 MFP_CFG_OUT(GPIO33, AF2, DRIVE_HIGH) | ||
33 | |||
34 | /* Miscellaneous I/O and DMA Signals */ | ||
35 | #define GPIO18_RDY MFP_CFG_IN(GPIO18, AF1) | ||
36 | #define GPIO20_DREQ_0 MFP_CFG_IN(GPIO20, AF1) | ||
37 | #define GPIO19_DREQ_1 MFP_CFG_IN(GPIO19, AF1) | ||
38 | |||
39 | /* Alternate Bus Master Mode I/O Signals */ | ||
40 | #define GPIO13_MBGNT MFP_CFG_OUT(GPIO13, AF2, DRIVE_LOW) | ||
41 | #define GPIO73_MBGNT MFP_CFG_OUT(GPIO73, AF1, DRIVE_LOW) | ||
42 | #define GPIO14_MBREQ MFP_CFG_IN(GPIO14, AF1) | ||
43 | #define GPIO66_MBREQ MFP_CFG_IN(GPIO66, AF1) | ||
44 | |||
45 | /* PC CARD */ | ||
46 | #define GPIO52_nPCE_1 MFP_CFG_OUT(GPIO52, AF2, DRIVE_HIGH) | ||
47 | #define GPIO53_nPCE_2 MFP_CFG_OUT(GPIO53, AF2, DRIVE_HIGH) | ||
48 | #define GPIO55_nPREG MFP_CFG_OUT(GPIO55, AF2, DRIVE_HIGH) | ||
49 | #define GPIO50_nPIOR MFP_CFG_OUT(GPIO50, AF2, DRIVE_HIGH) | ||
50 | #define GPIO51_nPIOW MFP_CFG_OUT(GPIO51, AF2, DRIVE_HIGH) | ||
51 | #define GPIO49_nPWE MFP_CFG_OUT(GPIO49, AF2, DRIVE_HIGH) | ||
52 | #define GPIO48_nPOE MFP_CFG_OUT(GPIO48, AF2, DRIVE_HIGH) | ||
53 | #define GPIO57_nIOIS16 MFP_CFG_IN(GPIO57, AF1) | ||
54 | #define GPIO56_nPWAIT MFP_CFG_IN(GPIO56, AF1) | ||
55 | #define GPIO54_nPSKTSEL MFP_CFG_OUT(GPIO54, AF2, DRIVE_HIGH) | ||
56 | |||
57 | /* FFUART */ | ||
58 | #define GPIO34_FFUART_RXD MFP_CFG_IN(GPIO34, AF1) | ||
59 | #define GPIO35_FFUART_CTS MFP_CFG_IN(GPIO35, AF1) | ||
60 | #define GPIO36_FFUART_DCD MFP_CFG_IN(GPIO36, AF1) | ||
61 | #define GPIO37_FFUART_DSR MFP_CFG_IN(GPIO37, AF1) | ||
62 | #define GPIO38_FFUART_RI MFP_CFG_IN(GPIO38, AF1) | ||
63 | #define GPIO39_FFUART_TXD MFP_CFG_OUT(GPIO39, AF2, DRIVE_HIGH) | ||
64 | #define GPIO40_FFUART_DTR MFP_CFG_OUT(GPIO40, AF2, DRIVE_HIGH) | ||
65 | #define GPIO41_FFUART_RTS MFP_CFG_OUT(GPIO41, AF2, DRIVE_HIGH) | ||
66 | |||
67 | /* BTUART */ | ||
68 | #define GPIO42_BTUART_RXD MFP_CFG_IN(GPIO42, AF1) | ||
69 | #define GPIO43_BTUART_TXD MFP_CFG_OUT(GPIO43, AF2, DRIVE_HIGH) | ||
70 | #define GPIO44_BTUART_CTS MFP_CFG_IN(GPIO44, AF1) | ||
71 | #define GPIO45_BTUART_RTS MFP_CFG_OUT(GPIO45, AF2, DRIVE_HIGH) | ||
72 | |||
73 | /* STUART */ | ||
74 | #define GPIO46_STUART_RXD MFP_CFG_IN(GPIO46, AF2) | ||
75 | #define GPIO47_STUART_TXD MFP_CFG_OUT(GPIO47, AF1, DRIVE_HIGH) | ||
76 | |||
77 | /* HWUART */ | ||
78 | #define GPIO42_HWUART_RXD MFP_CFG_IN(GPIO42, AF3) | ||
79 | #define GPIO43_HWUART_TXD MFP_CFG_OUT(GPIO43, AF3, DRIVE_HIGH) | ||
80 | #define GPIO44_HWUART_CTS MFP_CFG_IN(GPIO44, AF3) | ||
81 | #define GPIO45_HWUART_RTS MFP_CFG_OUT(GPIO45, AF3, DRIVE_HIGH) | ||
82 | #define GPIO48_HWUART_TXD MFP_CFG_OUT(GPIO48, AF1, DRIVE_HIGH) | ||
83 | #define GPIO49_HWUART_RXD MFP_CFG_IN(GPIO49, AF1) | ||
84 | #define GPIO50_HWUART_CTS MFP_CFG_IN(GPIO50, AF1) | ||
85 | #define GPIO51_HWUART_RTS MFP_CFG_OUT(GPIO51, AF1, DRIVE_HIGH) | ||
86 | |||
87 | /* FICP */ | ||
88 | #define GPIO46_FICP_RXD MFP_CFG_IN(GPIO46, AF1) | ||
89 | #define GPIO47_FICP_TXD MFP_CFG_OUT(GPIO47, AF2, DRIVE_HIGH) | ||
90 | |||
91 | /* PWM 0/1 */ | ||
92 | #define GPIO16_PWM0_OUT MFP_CFG_OUT(GPIO16, AF2, DRIVE_LOW) | ||
93 | #define GPIO17_PWM1_OUT MFP_CFG_OUT(GPIO17, AF2, DRIVE_LOW) | ||
94 | |||
95 | /* AC97 */ | ||
96 | #define GPIO28_AC97_BITCLK MFP_CFG_IN(GPIO28, AF1) | ||
97 | #define GPIO29_AC97_SDATA_IN_0 MFP_CFG_IN(GPIO29, AF1) | ||
98 | #define GPIO30_AC97_SDATA_OUT MFP_CFG_OUT(GPIO30, AF2, DRIVE_LOW) | ||
99 | #define GPIO31_AC97_SYNC MFP_CFG_OUT(GPIO31, AF2, DRIVE_LOW) | ||
100 | #define GPIO32_AC97_SDATA_IN_1 MFP_CFG_IN(GPIO32, AF1) | ||
101 | |||
102 | /* I2S */ | ||
103 | #define GPIO28_I2S_BITCLK_IN MFP_CFG_IN(GPIO28, AF2) | ||
104 | #define GPIO28_I2S_BITCLK_OUT MFP_CFG_OUT(GPIO28, AF1, DRIVE_LOW) | ||
105 | #define GPIO29_I2S_SDATA_IN MFP_CFG_IN(GPIO29, AF2) | ||
106 | #define GPIO30_I2S_SDATA_OUT MFP_CFG_OUT(GPIO30, AF1, DRIVE_LOW) | ||
107 | #define GPIO31_I2S_SYNC MFP_CFG_OUT(GPIO31, AF1, DRIVE_LOW) | ||
108 | #define GPIO32_I2S_SYSCLK MFP_CFG_OUT(GPIO32, AF1, DRIVE_LOW) | ||
109 | |||
110 | /* SSP 1 */ | ||
111 | #define GPIO23_SSP1_SCLK MFP_CFG_OUT(GPIO23, AF2, DRIVE_LOW) | ||
112 | #define GPIO24_SSP1_SFRM MFP_CFG_OUT(GPIO24, AF2, DRIVE_LOW) | ||
113 | #define GPIO25_SSP1_TXD MFP_CFG_OUT(GPIO25, AF2, DRIVE_LOW) | ||
114 | #define GPIO26_SSP1_RXD MFP_CFG_IN(GPIO26, AF1) | ||
115 | #define GPIO27_SSP1_EXTCLK MFP_CFG_IN(GPIO27, AF1) | ||
116 | |||
117 | /* SSP 2 - NSSP */ | ||
118 | #define GPIO81_SSP2_CLK_OUT MFP_CFG_OUT(GPIO81, AF1, DRIVE_LOW) | ||
119 | #define GPIO81_SSP2_CLK_IN MFP_CFG_IN(GPIO81, AF1) | ||
120 | #define GPIO82_SSP2_FRM_OUT MFP_CFG_OUT(GPIO82, AF1, DRIVE_LOW) | ||
121 | #define GPIO82_SSP2_FRM_IN MFP_CFG_IN(GPIO82, AF1) | ||
122 | #define GPIO83_SSP2_TXD MFP_CFG_OUT(GPIO83, AF1, DRIVE_LOW) | ||
123 | #define GPIO83_SSP2_RXD MFP_CFG_IN(GPIO83, AF2) | ||
124 | #define GPIO84_SSP2_TXD MFP_CFG_OUT(GPIO84, AF1, DRIVE_LOW) | ||
125 | #define GPIO84_SSP2_RXD MFP_CFG_IN(GPIO84, AF2) | ||
126 | |||
127 | /* MMC */ | ||
128 | #define GPIO6_MMC_CLK MFP_CFG_OUT(GPIO6, AF1, DRIVE_LOW) | ||
129 | #define GPIO8_MMC_CS0 MFP_CFG_OUT(GPIO8, AF1, DRIVE_LOW) | ||
130 | #define GPIO9_MMC_CS1 MFP_CFG_OUT(GPIO9, AF1, DRIVE_LOW) | ||
131 | #define GPIO34_MMC_CS0 MFP_CFG_OUT(GPIO34, AF2, DRIVE_LOW) | ||
132 | #define GPIO39_MMC_CS1 MFP_CFG_OUT(GPIO39, AF1, DRIVE_LOW) | ||
133 | #define GPIO53_MMC_CLK MFP_CFG_OUT(GPIO53, AF1, DRIVE_LOW) | ||
134 | #define GPIO54_MMC_CLK MFP_CFG_OUT(GPIO54, AF1, DRIVE_LOW) | ||
135 | #define GPIO69_MMC_CLK MFP_CFG_OUT(GPIO69, AF1, DRIVE_LOW) | ||
136 | #define GPIO67_MMC_CS0 MFP_CFG_OUT(GPIO67, AF1, DRIVE_LOW) | ||
137 | #define GPIO68_MMC_CS1 MFP_CFG_OUT(GPIO68, AF1, DRIVE_LOW) | ||
138 | |||
139 | /* LCD */ | ||
140 | #define GPIO58_LCD_LDD_0 MFP_CFG_OUT(GPIO58, AF2, DRIVE_LOW) | ||
141 | #define GPIO59_LCD_LDD_1 MFP_CFG_OUT(GPIO59, AF2, DRIVE_LOW) | ||
142 | #define GPIO60_LCD_LDD_2 MFP_CFG_OUT(GPIO60, AF2, DRIVE_LOW) | ||
143 | #define GPIO61_LCD_LDD_3 MFP_CFG_OUT(GPIO61, AF2, DRIVE_LOW) | ||
144 | #define GPIO62_LCD_LDD_4 MFP_CFG_OUT(GPIO62, AF2, DRIVE_LOW) | ||
145 | #define GPIO63_LCD_LDD_5 MFP_CFG_OUT(GPIO63, AF2, DRIVE_LOW) | ||
146 | #define GPIO64_LCD_LDD_6 MFP_CFG_OUT(GPIO64, AF2, DRIVE_LOW) | ||
147 | #define GPIO65_LCD_LDD_7 MFP_CFG_OUT(GPIO65, AF2, DRIVE_LOW) | ||
148 | #define GPIO66_LCD_LDD_8 MFP_CFG_OUT(GPIO66, AF2, DRIVE_LOW) | ||
149 | #define GPIO67_LCD_LDD_9 MFP_CFG_OUT(GPIO67, AF2, DRIVE_LOW) | ||
150 | #define GPIO68_LCD_LDD_10 MFP_CFG_OUT(GPIO68, AF2, DRIVE_LOW) | ||
151 | #define GPIO69_LCD_LDD_11 MFP_CFG_OUT(GPIO69, AF2, DRIVE_LOW) | ||
152 | #define GPIO70_LCD_LDD_12 MFP_CFG_OUT(GPIO70, AF2, DRIVE_LOW) | ||
153 | #define GPIO71_LCD_LDD_13 MFP_CFG_OUT(GPIO71, AF2, DRIVE_LOW) | ||
154 | #define GPIO72_LCD_LDD_14 MFP_CFG_OUT(GPIO72, AF2, DRIVE_LOW) | ||
155 | #define GPIO73_LCD_LDD_15 MFP_CFG_OUT(GPIO73, AF2, DRIVE_LOW) | ||
156 | #define GPIO74_LCD_FCLK MFP_CFG_OUT(GPIO74, AF2, DRIVE_LOW) | ||
157 | #define GPIO75_LCD_LCLK MFP_CFG_OUT(GPIO75, AF2, DRIVE_LOW) | ||
158 | #define GPIO76_LCD_PCLK MFP_CFG_OUT(GPIO76, AF2, DRIVE_LOW) | ||
159 | #define GPIO77_LCD_ACBIAS MFP_CFG_OUT(GPIO77, AF2, DRIVE_LOW) | ||
160 | |||
161 | #endif /* __ASM_ARCH_MFP_PXA25X_H */ | ||
diff --git a/include/asm-arm/arch-pxa/mfp-pxa27x.h b/include/asm-arm/arch-pxa/mfp-pxa27x.h new file mode 100644 index 000000000000..65dfaa9109f3 --- /dev/null +++ b/include/asm-arm/arch-pxa/mfp-pxa27x.h | |||
@@ -0,0 +1,431 @@ | |||
1 | #ifndef __ASM_ARCH_MFP_PXA27X_H | ||
2 | #define __ASM_ARCH_MFP_PXA27X_H | ||
3 | |||
4 | /* | ||
5 | * NOTE: for those special-function bidirectional GPIOs, as described | ||
6 | * in the "PXA27x Developer's Manual" Section 24.4.2.1, only its input | ||
7 | * alternative is preserved, the direction is actually selected by the | ||
8 | * specific controller, and this should work in most cases. | ||
9 | */ | ||
10 | |||
11 | #include <asm/arch/mfp.h> | ||
12 | #include <asm/arch/mfp-pxa2xx.h> | ||
13 | |||
14 | /* GPIO */ | ||
15 | #define GPIO85_GPIO MFP_CFG_IN(GPIO85, AF0) | ||
16 | #define GPIO86_GPIO MFP_CFG_IN(GPIO86, AF0) | ||
17 | #define GPIO87_GPIO MFP_CFG_IN(GPIO87, AF0) | ||
18 | #define GPIO88_GPIO MFP_CFG_IN(GPIO88, AF0) | ||
19 | #define GPIO89_GPIO MFP_CFG_IN(GPIO89, AF0) | ||
20 | #define GPIO90_GPIO MFP_CFG_IN(GPIO90, AF0) | ||
21 | #define GPIO91_GPIO MFP_CFG_IN(GPIO91, AF0) | ||
22 | #define GPIO92_GPIO MFP_CFG_IN(GPIO92, AF0) | ||
23 | #define GPIO93_GPIO MFP_CFG_IN(GPIO93, AF0) | ||
24 | #define GPIO94_GPIO MFP_CFG_IN(GPIO94, AF0) | ||
25 | #define GPIO95_GPIO MFP_CFG_IN(GPIO95, AF0) | ||
26 | #define GPIO96_GPIO MFP_CFG_IN(GPIO96, AF0) | ||
27 | #define GPIO97_GPIO MFP_CFG_IN(GPIO97, AF0) | ||
28 | #define GPIO98_GPIO MFP_CFG_IN(GPIO98, AF0) | ||
29 | #define GPIO99_GPIO MFP_CFG_IN(GPIO99, AF0) | ||
30 | #define GPIO100_GPIO MFP_CFG_IN(GPIO100, AF0) | ||
31 | #define GPIO101_GPIO MFP_CFG_IN(GPIO101, AF0) | ||
32 | #define GPIO102_GPIO MFP_CFG_IN(GPIO102, AF0) | ||
33 | #define GPIO103_GPIO MFP_CFG_IN(GPIO103, AF0) | ||
34 | #define GPIO104_GPIO MFP_CFG_IN(GPIO104, AF0) | ||
35 | #define GPIO105_GPIO MFP_CFG_IN(GPIO105, AF0) | ||
36 | #define GPIO106_GPIO MFP_CFG_IN(GPIO106, AF0) | ||
37 | #define GPIO107_GPIO MFP_CFG_IN(GPIO107, AF0) | ||
38 | #define GPIO108_GPIO MFP_CFG_IN(GPIO108, AF0) | ||
39 | #define GPIO109_GPIO MFP_CFG_IN(GPIO109, AF0) | ||
40 | #define GPIO110_GPIO MFP_CFG_IN(GPIO110, AF0) | ||
41 | #define GPIO111_GPIO MFP_CFG_IN(GPIO111, AF0) | ||
42 | #define GPIO112_GPIO MFP_CFG_IN(GPIO112, AF0) | ||
43 | #define GPIO113_GPIO MFP_CFG_IN(GPIO113, AF0) | ||
44 | #define GPIO114_GPIO MFP_CFG_IN(GPIO114, AF0) | ||
45 | #define GPIO115_GPIO MFP_CFG_IN(GPIO115, AF0) | ||
46 | #define GPIO116_GPIO MFP_CFG_IN(GPIO116, AF0) | ||
47 | #define GPIO117_GPIO MFP_CFG_IN(GPIO117, AF0) | ||
48 | #define GPIO118_GPIO MFP_CFG_IN(GPIO118, AF0) | ||
49 | #define GPIO119_GPIO MFP_CFG_IN(GPIO119, AF0) | ||
50 | #define GPIO120_GPIO MFP_CFG_IN(GPIO120, AF0) | ||
51 | |||
52 | /* Crystal and Clock Signals */ | ||
53 | #define GPIO9_HZ_CLK MFP_CFG_OUT(GPIO9, AF1, DRIVE_LOW) | ||
54 | #define GPIO10_HZ_CLK MFP_CFG_OUT(GPIO10, AF1, DRIVE_LOW) | ||
55 | #define GPIO11_48_MHz MFP_CFG_OUT(GPIO11, AF3, DRIVE_LOW) | ||
56 | #define GPIO12_48_MHz MFP_CFG_OUT(GPIO12, AF3, DRIVE_LOW) | ||
57 | #define GPIO13_CLK_EXT MFP_CFG_IN(GPIO13, AF1) | ||
58 | |||
59 | /* OS Timer Signals */ | ||
60 | #define GPIO11_EXT_SYNC_0 MFP_CFG_IN(GPIO11, AF1) | ||
61 | #define GPIO12_EXT_SYNC_1 MFP_CFG_IN(GPIO12, AF1) | ||
62 | #define GPIO9_CHOUT_0 MFP_CFG_OUT(GPIO9, AF3, DRIVE_LOW) | ||
63 | #define GPIO10_CHOUT_1 MFP_CFG_OUT(GPIO10, AF3, DRIVE_LOW) | ||
64 | #define GPIO11_CHOUT_0 MFP_CFG_OUT(GPIO11, AF1, DRIVE_LOW) | ||
65 | #define GPIO12_CHOUT_1 MFP_CFG_OUT(GPIO12, AF1, DRIVE_LOW) | ||
66 | |||
67 | /* SDRAM and Static Memory I/O Signals */ | ||
68 | #define GPIO20_nSDCS_2 MFP_CFG_OUT(GPIO20, AF1, DRIVE_HIGH) | ||
69 | #define GPIO21_nSDCS_3 MFP_CFG_OUT(GPIO21, AF1, DRIVE_HIGH) | ||
70 | #define GPIO15_nCS_1 MFP_CFG_OUT(GPIO15, AF2, DRIVE_HIGH) | ||
71 | #define GPIO78_nCS_2 MFP_CFG_OUT(GPIO78, AF2, DRIVE_HIGH) | ||
72 | #define GPIO79_nCS_3 MFP_CFG_OUT(GPIO79, AF2, DRIVE_HIGH) | ||
73 | #define GPIO80_nCS_4 MFP_CFG_OUT(GPIO80, AF2, DRIVE_HIGH) | ||
74 | #define GPIO33_nCS_5 MFP_CFG_OUT(GPIO33, AF2, DRIVE_HIGH) | ||
75 | |||
76 | /* Miscellaneous I/O and DMA Signals */ | ||
77 | #define GPIO21_DVAL_0 MFP_CFG_OUT(GPIO21, AF2, DRIVE_HIGH) | ||
78 | #define GPIO116_DVAL_0 MFP_CFG_OUT(GPIO116, AF1, DRIVE_HIGH) | ||
79 | #define GPIO33_DVAL_1 MFP_CFG_OUT(GPIO33, AF1, DRIVE_HIGH) | ||
80 | #define GPIO96_DVAL_1 MFP_CFG_OUT(GPIO96, AF2, DRIVE_HIGH) | ||
81 | #define GPIO18_RDY MFP_CFG_IN(GPIO18, AF1) | ||
82 | #define GPIO20_DREQ_0 MFP_CFG_IN(GPIO20, AF1) | ||
83 | #define GPIO115_DREQ_0 MFP_CFG_IN(GPIO115, AF1) | ||
84 | #define GPIO80_DREQ_1 MFP_CFG_IN(GPIO80, AF1) | ||
85 | #define GPIO97_DREQ_1 MFP_CFG_IN(GPIO97, AF2) | ||
86 | #define GPIO85_DREQ_2 MFP_CFG_IN(GPIO85, AF2) | ||
87 | #define GPIO100_DREQ_2 MFP_CFG_IN(GPIO100, AF2) | ||
88 | |||
89 | /* Alternate Bus Master Mode I/O Signals */ | ||
90 | #define GPIO20_MBREQ MFP_CFG_IN(GPIO20, AF2) | ||
91 | #define GPIO80_MBREQ MFP_CFG_IN(GPIO80, AF2) | ||
92 | #define GPIO96_MBREQ MFP_CFG_IN(GPIO96, AF2) | ||
93 | #define GPIO115_MBREQ MFP_CFG_IN(GPIO115, AF3) | ||
94 | #define GPIO21_MBGNT MFP_CFG_OUT(GPIO21, AF3, DRIVE_LOW) | ||
95 | #define GPIO33_MBGNT MFP_CFG_OUT(GPIO33, AF3, DRIVE_LOW) | ||
96 | #define GPIO97_MBGNT MFP_CFG_OUT(GPIO97, AF2, DRIVE_LOW) | ||
97 | #define GPIO116_MBGNT MFP_CFG_OUT(GPIO116, AF3, DRIVE_LOW) | ||
98 | |||
99 | /* PC CARD */ | ||
100 | #define GPIO15_nPCE_1 MFP_CFG_OUT(GPIO15, AF1, DRIVE_HIGH) | ||
101 | #define GPIO85_nPCE_1 MFP_CFG_OUT(GPIO85, AF1, DRIVE_HIGH) | ||
102 | #define GPIO86_nPCE_1 MFP_CFG_OUT(GPIO86, AF1, DRIVE_HIGH) | ||
103 | #define GPIO102_nPCE_1 MFP_CFG_OUT(GPIO102, AF1, DRIVE_HIGH) | ||
104 | #define GPIO54_nPCE_2 MFP_CFG_OUT(GPIO54, AF2, DRIVE_HIGH) | ||
105 | #define GPIO78_nPCE_2 MFP_CFG_OUT(GPIO78, AF1, DRIVE_HIGH) | ||
106 | #define GPIO87_nPCE_2 MFP_CFG_IN(GPIO87, AF1) | ||
107 | #define GPIO55_nPREG MFP_CFG_OUT(GPIO55, AF2, DRIVE_HIGH) | ||
108 | #define GPIO50_nPIOR MFP_CFG_OUT(GPIO50, AF2, DRIVE_HIGH) | ||
109 | #define GPIO51_nPIOW MFP_CFG_OUT(GPIO51, AF2, DRIVE_HIGH) | ||
110 | #define GPIO49_nPWE MFP_CFG_OUT(GPIO49, AF2, DRIVE_HIGH) | ||
111 | #define GPIO48_nPOE MFP_CFG_OUT(GPIO48, AF2, DRIVE_HIGH) | ||
112 | #define GPIO57_nIOIS16 MFP_CFG_IN(GPIO57, AF1) | ||
113 | #define GPIO56_nPWAIT MFP_CFG_IN(GPIO56, AF1) | ||
114 | #define GPIO79_PSKTSEL MFP_CFG_OUT(GPIO79, AF1, DRIVE_HIGH) | ||
115 | |||
116 | /* I2C */ | ||
117 | #define GPIO117_I2C_SCL MFP_CFG_IN(GPIO117, AF1) | ||
118 | #define GPIO118_I2C_SDA MFP_CFG_IN(GPIO118, AF1) | ||
119 | |||
120 | /* FFUART */ | ||
121 | #define GPIO9_FFUART_CTS MFP_CFG_IN(GPIO9, AF3) | ||
122 | #define GPIO26_FFUART_CTS MFP_CFG_IN(GPIO26, AF3) | ||
123 | #define GPIO35_FFUART_CTS MFP_CFG_IN(GPIO35, AF1) | ||
124 | #define GPIO100_FFUART_CTS MFP_CFG_IN(GPIO100, AF3) | ||
125 | #define GPIO10_FFUART_DCD MFP_CFG_IN(GPIO10, AF1) | ||
126 | #define GPIO36_FFUART_DCD MFP_CFG_IN(GPIO36, AF1) | ||
127 | #define GPIO33_FFUART_DSR MFP_CFG_IN(GPIO33, AF2) | ||
128 | #define GPIO37_FFUART_DSR MFP_CFG_IN(GPIO37, AF1) | ||
129 | #define GPIO38_FFUART_RI MFP_CFG_IN(GPIO38, AF1) | ||
130 | #define GPIO89_FFUART_RI MFP_CFG_IN(GPIO89, AF3) | ||
131 | #define GPIO19_FFUART_RXD MFP_CFG_IN(GPIO19, AF3) | ||
132 | #define GPIO33_FFUART_RXD MFP_CFG_IN(GPIO33, AF1) | ||
133 | #define GPIO34_FFUART_RXD MFP_CFG_IN(GPIO34, AF1) | ||
134 | #define GPIO41_FFUART_RXD MFP_CFG_IN(GPIO41, AF1) | ||
135 | #define GPIO53_FFUART_RXD MFP_CFG_IN(GPIO53, AF1) | ||
136 | #define GPIO85_FFUART_RXD MFP_CFG_IN(GPIO85, AF1) | ||
137 | #define GPIO96_FFUART_RXD MFP_CFG_IN(GPIO96, AF3) | ||
138 | #define GPIO102_FFUART_RXD MFP_CFG_IN(GPIO102, AF3) | ||
139 | #define GPIO16_FFUART_TXD MFP_CFG_OUT(GPIO16, AF3, DRIVE_HIGH) | ||
140 | #define GPIO37_FFUART_TXD MFP_CFG_OUT(GPIO37, AF3, DRIVE_HIGH) | ||
141 | #define GPIO39_FFUART_TXD MFP_CFG_OUT(GPIO39, AF2, DRIVE_HIGH) | ||
142 | #define GPIO83_FFUART_TXD MFP_CFG_OUT(GPIO83, AF2, DRIVE_HIGH) | ||
143 | #define GPIO99_FFUART_TXD MFP_CFG_OUT(GPIO99, AF3, DRIVE_HIGH) | ||
144 | #define GPIO27_FFUART_RTS MFP_CFG_OUT(GPIO27, AF3, DRIVE_HIGH) | ||
145 | #define GPIO41_FFUART_RTS MFP_CFG_OUT(GPIO41, AF2, DRIVE_HIGH) | ||
146 | #define GPIO83_FFUART_RTS MFP_CFG_OUT(GPIO83, AF3, DRIVE_HIGH) | ||
147 | #define GPIO98_FFUART_RTS MFP_CFG_OUT(GPIO98, AF3, DRIVE_HIGH) | ||
148 | #define GPIO40_FFUART_DTR MFP_CFG_OUT(GPIO40, AF2, DRIVE_HIGH) | ||
149 | #define GPIO82_FFUART_DTR MFP_CFG_OUT(GPIO82, AF3, DRIVE_HIGH) | ||
150 | |||
151 | /* BTUART */ | ||
152 | #define GPIO44_BTUART_CTS MFP_CFG_IN(GPIO44, AF1) | ||
153 | #define GPIO42_BTUART_RXD MFP_CFG_IN(GPIO42, AF1) | ||
154 | #define GPIO45_BTUART_RTS MFP_CFG_OUT(GPIO45, AF2, DRIVE_HIGH) | ||
155 | #define GPIO43_BTUART_TXD MFP_CFG_OUT(GPIO43, AF2, DRIVE_HIGH) | ||
156 | |||
157 | /* STUART */ | ||
158 | #define GPIO46_STUART_RXD MFP_CFG_IN(GPIO46, AF2) | ||
159 | #define GPIO47_STUART_TXD MFP_CFG_OUT(GPIO47, AF1, DRIVE_HIGH) | ||
160 | |||
161 | /* FICP */ | ||
162 | #define GPIO42_FICP_RXD MFP_CFG_IN(GPIO42, AF2) | ||
163 | #define GPIO46_FICP_RXD MFP_CFG_IN(GPIO46, AF1) | ||
164 | #define GPIO43_FICP_TXD MFP_CFG_OUT(GPIO43, AF1, DRIVE_HIGH) | ||
165 | #define GPIO47_FICP_TXD MFP_CFG_OUT(GPIO47, AF2, DRIVE_HIGH) | ||
166 | |||
167 | /* PWM 0/1/2/3 */ | ||
168 | #define GPIO11_PWM2_OUT MFP_CFG_OUT(GPIO11, AF2, DRIVE_LOW) | ||
169 | #define GPIO12_PWM3_OUT MFP_CFG_OUT(GPIO12, AF2, DRIVE_LOW) | ||
170 | #define GPIO16_PWM0_OUT MFP_CFG_OUT(GPIO16, AF2, DRIVE_LOW) | ||
171 | #define GPIO17_PWM1_OUT MFP_CFG_OUT(GPIO17, AF2, DRIVE_LOW) | ||
172 | #define GPIO38_PWM1_OUT MFP_CFG_OUT(GPIO38, AF3, DRIVE_LOW) | ||
173 | #define GPIO46_PWM2_OUT MFP_CFG_OUT(GPIO46, AF2, DRIVE_LOW) | ||
174 | #define GPIO47_PWM3_OUT MFP_CFG_OUT(GPIO47, AF3, DRIVE_LOW) | ||
175 | #define GPIO79_PWM2_OUT MFP_CFG_OUT(GPIO79, AF3, DRIVE_LOW) | ||
176 | #define GPIO80_PWM3_OUT MFP_CFG_OUT(GPIO80, AF3, DRIVE_LOW) | ||
177 | #define GPIO115_PWM1_OUT MFP_CFG_OUT(GPIO115, AF3, DRIVE_LOW) | ||
178 | |||
179 | /* AC97 */ | ||
180 | #define GPIO31_AC97_SYNC MFP_CFG_OUT(GPIO31, AF2, DRIVE_LOW) | ||
181 | #define GPIO94_AC97_SYNC MFP_CFG_OUT(GPIO94, AF1, DRIVE_LOW) | ||
182 | #define GPIO30_AC97_SDATA_OUT MFP_CFG_OUT(GPIO30, AF2, DRIVE_LOW) | ||
183 | #define GPIO93_AC97_SDATA_OUT MFP_CFG_OUT(GPIO93, AF1, DRIVE_LOW) | ||
184 | #define GPIO45_AC97_SYSCLK MFP_CFG_OUT(GPIO45, AF1, DRIVE_LOW) | ||
185 | #define GPIO89_AC97_SYSCLK MFP_CFG_OUT(GPIO89, AF1, DRIVE_LOW) | ||
186 | #define GPIO98_AC97_SYSCLK MFP_CFG_OUT(GPIO98, AF1, DRIVE_LOW) | ||
187 | #define GPIO95_AC97_nRESET MFP_CFG_OUT(GPIO95, AF1, DRIVE_LOW) | ||
188 | #define GPIO113_AC97_nRESET MFP_CFG_OUT(GPIO113, AF2, DRIVE_LOW) | ||
189 | #define GPIO28_AC97_BITCLK MFP_CFG_IN(GPIO28, AF1) | ||
190 | #define GPIO29_AC97_SDATA_IN_0 MFP_CFG_IN(GPIO29, AF1) | ||
191 | #define GPIO116_AC97_SDATA_IN_0 MFP_CFG_IN(GPIO116, AF2) | ||
192 | #define GPIO99_AC97_SDATA_IN_1 MFP_CFG_IN(GPIO99, AF2) | ||
193 | |||
194 | /* I2S */ | ||
195 | #define GPIO28_I2S_BITCLK_IN MFP_CFG_IN(GPIO28, AF2) | ||
196 | #define GPIO28_I2S_BITCLK_OUT MFP_CFG_OUT(GPIO28, AF1, DRIVE_LOW) | ||
197 | #define GPIO29_I2S_SDATA_IN MFP_CFG_IN(GPIO29, AF2) | ||
198 | #define GPIO30_I2S_SDATA_OUT MFP_CFG_OUT(GPIO30, AF1, DRIVE_LOW) | ||
199 | #define GPIO31_I2S_SYNC MFP_CFG_OUT(GPIO31, AF1, DRIVE_LOW) | ||
200 | #define GPIO113_I2S_SYSCLK MFP_CFG_OUT(GPIO113, AF1, DRIVE_LOW) | ||
201 | |||
202 | /* SSP 1 */ | ||
203 | #define GPIO23_SSP1_SCLK MFP_CFG_OUT(GPIO23, AF2, DRIVE_LOW) | ||
204 | #define GPIO29_SSP1_SCLK MFP_CFG_IN(GPIO29, AF3) | ||
205 | #define GPIO27_SSP1_SYSCLK MFP_CFG_OUT(GPIO27, AF1, DRIVE_LOW) | ||
206 | #define GPIO53_SSP1_SYSCLK MFP_CFG_OUT(GPIO53, AF3, DRIVE_LOW) | ||
207 | #define GPIO24_SSP1_SFRM MFP_CFG_IN(GPIO24, AF2) | ||
208 | #define GPIO28_SSP1_SFRM MFP_CFG_IN(GPIO28, AF3) | ||
209 | #define GPIO25_SSP1_TXD MFP_CFG_OUT(GPIO25, AF2, DRIVE_LOW) | ||
210 | #define GPIO57_SSP1_TXD MFP_CFG_OUT(GPIO57, AF3, DRIVE_LOW) | ||
211 | #define GPIO26_SSP1_RXD MFP_CFG_IN(GPIO26, AF1) | ||
212 | #define GPIO27_SSP1_SCLKEN MFP_CFG_IN(GPIO27, AF2) | ||
213 | |||
214 | /* SSP 2 */ | ||
215 | #define GPIO19_SSP2_SCLK MFP_CFG_IN(GPIO19, AF1) | ||
216 | #define GPIO22_SSP2_SCLK MFP_CFG_IN(GPIO22, AF3) | ||
217 | #define GPIO29_SSP2_SCLK MFP_CFG_OUT(GPIO29, AF3, DRIVE_LOW) | ||
218 | #define GPIO36_SSP2_SCLK MFP_CFG_IN(GPIO36, AF2) | ||
219 | #define GPIO50_SSP2_SCLK MFP_CFG_IN(GPIO50, AF3) | ||
220 | #define GPIO22_SSP2_SYSCLK MFP_CFG_OUT(GPIO22, AF2, DRIVE_LOW) | ||
221 | #define GPIO14_SSP2_SFRM MFP_CFG_IN(GPIO14, AF2) | ||
222 | #define GPIO37_SSP2_SFRM MFP_CFG_IN(GPIO37, AF2) | ||
223 | #define GPIO87_SSP2_SFRM MFP_CFG_OUT(GPIO87, AF3, DRIVE_LOW) | ||
224 | #define GPIO88_SSP2_SFRM MFP_CFG_IN(GPIO88, AF3) | ||
225 | #define GPIO13_SSP2_TXD MFP_CFG_OUT(GPIO13, AF1, DRIVE_LOW) | ||
226 | #define GPIO38_SSP2_TXD MFP_CFG_OUT(GPIO38, AF2, DRIVE_LOW) | ||
227 | #define GPIO87_SSP2_TXD MFP_CFG_OUT(GPIO87, AF1, DRIVE_LOW) | ||
228 | #define GPIO89_SSP2_TXD MFP_CFG_OUT(GPIO89, AF3, DRIVE_LOW) | ||
229 | #define GPIO11_SSP2_RXD MFP_CFG_IN(GPIO11, AF2) | ||
230 | #define GPIO29_SSP2_RXD MFP_CFG_OUT(GPIO29, AF1, DRIVE_LOW) | ||
231 | #define GPIO40_SSP2_RXD MFP_CFG_IN(GPIO40, AF1) | ||
232 | #define GPIO86_SSP2_RXD MFP_CFG_IN(GPIO86, AF1) | ||
233 | #define GPIO88_SSP2_RXD MFP_CFG_IN(GPIO88, AF2) | ||
234 | #define GPIO22_SSP2_EXTCLK MFP_CFG_IN(GPIO22, AF1) | ||
235 | #define GPIO27_SSP2_EXTCLK MFP_CFG_IN(GPIO27, AF1) | ||
236 | #define GPIO22_SSP2_SCLKEN MFP_CFG_IN(GPIO22, AF2) | ||
237 | #define GPIO23_SSP2_SCLKEN MFP_CFG_IN(GPIO23, AF2) | ||
238 | |||
239 | /* SSP 3 */ | ||
240 | #define GPIO34_SSP3_SCLK MFP_CFG_IN(GPIO34, AF3) | ||
241 | #define GPIO40_SSP3_SCLK MFP_CFG_OUT(GPIO40, AF3, DRIVE_LOW) | ||
242 | #define GPIO52_SSP3_SCLK MFP_CFG_IN(GPIO52, AF2) | ||
243 | #define GPIO84_SSP3_SCLK MFP_CFG_IN(GPIO84, AF1) | ||
244 | #define GPIO45_SSP3_SYSCLK MFP_CFG_OUT(GPIO45, AF3, DRIVE_LOW) | ||
245 | #define GPIO35_SSP3_SFRM MFP_CFG_IN(GPIO35, AF3) | ||
246 | #define GPIO39_SSP3_SFRM MFP_CFG_IN(GPIO39, AF3) | ||
247 | #define GPIO83_SSP3_SFRM MFP_CFG_IN(GPIO83, AF1) | ||
248 | #define GPIO35_SSP3_TXD MFP_CFG_OUT(GPIO35, AF3, DRIVE_LOW) | ||
249 | #define GPIO38_SSP3_TXD MFP_CFG_OUT(GPIO38, AF1, DRIVE_LOW) | ||
250 | #define GPIO81_SSP3_TXD MFP_CFG_OUT(GPIO81, AF1, DRIVE_LOW) | ||
251 | #define GPIO41_SSP3_RXD MFP_CFG_IN(GPIO41, AF3) | ||
252 | #define GPIO82_SSP3_RXD MFP_CFG_IN(GPIO82, AF1) | ||
253 | #define GPIO89_SSP3_RXD MFP_CFG_IN(GPIO89, AF1) | ||
254 | |||
255 | /* MMC */ | ||
256 | #define GPIO32_MMC_CLK MFP_CFG_OUT(GPIO32, AF2, DRIVE_LOW) | ||
257 | #define GPIO92_MMC_DAT_0 MFP_CFG_IN(GPIO92, AF1) | ||
258 | #define GPIO109_MMC_DAT_1 MFP_CFG_IN(GPIO109, AF1) | ||
259 | #define GPIO110_MMC_DAT_2 MFP_CFG_IN(GPIO110, AF1) | ||
260 | #define GPIO111_MMC_DAT_3 MFP_CFG_IN(GPIO111, AF1) | ||
261 | #define GPIO112_MMC_CMD MFP_CFG_IN(GPIO112, AF1) | ||
262 | |||
263 | /* LCD */ | ||
264 | #define GPIO58_LCD_LDD_0 MFP_CFG_OUT(GPIO58, AF2, DRIVE_LOW) | ||
265 | #define GPIO59_LCD_LDD_1 MFP_CFG_OUT(GPIO59, AF2, DRIVE_LOW) | ||
266 | #define GPIO60_LCD_LDD_2 MFP_CFG_OUT(GPIO60, AF2, DRIVE_LOW) | ||
267 | #define GPIO61_LCD_LDD_3 MFP_CFG_OUT(GPIO61, AF2, DRIVE_LOW) | ||
268 | #define GPIO62_LCD_LDD_4 MFP_CFG_OUT(GPIO62, AF2, DRIVE_LOW) | ||
269 | #define GPIO63_LCD_LDD_5 MFP_CFG_OUT(GPIO63, AF2, DRIVE_LOW) | ||
270 | #define GPIO64_LCD_LDD_6 MFP_CFG_OUT(GPIO64, AF2, DRIVE_LOW) | ||
271 | #define GPIO65_LCD_LDD_7 MFP_CFG_OUT(GPIO65, AF2, DRIVE_LOW) | ||
272 | #define GPIO66_LCD_LDD_8 MFP_CFG_OUT(GPIO66, AF2, DRIVE_LOW) | ||
273 | #define GPIO67_LCD_LDD_9 MFP_CFG_OUT(GPIO67, AF2, DRIVE_LOW) | ||
274 | #define GPIO68_LCD_LDD_10 MFP_CFG_OUT(GPIO68, AF2, DRIVE_LOW) | ||
275 | #define GPIO69_LCD_LDD_11 MFP_CFG_OUT(GPIO69, AF2, DRIVE_LOW) | ||
276 | #define GPIO70_LCD_LDD_12 MFP_CFG_OUT(GPIO70, AF2, DRIVE_LOW) | ||
277 | #define GPIO71_LCD_LDD_13 MFP_CFG_OUT(GPIO71, AF2, DRIVE_LOW) | ||
278 | #define GPIO72_LCD_LDD_14 MFP_CFG_OUT(GPIO72, AF2, DRIVE_LOW) | ||
279 | #define GPIO73_LCD_LDD_15 MFP_CFG_OUT(GPIO73, AF2, DRIVE_LOW) | ||
280 | #define GPIO86_LCD_LDD_16 MFP_CFG_OUT(GPIO86, AF2, DRIVE_LOW) | ||
281 | #define GPIO87_LCD_LDD_17 MFP_CFG_OUT(GPIO87, AF2, DRIVE_LOW) | ||
282 | #define GPIO74_LCD_FCLK MFP_CFG_OUT(GPIO74, AF2, DRIVE_LOW) | ||
283 | #define GPIO75_LCD_LCLK MFP_CFG_OUT(GPIO75, AF2, DRIVE_LOW) | ||
284 | #define GPIO76_LCD_PCLK MFP_CFG_OUT(GPIO76, AF2, DRIVE_LOW) | ||
285 | #define GPIO77_LCD_BIAS MFP_CFG_OUT(GPIO77, AF2, DRIVE_LOW) | ||
286 | #define GPIO14_LCD_VSYNC MFP_CFG_IN(GPIO14, AF1) | ||
287 | #define GPIO19_LCD_CS MFP_CFG_OUT(GPIO19, AF2, DRIVE_LOW) | ||
288 | |||
289 | /* Keypad */ | ||
290 | #define GPIO93_KP_DKIN_0 MFP_CFG_IN(GPIO93, AF1) | ||
291 | #define GPIO94_KP_DKIN_1 MFP_CFG_IN(GPIO94, AF1) | ||
292 | #define GPIO95_KP_DKIN_2 MFP_CFG_IN(GPIO95, AF1) | ||
293 | #define GPIO96_KP_DKIN_3 MFP_CFG_IN(GPIO96, AF1) | ||
294 | #define GPIO97_KP_DKIN_4 MFP_CFG_IN(GPIO97, AF1) | ||
295 | #define GPIO98_KP_DKIN_5 MFP_CFG_IN(GPIO98, AF1) | ||
296 | #define GPIO99_KP_DKIN_6 MFP_CFG_IN(GPIO99, AF1) | ||
297 | #define GPIO13_KP_KDIN_7 MFP_CFG_IN(GPIO13, AF2) | ||
298 | #define GPIO100_KP_MKIN_0 MFP_CFG_IN(GPIO100, AF1) | ||
299 | #define GPIO101_KP_MKIN_1 MFP_CFG_IN(GPIO101, AF1) | ||
300 | #define GPIO102_KP_MKIN_2 MFP_CFG_IN(GPIO102, AF1) | ||
301 | #define GPIO34_KP_MKIN_3 MFP_CFG_IN(GPIO34, AF2) | ||
302 | #define GPIO37_KP_MKIN_3 MFP_CFG_IN(GPIO37, AF3) | ||
303 | #define GPIO97_KP_MKIN_3 MFP_CFG_IN(GPIO97, AF3) | ||
304 | #define GPIO98_KP_MKIN_4 MFP_CFG_IN(GPIO98, AF3) | ||
305 | #define GPIO38_KP_MKIN_4 MFP_CFG_IN(GPIO38, AF2) | ||
306 | #define GPIO39_KP_MKIN_4 MFP_CFG_IN(GPIO39, AF1) | ||
307 | #define GPIO16_KP_MKIN_5 MFP_CFG_IN(GPIO16, AF1) | ||
308 | #define GPIO90_KP_MKIN_5 MFP_CFG_IN(GPIO90, AF1) | ||
309 | #define GPIO99_KP_MKIN_5 MFP_CFG_IN(GPIO99, AF3) | ||
310 | #define GPIO17_KP_MKIN_6 MFP_CFG_IN(GPIO17, AF1) | ||
311 | #define GPIO91_KP_MKIN_6 MFP_CFG_IN(GPIO91, AF1) | ||
312 | #define GPIO95_KP_MKIN_6 MFP_CFG_IN(GPIO95, AF3) | ||
313 | #define GPIO13_KP_MKIN_7 MFP_CFG_IN(GPIO13, AF3) | ||
314 | #define GPIO36_KP_MKIN_7 MFP_CFG_IN(GPIO36, AF3) | ||
315 | #define GPIO103_KP_MKOUT_0 MFP_CFG_OUT(GPIO103, AF2, DRIVE_HIGH) | ||
316 | #define GPIO104_KP_MKOUT_1 MFP_CFG_OUT(GPIO104, AF2, DRIVE_HIGH) | ||
317 | #define GPIO105_KP_MKOUT_2 MFP_CFG_OUT(GPIO105, AF2, DRIVE_HIGH) | ||
318 | #define GPIO106_KP_MKOUT_3 MFP_CFG_OUT(GPIO106, AF2, DRIVE_HIGH) | ||
319 | #define GPIO107_KP_MKOUT_4 MFP_CFG_OUT(GPIO107, AF2, DRIVE_HIGH) | ||
320 | #define GPIO108_KP_MKOUT_5 MFP_CFG_OUT(GPIO108, AF2, DRIVE_HIGH) | ||
321 | #define GPIO35_KP_MKOUT_6 MFP_CFG_OUT(GPIO35, AF2, DRIVE_HIGH) | ||
322 | #define GPIO22_KP_MKOUT_7 MFP_CFG_OUT(GPIO22, AF1, DRIVE_HIGH) | ||
323 | #define GPIO40_KP_MKOUT_6 MFP_CFG_OUT(GPIO40, AF1, DRIVE_HIGH) | ||
324 | #define GPIO41_KP_MKOUT_7 MFP_CFG_OUT(GPIO41, AF1, DRIVE_HIGH) | ||
325 | #define GPIO96_KP_MKOUT_6 MFP_CFG_OUT(GPIO96, AF3, DRIVE_HIGH) | ||
326 | |||
327 | /* USB P3 */ | ||
328 | #define GPIO10_USB_P3_5 MFP_CFG_IN(GPIO10, AF3) | ||
329 | #define GPIO11_USB_P3_1 MFP_CFG_IN(GPIO11, AF3) | ||
330 | #define GPIO30_USB_P3_2 MFP_CFG_OUT(GPIO30, AF3, DRIVE_LOW) | ||
331 | #define GPIO31_USB_P3_6 MFP_CFG_OUT(GPIO31, AF3, DRIVE_LOW) | ||
332 | #define GPIO56_USB_P3_4 MFP_CFG_OUT(GPIO56, AF1, DRIVE_LOW) | ||
333 | #define GPIO86_USB_P3_5 MFP_CFG_IN(GPIO86, AF3) | ||
334 | #define GPIO87_USB_P3_1 MFP_CFG_IN(GPIO87, AF3) | ||
335 | #define GPIO90_USB_P3_5 MFP_CFG_IN(GPIO90, AF2) | ||
336 | #define GPIO91_USB_P3_1 MFP_CFG_IN(GPIO91, AF2) | ||
337 | #define GPIO113_USB_P3_3 MFP_CFG_IN(GPIO113, AF3) | ||
338 | |||
339 | /* USB P2 */ | ||
340 | #define GPIO34_USB_P2_2 MFP_CFG_OUT(GPIO34, AF1, DRIVE_LOW) | ||
341 | #define GPIO35_USB_P2_1 MFP_CFG_IN(GPIO35, AF2) | ||
342 | #define GPIO36_USB_P2_4 MFP_CFG_OUT(GPIO36, AF1, DRIVE_LOW) | ||
343 | #define GPIO37_USB_P2_8 MFP_CFG_OUT(GPIO37, AF1, DRIVE_LOW) | ||
344 | #define GPIO38_USB_P2_3 MFP_CFG_IN(GPIO38, AF3) | ||
345 | #define GPIO39_USB_P2_6 MFP_CFG_OUT(GPIO39, AF1, DRIVE_LOW) | ||
346 | #define GPIO40_USB_P2_5 MFP_CFG_IN(GPIO40, AF3) | ||
347 | #define GPIO41_USB_P2_7 MFP_CFG_IN(GPIO41, AF2) | ||
348 | #define GPIO53_USB_P2_3 MFP_CFG_IN(GPIO53, AF2) | ||
349 | |||
350 | /* USB Host Port 1/2 */ | ||
351 | #define GPIO88_USBH1_PWR MFP_CFG_IN(GPIO88, AF1) | ||
352 | #define GPIO89_USBH1_PEN MFP_CFG_OUT(GPIO89, AF2, DRIVE_LOW) | ||
353 | #define GPIO119_USBH2_PWR MFP_CFG_IN(GPIO119, AF1) | ||
354 | #define GPIO120_USBH2_PEN MFP_CFG_OUT(GPIO120, AF2, DRIVE_LOW) | ||
355 | |||
356 | /* QCI - default to Master Mode: CIF_FV/CIF_LV Direction In */ | ||
357 | #define GPIO115_CIF_DD_3 MFP_CFG_IN(GPIO115, AF2) | ||
358 | #define GPIO116_CIF_DD_2 MFP_CFG_IN(GPIO116, AF1) | ||
359 | #define GPIO12_CIF_DD_7 MFP_CFG_IN(GPIO12, AF2) | ||
360 | #define GPIO17_CIF_DD_6 MFP_CFG_IN(GPIO17, AF2) | ||
361 | #define GPIO23_CIF_MCLK MFP_CFG_OUT(GPIO23, AF1, DRIVE_LOW) | ||
362 | #define GPIO24_CIF_FV MFP_CFG_IN(GPIO24, AF1) | ||
363 | #define GPIO25_CIF_LV MFP_CFG_IN(GPIO25, AF1) | ||
364 | #define GPIO26_CIF_PCLK MFP_CFG_IN(GPIO26, AF2) | ||
365 | #define GPIO27_CIF_DD_0 MFP_CFG_IN(GPIO27, AF3) | ||
366 | #define GPIO42_CIF_MCLK MFP_CFG_OUT(GPIO42, AF3, DRIVE_LOW) | ||
367 | #define GPIO43_CIF_FV MFP_CFG_IN(GPIO43, AF3) | ||
368 | #define GPIO44_CIF_LV MFP_CFG_IN(GPIO44, AF3) | ||
369 | #define GPIO45_CIF_PCLK MFP_CFG_IN(GPIO45, AF3) | ||
370 | #define GPIO47_CIF_DD_0 MFP_CFG_IN(GPIO47, AF1) | ||
371 | #define GPIO48_CIF_DD_5 MFP_CFG_IN(GPIO48, AF1) | ||
372 | #define GPIO50_CIF_DD_3 MFP_CFG_IN(GPIO50, AF1) | ||
373 | #define GPIO51_CIF_DD_2 MFP_CFG_IN(GPIO51, AF1) | ||
374 | #define GPIO52_CIF_DD_4 MFP_CFG_IN(GPIO52, AF1) | ||
375 | #define GPIO53_CIF_MCLK MFP_CFG_OUT(GPIO53, AF2, DRIVE_LOW) | ||
376 | #define GPIO54_CIF_PCLK MFP_CFG_IN(GPIO54, AF3) | ||
377 | #define GPIO55_CIF_DD_1 MFP_CFG_IN(GPIO55, AF1) | ||
378 | #define GPIO81_CIF_DD_0 MFP_CFG_IN(GPIO81, AF2) | ||
379 | #define GPIO82_CIF_DD_5 MFP_CFG_IN(GPIO82, AF3) | ||
380 | #define GPIO83_CIF_DD_4 MFP_CFG_IN(GPIO83, AF3) | ||
381 | #define GPIO84_CIF_FV MFP_CFG_IN(GPIO84, AF3) | ||
382 | #define GPIO85_CIF_LV MFP_CFG_IN(GPIO85, AF3) | ||
383 | #define GPIO90_CIF_DD_4 MFP_CFG_IN(GPIO90, AF3) | ||
384 | #define GPIO91_CIF_DD_5 MFP_CFG_IN(GPIO91, AF3) | ||
385 | #define GPIO93_CIF_DD_6 MFP_CFG_IN(GPIO93, AF2) | ||
386 | #define GPIO94_CIF_DD_5 MFP_CFG_IN(GPIO94, AF2) | ||
387 | #define GPIO95_CIF_DD_4 MFP_CFG_IN(GPIO95, AF2) | ||
388 | #define GPIO98_CIF_DD_0 MFP_CFG_IN(GPIO98, AF2) | ||
389 | #define GPIO103_CIF_DD_3 MFP_CFG_IN(GPIO103, AF1) | ||
390 | #define GPIO104_CIF_DD_2 MFP_CFG_IN(GPIO104, AF1) | ||
391 | #define GPIO105_CIF_DD_1 MFP_CFG_IN(GPIO105, AF1) | ||
392 | #define GPIO106_CIF_DD_9 MFP_CFG_IN(GPIO106, AF1) | ||
393 | #define GPIO107_CIF_DD_8 MFP_CFG_IN(GPIO107, AF1) | ||
394 | #define GPIO108_CIF_DD_7 MFP_CFG_IN(GPIO108, AF1) | ||
395 | #define GPIO114_CIF_DD_1 MFP_CFG_IN(GPIO114, AF1) | ||
396 | |||
397 | /* Universal Subscriber ID Interface */ | ||
398 | #define GPIO114_UVS0 MFP_CFG_OUT(GPIO114, AF2, DRIVE_LOW) | ||
399 | #define GPIO115_nUVS1 MFP_CFG_OUT(GPIO115, AF2, DRIVE_LOW) | ||
400 | #define GPIO116_nUVS2 MFP_CFG_OUT(GPIO116, AF2, DRIVE_LOW) | ||
401 | #define GPIO14_UCLK MFP_CFG_OUT(GPIO14, AF3, DRIVE_LOW) | ||
402 | #define GPIO91_UCLK MFP_CFG_OUT(GPIO91, AF2, DRIVE_LOW) | ||
403 | #define GPIO19_nURST MFP_CFG_OUT(GPIO19, AF3, DRIVE_LOW) | ||
404 | #define GPIO90_nURST MFP_CFG_OUT(GPIO90, AF2, DRIVE_LOW) | ||
405 | #define GPIO116_UDET MFP_CFG_IN(GPIO116, AF3) | ||
406 | #define GPIO114_UEN MFP_CFG_OUT(GPIO114, AF1, DRIVE_LOW) | ||
407 | #define GPIO115_UEN MFP_CFG_OUT(GPIO115, AF1, DRIVE_LOW) | ||
408 | |||
409 | /* Mobile Scalable Link (MSL) Interface */ | ||
410 | #define GPIO81_BB_OB_DAT_0 MFP_CFG_OUT(GPIO81, AF2, DRIVE_LOW) | ||
411 | #define GPIO48_BB_OB_DAT_1 MFP_CFG_OUT(GPIO48, AF1, DRIVE_LOW) | ||
412 | #define GPIO50_BB_OB_DAT_2 MFP_CFG_OUT(GPIO50, AF1, DRIVE_LOW) | ||
413 | #define GPIO51_BB_OB_DAT_3 MFP_CFG_OUT(GPIO51, AF1, DRIVE_LOW) | ||
414 | #define GPIO52_BB_OB_CLK MFP_CFG_OUT(GPIO52, AF1, DRIVE_LOW) | ||
415 | #define GPIO53_BB_OB_STB MFP_CFG_OUT(GPIO53, AF1, DRIVE_LOW) | ||
416 | #define GPIO54_BB_OB_WAIT MFP_CFG_IN(GPIO54, AF2) | ||
417 | #define GPIO82_BB_IB_DAT_0 MFP_CFG_IN(GPIO82, AF2) | ||
418 | #define GPIO55_BB_IB_DAT_1 MFP_CFG_IN(GPIO55, AF2) | ||
419 | #define GPIO56_BB_IB_DAT_2 MFP_CFG_IN(GPIO56, AF2) | ||
420 | #define GPIO57_BB_IB_DAT_3 MFP_CFG_IN(GPIO57, AF2) | ||
421 | #define GPIO83_BB_IB_CLK MFP_CFG_IN(GPIO83, AF2) | ||
422 | #define GPIO84_BB_IB_STB MFP_CFG_IN(GPIO84, AF2) | ||
423 | #define GPIO85_BB_IB_WAIT MFP_CFG_OUT(GPIO85, AF2, DRIVE_LOW) | ||
424 | |||
425 | /* Memory Stick Host Controller */ | ||
426 | #define GPIO92_MSBS MFP_CFG_OUT(GPIO92, AF2, DRIVE_LOW) | ||
427 | #define GPIO109_MSSDIO MFP_CFG_IN(GPIO109, AF2) | ||
428 | #define GPIO112_nMSINS MFP_CFG_IN(GPIO112, AF2) | ||
429 | #define GPIO32_MSSCLK MFP_CFG_OUT(GPIO32, AF1, DRIVE_LOW) | ||
430 | |||
431 | #endif /* __ASM_ARCH_MFP_PXA27X_H */ | ||
diff --git a/include/asm-arm/arch-pxa/mfp-pxa2xx.h b/include/asm-arm/arch-pxa/mfp-pxa2xx.h new file mode 100644 index 000000000000..bec6acfcc8cf --- /dev/null +++ b/include/asm-arm/arch-pxa/mfp-pxa2xx.h | |||
@@ -0,0 +1,131 @@ | |||
1 | #ifndef __ASM_ARCH_MFP_PXA2XX_H | ||
2 | #define __ASM_ARCH_MFP_PXA2XX_H | ||
3 | |||
4 | #include <asm/arch/mfp.h> | ||
5 | |||
6 | /* | ||
7 | * the following MFP_xxx bit definitions in mfp.h are re-used for pxa2xx: | ||
8 | * | ||
9 | * MFP_PIN(x) | ||
10 | * MFP_AFx | ||
11 | * MFP_LPM_DRIVE_{LOW, HIGH} | ||
12 | * MFP_LPM_EDGE_x | ||
13 | * | ||
14 | * other MFP_x bit definitions will be ignored | ||
15 | * | ||
16 | * and adds the below two bits specifically for pxa2xx: | ||
17 | * | ||
18 | * bit 23 - Input/Output (PXA2xx specific) | ||
19 | * bit 24 - Wakeup Enable(PXA2xx specific) | ||
20 | */ | ||
21 | |||
22 | #define MFP_DIR_IN (0x0 << 23) | ||
23 | #define MFP_DIR_OUT (0x1 << 23) | ||
24 | #define MFP_DIR_MASK (0x1 << 23) | ||
25 | #define MFP_DIR(x) (((x) >> 23) & 0x1) | ||
26 | |||
27 | #define MFP_LPM_WAKEUP_ENABLE (0x1 << 24) | ||
28 | #define WAKEUP_ON_EDGE_RISE (MFP_LPM_WAKEUP_ENABLE | MFP_LPM_EDGE_RISE) | ||
29 | #define WAKEUP_ON_EDGE_FALL (MFP_LPM_WAKEUP_ENABLE | MFP_LPM_EDGE_FALL) | ||
30 | #define WAKEUP_ON_EDGE_BOTH (MFP_LPM_WAKEUP_ENABLE | MFP_LPM_EDGE_BOTH) | ||
31 | |||
32 | /* specifically for enabling wakeup on keypad GPIOs */ | ||
33 | #define WAKEUP_ON_LEVEL_HIGH (MFP_LPM_WAKEUP_ENABLE) | ||
34 | |||
35 | #define MFP_CFG_IN(pin, af) \ | ||
36 | ((MFP_CFG_DEFAULT & ~(MFP_AF_MASK | MFP_DIR_MASK)) |\ | ||
37 | (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DIR_IN)) | ||
38 | |||
39 | /* NOTE: pins configured as output _must_ provide a low power state, | ||
40 | * and this state should help to minimize the power dissipation. | ||
41 | */ | ||
42 | #define MFP_CFG_OUT(pin, af, state) \ | ||
43 | ((MFP_CFG_DEFAULT & ~(MFP_AF_MASK | MFP_DIR_MASK | MFP_LPM_STATE_MASK)) |\ | ||
44 | (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DIR_OUT | MFP_LPM_##state)) | ||
45 | |||
46 | /* Common configurations for pxa25x and pxa27x | ||
47 | * | ||
48 | * Note: pins configured as GPIO are always initialized to input | ||
49 | * so not to cause any side effect | ||
50 | */ | ||
51 | #define GPIO0_GPIO MFP_CFG_IN(GPIO0, AF0) | ||
52 | #define GPIO1_GPIO MFP_CFG_IN(GPIO1, AF0) | ||
53 | #define GPIO9_GPIO MFP_CFG_IN(GPIO9, AF0) | ||
54 | #define GPIO10_GPIO MFP_CFG_IN(GPIO10, AF0) | ||
55 | #define GPIO11_GPIO MFP_CFG_IN(GPIO11, AF0) | ||
56 | #define GPIO12_GPIO MFP_CFG_IN(GPIO12, AF0) | ||
57 | #define GPIO13_GPIO MFP_CFG_IN(GPIO13, AF0) | ||
58 | #define GPIO14_GPIO MFP_CFG_IN(GPIO14, AF0) | ||
59 | #define GPIO15_GPIO MFP_CFG_IN(GPIO15, AF0) | ||
60 | #define GPIO16_GPIO MFP_CFG_IN(GPIO16, AF0) | ||
61 | #define GPIO17_GPIO MFP_CFG_IN(GPIO17, AF0) | ||
62 | #define GPIO18_GPIO MFP_CFG_IN(GPIO18, AF0) | ||
63 | #define GPIO19_GPIO MFP_CFG_IN(GPIO19, AF0) | ||
64 | #define GPIO20_GPIO MFP_CFG_IN(GPIO20, AF0) | ||
65 | #define GPIO21_GPIO MFP_CFG_IN(GPIO21, AF0) | ||
66 | #define GPIO22_GPIO MFP_CFG_IN(GPIO22, AF0) | ||
67 | #define GPIO23_GPIO MFP_CFG_IN(GPIO23, AF0) | ||
68 | #define GPIO24_GPIO MFP_CFG_IN(GPIO24, AF0) | ||
69 | #define GPIO25_GPIO MFP_CFG_IN(GPIO25, AF0) | ||
70 | #define GPIO26_GPIO MFP_CFG_IN(GPIO26, AF0) | ||
71 | #define GPIO27_GPIO MFP_CFG_IN(GPIO27, AF0) | ||
72 | #define GPIO28_GPIO MFP_CFG_IN(GPIO28, AF0) | ||
73 | #define GPIO29_GPIO MFP_CFG_IN(GPIO29, AF0) | ||
74 | #define GPIO30_GPIO MFP_CFG_IN(GPIO30, AF0) | ||
75 | #define GPIO31_GPIO MFP_CFG_IN(GPIO31, AF0) | ||
76 | #define GPIO32_GPIO MFP_CFG_IN(GPIO32, AF0) | ||
77 | #define GPIO33_GPIO MFP_CFG_IN(GPIO33, AF0) | ||
78 | #define GPIO34_GPIO MFP_CFG_IN(GPIO34, AF0) | ||
79 | #define GPIO35_GPIO MFP_CFG_IN(GPIO35, AF0) | ||
80 | #define GPIO36_GPIO MFP_CFG_IN(GPIO36, AF0) | ||
81 | #define GPIO37_GPIO MFP_CFG_IN(GPIO37, AF0) | ||
82 | #define GPIO38_GPIO MFP_CFG_IN(GPIO38, AF0) | ||
83 | #define GPIO39_GPIO MFP_CFG_IN(GPIO39, AF0) | ||
84 | #define GPIO40_GPIO MFP_CFG_IN(GPIO40, AF0) | ||
85 | #define GPIO41_GPIO MFP_CFG_IN(GPIO41, AF0) | ||
86 | #define GPIO42_GPIO MFP_CFG_IN(GPIO42, AF0) | ||
87 | #define GPIO43_GPIO MFP_CFG_IN(GPIO43, AF0) | ||
88 | #define GPIO44_GPIO MFP_CFG_IN(GPIO44, AF0) | ||
89 | #define GPIO45_GPIO MFP_CFG_IN(GPIO45, AF0) | ||
90 | #define GPIO46_GPIO MFP_CFG_IN(GPIO46, AF0) | ||
91 | #define GPIO47_GPIO MFP_CFG_IN(GPIO47, AF0) | ||
92 | #define GPIO48_GPIO MFP_CFG_IN(GPIO48, AF0) | ||
93 | #define GPIO49_GPIO MFP_CFG_IN(GPIO49, AF0) | ||
94 | #define GPIO50_GPIO MFP_CFG_IN(GPIO50, AF0) | ||
95 | #define GPIO51_GPIO MFP_CFG_IN(GPIO51, AF0) | ||
96 | #define GPIO52_GPIO MFP_CFG_IN(GPIO52, AF0) | ||
97 | #define GPIO53_GPIO MFP_CFG_IN(GPIO53, AF0) | ||
98 | #define GPIO54_GPIO MFP_CFG_IN(GPIO54, AF0) | ||
99 | #define GPIO55_GPIO MFP_CFG_IN(GPIO55, AF0) | ||
100 | #define GPIO56_GPIO MFP_CFG_IN(GPIO56, AF0) | ||
101 | #define GPIO57_GPIO MFP_CFG_IN(GPIO57, AF0) | ||
102 | #define GPIO58_GPIO MFP_CFG_IN(GPIO58, AF0) | ||
103 | #define GPIO59_GPIO MFP_CFG_IN(GPIO59, AF0) | ||
104 | #define GPIO60_GPIO MFP_CFG_IN(GPIO60, AF0) | ||
105 | #define GPIO61_GPIO MFP_CFG_IN(GPIO61, AF0) | ||
106 | #define GPIO62_GPIO MFP_CFG_IN(GPIO62, AF0) | ||
107 | #define GPIO63_GPIO MFP_CFG_IN(GPIO63, AF0) | ||
108 | #define GPIO64_GPIO MFP_CFG_IN(GPIO64, AF0) | ||
109 | #define GPIO65_GPIO MFP_CFG_IN(GPIO65, AF0) | ||
110 | #define GPIO66_GPIO MFP_CFG_IN(GPIO66, AF0) | ||
111 | #define GPIO67_GPIO MFP_CFG_IN(GPIO67, AF0) | ||
112 | #define GPIO68_GPIO MFP_CFG_IN(GPIO68, AF0) | ||
113 | #define GPIO69_GPIO MFP_CFG_IN(GPIO69, AF0) | ||
114 | #define GPIO70_GPIO MFP_CFG_IN(GPIO70, AF0) | ||
115 | #define GPIO71_GPIO MFP_CFG_IN(GPIO71, AF0) | ||
116 | #define GPIO72_GPIO MFP_CFG_IN(GPIO72, AF0) | ||
117 | #define GPIO73_GPIO MFP_CFG_IN(GPIO73, AF0) | ||
118 | #define GPIO74_GPIO MFP_CFG_IN(GPIO74, AF0) | ||
119 | #define GPIO75_GPIO MFP_CFG_IN(GPIO75, AF0) | ||
120 | #define GPIO76_GPIO MFP_CFG_IN(GPIO76, AF0) | ||
121 | #define GPIO77_GPIO MFP_CFG_IN(GPIO77, AF0) | ||
122 | #define GPIO78_GPIO MFP_CFG_IN(GPIO78, AF0) | ||
123 | #define GPIO79_GPIO MFP_CFG_IN(GPIO79, AF0) | ||
124 | #define GPIO80_GPIO MFP_CFG_IN(GPIO80, AF0) | ||
125 | #define GPIO81_GPIO MFP_CFG_IN(GPIO81, AF0) | ||
126 | #define GPIO82_GPIO MFP_CFG_IN(GPIO82, AF0) | ||
127 | #define GPIO83_GPIO MFP_CFG_IN(GPIO83, AF0) | ||
128 | #define GPIO84_GPIO MFP_CFG_IN(GPIO84, AF0) | ||
129 | |||
130 | extern void pxa2xx_mfp_config(unsigned long *mfp_cfgs, int num); | ||
131 | #endif /* __ASM_ARCH_MFP_PXA2XX_H */ | ||