public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Vladimir Zapolskiy <vz@mleia.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 5/5] usb: lpc32xx: add host USB driver
Date: Thu, 06 Aug 2015 21:25:36 +0300	[thread overview]
Message-ID: <55C3A6A0.1030900@mleia.com> (raw)
In-Reply-To: <4F172219764C784B84C2C1FF44E7DFB10300AED2@003FCH1MPN2-041.003f.mgd2.msft.net>

Hi Sylvain,

On 06.08.2015 21:01, LEMIEUX, SYLVAIN wrote:
> Hi Vladimir,
> 
> See comment below.
> 
>> -----Original Message-----
>> From: Vladimir Zapolskiy [mailto:vz at mleia.com]
>>
>> Hi Sylvain,
>>
>> On 05.08.2015 21:31, slemieux.tyco at gmail.com wrote:
>>> From: Sylvain Lemieux <slemieux@tycoint.com>
>>>
>>> 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>
>>> ---
> 
> [...]
> 
>>>
>>> diff --git a/arch/arm/cpu/arm926ejs/lpc32xx/devices.c b/arch/arm/cpu/arm926ejs/lpc32xx/devices.c
>>> index 0d2ef7a..3da0952 100644
>>> --- a/arch/arm/cpu/arm926ejs/lpc32xx/devices.c
>>> +++ b/arch/arm/cpu/arm926ejs/lpc32xx/devices.c
>>> @@ -82,6 +82,12 @@ void lpc32xx_i2c_init(unsigned int devnum)
>>>     writel(ctrl, &clk->i2cclk_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);
>>> +}
>>
>> Please replace clrbits_le32() with writel(), the same motivation as
>> shown for DMA driver.
> 
> It is not possible to do it for this instance; the control register is affecting multiple UARTs;
> refer to UM10326 LPC32x0 User manual Rev. 3, table 459 for details.
> 

accepted, please ignore this review comment.

With best wishes,
Vladimir

      reply	other threads:[~2015-08-06 18:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-05 18:31 [U-Boot] [PATCH v5 5/5] usb: lpc32xx: add host USB driver slemieux.tyco at gmail.com
2015-08-05 18:50 ` Marek Vasut
2015-08-05 21:59 ` Vladimir Zapolskiy
2015-08-05 23:19   ` Marek Vasut
2015-08-06 18:01   ` LEMIEUX, SYLVAIN
2015-08-06 18:25     ` Vladimir Zapolskiy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55C3A6A0.1030900@mleia.com \
    --to=vz@mleia.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox