diff options
author | Redick Lin <redicklin@google.com> | 2018-09-18 20:50:09 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-09-18 20:50:09 -0700 |
commit | 0d604ccc3a7700e49247661e116f4a395047988a (patch) | |
tree | 84f892ce99e591aa7886a6e41bd8c64756829955 /dumpstate | |
parent | fa6bd7209d364b08e764959d9142ad92cc34933d (diff) | |
parent | 118833d2f752db2b3944d8c6ac5b4e883f803e7f (diff) | |
download | bonito-0d604ccc3a7700e49247661e116f4a395047988a.tar.gz |
Merge "dumpstate: collect PMIC PON/POFF registers" into pi-dev am: 6ea563ab60
am: 118833d2f7
Change-Id: I73eeaa58b120ab41a6954e6adb2f36ef3f9cbc65
Diffstat (limited to 'dumpstate')
-rwxr-xr-x | dumpstate/DumpstateDevice.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 03a3eb4a..fbcc3d62 100755 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -309,6 +309,10 @@ Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) { DumpFileToFd(fd, "Battery cycle count", "/sys/class/power_supply/bms/device/cycle_counts_bins"); DumpFileToFd(fd, "Maxim FG registers", "/d/regmap/4-0036/registers"); DumpFileToFd(fd, "Maxim FG NV RAM", "/d/regmap/4-000b/registers"); + DumpFileToFd(fd, "PM670 PON registers", + "/d/c440000.qcom,spmi:qcom,pm660@0:qcom,power-on@800/pmic_pon_dump"); + DumpFileToFd(fd, "PM670A PON registers", + "/d/c440000.qcom,spmi:qcom,pm660l@2:qcom,power-on@800/pmic_pon_dump"); RunCommandToFd(fd, "QCOM FG SRAM", {"/vendor/bin/sh", "-c", "echo 0 > /d/fg/sram/address ; echo 500 > /d/fg/sram/count ; cat /d/fg/sram/data"}); RunCommandToFd(fd, "eSIM Status", {"/vendor/bin/sh", "-c", "od -t x1 /sys/firmware/devicetree/base/chosen/cdt/cdb2/esim"}); |