]> git.sur5r.net Git - u-boot/blobdiff - include/usb.h
Fix strict-aliasing warning in dlmalloc
[u-boot] / include / usb.h
index 6da91e7232e92559f508c075529f65f797265109..ba3d169ea8cbf977aaaeb8f95e9cf331537d1d58 100644 (file)
 #include <usb_defs.h>
 #include <usbdescriptors.h>
 
+/*
+ * The EHCI spec says that we must align to at least 32 bytes.  However,
+ * some platforms require larger alignment.
+ */
+#if ARCH_DMA_MINALIGN > 32
+#define USB_DMA_MINALIGN       ARCH_DMA_MINALIGN
+#else
+#define USB_DMA_MINALIGN       32
+#endif
+
 /* Everything is aribtrary */
 #define USB_ALTSETTINGALLOC            4
 #define USB_MAXALTSETTING              128     /* Hard limit */