[OpenWrt-Devel] [PATCH] target/linux/generic: allow up to 4 8250-compatible UARTS
Alexey.Brodkin at synopsys.com
Mon Aug 24 16:37:05 EDT 2015
On Mon, 2015-08-24 at 22:27 +0200, Hauke Mehrtens wrote:
> 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>
> > ---
> 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.
Ok I'll add those in my board's config.
Still just for my understanding I'm wondering what benefit this limitation
allows to achieve?
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel