drivers: usb: add usb pid for dfu

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Id823187c0b74fe99c4fdff7fdb85f6d995ed9d28
This commit is contained in:
Yifeng Zhao 2021-01-20 11:35:57 +08:00
parent 9c5e2f1dbb
commit ca42250799
1 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,10 @@ int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char *name)
/* Fix to Google's VID and PID */
dev->idVendor = __constant_cpu_to_le16(0x18d1);
dev->idProduct = __constant_cpu_to_le16(0xd00d);
} else if (!strncmp(name, "usb_dnl_dfu", 11)) {
/* Fix to Rockchip's VID and PID for DFU */
dev->idVendor = cpu_to_le16(0x2207);
dev->idProduct = cpu_to_le16(0x0107);
}
return 0;