aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-10-19 10:07:43 +0000
committerJohn Crispin <blogic@openwrt.org>2015-10-19 10:07:43 +0000
commit43f0639aae90e44f73ff61eba2a442ff151af313 (patch)
treee766a20829662946f808e3982c46d50be73b00af
parent8d5e529d09bc777828ee65eb3888dd4aea1dc471 (diff)
downloadmaster-187ad058-43f0639aae90e44f73ff61eba2a442ff151af313.tar.gz
master-187ad058-43f0639aae90e44f73ff61eba2a442ff151af313.tar.bz2
master-187ad058-43f0639aae90e44f73ff61eba2a442ff151af313.zip
ramips: add a baurate hack
When talking to an atmel controller we need 9600 or 250000 baud. as 250000 does not exist we use 2500000. Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47204 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ramips/patches-3.18/0304-baud_250000.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.18/0304-baud_250000.patch b/target/linux/ramips/patches-3.18/0304-baud_250000.patch
new file mode 100644
index 0000000000..eebe31c918
--- /dev/null
+++ b/target/linux/ramips/patches-3.18/0304-baud_250000.patch
@@ -0,0 +1,12 @@
+--- a/drivers/tty/serial/serial_core.c
++++ b/drivers/tty/serial/serial_core.c
+@@ -356,6 +356,9 @@
+ else if (flags == UPF_SPD_WARP)
+ altbaud = 460800;
+
++ if (tty_termios_baud_rate(termios) == 2500000)
++ return 250000;
++
+ for (try = 0; try < 2; try++) {
+ baud = tty_termios_baud_rate(termios);
+