blob: 409aa5ca8dda1405aaf9c94ca16d363be386c810 [file] [log] [blame]
Richard Zhaod142d6b2012-09-12 14:58:05 +03001/*
2 * Copyright 2012 Freescale Semiconductor, Inc.
3 *
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:
7 *
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
10 */
11
Rahul Bedarkar292abc92013-12-31 21:58:11 +053012#ifndef __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H
13#define __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H
14
Sascha Hauer05986ba2013-08-14 12:44:16 +030015struct imx_usbmisc_data {
Stefan Agnerf40017e2014-09-22 08:14:15 +080016 struct device *dev;
Richard Zhaod142d6b2012-09-12 14:58:05 +030017 int index;
18
Fabio Estevam7b8bc3a2013-01-27 22:45:05 -020019 unsigned int disable_oc:1; /* over current detect disabled */
Li Jun9dba5162016-07-20 16:02:42 +080020 unsigned int oc_polarity:1; /* over current polarity if oc enabled */
Michael Grzeschika0685332013-03-30 12:54:01 +020021 unsigned int evdo:1; /* set external vbus divider option */
Richard Zhaod142d6b2012-09-12 14:58:05 +030022};
23
Sascha Hauer05986ba2013-08-14 12:44:16 +030024int imx_usbmisc_init(struct imx_usbmisc_data *);
25int imx_usbmisc_init_post(struct imx_usbmisc_data *);
Peter Chenf636cec2015-02-11 12:44:46 +080026int imx_usbmisc_set_wakeup(struct imx_usbmisc_data *, bool);
Rahul Bedarkar292abc92013-12-31 21:58:11 +053027
28#endif /* __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H */