mfd: max77851: Enter SLEEP on suspend based on DT

Add option to disable entry to SLEEP when system is suspended.
There are systems where SW_SLP is not necessary on system suspend
as it could be managed differently. Provide an option not to enter
SLEEP state during suspend for such systems.

Bug 3643699

Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Change-Id: I1600d0d053a15e18c7419a377962b76845bb92b5
Reviewed-on: https://git-master.nvidia.com/r/c/linux-5.10/+/2712396
(cherry picked from commit a83d4b50fdef4af7a9360224cad0357672bbd380)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-5.10/+/2717492
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2938654
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Akhil R
2022-05-14 08:09:10 +05:30
committed by mobile promotions
parent 1ab8a495fc
commit 3006e5b42f
2 changed files with 17 additions and 10 deletions

View File

@@ -1704,6 +1704,7 @@ struct max77851_chip {
bool sleep_enable;
bool enable_global_lpm;
bool sleep_on_suspend;
unsigned int fps_master_pd_slot_period;
unsigned int fps_master_pu_slot_period;