diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2017-10-18 12:56:21 +0300 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2017-10-24 03:48:40 +0300 |
commit | 7b9651103b64c8a55eb6cec4c2240584e968354c (patch) | |
tree | f2b0b65bba4fbcf6999a27b1554e6e632d95c0ec /include/linux/mfd/max77843-private.h | |
parent | b743483bd4b1d9e0ac093fe184aefdd9f59264d4 (diff) | |
download | linux-7b9651103b64c8a55eb6cec4c2240584e968354c.tar.xz |
extcon: max77843: Add OTG power control to the MUIC driver
Enabling power on VBUS micro-usb pin is required only when passive OTG
cable is connected. Initially OTG VBUS power control was planned to be
done in charger driver. However such information is not really available
from the extcon notifications, so VBUS power control has to be done
directly in MUIC driver, which has all information about the attached
accessory.
For example SmartDock is externally powered accessory, provides OTG
(USB HOST) functionality and use VBUS pin for charging a device battery,
so the VBUS charging pump should be disabled in such case.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'include/linux/mfd/max77843-private.h')
-rw-r--r-- | include/linux/mfd/max77843-private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/max77843-private.h b/include/linux/mfd/max77843-private.h index c19303b0ccfd..0223cd5941c8 100644 --- a/include/linux/mfd/max77843-private.h +++ b/include/linux/mfd/max77843-private.h @@ -245,10 +245,13 @@ enum max77843_irq_muic { #define MAX77843_CHG_OVER_CURRENT_BAT (0x06 << 4) /* MAX77843 CHG_CNFG_00 register */ +#define MAX77843_CHG_MODE_MASK 0x0f #define MAX77843_CHG_DISABLE 0x00 #define MAX77843_CHG_ENABLE 0x05 #define MAX77843_CHG_MASK 0x01 +#define MAX77843_CHG_OTG_MASK 0x02 #define MAX77843_CHG_BUCK_MASK 0x04 +#define MAX77843_CHG_BOOST_MASK 0x08 /* MAX77843 CHG_CNFG_01 register */ #define MAX77843_CHG_RESTART_THRESHOLD_100 0x00 |