phy-generic.h 654 B

123456789101112131415161718192021222324252627
  1. #ifndef _PHY_GENERIC_H_
  2. #define _PHY_GENERIC_H_
  3. #include <linux/usb/usb_phy_generic.h>
  4. #include <linux/gpio/consumer.h>
  5. #include <linux/regulator/consumer.h>
  6. struct usb_phy_generic {
  7. struct usb_phy phy;
  8. struct device *dev;
  9. struct clk *clk;
  10. struct regulator *vcc;
  11. struct gpio_desc *gpiod_reset;
  12. struct gpio_desc *gpiod_vbus;
  13. struct regulator *vbus_draw;
  14. bool vbus_draw_enabled;
  15. unsigned long mA;
  16. unsigned int vbus;
  17. };
  18. int usb_gen_phy_init(struct usb_phy *phy);
  19. void usb_gen_phy_shutdown(struct usb_phy *phy);
  20. int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_generic *nop,
  21. struct usb_phy_generic_platform_data *pdata);
  22. #endif