Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

SPI Linux driver - davinci_spi.c

$
0
0

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


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>