Liu Hua spiffera, alle Monday 21 September 2009 circa:
> But it seems that no data output. Can anyone help me? Thanks.
> There's one thing I'm not sure. If emif is configured as 16 bit, can
> we write bytes twice to form a word? Like this, one byte to (EMIF
> ADDR), one byte to (EMIF ADDR +1).
Why can't you simply use W16BIT? I guess you may save some trouble this
way.
BTW: I had a similar problem, and I accomplished my work with something
like that:
acnt=<your transfer length>;
bcnt = 1;
src_port = edmabuf;
dst_port = <your EMIF address>;
src_bidx = 2;
dst_bidx = 0;
davinci_set_dma_src_params(lch, src_port, INCR, W16BIT );
davinci_set_dma_dest_params(lch, dst_port, FIFO, W16BIT );
davinci_set_dma_src_index(lch, src_bidx, 0);
davinci_set_dma_dest_index(lch, dst_bidx, 0);
davinci_set_dma_transfer_params(lch, acnt, bcnt, 1, 0, ASYNC);
Hope this helps.
--
Andrea Gasparini
---- ImaVis S.r.l. ----
web: www.imavis.com
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source