From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Date: Sat, 25 Oct 2014 13:16:00 +0200 Subject: [U-Boot] [PATCH] arm: socfpga: config: Add USB support example In-Reply-To: <1414186465-8242-1-git-send-email-marex@denx.de> References: <1414186465-8242-1-git-send-email-marex@denx.de> Message-ID: <20141025111600.GA19417@amd> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri 2014-10-24 23:34:25, Marek Vasut wrote: > Add example configuration stub for the DWC2 USB controller. > > Signed-off-by: Marek Vasut > Cc: Chin Liang See > Cc: Dinh Nguyen > Cc: Vince Bridgers > Cc: Pavel Machek > --- > include/configs/socfpga_common.h | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h > index 9de3aa7..1df886b 100644 > --- a/include/configs/socfpga_common.h > +++ b/include/configs/socfpga_common.h > @@ -176,6 +176,21 @@ > #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 > + > +/* Actually, I believe you should uncomment whatever configuration works for you. That way, users can see what you are actually using/testing. With that: Acked-by: Pavel Machek Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html