HV: allow disabling serial port via Kconfig

This patch allows to disable the serial port directly from Kconfig. This used
to only be possible from the command-line (by passing "uart=disabled"). To
disable the serial port via Kconfig, simply unselect the "Serial IO type"
option.

The default options do not seem to have any effect anymore (and were confusing
anyway) so they are removed and the serial port is enabled for various platforms
in their corresponding *.config file.

Tracked-On: #1481
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
Geoffroy Van Cutsem
2018-11-19 15:54:44 +01:00
committed by Xie, Nanlin
parent 584f6b7255
commit 26dc54ce37
6 changed files with 18 additions and 15 deletions

View File

@@ -16,7 +16,6 @@ static bool serial_port_mapped;
static bool uart_enabled = true;
#define UART_BASE_ADDRESS CONFIG_SERIAL_MMIO_BASE
#else
#warning "no uart base configure, please check!"
static bool serial_port_mapped;
static bool uart_enabled;
#define UART_BASE_ADDRESS 0UL