Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 914a3f3

Browse files
Haavard Skinnemoengregkh
Haavard Skinnemoen
authored andcommitted
USB: add atmel_usba_udc driver
This is a driver for the Atmel USBA UDC which can be found integrated on AT32AP700x AVR32 processors. For hardware documentation, please see the AT32AP7000 data sheet: http://www.atmel.com/dyn/resources/prod_documents/doc32003.pdf This is a dual speed controller (connects at high or full speed). The driver supports up to 7 control, bulk, interrupt and isochronous endpoints with some constraints. Bulk, interrupt and isochronous transfers are driven by DMA. Signed-off-by: Haavard Skinnemoen <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c604e85 commit 914a3f3

File tree

5 files changed

+2421
-1
lines changed

5 files changed

+2421
-1
lines changed

Diff for: MAINTAINERS

+7
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,13 @@ P: Haavard Skinnemoen
677677
678678
S: Supported
679679

680+
ATMEL USBA UDC DRIVER
681+
P: Haavard Skinnemoen
682+
683+
684+
W: http://avr32linux.org/twiki/bin/view/Main/AtmelUsbDeviceDriver
685+
S: Supported
686+
680687
ATMEL WIRELESS DRIVER
681688
P: Simon Kelley
682689

Diff for: drivers/usb/gadget/Kconfig

+25-1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ config USB_GADGET_DEBUG_FILES
6767
driver on a new board. Enable these files by choosing "Y"
6868
here. If in doubt, or to conserve kernel memory, say "N".
6969

70+
config USB_GADGET_DEBUG_FS
71+
boolean "Debugging information files in debugfs"
72+
depends on USB_GADGET && DEBUG_FS
73+
help
74+
Some of the drivers in the "gadget" framework can expose
75+
debugging information in files under /sys/kernel/debug/.
76+
The information in these files may help when you're
77+
troubleshooting or bringing up a driver on a new board.
78+
Enable these files by choosing "Y" here. If in doubt, or
79+
to conserve kernel memory, say "N".
80+
7081
config USB_GADGET_SELECTED
7182
boolean
7283

@@ -103,6 +114,20 @@ config USB_AMD5536UDC
103114
default USB_GADGET
104115
select USB_GADGET_SELECTED
105116

117+
config USB_GADGET_ATMEL_USBA
118+
boolean "Atmel USBA"
119+
select USB_GADGET_DUALSPEED
120+
depends on AVR32
121+
help
122+
USBA is the integrated high-speed USB Device controller on
123+
the AT32AP700x processors from Atmel.
124+
125+
config USB_ATMEL_USBA
126+
tristate
127+
depends on USB_GADGET_ATMEL_USBA
128+
default USB_GADGET
129+
select USB_GADGET_SELECTED
130+
106131
config USB_GADGET_FSL_USB2
107132
boolean "Freescale Highspeed USB DR Peripheral Controller"
108133
depends on MPC834x || PPC_MPC831x
@@ -228,7 +253,6 @@ config USB_LH7A40X
228253
default USB_GADGET
229254
select USB_GADGET_SELECTED
230255

231-
232256
config USB_GADGET_OMAP
233257
boolean "OMAP USB Device Controller"
234258
depends on ARCH_OMAP

Diff for: drivers/usb/gadget/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ obj-$(CONFIG_USB_OMAP) += omap_udc.o
1414
obj-$(CONFIG_USB_LH7A40X) += lh7a40x_udc.o
1515
obj-$(CONFIG_USB_S3C2410) += s3c2410_udc.o
1616
obj-$(CONFIG_USB_AT91) += at91_udc.o
17+
obj-$(CONFIG_USB_ATMEL_USBA) += atmel_usba_udc.o
1718
obj-$(CONFIG_USB_FSL_USB2) += fsl_usb2_udc.o
1819
obj-$(CONFIG_USB_M66592) += m66592-udc.o
1920

0 commit comments

Comments
 (0)