diff options
author | Rob Barnes <robbarnes@google.com> | 2021-08-06 11:50:05 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-08-16 22:45:33 +0000 |
commit | 87490a70aaece31f9a315a44c3de4904a76ea90a (patch) | |
tree | efe92eeaf6db77a42c3916c056c09c220fe857c9 /zephyr | |
parent | 7e84bc29b291e4d7456783754cdf84dbd056ef34 (diff) | |
download | chrome-ec-87490a70aaece31f9a315a44c3de4904a76ea90a.tar.gz |
driver/amd_stt: Add AMD STT driver
Add a driver for writing Skin Temperature Tracking (STT) sensor
readings to the SB-RMI interface. STT readings are used to maximize
the SOc performance while keeping the skin temperature within
specification.
BUG=b:176994331
TEST=Build and run on guybrush
BRANCH=None
Change-Id: If655545158e7dc05946bc67686b1b0b40a40a713
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3078050
Reviewed-by: Bhanu Prakash Maiya <bhanumaiya@google.com>
Reviewed-by: Raul E Rangel <rrangel@chromium.org>
Commit-Queue: Raul E Rangel <rrangel@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/Kconfig | 11 | ||||
-rw-r--r-- | zephyr/shim/include/config_chip.h | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig index b11031b8b4..6253631156 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -802,4 +802,15 @@ config PLATFORM_EC_AMD_SB_RMI tasks such as managing power consumption and power limits of the CPU socket. +config PLATFORM_EC_AMD_STT + bool "Enable driver for AMD STT interface" + depends on PLATFORM_EC_AMD_SB_RMI + help + AMD platforms provide the Skin Temperature Tracking (STT) interface. + Skin temperature management can be used to maximize the system + performance while keeping the skin temperature within its + specification. It makes use of the thermal capacitance of the system + to temporarily boost above the sustainable power limit, while the + chassis skin temperatures are below limits. + endif # PLATFORM_EC diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index d8bb7c27ac..895e19d568 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -1760,4 +1760,9 @@ #define CONFIG_AMD_SB_RMI #endif +#undef CONFIG_AMD_STT +#ifdef CONFIG_PLATFORM_EC_AMD_STT +#define CONFIG_AMD_STT +#endif + #endif /* __CROS_EC_CONFIG_CHIP_H */ |