summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorChristian Hemp <c.hemp@phytec.de>2014-02-19 11:38:44 +0100
committerJustin Waters <justin.waters@timesys.com>2014-05-14 14:13:30 -0400
commit8111a93023fa3b1a3f8eb0556e172241b8b48c67 (patch)
tree4e6a66d8d22f28b676ee8203845c553d635d9331 /arch
parent7548ec89a358c4501c8f23d2a36b29cc9a348ecf (diff)
imx6q: add rtscts flag to uart 2
Without this flage the following command will not work. stty -F /dev/ttymxc2 crtscts stty: /dev/ttymxc2: cannot perform all requested operation Fix: root@phyFLEX-i:~ stty -F /dev/ttymxc2 -a speed 9600 baud;stty: /dev/ttymxc2 intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts ^^^^^^ not set root@phyFLEX-i:~ stty -F /dev/ttymxc2 crtscts root@phyFLEX-i:~ stty -F /dev/ttymxc2 -a speed 9600 baud;stty: /dev/ttymxc2 intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 hupcl -cstopb cread clocal crtscts ^^^^^ set Signed-off-by: Christian Hemp <c.hemp@phytec.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx6/board-mx6q_phyflex.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-mx6/board-mx6q_phyflex.c b/arch/arm/mach-mx6/board-mx6q_phyflex.c
index 50f62837cba8..743e324e4a10 100644
--- a/arch/arm/mach-mx6/board-mx6q_phyflex.c
+++ b/arch/arm/mach-mx6/board-mx6q_phyflex.c
@@ -180,9 +180,13 @@ static struct anatop_thermal_platform_data
.name = "anatop_thermal",
};
+static struct imxuart_platform_data uart2_data __initconst = {
+ .flags = IMXUART_HAVE_RTSCTS
+};
+
static inline void mx6_phyflex_init_uart(void)
{
- imx6q_add_imx_uart(2, NULL);
+ imx6q_add_imx_uart(2, &uart2_data);
imx6q_add_imx_uart(3, NULL);
}