summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorJeremy Compostella <jeremy.compostella@intel.com>2023-10-18 14:42:13 -0700
committerSubrata Banik <subratabanik@google.com>2023-10-19 16:17:20 +0000
commit74f5a3e8a00edb82c9766fc9edb157c32959b20d (patch)
treed70bb73fd4b77a3ffc587dff5263a21653a9ef69 /src/include
parent7357f2a0ff13380410ff23da9ac0f8648e1319bf (diff)
downloadcoreboot-74f5a3e8a00edb82c9766fc9edb157c32959b20d.tar.gz
coreboot-74f5a3e8a00edb82c9766fc9edb157c32959b20d.tar.bz2
coreboot-74f5a3e8a00edb82c9766fc9edb157c32959b20d.zip
soc/intel: Improve CONFIG_ACPI_SOC_INTEL_SLP_S0_FREQ_HZ use
Commit bd9c562a9e0c6af65f5e798a17ba9a55892ef082 ("acpi: Configure slp-s0 residency counter frequency in LPIT table") led to jenkins reporting the following error: !!!!! Error: defined(CONFIG_ACPI_SOC_INTEL_SLP_S0_FREQ_HZ) used at src/include/acpi/acpi.h:457. Symbols of type 'hex' are always defined. Since hex Kconfig are always defined there is no need to test it being defined but also no need to handle zero or non-zero values. In addition: 1. This config was defined in Meteor Lake specific Kconfig file while it should actually be define closer to where it is being used (here soc/intel/common/block/acpi/Kconfig) and only set by the SoC Kconfig. 2. Once moved and under control of `SOC_INTEL_COMMON_BLOCK_ACPI_LPIT' gating (lpit.c), the Kconfig name needed to be adjusted to better fit its use. 3. Make Meteor Lake Kconfig sets the config but does not define it anymore. TEST=LPIT ACPI table Counter Frequency field is set to 0x2005 on rex Change-Id: I2083c9209e61be6180cca2c9f74097e2f4b4ce9a Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78458 Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Bora Guvendik <bora.guvendik@intel.com> Reviewed-by: Sukumar Ghorai <sukumar.ghorai@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <ericllai@google.com> Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/acpi/acpi.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/include/acpi/acpi.h b/src/include/acpi/acpi.h
index 6998edd66efe..acd55387093d 100644
--- a/src/include/acpi/acpi.h
+++ b/src/include/acpi/acpi.h
@@ -454,11 +454,6 @@ typedef struct acpi_lpi_desc_hdr {
} __packed acpi_lpi_desc_hdr_t;
#define ACPI_LPIT_CTR_FREQ_TSC 0
-#if defined CONFIG_ACPI_SOC_INTEL_SLP_S0_FREQ_HZ && CONFIG_ACPI_SOC_INTEL_SLP_S0_FREQ_HZ != 0
-#define ACPI_LPIT_SLP_S0_FREQ CONFIG_ACPI_SOC_INTEL_SLP_S0_FREQ_HZ
-#else
-#define ACPI_LPIT_SLP_S0_FREQ 0
-#endif
/* LPIT: Native C-state instruction based LPI structure */