diff options
author | Bo Shen <voice.shen@atmel.com> | 2013-09-11 18:24:49 +0800 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-09-24 17:51:35 +0200 |
commit | 9e40493fd8554a157f2458aa2f472d5d30e3558b (patch) | |
tree | 07a3f466077879e1579d2b3be4888a3bb3cfe295 /include/linux | |
parent | 898d686eead1df09970757dfd469b659d5a208be (diff) | |
download | u-boot-imx-9e40493fd8554a157f2458aa2f472d5d30e3558b.zip u-boot-imx-9e40493fd8554a157f2458aa2f472d5d30e3558b.tar.gz u-boot-imx-9e40493fd8554a157f2458aa2f472d5d30e3558b.tar.bz2 |
USB: gadget: add atmel usba udc driver
Add atmel usba udc driver support, porting from Linux kernel
The original code in Linux Kernel information is as following
commit e01ee9f509a927158f670408b41127d4166db1c7
Author: Jingoo Han <jg1.han@samsung.com>
Date: Tue Jul 30 17:00:51 2013 +0900
usb: gadget: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/usb/atmel_usba_udc.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/usb/atmel_usba_udc.h b/include/linux/usb/atmel_usba_udc.h new file mode 100644 index 0000000..be29ef0 --- /dev/null +++ b/include/linux/usb/atmel_usba_udc.h @@ -0,0 +1,26 @@ +/* + * Platform data definitions for Atmel USBA gadget driver + * [Original from Linux kernel: include/linux/usb/atmel_usba_udc.h] + * + * SPDX-License-Identifier: GPL-2.0+ + */ +#ifndef __LINUX_USB_USBA_H__ +#define __LINUX_USB_USBA_H__ + +struct usba_ep_data { + char *name; + int index; + int fifo_size; + int nr_banks; + int can_dma; + int can_isoc; +}; + +struct usba_platform_data { + int num_ep; + struct usba_ep_data *ep; +}; + +extern int usba_udc_probe(struct usba_platform_data *pdata); + +#endif /* __LINUX_USB_USBA_H */ |