summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-02-11 16:24:39 -0700
committerCommit Bot <commit-bot@chromium.org>2021-02-12 18:14:03 +0000
commit91cf869a1c01e3a233a1f9ea33bdf6e2330fd786 (patch)
tree806a947d632f54e6227d327a96321c07c69b1172
parentde9fd43a3ffffa4e4c9e7c12bc0be40860b7b293 (diff)
downloadchrome-ec-91cf869a1c01e3a233a1f9ea33bdf6e2330fd786.tar.gz
zephyr: add CONFIG_USB_BCD_DEV
Add a KConfig option to specify the USB device ID. BUG=b:157163664 BRANCH=none TEST=make buildall TEST=zmake testall Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I32677fb2c9a4f1e0d7b4220b7306022248ded630 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2691574 Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--zephyr/Kconfig.usbc9
-rw-r--r--zephyr/shim/include/config_chip.h5
2 files changed, 14 insertions, 0 deletions
diff --git a/zephyr/Kconfig.usbc b/zephyr/Kconfig.usbc
index 596c32f663..0eebb5ae8f 100644
--- a/zephyr/Kconfig.usbc
+++ b/zephyr/Kconfig.usbc
@@ -138,6 +138,15 @@ config PLATFORM_EC_USB_PID
To reserve a new PID within Google, use go/usb and see
http://google3/hardware/standards/usb
+config PLATFORM_EC_USB_BCD_DEV
+ hex "USB Device ID"
+ default 0
+ help
+ This specifies the USB device version, reported by board when acting
+ as the upstream facing port (UFP). This is a 16-bit unsigned integer
+ and should be set to a version number relevant to the release version
+ of the product.
+
config PLATFORM_EC_USBC_RETIMER_INTEL_BB
bool "Support Intel Burnside Bridge retimer"
help
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index e9983421e6..2a3b37dd23 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -525,6 +525,11 @@ enum battery_type {
#define CONFIG_USB_PID CONFIG_PLATFORM_EC_USB_PID
#endif
+#undef CONFIG_USB_BCD_DEV
+#ifdef CONFIG_PLATFORM_EC_USB_BCD_DEV
+#define CONFIG_USB_BCD_DEV CONFIG_PLATFORM_EC_USB_BCD_DEV
+#endif
+
/* VBUS-voltage measurement */
#undef CONFIG_USB_PD_VBUS_MEASURE_NOT_PRESENT
#undef CONFIG_USB_PD_VBUS_MEASURE_CHARGER