Hello, On Wed, 2009-01-21 at 18:15 +0530, Prabhaharan R-TLS,Chennai wrote: > 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: > > > 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?
I guess not. The reason is that DM355 has 2 EDMA event queues and both are at present used by the MMC and the vdce driver respectively. So if you do want to use it for SPI, you must disable MMC or vdce and change the code in davinci_request_dma() to EVENTQ_0 or EVENTQ_1 (davinci_spi_master.c) The comment is actually wrong, DM355 does have EDMA capabilities. Also just for your info, MV does not officially support the /dev/spi interface. Regards, Philby _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
