On Android development board, I am trying to wake up the AP based on an interrupt received on a GPIO, can anybody help me with this?
My understanding on this is:
We need to create an input device and update an event to this device based on the interrupt received. Then from the application I believe OS will send an event occur notification and then we need to use the wakelock to wake up the AP.
Please let me know if my understanding is correct? If yes, then can you tell me which kind of input device needs to be registered (EV_PWR, EV_KEY ..), how the application will get a notification, and can we wake up the AP from the driver?