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.
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!
-----------------------------------------------------------------------------------------------------------------------