From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ppc4xx: Canyonlands: Fix USB host PHY reset sequence
Date: Mon, 14 Dec 2009 21:44:32 +0100 [thread overview]
Message-ID: <20091214204432.372AD4C026@gemini.denx.de> (raw)
In-Reply-To: <1260821359-8705-1-git-send-email-dmitchell@appliedmicro.com>
Dear Stefan,
In message <1260821359-8705-1-git-send-email-dmitchell@appliedmicro.com> Dave Mitchell wrote:
...
> --- 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);
> + mdealy(100);
We should get rid of this "CONFIG_SYS_BCSR_BASE + offset" stuff and
use a proper C struct for this. What do you think?
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
Testing can show the presense of bugs, but not their absence.
-- Edsger Dijkstra
prev parent reply other threads:[~2009-12-14 20:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-14 20:09 [U-Boot] [PATCH] ppc4xx: Canyonlands: Fix USB host PHY reset sequence Dave Mitchell
2009-12-14 20:41 ` Wolfgang Denk
2009-12-14 20:48 ` David Mitchell
2009-12-14 21:15 ` Wolfgang Denk
2009-12-14 20:44 ` Wolfgang Denk [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=20091214204432.372AD4C026@gemini.denx.de \
--to=wd@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.