[U-Boot] [PATCH v2 5/6] usb: host: Add ehci-vf USB driver for ARM Vybrid SoC's

Marek Vasut marex at denx.de
Mon Apr 13 01:29:39 CEST 2015


On Wednesday, April 08, 2015 at 03:20:09 PM, Sanchayan Maity wrote:
> This driver adds support for the USB peripheral on Freescale Vybrid
> SoC's.
> 
> Signed-off-by: Sanchayan Maity <maitysanchayan at gmail.com>
> ---
>  arch/arm/include/asm/arch-vf610/crm_regs.h    |  10 ++
>  arch/arm/include/asm/arch-vf610/imx-regs.h    |   4 +
>  arch/arm/include/asm/arch-vf610/regs-usbphy.h |  31 ++++
>  drivers/usb/host/Makefile                     |   1 +
>  drivers/usb/host/ehci-vf.c                    | 196
> ++++++++++++++++++++++++++ 5 files changed, 242 insertions(+)
>  create mode 100644 arch/arm/include/asm/arch-vf610/regs-usbphy.h
>  create mode 100644 drivers/usb/host/ehci-vf.c

A general hint, you can replace sequences of code like this:

var = readl(foo);
var |= BIT_BAR;
writel(var, addr);

with

setbits_le32(var, BIT_BAR);

Same applies for clearing -- clrbits_le32() and both setting and
clearing -- clrsetbits_le32().

Thanks!

Best regards,
Marek Vasut


More information about the U-Boot mailing list