[OpenWrt-Devel] [PATCH] target/linux/generic: allow up to 4 8250-compatible UARTS

Hauke Mehrtens hauke at hauke-m.de
Mon Aug 24 16:27:39 EDT 2015


On 08/24/2015 10:23 PM, Alexey Brodkin wrote:
> 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>
> ---

Nack.

Most targets are using 2 uarts. If your target needs more just overwrite
this in your target/linux/<target name>/config-4.1 file like it is done
in target/linux/sunxi/config-4.1 for example.

Hauke
_______________________________________________
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