UFS: enable UFS clock gating when off mode charging

Avoid high UFS power consumption

Bug: 224888044
Test: check clkgate_enable in uart console
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: Ie5504a259621a8661133eebd8f574d5af2809abb
This commit is contained in:
Randall Huang 2022-03-16 14:37:46 +08:00
parent 1f95aca935
commit 3bec1149e8

View file

@ -945,3 +945,8 @@ on property:persist.vendor.softmaxfreq.cl1=*
on property:persist.vendor.softmaxfreq.cl2=*
write /sys/devices/platform/exynos-acme/freq_qos_max "6 ${persist.vendor.softmaxfreq.cl2}"
# UFS
on property:ro.boot.mode=charger && property:init.svc.vendor.charger=running
# Enable UFS powersaving in Off Mode Charger
write /dev/sys/block/bootdevice/clkgate_enable 1