aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy-generic.h
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2013-07-30 11:20:06 -0400
committerFelipe Balbi <balbi@ti.com>2013-08-09 10:34:02 -0400
commit53b6fc28ea8e9857b6141afb92f3683eab9568ba (patch)
tree534d0e4bd34aa16a0be0e1d12c5a7b19c0516802 /drivers/usb/phy/phy-generic.h
parent9e5f9c8aa85da01a7474655dc6af43b5985ad56a (diff)
usb: phy: phy-generic: export init functions
This patch exports the mostly generic functions so they can be used from other phy driver instead of duplicating the code. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy/phy-generic.h')
-rw-r--r--drivers/usb/phy/phy-generic.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/usb/phy/phy-generic.h b/drivers/usb/phy/phy-generic.h
new file mode 100644
index 000000000000..61687d5a965b
--- /dev/null
+++ b/drivers/usb/phy/phy-generic.h
@@ -0,0 +1,20 @@
1#ifndef _PHY_GENERIC_H_
2#define _PHY_GENERIC_H_
3
4struct 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
12int usb_gen_phy_init(struct usb_phy *phy);
13void usb_gen_phy_shutdown(struct usb_phy *phy);
14
15int 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);
18void usb_phy_gen_cleanup_phy(struct usb_phy_gen_xceiv *nop);
19
20#endif