Linux kernel interrupt

I took one gpio of my omap4 based user board as the gpio input. When I connect any external h / w on any port, then the gpio input will be reset, and I get an interrupt on that gpio.

Now when I run the Linux 2.6 kernel, it works fine and receives an interrupt in this gpio, but when I use the Linux 3.0 kernel, it does not create an interrupt on this gpio. The value of this gpio does not change, and the interrupt handler is not called.

So, is there any difference in setting the power level to create an interrupt in the Linux kernel?

+4
source share
1 answer

As mentioned in the comments, the problem was resolved by correctly specifying pull-ups on the output.

Another thing that you should usually consider is pin-mux , that is, you need to check that this contact is configured as GPIO, and not some other functions.

A detailed description of the pin configuration,
specially for OMAP4 (multiplexer, pull, wakeup), available here .

+1
source

Source: https://habr.com/ru/post/1442268/


All Articles