Author: blogic
Date: 2015-10-19 12:07:43 +0200 (Mon, 19 Oct 2015)
New Revision: 47204

Added:
   trunk/target/linux/ramips/patches-3.18/0304-baud_250000.patch
Log:
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 <[email protected]>

Added: trunk/target/linux/ramips/patches-3.18/0304-baud_250000.patch
===================================================================
--- trunk/target/linux/ramips/patches-3.18/0304-baud_250000.patch               
                (rev 0)
+++ trunk/target/linux/ramips/patches-3.18/0304-baud_250000.patch       
2015-10-19 10:07:43 UTC (rev 47204)
@@ -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);
+ 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to