usb: ehci-omap: Add Support for DM_USB and OF_CONTROL
[oweals/u-boot.git] / arch / arm / include / asm / ehci-omap.h
index 1549f7bf214fb6fdf567b9d7273c6a6fc72022bc..f970bba937588b48e3504bf7f56dd9d0be5c12cc 100644 (file)
@@ -123,6 +123,7 @@ struct omap_ehci {
        u32 insreg08;           /* 0xb0 */
 };
 
+#if !CONFIG_IS_ENABLED(DM_USB) || !CONFIG_IS_ENABLED(OF_CONTROL)
 /*
  * FIXME: forward declaration of this structs needed because omap got the
  * ehci implementation backwards. move out ehci_hcd_x from board files
@@ -133,5 +134,6 @@ struct ehci_hcor;
 int omap_ehci_hcd_init(int index, struct omap_usbhs_board_data *usbhs_pdata,
                       struct ehci_hccr **hccr, struct ehci_hcor **hcor);
 int omap_ehci_hcd_stop(void);
+#endif
 
 #endif /* _OMAP_COMMON_EHCI_H_ */