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
snvs_pwrkey: snvs-powerkey {
compatible = "fsl,sec-v4.0-pwrkey";
regmap = <&snvs>;
interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8MP_CLK_SNVS_ROOT>;
clock-names = "snvs-pwrkey";
linux,keycode = <KEY_POWER>;
debounce-interval = <2000>;
wakeup-source;
status = "okay";
};