lpc32xx: add common USB OHCI defines for all LPC32xx boards
authorVladimir Zapolskiy <vz@mleia.com>
Wed, 12 Aug 2015 17:32:08 +0000 (20:32 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 18 Aug 2015 17:45:58 +0000 (13:45 -0400)
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>
arch/arm/include/asm/arch-lpc32xx/config.h

index d161ad213a16b163c5cdd521601e6df5a0ded879..2d082ef40d8514df6449a575ca2febaacc1a2dd8 100644 (file)
 #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 */