projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2950157
)
omap: DMA: Init CDAC to zero
author
manjugk manjugk
<
[email protected]
>
Thu, 4 Mar 2010 07:11:56 +0000
(07:11 +0000)
committer
Tony Lindgren
<
[email protected]
>
Fri, 23 Apr 2010 00:34:27 +0000
(17:34 -0700)
The register DMA4_CDAC needs to be initialized to zero
before starting DMA transfer.
Cc: Santosh Shilimkar <
[email protected]
>
Cc: Govindraj R <
[email protected]
>
Cc: Kevin Hilman <
[email protected]
>
Reported-by:S, Venkatraman <
[email protected]
>
Signed-off-by: Manjunatha GK <
[email protected]
>
Signed-off-by: Tony Lindgren <
[email protected]
>
arch/arm/plat-omap/dma.c
patch
|
blob
|
history
diff --git
a/arch/arm/plat-omap/dma.c
b/arch/arm/plat-omap/dma.c
index 2ab224c8e16c450f6b2bd96fdff71b94aabf864d..f6c9bdc95bcef2089d2a642e8a9e39ae9012bd74 100644
(file)
--- a/
arch/arm/plat-omap/dma.c
+++ b/
arch/arm/plat-omap/dma.c
@@
-936,6
+936,15
@@
void omap_start_dma(int lch)
{
u32 l;
+ /*
+ * The CPC/CDAC register needs to be initialized to zero
+ * before starting dma transfer.
+ */
+ if (cpu_is_omap15xx())
+ dma_write(0, CPC(lch));
+ else
+ dma_write(0, CDAC(lch));
+
if (!omap_dma_in_1510_mode() && dma_chan[lch].next_lch != -1) {
int next_lch, cur_lch;
char dma_chan_link_map[OMAP_DMA4_LOGICAL_DMA_CH_COUNT];