summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Liu <daveliu@freescale.com>2010-04-12 14:23:35 +0800
committerKumar Gala <galak@kernel.crashing.org>2010-04-26 22:37:54 -0500
commitcd3abcfa2d4dc8df09f6d01e735e4dc2f6c87ebc (patch)
tree03e720a7eefe6e1d5618f4f9c65d22373f43a64d
parente4773debb735323a9eedf353239e8e88e03d7c58 (diff)
downloadu-boot-imx-cd3abcfa2d4dc8df09f6d01e735e4dc2f6c87ebc.zip
u-boot-imx-cd3abcfa2d4dc8df09f6d01e735e4dc2f6c87ebc.tar.gz
u-boot-imx-cd3abcfa2d4dc8df09f6d01e735e4dc2f6c87ebc.tar.bz2
fsl_sata: Move the snoop bit to another place
For P1022 SATA host controller, the data snoop bit of DW3 in PRDT is moved to bit28. Signed-off-by: Dave Liu <daveliu@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
-rw-r--r--drivers/block/fsl_sata.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/block/fsl_sata.h b/drivers/block/fsl_sata.h
index 18e88fa..576efaf 100644
--- a/drivers/block/fsl_sata.h
+++ b/drivers/block/fsl_sata.h
@@ -243,8 +243,12 @@ typedef struct prd_entry {
/* ext_c_ddc
*/
-#define PRD_ENTRY_EXT 0x80000000 /* extension flag or called indirect descriptor flag */
-#define PRD_ENTRY_DATA_SNOOP 0x00400000 /* Snoop enable for all data associated with the PRD entry */
+#define PRD_ENTRY_EXT 0x80000000 /* extension flag */
+#ifdef CONFIG_FSL_SATA_V2
+#define PRD_ENTRY_DATA_SNOOP 0x10000000 /* Data snoop enable */
+#else
+#define PRD_ENTRY_DATA_SNOOP 0x00400000 /* Data snoop enable */
+#endif
#define PRD_ENTRY_LEN_MASK 0x003fffff /* Data word count */
#define PRD_ENTRY_MAX_XFER_SZ (PRD_ENTRY_LEN_MASK + 1)