From 961ed9fe27108ef46fc6c0f2aad340bb02e09081 Mon Sep 17 00:00:00 2001 From: Marx Wang Date: Tue, 20 Feb 2024 23:15:42 +0800 Subject: soc/intel/adl: Set slp-s0 counter frequency System sleep time (SLP_S0 signal asserted) is measured in ticks, for Alder Lake soc in 122us (i.e. ~8197Hz) granularity/ticks. BUG=b:301854636 TEST=/sys/devices/system/cpu/cpuidle/ low_power_idle_system_residency_us" will show system idle residency time Change-Id: I449f7ed0d9ef891ae5266e8fd784a063a75e38eb Signed-off-by: Marx Wang Reviewed-on: https://review.coreboot.org/c/coreboot/+/80665 Tested-by: build bot (Jenkins) Reviewed-by: Sukumar Ghorai Reviewed-by: Kapil Porwal Reviewed-by: Subrata Banik --- src/soc/intel/alderlake/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/soc/intel/alderlake/Kconfig b/src/soc/intel/alderlake/Kconfig index b81bfdd09d8d..2d42cad62752 100644 --- a/src/soc/intel/alderlake/Kconfig +++ b/src/soc/intel/alderlake/Kconfig @@ -549,4 +549,9 @@ config HSPHY_FW_MAX_SIZE config HAVE_BMP_LOGO_COMPRESS_LZMA default n +config SOC_INTEL_COMMON_BLOCK_ACPI_SLP_S0_FREQ_HZ + default 0x2005 + help + slp_s0_residency granularity in 122us ticks (i.e. ~8.2KHz). + endif -- cgit v1.2.3