public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH V2] ppc4xx: Canyonlands: Fix USB host PHY reset sequence
@ 2009-12-14 21:04 Dave Mitchell
  2009-12-14 21:16 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Dave Mitchell @ 2009-12-14 21:04 UTC (permalink / raw)
  To: u-boot

Current de-assert reset is not sufficient for the USB PHY reset
on some Canyonlands platforms. The patch adds an assert/de-assert
sequence. This addresses a USB detection problem for devices
attached prior to power-up. The delay lengths are needed for
power to the PHY to stabilize.

Signed-off-by: Jeff Mann <MannJ@embeddedplanet.com>
Signed-off-by: Dave Mitchell <dmitchell@appliedmicro.com>
Acked-by: Tirumala Reddy Marri <tmarri@appliedmicro.com>
---
v1->v2: fixed typo

 board/amcc/canyonlands/canyonlands.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/board/amcc/canyonlands/canyonlands.c b/board/amcc/canyonlands/canyonlands.c
index 13a0dac..6c61122 100644
--- a/board/amcc/canyonlands/canyonlands.c
+++ b/board/amcc/canyonlands/canyonlands.c
@@ -177,8 +177,11 @@ int board_early_init_f(void)
 	/* Remove NOR-FLASH, NAND-FLASH & EEPROM hardware write protection */
 	out_8((void *)CONFIG_SYS_BCSR_BASE + 5, 0);
 
-	/* Enable USB host & USB-OTG */
+	/* Enable USB host & USB-OTG;force assert,then de-assert PHY reset */
+	out_8((void *)CONFIG_SYS_BCSR_BASE + 7, 1);
+	mdelay(100);
 	out_8((void *)CONFIG_SYS_BCSR_BASE + 7, 0);
+	mdelay(100);
 
 	mtsdr(SDR0_SRST1, 0);	/* Pull AHB out of reset default=1 */
 
-- 
1.6.3.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH V2] ppc4xx: Canyonlands: Fix USB host PHY reset sequence
  2009-12-14 21:04 [U-Boot] [PATCH V2] ppc4xx: Canyonlands: Fix USB host PHY reset sequence Dave Mitchell
@ 2009-12-14 21:16 ` Wolfgang Denk
  2009-12-14 21:33   ` David Mitchell
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2009-12-14 21:16 UTC (permalink / raw)
  To: u-boot

Dear Dave Mitchell,

In message <1260824693-11874-1-git-send-email-dmitchell@appliedmicro.com> you wrote:
> Current de-assert reset is not sufficient for the USB PHY reset
> on some Canyonlands platforms. The patch adds an assert/de-assert
> sequence. This addresses a USB detection problem for devices
> attached prior to power-up. The delay lengths are needed for
> power to the PHY to stabilize.
> 
> Signed-off-by: Jeff Mann <MannJ@embeddedplanet.com>
> Signed-off-by: Dave Mitchell <dmitchell@appliedmicro.com>
> Acked-by: Tirumala Reddy Marri <tmarri@appliedmicro.com>
> ---
> v1->v2: fixed typo

NAK again. This does not belong in generic board init code. 

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Documentation is the castor oil of programming.
Managers know it must be good because the programmers hate it so much.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH V2] ppc4xx: Canyonlands: Fix USB host PHY reset sequence
  2009-12-14 21:16 ` Wolfgang Denk
@ 2009-12-14 21:33   ` David Mitchell
  2010-01-14 10:18     ` Stefan Roese
  0 siblings, 1 reply; 4+ messages in thread
From: David Mitchell @ 2009-12-14 21:33 UTC (permalink / raw)
  To: u-boot

Hi Wolfgang,

> -----Original Message-----
> From: Wolfgang Denk [mailto:wd at denx.de]
> Sent: Monday, December 14, 2009 3:16 PM
> To: David Mitchell
> Cc: u-boot at lists.denx.de; Stefan Roese; Jeff Mann
> Subject: Re: [U-Boot] [PATCH V2] ppc4xx: Canyonlands: Fix USB host PHY
> reset sequence
> 
> Dear Dave Mitchell,
> 
> In message <1260824693-11874-1-git-send-email-
> dmitchell at appliedmicro.com> you wrote:
> > Current de-assert reset is not sufficient for the USB PHY reset
> > on some Canyonlands platforms. The patch adds an assert/de-assert
> > sequence. This addresses a USB detection problem for devices
> > attached prior to power-up. The delay lengths are needed for
> > power to the PHY to stabilize.
> >
> > Signed-off-by: Jeff Mann <MannJ@embeddedplanet.com>
> > Signed-off-by: Dave Mitchell <dmitchell@appliedmicro.com>
> > Acked-by: Tirumala Reddy Marri <tmarri@appliedmicro.com>
> > ---
> > v1->v2: fixed typo
> 
> NAK again. This does not belong in generic board init code.

I see. Are you asking that all of the USB code be removed? Including the
previous PHY reset implementation done by the original Canyonlands port
(toggling the CPLD reset for the PHY).

Best regards,
-DM
--------------------------------------------------------

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and contains information that is confidential and proprietary to AppliedMicro Corporation or its subsidiaries. It is to be used solely for the purpose of furthering the parties' business relationship. All unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH V2] ppc4xx: Canyonlands: Fix USB host PHY reset sequence
  2009-12-14 21:33   ` David Mitchell
@ 2010-01-14 10:18     ` Stefan Roese
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Roese @ 2010-01-14 10:18 UTC (permalink / raw)
  To: u-boot

Hi Dave,

On Monday 14 December 2009 22:33:56 David Mitchell wrote:
> > > Current de-assert reset is not sufficient for the USB PHY reset
> > > on some Canyonlands platforms. The patch adds an assert/de-assert
> > > sequence. This addresses a USB detection problem for devices
> > > attached prior to power-up. The delay lengths are needed for
> > > power to the PHY to stabilize.
> > >
> > > Signed-off-by: Jeff Mann <MannJ@embeddedplanet.com>
> > > Signed-off-by: Dave Mitchell <dmitchell@appliedmicro.com>
> > > Acked-by: Tirumala Reddy Marri <tmarri@appliedmicro.com>
> > > ---
> > > v1->v2: fixed typo
> >
> > NAK again. This does not belong in generic board init code.
> 
> I see. Are you asking that all of the USB code be removed? Including the
> previous PHY reset implementation done by the original Canyonlands port
> (toggling the CPLD reset for the PHY).

Yes, it's probably best to move this USB init code to some place that's called 
in U-Boot only when USB is really used (a board specific USB init function). 
And we need to add it to the Linux driver(s) as well.

Will you find the time soon to submit such patches?

Thanks.

Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-14 10:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14 21:04 [U-Boot] [PATCH V2] ppc4xx: Canyonlands: Fix USB host PHY reset sequence Dave Mitchell
2009-12-14 21:16 ` Wolfgang Denk
2009-12-14 21:33   ` David Mitchell
2010-01-14 10:18     ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox