summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJames Wylder <james.wylder@motorola.com>2011-06-21 15:30:40 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:37:11 -0800
commit4c60eaf231b72ceaa79eefa2eab1e5a58a357034 (patch)
tree20a5f3e34edff122f50779cf35ca1edd09157b10 /drivers
parentea4f838a14719522af96b3101fbd17638833a373 (diff)
ARM: tegra: usb: prefetch engine buffer coherency protection
The prefetcher fetches a total of 128 bytes, and then responding to sequential reads with this prefetched data. To avoid coherency issues, it discards the prefetched data if a non sequential read occurs. Allocate dtd with 128 bytes boundary to make 2 consecutive dtd 128 bytes apart. Submitted on behalf of Jay Cheng <jacheng@nvidia.com> Change-Id: I2adc02c2ac7901d0617b487cb498a34ec7a63e18 Signed-off-by: James Wylder <james.wylder@motorola.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/fsl_usb2_udc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/fsl_usb2_udc.h b/drivers/usb/gadget/fsl_usb2_udc.h
index bb10c5f6924f..74dba97ec5b9 100644
--- a/drivers/usb/gadget/fsl_usb2_udc.h
+++ b/drivers/usb/gadget/fsl_usb2_udc.h
@@ -430,7 +430,11 @@ struct ep_td_struct {
DTD_STATUS_DATA_BUFF_ERR | \
DTD_STATUS_TRANSACTION_ERR)
/* Alignment requirements; must be a power of two */
+#if defined(CONFIG_ARCH_TEGRA)
+#define DTD_ALIGNMENT 0x80
+#else
#define DTD_ALIGNMENT 0x20
+#endif
#define QH_ALIGNMENT 2048
#define QH_OFFSET 0x1000