dumpstate: Dump TCPC registers and attributes am: 7372d2275b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15856534 Change-Id: Ifc7f9c69859f7e8514e2e27ee0cb5f1a6233c699
This commit is contained in:
commit
eac22f2c6f
1 changed files with 10 additions and 0 deletions
|
@ -358,6 +358,16 @@ void DumpstateDevice::dumpPowerSection(int fd) {
|
|||
}
|
||||
}
|
||||
|
||||
RunCommandToFd(fd, "TCPC", {"/vendor/bin/sh", "-c",
|
||||
"for f in /sys/devices/platform/10d50000.hsi2c/i2c-*/i2c-max77759tcpc;"
|
||||
"do echo \"registers:\"; cat $f/registers;"
|
||||
"echo \"frs:\"; cat $f/frs;"
|
||||
"echo \"auto_discharge:\"; cat $f/auto_discharge;"
|
||||
"echo \"bc12_enabled:\"; cat $f/bc12_enabled;"
|
||||
"echo \"cc_toggle_enable:\"; cat $f/cc_toggle_enable;"
|
||||
"echo \"contaminant_detection:\"; cat $f/contaminant_detection;"
|
||||
"echo \"contaminant_detection_status:\"; cat $f/contaminant_detection_status; done"});
|
||||
|
||||
DumpFileToFd(fd, "PD Engine", "/dev/logbuffer_usbpd");
|
||||
DumpFileToFd(fd, "PPS-google_cpm", "/dev/logbuffer_cpm");
|
||||
DumpFileToFd(fd, "PPS-dc", "/dev/logbuffer_pca9468");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue