}
#endif
-#ifdef CONFIG_DM_USB
-static iomux_cfg_t const usb_otg1_pads[] = {
- MX7ULP_PAD_PTC8__PTC8 | MUX_PAD_CTRL(OTG_ID_GPIO_PAD_CTRL), /* gpio for OTG ID*/
-};
-
-static void setup_usb(void)
-{
- mx7ulp_iomux_setup_multiple_pads(usb_otg1_pads,
- ARRAY_SIZE(usb_otg1_pads));
-
- gpio_request(IMX_GPIO_NR(3, 8), "otg_id");
- gpio_direction_input(IMX_GPIO_NR(3, 8));
-}
-
-int board_ehci_usb_phy_mode(struct udevice *dev)
-{
- int ret = 0;
-
- if (devfdt_get_addr(dev) == USBOTG0_RBASE) {
- ret = gpio_get_value(IMX_GPIO_NR(3, 8));
-
- if (ret)
- return USB_INIT_DEVICE;
- else
- return USB_INIT_HOST;
- }
-
- return USB_INIT_HOST;
-}
-#endif
-
int board_early_init_f(void)
{
setup_iomux_uart();
board_qspi_init();
#endif
-#ifdef CONFIG_DM_USB
- setup_usb();
-#endif
-
return 0;
}