diff options
author | John Crispin <john@openwrt.org> | 2015-10-19 10:07:43 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-10-19 10:07:43 +0000 |
commit | f5d5cb0114a18c854d3bbd19560a84f8b077521c (patch) | |
tree | 32e59f12ed38b1a7d4470ac17da35cc92269dd92 /target | |
parent | 51dd991d3957a33f102c9887da379263599c395f (diff) | |
download | upstream-f5d5cb0114a18c854d3bbd19560a84f8b077521c.tar.gz upstream-f5d5cb0114a18c854d3bbd19560a84f8b077521c.tar.bz2 upstream-f5d5cb0114a18c854d3bbd19560a84f8b077521c.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>
SVN-Revision: 47204
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ramips/patches-3.18/0304-baud_250000.patch | 12 |
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); + |