diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2014-12-19 13:54:40 +0100 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2014-12-19 13:54:40 +0100 |
commit | f7e57f71da1eecbf1ac28339868d15492c929925 (patch) | |
tree | c7b6cf430f5bbc893a5f230f6695a387c536062f /include | |
parent | d69e7bbceb14e09f0af2cddeb68ee5734a1c2d45 (diff) |
colibri_vf: set USB vendor and product ID when using DFUColibri_VF_LinuxImageV2.3Beta5_20141219Colibri_T30_LinuxImageV2.3Beta5_20141219Apalis_T30_LinuxImageV2.3Beta5_20141219
Set USB vendor and product ID of the module when using DFU. This
allows to identify the module over USB and act accordingly if
necessary (e.g. flash different version or root filesystem or
similar use cases).
Also the serial number of the USB device is visible by using the
lsusb utility:
$ lsusb -d 1b67: -v
Bus 002 Device 092: ID 1b67:0018
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 2 Abstract (modem)
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x1b67
idProduct 0x0018
bcdDevice 2.21
iManufacturer 1 Toradex
iProduct 2 USB download gadget
iSerial 3 4799890
...
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/colibri_vf.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h index c5b288d1b4a..98ff456d71f 100644 --- a/include/configs/colibri_vf.h +++ b/include/configs/colibri_vf.h @@ -257,9 +257,14 @@ #define CONFIG_CI_UDC #define CONFIG_USB_GADGET_DUALSPEED #define CONFIG_USB_GADGET_VBUS_DRAW 2 -#define CONFIG_G_DNL_MANUFACTURER "Freescale" -#define CONFIG_G_DNL_PRODUCT_NUM 0x006A -#define CONFIG_G_DNL_VENDOR_NUM 0x15A2 +#define CONFIG_TRDX_VID 0x1B67 +#define CONFIG_TRDX_PID_COLIBRI_VF50 0x0016 +#define CONFIG_TRDX_PID_COLIBRI_VF61 0x0017 +#define CONFIG_TRDX_PID_COLIBRI_VF61IT 0x0018 +#define CONFIG_TRDX_PID_COLIBRI_VF50IT 0x0019 +#define CONFIG_G_DNL_MANUFACTURER "Toradex" +#define CONFIG_G_DNL_VENDOR_NUM CONFIG_TRDX_VID +#define CONFIG_G_DNL_PRODUCT_NUM CONFIG_TRDX_PID_COLIBRI_VF50 /* USB DFU */ #define CONFIG_USBDOWNLOAD_GADGET |