]> git.karo-electronics.de Git - karo-tx-linux.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)
commit96a5d18bc1338786fecac73599f1681f59a59a8e
tree2de0fdf95d09910b777e7b233148226494a9e9df
parent31c6ba97d1671b0a853197fe54a05e0b07ce2631
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