Hi
I am working on  DM6446 evolution board
I am facing problem with musb with tha latest kernel (2.6.28.7)
musb drivers is registered successfully but it does not detect any client and 
hence mouce, keyboard does not work
I have not made any changes in the musb code (using the default that comes with 
the kernel). and musb_platform_init function from davinci.c looks fine..
isr  that is davinci_interrupt is also fine.

I am using this driver in PIO mode. I have the same problem with DMA mode

In the musb_probe function the base address was obtained using following code

       base = ioremap(iomem->start, iomem->end - iomem->start + 1);
       if (!base) {
               dev_err(dev, "ioremap failed\n");
               return -ENOMEM; }
The base address obtained from this code was not correct and used to give me 
the No device found error
so I have hardcoded this value to 0xc8060000.
This works for me

here is the log of kernel messages..

U-Boot 1.1.3 (Dec  4 2006 - 12:05:38)



U-Boot code: 81080000 -> 81097628  BSS: -> 810A0018

RAM Configuration:

Bank #0: 80000000 256 MB

Flash: 16 MB

In:    serial

Out:   serial

Err:   serial

ARM Clock :- 297MHz

DDR Clock :- 162MHz

Hit any key to stop autoboot:  3     2     1     0

TFTP from server 10.11.47.25; our IP address is 10.11.47.33

Filename 'uImage'.

Load address: 0x80700000

Loading: * T T T T T T 
#################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        ###############################

done

Bytes transferred = 1818587 (1bbfdb hex)

## Booting image at 80700000 ...

  Image Name:   26287-USB

  Image Type:   ARM Linux Kernel Image (gzip compressed)

  Data Size:    1818523 Bytes =  1.7 MB

  Load Address: 80008000

  Entry Point:  80008000

  Verifying Checksum ... OK

  Uncompressing Kernel Image ... OK



Starting kernel ...



Linux version 2.6.28.7 (u...@user-desktop) (gcc version 4.2.0 20070413 
(prerelease) (CodeSourcery Sourcery G++ Lite 2007q1-21)) #59 PREEMPT Tue Mar 10 
14:46:31 IST 2009

CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177

CPU: VIVT data cache, VIVT instruction cache

Machine: DaVinci EVM

Memory policy: ECC disabled, Data cache writeback

DaVinci DM6446 variant 0x0

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 30480

Kernel command line: console=ttyS0,115200n8 rw ip=dhcp root=/dev/nfs 
nfsroot=10.11.47.25:/scratchbox/users/user/targets/gtk-webkit,nolock mem=120M

PID hash table entries: 512 (order: 9, 2048 bytes)

Console: colour dummy device 80x30

Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

Memory: 120MB = 120MB total

Memory: 117760KB available (3484K code, 244K data, 136K init)

SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

Calibrating delay loop... 148.27 BogoMIPS (lpj=741376)

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

net_namespace: 636 bytes

NET: Registered protocol family 16

**************davinci_gpio_irq_setup**********

DaVinci: 71 gpio irqs

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

pcf857x 1-0038: gpios 71..78 on a pcf8574

pcf857x 1-0039: gpios 79..86 on a pcf8574

pcf857x 1-003a: gpios 87..94 on a pcf8574

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 4096 (order: 3, 32768 bytes)

TCP bind hash table entries: 4096 (order: 2, 16384 bytes)

TCP: Hash tables configured (established 4096 bind 4096)

TCP reno registered

NET: Registered protocol family 1

JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

msgmni has been set to 230

io scheduler noop registered

io scheduler anticipatory registered (default)

Setting Up Clocks for DM420 OSD

Console: switching to colour frame buffer device 90x30

fb0: dm_osd0_fb frame buffer device

fb1: dm_vid0_fb frame buffer device

fb2: dm_osd1_fb frame buffer device

fb3: dm_vid1_fb frame buffer device

Serial: 8250/16550 driver2 ports, IRQ sharing disabled

serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A

console [ttyS0] enabled

brd: module loaded

**********EMAC Driver registered***********

**EMAC Driver clock enabled***********

**EMAC Driver setting emac_bus_frequency***********

**EMAC Driver --> alloc_etherdev successful

**EMAC Driver --> emac_p_detect_manual_cfg complete

**EMAC Driver --> netif_napi_add

TI DaVinci EMAC: MAC address is 08:00:28:32:06:08

**EMAC Driver --> register_netdev

TI DaVinci EMAC Linux version updated 4.0

TI DaVinci EMAC: Installed 0 instances.

console [netcon0] enabled

netconsole: network logging started

Linux video capture interface: v2.00

Uniform Multi-Platform E-IDE driver

ide-gd driver 1.18

   ide0: MMIO-DMA

hda: TOSHIBA MK4032GAX, ATA DISK drive

hda: UDMA/66 mode selected

ide0 at 0xfec661f0-0xfec661f7,0xfec663f6 on irq 22

hda: max request size: 512KiB

hda: 78140160 sectors (40007 MB), CHS=16383/255/63

hda: cache flushes supported

 hda: hda1 hda2

Driver 'sd' needs updating - please use bus_type methods

usbmon: debugfs is not available

mice: PS/2 mouse device common for all mice

i2c /dev entries driver

Advanced Linux Sound Architecture Driver Version 1.0.18rc3.

ALSA device list:

 No soundcards found.

TCP cubic registered

NET: Registered protocol family 17

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

Started the network queue for eth0.

Sending DHCP requests ......, OK

IP-Config: Got DHCP answer from 0.0.0.0, my address is 10.11.47.34

IP-Config: Complete:

    device=eth0, addr=10.11.47.34, mask=255.255.252.0, gw=10.11.44.1,

    host=10.11.47.34, domain= , nis-domain=(none),

    bootserver=0.0.0.0, rootserver=10.11.47.25, rootpath=

Looking up port of RPC 100003/2 on 10.11.47.25

Looking up port of RPC 100005/1 on 10.11.47.25

VFS: Mounted root (nfs filesystem).

Freeing init memory: 136K


init started:  BusyBox v1.1.2 (2009.01.01-07:11+0000) multi-call binary

Mounting proc filesystem

Mounting sysfs

creating pseudo terminal dir

Starting telnetd

Checking for XServer support

Starting XServer





BusyBox v1.1.2 (2009.01.01-07:11+0000) Built-in shell (ash)

Enter 'help' for a list of built-in commands.




/ $ insmod /lib/modules/2.6.28.7/kernel/drivers/usb/musb/musb_hdrc.ko  
[Jmusb_hdrc: version 6.0, pio, host, debug=0



*************musb->ctrl_base : c8060000 *************

*************tibase : c8060000 *************

*************in musb_platform_init*************

*************is_host_enabled*************

*************davinci_source_power()*************

*************reset the controller --> musb_writel()*************

*************start the on-chip PHY and its PLL --> phy_on();()*************

DaVinci OTG revision 1bff5f77 phy 1d0 control 01

*************Setting musb->isr = davinci_interrupt*************

musb_hdrc: USB Host mode controller at c8060000 using PIO, IRQ 12

musb_hdrc musb_hdrc: MUSB HDRC host driver

musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

****************Ctrl base: c8060000<7>drivers/usb/core/inode.c: creating file 
'001'

usb usb1: New USB device found, idVendor=1d6b, idProduct=0002

usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

usb usb1: Product: MUSB HDRC host driver

usb usb1: Manufacturer: Linux 2.6.28.7 musb-hcd

usb usb1: SerialNumber: musb_hdrc


please help me on this..

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to