summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxkeita <keita_nya@live.jp>2017-06-18 01:47:06 +0000
committernailyk-fr <nailyk_git@nailyk.fr>2017-06-25 13:52:53 +0000
commit9caecdc66208035e8d5c617b2061994f63c159ec (patch)
treeef08a4e60e6f740ab568c000148838ca010229ab
parentd55c70593539b17b404414a0dcb65ba67113d045 (diff)
shinano-common: Set max mA for charging
- Based on msm8974 dts kernel config - This replaces the need for the entry in thermanager.xml Change-Id: I6973d2c21212dc1b7816b5a0174812159f6e41d9
-rw-r--r--rootdir/init.qcom.power.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/rootdir/init.qcom.power.rc b/rootdir/init.qcom.power.rc
index b46d542..baa5de9 100644
--- a/rootdir/init.qcom.power.rc
+++ b/rootdir/init.qcom.power.rc
@@ -147,6 +147,10 @@ on property:init.svc.bootanim=stopped
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
+ # Set max mA current for usb/dc charger
+ write /sys/class/power_supply/qpnp-dc/current_max 1800000
+ write /sys/class/power_supply/usb/current_max 1500000
+
on property:init.svc.recovery=running
trigger enable-low-power