AM3517EVM: musb: add usb config
Enabling USB HOST in defconfig. Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
This commit is contained in:
		
							parent
							
								
									5689f4b5b4
								
							
						
					
					
						commit
						7dc27b05a4
					
				| 
						 | 
					@ -99,6 +99,44 @@
 | 
				
			||||||
#define CONFIG_OMAP3_MMC		1
 | 
					#define CONFIG_OMAP3_MMC		1
 | 
				
			||||||
#define CONFIG_DOS_PARTITION		1
 | 
					#define CONFIG_DOS_PARTITION		1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * USB configuration
 | 
				
			||||||
 | 
					 * Enable CONFIG_MUSB_HCD for Host functionalities MSC, keyboard
 | 
				
			||||||
 | 
					 * Enable CONFIG_MUSB_UDC for Device functionalities.
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					#define CONFIG_USB_AM35X		1
 | 
				
			||||||
 | 
					#define CONFIG_MUSB_HCD			1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef CONFIG_USB_AM35X
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef CONFIG_MUSB_HCD
 | 
				
			||||||
 | 
					#define CONFIG_CMD_USB
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define CONFIG_USB_STORAGE
 | 
				
			||||||
 | 
					#define CONGIG_CMD_STORAGE
 | 
				
			||||||
 | 
					#define CONFIG_CMD_FAT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#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	"AM3517EVM"
 | 
				
			||||||
 | 
					#endif /* CONFIG_MUSB_UDC */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif /* CONFIG_USB_AM35X */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* commands to include */
 | 
					/* commands to include */
 | 
				
			||||||
#include <config_cmd_default.h>
 | 
					#include <config_cmd_default.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue