]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/glsdk-u-boot.git/commitdiff
fsl_sata: Move the snoop bit to another place
authorDave Liu <daveliu@freescale.com>
Mon, 12 Apr 2010 06:23:35 +0000 (14:23 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 27 Apr 2010 03:37:54 +0000 (22:37 -0500)
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>
drivers/block/fsl_sata.h

index 18e88fa4ad042b34cae9a93c6db5f63413bab6bd..576efaf6f5241ba7359f72a3d02633441cb767fc 100644 (file)
@@ -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)