mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 16:57:20 +00:00
hv: debug: Enable MMIO UART support
New board, EHL CRB, does not have legacy port IO UART. Even the PCI UART are not work due to BIOS's bug workaround(the BARs on LPSS PCI are reset after BIOS hand over control to OS). For ACRN console usage, expose the debug UART via ACPI PnP device (access by MMIO) and add support in hypervisor debug code. Another special thing is that register width of UART of EHL CRB is 1byte. Introduce reg_width for each struct console_uart. Tracked-On: #4937 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
This commit is contained in:
@@ -126,6 +126,11 @@ config SERIAL_LEGACY
|
||||
Select this if the serial port shall be accessed via legacy port in/out
|
||||
instructions.
|
||||
|
||||
config SERIAL_MMIO
|
||||
bool "MMIO"
|
||||
help
|
||||
Select this if the serial port shall be accessed via MMIO registers.
|
||||
|
||||
endchoice
|
||||
|
||||
config SERIAL_PCI_BDF
|
||||
@@ -144,6 +149,13 @@ config SERIAL_PIO_BASE
|
||||
The base address of the serial ports. This is logically 16-bit but used
|
||||
as a 64-bit integer.
|
||||
|
||||
config SERIAL_MMIO_BASE
|
||||
hex "Base address of MMIO UART"
|
||||
depends on SERIAL_MMIO
|
||||
default 0xfe040000
|
||||
help
|
||||
The base address of the MMIO serial port.
|
||||
|
||||
config CONSOLE_LOGLEVEL_DEFAULT
|
||||
int "Default loglevel on the serial console"
|
||||
depends on !RELEASE
|
||||
|
Reference in New Issue
Block a user