diff options
author | Bryan Wu <cooloney@kernel.org> | 2009-12-21 09:49:52 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-23 14:34:19 -0500 |
commit | 1c4bdc01b8a5cf6c54e5eb8bf9a727e38f0176cc (patch) | |
tree | 6e243b990d46e75b9cd3a77b7736828f15bdea37 /drivers/usb/musb/blackfin.h | |
parent | 0ea52ff44f7a30781881ca2debf35e47b2676171 (diff) |
USB: musb: workaround Blackfin FIFO anomalies
Some of these workarounds are already in place, but labeled as affecting
all BF52x parts. Since we have official anomaly numbers now, use those
defines. And since writing to the FIFO has a similar hang issue as reading
from the FIFO, implement the workaround there too when necessary.
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Cc: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb/blackfin.h')
-rw-r--r-- | drivers/usb/musb/blackfin.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/musb/blackfin.h b/drivers/usb/musb/blackfin.h index 10b7d7584f4b..bd9352a2ef2a 100644 --- a/drivers/usb/musb/blackfin.h +++ b/drivers/usb/musb/blackfin.h | |||
@@ -69,7 +69,6 @@ static void dump_fifo_data(u8 *buf, u16 len) | |||
69 | #define dump_fifo_data(buf, len) do {} while (0) | 69 | #define dump_fifo_data(buf, len) do {} while (0) |
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | #ifdef CONFIG_BF52x | ||
73 | 72 | ||
74 | #define USB_DMA_BASE USB_DMA_INTERRUPT | 73 | #define USB_DMA_BASE USB_DMA_INTERRUPT |
75 | #define USB_DMAx_CTRL 0x04 | 74 | #define USB_DMAx_CTRL 0x04 |
@@ -79,7 +78,6 @@ static void dump_fifo_data(u8 *buf, u16 len) | |||
79 | #define USB_DMAx_COUNT_HIGH 0x14 | 78 | #define USB_DMAx_COUNT_HIGH 0x14 |
80 | 79 | ||
81 | #define USB_DMA_REG(ep, reg) (USB_DMA_BASE + 0x20 * ep + reg) | 80 | #define USB_DMA_REG(ep, reg) (USB_DMA_BASE + 0x20 * ep + reg) |
82 | #endif | ||
83 | 81 | ||
84 | /* Almost 1 second */ | 82 | /* Almost 1 second */ |
85 | #define TIMER_DELAY (1 * HZ) | 83 | #define TIMER_DELAY (1 * HZ) |