qpnp-fg-gen3: export the battery float voltage
Implement VOLTAGE_MAX_DESIGN to expose the battery float voltage. This property will reflect the values read from battery profile and will will be used for setting the max voltage on charging chips. Change-Id: I4b9028f8930ac2f3de6c043fa145494f37322160 Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
This commit is contained in:
parent
67d71eb938
commit
79c88a3bdb
1 changed files with 4 additions and 0 deletions
|
@ -800,6 +800,9 @@ static int fg_psy_get_property(struct power_supply *psy,
|
|||
case POWER_SUPPLY_PROP_BATTERY_TYPE:
|
||||
pval->strval = fg_get_battery_type(chip);
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN:
|
||||
pval->intval = chip->bp.float_volt_uv;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -861,6 +864,7 @@ static enum power_supply_property fg_psy_props[] = {
|
|||
POWER_SUPPLY_PROP_RESISTANCE,
|
||||
POWER_SUPPLY_PROP_BATTERY_TYPE,
|
||||
POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN,
|
||||
};
|
||||
|
||||
static const struct power_supply_desc fg_psy_desc = {
|
||||
|
|
Loading…
Add table
Reference in a new issue