Merge "dump_power: add max77779sp dump path" into main
This commit is contained in:
commit
ac8d8990e8
1 changed files with 10 additions and 0 deletions
|
@ -547,6 +547,15 @@ void dumpChgUserDebug() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void dumpScratchpad() {
|
||||||
|
const char *title = "max77779sp registers dump";
|
||||||
|
const char *file = "/sys/devices/platform/108d0000.hsi2c/i2c-6/6-0060/registers_dump";
|
||||||
|
|
||||||
|
if (isValidFile(file)) {
|
||||||
|
dumpFileContent(title, file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void dumpBatteryEeprom() {
|
void dumpBatteryEeprom() {
|
||||||
const char *title = "Battery EEPROM";
|
const char *title = "Battery EEPROM";
|
||||||
const char *files[] {
|
const char *files[] {
|
||||||
|
@ -1106,6 +1115,7 @@ int main() {
|
||||||
dumpBatteryDefend();
|
dumpBatteryDefend();
|
||||||
dumpChg();
|
dumpChg();
|
||||||
dumpChgUserDebug();
|
dumpChgUserDebug();
|
||||||
|
dumpScratchpad();
|
||||||
dumpBatteryEeprom();
|
dumpBatteryEeprom();
|
||||||
dumpChargerStats();
|
dumpChargerStats();
|
||||||
dumpWlcLogs();
|
dumpWlcLogs();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue