|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v3 2/2] ns16550: add support for ASIX AX99100 PCIe Multi-I/O controller
Add a PCI device table entry and matching parameter for the ASIX
AX99100 PCIe to Multi-I/O controller [125b:9910]. Each port on the
chip is a standalone PCI function, with UART registers on its I/O
BAR0.
Signed-off-by: Jiaqing Zhao <Zhao.Jiaqing@xxxxxxx>
---
xen/drivers/char/ns16550.c | 15 +++++++++++++++
xen/include/xen/pci_ids.h | 2 ++
2 files changed, 17 insertions(+)
diff --git a/xen/drivers/char/ns16550.c b/xen/drivers/char/ns16550.c
index cf10a06a3d..26503070dc 100644
--- a/xen/drivers/char/ns16550.c
+++ b/xen/drivers/char/ns16550.c
@@ -96,6 +96,7 @@ struct ns16550_config {
param_exar_xr17v358,
param_intel_lpss,
param_wch_ch382,
+ param_asix,
} param;
};
@@ -872,6 +873,14 @@ static const struct ns16550_config_param __initconst
uart_param[] = {
.bar0 = 1,
.max_ports = 2,
},
+ [param_asix] = {
+ .base_baud = 115200,
+ .reg_width = 1,
+ .fifo_size = 256,
+ .lsr_mask = UART_LSR_THRE,
+ .bar0 = 1,
+ .max_ports = 1,
+ },
};
static const struct ns16550_config __initconst uart_config[] =
@@ -1212,6 +1221,12 @@ static const struct ns16550_config __initconst
uart_config[] =
.dev_id = 0x3253,
.param = param_wch_ch382
},
+ /* ASIX AX99100 PCIe to Multi I/O Controller */
+ {
+ .vendor_id = PCI_VENDOR_ID_ASIX,
+ .dev_id = 0x9910,
+ .param = param_asix
+ },
};
static int __init
diff --git a/xen/include/xen/pci_ids.h b/xen/include/xen/pci_ids.h
index 15e938225c..fd424ef55d 100644
--- a/xen/include/xen/pci_ids.h
+++ b/xen/include/xen/pci_ids.h
@@ -5,6 +5,8 @@
#define PCI_VENDOR_ID_NVIDIA 0x10de
+#define PCI_VENDOR_ID_ASIX 0x125b
+
#define PCI_VENDOR_ID_PERICOM 0x12d8
#define PCI_VENDOR_ID_EXAR 0x13a8
--
2.53.0
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |