Merge "zumapro: fix eeprom print in dump_power" into udc-qpr-dev am: 07a72bf20c
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zumapro/+/24199260 Change-Id: I027a898e68e352760c6e3dbb18b3ddb076ccaf9f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
e8b44cd142
2 changed files with 9 additions and 8 deletions
|
@ -239,10 +239,9 @@ on init
|
|||
chown system system /d/regmap/6-0057-pca9468-mains/registers
|
||||
|
||||
# Dump eeprom
|
||||
chown system system /sys/devices/platform/10970000.hsi2c/i2c-5/5-0050/eeprom
|
||||
chown system system /sys/devices/platform/10970000.hsi2c/i2c-4/4-0050/eeprom
|
||||
chown system system /sys/devices/platform/10da0000.hsi2c/i2c-6/6-0050/eeprom
|
||||
chown system system /sys/devices/platform/10c90000.hsi2c/i2c-6/6-0050/eeprom
|
||||
chown system system /sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom
|
||||
|
||||
chown system system /dev/battery_history
|
||||
chmod 0644 /dev/battery_history
|
||||
|
||||
|
|
|
@ -261,12 +261,14 @@ then
|
|||
fi
|
||||
|
||||
echo "\n------ Battery EEPROM ------"
|
||||
if find /sys/devices/platform/*.hsi2c/i2c-*/*-0050/eeprom
|
||||
if [ -e "/sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom" ]
|
||||
then
|
||||
for f in /sys/devices/platform/*.hsi2c/i2c-*/*-0050/eeprom
|
||||
do
|
||||
xxd $f
|
||||
done
|
||||
xxd /sys/devices/platform/10c90000.hsi2c/i2c-7/7-0050/eeprom
|
||||
fi
|
||||
|
||||
if [ -e "/sys/devices/platform/10c90000.hsi2c/i2c-6/6-0050/eeprom" ]
|
||||
then
|
||||
xxd /sys/devices/platform/10c90000.hsi2c/i2c-6/6-0050/eeprom
|
||||
fi
|
||||
|
||||
echo "\n------ Charger Stats ------"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue