summaryrefslogtreecommitdiff
path: root/chip/stm32/usb.c
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2021-04-21 17:13:12 -0700
committerCommit Bot <commit-bot@chromium.org>2021-05-02 02:48:04 +0000
commit8c438c712b7d4113874addc52a88ab9508e3ee44 (patch)
tree06cc7e6396e012e716bbd9073ee0c27b914e35ff /chip/stm32/usb.c
parent98ca457dfcdbf135618c42c81bda1445b2fdabae (diff)
downloadchrome-ec-8c438c712b7d4113874addc52a88ab9508e3ee44.tar.gz
usb-ep: Add config option to define VID
This value was previously hardcoded to Google's VID. However, some products with USB-EP support may require a different VID to correctly support fwupd. BUG=b:181920029 BRANCH=quiche TEST=verified that fwupd works on baklava Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I23c36507a90428ab46cd5efde7d79581207bde74 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2848424 Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'chip/stm32/usb.c')
-rw-r--r--chip/stm32/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/stm32/usb.c b/chip/stm32/usb.c
index 63c931d7d9..b3f1189b9d 100644
--- a/chip/stm32/usb.c
+++ b/chip/stm32/usb.c
@@ -55,7 +55,7 @@ static const struct usb_device_descriptor dev_desc = {
.bDeviceSubClass = 0x00,
.bDeviceProtocol = 0x00,
.bMaxPacketSize0 = USB_MAX_PACKET_SIZE,
- .idVendor = USB_VID_GOOGLE,
+ .idVendor = CONFIG_USB_VID,
.idProduct = CONFIG_USB_PID,
.bcdDevice = CONFIG_USB_BCD_DEV,
.iManufacturer = USB_STR_VENDOR,