Hi Ravi,

My best advise is to look at Starterware example code for McSPI. This will give 
you some idea on how to configure and use the McSPI at the register level. When 
that is familiar, then reading through the /drivers/dma/edma.c code will be 
easier to understand. You will notice that the McSPI is configures in slave 
mode by default and then the driver configures it to master mode. The complete 
SPI framework in Linux is based on master mode and there is as far an I know no 
slave mode framework. I am looking at using McSPI with EDMA so that packets 
received by the McSPI are stored in a ping-pong buffer and then using a 
callback, process that buffer. At the moment this is WIP and I’m hoping with 
some help from others on the mailing list I will get this done shortly. 

Regards,
John




> On Nov 3, 2015, at 4:22 AM, [email protected] wrote:
> 
> 
> Hi ALL,
> 
> Please provide your support on this BBB SPI slave configuration and sample 
> code for kernel 3.8.13 .
> 
> I have done Master mode communication  with slave memory device, but i want 
> to communication with two BBB. one is mater and another is salve device.
> 
> I guess present kernel doesn't support slave mode but i don't know kernel 
> modification to change master to salve mode.
> 
> Please provide your valuable inputs to me.
> 
> Thank you in advance....
> 
> Regards
> Ravi 
> 
> -- 
> For more options, visit http://beagleboard.org/discuss 
> <http://beagleboard.org/discuss>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to