]> git.sur5r.net Git - u-boot/commitdiff
imx: mx7dsabresd: switch to DM USB
authorPeng Fan <peng.fan@nxp.com>
Thu, 13 Apr 2017 06:09:59 +0000 (14:09 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 18 May 2017 09:24:34 +0000 (11:24 +0200)
Switch to use DM USB.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
board/freescale/mx7dsabresd/mx7dsabresd.c
configs/mx7dsabresd_defconfig
include/configs/mx7dsabresd.h

index f7a5f0d51307956fe871f71ade6b4d773916e693..ecea5a529aa8f560ac70f5a53f54a92ee55af8ad 100644 (file)
@@ -23,8 +23,6 @@
 #include <i2c.h>
 #include <asm/imx-common/mxc_i2c.h>
 #include <asm/arch/crm_regs.h>
-#include <usb.h>
-#include <usb/ehci-ci.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -84,14 +82,6 @@ static iomux_v3_cfg_t const uart1_pads[] = {
        MX7D_PAD_UART1_RX_DATA__UART1_DCE_RX | MUX_PAD_CTRL(UART_PAD_CTRL),
 };
 
-static iomux_v3_cfg_t const usb_otg1_pads[] = {
-       MX7D_PAD_GPIO1_IO05__USB_OTG1_PWR | MUX_PAD_CTRL(NO_PAD_CTRL),
-};
-
-static iomux_v3_cfg_t const usb_otg2_pads[] = {
-       MX7D_PAD_UART3_CTS_B__USB_OTG2_PWR | MUX_PAD_CTRL(NO_PAD_CTRL),
-};
-
 #ifdef CONFIG_NAND_MXS
 static iomux_v3_cfg_t const gpmi_pads[] = {
        MX7D_PAD_SD3_DATA0__NAND_DATA00 | MUX_PAD_CTRL(NAND_PAD_CTRL),
@@ -315,11 +305,6 @@ int board_early_init_f(void)
 {
        setup_iomux_uart();
 
-       imx_iomux_v3_setup_multiple_pads(usb_otg1_pads,
-                                        ARRAY_SIZE(usb_otg1_pads));
-       imx_iomux_v3_setup_multiple_pads(usb_otg2_pads,
-                                        ARRAY_SIZE(usb_otg2_pads));
-
        return 0;
 }
 
@@ -403,13 +388,3 @@ int checkboard(void)
 
        return 0;
 }
-
-#ifdef CONFIG_USB_EHCI_MX7
-int board_usb_phy_mode(int port)
-{
-       if (port == 0)
-               return USB_INIT_DEVICE;
-       else
-               return USB_INIT_HOST;
-}
-#endif
index 0c9fa7c7d81ceb7ab0ebc137939ba90989807084..52faae43e4fc5dc92cda210e8beb32c9cab32883 100644 (file)
@@ -59,6 +59,7 @@ CONFIG_DM_REGULATOR_GPIO=y
 CONFIG_DM_SPI=y
 CONFIG_SOFT_SPI=y
 CONFIG_USB=y
+CONFIG_DM_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_MXC_USB_OTG_HACTIVE=y
 CONFIG_USB_STORAGE=y
index f6b4a749c69a898707f2513aa6f85b12a524d2cd..39291a2ffd631a5351823720396bdb0af024e0d4 100644 (file)
 #define CONFIG_MMCROOT                 "/dev/mmcblk0p2"  /* USDHC1 */
 
 /* USB Configs */
-#define CONFIG_EHCI_HCD_INIT_AFTER_RESET
 #define CONFIG_USB_HOST_ETHER
 #define CONFIG_USB_ETHER_ASIX
 #define CONFIG_MXC_USB_PORTSC  (PORT_PTS_UTMI | PORT_PTS_PTW)
-#define CONFIG_MXC_USB_FLAGS   0
-#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
 
 #define CONFIG_IMX_THERMAL