ARM: imx6: Enable UMS and DFU on DHCOM i.MX6 PDK

Enable UMS and DFU, so that the eMMC can be accessed via the
USB gadget port on the board.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:
Marek Vasut
2017-10-22 10:22:40 +02:00
committed by Stefano Babic
parent 27dc324a10
commit 506abdb4ee
3 changed files with 22 additions and 8 deletions

View File

@@ -252,17 +252,11 @@ static void setup_usb(void)
}
int board_usb_phy_mode(int port)
{
return USB_INIT_HOST;
}
/* Use only Port 1 == DHCOM USB Host 1 */
int board_ehci_hcd_init(int port)
{
if (port == 1)
return 0;
return USB_INIT_HOST;
else
return -ENODEV;
return USB_INIT_DEVICE;
}
int board_ehci_power(int port, int on)