Merge "init: qcom: Start battery_monitor for msm8974"

This commit is contained in:
Linux Build Service Account 2013-06-12 18:17:16 -07:00 committed by Gerrit - the friendly Code Review server
commit b08fe75c25
1 changed files with 17 additions and 6 deletions

View File

@ -54,12 +54,19 @@ start_sensors()
start_battery_monitor()
{
chown root.system /sys/module/pm8921_bms/parameters/*
chmod 0660 /sys/module/pm8921_bms/parameters/*
mkdir -p /data/bms
chown root.system /data/bms
chmod 0770 /data/bms
start battery_monitor
if ls /sys/bus/spmi/devices/qpnp-bms-*/fcc_data ; then
chown root.system /sys/module/pm8921_bms/parameters/*
chown root.system /sys/module/qpnp_bms/parameters/*
chown root.system /sys/bus/spmi/devices/qpnp-bms-*/fcc_data
chown root.system /sys/bus/spmi/devices/qpnp-bms-*/fcc_temp
chown root.system /sys/bus/spmi/devices/qpnp-bms-*/fcc_chgcyl
chmod 0660 /sys/module/qpnp_bms/parameters/*
chmod 0660 /sys/module/pm8921_bms/parameters/*
mkdir -p /data/bms
chown root.system /data/bms
chmod 0770 /data/bms
start battery_monitor
fi
}
baseband=`getprop ro.baseband`
@ -169,5 +176,9 @@ case "$target" in
"Liquid")
start profiler_daemon;;
esac
case "$baseband" in
"msm")
start_battery_monitor;;
esac
;;
esac