ci_hdrc_imx.h 708 B

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