Richard Zhao | d142d6b | 2012-09-12 14:58:05 +0300 | [diff] [blame] | 1 | /* |
| 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 Bedarkar | 292abc9 | 2013-12-31 21:58:11 +0530 | [diff] [blame] | 12 | #ifndef __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H |
| 13 | #define __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H |
| 14 | |
Sascha Hauer | 05986ba | 2013-08-14 12:44:16 +0300 | [diff] [blame] | 15 | struct imx_usbmisc_data { |
Stefan Agner | f40017e | 2014-09-22 08:14:15 +0800 | [diff] [blame] | 16 | struct device *dev; |
Richard Zhao | d142d6b | 2012-09-12 14:58:05 +0300 | [diff] [blame] | 17 | int index; |
| 18 | |
Fabio Estevam | 7b8bc3a | 2013-01-27 22:45:05 -0200 | [diff] [blame] | 19 | unsigned int disable_oc:1; /* over current detect disabled */ |
Michael Grzeschik | a068533 | 2013-03-30 12:54:01 +0200 | [diff] [blame] | 20 | unsigned int evdo:1; /* set external vbus divider option */ |
Richard Zhao | d142d6b | 2012-09-12 14:58:05 +0300 | [diff] [blame] | 21 | }; |
| 22 | |
Sascha Hauer | 05986ba | 2013-08-14 12:44:16 +0300 | [diff] [blame] | 23 | int imx_usbmisc_init(struct imx_usbmisc_data *); |
| 24 | int imx_usbmisc_init_post(struct imx_usbmisc_data *); |
Peter Chen | f636cec | 2015-02-11 12:44:46 +0800 | [diff] [blame] | 25 | int imx_usbmisc_set_wakeup(struct imx_usbmisc_data *, bool); |
Rahul Bedarkar | 292abc9 | 2013-12-31 21:58:11 +0530 | [diff] [blame] | 26 | |
| 27 | #endif /* __DRIVER_USB_CHIPIDEA_CI_HDRC_IMX_H */ |