[U-Boot] [PATCH 0/2] usb:gadget: Linux USB Gadget framework
Lukasz Majewski
l.majewski at samsung.com
Tue Jul 5 14:53:14 CEST 2011
Included commits provide Linux USB gadget support for U-boot.
The USB Gadget infrastructure is running on top of the Samsung's
UDC OTG controller. The code has been tested on the GONI (S5PC110)
reference target.
Files:
drivers/usb/gadget/file_storage.c
drivers/usb/gadget/storage_common.c
Aren't passing the checkpatch.pl script check, however they were
taken from Linux kernel. On purpose this code hasn't been corrected, to
facilitate further code porting from Linux to U-boot (or in opposite
direction)
v1:
- Linux USB Gadget support for Samsung targets (tested on GONI)
- Simple USB Mass Storage (UMS) Gadget implementation to proof the
concept of running USB Gadgets in U-boot.
- The new ums command
It is important to emphase, that now USB Gadget framework can handle one
gadget.
Lukasz Majewski (2):
usb:gadget: Linux USB Gadget framework
usb:gadget: USB Mass Storage Gadget support.
arch/arm/include/asm/arch-s5pc1xx/hs_otg.h | 32 +
arch/arm/include/asm/arch-s5pc1xx/regs-otg.h | 309 +++
board/samsung/goni/goni.c | 139 +
common/Makefile | 1 +
common/cmd_usb_mass_storage.c | 67 +
drivers/usb/gadget/Makefile | 11 +-
drivers/usb/gadget/file_storage.c | 3533 ++++++++++++++++++++++++++
drivers/usb/gadget/s3c_udc_otg.c | 878 +++++++
drivers/usb/gadget/s3c_udc_otg_xfer_dma.c | 1406 ++++++++++
drivers/usb/gadget/storage_common.c | 762 ++++++
include/configs/s5p_goni.h | 13 +
include/usb/lin_gadget_compat.h | 69 +
include/usb/s3c_udc.h | 160 ++
include/usb_mass_storage.h | 36 +
14 files changed, 7413 insertions(+), 3 deletions(-)
create mode 100644 arch/arm/include/asm/arch-s5pc1xx/hs_otg.h
create mode 100644 arch/arm/include/asm/arch-s5pc1xx/regs-otg.h
create mode 100644 common/cmd_usb_mass_storage.c
create mode 100644 drivers/usb/gadget/file_storage.c
create mode 100644 drivers/usb/gadget/s3c_udc_otg.c
create mode 100644 drivers/usb/gadget/s3c_udc_otg_xfer_dma.c
create mode 100644 drivers/usb/gadget/storage_common.c
create mode 100644 include/usb/lin_gadget_compat.h
create mode 100644 include/usb/s3c_udc.h
create mode 100644 include/usb_mass_storage.h
--
1.7.2.3
More information about the U-Boot
mailing list