From 9caecdc66208035e8d5c617b2061994f63c159ec Mon Sep 17 00:00:00 2001 From: xkeita Date: Sun, 18 Jun 2017 01:47:06 +0000 Subject: 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 --- rootdir/init.qcom.power.rc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rootdir') 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 -- cgit v1.2.3