I am trying to create a GPIO interrupt on my 6580, At this moment I already build a module and success run it, insert mod ok.
root@phone:/system/lib/modules # insmod handler.ko
root@phone:/system/lib/modules # lsmod
handler 1083 0 - Live 0x00000000 (O)
interrupt also have running..
root@phone:/proc # cat interrupts
CPU0 CPU1
29: 2976813 2889996 - timer
..........
260: 0 0 mt-eint irqHandler
273: 1 0 mt-eint
FIQ: fiq_glue
IPI0: 0 0 CPU wakeup interrupts
IPI1: 0 0 Timer broadcast interrupts
IPI2: 12454357 14488673 Rescheduling interrupts
IPI3: 62 1078 Function call interrupts
IPI4: 3 4961 Single function call interrupts
IPI5: 0 0 CPU stop interrupts
IPI6: 0 0 CPU backtrace
And also I can see the GPIO value change.
root@phone:/sys/class/gpio/gpio4 # cat value
1
root@phone:/sys/class/gpio/gpio4 # cat value
0
But the irqHandler still didn't call. Then I have find the GPIO mapping information, I want change the GPIO AUX to EINT for test, But I don't know how, have any one know how to change it? I will very appreciate if you can answer me or share some experence.