dump_power: add dual battery debugfs path
Bug: 334773288 Change-Id: If8d69a88b0d3c1fb5ab37b855e1efd265eab618b Signed-off-by: Jenny Ho <hsiufangho@google.com>
This commit is contained in:
parent
6491a6572a
commit
cd9e0185ec
1 changed files with 20 additions and 1 deletions
|
@ -475,6 +475,11 @@ void dumpChgUserDebug() {
|
||||||
const std::string debugfs = "/d/";
|
const std::string debugfs = "/d/";
|
||||||
const char *maxFgDir = "/d/maxfg";
|
const char *maxFgDir = "/d/maxfg";
|
||||||
const char *maxFgStrMatch = "maxfg";
|
const char *maxFgStrMatch = "maxfg";
|
||||||
|
const char *maxBaseFgDir = "/d/maxfg_base";
|
||||||
|
const char *maxBaseFgStrMatch = "maxfg_base";
|
||||||
|
const char *maxSecFgDir = "/d/maxfg_secondary";
|
||||||
|
const char *maxSecFgStrMatch = "maxfg_secondary";
|
||||||
|
const char *max77779FgDir = "/d/max77779fg";
|
||||||
const char *maxFg77779StrMatch = "max77779fg";
|
const char *maxFg77779StrMatch = "max77779fg";
|
||||||
const char *chgTblName = "Charging table dump";
|
const char *chgTblName = "Charging table dump";
|
||||||
const char *chgTblDir = "/d/google_battery/chg_raw_profile";
|
const char *chgTblDir = "/d/google_battery/chg_raw_profile";
|
||||||
|
@ -495,6 +500,11 @@ void dumpChgUserDebug() {
|
||||||
"debug_registers",
|
"debug_registers",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const char *max1720xFgInfo [] {
|
||||||
|
"registers",
|
||||||
|
"nv_registers",
|
||||||
|
};
|
||||||
|
|
||||||
if (isUserBuild())
|
if (isUserBuild())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -504,10 +514,19 @@ void dumpChgUserDebug() {
|
||||||
for (auto & directory : maxFgInfo) {
|
for (auto & directory : maxFgInfo) {
|
||||||
printValuesOfDirectory(directory, debugfs, maxFgStrMatch);
|
printValuesOfDirectory(directory, debugfs, maxFgStrMatch);
|
||||||
}
|
}
|
||||||
} else {
|
} else if (isValidDir(max77779FgDir)) {
|
||||||
for (auto & directory : max77779FgInfo) {
|
for (auto & directory : max77779FgInfo) {
|
||||||
printValuesOfDirectory(directory, debugfs, maxFg77779StrMatch);
|
printValuesOfDirectory(directory, debugfs, maxFg77779StrMatch);
|
||||||
}
|
}
|
||||||
|
} else if (isValidDir(maxBaseFgDir)) {
|
||||||
|
for (auto & directory : max77779FgInfo) {
|
||||||
|
printValuesOfDirectory(directory, debugfs, maxBaseFgStrMatch);
|
||||||
|
}
|
||||||
|
if (isValidDir(maxSecFgDir)) {
|
||||||
|
for (auto & directory : max1720xFgInfo) {
|
||||||
|
printValuesOfDirectory(directory, debugfs, maxSecFgStrMatch);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue