configs: am57xx_evm: Enable DM_USB and DM_USB_DEV
[oweals/u-boot.git] / board / ti / am57xx / board.c
index 8c24d17123b1793eb7e6fd7c502bd6e8c9b4e96b..bed2eb3c39206b317453c67b1717e3d0e95a415a 100644 (file)
@@ -883,7 +883,7 @@ int spl_start_uboot(void)
 }
 #endif
 
-#ifdef CONFIG_USB_DWC3
+#if defined(CONFIG_USB_DWC3) && !CONFIG_IS_ENABLED(DM_USB)
 static struct dwc3_device usb_otg_ss2 = {
        .maximum_speed = USB_SPEED_HIGH,
        .base = DRA7_USB_OTG_SS2_BASE,
@@ -912,9 +912,7 @@ int usb_gadget_handle_interrupts(int index)
 
        return 0;
 }
-#endif /* CONFIG_USB_DWC3 */
 
-#if defined(CONFIG_USB_DWC3) || defined(CONFIG_USB_XHCI_OMAP)
 int board_usb_init(int index, enum usb_init_type init)
 {
        enable_usb_clocks(index);