SPI interrupt for ECSPI4 using RXBUFF register fot i.MX6UL.

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

SPI interrupt for ECSPI4 using RXBUFF register fot i.MX6UL.

1,072 Views
stevegabriel123
Contributor I

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.

Labels (2)
0 Kudos
Reply
2 Replies

994 Views
igorpadykov
NXP Employee
NXP Employee

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

0 Kudos
Reply

994 Views
stevegabriel123
Contributor I

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. 

0 Kudos
Reply