This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3352: EDMA example

Part Number: AM3352

Tool/software: Linux

Hello,

Previously SDK 08.00.00.00 runs on am3352 based custom board. And the edma part works well according to the  provided by TI. But now we want to update to SDK 04.02.00.09, and is there any edma sample code for the new SDK?

Best Regards

Yang  

  • Yang,

    We have moved over to the DMA Engine framework for accessing DMA. This framework allows the use of a generic DMA Test application documented in /Documentation/dmaengine/dmatest.txt inside the kernel sources.

    We also provide a test case for this in our test suite provided in /opt/ltp/runtest/ddt/dmatest that shows one example of how to utilize the dmatest application mentioned above.

    You can then adopt this code to do what you need in your specific application.
  • Hi, RonB

    Thanks for the quick reply. But it seems dmatest is a compiled application, I would like a C sample code about how to do DMA initialization and transfer so that it can be integrated to my driver module. Is there any C code like this? Or I misunderstand something?

    BR
    Yang

  • Yang,

    Please see drivers/dma/dmatest.c for the source within your kernel source tree. I believe this will provide exactly what you are looking for.
  • Hi, RonB

    I think that is exactly what I want. I am appreciated for your help.

    BR
    Yang