上面是内核模块代码,初始化GPIO/开启中断/映射GIC
当GPIO中断来临时,linux出现了以下情况,为什么不是出现IRQ35,而是IRQ0:
[ 27.979227] unexpected IRQ trap at vector 00[ 27.983521] unexpected IRQ trap at vector 00[ 27.988218] unexpected IRQ trap at vector 00[ 27.992504] unexpected IRQ trap at vector 00[ 27.996805] unexpected IRQ trap at vector 00[ 28.001104] unexpected IRQ trap at vector 00[ 28.005401] unexpected IRQ trap at vector 00[ 28.009690] unexpected IRQ trap at vector 00[ 28.013986] unexpected IRQ trap at vector 00[ 28.018276] unexpected IRQ trap at vector 00[ 28.022561] unexpected IRQ trap at vector 00[ 28.026855] unexpected IRQ trap at vector 00
Shine:
请问用的是哪个版本的Processor SDK?
user5889504:
回复 Shine:
ti-processor-sdk-linux-am57xx-evm-05.01.00.11/board-support/linux-4.14.67+gitAUTOINC+d315a9bb00-gd315a9bb00
Denny%20Yang99373:
DTS文件有没有相应的修改?
user5889504:
回复 Denny%20Yang99373:
gpio7: gpio@48051000 {compatible = "ti,omap4-gpio";reg = <0x48051000 0x200>;interrupts = <GIC_SPI 30 IRQ_TYPE_EDGE_RISING>;ti,hwmods = "gpio7";gpio-controller;#gpio-cells = <2>;interrupt-controller;#interrupt-cells = <2>;};
-interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
+ interrupts = <GIC_SPI 30 IRQ_TYPE_EDGE_RISING>;