From 39d0ea8c19146e2ae39cc2edf2c375b3279b9131 Mon Sep 17 00:00:00 2001 From: Bejean Mosher Date: Tue, 29 Apr 2025 16:59:25 -0400 Subject: [PATCH] fix: [BTL-S] Remove TCC ACPI Platform code for BTL-S to match RPL-S BTL-S TCC design matches RPL-S so there is no RTCT and no TCC tuning table. Signed-off-by: Bejean Mosher --- .../Library/Stage2BoardInitLib/AcpiPlatform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Platform/AlderlakeBoardPkg/Library/Stage2BoardInitLib/AcpiPlatform.c b/Platform/AlderlakeBoardPkg/Library/Stage2BoardInitLib/AcpiPlatform.c index b409f119..1f40f093 100644 --- a/Platform/AlderlakeBoardPkg/Library/Stage2BoardInitLib/AcpiPlatform.c +++ b/Platform/AlderlakeBoardPkg/Library/Stage2BoardInitLib/AcpiPlatform.c @@ -283,7 +283,7 @@ PlatformUpdateAcpiTable ( VOID *FspHobList; PLATFORM_DATA *PlatformData; FEATURES_CFG_DATA *FeaturesCfgData; -#if FixedPcdGet8 (PcdTccEnabled) && !defined(PLATFORM_RPLS) && !defined(PLATFORM_ADLN) && !defined(PLATFORM_ASL) +#if FixedPcdGet8 (PcdTccEnabled) && !defined(PLATFORM_RPLS) && !defined(PLATFORM_BTLS) && !defined(PLATFORM_ADLN) && !defined(PLATFORM_ASL) TCC_CFG_DATA *TccCfgData; #endif EFI_STATUS Status; @@ -361,7 +361,7 @@ PlatformUpdateAcpiTable ( } else if (Table->Signature == SIGNATURE_32 ('R', 'T', 'C', 'T')) { DEBUG ((DEBUG_INFO, "Find RTCT table\n")); -#if FixedPcdGet8 (PcdTccEnabled) && !defined(PLATFORM_RPLS) && !defined(PLATFORM_ADLN) && !defined(PLATFORM_ASL) +#if FixedPcdGet8 (PcdTccEnabled) && !defined(PLATFORM_RPLS) && !defined(PLATFORM_BTLS) && !defined(PLATFORM_ADLN) && !defined(PLATFORM_ASL) TccCfgData = (TCC_CFG_DATA *) FindConfigDataByTag(CDATA_TCC_TAG); if ((TccCfgData != NULL) && (TccCfgData->TccEnable != 0)) { Status = UpdateAcpiRtctTable(Table); @@ -764,7 +764,7 @@ PlatformUpdateAcpiGnvs ( UINT32 Data32; GPIO_GROUP GroupToGpeDwX[3]; UINT32 GroupDw[3]; -#if FixedPcdGet8 (PcdTccEnabled) && !defined(PLATFORM_RPLS) && !defined(PLATFORM_ADLN) && !defined(PLATFORM_ASL) +#if FixedPcdGet8 (PcdTccEnabled) && !defined(PLATFORM_RPLS) && !defined(PLATFORM_BTLS) && !defined(PLATFORM_ADLN) && !defined(PLATFORM_ASL) TCC_CFG_DATA *TccCfgData; CPUID_EXTENDED_TIME_STAMP_COUNTER_EDX Edx; CPUID_PROCESSOR_FREQUENCY_EBX Ebx; @@ -1317,7 +1317,7 @@ PlatformUpdateAcpiGnvs ( SocUpdateAcpiGnvs ((VOID *)GnvsIn); // TCC mode enabling -#if FixedPcdGet8 (PcdTccEnabled) && !defined(PLATFORM_RPLS) && !defined(PLATFORM_ADLN) && !defined(PLATFORM_ASL) +#if FixedPcdGet8 (PcdTccEnabled) && !defined(PLATFORM_RPLS) && !defined(PLATFORM_BTLS) && !defined(PLATFORM_ADLN) && !defined(PLATFORM_ASL) TccCfgData = (TCC_CFG_DATA *) FindConfigDataByTag(CDATA_FEATURES_TAG); if ((TccCfgData != NULL) && (TccCfgData->TccEnable != 0)) { AsmCpuid (CPUID_TIME_STAMP_COUNTER, NULL, &Ebx.Uint32, NULL, NULL);