AnsweredAssumed Answered

How to design a SPI Slave driver of Linux kernel 2.6.35 on i.MX28 platform.

Question asked by yongki min on Jun 16, 2014
Latest reply on Aug 30, 2015 by Zhang

I’m designing a SPI Slave driver of Linux kernel 2.6.35 on i.MX28 platform.

I know that Linux does not support only Master mode! So the application code starts with spi_ioc_transfer ioctl.

 

But, the CPU (i.MX285) can support Slave function.

Is there anyone can help me or example?

  1. 1. How to setup Slave mode to receive a data from Master side?
    I think the SPI interrupt in Slave mode should be occur after settings (Slave settings).
    I think SPI operation will start with SS (Slave Select) signal of Master side.
    But I confuse how to setup because the BSP is only shows Master examples.

  2. 2. If I receive a data from Master side in SPI handler, then what is next?
    How to share or send a data copy from Data Register to user

 

Thanks.

Outcomes