drivers/tty/serial/8250: Make Aspeed VUART SIRQ polarity configurable
authorOskar Senft <osk@google.com>
Thu, 5 Sep 2019 14:41:28 +0000 (10:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 13:05:20 +0000 (15:05 +0200)
commit8d310c9107a2a3f19dc7bb54dd50f70c65ef5409
tree592efbfd53e0e49e310682cf7909322f09a8524f
parenta8afc193558a42d5df724c84436ae3b2446d8a30
drivers/tty/serial/8250: Make Aspeed VUART SIRQ polarity configurable

Make the SIRQ polarity for Aspeed AST24xx/25xx VUART configurable via
sysfs. This setting need to be changed on specific host platforms
depending on the selected host interface (LPC / eSPI).

The setting is configurable via sysfs rather than device-tree to stay in
line with other related configurable settings.

On AST2500 the VUART SIRQ polarity can be auto-configured by reading a
bit from a configuration register, e.g. the LPC/eSPI interface
configuration bit.

Tested: Verified on TYAN S7106 mainboard.
Signed-off-by: Oskar Senft <osk@google.com>
Link: https://lore.kernel.org/r/20190905144130.220713-1-osk@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/stable/sysfs-driver-aspeed-vuart
drivers/tty/serial/8250/8250_aspeed_vuart.c
drivers/tty/serial/8250/Kconfig