mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-02-01 11:27:36 +00:00
init: disable dock-defend in charger mode
Need to meet energy certification test requirement which needs to be able to charge FULL. Bug: 235437635 Test: can charge to full on dock in charger mode Signed-off-by: Jack Wu <wjack@google.com> Change-Id: I727e2596928dc8f95d7aeba775241419ddd78273
This commit is contained in:
committed by
TreeHugger Robot
parent
7b3af5b6ed
commit
d10e415cd9
@@ -295,6 +295,8 @@ on init
|
||||
chown system system /sys/devices/platform/google,charger/charge_start_level
|
||||
chown system system /sys/devices/platform/google,charger/charge_stop_level
|
||||
chown system system /sys/devices/platform/google,cpm/dc_ctl
|
||||
# Important to include dd_state as it's used in battery defender in charger mode
|
||||
chown system system /sys/devices/platform/google,charger/dd_state
|
||||
|
||||
# Power Stats HAL
|
||||
chown system system /dev/bbd_pwrstat
|
||||
@@ -718,6 +720,8 @@ on property:sys.boot_completed=1
|
||||
|
||||
# Enable UFS powersaving
|
||||
write /dev/sys/block/bootdevice/clkgate_enable 1
|
||||
# Disable dock-defend in Off Mode Charger
|
||||
write /sys/devices/platform/google,charger/dd_state -1
|
||||
|
||||
# Reset DDR frequency
|
||||
write /sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/exynos_data/cancel_boot_freq 1
|
||||
|
||||
Reference in New Issue
Block a user