All of lore.kernel.org
 help / color / mirror / Atom feed
* DBAu1200 & Alchemy
@ 2005-12-06 17:55 Bora Sahin
  0 siblings, 0 replies; only message in thread
From: Bora Sahin @ 2005-12-06 17:55 UTC (permalink / raw)
  To: linux-mips

Hi,

While I was working on the graphic console support of DbAu1200, I realized that
USB controller of it is a bit different from the other Alchemy family members.
As far as I understood, only OHCI support is matter(Perhaps OTG but because I am
not interested in now, didnt include; EHCI depends on PCI stuff etc.) and in
order to work needs a bus glue logic different from e.g. Au1550. If I compile it
as is, kernel gives an error message saying that USB_HOST_CONFIG is undefined in
au1xxx_start_hc()...

I am totaly new to USB stuff bus as far as I understood, if I correct this
function accordingly, I can enable USB stuff. So I examined the databook and did
the following change and ifdefing the change to CONFIG_SOC_AU1200...

au1xxx_start_hc()
{
    ...
    au_writel(au_readl(USB_MSR_BASE + USB_MSR_MCFG) | 1 << USBMSRMCFG_OHCCLKEN,
                                    USB_MSR_BASE + USB_MSR_MCFG);
    au_writel(au_readl(USB_MSR_BASE + USB_MSR_MCFG) | 1 << USBMSRMCFG_OMEMEN,
                                    USB_MSR_BASE + USB_MSR_MCFG);
    au_writel(au_readl(USB_MSR_BASE + USB_MSR_MCFG) | 1 << USBMSRMCFG_OBMEN,
                                    USB_MSR_BASE + USB_MSR_MCFG);
    ...
}

So it seemed to work a bit. Firstly, I get the following messages and the kernel
goes on after a bit time passed...

u1xxx-ohci au1xxx-ohci.0: Au1xxx OHCI
au1xxx-ohci au1xxx-ohci.0: new USB bus registered, assigned bus number 1
au1xxx-ohci au1xxx-ohci.0: irq 29, io mem 0x14020100
usb usb1: Product: Au1xxx OHCI
usb usb1: Manufacturer: Linux 2.6.15-rc4-g2b269cc6 ohci_hcd
usb usb1: SerialNumber: Au1xxx
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb 1-1: new low speed USB device using au1xxx-ohci and address 2
au1xxx-ohci au1xxx-ohci.0: Unlink after no-IRQ?  Controller is probably using the wrong IRQ.

Then rootfs is mounted and I continue to receive the following error messages:

au1xxx-ohci au1xxx-ohci.0: GetStatus roothub.portstatus [0] = 0x00100303 PRSC LSDA PPS PES CCS
Dec 31 19:33:20 off kernel: usb 1-1: new low speed USB device using au1xxx-ohci and address 12
Dec 31 19:33:27 off kernel: usb 1-1: khubd timed out on ep0out len=0/0
usb 1-1: device not accepting address 12, error -145
Dec 31 19:33:35 off kernel: usb 1-1: khubd timed out on ep0out len=0/0
Dec 31 19:33:35 off kernel: usb 1-1: device not accepting address 12, error -145
Dec 31 19:33:35 off kernel: kobject <NULL>: cleaning up

Before digging through much, I want to get your points.

In the meanwhile, in the include/asm-mips/mach-au1x00/au1000.h file there are
two defines named
    #define USBMSRMCFG_RDCOMB 30
    #define USBMSRMCFG_PFEN 31
but these are not showed in the Au1200 databook. What is this? I tried enabling
them one-to-one, both; but didnt get a result...

--
Bora SAHIN

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-06 17:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-06 17:55 DBAu1200 & Alchemy Bora Sahin

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.