]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fsl_dma: Make DMA transactions snoopable
authorPeter Tyser <ptyser@xes-inc.com>
Tue, 30 Jun 2009 22:15:49 +0000 (17:15 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 2 Jul 2009 04:12:05 +0000 (23:12 -0500)
Make DMA transactions snoopable so that CPUs can keep caches up-to-date.
This allows dma transactions to be used for operations such as memory
copies without any additional cache control operations.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
drivers/dma/fsl_dma.c

index e103c910fddbd7ed55091b5646c46d27ced085b4..cba5d5b8a840a16d453963398b10d4e79bef3062 100644 (file)
@@ -72,8 +72,8 @@ static uint dma_check(void) {
 void dma_init(void) {
        volatile fsl_dma_t *dma = &dma_base->dma[0];
 
-       out_be32(&dma->satr, FSL_DMA_SATR_SREAD_NO_SNOOP);
-       out_be32(&dma->datr, FSL_DMA_DATR_DWRITE_NO_SNOOP);
+       out_be32(&dma->satr, FSL_DMA_SATR_SREAD_SNOOP);
+       out_be32(&dma->datr, FSL_DMA_DATR_DWRITE_SNOOP);
        out_be32(&dma->sr, 0xffffffff); /* clear any errors */
        dma_sync();
 }