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.

AM4378: Linux EDMA example

Guru 15520 points
Part Number: AM4378


Hi,

Our customer are looking for Linux sample code of
EDMA transfer between DDR3 and GPMC(RAM).

They are using AM437x and latest TI Processor Linux SDK.
Are there any sample code included in SDK which they are looking for?
Or are there EDMA sample code that they can refer to?

If there are no EDMA sample code, could you give us an advice
how to realize EDMA transfer between DDR3 and GPMC in Linux?

best regards,
g.f.

  • g.f.

    Please see this post for some useful information:

    e2e.ti.com/.../689540

    You may also find this post useful as well:

    e2e.ti.com/.../705057

    I hope this helps address your query. Thanks for the post.
  • Hi RonB,

    Thank you for the reply and sorry for my response was late.
    I take a look at the /Documentation/dmaengine/dmatest.txt 、/opt/ltp/runtest/ddt/dmatest
    and drivers/dma/dmatest.c .
    But I'm quite not understand yet how to make a program of dmaengine for transfering the data between DDR3 and
    the memory connected to GPMC.
    I'm sorry but could you tell me the method step by step in detail if available?

    best regards,
    g.f.
  • g.f.,

    I'm sorry, I can't provide a step by step guide. We provide example code that we test and validate on our hardware. That is the best help I can offer. In this case, the NAND driver should server as a good reference for you as it uses DMA and NAND connects to GPMC.

    The NAND driver can be found in drivers/mtd/nand/omap2.c

    I hope this provides a good direction for you.
  • Hi RonB,

    Thank you for the reply.
    I understood. I will check the omap2.c

    best regards,
    g.f.