diff options
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/colibri-pxa320.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/colibri-pxa320.c b/arch/arm/mach-pxa/colibri-pxa320.c index 458c1a147b6c..494572825c7d 100644 --- a/arch/arm/mach-pxa/colibri-pxa320.c +++ b/arch/arm/mach-pxa/colibri-pxa320.c | |||
@@ -164,6 +164,37 @@ static inline void __init colibri_pxa320_init_ac97(void) | |||
164 | static inline void colibri_pxa320_init_ac97(void) {} | 164 | static inline void colibri_pxa320_init_ac97(void) {} |
165 | #endif | 165 | #endif |
166 | 166 | ||
167 | /* | ||
168 | * The following configuration is verified to work with the Toradex Orchid | ||
169 | * carrier board | ||
170 | */ | ||
171 | static mfp_cfg_t colibri_pxa320_uart_pin_config[] __initdata = { | ||
172 | /* UART 1 configuration (may be set by bootloader) */ | ||
173 | GPIO99_UART1_CTS, | ||
174 | GPIO104_UART1_RTS, | ||
175 | GPIO97_UART1_RXD, | ||
176 | GPIO98_UART1_TXD, | ||
177 | GPIO101_UART1_DTR, | ||
178 | GPIO103_UART1_DSR, | ||
179 | GPIO100_UART1_DCD, | ||
180 | GPIO102_UART1_RI, | ||
181 | |||
182 | /* UART 2 configuration */ | ||
183 | GPIO109_UART2_CTS, | ||
184 | GPIO112_UART2_RTS, | ||
185 | GPIO110_UART2_RXD, | ||
186 | GPIO111_UART2_TXD, | ||
187 | |||
188 | /* UART 3 configuration */ | ||
189 | GPIO30_UART3_RXD, | ||
190 | GPIO31_UART3_TXD, | ||
191 | }; | ||
192 | |||
193 | static void __init colibri_pxa320_init_uart(void) | ||
194 | { | ||
195 | pxa3xx_mfp_config(ARRAY_AND_SIZE(colibri_pxa320_uart_pin_config)); | ||
196 | } | ||
197 | |||
167 | void __init colibri_pxa320_init(void) | 198 | void __init colibri_pxa320_init(void) |
168 | { | 199 | { |
169 | colibri_pxa320_init_eth(); | 200 | colibri_pxa320_init_eth(); |
@@ -174,6 +205,7 @@ void __init colibri_pxa320_init(void) | |||
174 | colibri_pxa320_init_ac97(); | 205 | colibri_pxa320_init_ac97(); |
175 | colibri_pxa3xx_init_mmc(ARRAY_AND_SIZE(colibri_pxa320_mmc_pin_config), | 206 | colibri_pxa3xx_init_mmc(ARRAY_AND_SIZE(colibri_pxa320_mmc_pin_config), |
176 | mfp_to_gpio(MFP_PIN_GPIO28)); | 207 | mfp_to_gpio(MFP_PIN_GPIO28)); |
208 | colibri_pxa320_init_uart(); | ||
177 | } | 209 | } |
178 | 210 | ||
179 | MACHINE_START(COLIBRI320, "Toradex Colibri PXA320") | 211 | MACHINE_START(COLIBRI320, "Toradex Colibri PXA320") |