File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -703,6 +703,17 @@ static int mmp_tdma_probe(struct platform_device *pdev)
703
703
tdev -> device .device_terminate_all = mmp_tdma_terminate_all ;
704
704
tdev -> device .copy_align = DMAENGINE_ALIGN_8_BYTES ;
705
705
706
+ tdev -> device .directions = BIT (DMA_DEV_TO_MEM ) | BIT (DMA_MEM_TO_DEV );
707
+ if (type == MMP_AUD_TDMA ) {
708
+ tdev -> device .max_burst = SZ_128 ;
709
+ tdev -> device .src_addr_widths = BIT (DMA_SLAVE_BUSWIDTH_4_BYTES );
710
+ tdev -> device .dst_addr_widths = BIT (DMA_SLAVE_BUSWIDTH_4_BYTES );
711
+ } else if (type == PXA910_SQU ) {
712
+ tdev -> device .max_burst = SZ_32 ;
713
+ }
714
+ tdev -> device .residue_granularity = DMA_RESIDUE_GRANULARITY_BURST ;
715
+ tdev -> device .descriptor_reuse = true;
716
+
706
717
dma_set_mask (& pdev -> dev , DMA_BIT_MASK (64 ));
707
718
platform_set_drvdata (pdev , tdev );
708
719
You can’t perform that action at this time.
0 commit comments