warp7: Switch to DM USB
authorPierre-Jean Texier <pjtexier@koncepto.io>
Fri, 19 Apr 2019 18:34:12 +0000 (20:34 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 25 Apr 2019 17:21:00 +0000 (19:21 +0200)
This commit switches to DM USB for warp7 and warp7_bl33 defconfigs.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Joris Offouga <offougajoris@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/dts/imx7s-warp.dts
board/warp7/warp7.c
configs/warp7_bl33_defconfig
configs/warp7_defconfig

index 4d87348..db5ef67 100644 (file)
@@ -19,6 +19,7 @@
 
        aliases {
                mmc0 = &usdhc3;
+               usb0 = &usbotg1;
        };
 
        chosen {
index 2882dc9..134a6c9 100644 (file)
@@ -14,7 +14,6 @@
 #include <asm/io.h>
 #include <common.h>
 #include <asm/arch/crm_regs.h>
-#include <usb.h>
 #include <netdev.h>
 #include <power/pmic.h>
 #include <power/pfuze3000_pmic.h>
@@ -128,11 +127,6 @@ int checkboard(void)
        return 0;
 }
 
-int board_usb_phy_mode(int port)
-{
-       return USB_INIT_DEVICE;
-}
-
 int board_late_init(void)
 {
        struct wdog_regs *wdog = (struct wdog_regs *)WDOG1_BASE_ADDR;
index d34f76b..300dc38 100644 (file)
@@ -41,6 +41,7 @@ CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_SPECIFY_CONSOLE_INDEX=y
 CONFIG_DM_SERIAL=y
 CONFIG_USB=y
+CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_MXC_USB_OTG_HACTIVE=y
 CONFIG_USB_GADGET=y
index ae424ab..cabddad 100644 (file)
@@ -51,6 +51,7 @@ CONFIG_SPECIFY_CONSOLE_INDEX=y
 CONFIG_DM_SERIAL=y
 CONFIG_OPTEE=y
 CONFIG_USB=y
+CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_MXC_USB_OTG_HACTIVE=y
 CONFIG_USB_GADGET=y