summaryrefslogtreecommitdiff
path: root/zephyr/shim
diff options
context:
space:
mode:
authorRobert Zieba <robertzieba@google.com>2022-10-24 16:16:28 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-12-09 16:53:40 +0000
commit885597319921a702608b5261fdd97b551a21d16d (patch)
tree520c8be256b924d67a2a7029d4db45662bf18752 /zephyr/shim
parent3397611d0f19d76cbfac9976aae72dffe7c25df5 (diff)
downloadchrome-ec-885597319921a702608b5261fdd97b551a21d16d.tar.gz
common/throttle_ap: Add support for single pin throttling/detection
This commit adds support for throttling and detection of throttling triggered externally to the EC on a single pin as well as adding support for a custom callback function when the interrupt is triggered. BRANCH=none BUG=b:227768313 TEST=Builds LOW_COVERAGE_REASON=Coverage added in chromium:4064420 Change-Id: Ic8f7d6febe8698ad783edfbb7d37daa2b0c27e5d Signed-off-by: Robert Zieba <robertzieba@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3975224 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'zephyr/shim')
-rw-r--r--zephyr/shim/include/config_chip.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 1fb4fdaf85..5ab7fb05d7 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -137,6 +137,16 @@
#define CONFIG_THROTTLE_AP
#endif
+#undef CONFIG_THROTTLE_AP_SINGLE_PIN
+#ifdef CONFIG_PLATFORM_EC_THROTTLE_AP_SINGLE_PIN
+#define CONFIG_THROTTLE_AP_SINGLE_PIN
+#endif
+
+#undef CONFIG_THROTTLE_AP_NO_FAN
+#ifdef CONFIG_PLATFORM_EC_THROTTLE_AP_NO_FAN
+#define CONFIG_THROTTLE_AP_NO_FAN
+#endif
+
#undef CONFIG_CHIPSET_CAN_THROTTLE
#ifdef CONFIG_PLATFORM_EC_CHIPSET_CAN_THROTTLE
#define CONFIG_CHIPSET_CAN_THROTTLE