summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.pd
diff options
context:
space:
mode:
authorJameson Thies <jthies@google.com>2022-06-14 20:18:39 +0000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-12 18:53:49 +0000
commitc020eb91f162c7d77aa6ffba0f0b97412e371f30 (patch)
tree246f169954202bff5fc9c1a278f2fdab855221b0 /zephyr/Kconfig.pd
parent9cb8e24e9ad0fb6f9daa5fbc1f4b81e3002d0afc (diff)
downloadchrome-ec-c020eb91f162c7d77aa6ffba0f0b97412e371f30.tar.gz
TCPMV2: Add USB PD Power Button Support
Introduced in USB PD 3.1, Alert messages can now carry information about power button presses and releases. This CL updates the EC to receive button press alert messages from the partner and use them to trigger startup when the device is off. BUG=b:236022894 TEST=make try_build_boards, make runhosttests and zmake test test-drivers. Also working interactively with a dock that supports sending alerts on button presses. BRANCH=None Signed-off-by: Jameson Thies <jthies@google.com> Change-Id: I425babb537e1fa47962791c0debb7b622fe3c5bf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3703163 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.pd')
-rw-r--r--zephyr/Kconfig.pd11
1 files changed, 11 insertions, 0 deletions
diff --git a/zephyr/Kconfig.pd b/zephyr/Kconfig.pd
index e1ca76a298..431c676bd7 100644
--- a/zephyr/Kconfig.pd
+++ b/zephyr/Kconfig.pd
@@ -343,6 +343,17 @@ config PLATFORM_EC_USB_PD_TEMP_SENSOR
one temperature. But, Chromebooks can have multiple temperature sensors.
This option selects which temperature sensor is used for USB PD.
+config PLATFORM_EC_USB_PD_LONG_PRESS_MAX_MS
+ int "Time limit in ms for valid presses with a USB PD power button"
+ default 8000
+ help
+ USB PD supports power buttons over USB-C using button press and button
+ release alerts. If a USB PD partner sends a press but never a release alert,
+ the EC should time out while waiting for the release and return to an idle
+ state. This value sets how long the EC waits for a release alert from the
+ partner in ms. Any press longer than this will not be considered a valid USB
+ PD button press.
+
endif # PLATFORM_EC_USB_POWER_DELIVERY
endif # PLATFORM_EC_USBC