]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/linux/usb/at91_udc.h
usb: gadget: at91_udc: add at91_udc into U-Boot
[karo-tx-uboot.git] / include / linux / usb / at91_udc.h
1 /*
2  * Platform data definitions for Atmel USBA gadget driver
3  * pieces copied from linux:include/linux/platform_data/atmel.h
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7 #ifndef __LINUX_USB_AT91_UDC_H__
8 #define __LINUX_USB_AT91_UDC_H__
9
10 struct at91_udc_data {
11         int     vbus_pin;               /* high == host powering us */
12         u8      vbus_active_low;        /* vbus polarity */
13         u8      vbus_polled;            /* Use polling, not interrupt */
14         int     pullup_pin;             /* active == D+ pulled up */
15         u8      pullup_active_low;      /* true == pullup_pin is active low */
16         unsigned long   baseaddr;
17 };
18
19 int at91_udc_probe(struct at91_udc_data *pdata);
20 #endif /* __LINUX_USB_AT91_UDC_H__ */