linux-mips
[Top] [All Lists]

Re: usb-problems with Au1000

To: Pete Popov <ppopov@pacbell.net>
Subject: Re: usb-problems with Au1000
From: Kunihiko IMAI <kimai@laser5.co.jp>
Date: Tue, 22 Jan 2002 18:56:33 +0900
Cc: Kunihiko IMAI <kimai@laser5.co.jp>, linux-mips <linux-mips@oss.sgi.com>
In-reply-to: <1011383349.18177.6.camel@zeus>
References: <3B7DA3A3.8010000@pacbell.net> <3C3DD208.45B5BC29@esk.fhg.de> <m3bsft6z87.wl@l5ac152.l5.laser5.co.jp> <1011294123.4550.58.camel@zeus> <m3advc6xhx.wl@l5ac152.l5.laser5.co.jp> <1011383349.18177.6.camel@zeus>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) CLIME/1.13.6 (中ノ庄) Emacs/20.7 (i386-laser5-linux-gnu) MULE/4.1 (AOI)
Hi,

At 18 Jan 2002 11:49:09 -0800,
Pete Popov wrote:
> 
> 
> > > It's the comment that's wrong, not the code. The code works and has been
> > > tested.  Alchemy makes available the Linux Support Package (LSP) which
> > > we did. That kernel has been tested with all peripherals so I would
> > > recommend that you get that from them.  Also,make sure your jumpers are
> > > setup correctly (S4).
> > 
> > In the source code:
> > 
> >     sys_clksrc |= ((4<<12) | (0<<11) | (0<<10));
> > 
> >     (snip...)
> > 
> >     outl(sys_clksrc, CLOCK_SOURCE_CNTRL);
> > 
> > This code sets the clock source of USB host controller is FREQ2.  So
> > FREQ5 clock source doesn't affect to USB host controller.
> 
> After looking into it, both the comment and code are correct. From
> include/asm-mips/au1000.h:
> 
> #define FQ_CNTRL_1                0xB1900020
> #define FQ_CNTRL_2                0xB1900024
> 
> So FQ_CNTRL_1 corresponds to what is now sys_freqctrl0. In other words,
> the update to the databook has not been incorporated into the Au1000
> files. The names of the registers were updated after I had done all the
> core work. I need to update the code so the names of the registers
> correspond to the latest Au1000 manual.

Oh, I see.  I'm sorry for my misunderstanding.

Now the relations are like this:

Au1000 manual   Linux Header
-----------------------------------
sys_freqctl0    FQ_CNTRL_1
sys_freqctl1    FQ_CNTRL_2
-----------------------------------

Then it's correct setup.

Thanks.
_._. __._  _ . ... _  .___ ._. _____ _... ._ _._ _.._. .____  _ . ... _

                                                          Kunihiko IMAI

<Prev in Thread] Current Thread [Next in Thread>