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.

DaVinci SPI usage

I'm trying to use the SPI port on the DM644x (I'm modifying the kernel to allow the DM644x to access the SPI port), but I'm not sure which SPI write and read routines to use.  Should I use the bitbang routines?  Does this tie up the processor unnecessarily?  I am trying to write to the SPI port for a CMOS image sensor that uses SPI from a kernel-level driver.  I'm trying to copy routines that do similar things but use I2C.  I'd appreciate any insight into this.

Thanks,

Brian

  • I would probably start with an existing TI SPI port driver, even if not for the DM644x specifically (there never was a DM644x SPI driver in the PSP due to lack of hardware), in particular the DM355 has a similar SPI peripheral and the SPI driver source for it may be useful (lsp_2_00_00_140\ti-davinci\linux-2.6.18_pro500\drivers\spi\davinci_spi_master.c).