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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

798 次查看
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.

标签 (2)
标记 (3)
0 项奖励
2 回复数

720 次查看
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 项奖励

720 次查看
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 项奖励