Skip to content

Commit

Permalink
usb: gadget: add Aspeed generic udc driver
Browse files Browse the repository at this point in the history
Add Aspeed generic udc driver.
Separate Aspeed udc driver into udc generic device driver
and usbtty device driver.

Signed-off-by: Neal Liu <[email protected]>
Change-Id: I05766208d05c477359936fe90381e91f86d03e0d
  • Loading branch information
Neal-liu committed Jul 20, 2022
1 parent f586eef commit 70552e3
Show file tree
Hide file tree
Showing 5 changed files with 1,788 additions and 447 deletions.
13 changes: 11 additions & 2 deletions drivers/usb/gadget/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,21 @@ menuconfig USB_GADGET

if USB_GADGET

config ASPEED_UDC
bool "Aspeed USB Device support"
config ASPEED_UDC_USBTTY
bool "Aspeed USBTTY Device support"
help
Support Aspeed USB device on port A. You can emulate USB device as
CDC-ACM (usbtty) for example.

config ASPEED_UDC_GENERIC
bool "Aspeed USB Device support on gadget"
depends on !ASPEED_UDC_USBTTY
select USB_GADGET_DUALSPEED
help
Support Aspeed USB device gadget. It's a different architecture with
usbtty.


config USB_GADGET_MANUFACTURER
string "Vendor name of the USB device"
default "Allwinner Technology" if ARCH_SUNXI
Expand Down
3 changes: 2 additions & 1 deletion drivers/usb/gadget/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ obj-$(CONFIG_USB_GADGET_DWC2_OTG) += dwc2_udc_otg.o
obj-$(CONFIG_USB_GADGET_DWC2_OTG_PHY) += dwc2_udc_otg_phy.o
obj-$(CONFIG_USB_GADGET_FOTG210) += fotg210.o
obj-$(CONFIG_CI_UDC) += ci_udc.o
obj-$(CONFIG_ASPEED_UDC_GENERIC) += aspeed_udc.o
ifndef CONFIG_SPL_BUILD
obj-$(CONFIG_USB_GADGET_DOWNLOAD) += g_dnl.o
obj-$(CONFIG_USB_FUNCTION_THOR) += f_thor.o
Expand All @@ -43,6 +44,6 @@ obj-y += core.o
obj-y += ep0.o
obj-$(CONFIG_DW_UDC) += designware_udc.o
obj-$(CONFIG_CPU_PXA27X) += pxa27x_udc.o
obj-$(CONFIG_ASPEED_UDC) += aspeed_udc.o
obj-$(CONFIG_ASPEED_UDC_USBTTY) += aspeed_usbtty.o
endif
endif
Loading

0 comments on commit 70552e3

Please sign in to comment.