
On 7 May 2017 at 20:38, Eddie Cai eddie.cai.linux@gmail.com wrote:
this patch implement rockusb protocol on the device side. this is based on USB download gadget infrastructure. the rockusb function implements the rd, wl, rid commands. it can work with rkdeveloptool
Signed-off-by: Eddie Cai eddie.cai.linux@gmail.com
Changes in v5: -fix build error when build non-rockchip board -fix checkpatch error
Changes in v4: -use enum instead of macro define -move some structure define and macro to f_rockusb.h -add some function comment as Simon required -address other comment from Simon -fix build error as Lukasz point out
Changes in v3: -split the macro to f_rockusb.h -use ALLOC_CACHE_ALIGN_BUFFER to define cache safe struct inside the function. -fix checkpatch error
arch/arm/include/asm/arch-rockchip/f_rockusb.h | 123 +++++ drivers/usb/gadget/Kconfig | 8 + drivers/usb/gadget/Makefile | 1 + drivers/usb/gadget/f_rockusb.c | 680 +++++++++++++++++++++++++ 4 files changed, 812 insertions(+) create mode 100644 arch/arm/include/asm/arch-rockchip/f_rockusb.h create mode 100644 drivers/usb/gadget/f_rockusb.c
Reviewed-by: Simon Glass sjg@chromium.org