imx537 with linux3.0.101 gpio interrupt not respond

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

imx537 with linux3.0.101 gpio interrupt not respond

982 Views
dizhuyuan
Contributor III

大家好:

   我移植linux3.0.101到IMX537上,系统可以起来,fec、uart等中断可以响应,GPIO中断不能响应,同样的GPIO驱动在linux2.6.35上可以正常使用,我不知道问题出现在哪里,希望能得到帮助。

HI:(google translate)

Hello everyone:
I transplant linux3.0.101 to IMX537, the system can be up, fec, uart and other interrupts can respond, GPIO interrupt can not respond, the same GPIO driver can be used normally on linux2.6.35, I do not know where the problem occurs, hoping to get help.

   

root@freescale ~$ cat /proc/interrupts
CPU0
1: 2348 MXC_TZIC mxsdhci
13: 7994 MXC_TZIC IMX-uart
39: 59680 MXC_TZIC i.MX Timer Tick
64: 14 MXC_TZIC imx-i2c
87: 64 MXC_TZIC fec
225: 0 GPIO da9052_eh
333: 0 GPIO adc_irq
Err: 0

adc-irq open
irq_no = 333
gpio_set_irq_type 333 gpio = 205>>>>>>>>>>>>>>>>>>
gpio_unmakse_irq 333 gpio = 205 [gpio / 32] = 6 gpio &0x1f = 13>>>>>>>>>>>>>>>>>>>

0 Kudos
2 Replies

802 Views
igorpadykov
NXP Employee
NXP Employee

Hi dizhu

one can try to debug it using AN4553 Using Open Source Debugging

Tools for Linux on i.MX Processors
https://www.nxp.com/docs/en/application-note/AN4553.pdf

and sect.2.1 Interrupts attached Linux Manual

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

0 Kudos

802 Views
dizhuyuan
Contributor III

为什么没有人回答我,是我没有把问题描述清楚吗?GPIO配置我已经确认过了,如果我在request_irq的时候把irq直接填为107号中断时,自己通过操作寄存器来GPIO,中断就没法退出,我在想是不是与TZIC控制器有关,但在源码内没有找到GPIO中断与TZIC相关联的代码。

0 Kudos