mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 22:51:37 +00:00
fsl_dma: Make DMA transactions snoopable
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>
This commit is contained in:
parent
0d595f76bc
commit
6af015b86b
1 changed files with 2 additions and 2 deletions
|
@ -72,8 +72,8 @@ static uint dma_check(void) {
|
||||||
void dma_init(void) {
|
void dma_init(void) {
|
||||||
volatile fsl_dma_t *dma = &dma_base->dma[0];
|
volatile fsl_dma_t *dma = &dma_base->dma[0];
|
||||||
|
|
||||||
out_be32(&dma->satr, FSL_DMA_SATR_SREAD_NO_SNOOP);
|
out_be32(&dma->satr, FSL_DMA_SATR_SREAD_SNOOP);
|
||||||
out_be32(&dma->datr, FSL_DMA_DATR_DWRITE_NO_SNOOP);
|
out_be32(&dma->datr, FSL_DMA_DATR_DWRITE_SNOOP);
|
||||||
out_be32(&dma->sr, 0xffffffff); /* clear any errors */
|
out_be32(&dma->sr, 0xffffffff); /* clear any errors */
|
||||||
dma_sync();
|
dma_sync();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue