aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx2/mach-cpuimx27.c
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2010-05-19 12:45:59 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-07-26 08:17:39 -0400
commit2d66c7803595da0d4bcd949825d598575f5de9e6 (patch)
treed5ddf60d0829ccdc938a64297d4d8577bb2fcd74 /arch/arm/mach-mx2/mach-cpuimx27.c
parenta465242eb03906ff3a0c04102c6353080f8e535f (diff)
cpuimx27 and mbimx27: allow fine control of UART4 and SDHC2 usage
Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx2/mach-cpuimx27.c')
-rw-r--r--arch/arm/mach-mx2/mach-cpuimx27.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-mx2/mach-cpuimx27.c b/arch/arm/mach-mx2/mach-cpuimx27.c
index 1f616dcaabc9..5c6a16b45891 100644
--- a/arch/arm/mach-mx2/mach-cpuimx27.c
+++ b/arch/arm/mach-mx2/mach-cpuimx27.c
@@ -49,10 +49,12 @@ static int eukrea_cpuimx27_pins[] = {
49 PE14_PF_UART1_CTS, 49 PE14_PF_UART1_CTS,
50 PE15_PF_UART1_RTS, 50 PE15_PF_UART1_RTS,
51 /* UART4 */ 51 /* UART4 */
52#if defined(MACH_EUKREA_CPUIMX27_USEUART4)
52 PB26_AF_UART4_RTS, 53 PB26_AF_UART4_RTS,
53 PB28_AF_UART4_TXD, 54 PB28_AF_UART4_TXD,
54 PB29_AF_UART4_CTS, 55 PB29_AF_UART4_CTS,
55 PB31_AF_UART4_RXD, 56 PB31_AF_UART4_RXD,
57#endif
56 /* FEC */ 58 /* FEC */
57 PD0_AIN_FEC_TXD0, 59 PD0_AIN_FEC_TXD0,
58 PD1_AIN_FEC_TXD1, 60 PD1_AIN_FEC_TXD1,
@@ -76,12 +78,14 @@ static int eukrea_cpuimx27_pins[] = {
76 PD17_PF_I2C_DATA, 78 PD17_PF_I2C_DATA,
77 PD18_PF_I2C_CLK, 79 PD18_PF_I2C_CLK,
78 /* SDHC2 */ 80 /* SDHC2 */
81#if defined(CONFIG_MACH_EUKREA_CPUIMX27_USESDHC2)
79 PB4_PF_SD2_D0, 82 PB4_PF_SD2_D0,
80 PB5_PF_SD2_D1, 83 PB5_PF_SD2_D1,
81 PB6_PF_SD2_D2, 84 PB6_PF_SD2_D2,
82 PB7_PF_SD2_D3, 85 PB7_PF_SD2_D3,
83 PB8_PF_SD2_CMD, 86 PB8_PF_SD2_CMD,
84 PB9_PF_SD2_CLK, 87 PB9_PF_SD2_CLK,
88#endif
85#if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) 89#if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE)
86 /* Quad UART's IRQ */ 90 /* Quad UART's IRQ */
87 GPIO_PORTD | 22 | GPIO_GPIO | GPIO_IN, 91 GPIO_PORTD | 22 | GPIO_GPIO | GPIO_IN,
@@ -202,6 +206,8 @@ static void __init eukrea_cpuimx27_init(void)
202#if defined(CONFIG_MACH_EUKREA_CPUIMX27_USESDHC2) 206#if defined(CONFIG_MACH_EUKREA_CPUIMX27_USESDHC2)
203 /* SDHC2 can be used for Wifi */ 207 /* SDHC2 can be used for Wifi */
204 mxc_register_device(&mxc_sdhc_device1, NULL); 208 mxc_register_device(&mxc_sdhc_device1, NULL);
209#endif
210#if defined(MACH_EUKREA_CPUIMX27_USEUART4)
205 /* in which case UART4 is also used for Bluetooth */ 211 /* in which case UART4 is also used for Bluetooth */
206 mxc_register_device(&mxc_uart_device3, &uart_pdata[1]); 212 mxc_register_device(&mxc_uart_device3, &uart_pdata[1]);
207#endif 213#endif