diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-09 13:05:43 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-10-09 13:05:43 +0200 |
commit | 1c63993e05d177a0793b02ee0cd5762bb293e86c (patch) | |
tree | c5ac471908321f4b3d30e66605c055402978fb46 | |
parent | 0f1d44dba2e83776fa40cd607102f968d1ef79a8 (diff) | |
download | rockbox-1c63993e05d177a0793b02ee0cd5762bb293e86c.tar.gz rockbox-1c63993e05d177a0793b02ee0cd5762bb293e86c.zip |
imxtools/sbtools: always probe report size for HID recovery mode
Some older versions of the ROM (TA3 for example), use a 64 byte report size
instead of 1024, so hardcoding 1024 is just a bad idea.
Change-Id: I720c4465cfe2f519bffa307175614bba58766dce
-rw-r--r-- | utils/hwstub/stub/stmp/Makefile | 2 | ||||
-rw-r--r-- | utils/imxtools/sbtools/sbloader.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/utils/hwstub/stub/stmp/Makefile b/utils/hwstub/stub/stmp/Makefile index 3ac7e3bbd4..c06242aad5 100644 --- a/utils/hwstub/stub/stmp/Makefile +++ b/utils/hwstub/stub/stmp/Makefile | |||
@@ -17,4 +17,4 @@ include ../hwstub.make | |||
17 | 17 | ||
18 | $(BUILD_DIR)/hwstub.sb: $(EXEC_BIN) | 18 | $(BUILD_DIR)/hwstub.sb: $(EXEC_BIN) |
19 | $(call PRINTS,SBTOELF $(@F)) | 19 | $(call PRINTS,SBTOELF $(@F)) |
20 | $(SILENT)$(SBTOELF) -z -c hwstub.db -o $@ $< \ No newline at end of file | 20 | $(SILENT)$(SBTOELF) -z -c hwstub.db -o $@ $< |
diff --git a/utils/imxtools/sbtools/sbloader.c b/utils/imxtools/sbtools/sbloader.c index 1a241ba551..91c4fc952f 100644 --- a/utils/imxtools/sbtools/sbloader.c +++ b/utils/imxtools/sbtools/sbloader.c | |||
@@ -69,9 +69,9 @@ struct dev_info_t | |||
69 | 69 | ||
70 | struct dev_info_t g_dev_info[] = | 70 | struct dev_info_t g_dev_info[] = |
71 | { | 71 | { |
72 | {0x066f, 0x3780, 1024, HID_DEVICE}, /* i.MX233 / STMP3780 */ | 72 | {0x066f, 0x3780, 0, HID_DEVICE}, /* i.MX233 / STMP3780 */ |
73 | {0x066f, 0x3770, 48, HID_DEVICE}, /* STMP3770 */ | 73 | {0x066f, 0x3770, 0, HID_DEVICE}, /* STMP3770 */ |
74 | {0x15A2, 0x004F, 1024, HID_DEVICE}, /* i.MX28 */ | 74 | {0x15A2, 0x004F, 0, HID_DEVICE}, /* i.MX28 */ |
75 | {0x066f, 0x3600, 4096, RECOVERY_DEVICE}, /* STMP36xx */ | 75 | {0x066f, 0x3600, 4096, RECOVERY_DEVICE}, /* STMP36xx */ |
76 | }; | 76 | }; |
77 | 77 | ||
@@ -246,6 +246,7 @@ static bool is_hid_dev(struct libusb_config_descriptor *desc) | |||
246 | 246 | ||
247 | static bool is_recovery_dev(struct libusb_config_descriptor *desc) | 247 | static bool is_recovery_dev(struct libusb_config_descriptor *desc) |
248 | { | 248 | { |
249 | (void) desc; | ||
249 | return false; | 250 | return false; |
250 | } | 251 | } |
251 | 252 | ||