Re: It is possible to use CDC composite device on Atmel AT91SAM9260?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 06 February 2009, Johan wrote:
> I am investigating if it is possible to use the CDC composite gadget
> driver available in linux 2.6.27 together with an Atmel AT91SAM9260.

No; the current AT91 chips don't have enough endpoints.  Ignoring ep0:

 CDC function 1 (e.g. Ethernet)
   - ep1, ep2 ... for bulk in/out
   - ep3 ... for interrupt/status
 CDC function 2 (e.g. ACM)
   - ep4, ep5 ... for bulk in/out
   - <MISSING> endpoint for interrupt/status


> As I understand it needs a USB host port with at least 6 endpoints.

Peripheral, not host.

> When I read the datasheet for the processor it states that it haves
> six endpoints in its usb device port, 2 control/bulk/interrupt and  4
> bulk/iso/interrupt. When I read about the at91 udc driver
> USB_GADGET_AT91 in kernel configuration it states "Many Atmel AT91
> processors (such as the AT91RM2000) have a full speed USB Device Port
> with support for five configurable endpoints (plus endpoint zero)."
> 
> I have tried to load the USB composite driver and it fails with error
> -19 ENODEV when it tries to allocates endpoints.
> 
> So I wonder about the endpoint zero, can it be used in a gadget
> driver? Or is it reserved for another purposes?

Reserved; used all over the place, always available,
and hence it doesn't fall into that "6 endpoints" count.

- Dave



> 
> /Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux