summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2024-07-17 10:23:58 +0000
committerSubrata Banik <subratabanik@google.com>2024-07-19 03:55:18 +0000
commit661382960fc16e65ca6d8cfbe206da795b004e0d (patch)
treebae1dbe70db3fed87a9cb86217ce8fb231d65b28
parent49eda5b5243701742a886b3ae49da8b993a78421 (diff)
device/pci_ids: Add new Intel PTL device IDs for UARTx
This patch adds new UARTx PCI device IDs for Intel PTL-U and PTL-H. Additionally, updates the UART driver's `pci_device_ids` list to include these new IDs. Source: Intel PTL-EDS vol 1. Document Number 815002, Rev 0.51 Chapter 2 BUG=b:347669091 TEST=Able to build google/fatcat. Change-Id: I384a753f08ae5a752cef6009d07104e8ff4b4a6e Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83510 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--src/include/device/pci_ids.h9
-rw-r--r--src/soc/intel/common/block/uart/uart.c18
2 files changed, 18 insertions, 9 deletions
diff --git a/src/include/device/pci_ids.h b/src/include/device/pci_ids.h
index 967f657047..69bfc92312 100644
--- a/src/include/device/pci_ids.h
+++ b/src/include/device/pci_ids.h
@@ -3996,9 +3996,12 @@
#define PCI_DID_INTEL_LNL_UART1 0xa826
#define PCI_DID_INTEL_LNL_UART2 0xa852
-#define PCI_DID_INTEL_PTL_UART0 0xe425
-#define PCI_DID_INTEL_PTL_UART1 0xe426
-#define PCI_DID_INTEL_PTL_UART2 0xe452
+#define PCI_DID_INTEL_PTL_H_UART0 0xe425
+#define PCI_DID_INTEL_PTL_H_UART1 0xe426
+#define PCI_DID_INTEL_PTL_H_UART2 0xe452
+#define PCI_DID_INTEL_PTL_U_H_UART0 0xe325
+#define PCI_DID_INTEL_PTL_U_H_UART1 0xe326
+#define PCI_DID_INTEL_PTL_U_H_UART2 0xe352
/* Intel SPI device Ids */
#define PCI_DID_INTEL_LPT_LP_GSPI0 0x9c65
diff --git a/src/soc/intel/common/block/uart/uart.c b/src/soc/intel/common/block/uart/uart.c
index e454f7e91a..ef83f5342a 100644
--- a/src/soc/intel/common/block/uart/uart.c
+++ b/src/soc/intel/common/block/uart/uart.c
@@ -308,7 +308,8 @@ static const char *uart_acpi_hid(const struct device *dev)
static const char *uart_acpi_name(const struct device *dev)
{
switch (dev->device) {
- case PCI_DID_INTEL_PTL_UART0:
+ case PCI_DID_INTEL_PTL_H_UART0:
+ case PCI_DID_INTEL_PTL_U_H_UART0:
case PCI_DID_INTEL_LNL_UART0:
case PCI_DID_INTEL_ADP_P_UART0:
case PCI_DID_INTEL_APL_UART0:
@@ -317,7 +318,8 @@ static const char *uart_acpi_name(const struct device *dev)
case PCI_DID_INTEL_SPT_H_UART0:
case PCI_DID_INTEL_CNP_H_UART0:
return "UAR0";
- case PCI_DID_INTEL_PTL_UART1:
+ case PCI_DID_INTEL_PTL_H_UART1:
+ case PCI_DID_INTEL_PTL_U_H_UART1:
case PCI_DID_INTEL_LNL_UART1:
case PCI_DID_INTEL_ADP_P_UART1:
case PCI_DID_INTEL_APL_UART1:
@@ -326,7 +328,8 @@ static const char *uart_acpi_name(const struct device *dev)
case PCI_DID_INTEL_SPT_H_UART1:
case PCI_DID_INTEL_CNP_H_UART1:
return "UAR1";
- case PCI_DID_INTEL_PTL_UART2:
+ case PCI_DID_INTEL_PTL_H_UART2:
+ case PCI_DID_INTEL_PTL_U_H_UART2:
case PCI_DID_INTEL_LNL_UART2:
case PCI_DID_INTEL_ADP_P_UART2:
case PCI_DID_INTEL_APL_UART2:
@@ -354,9 +357,12 @@ struct device_operations uart_ops = {
};
static const unsigned short pci_device_ids[] = {
- PCI_DID_INTEL_PTL_UART0,
- PCI_DID_INTEL_PTL_UART1,
- PCI_DID_INTEL_PTL_UART2,
+ PCI_DID_INTEL_PTL_H_UART0,
+ PCI_DID_INTEL_PTL_H_UART1,
+ PCI_DID_INTEL_PTL_H_UART2,
+ PCI_DID_INTEL_PTL_U_H_UART0,
+ PCI_DID_INTEL_PTL_U_H_UART1,
+ PCI_DID_INTEL_PTL_U_H_UART2,
PCI_DID_INTEL_LNL_UART0,
PCI_DID_INTEL_LNL_UART1,
PCI_DID_INTEL_LNL_UART2,