Sebastian Andrzej Siewior | 53b6fc2 | 2013-07-30 17:20:06 +0200 | [diff] [blame] | 1 | #ifndef _PHY_GENERIC_H_ |
| 2 | #define _PHY_GENERIC_H_ |
| 3 | |
Felipe Balbi | d7078df | 2014-04-16 15:28:32 -0500 | [diff] [blame] | 4 | #include <linux/usb/usb_phy_generic.h> |
Felipe Balbi | af9f51c | 2013-10-24 09:45:29 -0500 | [diff] [blame] | 5 | |
Felipe Balbi | 4525bee | 2014-04-16 15:20:44 -0500 | [diff] [blame] | 6 | struct usb_phy_generic { |
Sebastian Andrzej Siewior | 53b6fc2 | 2013-07-30 17:20:06 +0200 | [diff] [blame] | 7 | struct usb_phy phy; |
| 8 | struct device *dev; |
| 9 | struct clk *clk; |
| 10 | struct regulator *vcc; |
Roger Quadros | bd27fa4 | 2013-09-24 11:53:48 +0300 | [diff] [blame] | 11 | int gpio_reset; |
| 12 | bool reset_active_low; |
Sebastian Andrzej Siewior | 53b6fc2 | 2013-07-30 17:20:06 +0200 | [diff] [blame] | 13 | }; |
| 14 | |
| 15 | int usb_gen_phy_init(struct usb_phy *phy); |
| 16 | void usb_gen_phy_shutdown(struct usb_phy *phy); |
| 17 | |
Felipe Balbi | 4525bee | 2014-04-16 15:20:44 -0500 | [diff] [blame] | 18 | int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_generic *nop, |
| 19 | struct usb_phy_generic_platform_data *pdata); |
Sebastian Andrzej Siewior | 53b6fc2 | 2013-07-30 17:20:06 +0200 | [diff] [blame] | 20 | |
| 21 | #endif |