From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 13 Apr 2015 01:29:39 +0200 Subject: [U-Boot] [PATCH v2 5/6] usb: host: Add ehci-vf USB driver for ARM Vybrid SoC's In-Reply-To: <46735d5d2cbe2d946742db50728198c19dd781ff.1428497492.git.maitysanchayan@gmail.com> References: <46735d5d2cbe2d946742db50728198c19dd781ff.1428497492.git.maitysanchayan@gmail.com> Message-ID: <201504130129.39640.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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