summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/arm926ejs
diff options
context:
space:
mode:
authorSylvain Lemieux <slemieux@tycoint.com>2015-08-13 15:40:22 -0400
committerTom Rini <trini@konsulko.com>2015-08-18 13:45:57 -0400
commitadf8d58d4f34533cd12174d76ae404eb740e844f (patch)
tree343f6a0e57fcd19976b62f5c2385a9618c1d3551 /arch/arm/cpu/arm926ejs
parent1933af15e2ce9dfdf64d6c663eb16963ae0341ad (diff)
downloadu-boot-adf8d58d4f34533cd12174d76ae404eb740e844f.tar.gz
u-boot-adf8d58d4f34533cd12174d76ae404eb740e844f.tar.xz
u-boot-adf8d58d4f34533cd12174d76ae404eb740e844f.zip
usb: lpc32xx: add host USB driver
Incorporate USB driver from legacy LPCLinux NXP BSP. The files taken from the legacy patch are: - lpc32xx USB driver - lpc3250 header file USB registers definition. The legacy driver was updated and clean-up as part of the integration with the latest u-boot. Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com> Acked-by: Marek Vasut <marex@denx.de> Tested-by: Vladimir Zapolskiy <vz@mleia.com>
Diffstat (limited to 'arch/arm/cpu/arm926ejs')
-rw-r--r--arch/arm/cpu/arm926ejs/lpc32xx/devices.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/lpc32xx/devices.c b/arch/arm/cpu/arm926ejs/lpc32xx/devices.c
index f0af851b5e..d9fa2807d7 100644
--- a/arch/arm/cpu/arm926ejs/lpc32xx/devices.c
+++ b/arch/arm/cpu/arm926ejs/lpc32xx/devices.c
@@ -72,6 +72,12 @@ void lpc32xx_slc_nand_init(void)
writel(CLK_NAND_SLC | CLK_NAND_SLC_SELECT, &clk->flashclk_ctrl);
}
+void lpc32xx_usb_init(void)
+{
+ /* Do not route the UART 5 Tx/Rx pins to the USB D+ and USB D- pins. */
+ clrbits_le32(&ctrl->ctrl, UART_CTRL_UART5_USB_MODE);
+}
+
void lpc32xx_i2c_init(unsigned int devnum)
{
/* Enable I2C interface */