I need to disable the power button function when our unit enters a certain state and enable it when it leaves that state.
Does Android have a function call for that(imx_snvs_pwrkey_pm_ops?), or do I need to disable the interrupt?
Thanks
Solved! Go to Solution.
Hello @dgeier315
As you mentioned, disabling the IRQ can works, and re-enabling again. Take a look to the ICR1, ICR2 and IMR registers on Reference Manual.
Best regards,
Salas.