]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: socfpga: config: Add USB support example
authorMarek Vasut <marex@denx.de>
Fri, 24 Oct 2014 21:34:25 +0000 (23:34 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 27 Oct 2014 01:26:24 +0000 (02:26 +0100)
Add example configuration stub for the DWC2 USB controller.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Vince Bridgers <vbridger@altera.com>
Cc: Pavel Machek <pavel@denx.de>
include/configs/socfpga_common.h

index ef3572b73b78192ebb7912c07e2e746272e51e70..83a1bcdfbe34354980713f7e1c01e2c2ec788c7e 100644 (file)
 #define CONFIG_CONS_INDEX              1
 #define CONFIG_BAUDRATE                        115200
 
+/*
+ * USB
+ */
+#ifdef CONFIG_CMD_USB
+#define CONFIG_USB_DWC2
+#define CONFIG_USB_STORAGE
+/*
+ * NOTE: User must define either of the following to select which
+ *       of the two USB controllers available on SoCFPGA to use.
+ *       The DWC2 driver doesn't support multiple USB controllers.
+ * #define CONFIG_USB_DWC2_REG_ADDR    SOCFPGA_USB0_ADDRESS
+ * #define CONFIG_USB_DWC2_REG_ADDR    SOCFPGA_USB1_ADDRESS
+ */
+#endif
+
 /*
  * U-Boot environment
  */