summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 196990ac05..0e029e9b44 100644
--- a/include/config.h
+++ b/include/config.h
@@ -1685,6 +1685,9 @@
*/
#undef CONFIG_TEMP_SENSOR_POWER_GPIO
+/* Compile common code for throttling the CPU based on the temp sensors */
+#undef CONFIG_THROTTLE_AP
+
/*****************************************************************************/
/* TPM-like configuration */
@@ -2101,6 +2104,15 @@
#define CONFIG_CRC8
#endif /* defined(CONFIG_EXPERIMENTAL_CONSOLE) */
+/******************************************************************************/
+/*
+ * Throttle AP must have temperature sensor enabled to get the readings for
+ * thermal throttling.
+ */
+#if defined(CONFIG_THROTTLE_AP) && !defined(CONFIG_TEMP_SENSOR)
+#define CONFIG_TEMP_SENSOR
+#endif
+
/*****************************************************************************/
/*
* Handle task-dependent configs.