ANDROID: GKI: power: Add property to enable/disable cc toggle
Add POWER_SUPPLY_PROP_CC_TOGGLE_ENABLE to force control the typec cc toggling. Bug: 163013210 Bug: 162697021 Signed-off-by: Puma Hsu <pumahsu@google.com> Change-Id: I188a8afceedada4fb84e349eb56263d7da726851 (cherry picked from commit 489cd26d041ca5e663783bfb62dff61b87ab00a3) Signed-off-by: Will McVicker <willmcvicker@google.com>
This commit is contained in:
parent
d96fd50776
commit
e8f603ac1a
2 changed files with 2 additions and 0 deletions
|
@ -507,6 +507,7 @@ static struct device_attribute power_supply_attrs[] = {
|
|||
POWER_SUPPLY_ATTR(parallel_output_mode),
|
||||
POWER_SUPPLY_ATTR(alignment),
|
||||
POWER_SUPPLY_ATTR(moisture_detection_enabled),
|
||||
POWER_SUPPLY_ATTR(cc_toggle_enable),
|
||||
POWER_SUPPLY_ATTR(fg_type),
|
||||
POWER_SUPPLY_ATTR(charger_status),
|
||||
/* Local extensions of type int64_t */
|
||||
|
|
|
@ -390,6 +390,7 @@ enum power_supply_property {
|
|||
POWER_SUPPLY_PROP_PARALLEL_OUTPUT_MODE,
|
||||
POWER_SUPPLY_PROP_ALIGNMENT,
|
||||
POWER_SUPPLY_PROP_MOISTURE_DETECTION_ENABLE,
|
||||
POWER_SUPPLY_PROP_CC_TOGGLE_ENABLE,
|
||||
POWER_SUPPLY_PROP_FG_TYPE,
|
||||
POWER_SUPPLY_PROP_CHARGER_STATUS,
|
||||
/* Local extensions of type int64_t */
|
||||
|
|
Loading…
Reference in a new issue