From ced94e11979ea9680d9fd5c8094a5163c644fcfd Mon Sep 17 00:00:00 2001 From: Spade Lee Date: Mon, 29 Jul 2024 18:19:52 +0000 Subject: [PATCH] dump_power: add max77779sp dump path Bug: 347452474 Test: adb bugreport verify ok Flag: EXEMPT bugfix Change-Id: I69483cd7afd121c4d127d234685ff928bbf37b4c Signed-off-by: Spade Lee --- dumpstate/dump_power.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dumpstate/dump_power.cpp b/dumpstate/dump_power.cpp index 0c54118..5030405 100644 --- a/dumpstate/dump_power.cpp +++ b/dumpstate/dump_power.cpp @@ -543,6 +543,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() { const char *title = "Battery EEPROM"; const char *files[] { @@ -1102,6 +1111,7 @@ int main() { dumpBatteryDefend(); dumpChg(); dumpChgUserDebug(); + dumpScratchpad(); dumpBatteryEeprom(); dumpChargerStats(); dumpWlcLogs();