public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] at91, usb, dfu: add dfu support for at91 boards
@ 2014-11-05  7:30 Heiko Schocher
  2014-11-05  7:40 ` Bo Shen
  0 siblings, 1 reply; 3+ messages in thread
From: Heiko Schocher @ 2014-11-05  7:30 UTC (permalink / raw)
  To: u-boot

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
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] at91, usb, dfu: add dfu support for at91 boards
  2014-11-05  7:30 [U-Boot] at91, usb, dfu: add dfu support for at91 boards Heiko Schocher
@ 2014-11-05  7:40 ` Bo Shen
  2014-11-05  7:56   ` Heiko Schocher
  0 siblings, 1 reply; 3+ messages in thread
From: Bo Shen @ 2014-11-05  7:40 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] at91, usb, dfu: add dfu support for at91 boards
  2014-11-05  7:40 ` Bo Shen
@ 2014-11-05  7:56   ` Heiko Schocher
  0 siblings, 0 replies; 3+ messages in thread
From: Heiko Schocher @ 2014-11-05  7:56 UTC (permalink / raw)
  To: u-boot

Hello Bo,

Am 05.11.2014 08:40, schrieb Bo Shen:
> 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

Thanks for this perfect info!

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-05  7:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-05  7:30 [U-Boot] at91, usb, dfu: add dfu support for at91 boards Heiko Schocher
2014-11-05  7:40 ` Bo Shen
2014-11-05  7:56   ` Heiko Schocher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox