iMX6 SPI Question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

iMX6 SPI Question

1,263件の閲覧回数
chaithucheruku
Contributor I

Hello,

I’m newbie to the embedded world and firmware development. Please excuse me for questions. I’m using iMX6 SOM for my project and one of the requirements for the project is to use SPI in master mode with SPI_RDY. I want SPI Data Ready Control to be level-triggered. Could someone clarify my questions:

  1.         How can I set ECSPI_CONREG[DRCTL] bit from user space?
  2.        I want SPIDEV test application to wait for spi_ready signal and not to timeout (transfer timeout errors). How can I disable or increase the timeout during development testing?

Thanks,

Chaithu

ラベル(2)
0 件の賞賛
返信
2 返答(返信)

1,011件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

I think you can try to control the spi driver by using ioctl. you can take the spidev.c and spidev.h for reference.

0 件の賞賛
返信

1,011件の閲覧回数
chaithucheruku
Contributor I

Hello,

Please excuse me for silly questions, can I read and write ECSPI_CONREG[DRCTL] bit using SPI_IOC_RD_MODE32  and SPI_IOC_WR_MODE32?

Thanks,

Chaithu

0 件の賞賛
返信