Skip to content
Snippets Groups Projects
Commit 9a865fff authored by Ira W. Snyder's avatar Ira W. Snyder Committed by Kim Phillips
Browse files

fsl_dma: fix support for 83xx DMA engine


Commit 359ec493 broke support for the
Freescale DMA engine on the 83xx parts. This is due to using registers
which do not exist on 83xx. Remove the attribute register accesses from
the 83xx build.

Signed-off-by: default avatarIra W. Snyder <iws@ovro.caltech.edu>
Cc: York Sun <yorksun@freescale.com>
Cc: Peter Tyser <ptyser@xes-inc.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
parent 79642098
No related branches found
No related tags found
No related merge requests found
...@@ -116,10 +116,12 @@ int dmacpy(phys_addr_t dest, phys_addr_t src, phys_size_t count) { ...@@ -116,10 +116,12 @@ int dmacpy(phys_addr_t dest, phys_addr_t src, phys_size_t count) {
out_dma32(&dma->dar, (u32) (dest & 0xFFFFFFFF)); out_dma32(&dma->dar, (u32) (dest & 0xFFFFFFFF));
out_dma32(&dma->sar, (u32) (src & 0xFFFFFFFF)); out_dma32(&dma->sar, (u32) (src & 0xFFFFFFFF));
#if !defined(CONFIG_MPC83xx)
out_dma32(&dma->satr, out_dma32(&dma->satr,
in_dma32(&dma->satr) | (u32)((u64)src >> 32)); in_dma32(&dma->satr) | (u32)((u64)src >> 32));
out_dma32(&dma->datr, out_dma32(&dma->datr,
in_dma32(&dma->datr) | (u32)((u64)dest >> 32)); in_dma32(&dma->datr) | (u32)((u64)dest >> 32));
#endif
out_dma32(&dma->bcr, xfer_size); out_dma32(&dma->bcr, xfer_size);
dma_sync(); dma_sync();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment