From: Philipp Tomsich Date: Mon, 11 Sep 2017 22:27:09 +0200 Subject: [U-Boot] [U-Boot,V9,1/4] usb: rockchip: add the rockusb gadget In-Reply-To: <1503906360-13043-2-git-send-email-eddie.cai.linux@gmail.com> References: <1503906360-13043-2-git-send-email-eddie.cai.linux@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 > Reviewed-by: Simon Glass > > Changes in v9: > -fix compile error > > Changes in v8: > -none > > Changes in v7: > -none > > Changes in v6: > -move some data to f_rockusb structure > > 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 > --- > arch/arm/include/asm/arch-rockchip/f_rockusb.h | 132 +++++ > drivers/usb/gadget/Kconfig | 8 + > drivers/usb/gadget/Makefile | 1 + > drivers/usb/gadget/f_rockusb.c | 691 +++++++++++++++++++++++++ > 4 files changed, 832 insertions(+) > create mode 100644 arch/arm/include/asm/arch-rockchip/f_rockusb.h > create mode 100644 drivers/usb/gadget/f_rockusb.c > Acked-by: Philipp Tomsich