blob: 38a81f307b8220bc5dfc81487a9fb420e397ccd1 [file] [log] [blame]
Sebastian Andrzej Siewior53b6fc22013-07-30 17:20:06 +02001#ifndef _PHY_GENERIC_H_
2#define _PHY_GENERIC_H_
3
Felipe Balbiaf9f51c2013-10-24 09:45:29 -05004#include <linux/usb/usb_phy_gen_xceiv.h>
5
Sebastian Andrzej Siewior53b6fc22013-07-30 17:20:06 +02006struct usb_phy_gen_xceiv {
7 struct usb_phy phy;
8 struct device *dev;
9 struct clk *clk;
10 struct regulator *vcc;
Roger Quadrosbd27fa42013-09-24 11:53:48 +030011 int gpio_reset;
12 bool reset_active_low;
Sebastian Andrzej Siewior53b6fc22013-07-30 17:20:06 +020013};
14
15int usb_gen_phy_init(struct usb_phy *phy);
16void usb_gen_phy_shutdown(struct usb_phy *phy);
17
18int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_gen_xceiv *nop,
Felipe Balbiaf9f51c2013-10-24 09:45:29 -050019 struct usb_phy_gen_xceiv_platform_data *pdata);
Sebastian Andrzej Siewior53b6fc22013-07-30 17:20:06 +020020
21#endif