xref: /openbmc/linux/drivers/usb/phy/phy-generic.h (revision cd5d5810)
1 #ifndef _PHY_GENERIC_H_
2 #define _PHY_GENERIC_H_
3 
4 struct usb_phy_gen_xceiv {
5 	struct usb_phy phy;
6 	struct device *dev;
7 	struct clk *clk;
8 	struct regulator *vcc;
9 	struct regulator *reset;
10 };
11 
12 int usb_gen_phy_init(struct usb_phy *phy);
13 void usb_gen_phy_shutdown(struct usb_phy *phy);
14 
15 int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_gen_xceiv *nop,
16 		enum usb_phy_type type, u32 clk_rate, bool needs_vcc,
17 		bool needs_reset);
18 void usb_phy_gen_cleanup_phy(struct usb_phy_gen_xceiv *nop);
19 
20 #endif
21