summaryrefslogtreecommitdiffstats
path: root/include/usb_defs.h
diff options
context:
space:
mode:
authorIlya Yanok <ilya.yanok@cogentembedded.com>2012-11-06 13:48:20 +0000
committerMarek Vasut <marex@denx.de>2012-11-20 00:16:06 +0100
commitc60795f41d37600b6ebd79ec99252ec2f5efecd4 (patch)
treedb0d743573e872b7c5d3e77a38bf2f1d0948c794 /include/usb_defs.h
parent82651c39f6544e932fb86853bf9a648414ccca9a (diff)
downloadblackbird-obmc-uboot-c60795f41d37600b6ebd79ec99252ec2f5efecd4.tar.gz
blackbird-obmc-uboot-c60795f41d37600b6ebd79ec99252ec2f5efecd4.zip
usb: use linux/usb/ch9.h instead of usbdescriptors.h
Linux usb/ch9.h seems to have all the same information (and more) as usbdescriptors.h so use the former instead of the later one. As a consequense of this change USB_SPEED_* values don't correspond directly to EHCI speed encoding anymore, I've added necessary recoding in EHCI driver. Also there is no point to put speed into pipe anymore so it's removed and a bunch of host drivers fixed to look at usb_device->speed instead. Old usbdescriptors.h included is not removed as it seems to be used by old USB device code. This makes usb.h and usbdevice.h incompatible. Fortunately the only place that tries to include both are the old MUSB code and it needs usb.h only for USB_DMA_MINALIGN used in aligned attribute on musb_regs structure but this attribute seems to be unneeded (old MUSB code doesn't support any DMA at all). Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
Diffstat (limited to 'include/usb_defs.h')
-rw-r--r--include/usb_defs.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/usb_defs.h b/include/usb_defs.h
index 8032e57125..9502544b21 100644
--- a/include/usb_defs.h
+++ b/include/usb_defs.h
@@ -80,12 +80,6 @@
#define USB_DIR_OUT 0
#define USB_DIR_IN 0x80
-/* USB device speeds */
-#define USB_SPEED_FULL 0x0 /* 12Mbps */
-#define USB_SPEED_LOW 0x1 /* 1.5Mbps */
-#define USB_SPEED_HIGH 0x2 /* 480Mbps */
-#define USB_SPEED_RESERVED 0x3
-
/* Descriptor types */
#define USB_DT_DEVICE 0x01
#define USB_DT_CONFIG 0x02
OpenPOWER on IntegriCloud