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.

AM5728: Sample linux device driver to send receive data over PCIe using EDMA

Part Number: AM5728

Hi,

We are using AM5728 in our custom board. The board is based on AM572xEVM schematics.

The AM5728 is connected to one FPGA device. I want to write a simple linux character device driver on AM5728 which has to transfer some bytes to/fro to FPGA via PCIe using EDMA.

So, can I please get some example code or links on how to start writing this driver.

Basically, I want to know what all APIs to be used for EDMA, I don't see much APIs in the "src/linux/include/edma.h".

Kindly help me on how to start this.

Thanks & Regards

Vijay H.S

  • Vijay, 

    I believe you are trying to build a EDMA application in RC side. There is a endpoint example that you can reference EDMA APIs, the function is:

         pci_epf_data_transfer()

    and it is in the:

        ./drivers/pci/endpoint/pci-epf-core.c

    You can build your signature application based on EDMA APIs used in this function. Typically EDMA channels are scattered across kernel drivers, so there is no explicit API list. 

    Regards

    jian