From: Ajay Kumar Gupta Date: Thu, 12 Nov 2009 21:09:17 +0530 Subject: [U-Boot] [PATCH 3/3] DA830: Add usb config In-Reply-To: <1258040357-15800-2-git-send-email-ajay.gupta@ti.com> References: <1258040357-15800-1-git-send-email-ajay.gupta@ti.com> <1258040357-15800-2-git-send-email-ajay.gupta@ti.com> Message-ID: <1258040357-15800-3-git-send-email-ajay.gupta@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Ajay Kumar Gupta Signed-off-by: Swaminathan S --- include/configs/da830evm.h | 35 +++++++++++++++++++++++++++++++++++ 1 files changed, 35 insertions(+), 0 deletions(-) diff --git a/include/configs/da830evm.h b/include/configs/da830evm.h index 38e2ce1..52e6473 100644 --- a/include/configs/da830evm.h +++ b/include/configs/da830evm.h @@ -149,6 +149,11 @@ #define CONFIG_SYS_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED #endif +/*==============================*/ +/* USB configuration */ +/*==============================*/ +#define CONFIG_USB_DA8XX /* Platform hookup to MUSB controller */ +#define CONFIG_MUSB_HCD /* * U-Boot general configuration @@ -240,4 +245,34 @@ #define CONFIG_DOS_PARTITION /* include support for FAT/storage*/ #endif +#ifdef CONFIG_USB_DA8XX + +#ifdef CONFIG_MUSB_HCD +#define CONFIG_CMD_USB /* inclue support for usb */ + +#define CONFIG_USB_STORAGE /* MSC class support */ +#define CONFIG_CMD_STORAGE /* inclue support for usb */ +#define CONFIG_CMD_FAT /* inclue support for FAT/storage*/ +#define CONFIG_DOS_PARTITION /* inclue support for FAT/storage*/ + +#ifdef CONFIG_USB_KEYBOARD +#define CONFIG_SYS_USB_EVENT_POLL +#define CONFIG_PREBOOT "usb start" +#endif /* CONFIG_USB_KEYBOARD */ + +#endif /* CONFIG_MUSB_HCD */ + +#ifdef CONFIG_MUSB_UDC +/* USB device configuration */ +#define CONFIG_USB_DEVICE 1 +#define CONFIG_USB_TTY 1 +#define CONFIG_SYS_CONSOLE_IS_IN_ENV 1 +/* 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 "DA830EVM" +#endif /* CONFIG_MUSB_UDC */ + +#endif /* CONFIG_USB_DA8XX */ #endif /* __CONFIG_H */ -- 1.6.2.4