blob: 37c4f218493335e16f6db9139d2eea71c9f6a3ed [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Bo Shen70a67fd2013-09-11 18:24:49 +08002/*
3 * Platform data definitions for Atmel USBA gadget driver
4 * [Original from Linux kernel: include/linux/usb/atmel_usba_udc.h]
Bo Shen70a67fd2013-09-11 18:24:49 +08005 */
6#ifndef __LINUX_USB_USBA_H__
7#define __LINUX_USB_USBA_H__
8
9struct usba_ep_data {
10 char *name;
11 int index;
12 int fifo_size;
13 int nr_banks;
14 int can_dma;
15 int can_isoc;
16};
17
18struct usba_platform_data {
19 int num_ep;
20 struct usba_ep_data *ep;
21};
22
Zixun LI7ea23c42024-07-25 17:32:01 +020023#if !CONFIG_IS_ENABLED(DM_USB_GADGET)
Bo Shen70a67fd2013-09-11 18:24:49 +080024extern int usba_udc_probe(struct usba_platform_data *pdata);
Zixun LI7ea23c42024-07-25 17:32:01 +020025#endif
Bo Shen70a67fd2013-09-11 18:24:49 +080026
27#endif /* __LINUX_USB_USBA_H */