From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 7/7] arm: socfpga: socrates: Probe DWC2 UDC from OF instead of hard-coded data
Date: Mon, 7 Dec 2015 23:01:45 +0100 [thread overview]
Message-ID: <201512072301.45754.marex@denx.de> (raw)
In-Reply-To: <5665FED5.8010502@opensource.altera.com>
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 <marex@denx.de>
> > Cc: Chin Liang See <clsee@altera.com>
> > Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> > Cc: Lukasz Majewski <l.majewski@majess.pl>
> > Cc: Lukasz Majewski <l.majewski@samsung.com>
> > ---
> >
> > 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(-)
>
> <snip>
>
> > 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
next prev parent reply other threads:[~2015-12-07 22:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-05 20:43 [U-Boot] [PATCH 1/7] arm: socfpga: Allow DWC2 UDC probing from OF Marek Vasut
2015-12-05 20:43 ` [U-Boot] [PATCH 2/7] arm: socfpga: arria5-socdk: Probe DWC2 UDC from OF instead of hard-coded data Marek Vasut
2015-12-07 12:41 ` Chin Liang See
2015-12-05 20:43 ` [U-Boot] [PATCH 3/7] arm: socfpga: cyclone5-socdk: " Marek Vasut
2015-12-07 12:43 ` Chin Liang See
2015-12-05 20:43 ` [U-Boot] [PATCH 4/7] arm: socfpga: de0_nano: " Marek Vasut
2015-12-07 12:44 ` Chin Liang See
2015-12-05 20:43 ` [U-Boot] [PATCH 5/7] arm: socfpga: mcvevk: " Marek Vasut
2015-12-07 12:44 ` Chin Liang See
2015-12-05 20:43 ` [U-Boot] [PATCH 6/7] arm: socfpga: sockit: " Marek Vasut
2015-12-07 12:46 ` Chin Liang See
2015-12-05 20:43 ` [U-Boot] [PATCH 7/7] arm: socfpga: socrates: " Marek Vasut
2015-12-07 12:47 ` Chin Liang See
2015-12-07 21:49 ` Dinh Nguyen
2015-12-07 22:01 ` Marek Vasut [this message]
2015-12-07 22:49 ` Dinh Nguyen
2015-12-07 22:51 ` Marek Vasut
2015-12-07 12:29 ` [U-Boot] [PATCH 1/7] arm: socfpga: Allow DWC2 UDC probing from OF Chin Liang See
2015-12-07 21:42 ` Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201512072301.45754.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.