drivers/char: Add several newer PCI IDs for Intel LPSS
PATCH 1/1 drivers/char: Add several newer PCI IDs for Intel LPSS
Include PCI IDs of UART ports on Intel RPL - PTL. Based on Linux driver and hwdata, they all share the same parameters.
---
I tested it on MTL, but given Linux driver handles them uniformly, I assume others work too.
The list gets quite long, would it be preferred to have a macro to reduce (at least similar) entries to one-liners? In Linux driver it looks this way:
/* MTL-P */
{ PCI_VDEVICE(INTEL, 0x7e25), .driver_data = (kernel_ulong_t)&bxt_uart_info },
{ PCI_VDEVICE(INTEL, 0x7e26), .driver_data = (kernel_ulong_t)&bxt_uart_info },
...
---
xen/drivers/char/ns16550.c | 132 +++++++++++++++++++++++++++++++++++++
1 file changed, 132 insertions(+)xen/drivers/char/ns16550.c +132 -0
@@ -1245,6 +1245,138 @@ static const struct ns16550_config __initconst uart_config[] = .dev_id = 0x7adc, .param = param_intel_lpss }, +/* Intel Corp. RPL-S LPSS PCI UART #0 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0x7a28, + .param = param_intel_lpss + }, + /* Intel Corp. RPL-S LPSS PCI UART #1 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0x7a29, + .param = param_intel_lpss + }, + /* Intel Corp. RPL-S LPSS PCI UART #2 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0x7a5c, + .param = param_intel_lpss + }, + /* Intel Corp. LNL-M LPSS PCI UART #0 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0xa825, + .param = param_intel_lpss + }, + /* Intel Corp. LNL-M LPSS PCI UART #1 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0xa826, + .param = param_intel_lpss + }, + /* Intel Corp. LNL-M LPSS PCI UART #2 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0xa852, + .param = param_intel_lpss + }, + /* Intel Corp. MTL-P LPSS PCI UART #0 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0x7e25, + .param = param_intel_lpss + }, + /* Intel Corp. MTL-P LPSS PCI UART #1 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0x7e26, + .param = param_intel_lpss + }, + /* Intel Corp. MTL-P LPSS PCI UART #2 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0x7e52, + .param = param_intel_lpss + }, + /* Intel Corp. MTP-S LPSS PCI UART #0 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0x7f28, + .param = param_intel_lpss + }, + /* Intel Corp. MTP-S LPSS PCI UART #1 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0x7f29, + .param = param_intel_lpss + }, + /* Intel Corp. MTP-S LPSS PCI UART #2 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0x7f5c, + .param = param_intel_lpss + }, + /* Intel Corp. MTP-S LPSS PCI UART #3 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0x7f5d, + .param = param_intel_lpss + }, + /* Intel Corp. NVL-H LPSS PCI UART #0 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0xd325, + .param = param_intel_lpss + }, + /* Intel Corp. NVL-H LPSS PCI UART #1 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0xd326, + .param = param_intel_lpss + }, + /* Intel Corp. NVL-H LPSS PCI UART #2 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0xd352, + .param = param_intel_lpss + }, + /* Intel Corp. PTL-H LPSS PCI UART #0 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0xe325, + .param = param_intel_lpss + }, + /* Intel Corp. PTL-H LPSS PCI UART #1 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0xe326, + .param = param_intel_lpss + }, + /* Intel Corp. PTL-H LPSS PCI UART #2 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0xe352, + .param = param_intel_lpss + }, + /* Intel Corp. PTL-P LPSS PCI UART #0 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0xe425, + .param = param_intel_lpss + }, + /* Intel Corp. PTL-P LPSS PCI UART #1 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0xe426, + .param = param_intel_lpss + }, + /* Intel Corp. PTL-P LPSS PCI UART #2 */ + { + .vendor_id = PCI_VENDOR_ID_INTEL, + .dev_id = 0xe452, + .param = param_intel_lpss + }, /* WCH CH382 2S1P */ { .vendor_id = PCI_VENDOR_ID_WCHIC,
Signature · 1 line
2.54.0
Quoted 4 lines · Marek Marczykowski-Górecki
Include PCI IDs of UART ports on Intel RPL - PTL. Based on Linux driver and hwdata, they all share the same parameters.
Signed-off-by Marek Marczykowski-Górecki <[email protected]>
albeit imo better with the subject prefix changed to drivers/ns16550 or just ns16550.
Quoted 11 lines
---
I tested it on MTL, but given Linux driver handles them uniformly, I assume others work too.The list gets quite long, would it be preferred to have a macro to reduce (at least similar) entries to one-liners? In Linux driver it looks this way:
/* MTL-P */ { PCI_VDEVICE(INTEL, 0x7e25), .driver_data = (kernel_ulong_t)&bxt_uart_info }, { PCI_VDEVICE(INTEL, 0x7e26), .driver_data = (kernel_ulong_t)&bxt_uart_info }, ...
Yes, with a bloat like this it may be nice to get volume shrunk down. In a follow-on patch, perhaps. I also notice the Linux driver has uses of bxt_uart_info beyond the set we have plus what is being added here (not the least, considering the identifier, BXT itself).
Jan