diff options
author | Marek Vasut <marex@denx.de> | 2017-10-22 10:22:40 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-10-31 11:11:10 +0100 |
commit | 506abdb4ee9664cc0d6d1321e96f7fb8dae72eb9 (patch) | |
tree | 30d3cd3c99be7d37b7282f62d4c3a8852cf226c8 /include/configs/dh_imx6.h | |
parent | 27dc324a10de431a58e87abb84b18efea7eb734e (diff) |
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>
Diffstat (limited to 'include/configs/dh_imx6.h')
-rw-r--r-- | include/configs/dh_imx6.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/configs/dh_imx6.h b/include/configs/dh_imx6.h index 0595f60e32d..11a01d476fb 100644 --- a/include/configs/dh_imx6.h +++ b/include/configs/dh_imx6.h @@ -115,6 +115,18 @@ #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) #define CONFIG_MXC_USB_FLAGS 0 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 /* Enabled USB controller number */ + +/* USB Gadget (DFU, UMS) */ +#if defined(CONFIG_CMD_DFU) || defined(CONFIG_CMD_USB_MASS_STORAGE) +#define CONFIG_USB_FUNCTION_MASS_STORAGE + +#define CONFIG_SYS_DFU_DATA_BUF_SIZE (16 * 1024 * 1024) +#define DFU_DEFAULT_POLL_TIMEOUT 300 + +/* USB IDs */ +#define CONFIG_G_DNL_UMS_VENDOR_NUM 0x0525 +#define CONFIG_G_DNL_UMS_PRODUCT_NUM 0xA4A5 +#endif #endif /* Watchdog */ |