colibri_imx6: migrate usb to using driver model
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Fri, 8 Feb 2019 17:42:15 +0000 (18:42 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 13 Apr 2019 18:30:09 +0000 (20:30 +0200)
Migrate USB to using driver model.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
board/toradex/colibri_imx6/colibri_imx6.c
configs/colibri_imx6_defconfig

index 1238474d7e39b53a64d74ec90a3b8dd9f256bf75..aaffcf565fc81424ab5c5432bf2b87495e2f818c 100644 (file)
@@ -289,28 +289,7 @@ int board_ehci_hcd_init(int port)
        imx_iomux_v3_setup_multiple_pads(usb_pads, ARRAY_SIZE(usb_pads));
        return 0;
 }
-
-int board_ehci_power(int port, int on)
-{
-       switch (port) {
-       case 0:
-               /* control OTG power */
-               /* No special PE for USBC, always on when ID pin signals
-                  host mode */
-               break;
-       case 1:
-               /* Control MXM USBH */
-               /* Set MXM USBH power enable, '0' means on */
-               gpio_request(GPIO_USBH_EN, "USBH_EN");
-               gpio_direction_output(GPIO_USBH_EN, !on);
-               mdelay(100);
-               break;
-       default:
-               break;
-       }
-       return 0;
-}
-#endif /* CONFIG_USB_EHCI_MX6 */
+#endif
 
 #if defined(CONFIG_FSL_ESDHC) && defined(CONFIG_SPL_BUILD)
 /* use the following sequence: eMMC, MMC */
index 2ab7db44a8b2e1d11089e7c38df57248a61562c9..df5a7be39f3fef4f411a77ab4c19b82193d5de33 100644 (file)
@@ -68,6 +68,7 @@ CONFIG_DM_REGULATOR_PFUZE100=y
 CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_IMX_THERMAL=y
 CONFIG_USB=y
+CONFIG_DM_USB=y
 CONFIG_USB_KEYBOARD=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Toradex"