Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130228
b: refs/heads/master
c: 4b3cf44
h: refs/heads/master
v: v3
  • Loading branch information
Anand Gadiyar authored and Tony Lindgren committed Jan 15, 2009
1 parent 189c165 commit 93ff5a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3a26e3318bc2ceec340f242c6ee7074becdc7219
refs/heads/master: 4b3cf44846b6424d4119676ad68d54a62b81e31c
13 changes: 5 additions & 8 deletions trunk/arch/arm/plat-omap/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,11 @@ void omap_set_dma_transfer_params(int lch, int data_type, int elem_count,
u32 val;

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

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

/* DMA_SYNCHRO_CONTROL_UPPER depends on the channel number */
val &= ~((3 << 19) | 0x1f);
val |= (dma_trigger & ~0x1f) << 14;
val |= dma_trigger & 0x1f;

if (sync_mode & OMAP_DMA_SYNC_FRAME)
val |= 1 << 5;
Expand Down

0 comments on commit 93ff5a9

Please sign in to comment.