soc/intel/alderlake: Add missing ACPI device path names

A few ACPI device path name handlers are missing. Add handling
to ensure that these names are returned during acpi_device_path()
calls.

TEST=Built and tested on brya

Signed-off-by: Tarun Tuli <taruntuli@google.com>
Change-Id: I37d6dd5df921c931af72dd469c3f4067c61b0df3
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63984
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
Tarun Tuli 2022-05-03 20:34:32 +00:00 committed by Felix Held
parent 8e14df3b6f
commit d8d522884b
2 changed files with 8 additions and 0 deletions

View File

@ -75,6 +75,7 @@ const char *soc_acpi_name(const struct device *dev)
case SA_DEVFN_TBT2: return "TRP2"; case SA_DEVFN_TBT2: return "TRP2";
case SA_DEVFN_TBT3: return "TRP3"; case SA_DEVFN_TBT3: return "TRP3";
case SA_DEVFN_IPU: return "IPU0"; case SA_DEVFN_IPU: return "IPU0";
case SA_DEVFN_DPTF: return "DPTF";
case PCH_DEVFN_ISH: return "ISHB"; case PCH_DEVFN_ISH: return "ISHB";
case PCH_DEVFN_XHCI: return "XHCI"; case PCH_DEVFN_XHCI: return "XHCI";
case PCH_DEVFN_I2C0: return "I2C0"; case PCH_DEVFN_I2C0: return "I2C0";
@ -111,6 +112,9 @@ const char *soc_acpi_name(const struct device *dev)
case PCH_DEVFN_HDA: return "HDAS"; case PCH_DEVFN_HDA: return "HDAS";
case PCH_DEVFN_SMBUS: return "SBUS"; case PCH_DEVFN_SMBUS: return "SBUS";
case PCH_DEVFN_GBE: return "GLAN"; case PCH_DEVFN_GBE: return "GLAN";
case PCH_DEVFN_SRAM: return "SRAM";
case PCH_DEVFN_SPI: return "FSPI";
case PCH_DEVFN_CSE: return "HEC1";
#if CONFIG(SOC_INTEL_ALDERLAKE_PCH_N) #if CONFIG(SOC_INTEL_ALDERLAKE_PCH_N)
case PCH_DEVFN_EMMC: return "EMMC"; case PCH_DEVFN_EMMC: return "EMMC";
#endif #endif

View File

@ -308,24 +308,28 @@ static const char *uart_acpi_hid(const struct device *dev)
static const char *uart_acpi_name(const struct device *dev) static const char *uart_acpi_name(const struct device *dev)
{ {
switch (dev->device) { switch (dev->device) {
case PCI_DID_INTEL_ADP_P_UART0:
case PCI_DID_INTEL_APL_UART0: case PCI_DID_INTEL_APL_UART0:
case PCI_DID_INTEL_GLK_UART0: case PCI_DID_INTEL_GLK_UART0:
case PCI_DID_INTEL_SPT_UART0: case PCI_DID_INTEL_SPT_UART0:
case PCI_DID_INTEL_SPT_H_UART0: case PCI_DID_INTEL_SPT_H_UART0:
case PCI_DID_INTEL_CNP_H_UART0: case PCI_DID_INTEL_CNP_H_UART0:
return "UAR0"; return "UAR0";
case PCI_DID_INTEL_ADP_P_UART1:
case PCI_DID_INTEL_APL_UART1: case PCI_DID_INTEL_APL_UART1:
case PCI_DID_INTEL_GLK_UART1: case PCI_DID_INTEL_GLK_UART1:
case PCI_DID_INTEL_SPT_UART1: case PCI_DID_INTEL_SPT_UART1:
case PCI_DID_INTEL_SPT_H_UART1: case PCI_DID_INTEL_SPT_H_UART1:
case PCI_DID_INTEL_CNP_H_UART1: case PCI_DID_INTEL_CNP_H_UART1:
return "UAR1"; return "UAR1";
case PCI_DID_INTEL_ADP_P_UART2:
case PCI_DID_INTEL_APL_UART2: case PCI_DID_INTEL_APL_UART2:
case PCI_DID_INTEL_GLK_UART2: case PCI_DID_INTEL_GLK_UART2:
case PCI_DID_INTEL_SPT_UART2: case PCI_DID_INTEL_SPT_UART2:
case PCI_DID_INTEL_SPT_H_UART2: case PCI_DID_INTEL_SPT_H_UART2:
case PCI_DID_INTEL_CNP_H_UART2: case PCI_DID_INTEL_CNP_H_UART2:
return "UAR2"; return "UAR2";
case PCI_DID_INTEL_ADP_P_UART3:
case PCI_DID_INTEL_GLK_UART3: case PCI_DID_INTEL_GLK_UART3:
return "UAR3"; return "UAR3";
default: default: