All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/5] usb: s3c-otg: Allow custom gusbcfg
Date: Thu, 6 Nov 2014 21:27:19 +0100	[thread overview]
Message-ID: <201411062127.19394.marex@denx.de> (raw)
In-Reply-To: <20141104193657.GE13607@amd>

On Tuesday, November 04, 2014 at 08:36:57 PM, Pavel Machek wrote:
> On Tue 2014-11-04 06:07:33, Marek Vasut wrote:
> > Allow passing in a custom configuration of the gusbcfg register
> > via platform data.
> > 
> > Signed-off-by: Marek Vasut <marex@denx.de>
> > Cc: Chin Liang See <clsee@altera.com>
> > Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> > Cc: Vince Bridgers <vbridger@altera.com>
> 
> Acked-by: Pavel Machek <pavel@denx.de>
> 
> >  	debug("Reseting OTG controller\n");
> > 
> > -	writel(0<<15		/* PHY Low Power Clock sel*/
> > +	dflt_gusbcfg =
> > +		0<<15		/* PHY Low Power Clock sel*/
> > 
> >  		|1<<14		/* Non-Periodic TxFIFO Rewind Enable*/
> >  		|0x5<<10	/* Turnaround time*/
> >  		|0<<9 | 0<<8	/* [0:HNP disable,1:HNP enable][ 0:SRP disable*/
> > 
> > @@ -413,8 +415,12 @@ static void reconfig_usbd(void)
> > 
> >  		|0<<6		/* 0: high speed utmi+, 1: full speed serial*/
> >  		|0<<4		/* 0: utmi+, 1:ulpi*/
> >  		|1<<3		/* phy i/f  0:8bit, 1:16bit*/
> > 
> > -		|0x7<<0,	/* HS/FS Timeout**/
> > -		&reg->gusbcfg);
> > +		|0x7<<0;	/* HS/FS Timeout**/
> > +
> 
> "Interesting" comment style. And I'd remove 0x prefixes from constants
> <8...

Lukasz, what do you say to just convert those four boards to use the gusbcfg
platform data afterward ?

btw. you can find the latest version in u-boot-usb:topic/s3c-otg

Best regards,
Marek Vasut

  reply	other threads:[~2014-11-06 20:27 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04  5:07 [U-Boot] [PATCH 1/5] usb: s3c-otg: Remove useless include Marek Vasut
2014-11-04  5:07 ` [U-Boot] [PATCH 2/5] usb: s3c-otg: Encapsulate PHY control Marek Vasut
2014-11-04 19:30   ` Pavel Machek
2014-11-06  9:43   ` Lukasz Majewski
2014-11-04  5:07 ` [U-Boot] [PATCH 3/5] usb: s3c-otg: Split out " Marek Vasut
2014-11-04 19:34   ` Pavel Machek
2014-11-06 20:26     ` Marek Vasut
2014-11-07  8:59       ` Lukasz Majewski
2014-11-07  9:12         ` Marek Vasut
2014-11-07 10:08           ` Lukasz Majewski
2014-11-07 10:28             ` Marek Vasut
2014-11-07 14:23               ` Lukasz Majewski
2014-11-07 15:30                 ` Marek Vasut
2014-11-06  9:59   ` Lukasz Majewski
2014-11-06 20:23     ` Marek Vasut
2014-11-06 21:29       ` Lukasz Majewski
2014-11-07  8:05         ` Marek Vasut
2014-11-07 10:40           ` Lukasz Majewski
2014-11-04  5:07 ` [U-Boot] [PATCH 4/5] usb: s3c-otg: Allow custom gusbcfg Marek Vasut
2014-11-04 19:36   ` Pavel Machek
2014-11-06 20:27     ` Marek Vasut [this message]
2014-11-07  9:11       ` Lukasz Majewski
2014-11-07  9:25         ` Marek Vasut
2014-11-07 10:22           ` Lukasz Majewski
2014-11-07 14:33           ` Lukasz Majewski
2014-11-07 15:31             ` Marek Vasut
2014-11-04  5:07 ` [U-Boot] [PATCH 5/5] arm: socfpga: Add example UDC config Marek Vasut
2014-11-04 19:51   ` Pavel Machek
2014-11-04 20:09     ` Marek Vasut
2014-11-04 21:01       ` Pavel Machek
2014-11-07 14:40   ` Lukasz Majewski
2014-11-07 14:53     ` Marek Vasut
2014-11-07 15:28       ` Lukasz Majewski
2014-11-07 15:37         ` Marek Vasut
2014-11-07 15:31     ` Marek Vasut
2014-11-04 19:28 ` [U-Boot] [PATCH 1/5] usb: s3c-otg: Remove useless include Pavel Machek
2014-11-06  9:32 ` Lukasz Majewski

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=201411062127.19394.marex@denx.de \
    --to=marex@denx.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.