summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/hwstub/hwstub_protocol.h2
-rw-r--r--utils/hwstub/stub/main.c3
-rw-r--r--utils/hwstub/stub/rk27xx/target-config.h2
-rw-r--r--utils/hwstub/stub/stmp/target-config.h2
4 files changed, 2 insertions, 7 deletions
diff --git a/utils/hwstub/hwstub_protocol.h b/utils/hwstub/hwstub_protocol.h
index a34c65b1b5..67945cd5c0 100644
--- a/utils/hwstub/hwstub_protocol.h
+++ b/utils/hwstub/hwstub_protocol.h
@@ -27,7 +27,7 @@
27 27
28#define HWSTUB_VERSION_MAJOR 3 28#define HWSTUB_VERSION_MAJOR 3
29#define HWSTUB_VERSION_MINOR 0 29#define HWSTUB_VERSION_MINOR 0
30#define HWSTUB_VERSION_REV 0 30#define HWSTUB_VERSION_REV 1
31 31
32#define HWSTUB_USB_VID 0xfee1 32#define HWSTUB_USB_VID 0xfee1
33#define HWSTUB_USB_PID 0xdead 33#define HWSTUB_USB_PID 0xdead
diff --git a/utils/hwstub/stub/main.c b/utils/hwstub/stub/main.c
index 37590e88f8..c831de0196 100644
--- a/utils/hwstub/stub/main.c
+++ b/utils/hwstub/stub/main.c
@@ -171,7 +171,7 @@ static void handle_std_dev_desc(struct usb_ctrlrequest *req)
171 } 171 }
172 else 172 else
173 { 173 {
174 max_packet_size=(usb_drv_port_speed() ? 64 : 512); 174 max_packet_size = (usb_drv_port_speed() ? 64 : 512);
175 config_descriptor.bDescriptorType = USB_DT_OTHER_SPEED_CONFIG; 175 config_descriptor.bDescriptorType = USB_DT_OTHER_SPEED_CONFIG;
176 } 176 }
177 size = sizeof(struct usb_config_descriptor); 177 size = sizeof(struct usb_config_descriptor);
@@ -193,7 +193,6 @@ static void handle_std_dev_desc(struct usb_ctrlrequest *req)
193 /* target specific descriptors */ 193 /* target specific descriptors */
194 target_get_config_desc(usb_buffer + size, &size); 194 target_get_config_desc(usb_buffer + size, &size);
195 /* fix config descriptor */ 195 /* fix config descriptor */
196 config_descriptor.bNumInterfaces = 1;
197 config_descriptor.wTotalLength = size; 196 config_descriptor.wTotalLength = size;
198 memcpy(usb_buffer, (void *)&config_descriptor, sizeof(config_descriptor)); 197 memcpy(usb_buffer, (void *)&config_descriptor, sizeof(config_descriptor));
199 198
diff --git a/utils/hwstub/stub/rk27xx/target-config.h b/utils/hwstub/stub/rk27xx/target-config.h
index 6af214efaf..d13e341060 100644
--- a/utils/hwstub/stub/rk27xx/target-config.h
+++ b/utils/hwstub/stub/rk27xx/target-config.h
@@ -1,8 +1,6 @@
1#define CONFIG_RK27XX 1#define CONFIG_RK27XX
2#define IRAM_ORIG 0x60000000 2#define IRAM_ORIG 0x60000000
3#define IRAM_SIZE 0x8000 3#define IRAM_SIZE 0x8000
4#define DRAM_ORIG 0x60000000
5#define DRAM_SIZE (MEMORYSIZE * 0x100000)
6#define CPU_ARM 4#define CPU_ARM
7#define ARM_ARCH 5 5#define ARM_ARCH 5
8#define USB_BASE 0x180A000 6#define USB_BASE 0x180A000
diff --git a/utils/hwstub/stub/stmp/target-config.h b/utils/hwstub/stub/stmp/target-config.h
index aba2cf564b..da98652ef5 100644
--- a/utils/hwstub/stub/stmp/target-config.h
+++ b/utils/hwstub/stub/stmp/target-config.h
@@ -1,8 +1,6 @@
1#define CONFIG_STMP 1#define CONFIG_STMP
2#define IRAM_ORIG 0 2#define IRAM_ORIG 0
3#define IRAM_SIZE 0x8000 3#define IRAM_SIZE 0x8000
4#define DRAM_ORIG 0x40000000
5#define DRAM_SIZE (MEMORYSIZE * 0x100000)
6#define CPU_ARM 4#define CPU_ARM
7#define ARM_ARCH 5 5#define ARM_ARCH 5
8#define USB_BASE 0x80080000 6#define USB_BASE 0x80080000