Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217016
b: refs/heads/master
c: 3e57f16
h: refs/heads/master
v: v3
  • Loading branch information
Jarkko Nikula authored and Tony Lindgren committed Oct 11, 2010
1 parent 38a5058 commit a89da1d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 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: a1b04cc197e17c47b043051becb548dc8c60c886
refs/heads/master: 3e57f1626b5febe5cc99aa6870377deef3ae03cc
14 changes: 10 additions & 4 deletions trunk/arch/arm/plat-omap/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,11 +996,17 @@ void omap_start_dma(int lch)
l = dma_read(CCR(lch));

/*
* Errata: On ES2.0 BUFFERING disable must be set.
* This will always fail on ES1.0
* Errata: Inter Frame DMA buffering issue (All OMAP2420 and
* OMAP2430ES1.0): DMA will wrongly buffer elements if packing and
* bursting is enabled. This might result in data gets stalled in
* FIFO at the end of the block.
* Workaround: DMA channels must have BUFFERING_DISABLED bit set to
* guarantee no data will stay in the DMA FIFO in case inter frame
* buffering occurs.
*/
if (cpu_is_omap24xx())
l |= OMAP_DMA_CCR_EN;
if (cpu_is_omap2420() ||
(cpu_is_omap2430() && (omap_type() == OMAP2430_REV_ES1_0)))
l |= OMAP_DMA_CCR_BUFFERING_DISABLE;

l |= OMAP_DMA_CCR_EN;
dma_write(l, CCR(lch));
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/plat-omap/include/plat/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@
#define OMAP2_DMA_MISALIGNED_ERR_IRQ (1 << 11)

#define OMAP_DMA_CCR_EN (1 << 7)
#define OMAP_DMA_CCR_BUFFERING_DISABLE (1 << 25)

#define OMAP_DMA_DATA_TYPE_S8 0x00
#define OMAP_DMA_DATA_TYPE_S16 0x01
Expand Down

0 comments on commit a89da1d

Please sign in to comment.