diff options
author | Hector Palacios <hector.palacios@digi.com> | 2011-07-05 16:44:02 +0200 |
---|---|---|
committer | Hector Palacios <hector.palacios@digi.com> | 2011-09-01 10:36:34 +0200 |
commit | 0f22c55738543b55e07c5ec31402bb3951feb6bf (patch) | |
tree | 6318fc316fad91095fd98fe8c319a1c0d8dcae27 /arch/arm/mach-s3c2443 | |
parent | 6cad8f25534522c6af6cd1ea5db66af787d1c1cf (diff) |
ccw9m2443js: rs485 flow control support to wireless variant
Commit c05e4894b051df1f687c788cd8aacd608956f3a0 added RS485 support
to serial ports of the non-wireless variant only.
This commit adds it to the ccw9m2443js.
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
(cherry picked from commit 74869a529e2fedce01bd34defccdb2ad236dc9f2)
Diffstat (limited to 'arch/arm/mach-s3c2443')
-rw-r--r-- | arch/arm/mach-s3c2443/mach-ccw9m2443js.c | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c2443/mach-ccw9m2443js.c b/arch/arm/mach-s3c2443/mach-ccw9m2443js.c index 00729f0a69b8..d70089d3dba9 100644 --- a/arch/arm/mach-s3c2443/mach-ccw9m2443js.c +++ b/arch/arm/mach-s3c2443/mach-ccw9m2443js.c @@ -230,12 +230,21 @@ static struct s3c2410_uartcfg cc9m2443_uartcfgs[] __initdata = { .rx_cfg = S3C2443_GPH1_RXD0, .tx_gpio = S3C2410_GPH(0), .tx_cfg = S3C2443_GPH0_TXD0, +#if defined(CONFIG_SERIAL_S3C2410_PORTA_MODE_STANDARD) + .working_mode = S3C24XX_SERIAL_MODE_STANDARD, +#endif #if defined(CONFIG_SERIAL_S3C2410_PORTA_HWCTRL) .rts_gpio = S3C2410_GPH(9), .rts_cfg = S3C2443_GPH9_nRTS0, .cts_gpio = S3C2410_GPH(8), .cts_cfg = S3C2443_GPH8_nCTS0, #endif /* CONFIG_SERIAL_S3C2410_PORTA_HWCTRL */ +#if defined(CONFIG_SERIAL_S3C2410_PORTA_MODE_RS485) + .rts_gpio = S3C2410_GPH9, + .rts_cfg = S3C2410_GPH9_OUTP, + .rs485_rts_txlevel = CONFIG_SERIAL_S3C2410_PORTA_RS485_TXLEVEL, + .working_mode = S3C24XX_SERIAL_MODE_RS485, +#endif /* CONFIG_SERIAL_S3C2410_PORTA_MODE_RS485 */ }, #endif /* CONFIG_SERIAL_S3C2410_ENABLE_PORTA */ #ifdef CONFIG_SERIAL_S3C2410_ENABLE_PORTB @@ -249,12 +258,21 @@ static struct s3c2410_uartcfg cc9m2443_uartcfgs[] __initdata = { .rx_cfg = S3C2443_GPH3_RXD1, .tx_gpio = S3C2410_GPH(2), .tx_cfg = S3C2443_GPH2_TXD1, +#if defined(CONFIG_SERIAL_S3C2410_PORTB_MODE_STANDARD) + .working_mode = S3C24XX_SERIAL_MODE_STANDARD, +#endif #if defined(CONFIG_SERIAL_S3C2410_PORTB_HWCTRL) .rts_gpio = S3C2443_GPH(11), .rts_cfg = S3C2443_GPH11_nRTS1, .cts_gpio = S3C2410_GPH(10), .cts_cfg = S3C2443_GPH10_nCTS1, #endif /* CONFIG_SERIAL_S3C2410_PORTB_HWCTRL */ +#if defined(CONFIG_SERIAL_S3C2410_PORTB_MODE_RS485) + .rts_gpio = S3C2443_GPH11, + .rts_cfg = S3C2443_GPH11_OUTP, + .rs485_rts_txlevel = CONFIG_SERIAL_S3C2410_PORTB_RS485_TXLEVEL, + .working_mode = S3C24XX_SERIAL_MODE_RS485, +#endif /* CONFIG_SERIAL_S3C2410_PORTB_MODE_RS485 */ }, #endif /* CONFIG_SERIAL_S3C2410_ENABLE_PORTB */ #ifdef CONFIG_SERIAL_S3C2410_ENABLE_PORTC @@ -268,13 +286,21 @@ static struct s3c2410_uartcfg cc9m2443_uartcfgs[] __initdata = { .rx_cfg = S3C2443_GPH5_RXD2, .tx_gpio = S3C2410_GPH(4), .tx_cfg = S3C2443_GPH4_TXD2, +#if defined(CONFIG_SERIAL_S3C2410_PORTC_MODE_STANDARD) + .working_mode = S3C24XX_SERIAL_MODE_STANDARD, +#endif #if defined(CONFIG_SERIAL_S3C2410_PORTC_HWCTRL) .rts_gpio = S3C2410_GPH(6), .rts_cfg = S3C2443_GPH6_nRTS2, .cts_gpio = S3C2410_GPH(7), .cts_cfg = S3C2443_GPH7_nCTS2, #endif /* CONFIG_SERIAL_S3C2410_PORTC_HWCTRL */ - +#if defined(CONFIG_SERIAL_S3C2410_PORTC_MODE_RS485) + .rts_gpio = S3C2410_GPH6, + .rts_cfg = S3C2410_GPH6_OUTP, + .rs485_rts_txlevel = CONFIG_SERIAL_S3C2410_PORTC_RS485_TXLEVEL, + .working_mode = S3C24XX_SERIAL_MODE_RS485, +#endif /* CONFIG_SERIAL_S3C2410_PORTC_MODE_RS485 */ }, #endif /* CONFIG_SERIAL_S3C2410_ENABLE_PORTC */ #ifdef CONFIG_SERIAL_S3C2410_ENABLE_PORTD |