]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250_pci: Add support for 16 port Exar boards
authorSoeren Grunewald <soeren.grunewald@desy.de>
Tue, 28 Apr 2015 14:29:49 +0000 (16:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Apr 2015 18:22:31 +0000 (20:22 +0200)
commitc4af650334eaf1eabdd3a74f7ee5983d6e2993e9
tree2de0fdf95d09910b777e7b233148226494a9e9df
parentfe80c2766a4ac291bf3077f6c9f2d5087541e79c
serial: 8250_pci: Add support for 16 port Exar boards

The Exar XR17V358 chip usually provides only 8 ports. But two chips can be
combined to act as a single 16 port chip. Therefor one chip is configured
as master the second as slave by connecting the mode pin to VCC (master)
or GND (slave).

Then the master chip is reporting a different device-id depending on
whether a slave is detected or not. The UARTs 8-15 are addressed from
0x2000-0x3fff. So the offset of 0x400 from UART to UART can be used to
address all 16 ports as before.

See: https://www.exar.com/common/content/document.ashx?id=1587 page 11

Signed-off-by: Soeren Grunewald <soeren.grunewald@desy.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pci.c