summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.pd
diff options
context:
space:
mode:
authorPeter Marheine <pmarheine@chromium.org>2022-09-02 11:41:04 +1000
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-09 23:47:50 +0000
commitdcaf98ce10e915f1d2095ff9793ada42d6397b8e (patch)
tree306ae588216896b6a70684041362faf402601a6f /zephyr/Kconfig.pd
parent3e3536a3fbe3a6054c3970255a849c99cd170584 (diff)
downloadchrome-ec-dcaf98ce10e915f1d2095ff9793ada42d6397b8e.tar.gz
zephyr/usbc: implement a default DFP-only SVDM identity
Recent PD specifications require that devices with multiple DFPs respond to Discover Identity commands, even if they don't support any modes as responder. This implements a default handler for those commands appropriate for such devices that reports DFP-only operation, enabled by config and default-on for devices that aren't DRDs nor need extra SVDM support (such as for USB4 or TBT). This is implemented only for Zephyr (no equivalent implementation for legacy EC-OS) because it is expected that new devices which might benefit from it will all be using Zephyr. BUG=b:242671457 TEST=nereid now responds to Discover Identity, new test passes BRANCH=none Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I2d11ced6928ae65ca00d20a1646509281080243b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3868882 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Aaron Massey <aaronmassey@google.com> Reviewed-by: Keith Short <keithshort@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'zephyr/Kconfig.pd')
-rw-r--r--zephyr/Kconfig.pd10
1 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/Kconfig.pd b/zephyr/Kconfig.pd
index 6868fe4fbe..1b8832e031 100644
--- a/zephyr/Kconfig.pd
+++ b/zephyr/Kconfig.pd
@@ -86,6 +86,14 @@ config PLATFORM_EC_USB_PD_INITIAL_DEBUG_LEVEL
through to 3 will increase the level of debug logging.
If this config is not set, the default level will be set to 1.
+config USB_PD_XID
+ int "USB XID"
+ default 0
+ help
+ Sets the device XID reported for USB-C Authentication. Devices that
+ have not been submitted for certification and assigned XIDs by USB-IF
+ should use 0.
+
config PLATFORM_EC_USB_PD_5V_EN_CUSTOM
bool "Custom method of detecting VBUS"
help
@@ -376,6 +384,8 @@ config PLATFORM_EC_USB_PD_LONG_PRESS_MAX_MS
partner in ms. Any press longer than this will not be considered a valid USB
PD button press.
+rsource "Kconfig.svdm_rsp"
+
endif # PLATFORM_EC_USB_POWER_DELIVERY
endif # PLATFORM_EC_USBC