diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2018-04-09 17:25:44 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-04-27 09:05:45 +0000 |
commit | 062c729c9b7a405c42b020480a1a76f24c5cb868 (patch) | |
tree | 3d18941b696fcab918850ca820b57e8fb1abb620 /src/drivers/uart | |
parent | 6cc813a5e9b557d10af8bb26f2a9d48ab4c9510d (diff) |
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>
Diffstat (limited to 'src/drivers/uart')
-rw-r--r-- | src/drivers/uart/Kconfig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/uart/Kconfig b/src/drivers/uart/Kconfig index bfc5ccee61..39d20a3c2e 100644 --- a/src/drivers/uart/Kconfig +++ b/src/drivers/uart/Kconfig @@ -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 |