From 2a16792344fae47d8c1e4b0610b7473a29413492 Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Tue, 22 Nov 2016 12:50:25 +0800 Subject: power: power_supply: Add property for ship mode In ship mode the charger module opens the bat-fet and disconnects the battery from the system. This is for the non-removable battery designs to avoid them from being discharged when shipped/on-shelf. The ship mode is enabled during the final stage of power-off typically from the PON driver. Hence, add property POWER_SUPPLY_PROP_SET_SHIP_MODE to force the device into ship-mode. CRs-Fixed: 1092969 Change-Id: I43893355db063d99b6faf965093fad74ec0c9253 Signed-off-by: Fenglin Wu --- include/linux/power_supply.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 125568f7862c..9b6359241018 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -226,6 +226,7 @@ enum power_supply_property { POWER_SUPPLY_PROP_PARALLEL_DISABLE, POWER_SUPPLY_PROP_PARALLEL_PERCENT, POWER_SUPPLY_PROP_PE_START, + POWER_SUPPLY_PROP_SET_SHIP_MODE, /* Local extensions of type int64_t */ POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT, /* Properties of type `const char *' */ -- cgit v1.2.3