Skip to contentSkip to conversation

at91, usb, dfu: add dfu support for at91 boards

U-Boot Heiko Schocher 2 participants 3 messages Nov 5, 2014

lore
Share & tools
lore
#0 lore raw

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)?

Any hints, ideas?

bye,
Heiko

Signature · 2 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
#1 lore raw

Hi Heiko,

Quoted 31 lines · Heiko Schocher

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"

Quoted 2 lines

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

Quoted 4 lines

Any hints, ideas?

bye,
Heiko

Best Regards,
Bo Shen

#2 lore raw

Hello Bo,

Am 05.11.2014 08:40, schrieb Bo Shen:

Quoted 34 lines

Hi Heiko,

Quoted 31 lines · Heiko Schocher

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"

Quoted 8 lines
Quoted 2 lines

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

Thanks for this perfect info!

bye,
Heiko

Signature · 2 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany