1 #ifndef _PHY_GENERIC_H_
2 #define _PHY_GENERIC_H_
4 #include <linux/usb/usb_phy_generic.h>
5 #include <linux/gpio/consumer.h>
6 #include <linux/regulator/consumer.h>
8 struct usb_phy_generic
{
12 struct regulator
*vcc
;
13 struct gpio_desc
*gpiod_reset
;
14 struct gpio_desc
*gpiod_vbus
;
15 struct regulator
*vbus_draw
;
16 bool vbus_draw_enabled
;
21 int usb_gen_phy_init(struct usb_phy
*phy
);
22 void usb_gen_phy_shutdown(struct usb_phy
*phy
);
24 int usb_phy_gen_create_phy(struct device
*dev
, struct usb_phy_generic
*nop
,
25 struct usb_phy_generic_platform_data
*pdata
);