Dear Ilya Yanok, > Current MUSB driver in U-Boot uses old UDC API while new gagdet > client drivers need new gadget API. Also current MUSB driver has > some significant limitations (like inability to handle tx for > endpoints other than ep0). So I think port of new Linux driver is > desirable. > > This is initial port, performed mostly by putting DM, host and OTG > code under #ifndef __UBOOT__ clauses. My intention was to be as > close as possible to the original to ease of possible resyncs. > Some warnings are suppressed via CFLAGS. There are some style > problems but I'm not touching them for now for the above mentioned > reason. There is obviously some room for optimisation, some > structure fields are unused as well as (probably) some code. > > This is not a replacement for existing MUSB driver (at least for > now), cause host mode is not supported and there are still consumers > of the old interface. > > Host mode, OTG and DMA are not supported. The only ported driver > is for TI AM33xx, but others should be easy to port too. > > Tested it on AM335x EVM and BeagleBone with CDC Ethernet gadget.
I hate to say it ... but given that this will cause duplication of code, I'm somehow inclined to push you to do a complete replacement of the old musb code, remove it and add this. Tom, what do you think? > Ilya Yanok (5): > linux/usb/ch9.h: update with the version from Linux tree > musb-new: port of Linux musb gadget driver > musb-new: dsps backend driver > am33xx: init OTG hardware and new musb gadget driver > am335x_evm: enable musb gadget on port 0 Best regards, Marek Vasut _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot