Hi,
I spent a lot of time trying to get specific OMAP3/Beagleboard hardware modules working (EHCI USB mainly). So far, without luck.
A generic "how-to-integrate-linux-drivers-in-l4linux" example would be very helpful. The procedure is not very clear to me (since I'm really new here).
Based on Vasily's work, I changed some sources of linux drivers, to get musb, otg, and usb-ehci compiled without errors. The bootlog compared to Vasily's one [1], is very different; Drivers seems to load, but they don't recognize the hardware (I think).
For example the following boot messages doesn't appear on mine:
omap_register_i2c_bus bus_id=1 nr_ports=3 omap2_i2c_add_bus omap_register_i2c_bus bus_id=3 nr_ports=3 omap2_i2c_add_bus
or
__l4x_ioremap: Mapping physaddr 48200000 [0x1000 Bytes, 48200000+001000] to 04507000+000000 IRQ: Found an INTC at 0x04507000 (revision 4.0) with 96 interrupts
or
twl4030: PIH (irq 7) chaining IRQs 368..375 twl4030: power (irq 373) chaining IRQs 376..383 print_constraints: VUSB1V5: 1500 mV normal standby print_constraints: VUSB1V8: 1800 mV normal standby print_constraints: VUSB3V1: 3100 mV normal standby twl4030_usb twl4030_usb: HW_CONDITIONS 0x90/144; link 1 twl4030_usb twl4030_usb: Initialized TWL4030 USB module omap_i2c omap_i2c.3: bus 3 rev3.12 at 400 kHz Switching to clocksource kip musb-hdrc: version 6.0, pio, peripheral musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn) musb-hdrc: MHDRC RTL version 1.400 musb-hdrc: setup fifo_mode 4 musb-hdrc: 28/31 max ep, 16384/16384 memory musb-hdrc musb-hdrc: USB Peripheral mode controller at 0450b000 using
and such...
Some of these messages are generated by sources from the mach-omap2 directroy, which AFAIK are not necessary, since changes where not mentioned in Vasily's patch. Do I need to include mach-omap? If yes, how?
Please take a look at my patch (attached below). I did some work, specific for ehci usb Beagleboard support.
What is the correct method for adding those drivers? Any suggestions? Or examples (since Vasily's is not complete for me)...
My configs are in the attachment with the main patch.
Thanks, Giorgio
[1] Vasily's bootlog - http://os.inf.tu-dresden.de/pipermail/l4-hackers/2011/005069.html