ulpi.h 408 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __MACH_ULPI_H
  3. #define __MACH_ULPI_H
  4. #include <linux/usb/ulpi.h>
  5. #ifdef CONFIG_USB_ULPI_VIEWPORT
  6. static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags)
  7. {
  8. return otg_ulpi_create(&ulpi_viewport_access_ops, flags);
  9. }
  10. #else
  11. static inline struct usb_phy *imx_otg_ulpi_create(unsigned int flags)
  12. {
  13. return NULL;
  14. }
  15. #endif
  16. #endif /* __MACH_ULPI_H */