Linux 4.14.51
[linux/fpc-iii.git] / drivers / usb / chipidea / ci_hdrc_imx.h
blobd666c9f036bae6fe8c90483b0308e6bba1a0a949
1 /*
2 * Copyright 2012 Freescale Semiconductor, Inc.
4 * The code contained herein is licensed under the GNU General Public
5 * License. You may obtain a copy of the GNU General Public License
6 * Version 2 or later at the following locations:
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
12 #ifndef __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H
13 #define __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H
15 struct imx_usbmisc_data {
16 struct device *dev;
17 int index;
19 unsigned int disable_oc:1; /* over current detect disabled */
20 unsigned int oc_polarity:1; /* over current polarity if oc enabled */
21 unsigned int evdo:1; /* set external vbus divider option */
22 unsigned int ulpi:1; /* connected to an ULPI phy */
25 int imx_usbmisc_init(struct imx_usbmisc_data *);
26 int imx_usbmisc_init_post(struct imx_usbmisc_data *);
27 int imx_usbmisc_set_wakeup(struct imx_usbmisc_data *, bool);
29 #endif /* __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H */