Read CS pin value in i.MX6

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

Read CS pin value in i.MX6

480 Views
stevegabriel123
Contributor I

I am using i.MX6ull processor as slave. I want to read the status of the CS pin which is ecspi4 SS0 pin.

In which file i should monitor CS pin status?

I have tried to search in spi-imx.c file but i could not get high/low status(value) of CS pin.

please help me where to read status of this pin.

Thank you in advance.

Tags (2)
0 Kudos
1 Reply

440 Views
igorpadykov
NXP Employee
NXP Employee

Hi steve

>I have tried to search in spi-imx.c file but i could not get high/low status(value) of CS pin.

I am afraid there are no such codes in driver.

One can try to reconfigure it as gpio and read its value, example how access to register

can be found in memtool  memtool.c\memtool\test - imx-test - i.MX Driver Test Application Software 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos