1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright 2012 Freescale Semiconductor, Inc.
4  */
5 
6 #ifndef __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H
7 #define __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H
8 
9 struct imx_usbmisc_data {
10 	struct device *dev;
11 	int index;
12 
13 	unsigned int disable_oc:1; /* over current detect disabled */
14 	unsigned int oc_polarity:1; /* over current polarity if oc enabled */
15 	unsigned int evdo:1; /* set external vbus divider option */
16 	unsigned int ulpi:1; /* connected to an ULPI phy */
17 };
18 
19 int imx_usbmisc_init(struct imx_usbmisc_data *);
20 int imx_usbmisc_init_post(struct imx_usbmisc_data *);
21 int imx_usbmisc_set_wakeup(struct imx_usbmisc_data *, bool);
22 
23 #endif /* __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H */
24