summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/cpu_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/cpu_common.h')
-rw-r--r--arch/x86/include/asm/cpu_common.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/x86/include/asm/cpu_common.h b/arch/x86/include/asm/cpu_common.h
index f42eb32308..c61d74e4a0 100644
--- a/arch/x86/include/asm/cpu_common.h
+++ b/arch/x86/include/asm/cpu_common.h
@@ -1,5 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0 */
/*
+ * Common code for Intel CPUs
+ *
* Copyright (c) 2016 Google, Inc
*/
@@ -61,4 +63,20 @@ int cpu_intel_get_info(struct cpu_info *info, int bclk_mz);
*/
int cpu_configure_thermal_target(struct udevice *dev);
+/**
+ * cpu_set_perf_control() - Set the nominal CPU clock speed
+ *
+ * This sets the clock speed as a multiplier of BCLK
+ *
+ * @clk_ratio: Ratio to use
+ */
+void cpu_set_perf_control(uint clk_ratio);
+
+/**
+ * cpu_config_tdp_levels() - Check for configurable TDP option
+ *
+ * @return true if the CPU has configurable TDP (Thermal-design power)
+ */
+bool cpu_config_tdp_levels(void);
+
#endif