USB: Add dcache support to the EHCI driver
PATCH 1/1 USB: Add dcache support to the EHCI driver
This patch adds routines to handle (flush/invalidate) the dcache for the QH and qTD structures and data buffers. This is needed on platforms using this EHCI support with dcache enabled (like the MIPS VCT board port).
Signed-off-by Stefan Roese <[email protected]>
--- drivers/usb/usb_ehci.h | 5 ++ drivers/usb/usb_ehci_core.c | 98 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+), 0 deletions(-)
drivers/usb/usb_ehci.h +5 -0
@@ -180,6 +180,11 @@ struct QH {uint32_t qh_endpt2;uint32_t qh_curtd;struct qTD qh_overlay; +/* +* Add dummy fill value to make the size of this struct +* aligned to 32 bytes +*/ +uint8_t fill[16 ]; };/* Low level init functions */
drivers/usb/usb_ehci_core.c +98 -0
116 lines not on this page · raw message
Signature · 1 line
1.6.1