summaryrefslogtreecommitdiff
path: root/src/include/cpu
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-11-07 11:39:58 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-05 14:22:12 +0000
commit98c92570d9bb363740ae1b2cbbefc3c0f2404cb4 (patch)
tree4d23f557990d8edb3edb1b09e2be3cd609b6acd7 /src/include/cpu
parent6f573217a0920b18ea9febd9c6696a01b0f7c082 (diff)
cpu/intel/speedstep: Have nb and sb code provide c5/c6/slfm
C5, C6 and slfm depend on the southbridge and the northbridge to be able to provide this functionality, with some just lacking the possibility to do so. Move the devicetree configuration to the southbridge. This removes the need for a magic lapic in the devicetree. Change-Id: I4a9b1e684a7927259adae9b1d42a67e907722109 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69297 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/include/cpu')
-rw-r--r--src/include/cpu/intel/speedstep.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/cpu/intel/speedstep.h b/src/include/cpu/intel/speedstep.h
index e085e34230..1a31c25bbf 100644
--- a/src/include/cpu/intel/speedstep.h
+++ b/src/include/cpu/intel/speedstep.h
@@ -3,11 +3,9 @@
#ifndef CPU_INTEL_SPEEDSTEP_H
#define CPU_INTEL_SPEEDSTEP_H
+#include <stdbool.h>
#include <stdint.h>
-/* Magic value used to locate speedstep configuration in the device tree */
-#define SPEEDSTEP_APIC_MAGIC 0xACAC
-
/* MWAIT coordination I/O base address. This must match
* the \_PR_.CP00 PM base address.
*/
@@ -92,4 +90,8 @@ void speedstep_gen_pstates(sst_table_t *);
#define SPEEDSTEP_MIN_POWER_PENRYN 15000
#define SPEEDSTEP_SLFM_POWER_PENRYN 12000
+bool southbridge_support_c5(void);
+bool southbridge_support_c6(void);
+bool northbridge_support_slfm(void);
+
#endif /* CPU_INTEL_SPEEDSTEP_H */