From 87490a70aaece31f9a315a44c3de4904a76ea90a Mon Sep 17 00:00:00 2001 From: Rob Barnes Date: Fri, 6 Aug 2021 11:50:05 -0600 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3078050 Reviewed-by: Bhanu Prakash Maiya Reviewed-by: Raul E Rangel Commit-Queue: Raul E Rangel --- include/config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/config.h') diff --git a/include/config.h b/include/config.h index a6bd31276d..4e83e96f9c 100644 --- a/include/config.h +++ b/include/config.h @@ -3876,6 +3876,9 @@ */ #undef CONFIG_TEMP_SENSOR_POWER_GPIO +/* AMD STT (Skin Temperature Tracking) */ +#undef CONFIG_AMD_STT + /* Compile common code for throttling the CPU based on the temp sensors */ #undef CONFIG_THROTTLE_AP @@ -6434,4 +6437,9 @@ * !CONFIG_ACCELGYRO_BMI_I2C */ +/* AMD STT requires AMD SB-RMI to be enabled */ +#if defined(CONFIG_AMD_STT) && !defined(CONFIG_AMD_SB_RMI) +#define CONFIG_AMD_SB_RMI +#endif + #endif /* __CROS_EC_CONFIG_H */ -- cgit v1.2.1