From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 1 Dec 2017 10:09:06 +0100 Subject: [U-Boot] [PATCH V11 1/4] usb: rockchip: add the rockusb gadget In-Reply-To: <1512112831-26759-2-git-send-email-eddie.cai.linux@gmail.com> References: <1512112831-26759-1-git-send-email-eddie.cai.linux@gmail.com> <1512112831-26759-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 On 12/01/2017 08:20 AM, Eddie Cai 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 > Reviewed-by: Simon Glass > --- > Changes in v11: > -fix checkpatch error > -add maintainer > > Changes in v10: > -fix build error > > 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 > > --- > MAINTAINERS | 5 + > 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 | 697 +++++++++++++++++++++++++ > 5 files changed, 843 insertions(+) > create mode 100644 arch/arm/include/asm/arch-rockchip/f_rockusb.h > create mode 100644 drivers/usb/gadget/f_rockusb.c > > diff --git a/MAINTAINERS b/MAINTAINERS > index 2a20b94..e92a15d 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -452,6 +452,11 @@ S: Maintained > T: git git://git.denx.de/u-boot-usb.git > F: drivers/usb/ > > +ROCKUSB > +M: Eddie Cai > +S: Maintained > +F: drivers/usb/gadget/f_rockusb.c > + > VIDEO > M: Anatolij Gustschin > S: Maintained > diff --git a/arch/arm/include/asm/arch-rockchip/f_rockusb.h b/arch/arm/include/asm/arch-rockchip/f_rockusb.h > new file mode 100644 > index 0000000..c207a78 > --- /dev/null > +++ b/arch/arm/include/asm/arch-rockchip/f_rockusb.h > @@ -0,0 +1,132 @@ > +/* > + * (C) Copyright 2017 > + * > + * Eddie Cai > + * > + * SPDX-License-Identifier: GPL-2.0+ > + */ > + > +#ifndef _F_ROCKUSB_H_ > +#define _F_ROCKUSB_H_ > +#include > + > +#define ROCKUSB_VERSION "0.1" > + > +#define ROCKUSB_INTERFACE_CLASS 0xff > +#define ROCKUSB_INTERFACE_SUB_CLASS 0x06 > +#define ROCKUSB_INTERFACE_PROTOCOL 0x05 > + > +#define RX_ENDPOINT_MAXIMUM_PACKET_SIZE_2_0 (0x0200) > +#define RX_ENDPOINT_MAXIMUM_PACKET_SIZE_1_1 (0x0040) > +#define TX_ENDPOINT_MAXIMUM_PACKET_SIZE (0x0040) My V10 comments were not addressed, NAK. Also, I'm not sure why you have 20 people on To: list , Cc would be preferred and trimming the list down to only relevant people would also be preferred. -- Best regards, Marek Vasut