drivers/uart: Allow the 8250IO driver only on x86

The driver relies on I/O space access functions (inb, etc.), which are
only available on x86.

Rather than explicitly disallowing it on ARM, allow it only on x86.

TEST=Configure for RISC-V, and see that "Serial port on SuperIO" is not
available in the "Generic Drivers" menu anymore.

Change-Id: Ib8e8c402264afeba6dc098683c5464af6edb3ba3
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/25631
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Jonathan Neuschäfer 2018-04-09 17:25:44 +02:00 committed by Patrick Georgi
parent 6cc813a5e9
commit 062c729c9b
1 changed files with 2 additions and 2 deletions

View File

@ -5,9 +5,9 @@ config DRIVERS_UART
config DRIVERS_UART_8250IO
bool "Serial port on SuperIO"
depends on !ARCH_ARM
depends on ARCH_X86
default n if NO_UART_ON_SUPERIO
default y if ARCH_X86
default y
config DRIVERS_UART_8250IO_SKIP_INIT
def_bool n