iMX6 SPI Question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX6 SPI Question

1,577 Views
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

Labels (2)
0 Kudos
Reply
2 Replies

1,325 Views
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 Kudos
Reply

1,325 Views
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 Kudos
Reply