[U-Boot] TI Davinci and MUSB

Gupta, Ajay Kumar ajay.gupta at ti.com
Fri Feb 5 06:59:02 CET 2010


> -----Original Message-----
> From: Neal Tew [mailto:loopy at mm.st]
> Sent: Friday, February 05, 2010 11:20 AM
> To: u-boot at lists.denx.de
> Cc: Gupta, Ajay Kumar
> Subject: Re: [U-Boot] TI Davinci and MUSB
> 
> [5]?  I don't think that's right.  Look at the offsets.
> 
> -Neal
> 
> > I've been trying to get usbtty working on a DM355 (still isn't
> > working...) and ran into a bug(?).
> >
> > In drivers/usb/musb/davinci.h:
> >
> > struct davinci_usb_regs {
> >     u32 version;
> >     u32 ctrlr;
> >     u32 reserved[0x20];
> >     u32 intclrr;
> >     u32 intmskr;
> >     u32 intmsksetr;
> > };
> >
> > Shouldn't this be reserved[0x20/4] ?
> 
> Yes, this is a bug. Though the correct fix is,
> - u32 reserved[0x20];
> + u32 reserved[5];

Opps, there are actually 32 intermediate register each of 32 bits.

So the correct one is as Neal suggested.

- u32 reserved[0x20];
+ u32 reserved[020/4];

-Ajay
> 
> Please refer musb Davinci (DM6446) document (page-74) at,
> http://focus.ti.com/lit/ug/sprue35f/sprue35f.pdf
> 
> -->4h CTRLR Control Register Section 4.1
> 8h STATR Status Register Section 4.2
> 10h RNDISR RNDIS Register Section 4.3
> 14h AUTOREQ Autorequest Register Section 4.4
> 20h INTSRCR USB Interrupt Source Register Section 4.5
> 24h INTSETR USB Interrupt Source Set Register Section 4.6
> -->28h INTCLRR USB Interrupt Source Clear Register
> 
> -Ajay
> >
> > --
> > Neal Tew



More information about the U-Boot mailing list