power: supply: rockchip_charger_manager: Update charging function

Add the following features:
1. Support DC detection
2. Support 4:1 mode charge pump charging
3. Support charging temperature control

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I9b2dc18fd59a6926f8a40bdf38a2e6aba3820cb9
This commit is contained in:
shengfei Xu
2024-02-27 07:26:03 +00:00
committed by Tao Huang
parent 6d9f8e6931
commit 8b2140d905
3 changed files with 605 additions and 176 deletions

View File

@@ -242,7 +242,9 @@ static struct power_supply_attr power_supply_attrs[] = {
POWER_SUPPLY_ATTR(CP_VBUS_HERROR_STATUS),
POWER_SUPPLY_ATTR(CP_VBUS_LERROR_STATUS),
POWER_SUPPLY_ATTR(CP_CHARGING_ENABLED),
POWER_SUPPLY_ATTR(CP_WORK_MODE),
POWER_SUPPLY_ATTR(CP_WDT_EN),
POWER_SUPPLY_ATTR(CP_VOUT),
POWER_SUPPLY_ATTR(CP_VBUS),
POWER_SUPPLY_ATTR(CP_IBUS),
POWER_SUPPLY_ATTR(CP_SWITCHER_EN),

File diff suppressed because it is too large Load Diff

View File

@@ -193,7 +193,9 @@ enum power_supply_property {
POWER_SUPPLY_PROP_CP_VBUS_HERROR_STATUS,
POWER_SUPPLY_PROP_CP_VBUS_LERROR_STATUS,
POWER_SUPPLY_PROP_CP_CHARGING_ENABLED,
POWER_SUPPLY_PROP_CP_WORK_MODE,
POWER_SUPPLY_PROP_CP_WDT_EN,
POWER_SUPPLY_PROP_CP_VOUT,
POWER_SUPPLY_PROP_CP_VBUS,
POWER_SUPPLY_PROP_CP_IBUS,
POWER_SUPPLY_PROP_CP_SWITCHER_EN,