Hello All,

 

As per the DM355 SPI controller data sheet, we have the SPI DMA support
on the controller. We are using the TI Montavista Linux code. In that we
have the driver for SPI i.e davinci_master.c and other dependent files. 

 

Code copied from the Montavista Linux tree:

 

davinci_spi = spi_master_get_devdata(master);

            davinci_spi->bitbang.master = spi_master_get(master);

            davinci_spi->bitbang.chipselect = davinci_spi_chipselect;

            davinci_spi->bitbang.setup_transfer =
davinci_spi_setup_transfer;

 

            /* DM355 does not have DMA capabilities */

            if (cpu_is_davinci_dm355())

                use_dma = 0;

 

            if (use_dma) {

                        davinci_spi->bitbang.txrx_bufs =
davinci_spi_bufs_dma;

            } else {

                        davinci_spi->bitbang.txrx_bufs =
davinci_spi_bufs_pio;

            }

 

In the above code, they have mentioned the comment as "DM355 does not
have DMA capabilities". This is in controversy with the SPI controller
datasheet.

 

Will the same SPI driver will work fine, if this part of code is
commented out? 

 

Did anyone use this SPI driver in your target with DMA support?

 

Please reply.

 

Thanks a lot in advance.

 

Regards,

Prabhaharan.R



DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to