GPIO based suspend/resume in imx6sl

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPIO based suspend/resume in imx6sl

477 Views
jansirani
Contributor III

hello everyone,

we designed one custom board same as iMX6SLEVK and ported Android(Kitkat) successfully.

In our custom board  we used GPIO's instead of Button matrix keys to implement the suspend/resume .

so how to implement GPIO based suspend/resume in android platform?

Ex: If i press switch for 250ms ,if my board is in wakeup mode it should goto sleep mode.

how i can implement this ?

Regards,

Jansirani

0 Kudos
1 Reply

342 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jansi

one can the same algorithm for gpio,  just add additional timer for 250ms detection,

use examples:

Working with GPIO on the Wandboard and Writing an Android Driver for GPIO Interrupts | Using Android...

https://d2phydb95qamfd.cloudfront.net/products/docs/vab-820/Android+BSP+Development+Guide/VAB-820_An...

http://www.ijareeie.com/upload/2014/june/15_Porting.pdf

Best regards

igor

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

Note: If this post answers your question, please click the Correct Answer button. Thank you!

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