From: Wolfgang Denk Date: Sat, 10 Apr 2010 23:12:58 +0200 Subject: [U-Boot] [PATCH v1 2/2] fsl_sata: Move the snoop bit to another place In-Reply-To: <1270769541-27279-1-git-send-email-daveliu@freescale.com> References: <1270769541-27279-1-git-send-email-daveliu@freescale.com> Message-ID: <20100410211258.A2774E6D662@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Dave Liu, In message <1270769541-27279-1-git-send-email-daveliu@freescale.com> you wrote: > For P1022 SATA host controller, the data snoop bit of DW3 in PRDT > is moved to bit28. > > Signed-off-by: Dave Liu > --- > * address Kumar's comments > > drivers/block/fsl_sata.h | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/drivers/block/fsl_sata.h b/drivers/block/fsl_sata.h > index 18e88fa..4fd426d 100644 > --- a/drivers/block/fsl_sata.h > +++ b/drivers/block/fsl_sata.h > @@ -244,7 +244,11 @@ typedef struct prd_entry { > /* ext_c_ddc > */ > #define PRD_ENTRY_EXT 0x80000000 /* extension flag or called indirect descriptor flag */ > +#ifdef CONFIG_FSL_SATA_V2 > +#define PRD_ENTRY_DATA_SNOOP 0x10000000 /* Snoop enable for all data associated with the PRD entry */ > +#else > #define PRD_ENTRY_DATA_SNOOP 0x00400000 /* Snoop enable for all data associated with the PRD entry */ Lines too long. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "What if" is a trademark of Hewlett Packard, so stop using it in your sentences without permission, or risk being sued.