summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/acpi/acpi.h3
-rw-r--r--src/soc/intel/common/block/acpi/lpit.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/include/acpi/acpi.h b/src/include/acpi/acpi.h
index 141e4d3ad8..eae84a8071 100644
--- a/src/include/acpi/acpi.h
+++ b/src/include/acpi/acpi.h
@@ -453,7 +453,8 @@ typedef struct acpi_lpi_desc_hdr {
uint16_t reserved;
} __packed acpi_lpi_desc_hdr_t;
-#define ACPI_LPIT_CTR_FREQ_TSC 0
+#define ACPI_LPIT_CTR_FREQ_TSC 0
+#define ACPI_LPIT_SLP_S0_FREQ 0
/* LPIT: Native C-state instruction based LPI structure */
typedef struct acpi_lpi_desc_ncst {
diff --git a/src/soc/intel/common/block/acpi/lpit.c b/src/soc/intel/common/block/acpi/lpit.c
index 38a402f13d..de1e71dc24 100644
--- a/src/soc/intel/common/block/acpi/lpit.c
+++ b/src/soc/intel/common/block/acpi/lpit.c
@@ -50,13 +50,13 @@ unsigned long acpi_fill_lpit(unsigned long current)
sys_counter->entry_trigger.space_id = ACPI_ADDRESS_SPACE_FIXED;
sys_counter->entry_trigger.access_size = ACPI_ACCESS_SIZE_UNDEFINED;
- /* Slp_S0 residency counter */
+ /* slp_s0 residency counter */
sys_counter->residency_counter.addrl = PCH_PWRM_BASE_ADDRESS + SLP_S0_RES;
sys_counter->residency_counter.bit_offset = 0;
sys_counter->residency_counter.bit_width = 32;
sys_counter->residency_counter.space_id = ACPI_ADDRESS_SPACE_MEMORY;
sys_counter->residency_counter.access_size = ACPI_ACCESS_SIZE_DWORD_ACCESS;
- sys_counter->counter_frequency = ACPI_LPIT_CTR_FREQ_TSC;
+ sys_counter->counter_frequency = ACPI_LPIT_SLP_S0_FREQ;
/* Min. residency and worst-case latency (from FSP and vendor dumps) */
sys_counter->min_residency = 30000; /* break-even: 30 ms */