[U-Boot] [PATCH] usb: musb: fix Blackfin DMA register padding

Mike Frysinger vapier at gentoo.org
Tue Jan 19 06:10:42 CET 2010


From: Cliff Cai <cliff.cai at analog.com>

The conversion from offsets to C structs lost a little padding in the DMA
register map.  Accessing endpoints other than ep0 with DMA would fail as
the addresses wouldn't be adjusted correctly.

Signed-off-by: Cliff Cai <cliff.cai at analog.com>
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 drivers/usb/musb/blackfin_usb.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/musb/blackfin_usb.h b/drivers/usb/musb/blackfin_usb.h
index ab26ca2..de994bf 100644
--- a/drivers/usb/musb/blackfin_usb.h
+++ b/drivers/usb/musb/blackfin_usb.h
@@ -82,7 +82,7 @@ struct bfin_musb_dma_regs {
 	ureg(addr_high);
 	ureg(count_low);
 	ureg(count_high);
-	ureg(pad);
+	u32 reserved0[2];
 };
 
 #undef ureg
-- 
1.6.6



More information about the U-Boot mailing list