[U-Boot] [PATCH] lpc32xx: add common USB OHCI defines for all LPC32xx boards

The change adds a number of macro definitions used by USB OHCI driver, if CONFIG_USB_OHCI_LPC32XX is selected from a board config file.
Signed-off-by: Vladimir Zapolskiy vz@mleia.com --- Based on https://patchwork.ozlabs.org/patch/505605/ work, but there is no compilation or merge dependency.
arch/arm/include/asm/arch-lpc32xx/config.h | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/arch/arm/include/asm/arch-lpc32xx/config.h b/arch/arm/include/asm/arch-lpc32xx/config.h index d161ad2..2d082ef 100644 --- a/arch/arm/include/asm/arch-lpc32xx/config.h +++ b/arch/arm/include/asm/arch-lpc32xx/config.h @@ -90,4 +90,13 @@ #define CONFIG_SYS_FLASH_PROTECTION #endif
+/* USB OHCI */ +#if defined(CONFIG_USB_OHCI_LPC32XX) +#define CONFIG_USB_OHCI_NEW +#define CONFIG_SYS_USB_OHCI_CPU_INIT +#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1 +#define CONFIG_SYS_USB_OHCI_REGS_BASE USB_BASE +#define CONFIG_SYS_USB_OHCI_SLOT_NAME "lpc32xx-ohci" +#endif + #endif /* _LPC32XX_CONFIG_H */

-----Original Message----- From: Vladimir Zapolskiy [mailto:vz@mleia.com] Sent: 12-Aug-15 1:32 PM
The change adds a number of macro definitions used by USB OHCI driver, if CONFIG_USB_OHCI_LPC32XX is selected from a board config file.
Signed-off-by: Vladimir Zapolskiy vz@mleia.com
Based on https://patchwork.ozlabs.org/patch/505605/ work, but there is no compilation or merge dependency.
arch/arm/include/asm/arch-lpc32xx/config.h | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/arch/arm/include/asm/arch-lpc32xx/config.h b/arch/arm/include/asm/arch-lpc32xx/config.h index d161ad2..2d082ef 100644 --- a/arch/arm/include/asm/arch-lpc32xx/config.h +++ b/arch/arm/include/asm/arch-lpc32xx/config.h @@ -90,4 +90,13 @@ #define CONFIG_SYS_FLASH_PROTECTION #endif
[...]
Tested-by: Sylvain Lemieux slemieux@tycoint.com
________________________________
This e-mail contains privileged and confidential information intended for the use of the addressees named above. If you are not the intended recipient of this e-mail, you are hereby notified that you must not disseminate, copy or take any action in respect of any information contained in it. If you have received this e-mail in error, please notify the sender immediately by e-mail and immediately destroy this e-mail and its attachments.

On Wed, Aug 12, 2015 at 08:32:08PM +0300, Vladimir Zapolskiy wrote:
The change adds a number of macro definitions used by USB OHCI driver, if CONFIG_USB_OHCI_LPC32XX is selected from a board config file.
Signed-off-by: Vladimir Zapolskiy vz@mleia.com Tested-by: Sylvain Lemieux slemieux@tycoint.com
Applied to u-boot/master, thanks!
participants (3)
-
LEMIEUX, SYLVAIN
-
Tom Rini
-
Vladimir Zapolskiy