From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 7 Dec 2015 23:01:45 +0100 Subject: [U-Boot] [PATCH 7/7] arm: socfpga: socrates: Probe DWC2 UDC from OF instead of hard-coded data In-Reply-To: <5665FED5.8010502@opensource.altera.com> References: <1449348200-18439-1-git-send-email-marex@denx.de> <1449348200-18439-7-git-send-email-marex@denx.de> <5665FED5.8010502@opensource.altera.com> Message-ID: <201512072301.45754.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 Monday, December 07, 2015 at 10:49:09 PM, Dinh Nguyen wrote: > On 12/05/2015 02:43 PM, Marek Vasut wrote: > > This patch adds the necessary OF alias for the UDC node, which let's > > the code locate the DWC2 UDC base address in OF instead of hard-coding > > it into the U-Boot binary. The code is adjusted to use the address from > > OF instead of the hard-coded one. Finally, the hard-coded address is > > removed and USB DM support is enabled. > > > > Signed-off-by: Marek Vasut > > Cc: Chin Liang See > > Cc: Dinh Nguyen > > Cc: Lukasz Majewski > > Cc: Lukasz Majewski > > --- > > > > arch/arm/dts/socfpga_cyclone5_socrates.dts | 8 ++++++++ > > board/ebv/socrates/socfpga.c | 21 +++++++++++++++++++-- > > configs/socfpga_socrates_defconfig | 2 ++ > > include/configs/socfpga_socrates.h | 3 --- > > 4 files changed, 29 insertions(+), 5 deletions(-) > > > > > diff --git a/include/configs/socfpga_socrates.h > > b/include/configs/socfpga_socrates.h index de8ced6..1b0888f 100644 > > --- a/include/configs/socfpga_socrates.h > > +++ b/include/configs/socfpga_socrates.h > > @@ -52,9 +52,6 @@ > > > > #define CONFIG_ENV_OFFSET 512 /* just after the MBR */ > > > > /* USB */ > > > > -#ifdef CONFIG_CMD_USB > > -#define CONFIG_USB_DWC2_REG_ADDR SOCFPGA_USB1_ADDRESS > > -#endif > > > > #define CONFIG_G_DNL_MANUFACTURER "EBV" > > > > /* Extra Environment */ > > With this patch series, I think you should follow up with a patch like > below? > > --- > > diff --git a/include/configs/socfpga_common.h > b/include/configs/socfpga_common.h > index f74c758..b57fd4c 100644 > --- a/include/configs/socfpga_common.h > +++ b/include/configs/socfpga_common.h > @@ -233,13 +233,6 @@ unsigned int cm_get_qspi_controller_clk_hz(void); > #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 You're right. Can you give me a SoB line on this or submit one ? Best regards, Marek Vasut