mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
TWM (Traditional watch mode) is a low power mode supported on the BG platform. PMIC is configured differently while entering into TWM mode. Add a sysfs node to - 1. Allow the BG daemon to enable/disable TWM mode. echo 1 > /sys/class/pmic_twm/twm_enable --> Enable TWM mode echo 0 > /sys/class/pmic_twm/twm_enable --> Clear TWM mode 2. Allow the BG daemon to check the TWM_EXIT state. cat /sys/class/pmic_twm/twm_exit Value of "1" indicates exit from TWM state Also, add a notifier to notify other modules of the TWM enable configuration. Change-Id: Ide2f56a80d7b21d3def6a640db71512c20d30015 Signed-off-by: Sundara Vinayagam <sundvi@codeaurora.org> Signed-off-by: Shilpa Suresh <sbsure@codeaurora.org>