[OpenWrt-Devel] [PATCH] target/linux/generic: allow up to 4 8250-compatible UARTS
Alexey Brodkin
Alexey.Brodkin at synopsys.com
Mon Aug 24 16:23:09 EDT 2015
Default value of both SERIAL_8250_NR_UARTS & SERIAL_8250_RUNTIME_UARTS is 4,
see: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/tty/serial/8250/Kconfig
And some boards rely on that default setting.
What's worse some boards use 3rd or even 4th UART as its primary
serial console.
For example Synopsys DesignWare SDP board, see "console=ttyS3,115200n8"
here: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/arc/boot/dts/axs101.dts
So having expected default value allows usage of kernel configs that are
closer to their upstream versions.
Cc: Jonas Gorski <jogo at openwrt.org>
Cc: Zoltan HERPAI <wigyori at uid0.hu>
Cc: Hauke Mehrtens <hauke at hauke-m.de>
Cc: Dirk Neukirchen <dirkneukirchen at web.de>
Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
---
target/linux/generic/config-4.1 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/generic/config-4.1 b/target/linux/generic/config-4.1
index de4c62c..c7d5871 100644
--- a/target/linux/generic/config-4.1
+++ b/target/linux/generic/config-4.1
@@ -3567,10 +3567,10 @@ CONFIG_SERIAL_8250_DMA=y
# CONFIG_SERIAL_8250_FOURPORT is not set
# CONFIG_SERIAL_8250_HUB6 is not set
# CONFIG_SERIAL_8250_MANY_PORTS is not set
-CONFIG_SERIAL_8250_NR_UARTS=2
+CONFIG_SERIAL_8250_NR_UARTS=4
# CONFIG_SERIAL_8250_PCI is not set
# CONFIG_SERIAL_8250_RSA is not set
-CONFIG_SERIAL_8250_RUNTIME_UARTS=2
+CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_SYSRQ is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
--
2.4.3
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list