dump_power: adding BMS changes for static i2c bus am: dab8549f10
am: 71b5c0d7d5
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/24575239 Change-Id: If8459032350179670b5a9decfa9532dbd5c142fa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
e682da388b
2 changed files with 8 additions and 12 deletions
|
@ -4,11 +4,12 @@ on init
|
|||
chown system system /sys/class/power_supply/maxfg_base/m5_model_state
|
||||
chown system system /sys/class/power_supply/max77779fg/model_state
|
||||
|
||||
# pca9468 : slider+77729: 6-0057; slider+MW A1: 5-0057
|
||||
chown system system /d/regmap/5-0057-pca9468-mains/registers
|
||||
chown system system /d/regmap/6-0057-pca9468-mains/registers
|
||||
# pca9468
|
||||
chown system system /d/regmap/9-0057-dc-mains/registers
|
||||
chown system system /d/regmap/10-0057-dc-mains/registers
|
||||
|
||||
# Dump eeprom
|
||||
chown system system /sys/devices/platform/10c90000.hsi2c/i2c-9/9-0050/eeprom
|
||||
chown system system /sys/devices/platform/10ca0000.hsi2c/i2c-10/10-0050/eeprom
|
||||
|
||||
chown system system /dev/battery_history
|
||||
|
|
|
@ -229,19 +229,14 @@ then
|
|||
fi
|
||||
|
||||
echo "\n------ Battery EEPROM ------"
|
||||
if [ -e "/sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom" ]
|
||||
if [ -e "/sys/devices/platform/10ca0000.hsi2c/i2c-10/10-0050/eeprom" ]
|
||||
then
|
||||
xxd /sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom
|
||||
xxd /sys/devices/platform/10ca0000.hsi2c/i2c-10/10-0050/eeprom
|
||||
fi
|
||||
|
||||
if [ -e "/sys/devices/platform/10c90000.hsi2c/i2c-6/6-0050/eeprom" ]
|
||||
if [ -e "/sys/devices/platform/10c90000.hsi2c/i2c-9/9-0050/eeprom" ]
|
||||
then
|
||||
xxd /sys/devices/platform/10c90000.hsi2c/i2c-6/6-0050/eeprom
|
||||
fi
|
||||
|
||||
if [ -e "/sys/devices/platform/10ca0000.hsi2c/i2c-6/6-0050/eeprom" ]
|
||||
then
|
||||
xxd /sys/devices/platform/10ca0000.hsi2c/i2c-6/6-0050/eeprom
|
||||
xxd /sys/devices/platform/10c90000.hsi2c/i2c-9/9-0050/eeprom
|
||||
fi
|
||||
|
||||
echo "\n------ Charger Stats ------"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue