diff options
Diffstat (limited to 'utils/tcctool/tcctool.c')
-rw-r--r-- | utils/tcctool/tcctool.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/tcctool/tcctool.c b/utils/tcctool/tcctool.c index a8182b6f7c..0eb3d7dad7 100644 --- a/utils/tcctool/tcctool.c +++ b/utils/tcctool/tcctool.c | |||
@@ -41,16 +41,17 @@ struct device_t | |||
41 | { | 41 | { |
42 | char* name; | 42 | char* name; |
43 | char* label; | 43 | char* label; |
44 | uint16_t productid; | ||
44 | uint32_t loadaddr; | 45 | uint32_t loadaddr; |
45 | uint32_t sdcfg; | 46 | uint32_t sdcfg; |
46 | }; | 47 | }; |
47 | 48 | ||
48 | static struct device_t devices[] = | 49 | static struct device_t devices[] = |
49 | { | 50 | { |
50 | {"logikdax", "Logik DAX 1GB DAB/MP3 player", 0x20000000, 0x52e97410 }, | 51 | {"logikdax", "Logik DAX 1GB DAB/MP3 player", 0xb021, 0x20000000, 0x52e97410 }, |
51 | {"iaudio6", "iAudio 6", 0x20000000, 0x62e97010 }, | 52 | {"iaudio6", "iAudio 6", 0xb021, 0x20000000, 0x62e97010 }, |
52 | {"iaudio7", "iAudio 7", 0x20000000, 0x62e97010 }, | 53 | {"iaudio7", "iAudio 7", 0xb021, 0x20000000, 0x62e97010 }, |
53 | {"cowond2", "Cowon D2", 0x20000000, 0xa2e92010 } | 54 | {"cowond2", "Cowon D2", 0xb011, 0x20000000, 0xa2e92010 } |
54 | }; | 55 | }; |
55 | 56 | ||
56 | #define NUM_DEVICES ((sizeof(devices) / sizeof(struct device_t))) | 57 | #define NUM_DEVICES ((sizeof(devices) / sizeof(struct device_t))) |
@@ -81,7 +82,6 @@ void print_devices(void) | |||
81 | 82 | ||
82 | /* USB IDs for USB Boot Mode */ | 83 | /* USB IDs for USB Boot Mode */ |
83 | #define TCC_VENDORID 0x140e | 84 | #define TCC_VENDORID 0x140e |
84 | #define TCC_PRODUCTID 0xb021 | ||
85 | 85 | ||
86 | #define TCC_BULK_TO 1 | 86 | #define TCC_BULK_TO 1 |
87 | #define TOUT 5000 | 87 | #define TOUT 5000 |
@@ -173,7 +173,7 @@ void do_patching(int device, char* buf, int len) | |||
173 | for (tmp_dev = bus->devices; tmp_dev; tmp_dev = tmp_dev->next) { | 173 | for (tmp_dev = bus->devices; tmp_dev; tmp_dev = tmp_dev->next) { |
174 | //printf("Found Vendor %04x Product %04x\n",tmp_dev->descriptor.idVendor, tmp_dev->descriptor.idProduct); | 174 | //printf("Found Vendor %04x Product %04x\n",tmp_dev->descriptor.idVendor, tmp_dev->descriptor.idProduct); |
175 | if (tmp_dev->descriptor.idVendor == TCC_VENDORID && | 175 | if (tmp_dev->descriptor.idVendor == TCC_VENDORID && |
176 | tmp_dev->descriptor.idProduct == TCC_PRODUCTID ) { | 176 | tmp_dev->descriptor.idProduct == devices[device].productid) { |
177 | 177 | ||
178 | dev = tmp_dev; | 178 | dev = tmp_dev; |
179 | goto found; | 179 | goto found; |