diff options
author | Peter Chen <peter.chen@nxp.com> | 2020-01-23 14:00:26 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2020-05-06 09:41:55 +0800 |
commit | d755cdb1b9d7e1b645e176b97eb137194bbe8cf9 (patch) | |
tree | 056bf0e141883ca890210918d1f3d842787567ee /include/linux/usb/chipidea.h | |
parent | 4ee2fc81a631a3a2a45f3f6939323e8a5fea1e29 (diff) | |
download | lwn-d755cdb1b9d7e1b645e176b97eb137194bbe8cf9.tar.gz lwn-d755cdb1b9d7e1b645e176b97eb137194bbe8cf9.zip |
usb: chipidea: introduce CI_HDRC_CONTROLLER_VBUS_EVENT glue layer use
Some vendors glue layer need to handle some events for vbus, eg,
some i.mx platforms (imx7d, imx8mm, imx8mn, etc) needs vbus event
to handle charger detection, its charger detection is finished at
glue layer code, but not at USB PHY driver.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'include/linux/usb/chipidea.h')
-rw-r--r-- | include/linux/usb/chipidea.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/chipidea.h b/include/linux/usb/chipidea.h index edd89b7c8f18..54167a2d28ea 100644 --- a/include/linux/usb/chipidea.h +++ b/include/linux/usb/chipidea.h @@ -67,6 +67,7 @@ struct ci_hdrc_platform_data { #define CI_HDRC_CONTROLLER_STOPPED_EVENT 1 #define CI_HDRC_IMX_HSIC_ACTIVE_EVENT 2 #define CI_HDRC_IMX_HSIC_SUSPEND_EVENT 3 +#define CI_HDRC_CONTROLLER_VBUS_EVENT 4 int (*notify_event) (struct ci_hdrc *ci, unsigned event); struct regulator *reg_vbus; struct usb_otg_caps ci_otg_caps; |