summaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2021-05-25 11:37:20 +0800
committerCommit Bot <commit-bot@chromium.org>2021-05-25 10:45:02 +0000
commit19fa9fbb9fb9372c31d902d48517a8bc1e3c3f17 (patch)
tree862e92dc0ee2f176285ed20010445617c843a5e2 /include/config.h
parent023edba309dc2b5457f6bb7a5a791f7f91859162 (diff)
downloadchrome-ec-19fa9fbb9fb9372c31d902d48517a8bc1e3c3f17.tar.gz
usb_port_power_dumb: allow board to customize hooks
On Asurada, some Sandisk stickers would enter fault status (down-train to USB2 or not detected) if Vbus is applied before xhci initialization. The defauilt S3 hooks does not work in this case. This CL adds a config option to allow board to control the timing to enable/disable port power. BUG=b:187149602 TEST=manually test with CL:2909972 BRANCH=asurada Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I2ac4689182f22f4fa81d34bff8b5797e5fe222d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2914482 Reviewed-by: Eric Yilun Lin <yllin@google.com> Tested-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'include/config.h')
-rw-r--r--include/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 3f25fca6f3..9a04773412 100644
--- a/include/config.h
+++ b/include/config.h
@@ -4835,6 +4835,12 @@
#undef CONFIG_USB_PORT_POWER_DUMB
/*
+ * Let board customize the timing to enable/disable usb port, instead
+ * of using the default S3 hook.
+ */
+#undef CONFIG_USB_PORT_POWER_DUMB_CUSTOM_HOOK
+
+/*
* Support smart power control to the device's USB ports, using
* dedicated power control chips. This potentially enables automatic
* negotiation of supplying more power to peripherals.