summaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake/cpu.c
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2018-11-21 12:36:21 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-11-23 11:28:19 +0000
commit26361862bdff9bc12c31e4f153e83422e21179b6 (patch)
tree17807067cfe286cc0df4e15de6baecf2fc54d2d1 /src/soc/intel/apollolake/cpu.c
parent52c58929fd8d9011e7990c042418624b567ffa1b (diff)
soc/intel/apollolake: Add Kconfig switch to enable minimum clock ratio
Add a Kconfig switch to be able to set the CPU clock to the lowest possible ratio. If enabled the CPU will consume as little power as possible while providing the lowest performance. This setting can be overruled by the OS if it has an p-state driver which can adjust the clock to its need. Change-Id: I4a59586da72d1915749110a36f565fe2aa69e073 Signed-off-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-on: https://review.coreboot.org/c/29772 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/soc/intel/apollolake/cpu.c')
-rw-r--r--src/soc/intel/apollolake/cpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/soc/intel/apollolake/cpu.c b/src/soc/intel/apollolake/cpu.c
index bf5beacbb1..bcec28e514 100644
--- a/src/soc/intel/apollolake/cpu.c
+++ b/src/soc/intel/apollolake/cpu.c
@@ -92,6 +92,9 @@ void soc_core_init(struct device *cpu)
if (IS_ENABLED(CONFIG_APL_SKIP_SET_POWER_LIMITS)) {
cpu_set_p_state_to_max_non_turbo_ratio();
cpu_disable_eist();
+ } else if (IS_ENABLED(CONFIG_APL_SET_MIN_CLOCK_RATIO)) {
+ cpu_set_p_state_to_min_clock_ratio();
+ cpu_disable_eist();
}
}