dumpstate: Dump TCPC registers and attributes am: 7372d2275b am: d8dc4e43bb am: 35068885ad
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15856534 Change-Id: I559acb873491754131dd73e75bfb40c882799268
This commit is contained in:
commit
9a5cd29e7c
1 changed files with 10 additions and 0 deletions
|
@ -361,6 +361,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