Support SPI SDMA in Mx25 -blog archive

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Support SPI SDMA in Mx25 -blog archive

631 Views
shaojun_wang
NXP Employee
NXP Employee

1. Kernel Patch

    0001-enable-spi-dma.patch

    0002-Optimize-SPI-DMA-performance.patch

 

2. Test code

    Create a char device to test the spi transfer, the driver is spi_generic.c, Makefile

    Application code to write the SPI char device is spi_test.c

 

3. Note

    These patches only support SPI DMA write. For SPI read, please use PIO mode.

    The DMA test port is SPI1, which is same as cpld_spi port. Since cpld_spi is using poll mode, it cannot work with pio/dma mode at the same time. So should not add "ip=dhcp" in u-boot command to enable network.

Original Attachment has been moved to: 8-0001enablespidma.patch

Original Attachment has been moved to: 12-spi_test.c

Original Attachment has been moved to: 10-spi_generic.c

Original Attachment has been moved to: 9-0002OptimizeSPIDMAperformance.patch

Tags (1)
0 Kudos
0 Replies