[U-Boot] at91, usb, dfu: add dfu support for at91 boards

Bo Shen voice.shen at atmel.com
Wed Nov 5 08:40:11 CET 2014


Hi Heiko,

On 11/05/2014 03:30 PM, Heiko Schocher wrote:
> Hello all,
>
> I have a request for implementing DFU support an at91 based boards
> (in this case for the siemens at91 boards corvus, taurus both in
> mainline).
>
> I found in include/configs/sama5d3xek.h
>
> /* USB */
> #define CONFIG_CMD_USB
>
> #ifdef CONFIG_CMD_USB
> #define CONFIG_USB_ATMEL
> #define CONFIG_USB_ATMEL_CLK_SEL_UPLL
> #define CONFIG_USB_OHCI_NEW
> #define CONFIG_SYS_USB_OHCI_CPU_INIT
> #define CONFIG_SYS_USB_OHCI_REGS_BASE           ATMEL_BASE_OHCI
> #define CONFIG_SYS_USB_OHCI_SLOT_NAME           "sama5d3"
> #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS      3
> #define CONFIG_DOS_PARTITION
> #define CONFIG_USB_STORAGE
> #endif
>
> /* USB device */
> #define CONFIG_USB_GADGET
> #define CONFIG_USB_GADGET_DUALSPEED
> #define CONFIG_USB_GADGET_ATMEL_USBA
> #define CONFIG_USB_ETHER
> #define CONFIG_USB_ETH_RNDIS
> #define CONFIG_USBNET_MANUFACTURER      "Atmel SAMA5D3xEK"
>
> So, if I am correct, that USB gadget support should work on at91 (and
> so DFU support should not be to hard to implement)?

The usb gadget driver for AT91 series, now it just support UDPHS gadget 
while not UDP gadget.
So, for the corvus board, it use at91sam9m10g45 which has UDPHS. So it 
will be easily. For the taurus board, it uses at91sam9260, it needs more 
work to do, need porting the gadget driver from Linux.

For DFU supports on sama5d3xek board.
https://github.com/linux4sam/u-boot-at91/commit/5030c6a0b4199243d54d87d01f76e8d6a2c057f3

> Any hints, ideas?
>
> bye,
> Heiko

Best Regards,
Bo Shen


More information about the U-Boot mailing list