mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 08:07:10 +07:00
640e95abdf
Adding vbus_pin_inverted so that the usb detect pin can be active high or low depending on HW implementation also replaced the gpio_get_value(udc->vbus_pin); with a call to vbus_is_present(udc); This allows the driver to be loaded and save about 0,15W on the consumption. Signed-off-by: Eirik Aanonsen <eaa@wprmedical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
24 lines
383 B
C
24 lines
383 B
C
/*
|
|
* Platform data definitions for Atmel USBA gadget driver.
|
|
*/
|
|
#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 vbus_pin;
|
|
int vbus_pin_inverted;
|
|
int num_ep;
|
|
struct usba_ep_data ep[0];
|
|
};
|
|
|
|
#endif /* __LINUX_USB_USBA_H */
|