I want to implement SPI interrupt using RXBUFF register. I dont have any idea how to implement it in spi-imx.c.
Does anyone have any solution regarding it. I just want to create an interrupt for SPI communication.
Hi steve
ecspi is already using interrupts, one can look at dts file:
ecspi4: ecspi@2014000 {.. reg = <0x2014000 0x4000>;
interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
imx6ul.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel
Linux interrupt infrastructure is described in sect.2.1.2.4 Interrupt Source Code Structure
attached Linux Manual. Driver sources:
spi-imx.c\spi\drivers - linux-imx - i.MX Linux kernel
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks Igor. But i do not know how to use and monitor it.
My main task is to monitor the interrupt when i receive data on SPI, Once interrupt is occurred, I want to confirm it and read the coming data.