diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2024-10-17 20:00:19 +0200 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2024-10-28 22:06:35 +0000 |
commit | 485f51cf73c13a25a9b41b5c2c0e4498a4df2764 (patch) | |
tree | 63fb0967f8c29fd831039546c20e97a43d619406 /src/soc/intel | |
parent | 3625b0e0eee8a6fff230199c370e5d74579898b2 (diff) |
soc/intel/xeon_sp: Fix iiostack.asl
Align DSDT names with SSDT naming scheme, as provided by
iio_domain_set_acpi_name() and hide unused devices by implementing
the _STA method as done on newer platforms.
Change-Id: I8488907f28a78a6f71046dba54ba9cbd4b0652eb
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84795
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shuo Liu <shuo.liu@intel.com>
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/xeon_sp/acpi/gen1/iiostack.asl | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/soc/intel/xeon_sp/acpi/gen1/iiostack.asl b/src/soc/intel/xeon_sp/acpi/gen1/iiostack.asl index 0dd39a0f54..53e144a650 100644 --- a/src/soc/intel/xeon_sp/acpi/gen1/iiostack.asl +++ b/src/soc/intel/xeon_sp/acpi/gen1/iiostack.asl @@ -6,6 +6,17 @@ Name (_HID, EisaId ("PNP0A08") /* PCI Express Bus */) \ Name (_CID, EisaId ("PNP0A03") /* PCI Bus */) \ Name (_UID, 0x##id) \ + Method (_STA, 0, NotSerialized) \ + { \ + If (CondRefOf (_CRS)) \ + { \ + Return (0xf) \ + } \ + Else \ + { \ + Return (0) \ + } \ + } \ Method (_PRT, 0, NotSerialized) \ { \ If (PICM) \ @@ -60,14 +71,15 @@ } \ } +// Keep in sync with iio_domain_set_acpi_name()! MAKE_IIO_DEV(00, 00) MAKE_IIO_DEV(01, 10) MAKE_IIO_DEV(02, 20) MAKE_IIO_DEV(03, 28) #if (CONFIG_MAX_SOCKET > 1) -MAKE_IIO_DEV(06, 40) -MAKE_IIO_DEV(07, 50) -MAKE_IIO_DEV(08, 60) -MAKE_IIO_DEV(09, 68) +MAKE_IIO_DEV(20, 40) +MAKE_IIO_DEV(21, 50) +MAKE_IIO_DEV(22, 60) +MAKE_IIO_DEV(23, 68) #endif |