Skip to content

Commit 055276c

Browse files
Neal-liugregkh
authored andcommitted
usb: gadget: add Aspeed ast2600 udc driver
Aspeed udc is compliant with USB2.0, supports USB High Speed and Full Speed, backward compatible with USB1.1. Supports independent DMA channel for each generic endpoint. Supports 32/256 stages descriptor mode for all generic endpoints. This driver supports full functionality including single/multiple stages descriptor mode, and exposes 1 UDC gadget driver. Signed-off-by: Neal Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e146caf commit 055276c

File tree

4 files changed

+1617
-0
lines changed

4 files changed

+1617
-0
lines changed

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3136,6 +3136,13 @@ S: Maintained
31363136
F: Documentation/devicetree/bindings/media/aspeed-video.txt
31373137
F: drivers/media/platform/aspeed/
31383138

3139+
ASPEED USB UDC DRIVER
3140+
M: Neal Liu <[email protected]>
3141+
L: [email protected] (moderated for non-subscribers)
3142+
S: Maintained
3143+
F: Documentation/devicetree/bindings/usb/aspeed,udc.yaml
3144+
F: drivers/usb/gadget/udc/aspeed_udc.c
3145+
31393146
ASUS NOTEBOOKS AND EEEPC ACPI/WMI EXTRAS DRIVERS
31403147
M: Corentin Chary <[email protected]>
31413148

drivers/usb/gadget/udc/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,19 @@ config USB_TEGRA_XUDC
463463
dynamically linked module called "tegra_xudc" and force all
464464
gadget drivers to also be dynamically linked.
465465

466+
config USB_ASPEED_UDC
467+
tristate "Aspeed UDC driver support"
468+
depends on ARCH_ASPEED || COMPILE_TEST
469+
depends on USB_LIBCOMPOSITE
470+
help
471+
Enables Aspeed USB2.0 Device Controller driver for AST260x
472+
family SoCs. The controller supports 1 control endpoint and
473+
4 programmable endpoints.
474+
475+
Say "y" to link the driver statically, or "m" to build a
476+
dynamically linked module called "aspeed_udc" and force all
477+
gadget drivers to also be dynamically linked.
478+
466479
source "drivers/usb/gadget/udc/aspeed-vhub/Kconfig"
467480

468481
#

drivers/usb/gadget/udc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ obj-$(CONFIG_USB_GR_UDC) += gr_udc.o
4040
obj-$(CONFIG_USB_GADGET_XILINX) += udc-xilinx.o
4141
obj-$(CONFIG_USB_SNP_UDC_PLAT) += snps_udc_plat.o
4242
obj-$(CONFIG_USB_ASPEED_VHUB) += aspeed-vhub/
43+
obj-$(CONFIG_USB_ASPEED_UDC) += aspeed_udc.o
4344
obj-$(CONFIG_USB_BDC_UDC) += bdc/
4445
obj-$(CONFIG_USB_MAX3420_UDC) += max3420_udc.o

0 commit comments

Comments
 (0)