Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31673
b: refs/heads/master
c: eca9e56
h: refs/heads/master
i:
  31671: 3b424db
v: v3
  • Loading branch information
Peter Ujfalusi authored and Tony Lindgren committed Jun 26, 2006
1 parent e63552e commit 184468c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e8cdf7bdf3efbb1e285fd82a86a3f8fae5ae2665
refs/heads/master: eca9e56eb8dfcf2b8b966c1c49e4622196f0586d
6 changes: 6 additions & 0 deletions trunk/arch/arm/plat-omap/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,18 +166,24 @@ void omap_set_dma_transfer_params(int lch, int data_type, int elem_count,
if (cpu_is_omap24xx() && dma_trigger) {
u32 val = OMAP_DMA_CCR_REG(lch);

val &= ~(3 << 19);
if (dma_trigger > 63)
val |= 1 << 20;
if (dma_trigger > 31)
val |= 1 << 19;

val &= ~(0x1f);
val |= (dma_trigger & 0x1f);

if (sync_mode & OMAP_DMA_SYNC_FRAME)
val |= 1 << 5;
else
val &= ~(1 << 5);

if (sync_mode & OMAP_DMA_SYNC_BLOCK)
val |= 1 << 18;
else
val &= ~(1 << 18);

if (src_or_dst_synch)
val |= 1 << 24; /* source synch */
Expand Down

0 comments on commit 184468c

Please sign in to comment.