summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAshay Jaiswal <ashayj@codeaurora.org>2017-11-02 09:57:18 +0530
committerMichael Bestas <mkbestas@gmail.com>2020-04-18 03:47:41 +0300
commitfcc09e4044a510e78c8f4e54a00275833230a8e5 (patch)
tree0aeaf546ab33965f9e1ed3d1c2590cae1363f657 /include/linux
parent951444b6cd99b6941cf1470cd51df803862b1785 (diff)
power_supply: add POWER_SUPPLY_PROP_(BATFET_MODE/MIN_CIL) properties
Add power_supply properties to expose parallel charger configuration. POWER_SUPPLY_PROP_BATFET_MODE property exposes BATFET configuration of parallel charger and POWER_SUPPLY_PROP_MIN_ICL property exposes minimum ICL configuration required by parallel charger. Change-Id: I477789b4ea9dd56ac34606b00566f46aa6f84aa5 Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/power_supply.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index c3764d2a2934..db47daa81038 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -115,6 +115,11 @@ enum {
POWER_SUPPLY_PL_USBMID_USBMID,
};
+enum {
+ POWER_SUPPLY_PL_STACKED_BATFET,
+ POWER_SUPPLY_PL_NON_STACKED_BATFET,
+};
+
enum power_supply_property {
/* Properties of type `int' */
POWER_SUPPLY_PROP_STATUS = 0,
@@ -267,6 +272,8 @@ enum power_supply_property {
POWER_SUPPLY_PROP_ENABLE_JEITA_DETECTION,
POWER_SUPPLY_PROP_ALLOW_HVDCP3,
POWER_SUPPLY_PROP_MAX_PULSE_ALLOWED,
+ POWER_SUPPLY_PROP_PARALLEL_BATFET_MODE,
+ POWER_SUPPLY_PROP_MIN_ICL,
/* Local extensions of type int64_t */
POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
/* Properties of type `const char *' */