blob: d8feacc0b7fb368c51c989d96a153a4605f7a4d3 [file] [log] [blame]
Sebastian Andrzej Siewior53b6fc22013-07-30 17:20:06 +02001#ifndef _PHY_GENERIC_H_
2#define _PHY_GENERIC_H_
3
Felipe Balbid7078df2014-04-16 15:28:32 -05004#include <linux/usb/usb_phy_generic.h>
Felipe Balbiaf9f51c2013-10-24 09:45:29 -05005
Felipe Balbi4525bee2014-04-16 15:20:44 -05006struct usb_phy_generic {
Sebastian Andrzej Siewior53b6fc22013-07-30 17:20:06 +02007 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
Felipe Balbi4525bee2014-04-16 15:20:44 -050018int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_generic *nop,
19 struct usb_phy_generic_platform_data *pdata);
Sebastian Andrzej Siewior53b6fc22013-07-30 17:20:06 +020020
21#endif