
This patch series provide support for TIZEN's THOR download protocol.
Dedicated program for flashing TIZEN developer devices (TRATS, TRATS2) is called lthor (or thor for Windows) and can be found at:
git clone git://review.tizen.org/tools/lthor
or for git web:
https://review.tizen.org/git/?p=tools/lthor.git;a=summary
Presented composite USB function acts as a front end to perform correct USB communication with HOST PC. To store the received data on the target, the DFU (Device Firmware Update) code for flashing has been reused.
This means, that the "dfu_alt_info" environment variable is used to provide information where a received file is stored.
This also means that dfu and thor can co-exists together. Thor protocol and its implementation has one advantage - it is much faster than DFU for large files transfers (especially rootfs images).
It applies on: u-boot-denx-usb/next SHA1: 6928d26b84a5aa4a44706362234ab435bb15a6fb
Test HW: Exynos4210 (TRATS)
Lukasz Majewski (10): usb:udc:s3c: Reduce dcache invalidate range for UDC receive buffer dfu:core: Find DFU alt setting number by passing its name dfu:core: Export dfu_{get|free}_buf functions usb:g_dnl: Replace static usb_configuration structure with dynamically allocated one usb:g_dnl: Add name parameter to g_dnl_bind_fixup function usb:g_dnl:f_thor: USB download function to support TIZEN's THOR protocol usb:g_dnl: Support for TIZEN's THOR function in generic download code cmd:thor: Support for TIZEN's download command (thordown) samsung:common:thor: Define common Samsung code to handle THOR usb descriptor setup trats: Update TRATS config to support TIZEN download
board/samsung/common/Makefile | 1 + board/samsung/common/thor.c | 21 + board/siemens/common/factoryset.c | 2 +- common/Makefile | 1 + common/cmd_thordown.c | 72 +++ drivers/dfu/dfu.c | 16 +- drivers/usb/gadget/Makefile | 1 + drivers/usb/gadget/f_thor.c | 1003 +++++++++++++++++++++++++++++ drivers/usb/gadget/f_thor.h | 124 ++++ drivers/usb/gadget/g_dnl.c | 38 +- drivers/usb/gadget/s3c_udc_otg_xfer_dma.c | 3 +- include/configs/trats.h | 14 +- include/dfu.h | 3 + include/g_dnl.h | 2 +- include/thor.h | 27 + 15 files changed, 1309 insertions(+), 19 deletions(-) create mode 100644 board/samsung/common/thor.c create mode 100644 common/cmd_thordown.c create mode 100644 drivers/usb/gadget/f_thor.c create mode 100644 drivers/usb/gadget/f_thor.h create mode 100644 include/thor.h