summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@nxp.com>2018-10-08 17:43:45 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:34:39 +0800
commitfa166b2d940660da6165ad2d169f87b02ad98198 (patch)
treed763208982e7ab93736b9dd950977d4b43ed8c85 /include
parent5ddd52920713c374960633b053577743d78648be (diff)
MLK-19850-6 usb: chipidea: introduce flag for enable USB PHY charger detection
Some platforms may want to use USB PHY charger detection function when VBUS is there, add one flag for it. The user can enable it at firmware. Reviewed-by: Jun Li <jun.li@nxp.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/chipidea.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb/chipidea.h b/include/linux/usb/chipidea.h
index 91250f54d2d2..ba2c49047434 100644
--- a/include/linux/usb/chipidea.h
+++ b/include/linux/usb/chipidea.h
@@ -64,6 +64,8 @@ struct ci_hdrc_platform_data {
#define CI_HDRC_IMX_IS_HSIC BIT(15)
/* need request pmqos during low power */
#define CI_HDRC_PMQOS BIT(16)
+/* Using PHY's charger detection */
+#define CI_HDRC_PHY_CHARGER_DETECTION BIT(17)
enum usb_dr_mode dr_mode;
#define CI_HDRC_CONTROLLER_RESET_EVENT 0
#define CI_HDRC_CONTROLLER_STOPPED_EVENT 1