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 Linux driver - davinci_spi.c

Other Parts Discussed in Thread: SYSBIOS

Hello everyone,

I am looking for help on spi driver issue.

I am using OMAPL-138 on LogicPD's (eXperimenter Kit) and work on ARM core with Linux OS, TI's DVSDK.

I find a problem is that this my salve spi device is set to the master' frequency.

On the function davinci_spi_setup_transfer(), there is a line of code

if (!hz)
hz = spi->max_speed_hz;

This 'hz' comes from above line of code 

if (t) {
bits_per_word = t->bits_per_word;
hz = t->speed_hz;
}

The 't' is the passed argument, struct spi_transfer *t. which is "0" when a salve spi driver is in transfer operation.

Is anyone can help me on this?

My slave driver is based on spike -

http://www.jumpnowtek.com/index.php?option=com_content&view=article&id=57&Itemid=62

and hook on the davinci_spi driver through board-da850-evm.c

Thank you for tips

Joe