acrn-config: refine ttys type for mapping MMIO

add ttys type for mapping MMIO

Tracked-On: #4798
Signed-off-by: Wei Liu <weix.w.liu@intel.com>
Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
Wei Liu 2020-04-24 13:30:20 +08:00 committed by wenlingz
parent 843579adf1
commit d4c9a5fa77
1 changed files with 5 additions and 2 deletions

View File

@ -11,9 +11,12 @@ TTY_PATH = '/sys/class/tty/'
SYS_IRQ_PATH = '/proc/interrupts' SYS_IRQ_PATH = '/proc/interrupts'
CPU_INFO_PATH = '/sys/devices/system/cpu/possible' CPU_INFO_PATH = '/sys/devices/system/cpu/possible'
# Please refer kernel_src/include/linux/serial_core.h
ttys_type = { ttys_type = {
'0': 'PORT', '0': 'PORT', # 8b I/O port access
'3': 'MMIO', '2': 'MMIO', # driver-specific
'3': 'MMIO', # 32b little endian
'6': 'MMIO', # 32b big endian
} }