Skip to contentSkip to conversation

Atmel AT91 USB Device Controller Driver

U-Boot Fabio Porcedda 2 participants 5 messages Feb 10, 2009 – Feb 16, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi all,

I would like to use an USB Console with an AT91SAM9260 microcontroller, so I've read that the usb device driver and the serial over usb driver should be enabled:

#define CONFIG_USB_DEVICE
#define CONFIG_USB_TTY
#define CFG_CONSOLE_IS_IN_ENV

the support for the Serial over USB is already present (/drivers/serial/usbtty.c),
but i need the USB Device Controller Driver for the Atmel AT91 family, a sort of /drivers/usb/usbdcore_at91.c...

Before starting to write (or to port from linux) the driver on my own, I ask you if someone has already done this kind of work.

Thanks in advance

Signature · 1 line
Fabio Porcedda
#1 lore raw

Hello Fabio,

2009/2/10 Fabio Porcedda <[email protected]>:

Quoted 10 lines

Hi all,

I would like to use an USB Console with an AT91SAM9260 microcontroller, so I've read that the usb device driver and the serial over usb driver should be enabled:

#define CONFIG_USB_DEVICE
#define CONFIG_USB_TTY
#define CFG_CONSOLE_IS_IN_ENV

Quoted 7 lines

the support for the Serial over USB is already present (/drivers/serial/usbtty.c),
but i need the USB Device Controller Driver for the Atmel AT91 family, a sort of /drivers/usb/usbdcore_at91.c...

Before starting to write (or to port from linux) the driver on my own, I ask you if someone has already done this kind of work.

You might take a look at the U-boot-usb git tree, especially the cdc branch. It contains everything to get the at91udc driver to work in U-boot.

Kind Regards,

Remy

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Hello Arjun,

Quoted 3 lines

Right now m using usb console on my development board.I too reffered U-boot-usb git tree.

If you have patches for this, please post them. I am interested.

Kind Regards,

Remy

#4 lore raw
In reply to Remy Bohmer
Quoted 5 lines · Remy Bohmer

Hello Fabio,

2009/2/10 Fabio Porcedda <[email protected]>:

Quoted 2 lines

[...]

Quoted 8 lines
Quoted 5 lines

I would like to use an USB Console with an AT91SAM9260 microcontroller, so I've read that the usb device driver and the serial over usb driver should be enabled:

[...]

You might take a look at the U-boot-usb git tree, especially the cdc branch. It contains everything to get the at91udc driver to work in U-boot.

Thank you very much for the information.
I have previously checked the U-Boot usb git tree, but i missed the cdc branch.

In the cdc branch there is the at91udc driver with the CDC-ethernet driver. But i need to use the Serial over USB, implemented by the drivers/serial/usbtty.c
The usbtty.c use the udc_* api implemented by usbdcore_mpc8x.c and usbdcore_omap1510.c.
If i want to use the usbtty.c driver i need to porting it to the at91udc gadget api implemented by the at91udc driver?

Best Regards.
--
Fabio Porcedda

#5 lore raw

Hello,

Quoted 6 lines
Quoted 3 lines
Quoted 3 lines

I would like to use an USB Console with an AT91SAM9260 microcontroller, so I've read that the usb device driver and the serial over usb driver should be enabled:

In the cdc branch there is the at91udc driver with the CDC-ethernet driver. But i need to use the Serial over USB, implemented by the drivers/serial/usbtty.c

I read that...

Quoted 4 lines

The usbtty.c use the udc_* api implemented by usbdcore_mpc8x.c and usbdcore_omap1510.c.
If i want to use the usbtty.c driver i need to porting it to the at91udc gadget api implemented by the at91udc driver?

Sorry, but the closest thing to what you need I have at this moment, is the at91_udc driver in the CDC branch.
You might need to glue it together to the usbtty driver, or you can look if you could use the Linux serial usb gadget driver and port it to U-boot, because the cdc branch is actually a port of the Linux USB-gadget layer to U-boot.

Kind Regards,

Remy