Adds required configs in config file for am335x_evm to add support for usb host mode. To enable USB device mode, add CONFIG_MUSB_UDC in place of CONFIG_MUSB_HCD. Tested using usbtty for device mode and mass storage for host mode.
Signed-off-by: Harman Sohanpal <harman_sohan...@ti.com> --- Changes for v2: - #define cleanups. Changes for v3: - remove configs for usb as keyboard in host mode. - removed extra test of CONFIG_USB_AM335X. - changed commit messgae. include/configs/am335x_evm.h | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h index d0fbc88..a1e16cc 100644 --- a/include/configs/am335x_evm.h +++ b/include/configs/am335x_evm.h @@ -165,6 +165,38 @@ #define CONFIG_SKIP_LOWLEVEL_INIT #endif + +/* + * USB configuration + * Enable CONFIG_MUSB_HCD for Host functionalities MSC + * Enable CONFIG_MUSB_UDC for Device functionalities. + */ +#define CONFIG_USB_AM335X +#define CONFIG_MUSB_HCD + +#ifdef CONFIG_MUSB_HCD +#define CONFIG_CMD_USB + +#define CONFIG_USB_STORAGE +#define CONGIG_CMD_STORAGE +#define CONFIG_CMD_FAT + +#endif /* CONFIG_MUSB_HCD */ + +#ifdef CONFIG_MUSB_UDC +/* USB device configuration */ +#ifndef CONFIG_SPL_BUILD +#define CONFIG_USB_DEVICE +#define CONFIG_USB_TTY +#define CONFIG_SYS_CONSOLE_IS_IN_ENV +#endif /* CONFIG_SPL_BUILD */ +/* Change these to suit your needs */ +#define CONFIG_USBD_VENDORID 0x0451 +#define CONFIG_USBD_PRODUCTID 0x5678 +#define CONFIG_USBD_MANUFACTURER "Texas Instruments" +#define CONFIG_USBD_PRODUCT_NAME "AM335xEVM" +#endif /* CONFIG_MUSB_UDC */ + /* Unsupported features */ #undef CONFIG_USE_IRQ -- 1.7.0.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot