Changeset 2040
- Timestamp:
- 05/19/07 07:55:47 (6 years ago)
- File:
-
- 1 edited
-
trunk/src/target/u-boot/patches/uboot-dfu.patch (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/u-boot/patches/uboot-dfu.patch
r2036 r2040 100 100 --- /dev/null 101 101 +++ u-boot/drivers/usbdfu.c 102 @@ -0,0 +1,106 6@@102 @@ -0,0 +1,1069 @@ 103 103 +/* 104 104 + * (C) 2007 by OpenMoko, Inc. … … 197 197 +static int dfu_trailer_matching(const struct uboot_dfu_trailer *trailer) 198 198 +{ 199 + if (trailer->magic == UBOOT_DFU_TRAILER_MAGIC && 200 + trailer->version == UBOOT_DFU_TRAILER_V1 && 201 + trailer->vendor == CONFIG_USBD_VENDORID && 202 + (trailer->product == CONFIG_USBD_PRODUCTID_CDCACM || 203 + trailer->product == CONFIG_USBD_PRODUCTID_GSERIAL) && 204 + trailer->revision == get_board_rev()) 205 + return 1; 206 + 207 + return 0; 199 + if (trailer->magic != UBOOT_DFU_TRAILER_MAGIC || 200 + trailer->version != UBOOT_DFU_TRAILER_V1 || 201 + trailer->vendor != CONFIG_USBD_VENDORID || 202 + (trailer->product != CONFIG_USBD_PRODUCTID_CDCACM && 203 + trailer->product != CONFIG_USBD_PRODUCTID_GSERIAL)) 204 + return 0; 205 +#ifdef CONFIG_REVISION_TAG 206 + if (trailer->revision != get_board_rev()) 207 + return 0; 208 +#endif 209 + 210 + return 1; 208 211 +} 209 212 +
Note: See TracChangeset
for help on using the changeset viewer.
