U-Boot OMAP3 (EVM) MUSB patches

TI sent some U-Boot OMAP3 patches to U-Boot mailing list:

http://lists.denx.de/pipermail/u-boot/2009-January/045304.html

As mentioned there, they are for EVM, but should easily (?) be adaptable to other OMAP3 boards, too. (by copying stuff from patch 08_musb.txt in attachment to beagle config?)

I put the 8 patches mentioned in that mail into a quilt patch series (see attachment), maybe it helps you to adapt them for Beagle :wink:

Patch series is against Steve's git [1].

I got one reject [2] I fixed manually. There is no

COBJS-$(CONFIG_USB_EHCI_FSL) += usb_ehci_fsl.o

in Steve's git (which should be in sync with mainline). Maybe it comes from some U-Boot USB branch merge (?).

So patch series in attachment compiles fine with

omap3_evm_config
make

but I don't know if it works :wink:

Regards

Dirk

[1] http://www.sakoman.net/cgi-bin/gitweb.cgi?p=u-boot-omap3.git;a=shortlog;h=refs/heads/omap3-dev

[2] Reject:

-- cut --
> cat drivers/usb/Makefile.rej

*************** COBJS-$(CONFIG_USB_ISP116X_HCD) += isp116x-hcd.o
*** 35,40 ****
   COBJS-$(CONFIG_USB_R8A66597_HCD) += r8a66597-hcd.o
   COBJS-$(CONFIG_USB_SL811HS) += sl811_usb.o
   COBJS-$(CONFIG_USB_EHCI_FSL) += usb_ehci_fsl.o

   # device
   ifdef CONFIG_USB_DEVICE
--- 35,41 ----
   COBJS-$(CONFIG_USB_R8A66597_HCD) += r8a66597-hcd.o
   COBJS-$(CONFIG_USB_SL811HS) += sl811_usb.o
   COBJS-$(CONFIG_USB_EHCI_FSL) += usb_ehci_fsl.o
+ COBJS-$(CONFIG_MUSB_HCD) += musb_hcd.o musb_core.o

   # device
   ifdef CONFIG_USB_DEVICE
-- cut --

u-boot-omap3-musb.tar.bz2 (12.5 KB)

I created a branch (omap3-dev-usb) for those who might want to track this:

http://www.sakoman.net/cgi-bin/gitweb.cgi?p=u-boot-omap3.git;a=shortlog;h=refs/heads/omap3-dev-usb

Steve

Can we apply the U-boot musb gadget support patch[1] from
http://elinux.org/U-boot_musb_gadget_support to the u-boot-dev-usb
branch? It would be an improvement over what we have right now
(nothing). We still need to make the TWL4030 initialization code
common between host and gadget modes, but that would be easier to do
once all the patches are in one place.

Thanks,

-Atin

[1] http://elinux.org/upload/f/fb/Musb-gadget-beagle.patch

I meant the omap3-dev-usb branch of course.

-Atin

Pushed this morning:

http://www.sakoman.net/cgi-bin/gitweb.cgi?p=u-boot-omap3.git;a=shortlog;h=refs/heads/omap3-dev-usb

Steve