diff mbox series

[edk2,edk2-platforms,11/11] Silicon/AMD/Styx/AcpiPlatformDxe: disable KCS on pre-B1 silicon

Message ID 20181211183514.20948-12-ard.biesheuvel@linaro.org
State New
Headers show
Series final set of Styx cleanups | expand

Commit Message

Ard Biesheuvel Dec. 11, 2018, 6:35 p.m. UTC
Align the ACPI platform driver with the DT patching code, which only
enables the IPMI/KCS device node on B1 silicon (or later).

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

---
 Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatform.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.19.2

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox series

Patch

diff --git a/Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatform.c b/Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatform.c
index 9b1428fc00eb..259a708b7c2c 100644
--- a/Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatform.c
+++ b/Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatform.c
@@ -172,7 +172,8 @@  InstallSystemDescriptionTables (
       break;
 
     case SIGNATURE_64 ('S', 't', 'y', 'x', 'K', 'c', 's', ' '):
-      if (!FixedPcdGetBool (PcdEnableKcs)) {
+      if (!FixedPcdGetBool (PcdEnableKcs) ||
+          (CpuId & STYX_SOC_VERSION_MASK) < STYX_SOC_VERSION_B1) {
         continue;
       }