Allow USB_HOST_ALIGN to be configured at compile time. This patch is
necessary for MIPS based RouterStation Pro board and maybe other MIPS based boards as well. Submitted by: Milan Obuch Approved by: thompsa (mentor)
This commit is contained in:
parent
9800a0b6c0
commit
72eed4db05
@ -642,6 +642,7 @@ BUS_DEBUG opt_bus.h
|
||||
|
||||
# options for USB support
|
||||
USB_DEBUG opt_usb.h
|
||||
USB_HOST_ALIGN opt_usb.h
|
||||
USB_REQ_DEBUG opt_usb.h
|
||||
USB_VERBOSE opt_usb.h
|
||||
USB_EHCI_BIG_ENDIAN_DESC opt_usb.h
|
||||
|
@ -46,7 +46,12 @@
|
||||
#define USB_TD_GET_PROC(td) (td)->td_proc
|
||||
#define USB_PROC_GET_GID(td) (td)->p_pgid
|
||||
|
||||
#if defined(USB_HOST_ALIGN) && (USB_HOST_ALIGN != 0)
|
||||
/* USB_HOST_ALIGN is already defined and valid */
|
||||
#else
|
||||
#undef USB_HOST_ALIGN
|
||||
#define USB_HOST_ALIGN 8 /* bytes, must be power of two */
|
||||
#endif
|
||||
#define USB_FS_ISOC_UFRAME_MAX 4 /* exclusive unit */
|
||||
#define USB_BUS_MAX 256 /* units */
|
||||
#define USB_MAX_DEVICES 128 /* units */
|
||||
|
Loading…
Reference in New Issue
Block a user