From 062c729c9b7a405c42b020480a1a76f24c5cb868 Mon Sep 17 00:00:00 2001 From: Jonathan Neuschäfer Date: Mon, 9 Apr 2018 17:25:44 +0200 Subject: drivers/uart: Allow the 8250IO driver only on x86 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: https://review.coreboot.org/25631 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Ronald G. Minnich --- src/drivers/uart/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/drivers/uart/Kconfig') 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 -- cgit v1.2.3