]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 4d87348f643ecbdd7ceabbb74b388fa91cc8fb73..db5ef67eb13005993c26fe05d6c1c2ec30358e3f 100644 (file)
@@ -19,6 +19,7 @@
 
        aliases {
                mmc0 = &usdhc3;
+               usb0 = &usbotg1;
        };
 
        chosen {
index 2882dc98707ea6daed8217c5b9d3bdfc21d611f3..134a6c99d747639df07e52f27fcef4fdcbdf2fbb 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 d34f76b3e835938adad49a9d1a4ea64db2cdaaef..300dc3805afdc51663eeacf2f9fa0c3250aa88d8 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 ae424ab7a0b35859316745ca50ed13afd65b791c..cabddad7fcb9365804f8862cc5135b321cee7e95 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