153b6fc28SSebastian Andrzej Siewior #ifndef _PHY_GENERIC_H_ 253b6fc28SSebastian Andrzej Siewior #define _PHY_GENERIC_H_ 353b6fc28SSebastian Andrzej Siewior 4*af9f51c5SFelipe Balbi #include <linux/usb/usb_phy_gen_xceiv.h> 5*af9f51c5SFelipe Balbi 653b6fc28SSebastian Andrzej Siewior struct usb_phy_gen_xceiv { 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 1853b6fc28SSebastian Andrzej Siewior int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_gen_xceiv *nop, 19*af9f51c5SFelipe Balbi struct usb_phy_gen_xceiv_platform_data *pdata); 2053b6fc28SSebastian Andrzej Siewior 2153b6fc28SSebastian Andrzej Siewior #endif 22