This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Wake up USB host on gpio event - omap4460

Hi All,

We have custom board based on OMAP4460, We have ported android on it. Now we are connecting GSM modem with the board through USB-OTG. Modem is connected  to processor through some gpios also. Now when any message or sms will come modem pin will give pulse on gpio of the processor, in this situation if board will be in suspended state, then i want to wake the USB host.(or the whole system). How can i achieve this?

---------------------------------------------------------------------------------------------------------------------------------

Thanks,

Jags VG

  • Hi,

    Basicly you need to do is:

    - Register the input gpio
    - Register an ISR for that GPIO via gpio_to_irq() and request_irq().
    - Build out the power management operations ( https://www.kernel.org/doc/Documentation/power/devices.txt) 
    - Arrange for your power management hooks to be called from the interrupt service routine

    Take a look also at this thread  - http://e2e.ti.com/support/omap/f/849/t/189398.aspx


    Hope I helped you.

    Regards,

    Boyko