soong: Implement charge limit mode
Change-Id: Ic14335339528ae11ac25ae1d09bb705708c29008
This commit is contained in:
committed by
Michael Bestas
parent
eed8eb046f
commit
8fbefea585
@@ -292,6 +292,7 @@ soong_config_module_type {
|
||||
"target_health_charging_control_supports_toggle",
|
||||
"target_health_charging_control_supports_bypass",
|
||||
"target_health_charging_control_supports_deadline",
|
||||
"target_health_charging_control_supports_limit",
|
||||
],
|
||||
value_variables: [
|
||||
"target_health_charging_control_charging_path",
|
||||
@@ -314,6 +315,9 @@ health_charging_control {
|
||||
target_health_charging_control_supports_deadline: {
|
||||
cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE"],
|
||||
},
|
||||
target_health_charging_control_supports_limit: {
|
||||
cppflags: ["-DHEALTH_CHARGING_CONTROL_SUPPORTS_LIMIT"],
|
||||
},
|
||||
target_health_charging_control_charging_path: {
|
||||
cppflags: ["-DHEALTH_CHARGING_CONTROL_CHARGING_PATH=\"%s\""],
|
||||
},
|
||||
|
@@ -39,6 +39,7 @@ SOONG_CONFIG_lineageGlobalVars += \
|
||||
target_health_charging_control_deadline_path \
|
||||
target_health_charging_control_supports_bypass \
|
||||
target_health_charging_control_supports_deadline \
|
||||
target_health_charging_control_supports_limit \
|
||||
target_health_charging_control_supports_toggle \
|
||||
target_init_vendor_lib \
|
||||
target_power_libperfmgr_mode_extension_lib \
|
||||
@@ -95,6 +96,7 @@ TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED ?= 1
|
||||
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_DISABLED ?= 0
|
||||
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS ?= true
|
||||
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE ?= false
|
||||
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_LIMIT ?= false
|
||||
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE ?= true
|
||||
TARGET_INIT_VENDOR_LIB ?= vendor_init
|
||||
TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB ?= libperfmgr-ext
|
||||
@@ -117,6 +119,7 @@ SOONG_CONFIG_lineageGlobalVars_target_health_charging_control_charging_disabled
|
||||
SOONG_CONFIG_lineageGlobalVars_target_health_charging_control_deadline_path := $(TARGET_HEALTH_CHARGING_CONTROL_DEADLINE_PATH)
|
||||
SOONG_CONFIG_lineageGlobalVars_target_health_charging_control_supports_bypass := $(TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS)
|
||||
SOONG_CONFIG_lineageGlobalVars_target_health_charging_control_supports_deadline := $(TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_DEADLINE)
|
||||
SOONG_CONFIG_lineageGlobalVars_target_health_charging_control_supports_limit := $(TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_LIMIT)
|
||||
SOONG_CONFIG_lineageGlobalVars_target_health_charging_control_supports_toggle := $(TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_TOGGLE)
|
||||
SOONG_CONFIG_lineageGlobalVars_target_init_vendor_lib := $(TARGET_INIT_VENDOR_LIB)
|
||||
SOONG_CONFIG_lineageGlobalVars_target_power_libperfmgr_mode_extension_lib := $(TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB)
|
||||
|
Reference in New Issue
Block a user