Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Heiko Schocher | 6201976 | 2015-09-08 11:52:51 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Platform data definitions for Atmel USBA gadget driver |
| 4 | * pieces copied from linux:include/linux/platform_data/atmel.h |
Heiko Schocher | 6201976 | 2015-09-08 11:52:51 +0200 | [diff] [blame] | 5 | */ |
| 6 | #ifndef __LINUX_USB_AT91_UDC_H__ |
| 7 | #define __LINUX_USB_AT91_UDC_H__ |
| 8 | |
| 9 | struct at91_udc_data { |
| 10 | int vbus_pin; /* high == host powering us */ |
| 11 | u8 vbus_active_low; /* vbus polarity */ |
| 12 | u8 vbus_polled; /* Use polling, not interrupt */ |
| 13 | int pullup_pin; /* active == D+ pulled up */ |
| 14 | u8 pullup_active_low; /* true == pullup_pin is active low */ |
| 15 | unsigned long baseaddr; |
| 16 | }; |
| 17 | |
| 18 | int at91_udc_probe(struct at91_udc_data *pdata); |
| 19 | #endif /* __LINUX_USB_AT91_UDC_H__ */ |