Skip to content

Various USB device patches

Bryan O'Donoghue u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14Update USB descriptors to support CDC ACMinclude/usbdescriptors.h+24 -140 replies
2/14Update usbdcore_omap1510.h to unbind it from usbttyinclude/usbdcore_omap1510.h+14 -40 replies
3/14Add mpc8xx specific USB defines/data structuresinclude/usbdcore_mpc8xx.h+210 -00 replies
4/14Introduce cdc_recv_setup event handling callbackinclude/usbdcore.h+3 -00 replies
5/14Add usb_cdc_acm.h for USB rs232 emulationinclude/usb_cdc_acm.h+43 -00 replies
6/14Add USB console support as default on Adder87x boardinclude/configs/Adder.h+17 -01 reply
6/14Add USB console support as default on Adder87x board+0 -01 reply
6/14Add USB console support as default on Adder87x board+0 -00 replies
7/14Chance usbtty.h to be more genericdrivers/usbtty.h+22 -300 replies
8/14Add CDC ACM, flow control and re-send incomplete tx, to Das U-Boot USB console.drivers/usbtty.c+517 -1780 replies
9/14Update omap_1510 stuff to do udc_irq locally and to contain placeholder flow control functionsdrivers/usbdcore_omap1510.c+28 -10 replies
10/14Add support for usbdcore_mpc8xx.drivers/usbdcore_mpc8xx.c+1412 -00 replies
11/14Fixup to usbdcore_ep0.cdrivers/usbdcore_ep0.c+42 -1210 replies
12/14Add usbdcore_mpc8xx to Makefiledrivers/Makefile+1 -10 replies
13/14Add descriptive text to README fileREADME+53 -00 replies
14/14Update CHANGELOG with preceeding changes.CHANGELOG+11 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot-Users] [PATCH 0/14] Various USB device patches

Greetings.

The next few posts contain patches to support a number of USB device modifications in Das U-Boot. As per netiquette I'm breaking the patches up into multiple emails.

The diffs for the next 14 patches come from top of git today 26/05/06

3663e51eea05583c903e07dd90461fd879d27260

The following patches :
- Add USB device support on the mpc8xx.
- Add CDC ACM aka the USB standard serial emulation layer.
- Add flow control to USB devices with a simple set_nak, unset_nak infrastructure.
- Fix some spurious byte ordering assumptions in usbdcore*
- Support Switching between gserial and cdc_acm in the usbtty console.
- Extended the USB device logic to allow for CDC or Vendor specific Setup Requests.

I've included my own setup for include/configs/Adder.h so that people with 8xx boards can use this code easily.

The mpc8xx USB device code works perfectly with Linux 2.6.x using either gserial or cdc_acm. Windows includes a driver called usbser.sys which supports CDC ACM devices and I've used it in the past with other devices, however for some reason with the attached code the Windows host after *successfully* enumerating Das U-Boot, sends just *one* BULK IN token and then never polls again, this I believe is a bug with the Windows driver and is commented on here in my blog.

More about this here http://codehermit.ie/blog/?postid=10

I have had to make some superficial changes to usbdcore_omap1510 which I haven't tested because I don't have omap hardware. I *did* actually investigate getting an omap development board but a) I couldn't find a 1510 and b) the one I could find on the TI website seemed a bit costly for the sake of implementing the two flow control functions, my thinking is that somebody with omap1510 hardware could possibly test this out and give feedback/implement the flow control functions.

Let me know what you think.

Best Regards,
Bryan