blob: 635717e9354aa0f7a30c1797c0718f058adb045b [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 */
Michael Grzeschika0685332013-03-30 12:54:01 +020020 unsigned int evdo:1; /* set external vbus divider option */
Richard Zhaod142d6b2012-09-12 14:58:05 +030021};
22
Sascha Hauer05986ba2013-08-14 12:44:16 +030023int imx_usbmisc_init(struct imx_usbmisc_data *);
24int imx_usbmisc_init_post(struct imx_usbmisc_data *);
Peter Chenf636cec2015-02-11 12:44:46 +080025int imx_usbmisc_set_wakeup(struct imx_usbmisc_data *, bool);
Rahul Bedarkar292abc92013-12-31 21:58:11 +053026
27#endif /* __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H */