]> git.karo-electronics.de Git - linux-beck.git/commit
serial: 8250: simplify ralink/alchemy register remap selection
authorMans Rullgard <mans@mansr.com>
Tue, 15 Sep 2015 16:54:13 +0000 (17:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 18:09:21 +0000 (19:09 +0100)
commit9b2256c8274c72bacb7eca7dee5ffe85832cb5e0
tree8e00e3e6fa94ae0f35554a47adfd3531dbefa067
parentce59e48fdbad2aa6609ceb87e1306ec69e577e05
serial: 8250: simplify ralink/alchemy register remap selection

Some SoCs, including Ralink/Mediatek and Alchemy Au1xxx, have a
16550-like UART with a non-standard register layout.  These are
supported by a simple mapping table in 8250_port.c  Rather than
list every SoC type using this access mode in the ifdefs there,
allow selecting the SERIAL_8250_RT288X Kconfig option with any
system and default it to y for the known cases needing it.  The
help text is reworded accordingly.

This change simplifies adding support for other SoCs also using
the same UART.

The name of the option is a little misleading, but not knowing
the true origin of this UART, it is as good a choice as any.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c
drivers/tty/serial/8250/Kconfig