diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2012-07-12 15:03:29 +0900 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-07-13 18:31:17 -0700 |
commit | 45cd4fb28b43756afcd752ed1e8b3b836c1b1a2a (patch) | |
tree | 2c4d2303c772f4a149be6c4b9b8a0a2dd04d0aa9 /include/linux/power | |
parent | bee737bccb03ebd27f2d52706e9aed2fa2c8dcc4 (diff) | |
download | linux-stable-45cd4fb28b43756afcd752ed1e8b3b836c1b1a2a.tar.gz linux-stable-45cd4fb28b43756afcd752ed1e8b3b836c1b1a2a.tar.bz2 linux-stable-45cd4fb28b43756afcd752ed1e8b3b836c1b1a2a.zip |
charger-manager: Set current limit of regulator for over current protection
This patch support the protection of host device from over current.
The Charger-manager set proper current limit of charger(regulator) for
charging according to type of charger cable when external connector
is attached.
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'include/linux/power')
-rw-r--r-- | include/linux/power/charger-manager.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/power/charger-manager.h b/include/linux/power/charger-manager.h index 6cb9fbc9a153..cd22029e32aa 100644 --- a/include/linux/power/charger-manager.h +++ b/include/linux/power/charger-manager.h @@ -94,6 +94,14 @@ struct charger_cable { bool attached; struct charger_regulator *charger; + + /* + * Set min/max current of regulator to protect over-current issue + * according to a kind of charger cable when cable is attached. + */ + int min_uA; + int max_uA; + struct charger_manager *cm; }; |