Dear everyone
I am new to use MPC8309, kernel version:2.6.33.7, BSP version:TWRMPC8309_Linux_BSP.zip.i want to use gpio as a interrupt function,from high level to low level as trigger condition,refer to MPC8309RM.pdf
i call request_irq(),function as follow:
request_irq() the second parameter only set up "IRQF_TRIGGER_LOW“,if set up "IRQF_TRIGGER_RISING" "IRQF_TRIGGER_FALLING" "IRQF_TRIGGER_HIGH"will cause error , error:"INVAL".
I used IRQ0、IRQ1.as follow:
but it no error, i see MPC8309RM.pdf,find System External Interrupt Control Register (SECNR)
the EDIx can set up interrupt signals,but i do not find set up interrupt signals in System Internal Interrupt Control Register.
i do not know what different system external interrupt(IRQ0) and system internal interrupt(GPIO),and gpio can not set up IRQF_TRIGGER_RISING" "IRQF_TRIGGER_FALLING" "IRQF_TRIGGER_HIGH" state, only set up IRQF_TRIGGER_LOW and not be change..
who can give me some advise ?
Have a good day .
The MPC8309 IRQ0 is used as interrupt from MPR121 touch screen on Display Module. See the TWR-MPC8309 dts file.
Look at attached file. The TWRMPC8309_Linux_BSP does not support sys/dev possibility for GPIO. Use Generic GPIO API. Is there problem for using gpio_is_valid or gpio_request procedures.
Have a great day,
Pavel
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------