summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.temperature
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-03-12 09:54:28 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-12 19:36:48 +0000
commita1258ba9944c16dd60080fa69a94bf1b28f8db61 (patch)
tree210d5b9117187238361d8b39f2e38795c0b04164 /zephyr/Kconfig.temperature
parentd3494eb152ae9992de6067e8b00a3f2595302b68 (diff)
downloadchrome-ec-a1258ba9944c16dd60080fa69a94bf1b28f8db61.tar.gz
zephyr: add DPTF support
Add a Kconfig option to enable DPTF support. Adds support for the following ACPI entries: EC_ACPI_MEM_FAN_DUTY (0x04) EC_ACPI_MEM_TEMP_ID (0x05) EC_ACPI_MEM_TEMP_THRESHOLD (0x06) EC_ACPI_MEM_TEMP_COMMIT (0x07) BUG=b:179886912 BRANCH=none TEST=zmake testall TEST=Boot zephyr-ec on Volteer, observe that ACPI warnings for ignored read/writes for DPTF commands are fixed. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I40cbe79e57c3d4687d828ec46fe0d51034e96bfc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2757028 Reviewed-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.temperature')
-rw-r--r--zephyr/Kconfig.temperature14
1 files changed, 14 insertions, 0 deletions
diff --git a/zephyr/Kconfig.temperature b/zephyr/Kconfig.temperature
index 3aa6e17509..19ce5e3146 100644
--- a/zephyr/Kconfig.temperature
+++ b/zephyr/Kconfig.temperature
@@ -10,6 +10,20 @@ menuconfig PLATFORM_EC_TEMP_SENSOR
if PLATFORM_EC_TEMP_SENSOR
+config PLATFORM_EC_DPTF
+ bool "Dynamic Platform and Thermal Framework"
+ default y if PLATFORM_EC_ACPI
+ help
+ Enables the Dynamic Platform and Thermal Framework (DPTF). DPTF
+ exposes the temperature sensors and the fan controls to the
+ Applicaiton Processor (AP) using Advanced Configuration and Power
+ Interface (ACPI). This permits the AP to control thermal management
+ independent of the EC.
+
+ Even when DPTF is enabled, the EC still monitors temperature sensors
+ and will take corrective actions for high temperatures such as turning
+ on the fans or powering down the AP.
+
config PLATFORM_EC_THERMISTOR
bool "Thermistor support"
depends on PLATFORM_EC_ADC