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

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

index 34e78ddb44d1eb3dee78f310b4baf9f51ff7794a..220cbff0b4dd5dee4b81b3892e4b853e66770005 100644 (file)
@@ -271,28 +271,6 @@ 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 */
-               gpio_direction_output(GPIO_USBO_EN, on);
-               mdelay(100);
-               break;
-       case 1:
-               /* Control MXM USBH */
-               gpio_direction_output(GPIO_USBH_EN, on);
-               mdelay(2);
-               /* Control onboard USB Hub VBUS */
-               gpio_direction_output(GPIO_USB_VBUS_DET, on);
-               mdelay(100);
-               break;
-       default:
-               break;
-       }
-       return 0;
-}
 #endif
 
 #if defined(CONFIG_FSL_ESDHC) && defined(CONFIG_SPL_BUILD)
index 510161ad322e80058682237375febd5e98a1d915..1ab5edc96669eb4e40a936da59aa4962fbf8192b 100644 (file)
@@ -72,6 +72,7 @@ CONFIG_DM_REGULATOR_FIXED=y
 CONFIG_DM_SCSI=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"