Commit 140673da authored by Troy Kisky's avatar Troy Kisky Committed by Kevin Hilman

ARM: DaVinci: Dma: fix davinci_set_dma_params bug

Commit 178bb537
(use __raw_writel) introduced a bug in davinci_set_dma_params
and davinci_get_dma_params. I forgot about CCNT.
Signed-off-by: default avatarTroy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent b7f8fa44
...@@ -1255,6 +1255,7 @@ void davinci_set_dma_params(int lch, edmacc_paramentry_regs *temp) ...@@ -1255,6 +1255,7 @@ void davinci_set_dma_params(int lch, edmacc_paramentry_regs *temp)
edma_parm_write(PARM_SRC_DST_BIDX, j, temp->src_dst_bidx); edma_parm_write(PARM_SRC_DST_BIDX, j, temp->src_dst_bidx);
edma_parm_write(PARM_LINK_BCNTRLD, j, temp->link_bcntrld); edma_parm_write(PARM_LINK_BCNTRLD, j, temp->link_bcntrld);
edma_parm_write(PARM_SRC_DST_CIDX, j, temp->src_dst_cidx); edma_parm_write(PARM_SRC_DST_CIDX, j, temp->src_dst_cidx);
edma_parm_write(PARM_CCNT, j, temp->ccnt);
} }
} }
EXPORT_SYMBOL(davinci_set_dma_params); EXPORT_SYMBOL(davinci_set_dma_params);
...@@ -1279,6 +1280,7 @@ void davinci_get_dma_params(int lch, edmacc_paramentry_regs *temp) ...@@ -1279,6 +1280,7 @@ void davinci_get_dma_params(int lch, edmacc_paramentry_regs *temp)
temp->src_dst_bidx = edma_parm_read(PARM_SRC_DST_BIDX, j); temp->src_dst_bidx = edma_parm_read(PARM_SRC_DST_BIDX, j);
temp->link_bcntrld = edma_parm_read(PARM_LINK_BCNTRLD, j); temp->link_bcntrld = edma_parm_read(PARM_LINK_BCNTRLD, j);
temp->src_dst_cidx = edma_parm_read(PARM_SRC_DST_CIDX, j); temp->src_dst_cidx = edma_parm_read(PARM_SRC_DST_CIDX, j);
temp->ccnt = edma_parm_read(PARM_CCNT, j);
} }
} }
EXPORT_SYMBOL(davinci_get_dma_params); EXPORT_SYMBOL(davinci_get_dma_params);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment