]> git.baikalelectronics.ru Git - uboot.git/commit
serial: 16550: Add port type as driver data
authorMarek Vasut <marex@denx.de>
Thu, 1 Dec 2016 01:06:30 +0000 (02:06 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 19 Dec 2016 17:26:37 +0000 (12:26 -0500)
commitd2ec8071ce3f7131c41304b8c3a6d922bf35f526
tree8fd32182add56a0b37ddff71daf87c5e8bcd8db5
parent7a793187a254614ffbc21310fa0bba423bd86823
serial: 16550: Add port type as driver data

Add driver data to each compatible string to identify the type of
the port. Since all the ports in the driver are entirely compatible
with 16550 for now, all are marked with PORT_NS16550. But, there
are ports which have specific quirks, like the JZ4780 UART, which
do not have any DT property to denote the quirks. Instead, Linux
uses the compatible string to discern such ports and enable the
necessary quirks.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Cc: Simon Glass <sjg@chromium.org>
drivers/serial/ns16550.c