From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 23 Sep 2014 22:16:07 +0200 Subject: [U-Boot] [PATCH 2/3] arm: socfpga: config: Enable USB support In-Reply-To: References: <1411305204-11731-1-git-send-email-marex@denx.de> <1411305204-11731-3-git-send-email-marex@denx.de> Message-ID: <201409232216.07682.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday, September 23, 2014 at 09:55:59 PM, Dinh Nguyen wrote: > On Sun, 21 Sep 2014, Marek Vasut wrote: > > Enable support for the DWC2 USB controller. > > > > Signed-off-by: Marek Vasut > > Cc: Chin Liang See > > Cc: Dinh Nguyen > > Cc: Albert Aribaud > > Cc: Tom Rini > > Cc: Wolfgang Denk > > Cc: Pavel Machek > > --- > > > > include/configs/socfpga_cyclone5_common.h | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/include/configs/socfpga_cyclone5_common.h > > b/include/configs/socfpga_cyclone5_common.h index 49504dc..3f8f91f > > 100644 > > --- a/include/configs/socfpga_cyclone5_common.h > > +++ b/include/configs/socfpga_cyclone5_common.h > > @@ -157,6 +157,14 @@ > > > > #define CONFIG_BAUDRATE 115200 > > > > /* > > > > + * USB > > + */ > > +#ifdef CONFIG_CMD_USB > > +#define CONFIG_USB_DWC2 > > +#define CONFIG_USB_STORAGE > > Don't you also need: > > #define CONFIG_USB_DWC2_REG_ADDR 0xffb40000 > > for the base address for the USB1 on SOCFPGA? Yes, you need to do that, but there are actually two USB controllers in the SoCFPGA CV, so this is up to the user to pick one and define it in his separate board header file (socfpga_cyclone5.h or similar). So far, the DWC2 driver supports only single controller (this needs to be fixed). Best regards, Marek Vasut