2017-11-03 11:28:30 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2012-09-12 13:58:05 +02:00
|
|
|
/*
|
|
|
|
* Copyright 2012 Freescale Semiconductor, Inc.
|
|
|
|
*/
|
|
|
|
|
2013-12-31 17:28:11 +01:00
|
|
|
#ifndef __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H
|
|
|
|
#define __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H
|
|
|
|
|
2013-08-14 11:44:16 +02:00
|
|
|
struct imx_usbmisc_data {
|
2014-09-22 02:14:15 +02:00
|
|
|
struct device *dev;
|
2012-09-12 13:58:05 +02:00
|
|
|
int index;
|
|
|
|
|
2013-01-28 01:45:05 +01:00
|
|
|
unsigned int disable_oc:1; /* over current detect disabled */
|
2016-07-20 10:02:42 +02:00
|
|
|
unsigned int oc_polarity:1; /* over current polarity if oc enabled */
|
2013-03-30 11:54:01 +01:00
|
|
|
unsigned int evdo:1; /* set external vbus divider option */
|
2016-09-26 13:14:19 +02:00
|
|
|
unsigned int ulpi:1; /* connected to an ULPI phy */
|
2012-09-12 13:58:05 +02:00
|
|
|
};
|
|
|
|
|
2013-08-14 11:44:16 +02:00
|
|
|
int imx_usbmisc_init(struct imx_usbmisc_data *);
|
|
|
|
int imx_usbmisc_init_post(struct imx_usbmisc_data *);
|
2015-02-11 05:44:46 +01:00
|
|
|
int imx_usbmisc_set_wakeup(struct imx_usbmisc_data *, bool);
|
2013-12-31 17:28:11 +01:00
|
|
|
|
|
|
|
#endif /* __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H */
|