153b6fc28SSebastian Andrzej Siewior #ifndef _PHY_GENERIC_H_ 253b6fc28SSebastian Andrzej Siewior #define _PHY_GENERIC_H_ 353b6fc28SSebastian Andrzej Siewior 4af9f51c5SFelipe Balbi #include <linux/usb/usb_phy_gen_xceiv.h> 5af9f51c5SFelipe Balbi 6*4525beebSFelipe Balbi struct usb_phy_generic { 753b6fc28SSebastian Andrzej Siewior struct usb_phy phy; 853b6fc28SSebastian Andrzej Siewior struct device *dev; 953b6fc28SSebastian Andrzej Siewior struct clk *clk; 1053b6fc28SSebastian Andrzej Siewior struct regulator *vcc; 11bd27fa44SRoger Quadros int gpio_reset; 12bd27fa44SRoger Quadros bool reset_active_low; 1353b6fc28SSebastian Andrzej Siewior }; 1453b6fc28SSebastian Andrzej Siewior 1553b6fc28SSebastian Andrzej Siewior int usb_gen_phy_init(struct usb_phy *phy); 1653b6fc28SSebastian Andrzej Siewior void usb_gen_phy_shutdown(struct usb_phy *phy); 1753b6fc28SSebastian Andrzej Siewior 18*4525beebSFelipe Balbi int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_generic *nop, 19*4525beebSFelipe Balbi struct usb_phy_generic_platform_data *pdata); 2053b6fc28SSebastian Andrzej Siewior 2153b6fc28SSebastian Andrzej Siewior #endif 22