Merge "bm: Add Battery SOC for each platforms" into main

This commit is contained in:
Treehugger Robot 2023-11-22 17:28:20 +00:00 committed by Android (Google) Code Review
commit 8996d1b7ee

View File

@ -119,19 +119,31 @@ const struct MitigationConfig::EventThreadConfig eventThreadCfg = {
{ {
.MainPmicName = "s2mpg10-odpm\n", .MainPmicName = "s2mpg10-odpm\n",
.SubPmicName = "s2mpg11-odpm\n", .SubPmicName = "s2mpg11-odpm\n",
.NumericSysfsStatPaths = {
{"battery_soc", "/sys/class/power_supply/max77759fg/capacity"},
},
}, },
{ {
.MainPmicName = "s2mpg12-odpm\n", .MainPmicName = "s2mpg12-odpm\n",
.SubPmicName = "s2mpg13-odpm\n", .SubPmicName = "s2mpg13-odpm\n",
.NumericSysfsStatPaths = {
{"battery_soc", "/sys/class/power_supply/max77759fg/capacity"},
},
}, },
{ {
.MainPmicName = "s2mpg14-odpm\n", .MainPmicName = "s2mpg14-odpm\n",
.SubPmicName = "s2mpg15-odpm\n", .SubPmicName = "s2mpg15-odpm\n",
.NumericSysfsStatPaths = {
{"battery_soc", "/sys/class/power_supply/max77779fg/capacity"},
},
}, },
/* MAX_SUPPORTED_PLATFORM */ /* MAX_SUPPORTED_PLATFORM */
{ {
.MainPmicName = "s2mpg14-odpm\n", .MainPmicName = "s2mpg14-odpm\n",
.SubPmicName = "s2mpg15-odpm\n", .SubPmicName = "s2mpg15-odpm\n",
.NumericSysfsStatPaths = {
{"battery_soc", "/sys/class/power_supply/max77779fg/capacity"},
},
}, },
}, },