All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/4] DFU initial implementation
@ 2011-11-09  9:52 Andrzej Pietrasiewicz
  2011-11-09  9:52 ` [U-Boot] [PATCH 1/4] dfu: protocol " Andrzej Pietrasiewicz
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Andrzej Pietrasiewicz @ 2011-11-09  9:52 UTC (permalink / raw)
  To: u-boot

Dear All,

This is a quick-and-dirty proof-of-concept for splitting the dfu into
core dfu gadget, generic parts of dfu backend, dfu command and
target-specific implementation for Goni.

This patch definitely needs some coding style cleanups.

Also, the place for storing generic parts of dfu was chosen somewhat
arbitrary and can be changed if a better alternative is found.

The original idea of the flash_entity was to equip it with a void *
to a context structure, which is not interpreted by the dfu gadget
but passed to the dfu backend and understood there. I am still
hesitating if flash_entity_ctx is generic enough to be generalized,
as of now I assumed it is. If it wasn't then less common code could
be extracted.

@Stefan: you need the first 3 patches from this series, and then
you need to implement your own target-specific parts. In fact,
all is expected from the target, is to provide board_dfu_init/cleanup
pair and call register_flash_entities.

Andrzej Pietrasiewicz (4):
  dfu: protocol initial implementation
  dfu: generic backend parts
  dfu: command implementation
  dfu: target-specific implementation for Goni

 Makefile                    |    1 +
 board/samsung/goni/Makefile |    2 +
 board/samsung/goni/flash.c  |  341 ++++++++++++++++
 board/samsung/goni/flash.h  |   28 ++
 board/samsung/goni/goni.c   |   17 +
 common/Makefile             |    1 +
 common/cmd_dfu.c            |   51 +++
 drivers/usb/dfu/Makefile    |   33 ++
 drivers/usb/dfu/dfu.c       |  109 +++++
 drivers/usb/dfu/fat.c       |   77 ++++
 drivers/usb/dfu/mmc.c       |  124 ++++++
 drivers/usb/gadget/Makefile |    1 +
 drivers/usb/gadget/dfu.c    |  920 +++++++++++++++++++++++++++++++++++++++++++
 drivers/usb/gadget/dfu.h    |  171 ++++++++
 include/configs/s5p_goni.h  |    4 +
 include/dfu.h               |   28 ++
 include/dfu_backend.h       |   71 ++++
 include/flash_entity.h      |   39 ++
 include/mbr.h               |   49 +++
 19 files changed, 2067 insertions(+), 0 deletions(-)
 create mode 100644 board/samsung/goni/flash.c
 create mode 100644 board/samsung/goni/flash.h
 create mode 100644 common/cmd_dfu.c
 create mode 100644 drivers/usb/dfu/Makefile
 create mode 100644 drivers/usb/dfu/dfu.c
 create mode 100644 drivers/usb/dfu/fat.c
 create mode 100644 drivers/usb/dfu/mmc.c
 create mode 100644 drivers/usb/gadget/dfu.c
 create mode 100644 drivers/usb/gadget/dfu.h
 create mode 100644 include/dfu.h
 create mode 100644 include/dfu_backend.h
 create mode 100644 include/flash_entity.h
 create mode 100644 include/mbr.h

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

end of thread, other threads:[~2012-04-24 19:40 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-09  9:52 [U-Boot] [PATCH v2 0/4] DFU initial implementation Andrzej Pietrasiewicz
2011-11-09  9:52 ` [U-Boot] [PATCH 1/4] dfu: protocol " Andrzej Pietrasiewicz
2011-11-09  9:52 ` [U-Boot] [PATCH 2/4] dfu: generic backend parts Andrzej Pietrasiewicz
2012-01-08  5:13   ` Mike Frysinger
2012-01-09  7:50     ` Andrzej Pietrasiewicz
2012-01-09 17:26       ` Mike Frysinger
2012-03-18 18:49       ` Wolfgang Denk
2012-04-03 14:56       ` Stefan Schmidt
2012-04-03 15:04         ` [U-Boot] [REFERENCE DON'T APPLY 1/3] dfu: Add default value for bwPollTimeout Stefan Schmidt
2012-04-03 15:04           ` [U-Boot] [REFERENCE DON'T APPLY 2/3] usb/gadget: Add Device Firmware Upgrade (DFU) support Stefan Schmidt
2012-04-03 15:04           ` [U-Boot] [REFERENCE DON'T APPLY 3/3] beagle: Enable DFU support with stub functions for now Stefan Schmidt
2012-04-06  0:18           ` [U-Boot] [REFERENCE DON'T APPLY 1/3] dfu: Add default value for bwPollTimeout Marek Vasut
2012-04-06  3:35             ` Mike Frysinger
2012-04-06 13:06               ` Marek Vasut
2012-04-21 14:30                 ` Stefan Schmidt
2012-04-21 15:38                   ` Marek Vasut
2012-04-23  7:27                     ` Lukasz Majewski
2012-04-23  9:38                       ` Marek Vasut
2012-04-24 19:40                       ` Stefan Schmidt
2012-04-21 14:28             ` Stefan Schmidt
2011-11-09  9:52 ` [U-Boot] [PATCH 3/4] dfu: command implementation Andrzej Pietrasiewicz
2011-11-09  9:52 ` [U-Boot] [PATCH 4/4] dfu: target-specific implementation for Goni Andrzej Pietrasiewicz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.