Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Pete Popov <ppopov@mvista.com>
To: ichinoh@mb.neweb.ne.jp
Cc: linux-mips@linux-mips.org
Subject: Re: Reset of USB
Date: Tue, 31 Aug 2004 14:40:49 -0700	[thread overview]
Message-ID: <4134F061.5080502@mvista.com> (raw)
In-Reply-To: <F7800BBC-FB5C-11D8-85DA-000A956B2316@mb.neweb.ne.jp>

ichinoh@mb.neweb.ne.jp wrote:

> Hello ,
>
> I invoked the Linux kernel on ALCHEMY DBAU1100 by U-BOOT.
>
> The processing which resets USB-OHCI of the head of a kernel is not 
> completed. (refer to *)
>
> Au1100 does not indicate "reset is completed."
> Is this phenomenon experienced?
>
> In addition,
> this phenomenon is not encountered when starting a kernel by YAMON.

Yamon initializes the CPU and then Linux doesn't have to touch too many 
registers. I'm guessing u-boot doesn't setup the clocking correctly, or 
at all, and that might be your problem. The Yamon code for these boards 
is available and it's easy to read the initialization code.  Take a look 
at it and that should solve your problem.

Pete

>
>
> *:
> arch/mips/au1000/common/setup.c
>
> #ifdef CONFIG_USB_OHCI
>     // enable host controller and wait for reset done
>     au_writel(0x08, USB_HOST_CONFIG);
>     udelay(1000);
>     au_writel(0x0E, USB_HOST_CONFIG);
>     udelay(1000);
>     au_readl(USB_HOST_CONFIG); // throw away first read
>     while (!(au_readl(USB_HOST_CONFIG) & 0x10))
>         au_readl(USB_HOST_CONFIG);
> #endif
>
> Best regards,
> Nyauyama
>
>

  reply	other threads:[~2004-08-31 21:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-31 14:49 Reset of USB ichinoh
2004-08-31 21:40 ` Pete Popov [this message]
2004-09-02 13:17   ` ichinoh
2004-09-02 17:49     ` Pete Popov
2004-09-03 16:12       ` ichinoh

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=4134F061.5080502@mvista.com \
    --to=ppopov@mvista.com \
    --cc=ichinoh@mb.neweb.ne.jp \
    --cc=linux-mips@linux-mips.org \
    /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