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.

SPI with DMA for dm8148 , A8

Hello everyone,

   I am using DM8148 and  I would like to know how to configure the SPI to work with DMA for A8 Core ? did any one tried it before ?   I do have a look to TRM but there is many information and options . please note that i am not using the McSpi drive which comes with psp i am using a custom made then how to configure it to work with my custom spi ?

Update:

The EDMA driver of psp seems to work fine individually, still didn't tried it with my custom spi driver!


Thanks

any suggestions or help would be appreciated.
  • I am curious about this as well.  A google search revealed that the PSP version 4.6.0.3's version of the file (spi-omap2-mcspi.c) seems to have support for this.  Whether it will actually work for an 81xx processor is not clear, since that PSP seems to be for another processor family.  Can anyone tell us which PSP or EZSDK release is planned to have support for SPI DMA?  Thanks.

  • Hello,

    Currently i am not using the McSPI driver from TI , I am using a custom made one but i would like to add the DMA support  to the driver , So do any one knows the right configurations for EDMA driver from TI to be used with spi ? or should i start writing my custom edma driver to work with m edma ( i don't think i would ) ?! any help or suggestion ? 

    Many Thanks

  • Hi,

    I have successfully been using the McSPI driver in the DM814x Linux PSP without any problems. I simply enabled the standard usermode "spidev" driver in the Linux kernel and access the SPI ports using /dev/spidevX.Y (Where X is the SPI port and Y is the CS). Although I am not sure whether it uses DMA or not, but it is _much_ faster than creating a "bit-banging" driver using GPIO.

    There is a simple sample applications available online (spidev_test.c) that shows how to use the spidev driver and plenty of documentation online :-)

    Regards,

    Karsten